*{box-sizing:border-box}:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#17202a;background:#f5f7f8;font-synthesis:none}html,body,#root{min-height:100%;margin:0}body{min-width:320px}button,input,select{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh;display:flex;background:linear-gradient(135deg,#f7f3ea,#f3f6f4 48%,#eef3ef)}.sidebar{width:250px;background:linear-gradient(180deg,#173b2f,#0f2a21);color:#fff;padding:18px 14px;flex:0 0 250px;position:sticky;top:0;height:100vh;max-height:100vh;overflow:hidden;display:flex;flex-direction:column}.brand-row{display:flex;align-items:center;gap:10px;padding:8px 8px 20px;flex:0 0 auto}.brand-logo{width:40px;height:40px;object-fit:contain;border-radius:8px;background:#fff;flex:0 0 40px}.brand-mark{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:#fff;color:#111827;font-weight:800}.brand-mark.big{width:48px;height:48px;font-size:20px;margin:auto}.brand{font-weight:800;letter-spacing:.04em}.brand-sub{font-size:12px;color:#bfd0c7;margin-top:2px}.sidebar-section{color:#96aea3;font-size:10px;letter-spacing:.14em;padding:8px 10px;flex:0 0 auto}.sidebar nav{display:flex;flex-direction:column;gap:4px;overflow-y:auto;overflow-x:hidden;min-height:0;flex:1;padding-right:2px;scrollbar-width:thin;scrollbar-color:#48675a transparent}.sidebar nav::-webkit-scrollbar{width:6px}.sidebar nav::-webkit-scrollbar-thumb{background:#48675a;border-radius:8px}.nav-item{width:100%;display:flex;gap:11px;align-items:center;flex:0 0 auto;border:0;background:transparent;color:#d4e0da;padding:11px 12px;border-radius:9px;text-align:left}.nav-item:hover{background:#244a3d;color:#fff}.nav-item.active{background:#f5f0e5;color:#173b2f;font-weight:700}.sidebar-user{margin-top:10px;border-top:1px solid #2d5145;padding:14px 8px 2px;color:#bfd0c7;flex:0 0 auto}.sidebar-user small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:10px}.sidebar-user button{display:flex;align-items:center;gap:8px;background:transparent;border:0;color:#d4e0da;padding:6px 0}.main{min-width:0;flex:1}.topbar{height:78px;background:#fffffff5;border-bottom:1px solid #e1e6df;display:flex;align-items:center;justify-content:space-between;padding:0 26px;gap:16px;position:sticky;top:0;z-index:2;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}h1{font-size:20px;margin:0;color:#173b2f}.topbar p{margin:4px 0 0;color:#66736d;font-size:12px}.top-actions{display:flex;align-items:center;gap:12px}.status{padding:7px 10px;border:1px solid #dce5df;border-radius:999px;font-size:12px;color:#496056;background:#f8faf8}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#3f8f64;margin-right:7px}.content{padding:26px;max-width:1400px;margin:0 auto}.page-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.page-head h2{margin:6px 0 0}.eyebrow{color:#75837c;font-size:10px;font-weight:800;letter-spacing:.14em}h2{font-size:28px;color:#173b2f}.welcome{display:flex;justify-content:space-between;gap:20px;align-items:end;background:linear-gradient(135deg,#fffdf7,#f1f7f2);border:1px solid #dde6df;border-radius:16px;padding:24px;position:relative;overflow:hidden}.welcome:after{content:"DRY FRUITS • MAK HANA • PREMIUM";position:absolute;right:20px;top:15px;color:#b0bd9f;font-size:9px;letter-spacing:.18em;pointer-events:none}.welcome p{margin:0;color:#66736d;max-width:700px;line-height:1.55}.primary{background:#173b2f;color:#fff;border:0;padding:11px 16px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}.primary:hover{background:#255543}.primary:disabled{opacity:.55;cursor:not-allowed}.wide{width:100%;margin-top:8px}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:16px}.stat-card{background:#fffdf8;border:1px solid #e0e5de;border-radius:14px;padding:18px}.stat-title{color:#69766f;font-size:12px}.stat-value{font-weight:800;font-size:25px;margin:10px 0 7px;color:#173b2f}.stat-hint{color:#87918c;font-size:12px}.panel-grid{display:grid;grid-template-columns:1.3fr .9fr;gap:14px;margin-top:14px}.panel,.module-card{background:#fffffff5;border:1px solid #e0e5de;border-radius:14px;padding:20px;margin-bottom:14px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.panel h3,.section-title{margin:0;font-size:16px;color:#173b2f}.panel-head p{margin:4px 0 0;color:#7b8781;font-size:12px}.quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.quick-card{text-align:left;border:1px solid #dfe7df;background:#fbfdfb;padding:14px;border-radius:10px}.quick-card:hover{border-color:#b8cbbd;background:#fff}.quick-card strong{display:block;font-size:13px;color:#173b2f}.quick-card span{display:block;margin-top:6px;font-size:11px;color:#7b8781}.empty-state{min-height:150px;display:grid;place-items:center;text-align:center;color:#8a9490;font-size:13px;line-height:1.6}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.form-grid label,.invoice-summary label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#596760}.form-grid input,.form-grid select,.invoice-row input,.invoice-row select,.invoice-summary select{border:1px solid #dce4df;border-radius:8px;padding:9px 10px;background:#fff;color:#17202a;min-width:0}.form-grid input:focus,.form-grid select:focus,.invoice-row input:focus,.invoice-row select:focus{outline:2px solid #d9e7dd}.form-actions{grid-column:1/-1;display:flex;gap:8px}.form-actions button:not(.primary),.page-head>button,.icon-btn{border:1px solid #dce4df;background:#fff;color:#17202a;border-radius:8px;padding:9px 12px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px}.toolbar h3{margin:0}.search{display:flex;align-items:center;gap:7px;border:1px solid #dce4df;border-radius:8px;padding:7px 10px;width:280px;color:#7b8781}.search input{border:0;outline:0;width:100%}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;padding:11px 10px;border-bottom:1px solid #edf1ee;white-space:nowrap}th{font-size:11px;color:#69766f;background:#f7faf7}td button,.row-actions button{border:0;background:transparent;padding:5px}.row-actions{display:flex;gap:2px}.badge{padding:4px 7px;border-radius:999px;background:#eef2f0;font-size:11px}.badge.paid{background:#e8f7ef}.badge.partial{background:#fff4d6}.badge.unpaid{background:#ffe9e9}.invoice-table{overflow:auto}.invoice-row{display:grid;grid-template-columns:2.3fr .7fr .9fr .7fr .9fr 1.1fr 34px;gap:8px;align-items:center;margin-bottom:8px;min-width:780px}.invoice-row.head{font-size:11px;color:#6b7480;margin-bottom:5px}.invoice-row b{font-size:13px;color:#173b2f}.invoice-row button{border:0;background:transparent}.add-line{border:1px dashed #bfcfc4;background:#fbfdfb;padding:9px 12px;border-radius:8px}.invoice-summary{display:flex;justify-content:space-between;gap:30px}.invoice-summary>div:first-child{display:flex;gap:12px;align-items:flex-start}.invoice-summary label{min-width:180px}.totals{width:330px}.totals p,.totals h3{display:flex;justify-content:space-between;margin:7px 0}.totals h3{border-top:1px solid #e4ebe6;padding-top:12px;color:#173b2f}.save-invoice{margin-left:auto}.login-screen,.center-screen{min-height:100vh;display:grid;place-items:center;background:#f5f7f8}.login-card{width:min(420px,calc(100% - 32px));background:#fff;border:1px solid #e0e5de;border-radius:16px;padding:32px;box-shadow:0 12px 35px #173b2f14;text-align:center}.login-logo{display:block;width:96px;height:96px;object-fit:contain;margin:0 auto 8px;border-radius:12px}.login-card h1{margin:14px 0 5px;font-size:25px}.login-card>p{margin:0 0 22px;color:#7b8781}.login-card form{text-align:left}.login-card label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#596760;margin:12px 0}.login-card input{border:1px solid #dce4df;border-radius:8px;padding:11px}.notice{background:#f3f7f4;border:1px solid #dce4df;padding:10px;border-radius:8px;font-size:12px;margin:10px 0}.link-btn{border:0;background:transparent;color:#2e5847;margin-top:14px;font-size:12px}.mobile-menu,.mobile-close,.scrim{display:none}.branding-preview{width:180px;height:90px;border:1px solid #e0e5de;border-radius:10px;background:#fbfcfa;display:flex;align-items:center;justify-content:center;overflow:hidden;margin:10px 0 8px}.branding-preview img{max-width:150px;max-height:65px;width:auto;height:auto;object-fit:contain;display:block}.signature-preview{height:65px;width:220px}.signature-preview img{max-width:180px;max-height:42px}.upload-btn{display:inline-flex!important;align-items:center!important;flex-direction:row!important;gap:8px!important;width:max-content;border:1px solid #dce4df;background:#fff;color:#173b2f;border-radius:8px;padding:9px 12px;cursor:pointer}.upload-btn:hover{background:#f7faf8}.panel small{display:block;color:#7b8781;font-size:11px;margin-top:6px}.backup-status{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:520px;padding:10px 12px;border:1px solid #dce4df;border-radius:10px;background:#f7faf8;color:#385a4b;font-size:12px;margin:0 0 10px}.backup-status strong{font-size:12px}.backup-status span{font-weight:700;color:#173b2f}@media(max-width:900px){.sidebar{position:fixed;left:0;top:0;transform:translate(-105%);z-index:10;transition:transform .18s ease}.sidebar.open{transform:translate(0)}.mobile-menu{display:grid}.mobile-close{display:grid;margin-left:auto}.scrim{display:block;position:fixed;inset:0;border:0;background:#00000040;z-index:9}.topbar{padding:0 16px}.content{padding:16px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.panel-grid{grid-template-columns:1fr}.welcome{align-items:flex-start;flex-direction:column}.welcome:after{position:static;margin-top:-8px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-summary{flex-direction:column}.totals{width:100%}}@media(max-width:520px){.stat-grid,.form-grid,.quick-grid{grid-template-columns:1fr}h2{font-size:23px}.status{display:none}.toolbar{align-items:stretch;flex-direction:column}.search{width:100%}.page-head{align-items:flex-start;gap:10px}.invoice-summary>div:first-child{flex-direction:column}.save-invoice{width:100%}.branding-preview{width:150px;height:70px}.branding-preview img{max-width:125px;max-height:50px}.signature-preview{width:180px;height:55px}.signature-preview img{max-width:150px;max-height:36px}}
