:root{--navy:#08283e;--deep:#061e31;--ink:#163248;--muted:#6a8091;--sky:#e9f7fb;--aqua:#138eaa;--cyan:#39c9e6;--bg:#f2f6f9;--line:#deeaef;--white:#fff;--shadow:0 8px 28px rgba(17,52,76,.07);--green:#168263;--orange:#b86b15;--red:#b74549;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;color:var(--ink);font-synthesis:none;-webkit-tap-highlight-color:transparent}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-size:15px;line-height:1.4}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #43c7e5;outline-offset:2px}button,a{touch-action:manipulation}a{color:var(--aqua)}h1,h2,h3,p{margin:0}h1{font-size:clamp(25px,3.2vw,36px);letter-spacing:-1.2px;line-height:1.12}h2{font-size:19px;letter-spacing:-.4px}h3{font-size:16px}small,.small{font-size:12px;color:var(--muted)}.muted{color:var(--muted)}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;text-transform:uppercase;color:var(--aqua)}.icon{width:21px;height:21px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:middle}.brand{display:flex;align-items:center;gap:11px;color:white}.brand img{width:45px;height:45px;border-radius:12px}.brand b{font-size:20px;letter-spacing:1.5px;display:block;line-height:1.1;font-weight:850}.brand span{font-size:9px;letter-spacing:2px;text-transform:uppercase;color:#85c6d8}.brand-light{color:var(--navy)}.brand-light span{color:var(--aqua)}.loading{height:100dvh;display:grid;place-content:center;justify-items:center;gap:12px;color:var(--navy)}.loading img{width:76px;border-radius:20px}.loading span{color:var(--muted);font-size:13px}.shell{min-height:100dvh;display:grid;grid-template-columns:250px minmax(0,1fr)}.sidebar{background:var(--navy);min-height:100dvh;position:sticky;top:0;height:100dvh;padding:28px 18px 18px;display:flex;flex-direction:column;gap:26px;color:#fff}.sidebar .brand{padding:0 8px}.side-label{color:#83a9ba;font-size:10px;letter-spacing:1.5px;font-weight:700;margin:7px 12px}.nav{display:flex;flex-direction:column;gap:5px}.nav button{background:transparent;border:0;color:#b7d1df;display:flex;align-items:center;gap:13px;padding:13px 14px;border-radius:12px;text-align:left;font-weight:600;min-height:48px}.nav button.active{background:#16435a;color:white;box-shadow:inset 3px 0 0 var(--cyan)}.nav button:hover{background:#16435a}.sidebar-bottom{margin-top:auto;display:grid;gap:13px}.profile{display:flex;gap:10px;align-items:center;min-width:0}.avatar{width:39px;height:39px;border-radius:13px;display:grid;place-items:center;background:#e4f5fb;color:#0b7995;font-weight:800;flex:none}.sidebar .profile{padding:13px 10px;border-top:1px solid #24495c}.profile b,.profile small{display:block;overflow-wrap:anywhere}.sidebar .profile small{color:#98b6c6}.sidebar .logout{background:none;border:1px solid #365668;color:#c7dde9;border-radius:10px;padding:10px;display:flex;align-items:center;justify-content:center;gap:8px}.credit{font-size:9px;color:#8aabba;text-align:center;letter-spacing:.8px;line-height:1.6}.credit b{color:#b9d6e0}.main{min-width:0}.topbar{height:76px;background:rgba(255,255,255,.95);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;position:sticky;top:0;z-index:8}.topbar .date{color:var(--muted);font-weight:600;font-size:13px;display:flex;gap:9px;align-items:center}.topbar .profile{display:flex;gap:10px}.mobile-brand{display:none}.content{max-width:1240px;margin:auto;padding:30px 34px 50px}.pagehead{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:22px}.pagehead .eyebrow{margin-bottom:8px}.pagehead p{margin-top:7px;color:var(--muted)}.btn{border:0;border-radius:12px;min-height:46px;padding:11px 17px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;white-space:nowrap;background:#e5f2f7;color:var(--ink)}.btn.primary{background:#0e819c;color:white;box-shadow:0 5px 13px #107f9b27}.btn.primary:hover{background:#0b7189}.btn.secondary{background:white;border:1px solid var(--line);color:var(--ink)}.btn.danger{background:#fff0ef;color:var(--red)}.btn.smallbtn{min-height:36px;font-size:12px;padding:7px 11px;border-radius:9px}.btn.iconbtn{min-width:44px;padding:9px}.btn.full{width:100%}.hero{position:relative;overflow:hidden;background:linear-gradient(118deg,#0a2c43 0%,#0c4a61 70%,#0d7185 100%);border-radius:22px;color:white;padding:27px 28px;min-height:160px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 10px 27px #1038501c;margin-bottom:19px}.hero:after,.hero:before{content:'';position:absolute;right:-60px;top:-135px;width:380px;height:380px;border-radius:48%;border:1px solid #79ecf42c;transform:rotate(-23deg);pointer-events:none}.hero:before{right:-92px;top:-95px;width:420px;height:420px;border:42px solid #86e6ed12}.hero-copy{position:relative;z-index:1}.hero .eyebrow{color:#70dbea;margin-bottom:7px}.hero h2{font-size:27px;letter-spacing:-.8px}.hero p{color:#d0e5ed;margin-top:6px;font-size:13px;max-width:430px}.hero .watermark{width:86px;height:86px;position:relative;z-index:1;color:#8de7f5;opacity:.85;margin:0 25px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:20px}.stat{background:white;border:1px solid var(--line);border-radius:17px;padding:17px;box-shadow:var(--shadow);min-width:0}.stat-top{display:flex;align-items:center;justify-content:space-between;gap:6px}.stat .iconwrap{width:39px;height:39px;border-radius:13px;display:grid;place-items:center;background:#e4f7fa;color:#128ca9}.stat .iconwrap.green{background:#e6f5ef;color:#168263}.stat .iconwrap.orange{background:#fff3e1;color:#c47f22}.stat .iconwrap.navy{background:#e8eef6;color:#446d9b}.stat .statlabel{color:var(--muted);font-size:12px;font-weight:650;margin-top:13px;display:block}.stat strong{display:block;font-size:clamp(22px,2.25vw,31px);font-weight:820;letter-spacing:-1px;line-height:1.2;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;margin-top:3px}.stat small{display:block;font-size:11px;margin-top:5px}.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}.sectionhead p{font-size:12px;color:var(--muted);margin-top:3px}.quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px}.quick button{background:white;border:1px solid var(--line);border-radius:15px;padding:15px 12px;display:flex;align-items:center;gap:11px;text-align:left;color:var(--ink);box-shadow:var(--shadow);min-width:0}.quick .quick-icon{background:#e7f5f8;color:var(--aqua);width:39px;height:39px;border-radius:12px;display:grid;place-items:center;flex:none}.quick b{display:block;font-size:13px}.quick small{font-size:11px;display:block;margin-top:2px}.quick .arrow{margin-left:auto;color:#87a4b3;width:17px}.panel{background:white;border-radius:17px;border:1px solid var(--line);box-shadow:var(--shadow);padding:19px;margin-bottom:17px;min-width:0}.columns{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:16px;align-items:start}.empty{padding:28px 14px;text-align:center;color:var(--muted);display:grid;justify-items:center;gap:8px}.empty .icon{width:32px;height:32px;color:#85b4c4}.empty b{color:var(--ink);font-size:14px}.empty p{max-width:290px;font-size:13px}.empty .btn{margin-top:5px}.rows{display:grid;gap:9px}.record{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:13px;background:#fff;padding:12px;min-width:0}.record .avatar{width:42px;height:42px}.record-info{flex:1;min-width:0}.record-info b{display:block;font-size:14px;overflow-wrap:anywhere}.record-info small{display:block;margin-top:3px;overflow-wrap:anywhere}.record-end{text-align:right;flex:none;display:grid;justify-items:end;gap:5px}.record-end strong{font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap}.record.clickable{cursor:pointer;width:100%;text-align:left;color:inherit}.record.clickable:hover{border-color:#9bcbd8;background:#f9fdfe}.badge{font-size:10px;letter-spacing:.15px;font-weight:750;border-radius:20px;padding:4px 8px;display:inline-flex;align-items:center;white-space:nowrap;background:#edf1f4;color:#607482}.badge.pending{background:#fff1d8;color:#986017}.badge.delivered,.badge.good{background:#e3f5ec;color:#137252}.badge.cancelled,.badge.bad{background:#f9e6e6;color:#a34248}.debt{color:var(--red)}.positive{color:var(--green)}.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:17px;align-items:center}.filter{border:1px solid var(--line);background:white;border-radius:24px;padding:9px 13px;min-height:40px;font-weight:650;color:var(--muted);font-size:13px}.filter.active{background:#103b52;color:white;border-color:#103b52}.search{display:flex;align-items:center;gap:9px;background:white;border:1px solid var(--line);border-radius:12px;padding:0 13px;min-height:48px;flex:1;min-width:140px;color:var(--muted)}.search input{border:0!important;padding:11px 0!important;min-width:0;background:none!important;outline:none!important;width:100%}.customers-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.customer-card{background:white;border:1px solid var(--line);border-radius:16px;padding:16px;box-shadow:var(--shadow);cursor:pointer;text-align:left;color:inherit;min-width:0}.customer-top{display:flex;gap:11px;align-items:center;margin-bottom:15px}.customer-top .avatar{width:43px;height:43px}.customer-top>div:nth-child(2){min-width:0;flex:1}.customer-top b{display:block;overflow-wrap:anywhere}.customer-top small{overflow-wrap:anywhere}.customer-bottom{display:flex;justify-content:space-between;padding-top:12px;border-top:1px solid var(--line);gap:10px}.customer-bottom b{font-size:16px;display:block}.customer-bottom small{display:block;font-size:10px}.detailgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.detailbox{background:#f0f7fa;border-radius:12px;padding:13px}.detailbox b{display:block;font-size:22px;letter-spacing:-.6px}.order-card{background:white;padding:15px;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);margin-bottom:10px}.order-head{display:flex;justify-content:space-between;gap:10px;align-items:start}.order-head .record-info{display:flex;gap:10px;align-items:center}.order-head .record-info>div{min-width:0}.order-meta{display:flex;gap:15px;flex-wrap:wrap;margin:12px 0;color:var(--muted);font-size:12px;align-items:center}.order-meta span{display:inline-flex;align-items:center;gap:5px}.order-foot{display:flex;gap:8px;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:11px}.order-foot strong{font-size:20px;letter-spacing:-.5px}.actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.chart{height:150px;display:flex;gap:9px;align-items:end;padding-top:10px}.baritem{height:100%;flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px}.bartrack{height:100%;width:100%;background:#f0f6f8;border-radius:7px;display:flex;align-items:end;overflow:hidden}.barfill{width:100%;background:linear-gradient(#4ac5db,#0e7897);border-radius:7px 7px 0 0;min-height:2px}.barlabel{font-size:10px;color:var(--muted)}.report-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.report-totals .detailbox{min-width:0}.report-totals b{overflow-wrap:anywhere}.mobile-nav{display:none}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field{display:grid;gap:6px;min-width:0;margin-bottom:12px}.formgrid .field{margin-bottom:0}.span2{grid-column:1/-1}.field label{font-weight:700;font-size:13px}.field label span{color:var(--muted);font-weight:400;font-size:11px}.field input,.field select,.field textarea{width:100%;min-width:0;background:#f7fafb;border:1px solid #d8e6ec;border-radius:10px;padding:11px 12px;min-height:47px;color:var(--ink)}.field textarea{resize:vertical;min-height:82px}.form-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:20px}.help{color:var(--muted);font-size:12px;margin:4px 0 13px}.notice{border:1px solid #bee1ea;background:#edf9fc;color:#2c6274;border-radius:12px;padding:12px;font-size:12px;margin:11px 0}.notice.warn{background:#fff6e7;border-color:#f5dab2;color:#986017}.auth-shell{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr;background:white}.auth-hero{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;padding:54px;background:linear-gradient(145deg,#06273c,#0b5065 80%,#0d8497);color:white}.auth-hero:before,.auth-hero:after{content:'';position:absolute;bottom:-200px;right:-170px;width:700px;height:700px;border-radius:45%;border:60px solid #78e6ed0e;transform:rotate(25deg);pointer-events:none}.auth-hero:after{bottom:-260px;right:-70px;border:1px solid #78e6ed38}.auth-hero>div{position:relative;z-index:1}.auth-title{max-width:510px;margin:60px 0}.auth-title .eyebrow{color:#79deef}.auth-title h1{font-size:clamp(35px,5vw,65px);letter-spacing:-2px;line-height:1.05;margin:16px 0}.auth-title p{color:#c9e4ed;max-width:340px;line-height:1.7}.auth-info{font-size:12px;color:#a7ccd9}.auth-right{display:grid;place-items:center;padding:32px;min-width:0}.auth-card{width:100%;max-width:410px}.auth-card>.brand{display:none}.auth-card>h1{margin:9px 0;font-size:31px}.auth-card>p{color:var(--muted);margin-bottom:25px}.auth-card form{display:grid;gap:3px}.auth-card .field{margin-bottom:11px}.auth-card input{min-height:52px}.auth-card .btn{min-height:52px}.auth-credit{margin-top:26px;font-size:10px;letter-spacing:.7px;color:#7991a0;text-align:center}.modal-backdrop{position:fixed;inset:0;z-index:30;background:#061e3199;display:flex;align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(3px)}.modal{width:min(100%,560px);max-height:min(90dvh,850px);background:white;border-radius:22px;box-shadow:0 20px 90px #071c3655;display:flex;flex-direction:column;overflow:hidden}.modal-header{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:19px 21px;border-bottom:1px solid var(--line)}.modal-header .btn{min-height:36px;min-width:36px;padding:7px}.modal-body{padding:20px;overflow:auto;overscroll-behavior:contain}.modal .rows{margin-top:10px}.modal .sectionhead{margin-top:17px}.toast{position:fixed;right:22px;bottom:24px;z-index:50;max-width:calc(100% - 44px);padding:13px 17px;border-radius:13px;background:#134d57;color:white;box-shadow:0 7px 25px #08283e35;font-weight:650;font-size:13px;opacity:0;transform:translateY(12px);pointer-events:none;transition:.18s}.toast.show{opacity:1;transform:none}.toast.error{background:#9a363d}.form-error{color:var(--red);font-size:13px;margin:7px 0}.footer-credit{color:#859aa7;font-size:10px;letter-spacing:.7px;text-align:center;margin:21px 0 0}.hide{display:none!important}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}td,th{padding:10px;border-bottom:1px solid var(--line);white-space:nowrap}th{font-size:11px;color:var(--muted);font-weight:750}td:last-child,th:last-child{text-align:right}.settings-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}.settings-item:last-child{border:0}.settings-item>div:first-child{min-width:0}.settings-item b{display:block;overflow-wrap:anywhere}.settings-item small{display:block}.settings-item .actions{flex:none}.period-select{padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);min-height:44px}.pill-total{font-size:12px;color:var(--muted);font-weight:650;white-space:nowrap}.break-word{overflow-wrap:anywhere}
@media(max-width:1000px){.shell{grid-template-columns:210px minmax(0,1fr)}.sidebar{padding:23px 12px}.content{padding:25px 22px 45px}.topbar{padding:0 22px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.quick small{display:none}.quick .arrow{display:none}.columns{grid-template-columns:1fr}.brand b{font-size:17px}.stat strong{font-size:28px}}
@media(max-width:680px){body{font-size:14px}.shell{display:block}.sidebar{display:none}.topbar{height:66px;padding:0 17px;top:0}.topbar .date,.topbar .profile>div:last-child{display:none}.topbar .profile .avatar{width:35px;height:35px}.mobile-brand{display:block}.mobile-brand .brand img{width:37px;height:37px;border-radius:10px}.mobile-brand .brand b{font-size:16px}.mobile-brand .brand span{font-size:8px;letter-spacing:1.4px}.content{padding:21px 15px calc(100px + env(safe-area-inset-bottom))}.pagehead{align-items:flex-start;margin-bottom:17px;gap:8px}.pagehead .eyebrow{font-size:9px;margin-bottom:5px}.pagehead p{font-size:12px;margin-top:4px}.pagehead .btn{font-size:12px;padding:9px 11px;min-height:42px;margin-top:6px}.pagehead .btn .icon{width:17px;height:17px}.hero{padding:20px 17px;border-radius:17px;min-height:133px;margin-bottom:13px}.hero h2{font-size:22px}.hero p{font-size:12px;max-width:255px}.hero .watermark{width:48px;height:48px;margin:0 2px 0 8px}.stats{gap:9px;margin-bottom:19px}.stat{padding:12px;border-radius:14px}.stat .iconwrap{width:33px;height:33px;border-radius:10px}.stat .icon{width:18px;height:18px}.stat .statlabel{font-size:11px;margin-top:9px}.stat strong{font-size:24px}.stat small{font-size:10px}.quick{gap:7px;margin-bottom:19px}.quick button{flex-direction:column;justify-content:center;gap:6px;padding:12px 4px;min-height:85px;text-align:center;border-radius:13px}.quick b{font-size:11px}.quick .quick-icon{width:34px;height:34px;border-radius:10px}.quick .icon{width:19px;height:19px}.sectionhead h2{font-size:17px}.sectionhead p{font-size:11px}.panel{padding:13px;border-radius:15px;margin-bottom:12px}.columns{gap:0}.mobile-nav{position:fixed;bottom:0;left:0;right:0;z-index:12;background:white;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);padding:6px 3px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -5px 23px #10384e0a}.mobile-nav button{border:0;background:none;color:#7893a3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:52px;font-size:10px;font-weight:700;padding:4px;white-space:nowrap}.mobile-nav button .icon{width:22px;height:22px}.mobile-nav button.active{color:#087b98}.mobile-nav button.active .icon{stroke-width:2.5}.customers-grid{grid-template-columns:1fr}.customer-card{padding:13px}.filters{gap:6px;margin-bottom:12px}.filters .search{flex:1 1 100%}.filter{padding:7px 10px;font-size:12px;min-height:36px}.auth-shell{display:block;background:var(--bg);min-height:100dvh}.auth-hero{display:none}.auth-right{min-height:100dvh;padding:27px 18px;display:flex;align-items:center;justify-content:center}.auth-card{background:white;border:1px solid var(--line);border-radius:22px;padding:25px 19px;box-shadow:var(--shadow)}.auth-card>.brand{display:flex;margin-bottom:27px}.auth-card>h1{font-size:27px}.auth-card>p{font-size:13px;margin-bottom:20px}.modal-backdrop{align-items:flex-end;padding:0}.modal{width:100%;max-height:94dvh;border-radius:20px 20px 0 0;padding-bottom:env(safe-area-inset-bottom)}.modal-header{padding:15px 17px}.modal-body{padding:16px 16px 20px}.form-actions .btn{flex:1}.formgrid{gap:10px}.field input,.field textarea,.field select,.search input{font-size:16px}.report-totals{gap:7px;grid-template-columns:1fr 1fr}.report-totals .detailbox:last-child{grid-column:1/-1}.record{padding:9px;gap:8px}.record .avatar{width:36px;height:36px}.record-end strong{font-size:13px}.order-card{padding:12px}.order-meta{gap:9px;font-size:11px}.order-foot .actions .btn{font-size:11px;padding:7px 10px}.toast{bottom:calc(76px + env(safe-area-inset-bottom));right:12px;max-width:calc(100% - 24px)}.settings-item .actions{gap:5px;max-width:52%}.settings-item .actions .btn{white-space:normal}.report-totals b{font-size:19px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
