:root{--teal:#087f7a;--teal-dark:#05645f;--yellow:#ffca28;--navy:#0d2b4d;--muted:#72849a;--canvas:#edf7fb;--line:#d6e7ed;--red:#e33c4a;--shadow:0 8px 24px rgba(18,72,93,.09);font-family:Inter,"Noto Sans Myanmar",system-ui,-apple-system,sans-serif;color:var(--navy);background:var(--canvas)}*{box-sizing:border-box}html{min-height:100%;background:linear-gradient(135deg,#f9fdff,#e9f5fa)}body{margin:0;min-height:100vh;background:linear-gradient(135deg,#fbfeff 0,#eef8fc 55%,#e7f3f8 100%);font-size:14px}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.topbar{height:72px;background:rgba(255,255,255,.92);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 max(22px,calc((100vw - 1320px)/2));position:sticky;top:0;z-index:30;box-shadow:0 4px 20px rgba(18,72,93,.05);backdrop-filter:blur(14px)}.brand{display:flex;align-items:center;gap:13px}.brand-mark,.logo{width:44px;height:44px;border-radius:13px;background:linear-gradient(145deg,#ffd33d,#ffbb15);display:grid;place-items:center;font-weight:900;color:#0b3154;box-shadow:0 6px 18px #ffc92855}.brand>span:last-child{display:flex;flex-direction:column}.brand strong{font-size:18px;letter-spacing:.04em}.brand small{font-size:10px;color:#8091a4;margin-top:2px}.tagline{margin-left:auto;color:#4f6e87;font-size:11px;display:flex;align-items:center;gap:9px}.tagline i{width:3px;height:3px;background:#7893a6;border-radius:50%}.tagline b{width:34px;height:3px;background:var(--yellow);margin-left:8px;border-radius:4px}.top-actions{display:flex;align-items:center;gap:10px;margin-left:24px}.icon-button{width:40px;height:40px;border:1px solid #d4e9eb;border-radius:12px;display:grid;place-items:center;background:#f4fbfb;color:var(--teal);position:relative}.icon-button em{position:absolute;right:-4px;top:-5px;background:var(--red);color:#fff;width:18px;height:18px;border-radius:50%;font-size:9px;font-style:normal;display:grid;place-items:center}.user-chip{padding:9px 13px;border-radius:12px;background:#f4f9fb;color:#557084;font-size:12px}.page-shell{max-width:1320px;margin:auto;padding:22px 22px 94px}.home-stage{height:min(610px,65vh);min-height:510px;border-radius:24px;position:relative;overflow:hidden;background-image:linear-gradient(180deg,rgba(226,246,250,.05),rgba(7,53,65,.08)),url('/images/home-desktop.png');background-size:cover;background-position:center;box-shadow:0 15px 40px rgba(16,72,93,.17);border:7px solid rgba(255,255,255,.9)}.home-top-actions{position:absolute;top:28px;left:50%;transform:translateX(-50%);display:grid;grid-template-columns:1fr 1fr;gap:12px;width:min(560px,72%)}.home-top-actions a{background:rgba(255,255,255,.94);padding:11px 17px;border-radius:15px;display:flex;align-items:center;gap:12px;box-shadow:0 9px 25px rgba(11,55,71,.15);border:1px solid rgba(255,255,255,.9)}.home-top-actions span:last-child{display:flex;flex-direction:column}.home-top-actions small{font-size:8px;color:var(--teal);font-weight:900;letter-spacing:.05em}.home-top-actions strong{font-size:17px;margin:1px 0}.home-top-actions em{font-size:10px;color:#73879a;font-style:normal}.action-art{font-size:29px}.home-primary-actions{position:absolute;left:8%;right:8%;top:46%;display:flex;justify-content:space-between}.home-primary-actions a{background:rgba(255,255,255,.95);border-radius:17px;padding:16px 22px;min-width:310px;display:flex;align-items:center;gap:15px;box-shadow:0 12px 30px rgba(10,56,72,.2);transition:.2s}.home-primary-actions a:hover{transform:translateY(-3px)}.home-primary-actions b{width:42px;height:42px;border-radius:12px;background:var(--yellow);display:grid;place-items:center}.home-primary-actions span{display:flex;flex-direction:column}.home-primary-actions strong{font-size:19px}.home-primary-actions small{color:#677f92;margin-top:3px}.home-dock{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);width:min(590px,80%);height:70px;border-radius:19px;background:rgba(255,255,255,.94);display:grid;grid-template-columns:repeat(5,1fr);box-shadow:0 12px 28px rgba(9,53,67,.2);padding:7px 10px}.home-dock a{display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:13px;font-weight:750}.home-dock a:hover{background:#edf8f8}.home-dock span{font-size:23px}.home-dock small{font-size:10px;margin-top:2px}.home-shortcuts{margin-top:24px}.section-title{display:flex;justify-content:space-between;align-items:end;margin-bottom:12px}.section-title small{font-size:9px;color:var(--teal);font-weight:900;letter-spacing:.1em}.section-title h2{margin:3px 0 0;font-size:23px}.section-title>a{color:var(--teal);font-weight:800;font-size:12px}.shortcut-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.shortcut-grid>a{background:#fff;border:1px solid var(--line);border-radius:17px;padding:12px;display:flex;align-items:center;gap:12px;box-shadow:var(--shadow)}.shortcut-grid img{width:60px;height:52px;object-fit:cover;border-radius:12px}.shortcut-grid span{display:flex;flex:1;flex-direction:column}.shortcut-grid b{font-size:14px}.shortcut-grid small{color:var(--muted);font-size:10px;margin-top:4px}.shortcut-grid i{font-style:normal;color:var(--teal);font-size:20px}.notice,.alert{padding:14px 16px;border-radius:14px;margin:16px 0;background:#fff7d8;border:1px solid #ffe28a}.notice.slim{display:flex;align-items:center;background:#fff;border-color:var(--line);box-shadow:var(--shadow)}.notice.slim>span{width:28px;height:28px;border-radius:9px;background:#e7f6f5;color:var(--teal);display:grid;place-items:center;font-weight:900;margin-right:11px}.notice.slim p{margin:0}.alert.error{background:#fff0f1;border-color:#ffc6ca;color:#a8212d}.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:70px;background:rgba(255,255,255,.97);border-top:1px solid var(--line);display:flex;justify-content:center;z-index:40;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -5px 20px rgba(19,70,87,.08)}.bottom-nav a{width:105px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#74899b}.bottom-nav a>span{font-size:19px}.bottom-nav small{font-size:10px;margin-top:2px}.bottom-nav a.active{color:var(--teal);font-weight:850}.page-head{display:flex;justify-content:space-between;align-items:center;margin:4px 0 18px}.page-head h1{margin:0;font-size:25px}.page-head p{color:var(--muted);margin:4px 0 0;font-size:12px}.card{background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:18px;padding:18px;margin-bottom:14px;box-shadow:var(--shadow)}.card h2,.card h3{margin-top:0}.table-wrap{overflow:auto;background:#fff;border-radius:18px;border:1px solid var(--line);box-shadow:var(--shadow)}table{width:100%;border-collapse:collapse;min-width:720px}th,td{padding:11px 13px;border-bottom:1px solid #e3edf1;text-align:left}th{font-size:10px;text-transform:uppercase;letter-spacing:.04em;background:#eff8fa;color:#496b7b;white-space:nowrap}td{font-size:12px}tbody tr:hover{background:#f8fcfd}.money{text-align:right;font-variant-numeric:tabular-nums}.status{display:inline-block;padding:5px 9px;border-radius:999px;background:#e8f7f6;color:var(--teal);font-size:10px;font-weight:800}.status.Paid,.status.Settled,.status.Closed{background:#dcf5e5;color:#267b43}.status.Cancelled{background:#ffe4e6;color:var(--red)}.btn{border:1px solid var(--line);background:#fff;color:var(--navy);border-radius:10px;padding:10px 15px;font-weight:800;cursor:pointer;display:inline-block;font-size:12px;transition:.15s}.btn:hover{transform:translateY(-1px);box-shadow:0 5px 12px rgba(18,72,93,.1)}.btn.primary{background:linear-gradient(135deg,var(--teal),#07958c);color:#fff;border-color:var(--teal)}.btn.yellow{background:var(--yellow);border-color:var(--yellow)}.btn.danger{color:var(--red);border-color:#f2b5b8}.wide{width:100%}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.form-grid .full{grid-column:1/-1}label{display:block;font-size:11px;font-weight:800;color:#24465f}input,select,textarea{display:block;width:100%;margin-top:6px;padding:11px 12px;border:1px solid #c7d9e1;border-radius:9px;background:#fff;color:var(--navy);outline:none}input:focus,select:focus,textarea:focus{border-color:#0a9a91;box-shadow:0 0 0 3px #0a9a9118}textarea{min-height:82px}.validation-message{color:var(--red);font-size:10px}.summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}.summary div{background:linear-gradient(135deg,#f5fbfc,#eef7f8);border:1px solid #dfedef;border-radius:13px;padding:13px}.summary small,.summary strong{display:block}.summary small{color:var(--muted);font-size:9px;text-transform:uppercase}.summary strong{margin-top:4px;font-size:17px}.quick-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px;display:flex;gap:12px;align-items:center;margin-bottom:8px}.quick-card small,.quick-card strong{display:block}.quick-card small{color:var(--muted);margin-top:3px}.menu-list{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--shadow)}.menu-list a{padding:16px 18px;display:flex;justify-content:space-between;border-bottom:1px solid #e3edf1;font-weight:750}.menu-list a:hover{background:#f3fafb}.logout{margin-top:18px}.empty{text-align:center;padding:50px 20px;color:var(--muted)}.sticky-actions{position:sticky;bottom:78px;background:#fff;padding:12px;border:1px solid var(--line);border-radius:14px;display:flex;gap:10px;box-shadow:0 -5px 22px rgba(18,72,93,.1)}.print-slip{width:100mm;margin:auto;background:#fff;color:#000;padding:7mm;font-family:monospace}.print-slip table{min-width:0}.print-slip th,.print-slip td{padding:5px 2px}.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(380px,460px) minmax(480px,1fr);background:#edf8fb}.login-card{display:flex;flex-direction:column;justify-content:center;padding:8vh clamp(36px,5vw,74px);background:rgba(255,255,255,.97);z-index:2;box-shadow:15px 0 40px rgba(11,57,72,.1)}.login-brand{text-align:center;margin-bottom:24px}.login-brand .logo{width:68px;height:68px;margin:0 auto 13px;font-size:20px}.login-brand h1{margin:0;font-size:24px;letter-spacing:.04em}.login-brand p{margin:4px 0;color:var(--muted)}.login-card label{margin:10px 0}.input-icon{display:flex;align-items:center;border:1px solid #c7d9e1;border-radius:11px;padding-left:12px;margin-top:6px;color:var(--teal);background:#fff}.input-icon input{border:0;margin:0;box-shadow:none}.login-help{display:block;text-align:center;color:#8b9ba9;margin-top:20px}.login-photo{background-image:linear-gradient(180deg,transparent 55%,rgba(3,40,54,.6)),url('/images/home-desktop.png');background-size:cover;background-position:center;position:relative}.login-photo>div{position:absolute;bottom:50px;left:50px;color:#fff;display:flex;flex-direction:column}.login-photo b{font-size:28px}.login-photo span{margin-top:8px}.logo{background:var(--yellow)}
@media(min-width:900px){.bottom-nav{display:none}.page-shell{padding-bottom:35px}}
@media(max-width:900px){.tagline{display:none}.page-shell{padding:14px 12px 88px}.topbar{height:60px;padding:0 13px}.brand strong{font-size:15px}.brand small,.user-chip{display:none}.home-stage{height:610px;min-height:0;background-image:linear-gradient(180deg,rgba(226,246,250,.02),rgba(7,53,65,.08)),url('/images/home-mobile.png');border-width:4px;border-radius:20px}.home-top-actions{top:17px;width:calc(100% - 24px);grid-template-columns:1fr}.home-top-actions a{padding:9px 12px}.home-top-actions a:nth-child(2){display:none}.home-primary-actions{top:auto;bottom:106px;left:13px;right:13px;display:grid;gap:10px}.home-primary-actions a{min-width:0;padding:13px 15px}.home-primary-actions strong{font-size:15px}.home-dock{bottom:15px;width:calc(100% - 22px);height:76px}.shortcut-grid{grid-template-columns:1fr}.section-title h2{font-size:20px}.form-grid,.summary{grid-template-columns:1fr}.page-head h1{font-size:21px}.card{border-radius:15px;padding:14px}.mobile-cards{border:0;background:transparent;overflow:visible;box-shadow:none}.mobile-cards table,.mobile-cards tbody,.mobile-cards tr,.mobile-cards td{display:block;min-width:0}.mobile-cards thead{display:none}.mobile-cards tr{background:#fff;border:1px solid var(--line);border-radius:14px;margin-bottom:10px;padding:10px;box-shadow:var(--shadow)}.mobile-cards td{border:0;padding:5px 4px}.mobile-cards td:before{content:attr(data-label);display:block;color:var(--muted);font-size:9px;text-transform:uppercase}.money{text-align:left}.login-page{grid-template-columns:1fr;background-image:linear-gradient(180deg,rgba(237,248,251,.15),#edf8fb 55%),url('/images/home-mobile.png');background-size:cover}.login-card{width:calc(100% - 28px);margin:auto;padding:30px 24px;border-radius:24px;box-shadow:0 20px 60px rgba(8,55,70,.22)}.login-photo{display:none}}
@media print{.no-print,.topbar,.bottom-nav,.sticky-actions{display:none!important}.page-shell{padding:0;max-width:none}.print-slip{box-shadow:none}.card{border:0}}#blazor-error-ui{display:none;position:fixed;bottom:0;left:0;right:0;background:#fff0c2;padding:12px;z-index:100}

.telegram-input{display:flex;align-items:stretch;margin-top:6px;border:1px solid #c7d9e1;border-radius:9px;background:#fff;overflow:hidden}.telegram-input:focus-within{border-color:#0a9a91;box-shadow:0 0 0 3px #0a9a9118}.telegram-input>span{display:flex;align-items:center;padding:0 12px;background:#eef7f8;border-right:1px solid #d6e7ed;color:var(--teal);font-weight:800}.telegram-input input{margin:0;border:0;border-radius:0;box-shadow:none!important}.field-label{display:block;font-size:11px;font-weight:800;color:#24465f}.polished-slip{position:relative}

/* Production polish */
body{letter-spacing:-.005em}.desktop-nav{display:flex;align-items:center;gap:3px;margin-left:clamp(28px,4vw,64px);height:100%}.desktop-nav a{position:relative;padding:10px 11px;border-radius:10px;color:#587185;font-size:12px;font-weight:750;white-space:nowrap}.desktop-nav a:hover{color:var(--teal);background:#eef8f7}.desktop-nav a.active{color:var(--teal);background:#e8f6f5}.desktop-nav a.active:after{content:"";position:absolute;left:12px;right:12px;bottom:-9px;height:3px;border-radius:4px;background:var(--yellow)}.tagline{font-weight:650}.user-chip{display:flex;flex-direction:column;padding:6px 12px}.user-chip b{font-size:11px}.user-chip small{font-size:8px;color:var(--muted);margin-top:1px}.page-shell{animation:page-in .28s ease-out}@keyframes page-in{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}.eyebrow{display:block;color:var(--teal);font-size:9px;line-height:1.2;font-weight:900;letter-spacing:.13em;margin-bottom:5px}.page-head{min-height:57px}.page-head h1{letter-spacing:-.035em}.page-head>.btn{white-space:nowrap}.card{transition:border-color .18s,box-shadow .18s}.card:hover{border-color:#c7e0e6}.list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}.search-box{display:flex;align-items:center;gap:8px;width:min(470px,100%);height:43px;padding:0 13px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 4px 14px rgba(18,72,93,.04);color:var(--teal)}.search-box input{border:0;margin:0;padding:0;box-shadow:none!important;background:transparent}.result-count{font-size:10px;font-weight:800;color:var(--muted);background:#fff;border:1px solid var(--line);padding:7px 10px;border-radius:999px;white-space:nowrap}.record-link{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--teal)}.record-link span{font-size:18px}.code-chip{display:inline-flex;padding:4px 7px;border-radius:7px;background:#eef6f8;color:#4f6f81;font:700 10px ui-monospace,monospace}.status.Active,.status.Posted{background:#dcf5e5;color:#267b43}.status.Inactive,.status.Draft{background:#eef2f5;color:#637687}.status.PartiallyPaid,.status.Open,.status.InProgress{background:#fff2ca;color:#8f6510}.btn.small{padding:7px 10px;font-size:10px}.loading-state{display:grid;place-items:center;align-content:center;gap:12px;min-height:240px;color:var(--muted)}.loading-state span{width:30px;height:30px;border:3px solid #d9edec;border-top-color:var(--teal);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.empty.card{min-height:240px;display:grid;place-items:center;align-content:center;gap:6px;border-style:dashed}.empty h3{margin:4px 0;font-size:19px;color:var(--navy)}.empty p{margin:0 0 12px}.empty-icon,.state-icon{width:58px;height:58px;border-radius:18px;background:linear-gradient(145deg,#e7f7f6,#fff7d7);display:grid;place-items:center;font-size:25px;color:var(--teal)}.state-page{min-height:62vh;display:grid;place-items:center;align-content:center;text-align:center;gap:8px}.state-page h1{margin:4px 0;font-size:28px}.state-page p{color:var(--muted);margin:0 0 14px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.settings-grid section>h3{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#698094;margin:0 0 8px 5px}.menu-list a b{display:flex;align-items:center;gap:11px}.menu-list a i{width:30px;height:30px;border-radius:9px;background:#edf8f7;display:grid;place-items:center;font-style:normal;font-size:15px}.menu-list a>span{font-size:21px;color:#9bb0bd}.form-shell{display:grid;grid-template-columns:minmax(230px,320px) minmax(0,720px);gap:18px;justify-content:center}.form-guide{border-radius:19px;padding:25px;background:linear-gradient(145deg,#0a8982,#056862);color:#fff;box-shadow:var(--shadow);min-height:350px}.form-guide>span{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:var(--yellow);color:var(--navy);font-weight:900}.form-guide h3{font-size:21px;margin:22px 0 7px}.form-guide p,.form-guide li{color:#d9f1ef;line-height:1.65;font-size:12px}.form-guide ul{padding-left:18px;margin-top:20px}.form-card{margin:0;padding:25px}.group-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.group-head small{font-size:8px;color:var(--teal);font-weight:900;letter-spacing:.12em}.group-head h3{margin:3px 0 0}.group-head>span{background:#edf7f7;color:var(--teal);padding:5px 9px;border-radius:999px;font-size:10px;font-weight:800}.quick-card.selectable{cursor:pointer}.quick-card.selectable:has(input:checked){border-color:var(--teal);background:#f0fbfa;box-shadow:0 0 0 2px #0a8c8317}.quick-card.selectable input{width:19px;height:19px;margin:0;accent-color:var(--teal)}.quick-card.selectable em{font-style:normal;font-size:10px;text-align:right;color:var(--muted);line-height:1.5}.quick-card.selectable em b{color:var(--navy)}.summary.overview{grid-template-columns:repeat(2,minmax(160px,260px));justify-content:start}.summary.overview div:last-child{background:linear-gradient(135deg,#fff8de,#fffdf5);border-color:#f3e3a8}.table-wrap{scrollbar-width:thin;scrollbar-color:#bdd4dc transparent}tbody tr:last-child td{border-bottom:0}input:disabled,select:disabled{background:#f1f5f6;color:#7e8d98}.alert{display:flex;align-items:center;box-shadow:0 5px 18px rgba(18,72,93,.05)}.sticky-actions{z-index:20}.logout{max-width:420px;margin-left:auto;margin-right:auto}

@media(max-width:1120px){.desktop-nav{gap:0;margin-left:20px}.desktop-nav a{padding:9px 7px;font-size:10px}.tagline{display:none}}
@media(max-width:900px){.desktop-nav,.user-chip{display:none}.brand strong{white-space:nowrap}.top-actions{margin-left:auto}.page-head{align-items:flex-start}.page-head>.btn{padding:9px 11px}.list-toolbar{align-items:stretch;flex-direction:column}.result-count{align-self:flex-start}.settings-grid,.form-shell{grid-template-columns:1fr}.form-guide{min-height:0;padding:20px}.form-guide ul{display:none}.form-guide h3{margin:14px 0 5px}.form-card{padding:17px}.summary.overview{grid-template-columns:1fr 1fr}.mobile-cards .record-link{font-size:14px}.mobile-cards td{display:flex;justify-content:space-between;gap:18px;align-items:center}.mobile-cards td:before{flex:0 0 88px}.mobile-cards td[data-label="Name"],.mobile-cards td[data-label="Order"],.mobile-cards td[data-label="Voucher"],.mobile-cards td[data-label="Receipt"]{padding-top:8px}.mobile-cards td[data-label="Action"]{margin-top:4px;border-top:1px solid #edf1f3;padding-top:10px}.quick-card.selectable{align-items:flex-start}.quick-card.selectable em{margin-left:auto;min-width:100px}.state-page{min-height:70vh}}
@media(max-width:430px){.brand-mark{width:39px;height:39px}.top-actions{margin-left:auto}.page-head h1{font-size:19px}.page-head p{font-size:10px}.summary.overview{grid-template-columns:1fr}.quick-card.selectable em{display:none}}
@media(orientation:landscape) and (max-height:600px) and (max-width:950px){
 html,body{min-height:100dvh}.topbar{height:52px;padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}.brand-mark{width:37px;height:37px;border-radius:10px}.brand strong{font-size:14px}.brand small{display:none}.icon-button{width:36px;height:36px}.page-shell{padding:10px max(14px,env(safe-area-inset-right)) calc(66px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}.bottom-nav{height:56px;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}.bottom-nav a{width:min(19vw,130px);flex-direction:row;gap:6px}.bottom-nav a>span{font-size:17px}.bottom-nav small{font-size:9px;margin:0}.page-head{min-height:44px;margin:0 0 10px;align-items:center}.page-head h1{font-size:19px}.page-head p{font-size:9px;margin-top:2px}.eyebrow{font-size:7px;margin-bottom:3px}.card{padding:13px;margin-bottom:10px;border-radius:14px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 12px}.form-grid .full{grid-column:1/-1}input,select,textarea{padding:8px 10px;margin-top:4px}textarea{min-height:58px}.btn{padding:8px 12px}.sticky-actions{bottom:62px;padding:9px}.summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:9px 0}.summary div{padding:9px}.summary strong{font-size:14px}.settings-grid{grid-template-columns:1fr 1fr;gap:12px}.menu-list a{padding:10px 13px}.menu-list a i{width:26px;height:26px}.logout{margin-top:10px}.form-shell{grid-template-columns:minmax(200px,260px) minmax(0,1fr);gap:12px}.form-guide{padding:16px;min-height:0}.form-guide>span{width:34px;height:34px}.form-guide h3{font-size:16px;margin:10px 0 4px}.form-guide p{font-size:10px;line-height:1.45}.form-card{padding:15px}.login-page{grid-template-columns:minmax(310px,42%) 1fr;background:#edf8fb}.login-card{width:auto;margin:0;padding:18px clamp(30px,5vw,60px);border-radius:0}.login-brand{margin-bottom:8px}.login-brand .logo{width:44px;height:44px;margin-bottom:5px;font-size:14px}.login-brand h1{font-size:17px}.login-brand p,.login-help{font-size:9px}.login-card label{margin:5px 0}.login-card .input-icon input{padding:8px}.login-photo{display:block}.login-photo>div{bottom:22px;left:28px}.login-photo b{font-size:19px}.home-stage{height:calc(100dvh - 126px);min-height:290px;border-width:3px;border-radius:17px;background-image:linear-gradient(180deg,rgba(226,246,250,.03),rgba(7,53,65,.09)),url('/images/home-desktop.png')}.home-top-actions{top:10px;width:min(500px,68%);grid-template-columns:1fr 1fr;gap:8px}.home-top-actions a{padding:7px 10px;border-radius:11px}.home-top-actions a:nth-child(2){display:flex}.home-top-actions .action-art{font-size:20px}.home-top-actions strong{font-size:12px}.home-top-actions em{display:none}.home-primary-actions{top:42%;bottom:auto;left:5%;right:5%;display:flex;gap:12px}.home-primary-actions a{min-width:220px;padding:9px 12px;border-radius:13px}.home-primary-actions b{width:34px;height:34px}.home-primary-actions strong{font-size:13px}.home-primary-actions small{font-size:9px}.home-dock{bottom:7px;width:min(550px,72%);height:52px;padding:4px 8px;border-radius:14px}.home-dock span{font-size:16px}.home-dock small{font-size:8px}.home-shortcuts{margin-top:12px}.shortcut-grid{grid-template-columns:repeat(3,1fr);gap:9px}.shortcut-grid>a{padding:8px}.shortcut-grid img{width:45px;height:40px}.section-title{margin-bottom:8px}.section-title h2{font-size:17px}.notice.slim{margin:10px 0}.mobile-cards tr{padding:8px}.state-page{min-height:calc(100dvh - 120px)}
}
@media(orientation:landscape) and (max-height:430px) and (max-width:950px){.home-top-actions{display:none}.home-primary-actions{top:12%}.home-stage{min-height:250px}.login-brand p,.login-help{display:none}.login-card{padding-top:10px;padding-bottom:10px}.page-shell{padding-top:7px}.settings-grid section>h3{margin-bottom:5px}.menu-list a{padding-top:8px;padding-bottom:8px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Keep Home shortcut buttons fully visible without requiring hover. */
.home-dock{width:min(620px,82%);height:76px;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding:7px 9px;overflow:visible}.home-dock a{min-width:0;display:grid;grid-template-rows:30px 18px;align-content:center;justify-items:center;border:1px solid #deedef;background:#f7fbfc;border-radius:12px;font-weight:800;transition:background .18s,border-color .18s,transform .18s,box-shadow .18s}.home-dock a:hover,.home-dock a:focus-visible{background:#e6f6f5;border-color:#b9dedb;transform:translateY(-2px);box-shadow:0 5px 12px rgba(8,127,122,.12);outline:none}.home-dock span{display:grid;place-items:center;width:100%;height:30px;font-size:21px;line-height:1}.home-dock small{display:block;max-width:100%;height:18px;line-height:18px;font-size:9px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:900px){.home-dock{width:calc(100% - 22px);height:76px}}
/* Hard-lock Home to the viewport in phone/tablet landscape, including iOS overscroll. */
@media(orientation:landscape) and (max-width:1200px) and (max-height:800px){html:has(.home-stage),body:has(.home-stage){width:100%;height:100dvh;max-height:100dvh;overflow:hidden;overscroll-behavior:none}body:has(.home-stage){position:fixed;inset:0;touch-action:pan-x}.page-shell:has(>.home-stage){position:fixed;inset:72px 0 0;width:100%;max-width:none;height:auto;min-height:0;margin:0;padding:10px max(18px,env(safe-area-inset-right)) 10px max(18px,env(safe-area-inset-left));overflow:hidden;overscroll-behavior:none}.page-shell:has(>.home-stage)>.home-stage{width:100%;height:100%;min-height:0;max-height:none;margin:0}.page-shell:has(>.home-stage)>.home-shortcuts,.page-shell:has(>.home-stage)>.notice{display:none}}
@media(orientation:landscape) and (max-width:950px) and (max-height:600px){.page-shell:has(>.home-stage){inset:52px 0 0;padding:7px max(14px,env(safe-area-inset-right)) calc(61px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}}

/* Desktop Home: fixed viewport and three non-overlapping content rows. */
@media(min-width:951px){html:has(.home-stage),body:has(.home-stage){width:100%;height:100dvh;max-height:100dvh;overflow:hidden;overscroll-behavior:none}body:has(.home-stage){position:fixed;inset:0}.page-shell:has(>.home-stage){position:fixed;inset:72px 0 0;width:100%;max-width:none;height:auto;min-height:0;margin:0;padding:14px clamp(18px,3vw,42px) 16px;overflow:hidden}.page-shell:has(>.home-stage)>.home-shortcuts,.page-shell:has(>.home-stage)>.notice{display:none}.page-shell:has(>.home-stage)>.home-stage{display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:100%;height:100%;min-height:0;max-height:none;margin:0;padding:clamp(14px,2.2vh,24px);container-type:size}.home-stage>.home-top-actions{position:relative;top:auto;left:auto;transform:none;grid-row:1;align-self:start;justify-self:center;width:min(540px,58%);gap:10px}.home-stage>.home-top-actions a{padding:9px 14px;border-radius:13px}.home-stage>.home-top-actions .action-art{font-size:24px}.home-stage>.home-top-actions strong{font-size:15px}.home-stage>.home-top-actions em{font-size:9px}.home-stage>.home-primary-actions{position:relative;top:auto;right:auto;bottom:auto;left:auto;grid-row:2;align-self:center;justify-self:center;display:flex;width:92%;max-width:1180px;gap:24px}.home-stage>.home-primary-actions a{width:min(360px,38%);min-width:0;padding:12px 16px;border-radius:15px}.home-stage>.home-primary-actions b{width:38px;height:38px}.home-stage>.home-primary-actions strong{font-size:17px}.home-stage>.home-primary-actions small{font-size:10px}.home-stage>.home-dock{position:relative;bottom:auto;left:auto;transform:none;grid-row:3;align-self:end;justify-self:center;width:min(600px,76%);height:70px;margin:0}}
@media(min-width:951px) and (max-height:620px){.page-shell:has(>.home-stage){padding-top:9px;padding-bottom:10px}.page-shell:has(>.home-stage)>.home-stage{padding:10px 14px}.home-stage>.home-top-actions{width:min(500px,56%)}.home-stage>.home-top-actions a{padding:7px 11px}.home-stage>.home-top-actions .action-art{font-size:20px}.home-stage>.home-top-actions strong{font-size:13px}.home-stage>.home-top-actions em{display:none}.home-stage>.home-primary-actions a{padding:9px 13px}.home-stage>.home-primary-actions b{width:34px;height:34px}.home-stage>.home-primary-actions strong{font-size:15px}.home-stage>.home-dock{height:62px}.home-stage>.home-dock a{grid-template-rows:25px 16px}.home-stage>.home-dock span{height:25px;font-size:18px}.home-stage>.home-dock small{height:16px;line-height:16px}}

/* Desktop Home keeps Quick Operations visible inside the same no-scroll viewport. */
@media(min-width:951px){.page-shell:has(>.home-stage){display:grid;grid-template-rows:minmax(0,1fr) auto;gap:10px}.page-shell:has(>.home-stage)>.home-shortcuts{display:block;min-height:0;margin:0}.home-shortcuts .section-title{margin:0 0 6px}.home-shortcuts .section-title small{font-size:7px}.home-shortcuts .section-title h2{font-size:16px;line-height:1.2;margin:2px 0 0}.home-shortcuts .section-title>a{font-size:10px}.home-shortcuts .shortcut-grid{gap:10px}.home-shortcuts .shortcut-grid>a{min-height:62px;padding:7px 10px;border-radius:14px}.home-shortcuts .shortcut-grid img{width:46px;height:42px}.home-shortcuts .shortcut-grid b{font-size:12px}.home-shortcuts .shortcut-grid small{font-size:8px;margin-top:2px}.home-shortcuts .shortcut-grid i{font-size:17px}}
@media(min-width:951px) and (max-height:700px){.page-shell:has(>.home-stage){gap:7px;padding-top:9px;padding-bottom:9px}.home-shortcuts .section-title{margin-bottom:4px}.home-shortcuts .section-title small{display:none}.home-shortcuts .section-title h2{font-size:13px;margin:0}.home-shortcuts .shortcut-grid{gap:8px}.home-shortcuts .shortcut-grid>a{min-height:50px;padding:5px 8px}.home-shortcuts .shortcut-grid img{width:37px;height:34px}.home-shortcuts .shortcut-grid b{font-size:10px}.home-shortcuts .shortcut-grid small{display:none}.home-shortcuts .shortcut-grid i{font-size:15px}}

/* Progressive data presentation */
.mobile-only,.print-only{display:none!important}.desktop-only{display:block}.data-table{width:100%;min-width:0;table-layout:fixed}.data-table th,.data-table td{height:54px;vertical-align:middle;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.data-table th{height:46px}.data-table .num{text-align:right;font-variant-numeric:tabular-nums}.data-table .status-col,.data-table .action-col{text-align:center}.data-table .cell-note{display:block;margin-top:2px;color:var(--muted);font-size:9px;overflow:hidden;text-overflow:ellipsis}.row-action{max-width:100%;white-space:nowrap}.orders-table th:nth-child(1){width:18%}.orders-table th:nth-child(2){width:11%}.orders-table th:nth-child(3){width:15%}.orders-table th:nth-child(n+4):nth-child(-n+6){width:11%}.orders-table th:nth-child(7){width:10%}.orders-table th:nth-child(8){width:13%}.vouchers-table th:nth-child(1){width:18%}.vouchers-table th:nth-child(2){width:11%}.vouchers-table th:nth-child(3){width:17%}.vouchers-table th:nth-child(n+4):nth-child(-n+6){width:11%}.vouchers-table th:nth-child(7){width:9%}.vouchers-table th:nth-child(8){width:12%}.receipts-table th:nth-child(1){width:20%}.receipts-table th:nth-child(2){width:20%}.receipts-table th:nth-child(3){width:13%}.receipts-table th:nth-child(4){width:18%}.receipts-table th:nth-child(5){width:17%}.receipts-table th:nth-child(6){width:12%}.receiver-receivables-table th:nth-child(1){width:20%}.receiver-receivables-table th:nth-child(2){width:18%}.receiver-receivables-table th:nth-child(n+3):nth-child(-n+5){width:13%}.receiver-receivables-table th:nth-child(6){width:10%}.receiver-receivables-table th:nth-child(7){width:13%}.delivery-man-receivables-table th:nth-child(1){width:24%}.delivery-man-receivables-table th:nth-child(2){width:24%}.delivery-man-receivables-table th:nth-child(3){width:18%}.delivery-man-receivables-table th:nth-child(4){width:14%}.delivery-man-receivables-table th:nth-child(5){width:20%}.master-table th:nth-child(1),.master-table th:nth-child(2){width:22%}.master-table th:nth-child(3),.master-table th:nth-child(4){width:16%}.master-table th:nth-child(5){width:11%}.master-table th:nth-child(6){width:13%}.coa-table th:nth-child(1){width:16%}.coa-table th:nth-child(2){width:29%}.coa-table th:nth-child(3){width:16%}.coa-table th:nth-child(4){width:26%}.coa-table th:nth-child(5){width:13%}.order-items-table th:nth-child(1){width:18%}.order-items-table th:nth-child(2){width:25%}.order-items-table th:nth-child(3){width:7%}.order-items-table th:nth-child(n+4):nth-child(-n+7){width:11%}.order-items-table th:last-child{width:6%}.voucher-items-table th:nth-child(1){width:23%}.voucher-items-table th:nth-child(2){width:20%}.voucher-items-table th:nth-child(3){width:21%}.voucher-items-table th:nth-child(n+4){width:12%}

.detail-head{align-items:flex-end}.head-actions{display:flex;align-items:center;gap:9px}.detail-overview{padding:0;overflow:hidden}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.detail-grid>div{min-width:0;padding:15px 18px;border-right:1px solid #e4eef1;border-bottom:1px solid #e4eef1}.detail-grid>div:nth-child(2n){border-right:0}.detail-grid>div:last-child,.detail-grid>div:nth-last-child(2):nth-child(odd){border-bottom:0}.detail-grid small,.detail-grid strong{display:block}.detail-grid small{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}.detail-grid strong{margin-top:4px;line-height:1.5;overflow-wrap:anywhere}.detail-grid .wide-detail{grid-column:1/-1;border-right:0}.detail-summary{grid-template-columns:repeat(auto-fit,minmax(145px,1fr));margin-bottom:24px}.detail-summary .summary-attention,.voucher-summary .summary-attention{background:linear-gradient(135deg,#fff5d3,#fffaf0);border-color:#f2d878}.summary em{display:block;margin-top:5px;color:#a56f00;font-size:9px;font-style:normal}.detail-section{margin:24px 0}.section-bar{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:10px}.section-bar h2{margin:2px 0 0;font-size:19px}.section-bar h2 span{display:inline-grid;place-items:center;min-width:23px;height:23px;padding:0 7px;border-radius:999px;background:#e8f6f5;color:var(--teal);font-size:10px;vertical-align:2px}.action-panel{max-width:900px;margin:18px auto}.panel-title{display:flex;align-items:center;gap:12px;margin-bottom:16px}.panel-title>span{width:42px;height:42px;flex:none;border-radius:12px;background:var(--yellow);display:grid;place-items:center;font-weight:900}.panel-title>div{min-width:0;flex:1}.panel-title h3,.panel-title p{margin:0}.panel-title p{margin-top:3px;color:var(--muted);font-size:10px}.subtle-action{border-style:dashed;background:rgba(255,255,255,.55);color:var(--teal);margin:6px 0 18px}.workflow-action{max-width:900px;display:block;margin:24px auto;padding:14px}.compact-list{display:grid;gap:8px}.compact-row{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:11px 13px}.compact-row>div{min-width:0;flex:1}.compact-row strong,.compact-row small{display:block}.compact-row small{color:var(--muted);margin-top:3px}.icon-danger{width:30px;height:30px;border:1px solid #ffd0d3;border-radius:9px;background:#fff5f6;color:var(--red);font-weight:900;cursor:pointer}.document-actions{display:flex;gap:10px;max-width:900px;margin-left:auto;margin-right:auto}.document-toolbar{display:flex;justify-content:flex-end;gap:9px;margin:18px 0}.inline-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.print-center{text-align:center}

.record-card-list{display:grid;gap:10px}.record-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:15px;padding:14px;box-shadow:0 6px 18px rgba(18,72,93,.07);overflow:hidden}.record-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid #e8f0f2}.record-card header>div{min-width:0}.record-card header small,.record-kv small{display:block;color:var(--muted);font-size:8px;text-transform:uppercase;letter-spacing:.05em}.record-card h3{margin:3px 0 0;font-size:15px;line-height:1.35;overflow-wrap:anywhere}.record-kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 14px;padding-top:11px}.record-kv>div{min-width:0}.record-kv strong{display:block;margin-top:3px;font-size:11px;line-height:1.4;overflow-wrap:anywhere}.record-kv .amount strong{font-size:14px;color:var(--teal)}.record-note,.record-subline{margin:10px 0 0;padding-top:9px;border-top:1px dashed #dbe8eb;color:#60798d;font-size:10px;line-height:1.55}.card-action{width:100%;margin-top:12px}.linked-card{padding-right:40px}.linked-card .card-arrow{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:var(--teal);font-size:22px}.party-route{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;margin:11px 0 0;padding:9px 10px;border-radius:10px;background:#f2f9fa;font-size:10px;font-weight:750}.party-route span:last-child{text-align:right}.party-route b,.route-arrow{color:var(--teal)}.receipt-timeline{position:relative;display:grid;gap:10px}.receipt-card{display:grid;grid-template-columns:14px 1fr;gap:10px}.receipt-marker{width:10px;height:10px;margin-top:19px;border:3px solid #c9e9e6;background:var(--teal);border-radius:50%;box-sizing:content-box}.receipt-main{background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px}.receipt-main header{display:flex;justify-content:space-between;gap:12px}.receipt-main header strong,.receipt-main header small{display:block}.receipt-main header small{color:var(--muted);font-size:9px;margin-top:3px}.receipt-amount{text-align:right}.receipt-amount b{display:block;font-size:16px}.receipt-meta{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.receipt-meta span{padding:5px 8px;border-radius:7px;background:#f1f7f8;color:#567387;font-size:9px}.reversal-box{margin-top:12px}

@media(max-width:900px){
 .desktop-only{display:none!important}.mobile-only{display:block!important}.data-table{display:none}.detail-head{align-items:flex-start}.head-actions{flex-direction:column;align-items:flex-end}.detail-overview{margin-bottom:10px}.detail-grid{grid-template-columns:1fr 1fr}.detail-grid>div{padding:11px 12px}.detail-summary,.voucher-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 18px}.detail-summary div,.voucher-summary div{padding:10px}.detail-summary strong,.voucher-summary strong{font-size:14px}.detail-section{margin:18px 0}.section-bar{align-items:center}.section-bar h2{font-size:16px}.section-bar .btn{font-size:9px}.action-panel{margin:12px 0}.panel-title{margin-bottom:13px}.document-actions{flex-direction:column}.document-toolbar{position:sticky;bottom:76px;z-index:18;padding:8px;background:rgba(237,247,251,.94);border-radius:13px;box-shadow:0 7px 20px rgba(18,72,93,.12)}.document-toolbar .btn{flex:1}.compact-row{padding:10px}.receipt-main header{align-items:flex-start}.receipt-meta{margin-bottom:8px}
}

/* Voucher read-only detail: one compact sheet with a clear financial hierarchy. */
.voucher-detail-modal{display:grid;gap:14px}.voucher-party-summary{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:11px;padding:2px 0 13px;border-bottom:1px solid var(--line)}.voucher-party-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#e8f7f5;color:var(--teal);font-size:15px}.voucher-party-summary>div{min-width:0}.voucher-party-summary small,.voucher-party-summary strong,.voucher-party-summary p{display:block}.voucher-party-summary small{color:var(--muted);font-size:8px;text-transform:uppercase;letter-spacing:.06em}.voucher-party-summary strong{margin-top:2px;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.voucher-party-summary p{overflow:hidden;margin:3px 0 0;color:var(--muted);font-size:9px;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}.voucher-financial-detail{overflow:hidden;border:1px solid var(--line);border-radius:12px}.voucher-financial-detail>div{min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:8px 12px;border-bottom:1px solid var(--line)}.voucher-financial-detail>div:last-child{border-bottom:0}.voucher-financial-detail span{color:var(--muted);font-size:10px}.voucher-financial-detail strong{font-size:12px;text-align:right;white-space:nowrap}.voucher-financial-detail .voucher-total-row{background:#f3fbfa}.voucher-financial-detail .voucher-total-row span,.voucher-financial-detail .voucher-total-row strong{color:var(--navy);font-weight:850}.voucher-financial-detail .voucher-outstanding-row{background:#fff8df}.voucher-financial-detail .voucher-outstanding-row strong{color:#9a6500}.voucher-detail-note{padding:10px 12px;border-left:3px solid #b9deda;border-radius:0 9px 9px 0;background:#f6fbfb}.voucher-detail-note small{color:var(--muted);font-size:8px;text-transform:uppercase}.voucher-detail-note p{margin:4px 0 0;font-size:10px;line-height:1.55;overflow-wrap:anywhere}.voucher-detail-modal .modal-section-title{margin:0 0 -7px}.voucher-activity-list{overflow:hidden;border:1px solid var(--line);border-radius:12px}.voucher-activity-list>div{min-height:48px;display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:9px;padding:7px 10px;border-bottom:1px solid var(--line)}.voucher-activity-list>div:last-child{border-bottom:0}.voucher-activity-list>div>i{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:#edf8f7;color:var(--teal);font-size:10px}.voucher-activity-list span,.voucher-activity-list strong,.voucher-activity-list small{display:block;min-width:0}.voucher-activity-list strong{font-size:10px}.voucher-activity-list small{margin-top:2px;color:var(--muted);font-size:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:900px){.voucher-detail-modal{gap:11px}.voucher-party-summary{grid-template-columns:36px minmax(0,1fr) auto;gap:9px;padding-bottom:10px}.voucher-party-icon{width:36px;height:36px;border-radius:10px}.voucher-party-summary strong{font-size:14px}.voucher-financial-detail>div{min-height:39px;padding:7px 10px}.voucher-detail-note{padding:8px 10px}.voucher-activity-list>div{min-height:44px}}

/* Order detail uses compact text instead of summary cards. */
.order-title-block p>span{margin:0 5px;color:#9aabb8}
.order-financial-lines{display:flex;align-items:center;flex-wrap:wrap;gap:8px 22px;margin:0 0 12px;padding:2px 0;color:#5f778a;font-size:11px}
.order-financial-lines span{white-space:nowrap}.order-financial-lines strong{color:var(--navy);font-size:13px}.order-financial-lines .attention,.order-financial-lines .attention strong{color:#a46700}
.settlement-expected-line{margin:0 0 12px;padding:9px 11px;border-bottom:1px solid var(--line);color:#5f778a;font-size:11px}.settlement-expected-line strong{color:var(--navy);font-size:14px}
.prepaid-unavailable{display:block;margin:4px 2px 0;color:#a35d00;font-size:9px;line-height:1.4}
@media(max-width:900px){.order-financial-lines{gap:5px 14px;margin-bottom:9px}.order-financial-lines strong{font-size:12px}}

/* Voucher detail header: compact, aligned actions with no duplicated mobile data. */
.voucher-title-block{min-width:0}.voucher-title-block h1{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.voucher-title-block p{margin:5px 0 0;color:var(--muted);font-size:11px}
.voucher-detail-head>.head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.voucher-detail-head .page-action-buttons{display:flex;flex-wrap:nowrap;align-items:center;gap:6px}.voucher-detail-head .action-label{margin-left:6px}
@media(max-width:900px){
 .voucher-detail-head{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:40px 40px!important;row-gap:8px!important;padding-right:44px!important;padding-left:44px!important;margin-bottom:12px!important}
 .voucher-title-block{grid-row:1;display:flex;height:40px;flex-direction:column;justify-content:center}.voucher-title-block h1{font-size:20px!important}.voucher-title-block p{margin-top:2px;font-size:9px}
 .voucher-detail-head>.head-actions{grid-row:2;width:calc(100% + 88px)!important;max-width:none!important;height:40px;margin-left:-44px;justify-content:space-between!important}
 .voucher-detail-head>.head-actions>.status{flex:0 0 auto;white-space:nowrap}
 .voucher-detail-head .page-action-buttons{width:auto!important;margin-left:auto;justify-content:flex-end!important}
 .voucher-detail-head .page-action-buttons .btn{width:40px!important;min-width:40px!important;max-width:40px!important;padding:0!important;flex:0 0 40px!important;font-size:0!important}
 .voucher-detail-head .page-action-buttons .btn>i{margin:0!important;font-size:14px!important}
 .voucher-detail-head .action-label{display:none}
 .voucher-summary .voucher-summary-secondary,.voucher-summary .voucher-summary-status{display:none!important}
 .voucher-summary .compact-info-value{min-width:0!important}
}
@media(max-width:430px){.detail-grid{grid-template-columns:1fr}.detail-grid>div,.detail-grid>div:nth-child(2n){border-right:0}.detail-grid>div{border-bottom:1px solid #e4eef1!important}.detail-grid>div:last-child{border-bottom:0!important}.detail-grid .wide-detail{grid-column:auto}.record-kv{gap:9px 10px}.document-toolbar{gap:6px}.document-toolbar .btn{padding-left:8px;padding-right:8px}.receipt-main header{gap:8px}.receipt-amount b{font-size:14px}}
@media(orientation:landscape) and (max-height:600px) and (max-width:950px){.record-card-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.record-card{padding:10px}.record-card header{padding-bottom:7px}.record-kv{padding-top:7px;gap:6px 10px}.record-note,.record-subline{margin-top:7px;padding-top:6px}.detail-section{margin:12px 0}.detail-summary,.voucher-summary{grid-template-columns:repeat(3,minmax(0,1fr));margin:7px 0 12px}.detail-grid>div{padding:8px 10px}.action-panel{max-width:none}.document-toolbar{bottom:62px}.receipt-timeline{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{.print-only{display:block!important}.desktop-only.no-print,.mobile-only.no-print{display:none!important}.print-slip{display:block!important}.print-slip table{display:table!important}.page-shell:has(>.print-slip){min-height:100vh;display:flex;flex-direction:column;justify-content:center}.page-shell:has(>.print-slip)>.print-slip{flex:none;margin:0 auto;break-inside:avoid;page-break-inside:avoid}}

/* Seven-column receipt list widths (kept separate for easy audit). */
.receipts-table th:nth-child(1){width:16%}.receipts-table th:nth-child(2){width:13%}.receipts-table th:nth-child(3){width:16%}.receipts-table th:nth-child(4){width:18%}.receipts-table th:nth-child(5){width:16%}.receipts-table th:nth-child(6){width:12%}.receipts-table th:nth-child(7){width:9%}

/* Card links must establish a block containing box; inline anchors fragment their background and absolute children. */
.record-card{display:block;width:100%}

/* Compact desktop document details. */
@media(min-width:901px){
 .page-shell:has(.detail-head){max-width:1180px;padding-top:18px}
 .detail-head{margin-bottom:14px}
 .detail-head h1{font-size:27px}
 .detail-overview{padding:10px}
 .detail-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px}
 .detail-grid>div,.detail-grid>div:nth-child(2n),.detail-grid>div:nth-last-child(2):nth-child(odd){padding:12px 14px;border:1px solid #e4eef1;border-radius:11px;background:#f8fbfc}
 .detail-grid .wide-detail{grid-column:1/-1}
 .detail-summary{gap:8px;margin:12px 0 20px}
 .detail-summary>div{min-height:76px;padding:11px 13px}
 .detail-summary strong{font-size:16px}
 .voucher-summary{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:16px 0}
 .voucher-summary>div{min-height:78px;padding:12px 14px}
 .voucher-summary strong{font-size:17px}
 .detail-section{margin:20px 0}
 .section-bar{margin-bottom:9px}
 .data-table th{height:42px}
 .data-table td{height:49px}
 .document-toolbar{margin:16px 0}
}

/* Essential accounting */
.accounting-summary{grid-template-columns:repeat(3,minmax(0,1fr));max-width:900px}.account-balance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}.account-balance-card{position:relative;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--navy);text-align:left;box-shadow:var(--shadow);cursor:pointer}.account-balance-card:hover,.account-balance-card.selected{border-color:#75c6c0;background:#f0fbfa;box-shadow:0 0 0 2px #0a8c8314}.account-balance-card span small,.account-balance-card span strong{display:block}.account-balance-card span small{color:var(--muted);font-size:8px;text-transform:uppercase}.account-balance-card span strong{margin-top:3px}.account-balance-card .account-amount{text-align:right}.account-balance-card .account-amount b{display:block;color:var(--teal);font-size:18px}.account-balance-card em{position:absolute;top:5px;right:6px;color:var(--red);font-size:7px;font-style:normal}.ledger-panel{margin-top:24px}.ledger-filters{display:grid;grid-template-columns:minmax(260px,2fr) 1fr 1fr auto;align-items:end;gap:10px}.ledger-filters .btn{height:41px}.ledger-period{padding:7px 10px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);font-size:10px;font-weight:800}.ledger-summary{grid-template-columns:repeat(2,minmax(160px,240px));justify-content:start}.ledger-table th:nth-child(1){width:14%}.ledger-table th:nth-child(2){width:15%}.ledger-table th:nth-child(3){width:32%}.ledger-table th:nth-child(n+4){width:13%}.ledger-card .code-chip{max-width:42%;overflow:hidden;text-overflow:ellipsis}.ledger-results{margin-bottom:30px}
@media(max-width:900px){.accounting-summary{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none}.accounting-summary>div:first-child{grid-column:1/-1}.account-balance-grid{grid-template-columns:1fr}.ledger-filters{grid-template-columns:1fr 1fr}.ledger-filters label:first-child,.ledger-filters .btn{grid-column:1/-1}.ledger-summary{grid-template-columns:1fr 1fr}.ledger-period{font-size:8px}.ledger-results .section-bar{align-items:flex-end}}
@media(orientation:landscape) and (max-height:600px) and (max-width:950px){.accounting-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.accounting-summary>div:first-child{grid-column:auto}.account-balance-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ledger-filters{grid-template-columns:minmax(220px,2fr) 1fr 1fr auto}.ledger-filters label:first-child,.ledger-filters .btn{grid-column:auto}}

/* Compact information hierarchy: keep operational data, remove repeated descriptions. */
.page-head:not(.detail-head)>div>p{display:none}.card .page-head p,.detail-head p{display:block}.page-head .eyebrow,.section-bar .eyebrow{display:none}.empty p{display:none}.linked-card header small,.item-card header small{display:none}.form-guide{display:none}.form-shell{grid-template-columns:minmax(0,720px)}.login-brand p,.login-help{display:none}
.page-shell:not(:has(>.home-stage)){padding-top:16px;padding-bottom:28px}.page-head{min-height:0;margin:0 0 12px}.page-head h1{font-size:23px;line-height:1.25}.card{padding:15px;margin-bottom:10px}.list-toolbar{margin-bottom:8px}.detail-section{margin:16px 0}.section-bar{margin-bottom:8px}.section-bar h2{margin:0;font-size:18px}.summary{gap:8px;margin:10px 0}.summary div{padding:11px 12px}.summary strong{font-size:15px}.detail-summary{margin-bottom:16px}.record-card-list{gap:8px}.record-card{padding:12px}.record-card header{padding-bottom:8px}.record-kv{padding-top:8px;gap:8px 12px}.record-subline,.record-note{margin-top:7px;padding-top:7px}.settings-grid{gap:12px}.settings-grid section>h3{margin-bottom:6px}.menu-list a{padding:12px 14px}.form-grid{gap:10px 12px}.action-panel{margin-top:12px;margin-bottom:12px}.panel-title{margin-bottom:12px}.panel-title>span{width:36px;height:36px}.notice,.alert{margin:10px 0;padding:11px 13px}.table-wrap{border-radius:14px}.data-table th{height:40px;padding-top:8px;padding-bottom:8px}.data-table td{height:47px;padding-top:9px;padding-bottom:9px}.account-balance-grid{gap:8px}.ledger-panel{margin-top:16px}.document-toolbar{margin:12px 0}
@media(max-width:900px){.page-shell:not(:has(>.home-stage)){padding:12px 11px 82px}.page-head{margin-bottom:10px}.page-head h1{font-size:20px}.card{padding:12px}.detail-section{margin:13px 0}.section-bar h2{font-size:16px}.summary{margin:8px 0 12px}.summary div{padding:9px 10px}.record-card{padding:11px}.list-toolbar{gap:8px}.search-box{height:40px}.settings-grid{gap:10px}.menu-list a{padding:11px 12px}.action-panel{margin:9px 0}.panel-title{margin-bottom:10px}}
@media(orientation:landscape) and (max-height:600px) and (max-width:950px){.page-shell:not(:has(>.home-stage)){padding-top:7px}.page-head{margin-bottom:7px}.detail-section{margin:9px 0}.summary{margin:6px 0 9px}.record-card-list{gap:7px}.record-card{padding:9px}.menu-list a{padding:8px 10px}}

/* Modal-first data entry */
.entry-modal-backdrop{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:18px;background:rgba(7,30,47,.44);backdrop-filter:blur(4px);animation:modal-fade .16s ease-out}.entry-modal{width:min(540px,100%);max-height:min(760px,calc(100dvh - 36px));display:flex;flex-direction:column;background:#fff;border:1px solid #d6e7ed;border-radius:18px;box-shadow:0 24px 70px rgba(7,34,50,.3);animation:modal-in .18s ease-out}.entry-modal.modal-wide{width:min(780px,100%)}.entry-modal>header{height:54px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid #e3edf1}.entry-modal>header h2{margin:0;font-size:17px}.modal-close{width:34px;height:34px;border:0;border-radius:9px;background:#f0f6f8;color:#506c80;font-size:21px;cursor:pointer}.entry-modal-body{overflow:auto;padding:16px}.entry-modal-body form>.btn,.entry-modal-body>.btn{margin-top:12px}.entry-modal-body .notice{font-size:10px}.entry-modal-body .sticky-actions{position:static;padding:0;border:0;box-shadow:none;margin-top:12px}.entry-modal-body textarea{min-height:64px}@keyframes modal-fade{from{opacity:0}to{opacity:1}}@keyframes modal-in{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.selection-bar{position:sticky;bottom:14px;z-index:25;display:flex;align-items:center;justify-content:space-between;gap:12px;width:min(620px,calc(100% - 20px));margin:12px auto 0;padding:9px 10px 9px 14px;border:1px solid #b9dedb;border-radius:14px;background:rgba(255,255,255,.96);box-shadow:0 12px 34px rgba(10,65,76,.18);backdrop-filter:blur(10px)}.selection-bar span{font-size:11px;color:#527084}.selection-bar b{color:var(--navy)}

/* Dense mobile records: use cards only where scanning needs separation. */
.compact-record-list{display:grid;gap:6px}.compact-record{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:10px;padding:9px 10px;border:1px solid var(--line);border-radius:11px;background:#fff}.compact-record>div:first-child{min-width:0}.compact-record small,.compact-record strong{display:block}.compact-record small{color:var(--muted);font-size:8px}.compact-record strong{margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compact-record-amount{text-align:right}.compact-record-amount b{color:var(--teal);font-size:13px}.record-card:not(.item-card):not(.ledger-card){box-shadow:0 3px 10px rgba(18,72,93,.05)}.record-card:not(.item-card):not(.ledger-card) header{padding-bottom:6px;border-bottom:0}.record-card:not(.item-card):not(.ledger-card) .record-subline{margin-top:5px;padding-top:5px}.record-card:not(.item-card):not(.ledger-card) .record-kv{padding-top:6px}.record-card:not(.linked-card) .card-action{width:auto;margin-top:8px;padding:6px 9px}
@media(max-width:900px){.entry-modal-backdrop{place-items:end center;padding:0}.entry-modal,.entry-modal.modal-wide{width:100%;max-height:92dvh;border-radius:18px 18px 0 0;border-bottom:0}.entry-modal>header{height:50px;padding:0 13px}.entry-modal-body{padding:13px 12px calc(14px + env(safe-area-inset-bottom))}.entry-modal-body .form-grid{grid-template-columns:1fr}.selection-bar{bottom:76px;width:calc(100% - 12px);margin-top:8px}.compact-record{grid-template-columns:minmax(0,1fr) auto auto}.compact-record .status{display:none}.compact-record .btn{grid-column:3}}
@media(orientation:landscape) and (max-height:600px) and (max-width:950px){.entry-modal-backdrop{place-items:center;padding:8px}.entry-modal,.entry-modal.modal-wide{width:min(720px,94%);max-height:calc(100dvh - 16px);border-radius:14px;border-bottom:1px solid var(--line)}.entry-modal>header{height:44px}.entry-modal-body{padding:10px 12px}.entry-modal-body .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.entry-modal-body .form-grid .full{grid-column:1/-1}.selection-bar{bottom:61px}.compact-record-list{grid-template-columns:1fr 1fr}}

/* Final density pass for summary/list cards. */
.record-card:not(.item-card):not(.ledger-card) header{padding-bottom:4px;border-bottom:0}.record-card:not(.item-card):not(.ledger-card) .record-subline{margin-top:3px;padding-top:3px;border-top:0}.record-card:not(.item-card):not(.ledger-card) .record-kv{display:flex;flex-wrap:wrap;gap:6px 18px;padding-top:5px}.record-card:not(.item-card):not(.ledger-card) .record-kv>div{min-width:82px}.record-card:not(.linked-card) .card-action{width:auto;margin-top:7px;padding:6px 9px}.account-balance-card{padding-top:10px;padding-bottom:10px}.account-balance-card .account-amount b{font-size:15px}

/* Single-bar operational summaries */
.compact-info-bar{min-height:62px;display:flex;align-items:stretch;margin:0 0 12px;border:1px solid var(--line);border-radius:13px;background:#fff;overflow:hidden}.compact-info-values{min-width:0;flex:1;display:flex;align-items:stretch;overflow-x:auto;scrollbar-width:none}.compact-info-values::-webkit-scrollbar{display:none}.compact-info-value{min-width:128px;flex:1;display:flex;flex-direction:column;justify-content:center;padding:8px 14px;border-right:1px solid #e5eef1}.compact-info-value small,.compact-info-value strong{display:block}.compact-info-value small{color:var(--muted);font-size:8px;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}.compact-info-value strong{margin-top:3px;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compact-info-value.attention{background:#fff8df}.compact-info-value.attention strong{color:#9a6500}.compact-info-value.status-value{min-width:95px;flex:0 0 auto}.compact-info-value.status-value .status{align-self:flex-start;margin-top:3px}.compact-info-details{flex:0 0 auto;border:0;border-left:1px solid #c9e5e2;background:#eef9f8;color:var(--teal);padding:0 15px;font-size:10px;font-weight:850;cursor:pointer}.compact-info-details:hover{background:#e1f4f2}.read-only-detail-list{border-top:1px solid var(--line)}.read-only-detail-list>div{min-height:42px;display:grid;grid-template-columns:minmax(110px,40%) minmax(0,1fr);align-items:center;gap:12px;padding:8px 2px;border-bottom:1px solid var(--line)}.read-only-detail-list span{color:var(--muted);font-size:10px}.read-only-detail-list strong{text-align:right;overflow-wrap:anywhere}.read-only-detail-list .detail-note{align-items:start}.read-only-detail-list .detail-note strong{font-weight:650;line-height:1.55}

/* Dense list rows instead of mobile cards */
.compact-link-list,.compact-item-list,.compact-account-list,.compact-ledger-list{overflow:hidden;border:1px solid var(--line);border-radius:11px;background:#fff}.compact-link-row{min-height:62px;display:grid;grid-template-columns:minmax(0,1fr) auto auto 10px;align-items:center;gap:9px;padding:8px 10px;border-bottom:1px solid var(--line)}.compact-link-row:last-child,.compact-item-row:last-child,.compact-ledger-row:last-child{border-bottom:0}.compact-link-main,.compact-item-main{min-width:0}.compact-link-main strong,.compact-link-main small,.compact-item-main strong,.compact-item-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compact-link-main strong,.compact-item-main strong{font-size:12px}.compact-link-main small,.compact-item-main small{margin-top:2px;color:var(--muted);font-size:8px}.compact-link-amount{text-align:right}.compact-link-amount small,.compact-link-amount b{display:block;white-space:nowrap}.compact-link-amount small{color:var(--muted);font-size:7px;text-transform:uppercase}.compact-link-amount b{margin-top:2px;font-size:12px;color:var(--teal)}.compact-link-row>i{color:var(--teal);font-size:17px;font-style:normal}.compact-item-row{min-height:62px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:9px;padding:8px 10px;border-bottom:1px solid var(--line)}.compact-item-main small b{color:var(--teal)}.compact-item-total{text-align:right}.compact-item-total>strong{font-size:13px;color:var(--teal);white-space:nowrap}.compact-item-total>div{display:flex;justify-content:flex-end;gap:4px;margin-top:3px}.compact-item-total span{padding:2px 4px;border-radius:5px;background:#f1f7f8;color:#60798d;font-size:7px;white-space:nowrap}.compact-table-gap{margin-top:10px}

/* Compact accounting */
.account-table th:nth-child(1){width:30%}.account-table th:nth-child(2){width:17%}.account-table th:nth-child(3){width:23%}.account-table th:nth-child(4){width:15%}.account-table th:nth-child(5){width:15%}.compact-account-row{width:100%;min-height:52px;display:grid;grid-template-columns:minmax(0,1fr) auto 10px;align-items:center;gap:10px;padding:7px 10px;border:0;border-bottom:1px solid var(--line);background:#fff;color:var(--navy);text-align:left;cursor:pointer}.compact-account-row:last-child{border-bottom:0}.compact-account-row.selected{background:#eef9f8}.compact-account-row span strong,.compact-account-row span small{display:block}.compact-account-row span small{margin-top:2px;color:var(--muted);font-size:8px}.compact-account-row>b{color:var(--teal)}.compact-account-row>i{color:var(--teal);font-style:normal}.ledger-toolbar{margin:14px 0;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:#fff}.compact-ledger-row{min-height:56px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:9px;padding:7px 10px;border-bottom:1px solid var(--line)}.compact-ledger-row>div{min-width:0}.compact-ledger-row strong,.compact-ledger-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compact-ledger-row small{margin-top:2px;color:var(--muted);font-size:8px}.compact-ledger-row>span{color:#5d7688;font-size:9px}.compact-ledger-row>b{font-size:11px}

/* Flatten remaining operational groups and histories. */
.receiver-group{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}.receiver-group:hover{border-color:transparent}.receiver-group .group-head{padding:7px 2px;margin:0}.receiver-group .quick-card{margin:0;border-width:1px 0 0;border-radius:0;box-shadow:none}.receipt-timeline{gap:0;border:1px solid var(--line);border-radius:11px;overflow:hidden;background:#fff}.receipt-card{display:block}.receipt-marker{display:none}.receipt-main{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:9px 11px}.receipt-card:last-child .receipt-main{border-bottom:0}
.checkbox-field{display:flex!important;align-items:center;justify-content:flex-start;gap:10px;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:#f9fcfc}.checkbox-field input{width:20px;height:20px;margin:0;accent-color:var(--teal)}.checkbox-field span{font-weight:750;color:var(--navy)}.draft-saved-note{margin:10px 0 0;color:var(--teal);font-size:11px;font-weight:750}.group-head-actions{display:flex;align-items:center;gap:7px}.group-head-actions>span{background:#edf7f7;color:var(--teal);padding:5px 9px;border-radius:999px;font-size:10px;font-weight:800}.select-all-button{border:1px solid #b9dcda;background:#fff;color:var(--teal);border-radius:8px;padding:6px 9px;font:800 10px inherit;cursor:pointer}.select-all-button:hover:not(:disabled){background:#eaf8f7}.select-all-button:disabled{opacity:.45;cursor:not-allowed}

@media(max-width:900px){.compact-info-bar{min-height:58px;margin-bottom:9px;border-radius:10px}.compact-info-value{min-width:104px;padding:7px 10px}.compact-info-value strong{font-size:12px}.compact-info-details{padding:0 10px;font-size:9px}.compact-link-row{min-height:58px}.compact-link-row .status{padding:4px 6px;font-size:8px}.compact-item-row{min-height:58px}.read-only-detail-list>div{min-height:39px}.ledger-toolbar{margin:10px 0;padding:9px}.ledger-toolbar .section-bar{display:none}}
@media(max-width:430px){.compact-link-row{grid-template-columns:minmax(0,1fr) auto 9px}.compact-link-row>.status{display:none}.compact-info-value.status-value{min-width:85px}.compact-info-details{writing-mode:vertical-rl;padding:0 7px}.compact-item-row{grid-template-columns:minmax(0,1fr) auto auto}}
.voucher-action-list{display:grid;gap:8px}.compact-receipt-list{overflow:hidden;border:1px solid var(--line);border-radius:11px;background:#fff}.compact-receipt-row{width:100%;min-height:56px;display:grid;grid-template-columns:minmax(0,1fr) auto 9px;align-items:center;gap:9px;padding:7px 10px;border:0;border-bottom:1px solid var(--line);background:#fff;color:var(--navy);text-align:left;cursor:pointer}.compact-receipt-row:last-child{border-bottom:0}.compact-receipt-row>span{min-width:0}.compact-receipt-row strong,.compact-receipt-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compact-receipt-row strong{font-size:11px}.compact-receipt-row small{margin-top:2px;color:var(--muted);font-size:8px}.compact-receipt-row>b{font-size:12px;color:var(--teal);white-space:nowrap}.compact-receipt-row>i{color:var(--teal);font-size:16px;font-style:normal}
@media(max-width:900px){.voucher-mobile-toolbar{display:flex!important;gap:7px;margin:9px 0}.voucher-mobile-toolbar .btn{flex:1}}
@media(max-width:430px){.compact-info-details{width:34px;padding:0;font-size:0;writing-mode:initial}.compact-info-details:before{content:"•••";font-size:13px;letter-spacing:1px}.compact-info-value{min-width:98px}.compact-info-value.status-value{min-width:72px}.compact-item-row{grid-template-columns:minmax(0,1fr) auto;min-height:52px}.detail-section{margin:13px 0}.section-bar{margin-bottom:6px}.section-bar h2{font-size:15px}}
@media(orientation:landscape) and (max-height:600px) and (max-width:950px){.compact-info-bar{min-height:52px}.compact-info-value{padding-top:5px;padding-bottom:5px}.compact-link-list,.compact-item-list,.compact-account-list,.compact-ledger-list{display:grid;grid-template-columns:1fr 1fr}.compact-link-row:nth-last-child(2):nth-child(odd),.compact-item-row:nth-last-child(2):nth-child(odd),.compact-ledger-row:nth-last-child(2):nth-child(odd){border-bottom:0}.compact-link-row:nth-child(odd),.compact-item-row:nth-child(odd),.compact-ledger-row:nth-child(odd){border-right:1px solid var(--line)}}

/* Operational filters, paging, modal history and accessible row buttons */
body.modal-open{overflow:hidden}.filter-bar{display:grid;grid-template-columns:minmax(240px,1fr) 145px 145px 150px auto;align-items:end;gap:8px;margin:0 0 10px;padding:9px 10px;border:1px solid var(--line);border-radius:12px;background:#fff}.filter-bar label{min-width:0;color:var(--muted);font-size:8px}.filter-bar input,.filter-bar select{height:38px;margin-top:3px}.filter-bar .search-box{height:38px;margin:0}.filter-bar .search-box input{height:auto;margin:0}.filter-bar>.btn{height:38px}.clickable-row{cursor:pointer}.clickable-row:hover td{background:#f1faf9}.compact-link-row{width:100%;border-top:0;border-left:0;border-right:0;color:var(--navy);text-align:left;cursor:pointer}.compact-link-row:hover{background:#f3fafb}.pager{display:flex;align-items:center;justify-content:center;gap:10px;margin:10px 0}.pager span{color:var(--muted);font-size:10px;font-weight:800}.modal-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;margin-top:12px}.modal-section-title{margin:16px 0 7px;font-size:13px}.history-list,.activity-list{overflow:hidden;border:1px solid var(--line);border-radius:10px}.history-row{min-height:50px;display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:8px;padding:7px 9px;border-bottom:1px solid var(--line)}.history-row:last-child,.activity-list>div:last-child{border-bottom:0}.history-row span:first-child{min-width:0}.history-row b,.history-row small{display:block}.history-row small{margin-top:2px;color:var(--muted);font-size:8px}.activity-list>div{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:38px;padding:6px 9px;border-bottom:1px solid var(--line)}.activity-list small{color:var(--muted);font-size:8px;text-align:right}.entry-modal:focus{outline:none}
.payment-account-select{position:relative;width:100%;margin-top:6px}.payment-account-trigger{width:100%;min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 11px;border:1px solid #c7d9e1;border-radius:9px;background:#fff;color:var(--navy);text-align:left;cursor:pointer}.payment-account-trigger>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.payment-account-trigger:focus{border-color:#0a9a91;box-shadow:0 0 0 3px #0a9a9118;outline:none}.payment-account-trigger i{flex:none;color:var(--teal);font-size:11px;font-style:normal}.payment-account-options{position:absolute;z-index:110;top:calc(100% + 4px);right:0;left:0;overflow:auto;max-height:190px;border:1px solid #b9d8df;border-radius:9px;background:#fff;box-shadow:0 10px 24px rgba(18,72,93,.2)}.payment-account-option{width:100%;min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 11px;border:0;border-bottom:1px solid #e4eef1;background:#fff;color:var(--navy);text-align:left;cursor:pointer}.payment-account-option>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.payment-account-option:last-child{border-bottom:0}.payment-account-option:hover,.payment-account-option:focus-visible,.payment-account-option.selected{background:#edf9f8;color:var(--teal);outline:none}.payment-account-option small{flex:none;color:var(--muted);font-size:9px;font-weight:700}.payment-account-select.invalid .payment-account-trigger{border-color:var(--red)}
@media(max-width:900px){.payment-account-options{max-height:156px}.payment-account-option{min-height:40px}}
@media(max-width:900px){.filter-bar{grid-template-columns:1fr 1fr;padding:8px}.filter-bar .search-box{grid-column:1/-1}.filter-bar label:has(select),.filter-bar>.btn{grid-column:auto}.history-row{grid-template-columns:minmax(0,1fr) auto auto}.history-row .btn{grid-column:1/-1}.modal-actions>*{flex:1}.clickable-row:hover td{background:inherit}}
@media(max-width:430px){.filter-bar{grid-template-columns:1fr 1fr}.filter-bar label:has(select){grid-column:1/-1}.filter-bar>.btn{grid-column:1/-1}.history-row{grid-template-columns:minmax(0,1fr) auto}.history-row>.status{display:none}}
@media(orientation:landscape) and (max-height:600px) and (max-width:950px){.filter-bar{grid-template-columns:minmax(190px,1fr) 120px 120px 130px auto;margin-bottom:7px;padding:6px}.filter-bar .search-box,.filter-bar label:has(select),.filter-bar>.btn{grid-column:auto}.filter-bar input,.filter-bar select,.filter-bar>.btn,.filter-bar .search-box{height:34px}}
.compact-form-card{max-width:520px;margin:0 auto}.single-column-form{grid-template-columns:1fr}.field-help{display:block;margin:8px 0 12px;color:var(--muted)}.validation-message,.validation-errors{color:var(--red);font-size:9px}.validation-message{display:block;margin-top:4px}.alert.success{border-color:#bce8cc;background:#effbf3;color:#277443}

/* Simplified accounting tabs */
.accounting-tabs{display:flex;gap:4px;width:max-content;margin:0 0 12px;padding:3px;border:1px solid var(--line);border-radius:11px;background:#fff}.accounting-tabs button{min-width:105px;height:36px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:11px;font-weight:850;cursor:pointer}.accounting-tabs button.active{background:var(--teal);color:#fff}.accounting-summary-link{color:var(--navy);text-decoration:none;cursor:pointer}.accounting-summary-link:hover{background:#f0faf9}.accounting-overview-list{margin-top:10px}.accounting-overview-list .section-bar{align-items:center}.accounting-overview-list .account-table th:nth-child(1){width:38%}.accounting-overview-list .account-table th:nth-child(2){width:20%}.accounting-overview-list .account-table th:nth-child(3){width:27%}.accounting-overview-list .account-table th:nth-child(4){width:15%}.ledger-result-head{display:flex;align-items:center;justify-content:space-between;margin:14px 0 8px}.ledger-result-head strong,.ledger-result-head small{display:block}.ledger-result-head strong{font-size:16px}.ledger-result-head small{margin-top:2px;color:var(--muted);font-size:9px}.ledger-table .increase,.compact-ledger-row .increase{color:#16845b}.ledger-table .decrease,.compact-ledger-row .decrease{color:#c6535b}.accounting-empty{padding:24px 12px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--muted);text-align:center}.ledger-results{margin-bottom:26px}
@media(max-width:900px){.accounting-tabs{position:static;width:100%;margin-bottom:9px;background:#fff}.accounting-tabs button{flex:1}.accounting-overview-list{margin-top:8px}.ledger-result-head{margin-top:10px}.ledger-toolbar .ledger-filters{grid-template-columns:1fr 1fr}.ledger-toolbar .ledger-filters label:first-child,.ledger-toolbar .ledger-filters .btn{grid-column:1/-1}}
@media(orientation:landscape) and (max-height:600px) and (max-width:950px){.accounting-tabs{position:static;width:max-content;margin-bottom:6px}.ledger-toolbar .ledger-filters{grid-template-columns:minmax(220px,2fr) 1fr 1fr auto}.ledger-toolbar .ledger-filters label:first-child,.ledger-toolbar .ledger-filters .btn{grid-column:auto}}

/* Voucher delivery fee visibility. */
.voucher-items-table th:nth-child(1){width:21%}.voucher-items-table th:nth-child(2){width:18%}.voucher-items-table th:nth-child(3){width:19%}.voucher-items-table th:nth-child(4){width:7%}.voucher-items-table th:nth-child(n+5){width:11.5%}.compact-item-total>strong,.compact-item-total>small{display:block;white-space:nowrap}.compact-item-total>small{margin-top:2px;color:#9a6500;font-size:8px}

/* Guided order cancellation. */
.guided-cancel-note{margin:11px 0;padding:10px 12px;border:1px solid #f0d998;border-radius:10px;background:#fff9e7;color:#725718;font-size:10px;line-height:1.55}.guided-cancel-list{overflow:hidden;margin:10px 0;border:1px solid var(--line);border-radius:11px;background:#fff}.guided-cancel-step{min-height:58px;display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:9px;padding:8px 10px;border-bottom:1px solid var(--line)}.guided-cancel-step:last-child{border-bottom:0}.guided-cancel-step>b{width:26px;height:26px;display:grid;place-items:center;border-radius:8px;background:#fff0d0;color:#936300;font-size:10px}.guided-cancel-step>span{min-width:0}.guided-cancel-step strong,.guided-cancel-step small{display:block}.guided-cancel-step small{margin-top:2px;color:var(--muted);font-size:8px;line-height:1.45;overflow-wrap:anywhere}.guided-cancel-step em{padding:4px 7px;border-radius:999px;background:#fff1d2;color:#8e630b;font-size:8px;font-style:normal;font-weight:850}.guided-cancel-step.done>b,.guided-cancel-step.done em{background:#e2f6e9;color:#247742}.compact-loading{min-height:100px}.entry-modal-body>.guided-cancel-list+.btn{margin-top:0}

/* Essential operational home and shared compact controls. */
.operational-home-head{margin-bottom:10px}.home-operation-list{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow)}.home-operation-row{min-height:68px;display:grid;grid-template-columns:38px minmax(0,1fr) auto 12px;align-items:center;gap:11px;padding:9px 13px;border-bottom:1px solid var(--line);color:var(--navy)}.home-operation-row:last-child{border-bottom:0}.home-operation-row:hover{background:#f4fbfb}.home-operation-row>b{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#eaf7f6;color:var(--teal);font-size:10px}.home-operation-row.primary-row>b{background:var(--yellow);color:var(--navy);font-size:18px}.home-operation-row>span{min-width:0}.home-operation-row strong,.home-operation-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-operation-row strong{font-size:13px}.home-operation-row small{margin-top:2px;color:var(--muted);font-size:9px}.home-operation-row>em{color:var(--teal);font-size:16px;font-style:normal;font-weight:900;font-variant-numeric:tabular-nums}.home-operation-row>i{color:var(--teal);font-size:17px;font-style:normal}.home-secondary-links{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}.home-secondary-links a{padding:11px;border:1px solid var(--line);border-radius:10px;background:#fff;text-align:center;font-size:10px;font-weight:800}
.lookup-select{position:relative;width:100%;margin-top:6px}.lookup-select-trigger{width:100%;min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 11px;border:1px solid #c7d9e1;border-radius:9px;background:#fff;color:var(--navy);text-align:left;cursor:pointer}.lookup-select-trigger:focus{border-color:#0a9a91;box-shadow:0 0 0 3px #0a9a9118;outline:none}.lookup-select-trigger i{color:var(--teal);font-style:normal}.lookup-select-options{overflow:auto;max-height:220px;margin-top:4px;border:1px solid #b9d8df;border-radius:9px;background:#fff;box-shadow:0 8px 20px rgba(18,72,93,.12)}.lookup-select-option{width:100%;min-height:42px;padding:8px 11px;border:0;border-bottom:1px solid #e4eef1;background:#fff;color:var(--navy);text-align:left;cursor:pointer}.lookup-select-option:last-child{border-bottom:0}.lookup-select-option:hover,.lookup-select-option.selected{background:#edf9f8;color:var(--teal)}.lookup-select.invalid .lookup-select-trigger{border-color:var(--red)}
.native-lookup{appearance:auto;background:#fff}.acs-select{position:relative;width:100%;margin-top:6px}.acs-trigger{width:100%;min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 11px;border:1px solid #c7d9e1;border-radius:9px;background:#fff;color:var(--navy);text-align:left;cursor:pointer}.acs-trigger:focus-visible{border-color:#0a9a91;box-shadow:0 0 0 3px #0a9a9118;outline:none}.acs-trigger span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.acs-trigger i{color:var(--teal);font-style:normal}.acs-dropdown{position:absolute;z-index:85;top:calc(100% + 4px);right:0;left:0;overflow:hidden;border:1px solid #b9d8df;border-radius:10px;background:#fff;box-shadow:0 12px 28px rgba(18,72,93,.18)}.acs-search{display:flex;align-items:center;gap:7px;padding:7px;border-bottom:1px solid #e4eef1;color:var(--teal)}.acs-search input{height:34px;margin:0;padding:7px 9px}.acs-options{overflow:auto;max-height:190px}.acs-option{width:100%;min-height:40px;padding:8px 11px;border:0;border-bottom:1px solid #e7eff2;background:#fff;color:var(--navy);text-align:left;cursor:pointer}.acs-option:last-child{border-bottom:0}.acs-option:hover,.acs-option:focus-visible,.acs-option.selected{background:#edf9f8;color:var(--teal);outline:none}.acs-empty{padding:14px;text-align:center;color:var(--muted);font-size:10px}.acs-select.invalid .acs-trigger{border-color:var(--red)}
/* Status filters expand directly below their field inside filter dialogs. */
.anchored-select{position:relative;width:100%;margin-top:6px}.anchored-select-trigger{width:100%;min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 11px;border:1px solid #c7d9e1;border-radius:9px;background:#fff;color:var(--navy);text-align:left;cursor:pointer}.anchored-select-trigger:focus-visible,.anchored-select.open .anchored-select-trigger{border-color:#0a9a91;box-shadow:0 0 0 3px #0a9a9118;outline:none}.anchored-select-trigger span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.anchored-select-trigger i{flex:none;color:var(--teal);font-size:9px;transition:transform .15s}.anchored-select.open .anchored-select-trigger i{transform:rotate(180deg)}.anchored-select-options{overflow:auto;max-height:180px;margin-top:4px;border:1px solid #b9d8df;border-radius:9px;background:#fff;box-shadow:0 8px 20px rgba(18,72,93,.12)}.anchored-select-option{width:100%;min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 11px;border:0;border-bottom:1px solid #e4eef1;background:#fff;color:var(--navy);text-align:left;cursor:pointer}.anchored-select-option:last-child{border-bottom:0}.anchored-select-option:hover,.anchored-select-option:focus-visible,.anchored-select-option.selected{background:#edf9f8;color:var(--teal);outline:none}.anchored-select-option i{font-size:10px}

.app-toast{position:fixed;right:18px;bottom:18px;z-index:160;max-width:min(380px,calc(100vw - 28px));padding:11px 14px;border:1px solid #bce8cc;border-radius:11px;background:#effbf3;color:#277443;box-shadow:0 14px 34px rgba(17,71,50,.2);font-size:11px;font-weight:800;animation:toast-in .18s ease-out}@keyframes toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.mobile-filter-toolbar{display:none}.receivable-filter{grid-template-columns:minmax(240px,1fr) 145px 145px auto}
button:disabled{cursor:not-allowed;opacity:.58;transform:none!important;box-shadow:none!important}
@media(max-width:900px){.page-shell:not(:has(>.home-stage)){padding-top:10px}.operational-home-head{margin-bottom:8px}.home-operation-row{min-height:60px;padding:7px 10px}.home-secondary-links{grid-template-columns:repeat(2,1fr)}.mobile-filter-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:6px;margin-bottom:8px}.mobile-filter-toolbar .search-box{width:100%;height:38px}.mobile-filter-toolbar .btn{height:38px;padding:8px 10px}.app-toast{right:12px;bottom:68px}.filter-bar.desktop-only{display:none!important}.compact-link-row{min-height:58px}.lookup-select-options{max-height:180px}}
@media(max-width:430px){.home-operation-row{grid-template-columns:34px minmax(0,1fr) auto 9px}.home-operation-row>b{width:32px;height:32px}.home-operation-row>em{font-size:13px}.mobile-filter-toolbar{grid-template-columns:minmax(0,1fr) auto}.mobile-filter-toolbar .btn.primary{display:none}.status{max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(orientation:landscape) and (max-height:600px) and (max-width:950px){.home-operation-list{display:grid;grid-template-columns:1fr 1fr}.home-operation-row:nth-child(odd){border-right:1px solid var(--line)}.home-operation-row:nth-last-child(-n+2){border-bottom:0}.home-secondary-links{grid-template-columns:repeat(4,1fr)}.entry-modal-body .lookup-select-options{max-height:120px}}
.anchored-select-trigger:disabled{cursor:not-allowed;background:#f4f7f8;color:var(--muted);opacity:.8}

/* Minimal header and history-aware navigation. */
.topbar .top-actions{margin-left:auto}.header-back{flex:0 0 auto;width:38px;height:38px;margin-right:10px;border:1px solid #cfe4e8;border-radius:11px;background:#f4fbfb;color:var(--teal);font-size:27px;line-height:1;cursor:pointer}.header-back:hover,.header-back:focus-visible{background:#e7f6f5;border-color:#a9d8d3;outline:none}.topbar .icon-button{box-shadow:none}.topbar .brand{min-width:max-content}

/* Refined home hero actions. */
.home-stage .hero-action-card{position:relative;overflow:hidden;border:1px solid rgba(205,229,232,.96);background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(247,253,253,.92));box-shadow:0 10px 26px rgba(8,59,72,.16);backdrop-filter:blur(10px)}.home-stage .hero-action-card:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:linear-gradient(var(--yellow),#f3aa11)}.home-stage .hero-action-card:hover,.home-stage .hero-action-card:focus-visible{border-color:#9fd5d1;box-shadow:0 14px 30px rgba(8,59,72,.22);transform:translateY(-2px);outline:none}.home-stage .hero-action-card>span:not(.hero-action-icon){min-width:0;flex:1}.home-stage .hero-action-card small,.home-stage .hero-action-card strong,.home-stage .hero-action-card em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-stage .hero-action-card small{color:var(--teal);font-size:8px;font-weight:900;letter-spacing:.1em}.home-stage .hero-action-card strong{color:var(--navy)}.home-stage .hero-action-card em{margin-top:3px;color:#60798d;font-size:9px;font-style:normal;font-weight:650}.home-stage .hero-action-card>i{color:var(--teal);font-size:20px;font-style:normal}.hero-action-icon,.home-stage .home-primary-actions .hero-action-card>b{flex:0 0 auto;width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(145deg,#ffd647,#ffbd18);color:var(--navy);font-size:11px;font-weight:900;box-shadow:0 5px 12px rgba(255,190,24,.24)}.home-stage .home-primary-actions .hero-action-card{display:flex;align-items:center;gap:14px}.home-stage .home-primary-actions .hero-action-card span{display:block}.home-stage .home-primary-actions .hero-action-card strong{font-size:17px}.home-stage .home-primary-actions .hero-action-card small{margin:0}.home-stage .home-primary-actions .hero-action-card em{font-size:10px}

@media(max-width:900px){.header-back{width:34px;height:34px;margin-right:8px;border-radius:10px;font-size:24px}.topbar .brand strong{font-size:14px}.home-stage .home-top-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.home-stage .home-top-actions .hero-action-card:nth-child(2){display:flex}.home-stage .home-top-actions .hero-action-card{min-width:0;padding:8px 9px;gap:8px}.home-stage .home-top-actions .hero-action-icon{width:32px;height:32px;border-radius:9px;font-size:9px}.home-stage .home-top-actions .hero-action-card strong{font-size:12px}.home-stage .home-top-actions .hero-action-card em{display:none}.home-stage .home-top-actions .hero-action-card>i{font-size:16px}.home-stage .home-primary-actions .hero-action-card{padding:11px 13px}.home-stage .home-primary-actions .hero-action-card strong{font-size:14px}.home-stage .home-primary-actions .hero-action-card em{font-size:9px}}
@media(max-width:430px){.topbar .brand>span:last-child small{display:none}.home-stage .home-top-actions{width:calc(100% - 18px);top:10px}.home-stage .home-top-actions .hero-action-card{padding:7px}.home-stage .home-top-actions .hero-action-card small{font-size:6px}.home-stage .home-primary-actions{left:9px;right:9px}.home-stage .home-primary-actions .hero-action-card{gap:9px}.home-stage .home-primary-actions .hero-action-card>b{width:36px;height:36px}.home-stage .home-primary-actions .hero-action-card>i{font-size:16px}}
/* Home composition based on the approved visual reference. */
.profile-button{height:40px;display:flex;align-items:center;gap:8px;padding:0 11px;border:1px solid #d4e6e9;border-radius:11px;background:#f6fbfc;color:var(--navy);font-size:11px}.profile-button>span{width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#dff3f1;color:var(--teal);font-size:7px}.profile-button>b{font-weight:750}.profile-button>i{color:#78909f;font-size:11px;font-style:normal}.profile-button:hover{border-color:#acd7d3;background:#edf8f7}.home-stage{border-color:rgba(255,255,255,.94);box-shadow:0 15px 38px rgba(17,77,98,.16)}
.home-stage>.home-top-actions{width:min(500px,48%);gap:10px}.home-stage .home-top-actions .hero-action-card{min-height:78px;padding:11px 15px 11px 13px;gap:11px;border-color:rgba(199,222,227,.94);border-radius:13px}.home-stage .home-top-actions .hero-action-card:before{width:5px;background:#14314a}.home-stage .home-top-actions .hero-action-card:nth-child(2):before{background:#b44c0c}.home-stage .home-top-actions .hero-action-icon{width:42px;height:42px;border-radius:10px;background:linear-gradient(145deg,#173c5c,#071c31);color:#ffd447;box-shadow:0 7px 14px rgba(5,31,51,.28);font-size:11px}.home-stage .home-top-actions .hero-action-card:nth-child(2) .hero-action-icon{background:linear-gradient(145deg,#c45e15,#803008);color:#ffd65a;box-shadow:0 7px 14px rgba(111,43,8,.26)}.home-stage .home-top-actions .hero-action-card strong{font-size:15px}.home-stage .home-top-actions .hero-action-card em{font-size:9px;color:#314b5f}.home-stage .home-top-actions .hero-action-card>i{width:22px;height:28px;display:grid;place-items:center;border-radius:7px;background:rgba(12,43,67,.06);color:#17354b;font-size:17px}
.home-stage>.home-primary-actions{width:86%;max-width:1100px;justify-content:space-between;gap:26px}.home-stage .home-primary-actions .hero-action-card{width:min(330px,36%);min-height:92px;padding:14px 17px;border-radius:14px;background:linear-gradient(105deg,rgba(255,255,255,.96),rgba(249,253,251,.88))}.home-stage .home-primary-actions .hero-action-card:before{width:4px;background:linear-gradient(#f4bd21,#f5da75)}.home-stage .home-primary-actions .hero-action-card>b{width:42px;height:auto;border-radius:0;background:transparent;box-shadow:none;color:#102d49;font-size:26px;line-height:1}.home-stage .home-primary-actions .hero-action-card strong{font-size:16px}.home-stage .home-primary-actions .hero-action-card em{margin-top:7px;color:#425e70;font-size:9px}.home-stage .home-primary-actions .hero-action-card>i{margin-left:auto;background:transparent;color:#17364d;font-size:20px}
.home-stage>.home-dock{width:min(550px,72%);height:64px;padding:6px 8px;border:7px solid rgba(255,255,255,.42);border-radius:18px;background:rgba(238,244,246,.86);box-shadow:0 10px 26px rgba(8,45,58,.2);backdrop-filter:blur(12px)}.home-stage>.home-dock a{grid-template-rows:25px 15px;border-color:rgba(218,229,233,.92);background:rgba(255,255,255,.86);border-radius:9px}.home-stage>.home-dock span{height:25px;font-size:17px}.home-stage>.home-dock small{height:15px;line-height:15px;font-size:8px}.home-shortcuts .shortcut-grid>a{border-radius:12px;box-shadow:0 5px 16px rgba(18,72,93,.07)}

@media(max-width:900px){.profile-button{width:36px;height:36px;padding:0;display:grid;place-items:center}.profile-button>span{width:24px;height:24px}.profile-button>b,.profile-button>i{display:none}.home-stage .home-top-actions .hero-action-card{min-height:54px;border-radius:10px}.home-stage .home-primary-actions .hero-action-card{width:100%;min-height:66px}.home-stage .home-primary-actions .hero-action-card>b{width:34px;font-size:21px}.home-stage>.home-dock{border-width:4px}}
@media(max-width:430px){.home-stage .home-top-actions .hero-action-card:before{width:3px}.home-stage .home-top-actions .hero-action-icon{width:30px;height:30px}.home-stage .home-top-actions .hero-action-card strong{font-size:11px}.home-stage .home-primary-actions .hero-action-card{min-height:62px;padding:9px 11px}.home-stage .home-primary-actions .hero-action-card em{margin-top:4px}.home-stage>.home-dock{height:68px}}
/* Frosted-glass surfaces over the home photograph. */
.home-stage .hero-action-card,.home-stage .home-primary-actions .hero-action-card{border-color:rgba(255,255,255,.72);background:linear-gradient(135deg,rgba(255,255,255,.66),rgba(239,250,250,.46));box-shadow:0 10px 28px rgba(8,54,69,.2);-webkit-backdrop-filter:blur(16px) saturate(125%);backdrop-filter:blur(16px) saturate(125%)}
.home-stage>.home-dock{border-color:rgba(255,255,255,.34);background:rgba(238,246,247,.46);-webkit-backdrop-filter:blur(17px) saturate(120%);backdrop-filter:blur(17px) saturate(120%)}
.home-stage>.home-dock a{border-color:rgba(255,255,255,.58);background:rgba(255,255,255,.46);-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px)}

/* Canonical phone-landscape Home layout. Keep this as the only short-landscape Home sizing rule. */
@media(orientation:landscape) and (max-width:950px) and (min-height:361px) and (max-height:600px){
 .page-shell:has(>.home-stage){height:calc(100dvh - 52px);min-height:0;overflow:hidden;padding-top:7px;padding-bottom:calc(61px + env(safe-area-inset-bottom))}
 .page-shell:has(>.home-stage)>.home-stage{display:grid;grid-template-rows:52px minmax(0,1fr) 52px;row-gap:10px;width:100%;height:100%;min-height:0;margin:0;padding:6px 12px}
 .home-stage>.home-top-actions{position:relative;inset:auto;grid-row:1;align-self:start;justify-self:center;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:min(500px,70%);height:52px;gap:8px;transform:none}
 .home-stage>.home-top-actions .hero-action-card{width:100%;height:52px;min-width:0;min-height:0;padding:5px 8px;gap:7px}
 .home-stage>.home-top-actions .hero-action-icon{width:30px;height:30px;border-radius:8px;font-size:9px}
 .home-stage>.home-top-actions .hero-action-card strong{font-size:12px}.home-stage>.home-top-actions .hero-action-card em{display:none}.home-stage>.home-top-actions .hero-action-card>i{width:20px;height:24px;font-size:15px}
 .home-stage>.home-primary-actions{position:relative;inset:auto;grid-row:2;align-self:center;justify-self:center;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:86%;max-width:760px;gap:22px;transform:none}
 .home-stage>.home-primary-actions .hero-action-card{width:100%;height:56px;min-width:0;min-height:56px;max-height:56px;margin:0;padding:6px 12px;gap:9px;border-radius:12px}
 .home-stage>.home-primary-actions .hero-action-card>b{width:30px;height:30px;font-size:20px}.home-stage>.home-primary-actions .hero-action-card strong{font-size:14px}.home-stage>.home-primary-actions .hero-action-card small{font-size:7px}.home-stage>.home-primary-actions .hero-action-card em{margin-top:2px;font-size:8px}.home-stage>.home-primary-actions .hero-action-card>i{font-size:17px}
 .home-stage>.home-dock{position:relative;inset:auto;grid-row:3;align-self:end;justify-self:center;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:min(590px,72%);height:52px;margin:0;padding:3px 5px;gap:4px;border-width:3px;border-radius:14px;transform:none}
 .home-stage>.home-dock a{display:flex;height:100%;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-radius:8px}
 .home-stage>.home-dock span{display:block;width:auto;height:auto;font-size:16px;line-height:1}.home-stage>.home-dock small{display:block;width:100%;height:auto;margin:0;font-size:8px;line-height:1;text-align:center}
}
@media(orientation:landscape) and (max-width:950px) and (max-height:360px){
 .page-shell:has(>.home-stage){height:calc(100dvh - 52px);min-height:0;overflow:hidden;padding:6px max(12px,env(safe-area-inset-right)) calc(57px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
 .page-shell:has(>.home-stage)>.home-stage{display:grid;grid-template-rows:minmax(0,1fr) 48px;row-gap:8px;width:100%;height:100%;min-height:0;margin:0;padding:5px 10px}
 .home-stage>.home-top-actions{display:none}
 .home-stage>.home-primary-actions{position:relative;inset:auto;grid-row:1;align-self:center;justify-self:center;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:86%;max-width:740px;gap:20px;transform:none}
 .home-stage>.home-primary-actions .hero-action-card{width:100%;height:54px;min-width:0;min-height:54px;max-height:54px;margin:0;padding:6px 10px}
 .home-stage>.home-primary-actions .hero-action-card>b{width:29px;height:29px;font-size:19px}.home-stage>.home-primary-actions .hero-action-card strong{font-size:13px}.home-stage>.home-primary-actions .hero-action-card em{margin-top:1px;font-size:7px}
 .home-stage>.home-dock{position:relative;inset:auto;grid-row:2;align-self:end;justify-self:center;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:min(570px,72%);height:48px;margin:0;padding:3px 5px;gap:4px;border-width:3px;transform:none}
 .home-stage>.home-dock a{display:flex;height:100%;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:1px}.home-stage>.home-dock span{width:auto;height:auto;font-size:14px;line-height:1}.home-stage>.home-dock small{width:100%;height:auto;margin:0;font-size:7px;line-height:1;text-align:center}
}

/* Receive and collection modal amount summary. */
.payment-modal-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;overflow:hidden;margin:0 0 13px;border:1px solid var(--line);border-radius:11px;background:var(--line)}.payment-modal-summary>div{min-width:0;padding:9px 10px;background:#f8fcfd}.payment-modal-summary small,.payment-modal-summary strong{display:block}.payment-modal-summary small{color:var(--muted);font-size:8px;white-space:nowrap}.payment-modal-summary strong{margin-top:3px;font-size:13px;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.payment-modal-summary .receive-amount{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#eaf8f6}.payment-modal-summary .receive-amount small{color:var(--teal);font-size:10px;font-weight:850}.payment-modal-summary .receive-amount strong{margin:0;color:var(--teal);font-size:17px}
@media(max-width:430px){.payment-modal-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.payment-modal-summary .receive-amount{grid-column:1/-1}.payment-modal-summary>div{padding:8px 9px}}
.payment-balance-summary{margin:0 0 12px;padding:0 1px 10px;border-bottom:1px solid var(--line)}.payment-balance-summary>div{display:flex;align-items:baseline;justify-content:space-between;gap:16px}.payment-balance-summary small{color:var(--muted);font-size:10px;font-weight:750}.payment-balance-summary strong{color:#9a6500;font-size:18px;font-variant-numeric:tabular-nums;white-space:nowrap}.payment-balance-summary p{margin:3px 0 0;color:var(--muted);font-size:9px}.payment-conversion-line{min-height:36px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:-2px;padding:7px 10px;border-radius:8px;background:#edf8f7;color:var(--teal);font-size:9px}.payment-conversion-line strong{font-size:11px;white-space:nowrap}.payment-conversion-line span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:430px){.payment-balance-summary{margin-bottom:10px;padding-bottom:8px}.payment-balance-summary strong{font-size:16px}.payment-conversion-line{min-height:34px;padding:6px 8px}}

/* Voucher mobile summary: receiver, outstanding and one detail action only. */
.voucher-mobile-overview{min-height:58px;grid-template-columns:minmax(0,1fr) auto 42px;align-items:stretch;margin-bottom:10px;overflow:hidden;border:1px solid var(--line);border-radius:11px;background:#fff}
.voucher-mobile-overview-main{min-width:0;display:flex;flex-direction:column;justify-content:center;padding:7px 11px}
.voucher-mobile-overview-main>small{color:var(--muted);font-size:7px;text-transform:uppercase;letter-spacing:.05em}
.voucher-mobile-overview-main>strong{margin-top:2px;overflow:hidden;color:var(--navy);font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.voucher-mobile-balance{min-width:88px;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;padding:7px 10px;border-left:1px solid var(--line)}
.voucher-mobile-balance small{color:var(--muted);font-size:7px;text-transform:uppercase;letter-spacing:.025em;white-space:nowrap}
.voucher-mobile-balance strong{margin-top:2px;color:var(--navy);font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
.voucher-mobile-balance.has-balance strong{color:#9a6500}
.voucher-mobile-detail{width:42px;display:grid;place-items:center;border:0;border-left:1px solid #cde6e3;background:#edf9f8;color:var(--teal);font-size:14px;cursor:pointer}
.voucher-mobile-detail:hover,.voucher-mobile-detail:focus-visible{background:#def3f1;outline:none}
@media(max-width:900px){.voucher-mobile-overview.mobile-only{display:grid!important}}
@media(max-width:360px){.voucher-mobile-overview{grid-template-columns:minmax(0,1fr) auto 38px}.voucher-mobile-overview-main{padding-right:8px;padding-left:8px}.voucher-mobile-balance{min-width:78px;padding-right:7px;padding-left:7px}.voucher-mobile-balance strong{font-size:11px}.voucher-mobile-detail{width:38px}}

/* Contextual quick-create action beside lookup labels. */
.form-field{min-width:0;color:#24465f;font-size:11px;font-weight:800}.field-label-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:18px}.field-label-row button{flex:none;margin:0;padding:0;border:0;background:transparent;color:var(--teal);font-size:9px;font-weight:900;cursor:pointer}.field-label-row button:hover,.field-label-row button:focus-visible{text-decoration:underline;outline:none}

/* Keep print-page controls aligned to the 100 mm slip instead of the viewport. */
.print-page-actions{display:flex;justify-content:flex-end;width:min(100mm,100%);margin:10px auto 0}.print-page-actions .btn{min-width:104px}
.voucher-action-list{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.voucher-action-list .btn{width:auto}

/* Centered print previews and a clean shared 100 mm slip hierarchy. */
.page-shell:has(>.print-preview-page){max-width:none;padding-top:0!important;padding-bottom:0!important}
.print-preview-page{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:64px 12px 18px}
.polished-slip{width:100mm;max-width:100%;margin:0;padding:6mm;font-family:Inter,"Noto Sans Myanmar",system-ui,sans-serif;font-size:10px;line-height:1.45}
.slip-header{text-align:center}.slip-header h2{margin:0;color:#111;font-size:18px;letter-spacing:.035em}.slip-header small{display:block;margin-top:2px;color:#555;font-size:8px;line-height:1.45}.slip-header>strong{display:block;margin-top:12px;color:#111;font-size:11px;letter-spacing:.11em}
.voucher-slip-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;column-gap:4mm;text-align:left}.voucher-company-info{min-width:0;padding-top:1mm}.voucher-company-info h2{font-size:17px;line-height:1.25;letter-spacing:.02em;overflow-wrap:anywhere}.voucher-company-info span{display:block;margin-top:1.2mm;color:#444;font-size:8px;line-height:1.45;overflow-wrap:anywhere;white-space:normal}.voucher-telegram-qr{position:static;width:20mm;text-align:center}.voucher-telegram-qr img{display:block;width:20mm;height:20mm;margin:0;image-rendering:pixelated}.voucher-telegram-qr small{display:block;max-width:20mm;margin-top:1mm;color:#333;font:700 7px/1.15 monospace;overflow-wrap:anywhere}.voucher-slip-header>.voucher-document-title{grid-column:1/-1;width:100%;margin-top:4mm;padding-top:3mm;border-top:1px solid #aeb7bd;text-align:center}
.slip-section{margin-top:12px;padding-top:9px;border-top:1px dashed #9aa3aa}.slip-section>div{min-height:24px;display:grid;grid-template-columns:minmax(105px,42%) minmax(0,1fr);align-items:start;gap:10px;padding:3px 0}.slip-section span{color:#5f6870;font-size:9px}.slip-section b{color:#111;font-size:10px;text-align:right;overflow-wrap:anywhere}.slip-section .slip-note-row b{text-align:left;line-height:1.55}
.slip-financial-info .slip-total-row{margin-top:4px;padding-top:7px;border-top:1px solid #555}.slip-financial-info .slip-total-row span,.slip-financial-info .slip-total-row b{font-weight:900}.slip-financial-info .slip-total-row b{font-size:12px}.slip-financial-info .slip-balance-row{margin-top:3px}.slip-financial-info .slip-balance-row b{font-weight:900}
.slip-items-table{width:100%;min-width:0;margin-top:12px;table-layout:fixed;border-top:1px dashed #9aa3aa;border-bottom:1px dashed #9aa3aa}.slip-items-table th,.slip-items-table td{height:auto;padding:6px 3px;border-bottom:1px solid #e1e1e1;background:transparent;color:#111;font-size:8px;white-space:normal;overflow-wrap:anywhere}.slip-items-table th{font-size:7px;letter-spacing:.04em}.slip-items-table th:first-child{width:40%}.slip-items-table th:nth-child(2){width:12%;text-align:center}.slip-items-table th:nth-child(3),.slip-items-table th:nth-child(4){width:24%;text-align:right}.slip-items-table td:nth-child(2){text-align:center}.slip-items-table td:nth-child(3),.slip-items-table td:nth-child(4){text-align:right}
.slip-signature{margin-top:16px;padding-top:9px;border-top:1px dashed #9aa3aa;color:#333;font-size:9px;text-align:center;white-space:pre-line}
@media(max-width:430px){.print-preview-page{padding-right:8px;padding-left:8px}.polished-slip{padding:18px 14px}.slip-header h2{font-size:17px}.slip-section>div{grid-template-columns:minmax(95px,40%) minmax(0,1fr);gap:8px}}
@media print{.print-preview-page{min-height:100vh;padding:0;justify-content:center}.polished-slip{max-width:100mm;margin:0 auto;border:0!important;border-radius:0!important;box-shadow:none!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}.slip-section span{color:#333}.print-preview-page>.print-slip{flex:none;break-inside:avoid;page-break-inside:avoid}}

/* Canonical full-screen Home. The global header is replaced by an overlay on the photograph. */
body:has(.home-stage){overflow:hidden;background:#dcecf2}
body:has(.home-stage) .topbar{display:none!important}
.page-shell:has(>.home-stage){width:100%;max-width:none;height:100dvh;min-height:0;margin:0;padding:0!important;overflow:hidden}
.page-shell:has(>.home-stage)>.home-stage{display:block!important;width:100%;height:100%;min-height:0;margin:0;padding:0!important;border:0;border-radius:0;box-shadow:none;background-size:cover;background-position:center}
.home-overlay-header{position:absolute;z-index:12;top:0;right:0;left:0;height:68px;display:flex;align-items:center;justify-content:space-between;padding:10px clamp(16px,3vw,42px);pointer-events:none}
.home-overlay-brand,.home-overlay-profile,.home-overlay-dashboard{pointer-events:auto;display:flex;align-items:center;border:1px solid rgba(255,255,255,.68);background:rgba(255,255,255,.58);color:var(--navy);box-shadow:0 8px 22px rgba(7,48,62,.14);-webkit-backdrop-filter:blur(16px) saturate(125%);backdrop-filter:blur(16px) saturate(125%)}
.home-overlay-brand{gap:10px;padding:7px 13px 7px 7px;border-radius:14px;font-size:17px;letter-spacing:.035em}.home-overlay-brand>span{width:40px;height:40px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(145deg,#ffd33d,#ffb916);font-size:12px;font-weight:900}.home-overlay-brand>strong{white-space:nowrap}
.home-overlay-tools{pointer-events:none;display:flex;align-items:center;gap:8px}.home-overlay-dashboard{height:42px;gap:7px;padding:0 12px;border-radius:12px;font-size:11px}.home-overlay-dashboard>i{color:var(--teal);font-size:13px}.home-overlay-dashboard>strong{white-space:nowrap}
.home-overlay-profile{height:42px;gap:8px;padding:0 12px;border-radius:12px;font-size:11px}.home-overlay-profile>span{width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:#dff3f1;color:var(--teal);font-size:7px}.home-overlay-profile>i{color:#708897;font-style:normal}
.home-stage>.home-top-actions{position:absolute!important;z-index:5;top:82px!important;right:auto!important;bottom:auto!important;left:50%!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:min(500px,48%)!important;height:auto!important;gap:10px!important;transform:translateX(-50%)!important}
.home-stage>.home-primary-actions{position:absolute!important;z-index:5;top:48%!important;right:auto!important;bottom:auto!important;left:50%!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:min(1100px,84%)!important;max-width:none!important;gap:clamp(20px,8vw,120px)!important;transform:translate(-50%,-50%)!important}
.home-stage>.home-primary-actions .hero-action-card{width:100%!important;min-width:0!important}
.home-stage>.home-dock{position:absolute!important;z-index:5;right:auto!important;bottom:20px!important;left:50%!important;display:grid!important;width:min(590px,72%)!important;transform:translateX(-50%)!important}

@media(max-width:900px){
 body:has(.home-stage) .bottom-nav{right:10px;bottom:max(9px,env(safe-area-inset-bottom));left:10px;height:58px;padding:3px max(4px,env(safe-area-inset-right)) 3px max(4px,env(safe-area-inset-left));border:1px solid rgba(255,255,255,.62);border-radius:16px;background:rgba(248,252,252,.62);box-shadow:0 10px 28px rgba(7,48,62,.2);-webkit-backdrop-filter:blur(18px) saturate(125%);backdrop-filter:blur(18px) saturate(125%)}
 body:has(.home-stage) .bottom-nav a{flex:1;width:auto;border-radius:11px;color:#526c7e}body:has(.home-stage) .bottom-nav a.active{background:rgba(255,255,255,.64);color:var(--teal)}
 .page-shell:has(>.home-stage)>.home-stage{background-image:linear-gradient(180deg,rgba(226,246,250,.02),rgba(7,53,65,.08)),url('/images/home-mobile.png')}
 .home-overlay-header{height:62px;padding:8px 10px}.home-overlay-brand{gap:8px;padding:6px 10px 6px 6px;font-size:14px}.home-overlay-brand>span{width:36px;height:36px;border-radius:10px}.home-overlay-tools{gap:6px}.home-overlay-dashboard,.home-overlay-profile{width:38px;height:38px;padding:0;justify-content:center}.home-overlay-dashboard>strong,.home-overlay-profile>strong,.home-overlay-profile>i{display:none}
 .home-stage>.home-top-actions{top:72px!important;width:calc(100% - 20px)!important;gap:7px!important}
 .home-stage>.home-primary-actions{top:auto!important;bottom:82px!important;grid-template-columns:1fr!important;width:calc(100% - 26px)!important;gap:8px!important;transform:translateX(-50%)!important}
 .home-stage>.home-primary-actions .hero-action-card{height:62px!important;min-height:62px!important;max-height:62px!important}
 .home-stage>.home-dock{display:none!important}
}
@media(orientation:landscape) and (max-width:950px) and (max-height:600px){
 .page-shell:has(>.home-stage)>.home-stage{background-image:linear-gradient(180deg,rgba(226,246,250,.02),rgba(7,53,65,.08)),url('/images/home-desktop.png')}
 .home-overlay-header{height:54px;padding:5px max(9px,env(safe-area-inset-right)) 5px max(9px,env(safe-area-inset-left))}.home-overlay-brand{padding:4px 9px 4px 4px;font-size:13px}.home-overlay-brand>span{width:34px;height:34px}.home-overlay-dashboard,.home-overlay-profile{width:36px;height:36px}
 .home-stage>.home-top-actions{top:58px!important;width:min(500px,68%)!important;height:48px!important}.home-stage>.home-top-actions .hero-action-card{height:48px!important;min-height:48px!important}
 .home-stage>.home-primary-actions{top:54%!important;bottom:auto!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:86%!important;gap:20px!important;transform:translate(-50%,-50%)!important}.home-stage>.home-primary-actions .hero-action-card{height:54px!important;min-height:54px!important;max-height:54px!important}
 body:has(.home-stage) .bottom-nav{right:max(9px,env(safe-area-inset-right));bottom:7px;left:max(9px,env(safe-area-inset-left));height:50px}
 body:has(.home-stage) .bottom-nav a{flex-direction:row;gap:5px}body:has(.home-stage) .bottom-nav a>span{font-size:14px}body:has(.home-stage) .bottom-nav small{margin:0;font-size:8px}
}

/* Final full-screen Home bounds and readable primary actions. */
.page-shell:has(>.home-stage){position:fixed!important;inset:0!important}

@media(min-width:901px){
 .home-stage>.home-dock{bottom:16px!important}
}

@media(max-width:900px) and (orientation:portrait){
 .home-stage>.home-primary-actions{bottom:80px!important}
 .home-stage>.home-primary-actions .hero-action-card{height:72px!important;min-height:72px!important;max-height:72px!important;padding:8px 11px!important;overflow:hidden}
 .home-stage>.home-primary-actions .hero-action-card>span{display:flex!important;min-width:0;align-self:stretch;flex-direction:column;justify-content:center}
 .home-stage>.home-primary-actions .hero-action-card small{margin:0!important;font-size:7px!important;line-height:1.2}
 .home-stage>.home-primary-actions .hero-action-card strong{font-size:14px;line-height:1.3}
 .home-stage>.home-primary-actions .hero-action-card em{margin-top:3px!important;font-size:8px!important;line-height:1.25}
}

/* Keep the Home brand visually light: logo and wordmark only. */
.home-overlay-brand{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}

/* Direct document actions in the page header. */
.page-action-buttons{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px}.page-action-buttons .btn{white-space:nowrap}
@media(max-width:900px){.detail-head{gap:10px}.detail-head>div:first-child{min-width:0}.detail-head .head-actions{max-width:68%;gap:6px}.page-action-buttons{gap:5px}.page-action-buttons .btn{padding:6px 8px;font-size:9px}}
@media(max-width:430px){.detail-head{align-items:flex-start;flex-wrap:wrap}.detail-head .head-actions{width:100%;max-width:none;align-items:flex-end}.page-action-buttons{width:100%}.page-action-buttons .btn{flex:1 1 auto}}

/* Minimal full-page workspace navigation. */
.page-shell:not(:has(>.home-stage)){position:relative;padding-top:16px!important}
.workspace-nav{position:absolute;z-index:24;top:14px;right:22px;left:22px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}
.workspace-nav-button{pointer-events:auto;height:38px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 11px;border:1px solid #cfe4e8;border-radius:11px;background:rgba(255,255,255,.9);color:var(--teal);box-shadow:0 5px 16px rgba(18,72,93,.08);font-size:10px;font-weight:850;cursor:pointer;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.workspace-nav-button:hover,.workspace-nav-button:focus-visible{border-color:#9fcfcb;background:#edf9f8;outline:none}.workspace-nav-button i{font-size:13px}.workspace-home{margin-left:auto}
.page-shell:has(>.workspace-nav)>.page-head{padding-right:76px;padding-left:76px}
.page-shell:has(>.workspace-nav)>.detail-head{padding-right:76px;padding-left:76px}
.btn>i{margin-right:6px}.btn.icon-only>i,.icon-only>i{margin:0}.btn.icon-only{width:36px;min-width:36px;padding-right:0;padding-left:0;text-align:center}.search-box>i,.acs-search>i{flex:none;color:var(--teal);font-size:11px}.compact-info-details i{margin-right:4px}
.home-dock i{font-size:inherit}.hero-action-icon i{font-size:18px}.menu-list b>i{width:24px;color:var(--teal);text-align:center}.menu-list a>span i{font-size:11px}.modal-close i{font-size:15px}

@media(max-width:900px){
 .page-shell:not(:has(>.home-stage)){padding-top:11px!important}
 .workspace-nav{top:9px;right:11px;left:11px}.workspace-nav-button{width:36px;height:36px;padding:0}.workspace-nav-button span{display:none}
 .page-shell:has(>.workspace-nav)>.page-head,.page-shell:has(>.workspace-nav)>.detail-head{min-height:38px;padding-right:44px;padding-left:44px}
 .home-stage>.home-dock{position:absolute!important;z-index:6;right:auto!important;bottom:9px!important;left:50%!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;width:calc(100% - 20px)!important;height:58px!important;padding:4px!important;border-width:3px!important;transform:translateX(-50%)!important}
 .home-stage>.home-dock a{display:flex!important;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:2px}.home-stage>.home-dock span{width:auto;height:auto;font-size:15px;line-height:1}.home-stage>.home-dock small{height:auto;margin:0;font-size:8px;line-height:1}
 body:has(.home-stage) .bottom-nav{display:none!important}
}
@media(max-width:430px){.page-shell:has(>.workspace-nav)>.page-head,.page-shell:has(>.workspace-nav)>.detail-head{padding-right:42px;padding-left:42px}.page-head h1{font-size:18px}}

/* Replace legacy text chevrons with the shared Font Awesome symbol. */
.compact-link-row>i,.compact-account-row>i,.compact-receipt-row>i,.hero-action-card>i{font-size:0!important;font-style:normal}.compact-link-row>i:before,.compact-account-row>i:before,.compact-receipt-row>i:before,.hero-action-card>i:before{content:"\f054";font-family:"Font Awesome 7 Free";font-size:12px;font-weight:900}

/* Canonical action sizing and alignment. This final layer replaces legacy page-specific sizes. */
.btn,
.btn.small{
 height:40px!important;
 min-height:40px!important;
 width:auto!important;
 min-width:0;
 max-width:100%;
 padding:0 14px!important;
 display:inline-flex!important;
 align-items:center;
 justify-content:center;
 gap:6px;
 border-radius:10px;
 font-size:11px!important;
 line-height:1;
 white-space:nowrap;
 vertical-align:middle;
}
.btn.wide{width:100%!important;min-width:0}
.btn>i{margin:0!important;font-size:14px!important;line-height:1}
.btn.icon-only,
.section-bar>.btn:has(>i){width:40px!important;min-width:40px!important;max-width:40px;padding:0!important;font-size:0!important;flex:0 0 40px!important;gap:0}
.btn.icon-only>i,
.section-bar>.btn:has(>i)>i{margin:0!important;font-size:14px!important}
.workflow-action.wide,.subtle-action.wide{width:auto!important}
.page-action-buttons,.modal-actions,.inline-actions{display:flex;align-items:center;gap:8px}
.page-action-buttons{flex-wrap:wrap}.page-action-buttons .btn{flex:0 1 auto!important;overflow:hidden;text-overflow:ellipsis}
.modal-actions,.inline-actions{flex-wrap:wrap}.modal-actions .btn:not(:has(>i)),.inline-actions .btn:not(:has(>i)){min-width:112px}
.page-head,.detail-head,.section-bar{align-items:center}
.page-head{min-height:44px;margin-bottom:14px}
.page-head h1,.detail-head h1{line-height:1.2}
.page-head:not(.detail-head) .eyebrow,.page-head:not(.detail-head) p,.section-bar .eyebrow{display:none!important}
.workspace-nav{top:18px!important;align-items:center!important}
.workspace-nav-button{width:40px!important;height:40px!important;padding:0!important;border-radius:10px!important;gap:0!important}
.workspace-nav-button i{font-size:14px!important}
.workspace-nav-button span{display:none!important}
.compact-info-details{width:40px;height:40px;padding:0;font-size:0;display:grid;place-items:center}
.compact-info-details i{margin:0;font-size:14px}
.compact-info-details span{display:none}
.icon-danger,.modal-close{width:40px!important;height:40px!important;min-width:40px!important;display:inline-grid!important;place-items:center;padding:0!important}
.select-all-button{height:40px!important;min-height:40px!important;padding:0 12px!important}
.login-card form{text-align:center}.login-card form label{text-align:left}.login-card form>.btn{margin-right:auto!important;margin-left:auto!important}

@media(max-width:900px){
 .btn,.btn.small{height:40px!important;min-height:40px!important;padding:0 12px!important;font-size:10px!important}
 .btn.icon-only,.section-bar>.btn:has(>i){width:40px!important;min-width:40px!important;padding:0!important;font-size:0!important}
 .page-action-buttons{width:auto!important;gap:6px;justify-content:flex-end}.page-action-buttons .btn{flex:0 1 auto!important}
 .detail-head{flex-wrap:wrap!important;align-items:center!important}.detail-head .head-actions{width:auto!important;max-width:72%;align-items:center!important;justify-content:flex-end!important}
 .workspace-nav{top:12px!important}.workspace-nav-button{width:40px!important;height:40px!important}
}

/* Mobile order list: show only the business date and delivery man. */
.order-mobile-row{grid-template-columns:minmax(0,1fr) 12px!important;min-height:58px!important;padding:9px 12px!important}
.order-mobile-row .compact-link-main{min-width:0}.order-mobile-row .compact-link-main strong{font-size:12px}.order-mobile-row .compact-link-main small{margin-top:4px;font-size:10px;color:var(--muted)}

/* Keep order status and document actions on one clean row. */
.order-head-actions{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important}
.order-head-actions .page-action-buttons{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:6px!important}

@media(max-width:430px){
 .mobile-filter-toolbar{grid-template-columns:minmax(0,1fr) 40px!important}
 .mobile-filter-toolbar .btn.primary{display:none!important}
 .detail-head>.order-head-actions{width:100%!important;max-width:none!important;display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;gap:8px!important}
 .order-head-actions .page-action-buttons{justify-self:end!important;min-width:0}
 .order-head-actions .page-action-buttons .btn:not(.icon-only){max-width:190px;overflow:hidden;text-overflow:ellipsis}
}

/* Canonical Order Detail header: navigation/title above, status/actions aligned below on phones. */
.order-detail-head{
 display:grid!important;
 grid-template-columns:minmax(0,1fr) auto!important;
 grid-template-rows:auto!important;
 align-items:center!important;
 column-gap:16px!important;
 row-gap:0!important;
}
.order-title-block{min-width:0}.order-title-block h1{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-title-block p{margin:5px 0 0;color:var(--muted);font-size:11px}
.order-detail-head>.order-head-actions{width:auto!important;max-width:none!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important}
.order-detail-head .page-action-buttons{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;width:auto!important}
.order-detail-head .page-action-buttons .btn{flex:0 0 auto!important}

@media(max-width:900px){
 .order-detail-head{
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:40px 40px!important;
  row-gap:10px!important;
  padding-right:44px!important;
  padding-left:44px!important;
  margin-bottom:14px!important;
 }
 .order-title-block{grid-column:1;grid-row:1;display:flex;min-width:0;height:40px;flex-direction:column;justify-content:center}
 .order-title-block h1{font-size:20px!important;line-height:1.15}.order-title-block p{margin-top:3px;font-size:9px}
 .order-detail-head>.order-head-actions{
  grid-column:1;
  grid-row:2;
  width:calc(100% + 88px)!important;
  max-width:none!important;
  height:40px;
  margin-left:-44px;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
 }
 .order-detail-head .page-action-buttons{min-width:0;margin-left:auto}
 .order-detail-head .page-action-buttons .btn:not(.icon-only){max-width:min(210px,62vw);overflow:hidden;text-overflow:ellipsis}
}

@media(max-width:430px){
 .order-detail-head{padding-right:44px!important;padding-left:44px!important}
 .order-detail-head>.order-head-actions{width:calc(100% + 88px)!important;margin-left:-44px}
 .order-detail-head .status{flex:0 0 auto;white-space:nowrap}
 .order-detail-head .page-action-buttons{flex:0 1 auto!important}
 .order-detail-head .page-action-buttons .btn:not(.icon-only){max-width:190px}
}

/* Mobile Order Detail: status beside Home, document actions in a safe sticky footer. */
@media(max-width:900px){
 .page-shell:has(>.order-detail-head){padding-bottom:94px!important}
 .order-detail-head{
  grid-template-rows:40px!important;
  row-gap:0!important;
  padding-right:120px!important;
  padding-left:44px!important;
 }
 .order-title-block{grid-row:1!important}
 .order-detail-head>.order-head-actions{display:contents!important}
 .order-head-actions>.status{
  position:absolute!important;
  z-index:26;
  top:12px;
  right:58px;
  display:inline-flex;
  height:40px;
  align-items:center;
  white-space:nowrap;
 }
 .order-footer-actions{
  position:fixed!important;
  z-index:45;
  right:max(12px,env(safe-area-inset-right));
  bottom:max(10px,env(safe-area-inset-bottom));
  left:max(12px,env(safe-area-inset-left));
  display:flex!important;
  width:auto!important;
  height:62px;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
 }
 .order-footer-actions .btn:not(.icon-only){height:40px!important;max-width:none!important;flex:1 1 auto!important}
 .order-footer-actions .order-save-button{flex:0 0 auto!important;min-width:82px}
 .order-footer-actions .btn.icon-only{flex:0 0 40px!important}
}

@media(max-width:430px){
 .order-detail-head{padding-right:120px!important;padding-left:44px!important}
 .order-head-actions>.status{top:12px;right:58px}
}

/* Draft entry actions share one baseline and one sizing system. */
.order-entry-actions{display:flex;align-items:center;gap:8px;margin:12px 0 14px}
.order-entry-actions .btn{height:40px!important;min-height:40px!important;margin:0!important}
@media(max-width:900px){
 .order-entry-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 12px}
 .order-entry-actions .btn{width:100%!important;min-width:0;padding-right:9px!important;padding-left:9px!important}
}

/* Mobile order items use only the columns that fit; full data opens from the eye action. */
.mobile-item-table-wrap{overflow:hidden!important}
.mobile-item-table{width:100%;min-width:0!important;table-layout:fixed;border-collapse:collapse;background:#fff}
.mobile-item-table th,.mobile-item-table td{height:46px;padding:7px 9px;border-bottom:1px solid var(--line);vertical-align:middle}
.mobile-item-table tr:last-child td{border-bottom:0}.mobile-item-table th{height:36px;background:#eef7f9;color:#587288;font-size:8px;font-weight:850;text-align:left;text-transform:uppercase;letter-spacing:.04em}
.mobile-item-table th:nth-child(1){width:auto}.mobile-item-table th:nth-child(2){width:92px}.mobile-item-table th:nth-child(3){width:88px}
.mobile-item-table td:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-item-table td:first-child strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.mobile-item-table .num{text-align:right}.mobile-item-table td.num{font-size:11px;color:var(--teal)}
.mobile-item-actions{text-align:center!important;white-space:nowrap}.mobile-item-actions button+button{margin-left:4px}
.icon-view{width:34px;height:34px;display:inline-grid;place-items:center;padding:0;border:1px solid #cce5e7;border-radius:9px;background:#f2fbfb;color:var(--teal);cursor:pointer}
.mobile-item-actions .icon-danger{width:34px!important;height:34px!important;min-width:34px!important}
@media(max-width:900px){
 .mobile-item-table-wrap.mobile-only{display:block!important;width:100%!important}
 .mobile-item-table{display:table!important;width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important}
 .mobile-item-table thead{display:table-header-group!important}
 .mobile-item-table tbody{display:table-row-group!important}
 .mobile-item-table tr{display:table-row!important}
 .mobile-item-table th,.mobile-item-table td{display:table-cell!important;min-width:0!important}
 .mobile-item-table th:nth-child(1),.mobile-item-table td:nth-child(1){width:auto!important}
 .mobile-item-table th:nth-child(2),.mobile-item-table td:nth-child(2){width:86px!important}
 .mobile-item-table th:nth-child(3),.mobile-item-table td:nth-child(3){width:90px!important}
}

/* Canonical mobile Voucher header. Keep status and document actions on one row. */
@media(max-width:900px){
 .voucher-detail-head{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:40px 40px!important;
  align-items:center!important;
  gap:8px!important;
  min-height:88px!important;
  padding-right:44px!important;
  padding-left:44px!important;
  margin-bottom:12px!important;
 }
 .voucher-detail-head>.voucher-title-block{
  grid-column:1!important;
  grid-row:1!important;
  min-width:0!important;
  height:40px!important;
 }
 .voucher-detail-head>.head-actions{
  position:static!important;
  grid-column:1!important;
  grid-row:2!important;
  width:calc(100% + 88px)!important;
  max-width:none!important;
  height:40px!important;
  margin:0 0 0 -44px!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
 }
 .voucher-detail-head>.head-actions>.status{
  position:static!important;
  inset:auto!important;
  flex:0 0 auto!important;
  margin:0!important;
 }
 .voucher-detail-head .page-action-buttons{
  width:auto!important;
  max-width:none!important;
  margin:0 0 0 auto!important;
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
 }
}

/* Compact admin dashboard */
.dashboard-head{align-items:center;margin-bottom:12px}
.dashboard-period{display:inline-flex;align-items:center;padding:3px;border:1px solid var(--line);border-radius:12px;background:#fff}
.dashboard-period button{height:36px;min-width:62px;padding:0 12px;border:0;border-radius:9px;background:transparent;color:#587288;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.dashboard-period button.active{background:var(--teal);color:#fff}
.dashboard-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:14px;overflow:hidden;border:1px solid var(--line);border-radius:15px;background:#fff}
.dashboard-kpi{min-width:0;min-height:84px;padding:14px 16px;display:flex;flex-direction:column;justify-content:center;gap:7px;color:var(--ink);text-decoration:none;border-right:1px solid var(--line)}
.dashboard-kpi:last-child{border-right:0}.dashboard-kpi:hover{background:#f6fbfb}
.dashboard-kpi span{display:flex;align-items:center;gap:7px;color:#647d92;font-size:11px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard-kpi span i{width:18px;text-align:center;color:var(--teal)}
.dashboard-kpi strong{font-size:clamp(18px,1.7vw,25px);line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(280px,.75fr);gap:14px;align-items:stretch}
.dashboard-panel{min-width:0;padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff}
.dashboard-panel-head{min-height:42px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.dashboard-panel-head h2{margin:0;font-size:17px}.dashboard-panel-head small{display:block;margin-top:3px;color:#71889b;font-size:10px;font-weight:700}
.dashboard-legend{display:flex;align-items:center;gap:13px;color:#587288;font-size:10px;font-weight:800;white-space:nowrap}
.dashboard-legend span{display:flex;align-items:center;gap:5px}.dashboard-legend i,.dashboard-donut-legend>a>i{width:9px;height:9px;flex:0 0 9px;border-radius:50%}
.dashboard-legend i.voucher,.dashboard-donut-legend i.receiver{background:#078f87}.dashboard-legend i.receipt,.dashboard-donut-legend i.delivery-man{background:#f2b51d}
.dashboard-trend-svg{display:block;width:100%;height:auto;max-height:300px;overflow:visible}
.chart-grid-line{stroke:#dcebed;stroke-width:1}.chart-axis-label,.chart-date-label{fill:#7b91a2;font-size:10px;font-weight:700}
.chart-line{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.chart-line.voucher{stroke:#078f87}.chart-line.receipt{stroke:#f2b51d}
.chart-point{stroke:#fff;stroke-width:1.5}.chart-point.voucher{fill:#078f87}.chart-point.receipt{fill:#f2b51d}
.dashboard-donut-panel{display:flex;flex-direction:column}.dashboard-donut-wrap{display:grid;place-items:center;flex:1;min-height:190px}
.dashboard-donut{display:block;width:min(100%,220px);height:auto}.donut-track{fill:none;stroke:#edf4f5;stroke-width:19}
.donut-segment{fill:none;stroke-width:19;stroke-linecap:butt;transform:rotate(-90deg);transform-origin:90px 90px}.donut-segment.receiver{stroke:#078f87}.donut-segment.delivery-man{stroke:#f2b51d}
.donut-center-label{fill:#71889b;font-size:8px;font-weight:800}.donut-center-value{fill:var(--ink);font-size:17px;font-weight:900}.donut-center-unit{fill:#71889b;font-size:8px;font-weight:800}
.dashboard-donut-legend{display:grid;gap:2px;margin-top:4px;border-top:1px solid var(--line)}
.dashboard-donut-legend a{min-width:0;min-height:52px;padding:8px 2px;display:grid;grid-template-columns:9px minmax(0,1fr) auto;align-items:center;gap:9px;color:var(--ink);text-decoration:none;border-bottom:1px solid var(--line)}
.dashboard-donut-legend a:last-child{border-bottom:0}.dashboard-donut-legend span{min-width:0}.dashboard-donut-legend b,.dashboard-donut-legend small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-donut-legend b{font-size:11px}.dashboard-donut-legend small{margin-top:2px;color:#71889b;font-size:9px}.dashboard-donut-legend strong{font-size:11px;white-space:nowrap}
.dashboard-zero{min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#5d7688}.dashboard-zero i{font-size:34px;color:#33a477}.dashboard-zero strong{font-size:13px}
@media(max-width:900px){
 .dashboard-head{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}
 .dashboard-head h1{font-size:21px!important}.dashboard-period button{height:34px;min-width:48px;padding:0 8px;font-size:10px}
 .dashboard-kpis{grid-template-columns:1fr;margin-bottom:10px;border-radius:12px}
 .dashboard-kpi{min-height:52px;padding:8px 11px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;border-right:0;border-bottom:1px solid var(--line)}
 .dashboard-kpi:last-child{border-bottom:0}.dashboard-kpi span{font-size:10px}.dashboard-kpi strong{font-size:14px;text-align:right}
 .dashboard-grid{grid-template-columns:minmax(0,1fr);gap:10px}.dashboard-panel{padding:12px;border-radius:13px}
 .dashboard-panel-head{min-height:38px}.dashboard-panel-head h2{font-size:15px}.dashboard-legend{gap:8px;font-size:8px}
 .dashboard-trend-svg{max-height:none}.dashboard-donut-wrap{min-height:170px}.dashboard-donut{width:180px}.dashboard-zero{min-height:190px}
}
@media(max-width:430px){
 .dashboard-head{padding-right:42px!important;padding-left:42px!important}.dashboard-period{flex:0 0 auto}.dashboard-period button{min-width:44px;padding:0 6px}
 .dashboard-legend{width:100%;justify-content:flex-start}.dashboard-trend-panel .dashboard-panel-head{flex-direction:column;gap:4px;margin-bottom:4px}
}

/* Multi-currency transaction forms */
.settlement-return-line{display:grid;grid-template-columns:minmax(120px,.7fr) minmax(150px,1fr) minmax(150px,.8fr) minmax(220px,1.25fr) 42px;align-items:end;gap:10px;margin-bottom:10px;padding:10px;border:1px solid var(--line);border-radius:12px;background:#f9fcfc}
.settlement-return-line>label{min-width:0}.settlement-return-line>.icon-danger{margin-bottom:1px}
.cash-adjust-options{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:8px 0}.cash-adjust-options>small{width:100%;color:var(--muted);font-weight:800}.cash-adjust-options .btn{min-width:58px}
@media(max-width:900px){
 .settlement-return-line{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px}.settlement-return-line>.icon-danger{justify-self:end}
}
@media(max-width:430px){
 .settlement-return-line{grid-template-columns:minmax(0,1fr)}.settlement-return-line>.icon-danger{position:absolute;right:20px;margin-top:-2px}
 .cash-adjust-options{gap:5px}.cash-adjust-options .btn{height:34px;min-width:52px;padding:0 8px}
}

@media print {
    html:has(.voucher-only-slip),
    body:has(.voucher-only-slip) {
        height: auto !important;
        min-height: 0 !important;
        background: #fff !important;
    }

    .page-shell:has(> .voucher-only-slip) {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }

    .page-shell:has(> .voucher-only-slip) > :not(.voucher-only-slip) {
        display: none !important;
    }
}
