/* Approved Expenses visual language. Presentation only; print rules are preserved. */
@media screen {
:root{--bg:#f7f8fa;--ink:#24262b;--muted:#747883;--line:#e2e4e9;--line-strong:#dcdfe5;--radius:12px}
.app-content{max-width:1440px;padding:32px 28px 48px}.app-content>.ts-page,.app-content>.product-page{max-width:1180px;margin:0 auto}.app-topbar{height:56px}.topbar-title{font-size:13px}.topbar-user{font-size:12px}.nav-item{font-size:12px;min-height:36px}.nav-label{font-size:9px}.user-meta strong{font-size:12px}.user-meta span{font-size:10px}
.ts-page-header{margin-bottom:28px;gap:20px}.ts-page-header h1,.ts-pos-title h1{font-size:32px;line-height:1.15;letter-spacing:-1px;font-weight:680}.ts-page-header p,.ts-page-subtitle{font-size:14px;line-height:1.5;margin-top:9px}.ts-page-header:has(>h1)>p{max-width:420px}.ts-btn{min-height:40px;padding:9px 16px;font-size:13px;border-radius:9px}.ts-btn-small{min-height:32px;padding:7px 10px;font-size:12px}.ts-btn-primary{background:#202124;border-color:#202124}.ts-btn-secondary{background:#fff}.ts-actions{gap:10px}.ts-inline-actions{gap:7px}
.ts-stat-grid{gap:0;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden;margin-bottom:28px}.ts-stat-grid>.ts-stat,.ts-stat-grid>.ts-card{border:0;border-right:1px solid #ececf0;border-radius:0;padding:23px 24px;box-shadow:none;min-width:0}.ts-stat-grid>:last-child{border-right:0}.ts-stat-label{font-size:12px;text-transform:none;letter-spacing:0;font-weight:500;color:#686d78;margin-bottom:12px}.ts-stat-value{font-size:29px;line-height:1.15;font-weight:640;letter-spacing:-.8px}.ts-stat-note{font-size:12px;color:#8b909a;margin-top:9px}.ts-stat-grid .value{font-size:29px;font-weight:640;letter-spacing:-.8px;font-variant-numeric:tabular-nums}.ts-grid{gap:16px}.ts-card,.ts-form-card,.ts-table-card{border-radius:12px;box-shadow:none}.ts-card{padding:24px}.ts-card-header{padding:20px 24px;font-size:16px}.ts-card>h1,.ts-form-card>h1{font-size:28px;margin-bottom:9px;letter-spacing:-.7px}.ts-card>h2{font-size:16px;margin-bottom:16px}.ts-form-card{padding:28px;max-width:760px}.ts-card>.ts-table{margin:0;width:100%}
.ts-table th,.ts-table td{padding:15px 20px;font-size:13px;line-height:1.45}.ts-table th{padding-top:13px;padding-bottom:13px;font-size:10px;color:#7a808b;background:#fafafb;letter-spacing:.06em}.ts-table tbody tr:hover{background:#fafbfc}.ts-table td.num,.ts-table td.amount,.ts-table td.price,.ts-table td.cost{font-variant-numeric:tabular-nums}.ts-link{font-size:13px}.ts-badge{font-size:10px;padding:5px 8px;line-height:1.15}.ts-muted,.ts-note,.ts-meta{font-size:12px;line-height:1.5}.ts-empty{padding:48px 24px;font-size:13px}.ts-flash{font-size:13px;padding:12px 15px}.ts-field,.ts-page .form-group{margin-bottom:20px}.ts-label,.ts-page form label{font-size:13px;margin-bottom:8px}.ts-input,.ts-select,.ts-textarea,.ts-page form input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.ts-page form select,.ts-page form textarea{min-height:40px;padding:9px 12px;font-size:13px;border-radius:8px}.ts-page form textarea{min-height:100px}.ts-page .hint,.ts-form-hint{font-size:12px;line-height:1.5;color:var(--muted)}.ts-filter-bar{gap:10px;padding:20px 24px;background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:16px}.ts-filter-bar input,.ts-filter-bar select{min-height:40px!important;padding:8px 12px!important;font-size:13px!important;width:auto!important;max-width:100%;flex:1;min-width:140px}.ts-filter-bar input[type=text]{min-width:200px;flex:2}.ts-filter-bar .ts-btn{flex:0 0 auto}.ts-page .period-form,.ts-page .month{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:24px}.ts-page .period-form input,.ts-page .period-form select,.ts-page .month input{width:auto;flex:1}.ts-page .section>h2,.ts-page .section-title,.analytics-heading{font-size:16px;margin-bottom:16px}.summary-grid,.secondary-grid,.inventory-grid,.analytics-grid,.mini,.grid2{display:grid;gap:16px;margin-bottom:24px}.summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.secondary-grid,.inventory-grid,.mini{grid-template-columns:repeat(3,minmax(0,1fr))}.analytics-grid,.grid2{grid-template-columns:repeat(2,minmax(0,1fr))}.ts-table-card{overflow-x:auto}
/* Dashboard */
.dashboard-actions{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,.7fr);gap:24px;margin-top:28px}.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.quick-action,.module{padding:18px;border-radius:12px}.quick-action strong,.module-title{font-size:14px}.quick-action small,.module-text{font-size:12px;line-height:1.5}.modules{gap:12px}.quick-action-plus{width:34px;height:34px;flex-basis:34px}.recent-sales-header,.recent-sale-row{grid-template-columns:1.3fr 1.5fr 1fr 1fr 1fr 70px;padding:15px 20px;gap:12px;min-width:760px}.recent-sales-header{font-size:10px}.recent-sale-row{font-size:13px}.recent-sale-row span{font-size:12px}.stock-alert{padding:17px 18px}.stock-alert-info strong{font-size:14px}.stock-alert-info span{font-size:12px}.stock-alert-badge{font-size:11px}
/* POS uses the same surfaces and control scale, retaining its checkout interactions. */
.ts-pos-root{--ink:#24262b;--bg:#f7f8fa;--blue:#202124;font-size:14px}.ts-pos-root .workspace{gap:28px;padding:0}.ts-pos-root .checkout{border:1px solid var(--line);border-radius:12px;box-shadow:none;padding:24px}.ts-pos-root .search input,.ts-pos-root .filters select,.ts-pos-root .customer-wrap input,.ts-pos-root .account-select,.ts-pos-root textarea{font-size:14px;min-height:40px;border-radius:8px}.ts-pos-root .field-label{font-size:13px}.ts-pos-root .complete{border-radius:9px;min-height:46px;font-size:14px}.ts-pos-root .sum-row{font-size:14px}
/* Detail pages */
.product-header,.stock-section,.info-card,.receive-card{border:1px solid var(--line);border-radius:12px;box-shadow:none}.product-header{padding:24px}.product-title{font-size:30px;letter-spacing:-.8px}.product-subtitle{font-size:14px}.info-label{font-size:12px}.info-value{font-size:14px}.stock-table th{font-size:10px}.stock-table td{font-size:13px;padding:15px 20px}.ts-page .section-title-row{display:flex;justify-content:space-between;gap:16px;align-items:center}.ts-page .section-link{font-size:13px}.ts-page .info-grid{gap:16px}.ts-page .subtext,.ts-page .details{font-size:12px;line-height:1.5}
.app-content a:focus-visible,.app-content button:focus-visible,.app-content summary:focus-visible{outline:3px solid #b9b4ff;outline-offset:3px}
/* Standalone login and customer warranty pages. */
.interface-standalone{background:#f7f8fa;color:#24262b}.interface-standalone .login-box,.interface-standalone .card{border:1px solid #e2e4e9;border-radius:12px;box-shadow:none}.interface-standalone input,.interface-standalone button{border-radius:8px;font-size:14px;min-height:42px}.interface-standalone .logo{font-size:30px;letter-spacing:-.8px}.interface-standalone .subtitle{font-size:14px;color:#747883}
@media(max-width:1100px){.dashboard-actions{grid-template-columns:1fr}.summary-grid,.secondary-grid,.inventory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ts-stat-grid.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.ts-stat-grid.dashboard-stats>:nth-child(2){border-right:0}.ts-stat-grid.dashboard-stats>:nth-child(n+3){border-top:1px solid #ececf0}}
@media(max-width:900px){.app-content{padding:26px 20px 40px}.analytics-grid,.grid2{grid-template-columns:1fr}.ts-pos-root .workspace{grid-template-columns:1fr}.ts-pos-root .checkout{max-width:none}.ts-pos-root .catalog{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.app-content{padding:22px 16px 36px}.ts-page-header{align-items:flex-start;flex-direction:column;gap:18px}.ts-page-header h1,.ts-pos-title h1{font-size:28px}.ts-stat-grid,.ts-stat-grid.dashboard-stats{grid-template-columns:1fr}.ts-stat-grid>.ts-stat,.ts-stat-grid>.ts-card{padding:20px;border-right:0;border-bottom:1px solid #ececf0}.ts-stat-grid>:last-child{border-bottom:0}.ts-stat-grid.dashboard-stats>:nth-child(n+3){border-top:0}.ts-stat-value{font-size:27px}.ts-card,.ts-form-card{padding:20px}.ts-table{min-width:640px}.ts-card{overflow-x:auto}.ts-filter-bar{padding:18px;align-items:stretch}.ts-filter-bar input,.ts-filter-bar select{width:100%!important;flex-basis:100%;min-width:0}.ts-filter-bar .ts-btn{width:auto}.summary-grid,.secondary-grid,.inventory-grid,.mini,.ts-grid{grid-template-columns:1fr}.quick-actions,.modules{grid-template-columns:1fr}.ts-pos-root .catalog{grid-template-columns:repeat(2,minmax(0,1fr))}.ts-pos-root .checkout{padding:20px}.ts-page .period-form>*{flex-basis:100%}.interface-standalone .login-box{margin:20px;padding:28px}}
@media(prefers-reduced-motion:reduce){.app-content *{transition:none!important;animation:none!important}}
}
@media screen{
.ts-stat-grid.dashboard-stats>:nth-child(n+5){border-top:1px solid #ececf0}
.ts-page-header:has(>h1):has(>p){flex-direction:column;align-items:flex-start;gap:0}.ts-page-header:has(>h1)>p{max-width:none}
.ts-card:has(>form:not(.ts-filter-bar)):not(.ts-period-control){max-width:760px}.ts-page form>select{margin-bottom:20px}.ts-page form .ts-actions>a:not(.ts-btn){min-height:40px;padding:9px 16px;border:1px solid var(--line-strong);border-radius:9px;background:#fff;color:var(--ink);font-size:13px;text-decoration:none;display:inline-flex;align-items:center}
h1.ts-pos-title{font-size:32px!important;letter-spacing:-1px;line-height:1.15}
}
@media screen and (min-width:1101px){.ts-stat-grid.dashboard-stats>:nth-child(4n){border-right:0}}
@media screen and (max-width:700px){.ts-stat-grid.dashboard-stats>:nth-child(n+5){border-top:0}h1.ts-pos-title{font-size:28px!important}}
@media screen{.ts-page form select+label{margin-top:20px}.ts-page form .ts-actions>a:has(+button[type=submit]){background:#fff;border:1px solid var(--line-strong);color:var(--ink)}.ts-page .table-wrap{overflow-x:auto}.ts-stat-grid.dashboard-stats{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media screen and (max-width:1100px){.ts-stat-grid.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media screen and (max-width:700px){.ts-stat-grid.dashboard-stats{grid-template-columns:1fr}}
@media screen{
.ts-pos-root .general-button{padding:8px 10px;border:1px solid #dcdfe5;border-radius:8px;background:#fff;font-size:12px;margin-top:8px;cursor:pointer}.ts-pos-root .checkout select{width:100%;min-height:40px;padding:9px 12px;border:1px solid #dcdfe5;border-radius:8px;background:#fff;font-size:13px;margin-bottom:18px}.ts-pos-root .complete{display:flex;justify-content:space-between;align-items:center;width:100%;padding:14px 16px;background:#202124;color:#fff;border:0;font-weight:600;cursor:pointer}.ts-pos-root .complete:disabled{opacity:.45;cursor:default}.ts-pos-root .cart-item{padding:18px 0;border-bottom:1px solid #ececf0}.ts-pos-root .item-info strong{font-size:14px}.ts-pos-root .item-info span{font-size:12px;line-height:1.5}.ts-pos-root .price-row{font-size:13px}.ts-pos-root .price-row input{min-height:40px;padding:8px 10px;border:1px solid #dcdfe5;border-radius:8px;font-size:14px;width:120px}.ts-pos-root .remove{font-size:12px;color:#747883;background:transparent;border:0;padding:6px;cursor:pointer}
}
/* Shared interface audit: screen presentation only. */
@media screen{
.app-content>.ts-page:not(.invoice-page){max-width:1180px!important;margin-left:auto;margin-right:auto}
.ts-page>.ts-link,.ui-standard-list>a:first-child,.ui-standard-form>a:first-child{display:inline-flex;margin:0 0 22px;font-size:13px;color:#747883;text-decoration:none;font-weight:550}.ts-page>.ts-link:hover{color:#24262b}
.ui-standard-form>h1,.ui-standard-form .ts-page-header h1{font-size:30px;line-height:1.3;letter-spacing:-.7px;font-weight:680;margin:0 0 24px}.ui-standard-form>.ts-card,.ui-standard-form>.ts-form-card,.ui-standard-form>.ts-table-card{width:100%;max-width:none!important;margin:0;padding:24px;background:#fff;border:1px solid #e2e4e9;border-radius:12px}.ui-standard-form .ui-control{margin-bottom:20px;min-width:0}.ui-standard-form .ui-control label{display:block;font-size:12px;color:#747883;margin:0 0 8px}.ui-standard-form .ui-control input,.ui-standard-form .ui-control select,.ui-standard-form .ui-control textarea{margin:0!important;width:100%}.ui-standard-form .ui-control input[type=checkbox]{width:auto;min-height:0}.ui-standard-form form>select{margin-bottom:20px}.ui-standard-form form>button[type=submit],.ui-standard-form .ts-actions>button[type=submit]{min-height:40px;padding:9px 16px;background:#202124;color:#fff;border:1px solid #202124;border-radius:9px;font-size:13px;font-weight:600;cursor:pointer}.ui-standard-form .ts-actions{margin-top:20px}.ui-standard-form .ts-page-subtitle{margin:0 0 20px}.ui-standard-form .ts-field{margin-bottom:20px}.ui-standard-form .ts-field .ui-control{margin-bottom:0}
.ts-page .ts-filter-bar,.ts-page .period-form{align-items:center!important;gap:10px}.ts-page .ts-filter-bar>input,.ts-page .ts-filter-bar>select,.ts-page .period-form>input,.ts-page .period-form>select{margin:0!important;height:38px!important;min-height:38px!important;padding:8px 10px!important;font-size:12px!important}.ts-page .ts-filter-bar .filter-actions{margin:0;display:flex;gap:8px;align-items:center}
.ts-page:not(.invoice-page) .ts-table th{padding:10px 12px!important;font-size:9px!important;letter-spacing:.04em}.ts-page:not(.invoice-page) .ts-table td{padding:12px!important;font-size:12px!important;line-height:1.45}.ts-page .ts-table-card,.ts-page .table-wrap{overflow-x:auto}.ui-standard-list .topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.ui-standard-list .supplier-name{font-size:24px;font-weight:650}.ui-standard-list .contact{display:flex;gap:20px;flex-wrap:wrap;padding:16px 0 24px;color:#747883}.ui-standard-list .ts-split{gap:20px}.ui-standard-list .movement-product{font-size:12px;font-weight:550}.ui-standard-list>.ts-table-card{padding:24px}.ui-standard-list .movement-product+.ts-muted{margin-top:4px}.ui-standard-reports .summary-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.ui-standard-reports .period-form{padding:18px;background:#fff;border:1px solid #e2e4e9;border-radius:12px}.ui-standard-reports table{width:100%;border-collapse:collapse}.ui-standard-reports table th,.ui-standard-reports table td{padding:10px 12px;text-align:left;border-bottom:1px solid #ececf0;font-size:12px}.ui-standard-reports .summary-grid .ts-stat-value{font-size:26px}
@media(max-width:900px){.ui-standard-reports .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){.ui-standard-form>h1{font-size:26px}.ui-standard-form>.ts-card,.ui-standard-form>.ts-form-card{padding:20px}.ui-standard-reports .summary-grid{grid-template-columns:1fr}}
}

@media screen{.ui-list-spacing>.ts-page-header{min-height:40px;margin:0 0 28px!important;align-items:center;gap:20px}.ui-list-spacing>.ts-page-header h1{margin:0!important;font-size:30px;line-height:40px;letter-spacing:-.7px}.ui-list-spacing>.ts-page-header .ts-page-subtitle{display:none}.ui-list-spacing>.ts-stat-grid,.ui-list-spacing>.ts-card>.summary{margin-bottom:24px!important}.ui-list-spacing>.ts-filter-bar,.ui-list-spacing>.search-box{margin-top:0!important;margin-bottom:16px!important}.ui-list-spacing>.search-box>.ts-filter-bar{margin:0!important}.ui-list-spacing>.ts-link{margin-bottom:22px}.ui-list-spacing>.ts-page-header .ts-btn{margin:0}@media(max-width:700px){.ui-list-spacing>.ts-page-header{flex-direction:row;flex-wrap:wrap;align-items:center}.ui-list-spacing>.ts-page-header h1{font-size:26px}}}

/* Stock table reference: edge-to-edge headers and rows in one bordered panel. */
@media screen{
.ts-page:not(.invoice-page):not(.receipt-page) .ts-card:has(>table),.ts-page:not(.invoice-page):not(.receipt-page) .ts-table-card:has(>table){padding:0!important;overflow-x:auto;border:1px solid #e2e4e9;border-radius:12px;background:#fff}
.ts-page:not(.invoice-page):not(.receipt-page) .ts-card>table,.ts-page:not(.invoice-page):not(.receipt-page) .ts-table-card>table{width:100%!important;margin:0!important;border-collapse:collapse}
.ts-page:not(.invoice-page):not(.receipt-page) .ts-card:has(>table)>h2,.ts-page:not(.invoice-page):not(.receipt-page) .ts-card:has(>table)>h3,.ts-page:not(.invoice-page):not(.receipt-page) .ts-card:has(>table)>.panel-head,.ts-page:not(.invoice-page):not(.receipt-page) .ts-card:has(>table)>.card-title{padding:20px 16px!important;margin:0!important;font-size:16px;font-weight:650}
.ts-page:not(.invoice-page):not(.receipt-page):not(.stock-list-page) table.ts-table th,.ts-page:not(.invoice-page):not(.receipt-page) .ts-card>table th{padding:12px!important;background:#fafafb;font-size:9px!important;color:#7a808b;letter-spacing:.04em;text-transform:uppercase;border-bottom:1px solid #e2e4e9}
.ts-page:not(.invoice-page):not(.receipt-page):not(.stock-list-page) table.ts-table td,.ts-page:not(.invoice-page):not(.receipt-page) .ts-card>table td{padding:12px!important;font-size:12px!important;line-height:1.45;border-bottom:1px solid #ececf0;vertical-align:middle}
.ts-page:not(.invoice-page):not(.receipt-page) table tbody tr:last-child td{border-bottom:0}
.ts-page:not(.invoice-page):not(.receipt-page) .ts-card:has(>table)+.ts-card:has(>table){margin-top:24px}
}

/* Global dark mode — screen only */
@media screen {
html[data-theme="dark"]{color-scheme:dark;--bg:#111315;--surface:#191c1f;--surface-2:#202428;--ink:#f1f3f5;--muted:#9aa1aa;--line:#2b3035;--line-strong:#3a4046;--sidebar:#15181b;--accent-soft:#282640;--shadow:none}
html[data-theme="dark"] body,html[data-theme="dark"] .app-main{background:#111315;color:#f1f3f5}
html[data-theme="dark"] .sidebar{background:#15181b;border-color:#2b3035}
html[data-theme="dark"] .brand-mark{background:#f1f3f5;color:#17191c}
html[data-theme="dark"] .nav-label,html[data-theme="dark"] .brand-subtitle,html[data-theme="dark"] .user-meta span{color:#747b84}
html[data-theme="dark"] .nav-item{color:#a8afb7}html[data-theme="dark"] .nav-item:hover{background:#202428;color:#f1f3f5}html[data-theme="dark"] .nav-item.active{background:#29263e;color:#b9b4ff}
html[data-theme="dark"] .user-avatar{background:#272b30;color:#e9ecef}html[data-theme="dark"] .sidebar-logout{border-color:#34393f;color:#a8afb7}html[data-theme="dark"] .sidebar-logout:hover{background:#202428;color:#fff}
html[data-theme="dark"] .app-topbar{background:rgba(17,19,21,.88);border-color:#292d31}html[data-theme="dark"] .topbar-title{color:#c5cad0}html[data-theme="dark"] .topbar-user span{color:#818891}
.theme-toggle{margin-left:14px;width:32px;height:32px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);display:grid;place-items:center;cursor:pointer;font-size:14px}.theme-toggle:hover{background:var(--surface-2)}
html[data-theme="dark"] .ts-card,html[data-theme="dark"] .ts-form-card,html[data-theme="dark"] .ts-table-card,html[data-theme="dark"] .ts-stat,html[data-theme="dark"] .ts-stat-grid,html[data-theme="dark"] .ts-filter-bar,html[data-theme="dark"] .quick-action,html[data-theme="dark"] .module,html[data-theme="dark"] .recent-sales,html[data-theme="dark"] .stock-alert{background:#191c1f!important;border-color:#2b3035!important;color:#f1f3f5}
html[data-theme="dark"] .ts-table th,html[data-theme="dark"] .recent-sales-header{background:#202428!important;color:#8f969f}html[data-theme="dark"] .ts-table td,html[data-theme="dark"] .recent-sale-row{border-color:#292e33}html[data-theme="dark"] .ts-table tbody tr:hover{background:#202428}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea,html[data-theme="dark"] .ts-input,html[data-theme="dark"] .ts-select,html[data-theme="dark"] .ts-textarea{background:#171a1d!important;color:#eef1f4!important;border-color:#363c42!important}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#707780}html[data-theme="dark"] option{background:#191c1f;color:#eef1f4}
html[data-theme="dark"] .ts-btn-secondary,html[data-theme="dark"] .ts-page .period-button,html[data-theme="dark"] .ts-page .month button{background:#202428;color:#e8ebee;border-color:#3a4046}html[data-theme="dark"] .ts-btn-primary,html[data-theme="dark"] .ts-control-dark{background:#eef1f4!important;color:#17191c!important;border-color:#eef1f4!important}
html[data-theme="dark"] dialog,html[data-theme="dark"] .customer-results{background:#191c1f!important;color:#f1f3f5!important;border-color:#343a40!important}
html[data-theme="dark"] .ts-pos-root{--bg:#111315;--surface:#191c1f;--ink:#f1f3f5;--muted:#9aa1aa;--line:#30353a;--soft:#202b23}
html[data-theme="dark"] .ts-pos-root .pos-customer-panel,html[data-theme="dark"] .ts-pos-root .device,html[data-theme="dark"] .ts-pos-root .checkout{background:#191c1f!important;border-color:#30353a!important;color:#f1f3f5}html[data-theme="dark"] .ts-pos-root .device:hover{border-color:#555c64!important;box-shadow:none!important}html[data-theme="dark"] .ts-pos-root .device.in-cart{background:#17241b!important;border-color:#3f7e50!important}html[data-theme="dark"] .ts-pos-root .device-name,html[data-theme="dark"] .ts-pos-root .device-price{color:#f1f3f5!important}
html[data-theme="dark"] .ts-pos-root .device-action{background:#34a853!important;color:#fff!important}html[data-theme="dark"] .ts-pos-root .device.in-cart .device-action{background:#23442c!important;color:#91d7a4!important}html[data-theme="dark"] .ts-pos-root .payment-options{background:#111315!important}

html[data-theme="dark"] .product-header,html[data-theme="dark"] .stock-section,html[data-theme="dark"] .info-card,html[data-theme="dark"] .receive-card{background:#191c1f!important;border-color:#2b3035!important;color:#f1f3f5}

}
/* Global interface scale — large desktop readability */
@media screen and (min-width:901px){
:root{--sidebar-width:252px}
.app-topbar{height:62px;padding:0 28px}.topbar-title{font-size:14px}.topbar-user{font-size:13px}.topbar-user span{font-size:12px}.theme-toggle{width:36px;height:36px;font-size:16px}
.sidebar-brand{height:72px;padding:0 17px;gap:11px}.brand-mark{width:34px;height:34px;font-size:15px}.brand-name{font-size:14px}.brand-subtitle{font-size:9px}.sidebar-nav{padding:12px 10px 20px}.nav-label{padding:17px 11px 6px;font-size:9px}.nav-item{height:40px;padding:0 11px;font-size:13px;gap:10px}.nav-icon{width:19px;font-size:13px}.sidebar-footer{padding:14px}.user-avatar{width:34px;height:34px;font-size:12px}.user-meta strong{font-size:13px}.user-meta span{font-size:10px}.sidebar-logout{font-size:11px;padding:8px 10px}
.app-content{max-width:1560px;padding:36px 34px 54px}.app-content>.ts-page,.app-content>.product-page{max-width:1360px}
.ts-page-header{margin-bottom:30px}.ts-page-header h1,.ts-pos-title h1{font-size:36px}.ts-page-header p,.ts-page-subtitle{font-size:15px}
.ts-btn{min-height:43px;padding:10px 17px;font-size:14px}.ts-btn-small{min-height:35px;padding:7px 11px;font-size:12px}
.ts-stat-grid{margin-bottom:30px}.ts-stat-grid>.ts-stat,.ts-stat-grid>.ts-card{padding:25px 26px}.ts-stat-label{font-size:13px}.ts-stat-value,.ts-stat-grid .value{font-size:31px}.ts-stat-note{font-size:13px}
.ts-card{padding:26px}.ts-card-header{padding:21px 26px;font-size:17px}.ts-card>h1,.ts-form-card>h1{font-size:30px}.ts-card>h2{font-size:17px}.ts-form-card{padding:30px;max-width:850px}
.ts-table th,.ts-table td{padding:17px 22px;font-size:14px}.ts-table th{padding-top:14px;padding-bottom:14px;font-size:11px}.ts-link{font-size:14px}.ts-badge{font-size:11px;padding:5px 9px}.ts-muted,.ts-note,.ts-meta{font-size:13px}
.ts-label,.ts-page form label{font-size:14px;margin-bottom:8px}.ts-input,.ts-select,.ts-textarea,.ts-page form input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.ts-page form select,.ts-page form textarea{min-height:43px;padding:10px 13px;font-size:14px}
.ts-filter-bar{padding:21px 26px}.ts-filter-bar input,.ts-filter-bar select{min-height:43px!important;font-size:14px!important}
.product-title{font-size:34px}.product-subtitle{font-size:15px}.info-label{font-size:13px}.info-value{font-size:15px}.stock-table th{font-size:11px}.stock-table td{font-size:14px;padding:17px 22px}
}

/* Never print transient application notifications. */
@media print { .ts-global-flashes, .ts-flash { display:none !important; } }

.ui-standard-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),.ui-standard-form select,.ui-standard-form .ts-dropdown-trigger{height:39px!important;min-height:39px!important;max-height:39px!important;box-sizing:border-box!important;line-height:normal!important;padding-top:0!important;padding-bottom:0!important}

/* Filter and report toolbars: buttons match the 38px fields beside them. */
.ts-page .ts-filter-bar .ts-btn,
.ts-page .period-form .ts-btn{
  height:38px!important;
  min-height:38px!important;
  max-height:38px!important;
  padding-top:0!important;
  padding-bottom:0!important;
  box-sizing:border-box!important;
}


/* TECHSAVE dark-mode button standard — stock report style */
@media screen {
html[data-theme="dark"] .ts-btn,
html[data-theme="dark"] .ts-page button.ts-btn,
html[data-theme="dark"] .ts-page a.ts-btn{
  border-radius:9px;
  font-weight:600;
  transition:background-color .16s ease,border-color .16s ease,color .16s ease;
}
html[data-theme="dark"] .ts-btn-secondary,
html[data-theme="dark"] .ts-page button.ts-btn-secondary,
html[data-theme="dark"] .ts-page a.ts-btn-secondary{
  background:#202428!important;
  color:#e8ebee!important;
  border:1px solid #3a4046!important;
}
html[data-theme="dark"] .ts-btn-secondary:not(:disabled):hover,
html[data-theme="dark"] .ts-page button.ts-btn-secondary:not(:disabled):hover,
html[data-theme="dark"] .ts-page a.ts-btn-secondary:hover{
  background:#2b3035!important;
  border-color:#59616a!important;
  color:#fff!important;
}
html[data-theme="dark"] .ts-btn:disabled{
  opacity:.45;
  cursor:not-allowed;
}

}
