:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#292b32;background:#f6f5f2;font-synthesis:none;--red:#c92f3b;--ink:#292b32;--muted:#72757c;--line:#e8e7e3;--green:#28765a}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:3px solid #a1c5ff;outline-offset:3px}button{border:0}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:32px;letter-spacing:-1.1px;line-height:1.2}h2{font-size:19px;letter-spacing:-.45px}h3{font-size:16px}small{font-size:12px}.muted{color:var(--muted)}.mono,.amount{font-variant-numeric:tabular-nums}.shell{min-height:100dvh}.sidebar{position:fixed;width:228px;inset:0 auto 0 0;background:white;border-right:1px solid var(--line);padding:32px 18px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:10px;padding:0 12px;margin-bottom:45px}.brand-mark{background:var(--red);color:white;width:43px;height:43px;border-radius:15px;display:grid;place-items:center;font-size:27px;font-weight:900;letter-spacing:-3px;padding-right:3px}.brand strong{display:block;font-size:19px;letter-spacing:1.4px}.brand span{font-size:12px;color:var(--muted)}.nav{display:flex;flex-direction:column;gap:7px}.nav button{display:flex;align-items:center;gap:13px;padding:15px 17px;background:transparent;color:#777981;text-align:left;border-radius:12px;font-size:14px;font-weight:600;min-height:50px}.nav button.active{background:#faeceb;color:var(--red)}.nav button.active:after{content:"";width:6px;height:6px;border-radius:50%;background:var(--red);margin-left:auto}.sidebar-bottom{margin-top:auto;padding:24px 12px 0}.sidebar-note{font-size:12px;line-height:1.7;margin-top:15px;color:#8b8c91}.main{margin-left:228px;padding:0 38px 32px;max-width:1700px}.topbar{height:94px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);margin-bottom:32px}.breadcrumb{font-size:13px;color:var(--muted)}.breadcrumb b{font-weight:600;color:var(--ink)}.top-tools{display:flex;gap:12px;align-items:center}.date{font-size:12px;color:#73767c}.avatar{width:37px;height:37px;border-radius:50%;background:#f0e2d3;display:grid;place-items:center;color:#805d3b;font-size:12px;font-weight:700}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid var(--line);min-height:46px;padding:12px 17px;border-radius:10px;background:white;font-size:13px;font-weight:650;color:var(--ink);text-decoration:none;line-height:1.2}.btn:hover{filter:brightness(.97)}.btn.primary{background:var(--red);border-color:var(--red);color:white}.btn.dark{background:var(--ink);border-color:var(--ink);color:white}.btn.ghost{background:transparent;border-color:transparent}.btn.danger{color:var(--red);background:#fbeded;border-color:#f5d4d6}.btn.small{padding:8px 12px;min-height:40px;font-size:12px}.btn.full{width:100%}.icon-button{background:transparent;display:grid;place-items:center;width:44px;height:44px;border-radius:10px;color:#71737a}.icon-button:hover{background:#f1f1ee}.page-title{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:27px}.eyebrow{font-size:11px;letter-spacing:1.8px;text-transform:uppercase;color:var(--red);font-weight:750;margin-bottom:10px}.subtitle{margin-top:9px;color:var(--muted);font-size:13px;line-height:1.6}.flex{display:flex;align-items:center;gap:10px}.wrap{flex-wrap:wrap}.spaced{justify-content:space-between}.banner{border:1px solid #e9c88e;background:#fff4dc;color:#856020;font-size:12px;line-height:1.6;padding:12px 16px;border-radius:11px;margin-bottom:22px;display:flex;align-items:center;justify-content:space-between;gap:12px}.hero{background:#c92f3b;border-radius:20px;display:grid;grid-template-columns:1.3fr 1fr;overflow:hidden;color:white;margin-bottom:22px;position:relative}.hero-main{padding:28px 32px;position:relative}.hero-main:after{content:"";width:165px;height:165px;border:32px solid #ffffff0a;position:absolute;right:-35px;top:-55px;border-radius:50%;pointer-events:none}.hero-label{display:flex;align-items:center;gap:9px;font-size:12px;color:#ffdfe2}.hero-amount{font-size:43px;font-weight:700;letter-spacing:-1.5px;margin:13px 0 11px}.hero-amount span{font-size:22px;font-weight:400;opacity:.8;letter-spacing:0;margin-right:5px}.hero-foot{font-size:12px;color:#ffdfe2}.hero-aside{padding:26px 30px;border-left:1px solid #ffffff25;display:flex;flex-direction:column;justify-content:center;gap:20px}.hero-stat{display:flex;align-items:center;gap:14px}.hero-icon{background:#ffffff14;padding:10px;border-radius:12px;display:grid;place-items:center}.hero-stat span{font-size:11px;color:#ffdde0;display:block;margin-bottom:4px}.hero-stat strong{font-size:20px;letter-spacing:-.4px}.category-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:28px}.category-card{text-align:left;background:white;border:1px solid var(--line);border-radius:15px;padding:20px;display:flex;gap:16px;align-items:center;transition:transform .15s}.category-card:hover{transform:translateY(-2px)}.category-icon{width:48px;height:51px;display:grid;place-items:center;border-radius:13px;background:#e8f0f8;color:#567c9c}.category-icon.ice{background:#eaf3ef;color:#527e70}.category-icon svg{width:26px;height:26px}.category-card h3{font-size:14px}.category-card small{font-size:11px;color:var(--muted);display:block;margin-top:5px}.category-card .amount{font-weight:750;font-size:19px;margin-left:auto;white-space:nowrap;letter-spacing:-.5px}.category-card .amount small{text-align:right;font-weight:400;letter-spacing:0}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:12px}.count{font-size:11px;background:#eeedea;color:#75767c;padding:3px 8px;border-radius:5px;margin-left:8px;font-weight:500}.panel{background:white;border:1px solid var(--line);border-radius:16px;overflow:hidden}.panel-pad{padding:24px}.overview-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:22px}.supplier-row{padding:18px 20px;display:flex;align-items:center;gap:13px;border-bottom:1px solid #f0efed}.supplier-row:last-child{border:0}.supplier-initials{width:39px;height:39px;border-radius:12px;background:#f1ebe4;color:#927459;display:grid;place-items:center;font-size:12px;font-weight:700;flex-shrink:0}.supplier-data{min-width:0;flex:1}.supplier-data strong{font-size:13px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.supplier-data span{font-size:11px;color:var(--muted);display:block;margin-top:4px}.supplier-value{text-align:right}.supplier-value strong{font-size:14px}.badge{display:inline-flex;align-items:center;gap:4px;border-radius:5px;padding:4px 7px;font-size:10px;font-weight:650;white-space:nowrap;background:#f3f2ef;color:#72757c}.badge.red{background:#fcecef;color:#b83843}.badge.green{background:#edf5ef;color:#40816b}.badge.blue{background:#eaf1f8;color:#527a9c}.empty{padding:38px 22px;text-align:center}.empty .empty-icon{width:49px;height:49px;border-radius:50%;background:#f5f3ee;margin:0 auto 16px;display:grid;place-items:center;color:#b8a28c}.empty h3{font-size:14px;margin-bottom:8px}.empty p{font-size:12px;color:var(--muted);line-height:1.65;max-width:300px;margin:0 auto 17px}.activity-row{display:flex;align-items:flex-start;gap:12px;padding:16px 20px;border-bottom:1px solid #f0efed}.activity-row:last-child{border:0}.activity-icon{width:31px;height:31px;background:#f6efeb;color:#b08b67;border-radius:50%;display:grid;place-items:center}.activity-icon svg{width:15px;height:15px}.activity-icon.payment{color:#46826c;background:#edf5f1}.activity-text{flex:1;font-size:12px;min-width:0}.activity-text strong{display:block;font-size:12px}.activity-text span{display:block;color:var(--muted);font-size:10px;margin-top:5px}.activity-amount{font-size:12px;font-weight:700;text-align:right}.bottom-note{font-size:11px;color:#96979b;display:flex;align-items:center;justify-content:space-between;margin-top:29px;gap:12px}.bottom-note svg{width:14px;height:14px}.tabs{display:flex;gap:5px;padding:5px;border-radius:12px;background:#ebeae6;width:fit-content;margin-bottom:24px}.tabs button{padding:12px 21px;border-radius:9px;background:transparent;color:#75777d;font-size:13px;font-weight:650;min-height:46px;display:flex;gap:9px;align-items:center}.tabs button.selected{background:white;color:var(--red);box-shadow:0 2px 5px #23232309}.group-top{display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center;margin-bottom:24px}.group-description{font-size:13px;color:var(--muted);line-height:1.7;margin-top:7px}.balance-box{background:#fceced;border-radius:14px;padding:18px 25px;min-width:200px}.balance-box small{font-size:11px;color:#a25b60}.balance-box strong{display:block;font-size:27px;margin-top:6px;letter-spacing:-.9px;color:var(--red)}.toolbar{display:flex;gap:12px;align-items:center;margin-bottom:19px;flex-wrap:wrap}.search-wrap{position:relative;flex:1;min-width:150px}.search-wrap svg{position:absolute;left:13px;top:13px;color:#97999f;width:18px}.search-wrap input{padding-left:40px}.input,select,textarea,input[type=date]{width:100%;border:1px solid #dedfdc;border-radius:9px;min-height:46px;padding:11px 12px;background:white;color:var(--ink);font-size:14px;outline:none}.input:focus,select:focus,textarea:focus,input:focus{border-color:#c56a70;box-shadow:0 0 0 3px #c92f3b12}input::placeholder,textarea::placeholder{color:#a2a3a8}label{display:block;font-size:12px;font-weight:650;color:#60636b;margin-bottom:7px}.field{margin-bottom:18px}.field small{display:block;line-height:1.6;color:#8a8c93;font-size:11px;margin-top:6px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 17px}.form-grid .wide{grid-column:1/-1}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}th{padding:13px 18px;color:#86888e;background:#fafaf8;font-size:10px;text-transform:uppercase;letter-spacing:.6px;font-weight:650;white-space:nowrap;border-bottom:1px solid var(--line)}td{padding:16px 18px;border-bottom:1px solid #f0efed;vertical-align:middle}tbody tr:last-child td{border-bottom:0}td strong{font-size:12px}td .muted{font-size:11px;margin-top:4px}.text-right{text-align:right}.nowrap{white-space:nowrap}.summary-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:24px}.mini-stat{padding:20px;background:white;border:1px solid var(--line);border-radius:14px}.mini-stat span{font-size:11px;color:var(--muted)}.mini-stat strong{display:block;font-size:23px;letter-spacing:-.7px;margin-top:9px}.filter-grid{display:grid;grid-template-columns:1fr 1fr 1.2fr 1fr;gap:12px;margin-bottom:19px}.filter-grid label{font-size:10px}.filter-grid .field{margin-bottom:0}.detail-header{display:flex;gap:16px;align-items:center;margin-bottom:24px}.detail-header .supplier-initials{width:58px;height:58px;font-size:18px}.detail-header h1{font-size:26px}.detail-header p{font-size:12px;color:var(--muted);margin-top:6px}.note{padding:15px 17px;border-radius:10px;background:#f7f6f2;font-size:12px;color:#76776d;line-height:1.7}.note.info{background:#eef3f8;color:#5b758c}.note.warning{background:#fff4de;color:#85612f}.note svg{vertical-align:middle;width:17px;height:17px;margin-right:5px}.backup-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.backup-card{padding:27px;background:white;border:1px solid var(--line);border-radius:15px}.backup-card .category-icon{margin-bottom:21px}.backup-card p{font-size:13px;line-height:1.7;color:var(--muted);margin:12px 0 23px}.backup-card h2{font-size:18px}.step{display:flex;gap:12px;font-size:12px;line-height:1.8;color:#74777e;margin-top:15px}.step b{width:23px;height:23px;border-radius:50%;background:#f3f0ea;flex-shrink:0;display:grid;place-items:center;font-size:10px}.login{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr}.login-art{background:var(--red);color:white;display:flex;flex-direction:column;justify-content:center;padding:65px;position:relative;overflow:hidden}.login-art:after{content:"";position:absolute;width:350px;height:350px;border-radius:50%;border:70px solid #ffffff09;bottom:-150px;right:-100px}.login-art h1{font-size:49px;max-width:450px;letter-spacing:-2px;line-height:1.1}.login-art p{font-size:15px;line-height:1.8;color:#ffdde0;max-width:330px;margin-top:25px}.login-art .brand{padding:0;position:absolute;top:40px}.login-art .brand-mark{background:#fff;color:var(--red)}.login-art .brand span{color:#ffdfe2}.login-form{display:flex;justify-content:center;align-items:center;padding:35px}.login-form form{max-width:360px;width:100%}.login-form h2{font-size:27px;margin-bottom:11px}.login-form p{font-size:13px;color:var(--muted);line-height:1.7;margin-bottom:28px}.login-form .btn{min-height:49px}.login-info{font-size:11px!important;text-align:center;margin-top:22px;color:#999!important}dialog{padding:0;width:min(600px,calc(100vw - 32px));max-height:calc(100dvh - 36px);border:0;border-radius:18px;color:var(--ink);box-shadow:0 30px 100px #0003}dialog::backdrop{background:#20222c66;backdrop-filter:blur(3px)}.dialog-head{padding:21px 24px 17px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:20px}.dialog-body{padding:23px 24px;max-height:calc(100dvh - 205px);overflow:auto}.dialog-foot{padding:17px 24px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px;background:#fcfcfa}.dialog-error{font-size:12px;color:#ae2431;padding:12px;background:#ffeded;border-radius:9px;margin-bottom:17px;line-height:1.6}.dialog-error:empty{display:none}.line-item{padding:17px;background:#f7f7f4;border:1px solid #eae9e4;border-radius:11px;margin-bottom:14px}.line-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;font-size:13px;font-weight:700}.line-fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}.line-fields label{font-size:10px}.line-fields input,.line-fields select{padding:9px 10px;font-size:13px}.line-optional{font-weight:400;font-size:10px;color:var(--muted)}.total-box{display:flex;align-items:center;justify-content:space-between;margin:20px 0 3px;padding:15px 17px;border-radius:10px;background:#fcebed;color:#9f3640;font-size:12px}.total-box strong{font-size:24px;letter-spacing:-.8px}.check-label{display:flex;align-items:center;gap:11px;font-size:13px;min-height:46px;font-weight:500;color:var(--ink)}.check-label input{accent-color:var(--red);width:18px;height:18px}.hidden{display:none!important}#toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%) translateY(100px);padding:15px 23px;max-width:calc(100vw - 28px);border-radius:12px;background:#272c32;color:white;font-size:13px;box-shadow:0 8px 35px #0002;opacity:0;transition:.2s;z-index:30;pointer-events:none}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.detail-list{display:grid;grid-template-columns:1fr 1fr;gap:18px;font-size:13px}.detail-list span{font-size:11px;color:var(--muted);display:block;margin-bottom:6px}.error-screen{padding:60px;max-width:700px;margin:auto;line-height:1.7}.error-screen h1{font-size:25px}.error-screen p{margin:20px 0}.print-only{display:none}
.date-link{display:block;max-width:100%;min-height:36px;padding:5px 0;background:none;text-align:left;color:#a55f38;font-size:11px;line-height:1.5;text-decoration:underline;text-underline-offset:3px;white-space:normal}.date-link.agreed{color:var(--green)}.date-link:disabled{text-decoration:none;color:var(--muted)}.payment-plan{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#fff6e6;border:1px solid #f1e2c4;padding:22px;border-radius:14px;margin:0 0 24px}.payment-plan span{display:block;font-size:11px;color:#967646}.payment-plan strong{display:block;font-size:20px;margin:7px 0;letter-spacing:-.3px}.payment-plan p{font-size:12px;color:#887b67;line-height:1.6}.payment-plan>.btn{flex-shrink:0}
@media(max-width:760px){.payment-plan{align-items:stretch;flex-direction:column;padding:18px}.payment-plan strong{font-size:18px}}
.product-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.product-settings-card{padding:19px;border:1px solid var(--line);border-radius:12px;background:#fbfaf7}.product-settings-card h3{font-size:15px}.product-settings-card .input{font-size:20px;font-weight:650;font-variant-numeric:tabular-nums}.product-settings-card .subtitle{font-size:11px}.settings-save{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:20px}.settings-save .subtitle{font-size:12px;margin:0;max-width:470px}.settings-save .btn{flex-shrink:0}input[readonly]{background:#f1f1ed;color:#74777e;cursor:default}.line-fields input[readonly]{font-size:13px}.product-settings-card label{font-size:11px}
@media(max-width:760px){.product-settings-grid{grid-template-columns:1fr}.settings-save{align-items:stretch;flex-direction:column}.settings-save .btn{width:100%}.product-settings-card{padding:18px}.settings-save .subtitle{font-size:11px}}
@media(min-width:1450px){.main{padding-left:55px;padding-right:55px}.hero-main{padding:35px}.hero-amount{font-size:49px}}
@media(max-width:1100px){.sidebar{width:190px;padding:28px 12px}.brand{padding:0 6px;gap:8px}.brand strong{font-size:17px}.brand-mark{width:37px;height:39px}.main{margin-left:190px;padding:0 25px 28px}.overview-grid{grid-template-columns:1fr}.overview-grid>section:last-child .panel{display:grid;grid-template-columns:1fr 1fr}.hero-amount{font-size:38px}.hero-aside{padding:22px}.category-card{padding:17px;gap:12px}.category-card .amount{font-size:18px}.date{display:none}}
@media(max-width:760px){.sidebar{inset:auto 0 0 0;width:auto;height:78px;padding:5px 9px calc(5px + env(safe-area-inset-bottom));border-right:0;border-top:1px solid var(--line)}.sidebar .brand,.sidebar-bottom{display:none}.nav{flex-direction:row;justify-content:space-around;gap:3px}.nav button{flex:1;flex-direction:column;justify-content:center;gap:5px;padding:9px 3px 8px;font-size:9px;border-radius:10px;min-height:61px}.nav button svg{width:21px;height:21px}.nav button.active:after{display:none}.main{margin-left:0;padding:0 20px 104px}.topbar{height:73px;margin-bottom:25px}.breadcrumb{font-size:12px}.top-tools .btn{padding:9px;min-height:40px;font-size:11px}.top-tools .btn svg{width:17px}.avatar{width:32px;height:32px;font-size:10px}.top-tools{gap:7px}.page-title{align-items:flex-start;gap:12px;margin-bottom:22px}h1{font-size:27px}.page-title>.btn{font-size:11px;min-height:42px;padding:10px}.page-title>.btn svg{width:17px}.subtitle{font-size:12px}.eyebrow{font-size:10px;margin-bottom:8px}.hero{grid-template-columns:1fr}.hero-main{padding:23px}.hero-amount{font-size:41px}.hero-aside{border-left:0;border-top:1px solid #ffffff25;flex-direction:row;gap:25px;justify-content:flex-start;padding:19px 23px}.hero-stat{gap:10px}.hero-stat strong{font-size:17px}.hero-stat span{font-size:10px}.hero-icon{padding:8px}.hero-icon svg{width:18px;height:18px}.category-grid{gap:11px;margin-bottom:25px}.category-card{display:block;padding:17px 15px;position:relative}.category-icon{width:39px;height:41px;margin-bottom:14px;border-radius:10px}.category-icon svg{width:23px;height:23px}.category-card h3{font-size:13px}.category-card small{font-size:10px;margin-top:5px}.category-card .amount{font-size:20px;margin-top:15px;display:block}.category-card .amount small{text-align:left;font-size:10px;margin-top:4px}.overview-grid{gap:25px}.overview-grid>section:last-child .panel{display:block}.section-heading h2{font-size:17px}.supplier-row{padding:16px 14px;gap:10px}.supplier-data strong{font-size:12px}.supplier-row .btn{padding:8px;min-height:39px;font-size:11px}.supplier-value strong{font-size:13px}.bottom-note{align-items:flex-start;flex-direction:column;font-size:10px;line-height:1.7}.summary-strip{gap:9px}.mini-stat{padding:16px 12px}.mini-stat span{font-size:10px}.mini-stat strong{font-size:18px}.tabs{width:100%}.tabs button{flex:1;justify-content:center;padding:11px 10px;font-size:12px}.group-top{grid-template-columns:1fr}.balance-box{display:flex;justify-content:space-between;align-items:center;padding:16px 19px}.balance-box strong{font-size:24px;margin:0}.filter-grid{grid-template-columns:1fr 1fr}.backup-grid{grid-template-columns:1fr}.backup-card{padding:23px}.backup-card .category-icon{margin-bottom:18px}.banner{align-items:flex-start;font-size:11px}.banner .btn{min-height:34px;padding:7px;font-size:10px;white-space:nowrap}.login{grid-template-columns:1fr}.login-art{padding:100px 30px 35px}.login-art .brand{top:30px}.login-art h1{font-size:34px;max-width:350px;letter-spacing:-1px}.login-art p{font-size:13px;margin-top:16px}.login-form{padding:35px 27px}.login-form form{max-width:100%}.login-form h2{font-size:24px}.dialog-body{padding:20px}.dialog-head{padding:15px 20px}.dialog-foot{padding:15px 20px}.line-fields{gap:8px}.line-fields input,.line-fields select{font-size:12px;padding:9px 7px}.dialog-head h2{font-size:18px}#toast{bottom:95px}.detail-header h1{font-size:23px}.detail-list{gap:17px;font-size:12px}td,th{padding:14px}.error-screen{padding:30px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{body{background:white}.sidebar,.topbar,.btn,.tabs,.toolbar,.filter-grid,.bottom-note,#toast,.banner{display:none!important}.main{margin:0;padding:10px}dialog{position:static;box-shadow:none;width:100%;max-height:none}dialog::backdrop{background:white}.dialog-body{max-height:none}.dialog-foot,.dialog-head button{display:none}.shell:has(~dialog[open]){display:none}.print-only{display:block}.table-scroll{overflow:visible}}
