:root{--ink:#20232d;--muted:#737782;--line:#e7e4de;--paper:#fff;--bg:#f6f5f2;--gold:#d8ad2f;--gold2:#f5cf50;--brown:#a96843;--nav:#171a22;--blue:#373988;--green:#287a5d;--red:#b64343;--shadow:0 10px 30px rgba(30,32,40,.08)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:14px}.sidebar{position:fixed;inset:0 auto 0 0;width:240px;background:var(--nav);color:#fff;display:flex;flex-direction:column;z-index:20}.brand{height:94px;display:flex;align-items:center;padding:14px 22px;border-bottom:1px solid #2d3038}.brand img{width:108px;height:65px;object-fit:contain}.brand span{font-size:11px;letter-spacing:2px;color:#d8ad2f;border:1px solid #746221;padding:3px 5px;margin-left:auto}nav{padding:20px 12px}nav button,.sidebar-foot>button{width:100%;border:0;background:transparent;color:#bbbcc3;border-radius:9px;padding:12px 13px;text-align:left;margin:2px 0;font:inherit;cursor:pointer;display:flex;align-items:center;gap:12px}nav button i,.sidebar-foot i{font-size:18px;width:22px;font-style:normal;text-align:center}nav button b{margin-left:auto;background:#333640;padding:2px 7px;border-radius:10px;font-size:11px}nav button b.alert{background:#5f3030;color:#ffc6c6}nav button:hover,nav button.active,.sidebar-foot>button:hover{background:#2b2d35;color:white}.sidebar-foot{margin-top:auto;padding:12px;border-top:1px solid #2d3038}.user{display:flex;gap:10px;align-items:center;margin:12px 6px 2px}.user>span{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:var(--gold);color:#272319;font-weight:800}.user div{display:flex;flex-direction:column}.user small{color:#92949c;margin-top:3px;font-size:11px}main{margin-left:240px;min-height:100vh}.topbar{height:70px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 28px;position:sticky;top:0;z-index:10}.search{display:flex;align-items:center;gap:9px;color:#aaa;font-size:20px}.search input{border:0;outline:0;width:360px;font:inherit}.top-actions{margin-left:auto;display:flex;gap:9px;align-items:center}.primary,.secondary,.ghost,.danger{border:0;border-radius:8px;padding:10px 15px;font-weight:650;cursor:pointer}.primary{background:var(--gold);color:#282312}.primary:hover{background:#c99c20}.secondary{background:var(--blue);color:#fff}.ghost{background:#fff;border:1px solid var(--line);color:var(--ink)}.danger{background:#fff1f1;color:var(--red)}.icon-btn{border:1px solid var(--line);background:#fff;border-radius:8px;width:38px;height:38px;position:relative}.dot{width:7px;height:7px;background:#e05858;border-radius:50%;position:absolute;right:6px;top:6px}.mobile-menu{display:none}#app{padding:28px;max-width:1560px;margin:auto}.page-head{display:flex;align-items:flex-end;margin-bottom:22px}.page-head h1{font-family:Georgia,serif;font-size:30px;margin:0 0 5px}.page-head p{margin:0;color:var(--muted)}.page-actions{margin-left:auto;display:flex;gap:8px}.grid{display:grid;gap:18px}.stats{grid-template-columns:repeat(4,1fr);margin-bottom:20px}.card{background:var(--paper);border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow)}.stat{padding:20px;position:relative;overflow:hidden}.stat .label{color:var(--muted);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.6px}.stat strong{display:block;font-size:28px;margin:11px 0 6px}.stat small{color:var(--muted)}.stat .trend{color:var(--green)}.stat:after{content:"";width:60px;height:60px;border-radius:50%;background:#fbf4dc;position:absolute;right:-10px;top:-10px}.dashboard-grid{grid-template-columns:1.45fr .8fr}.card-head{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center}.card-head h2{font-size:16px;margin:0}.card-head a{margin-left:auto;color:var(--blue);cursor:pointer;font-size:13px}.pipeline{padding:18px 20px}.pipe-row{display:grid;grid-template-columns:120px 1fr 80px;gap:12px;align-items:center;margin:17px 0}.pipe-row label{font-weight:650}.bar{height:9px;background:#eee;border-radius:5px;overflow:hidden}.bar span{height:100%;display:block;background:linear-gradient(90deg,var(--gold),var(--brown));border-radius:5px}.pipe-row strong{text-align:right}.activity{padding:8px 20px}.event{display:grid;grid-template-columns:36px 1fr;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.event:last-child{border:0}.event .mark{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#faf2d6;color:#836b24}.event p{margin:0 0 5px}.event small{color:var(--muted)}.table-card{overflow:hidden}.filters{display:flex;gap:8px;margin-bottom:14px;align-items:center}.filters input,.filters select,.form-control{border:1px solid #dcd9d2;background:white;border-radius:8px;padding:10px 12px;font:inherit;outline:none}.filters input:focus,.form-control:focus{border-color:#b6912e;box-shadow:0 0 0 3px #f8efcf}.filters .grow{flex:1}table{width:100%;border-collapse:collapse}th{text-align:left;padding:12px 14px;background:#faf9f7;color:#6f7078;font-size:11px;text-transform:uppercase;letter-spacing:.5px}td{padding:14px;border-top:1px solid var(--line);vertical-align:middle}tr.clickable:hover{background:#fffaf0;cursor:pointer}.client-cell{display:flex;align-items:center;gap:11px}.avatar{width:36px;height:36px;border-radius:50%;background:#e7e1d6;color:#5b513f;display:grid;place-items:center;font-weight:800}.client-cell div{display:flex;flex-direction:column}.client-cell small,td small{color:var(--muted);margin-top:3px}.status{display:inline-flex;padding:5px 9px;border-radius:12px;font-size:11px;font-weight:750}.s-sent{background:#eeeefe;color:#484ba0}.s-draft{background:#eee;color:#666}.s-won,.s-paid,.s-delivered{background:#e5f4ed;color:#28725a}.s-lost,.s-overdue{background:#fbe8e8;color:#a94444}.s-transit,.s-partial{background:#fff3d5;color:#8c6811}.stage-board{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;overflow:auto}.stage-col{min-width:210px;background:#eeece8;border-radius:12px;padding:10px}.stage-title{display:flex;padding:5px 3px 12px;font-weight:800}.stage-title span{margin-left:auto;color:#777}.deal{background:white;border:1px solid var(--line);border-radius:9px;padding:13px;margin-bottom:9px;box-shadow:0 3px 10px #00000009;cursor:pointer}.deal strong{display:block;margin-bottom:7px}.deal p{margin:4px 0;color:#555}.deal small{color:#888}.deal .amount{color:var(--blue);font-weight:800;margin-top:10px}.product-grid{grid-template-columns:repeat(4,1fr)}.product{overflow:hidden}.product img{width:100%;height:135px;object-fit:cover;background:#eee}.product-body{padding:14px}.product-body h3{margin:0 0 5px}.product-body p{color:var(--muted);margin:0 0 12px}.price{font-weight:850;font-size:17px}.offer-layout{display:grid;grid-template-columns:1fr 330px;gap:18px}.offer-main{padding:20px}.offer-sidebar{display:flex;flex-direction:column;gap:14px}.side-card{padding:17px}.side-card h3{font-size:13px;text-transform:uppercase;letter-spacing:.5px;margin:0 0 14px}.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-bottom:20px}.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:11px;text-transform:uppercase;letter-spacing:.45px;color:#6c6d73;font-weight:750}.field.full{grid-column:1/-1}.offer-table input{width:100%;min-width:60px;border:1px solid transparent;padding:8px;background:transparent;font:inherit}.offer-table input:focus{background:#fff;border-color:#d5c170;outline:0}.offer-table .thumb{width:58px;height:45px;object-fit:cover;border-radius:5px}.offer-table td{padding:8px}.remove{border:0;background:none;color:#b75a5a;cursor:pointer;font-size:18px}.totals{margin-left:auto;width:350px;padding-top:14px}.total-line{display:flex;justify-content:space-between;padding:6px 0}.total-line.grand{font-size:19px;font-weight:850;border-top:2px solid var(--ink);margin-top:7px;padding-top:11px;color:var(--blue)}.stage-select{width:100%}.timeline{border-left:2px solid #ddd;margin-left:8px;padding-left:18px}.timeline div{position:relative;margin:0 0 18px}.timeline div:before{content:"";position:absolute;width:9px;height:9px;border-radius:50%;background:var(--gold);left:-24px;top:4px}.timeline small{display:block;color:var(--muted);margin-top:3px}.email-list{display:grid;grid-template-columns:330px 1fr;min-height:620px}.threads{border-right:1px solid var(--line)}.thread{padding:15px 17px;border-bottom:1px solid var(--line);cursor:pointer}.thread.active,.thread:hover{background:#fff8e6}.thread strong{display:flex}.thread strong time{margin-left:auto;color:#888;font-size:11px;font-weight:500}.thread p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#666;margin:6px 0 0}.email-content{padding:25px}.email-content h2{font-family:Georgia,serif;font-size:25px}.email-meta{color:#777;border-bottom:1px solid var(--line);padding-bottom:15px}.email-body{line-height:1.65;padding:18px 0}.modal-backdrop{display:none;position:fixed;inset:0;background:#18191e99;z-index:50}.modal{display:none;position:fixed;z-index:51;background:white;border-radius:14px;box-shadow:0 20px 60px #0005;width:min(680px,calc(100vw - 32px));max-height:90vh;overflow:auto;left:50%;top:50%;transform:translate(-50%,-50%);padding:25px}.modal.open,.modal-backdrop.open{display:block}.modal-close{position:absolute;right:16px;top:12px;border:0;background:none;font-size:26px;cursor:pointer}.modal h2{font-family:Georgia,serif;margin-top:0}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.toast{position:fixed;right:25px;bottom:25px;background:#20231f;color:white;padding:13px 18px;border-radius:9px;opacity:0;transform:translateY(15px);transition:.25s;z-index:90}.toast.show{opacity:1;transform:none}.empty{text-align:center;padding:60px;color:#888}.settings-grid{grid-template-columns:1fr 1fr}.setting{padding:20px}.setting h3{margin-top:0}.switch{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid var(--line)}.switch input{accent-color:var(--gold)}
@media(max-width:1050px){.stats{grid-template-columns:1fr 1fr}.dashboard-grid,.offer-layout{grid-template-columns:1fr}.product-grid{grid-template-columns:1fr 1fr}.stage-board{grid-template-columns:repeat(5,240px)}.offer-sidebar{display:grid;grid-template-columns:1fr 1fr}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:.2s}.sidebar.open{transform:none}main{margin:0}.mobile-menu{display:block;border:0;background:none;font-size:22px;margin-right:10px}.topbar{padding:0 14px}.search input{width:150px}.top-actions .icon-btn{display:none}#app{padding:18px}.stats,.dashboard-grid,.product-grid,.settings-grid{grid-template-columns:1fr}.page-head{align-items:flex-start;gap:12px}.page-actions{margin-left:0}.form-grid{grid-template-columns:1fr}.email-list{grid-template-columns:1fr}.email-content{display:none}.offer-sidebar{display:flex}.table-card{overflow:auto}.top-actions .primary{padding:9px;font-size:0}.top-actions .primary:after{content:"＋";font-size:20px}}
@media print{body{background:white}.sidebar,.topbar,.page-head,.offer-sidebar,.no-print,.toast{display:none!important}main{margin:0}#app{padding:0;max-width:none}.offer-layout{display:block}.offer-main{box-shadow:none;border:0}.print-header{display:flex!important}.offer-table th{background:#ad704b!important;color:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}}
.print-header{display:none;align-items:center;justify-content:space-between;border-top:7px solid var(--gold);padding:22px 0 20px}.print-header img{width:120px}.print-header h1{font-size:26px}.print-meta{display:none}@media print{.print-meta{display:grid;grid-template-columns:1fr 1fr 1fr;gap:25px;margin-bottom:25px}.print-meta h4{color:var(--blue);margin:0 0 8px}.print-meta p{line-height:1.5;margin:0}.offer-main>.form-grid{display:none}}
.offer-table .thumb,.service-thumb{width:58px;height:45px;object-fit:cover;border-radius:5px}.service-thumb{display:grid;place-items:center;background:#f5ecd0;color:#8c6a10;font-size:22px}.discount-cell{white-space:nowrap}.discount-cell input{width:48px;min-width:48px}
.client-editor{background:#faf9f6;border:1px solid var(--line);border-radius:11px;padding:17px;margin-bottom:18px}.client-editor-head{display:flex;align-items:center;margin-bottom:15px}.client-editor-head>div:first-child{display:flex;flex-direction:column;gap:4px}.client-editor-head small{color:var(--muted)}.type-toggle{margin-left:auto;background:#ebe9e4;border-radius:8px;padding:3px}.type-toggle button{border:0;background:transparent;padding:7px 12px;border-radius:6px;cursor:pointer}.type-toggle button.active{background:white;box-shadow:0 2px 7px #0001;font-weight:700}.company-search{margin-bottom:16px}.input-action{display:flex;gap:8px}.input-action input{flex:1}.lookup-results{position:relative}.lookup-item{display:flex;flex-direction:column;gap:4px;width:100%;padding:11px 13px;text-align:left;border:1px solid #ddd8cb;border-top:0;background:white;cursor:pointer}.lookup-item:hover{background:#fff7dc}.lookup-item span,.lookup-empty{color:var(--muted);font-size:12px}.lookup-empty{padding:10px;background:white;border:1px solid var(--line)}.client-fields{grid-template-columns:repeat(3,1fr);margin-bottom:0}.document-fields{grid-template-columns:1fr 1fr;max-width:540px}.hidden{display:none!important}.empty-products{text-align:center;color:var(--muted);padding:30px!important}.client-editor .field>small{margin-top:5px;color:var(--muted)}
@media(max-width:760px){.client-editor-head{align-items:flex-start;gap:12px;flex-direction:column}.type-toggle{margin-left:0}.client-fields{grid-template-columns:1fr}.input-action{flex-direction:column}}
.product-result{grid-template-columns:58px 1fr auto}.manual-product{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}.manual-product h3{margin:0 0 5px}.manual-product>p{color:var(--muted);margin:0 0 16px}
.product-description{min-width:210px}.product-description strong{display:block;margin:0 8px 3px}.offer-table .line-description,.offer-table .line-note{display:block;width:100%;padding:4px 8px;min-width:190px;font-size:12px}.offer-table .line-description{color:#555}.offer-table .line-note{color:#7b6525;font-style:italic}.line-note:placeholder-shown{color:#aaa}
.modal.pdf-modal{width:min(1120px,calc(100vw - 32px));padding:0;background:#e9e8e5}.preview-toolbar{position:sticky;top:0;z-index:2;background:white;border-bottom:1px solid var(--line);padding:14px 20px;display:flex;align-items:center}.preview-toolbar>div:first-child{display:flex;flex-direction:column}.preview-toolbar small{color:var(--muted);margin-top:3px}.preview-actions{margin-left:auto;display:flex;gap:8px}.pdf-sheet{width:794px;min-height:1123px;margin:24px auto;background:white;padding:38px 46px;box-shadow:0 8px 28px #0002;color:#252831}.pdf-topline{height:7px;background:var(--gold);margin-bottom:22px}.pdf-sheet header{display:flex;align-items:center;justify-content:space-between}.pdf-sheet header img{width:125px;height:90px;object-fit:contain}.pdf-sheet header h1{font-size:27px}.pdf-parties{display:grid;grid-template-columns:1fr 1fr 1fr;gap:25px;margin:23px 0}.pdf-parties h4,.pdf-terms h4{color:var(--blue);margin:0 0 8px}.pdf-parties p{line-height:1.5;margin:0}.pdf-table{margin-top:20px}.pdf-table th{background:var(--brown);color:white;padding:11px 9px}.pdf-table td{padding:11px 9px;font-size:12px}.pdf-table img,.pdf-service{width:55px;height:42px;object-fit:cover;border-radius:4px}.pdf-service{display:grid;place-items:center;background:#f5ecd0}.pdf-table small,.pdf-table em{display:block;margin-top:4px;color:#666}.pdf-table em{color:#7b6525}.pdf-totals{width:330px;margin:22px 0 30px auto}.pdf-totals>div{display:flex;justify-content:space-between;padding:5px 0}.pdf-totals .grand{border-top:2px solid #252831;margin-top:6px;padding-top:10px;font-size:17px;color:var(--blue)}.pdf-terms{line-height:1.55}.pdf-terms p{color:#555}
@media(max-width:850px){.pdf-sheet{width:100%;min-height:auto;margin:0;box-shadow:none;padding:25px}.modal.pdf-modal{width:calc(100vw - 16px)}.preview-toolbar{align-items:flex-start}.preview-actions{flex-direction:column}.pdf-sheet header h1{font-size:20px}}
@media print{body.print-preview main,body.print-preview .sidebar,body.print-preview .modal-backdrop,body.print-preview .modal-close,body.print-preview .preview-toolbar{display:none!important}body.print-preview .modal.pdf-modal{display:block!important;position:static;transform:none;width:auto;max-height:none;overflow:visible;box-shadow:none;padding:0;background:white}body.print-preview .pdf-sheet{width:auto;min-height:auto;margin:0;box-shadow:none;padding:0}}
.payment-editor{border-top:1px solid var(--line);margin-top:14px;padding-top:14px;display:grid;gap:12px}.payment-line{margin-top:7px;color:var(--blue);font-size:16px}.pdf-totals .payment-due{border-top:1px solid #aaa;margin-top:7px;padding-top:9px;color:var(--blue)}
.document-toggle{display:flex;align-items:flex-start;gap:10px;padding:10px 0;cursor:pointer}.document-toggle input{margin-top:3px;accent-color:var(--gold)}.document-toggle span{display:flex;flex-direction:column;gap:3px}.document-toggle small{color:var(--muted);font-weight:400}.conditions-manager{grid-column:1/-1}.conditions-head{display:flex;align-items:center;border-bottom:1px solid var(--line);padding-bottom:16px}.conditions-head h3{margin:0 0 5px}.conditions-head p{margin:0;color:var(--muted)}.conditions-head button{margin-left:auto}.condition-row{display:grid;grid-template-columns:1fr auto auto;gap:9px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.condition-row:last-child{border-bottom:0}.condition-row>div{display:flex;flex-direction:column;gap:5px}.condition-row small{color:#555;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:850px}.condition-row span{font-size:11px;color:var(--muted)}
@media(max-width:760px){.conditions-head{align-items:flex-start;gap:12px;flex-direction:column}.conditions-head button{margin-left:0}.condition-row{grid-template-columns:1fr 1fr}.condition-row>div{grid-column:1/-1}}
.offer-table .thumb,.offer-table .service-thumb{width:78px;height:60px}.pdf-table img,.pdf-table .pdf-service{width:72px;height:54px}.three-actions{flex-wrap:wrap}
.modal.order-modal{width:min(980px,calc(100vw - 32px))}.order-progress{display:flex;gap:5px;margin:18px 0 22px;overflow:auto}.order-progress span{flex:1;min-width:115px;background:#eceae5;color:#777;padding:9px 7px;text-align:center;font-size:11px;border-radius:6px}.order-progress span.active{background:var(--gold);color:#282312;font-weight:800}.order-items{border:1px solid var(--line);border-radius:9px;margin-bottom:22px}.order-items>div{display:grid;grid-template-columns:78px 1.3fr 1.5fr .7fr .8fr;gap:12px;padding:11px 13px;border-bottom:1px solid var(--line);align-items:center}.order-items>div:last-child{border:0}.order-items span{color:var(--muted)}.order-items b{text-align:right}.order-thumb{width:72px;height:56px;object-fit:cover;border-radius:6px;background:#f5ecd0}.order-service{display:grid;place-items:center;color:#806820;font-size:20px}.readonly-offer{position:relative}.readonly-offer:before{content:'PATVIRTINTAS';position:absolute;right:22px;top:14px;z-index:2;background:#dff3e8;color:#247057;border:1px solid #9bcbb7;border-radius:16px;padding:6px 12px;font-size:11px;font-weight:800;letter-spacing:.6px}.readonly-offer input:disabled,.readonly-offer select:disabled,.readonly-offer textarea:disabled{opacity:1;color:var(--ink);-webkit-text-fill-color:var(--ink);background:#faf9f6}
.search-groups{display:grid;gap:16px}.search-group{overflow:hidden}.search-group .card-head span{margin-left:auto;background:#eee;border-radius:12px;padding:3px 9px;color:var(--muted)}.search-result{width:100%;display:grid;grid-template-columns:42px 1fr auto;gap:12px;align-items:center;padding:14px 18px;border:0;border-top:1px solid var(--line);background:white;text-align:left;cursor:pointer}.search-result:hover{background:#fff9e8}.search-result>span:nth-child(2){display:flex;flex-direction:column;gap:5px;min-width:0}.search-result small{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.search-result>b{font-size:11px;color:var(--blue);background:#efeffa;padding:5px 9px;border-radius:12px}.search-icon{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#f7edce;color:#806820;font-size:18px}
.confirmed-offer-row{background:#f2faf6}.confirmed-offer-row:hover{background:#e7f5ed!important}.confirmed-offer-row td:first-child{border-left:4px solid var(--green)}
.modal.order-workspace-modal{width:min(1180px,calc(100vw - 24px));padding:0;background:#f1f0ed}.order-workspace-head{display:flex;align-items:center;padding:18px 24px;background:white;border-bottom:1px solid var(--line)}.order-workspace-head h2{margin:0 0 4px}.order-workspace-head p{margin:0;color:var(--muted)}.order-workspace-head>div:last-child{margin-left:auto;display:flex;gap:8px}.workspace-tabs{display:flex;padding:0 24px;background:white;border-bottom:1px solid var(--line)}.workspace-tabs button{border:0;background:none;padding:14px 18px;color:var(--muted);cursor:pointer;border-bottom:3px solid transparent}.workspace-tabs button.active{color:var(--blue);border-bottom-color:var(--gold);font-weight:800}.workspace-panel{display:none;padding:24px}.workspace-panel.active{display:block}.order-offer-snapshot{max-width:900px;min-height:1050px;margin:auto;background:white;padding:38px 46px;box-shadow:var(--shadow)}.order-offer-snapshot header{display:flex;justify-content:space-between;align-items:center}.order-offer-snapshot header img{width:125px;height:90px;object-fit:contain}.order-offer-snapshot header>div{text-align:right}.order-offer-snapshot header h1{margin:10px 0 0}.order-snapshot-table{margin-top:22px}.order-workspace-modal .workspace-panel[data-order-panel="execution"]{max-width:980px;margin:auto}.workspace-history{background:white;border-radius:10px;padding:22px;min-height:300px}
@media(max-width:760px){.order-workspace-head{align-items:flex-start;gap:12px;flex-direction:column}.order-workspace-head>div:last-child{margin-left:0}.workspace-tabs{overflow:auto}.order-offer-snapshot{padding:22px;min-height:auto}.order-offer-snapshot header h1{font-size:18px}.order-offer-snapshot .pdf-parties{grid-template-columns:1fr}.order-workspace-head>div:last-child{flex-direction:column}}
.mail-toolbar,.files-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;background:white;border-radius:10px;padding:18px 20px;margin-bottom:14px}.mail-toolbar>div,.files-toolbar>div{display:flex;flex-direction:column;gap:4px}.mail-toolbar small,.files-toolbar small{color:var(--muted)}.mail-composer{background:white;border:1px solid #d9c16f;border-radius:10px;padding:20px;margin-bottom:14px;display:grid;gap:14px}.mail-attach-row{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12px}.file-button{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.file-button input{display:none}.mail-thread{display:grid;gap:12px}.mail-message{display:grid;grid-template-columns:42px 1fr;gap:12px;background:white;border-radius:10px;padding:18px 20px;border-left:4px solid #d8d8d8}.mail-message.incoming{border-left-color:var(--gold)}.mail-message.outgoing{border-left-color:var(--blue)}.mail-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#f3e8c2;font-weight:800}.mail-message header{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.mail-message header strong{color:var(--ink);font-size:13px}.mail-message h4{margin:8px 0}.mail-message p{white-space:pre-line;line-height:1.55;margin:0 0 10px}.mail-reply{border:0;background:none;color:var(--blue);font-weight:700;padding:5px 0;cursor:pointer}.message-files{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}.file-chip{border:1px solid var(--line);background:#faf9f5;border-radius:16px;padding:7px 10px;cursor:pointer}.mail-empty{text-align:center;padding:45px}.mail-sync-note{margin-top:14px;color:var(--muted);font-size:11px}.unread-dot{background:#b5483f;color:white;border-radius:10px;padding:2px 6px;font-size:10px}.order-files-grid{display:grid;gap:10px}.order-file{display:grid;grid-template-columns:50px 1fr auto;align-items:center;gap:12px;background:white;border-radius:9px;padding:14px 16px}.order-file>span{width:44px;height:44px;border-radius:7px;background:#f4e9c7;display:grid;place-items:center;color:#7d681f;font-weight:800}.order-file>div{display:flex;flex-direction:column;gap:5px}.order-file small{color:var(--muted)}
@media(max-width:760px){.mail-toolbar,.files-toolbar{align-items:flex-start;flex-direction:column}.mail-message{grid-template-columns:1fr}.order-file{grid-template-columns:44px 1fr}.order-file button{grid-column:1/-1}.workspace-panel[data-order-panel="mail"],.workspace-panel[data-order-panel="files"]{padding:14px}}
.order-workspace-modal .order-workspace-head{padding-right:72px}.order-workspace-modal .modal-close{z-index:3;width:38px;height:38px;right:14px;top:11px;border-radius:50%;background:#f4f2ed;line-height:32px}.template-help{color:var(--muted);font-size:12px;line-height:1.6}.template-help code{background:#f3f0e8;border-radius:4px;padding:2px 5px}.mail-templates-manager .condition-row span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:850px}
.order-stage-row{grid-template-columns:1fr auto auto auto auto}.order-stage-row button:disabled{opacity:.35;cursor:not-allowed}@media(max-width:760px){.order-stage-row{grid-template-columns:repeat(4,auto)}.order-stage-row>div{grid-column:1/-1}}
.order-progress span{cursor:pointer;transition:background .15s,color .15s}.order-progress span:hover{background:#e3dcc8;color:#3f3828}.order-progress span:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.order-edit-sheet{padding:24px;background:#fff}.order-edit-table{margin-top:22px}.order-edit-table input{min-width:70px}.order-edit-thumb{width:74px;height:62px;object-fit:contain;border-radius:7px;background:#f5f3ee}.order-edit-totals{margin-top:18px}
.credit-reference{margin:14px 0;padding:10px 12px;background:#faf2d9;border-left:3px solid var(--gold)}.money-receipt{max-width:820px;min-height:900px}.money-receipt header{display:flex;justify-content:space-between;align-items:center}.money-receipt header img{width:130px}.money-receipt header>div{text-align:right}.receipt-meta{display:flex;justify-content:space-between;margin:32px 0 22px;border-bottom:1px solid var(--line)}.money-receipt section{margin:20px 0}.receipt-amount{display:flex;justify-content:space-between;align-items:center;margin:30px 0;padding:20px;background:#faf7ed;border:1px solid #eadca9}.receipt-amount strong{font-size:24px}.receipt-signatures{display:grid;grid-template-columns:1fr 1fr;gap:50px;margin-top:90px}.receipt-signatures>div{border-top:1px solid #777;padding-top:8px;display:flex;flex-direction:column}.receipt-signatures i{font-size:10px;color:#777;margin-top:4px}
.receipt-list-row{width:100%;display:flex;justify-content:space-between;align-items:center;padding:14px;border:0;border-bottom:1px solid var(--line);background:#fff;cursor:pointer;text-align:left}.receipt-list-row:hover{background:#faf7ed}.receipt-list-row span{color:var(--muted)}
.kpo-document{font-family:Arial,sans-serif;font-size:11px;color:#111;padding:34px 42px}.kpo-document h1{font-family:Arial,sans-serif}.kpo-company{text-align:center;border-bottom:1px dotted #777;padding-bottom:3px}.kpo-company strong{display:block;font-size:13px}.kpo-company small,.kpo-hint,.kpo-words small,.kpo-sign small{display:block;text-align:center;font-size:8px;margin-top:4px}.kpo-title-row{display:grid;grid-template-columns:1fr 1fr;align-items:center;margin:22px 0 15px}.kpo-title-row h1{font-size:17px;margin:0}.kpo-title-row h1 small{display:block;font-size:14px;font-weight:400}.kpo-numbering{display:grid;grid-template-columns:auto 1fr auto 1fr;gap:12px;align-items:center;text-align:center}.kpo-date{text-align:center;font-size:14px;margin:16px 0}.kpo-accounting{width:100%;border-collapse:collapse;margin:18px 0}.kpo-accounting th,.kpo-accounting td{border:1px solid #111;padding:7px 5px;text-align:center;font-weight:400}.kpo-accounting th span{font-weight:400}.kpo-line{display:grid;grid-template-columns:250px 1fr;align-items:end;gap:10px;margin-top:20px}.kpo-line strong{border-bottom:1px dotted #666;padding:0 5px 4px;text-align:center}.kpo-words{border-bottom:1px dotted #666;text-align:center;margin-top:18px;padding-bottom:3px}.kpo-values{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin:24px 0}.kpo-values span{display:flex;justify-content:space-between;border-bottom:1px dotted #666;padding-bottom:4px}.kpo-sign{display:grid;grid-template-columns:250px 1fr;gap:10px;align-items:end;margin-top:20px}.kpo-sign strong{border-bottom:1px dotted #666;text-align:center;padding-bottom:3px}.kpo-sign small{grid-column:2}.kpo-cut{border-top:2px dashed #333;margin:27px 0 24px;text-align:center;height:1px}.kpo-cut span{position:relative;top:-8px;background:#fff;padding:0 14px}.kpo-stub .kpo-title-row{margin-top:20px}.kpo-stub .kpo-line{margin-top:17px}.kpo-stub .kpo-date{margin:25px 0}.kpo-stub .kpo-sign{margin-top:18px}@media print{.kpo-document{width:190mm!important;height:277mm!important;padding:8mm 10mm!important;font-size:10px;box-sizing:border-box;page-break-inside:avoid}.kpo-cut{margin:8mm 0 6mm}.kpo-title-row{margin:5mm 0 3mm}.kpo-accounting{margin:4mm 0}.kpo-line{margin-top:4mm}.kpo-values{margin:5mm 0}.kpo-sign{margin-top:4mm}}
@media print{html,body,body.print-preview{background:#fff!important}.modal.pdf-modal,.modal.invoice-document-modal{background:#fff!important;border-radius:0!important;box-shadow:none!important}body.print-preview .modal.invoice-document-modal{display:block!important;position:static!important;transform:none!important;width:auto!important;max-height:none!important;overflow:visible!important;padding:0!important}.kpo-document{border-radius:0!important;box-shadow:none!important;margin:0 auto!important}}
.kpo-values{grid-template-columns:1fr;margin-left:auto;width:48%}.kpo-invoice-ref{display:flex;justify-content:space-between;align-items:center;margin:12px 0 0 250px;padding:7px 9px;background:#f5f3ee;border-left:3px solid #222}.kpo-invoice-ref strong{font-size:12px}.invoice-link-cell strong,.invoice-link-cell small{display:block}.invoice-link-cell small{margin-top:4px;color:var(--muted)}@media print{.kpo-invoice-ref{background:#fff!important;border:1px solid #222;margin-top:3mm}}
.order-client-details{grid-column:1/-1;background:#f7f6f2;border:1px solid var(--line);border-radius:9px;padding:14px}.order-client-details .form-grid{margin:12px 0 0}.client-match-note{color:var(--muted);font-size:12px}.order-client-details.matched-client{background:#f1faf5;border-color:#9bcbb7}.order-client-details.matched-client .client-match-note{color:#247057}
.client-suggestions{margin-top:2px;background:white;border:1px solid #cfcac0;border-radius:8px;box-shadow:0 12px 28px #0002;max-height:260px;overflow:auto;z-index:20}.client-suggestions button{display:flex;flex-direction:column;gap:4px;width:100%;padding:11px 13px;border:0;border-bottom:1px solid var(--line);background:white;text-align:left;cursor:pointer}.client-suggestions button:last-child{border-bottom:0}.client-suggestions button:hover{background:#fff7df}.client-suggestions button span{color:var(--muted);font-size:11px}.client-suggestion-empty{padding:13px;color:var(--muted);font-size:12px}
.modal.invoice-document-modal{width:min(1050px,calc(100vw - 32px));padding:0;background:#eceae6}.invoice-document-modal .preview-toolbar{padding:16px 58px 16px 22px;background:white}.invoice-document-modal .invoice-document{margin:22px auto}.invoice-document .pdf-table img{width:72px;height:54px;object-fit:cover}
.invoice-document-modal .modal-close{z-index:6;width:38px;height:38px;right:12px;top:9px;border-radius:50%;background:#f4f2ed;line-height:32px}.invoice-document-modal .preview-toolbar{position:relative;z-index:2}
.line-product-name{font-weight:800;color:var(--ink);min-width:190px}.offer-table .line-unit{min-width:58px;text-align:center}.product-image-editor{position:relative;display:block;width:78px;height:60px;cursor:pointer}.product-image-editor input{display:none}.product-image-editor span{position:absolute;inset:auto 3px 3px;background:#1c1f26cc;color:white;border-radius:4px;padding:2px 4px;text-align:center;font-size:9px;opacity:0;transition:.15s}.product-image-editor:hover span{opacity:1}.product-row-actions{white-space:nowrap}.save-product-row{border:0;background:#e7f4ec;color:#246448;border-radius:6px;width:29px;height:29px;font-size:16px;font-weight:800;cursor:pointer;margin-right:3px}.save-product-row:hover{background:#cce9d7}
.offer-bottom-save{width:100%;padding:13px}.page-actions{flex-wrap:wrap;justify-content:flex-end}
.invoice-editor{padding-top:34px}.invoice-client-editor{margin:22px 0}.invoice-edit-table input{width:100%;min-width:65px;border:1px solid transparent;border-radius:5px;padding:8px;background:#faf9f6;font:inherit}.invoice-edit-table input:focus{background:white;border-color:#c6a53b;outline:0}.invoice-edit-table td:first-child{min-width:250px}.invoice-edit-table .invoice-description{display:block;margin-top:4px;color:var(--muted);font-size:12px}.invoice-terms-editor{width:100%;margin-top:8px}.invoice-no-images th:first-child,.invoice-no-images td:first-child{width:45%}.invoice-pdf .pdf-table small{display:block;color:var(--muted);margin-top:4px}.invoice-pdf .pdf-table em{display:block;color:#7b6525;margin-top:4px}
@page{size:A4;margin:0}@media print{body.print-preview .invoice-pdf,body.print-preview .order-pdf{width:190mm!important;min-height:277mm!important;max-height:277mm!important;margin:0 auto!important;padding:8mm 10mm!important;box-sizing:border-box!important;overflow:hidden!important;box-shadow:none!important;font-size:10px!important;page-break-inside:avoid!important;break-inside:avoid-page!important}body.print-preview .invoice-pdf .pdf-topline,body.print-preview .order-pdf .pdf-topline{height:4px;margin-bottom:10px}body.print-preview .invoice-pdf header img,body.print-preview .order-pdf header img{width:90px;height:62px}body.print-preview .invoice-pdf header h1,body.print-preview .order-pdf header h1{font-size:20px;margin:8px 0}body.print-preview .invoice-pdf .pdf-parties,body.print-preview .order-pdf .pdf-parties{margin:12px 0;gap:15px}body.print-preview .invoice-pdf .pdf-table,body.print-preview .order-pdf .pdf-table{margin-top:10px}body.print-preview .invoice-pdf .pdf-table th,body.print-preview .invoice-pdf .pdf-table td,body.print-preview .order-pdf .pdf-table th,body.print-preview .order-pdf .pdf-table td{padding:6px 5px;font-size:9px}body.print-preview .invoice-pdf .pdf-totals,body.print-preview .order-pdf .pdf-totals{margin:12px 0 14px auto}body.print-preview .invoice-pdf .pdf-terms,body.print-preview .order-pdf .pdf-terms{font-size:9px;line-height:1.3}body.print-preview .order-pdf .pdf-table img{width:45px;height:34px}}
.order-print-actions{display:flex;justify-content:flex-end;gap:8px;max-width:900px;margin:0 auto 12px}
@media print{body:has(.modal.invoice-document-modal.open) main,body:has(.modal.invoice-document-modal.open) .sidebar,body:has(.modal.invoice-document-modal.open) .modal-backdrop,body:has(.modal.invoice-document-modal.open) .modal-close,body:has(.modal.invoice-document-modal.open) .preview-toolbar{display:none!important}body:has(.modal.invoice-document-modal.open) .modal.invoice-document-modal{display:block!important;position:static!important;transform:none!important;width:auto!important;max-height:none!important;overflow:visible!important;padding:0!important;background:#fff!important;border-radius:0!important;box-shadow:none!important}body:has(.modal.invoice-document-modal.open) .invoice-pdf,body:has(.modal.invoice-document-modal.open) .order-pdf{width:190mm!important;min-height:277mm!important;max-height:277mm!important;margin:0 auto!important;padding:8mm 10mm!important;box-sizing:border-box!important;overflow:hidden!important;box-shadow:none!important;page-break-inside:avoid!important;break-inside:avoid-page!important}.order-print-actions{display:none!important}}
@media print{body.print-preview .invoice-pdf,body.print-preview .order-pdf,body:has(.modal.invoice-document-modal.open) .invoice-pdf,body:has(.modal.invoice-document-modal.open) .order-pdf{width:210mm!important;height:297mm!important;min-height:297mm!important;max-height:297mm!important;margin:0!important;padding:10mm 12mm!important;box-sizing:border-box!important;overflow:hidden!important;font-size:13px!important}body.print-preview .invoice-pdf .pdf-topline,body.print-preview .order-pdf .pdf-topline,body:has(.modal.invoice-document-modal.open) .invoice-pdf .pdf-topline,body:has(.modal.invoice-document-modal.open) .order-pdf .pdf-topline{height:7px!important;margin-bottom:22px!important}body.print-preview .invoice-pdf header img,body.print-preview .order-pdf header img,body:has(.modal.invoice-document-modal.open) .invoice-pdf header img,body:has(.modal.invoice-document-modal.open) .order-pdf header img{width:125px!important;height:90px!important}body.print-preview .invoice-pdf header h1,body.print-preview .order-pdf header h1,body:has(.modal.invoice-document-modal.open) .invoice-pdf header h1,body:has(.modal.invoice-document-modal.open) .order-pdf header h1{font-size:27px!important;margin:10px 0!important}body.print-preview .invoice-pdf .pdf-parties,body.print-preview .order-pdf .pdf-parties,body:has(.modal.invoice-document-modal.open) .invoice-pdf .pdf-parties,body:has(.modal.invoice-document-modal.open) .order-pdf .pdf-parties{margin:23px 0!important;gap:25px!important}body.print-preview .invoice-pdf .pdf-table,body.print-preview .order-pdf .pdf-table,body:has(.modal.invoice-document-modal.open) .invoice-pdf .pdf-table,body:has(.modal.invoice-document-modal.open) .order-pdf .pdf-table{margin-top:20px!important}body.print-preview .invoice-pdf .pdf-table th,body.print-preview .invoice-pdf .pdf-table td,body.print-preview .order-pdf .pdf-table th,body.print-preview .order-pdf .pdf-table td,body:has(.modal.invoice-document-modal.open) .invoice-pdf .pdf-table th,body:has(.modal.invoice-document-modal.open) .invoice-pdf .pdf-table td,body:has(.modal.invoice-document-modal.open) .order-pdf .pdf-table th,body:has(.modal.invoice-document-modal.open) .order-pdf .pdf-table td{padding:11px 9px!important;font-size:12px!important}body.print-preview .invoice-pdf .pdf-totals,body.print-preview .order-pdf .pdf-totals,body:has(.modal.invoice-document-modal.open) .invoice-pdf .pdf-totals,body:has(.modal.invoice-document-modal.open) .order-pdf .pdf-totals{margin:22px 0 30px auto!important}body.print-preview .invoice-pdf .pdf-terms,body.print-preview .order-pdf .pdf-terms,body:has(.modal.invoice-document-modal.open) .invoice-pdf .pdf-terms,body:has(.modal.invoice-document-modal.open) .order-pdf .pdf-terms{font-size:13px!important;line-height:1.55!important}body.print-preview .order-pdf .pdf-table img,body:has(.modal.invoice-document-modal.open) .order-pdf .pdf-table img{width:55px!important;height:42px!important}}
.invoice-editor #invTerms{display:none}.invoice-editor .document-toggle:has(#invShowTerms:checked)+#invTerms{display:block}.invoice-editor .document-toggle{margin-top:22px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:#faf9f6}
.vat-model-note{display:block;margin-top:6px;color:#6f675b;line-height:1.35}
.invoice-vat-note{display:none!important}.invoice-vat-note.reverse-vat-note{display:block!important;margin-top:18px;padding:12px 14px;border-left:3px solid #d7ae24;background:#faf7ed}
.invoice-vat-note h4{margin:0 0 5px}.invoice-vat-note p{margin:0;white-space:pre-line}
.variant-summary{display:flex;justify-content:space-between;align-items:center;margin-top:20px;padding:16px 18px;border-radius:10px;background:#faf7ed;border:1px solid #eadca9}.variant-summary strong{font-size:20px;color:#9a7100}
.variant-picker-layout{display:grid;grid-template-columns:220px 1fr;gap:22px;align-items:start}.variant-preview{width:220px;height:220px;object-fit:contain;border:1px solid #e5e0d7;border-radius:10px;background:#fff}@media(max-width:700px){.variant-picker-layout{grid-template-columns:1fr}.variant-preview{width:100%;height:240px}}
.build-version{padding:8px 16px;color:#8e94a1;font-size:10px;letter-spacing:.4px}
.modal.order-edit-modal{width:min(1260px,calc(100vw - 32px));padding:0;background:#f6f5f2}.order-edit-modal .preview-toolbar{padding:16px 64px 16px 24px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:3}.order-edit-modal .modal-close{z-index:5}.order-edit-sheet{padding:22px 24px 28px}.order-client-editor{background:#fff;border:1px solid var(--line);border-radius:11px;padding:18px;margin-bottom:18px}.order-client-editor .client-editor-head{margin-bottom:16px}.order-client-editor .client-editor-head strong,.order-client-editor .client-editor-head small{display:block}.order-client-editor .client-editor-head small{color:var(--muted);margin-top:4px}.order-client-editor .form-grid{margin-bottom:0}.order-edit-table-wrap{background:#fff;border:1px solid var(--line);border-radius:11px;overflow-x:auto}.order-edit-table{min-width:1050px;table-layout:fixed}.order-edit-table col.oe-photo{width:98px}.order-edit-table col.oe-product{width:34%}.order-edit-table col.oe-qty{width:9%}.order-edit-table col.oe-unit{width:8%}.order-edit-table col.oe-price{width:11%}.order-edit-table col.oe-discount{width:9%}.order-edit-table col.oe-total{width:13%}.order-edit-table col.oe-action{width:42px}.order-edit-table td{padding:10px 8px;vertical-align:middle}.order-edit-table input{display:block;width:100%;min-width:0;border:1px solid #dedbd3;border-radius:6px;background:#fff;padding:8px;font:inherit}.order-edit-table input:focus{outline:0;border-color:#c5a33b;box-shadow:0 0 0 2px #f8efcf}.order-edit-table .line-product-name{font-weight:800}.order-edit-table .line-description,.order-edit-table .line-note{margin-top:5px}.order-edit-table .line-note{color:#7b6525;font-style:italic}.order-edit-table .discount-cell{display:table-cell;white-space:nowrap}.order-edit-table .discount-cell input{display:inline-block;width:calc(100% - 20px)}.order-image-editor,.order-image-editor .thumb{width:78px;height:60px}.order-image-editor .thumb{object-fit:cover;border-radius:6px}.order-edit-line-total{white-space:nowrap}.order-edit-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-top:16px}.order-edit-footer .order-edit-totals{padding-top:0;margin:0 0 0 auto;width:360px}.order-edit-footer .total-line{padding:7px 0}@media(max-width:800px){.order-edit-sheet{padding:14px}.order-client-editor .form-grid{grid-template-columns:1fr}.order-edit-footer{flex-direction:column}.order-edit-footer .order-edit-totals{width:100%}}
.order-edit-table .order-image-editor input{display:none}
.catalog-pick-thumb{width:58px;height:46px;object-fit:cover;border-radius:6px;background:#f3f1ec}.invoice-add-product{margin:0 0 14px}.invoice-edit-table .remove{font-size:20px}.invoice-edit-table th:last-child{width:42px}.table-card .small{padding:7px 9px;font-size:11px}
.document-print-frame{position:fixed;left:-10000px;top:0;width:210mm;height:297mm;border:0}.invoice-source-link{border:0;background:none;padding:0;color:var(--blue);font:inherit;font-weight:800;text-decoration:underline;cursor:pointer}
.pdf-table{table-layout:fixed;width:100%}.pdf-table th,.pdf-table td{vertical-align:top}.pdf-table th:last-child,.pdf-table td:last-child{text-align:right;padding-right:2px!important;width:18%}.pdf-table th:nth-last-child(2),.pdf-table td:nth-last-child(2){text-align:right}.pdf-table th:nth-child(n+3),.pdf-table td:nth-child(n+3){padding-left:12px}.pdf-table td:nth-child(2) strong{font-size:14px;line-height:1.3}.pdf-table td:nth-child(2) small,.pdf-table td:nth-child(1) small{font-size:12px;line-height:1.35}.invoice-no-images td:first-child strong{font-size:14px}.invoice-no-images td:first-child small{font-size:12px}.save-product-row.hidden{display:none!important}.invoice-product-actions,.product-row-actions{white-space:nowrap}.fixed-workspace-size{width:min(1220px,calc(100vw - 24px))!important;height:calc(100vh - 24px)!important;max-height:calc(100vh - 24px)!important}.fixed-workspace-size #modalBody{min-height:100%}.fixed-workspace-size .workspace-panel{min-height:calc(100vh - 150px);overflow:auto}.fixed-workspace-size .order-offer-snapshot{width:794px;max-width:100%}.invoice-document-modal.has-unsaved .preview-toolbar:after{content:'Neišsaugoti pakeitimai';color:#b64343;font-size:12px;font-weight:800;margin-left:12px}
.pdf-table th:nth-child(n+3),.pdf-table td:nth-child(n+3){text-align:right!important}.pdf-table th:first-child,.pdf-table td:first-child{width:13%}.pdf-table th:nth-child(2),.pdf-table td:nth-child(2){width:37%}.invoice-no-images th:first-child,.invoice-no-images td:first-child{width:46%;text-align:left!important}.invoice-no-images th:nth-child(n+2),.invoice-no-images td:nth-child(n+2){text-align:right!important}.pdf-table td:nth-child(2) strong,.invoice-no-images td:first-child strong{font-size:15px!important}.pdf-table td:nth-child(2) small,.invoice-no-images td:first-child small{font-size:13px!important}.invoice-unsaved-overlay{position:absolute;inset:0;z-index:30;background:#18191e99;display:grid;place-items:center;padding:20px}.invoice-unsaved-card{background:#fff;border-radius:13px;padding:25px;width:min(520px,100%);box-shadow:0 20px 60px #0005}.invoice-editor-number{font-size:13px;color:var(--blue)}.invoice-payment-history{margin-top:25px}.invoice-payment-history h4{color:var(--blue)}.invoice-payment-history table{max-width:520px;margin-left:auto}.invoice-payment-history th,.invoice-payment-history td{padding:8px 10px}.invoice-payment-history td:last-child,.invoice-payment-history th:last-child{text-align:right}
.invoice-no-images:has(th:nth-child(5)) th:nth-child(1),.invoice-no-images:has(th:nth-child(5)) td:nth-child(1){width:46%!important}.invoice-no-images:has(th:nth-child(5)) th:nth-child(2),.invoice-no-images:has(th:nth-child(5)) td:nth-child(2){width:12%!important}.invoice-no-images:has(th:nth-child(5)) th:nth-child(3),.invoice-no-images:has(th:nth-child(5)) td:nth-child(3){width:15%!important}.invoice-no-images:has(th:nth-child(5)) th:nth-child(4),.invoice-no-images:has(th:nth-child(5)) td:nth-child(4){width:11%!important}.invoice-no-images:has(th:nth-child(5)) th:nth-child(5),.invoice-no-images:has(th:nth-child(5)) td:nth-child(5){width:16%!important}.invoice-no-images:not(:has(th:nth-child(5))) th:nth-child(1),.invoice-no-images:not(:has(th:nth-child(5))) td:nth-child(1){width:55%!important}.invoice-no-images:not(:has(th:nth-child(5))) th:nth-child(n+2),.invoice-no-images:not(:has(th:nth-child(5))) td:nth-child(n+2){width:15%!important}.invoice-no-images th,.invoice-no-images td{white-space:normal}.invoice-no-images td:not(:first-child) strong{white-space:nowrap}.invoice-edit-table{table-layout:fixed!important}.invoice-edit-table th:nth-child(1){width:34%!important}.invoice-edit-table th:nth-child(2){width:10%!important}.invoice-edit-table th:nth-child(3){width:9%!important}.invoice-edit-table th:nth-child(4){width:13%!important}.invoice-edit-table th:nth-child(5){width:11%!important}.invoice-edit-table th:nth-child(6){width:16%!important}.invoice-edit-table th:last-child{width:7%!important}.invoice-product-actions{display:table-cell!important}.invoice-product-actions .remove{margin-left:8px}.preview-actions{flex-wrap:wrap}
.invoice-document-modal:has(.invoice-editor){width:min(1320px,calc(100vw - 24px))}.invoice-document-modal:has(.invoice-editor) .preview-toolbar{display:flex;align-items:center;gap:16px}.invoice-document-modal:has(.invoice-editor) .preview-actions{margin-left:auto;display:flex;flex-wrap:nowrap;gap:8px}.invoice-document-modal:has(.invoice-editor) .preview-actions button{white-space:nowrap}.catalog-product{cursor:pointer}.modal.catalog-detail-modal{width:min(1380px,calc(100vw - 24px));max-height:calc(100vh - 24px)}.catalog-detail-head{display:flex;justify-content:space-between;align-items:flex-start;position:sticky;top:0;background:#fff;z-index:2;padding-bottom:14px}.catalog-base-fields{margin:10px 0 24px}.catalog-variant-editor{display:grid;gap:10px}.catalog-variant-row{display:grid;grid-template-columns:72px 1fr 1fr 1fr 1fr 110px 1.5fr;gap:8px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:9px;background:#faf9f6}.catalog-variant-row img{width:66px;height:55px;object-fit:cover;border-radius:6px}.catalog-variant-row .form-control{min-width:0}.variant-image-url{font-size:11px}
.exact-pdf-source{display:none!important}.exact-pdf-preview{display:block;width:min(900px,100%);height:calc(100vh - 155px);min-height:650px;margin:0 auto;border:0;background:#dfe1e5}.exact-pdf-loading{height:calc(100vh - 155px);min-height:650px;display:grid;place-items:center;color:var(--muted);font-weight:700;background:#e5e5e5}.invoice-document-modal:has(.exact-pdf-preview),.pdf-modal:has(.exact-pdf-preview){width:min(1040px,calc(100vw - 20px));height:calc(100vh - 20px);max-height:calc(100vh - 20px);overflow:hidden}.invoice-document-modal:has(.exact-pdf-preview) .preview-toolbar,.pdf-modal:has(.exact-pdf-preview) .preview-toolbar{position:sticky;top:0;z-index:4}
.preinvoice-conversion-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 22px;background:#fff8df;border-top:1px solid #ead694;border-bottom:1px solid #d9c16a;position:sticky;top:70px;z-index:5}.preinvoice-conversion-bar span{font-weight:700;color:#574711}.preinvoice-conversion-bar button{white-space:nowrap}
.invoice-document-modal:has(.exact-pdf-preview){width:min(1320px,calc(100vw - 16px))}.invoice-document-modal:has(.exact-pdf-preview) .preview-toolbar{display:flex;align-items:center;gap:14px}.invoice-document-modal:has(.exact-pdf-preview) .preview-actions{display:flex;flex-wrap:nowrap;gap:8px;margin-left:auto}.invoice-document-modal:has(.exact-pdf-preview) .preview-actions button{white-space:nowrap;padding-left:14px;padding-right:14px}
.modal.invoice-document-modal:has(.invoice-pdf){width:min(1320px,calc(100vw - 16px))!important}.modal.invoice-document-modal:has(.invoice-pdf) .preview-toolbar{display:grid!important;grid-template-columns:minmax(160px,190px) minmax(0,1fr);align-items:center;column-gap:10px;padding-left:20px;padding-right:58px}.modal.invoice-document-modal:has(.invoice-pdf) .preview-actions{margin-left:0!important;display:flex!important;flex-flow:row nowrap!important;justify-content:flex-end;gap:7px;min-width:0}.modal.invoice-document-modal:has(.invoice-pdf) .preview-actions button{flex:0 0 auto;white-space:nowrap;padding-left:12px;padding-right:12px}
.delivery-note-table th:last-child,.delivery-note-table td:last-child{width:24%!important;text-align:right}.delivery-note-table td{font-size:14px!important}.delivery-note-table small{display:block;margin-top:5px;color:#666}.delivery-signatures{display:grid;grid-template-columns:1fr 1fr;gap:70px;margin-top:70px}.delivery-signatures>div{border-top:1px solid #777;padding-top:8px}.delivery-signatures span{display:block;color:#777;font-size:11px;margin-top:5px}
.offer-reminders-card{padding-bottom:18px;margin-bottom:20px;border-color:#dfbd4b}.offer-reminders-card>p{padding:0 20px;color:#666}.reminder-count{margin-left:auto;background:#fff0bd;color:#745300;border-radius:14px;padding:4px 10px;font-weight:800}.offer-reminder-table{margin:14px 20px 0;border:1px solid var(--line);border-radius:9px;overflow:hidden}.offer-reminder-head,.offer-reminder-row{display:grid;grid-template-columns:150px 1fr 130px minmax(270px,auto);gap:12px;align-items:center;padding:10px 12px}.offer-reminder-head{background:#faf8f2;color:#6f7078;font-size:11px;font-weight:800;text-transform:uppercase}.offer-reminder-row{border-top:1px solid var(--line)}.offer-reminder-row>div{display:flex;gap:6px;justify-content:flex-end}.offer-reminder-row button{padding:8px 11px}@media(max-width:850px){.offer-reminder-head{display:none}.offer-reminder-row{grid-template-columns:1fr}.offer-reminder-row>div{justify-content:flex-start;flex-wrap:wrap}}
.email-config-status{margin:14px 0;padding:10px 12px;border-radius:8px;background:#fff1d2;color:#795900;font-weight:750}.email-config-status.connected{background:#e5f4ed;color:#28725a}#hostingerEmailSettings .field{margin:14px 0}#hostingerEmailSettings .secondary{margin-top:4px}
.email-settings-actions{display:flex;gap:8px;align-items:center}.email-settings-actions button{margin-top:4px}
#mailDefaultSettings .field{margin:13px 0}#mailDefaultSettings>p{color:#666;line-height:1.5}#mailDefaultSettings button{margin-top:5px}
.mail-defaults-inline{margin:18px 0;padding:18px;border:1px solid #dfc56c;border-radius:10px;background:#fffbec}.mail-defaults-inline h3{margin:0 0 6px}.mail-defaults-inline>p{margin:0 0 15px;color:#666}.mail-default-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mail-default-grid .field{margin:0!important}@media(max-width:850px){.mail-default-grid{grid-template-columns:1fr}}
.email-recipient-options{margin:10px 0 16px;padding:12px;border:1px solid #e0d8bd;border-radius:9px;background:#fffaf0}.email-recipient-options>label{display:flex;align-items:center;gap:8px}.email-recipient-options .field{margin-top:12px}.recipient-disabled{opacity:.55}
.top-actions .icon-btn{position:relative}.top-actions #crmNotificationCount{position:absolute;right:-5px;top:-7px;min-width:18px;height:18px;padding:0 4px;border-radius:10px;background:#b64343;color:#fff;font:700 10px/18px Arial;text-align:center}.top-actions #crmNotificationCount:empty,.top-actions #crmNotifications.no-alert .dot{display:none}.crm-help h3{margin:20px 0 5px}.crm-help p{margin:0;color:#5f6067;line-height:1.5}.crm-notification-list{display:grid;gap:8px;margin-top:16px}.crm-notification-item{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:11px;align-items:center;width:100%;padding:12px;border:1px solid var(--line);border-radius:9px;background:#fff;text-align:left;cursor:pointer}.crm-notification-item:hover{border-color:#d4ae30;background:#fffaf0}.crm-notification-item i{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#f5e8bc;color:#725500;font-style:normal;font-weight:800}.crm-notification-item strong,.crm-notification-item small{display:block}.crm-notification-item small{margin-top:3px;color:var(--muted)}.crm-notification-item time{font-size:11px;color:var(--muted);white-space:nowrap}.crm-notification-empty{padding:28px;text-align:center;color:var(--muted)}
.crm-replied-message{margin:24px 0;padding:14px 16px;border:1px solid #dedbd3;border-left:4px solid #d8ad2f;border-radius:8px;background:#faf9f6}
.crm-replied-message summary{cursor:pointer;color:#333}
.crm-replied-message .email-meta{margin-top:12px}
.crm-mail-list .thread.unread{border-left:4px solid #d8ad2f;background:#fffaf0}
.client-name-link{appearance:none;border:0;border-bottom:1px dashed #b98c1d;background:transparent;color:var(--blue);font:inherit;font-weight:750;padding:0 0 2px;cursor:pointer;text-align:left}.client-name-link:hover{color:#9b7416;border-bottom-style:solid}.invoice-client-toolbar-link{display:block;width:max-content;margin-top:5px;font-size:12px}.client-contact-modal{width:min(760px,calc(100vw - 32px))}.client-contact-card{padding:4px}.client-contact-heading{display:flex;align-items:center;gap:14px;padding:4px 2px 20px;border-bottom:1px solid var(--line)}.client-contact-heading .avatar{width:52px;height:52px;font-size:17px;background:#f5e8b8;color:#755b12}.client-contact-heading h2{margin:0 0 5px}.client-contact-heading p{margin:0;color:var(--muted)}.client-contact-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px;padding:22px 0}.client-contact-details{display:grid;align-content:start;gap:10px}.client-contact-action{display:flex;align-items:center;gap:13px;min-height:62px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);text-decoration:none}.client-contact-action:not(.static):hover{border-color:#d8ad2f;background:#fffaf0}.client-contact-action>span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#f8f0d5;color:#80651a;font-size:17px}.client-contact-action div{min-width:0;display:flex;flex-direction:column;gap:4px}.client-contact-action small{color:var(--muted)}.client-contact-action strong{overflow-wrap:anywhere}.client-contact-meta{padding:8px 14px;color:var(--muted);line-height:1.65}.client-qr-panel{display:flex;flex-direction:column;align-items:center;text-align:center;padding:17px;border-radius:12px;background:#f7f6f2;border:1px solid var(--line)}.client-qr-panel img{display:block;width:210px;max-width:100%;aspect-ratio:1;background:#fff;border-radius:8px}.client-qr-panel strong{margin-top:12px}.client-qr-panel small{color:var(--muted);line-height:1.45;margin:5px 0 13px}.client-vcard-download{text-decoration:none;width:100%;text-align:center}.client-related-documents{border-top:1px solid var(--line);padding-top:18px}.client-related-documents h3{margin:0 0 11px;font-size:13px;text-transform:uppercase;letter-spacing:.5px}.client-related-documents>div{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:680px){.client-contact-layout{grid-template-columns:1fr}.client-qr-panel{order:-1}.client-qr-panel img{width:190px}}
