@font-face{font-family:"SSTRADERS Alvi Nastaleeq";src:local("Alvi Nastaleeq Regular"),local("Alvi Nastaleeq");font-display:swap}
:root{color-scheme:light}.ui-pref-controls{display:flex;gap:7px;align-items:center}.ui-pref-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px;padding:7px 11px;border:1px solid #d4dfeb;border-radius:10px;background:#fff;color:#17314d;font:800 11px/1 Manrope,Arial,sans-serif;cursor:pointer;white-space:nowrap;transition:.18s ease}.ui-pref-btn:hover{border-color:#1769ff;color:#1769ff}.ui-pref-floating{position:fixed;right:14px;bottom:14px;z-index:99999;padding:6px;border:1px solid rgba(127,145,165,.25);border-radius:13px;background:rgba(255,255,255,.94);box-shadow:0 10px 30px rgba(15,35,60,.16);backdrop-filter:blur(12px)}

/* LANGUAGE: preserve page/card/grid order; only text itself becomes RTL. */
html[data-language="ur"],html[data-language="ur"] body{direction:ltr!important}
html[data-language="ur"] body{font-family:"SSTRADERS Alvi Nastaleeq","Alvi Nastaleeq Regular","Alvi Nastaleeq","Noto Nastaliq Urdu","Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif}
html[data-language="ur"] :is(h1,h2,h3,h4,h5,h6,p,label,button,a,th,td,small,strong,span,.section-kicker,.field-help,.ss13-section-label,.ss13-eyebrow,.invoice-note-box,.receipt-note){unicode-bidi:plaintext}
html[data-language="ur"] :is(input,textarea){unicode-bidi:plaintext;text-align:start}
html[data-language="ur"] select{direction:ltr;text-align:left}
html[data-language="ur"] :is(.num,.text-end,.money,.amount,[class*="total"] strong,[class*="metric"] strong){direction:ltr!important;unicode-bidi:isolate;text-align:inherit}
html[data-language="ur"] :is(.ss13-hero-copy,.ss13-about-copy,.ss13-section-head>div,.ss13-section-head>p,.ss15-accordion-head>div,.ss15-accordion-head>p,.ss13-manufacturing-card,.ss13-contact-cta-inner>div,.ss13-footer-col,.ss13-footer-brand,.ss13-page-hero-inner){text-align:right}
html[data-language="ur"] .ss13-section-head,html[data-language="ur"] .ss15-accordion-head{direction:ltr}
html[data-language="ur"] .ss13-hero-copy h1{font-size:clamp(2.75rem,4.7vw,4.85rem)!important;line-height:1.18!important;letter-spacing:0!important;max-width:13ch!important}
html[data-language="ur"] :is(.ss13-section-head h2,.ss15-accordion-head h2,.ss13-manufacturing-card h2,.ss13-contact-cta h2){line-height:1.3!important;letter-spacing:0!important}
html[data-language="ur"] :is(.ss13-section-head h2,.ss15-accordion-head h2){font-size:clamp(2rem,3.35vw,3.3rem)!important}
html[data-language="ur"] .ss13-nav-links .nav-link{font-size:.9rem;line-height:1.5}
html[data-language="ur"] .ss13-work-copy,html[data-language="ur"] .ss15-depth-slide>div,html[data-language="ur"] .ss15-accordion-copy{text-align:right}
html[data-language="ur"] .ss13-work-copy h3,html[data-language="ur"] .ss15-depth-slide h3,html[data-language="ur"] .ss15-accordion-copy h3{line-height:1.35;letter-spacing:0}
html[data-language="ur"] .invoice-document,html[data-language="ur"] .receipt,html[data-language="ur"] .thermal-receipt{direction:ltr}
html[data-language="ur"] :is(.invoice-document,.receipt,.thermal-receipt) :is(h1,h2,h3,p,span,small,strong,th,td){unicode-bidi:plaintext}

/* LIGHT THEME: a deliberately bright public website and neutral Studio. */
html[data-theme="light"]{color-scheme:light}
html[data-theme="light"] body.ss13-body{background:#f7fbff!important;color:#0a2345!important}
html[data-theme="light"] :is(.ss13-header,.ss13-navbar){background:rgba(255,255,255,.97)!important;border-color:#e5edf6!important;color:#0a2345!important}
html[data-theme="light"] .ss13-nav-links .nav-link{color:#173b67!important}
html[data-theme="light"] .ss13-brand strong{color:#0b2748!important}html[data-theme="light"] .ss13-brand small{color:#71859e!important}
html[data-theme="light"] .ss13-hero{background:#eef6ff!important}
html[data-theme="light"] :is(.ss13-about-short,.ss13-work,.ss15-depth-showcase,.ss15-accordion-wrap,.ss13-ranges,.ss13-about-story,.ss13-values,.ss13-location,.ss13-brand-list-section,.ss13-contact-page,.ss13-products-section,.ss13-related,.ss13-cart-page,.ss13-checkout-page){background:#f8fbff!important;color:#0a2345!important}
html[data-theme="light"] .ss13-work{background:linear-gradient(180deg,#f8fbff,#edf5ff)!important}
html[data-theme="light"] .ss15-depth-showcase:before{background:radial-gradient(circle at 20% 15%,rgba(37,201,255,.12),transparent 27%),radial-gradient(circle at 82% 82%,rgba(124,92,255,.10),transparent 30%)!important}
html[data-theme="light"] :is(.ss15-depth-showcase .ss13-section-head h2,.ss15-depth-showcase .ss13-section-head>p,.ss15-depth-showcase .ss13-section-label){color:#0b2a50!important}
html[data-theme="light"] :is(.ss13-about-copy h2,.ss13-section-head h2,.ss13-story-copy h2,.ss13-values h2,.ss13-location h2,.ss13-brand-cta h2,.ss13-contact-info h2,.ss13-form-head h2,.ss15-accordion-head h2){color:#0a2345!important}
html[data-theme="light"] :is(.ss13-about-copy p,.ss13-story-copy p,.ss13-section-head>p,.ss15-accordion-head p){color:#5e738c!important}
html[data-theme="light"] .ss13-manufacturing-bg{background-image:linear-gradient(90deg,rgba(249,252,255,.96) 0%,rgba(249,252,255,.88) 44%,rgba(249,252,255,.22) 76%),url('/images/showcase/controlled-colour-showcase.webp')!important}
html[data-theme="light"] .ss13-manufacturing-card{color:#0a2345!important}
html[data-theme="light"] .ss13-manufacturing-card :is(h2,.ss13-manufacturing-points span){color:#0a2345!important}
html[data-theme="light"] .ss13-manufacturing-card p{color:#536b86!important}
html[data-theme="light"] .ss13-section-label.light{color:#55799f!important}
html[data-theme="light"] .ss13-contact-cta{background:#eaf4ff!important;color:#0a2345!important;border-top:1px solid #dbe9f7;border-bottom:1px solid #dbe9f7}
html[data-theme="light"] .ss13-contact-cta p{color:#56718f!important}
html[data-theme="light"] .ss13-contact-people>a:not(.ss13-btn){background:#fff!important;border-color:#d9e5f1!important;color:#0a2345!important;box-shadow:0 10px 30px rgba(17,57,98,.06)}
html[data-theme="light"] .ss13-contact-people small{color:#6e84a0!important}
html[data-theme="light"] .ss13-footer{background:#f3f8fe!important;color:#0a2345!important;border-top:1px solid #dbe7f3}
html[data-theme="light"] .ss13-footer :is(.ss13-footer-brand p,.ss13-footer-col p,.ss13-footer-bottom){color:#637995!important}
html[data-theme="light"] .ss13-footer-col h6{color:#57718f!important}
html[data-theme="light"] .ss13-footer-col a{color:#173b67!important}
html[data-theme="light"] .ss13-footer-col a strong{color:#0a2345!important}
html[data-theme="light"] .ss13-footer-bottom{border-top-color:#dce6f0!important}
html[data-theme="light"] .ss15-footer-credit{border-top-color:#dce6f0!important}
html[data-theme="light"] .ss15-footer-credit a{color:#124a8b!important}
html[data-theme="light"] .ss13-range-strip>div,html[data-theme="light"] :is(.ss13-product-card,.ss13-brand-card,.ss13-cart-summary,.ss13-cart-row,.ss13-checkout-card){background:#fff!important;color:#0a2345!important;border-color:#dce6f1!important;box-shadow:0 12px 34px rgba(15,53,92,.06)}

/* DARK THEME: every public/admin surface uses the same dark palette. */
html[data-theme="dark"]{color-scheme:dark;--ui-bg:#07111f;--ui-surface:#0d1b2c;--ui-surface2:#112238;--ui-line:#263a51;--ui-text:#eaf2ff;--ui-muted:#9fb1c6;--ui-blue:#79adff}
html[data-theme="dark"] body,html[data-theme="dark"] .admin-body,html[data-theme="dark"] .ss13-body,html[data-theme="dark"] .admin-main,html[data-theme="dark"] .admin-content{background:var(--ui-bg)!important;color:var(--ui-text)!important}
html[data-theme="dark"] :is(.admin-header,.ss13-header,.ss13-navbar){background:rgba(8,21,37,.98)!important;border-color:var(--ui-line)!important}
html[data-theme="dark"] :is(.ss13-brand strong,.ss13-nav-links .nav-link){color:#eaf2ff!important}html[data-theme="dark"] .ss13-brand small{color:#8fa5bd!important}
html[data-theme="dark"] .ss13-hero{background:#081827!important}
html[data-theme="dark"] .ss13-hero-bg{background-image:linear-gradient(90deg,rgba(7,17,31,.98) 0%,rgba(7,17,31,.92) 32%,rgba(7,17,31,.55) 58%,rgba(7,17,31,.28) 100%),url('/images/showcase/hero-industrial-showcase.webp')!important}
html[data-theme="dark"] .ss13-hero-copy h1,html[data-theme="dark"] .ss13-hero-copy>p{color:#eaf2ff!important}html[data-theme="dark"] .ss13-hero-copy h1 span{color:#73a9ff!important}
html[data-theme="dark"] .ss13-hero-proof>div{background:rgba(13,27,44,.88)!important;border-color:#28415c!important}html[data-theme="dark"] .ss13-hero-proof strong{color:#eaf2ff!important}html[data-theme="dark"] .ss13-hero-proof small{color:#8fa5bd!important}
html[data-theme="dark"] :is(.ss13-about-short,.ss13-work,.ss15-depth-showcase,.ss15-accordion-wrap,.ss13-ranges,.ss13-about-story,.ss13-values,.ss13-location,.ss13-brand-list-section,.ss13-contact-page,.ss13-products-section,.ss13-related,.ss13-cart-page,.ss13-checkout-page){background:#07111f!important;color:#eaf2ff!important}
html[data-theme="dark"] .ss13-work{background:linear-gradient(180deg,#081522,#07111f)!important}
html[data-theme="dark"] :is(.ss13-about-copy h2,.ss13-section-head h2,.ss13-story-copy h2,.ss13-values h2,.ss13-location h2,.ss13-brand-cta h2,.ss13-contact-info h2,.ss13-form-head h2,.ss15-accordion-head h2,.ss15-depth-showcase .ss13-section-head h2){color:#eaf2ff!important}
html[data-theme="dark"] :is(.ss13-about-copy p,.ss13-story-copy p,.ss13-section-head>p,.ss15-accordion-head p,.ss15-depth-showcase .ss13-section-head>p){color:#9fb1c6!important}
html[data-theme="dark"] .ss13-about-badge{background:rgba(10,24,40,.92)!important;border:1px solid #28415c!important}html[data-theme="dark"] .ss13-about-badge strong{color:#eaf2ff!important}html[data-theme="dark"] .ss13-about-badge span{color:#9fb1c6!important}
html[data-theme="dark"] .ss13-manufacturing-bg{background-image:linear-gradient(90deg,rgba(4,14,28,.97) 0%,rgba(4,14,28,.88) 46%,rgba(4,14,28,.46) 75%),url('/images/showcase/controlled-colour-showcase.webp')!important}
html[data-theme="dark"] .ss13-contact-cta{background:#081a31!important}
html[data-theme="dark"] .ss13-footer{background:#050f1d!important;color:#eaf2ff!important}
html[data-theme="dark"] .ss13-footer :is(.ss13-footer-brand p,.ss13-footer-col p,.ss13-footer-bottom){color:#9fb1c6!important}
html[data-theme="dark"] :is(.ss13-range-strip>div,.ss13-product-card,.ss13-brand-card,.ss13-cart-summary,.ss13-cart-row,.ss13-checkout-card){background:#0d1b2c!important;color:#eaf2ff!important;border-color:#263a51!important;box-shadow:none!important}
html[data-theme="dark"] :is(.card,.invoice-info-card,.pos-catalog,.pos-cart,.pos-head,.pos-prior-card,.pos-referrer-manager,.referrer-builder,.field,.page-heading,.dashboard-card,.metric-card,.account-card,.return-cart-panel,.return-catalog,.order-card,.raw-card,.purchase-card,.customer-account-card,[class*="summary-card"],[class*="stat-card"]){background-color:#0d1b2c!important;color:#eaf2ff!important;border-color:#263a51!important}
html[data-theme="dark"] :is(input,select,textarea,.form-control,.form-select){background:#091625!important;color:#eaf2ff!important;border-color:#334a63!important}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#899bb0!important}
html[data-theme="dark"] :is(table,thead,tbody,tr,td,th){border-color:#283c52!important;color:#e8f0fb!important}
html[data-theme="dark"] :is(th,.table-light,.seghead,.receipt-meta,.category-chips button,.pos-search,.return-cart-head){background-color:#101f31!important;color:#b9c9dc!important}
html[data-theme="dark"] :is(.text-muted,small,.field-help,.section-kicker){color:#9eafc3!important}
html[data-theme="dark"] a:not(.btn):not([class*="btn"]){color:#79adff}
html[data-theme="dark"] .ui-pref-btn{background:#0d1b2c;color:#eaf2ff;border-color:#334a63}
html[data-theme="dark"] .ui-pref-floating{background:rgba(7,17,31,.94);border-color:#2c4158}
html[data-theme="dark"] .pos-product{background:#0d1b2c!important;color:#eaf2ff!important;border-color:#2a4058!important}
html[data-theme="dark"] .pos-product-copy small,html[data-theme="dark"] .pos-product-copy em{color:#9fb1c6!important}

/* Theme buttons themselves stay legible. */
html[data-theme="light"] .ui-pref-btn{background:#fff;color:#17314d;border-color:#d4dfeb}html[data-theme="dark"] .ui-pref-btn:hover{color:#9cc3ff;border-color:#548dce}

/* PRINT: always white paper; language changes text only, never page geometry. */
@media print{html,body{background:#fff!important;color:#000!important;color-scheme:light!important}.ui-pref-controls,.ui-pref-floating{display:none!important}html[data-theme="dark"] *{box-shadow:none!important}html[data-theme="dark"] :is(.invoice-document,.receipt,.thermal-receipt,.continuous-print,.order-print){background:#fff!important;color:#000!important}html[data-theme="dark"] :is(.invoice-document,.receipt,.thermal-receipt,.continuous-print,.order-print) *{color:#000}html[data-language="ur"] body{font-family:"SSTRADERS Alvi Nastaleeq","Alvi Nastaleeq Regular","Alvi Nastaleeq","Noto Nastaliq Urdu","Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif}}

@media(max-width:1199px){html[data-language="ur"] .ss13-nav-links .nav-link{font-size:.84rem}}
@media(max-width:700px){.ui-pref-label{display:none}.ui-pref-btn{min-width:38px;padding:7px}.ui-pref-floating{right:8px;bottom:8px}html[data-language="ur"] .ss13-hero-copy h1{font-size:2.7rem!important;max-width:100%!important}}
html[data-theme="light"] .ss15-footer-credit-brand img{filter:brightness(.35) saturate(1.2)}
html[data-theme="light"] .ss15-footer-ticker{border-color:#dbe6f2!important;color:#315375!important}
html[data-theme="dark"] .ss15-footer-ticker{border-color:#263a51!important;color:#9fb1c6!important}

/* =========================================================
   V41 FINAL THEME LAYER
   Keep app geometry stable; theme only surfaces/ink/borders.
   ========================================================= */
:root{
  --v41-light-bg:#f4f7fb;--v41-light-card:#ffffff;--v41-light-card2:#f8fbff;--v41-light-line:#dbe4ee;--v41-light-ink:#0b2341;--v41-light-muted:#71849a;
  --v41-dark-bg:#07111f;--v41-dark-shell:#091827;--v41-dark-card:#0e1e30;--v41-dark-card2:#11243a;--v41-dark-line:#2a4059;--v41-dark-ink:#eef5ff;--v41-dark-muted:#9eb1c6;
}

/* Urdu is a text-direction concern, never a layout-direction concern. */
html[data-language="ur"] body{direction:ltr!important}
html[data-language="ur"] :is(h1,h2,h3,h4,h5,h6,p,label,button,a,th,td,small,strong,span,legend,.section-kicker,.field-help,.nav-label,.receipt-note,.invoice-note-box){
  font-family:"SSTRADERS Alvi Nastaleeq","Alvi Nastaleeq Regular","Alvi Nastaleeq","Noto Nastaliq Urdu",Manrope,"Segoe UI",sans-serif;
  line-height:1.65;
}
html[data-language="ur"] :is(.page-heading,.panel-head,.field,.invoice-info-card,.invoice-money-card,.receipt-section,.receipt-totals,.account-summary-card,.pos-account-strip,.pos-cart,.pos-catalog,.admin-table td,.admin-table th){text-align:right}
html[data-language="ur"] :is(.num,.text-end,.money,.amount,.invoice-number,.sku,[data-no-i18n]){font-family:Manrope,Arial,sans-serif!important;direction:ltr!important;unicode-bidi:isolate!important}
html[data-language="ur"] input::placeholder,html[data-language="ur"] textarea::placeholder{font-family:"SSTRADERS Alvi Nastaleeq","Alvi Nastaleeq Regular","Alvi Nastaleeq","Noto Nastaliq Urdu",Manrope,sans-serif}

/* Public site - LIGHT */
html[data-theme="light"] body.ss13-body{background:var(--v41-light-bg)!important;color:var(--v41-light-ink)!important}
html[data-theme="light"] :is(.ss13-about-short,.ss13-work,.ss15-depth-showcase,.ss15-accordion-wrap,.ss13-ranges,.ss13-about-story,.ss13-values,.ss13-location,.ss13-brand-list-section,.ss13-contact-page,.ss13-products-section,.ss13-related,.ss13-cart-page,.ss13-checkout-page){background:var(--v41-light-bg)!important;color:var(--v41-light-ink)!important}
html[data-theme="light"] :is(.ss13-product-card,.ss13-brand-card,.ss13-cart-row,.ss13-cart-summary,.ss13-checkout-card,.ss15-accordion-item,.ss15-depth-card,.ss13-value-card,.ss13-location-card){background:#fff!important;border-color:var(--v41-light-line)!important;color:var(--v41-light-ink)!important}
html[data-theme="light"] :is(.ss13-section-head h2,.ss15-accordion-head h2,.ss13-work-copy h3,.ss15-depth-slide h3,.ss15-accordion-copy h3){color:var(--v41-light-ink)!important}
html[data-theme="light"] :is(.ss13-section-head p,.ss15-accordion-head p,.ss13-work-copy p,.ss15-depth-slide p,.ss15-accordion-copy p){color:#647a93!important}

/* Public site - DARK */
html[data-theme="dark"] body.ss13-body{background:var(--v41-dark-bg)!important;color:var(--v41-dark-ink)!important}
html[data-theme="dark"] :is(.ss13-about-short,.ss13-work,.ss15-depth-showcase,.ss15-accordion-wrap,.ss13-ranges,.ss13-about-story,.ss13-values,.ss13-location,.ss13-brand-list-section,.ss13-contact-page,.ss13-products-section,.ss13-related,.ss13-cart-page,.ss13-checkout-page){background:var(--v41-dark-bg)!important;color:var(--v41-dark-ink)!important}
html[data-theme="dark"] :is(.ss13-product-card,.ss13-brand-card,.ss13-cart-row,.ss13-cart-summary,.ss13-checkout-card,.ss15-accordion-item,.ss15-depth-card,.ss13-value-card,.ss13-location-card){background:var(--v41-dark-card)!important;border-color:var(--v41-dark-line)!important;color:var(--v41-dark-ink)!important;box-shadow:none!important}
html[data-theme="dark"] :is(.ss13-section-head h2,.ss15-accordion-head h2,.ss13-work-copy h3,.ss15-depth-slide h3,.ss15-accordion-copy h3,.ss13-product-card h3,.ss13-brand-card h3){color:var(--v41-dark-ink)!important}
html[data-theme="dark"] :is(.ss13-section-head p,.ss15-accordion-head p,.ss13-work-copy p,.ss15-depth-slide p,.ss15-accordion-copy p,.ss13-product-card p,.ss13-brand-card p){color:var(--v41-dark-muted)!important}
html[data-theme="dark"] .ss15-depth-showcase{background:linear-gradient(180deg,#09192b,#07111f)!important}
html[data-theme="dark"] .ss15-depth-slide{background:#0d2035!important;border-color:#2a4059!important;color:#eef5ff!important}
html[data-theme="dark"] .ss15-accordion-panel{background:#0d2035!important;color:#eef5ff!important}

/* Admin/Studio - authoritative light surfaces. */
html[data-theme="light"] :is(.admin-main,.admin-content){background:var(--v41-light-bg)!important;color:var(--v41-light-ink)!important}
html[data-theme="light"] :is(.panel,.form-panel,.admin-card,.v9-dashboard-panel,.metric-card,.account-summary-card,.invoice-edit-summary-card,.invoice-info-card,.invoice-money-card,.pos-catalog,.pos-cart,.pos-sale-date,.pos-account-strip,.pos-pack-batch,.ob-create-section,.ss14-order-card,.ss14-message-card,.return-pos-panel,.purchase-panel,.purchase-summary,.table-card,.summary-card){background:#fff!important;border-color:var(--v41-light-line)!important;color:var(--v41-light-ink)!important}
html[data-theme="light"] :is(.panel,.form-panel,.account-summary-card,.v9-dashboard-panel,.invoice-edit-summary-card,.pos-catalog,.pos-cart) :is(h1,h2,h3,h4,h5,h6,strong,label){color:var(--v41-light-ink)!important}
html[data-theme="light"] :is(.panel,.form-panel,.account-summary-card,.v9-dashboard-panel,.invoice-edit-summary-card,.pos-catalog,.pos-cart) :is(p,small,.field-help,.text-muted){color:var(--v41-light-muted)!important}

/* Admin/Studio - DARK: no white forms/cards, no dark ink on dark surface. */
html[data-theme="dark"] .admin-body,
html[data-theme="dark"] .admin-main,
html[data-theme="dark"] .admin-content{background:var(--v41-dark-bg)!important;color:var(--v41-dark-ink)!important}
html[data-theme="dark"] .admin-header{background:#091827!important;border-color:var(--v41-dark-line)!important;color:var(--v41-dark-ink)!important}
html[data-theme="dark"] .admin-sidebar{background:#061321!important;border-color:#1d3045!important}
html[data-theme="dark"] :is(.page-heading,.panel,.form-panel,.admin-card,.v9-dashboard-panel,.metric-card,.account-summary-card,.invoice-edit-summary-card,.invoice-info-card,.invoice-money-card,.pos-catalog,.pos-cart,.pos-sale-date,.pos-account-strip,.pos-pack-batch,.ob-create-section,.ss14-order-card,.ss14-message-card,.return-pos-panel,.purchase-panel,.purchase-summary,.table-card,.summary-card,.after-payment-box,.credit-refund-form){
  background:var(--v41-dark-card)!important;border-color:var(--v41-dark-line)!important;color:var(--v41-dark-ink)!important;box-shadow:none!important
}
html[data-theme="dark"] :is(.page-heading,.panel,.form-panel,.admin-card,.v9-dashboard-panel,.metric-card,.account-summary-card,.invoice-edit-summary-card,.invoice-info-card,.invoice-money-card,.pos-catalog,.pos-cart,.ob-create-section,.ss14-order-card,.ss14-message-card) :is(h1,h2,h3,h4,h5,h6,strong,b,label,.panel-title){color:var(--v41-dark-ink)!important}
html[data-theme="dark"] :is(.page-heading,.panel,.form-panel,.admin-card,.v9-dashboard-panel,.metric-card,.account-summary-card,.invoice-edit-summary-card,.invoice-info-card,.invoice-money-card,.pos-catalog,.pos-cart,.ob-create-section,.ss14-order-card,.ss14-message-card) :is(p,small,.field-help,.text-muted,.section-kicker){color:var(--v41-dark-muted)!important}
html[data-theme="dark"] :is(.admin-table,.v9-admin-table){background:var(--v41-dark-card)!important;color:var(--v41-dark-ink)!important}
html[data-theme="dark"] :is(.admin-table,.v9-admin-table) th{background:#12263d!important;color:#aebed0!important;border-color:var(--v41-dark-line)!important}
html[data-theme="dark"] :is(.admin-table,.v9-admin-table) td{background:var(--v41-dark-card)!important;color:var(--v41-dark-ink)!important;border-color:#20364d!important}
html[data-theme="dark"] :is(.admin-table,.v9-admin-table) tbody tr:hover td{background:#132941!important}
html[data-theme="dark"] :is(input,select,textarea,.form-control,.form-select,.readonly-input,.filter-input,.search-control){background:#091827!important;color:#eef5ff!important;border-color:#36506b!important;box-shadow:none!important}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:#7890aa!important;opacity:1}
html[data-theme="dark"] select option{background:#091827;color:#eef5ff}
html[data-theme="dark"] :is(.btn-secondary-admin,.table-action,.invoice-tool-btn){background:#10243a!important;color:#eaf2ff!important;border-color:#35506e!important}
html[data-theme="dark"] :is(.btn-secondary-admin,.table-action,.invoice-tool-btn):hover{background:#17304b!important;border-color:#5680ad!important}
html[data-theme="dark"] .account-summary-card.due{background:#28151c!important;border-color:#7a3446!important}html[data-theme="dark"] .account-summary-card.due strong{color:#ff6079!important}
html[data-theme="dark"] .account-summary-card.advance{background:#0a2a22!important;border-color:#23664f!important}html[data-theme="dark"] .account-summary-card.advance strong{color:#56dea8!important}
html[data-theme="dark"] .pos-product{background:#102238!important;border-color:#2b435d!important}html[data-theme="dark"] .pos-product-copy strong{color:#edf4ff!important}html[data-theme="dark"] .pos-product-copy small,html[data-theme="dark"] .pos-product-copy em{color:#96aac0!important}
html[data-theme="dark"] .pos-product-art{background:linear-gradient(145deg,#13283f,#0b1c2e)!important}
html[data-theme="dark"] .category-chips button,html[data-theme="dark"] .payment-methods button{background:#102238!important;color:#b8c7d8!important;border-color:#2b435d!important}
html[data-theme="dark"] .category-chips button.active,html[data-theme="dark"] .payment-methods button.active{background:#1769ff!important;color:#fff!important;border-color:#1769ff!important}
html[data-theme="dark"] .pos-search{background:#091827!important;border-color:#36506b!important;color:#eef5ff!important}
html[data-theme="dark"] .pos-cart-row{border-color:#263a51!important}html[data-theme="dark"] .pos-totals .grand{border-color:#36506b!important;background:#10243a!important}
html[data-theme="dark"] .alert-success{background:#0b2d25!important;border-color:#246b55!important;color:#c8ffe9!important}
html[data-theme="dark"] .alert-warning{background:#352810!important;border-color:#806622!important;color:#ffeab0!important}

/* Login gets a complete, readable light and dark treatment. */
html[data-theme="light"] .studio-login-body{background:#eef5ff!important;color:#102944!important}
html[data-theme="light"] .v11-login-card-real{background:#fff!important;border-color:#dce6f1!important;color:#102944!important}
html[data-theme="light"] .v11-login-input.real{background:#f8fbff!important;border-color:#cbd9e7!important}
html[data-theme="light"] .v11-login-input.real input{background:transparent!important;color:#102944!important}
html[data-theme="dark"] .studio-login-body{background:#06111f!important;color:#edf5ff!important}
html[data-theme="dark"] .v11-login-page{background:radial-gradient(circle at 15% 10%,#123a68 0,transparent 32%),#06111f!important}
html[data-theme="dark"] .v11-login-card-real{background:#0e1e30!important;border:1px solid #29425e!important;color:#edf5ff!important;box-shadow:0 26px 70px rgba(0,0,0,.35)!important}
html[data-theme="dark"] .v11-login-card-head :is(strong,span){color:#edf5ff!important}html[data-theme="dark"] .v11-login-card-head small{color:#9eb1c6!important}
html[data-theme="dark"] .v11-login-input.real{background:#091827!important;border-color:#36506b!important}
html[data-theme="dark"] .v11-login-input.real input{background:transparent!important;color:#edf5ff!important}
html[data-theme="dark"] .v11-login-input.real input::placeholder{color:#7890aa!important}
html[data-theme="dark"] .v11-login-input.real :is(i,button){color:#8eb8ff!important}
html[data-theme="dark"] .v11-login-row{color:#9eb1c6!important}.v11-login-row a{color:#8eb8ff!important}
html[data-theme="dark"] .v11-login-modules.real>div{background:#10243a!important;border-color:#304b68!important;color:#dceaff!important}
html[data-theme="dark"] .ui-pref-floating{background:rgba(8,21,37,.96)!important;border-color:#304b68!important}html[data-theme="dark"] .ui-pref-btn{background:#10243a!important;color:#e8f2ff!important;border-color:#35506e!important}
html[data-theme="light"] .ui-pref-floating{background:rgba(255,255,255,.96)!important}.ui-pref-btn{background:#fff!important;color:#17314d!important;border-color:#d4dfeb!important}

/* Print is always paper-white, regardless of screen theme. */
@media print{
  html,body{background:#fff!important;color:#111!important;color-scheme:light!important}
  .invoice-sheet,.invoice-document,.receipt,.thermal-receipt,.thermal-return,.sheet{background:#fff!important;color:#111!important}
}
/* V41 dashboard/details hard overrides for legacy V9 !important rules. */
html[data-theme="dark"] :is(.v9-kpi-grid article,.v9-operating-list>div,.v9-stock-list>div,.v9-chart-wrap,.v9-dashboard-panel .panel-body,.v9-business-health>div,.dashboard-grid>section,.dashboard-grid>div){background:var(--v41-dark-card)!important;border-color:var(--v41-dark-line)!important;color:var(--v41-dark-ink)!important}
html[data-theme="dark"] :is(.v9-kpi-grid article,.v9-operating-list>div,.v9-stock-list>div,.v9-dashboard-panel,.dashboard-grid) :is(strong,h2,h3,h4){color:var(--v41-dark-ink)!important}
html[data-theme="dark"] :is(.v9-kpi-grid article,.v9-operating-list>div,.v9-stock-list>div,.v9-dashboard-panel,.dashboard-grid) :is(small,p,span:not(.status-pill)){color:var(--v41-dark-muted)!important}
html[data-theme="dark"] .v9-operating-list i{background:#15314d!important;color:#7eb3ff!important}
html[data-theme="dark"] .v9-stock-list>div{border-top-color:#20364d!important}
html[data-theme="light"] :is(.v9-kpi-grid article,.v9-operating-list>div,.v9-chart-wrap,.v9-dashboard-panel,.dashboard-grid>section,.dashboard-grid>div){background:#fff!important;border-color:var(--v41-light-line)!important;color:var(--v41-light-ink)!important}

/* Keep account/editor fields readable in both themes. */
html[data-theme="dark"] :is(.account-action-grid,.invoice-edit-form,.return-editor,.purchase-form) .field label{color:#a9bbce!important}
html[data-theme="dark"] .account-action-grid .after-payment-box{background:#102a43!important;color:#eaf2ff!important}
html[data-theme="dark"] .account-action-grid .after-payment-box strong{color:#fff!important}
html[data-theme="dark"] .admin-header :is(.v9-admin-title h1,.user-chip strong){color:#eef5ff!important}
html[data-theme="dark"] .admin-header :is(.v9-admin-title span,.user-chip small){color:#91a6bd!important}
html[data-theme="dark"] .v9-admin-site-link{background:#10243a!important;border-color:#35506e!important;color:#dceaff!important}
html[data-theme="light"] .admin-header :is(.v9-admin-title h1,.user-chip strong){color:#0b2341!important}
html[data-theme="light"] .admin-header :is(.v9-admin-title span,.user-chip small){color:#71849a!important}

/* =========================================================
   V42 STUDIO THEME + POS LAYOUT POLISH
   Final authoritative layer loaded after all legacy themes.
   ========================================================= */
:root{
  --v42-dark-bg:#07111f;--v42-dark-shell:#081726;--v42-dark-card:#0d1d2e;--v42-dark-card2:#10243a;--v42-dark-line:#29425c;--v42-dark-text:#edf5ff;--v42-dark-muted:#9fb2c8;
  --v42-light-bg:#f3f7fb;--v42-light-card:#fff;--v42-light-card2:#f8fbff;--v42-light-line:#dbe5ef;--v42-light-text:#0b2341;--v42-light-muted:#6f8298;
}

/* Studio shell */
html[data-theme="dark"] body.admin-body{background:var(--v42-dark-bg)!important;color:var(--v42-dark-text)!important}
html[data-theme="dark"] :is(.admin-main,.admin-content){background:var(--v42-dark-bg)!important;color:var(--v42-dark-text)!important}
html[data-theme="dark"] .admin-header{background:#081625!important;border-bottom:1px solid var(--v42-dark-line)!important}
html[data-theme="dark"] .admin-sidebar{background:#061321!important;border-right:1px solid #1c3148!important}
html[data-theme="dark"] .admin-sidebar :is(.sidebar-link,.sidebar-section-label,.workspace-card,.sidebar-footer a){color:#b7c7d9!important}
html[data-theme="dark"] .admin-sidebar .sidebar-link:hover{background:#0d2238!important;color:#fff!important}
html[data-theme="dark"] .admin-sidebar .sidebar-link.active{background:#103054!important;color:#fff!important;border-color:#1769ff!important}
html[data-theme="dark"] .admin-sidebar .sidebar-link :is(i,span){color:inherit!important}
html[data-theme="dark"] .workspace-card{background:#0a1d30!important;border-color:#213c57!important}

html[data-theme="light"] body.admin-body{background:var(--v42-light-bg)!important;color:var(--v42-light-text)!important}
html[data-theme="light"] :is(.admin-main,.admin-content){background:var(--v42-light-bg)!important;color:var(--v42-light-text)!important}
html[data-theme="light"] .admin-header{background:#fff!important;border-bottom:1px solid var(--v42-light-line)!important}

/* All admin cards/panels and dashboard surfaces. */
html[data-theme="dark"] :is(
  .panel,.form-panel,.page-heading,.admin-card,.metric-card,.summary-card,.table-card,
  .v9-dashboard-panel,.v9-kpi-grid article,.v9-chart-wrap,.v9-operating-list>div,.v9-stock-list>div,.v9-manufacturing-note,
  .dash-extra-kpis a,.dash-raw-alert,.ss14-dashboard-section,.ss14-order-card,.ss14-message-card,.ss14-empty-admin,
  .ob-metrics>div,.ob-search-card,.ob-list-card,.ob-search,.ob-empty,
  .account-summary-card,.account-integrity-panel,.account-action-grid>.panel,.after-payment-box,.credit-refund-form,
  .pos-catalog,.pos-cart,.pos-head,.pos-sale-date,.pos-account-strip,.pos-referrer-builder,.pos-walkin-customer,.empty-cardboard-box,.credit-settlement-box,
  .return-pos-panel,.return-catalog,.return-cart-panel,.purchase-panel,.purchase-summary,.purchase-card,.raw-card
){background:var(--v42-dark-card)!important;color:var(--v42-dark-text)!important;border-color:var(--v42-dark-line)!important;box-shadow:none!important}
html[data-theme="dark"] :is(.v9-chart-wrap,.ob-search,.after-payment-box,.pos-sale-date,.pos-account-strip,.pos-referrer-builder,.credit-settlement-box){background:var(--v42-dark-card2)!important}
html[data-theme="dark"] :is(.panel,.form-panel,.page-heading,.v9-dashboard-panel,.ob-list-card,.ob-search-card,.account-summary-card,.pos-cart,.pos-catalog,.return-pos-panel,.purchase-panel) :is(h1,h2,h3,h4,h5,h6,strong,b,label){color:var(--v42-dark-text)!important}
html[data-theme="dark"] :is(.panel,.form-panel,.page-heading,.v9-dashboard-panel,.ob-list-card,.ob-search-card,.account-summary-card,.pos-cart,.pos-catalog,.return-pos-panel,.purchase-panel) :is(p,small,.field-help,.text-muted,.section-kicker,span:not(.badge):not(.status-pill):not(.ob-status)){color:var(--v42-dark-muted)!important}
html[data-theme="dark"] :is(.admin-table,.v9-admin-table,.ob-table){background:var(--v42-dark-card)!important;color:var(--v42-dark-text)!important}
html[data-theme="dark"] :is(.admin-table,.v9-admin-table,.ob-table) thead th{background:#10243a!important;color:#b8c9dc!important;border-color:var(--v42-dark-line)!important}
html[data-theme="dark"] :is(.admin-table,.v9-admin-table,.ob-table) tbody td{background:var(--v42-dark-card)!important;color:var(--v42-dark-text)!important;border-color:#21384f!important}
html[data-theme="dark"] :is(.admin-table,.v9-admin-table,.ob-table) tbody tr:hover td{background:#122940!important}
html[data-theme="dark"] :is(.ob-order-link,.invoice-link){color:#dbeaff!important}html[data-theme="dark"] .ob-order-link small{color:#91a7bd!important}
html[data-theme="dark"] .dash-raw-alert>div:last-child span{background:#14283d!important;border-color:#35506b!important;color:#d8e6f7!important}
html[data-theme="dark"] .ss14-dashboard-section-head :is(h2,p,span){color:var(--v42-dark-text)!important}

html[data-theme="light"] :is(
  .panel,.form-panel,.page-heading,.admin-card,.metric-card,.summary-card,.table-card,
  .v9-dashboard-panel,.v9-kpi-grid article,.v9-chart-wrap,.v9-operating-list>div,.v9-stock-list>div,.v9-manufacturing-note,
  .dash-extra-kpis a,.ss14-dashboard-section,.ss14-order-card,.ss14-message-card,
  .ob-metrics>div,.ob-search-card,.ob-list-card,.ob-search,
  .account-summary-card,.account-integrity-panel,.account-action-grid>.panel,.after-payment-box,
  .pos-catalog,.pos-cart,.pos-head,.pos-sale-date,.pos-account-strip,.pos-referrer-builder,.pos-walkin-customer,.empty-cardboard-box,.credit-settlement-box,
  .return-pos-panel,.return-catalog,.return-cart-panel,.purchase-panel,.purchase-summary,.purchase-card,.raw-card
){background:#fff!important;color:var(--v42-light-text)!important;border-color:var(--v42-light-line)!important}
html[data-theme="light"] :is(.ob-search,.pos-account-strip,.pos-referrer-builder,.after-payment-box,.credit-settlement-box){background:var(--v42-light-card2)!important}

/* Forms are always readable in the selected theme. */
html[data-theme="dark"] :is(input,select,textarea,.form-control,.form-select,.filter-input,.search-control){background:#081827!important;color:#edf5ff!important;border-color:#35516e!important}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:#8298ae!important}
html[data-theme="dark"] select option{background:#081827!important;color:#edf5ff!important}
html[data-theme="light"] :is(input,select,textarea,.form-control,.form-select,.filter-input,.search-control){background:#fff!important;color:#102945!important;border-color:#ccd9e6!important}

/* POS: consistent account/referrer blocks instead of uneven buttons/fields. */
.pos-account-strip.pos-account-edit{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important;padding:12px!important;align-items:stretch!important}
.pos-account-title{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:10px;padding-bottom:7px;border-bottom:1px solid #dce6f0}
.pos-account-title strong{font-size:12px}.pos-account-title .section-kicker{margin:0}
.account-edit-field{min-width:0;padding:10px;border:1px solid #dce6f0;border-radius:11px;background:rgba(255,255,255,.55)}
.account-edit-field input{min-height:42px;font-size:15px!important;font-weight:900!important}
.account-save-btn{grid-column:1/-1;min-height:42px!important;display:flex;align-items:center;justify-content:center;gap:7px!important}
.pos-referrer-builder{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important;align-items:stretch!important}
.pos-referrer-builder>.pos-referrer-title{grid-column:1/-1!important}.pos-referrer-builder input{width:100%!important;min-height:42px!important}
.pos-referrer-builder button{width:100%!important;min-height:42px!important;height:auto!important;padding:8px 10px!important;white-space:normal!important;line-height:1.2!important}
.pos-referrer-builder small{grid-column:1/-1!important;line-height:1.5}
.pos-line-date{display:grid;grid-template-columns:100px minmax(0,1fr);gap:6px;align-items:end;margin-top:7px}.pos-line-date label{grid-column:1/-1;font-size:9px;font-weight:850;color:#687d93}.pos-line-date input{width:100%;height:34px;border:1px solid #cfdae6;border-radius:8px;padding:6px 7px}.pos-line-date button{height:34px;border:1px solid #cfe0f4;border-radius:8px;background:#fff;color:#075fc7;font-weight:800;font-size:9px;padding:0 8px}
html[data-theme="dark"] .account-edit-field{background:#0a1a2b!important;border-color:#2c465f!important}html[data-theme="dark"] .pos-account-title{border-color:#2b4259!important}
html[data-theme="dark"] :is(.account-save-btn,.pos-referrer-builder button,.pos-line-date button,.pos-pack-batch button,.qty-controls button){background:#10263d!important;color:#dceaff!important;border-color:#385570!important}
html[data-theme="dark"] .pos-line-date input{background:#081827!important;color:#eef5ff!important;border-color:#35516e!important}
html[data-theme="dark"] .pos-line-date label{color:#9fb2c8!important}
html[data-theme="dark"] .pos-product-art{background:#13283f!important}
html[data-theme="dark"] .pos-product-copy :is(strong,b){color:#eff6ff!important}
html[data-theme="dark"] .pos-product-copy :is(small,em){color:#9eb1c6!important}
html[data-theme="dark"] .pos-line-referrer{background:#15304d!important;color:#9cc3ff!important}
html[data-theme="dark"] .pos-totals .grand,html[data-theme="dark"] .complete-payable{background:#10243a!important;border-color:#385570!important}
html[data-theme="dark"] .payment-methods button{background:#102238!important;color:#d0dceb!important;border-color:#314d69!important}
html[data-theme="dark"] .payment-methods button.active{background:#1769ff!important;color:#fff!important;border-color:#1769ff!important}

/* Customer account + Order Book dark mode. */
html[data-theme="dark"] .account-summary-card.due{background:#2a171d!important;border-color:#743548!important}html[data-theme="dark"] .account-summary-card.due strong{color:#ff637c!important}
html[data-theme="dark"] .account-summary-card.advance{background:#0a2a22!important;border-color:#286b53!important}html[data-theme="dark"] .account-summary-card.advance strong{color:#55dda7!important}
html[data-theme="dark"] .advance-panel{background:var(--v42-dark-card)!important;border-color:var(--v42-dark-line)!important}
html[data-theme="dark"] .ob-count{background:#143055!important;color:#8ab9ff!important}
html[data-theme="dark"] .ob-status.pending{background:#3a3016!important;color:#ffdc75!important}.ob-status.ready{background:#12315a!important;color:#88baff!important}.ob-status.completed{background:#113326!important;color:#72dfaa!important}

/* Urdu: keep geometry LTR, but make static copy readable and complete. */
html[data-language="ur"] :is(.admin-content,.admin-header,.admin-sidebar,.pos-cart,.pos-catalog,.panel,.page-heading){font-family:"SSTRADERS Alvi Nastaleeq","Alvi Nastaleeq Regular","Alvi Nastaleeq","Noto Nastaliq Urdu","Noto Sans Arabic",Manrope,sans-serif}
html[data-language="ur"] :is(.admin-content h1,.admin-content h2,.admin-content h3,.admin-content h4,.pos-cart h3,.page-heading h2){line-height:1.55!important;letter-spacing:0!important}
html[data-language="ur"] :is(.section-kicker,.field label,.account-edit-field span,.pos-product-copy strong,.sidebar-link,.sidebar-section-label){line-height:1.55!important}
html[data-language="ur"] :is(.pos-account-title,.account-edit-field,.pos-referrer-title,.account-summary-card,.panel-head>div,.page-heading>div){text-align:right!important}
html[data-language="ur"] :is(input[type=number],input[type=date],input[type=datetime-local],.money,.num,.sku){font-family:Manrope,Arial,sans-serif!important;direction:ltr!important;text-align:left!important}

/* Responsive POS controls remain ordered on narrow cart width. */
@media(max-width:1280px){.pos-account-strip.pos-account-edit{grid-template-columns:1fr!important}.pos-account-title,.account-save-btn{grid-column:1!important}}
@media(max-width:700px){.pos-line-date{grid-template-columns:1fr}.pos-referrer-builder{grid-template-columns:1fr!important}.pos-referrer-builder>*{grid-column:1!important}}

/* ===== V42.1 ADMIN THEME CONSISTENCY ===== */
/* A complete admin colour pass. View-local white backgrounds must not break dark mode. */
html[data-theme="dark"] body.admin-body,
html[data-theme="dark"] .admin-shell,
html[data-theme="dark"] .admin-main,
html[data-theme="dark"] .admin-content{background:#071421!important;color:#eaf2fb!important}
html[data-theme="dark"] .admin-header{background:#091827!important;border-color:#263d53!important;color:#eaf2fb!important;box-shadow:0 1px 0 rgba(255,255,255,.03)!important}
html[data-theme="dark"] .admin-sidebar{background:#061522!important;border-color:#21384d!important}
html[data-theme="dark"] .admin-content :is(h1,h2,h3,h4,h5,h6){color:#f4f8fd!important}
html[data-theme="dark"] .admin-content :is(p,small,.field-help,.page-heading p,.panel-head p,.ob-list-head>span){color:#9fb0c3!important}
html[data-theme="dark"] .admin-content :is(label,.section-kicker,.nav-kicker){color:#8fb6e7!important}
html[data-theme="dark"] :is(.panel,.form-panel,.metric-card,.account-summary-card,.ob-metrics>div,.ob-search-card,.ob-list-card,.purchase-card,.purchase-panel,.purchase-summary,.return-pos-panel,.return-catalog,.return-cart-panel,.raw-card,.inventory-card,.admin-card,.table-card,.ss14-dashboard-section,.ss14-order-card,.ss14-message-card){background:#0c1d2d!important;border-color:#294158!important;box-shadow:0 12px 34px rgba(0,0,0,.16)!important}
html[data-theme="dark"] :is(.admin-table,.admin-table tbody,.admin-table tr,.admin-table td,.admin-table th){background:transparent!important}
html[data-theme="dark"] .admin-table thead{background:#10263a!important}
html[data-theme="dark"] .admin-table th{color:#9bb4cf!important;border-color:#2a4259!important}
html[data-theme="dark"] .admin-table td{color:#e3edf7!important;border-color:#22394f!important}
html[data-theme="dark"] .admin-table tbody tr:hover{background:#10253a!important}
html[data-theme="dark"] :is(.btn-secondary-admin,.table-action,.date-pill,.badge-soft){background:#10243a!important;color:#e6f0fb!important;border-color:#35516c!important}
html[data-theme="dark"] :is(.btn-secondary-admin,.table-action):hover{background:#15304b!important;color:#fff!important;border-color:#4a6a89!important}
html[data-theme="dark"] :is(.toolbar,.heading-actions,.account-controls-toggle){color:#e6f0fb!important}
html[data-theme="dark"] .text-danger{color:#ff687d!important}html[data-theme="dark"] .text-success{color:#50dda2!important}html[data-theme="dark"] .text-primary{color:#79b2ff!important}
html[data-theme="dark"] .alert-success{background:#0f3429!important;color:#b7f4d8!important;border-color:#28684f!important}html[data-theme="dark"] .alert-danger{background:#3a1b23!important;color:#ffd0d8!important;border-color:#784052!important}

/* Customer account: no white islands in dark theme. */
html[data-theme="dark"] .account-summary-card{background:#0c1d2d!important;border-color:#294158!important}
html[data-theme="dark"] .account-summary-card :is(span,small){color:#9fb3c9!important}html[data-theme="dark"] .account-summary-card strong{color:#f2f7fc!important}
html[data-theme="dark"] .account-action-grid>.panel{background:#0c1d2d!important;border-color:#294158!important}
html[data-theme="dark"] .advance-panel{background:#0c1d2d!important;border-color:#294158!important}
html[data-theme="dark"] .after-payment-box{background:#102943!important;color:#dcecff!important}
html[data-theme="dark"] .account-integrity-panel{background:#0c1d2d!important;border-color:#294158!important}

/* POS right rail: stable compact hierarchy in both languages. */
.pos-cart .pos-account-strip.pos-account-edit{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:10px!important;border-radius:14px!important}
.pos-account-title{min-width:0}.pos-account-title strong{font-size:12px!important;line-height:1.35!important}.pos-account-title .section-kicker{font-size:8px!important}
.account-edit-field{display:flex!important;flex-direction:column!important;gap:5px!important;min-width:0!important;padding:9px!important}
.account-edit-field>span{font-size:9px!important;font-weight:800!important;line-height:1.35!important;min-height:24px!important}.account-edit-field input{width:100%!important;min-width:0!important;height:40px!important;font-size:14px!important;padding:7px 8px!important}.account-edit-field small{font-size:8px!important;line-height:1.3!important}
.account-save-btn{grid-column:1/-1!important;width:100%!important;min-height:38px!important;font-size:10px!important}
.pos-referrer-builder{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:10px!important;border-radius:14px!important}
.pos-referrer-title{grid-column:1/-1!important;display:grid!important;gap:5px!important;min-width:0!important}.pos-referrer-title label{font-size:9px!important;line-height:1.35!important}.pos-referrer-title input{height:40px!important;min-width:0!important;font-size:12px!important}
.pos-referrer-builder button{min-height:38px!important;font-size:10px!important;font-weight:850!important;line-height:1.25!important;padding:7px 8px!important}.pos-referrer-builder small{grid-column:1/-1!important;font-size:8px!important;line-height:1.4!important;margin:0!important}
html[data-language="ur"] .pos-cart :is(.pos-account-title,.account-edit-field,.pos-referrer-title,.pos-referrer-builder small){text-align:right!important}html[data-language="ur"] .pos-cart :is(.account-edit-field>span,.pos-referrer-title label){font-size:10px!important}
@media(max-width:1150px){.pos-cart .pos-account-strip.pos-account-edit,.pos-referrer-builder{grid-template-columns:1fr!important}.account-save-btn,.pos-referrer-title,.pos-referrer-builder small{grid-column:1!important}}

/* Keep images consistent while old DB rows are transparently normalized to .webp by JS. */
.pos-product-art img,.product-thumb img,.ss13-product-image img,.ss13-cart-thumb img{display:block;width:100%;height:100%;object-fit:contain}

/* =========================================================
   V43 APPEARANCE POLISH
   Keeps layout order stable while giving light/dark themes
   complete, deliberate surfaces across the public website.
   ========================================================= */
:root{
  --v43-light-bg:#f4f8fc;
  --v43-light-surface:#ffffff;
  --v43-light-surface2:#eef4fb;
  --v43-light-line:#d9e5f1;
  --v43-light-text:#0b2342;
  --v43-light-muted:#667b95;
  --v43-dark-bg:#06111f;
  --v43-dark-surface:#0d1d2f;
  --v43-dark-surface2:#12263b;
  --v43-dark-line:#294159;
  --v43-dark-text:#eef6ff;
  --v43-dark-muted:#9fb2c8;
}
html[data-language="ur"] body{font-family:Manrope,"SSTRADERS Alvi Nastaleeq","Alvi Nastaleeq Regular","Alvi Nastaleeq","Noto Nastaliq Urdu","Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif!important}
html[data-language="ur"] :is(h1,h2,h3,h4,h5,h6,.ss13-nav-links,.ss13-btn,.ss13-quote,.ss13-studio,.ss13-brand-copy,.ss13-contact-info,.ss13-form-head,.ss13-footer){font-family:Manrope,"SSTRADERS Alvi Nastaleeq","Alvi Nastaleeq Regular","Alvi Nastaleeq","Noto Nastaliq Urdu","Noto Sans Arabic",sans-serif!important}
html[data-language="ur"] :is([dir="rtl"],.urdu-only){font-family:"SSTRADERS Alvi Nastaleeq","Alvi Nastaleeq Regular","Alvi Nastaleeq","Noto Nastaliq Urdu",Manrope,sans-serif!important}

/* Header/nav: identical geometry in both languages. */
.ss13-navbar{min-height:82px!important}
.ss13-nav-inner{gap:24px!important}
.ss13-nav-links{gap:6px!important}
.ss13-nav-links .nav-link{padding:10px 12px!important;border-radius:10px!important;font-weight:800!important}
.ss13-nav-actions{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:nowrap!important}
.ss13-brand img{object-fit:contain!important}
html[data-language="ur"] .ss13-nav-links .nav-link{font-size:.86rem!important;line-height:1.7!important}

/* Light public theme */
html[data-theme="light"] body.ss13-body{background:var(--v43-light-bg)!important;color:var(--v43-light-text)!important}
html[data-theme="light"] :is(.ss13-contact-page,.ss13-brand-list-section,.ss13-products-section,.ss13-related,.ss13-cart-page,.ss13-checkout-page,.ss13-detail-section,.ss13-about-story,.ss13-values,.ss13-location,.ss13-ranges){background:var(--v43-light-bg)!important;color:var(--v43-light-text)!important}
html[data-theme="light"] :is(.ss13-contact-form,.ss13-contact-address,.ss13-brand-cta,.ss13-filter-bar,.ss13-product-card,.ss13-cart-row,.ss13-cart-summary,.ss13-checkout-form,.ss13-success-card){background:var(--v43-light-surface)!important;border-color:var(--v43-light-line)!important;color:var(--v43-light-text)!important}
html[data-theme="light"] :is(.ss13-search,.ss13-filter-bar .form-select,.ss13-contact-form .form-control,.ss13-contact-form .form-select,.ss13-checkout-form .form-control,.ss13-checkout-form .form-select,.ss13-cart-qty input,.ss13-detail-cart input){background:#fbfdff!important;color:var(--v43-light-text)!important;border-color:var(--v43-light-line)!important}
html[data-theme="light"] :is(.ss13-contact-info strong,.ss13-contact-address strong,.ss13-form-head h2,.ss13-brand-cta h2,.ss13-cart-summary h2,.ss13-cart-copy strong,.ss13-detail-copy h1,.ss13-detail-description h3,.ss13-product-body h3 a){color:var(--v43-light-text)!important}
html[data-theme="light"] :is(.ss13-contact-info p,.ss13-contact-address span,.ss13-form-head p,.ss13-cart-copy span,.ss13-detail-copy>p,.ss13-detail-description p,.ss13-product-meta,.ss-tax-note){color:var(--v43-light-muted)!important}
html[data-theme="light"] .ss13-footer{background:#edf4fb!important;color:var(--v43-light-text)!important;border-top:1px solid var(--v43-light-line)!important}
html[data-theme="light"] .ss13-footer-paint{opacity:.055!important}
html[data-theme="light"] .ss15-footer-ticker{border-color:#d5e1ee!important}
html[data-theme="light"] .ss15-footer-track span{color:#657b94!important}
html[data-theme="light"] .ss13-footer :is(.ss13-footer-brand p,.ss13-footer-col p,.ss13-footer-bottom,.ss15-footer-credit-brand){color:#61758e!important}
html[data-theme="light"] .ss13-footer :is(.ss13-footer-col a,.ss13-footer-col a strong,.ss15-footer-credit-contact a){color:#123a67!important}

/* Dark public theme */
html[data-theme="dark"] body.ss13-body{background:var(--v43-dark-bg)!important;color:var(--v43-dark-text)!important}
html[data-theme="dark"] :is(.ss13-contact-page,.ss13-brand-list-section,.ss13-products-section,.ss13-related,.ss13-cart-page,.ss13-checkout-page,.ss13-detail-section,.ss13-about-story,.ss13-values,.ss13-location,.ss13-ranges){background:var(--v43-dark-bg)!important;color:var(--v43-dark-text)!important}
html[data-theme="dark"] :is(.ss13-contact-form,.ss13-contact-address,.ss13-brand-cta,.ss13-filter-bar,.ss13-product-card,.ss13-cart-row,.ss13-cart-summary,.ss13-checkout-form,.ss13-success-card){background:var(--v43-dark-surface)!important;border-color:var(--v43-dark-line)!important;color:var(--v43-dark-text)!important;box-shadow:0 18px 45px rgba(0,0,0,.22)!important}
html[data-theme="dark"] :is(.ss13-search,.ss13-filter-bar .form-select,.ss13-contact-form .form-control,.ss13-contact-form .form-select,.ss13-checkout-form .form-control,.ss13-checkout-form .form-select,.ss13-cart-qty input,.ss13-detail-cart input){background:#081a2c!important;color:var(--v43-dark-text)!important;border-color:#35516d!important}
html[data-theme="dark"] :is(.ss13-search input,.ss13-filter-bar select,.ss13-contact-form input,.ss13-contact-form textarea,.ss13-checkout-form input,.ss13-checkout-form textarea){color:var(--v43-dark-text)!important}
html[data-theme="dark"] :is(.ss13-search input,.ss13-contact-form input,.ss13-contact-form textarea)::placeholder{color:#7f95ad!important;opacity:1!important}
html[data-theme="dark"] :is(.ss13-contact-info strong,.ss13-contact-address strong,.ss13-form-head h2,.ss13-brand-cta h2,.ss13-cart-summary h2,.ss13-cart-copy strong,.ss13-detail-copy h1,.ss13-detail-description h3,.ss13-product-body h3 a,.ss13-results-head strong){color:var(--v43-dark-text)!important}
html[data-theme="dark"] :is(.ss13-contact-info small,.ss13-contact-address span,.ss13-form-head p,.ss13-cart-copy span,.ss13-detail-copy>p,.ss13-detail-description p,.ss13-product-meta,.ss-tax-note,.ss13-results-head span){color:var(--v43-dark-muted)!important}
html[data-theme="dark"] .ss13-contact-info>a{color:var(--v43-dark-text)!important;border-color:var(--v43-dark-line)!important}
html[data-theme="dark"] .ss13-contact-icon{background:#132b47!important}
html[data-theme="dark"] .ss13-contact-icon.red{background:#3b1722!important}
html[data-theme="dark"] .ss13-product-image{background:#dce6f1!important}
html[data-theme="dark"] .ss13-product-placeholder{background:linear-gradient(180deg,#eaf0f7,#dbe5ef)!important}
html[data-theme="dark"] .ss13-product-placeholder>small{color:#153451!important}
html[data-theme="dark"] .ss13-detail-visual{background:#dce6f1!important}
html[data-theme="dark"] .ss13-detail-specs>div{background:var(--v43-dark-surface2)!important;border-color:var(--v43-dark-line)!important}
html[data-theme="dark"] .ss13-detail-specs small{color:#86a0bc!important}
html[data-theme="dark"] .ss13-detail-specs strong{color:var(--v43-dark-text)!important}
html[data-theme="dark"] .ss13-colour-row strong{color:var(--v43-dark-text)!important}
html[data-theme="dark"] .ss13-cart-thumb{background:#e9eff6!important}
html[data-theme="dark"] .ss13-cart-summary>div{border-color:var(--v43-dark-line)!important}
html[data-theme="dark"] .ss13-cart-summary :is(span,strong){color:var(--v43-dark-text)!important}
html[data-theme="dark"] .ss13-cart-help{color:#9bc3ff!important}
html[data-theme="dark"] .ss13-footer{background:#040d18!important;border-top:1px solid #1e3248!important}
html[data-theme="dark"] .ss13-footer-paint{opacity:.10!important}
html[data-theme="dark"] .ss13-footer :is(.ss13-footer-col a,.ss13-footer-col a strong,.ss15-footer-credit-contact a){color:#eaf2ff!important}

/* Range cards must retain their photographic identities in both themes. */
.ss14-brand-card.enamel{background-image:url('/images/showcase/rainbow-explosion-white.webp')!important;background-size:cover!important;background-position:center!important}
.ss14-brand-card.spray{background-image:url('/images/showcase/glossy-paint-explosion.webp')!important;background-size:cover!important;background-position:center!important}
.ss14-brand-card.industrial{background-image:url('/images/showcase/hero-industrial-showcase.webp')!important;background-size:cover!important;background-position:center!important}
.ss14-brand-card.trade{background-image:url('/images/showcase/glossy-explosion-banner.webp')!important;background-size:cover!important;background-position:center!important}
.ss14-brand-card:after{background:linear-gradient(180deg,rgba(5,18,36,.05) 18%,rgba(5,18,36,.58) 100%)!important}
.ss14-brand-glass{background:linear-gradient(135deg,rgba(7,28,57,.88),rgba(19,69,128,.72))!important;border-color:rgba(255,255,255,.30)!important}
.ss14-brand-glass :is(h2,p,small){color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.25)!important}

/* Prevent broken product images from leaving a blank white slab. */
.ss43-img-fallback{display:none;width:100%;height:100%;place-items:center;background:linear-gradient(160deg,#eef5fc,#dfeaf5);color:#164a86;position:absolute;inset:0}
.ss43-img-fallback i{font-size:3rem}.ss43-img-fallback small{position:absolute;bottom:16px;left:18px;font-weight:800;color:#1c456d}
.ss13-product-image,.ss13-detail-visual,.ss13-cart-thumb{position:relative}
.ss13-cart-thumb .ss43-img-fallback i{font-size:1.5rem}.ss13-cart-thumb .ss43-img-fallback small{display:none}

/* Cart action layout: compact and deliberate. */
.ss13-cart-row{align-items:center!important}
.ss13-cart-row form button{min-height:36px;border-radius:10px!important}
.ss13-cart-qty{display:flex!important;gap:8px!important;align-items:center!important}
.ss13-cart-qty input{height:40px!important;border-radius:10px!important;border:1px solid var(--v43-light-line);padding:0 10px!important}

/* Product/detail polish */
.ss13-product-card{min-height:100%;display:flex;flex-direction:column}
.ss13-product-body{display:flex;flex-direction:column;flex:1}
.ss13-product-bottom{margin-top:auto!important;padding-top:16px}
.ss13-detail-copy{align-self:stretch;display:flex;flex-direction:column;justify-content:center}
.ss13-detail-price{margin-top:18px!important}

/* Contact layout balance */
.ss13-contact-grid{align-items:start!important}
.ss13-contact-form{min-height:100%}
.ss13-contact-form label{margin-bottom:7px!important}
.ss13-contact-form .form-control{min-height:48px!important}
.ss13-contact-form textarea.form-control{min-height:170px!important}

/* Light/dark button contrast */
html[data-theme="light"] .ui-pref-btn{background:#fff!important;color:#17314d!important;border-color:#d3dfeb!important}
html[data-theme="dark"] .ui-pref-btn{background:#10243a!important;color:#eef6ff!important;border-color:#35516d!important}
html[data-theme="dark"] :is(.ss13-quote,.ss13-studio){color:#fff!important}

@media(max-width:1199.98px){.ss13-nav-actions{flex-wrap:wrap!important}.ss13-navbar{min-height:auto!important}}
@media(max-width:767.98px){.ss13-nav-inner{gap:8px!important}.ss13-cart-row{gap:10px!important}.ss13-contact-form{padding:22px!important}.ss14-brand-card{min-height:350px!important}.ss14-brand-glass{left:16px!important;right:16px!important;bottom:16px!important;padding:18px!important}}

/* V46 POS light-mode correction: no dark leakage into totals/payment area. */
html[data-theme="light"] .pos-totals{color:#17324b!important}
html[data-theme="light"] .pos-totals>div{color:#17324b!important}
html[data-theme="light"] .pos-totals span,html[data-theme="light"] .pos-totals label{color:#536a82!important}
html[data-theme="light"] .pos-totals strong{color:#102a43!important}
html[data-theme="light"] .pos-totals .grand{background:#eef5ff!important;border-color:#c9daf0!important;color:#17324b!important}
html[data-theme="light"] .pos-totals .grand strong{color:#075fc7!important}
html[data-theme="light"] .pos-tax-control{color:#17324b!important}
html[data-theme="light"] .pos-tax-control label{color:#4b6279!important}
html[data-theme="light"] .payment-methods button{background:#ffffff!important;color:#17324b!important;border-color:#ccd9e7!important;box-shadow:none!important}
html[data-theme="light"] .payment-methods button:hover{background:#f4f8fd!important;border-color:#a9c2df!important}
html[data-theme="light"] .payment-methods button.active{background:#1769ff!important;color:#ffffff!important;border-color:#1769ff!important}
html[data-theme="light"] .pos-payment .field input{background:#ffffff!important;color:#17324b!important;border-color:#ccd9e7!important}
html[data-theme="light"] .change-due{color:#17324b!important}

/* V63 Urdu typography: use Alvi Nastaleeq when it is installed/licensed on the device; Noto remains the web-safe fallback. */
html[data-language="ur"] :is(body,h1,h2,h3,h4,h5,h6,p,label,button,a,th,td,small,strong,span,legend,.section-kicker,.field-help,.nav-label,.receipt-note,.invoice-note-box,.admin-content,.admin-header,.admin-sidebar,.pos-cart,.pos-catalog,.panel,.page-heading){font-family:"SSTRADERS Alvi Nastaleeq","Alvi Nastaleeq Regular","Alvi Nastaleeq","Noto Nastaliq Urdu","Noto Sans Arabic",serif!important;line-height:1.75}
html[data-language="ur"] :is(input:not([type=number]):not([type=date]):not([type=datetime-local]),textarea,select){font-family:"SSTRADERS Alvi Nastaleeq","Alvi Nastaleeq Regular","Alvi Nastaleeq","Noto Nastaliq Urdu","Noto Sans Arabic",serif!important;line-height:1.7}


/* V64 · contextual Urdu UI. Keep the dashboard geometry LTR, but render Urdu copy
   in a proper RTL reading direction. Codes, numbers, dates, SKUs and money stay LTR. */
html[data-language="ur"] :is(.g54-page-context,.g54-routebar,.g54-nav-title,.g54-nav-label-text,.page-heading,.g54-list-stat,.toolbar label,.field label,.form-label,.section-kicker,.field-help,.admin-table th,.admin-table td,.panel p,.panel h1,.panel h2,.panel h3,.panel h4,.panel small,.pos-cart label,.pos-catalog label){
  font-family:"SSTRADERS Alvi Nastaleeq","Alvi Nastaleeq Regular","Alvi Nastaleeq","Noto Nastaliq Urdu","Noto Sans Arabic",serif!important;
  line-height:1.9!important;
}
html[data-language="ur"] :is(.g54-page-context small,.g54-page-context strong,.g54-nav-title span,.g54-nav-label-text,.page-heading h1,.page-heading h2,.page-heading h3,.page-heading p,.section-kicker,.field-help,.g54-list-stat small,.admin-table th,label,p,small){direction:rtl;unicode-bidi:plaintext}
html[data-language="ur"] :is(.page-heading>div,.g54-page-context,.field,.form-group,.form-floating,.g54-list-stat span){text-align:right}
html[data-language="ur"] :is(.admin-table .text-end,.money,.amount,.num,[data-no-i18n],code,kbd,.g54-user-copy strong,.g54-mini-avatar,input[type="number"],input[type="date"],input[type="datetime-local"]){direction:ltr!important;unicode-bidi:isolate!important}
html[data-language="ur"] :is(input[type="search"],input[type="text"],textarea){direction:rtl;text-align:right}
html[data-language="ur"] :is(input[type="search"]::placeholder,input[type="text"]::placeholder,textarea::placeholder){direction:rtl;text-align:right}
html[data-language="ur"] .g54-brand-copy small{direction:rtl;unicode-bidi:plaintext}
html[data-language="ur"] .g54-sale-shortcut span{direction:rtl;unicode-bidi:plaintext}
html[data-language="ur"] .g54-user-copy small{direction:rtl;unicode-bidi:plaintext}
html[data-language="ur"] .admin-table :is(td,th){vertical-align:middle}
