/*
 * MediBill inner-page visual system.
 * Scoped to module roots only: no dashboard, data binding, API, or navigation behavior.
 */
:root{--mb-blue:#1677ff;--mb-indigo:#3e30f5;--mb-navy:#102a62;--mb-ink:#11255a;--mb-muted:#60739b;--mb-line:#d8e8ff;--mb-surface:#fff;--mb-soft:#f5faff;--mb-radius:18px;--mb-shadow:0 12px 28px rgba(35,99,190,.09);--mb-focus:0 0 0 3px rgba(22,119,255,.14)}
#app :is(.billing-page,.purchase-page,.purchase-return-page,.sales-return-page,.dealer-page,.customer-page,.reports-live-page,.alerts-live-page,.reports-alerts-page,.users-page,.settings-live-page,.product-live-page,.stock-master-page){max-width:1440px;margin:0 auto;padding:6px 4px 28px;color:var(--mb-ink)}

/* Shared title treatments */
#app :is(.billing-header,.purchase-title,.dealer-title,.customer-title,.reports-live-title,.alerts-live-title,.ra-title,.users-heading,.settings-live-title,.product-live-title,.stock-master-title){position:relative;display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 18px;padding:21px 24px;border:1px solid #cfe5ff;border-radius:var(--mb-radius);overflow:hidden;background:linear-gradient(106deg,#fff 0%,#f6fbff 56%,#e9f6ff 100%);box-shadow:var(--mb-shadow)}
#app :is(.billing-header,.purchase-title,.dealer-title,.customer-title,.reports-live-title,.alerts-live-title,.ra-title,.users-heading,.settings-live-title,.product-live-title,.stock-master-title)::after{content:"";position:absolute;right:-34px;top:-52px;width:220px;height:170px;border-radius:50%;background:radial-gradient(circle,rgba(76,194,255,.22),rgba(76,194,255,0) 67%);pointer-events:none}
#app :is(.billing-header,.purchase-title,.dealer-title,.customer-title,.reports-live-title,.alerts-live-title,.ra-title,.users-heading,.settings-live-title,.product-live-title,.stock-master-title)>*{position:relative;z-index:1}
#app :is(.billing-header h1,.purchase-title h1,.dealer-title h1,.customer-title h1,.reports-live-title h1,.alerts-live-title h1,.ra-title h1,.users-heading h1,.settings-live-title h1,.product-live-title h1,.stock-master-title h1){margin:4px 0 0;color:#10235c;font:800 clamp(23px,2vw,31px)/1.15 Manrope,"DM Sans",sans-serif;letter-spacing:-.04em}
#app :is(.billing-header p,.purchase-title p,.dealer-title p,.customer-title p,.reports-live-title p,.alerts-live-title p,.ra-title p,.users-heading p,.settings-live-title p,.product-live-title p,.stock-master-title p){margin:7px 0 0;color:var(--mb-muted);font-size:12px;line-height:1.55}
#app :is(.billing-header [class*=live],.purchase-title>div>span,.dealer-title>div>span,.customer-title>div>span,.reports-live-title>div>span,.alerts-live-title>div>span,.ra-title>div>span,.ra-title .ra-demo,.users-heading>div>span,.settings-live-title>div>span,.product-live-title>div>span,.stock-master-title>div>span){color:#1677ff;font-size:10px;font-weight:800;letter-spacing:.13em}

/* Cards, tables, forms and actions */
#app :is(.bill-meta,.bill-search,.bill-items-panel,.bill-summary,.bill-payment,.bill-actions,.bill-notes,.purchase-meta,.purchase-items-card,.purchase-summary,.purchase-notes,.purchase-card,.purchase-dashboard-grid>*,.dealer-card,.customer-card,.reports-live-print,.reports-live-catalog,.report-card,.report-catalog,.gst-placeholder,.alerts-live-card,.alert-card,.product-live-card,.product-live-form>section,.stock-master-card,.stock-master-adjust>section,.settings-live-card,.settings-live-panel,.users-card){border:1px solid var(--mb-line)!important;border-radius:var(--mb-radius)!important;background:linear-gradient(145deg,#fff,#fbfdff)!important;box-shadow:var(--mb-shadow)!important}
#app :is(.bill-meta,.purchase-meta,.purchase-notes,.bill-notes,.reports-live-filters,.report-filters,.stock-master-filters,.customer-ledger-controls,.dealer-ledger-controls,.alerts-live-filters){padding:15px!important;gap:12px!important}
#app :is(.bill-meta label,.bill-notes label,.purchase-meta label,.purchase-notes label,.return-grid label,.product-live-form label,.customer-live-form label,.dealer-live-form label,.settings-live-form label,.stock-master-adjust label,.reports-live-filters label,.stock-master-filters label,.customer-ledger-controls label,.dealer-ledger-controls label){color:#425e8e!important;font-size:10px!important;font-weight:800!important;letter-spacing:.025em}
#app :is(.billing-page,.purchase-page,.purchase-return-page,.sales-return-page,.dealer-page,.customer-page,.reports-live-page,.alerts-live-page,.reports-alerts-page,.users-page,.settings-live-page,.product-live-page,.stock-master-page) :is(input,select,textarea){border-color:#d5e5fa!important;border-radius:10px!important;background:#fff!important;color:#17305f!important;box-shadow:0 2px 8px rgba(31,100,184,.035);transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
#app :is(.billing-page,.purchase-page,.purchase-return-page,.sales-return-page,.dealer-page,.customer-page,.reports-live-page,.alerts-live-page,.reports-alerts-page,.users-page,.settings-live-page,.product-live-page,.stock-master-page) :is(input,select,textarea):focus{border-color:#57a4ff!important;box-shadow:var(--mb-focus)!important;background:#fff!important}
#app :is(.billing-page,.purchase-page,.purchase-return-page,.sales-return-page,.dealer-page,.customer-page,.reports-live-page,.alerts-live-page,.reports-alerts-page,.users-page,.settings-live-page,.product-live-page,.stock-master-page) :is(button,.purchase-primary,.dealer-primary,.customer-primary,.alerts-live-primary,.stock-master-primary,.product-live-primary){border-radius:10px!important;transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}
#app :is(.billing-page,.purchase-page,.purchase-return-page,.sales-return-page,.dealer-page,.customer-page,.reports-live-page,.alerts-live-page,.reports-alerts-page,.users-page,.settings-live-page,.product-live-page,.stock-master-page) :is(button,.purchase-primary,.dealer-primary,.customer-primary,.alerts-live-primary,.stock-master-primary,.product-live-primary):not(:disabled):hover{transform:translateY(-1px);box-shadow:0 8px 17px rgba(36,104,203,.16)}
#app :is(.purchase-primary,.dealer-primary,.customer-primary,.alerts-live-primary,.stock-master-primary,.product-live-primary,.bill-actions .bill-save,.purchase-actions .purchase-save){border-color:transparent!important;background:linear-gradient(112deg,#1686ff,#3a35ed)!important;color:#fff!important;box-shadow:0 9px 18px rgba(48,78,235,.22)!important}
#app :is(.bill-items-panel>header,.purchase-items-card>header,.dealer-card>header,.customer-card>header,.product-live-card>header,.stock-master-card>header,.alerts-live-card>header){padding:18px 20px 14px!important;border-bottom:1px solid #e6f0ff}
#app :is(.bill-items-panel h2,.bill-summary h2,.bill-payment h2,.purchase-items-card h2,.dealer-card h2,.customer-card h2,.product-live-card h2,.stock-master-card h2,.alerts-live-card h2,.reports-live-print h2){color:#11265b!important;font:800 16px Manrope,"DM Sans",sans-serif!important;letter-spacing:-.025em}
#app :is(.bill-items-panel header span,.bill-payment header span,.purchase-items-card header small,.dealer-card header small,.customer-card header small,.product-live-card header small,.stock-master-card header small,.alerts-live-card header small){color:#7183a7!important;font-size:10px!important}
#app :is(.bill-table-wrap,.purchase-table-wrap,.customer-table-wrap,.dealer-table-wrap,.product-live-table,.stock-master-table,.reports-live-table,.alerts-live-table,.ra-table-wrap){border-radius:0 0 var(--mb-radius) var(--mb-radius);scrollbar-color:#9ecbff transparent}
#app :is(.billing-items-table,.purchase-items-table,.purchase-history-table,.customer-history-table,.customer-ledger-table,.dealer-history-table,.dealer-ledger-table,.product-live-table table,.stock-master-table table,.reports-live-table table,.alerts-live-table table,.report-sales-table,.alert-table){font-size:11px!important}
#app :is(.billing-items-table th,.purchase-items-table th,.purchase-history-table th,.customer-history-table th,.customer-ledger-table th,.dealer-history-table th,.dealer-ledger-table th,.product-live-table th,.stock-master-table th,.reports-live-table th,.alerts-live-table th,.report-sales-table th,.alert-table th){background:#f3f8ff!important;color:#52709d!important;font-size:9px!important;font-weight:800!important;letter-spacing:.045em}
#app :is(.billing-items-table td,.purchase-items-table td,.purchase-history-table td,.customer-history-table td,.customer-ledger-table td,.dealer-history-table td,.dealer-ledger-table td,.product-live-table td,.stock-master-table td,.reports-live-table td,.alerts-live-table td,.report-sales-table td,.alert-table td){border-color:#e9f1fc!important;color:#24406e!important}
#app :is(.billing-items-table tbody tr,.purchase-items-table tbody tr,.purchase-history-table tbody tr,.customer-history-table tbody tr,.customer-ledger-table tbody tr,.dealer-history-table tbody tr,.dealer-ledger-table tbody tr,.product-live-table tbody tr,.stock-master-table tbody tr,.reports-live-table tbody tr,.alerts-live-table tbody tr,.report-sales-table tbody tr,.alert-table tbody tr){transition:background .16s ease}
#app :is(.billing-items-table tbody tr:hover,.purchase-items-table tbody tr:hover,.purchase-history-table tbody tr:hover,.customer-history-table tbody tr:hover,.customer-ledger-table tbody tr:hover,.dealer-history-table tbody tr:hover,.dealer-ledger-table tbody tr:hover,.product-live-table tbody tr:hover,.stock-master-table tbody tr:hover,.reports-live-table tbody tr:hover,.alerts-live-table tbody tr:hover,.report-sales-table tbody tr:hover,.alert-table tbody tr:hover){background:#f5faff}

/* Billing — counter-first but visually aligned with MediBill */
#app .billing-page{background:radial-gradient(circle at 96% 0,rgba(72,194,255,.08),transparent 27%)}
#app .bill-live{display:inline-flex!important;align-items:center;gap:7px;padding:5px 9px;border-radius:999px;background:#e8f8ff;color:#1377e7!important}
#app .bill-meta{grid-template-columns:repeat(4,minmax(0,1fr))!important}
#app .bill-search{border:1px solid #a9d1ff!important;border-radius:15px!important;background:linear-gradient(90deg,#fff,#f8fcff)!important;box-shadow:0 11px 24px rgba(19,116,224,.09)!important}
#app .bill-search::before{content:"⌕";font-size:25px;color:#1981f7}
#app .bill-search span{display:none}
#app .billing-workspace{gap:18px!important}
#app .bill-payment{overflow:hidden;background:linear-gradient(160deg,#fff,#eff8ff)!important}
#app .bill-grand-total{border-radius:14px!important;background:linear-gradient(112deg,#edf7ff,#e8f5ff)!important}
#app .payment-modes label{border-radius:11px!important;background:rgba(255,255,255,.75)}
#app .payment-modes label:has(input:checked){border-color:#6a9fff!important;background:#eaf4ff!important;color:#126fe6!important}
#app .bill-actions{background:linear-gradient(145deg,#fff,#f3f8ff)!important}

/* Purchase and returns */
#app :is(.purchase-page,.purchase-return-page,.sales-return-page){background:radial-gradient(circle at 0 0,rgba(61,155,255,.09),transparent 28%)}
#app .purchase-kpis,.stock-master-kpis,.product-live-summary,.stock-master-summary{gap:14px!important}
#app :is(.purchase-kpis article,.stock-master-kpis article,.product-live-summary article,.stock-master-summary article){border:1px solid #d6e8ff!important;border-radius:15px!important;background:linear-gradient(145deg,#fff,#f3f9ff)!important;box-shadow:0 9px 19px rgba(35,99,190,.07)}
#app .purchase-total{border-radius:14px!important;background:linear-gradient(108deg,#eaf7ff,#eff3ff)!important}
#app :is(.purchase-tag,.dealer-tag,.customer-tag,.status-badge,.stock-master-badge){border-radius:999px!important;font-weight:800!important;letter-spacing:.025em}
#app .purchase-import{border-radius:11px!important;background:#f2f8ff!important}

/* Dealers and customers */
#app :is(.dealer-live-page,.customer-live-page){background:radial-gradient(circle at 100% 5%,rgba(77,202,255,.09),transparent 30%)}
#app :is(.dealer-live-profile,.customer-live-profile,.dealer-detail-head,.customer-live-profile-head){border:1px solid #cfe5ff!important;border-radius:var(--mb-radius)!important;background:linear-gradient(110deg,#fff,#f0f8ff)!important;box-shadow:var(--mb-shadow)}
#app :is(.dealer-live-tabs,.customer-live-tabs,.alerts-live-tabs){gap:8px!important;border:0!important;background:transparent!important}
#app :is(.dealer-live-tabs button,.customer-live-tabs button,.alerts-live-tabs button){border:1px solid #d5e5fa!important;border-radius:999px!important;background:#fff!important;color:#52709b!important}
#app :is(.dealer-live-tabs button.active,.customer-live-tabs button.active,.alerts-live-tabs button.active){border-color:#1677ff!important;background:linear-gradient(100deg,#1686ff,#4235ef)!important;color:#fff!important;box-shadow:0 8px 17px rgba(35,79,236,.18)}
#app :is(.dealer-live-summary article,.customer-live-summary article,.dealer-summary article,.customer-summary article){border:1px solid #d7e9ff!important;border-radius:14px!important;background:linear-gradient(145deg,#fff,#f1f9ff)!important}
#app :is(.dealer-live-actions button,.customer-live-actions button){border:1px solid #cfe3ff!important;border-radius:11px!important;background:#f4f9ff!important;color:#146fe2!important;font-weight:800!important}

/* Reports and alerts */
#app .reports-live-layout{gap:18px!important}
#app .reports-live-catalog{padding:12px!important;background:linear-gradient(160deg,#fff,#f4f9ff)!important}
#app .reports-live-catalog button{border-radius:10px!important;color:#45628d!important}
#app .reports-live-catalog button.active{background:linear-gradient(105deg,#1988ff,#4432ef)!important;color:#fff!important;box-shadow:0 9px 18px rgba(46,75,231,.2)}
#app .reports-live-print{overflow:hidden}
#app .reports-live-summary>article{border:1px solid #d8eaff!important;border-radius:14px!important;background:linear-gradient(145deg,#fff,#f3f9ff)!important}
#app .alerts-live-card{overflow:hidden}
#app .alerts-live-cards article{border-radius:15px!important;border:1px solid #d9eaff!important;box-shadow:0 8px 18px rgba(29,102,190,.07)!important}
#app .reports-alerts-page{background:radial-gradient(circle at 96% 0,rgba(71,187,255,.09),transparent 28%)}
#app .reports-alerts-page .report-layout{gap:18px!important}
#app .reports-alerts-page :is(.report-catalog,.alert-summary,.alert-tabs){border:1px solid var(--mb-line)!important;border-radius:var(--mb-radius)!important;background:linear-gradient(145deg,#fff,#f5faff)!important;box-shadow:var(--mb-shadow)!important}
#app .reports-alerts-page :is(.report-catalog button,.alert-tabs button){border-radius:10px!important}
#app .reports-alerts-page :is(.report-catalog button.active,.alert-tabs button.active){background:linear-gradient(105deg,#1988ff,#4432ef)!important;color:#fff!important;box-shadow:0 9px 18px rgba(46,75,231,.2)}
#app .reports-alerts-page .report-kpis article{border:1px solid #d8eaff!important;border-radius:14px!important;background:linear-gradient(145deg,#fff,#f3f9ff)!important;box-shadow:0 8px 18px rgba(29,102,190,.07)!important}

/* Staff & Users and Settings */
#app :is(.users-page,.settings-live-page){background:radial-gradient(circle at 5% 0,rgba(55,150,255,.08),transparent 28%)}
#app :is(.users-filter,.users-list,.users-form,.settings-live-nav,.settings-live-content,.settings-live-card,.settings-live-panel){border-color:#d7e9ff!important;border-radius:var(--mb-radius)!important;background:linear-gradient(145deg,#fff,#f7fbff)!important;box-shadow:var(--mb-shadow)!important}
#app :is(.users-filter input,.users-filter select,.users-filter button){border-radius:10px!important}
#app :is(.settings-live-nav button,.settings-live-tabs button){border-radius:10px!important}
#app :is(.settings-live-nav button.active,.settings-live-tabs button.active){background:#eaf4ff!important;color:#126fe3!important;font-weight:800!important}
#app :is(.users-table th,.users-table td){border-color:#e8f1fc!important}

/* Inventory / Product / Stock */
#app :is(.product-live-page,.stock-master-page){background:radial-gradient(circle at 96% 0,rgba(27,173,255,.09),transparent 28%)}
#app :is(.product-live-filters,.stock-master-filters){border:1px solid var(--mb-line)!important;border-radius:15px!important;background:#fff!important;box-shadow:var(--mb-shadow)}
#app :is(.product-live-detail-head,.stock-master-detail){border:1px solid #cfe5ff!important;border-radius:var(--mb-radius)!important;background:linear-gradient(110deg,#fff,#eef8ff)!important;box-shadow:var(--mb-shadow)}
#app :is(.product-live-info>div,.stock-master-detail+ .stock-master-summary article){border-radius:13px!important}
#app :is(.product-live-switch,.customer-active-switch,.dealer-active-switch){border:1px solid #d4e7fb!important;border-radius:13px!important;background:#f8fcff!important}

/* Empty, loading, success and responsive layout */
#app :is(.bill-empty,.purchase-empty,.customer-empty,.dealer-empty,.reports-live-empty,.alerts-live-empty,.product-live-empty,.stock-master-empty){padding:34px 18px!important;color:#6f83a8!important;text-align:center!important}
#app :is(.auth-message,.users-message,.settings-live-message,.customer-payment-success,.dealer-payment-success){border-radius:14px!important}
@media(max-width:1100px){#app :is(.billing-workspace,.purchase-bottom,.reports-live-layout,.reports-alerts-page .report-layout){grid-template-columns:1fr!important}#app :is(.reports-live-catalog,.reports-alerts-page .report-catalog){display:flex;overflow:auto;gap:8px}#app :is(.reports-live-catalog h2,.reports-alerts-page .report-catalog h2){display:none}#app :is(.reports-live-catalog button,.reports-alerts-page .report-catalog button){white-space:nowrap}#app .bill-meta{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:720px){#app :is(.billing-page,.purchase-page,.purchase-return-page,.sales-return-page,.dealer-page,.customer-page,.reports-live-page,.alerts-live-page,.reports-alerts-page,.users-page,.settings-live-page,.product-live-page,.stock-master-page){padding:0 0 18px}#app :is(.billing-header,.purchase-title,.dealer-title,.customer-title,.reports-live-title,.alerts-live-title,.ra-title,.users-heading,.settings-live-title,.product-live-title,.stock-master-title){align-items:flex-start;flex-direction:column;padding:17px 16px;border-radius:15px}#app :is(.billing-header h1,.purchase-title h1,.dealer-title h1,.customer-title h1,.reports-live-title h1,.alerts-live-title h1,.ra-title h1,.users-heading h1,.settings-live-title h1,.product-live-title h1,.stock-master-title h1){font-size:24px}#app :is(.bill-meta,.purchase-meta){grid-template-columns:1fr!important}#app :is(.bill-meta,.purchase-meta,.purchase-notes,.bill-notes,.reports-live-filters,.report-filters,.stock-master-filters,.customer-ledger-controls,.dealer-ledger-controls,.alerts-live-filters){padding:12px!important}#app .billing-workspace{margin-top:12px!important}#app :is(.product-live-summary,.stock-master-summary,.purchase-kpis,.stock-master-kpis){grid-template-columns:repeat(2,minmax(0,1fr))!important}#app :is(.reports-live-summary,.reports-alerts-page .report-kpis){grid-template-columns:1fr 1fr!important}}

/* Live module controls share the same soft raised medical-field language.  The
   selector is intentionally scoped to active module roots, not the dashboard. */
#app :is(.billing-page,.purchase-page,.purchase-return-page,.sales-return-page,.dealer-page,.customer-page,.reports-live-page,.alerts-live-page,.reports-alerts-page,.users-page,.settings-live-page,.product-live-page,.stock-master-page,.attendance-page) :is(input,select,textarea){min-height:42px;padding:10px 12px;font-size:14px;line-height:1.35;background:linear-gradient(145deg,#fff,#f6fbff)!important;border:1px solid #cfe2f7!important;border-radius:11px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 3px 10px rgba(34,104,191,.06)!important}
#app :is(.billing-page,.purchase-page,.purchase-return-page,.sales-return-page,.dealer-page,.customer-page,.reports-live-page,.alerts-live-page,.reports-alerts-page,.users-page,.settings-live-page,.product-live-page,.stock-master-page,.attendance-page) :is(input,select,textarea):focus{outline:3px solid rgba(51,140,250,.16);border-color:#56a5ff!important}
#app :is(.billing-page,.purchase-page,.purchase-return-page,.sales-return-page,.dealer-page,.customer-page,.reports-live-page,.alerts-live-page,.reports-alerts-page,.users-page,.settings-live-page,.product-live-page,.stock-master-page,.attendance-page) :is(label,th,td,button,p,small){font-size:clamp(12px,0.8vw,14px)}
#app :is(.billing-page,.purchase-page,.purchase-return-page,.sales-return-page,.dealer-page,.customer-page,.reports-live-page,.alerts-live-page,.reports-alerts-page,.users-page,.settings-live-page,.product-live-page,.stock-master-page,.attendance-page) th{font-size:11px!important}

/* Billing and Purchase are dense counter-entry screens.  The earlier generic
   field rule is correct for forms, but not for inputs inside their item tables.
   Keep the wide tables contained in their own cards and restore compact row
   controls so they do not force the page/grid wider than the content area. */
.main-content,#app,#app .billing-page,#app .purchase-page,#app .billing-workspace,#app .purchase-bottom,#app .purchase-live-form,#app .bill-left,#app .bill-right{min-width:0;max-width:100%}
#app :is(.billing-workspace,.purchase-bottom){grid-template-columns:minmax(0,1fr) minmax(290px,330px)!important}
#app :is(.bill-meta,.purchase-meta,.bill-notes,.purchase-notes){min-width:0}
#app .purchase-meta{grid-template-columns:minmax(0,.85fr) minmax(0,.85fr) minmax(0,1.55fr) minmax(0,1.1fr) minmax(0,.9fr) minmax(0,1.1fr)!important}
#app :is(.bill-table-wrap,.purchase-table-wrap){width:100%;max-width:100%;overflow-x:auto!important;overflow-y:hidden;overscroll-behavior-inline:contain}
#app :is(.billing-items-table,.purchase-items-table){table-layout:fixed;border-collapse:collapse}
#app .billing-items-table{width:100%;min-width:840px!important}
#app .billing-items-table th,#app .billing-items-table td{padding:8px 7px!important;white-space:normal!important;vertical-align:middle}
#app .billing-items-table th{font-size:9px!important;line-height:1.2}
#app .billing-items-table td{font-size:10px!important;line-height:1.25}
#app .billing-items-table :is(input,select){min-height:30px!important;height:30px!important;padding:4px 6px!important;font-size:10px!important;line-height:1.2!important;box-shadow:none!important}
#app .billing-items-table .bill-batch-select{width:100%;max-width:none!important}
#app .billing-items-table .bill-rate{width:100%!important;min-width:0!important}
#app .billing-items-table .bill-percent{width:44px!important;min-width:0!important}
#app .billing-items-table .bill-qty{width:76px;max-width:100%}
#app .billing-items-table .bill-qty :is(button,input){height:28px!important;min-height:28px!important;padding:0!important}
#app .billing-items-table .bill-qty button{width:21px!important;flex:none}
#app .billing-items-table .bill-qty input{width:30px!important;flex:1}
#app .billing-items-table .bill-product{min-width:0;overflow:hidden}
#app .billing-items-table .bill-product :is(b,small){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#app .billing-items-table th:nth-child(1){width:18%}#app .billing-items-table th:nth-child(2){width:16%}#app .billing-items-table th:nth-child(3){width:8%}#app .billing-items-table th:nth-child(4){width:9%}#app .billing-items-table th:nth-child(5){width:6%}#app .billing-items-table th:nth-child(6){width:8%}#app .billing-items-table th:nth-child(7){width:6%}#app .billing-items-table th:nth-child(8){width:7%}#app .billing-items-table th:nth-child(9){width:6%}#app .billing-items-table th:nth-child(10){width:5%}#app .billing-items-table th:nth-child(11){width:8%}#app .billing-items-table th:nth-child(12){width:3%}
#app .billing-items-table .bill-rack-location{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#5b7493;font-size:10px}
#app .purchase-items-table{width:100%;min-width:1060px!important}
#app .purchase-items-table th,#app .purchase-items-table td{padding:8px 6px!important;white-space:normal!important;vertical-align:middle}
#app .purchase-items-table th{font-size:8.5px!important;line-height:1.15}
#app .purchase-items-table td{font-size:9px!important;line-height:1.2}
#app .purchase-items-table :is(input,select){min-height:30px!important;height:30px!important;padding:4px 6px!important;font-size:10px!important;line-height:1.15!important;box-shadow:none!important}
#app .purchase-items-table :is(.purchase-line-product,.purchase-line-batch,.purchase-line-batch-number,.purchase-line-expiry,.purchase-line-override-reason,.purchase-line-qty,.purchase-line-free,.purchase-line-rate,.purchase-line-mrp,.purchase-line-selling-rate,.purchase-line-discount,.purchase-line-gst){width:100%!important;max-width:100%!important;min-width:0!important}
#app .purchase-items-table .purchase-line-batch{margin-bottom:4px}
#app .purchase-items-table .purchase-expired-override{display:flex;align-items:center;gap:3px;margin-top:4px;white-space:nowrap;font-size:8px!important;line-height:1.1}
#app .purchase-items-table .purchase-expired-override input{width:14px!important;height:14px!important;min-height:14px!important;padding:0!important;flex:none}
#app .purchase-items-table .purchase-line-product-meta,.purchase-items-table .p-barcode{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px!important}
#app .purchase-items-table .purchase-remove{width:27px;height:27px;min-width:27px;padding:0!important;font-size:17px!important}
#app .purchase-items-table th:nth-child(1){width:17%}#app .purchase-items-table th:nth-child(2){width:6%}#app .purchase-items-table th:nth-child(3){width:15%}#app .purchase-items-table th:nth-child(4){width:10%}#app .purchase-items-table th:nth-child(5){width:4%}#app .purchase-items-table th:nth-child(6),#app .purchase-items-table th:nth-child(7){width:4%}#app .purchase-items-table th:nth-child(8),#app .purchase-items-table th:nth-child(9),#app .purchase-items-table th:nth-child(10){width:5%}#app .purchase-items-table th:nth-child(11){width:5%}#app .purchase-items-table th:nth-child(12){width:4%}#app .purchase-items-table th:nth-child(13){width:6%}#app .purchase-items-table th:nth-child(14){width:7%}#app .purchase-items-table th:nth-child(15){width:2%}
#app :is(.bill-items-panel,.purchase-items-card,.bill-summary,.bill-payment,.bill-actions,.purchase-summary,.purchase-notes){overflow:hidden}
#app :is(.bill-items-panel>header,.purchase-items-card>header,.bill-items-panel footer,.purchase-items-card footer,.purchase-dealer-info){gap:8px;min-width:0}
#app :is(.bill-items-panel>header>div,.purchase-items-card>header>div,.purchase-dealer-info>* ){min-width:0}
#app .purchase-dealer-info{flex-wrap:wrap;overflow-wrap:anywhere}

@media(max-width:1480px){#app :is(.billing-workspace,.purchase-bottom){grid-template-columns:1fr!important}#app .bill-right{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#app .bill-actions,#app .bill-live-note,#app .bill-save-status{grid-column:1/-1}#app :is(.bill-summary,.bill-payment){margin:0!important}}
@media(max-width:1050px){#app .purchase-meta{grid-template-columns:repeat(3,minmax(0,1fr))!important}#app .purchase-meta .dealer{grid-column:span 1!important}}
@media(max-width:720px){#app .bill-right{grid-template-columns:1fr}#app .purchase-meta,#app .bill-meta{grid-template-columns:1fr!important}#app .purchase-meta .dealer{grid-column:auto!important}#app :is(.bill-meta,.purchase-meta,.bill-notes,.purchase-notes){padding:12px!important}#app :is(.billing-items-table,.purchase-items-table){font-size:9px!important}#app .billing-items-table{min-width:790px!important}#app .purchase-items-table{min-width:1000px!important}#app :is(.bill-items-panel>header,.purchase-items-card>header,.bill-items-panel footer,.purchase-items-card footer){align-items:flex-start;flex-wrap:wrap}#app :is(.bill-items-panel footer,.purchase-items-card footer){flex-direction:column}#app .purchase-live-find{min-width:0}#app .purchase-live-find :is(label,input,button){max-width:100%}}
