/* Approved navy / teal workspace. Screen-only to preserve invoice and thermal print layouts. */
@media screen {
:root{--bg:#f3f6fa;--card:#fff;--ink:#172b3d;--muted:#526579;--primary:#087e75;--primary-dark:#06645d;--line:#dce5ec;--ok:#16804b;--danger:#b42332;--warn:#a15b09}
body{font-family:system-ui,-apple-system,'Segoe UI',Arial,sans-serif;font-size:15px;line-height:1.45;background:var(--bg);color:var(--ink)}
[hidden]{display:none!important}
.sidebar{background:linear-gradient(180deg,#10394b,#092638 65%,#092333);width:246px;min-width:246px;padding:16px 12px;scrollbar-width:thin;scrollbar-color:#426477 transparent}
.sidebar-heading{padding:4px 8px 18px}.sidebar-heading strong{font-size:16px;letter-spacing:.05em}.sidebar-heading small{font-size:11px;letter-spacing:.08em}.sidebar .brand-modern{background:#078f82;color:white;border-radius:50%;font-size:22px}.sidebar .nav-title{font-size:12px;letter-spacing:.07em;color:#b1c8d5}.sidebar .nav-link{font-size:14px;font-weight:550;padding:9px 10px;display:flex;align-items:center;gap:9px}.sidebar .nav-link.is-active{background:#087f76;color:white}.sidebar .nav-link:hover{background:#245064}.nav-icon{width:17px;height:17px;flex:none;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.nav-search-wrap input{font-size:14px;background:#183f50}.sidebar-foot{font-size:12px}
.content{padding:22px 24px;min-width:0}.topbar{background:#10394b;color:white;border:0;border-radius:10px;padding:14px 18px;gap:12px;box-shadow:none}.topbar h1{font-size:20px;color:white;font-weight:650}.topbar p{font-size:14px;color:#d1e2e9}.topbar-actions{display:flex;gap:8px;flex-wrap:wrap}.topbar .btn.secondary{background:#245064;color:white;border-color:#426477}.topbar .btn.danger{background:#a62d3c!important}.content h2{font-size:22px;font-weight:700;color:#16394b}.content h3{font-size:17px;font-weight:650;color:#16394b}.content h4{font-size:15px}.content .card{background:white;border:1px solid var(--line);border-radius:12px;padding:18px;box-shadow:0 2px 8px #12394b08}.content .card-head span,.content .card-head a,.muted{font-size:14px;color:var(--muted)}
.btn,button{font-family:inherit;font-size:14px;font-weight:650;border-radius:7px;background:var(--primary);padding:9px 14px;min-height:36px}.btn.secondary{background:#eaf1f5;color:#24485b;border:1px solid #d2dfe7}.btn.secondary:hover{background:#dce9ee}.btn.success{background:#16804b}.actions.compact .btn,.actions.compact button{font-size:13px;padding:6px 10px}.content label{font-size:14px;font-weight:600;color:#30495b}.content input,.content select,.content textarea{font-size:15px;border:1px solid #c9d7e0;border-radius:7px;min-height:40px;padding:9px 10px;color:#172b3d}.content input[type=checkbox],.content input[type=radio]{width:17px;min-height:0;height:17px;vertical-align:middle;margin:0 5px 0 0;accent-color:#087e75}.content :is(input,select,textarea,button,a):focus-visible{outline:2px solid #078f82;outline-offset:2px}.filter-form{gap:12px;padding:12px;background:#f5f8fa;border:1px solid #e1e9ef;border-radius:9px}.content table{font-size:14px;font-variant-numeric:tabular-nums}.content table th{background:#eaf1f5;color:#29485b;font-size:13px;font-weight:700;text-transform:none;letter-spacing:0}.content td,.content th{padding:10px 12px;border-bottom:1px solid #e2e9ee}.content tbody tr:nth-child(even){background:#fafcfd}.content tbody tr:hover{background:#edf7f6}.badge{font-size:13px}.table-wrap{border-radius:8px}.module-card{background:white;border:1px solid #dce5ec;border-radius:10px;padding:18px}.module-card:hover{background:#edf8f6;border-color:#81c6bc}.module-card strong{font-size:16px;color:#12665f}.module-card span{font-size:14px}.summary{grid-template-columns:repeat(auto-fit,minmax(175px,1fr));margin-bottom:16px}.summary .tile{border-radius:10px}.summary .num{font-size:23px}.dashboard-summary .tile{color:white;border:0;background:#087e75}.dashboard-summary .tile:nth-child(2){background:#2864a5}.dashboard-summary .tile:nth-child(3){background:#a45b13}.dashboard-summary .tile:nth-child(4){background:#6752a2}.dashboard-summary .tile:nth-child(5){background:#17475c}.dashboard-summary .tile .trend,.dashboard-summary .tile a{color:white}.dashboard-hero{background:white;border-radius:12px;padding:18px;box-shadow:none}.dashboard-hero h2{font-size:24px}.dashboard-hero p{font-size:15px}.dashboard-illustration{display:none}.balance-card{border-radius:10px;padding:16px;box-shadow:none}.balance-card strong{font-size:23px}.balance-card span{font-size:13px}.login-page{background:linear-gradient(135deg,#092638,#087e75)}.login-card{border-radius:14px}.login-card input{font-size:15px}.login-logo{background:#087e75}.searchable-select-input{font-size:15px!important}.searchable-select-option{font-size:14px}.accounting-alert{font-size:14px}
@media(max-width:1050px){.sidebar{width:220px;min-width:220px}.content{padding:16px}.balance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.sidebar{width:min(300px,85vw);min-width:0}.content{padding:12px}.topbar{padding:12px}.topbar h1{font-size:18px}.topbar p{font-size:13px}.summary{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-menu-toggle{background:#245064;color:white}.content .card{padding:14px}.filter-form{align-items:stretch}.filter-form label{flex:1 1 160px}.filter-form input[type=search]{min-width:0}}
@media(max-width:480px){.summary,.balance-grid{grid-template-columns:1fr}.content .card{padding:12px}.topbar-actions{width:100%}.content h2{font-size:20px}.content .grid{grid-template-columns:minmax(0,1fr)!important}.content .filter-form label{flex-basis:100%}}
}
@media screen{.content .section-title h2{font-size:22px}.content .section-title p{font-size:14px}.content .section-icon{background:#e3f3f0;color:#087e75}.content .heading-icon{color:#087e75}.content .topbar-actions .btn{font-size:14px}.content .searchable-select-list{z-index:30}.content .card .grid>*{min-width:0}.sidebar .brand-modern{display:grid;place-items:center;padding:0}.content .pos-workspace-heading h2{color:white}}

/* 5.6 readable table and A4 document layout */
.table-wrap{max-width:100%;overflow-x:auto} .table-wrap td,.table-wrap th{overflow-wrap:anywhere} .table-wrap td input,.table-wrap td select{max-width:100%} @media print{  .receipt-card:not(.thermal-receipt){width:auto!important;max-width:190mm!important;margin:0!important;padding:0!important} .receipt-card table{width:100%;table-layout:auto} .receipt-card tr{break-inside:avoid} .receipt-card thead{display:table-header-group} .receipt-card .table-wrap{overflow:visible!important} }

/* 5.8.2: allow narrow screens to scroll individual tables, not the page. */
.content,.content .card,.content .grid>*{min-width:0}.content .table-wrap{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.content .table-wrap:focus-visible{outline:2px solid #087e75;outline-offset:2px}.content .table-wrap td .actions{flex-wrap:wrap}.content .table-wrap td form{min-width:0}.content .table-wrap td label{overflow-wrap:anywhere}@media(max-width:600px){.content .table-wrap td,.content .table-wrap th{padding:8px}.content .table-wrap td form input,.content .table-wrap td form select{min-width:7rem;max-width:100%}}
