:root{--ink:#414141;--orange:#f77020;--orange2:#ff8b4a;--bg:#f5f6f8;--card:#fff;--muted:#8a9099;--line:#eceef1;--green:#61c032;--blue:#1f5ec8;--red:#ec2f4a;--lime:#c9dc28;--shadow:0 3px 14px #1a26340a}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#30343a;font-family:'Cairo',Tahoma,Arial,sans-serif}.app-shell{min-height:100vh;display:flex}.sidebar{width:252px;background:var(--ink);color:#f6f6f6;display:flex;flex-direction:column;flex-shrink:0;padding:18px 14px 14px;min-height:100vh}.brand{display:flex;align-items:center;gap:10px;padding:4px 8px 22px;border-bottom:1px solid #ffffff14}.brand img{width:47px;height:47px;object-fit:contain;background:white;border-radius:11px;padding:3px}.brand strong{font-size:16px;letter-spacing:.3px;display:block}.brand small{display:block;color:#b9b9b9;font-size:11px}.collapse{margin-right:auto;border:0;background:#ffffff10;color:#fff;border-radius:8px;width:27px;height:27px;font-size:20px}.side-label{font-size:11px;color:#999;margin:18px 10px 9px}nav{display:grid;gap:5px}.nav{height:43px;border:0;background:transparent;color:#c9c9c9;text-align:right;border-radius:9px;padding:0 12px;display:flex;align-items:center;gap:12px;font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:.15s}.nav:hover{background:#ffffff0b;color:#fff}.nav.active{background:var(--orange);color:white;box-shadow:0 4px 12px #f7702035}.ico{width:22px;text-align:center;font-size:19px;line-height:1;color:inherit;opacity:.92}.chev{margin-right:auto;color:#999;font-size:12px}.side-bottom{margin-top:auto}.help-card{background:#ffffff0b;border:1px solid #ffffff12;border-radius:12px;padding:13px;margin-bottom:13px;position:relative}.help-icon{display:inline-flex;background:#f7702026;color:#ff975f;border-radius:7px;width:25px;height:25px;align-items:center;justify-content:center;margin-bottom:6px}.help-card b,.help-card small{display:block}.help-card b{font-size:12px}.help-card small{font-size:10px;color:#a7a7a7;margin:3px 0 9px}.help-card button{width:100%;background:#ffffff10;color:#eee;border:1px solid #ffffff18;border-radius:7px;padding:7px;font:inherit;font-size:11px}.user{display:flex;align-items:center;gap:9px;border-top:1px solid #ffffff15;padding:12px 3px 0}.avatar{width:32px;height:32px;background:#6d6d6d;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:800;font-size:13px}.avatar.orange{background:#f9d7c2;color:#ad4d1c}.user b,.user small{display:block}.user b{font-size:12px}.user small{font-size:10px;color:#aaa}.dots{margin-right:auto;letter-spacing:2px;color:#aaa}.main{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{height:70px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;gap:20px}.crumb{font-size:13px;display:flex;gap:10px;align-items:center}.crumb span{color:#9ba0a7}.crumb b{color:#c5c8cc}.crumb strong{font-weight:700}.top-actions{display:flex;align-items:center;gap:17px}.search{display:flex;align-items:center;gap:8px;border:1px solid #eceef1;background:#fafbfc;border-radius:9px;padding:0 10px;width:260px;height:36px;color:#999}.search input{border:0;outline:0;background:transparent;width:100%;font-family:inherit;font-size:12px}.icon-btn{position:relative;background:white;border:1px solid var(--line);width:35px;height:35px;border-radius:9px;font-size:17px;color:#6d737b}.icon-btn i{position:absolute;width:6px;height:6px;background:var(--orange);border-radius:50%;top:6px;right:7px}.today{font-size:11px;color:#858b92}.content{padding:24px 28px;flex:1;max-width:1600px;width:100%;margin:0 auto}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.page-heading h1{font-size:22px;margin:0 0 2px;font-weight:800}.page-heading p{margin:0;color:#8a9099;font-size:12px}.primary{background:var(--orange);border:0;color:#fff;border-radius:8px;padding:10px 15px;font-family:inherit;font-size:12px;font-weight:700;box-shadow:0 4px 10px #f7702023;cursor:pointer}.secondary{background:#fff;border:1px solid var(--line);border-radius:8px;padding:9px 12px;font-family:inherit;font-size:12px;font-weight:600;color:#626870;cursor:pointer}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:17px}.kpi{background:var(--card);border:1px solid var(--line);border-radius:13px;padding:16px 17px;box-shadow:var(--shadow);min-height:119px}.kpi-top{display:flex;justify-content:space-between;align-items:center;color:#858b93;font-size:12px}.kpi-icon{width:35px;height:35px;border-radius:10px;display:grid;place-items:center;font-size:17px}.kpi strong{display:block;font-size:22px;margin:9px 0 2px;line-height:1.2}.kpi small{font-size:10px;color:#8a9099}.up{color:var(--green);font-weight:700}.orange-bg{background:#fff0e8;color:var(--orange)}.green-bg{background:#edf9e8;color:#4ba524}.blue-bg{background:#edf3ff;color:var(--blue)}.red-bg{background:#fff0f2;color:var(--red)}.charts{display:grid;grid-template-columns:1.8fr 1fr;gap:14px;margin-bottom:17px}.panel{background:white;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);padding:17px}.panel-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.panel-title h3{font-size:14px;margin:0}.panel-title small{color:#8b9299;font-size:10px}.chart-area{height:220px;position:relative}.chart-area svg{width:100%;height:100%;overflow:visible}.gridline{stroke:#eef0f3;stroke-dasharray:4 4}.sales-line{fill:none;stroke:var(--orange);stroke-width:3;stroke-linecap:round}.sales-fill{fill:url(#fade)}.chart-labels{display:flex;justify-content:space-between;color:#969ca4;font-size:10px;margin-top:4px}.donut-wrap{display:flex;align-items:center;justify-content:center;gap:18px;padding:10px 0 16px}.donut{width:150px;height:150px;border-radius:50%;background:conic-gradient(var(--orange) 0 42%,var(--blue) 42% 69%,var(--green) 69% 87%,var(--lime) 87% 100%);position:relative}.donut:after{content:"";position:absolute;inset:27px;background:white;border-radius:50%}.legend{display:grid;gap:10px}.legend-item{display:flex;align-items:center;gap:8px;font-size:11px;color:#666}.dot{width:8px;height:8px;border-radius:3px}.lower{display:grid;grid-template-columns:1.5fr 1fr;gap:14px}.table{width:100%;border-collapse:collapse;font-size:11px}.table th{text-align:right;color:#8d949c;font-weight:600;background:#fafbfc;padding:11px 9px;border-bottom:1px solid var(--line)}.table td{padding:11px 9px;border-bottom:1px solid #f1f2f4}.product-name{display:flex;align-items:center;gap:8px;font-weight:700}.mini-product{width:30px;height:30px;border-radius:7px;background:#f4f5f6;display:grid;place-items:center;color:#999;font-size:15px}.status{border-radius:20px;padding:4px 8px;font-size:10px;font-weight:700;white-space:nowrap}.status.low{background:#fff0e8;color:#d95d15}.status.ok{background:#edf9e8;color:#489b23}.quick{display:grid;grid-template-columns:1fr 1fr;gap:9px}.quick button{border:1px solid var(--line);background:#fff;border-radius:10px;padding:13px 10px;text-align:right;font-family:inherit;font-size:12px;font-weight:600;display:flex;align-items:center;gap:9px;cursor:pointer}.quick button:hover{border-color:#ffd0b3;background:#fffaf7}.quick .qico{color:var(--orange);font-size:18px}.products-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}.products-toolbar .search{flex:1;min-width:230px}.products-table td{vertical-align:middle}.empty{padding:28px;text-align:center;color:#999}.footer-note{color:#8c9299;font-size:10px;text-align:center;margin-top:15px}footer{border-top:1px solid var(--line);padding:12px 28px;color:#a1a6ac;font-size:10px}footer span{color:var(--orange)}@media(max-width:1100px){.sidebar{width:220px}.content{padding:20px}.kpis{grid-template-columns:repeat(2,1fr)}.charts,.lower{grid-template-columns:1fr}.today{display:none}}@media(max-width:700px){.sidebar{width:68px;padding:14px 8px}.brand{justify-content:center;padding:0 0 16px}.brand img{width:42px;height:42px}.brand div,.brand .collapse,.side-label,.nav:not(.active),.nav.active{font-size:0}.nav{justify-content:center;padding:0;gap:0}.nav .ico{font-size:20px}.side-bottom .help-card,.user div:not(.avatar),.dots{display:none}.user{justify-content:center}.topbar{padding:0 13px;height:60px}.top-actions{gap:8px}.search{width:38px;padding:0;justify-content:center}.search input{display:none}.search span{font-size:18px}.content{padding:16px 12px}.page-heading h1{font-size:18px}.kpis{gap:8px}.kpi{padding:12px;min-height:100px}.kpi strong{font-size:17px}.kpi-top{font-size:10px}.panel{padding:12px}.charts,.lower{gap:9px}.table{min-width:500px}.panel:has(.table){overflow:auto}.today{display:none}}
.modal-overlay{position:fixed;inset:0;background:#20242a66;display:grid;place-items:center;padding:20px;z-index:20}.modal{width:min(560px,100%);background:white;border-radius:15px;padding:20px;box-shadow:0 20px 60px #0003}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.form-grid label{font-size:12px;font-weight:700;color:#555}.form-grid input{display:block;width:100%;border:1px solid #e4e7eb;border-radius:8px;padding:10px;margin-top:6px;font-family:inherit;font-size:12px;outline-color:var(--orange)}.modal-actions{display:flex;justify-content:flex-start;gap:8px;border-top:1px solid var(--line);padding-top:14px}.toast{position:fixed;bottom:24px;left:24px;background:#353535;color:white;padding:12px 18px;border-radius:10px;box-shadow:0 8px 30px #0002;z-index:30;font-size:12px}@media(max-width:600px){.form-grid{grid-template-columns:1fr}}
/* Products phase enhancements */
.product-modal{max-height:92vh;display:flex;flex-direction:column}.product-form-scroll{overflow:auto;padding:2px 2px 10px}.product-modal .form-grid{margin-top:14px}.product-modal textarea{width:100%;border:1px solid #e4e7eb;border-radius:8px;padding:10px;font-family:inherit;font-size:12px;resize:vertical;outline-color:var(--orange)}.image-upload-section{display:flex;align-items:center;gap:14px;margin:12px 0;padding:12px;border:1px dashed #dfe3e8;border-radius:10px}.image-picker{font-size:12px;font-weight:700;color:#666;cursor:pointer}.image-picker input{display:block;margin-top:8px;font-size:11px;max-width:220px}.image-preview{width:88px;height:88px;flex-shrink:0;border:1px solid var(--line);background:#fafbfc;border-radius:10px;display:grid;place-items:center;color:#999;font-size:11px;overflow:hidden}.image-preview img,.product-thumb{width:100%;height:100%;object-fit:contain}.product-thumb{width:32px;height:32px;border-radius:7px;background:#f5f6f7;border:1px solid #eee}.variants-section{display:grid;gap:7px;margin:12px 0}.variants-section label{font-size:12px;font-weight:700;color:#555}.variants-section small{font-size:10px;color:#8b9198}.row-actions{display:flex;gap:5px}.danger-btn{color:#c23c4e!important}.products-toolbar select{cursor:pointer}.products-table .secondary{padding:6px 9px}
/* Inventory module layout */
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:14px;margin:0 0 18px}
.stat-card{background:#fff;border:1px solid #e9e9e9;border-radius:14px;padding:18px 20px;box-shadow:0 3px 12px rgba(30,30,30,.035)}
.stat-card small{display:block;color:#777;font-size:13px;margin-bottom:8px}
.stat-card h2{margin:0;color:#474747;font-size:25px;font-weight:750}
@media(max-width:900px){.stats-grid{grid-template-columns:repeat(2,minmax(130px,1fr))}.page-heading .row-actions{flex-wrap:wrap}}
@media(max-width:560px){.stats-grid{grid-template-columns:1fr 1fr}.stat-card{padding:14px}}
/* Enhanced product warehouse selector */
.product-modal select[name="warehouseId"],.warehouse-select-enhanced{display:block;width:100%;margin-top:7px;padding:11px 38px 11px 12px;border:1px solid #d8dee7;border-radius:10px;background:#fff;color:#343a40;font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;box-shadow:0 1px 2px #00000005;transition:border-color .18s,box-shadow .18s;}
.product-modal select[name="warehouseId"]:focus,.warehouse-select-enhanced:focus{outline:none;border-color:var(--orange);box-shadow:0 0 0 3px #f770201c;}
.warehouse-select-hint{display:block;margin-top:7px;color:#77818c;font-size:10px;line-height:1.7;font-weight:400;}
/* Phase 10 transfer dialog UX refinement */
.transfer-stock-info{grid-column:1/-1;padding:12px 14px;border:1px solid #dbe8f4;background:#f3f8fd;color:#1f5ec8;border-radius:10px;font-weight:700;min-height:42px;display:flex;align-items:center}
.transfer-summary{grid-column:1/-1;color:#6b7280;font-size:13px;padding:2px 4px}
#transferForm select[name="product"]{min-width:100%;}

/* Premium warehouse transfer dialog */
.transfer-modal{width:min(820px,100%);padding:0;border-radius:20px;overflow:hidden;max-height:92vh;box-shadow:0 28px 80px #11182730;border:1px solid #e9edf2}
.transfer-modal-heading{display:flex;align-items:center;gap:14px;padding:22px 26px;background:linear-gradient(135deg,#fff 0%,#fff8f3 100%);border-bottom:1px solid #edf0f4;position:relative}
.transfer-heading-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:#fff0e6;color:var(--orange);font-size:28px;font-weight:800;box-shadow:inset 0 0 0 1px #f7702020;flex-shrink:0}
.transfer-modal-heading h3{font-size:18px;margin:0;color:#303640;font-weight:800}
.transfer-modal-heading p{margin:5px 0 0;color:#87909c;font-size:12px;line-height:1.7}
.transfer-close{margin-right:auto!important;border-radius:10px!important;width:38px;height:38px;font-size:18px;display:grid;place-items:center}
.transfer-modal #transferForm{display:flex;flex-direction:column;min-height:0}
.transfer-modal .product-form-scroll{padding:22px 26px 16px;overflow:auto}
.transfer-form-grid{margin:0!important;gap:18px!important;align-items:end}
.transfer-form-grid label{font-size:12px!important;color:#626d7b!important;font-weight:700!important;display:block}
.transfer-form-grid select,.transfer-form-grid input{width:100%;display:block;margin-top:8px;border:1px solid #dfe5ec;border-radius:11px;background:#fff;padding:13px 14px;font:inherit;font-size:13px;color:#2f3742;outline:none;transition:border .15s,box-shadow .15s;min-height:46px;box-sizing:border-box}
.transfer-form-grid select:focus,.transfer-form-grid input:focus{border-color:var(--orange);box-shadow:0 0 0 3px #f7702018}
.transfer-product-field{grid-column:1/-1}
.transfer-source-field,.transfer-destination-field{position:relative}
.transfer-quantity-field{grid-column:1/-1;max-width:340px}
.transfer-stock-info{grid-column:1/-1!important;border:1px solid #dbe7f7!important;background:linear-gradient(90deg,#f3f8ff,#f7faff)!important;color:#235ec6!important;border-radius:13px!important;padding:16px 18px!important;font-size:14px!important;line-height:1.7;min-height:auto!important}
.transfer-summary{grid-column:1/-1!important;border-radius:11px;background:#fafbfc;padding:12px 14px!important;color:#6d7784!important;line-height:1.8;font-size:12px!important}
.transfer-modal .modal-actions{padding:16px 26px 22px;border-top:1px solid #edf0f4;justify-content:flex-start;gap:10px}
.transfer-modal .modal-actions button{min-height:42px;border-radius:10px;padding:0 18px;font-weight:700}
@media(max-width:640px){.transfer-modal{border-radius:15px}.transfer-modal-heading{padding:16px;gap:10px}.transfer-heading-icon{width:40px;height:40px}.transfer-modal-heading h3{font-size:15px}.transfer-modal-heading p{font-size:11px}.transfer-modal .product-form-scroll{padding:16px}.transfer-form-grid{grid-template-columns:1fr!important}.transfer-source-field,.transfer-destination-field,.transfer-quantity-field{grid-column:1/-1;max-width:none}.transfer-modal .modal-actions{padding:14px 16px 18px}}
/* TYKE unit pricing controls */
.unit-pricing-box{grid-column:1/-1;background:linear-gradient(145deg,#fff8f2,#fff);border:1px solid #f4d5c1;border-radius:14px;padding:16px;margin:6px 0;display:flex;flex-direction:column;gap:10px}.unit-pricing-box>strong{font-size:14px;color:#474747;display:flex;align-items:center;gap:8px}.unit-pricing-box>strong:before{content:'◈';color:#f77020}.unit-price-grid{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:12px}.unit-price-grid label{font-size:12px;color:#555;display:flex;flex-direction:column;gap:6px}.unit-price-grid input{width:100%;min-height:40px;border:1px solid #ddd;border-radius:9px;padding:8px 10px;background:#fff}.unit-pricing-box small{color:#777;font-size:11px}@media(max-width:700px){.unit-price-grid{grid-template-columns:1fr 1fr}}

/* Product edit modal: keep save/cancel visible, scroll only the form body */
.product-modal{width:min(560px,100%);max-height:calc(100dvh - 24px);min-height:0;overflow:hidden}
.product-modal form#productForm{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden}
.product-modal .product-form-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:2px 2px 12px}
.product-modal .modal-actions{flex:0 0 auto;position:sticky;bottom:0;background:#fff;padding:14px 0 2px;margin-top:0;z-index:2}
@media(max-height:700px){.product-modal{max-height:calc(100dvh - 12px)}.product-modal .modal-actions{padding-top:10px}}
/* TYKE Notepad independent module */
.tyke-notepad{display:grid;grid-template-columns:280px minmax(0,1fr);gap:14px;min-height:calc(100vh - 190px)}
.tyke-note-list,.tyke-note-editor{background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden;display:flex;flex-direction:column;min-height:440px}
.tyke-note-list-head{padding:14px;border-bottom:1px solid var(--line);display:grid;gap:10px}.tyke-note-list-head input,.tyke-note-title input{border:1px solid #e4e7eb;border-radius:9px;padding:10px 12px;font:inherit;outline-color:var(--orange);width:100%;box-sizing:border-box}
#noteListItems{overflow:auto;flex:1}.tyke-note-list-item{display:block;width:100%;text-align:right;padding:13px 15px;border:0;border-bottom:1px solid #f0f1f3;background:#fff;cursor:pointer;font-family:inherit}.tyke-note-list-item.selected{background:#fff7f1;border-right:3px solid var(--orange)}.tyke-note-list-item b{display:block;font-size:13px;color:#444;margin-bottom:5px}.tyke-note-list-item small{display:block;font-size:11px;color:#8a9097;line-height:1.5}
.tyke-note-title{padding:14px;border-bottom:1px solid #eee}.tyke-note-toolbar{display:flex;gap:7px;flex-wrap:wrap;padding:11px;border-bottom:1px solid #eee;background:#fafafa}.tyke-note-toolbar button,.tyke-note-toolbar select{border:1px solid #e1e4e8;background:#fff;border-radius:8px;padding:7px 10px;cursor:pointer;color:#555;font-family:inherit}.tyke-note-toolbar button:hover{border-color:var(--orange);color:var(--orange)}.tyke-note-toolbar input[type=color]{width:35px;height:34px;padding:2px;border:1px solid #ddd;border-radius:8px;background:#fff;cursor:pointer}
.tyke-note-content{flex:1;min-height:300px;overflow:auto;padding:22px;outline:none;line-height:1.9;color:#474747;font-size:16px;white-space:normal}.tyke-note-content:empty:before{content:'ابدأ كتابة ملاحظتك هنا...';color:#b0b4b9}.tyke-note-content ul,.tyke-note-content ol{padding-right:24px}.tyke-note-status{display:flex;justify-content:space-between;align-items:center;padding:11px 14px;border-top:1px solid #eee;color:#8a9097;font-size:11px}
@media(max-width:800px){.tyke-notepad{grid-template-columns:1fr}.tyke-note-list{min-height:210px;max-height:260px}.tyke-note-editor{min-height:430px}}
/* TYKE Notepad PIN lock screen */
.tyke-pin-screen{min-height:calc(100vh - 170px);display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#f7f8fa,#fff8f3);border-radius:18px}
.tyke-pin-card{width:min(420px,100%);box-sizing:border-box;background:#fff;border:1px solid #e9edf2;border-radius:20px;box-shadow:0 18px 50px #30364012;padding:30px;text-align:center}
.tyke-pin-icon{width:64px;height:64px;margin:0 auto 14px;display:grid;place-items:center;border-radius:18px;background:#fff1e8;color:var(--orange);font-size:28px}
.tyke-pin-card h2{margin:0 0 8px;color:#41464f;font-size:21px}.tyke-pin-card p{margin:0 0 20px;color:#818995;font-size:13px;line-height:1.7}
.tyke-pin-card form{display:grid;gap:11px}.tyke-pin-card input{width:100%;box-sizing:border-box;border:1px solid #e0e5eb;border-radius:11px;padding:13px 14px;font:inherit;text-align:center;letter-spacing:3px;outline-color:var(--orange)}.tyke-pin-card button{width:100%;min-height:43px;border-radius:10px}.tyke-pin-card small{display:block;margin-top:12px;color:#d94141;font-size:12px}

/* TYKE sales invoice modal refresh — scoped, brand-aligned, behavior-preserving */
.sale-modal{width:min(1120px,100%)!important;max-height:calc(100dvh - 28px);padding:0!important;border-radius:18px!important;overflow:hidden;display:flex;flex-direction:column;border:1px solid #e7e9ec;box-shadow:0 24px 70px #20242a36!important;color:var(--ink)}
.sale-modal-heading{background:linear-gradient(120deg,#414345 0%,#505254 72%,#5b5d5f 100%);color:#fff!important;padding:17px 22px!important;margin:0!important;border-bottom:0!important;display:flex;align-items:center;justify-content:space-between;flex:0 0 auto}
.sale-title-wrap{display:flex;align-items:center;gap:12px}.sale-title-icon{width:42px;height:42px;border-radius:12px;background:#f7702022;border:1px solid #f7702040;color:#ff9a63;display:grid;place-items:center;font-size:21px}.sale-modal-heading h3{margin:0!important;font-size:18px!important;font-weight:800}.sale-modal-heading small{display:block;color:#e0e1e2;font-size:11px;margin-top:3px;font-weight:400}.sale-modal .sale-close{border:1px solid #ffffff30!important;background:#ffffff12!important;color:#fff!important;width:36px;height:36px;border-radius:10px;padding:0!important;font-size:17px}
.sale-modal form#saleForm{display:flex;flex-direction:column;min-height:0;overflow:hidden;flex:1}.sale-modal .product-form-scroll{overflow:auto;min-height:0;flex:1;padding:18px 22px 16px;overscroll-behavior:contain}
.sale-meta-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:13px 16px!important;margin:0 0 20px!important;padding:16px;background:#f8f9fa;border:1px solid #eceef1;border-radius:14px}
.sale-meta-grid label{font-size:11px!important;font-weight:700!important;color:#686e75!important;display:flex;flex-direction:column;gap:6px;min-width:0}.sale-meta-grid input,.sale-meta-grid select{width:100%;min-height:40px;border:1px solid #dfe3e8!important;border-radius:9px!important;background:#fff!important;padding:9px 11px!important;font:inherit!important;font-size:12px!important;color:#34383c;outline:none;transition:border-color .15s,box-shadow .15s}.sale-meta-grid input:focus,.sale-meta-grid select:focus{border-color:var(--orange)!important;box-shadow:0 0 0 3px #f7702015}
.sale-items-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px!important;padding:0 2px}.sale-items-heading h3{font-size:15px!important;font-weight:800;margin:0}.sale-add-item{background:#fff!important;border:1px solid #f7702050!important;color:var(--orange)!important;border-radius:9px!important;padding:8px 12px!important;font-weight:700!important}.sale-table-wrap{overflow:auto;border:1px solid #e9ebef;border-radius:12px}.sale-items-table{min-width:760px!important;border-collapse:separate!important;border-spacing:0}.sale-items-table thead th{background:#414345!important;color:#f5f6f7!important;padding:12px 10px!important;font-size:11px!important;font-weight:700!important;white-space:nowrap}.sale-items-table thead th:first-child{border-top-right-radius:10px}.sale-items-table thead th:last-child{border-top-left-radius:10px}.sale-items-table td{padding:10px 9px!important;vertical-align:middle;border-bottom:1px solid #eef0f2!important;background:#fff;font-size:11px!important}.sale-items-table tbody tr:last-child td{border-bottom:0!important}.sale-items-table select,.sale-items-table input{border:1px solid #dfe3e8!important;border-radius:8px!important;padding:8px 9px!important;min-height:35px;background:#fff!important;font:inherit!important;font-size:11px!important;outline:none}.sale-items-table select:focus,.sale-items-table input:focus{border-color:var(--orange)!important;box-shadow:0 0 0 3px #f7702015}.sale-items-table .sale-total{font-weight:800;color:#414345;white-space:nowrap}.sale-items-table .sale-available{color:#727981;font-size:10px!important;white-space:nowrap}.sale-items-table .sale-remove{width:30px;height:30px;border-radius:8px!important;background:#fff5f3!important;border:1px solid #ffe0d8!important;color:#d74b36!important;padding:0!important}
.sale-totals{margin:14px 0 0!important;padding:14px 16px;background:#f8f9fa;border:1px solid #e9ebef;border-radius:12px;color:#414345;font-size:12px;font-weight:800;text-align:left;line-height:1.8}
.sale-modal-actions{display:flex;align-items:center;gap:9px;justify-content:flex-start!important;padding:14px 22px 17px!important;margin:0!important;border-top:1px solid #eceef1!important;background:#fff;flex:0 0 auto}.sale-modal-actions button{min-height:40px;border-radius:10px!important;padding:0 16px!important;font-size:12px!important;font-weight:800!important}.sale-modal-actions .sale-commit{background:var(--orange)!important;border-color:var(--orange)!important;color:#fff!important;box-shadow:0 5px 14px #f7702028}.sale-modal-actions .secondary{background:#fff!important;color:#626970!important;border:1px solid #e4e7eb!important}
@media(max-width:900px){.sale-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){.sale-modal{max-height:calc(100dvh - 12px)!important;border-radius:14px!important}.sale-modal-heading{padding:13px 15px!important}.sale-modal-heading h3{font-size:15px!important}.sale-modal .product-form-scroll{padding:13px 14px}.sale-meta-grid{grid-template-columns:1fr!important;padding:12px;gap:10px!important}.sale-modal-actions{padding:12px 14px!important}.sale-modal-actions button{flex:1;padding:0 10px!important}}

/* TYKE professional sales invoice detail modal */
.sale-detail-overlay{position:fixed;inset:0;z-index:1000;background:rgba(27,30,33,.52);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:20px;animation:tykeDetailFade .16s ease-out}.sale-detail-modal{width:min(760px,100%);max-height:min(90vh,900px);display:flex;flex-direction:column;background:#fff;border:1px solid #e8eaed;border-radius:18px;overflow:hidden;box-shadow:0 24px 70px rgba(24,28,32,.25);direction:rtl;color:#414345}.sale-detail-header{background:linear-gradient(120deg,#414345,#505254);color:#fff;display:flex;align-items:center;gap:12px;padding:17px 20px;flex:0 0 auto}.sale-detail-icon{width:42px;height:42px;border-radius:12px;background:#f7702022;color:#ff985e;border:1px solid #f7702040;display:grid;place-items:center;font-size:22px}.sale-detail-header h3{margin:0;font-size:17px;font-weight:800}.sale-detail-header small{display:block;margin-top:3px;color:#d5d7d8;font-size:11px}.sale-detail-close{margin-right:auto;width:36px;height:36px;border:1px solid #ffffff2a;border-radius:10px;background:#ffffff12;color:#fff;font-size:23px;line-height:1;cursor:pointer}.sale-detail-content{padding:20px;overflow:auto}.sale-detail-info{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.sale-detail-info>div{background:#f7f8f9;border:1px solid #ebedf0;border-radius:11px;padding:12px;min-width:0}.sale-detail-info small,.sale-detail-note small{display:block;color:#90969e;font-size:10px;margin-bottom:5px}.sale-detail-info b{display:block;font-size:12px;overflow-wrap:anywhere}.sale-detail-items{margin-top:18px}.sale-detail-items h4{display:flex;justify-content:space-between;align-items:center;margin:0 0 10px;font-size:13px}.sale-detail-items h4 span{font-size:10px;color:#858b93;font-weight:500}.sale-detail-table-wrap{border:1px solid #e9ebef;border-radius:11px;overflow:auto}.sale-detail-table-wrap table{border-collapse:collapse;width:100%;min-width:520px}.sale-detail-table-wrap th{background:#414345;color:#fff;text-align:right;padding:11px 10px;font-size:10px;white-space:nowrap}.sale-detail-table-wrap td{padding:10px;border-bottom:1px solid #eef0f2;font-size:11px;vertical-align:middle}.sale-detail-table-wrap tr:last-child td{border-bottom:0}.sale-detail-table-wrap td:nth-child(2) small{display:block;color:#9298a0;font-size:9px;margin-top:3px}.sale-detail-line-total,.sale-detail-table-wrap .detail-line-total{font-weight:800;white-space:nowrap}.sale-detail-summary{margin-top:15px;border:1px solid #e9ebef;background:#f8f9fa;border-radius:12px;padding:12px 14px;display:grid;grid-template-columns:1fr 1fr;gap:9px 18px}.sale-detail-summary>div{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px}.sale-detail-summary span{color:#777e86}.sale-detail-summary b{white-space:nowrap}.sale-detail-summary .paid{color:#4d9e36}.sale-detail-summary .due{color:#e16d23}.sale-detail-summary .net{grid-column:1/-1;border-top:1px solid #e2e5e8;margin-top:3px;padding-top:11px;color:#414345}.sale-detail-summary .net span{font-weight:800;color:#414345}.sale-detail-summary .net strong{background:#f77020;color:white;padding:7px 12px;border-radius:9px;font-size:14px}.sale-detail-note{margin-top:12px;border:1px solid #eceef1;border-radius:10px;padding:11px}.sale-detail-note p{margin:0;font-size:11px;color:#555;white-space:pre-wrap}.sale-detail-footer{border-top:1px solid #eceef1;background:#fff;display:flex;gap:9px;padding:13px 20px;flex:0 0 auto}.sale-detail-footer button{border-radius:10px;padding:9px 15px;font-size:11px;font-weight:800;cursor:pointer}.sale-detail-print{background:#fff;color:#414345;border:1px solid #e3e6ea}.sale-detail-done{background:var(--orange,#f77020);border:1px solid var(--orange,#f77020);color:white}.sale-detail-footer button:hover{filter:brightness(.97)}@keyframes tykeDetailFade{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@media(max-width:600px){.sale-detail-overlay{padding:8px}.sale-detail-modal{max-height:calc(100dvh - 16px);border-radius:13px}.sale-detail-header{padding:13px 14px}.sale-detail-header h3{font-size:15px}.sale-detail-content{padding:13px}.sale-detail-info{grid-template-columns:1fr}.sale-detail-summary{grid-template-columns:1fr}.sale-detail-summary .net{grid-column:auto}.sale-detail-footer{padding:12px 14px}.sale-detail-footer button{flex:1}}
/* Pass92 Dashboard data-driven refresh polish */
.dash-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.dash-updated{font-size:11px;color:var(--green);font-weight:700}.dash-actions .primary{white-space:nowrap}.charts .chart-area svg{width:100%;height:100%;display:block}.charts .sales-line{stroke:var(--orange);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.charts .sales-fill{fill:url(#fade);opacity:.45}.charts .panel{min-width:0}.kpi strong{font-variant-numeric:tabular-nums}
@media(max-width:720px){.dash-actions{width:100%;justify-content:space-between}.dash-updated{font-size:10px}}
/* Refined invoice payment modal */
.sale-payment-modal{width:min(760px,100%);padding:0;border-radius:18px;overflow:hidden;max-height:calc(100dvh - 36px);display:flex;flex-direction:column;box-shadow:0 28px 80px #13284a35;border:1px solid #e7ecf4}
.sale-payment-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px 26px;background:linear-gradient(115deg,#eaf1ff 0%,#f3f6ff 43%,#173b70 43%,#234c87 100%);color:#fff}
.sale-payment-title{display:flex;align-items:center;gap:15px}.sale-payment-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(135deg,#ff9a25,#f46a17);border:1px solid #ffb45d;color:white;font-size:25px;box-shadow:0 5px 16px #ed7b2035}
.sale-payment-title h3{margin:0;font-size:21px;font-weight:800;color:#fff}.sale-payment-title p{margin:4px 0 0;font-size:12px;color:#e0e9f8}.sale-payment-close{width:42px;height:42px;flex:0 0 auto;border:1px solid #d4deed;background:#ffffffbd;color:#243b5e;border-radius:11px;font-size:24px;cursor:pointer;transition:.15s}.sale-payment-close:hover{background:white;transform:translateY(-1px)}
.sale-payment-body{padding:24px 26px 20px;overflow:auto}.sale-payment-summary{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}.sale-payment-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px 16px}.sale-payment-field{display:block;min-width:0;margin:0;color:#263247;font-size:12px;font-weight:700}.sale-payment-label{display:block;margin-bottom:8px;color:#344259;font-size:13px;font-weight:800}.sale-payment-field input,.sale-payment-field select,.sale-payment-field textarea{display:block;width:100%;min-height:48px;border:1px solid #dce3ee;border-radius:11px;background:#fff;padding:12px 14px;font-family:inherit;font-size:13px;color:#293548;outline:none;transition:border-color .15s,box-shadow .15s;box-shadow:0 1px 2px #152d4a05}.sale-payment-field input:focus,.sale-payment-field select:focus,.sale-payment-field textarea:focus{border-color:#779bd4;box-shadow:0 0 0 3px #1f5ec810}.sale-invoice-field input{background:#f1f4fa;color:#596477;border-color:#d8e0ee}.sale-due-field input{background:#fff1e7;border-color:#ffd0a9;color:#bd5a16;font-weight:800}.sale-payment-amount-wrap{display:flex;direction:rtl;overflow:hidden;border:1px solid #dce3ee;border-radius:11px;background:#fff}.sale-payment-amount-wrap:focus-within{border-color:#779bd4;box-shadow:0 0 0 3px #1f5ec810}.sale-payment-amount-wrap input{border:0;border-radius:0;box-shadow:none;flex:1;min-width:0}.sale-payment-amount-wrap input:focus{box-shadow:none}.sale-payment-amount-wrap span{display:flex;align-items:center;padding:0 15px;background:#f2f5fa;border-left:1px solid #e0e6ef;color:#657086;font-weight:800}.sale-payment-notes{grid-column:1/-1}.sale-payment-field textarea{resize:vertical;min-height:70px}.sale-payment-footer{display:flex;align-items:center;gap:10px;padding:16px 26px 22px;border-top:1px solid #edf0f4;background:#fff;flex:0 0 auto}.sale-payment-footer button{min-height:44px;border-radius:11px;padding:0 20px;font-weight:800}.sale-payment-save{background:linear-gradient(135deg,#ff8a21,#f45b0b);box-shadow:0 7px 17px #f46a172c}
@media(max-width:640px){.sale-payment-modal{max-height:calc(100dvh - 12px);border-radius:14px}.sale-payment-header{padding:16px;background:linear-gradient(115deg,#eaf1ff 0%,#f3f6ff 30%,#173b70 30%,#234c87 100%)}.sale-payment-title{gap:10px}.sale-payment-icon{width:42px;height:42px;font-size:21px}.sale-payment-title h3{font-size:15px}.sale-payment-title p{font-size:10px}.sale-payment-close{width:36px;height:36px}.sale-payment-body{padding:15px}.sale-payment-summary,.sale-payment-fields{grid-template-columns:1fr;gap:12px}.sale-payment-footer{padding:13px 15px 16px}.sale-payment-footer button{flex:1;padding:0 10px}.sale-payment-notes{grid-column:auto}}

/* TYKE SYSTEM — premium authentication screens */
.tyke-auth-overlay{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:28px;overflow:auto;background:radial-gradient(ellipse at 12% 15%,rgba(255,132,48,.18),transparent 34%),radial-gradient(ellipse at 88% 85%,rgba(64,111,177,.25),transparent 38%),linear-gradient(135deg,#101b2d 0%,#172943 52%,#101b2d 100%);direction:rtl;font-family:inherit}
.tyke-auth-card{width:min(520px,100%);overflow:hidden;border:1px solid rgba(255,255,255,.15);border-radius:24px;background:#fff;box-shadow:0 32px 90px rgba(0,0,0,.38);animation:tykeAuthEnter .28s ease-out}
.tyke-auth-brand{min-height:104px;display:flex;align-items:center;gap:13px;padding:22px 30px;color:#fff;background:linear-gradient(115deg,#172a46,#243f65);position:relative;overflow:hidden}
.tyke-auth-brand:after{content:"";position:absolute;width:210px;height:210px;border:1px solid #ffffff14;border-radius:50%;left:-62px;top:-125px;box-shadow:0 0 0 22px #ffffff08,0 0 0 46px #ffffff05}
.tyke-auth-mark{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:linear-gradient(145deg,#ff9b43,#f36b1b);color:white;font-size:26px;font-weight:900;box-shadow:0 8px 20px #f36b1b45}
.tyke-auth-brand strong{display:block;font-size:17px;letter-spacing:.5px}.tyke-auth-brand small{display:block;margin-top:4px;color:#b9c9dc;font-size:9px;letter-spacing:1.6px;direction:ltr;text-align:right}
.tyke-auth-pill{margin-right:auto;z-index:1;padding:7px 10px;border:1px solid #ffffff2c;border-radius:30px;color:#d9e5f5;font-size:9px;letter-spacing:.8px;direction:ltr}
.tyke-auth-body{padding:30px 34px 27px}.tyke-auth-eyebrow{margin-bottom:8px;color:#f07827;font-size:11px;font-weight:800}.tyke-auth-body h2{margin:0;color:#172943;font-size:25px;font-weight:900;line-height:1.4}.tyke-auth-description{margin:8px 0 23px;color:#778397;font-size:13px;line-height:1.8}
.tyke-auth-field{display:block;margin:15px 0;color:#34445b;font-size:12px;font-weight:800}.tyke-auth-field input{display:block;width:100%;height:48px;margin-top:8px;padding:0 14px;border:1px solid #dce3ec;border-radius:11px;background:#f8fafc;color:#1e2c40;font-family:inherit;font-size:14px;outline:none;transition:border-color .18s,box-shadow .18s,background .18s;box-sizing:border-box;direction:rtl}.tyke-auth-field input:focus{border-color:#ed8a42;background:#fff;box-shadow:0 0 0 4px #f0782719}.tyke-auth-password{position:relative;margin-top:8px}.tyke-auth-password input{margin-top:0;padding-left:48px}.tyke-auth-toggle{position:absolute;left:7px;top:7px;width:34px;height:34px;border:0;border-radius:8px;background:#edf1f6;color:#53647a;cursor:pointer;font-size:16px}.tyke-auth-toggle:hover{background:#e1e8f1;color:#ed7625}
.tyke-auth-submit{width:100%;min-height:49px;margin-top:7px;border:0;border-radius:11px;background:linear-gradient(110deg,#ff9238,#ed6818);color:#fff;font-family:inherit;font-size:13px;font-weight:900;cursor:pointer;box-shadow:0 8px 18px #ed76252b;transition:transform .15s,box-shadow .15s}.tyke-auth-submit:hover{transform:translateY(-1px);box-shadow:0 11px 23px #ed76253d}.tyke-auth-submit:active{transform:translateY(0)}
.tyke-auth-note{margin-top:18px;padding-top:14px;border-top:1px solid #edf0f4;color:#8993a2;font-size:10px;line-height:1.8}.tyke-auth-error{display:block;min-height:18px;margin-top:9px;color:#c53c36;font-size:11px;font-weight:700}
@keyframes tykeAuthEnter{from{opacity:0;transform:translateY(9px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:560px){.tyke-auth-overlay{padding:12px}.tyke-auth-card{border-radius:18px}.tyke-auth-brand{min-height:82px;padding:16px 20px}.tyke-auth-brand strong{font-size:15px}.tyke-auth-pill{font-size:8px;padding:6px 8px}.tyke-auth-body{padding:23px 21px}.tyke-auth-body h2{font-size:22px}.tyke-auth-description{margin-bottom:18px}}

/* TYKE user profile and quick menu */
.tyke-profile-trigger{border:0;cursor:pointer;flex-shrink:0;transition:transform .15s,box-shadow .15s;}
.tyke-profile-trigger:hover{transform:translateY(-1px);box-shadow:0 0 0 3px #f7702020;}
.tyke-user-menu-trigger{border:0;background:#ffffff12;border-radius:8px;padding:4px 7px;cursor:pointer;font-size:17px;letter-spacing:2px;color:#aeb7c2;}
.tyke-user-menu-trigger:hover{background:#ffffff22;color:white;}
.tyke-user-quick-menu{position:fixed;z-index:100010;min-width:165px;padding:6px;background:#fff;border:1px solid #e7eaf0;border-radius:12px;box-shadow:0 12px 32px #14233a22;display:grid;gap:3px;direction:rtl;}
.tyke-user-quick-menu button{border:0;background:transparent;text-align:right;padding:10px 12px;border-radius:8px;font:inherit;font-size:12px;color:#364253;cursor:pointer;}
.tyke-user-quick-menu button:hover{background:#fff2e9;color:#e66e1c;}
.tyke-profile-card{width:min(560px,100%);max-height:90vh;overflow:auto;padding:18px 20px;}
.tyke-profile-preview{display:flex;align-items:center;gap:10px;margin:10px 0 18px;}
.tyke-profile-photo-preview{width:76px;height:76px;font-size:24px;display:grid;place-items:center;background-color:#64748b;background-size:cover;background-position:center;border:3px solid #fff;box-shadow:0 0 0 1px #e3e7ed;}
.tyke-photo-pick{cursor:pointer;display:inline-flex;align-items:center;}
.tyke-profile-section-title{font-size:12px;font-weight:800;color:#33445a;margin:12px 0;}
.tyke-profile-card .modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:15px;}
@media(max-width:700px){.tyke-profile-card{padding:12px;}.tyke-profile-preview{gap:7px;}}
/* TYKE CRM workspace — premium layout */
.crm-hero{display:flex;justify-content:space-between;align-items:center;gap:22px;padding:25px 28px;border-radius:18px;background:linear-gradient(120deg,#17243a,#263e60 65%,#334f75);color:#fff;margin-bottom:18px;box-shadow:0 12px 30px rgba(20,35,60,.14)}.crm-hero h1{margin:7px 0 9px;font-size:25px}.crm-hero h1 span{font-size:12px;letter-spacing:1.5px;border:1px solid #ffffff55;border-radius:30px;padding:4px 9px;vertical-align:middle}.crm-hero p{margin:0;color:#c9d5e7;font-size:13px}.crm-eyebrow{font-size:10px;letter-spacing:2px;color:#9db5d6;font-weight:700}.crm-add{white-space:nowrap;background:#f5a64a!important;color:#17243a!important;border:0!important;font-weight:800}.crm-kpis{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:13px;margin-bottom:18px}.crm-kpi{background:var(--panel,#fff);border:1px solid var(--border,#e8eaf0);border-radius:15px;padding:17px 18px;box-shadow:0 4px 15px rgba(30,40,60,.035)}.crm-kpi small,.crm-kpi span{display:block;color:var(--muted,#8993a5);font-size:11px}.crm-kpi strong{display:block;font-size:24px;margin:8px 0;color:var(--text,#253247)}.crm-kpi span{margin-top:3px}.crm-alert{border-color:#f0c78a;background:#fffaf1}.crm-toolbar{display:flex;gap:12px;align-items:center;margin:12px 0 15px}.crm-toolbar .search{flex:1;min-width:180px}.crm-board{display:grid;grid-template-columns:repeat(7,minmax(110px,1fr));gap:9px;margin-bottom:18px}.crm-stage{background:var(--panel,#fff);border:1px solid var(--border,#e8eaf0);border-radius:12px;padding:12px 11px;min-width:0}.crm-stage-head{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:11px}.crm-stage-head span{background:#eef1f6;color:#617087;padding:2px 7px;border-radius:12px}.crm-stage>strong{display:block;font-size:13px;margin:10px 0 9px;white-space:nowrap}.crm-stage-bar{height:4px;background:#edf0f4;border-radius:5px;overflow:hidden}.crm-stage-bar i{display:block;height:100%;background:#7897bc;border-radius:5px}.crm-lower-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:15px;margin-bottom:15px}.crm-panel{padding:17px 18px}.crm-table-wrap{overflow:auto}.crm-company{display:block;color:var(--muted,#8b94a3);font-size:11px;margin-top:3px}.crm-inline-stage{border:1px solid var(--border,#ddd);background:var(--panel,#fff);border-radius:8px;padding:6px;max-width:115px;font-size:12px}.crm-edit,.crm-activity{font-size:11px!important;padding:5px 8px!important;margin-inline:2px}.crm-task{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid var(--border,#eceef2);gap:8px}.crm-task label{display:flex;gap:10px;align-items:flex-start;cursor:pointer}.crm-task label span{display:flex;flex-direction:column;gap:4px}.crm-task small{color:var(--muted,#8b94a3);font-size:11px}.crm-task-delete{border:0;background:transparent;color:#a2a8b2;cursor:pointer;font-size:19px}.crm-activity-line{display:flex;gap:12px;padding:12px 2px;border-bottom:1px solid var(--border,#eceef2)}.crm-activity-dot{width:9px;height:9px;border-radius:50%;background:#8ba5c7;margin-top:5px;flex:0 0 auto}.crm-activity-line b{font-size:13px}.crm-activity-line small{display:block;color:var(--muted,#8b94a3);font-size:11px;margin-top:4px}.crm-activity-line p{font-size:12px;margin:5px 0 0;color:var(--text,#425066)}.crm-modal{max-width:680px}.crm-modal .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}.crm-modal .form-grid label{font-size:12px;color:var(--muted,#7f8999);display:block}.crm-modal .form-grid input,.crm-modal .form-grid select,.crm-modal .form-grid textarea{width:100%;box-sizing:border-box;margin-top:5px}.crm-wide{grid-column:1/-1}.crm-modal input,.crm-modal select,.crm-modal textarea{padding:10px;border:1px solid var(--border,#dce0e7);border-radius:9px;background:var(--panel,#fff);color:var(--text,#293548)}@media(max-width:1150px){.crm-board{grid-template-columns:repeat(4,1fr)}.crm-kpis{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.crm-hero{display:block;padding:20px}.crm-add{margin-top:16px}.crm-kpis{grid-template-columns:1fr 1fr}.crm-board{grid-template-columns:repeat(2,1fr)}.crm-lower-grid{grid-template-columns:1fr}.crm-toolbar{flex-wrap:wrap}.crm-toolbar .search{flex-basis:100%}.crm-modal .form-grid{grid-template-columns:1fr}}
/* CRM usability polish: pipeline cards are interactive stage filters */
.crm-stage-filter{width:100%;text-align:inherit;cursor:pointer;color:var(--text,#253247);font:inherit;transition:transform .12s ease,box-shadow .12s ease;border:1px solid var(--border,#e8eaf0)}
.crm-stage-filter:hover{transform:translateY(-2px);box-shadow:0 5px 15px rgba(30,40,60,.08)}
.crm-stage-filter:focus-visible{outline:2px solid #7897bc;outline-offset:2px}
/* CRM usability polish: pipeline cards are interactive stage filters */
.crm-stage-filter{width:100%;text-align:inherit;cursor:pointer;color:var(--text,#253247);font:inherit;transition:transform .12s ease,box-shadow .12s ease;border:1px solid var(--border,#e8eaf0)}
.crm-stage-filter:hover{transform:translateY(-2px);box-shadow:0 5px 15px rgba(30,40,60,.08)}
.crm-stage-filter:focus-visible{outline:2px solid #7897bc;outline-offset:2px}
/* CRM usability polish: pipeline cards are interactive stage filters */
.crm-stage-filter{width:100%;text-align:inherit;cursor:pointer;color:var(--text,#253247);font:inherit;transition:transform .12s ease,box-shadow .12s ease;border:1px solid var(--border,#e8eaf0)}
.crm-stage-filter:hover{transform:translateY(-2px);box-shadow:0 5px 15px rgba(30,40,60,.08)}
.crm-stage-filter:focus-visible{outline:2px solid #7897bc;outline-offset:2px}
/* CRM usability polish: pipeline cards are interactive stage filters */
.crm-stage-filter{width:100%;text-align:inherit;cursor:pointer;color:var(--text,#253247);font:inherit;transition:transform .12s ease,box-shadow .12s ease;border:1px solid var(--border,#e8eaf0)}
.crm-stage-filter:hover{transform:translateY(-2px);box-shadow:0 5px 15px rgba(30,40,60,.08)}
.crm-stage-filter:focus-visible{outline:2px solid #7897bc;outline-offset:2px}
/* CRM usability polish: pipeline cards are interactive stage filters */
.crm-stage-filter{width:100%;text-align:inherit;cursor:pointer;color:var(--text,#253247);font:inherit;transition:transform .12s ease,box-shadow .12s ease;border:1px solid var(--border,#e8eaf0)}
.crm-stage-filter:hover{transform:translateY(-2px);box-shadow:0 5px 15px rgba(30,40,60,.08)}
.crm-stage-filter:focus-visible{outline:2px solid #7897bc;outline-offset:2px}
/* CRM usability polish: pipeline cards are interactive stage filters */
.crm-stage-filter{width:100%;text-align:inherit;cursor:pointer;color:var(--text,#253247);font:inherit;transition:transform .12s ease,box-shadow .12s ease;border:1px solid var(--border,#e8eaf0)}
.crm-stage-filter:hover{transform:translateY(-2px);box-shadow:0 5px 15px rgba(30,40,60,.08)}
.crm-stage-filter:focus-visible{outline:2px solid #7897bc;outline-offset:2px}
/* Pass143 Backup & Recovery polish */
.backup-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:8px 2px 20px;flex-wrap:wrap}.backup-hero h1{margin:4px 0 8px;font-size:clamp(22px,2.3vw,30px);font-weight:750;letter-spacing:-.3px}.backup-hero p{margin:0;color:var(--muted,#788397);font-size:13px}.backup-eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:700;color:#7788a5}.backup-primary{padding:12px 20px!important;border-radius:12px!important;box-shadow:0 6px 18px rgba(245,111,35,.18)}.backup-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.backup-metric{background:var(--card,#fff);border:1px solid var(--border,#e7eaf0);border-radius:15px;padding:17px 19px;min-width:0;box-shadow:0 4px 16px rgba(30,45,70,.035)}.backup-metric span,.backup-metric small{display:block;color:var(--muted,#778398);font-size:11px}.backup-metric strong{display:block;font-size:clamp(16px,1.5vw,21px);font-weight:750;margin:8px 0;overflow-wrap:anywhere}.backup-metric .backup-ok{color:#21966a}.backup-settings-panel,.backup-history-panel{border-radius:17px!important;padding:22px!important}.backup-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.backup-panel-head h3{margin:0 0 6px;font-size:16px;font-weight:750}.backup-panel-head p{margin:0;color:var(--muted,#778398);font-size:12px}.backup-pill{font-size:11px;font-weight:700;padding:7px 11px;border-radius:999px;white-space:nowrap}.backup-pill.on{background:#e9f8f0;color:#1c8c5c}.backup-pill.off{background:#f0f2f5;color:#778398}.backup-controls{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;align-items:center;gap:14px;padding:18px;background:linear-gradient(120deg,rgba(32,135,90,.045),rgba(245,111,35,.035));border:1px solid var(--border,#e7eaf0);border-radius:13px}.backup-toggle{display:flex;align-items:center;gap:11px;cursor:pointer}.backup-toggle input{width:18px;height:18px;accent-color:#21875a}.backup-toggle b,.backup-toggle small{display:block}.backup-toggle b{font-size:13px}.backup-toggle small{font-size:11px;color:var(--muted,#778398);margin-top:4px}.backup-time-field{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:650}.backup-time-field input{min-height:39px;padding:7px 11px;border:1px solid var(--border,#dfe4ec);border-radius:9px;background:var(--card,#fff);color:inherit}.backup-controls button{min-height:39px;border-radius:9px}.backup-note{display:block;margin-top:12px;color:var(--muted,#788397);font-size:11px;line-height:1.8}.backup-files-head{margin-top:24px}.backup-actions{display:flex;gap:12px;flex-wrap:wrap}.backup-actions button{min-height:42px;border-radius:10px}.backup-history-caption{font-size:11px;color:var(--muted,#788397);padding:7px 10px;background:var(--surface,#f5f6f8);border-radius:8px}.backup-history-panel table{border-collapse:separate;border-spacing:0}.backup-history-panel th{font-size:11px;color:var(--muted,#778398);font-weight:700}.backup-history-panel td{font-size:12px;padding-top:13px;padding-bottom:13px}@media(max-width:900px){.backup-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.backup-controls{grid-template-columns:1fr auto}.backup-controls button{grid-column:1/-1}}@media(max-width:560px){.backup-metrics{grid-template-columns:1fr}.backup-controls{grid-template-columns:1fr}.backup-time-field{justify-content:space-between}.backup-controls button{grid-column:auto}.backup-settings-panel,.backup-history-panel{padding:15px!important}}

/* Pass144: header tools polish */
.tyke-global-search{position:relative;min-width:270px;max-width:420px;flex:1}
.tyke-global-search input{width:100%;outline:none}
.tyke-global-search-results,.tyke-notification-panel{position:absolute;top:calc(100% + 10px);z-index:10050;background:var(--panel,#fff);color:var(--text,#20242a);border:1px solid var(--border,#e4e7eb);border-radius:14px;box-shadow:0 18px 48px rgba(16,24,40,.18);overflow:hidden;direction:rtl}
.tyke-global-search-results{left:0;right:0;max-height:min(65vh,520px);overflow:auto}
.tyke-global-search-item{display:flex;align-items:center;gap:12px;width:100%;text-align:right;padding:12px 14px;background:transparent;border:0;border-bottom:1px solid var(--border,#edf0f3);cursor:pointer;color:inherit}
.tyke-global-search-item:hover,.tyke-global-search-item:focus{background:rgba(255,115,37,.08);outline:none}
.tyke-global-search-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:rgba(255,115,37,.1);color:#f97316;font-weight:700;flex-shrink:0}
.tyke-global-search-text{display:flex;flex-direction:column;gap:3px;min-width:0}.tyke-global-search-text b{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tyke-global-search-text small{font-size:11px;color:var(--muted,#7b8490);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tyke-global-search-empty{padding:18px 14px;color:var(--muted,#7b8490);font-size:13px}
.tyke-notification-panel{width:min(360px,calc(100vw - 28px));left:0;max-height:75vh;overflow:auto}
.tyke-notification-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid var(--border,#edf0f3)}.tyke-notification-head>div{display:flex;flex-direction:column;gap:4px}.tyke-notification-head small{color:var(--muted,#7b8490);font-size:11px}
.tyke-notification-list{padding:6px 0}.tyke-notification-row{display:flex;align-items:flex-start;gap:10px;padding:11px 14px;width:100%;border:0;background:transparent;color:inherit;text-align:right}.tyke-notification-row[data-alert]{cursor:pointer}.tyke-notification-row[data-alert]:hover{background:rgba(255,115,37,.07)}.tyke-notification-row>span:last-child{display:flex;flex-direction:column;gap:4px}.tyke-notification-row b{font-size:12px}.tyke-notification-row small{font-size:11px;color:var(--muted,#7b8490);line-height:1.5}
.tyke-notification-section{padding:12px 14px 6px;font-size:11px;color:var(--muted,#7b8490);border-top:1px solid var(--border,#edf0f3)}
.alert-dot{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;font-weight:800;flex-shrink:0}.alert-dot.warn{background:#fff4df;color:#b7791b}.alert-dot.danger{background:#fee4e2;color:#b42318}.alert-dot.info{background:#e7f0ff;color:#2563eb}
@media(max-width:700px){.tyke-global-search{min-width:180px}.tyke-notification-panel{left:auto;right:0}}
@media(max-width:700px){.tyke-global-search.is-open{width:min(62vw,320px);padding:0 10px;background:#fff;border:1px solid #eceef1}.tyke-global-search.is-open input{display:block}.tyke-global-search-results{left:auto;right:0;width:min(420px,calc(100vw - 24px))}}

/* PASS147 Fenony ERP visual refresh: global light/dark themes */
:root{--ink:#1B2740;--orange:#4776B8;--orange2:#5B8AC8;--bg:#EAF0F7;--card:#FFFFFF;--muted:#718198;--line:#DCE5EF;--green:#176B50;--blue:#4776B8;--red:#A33333;--lime:#C6D9A7;--shadow:0 3px 16px #1b274012;--primary-navy:#1B2740;--secondary-navy:#263651;--soft-blue:#EAF0F7}
body{background:var(--bg);color:#26344a;transition:background-color .2s,color .2s}
.sidebar{background:var(--ink)}.nav.active{background:#4776B8;box-shadow:0 4px 12px #4776b835}
.primary{background:#4776B8;box-shadow:0 4px 10px #4776b823}.primary:hover{background:#3b69a8}
.search{background:#f7f9fc;border-color:var(--line)}.topbar{background:var(--card)}
.panel,.kpi,.modal,.quick button,.secondary,.icon-btn{background:var(--card);border-color:var(--line);color:inherit}
.table th{background:#F4F7FB}.table td{border-color:var(--line)}
.orange-bg{background:#E8EFF9;color:#4776B8}.green-bg{background:#DDF3EA;color:#176B50}.blue-bg{background:#E8EFF9;color:#4776B8}.red-bg{background:#FCE5E5;color:#A33333}
.status.low{background:#FFF0D8;color:#8C5A13}.status.ok{background:#DDF3EA;color:#176B50}
.quick button:hover{border-color:#b8cee8;background:#f4f8fd}.quick .qico{color:#4776B8}
.modal-overlay{background:#16223670}.form-grid input,.product-modal textarea{background:var(--card);color:inherit;border-color:var(--line)}
footer span{color:#4776B8}.primary,.nav,.icon-btn,.secondary,.search,.panel,.kpi,.modal,.quick button{transition:background-color .18s,border-color .18s,color .18s,box-shadow .18s}
[data-theme="dark"]{--ink:#182235;--orange:#547EBB;--orange2:#6D95C9;--bg:#151C29;--card:#202B3D;--muted:#AABAD0;--line:#35445A;--green:#6FD2AA;--blue:#7EA6DA;--red:#E58D8D;--lime:#9EBE78;--shadow:0 3px 16px #00000020;color-scheme:dark}
[data-theme="dark"] body{background:var(--bg);color:#F0F4FA}
[data-theme="dark"] .topbar,[data-theme="dark"] .panel,[data-theme="dark"] .kpi,[data-theme="dark"] .modal,[data-theme="dark"] .quick button,[data-theme="dark"] .secondary,[data-theme="dark"] .icon-btn,[data-theme="dark"] .search{background:#202B3D;color:#F0F4FA;border-color:#35445A}
[data-theme="dark"] .table th{background:#253247;color:#AABAD0}
[data-theme="dark"] .table td{border-color:#35445A}
[data-theme="dark"] .search input,[data-theme="dark"] input,[data-theme="dark"] textarea,[data-theme="dark"] select{color:#F0F4FA;background-color:transparent}
[data-theme="dark"] .quick button:hover{background:#263651;border-color:#547EBB}
[data-theme="dark"] .orange-bg,[data-theme="dark"] .blue-bg{background:#293B56;color:#9CC0F0}
[data-theme="dark"] .green-bg{background:#214338;color:#6FD2AA}
[data-theme="dark"] .red-bg{background:#4B3038;color:#E58D8D}
[data-theme="dark"] .status.low{background:#4B3C2C;color:#F1C67B}
[data-theme="dark"] .status.ok{background:#214338;color:#6FD2AA}
[data-theme="dark"] .donut:after{background:#202B3D}
[data-theme="dark"] .gridline{stroke:#35445A}
[data-theme="dark"] .modal-overlay{background:#0008}
.theme-toggle{height:35px;border:1px solid var(--line);background:var(--card);color:inherit;border-radius:9px;padding:0 11px;font:600 12px Cairo,Tahoma,sans-serif;cursor:pointer;white-space:nowrap}
[data-theme="dark"] .theme-toggle{background:#202B3D;border-color:#35445A;color:#F0F4FA}

/* Pass148: header displays signed-in user name */
.tyke-header-user-name{width:auto!important;min-width:0!important;height:34px!important;padding:0 12px!important;border-radius:9px!important;font-family:inherit!important;font-size:12px!important;font-weight:700!important;white-space:nowrap!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:#F0F4FA!important;color:#1B2740!important;border:1px solid #D8E1EC!important}
[data-theme="dark"] .tyke-header-user-name{background:#253247!important;color:#F0F4FA!important;border-color:#35445A!important}
#tykeNotificationsBtn{display:inline-flex;align-items:center;justify-content:center}
#tykeNotificationsBtn svg{display:block}

/* Pass149 — Fenony ERP authentication refresh + accessible theme modes */
.tyke-auth-overlay{background:radial-gradient(ellipse at 15% 12%,rgba(71,118,184,.22),transparent 35%),radial-gradient(ellipse at 88% 82%,rgba(84,126,187,.18),transparent 38%),linear-gradient(135deg,#EAF0F7,#dce6f2 52%,#EAF0F7);transition:background .25s ease}
.tyke-auth-card{background:#fff;border-color:#d9e3ef;box-shadow:0 28px 80px rgba(27,39,64,.18)}
.tyke-auth-brand{background:linear-gradient(115deg,#1B2740,#263651)}
.tyke-auth-mark{background:linear-gradient(145deg,#547EBB,#4776B8);box-shadow:0 8px 20px #4776b833}
.tyke-auth-eyebrow{color:#4776B8}.tyke-auth-body h2{color:#1B2740}
.tyke-auth-field{color:#263651}.tyke-auth-field input{background:#f5f8fc;color:#1B2740;border-color:#d7e1ed;direction:ltr;text-align:left;padding-right:14px;padding-left:44px;caret-color:#4776B8}
.tyke-auth-field input::placeholder{color:#7b8ba2;opacity:1}.tyke-auth-field input:focus{border-color:#4776B8;background:#fff;box-shadow:0 0 0 4px #4776b81a}
.tyke-auth-toggle{left:7px;right:auto;top:7px;background:#eaf0f7;color:#47658c}.tyke-auth-toggle:hover{background:#dce7f4;color:#1B2740}
.tyke-auth-submit{background:linear-gradient(110deg,#547EBB,#4776B8);box-shadow:0 8px 18px #4776b82b}.tyke-auth-submit:hover{box-shadow:0 11px 23px #4776b83d}
.tyke-auth-theme-toggle{position:absolute;left:18px;top:50%;transform:translateY(-50%);z-index:3;border:1px solid #ffffff35;background:#ffffff12;color:#eaf2fc;border-radius:10px;padding:7px 10px;font:600 11px Cairo,Tahoma,sans-serif;cursor:pointer;white-space:nowrap}
.tyke-auth-brand{padding-top:22px;padding-left:30px;padding-right:30px}
.tyke-auth-overlay[data-theme="dark"]{background:radial-gradient(ellipse at 12% 15%,rgba(84,126,187,.18),transparent 34%),radial-gradient(ellipse at 88% 85%,rgba(84,126,187,.2),transparent 38%),linear-gradient(135deg,#151C29,#182235 52%,#151C29)}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-card{background:#202B3D;border-color:#35445A}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-body h2{color:#F0F4FA}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-eyebrow{color:#8FB4E5}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-description{color:#AABAD0}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-field{color:#DCE6F3}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-field input{background:#253247;color:#F0F4FA;border-color:#43546D;color-scheme:dark}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-field input::placeholder{color:#B8C7D9;opacity:1}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-field input:focus{background:#29384F;border-color:#7EA6DA;box-shadow:0 0 0 4px #7ea6da22}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-toggle{background:#35445A;color:#E4EDF8}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-note{border-color:#35445A;color:#AABAD0}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-error{color:#F2A0A0}
@media(max-width:560px){.tyke-auth-theme-toggle{left:10px;top:50%;transform:translateY(-50%);padding:6px 8px;font-size:10px}.tyke-auth-brand{padding-top:16px;padding-left:16px;padding-right:16px}}
.tyke-auth-field{position:relative}

/* Pass152 — comprehensive dark-mode coverage audit remediation */
[data-theme="dark"]{
  --text:#F0F4FA;--surface:#202B3D;--panel:#202B3D;--border:#35445A;--line:#35445A;
  --field:#253247;--field-text:#F0F4FA;--hover:#263651;--table-head:#253247;
}
[data-theme="dark"] body,[data-theme="dark"] .main,[data-theme="dark"] .content,[data-theme="dark"] .app-shell{background-color:var(--bg);color:var(--text)}
[data-theme="dark"] .page-heading p,[data-theme="dark"] .panel-title small,[data-theme="dark"] .kpi-top,[data-theme="dark"] .kpi small,[data-theme="dark"] .footer-note,[data-theme="dark"] footer,[data-theme="dark"] .crumb span,[data-theme="dark"] .crumb b{color:var(--muted)}
[data-theme="dark"] .help-card,[data-theme="dark"] .quick button,[data-theme="dark"] .secondary,[data-theme="dark"] .icon-btn,[data-theme="dark"] .search,[data-theme="dark"] .product-modal,[data-theme="dark"] .modal-content,[data-theme="dark"] .modal-body,[data-theme="dark"] .modal-header,[data-theme="dark"] .modal-footer,[data-theme="dark"] .sale-modal,[data-theme="dark"] .sale-detail-modal,[data-theme="dark"] .sale-payment-modal,[data-theme="dark"] .transfer-modal,[data-theme="dark"] .crm-modal,[data-theme="dark"] .backup-settings-panel,[data-theme="dark"] .backup-history-panel,[data-theme="dark"] .tyke-notepad,[data-theme="dark"] .tyke-note-editor,[data-theme="dark"] .tyke-note-list,[data-theme="dark"] .tyke-profile-card,[data-theme="dark"] .tyke-user-quick-menu,[data-theme="dark"] .tyke-notification-panel,[data-theme="dark"] .tyke-global-search-results{background:var(--surface)!important;color:var(--text)!important;border-color:var(--border)!important}
[data-theme="dark"] .table,[data-theme="dark"] table,[data-theme="dark"] .products-table,[data-theme="dark"] .sale-items-table,[data-theme="dark"] .sale-detail-table-wrap{background:var(--surface);color:var(--text)}
[data-theme="dark"] .table th,[data-theme="dark"] table th,[data-theme="dark"] .products-table th,[data-theme="dark"] .sale-items-table th{background:var(--table-head)!important;color:#B9C9DC!important;border-color:var(--border)!important}
[data-theme="dark"] .table td,[data-theme="dark"] table td,[data-theme="dark"] .products-table td,[data-theme="dark"] .sale-items-table td,[data-theme="dark"] .sale-detail-table-wrap td{border-color:var(--border)!important;color:var(--text)}
[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),[data-theme="dark"] textarea,[data-theme="dark"] select,[data-theme="dark"] .crm-inline-stage,[data-theme="dark"] .backup-time-field input{background-color:var(--field)!important;color:var(--field-text)!important;border-color:var(--border)!important;color-scheme:dark}
[data-theme="dark"] input::placeholder,[data-theme="dark"] textarea::placeholder{color:#AABAD0!important;opacity:1}
[data-theme="dark"] input:focus,[data-theme="dark"] textarea:focus,[data-theme="dark"] select:focus{border-color:#7EA6DA!important;box-shadow:0 0 0 3px #7EA6DA20}
[data-theme="dark"] option{background:#202B3D;color:#F0F4FA}
[data-theme="dark"] .quick button:hover,[data-theme="dark"] .tyke-global-search-item:hover,[data-theme="dark"] .tyke-notification-row:hover,[data-theme="dark"] .nav:not(.active):hover{background:var(--hover)!important;color:var(--note-global-color,var(--text))!important}
[data-theme="dark"] .empty,[data-theme="dark"] .crm-company,[data-theme="dark"] .backup-note,[data-theme="dark"] .backup-panel-head p,[data-theme="dark"] .backup-toggle small,[data-theme="dark"] .backup-history-caption{color:var(--muted)!important}
[data-theme="dark"] .crm-alert,[data-theme="dark"] .crm-task,[data-theme="dark"] .crm-activity-line,[data-theme="dark"] .tyke-note-list-item,[data-theme="dark"] .tyke-notification-section,[data-theme="dark"] .tyke-notification-head{border-color:var(--border)!important}
[data-theme="dark"] .crm-alert{background:#3B3328!important;color:#F1C67B!important;border-color:#665238!important}
[data-theme="dark"] .backup-controls{background:linear-gradient(120deg,#20352F,#293448)!important;border-color:var(--border)!important}
[data-theme="dark"] .backup-pill.off{background:#35445A!important;color:#B9C9DC!important}
[data-theme="dark"] .backup-pill.on{background:#214338!important;color:#6FD2AA!important}
[data-theme="dark"] .tyke-note-content,[data-theme="dark"] .tyke-note-title,[data-theme="dark"] .tyke-note-toolbar{background:var(--surface)!important;color:var(--text)!important;border-color:var(--border)!important}
[data-theme="dark"] .modal-overlay,[data-theme="dark"] .sale-detail-overlay{background:rgba(0,0,0,.72)!important}
[data-theme="dark"] .toast{background:#253247!important;color:#F0F4FA!important;border-color:var(--border)!important}
[data-theme="dark"] .alert-dot.warn{background:#4B3C2C!important;color:#F1C67B!important}
[data-theme="dark"] .alert-dot.danger{background:#4B3038!important;color:#E58D8D!important}
[data-theme="dark"] .alert-dot.info{background:#293B56!important;color:#9CC0F0!important}
[data-theme="dark"] .crm-stage-bar{background:#35445A!important}
[data-theme="dark"] .crm-stage-bar i{background:#7EA6DA!important}
[data-theme="dark"] .crm-hero{filter:brightness(.88)}
[data-theme="dark"] .crm-add{background:#547EBB!important;color:#F0F4FA!important}
[data-theme="dark"] .backup-primary{box-shadow:0 6px 18px rgba(84,126,187,.2)!important}
[data-theme="dark"] .mini-product,[data-theme="dark"] .product-thumb,[data-theme="dark"] .tyke-profile-photo-preview{background:#29384F!important;color:#AABAD0!important;border-color:var(--border)!important}
[data-theme="dark"] .donut:after{background:var(--surface)!important}
[data-theme="dark"] .gridline{stroke:var(--border)!important}
[data-theme="dark"] [style*="background:#fff"],[data-theme="dark"] [style*="background: #fff"],[data-theme="dark"] [style*="background:white"],[data-theme="dark"] [style*="background: white"],[data-theme="dark"] [style*="background-color:#fff"],[data-theme="dark"] [style*="background-color: #fff"]{background-color:var(--surface)!important;color:var(--text)!important;border-color:var(--border)!important}
[data-theme="dark"] [style*="color:#474747"],[data-theme="dark"] [style*="color: #474747"],[data-theme="dark"] [style*="color:#42546d"],[data-theme="dark"] [style*="color: #42546d"]{color:var(--text)!important}
[data-theme="dark"] svg text{fill:var(--text)}
[data-theme="dark"] .tyke-global-search-empty,[data-theme="dark"] .tyke-global-search-text small{color:var(--muted)!important}

/* Pass153 — modal and dynamically-rendered component dark-mode hardening */
[data-theme="dark"]{
  --text:#F0F4FA;--surface:#202B3D;--surface-2:#253247;--panel:#202B3D;--border:#35445A;
  --field:#253247;--field-text:#F0F4FA;--hover:#2B3A52;--table-head:#253247;
}
[data-theme="dark"] .modal,
[data-theme="dark"] .modal>form,
[data-theme="dark"] .modal form,
[data-theme="dark"] .modal-actions,
[data-theme="dark"] .form-grid,
[data-theme="dark"] .product-form-scroll,
[data-theme="dark"] .panel-title,
[data-theme="dark"] .tyke-profile-preview,
[data-theme="dark"] .tyke-profile-section-title,
[data-theme="dark"] .tyke-auth-field,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-body,
[data-theme="dark"] .modal-footer,
[data-theme="dark"] .transfer-modal,
[data-theme="dark"] .sale-modal,
[data-theme="dark"] .sale-detail-modal,
[data-theme="dark"] .sale-payment-modal,
[data-theme="dark"] .crm-modal,
[data-theme="dark"] .backup-settings-panel,
[data-theme="dark"] .backup-history-panel,
[data-theme="dark"] .tyke-profile-card,
[data-theme="dark"] .tyke-notification-panel,
[data-theme="dark"] .tyke-global-search-results{
  background-color:var(--surface)!important;color:var(--text)!important;border-color:var(--border)!important;
}
[data-theme="dark"] .modal-actions,
[data-theme="dark"] .modal-footer,
[data-theme="dark"] .form-actions,
[data-theme="dark"] [class*="modal-footer"],
[data-theme="dark"] [class*="modal-actions"]{
  background:var(--surface)!important;color:var(--text)!important;border-color:var(--border)!important;
}
[data-theme="dark"] .modal-overlay .modal,
[data-theme="dark"] .modal-overlay .modal *:not(svg):not(path){
  border-color:var(--border);
}
[data-theme="dark"] .modal-overlay .modal label,
[data-theme="dark"] .modal-overlay .modal small,
[data-theme="dark"] .modal-overlay .modal .muted,
[data-theme="dark"] .modal-overlay .modal [class*="hint"],
[data-theme="dark"] .modal-overlay .modal [class*="caption"]{color:var(--muted)!important}
[data-theme="dark"] .modal-overlay .modal h1,
[data-theme="dark"] .modal-overlay .modal h2,
[data-theme="dark"] .modal-overlay .modal h3,
[data-theme="dark"] .modal-overlay .modal h4,
[data-theme="dark"] .modal-overlay .modal strong,
[data-theme="dark"] .modal-overlay .modal b{color:var(--text)}
[data-theme="dark"] .modal-overlay .modal hr{border-color:var(--border)!important;opacity:.9}
[data-theme="dark"] .modal-overlay .modal input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
[data-theme="dark"] .modal-overlay .modal textarea,
[data-theme="dark"] .modal-overlay .modal select,
[data-theme="dark"] .modal-overlay .modal .form-grid input,
[data-theme="dark"] .modal-overlay .modal .form-grid select,
[data-theme="dark"] .modal-overlay .modal .form-grid textarea{
  background:var(--field)!important;color:var(--field-text)!important;border-color:var(--border)!important;color-scheme:dark;
}
[data-theme="dark"] .modal-overlay .modal input::placeholder,
[data-theme="dark"] .modal-overlay .modal textarea::placeholder{color:#AABAD0!important;opacity:1}
[data-theme="dark"] .modal-overlay .modal button.secondary,
[data-theme="dark"] .modal-overlay .modal .secondary{background:var(--surface-2)!important;color:var(--text)!important;border-color:var(--border)!important}
[data-theme="dark"] .modal-overlay .modal button.primary,
[data-theme="dark"] .modal-overlay .modal .primary{background:#547EBB!important;color:#fff!important;border-color:#547EBB!important}
[data-theme="dark"] .modal-overlay .modal .table th,
[data-theme="dark"] .modal-overlay .modal table th{background:var(--table-head)!important;color:#B9C9DC!important}
[data-theme="dark"] .modal-overlay .modal .table td,
[data-theme="dark"] .modal-overlay .modal table td{background:var(--surface)!important;color:var(--text)!important;border-color:var(--border)!important}
[data-theme="dark"] .modal-overlay .modal [style*="background-color: rgb(255"],
[data-theme="dark"] .modal-overlay .modal [style*="background: rgb(255"],
[data-theme="dark"] .modal-overlay .modal [style*="background-color: white"],
[data-theme="dark"] .modal-overlay .modal [style*="background: white"],
[data-theme="dark"] .modal-overlay .modal [style*="background-color: #fff"],
[data-theme="dark"] .modal-overlay .modal [style*="background: #fff"]{background:var(--surface)!important;color:var(--text)!important}
[data-theme="dark"] .tyke-profile-card .modal-actions{background:var(--surface)!important}
[data-theme="dark"] .tyke-user-quick-menu button{background:var(--surface)!important;color:var(--text)!important}
[data-theme="dark"] .tyke-global-search-item,[data-theme="dark"] .tyke-notification-row{background:var(--surface)!important;color:var(--text)!important;border-color:var(--border)!important}
[data-theme="dark"] .crm-task,[data-theme="dark"] .crm-activity-line,[data-theme="dark"] .tyke-note-list-item{background:var(--surface)!important;color:var(--text)!important}
[data-theme="dark"] .backup-controls,[data-theme="dark"] .backup-history-item,[data-theme="dark"] .backup-card{color:var(--text)!important;border-color:var(--border)!important}
[data-theme="dark"] .tyke-note-content[contenteditable="true"]{caret-color:#7EA6DA;color:var(--text)!important}
[data-theme="dark"] .tyke-auth-overlay{color-scheme:dark}
[data-theme="dark"] .modal-overlay .modal{box-shadow:0 20px 60px rgba(0,0,0,.45)}
[data-theme="dark"] .modal-overlay .modal .modal-actions button:focus-visible,
[data-theme="dark"] .modal-overlay .modal input:focus-visible,
[data-theme="dark"] .modal-overlay .modal select:focus-visible{outline:2px solid #7EA6DA;outline-offset:1px}
[data-theme="light"] .modal-overlay .modal{color:#30343A}
[data-theme="light"] .modal-overlay .modal .modal-actions{background:var(--card);color:inherit}

/* Pass154 — root-level theme tokenization and modal surface normalization */
:root{
  --theme-bg:var(--bg);--theme-surface:var(--card);--theme-surface-2:#F4F7FB;
  --theme-text:#26344A;--theme-muted:var(--muted);--theme-border:var(--line);
  --theme-field:#F5F8FC;--theme-field-text:#1B2740;--theme-hover:#E8EFF9;
}
[data-theme="dark"]{
  --theme-bg:#151C29;--theme-surface:#202B3D;--theme-surface-2:#253247;
  --theme-text:#F0F4FA;--theme-muted:#AABAD0;--theme-border:#35445A;
  --theme-field:#253247;--theme-field-text:#F0F4FA;--theme-hover:#2B3A52;
}
[data-theme="dark"] body,[data-theme="dark"] .app-shell,[data-theme="dark"] .main,[data-theme="dark"] .content{background:var(--theme-bg)!important;color:var(--theme-text)!important}
[data-theme="dark"] .topbar,[data-theme="dark"] .panel,[data-theme="dark"] .kpi,[data-theme="dark"] .quick button,[data-theme="dark"] .secondary,[data-theme="dark"] .icon-btn,[data-theme="dark"] .search,[data-theme="dark"] .products-toolbar,[data-theme="dark"] .product-modal,[data-theme="dark"] .sale-payment-modal,[data-theme="dark"] .sale-modal,[data-theme="dark"] .sale-detail-modal,[data-theme="dark"] .transfer-modal,[data-theme="dark"] .crm-modal,[data-theme="dark"] .backup-card,[data-theme="dark"] .backup-history-item,[data-theme="dark"] .backup-settings-panel,[data-theme="dark"] .backup-history-panel,[data-theme="dark"] .tyke-profile-card,[data-theme="dark"] .tyke-user-quick-menu,[data-theme="dark"] .tyke-notification-panel,[data-theme="dark"] .tyke-global-search-results,[data-theme="dark"] .tyke-notepad,[data-theme="dark"] .tyke-note-editor,[data-theme="dark"] .tyke-note-list,[data-theme="dark"] .modal,[data-theme="dark"] [class*="modal-content"],[data-theme="dark"] [class*="dialog-content"]{background-color:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
[data-theme="dark"] .modal-overlay>*,[data-theme="dark"] .sale-detail-overlay>*,[data-theme="dark"] [role="dialog"]{background-color:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
[data-theme="dark"] .modal-overlay [class*="header"],[data-theme="dark"] .modal-overlay [class*="body"],[data-theme="dark"] .modal-overlay [class*="footer"],[data-theme="dark"] .modal-overlay [class*="actions"],[data-theme="dark"] .modal-overlay form,[data-theme="dark"] .modal-overlay>div>div{background-color:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
[data-theme="dark"] .modal-overlay label,[data-theme="dark"] .modal-overlay p,[data-theme="dark"] .modal-overlay small,[data-theme="dark"] .modal-overlay span,[data-theme="dark"] [role="dialog"] label,[data-theme="dark"] [role="dialog"] p,[data-theme="dark"] [role="dialog"] small{color:inherit}
[data-theme="dark"] .modal-overlay input,[data-theme="dark"] .modal-overlay textarea,[data-theme="dark"] .modal-overlay select,[data-theme="dark"] [role="dialog"] input,[data-theme="dark"] [role="dialog"] textarea,[data-theme="dark"] [role="dialog"] select{background:var(--theme-field)!important;color:var(--theme-field-text)!important;border-color:var(--theme-border)!important;color-scheme:dark}
[data-theme="dark"] .modal-overlay input::placeholder,[data-theme="dark"] .modal-overlay textarea::placeholder,[data-theme="dark"] [role="dialog"] input::placeholder,[data-theme="dark"] [role="dialog"] textarea::placeholder{color:var(--theme-muted)!important;opacity:1}
[data-theme="dark"] .modal-overlay button:not(.primary):not(.tyke-auth-submit),[data-theme="dark"] [role="dialog"] button:not(.primary):not(.tyke-auth-submit){background:var(--theme-surface-2)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
[data-theme="dark"] .modal-overlay button.primary,[data-theme="dark"] [role="dialog"] button.primary,[data-theme="dark"] .modal-overlay .tyke-auth-submit{background:#547EBB!important;color:#fff!important;border-color:#547EBB!important}
[data-theme="dark"] .modal-overlay table,[data-theme="dark"] .modal-overlay .table,[data-theme="dark"] [role="dialog"] table{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
[data-theme="dark"] .modal-overlay th,[data-theme="dark"] [role="dialog"] th{background:var(--theme-surface-2)!important;color:#C3D2E5!important;border-color:var(--theme-border)!important}
[data-theme="dark"] .modal-overlay td,[data-theme="dark"] [role="dialog"] td{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
/* Catch common inline light-color declarations in dynamically created modal nodes. */
[data-theme="dark"] [style*="background:#fff"],[data-theme="dark"] [style*="background: #fff"],[data-theme="dark"] [style*="background-color:#fff"],[data-theme="dark"] [style*="background-color: #fff"],[data-theme="dark"] [style*="background:white"],[data-theme="dark"] [style*="background: white"],[data-theme="dark"] [style*="background-color:white"],[data-theme="dark"] [style*="background-color: white"],[data-theme="dark"] [style*="rgb(255, 255, 255)"],[data-theme="dark"] [style*="rgb(255,255,255)"]{background-color:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
[data-theme="dark"] [style*="color:#333"],[data-theme="dark"] [style*="color: #333"],[data-theme="dark"] [style*="color:#444"],[data-theme="dark"] [style*="color: #444"],[data-theme="dark"] [style*="color:#555"],[data-theme="dark"] [style*="color: #555"],[data-theme="dark"] [style*="color:#666"],[data-theme="dark"] [style*="color: #666"],[data-theme="dark"] [style*="color:rgb(38, 52, 74)"],[data-theme="dark"] [style*="color: rgb(38, 52, 74)"]{color:var(--theme-text)!important}
[data-theme="dark"] .modal-overlay hr,[data-theme="dark"] [role="dialog"] hr{border-color:var(--theme-border)!important}
[data-theme="dark"] .modal-overlay .modal-actions,[data-theme="dark"] .modal-overlay .modal-footer,[data-theme="dark"] .modal-overlay .form-actions,[data-theme="dark"] .modal-overlay [class*="footer"],[data-theme="dark"] .modal-overlay [class*="actions"]{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
[data-theme="dark"] .modal-overlay .status,[data-theme="dark"] [role="dialog"] .status{filter:saturate(.85) brightness(.9)}
[data-theme="dark"] .modal-overlay .primary,[data-theme="dark"] [role="dialog"] .primary{color:#fff!important}
[data-theme="light"] .modal-overlay>*,[data-theme="light"] [role="dialog"]{color:#30343A}

/* Pass155: consolidated dark-theme remediation for remaining inline/light surfaces */
[data-theme="dark"]{color-scheme:dark;--bg:#151C29;--card:#202B3D;--ink:#F0F4FA;--muted:#AABAD0;--line:#35445A;--theme-bg:#151C29;--theme-surface:#202B3D;--theme-surface-2:#253247;--theme-text:#F0F4FA;--theme-muted:#AABAD0;--theme-border:#35445A;--theme-field:#253247;--theme-field-text:#F0F4FA;--theme-hover:#2B3A52}
[data-theme="dark"] body,[data-theme="dark"] .app-shell,[data-theme="dark"] .main,[data-theme="dark"] .content,[data-theme="dark"] main{background:var(--theme-bg)!important;color:var(--theme-text)!important}
/* White statistic tiles/cards visible in screenshots across business modules */
[data-theme="dark"] [class*="stat-card"],[data-theme="dark"] [class*="stats-card"],[data-theme="dark"] [class*="summary-card"],[data-theme="dark"] [class*="metric-card"],[data-theme="dark"] [class*="total-card"],[data-theme="dark"] [class*="balance-card"],[data-theme="dark"] [class*="financial-card"],[data-theme="dark"] [class*="kpi-card"],[data-theme="dark"] [class*="statistic-card"],[data-theme="dark"] [class*="stats-tile"],[data-theme="dark"] [class*="summary-tile"]{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important;box-shadow:none!important}
[data-theme="dark"] [class*="stat-card"] *,[data-theme="dark"] [class*="stats-card"] *,[data-theme="dark"] [class*="summary-card"] *,[data-theme="dark"] [class*="metric-card"] *,[data-theme="dark"] [class*="total-card"] *,[data-theme="dark"] [class*="balance-card"] *,[data-theme="dark"] [class*="financial-card"] *,[data-theme="dark"] [class*="kpi-card"] *,[data-theme="dark"] [class*="statistic-card"] *,[data-theme="dark"] [class*="stats-tile"] *,[data-theme="dark"] [class*="summary-tile"] *{color:inherit}
/* Common white/light inline background declarations, including dynamically built nodes */
[data-theme="dark"] [style*="background:#fff" i],[data-theme="dark"] [style*="background: #fff" i],[data-theme="dark"] [style*="background-color:#fff" i],[data-theme="dark"] [style*="background-color: #fff" i],[data-theme="dark"] [style*="background:white" i],[data-theme="dark"] [style*="background: white" i],[data-theme="dark"] [style*="background-color:white" i],[data-theme="dark"] [style*="background-color: white" i],[data-theme="dark"] [style*="rgb(255, 255, 255)" i],[data-theme="dark"] [style*="rgb(255,255,255)" i],[data-theme="dark"] [style*="rgb(250, 250, 250)" i],[data-theme="dark"] [style*="rgb(248, 249, 250)" i],[data-theme="dark"] [style*="rgb(245, 246, 248)" i],[data-theme="dark"] [style*="background:#f" i],[data-theme="dark"] [style*="background: #f" i],[data-theme="dark"] [style*="background-color:#f" i],[data-theme="dark"] [style*="background-color: #f" i]{background-color:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
/* Readability: inline dark text on dark surfaces and pale text on light surfaces */
[data-theme="dark"] [style*="color:#222" i],[data-theme="dark"] [style*="color: #222" i],[data-theme="dark"] [style*="color:#333" i],[data-theme="dark"] [style*="color: #333" i],[data-theme="dark"] [style*="color:#444" i],[data-theme="dark"] [style*="color: #444" i],[data-theme="dark"] [style*="color:#555" i],[data-theme="dark"] [style*="color: #555" i],[data-theme="dark"] [style*="color:#666" i],[data-theme="dark"] [style*="color: #666" i]{color:var(--theme-text)!important}
[data-theme="dark"] [style*="color:#fff" i],[data-theme="dark"] [style*="color: #fff" i],[data-theme="dark"] [style*="color:white" i],[data-theme="dark"] [style*="color: white" i]{color:var(--theme-text)!important}
[data-theme="dark"] .modal-overlay,[data-theme="dark"] .sale-detail-overlay,[data-theme="dark"] [role="dialog"]{background-color:rgba(5,9,15,.72)!important}
[data-theme="dark"] .modal-overlay .modal,[data-theme="dark"] .sale-detail-modal,[data-theme="dark"] .sale-detail-content,[data-theme="dark"] .sale-detail-header,[data-theme="dark"] .sale-detail-footer,[data-theme="dark"] .transfer-modal,[data-theme="dark"] .transfer-summary,[data-theme="dark"] .sale-payment-modal,[data-theme="dark"] .sale-payment-summary{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
[data-theme="dark"] input,[data-theme="dark"] textarea,[data-theme="dark"] select{color:var(--theme-field-text);background-color:var(--theme-field);border-color:var(--theme-border);color-scheme:dark}
[data-theme="dark"] input::placeholder,[data-theme="dark"] textarea::placeholder{color:var(--theme-muted)!important;opacity:1}
[data-theme="dark"] .table th,[data-theme="dark"] table th,[data-theme="dark"] .table thead,[data-theme="dark"] table thead{background:var(--theme-surface-2)!important;color:var(--theme-muted)!important;border-color:var(--theme-border)!important}
[data-theme="dark"] .table td,[data-theme="dark"] table td,[data-theme="dark"] .table tr,[data-theme="dark"] table tr{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
[data-theme="dark"] .modal-overlay .modal-actions,[data-theme="dark"] .modal-overlay .modal-footer,[data-theme="dark"] .modal-overlay .form-actions,[data-theme="dark"] .sale-detail-footer,[data-theme="dark"] [class*="footer"]{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
[data-theme="dark"] .primary,[data-theme="dark"] button.primary,[data-theme="dark"] .tyke-auth-submit{background:#4776B8!important;color:#fff!important;border-color:#4776B8!important}
[data-theme="dark"] .secondary,[data-theme="dark"] button:not(.primary):not(.tyke-auth-submit){background:var(--theme-surface-2);color:var(--theme-text);border-color:var(--theme-border)}
[data-theme="dark"] hr{border-color:var(--theme-border)!important}
[data-theme="dark"] .orange-bg{background:#3D2B25!important;color:#FFB27E!important}
[data-theme="dark"] .green-bg{background:#203A31!important;color:#8BE0B8!important}
[data-theme="dark"] .blue-bg{background:#24364F!important;color:#9BC3F5!important}
[data-theme="dark"] .red-bg{background:#422A31!important;color:#FFADB7!important}
[data-theme="light"]{color-scheme:light}
/* Dynamic inline nodes are styled by selectors above, so no observer or mutation is needed. */

/* Pass156: direct fixes for the dark-mode surfaces shown in user screenshots */
[data-theme="dark"] .unit-pricing-box,
[data-theme="dark"] .unit-price-grid,
[data-theme="dark"] .unit-pricing-box label,
[data-theme="dark"] .unit-pricing-box>strong,
[data-theme="dark"] .unit-pricing-box small{
  background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important;
}
[data-theme="dark"] .unit-pricing-box{background:var(--theme-surface-2)!important;box-shadow:none!important}
[data-theme="dark"] .unit-pricing-box input{background:var(--theme-field)!important;color:var(--theme-field-text)!important;border-color:var(--theme-border)!important}
[data-theme="dark"] .sale-detail-info>div,
[data-theme="dark"] .sale-detail-summary,
[data-theme="dark"] .sale-detail-note,
[data-theme="dark"] .sale-detail-table-wrap{background:var(--theme-surface-2)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
[data-theme="dark"] .sale-detail-info small,
[data-theme="dark"] .sale-detail-summary span,
[data-theme="dark"] .sale-detail-note small,
[data-theme="dark"] .sale-detail-note p{color:var(--theme-muted)!important}
[data-theme="dark"] .sale-detail-summary .net,
[data-theme="dark"] .sale-detail-summary .net span{color:var(--theme-text)!important;border-color:var(--theme-border)!important}
[data-theme="dark"] .sale-detail-header{background:var(--theme-surface-2)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
[data-theme="dark"] .sale-detail-header small{color:var(--theme-muted)!important}
[data-theme="dark"] .sale-detail-footer{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
[data-theme="dark"] .sale-detail-print{background:var(--theme-surface-2)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
[data-theme="dark"] .brand strong{color:var(--theme-text)!important}
[data-theme="dark"] .brand small{color:var(--theme-muted)!important}
[data-theme="dark"] .nav.active{background:#4776B8!important;color:#fff!important}
[data-theme="dark"] .sidebar{background:#182235!important;color:var(--theme-text)!important}
[data-theme="dark"] .side-label,[data-theme="dark"] .chev{color:var(--theme-muted)!important}

/* Pass157 — screenshot-driven dark theme repairs (exact affected components) */
[data-theme="dark"] .transfer-modal-heading,
[data-theme="dark"] .transfer-modal-heading h3,
[data-theme="dark"] .transfer-modal-heading p,
[data-theme="dark"] .transfer-modal-heading .transfer-close{
  background:var(--theme-surface-2)!important;
  color:var(--theme-text)!important;
  border-color:var(--theme-border)!important;
}
[data-theme="dark"] .transfer-modal-heading .transfer-heading-icon{
  background:#253247!important;color:#8fb8eb!important;border-color:#35445a!important;
}
[data-theme="dark"] .transfer-stock-info{
  background:var(--theme-surface-2)!important;color:#9fc5ff!important;border-color:var(--theme-border)!important;
}
[data-theme="dark"] .transfer-summary{
  background:var(--theme-surface)!important;color:var(--theme-muted)!important;border-color:var(--theme-border)!important;
}
[data-theme="dark"] .sale-totals,
[data-theme="dark"] .sale-total-summary,
[data-theme="dark"] .invoice-total-summary{
  background:var(--theme-surface-2)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important;
}
[data-theme="dark"] .sale-totals *{color:inherit!important}
[data-theme="dark"] .tyke-pin-screen{
  background:var(--theme-bg)!important;color:var(--theme-text)!important;
}
[data-theme="dark"] .tyke-pin-card{
  background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important;box-shadow:0 18px 50px rgba(0,0,0,.28)!important;
}
[data-theme="dark"] .tyke-pin-card h2{color:var(--theme-text)!important}
[data-theme="dark"] .tyke-pin-card p,[data-theme="dark"] .tyke-pin-card small{color:var(--theme-muted)!important}
[data-theme="dark"] .tyke-pin-card input{background:var(--theme-field)!important;color:var(--theme-field-text)!important;border-color:var(--theme-border)!important}
[data-theme="dark"] .unit-pricing-box{background:var(--theme-surface-2)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important;background-image:none!important}
[data-theme="dark"] .unit-pricing-box>strong,[data-theme="dark"] .unit-price-grid label,[data-theme="dark"] .unit-pricing-box small{color:var(--theme-muted)!important;background:transparent!important}
[data-theme="dark"] .unit-price-grid input{background:var(--theme-field)!important;color:var(--theme-field-text)!important;border-color:var(--theme-border)!important}

/* Pass157 — screenshot-driven dark theme repairs (exact affected components) */
[data-theme="dark"] .transfer-modal-heading,
[data-theme="dark"] .transfer-modal-heading h3,
[data-theme="dark"] .transfer-modal-heading p,
[data-theme="dark"] .transfer-modal-heading .transfer-close{background:var(--theme-surface-2)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
[data-theme="dark"] .transfer-modal-heading .transfer-heading-icon{background:#253247!important;color:#8fb8eb!important;border-color:#35445a!important}
[data-theme="dark"] .transfer-stock-info{background:var(--theme-surface-2)!important;color:#9fc5ff!important;border-color:var(--theme-border)!important}
[data-theme="dark"] .transfer-summary{background:var(--theme-surface)!important;color:var(--theme-muted)!important;border-color:var(--theme-border)!important}
[data-theme="dark"] .sale-totals,[data-theme="dark"] .sale-total-summary,[data-theme="dark"] .invoice-total-summary{background:var(--theme-surface-2)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
[data-theme="dark"] .sale-totals *{color:inherit!important}
[data-theme="dark"] .tyke-pin-screen{background:var(--theme-bg)!important;color:var(--theme-text)!important}
[data-theme="dark"] .tyke-pin-card{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important;box-shadow:0 18px 50px rgba(0,0,0,.28)!important}
[data-theme="dark"] .tyke-pin-card h2{color:var(--theme-text)!important}
[data-theme="dark"] .tyke-pin-card p,[data-theme="dark"] .tyke-pin-card small{color:var(--theme-muted)!important}
[data-theme="dark"] .tyke-pin-card input{background:var(--theme-field)!important;color:var(--theme-field-text)!important;border-color:var(--theme-border)!important}
[data-theme="dark"] .unit-pricing-box{background:var(--theme-surface-2)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important;background-image:none!important}
[data-theme="dark"] .unit-pricing-box>strong,[data-theme="dark"] .unit-price-grid label,[data-theme="dark"] .unit-pricing-box small{color:var(--theme-muted)!important;background:transparent!important}
[data-theme="dark"] .unit-price-grid input{background:var(--theme-field)!important;color:var(--theme-field-text)!important;border-color:var(--theme-border)!important}
/* Pass158: professional inventory audit and sales return dialogs */
.tyke-audit-modal,.sale-return-modal{background:var(--surface,var(--card));color:var(--text);border:1px solid var(--border,var(--line));box-shadow:0 24px 72px #0004}
.tyke-audit-modal .stat-card,.sale-return-modal .stat-card{background:var(--card);color:var(--text);border-color:var(--border,var(--line))}
.tyke-audit-modal .stat-card h2,.sale-return-modal .stat-card h2{color:var(--text);font-size:clamp(14px,2vw,21px)}
.tyke-audit-finding{background:var(--card);color:var(--text)}
.sale-return-modal .sale-return-head{background:var(--surface);color:var(--text)}
.sale-return-modal .sale-return-reason{margin:12px 0;padding:12px;border:1px solid var(--border,var(--line));border-radius:12px;background:var(--card);color:var(--text)}
.sale-return-modal label{display:block;color:var(--text);font-size:12px;font-weight:700}
.sale-return-modal input,.sale-return-modal select{background:var(--input-bg,var(--card));color:var(--text);border:1px solid var(--border,var(--line));border-radius:9px;padding:9px;font:inherit;min-height:36px}
.sale-return-modal .muted{display:block;font-size:10px;color:var(--muted,var(--secondary-text));margin-top:3px}
.sale-return-modal .sale-return-bottom{margin-top:14px;padding:12px;border:1px solid var(--border,var(--line));border-radius:12px;background:var(--surface)}
.sale-return-modal .sale-return-total{display:grid;grid-template-columns:repeat(3,minmax(130px,1fr));gap:10px}
.sale-return-modal .sale-return-total>div{background:var(--card);border:1px solid var(--border,var(--line));border-radius:10px;padding:10px}
.sale-return-modal .sale-return-total small{display:block;color:var(--muted,var(--secondary-text));font-size:11px;margin-bottom:5px}
.sale-return-modal .sale-return-total strong{display:block;color:var(--text);font-size:17px}
.sale-return-modal .sale-return-actions{background:var(--surface);color:var(--text);border-top:1px solid var(--border,var(--line));padding:14px 24px;position:sticky;bottom:0}
[data-theme="dark"] .tyke-audit-modal .stat-card,[data-theme="dark"] .sale-return-modal .stat-card,[data-theme="dark"] .sale-return-modal .sale-return-total>div{background:var(--theme-surface,var(--surface));border-color:var(--theme-border,var(--border));color:var(--theme-text,var(--text))}
[data-theme="dark"] .tyke-audit-modal .tyke-audit-finding,[data-theme="dark"] .sale-return-modal .sale-return-reason,[data-theme="dark"] .sale-return-modal .sale-return-bottom{background:var(--theme-surface,var(--surface));color:var(--theme-text,var(--text));border-color:var(--theme-border,var(--border))}
[data-theme="dark"] .sale-return-modal input,[data-theme="dark"] .sale-return-modal select{background:var(--theme-input,var(--card));color:var(--theme-text,var(--text));border-color:var(--theme-border,var(--border))}
@media(max-width:700px){.sale-return-modal .sale-return-summary,.tyke-audit-modal .stats-grid{grid-template-columns:repeat(2,minmax(120px,1fr))!important}.sale-return-modal .sale-return-total{grid-template-columns:1fr}.sale-return-modal .sale-return-actions{padding:12px 14px}}

/* Pass159 Notepad color tools + dark theme fixes */
.tyke-note-toolbar input[type=color]{flex:0 0 35px;min-width:35px;}
.tyke-note-content span[style*="background-color"]{border-radius:2px;padding:0 1px;}
[data-theme="dark"] .tyke-note-list-item{background:var(--theme-surface,#202b3d)!important;border-bottom-color:var(--theme-border,#35445a)!important;color:var(--theme-text,#f0f4fa)!important}
[data-theme="dark"] .tyke-note-list-item b{color:var(--theme-text,#f0f4fa)!important}
[data-theme="dark"] .tyke-note-list-item small{color:var(--theme-muted,#aabad0)!important}
[data-theme="dark"] .tyke-note-list-item.selected{background:var(--theme-table,#253247)!important}
[data-theme="dark"] .tyke-note-title,[data-theme="dark"] .tyke-note-toolbar,[data-theme="dark"] .tyke-note-status{background:var(--theme-surface,#202b3d)!important;border-color:var(--theme-border,#35445a)!important;color:var(--theme-text,#f0f4fa)!important}
[data-theme="dark"] .tyke-note-title input,[data-theme="dark"] .tyke-note-list-head input{background:var(--theme-table,#253247)!important;color:var(--theme-text,#f0f4fa)!important;border-color:var(--theme-border,#35445a)!important}
[data-theme="dark"] .tyke-note-toolbar button,[data-theme="dark"] .tyke-note-toolbar select{background:var(--theme-table,#253247)!important;color:var(--theme-text,#f0f4fa)!important;border-color:var(--theme-border,#35445a)!important}
/* Pass160 — Fenony Sheets and Tasks */
.fenony-sheet-panel{padding:12px;overflow:hidden}.fenony-sheet-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.fenony-sheet-toolbar label{display:flex;align-items:center;gap:6px;color:var(--theme-muted,var(--muted));font-size:12px}.fenony-sheet-toolbar input{background:var(--theme-field,var(--input-bg));color:var(--theme-field-text,var(--text));border:1px solid var(--theme-border,var(--line));border-radius:8px;padding:8px;min-width:100px}.fenony-sheet-toolbar label:nth-child(2){flex:1}.fenony-sheet-toolbar label:nth-child(2) input{width:100%}.fenony-sheet-toolbar small{width:100%;color:var(--theme-muted,var(--muted));font-size:11px}.fenony-sheet-wrap{overflow:auto;max-height:65vh;border:1px solid var(--theme-border,var(--line));border-radius:10px}.fenony-grid{border-collapse:collapse;table-layout:fixed;min-width:100%;background:var(--theme-surface,var(--card));color:var(--theme-text,var(--text));direction:ltr}.fenony-grid th{min-width:64px;background:var(--theme-surface-2,var(--bg));color:var(--theme-muted,var(--muted));font-weight:600;text-align:center;border:1px solid var(--theme-border,var(--line));padding:5px}.fenony-grid th:first-child{min-width:42px;position:sticky;left:0}.fenony-grid td{border:1px solid var(--theme-border,var(--line));min-width:100px;height:30px;padding:0}.fenony-grid td div{min-height:29px;padding:5px 7px;outline:none;color:var(--theme-text,var(--text));background:var(--theme-field,var(--card));white-space:nowrap}.fenony-grid td div:focus{outline:2px solid var(--button,#4776B8);outline-offset:-2px}.fenony-sheet-tabs{display:flex;gap:6px;overflow:auto;margin-top:10px}.fenony-sheet-tabs button{background:var(--theme-surface-2,var(--bg));color:var(--theme-text,var(--text));border:1px solid var(--theme-border,var(--line));padding:8px 14px;border-radius:8px;white-space:nowrap}.fenony-sheet-tabs button.active{border-color:var(--button,#4776B8);box-shadow:inset 0 -2px var(--button,#4776B8)}
.task-toolbar{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}.task-toolbar input,.task-toolbar select{background:var(--theme-field,var(--card));color:var(--theme-field-text,var(--text));border:1px solid var(--theme-border,var(--line));border-radius:9px;padding:10px}.task-toolbar input{flex:1;min-width:200px}.fenony-task{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;border:1px solid var(--theme-border,var(--line));background:var(--theme-surface,var(--card));border-radius:12px;margin:9px 0}.fenony-task.done{opacity:.78}.fenony-task.done strong{text-decoration:line-through;color:var(--theme-muted,var(--muted))}.fenony-task-main{min-width:0;flex:1}.fenony-task-main strong{display:block;color:var(--theme-text,var(--text));margin-bottom:5px}.fenony-task-main small{display:block;color:var(--theme-muted,var(--muted));white-space:pre-wrap}.task-meta{display:flex;gap:9px;flex-wrap:wrap;margin-top:8px;font-size:11px;color:var(--theme-muted,var(--muted))}.task-priority{padding:3px 8px;border-radius:999px}.task-priority.high{background:#fce5e5;color:#a33333}.task-priority.medium{background:#fff0d8;color:#8c5a13}.task-priority.low{background:#ddf3ea;color:#176b50}.task-done-date{color:#2f9d75}.fenony-task-actions{display:flex;gap:6px;flex-wrap:wrap}.fenony-task-actions button{white-space:nowrap}@media(max-width:700px){.fenony-task{align-items:flex-start;flex-direction:column}.fenony-task-actions{width:100%}.fenony-task-actions button{flex:1}.fenony-sheet-toolbar{align-items:stretch}}
[data-theme="dark"] .fenony-grid th,[data-theme="dark"] .fenony-grid td,[data-theme="dark"] .fenony-grid td div{background-color:var(--theme-surface-2)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
.tyke-task-stats{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}
.tyke-task-progressbar{height:9px;border-radius:999px;background:var(--line,#334155);overflow:hidden;margin-top:8px}
.tyke-task-progressbar span{display:block;height:100%;background:linear-gradient(90deg,#4b8ee8,#4ad28b);border-radius:999px;transition:width .25s ease}
.tyke-task-panel{padding:14px}
.tyke-task-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.tyke-task-toolbar input{flex:1;min-width:180px}
.tyke-task-toolbar select{min-width:130px}
.tyke-task-card{align-items:flex-start;gap:14px;border:1px solid var(--line,#334155);border-radius:12px;margin:10px 0;padding:14px;background:var(--card,#1e293b);transition:transform .12s ease,border-color .12s ease}
.tyke-task-card:hover{border-color:#4b8ee8;transform:translateY(-1px)}
.tyke-task-card.done{opacity:.78}
.tyke-task-card .fenony-task-main{min-width:0;flex:1}
.tyke-task-card .fenony-task-main strong{font-size:14px}
.tyke-task-card .fenony-task-main small{display:block;margin:5px 0 8px;line-height:1.6}
.tyke-task-chip{display:inline-flex;padding:3px 8px;border-radius:999px;background:#4776b822;border:1px solid #4776b866;font-size:11px}
.tyke-task-checklist{display:grid;gap:5px;margin-top:10px;padding:9px;border-radius:8px;background:rgba(80,110,150,.08)}
.tyke-task-checklist label{display:flex;align-items:center;gap:7px;font-size:12px}
.tyke-task-checklist input{accent-color:#4776b8}
.tyke-task-modal-overlay,.tyke-task-pin-overlay{z-index:100;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
.tyke-task-modal{width:min(700px,96vw);max-height:90vh;overflow:auto;border-radius:20px;padding:26px;box-sizing:border-box}
.tyke-task-modal label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:750;margin:0;min-width:0;line-height:1.45}
.tyke-task-modal input:not([type=checkbox]),.tyke-task-modal select,.tyke-task-modal textarea{display:block;width:100%;box-sizing:border-box;margin:0;min-height:46px;padding:11px 13px;border-radius:11px;border:1px solid var(--line,#334155);background:var(--bg,#111827);color:inherit;font:inherit;outline:0}
.tyke-task-modal textarea{resize:vertical;line-height:1.65}
.tyke-task-modal .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0}
.tyke-task-pin{width:min(440px,94vw);text-align:center}
.tyke-task-pin form{display:grid;gap:12px}
.tyke-task-pin input[name=pin]{text-align:center;font-size:20px;letter-spacing:5px}
.tyke-task-pin .modal-actions{justify-content:center}
.tyke-task-pin-hint{display:block;color:var(--muted,#94a3b8);margin-top:4px}
.tyke-task-lock-icon{font-size:42px;margin:8px auto}
.tyke-task-pin-overlay .modal{box-shadow:0 22px 70px rgba(0,0,0,.35)}
/* PASS173: Consolidated daily-task modal design tokens and layout. Scoped to task modals/section. */
.tyke-task-modal-overlay,.tyke-task-pin-overlay{z-index:100;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);padding:clamp(12px,3vw,24px);}
.tyke-task-modal-overlay .modal.tyke-task-form-premium{width:min(720px,96vw);max-height:min(92vh,900px);overflow:auto;box-sizing:border-box;border-radius:22px;padding:clamp(18px,2.5vw,28px);}
.tyke-task-modal-overlay .tyke-task-form-premium .panel-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 20px;padding:0 0 16px;border-bottom:1px solid var(--task-modal-line);background:transparent;}
.tyke-task-modal-overlay .tyke-task-form-premium .panel-title h3{margin:0;font-size:clamp(18px,2vw,22px);font-weight:850;line-height:1.4;color:var(--task-modal-title);}
.tyke-task-modal-overlay .tyke-task-form-premium form{display:grid;gap:16px;}
.tyke-task-modal-overlay .tyke-task-form-premium form>label,.tyke-task-modal-overlay .tyke-task-form-premium .form-grid>label{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0;margin:0;color:var(--task-modal-label);font-size:13px;font-weight:750;line-height:1.5;}
.tyke-task-modal-overlay .tyke-task-form-premium .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0;}
.tyke-task-modal-overlay .tyke-task-form-premium input:not([type=checkbox]),.tyke-task-modal-overlay .tyke-task-form-premium select,.tyke-task-modal-overlay .tyke-task-form-premium textarea{display:block;width:100%;box-sizing:border-box;min-width:0;min-height:46px;margin:0;padding:12px 14px;border-radius:12px;border:1px solid var(--task-modal-line);background:var(--task-modal-field);color:var(--task-modal-text);font:inherit;box-shadow:none;outline:0;transition:border-color .16s,box-shadow .16s,background .16s;}
.tyke-task-modal-overlay .tyke-task-form-premium textarea{min-height:104px;resize:vertical;line-height:1.65;}
.tyke-task-modal-overlay .tyke-task-form-premium input::placeholder,.tyke-task-modal-overlay .tyke-task-form-premium textarea::placeholder{color:var(--task-modal-muted);opacity:1;}
.tyke-task-modal-overlay .tyke-task-form-premium input:focus,.tyke-task-modal-overlay .tyke-task-form-premium select:focus,.tyke-task-modal-overlay .tyke-task-form-premium textarea:focus{border-color:var(--task-modal-focus);box-shadow:0 0 0 3px var(--task-modal-focus-ring);}
.tyke-task-modal-overlay .tyke-task-form-premium .modal-actions{display:flex;align-items:center;justify-content:flex-start;gap:10px;flex-wrap:wrap;margin:2px 0 0;padding:16px 0 0;border-top:1px solid var(--task-modal-line);background:transparent!important;border-radius:0;}
.tyke-task-modal-overlay .tyke-task-form-premium .modal-actions button,.tyke-task-pin-overlay .tyke-pin-actions button{min-height:42px;padding:0 18px;border-radius:11px;font-weight:800;}
.tyke-task-modal-overlay .tyke-task-form-premium .primary,.tyke-task-pin-overlay .primary{background:var(--task-modal-primary)!important;border:1px solid var(--task-modal-primary-border)!important;color:#fff!important;box-shadow:0 4px 12px var(--task-modal-primary-shadow)!important;}
.tyke-task-modal-overlay .tyke-task-form-premium .primary:hover,.tyke-task-pin-overlay .primary:hover{filter:brightness(1.05);}
.tyke-task-modal-overlay .tyke-task-form-premium .secondary,.tyke-task-pin-overlay .secondary{background:var(--task-modal-secondary)!important;border:1px solid var(--task-modal-line)!important;color:var(--task-modal-text)!important;box-shadow:none!important;}
.tyke-task-pin-overlay .modal.tyke-task-pin-premium,.tyke-task-pin-overlay .modal.tyke-task-lock-premium{width:min(460px,94vw);box-sizing:border-box;border-radius:22px;padding:clamp(22px,3vw,30px);text-align:center;overflow:hidden;}
.tyke-task-pin-overlay .tyke-pin-close{position:absolute;top:16px;inset-inline-start:16px;width:38px;min-width:38px;height:38px;min-height:38px;padding:0;border-radius:11px;display:grid;place-items:center;}
.tyke-task-pin-overlay .tyke-pin-shield{width:64px;height:64px;margin:4px auto 16px;border-radius:18px;display:grid;place-items:center;font-size:27px;line-height:1;}
.tyke-task-pin-overlay .tyke-pin-header h3,.tyke-task-pin-overlay .tyke-task-lock-premium h2{margin:0 0 10px;font-size:clamp(20px,2.2vw,25px);font-weight:850;line-height:1.35;color:var(--task-modal-title);}
.tyke-task-pin-overlay .tyke-pin-header p,.tyke-task-pin-overlay .tyke-task-lock-premium>p{margin:0 0 20px;color:var(--task-modal-muted);font-size:13px;line-height:1.75;}
.tyke-task-pin-overlay form{display:grid;gap:14px;margin:0;}
.tyke-task-pin-overlay .tyke-pin-field{display:grid;gap:8px;margin:0;color:var(--task-modal-label);text-align:right;font-size:12px;font-weight:800;}
.tyke-task-pin-overlay .tyke-pin-input-wrap{display:flex;align-items:stretch;gap:6px;padding:5px;border:1px solid var(--task-modal-line);border-radius:14px;background:var(--task-modal-field);box-shadow:none;min-width:0;}
.tyke-task-pin-overlay .tyke-pin-input-wrap input{flex:1;min-width:0;min-height:48px;padding:10px 12px;border:0!important;border-radius:10px;background:transparent!important;color:var(--task-modal-text)!important;text-align:center;letter-spacing:4px;font-size:18px;font-weight:800;box-shadow:none!important;outline:0;}
.tyke-task-pin-overlay .tyke-pin-input-wrap input::placeholder{color:var(--task-modal-muted);opacity:1;letter-spacing:1px;}
.tyke-task-pin-overlay .tyke-pin-eye{flex:0 0 42px;width:42px;min-height:42px;border:1px solid var(--task-modal-line)!important;border-radius:10px;background:var(--task-modal-secondary)!important;color:var(--task-modal-accent)!important;padding:0;display:grid;place-items:center;font-size:15px;box-shadow:none!important;}
.tyke-task-pin-overlay .tyke-pin-input-wrap:focus-within{border-color:var(--task-modal-focus);box-shadow:0 0 0 3px var(--task-modal-focus-ring);}
.tyke-task-pin-overlay .tyke-pin-note,.tyke-task-pin-overlay .tyke-lock-foot{margin:0;padding:12px 14px;border-radius:12px;border:1px solid var(--task-modal-line);background:var(--task-modal-note);color:var(--task-modal-muted);font-size:12px;line-height:1.7;}
.tyke-task-pin-overlay .tyke-pin-actions{display:flex;gap:10px;align-items:stretch;margin:0;}
.tyke-task-pin-overlay .tyke-pin-actions button{flex:1;}
.tyke-task-pin-overlay .tyke-task-lock-premium .tyke-pin-shield{margin-top:4px;}
.tyke-task-pin-overlay .tyke-task-lock-premium .tyke-pin-note{margin-top:14px;}
/* Light palette: clean white surfaces, cool gray-blue borders, readable navy text. */
html:not([data-theme=dark]),html[data-theme=light]{--task-modal-bg:#ffffff;--task-modal-title:#172b47;--task-modal-text:#243750;--task-modal-label:#435a78;--task-modal-muted:#72849d;--task-modal-line:#d8e3ef;--task-modal-field:#f8fbff;--task-modal-focus:#4c82c4;--task-modal-focus-ring:rgba(76,130,196,.16);--task-modal-primary:#3979bd;--task-modal-primary-border:#3979bd;--task-modal-primary-shadow:rgba(57,121,189,.18);--task-modal-secondary:#f5f8fc;--task-modal-note:#f2f7fc;--task-modal-accent:#4776b8;}
html:not([data-theme=dark]) .modal-overlay.tyke-task-modal-overlay,html:not([data-theme=dark]) .modal-overlay.tyke-task-pin-overlay,html[data-theme=light] .modal-overlay.tyke-task-modal-overlay,html[data-theme=light] .modal-overlay.tyke-task-pin-overlay{background:rgba(19,35,58,.32);}
html:not([data-theme=dark]) .modal-overlay.tyke-task-modal-overlay .modal,html:not([data-theme=dark]) .modal-overlay.tyke-task-pin-overlay .modal,html[data-theme=light] .modal-overlay.tyke-task-modal-overlay .modal,html[data-theme=light] .modal-overlay.tyke-task-pin-overlay .modal{color:var(--task-modal-text);background:linear-gradient(145deg,#fff,#f6f9fd);border:1px solid #d6e1ee;box-shadow:0 22px 58px rgba(23,43,71,.18);}
/* Dark palette: restrained navy base with separated slate fields and calm blue accents. */
html[data-theme=dark]{--task-modal-bg:#18263a;--task-modal-title:#f1f5fb;--task-modal-text:#e3ebf5;--task-modal-label:#c5d3e4;--task-modal-muted:#95a8bf;--task-modal-line:#344a63;--task-modal-field:#101c2d;--task-modal-focus:#6a9bd1;--task-modal-focus-ring:rgba(106,155,209,.17);--task-modal-primary:#4b82c4;--task-modal-primary-border:#5a91ce;--task-modal-primary-shadow:rgba(42,102,168,.22);--task-modal-secondary:#25364b;--task-modal-note:#1c2d42;--task-modal-accent:#b9d0e9;}
html[data-theme=dark] .modal-overlay.tyke-task-modal-overlay,html[data-theme=dark] .modal-overlay.tyke-task-pin-overlay{background:rgba(4,10,18,.78);}
html[data-theme=dark] .modal-overlay.tyke-task-modal-overlay .modal,html[data-theme=dark] .modal-overlay.tyke-task-pin-overlay .modal{color:var(--task-modal-text);background:linear-gradient(145deg,#1d2c42,#172438);border:1px solid #334960;box-shadow:0 26px 70px rgba(0,0,0,.4);}
html[data-theme=dark] .tyke-task-panel,html[data-theme=dark] .tyke-task-card,html[data-theme=dark] .tyke-task-stats>*,html[data-theme=dark] .tyke-task-toolbar,html[data-theme=dark] .tyke-task-checklist{background-color:#19283d;border-color:#344a63;color:#e4edf7;}
html[data-theme=dark] .tyke-task-toolbar input,html[data-theme=dark] .tyke-task-toolbar select,html[data-theme=dark] .tyke-task-panel input,html[data-theme=dark] .tyke-task-panel select,html[data-theme=dark] .tyke-task-panel textarea{background:var(--task-modal-field);color:var(--task-modal-text);border-color:var(--task-modal-line);}
html[data-theme=dark] .tyke-task-toolbar input::placeholder,html[data-theme=dark] .tyke-task-panel input::placeholder,html[data-theme=dark] .tyke-task-panel textarea::placeholder{color:var(--task-modal-muted);}
html[data-theme=dark] .tyke-task-card:hover{border-color:#527294;background-color:#203149;}
html[data-theme=dark] .tyke-task-chip{background:rgba(106,155,209,.12);border-color:rgba(106,155,209,.28);color:#c1d7ef;}
html[data-theme=dark] .tyke-task-progressbar{background:#2a3b51;}
html[data-theme=dark] .tyke-task-checklist label{color:#c5d3e4;}
@media(max-width:650px){.tyke-task-toolbar select{flex:1;min-width:0}.tyke-task-card{flex-direction:column}.tyke-task-card .fenony-task-actions{width:100%}.tyke-task-modal-overlay,.tyke-task-pin-overlay{padding:10px}.tyke-task-modal-overlay .modal.tyke-task-form-premium{width:96vw;padding:16px;border-radius:16px}.tyke-task-modal-overlay .tyke-task-form-premium .form-grid{grid-template-columns:1fr;gap:12px}.tyke-task-pin-overlay .modal.tyke-task-pin-premium,.tyke-task-pin-overlay .modal.tyke-task-lock-premium{padding:22px 16px;border-radius:16px}.tyke-task-pin-overlay .tyke-pin-actions{flex-direction:column}.tyke-task-pin-overlay .tyke-pin-actions button{width:100%;}}
@media(max-height:760px){html[data-theme=dark] .modal-overlay.tyke-task-modal-overlay .modal.tyke-task-form-premium{max-height:92vh;padding:20px}}

/* PASS174: Final interaction polish for the daily-task UI only. */
.tyke-task-modal-overlay .tyke-task-form-premium,
.tyke-task-pin-overlay .tyke-task-pin-premium,
.tyke-task-pin-overlay .tyke-task-lock-premium{isolation:isolate;}
.tyke-task-modal-overlay .tyke-task-form-premium .panel-title button,
.tyke-task-pin-overlay .tyke-pin-close{transition:background-color .16s ease,border-color .16s ease,transform .16s ease;}
.tyke-task-modal-overlay .tyke-task-form-premium button,
.tyke-task-pin-overlay .tyke-task-pin-premium button,
.tyke-task-pin-overlay .tyke-task-lock-premium button{font-family:inherit;cursor:pointer;transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease;}
.tyke-task-modal-overlay .tyke-task-form-premium button:hover,
.tyke-task-pin-overlay .tyke-task-pin-premium button:hover,
.tyke-task-pin-overlay .tyke-task-lock-premium button:hover{transform:translateY(-1px);}
.tyke-task-modal-overlay .tyke-task-form-premium button:active,
.tyke-task-pin-overlay .tyke-task-pin-premium button:active,
.tyke-task-pin-overlay .tyke-task-lock-premium button:active{transform:translateY(0);}
.tyke-task-modal-overlay .tyke-task-form-premium button:focus-visible,
.tyke-task-pin-overlay .tyke-task-pin-premium button:focus-visible,
.tyke-task-pin-overlay .tyke-task-lock-premium button:focus-visible,
.tyke-task-pin-overlay .tyke-pin-input-wrap input:focus-visible{outline:2px solid var(--task-modal-focus)!important;outline-offset:2px;}
.tyke-task-pin-overlay .tyke-pin-shield{border:1px solid var(--task-modal-line);background:linear-gradient(145deg,var(--task-modal-note),var(--task-modal-secondary));box-shadow:inset 0 1px rgba(255,255,255,.08),0 8px 20px rgba(25,70,120,.08);}
.tyke-task-pin-overlay .tyke-pin-note span{display:inline-grid;place-items:center;margin-inline-end:6px;color:var(--task-modal-accent);font-weight:900;}
.tyke-task-pin-overlay .tyke-pin-actions button{min-width:0;white-space:nowrap;}
.tyke-task-modal-overlay .tyke-task-form-premium .modal-actions button{min-width:104px;white-space:nowrap;}
.tyke-task-modal-overlay .tyke-task-form-premium input[type=date]{color-scheme:light;}
html[data-theme=dark] .tyke-task-modal-overlay .tyke-task-form-premium input[type=date]{color-scheme:dark;}
.tyke-task-modal-overlay .tyke-task-form-premium select{cursor:pointer;}
.tyke-task-modal-overlay .tyke-task-form-premium .modal-actions{position:sticky;bottom:-1px;z-index:2;}
html[data-theme=dark] .tyke-task-modal-overlay .tyke-task-form-premium .modal-actions{background:linear-gradient(180deg,rgba(24,38,58,.96),rgba(24,38,58,1))!important;}
html:not([data-theme=dark]) .tyke-task-modal-overlay .tyke-task-form-premium .modal-actions{background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,255,255,1))!important;}
.tyke-task-modal-overlay .tyke-task-form-premium::-webkit-scrollbar,
.tyke-task-pin-overlay .tyke-task-pin-premium::-webkit-scrollbar,
.tyke-task-pin-overlay .tyke-task-lock-premium::-webkit-scrollbar{width:8px;}
.tyke-task-modal-overlay .tyke-task-form-premium::-webkit-scrollbar-thumb,
.tyke-task-pin-overlay .tyke-task-pin-premium::-webkit-scrollbar-thumb,
.tyke-task-pin-overlay .tyke-task-lock-premium::-webkit-scrollbar-thumb{background:var(--task-modal-line);border-radius:999px;}
@media(max-width:650px){
 .tyke-task-modal-overlay .tyke-task-form-premium .modal-actions{position:static;}
 .tyke-task-modal-overlay .tyke-task-form-premium .modal-actions button{flex:1;min-width:0;}
 .tyke-task-pin-overlay .tyke-pin-actions{flex-direction:row;}
 .tyke-task-pin-overlay .tyke-pin-actions button{flex:1;width:auto;}
}
@media(prefers-reduced-motion:reduce){
 .tyke-task-modal-overlay .tyke-task-form-premium button,
 .tyke-task-pin-overlay .tyke-task-pin-premium button,
 .tyke-task-pin-overlay .tyke-task-lock-premium button{transition:none!important;}
 .tyke-task-modal-overlay .tyke-task-form-premium button:hover,
 .tyke-task-pin-overlay .tyke-task-pin-premium button:hover,
 .tyke-task-pin-overlay .tyke-task-lock-premium button:hover{transform:none;}
}

/* Pass175 — premium animated login screen refresh (auth only) */
.tyke-auth-overlay{isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 78% 18%,rgba(71,118,184,.22),transparent 38%),radial-gradient(ellipse at 20% 84%,rgba(65,106,168,.16),transparent 42%),linear-gradient(135deg,#edf3fa 0%,#dfe9f5 52%,#edf3fa 100%);}
.tyke-auth-overlay:before,.tyke-auth-overlay:after{content:"";position:absolute;pointer-events:none;z-index:-1;border-radius:50%;border:1px solid rgba(71,118,184,.12);}
.tyke-auth-overlay:before{width:58vw;height:58vw;min-width:560px;min-height:560px;max-width:1000px;max-height:1000px;right:-18vw;top:-25vw;box-shadow:0 0 0 34px rgba(71,118,184,.035),0 0 0 78px rgba(71,118,184,.025);animation:tykeAuthOrbit 32s linear infinite;}
.tyke-auth-overlay:after{width:38vw;height:38vw;min-width:380px;min-height:380px;max-width:760px;max-height:760px;left:-15vw;bottom:-24vw;background:radial-gradient(circle,rgba(91,143,205,.10),transparent 68%);animation:tykeAuthFloat 9s ease-in-out infinite alternate;}
.tyke-auth-card{position:relative;width:min(500px,100%);border-radius:26px;border:1px solid rgba(109,139,179,.24);box-shadow:0 28px 80px rgba(29,48,78,.20),0 3px 10px rgba(29,48,78,.06);animation:tykeAuthEnter175 .58s cubic-bezier(.2,.7,.2,1) both;}
.tyke-auth-brand{min-height:98px;gap:15px;background:linear-gradient(115deg,#1b2740,#263b59 65%,#2b4b73);}
.tyke-auth-mark{width:52px;height:52px;border-radius:16px;font-size:25px;box-shadow:0 8px 22px rgba(71,118,184,.35);transition:transform .25s,box-shadow .25s;background:linear-gradient(145deg,#72a4df,#4776b8);}
.tyke-auth-card:hover .tyke-auth-mark{transform:translateY(-2px) rotate(-2deg);box-shadow:0 12px 26px rgba(71,118,184,.42);}
.tyke-auth-brand strong{font-size:18px;letter-spacing:.7px}.tyke-auth-brand small{font-size:9px;letter-spacing:1.7px;}
.tyke-auth-theme-toggle{border-color:#ffffff2b;background:rgba(255,255,255,.09);backdrop-filter:blur(8px);transition:background .2s,border-color .2s,transform .2s;}
.tyke-auth-theme-toggle:hover{background:rgba(255,255,255,.16);border-color:#ffffff50;transform:translateY(calc(-50% - 1px));}
.tyke-auth-body{padding:34px 36px 30px}.tyke-auth-eyebrow{display:inline-flex;align-items:center;gap:7px;padding:5px 9px;border-radius:20px;background:#4776b812;color:#4776b8;font-size:11px;letter-spacing:.2px;}
.tyke-auth-body h2{font-size:27px;letter-spacing:-.25px}.tyke-auth-description{margin:9px 0 25px;font-size:13px;}
.tyke-auth-field{position:relative;margin:17px 0;color:#334760;font-size:12px;}
.tyke-auth-field input{height:52px;margin-top:9px;padding:0 16px 0 50px;border-radius:13px;background:#f7faff;border-color:#d5e1ef;box-shadow:inset 0 1px 2px rgba(24,45,74,.025);transition:transform .18s,border-color .18s,box-shadow .18s,background .18s;}
.tyke-auth-field input:hover{border-color:#b8cce3;background:#fff;}
.tyke-auth-field input:focus{transform:translateY(-1px);border-color:#5b89c4;background:#fff;box-shadow:0 0 0 4px rgba(71,118,184,.13),0 5px 14px rgba(41,73,115,.06);}
.tyke-auth-toggle{top:35px;left:8px;width:36px;height:36px;border:1px solid #d8e3f0;background:#eaf1fa;color:#4776b8;border-radius:10px;transition:background .18s,transform .18s,border-color .18s;}
.tyke-auth-toggle:hover{transform:scale(1.04);background:#dce9f8;border-color:#b7cde7;color:#284b76;}
.tyke-auth-submit{min-height:52px;margin-top:13px;border-radius:13px;background:linear-gradient(110deg,#5685c4,#4776b8);box-shadow:0 9px 20px rgba(71,118,184,.23);letter-spacing:.15px;transition:transform .18s,box-shadow .18s,filter .18s;}
.tyke-auth-submit:hover{transform:translateY(-2px);filter:saturate(1.06);box-shadow:0 13px 25px rgba(71,118,184,.30);}
.tyke-auth-submit:active{transform:translateY(0) scale(.99);}
.tyke-auth-note{margin-top:22px;padding-top:15px;color:#7f8ea5;font-size:10.5px;}
.tyke-auth-error{padding:0 2px;}
.tyke-auth-overlay[data-theme="dark"]{background:radial-gradient(ellipse at 78% 18%,rgba(84,126,187,.23),transparent 38%),radial-gradient(ellipse at 20% 84%,rgba(68,105,163,.16),transparent 42%),linear-gradient(135deg,#0b1423 0%,#142238 52%,#0b1423 100%);}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-overlay:before{border-color:rgba(126,166,218,.08);}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-card{background:#1b273a;border-color:#354761;box-shadow:0 30px 90px rgba(0,0,0,.42),0 3px 10px rgba(0,0,0,.16);}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-brand{background:linear-gradient(115deg,#1b2940,#233956 65%,#2b4b73);}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-field input{background:#243349;border-color:#3a4d66;box-shadow:inset 0 1px 2px rgba(0,0,0,.12);}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-field input:hover{background:#283950;border-color:#506782;}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-field input:focus{background:#2a3c55;border-color:#82a9d9;box-shadow:0 0 0 4px rgba(126,166,218,.15),0 5px 14px rgba(0,0,0,.10);}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-toggle{background:#30435d;border-color:#435b78;color:#c8dcf6;}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-toggle:hover{background:#3b5270;border-color:#6485ad;color:#fff;}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-note{border-color:#354761;color:#a9bad0;}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-eyebrow{background:#7ea6da12;color:#91b7e6;}
@keyframes tykeAuthEnter175{from{opacity:0;transform:translate3d(0,18px,0) scale(.985)}to{opacity:1;transform:translate3d(0,0,0) scale(1)}}
@keyframes tykeAuthOrbit{from{transform:rotate(0)}to{transform:rotate(360deg)}}
@keyframes tykeAuthFloat{from{transform:translate3d(0,0,0)}to{transform:translate3d(22px,-18px,0)}}
@media(max-width:560px){.tyke-auth-body{padding:27px 22px 24px}.tyke-auth-body h2{font-size:23px}.tyke-auth-field input{height:49px}.tyke-auth-toggle{top:34px;width:34px;height:34px}.tyke-auth-brand{min-height:82px}}
@media(prefers-reduced-motion:reduce){.tyke-auth-card,.tyke-auth-overlay:before,.tyke-auth-overlay:after,.tyke-auth-mark,.tyke-auth-field input,.tyke-auth-toggle,.tyke-auth-submit,.tyke-auth-theme-toggle{animation:none!important;transition:none!important;transform:none!important}}

/* Pass176 — noticeable, premium login motion refresh (auth screen only) */
.tyke-auth-overlay{background-size:160% 160%,160% 160%,240% 240%;animation:tykeAuthAmbient176 18s ease-in-out infinite alternate;}
.tyke-auth-overlay:before{width:62vw;height:62vw;min-width:620px;min-height:620px;max-width:1100px;max-height:1100px;right:-20vw;top:-27vw;border-color:rgba(71,118,184,.2);box-shadow:0 0 0 26px rgba(71,118,184,.045),0 0 0 64px rgba(71,118,184,.035),0 0 90px rgba(71,118,184,.09);animation:tykeAuthOrbit176 42s linear infinite;}
.tyke-auth-overlay:after{width:42vw;height:42vw;min-width:420px;min-height:420px;max-width:850px;max-height:850px;left:-18vw;bottom:-28vw;animation:tykeAuthFloat176 7.5s ease-in-out infinite alternate;}
.tyke-auth-card{animation:tykeAuthCard176 .82s cubic-bezier(.18,.78,.2,1) both;transform-origin:50% 60%;}
.tyke-auth-brand{position:relative;isolation:isolate;}
.tyke-auth-brand:before{content:"";position:absolute;inset:-60% auto -60% -40%;width:42%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.11),transparent);transform:skewX(-20deg);animation:tykeAuthSweep176 7s ease-in-out infinite;pointer-events:none;z-index:0;}
.tyke-auth-mark{position:relative;z-index:1;animation:tykeAuthMark176 3.6s ease-in-out infinite;}
.tyke-auth-brand strong,.tyke-auth-brand small,.tyke-auth-pill,.tyke-auth-theme-toggle{position:relative;z-index:1;}
.tyke-auth-body>*{animation:tykeAuthItem176 .55s cubic-bezier(.2,.7,.2,1) both;}
.tyke-auth-body>*:nth-child(1){animation-delay:.16s}.tyke-auth-body>*:nth-child(2){animation-delay:.23s}.tyke-auth-body>*:nth-child(3){animation-delay:.3s}.tyke-auth-body form>*:nth-child(1){animation-delay:.37s}.tyke-auth-body form>*:nth-child(2){animation-delay:.45s}.tyke-auth-body form>*:nth-child(3){animation-delay:.53s}.tyke-auth-body form>*:nth-child(4){animation-delay:.59s}.tyke-auth-body form>*:nth-child(5){animation-delay:.64s}
.tyke-auth-field input{position:relative;}
.tyke-auth-toggle{display:grid;place-items:center;}
.tyke-auth-submit{position:relative;overflow:hidden;isolation:isolate;}
.tyke-auth-submit:before{content:"";position:absolute;inset:0;transform:translateX(-130%);background:linear-gradient(100deg,transparent 25%,rgba(255,255,255,.22) 50%,transparent 75%);animation:tykeAuthButtonShine176 5.8s ease-in-out infinite;pointer-events:none;}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-card{box-shadow:0 30px 90px rgba(0,0,0,.44),0 0 0 1px rgba(126,166,218,.045),0 0 40px rgba(71,118,184,.08);}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-overlay:before{border-color:rgba(126,166,218,.14);}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-brand:before{background:linear-gradient(90deg,transparent,rgba(148,190,239,.13),transparent);}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-submit:before{background:linear-gradient(100deg,transparent 25%,rgba(255,255,255,.18) 50%,transparent 75%);}
@keyframes tykeAuthAmbient176{0%{background-position:0% 0%,100% 100%,0% 50%;}100%{background-position:100% 60%,0% 30%,100% 50%;}}
@keyframes tykeAuthOrbit176{to{transform:rotate(360deg);}}
@keyframes tykeAuthFloat176{0%{transform:translate3d(-8px,8px,0) scale(.96);}100%{transform:translate3d(26px,-20px,0) scale(1.04);}}
@keyframes tykeAuthCard176{0%{opacity:0;transform:translate3d(0,34px,0) scale(.94);filter:blur(7px);}70%{opacity:1;filter:blur(0);}100%{opacity:1;transform:translate3d(0,0,0) scale(1);filter:blur(0);}}
@keyframes tykeAuthItem176{0%{opacity:0;transform:translate3d(0,14px,0);}100%{opacity:1;transform:translate3d(0,0,0);}}
@keyframes tykeAuthMark176{0%,100%{transform:translateY(0);box-shadow:0 8px 22px rgba(71,118,184,.28);}50%{transform:translateY(-3px);box-shadow:0 13px 28px rgba(71,118,184,.42);}}
@keyframes tykeAuthSweep176{0%,15%{transform:translateX(0) skewX(-20deg);opacity:0;}35%{opacity:1;}65%,100%{transform:translateX(360%) skewX(-20deg);opacity:0;}}
@keyframes tykeAuthButtonShine176{0%,20%{transform:translateX(-130%);}45%,100%{transform:translateX(130%);}}
@media(max-width:560px){.tyke-auth-overlay:before{right:-55vw;top:-50vw}.tyke-auth-overlay:after{left:-48vw;bottom:-48vw}.tyke-auth-card{animation-duration:.65s}.tyke-auth-body>*{animation-duration:.4s}}
@media(prefers-reduced-motion:reduce){.tyke-auth-overlay,.tyke-auth-overlay:before,.tyke-auth-overlay:after,.tyke-auth-brand:before,.tyke-auth-mark,.tyke-auth-body>* ,.tyke-auth-submit:before{animation:none!important;}}


/* Pass177 — visible auth animation + stacking correction (auth screen only) */
/* The previous decorative pseudo-elements were behind the overlay background (z-index:-1),
   so their animation was effectively hidden. Keep them above the overlay backdrop and
   below the login card. */
.tyke-auth-overlay{isolation:isolate;position:fixed;overflow:hidden;}
.tyke-auth-overlay:before,.tyke-auth-overlay:after{z-index:0;}
.tyke-auth-card{position:relative;z-index:1;}
.tyke-auth-overlay:before{animation:tykeAuthOrbit177 24s linear infinite!important;}
.tyke-auth-overlay:after{animation:tykeAuthFloat177 5.2s ease-in-out infinite alternate!important;}
.tyke-auth-overlay{animation:tykeAuthAmbient177 10s ease-in-out infinite alternate!important;}
.tyke-auth-mark{animation:tykeAuthMark177 2.4s ease-in-out infinite!important;}
.tyke-auth-submit:before{animation:tykeAuthShine177 4.2s ease-in-out infinite!important;}
@keyframes tykeAuthOrbit177{to{transform:rotate(360deg)}}
@keyframes tykeAuthFloat177{0%{transform:translate3d(-12px,10px,0) scale(.92);opacity:.55}100%{transform:translate3d(34px,-26px,0) scale(1.08);opacity:1}}
@keyframes tykeAuthAmbient177{0%{background-position:0% 0%,100% 100%,0% 50%}100%{background-position:100% 75%,0% 20%,100% 50%}}
@keyframes tykeAuthMark177{0%,100%{transform:translateY(0) rotate(0);filter:brightness(1)}50%{transform:translateY(-5px) rotate(1.5deg);filter:brightness(1.16)}}
@keyframes tykeAuthShine177{0%,15%{transform:translateX(-135%);opacity:0}35%{opacity:1}55%,100%{transform:translateX(135%);opacity:0}}
@media(prefers-reduced-motion:reduce){.tyke-auth-overlay,.tyke-auth-overlay:before,.tyke-auth-overlay:after,.tyke-auth-mark,.tyke-auth-submit:before{animation:none!important;}}

/* Pass178 — complete centered Fenony System login identity redesign */
.tyke-auth-overlay{isolation:isolate;position:fixed;overflow:hidden;}
.tyke-auth-overlay:before,.tyke-auth-overlay:after{z-index:0;content:"";pointer-events:none;}
.tyke-auth-overlay:before{width:min(82vw,1120px);height:min(82vw,1120px);min-width:600px;min-height:600px;right:-22vw;top:-38vw;border:1px solid rgba(75,132,202,.20);border-radius:50%;box-shadow:0 0 0 35px rgba(75,132,202,.055),0 0 0 88px rgba(75,132,202,.035),0 0 110px rgba(75,132,202,.08);animation:fenonyLoginOrbit178 48s linear infinite;}
.tyke-auth-overlay:after{width:min(64vw,820px);height:min(64vw,820px);min-width:440px;min-height:440px;left:-24vw;bottom:-40vw;border:1px solid rgba(89,150,221,.18);border-radius:50%;background:radial-gradient(circle,rgba(94,158,230,.12),transparent 68%);box-shadow:0 0 0 26px rgba(75,132,202,.045),0 0 0 65px rgba(75,132,202,.025);animation:fenonyLoginFloat178 12s ease-in-out infinite alternate;}
.tyke-auth-card{position:relative;z-index:2;width:min(460px,100%);overflow:hidden;border-radius:28px;border:1px solid rgba(120,157,202,.28);box-shadow:0 32px 95px rgba(30,57,94,.24),0 0 0 1px rgba(255,255,255,.22);animation:fenonyLoginCard178 .8s cubic-bezier(.18,.8,.22,1) both;}
.tyke-auth-brand.tyke-auth-brand-centered{min-height:205px;display:flex;align-items:center;justify-content:center;padding:34px 24px 24px;background:linear-gradient(135deg,#1b2b46,#264a74 58%,#35669c);text-align:center;overflow:hidden;}
.tyke-auth-brand-centered:after{content:"";position:absolute;width:240px;height:240px;left:-100px;top:-130px;border-radius:50%;border:1px solid rgba(255,255,255,.12);box-shadow:0 0 0 22px rgba(255,255,255,.035),0 0 0 50px rgba(255,255,255,.025);pointer-events:none;}
.tyke-auth-brand-core{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;direction:ltr;}
.tyke-auth-mark{width:74px;height:74px;display:grid;place-items:center;border-radius:23px;font-size:32px;font-weight:800;color:#fff;background:linear-gradient(145deg,#72aaf1,#4178b9);border:1px solid rgba(255,255,255,.26);box-shadow:0 12px 32px rgba(7,20,42,.24),inset 0 1px rgba(255,255,255,.3);animation:fenonyLoginLogo178 3.2s ease-in-out infinite;}
.tyke-auth-brand-name strong{display:block;font-size:24px;font-weight:800;letter-spacing:.25px;color:#fff;text-align:center;}
.tyke-auth-brand-name small{display:block;margin-top:5px;font-size:9px;letter-spacing:2.1px;color:#d2e3f7;text-align:center;direction:ltr;}
.tyke-auth-theme-toggle{position:absolute!important;z-index:3;top:15px;right:15px;left:auto!important;transform:none!important;border:1px solid rgba(255,255,255,.22)!important;background:rgba(14,29,50,.32)!important;color:#eaf3ff!important;border-radius:999px!important;padding:8px 11px!important;font-size:10px!important;backdrop-filter:blur(8px);transition:background .25s,transform .25s,border-color .25s!important;}
.tyke-auth-theme-toggle:hover{transform:translateY(-2px)!important;background:rgba(255,255,255,.13)!important;border-color:rgba(255,255,255,.4)!important;}
.tyke-auth-body{padding:30px 34px 27px;}
.tyke-auth-body h2{font-size:26px;letter-spacing:-.4px;}
.tyke-auth-eyebrow{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:999px;background:#eaf2fc;color:#4776b8;font-size:11px;font-weight:700;}
.tyke-auth-description{line-height:1.8;}
.tyke-auth-field{margin:20px 0;font-weight:700;}
.tyke-auth-field input{height:54px;border-radius:14px;padding-inline:16px;background:#f5f9ff;border-color:#d7e4f3;transition:transform .22s,border-color .22s,box-shadow .22s,background .22s;}
.tyke-auth-field input:focus{transform:translateY(-2px);box-shadow:0 0 0 4px rgba(70,130,200,.13),0 8px 24px rgba(50,88,138,.08);}
.tyke-auth-submit{min-height:55px;border-radius:14px;font-size:14px;font-weight:800;}
.tyke-auth-note{margin-top:24px;padding-top:16px;border-top:1px solid #e2eaf4;line-height:1.7;}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-card{background:#19273c;border-color:#364b66;box-shadow:0 32px 95px rgba(0,0,0,.48),0 0 0 1px rgba(133,175,224,.06);}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-brand.tyke-auth-brand-centered{background:linear-gradient(135deg,#101b2d,#1b3454 58%,#234b76);}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-brand-name strong{color:#f4f8ff;}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-brand-name small{color:#b9d2ef;}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-eyebrow{background:rgba(111,160,219,.12);color:#a6c9f5;}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-field input{background:#223249;border-color:#3a506c;color:#f0f5fc;}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-field input:hover{background:#273a53;border-color:#526c8c;}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-field input:focus{background:#2a3f59;border-color:#8bb7e8;}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-note{border-color:#354963;color:#a9bbd1;}
@keyframes fenonyLoginOrbit178{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
@keyframes fenonyLoginFloat178{0%{transform:translate3d(-14px,12px,0) scale(.94)}100%{transform:translate3d(28px,-25px,0) scale(1.06)}}
@keyframes fenonyLoginCard178{0%{opacity:0;transform:translate3d(0,30px,0) scale(.96);filter:blur(6px)}65%{filter:blur(0)}100%{opacity:1;transform:translate3d(0,0,0) scale(1);filter:blur(0)}}
@keyframes fenonyLoginLogo178{0%,100%{transform:translateY(0);box-shadow:0 12px 32px rgba(7,20,42,.24),inset 0 1px rgba(255,255,255,.3)}50%{transform:translateY(-4px);box-shadow:0 17px 38px rgba(7,20,42,.32),inset 0 1px rgba(255,255,255,.36)}}
@media(max-width:560px){.tyke-auth-brand.tyke-auth-brand-centered{min-height:190px;padding:32px 20px 20px}.tyke-auth-brand-name strong{font-size:21px}.tyke-auth-mark{width:66px;height:66px;border-radius:20px;font-size:29px}.tyke-auth-body{padding:26px 22px 23px}.tyke-auth-theme-toggle{top:12px;right:12px;padding:7px 9px!important}.tyke-auth-card{border-radius:23px}}
@media(prefers-reduced-motion:reduce){.tyke-auth-overlay:before,.tyke-auth-overlay:after,.tyke-auth-card,.tyke-auth-mark{animation:none!important;transition:none!important;transform:none!important}}
\n/* Pass179 — precise login field alignment and password-toggle repair */
.tyke-auth-body{box-sizing:border-box;}
.tyke-auth-field{position:relative;display:block;box-sizing:border-box;margin:22px 0 26px;line-height:1.5;}
.tyke-auth-field input{margin-top:9px;padding-inline:16px;box-sizing:border-box;}
.tyke-auth-field:has([data-toggle-password]) input{padding-left:58px!important;padding-right:16px!important;}
.tyke-auth-toggle{position:absolute!important;left:8px!important;top:auto!important;bottom:7px!important;width:38px!important;height:38px!important;min-width:38px!important;max-width:38px!important;display:grid!important;place-items:center!important;border:1px solid #c7d7eb!important;border-radius:10px!important;background:#eaf1fb!important;color:#386aa9!important;font-size:17px!important;line-height:1!important;padding:0!important;box-shadow:0 1px 3px rgba(20,45,75,.08)!important;}
.tyke-auth-toggle:hover{background:#dce9f8!important;border-color:#8fb5df!important;transform:translateY(-1px)!important;}
.tyke-auth-toggle:focus-visible{outline:3px solid rgba(72,128,194,.32)!important;outline-offset:2px!important;}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-field{color:#e4edf8;}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-field:has([data-toggle-password]) input{padding-left:58px!important;}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-toggle{background:#17263a!important;color:#a9c8ee!important;border-color:#405976!important;box-shadow:0 1px 3px rgba(0,0,0,.2)!important;}
.tyke-auth-overlay[data-theme="dark"] .tyke-auth-toggle:hover{background:#2a405b!important;border-color:#7da8d7!important;}
@media(max-width:560px){.tyke-auth-field{margin:18px 0 22px}.tyke-auth-toggle{bottom:6px!important;left:6px!important;width:36px!important;height:36px!important;min-width:36px!important;max-width:36px!important}}

/* Pass180 — compact daily-task action footer + clean auth labels */
html[data-theme="dark"] .tyke-auth-overlay .tyke-auth-field,
html[data-theme="light"] .tyke-auth-overlay .tyke-auth-field,
html:not([data-theme="dark"]) .tyke-auth-overlay .tyke-auth-field{
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
.tyke-auth-overlay .tyke-auth-field{
  display:block!important;
  width:100%!important;
  padding:0!important;
  border-radius:0!important;
  line-height:1.45!important;
  margin:18px 0 22px!important;
}
.tyke-auth-overlay .tyke-auth-field input{
  margin-top:7px!important;
}
.tyke-task-modal-overlay .tyke-task-form-premium .modal-actions{
  display:inline-flex!important;
  width:max-content!important;
  max-width:100%!important;
  align-self:start!important;
  justify-self:start!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:9px!important;
  flex-wrap:nowrap!important;
  margin:4px 0 0!important;
  padding:10px!important;
  border:1px solid var(--task-modal-line)!important;
  border-radius:14px!important;
  background:var(--task-modal-secondary)!important;
  box-shadow:0 5px 16px rgba(18,35,58,.06)!important;
}
.tyke-task-modal-overlay .tyke-task-form-premium .modal-actions button{
  flex:0 0 auto!important;
  min-width:112px!important;
  min-height:42px!important;
  padding-inline:18px!important;
}
@media(max-width:650px){
  .tyke-task-modal-overlay .tyke-task-form-premium .modal-actions{
    display:flex!important;
    width:100%!important;
    max-width:none!important;
    box-sizing:border-box!important;
    justify-content:stretch!important;
    align-self:stretch!important;
  }
  .tyke-task-modal-overlay .tyke-task-form-premium .modal-actions button{
    flex:1 1 0!important;
    min-width:0!important;
  }
}

/* Pass181 — Daily Tasks premium visual refresh + Fenony F brand mark */
.tyke-task-panel{padding:18px!important;border-radius:18px!important;}
.tyke-task-toolbar{padding:7px!important;border:1px solid var(--theme-border,var(--line))!important;border-radius:14px!important;background:var(--theme-surface,var(--card))!important;box-shadow:0 5px 18px rgba(18,35,58,.035)!important;}
.tyke-task-toolbar input,.tyke-task-toolbar select{min-height:42px!important;border-radius:11px!important;transition:border-color .18s,box-shadow .18s,transform .18s!important;}
.tyke-task-toolbar input:focus,.tyke-task-toolbar select:focus{outline:none!important;border-color:#5a91d2!important;box-shadow:0 0 0 3px rgba(71,118,184,.13)!important;}
.tyke-task-card{position:relative!important;overflow:hidden!important;border-radius:16px!important;padding:17px 18px!important;box-shadow:0 4px 14px rgba(17,35,58,.045)!important;}
.tyke-task-card:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:linear-gradient(180,#4776b8,#76a8e7);opacity:.65;pointer-events:none;}
.tyke-task-card:hover{box-shadow:0 9px 22px rgba(24,57,92,.09)!important;transform:translateY(-2px)!important;}
.tyke-task-card .fenony-task-main strong{font-size:15px!important;letter-spacing:.1px;}
.tyke-task-card .task-meta{align-items:center;gap:8px!important;}
.tyke-task-card .tyke-task-chip,.tyke-task-card .task-meta>span:not(.task-priority):not(.task-done-date){padding:4px 8px;border-radius:999px;background:rgba(128,150,177,.09);}
.tyke-task-card .task-priority{font-weight:800;padding:4px 10px!important;}
.tyke-task-card .task-priority.urgent{background:#ffe3e7;color:#a51f3b;}
.tyke-task-card .fenony-task-actions{align-items:center;gap:7px!important;}
.tyke-task-card .fenony-task-actions button{min-height:38px;border-radius:10px!important;transition:transform .16s,box-shadow .16s,border-color .16s!important;}
.tyke-task-card .fenony-task-actions button:hover{transform:translateY(-1px);}
.tyke-task-favorite{width:38px;min-width:38px;padding:0!important;font-size:19px!important;color:#8ba4c2!important;}
.tyke-task-favorite.is-favorite{color:#e4a936!important;background:rgba(228,169,54,.13)!important;border-color:rgba(228,169,54,.38)!important;}
html[data-theme="dark"] .tyke-task-panel,html[data-theme="dark"] .tyke-task-card,html[data-theme="dark"] .tyke-task-toolbar{background:linear-gradient(145deg,#1d2c42,#19273a)!important;}
html[data-theme="dark"] .tyke-task-card{border-color:#354b65!important;box-shadow:0 7px 22px rgba(0,0,0,.13)!important;}
html[data-theme="dark"] .tyke-task-card:hover{background:linear-gradient(145deg,#22354e,#1b2c42)!important;border-color:#527da8!important;}
html[data-theme="dark"] .tyke-task-card .tyke-task-chip,html[data-theme="dark"] .tyke-task-card .task-meta>span:not(.task-priority):not(.task-done-date){background:rgba(132,164,202,.12);color:#b8cbe1;}
html[data-theme="dark"] .tyke-task-favorite{color:#8ea9c7!important;background:#22334a!important;border-color:#3a526e!important;}
html[data-theme="dark"] .tyke-task-favorite.is-favorite{color:#ffd166!important;background:rgba(255,209,102,.12)!important;border-color:rgba(255,209,102,.35)!important;}
.brand img{background:transparent!important;padding:0!important;border-radius:12px!important;filter:drop-shadow(0 3px 8px rgba(38,98,169,.22));}
@media(max-width:650px){.tyke-task-card{padding:15px!important}.tyke-task-card .fenony-task-actions{display:grid;grid-template-columns:auto repeat(3,minmax(0,1fr));}.tyke-task-favorite{width:100%!important;}}
@media(prefers-reduced-motion:reduce){.tyke-task-card,.tyke-task-card:hover,.tyke-task-toolbar input,.tyke-task-toolbar select,.tyke-task-card .fenony-task-actions button{transition:none!important;transform:none!important;}}

/* PASS182: persistent notification center refinements */
#tykeNotificationsBtn{position:relative;overflow:visible!important}
.tyke-notify-badge{position:absolute;top:-5px;right:-5px;min-width:17px;height:17px;padding:0 4px;display:grid;place-items:center;border-radius:999px;background:#dc3545;color:#fff;font:700 10px/1 sans-serif;border:2px solid var(--panel,#fff);box-shadow:0 2px 8px rgba(220,53,69,.28);z-index:2}
#tykeNotificationsBtn.has-unread svg{animation:tykeBellPulse 2.8s ease-in-out infinite}
@keyframes tykeBellPulse{0%,100%{transform:rotate(0)}8%{transform:rotate(9deg)}16%{transform:rotate(-9deg)}24%{transform:rotate(5deg)}32%{transform:rotate(-4deg)}40%{transform:rotate(0)}}
.tyke-notification-panel{width:min(390px,calc(100vw - 24px));max-height:min(72vh,620px);border-radius:16px;box-shadow:0 20px 60px rgba(10,22,40,.28);backdrop-filter:blur(14px);animation:tykeNotifyEnter .16s ease-out;transform-origin:top right}
@keyframes tykeNotifyEnter{from{opacity:0;transform:translateY(-7px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.tyke-notification-head{padding:15px 16px;background:linear-gradient(135deg,rgba(71,118,184,.12),transparent);gap:12px}
.tyke-notification-head b{font-size:14px}.tyke-notification-actions{display:flex;justify-content:space-between;gap:8px;padding:8px 12px;border-bottom:1px solid var(--border,#e4e7eb)}
.tyke-notification-actions button{border:1px solid var(--border,#e4e7eb);background:transparent;color:inherit;border-radius:8px;padding:7px 10px;font-size:11px;cursor:pointer;transition:background .15s,border-color .15s}
.tyke-notification-actions button:hover{background:rgba(71,118,184,.1);border-color:#4776B8}
.tyke-notification-list{padding:8px;display:flex;flex-direction:column;gap:7px}
.tyke-notice-card{display:flex;align-items:flex-start;gap:10px;padding:11px;border:1px solid var(--border,#e4e7eb);border-radius:12px;background:var(--surface,#f7f9fc);color:var(--text,#1B2740);transition:transform .15s,border-color .15s,background .15s;position:relative}
.tyke-notice-card.is-unread{border-inline-start:3px solid #4776B8;background:rgba(71,118,184,.07)}.tyke-notice-card.is-read{opacity:.82}.tyke-notice-card.is-actionable{cursor:pointer}.tyke-notice-card.is-actionable:hover{transform:translateY(-1px);border-color:#4776B8;background:rgba(71,118,184,.12)}
.tyke-notice-icon{width:30px;height:30px;display:grid;place-items:center;flex:0 0 30px;border-radius:10px;background:rgba(71,118,184,.12);color:#4776B8;font-weight:800}
.tyke-notice-icon.warning{background:rgba(217,145,31,.14);color:#b7791b}.tyke-notice-icon.danger{background:rgba(204,55,55,.13);color:#b42318}.tyke-notice-icon.activity{background:rgba(71,118,184,.12);color:#4776B8}
.tyke-notice-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}.tyke-notice-copy b{font-size:12px;line-height:1.5}.tyke-notice-copy small{font-size:11px;color:var(--muted,#718198);line-height:1.6;overflow-wrap:anywhere}.tyke-notice-copy time{font-size:10px;color:var(--muted,#718198);margin-top:2px}
.tyke-notice-tools{display:flex;gap:4px;flex-shrink:0}.tyke-notice-tools button{width:26px;height:26px;border:1px solid var(--border,#e4e7eb);border-radius:7px;background:transparent;color:inherit;cursor:pointer;font-size:12px}.tyke-notice-tools button:hover{background:rgba(71,118,184,.12);border-color:#4776B8}
.tyke-notification-empty{padding:28px 16px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--muted,#718198)}.tyke-notification-empty span{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:rgba(28,139,95,.12);color:#16835d;font-size:18px}.tyke-notification-empty b{color:var(--text,#1B2740);font-size:13px}.tyke-notification-empty small{font-size:11px}
[data-theme="dark"] .tyke-notification-panel,[data-theme="dark"] .tyke-notice-card{background:var(--theme-surface,#202d40);color:var(--theme-text,#f1f5fa);border-color:var(--theme-border,#354760)}[data-theme="dark"] .tyke-notice-card.is-unread{background:rgba(71,118,184,.12)}[data-theme="dark"] .tyke-notification-actions{border-color:var(--theme-border,#354760)}[data-theme="dark"] .tyke-notification-actions button,[data-theme="dark"] .tyke-notice-tools button{border-color:var(--theme-border,#354760);color:var(--theme-text,#f1f5fa)}[data-theme="dark"] .tyke-notification-empty b{color:var(--theme-text,#f1f5fa)}
@media(max-width:700px){.tyke-notification-panel{right:0;left:auto;width:min(390px,calc(100vw - 20px));max-height:72vh}.tyke-notification-actions button{flex:1}}
@media(prefers-reduced-motion:reduce){#tykeNotificationsBtn.has-unread svg,.tyke-notification-panel{animation:none!important}.tyke-notice-card{transition:none}}
/* PASS182: hide the legacy static dot; unread count is now state-driven */
#tykeNotificationsBtn i{display:none!important}

/* PASS183: anchored notification popover, viewport-clamped and independent of header layout */
.tyke-notification-panel{position:fixed!important;top:auto;left:auto;right:auto;z-index:11000;width:min(390px,calc(100vw - 24px));max-height:min(72vh,620px);overflow:hidden;display:flex;flex-direction:column;isolation:isolate;box-shadow:0 22px 70px rgba(7,18,36,.32),0 3px 12px rgba(7,18,36,.12);border:1px solid var(--border,#dce5ef);border-radius:16px;background:var(--panel,#fff);transform-origin:top right}
.tyke-notification-list{overflow-y:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin}
.tyke-notification-head,.tyke-notification-actions{flex:0 0 auto}
@media(max-width:700px){.tyke-notification-panel{width:min(390px,calc(100vw - 20px));max-height:72vh}}

/* Pass184 — premium dark inventory dialogs: warehouse creation, stock adjustment, transfer */
.inventory-modal-overlay{z-index:1200;display:flex;align-items:center;justify-content:center;padding:24px;backdrop-filter:blur(7px);background:rgba(4,10,19,.72)!important;animation:inventoryOverlayIn .18s ease-out both}
.inventory-action-modal{width:min(620px,calc(100vw - 32px));padding:0!important;max-height:min(88vh,760px);overflow:hidden;border-radius:22px!important;display:flex;flex-direction:column;box-shadow:0 28px 90px rgba(0,0,0,.44)!important;animation:inventoryModalIn .22s cubic-bezier(.2,.8,.2,1) both}
.inventory-modal-header{display:flex;align-items:center;gap:15px;padding:22px 24px;border-bottom:1px solid var(--border);background:linear-gradient(130deg,var(--theme-surface-2,#26364e),var(--theme-surface,#202b3d));position:relative}
.inventory-modal-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;flex:0 0 auto;font-size:24px;font-weight:900;background:linear-gradient(145deg,#365f91,#27446d);color:#b9d8ff;border:1px solid #5278a5;box-shadow:inset 0 1px 0 #ffffff22,0 8px 22px #10223d44}
.inventory-modal-icon.adjustment-icon{font-size:27px;background:linear-gradient(145deg,#2f5f8b,#244667);color:#a8d5ff}
.inventory-modal-heading-copy{flex:1;min-width:0}.inventory-modal-heading-copy small{display:block;letter-spacing:1.4px;font-size:9px;font-weight:850;color:#91b6df;margin-bottom:5px}.inventory-modal-heading-copy h3{margin:0;font-size:20px;line-height:1.35;font-weight:850;color:var(--theme-text,#f2f6fc)}.inventory-modal-heading-copy p{margin:5px 0 0;color:var(--theme-muted,#a9b9cf);font-size:12px;line-height:1.6}
.inventory-modal-close{width:38px;height:38px;min-width:38px;padding:0!important;border-radius:11px!important;font-size:19px!important;display:grid;place-items:center;flex:0 0 auto}
.inventory-action-modal form{display:flex;flex-direction:column;min-height:0}.inventory-modal-body{padding:22px 24px;display:grid;gap:17px;overflow:auto;min-height:0}.inventory-field{display:flex!important;flex-direction:column;gap:8px!important;min-width:0;margin:0!important;color:var(--theme-text)!important;font-size:12px!important;font-weight:750!important}.inventory-field>span{display:flex;gap:5px;align-items:center}.inventory-field b{color:#ff9b8e}.inventory-field>span small{color:var(--theme-muted);font-weight:500;font-size:10px}.inventory-field input,.inventory-field select,.inventory-field textarea{width:100%;box-sizing:border-box;min-height:46px;padding:12px 14px;border-radius:12px;border:1px solid var(--theme-border)!important;background:var(--theme-field,#253247)!important;color:var(--theme-text)!important;outline:none;font:inherit;font-size:13px!important;transition:border-color .16s,box-shadow .16s,transform .16s}.inventory-field textarea{resize:vertical;min-height:76px}.inventory-field input:focus,.inventory-field select:focus,.inventory-field textarea:focus{border-color:#6396d5!important;box-shadow:0 0 0 3px rgba(91,145,208,.17);transform:translateY(-1px)}.inventory-field input::placeholder,.inventory-field textarea::placeholder{color:var(--theme-muted);opacity:.8}
.inventory-info-card{display:flex;align-items:flex-start;gap:12px;padding:14px 15px;border-radius:14px;background:linear-gradient(130deg,#1f344b,#233950);border:1px solid #365675;color:#c9def5}.inventory-info-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#285b47;color:#8fe0b5;font-weight:900;flex:0 0 auto}.inventory-info-card strong{display:block;font-size:12px;margin-bottom:4px;color:#e6f2ff}.inventory-info-card small{display:block;font-size:11px;line-height:1.7;color:#adc4dd}
.inventory-modal-footer{display:flex;justify-content:flex-start;align-items:center;gap:10px;padding:16px 24px;border-top:1px solid var(--theme-border);background:var(--theme-surface-2);flex-wrap:wrap}.inventory-modal-footer button{min-height:43px;padding:0 18px;border-radius:11px;font-weight:800}.inventory-modal-footer .primary{box-shadow:0 7px 20px rgba(56,115,183,.2)}
.inventory-adjust-type{display:grid;gap:8px;color:var(--theme-text);font-size:12px;font-weight:800}.inventory-adjust-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.inventory-adjust-options label{margin:0;cursor:pointer;position:relative}.inventory-adjust-options input{position:absolute;opacity:0;pointer-events:none}.inventory-adjust-options label span{display:flex;justify-content:center;align-items:center;min-height:43px;padding:8px 12px;border-radius:12px;border:1px solid var(--theme-border);background:var(--theme-surface-2);color:var(--theme-muted);font-weight:800;transition:.16s}.inventory-adjust-options input:checked+span{border-color:#397e61;background:rgba(38,106,77,.2);color:#9de0ba;box-shadow:0 0 0 2px rgba(63,151,103,.1)}.inventory-adjust-options label:nth-child(2) input:checked+span{border-color:#a85b61;background:rgba(156,60,70,.18);color:#ffb0b5}
.inventory-balance-preview{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;padding:14px;border-radius:15px;border:1px solid var(--theme-border);background:linear-gradient(145deg,var(--theme-surface-2),var(--theme-surface));text-align:center}.inventory-balance-preview>div{display:grid;gap:5px}.inventory-balance-preview small{color:var(--theme-muted);font-size:10px;font-weight:750}.inventory-balance-preview strong{font-size:23px;line-height:1.3;color:var(--theme-text);font-weight:900}.preview-operation{font-size:16px;font-weight:900;color:#91a7c3}.preview-operation.is-positive,.inventory-balance-preview strong.is-positive{color:#77d5a1}.preview-operation.is-negative,.inventory-balance-preview strong.is-negative{color:#ff9b9f}.inventory-adjust-hint{border:1px dashed var(--theme-border);background:var(--theme-surface-2);color:var(--theme-muted);padding:10px 12px;border-radius:11px;font-size:11px;line-height:1.7}.inventory-adjust-hint.is-invalid{border-color:#a85b61;color:#ffb0b5;background:rgba(156,60,70,.1)}
/* Transfer dialog dark-mode layout refinement */
[data-theme="dark"] .transfer-modal{background:var(--theme-surface)!important;border:1px solid #3a506d!important;box-shadow:0 30px 100px rgba(0,0,0,.48)!important;border-radius:22px!important}
[data-theme="dark"] .transfer-modal-heading{padding:22px 24px!important;background:linear-gradient(125deg,#253a56,#202e43)!important;border-bottom:1px solid #344b66!important;gap:15px!important}
[data-theme="dark"] .transfer-modal-heading h3{font-size:20px!important;letter-spacing:-.2px}
[data-theme="dark"] .transfer-modal-heading p{font-size:12px!important;line-height:1.7!important;color:#a9bdd6!important}
[data-theme="dark"] .transfer-heading-icon{width:48px!important;height:48px!important;border-radius:15px!important;display:grid;place-items:center!important;font-size:22px!important;box-shadow:inset 0 1px 0 #ffffff18!important}
[data-theme="dark"] .transfer-modal .product-form-scroll{padding:22px 24px 18px!important}
[data-theme="dark"] .transfer-form-grid{gap:16px!important;align-items:stretch!important}
[data-theme="dark"] .transfer-form-grid label{color:#b8c8dc!important;font-size:12px!important;font-weight:800!important;display:flex!important;flex-direction:column!important;gap:7px!important}
[data-theme="dark"] .transfer-form-grid select,[data-theme="dark"] .transfer-form-grid input{background:linear-gradient(180deg,#26364d,#202e42)!important;border:1px solid #3a506b!important;border-radius:12px!important;min-height:48px!important;padding:12px 14px!important;color:#f0f5fc!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important}
[data-theme="dark"] .transfer-form-grid select:focus,[data-theme="dark"] .transfer-form-grid input:focus{border-color:#6c9bd4!important;box-shadow:0 0 0 3px rgba(92,145,204,.15)!important}
[data-theme="dark"] .transfer-source-field,[data-theme="dark"] .transfer-destination-field{padding:14px!important;border:1px solid #344b66!important;border-radius:15px!important;background:rgba(37,53,75,.45)!important}
[data-theme="dark"] .transfer-source-field select{border-color:#4777a5!important}
[data-theme="dark"] .transfer-destination-field select{border-color:#3c8066!important}
[data-theme="dark"] .transfer-stock-info{min-height:48px!important;border-radius:13px!important;background:linear-gradient(120deg,#21384e,#223a50)!important;color:#a9d2ff!important;border-color:#3a5876!important;font-size:12px!important;padding:14px 16px!important}
[data-theme="dark"] .transfer-summary{padding:13px 15px!important;border:1px solid #344b66!important;border-radius:13px!important;background:#182638!important;color:#c4d3e4!important;line-height:1.8!important;font-weight:700!important}
[data-theme="dark"] .transfer-modal .modal-actions{padding:16px 24px 20px!important;border-top:1px solid #34465c!important;gap:10px!important;background:#202b3d!important}
[data-theme="dark"] .transfer-modal .modal-actions button{min-height:44px!important;border-radius:11px!important;font-weight:800!important;padding:0 20px!important}
@keyframes inventoryOverlayIn{from{opacity:0}to{opacity:1}}
@keyframes inventoryModalIn{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:640px){.inventory-modal-overlay{padding:12px}.inventory-action-modal{width:100%;max-height:94vh;border-radius:17px!important}.inventory-modal-header{padding:16px}.inventory-modal-heading-copy h3{font-size:17px}.inventory-modal-body{padding:17px;gap:14px}.inventory-modal-footer{padding:13px 17px}.inventory-modal-footer button{flex:1}.inventory-balance-preview{gap:5px;padding:11px}.inventory-balance-preview strong{font-size:19px}[data-theme="dark"] .transfer-modal .product-form-scroll{padding:15px!important}[data-theme="dark"] .transfer-modal-heading{padding:16px!important}[data-theme="dark"] .transfer-modal .modal-actions{padding:14px 16px!important}}
@media(prefers-reduced-motion:reduce){.inventory-modal-overlay,.inventory-action-modal{animation:none!important}}

/* Pass185 — complete light-theme counterpart for Pass184 inventory dialogs */
[data-theme="light"] .inventory-modal-overlay{background:rgba(25,42,65,.24)!important;backdrop-filter:blur(5px)}
[data-theme="light"] .inventory-action-modal{background:#fff!important;color:#22334b!important;border:1px solid #d8e3f0!important;box-shadow:0 24px 72px rgba(30,55,85,.22)!important}
[data-theme="light"] .inventory-modal-header{background:linear-gradient(135deg,#f3f7fc,#e8f0fa)!important;border-bottom-color:#d9e4f1!important}
[data-theme="light"] .inventory-modal-heading-copy small{color:#6482a8!important}
[data-theme="light"] .inventory-modal-heading-copy h3{color:#20334d!important}
[data-theme="light"] .inventory-modal-heading-copy p{color:#647b98!important}
[data-theme="light"] .inventory-modal-icon{background:linear-gradient(145deg,#dbeaff,#b9d4f3)!important;color:#3167a6!important;border-color:#aac9ed!important;box-shadow:inset 0 1px 0 #fff,0 6px 18px rgba(69,115,168,.14)!important}
[data-theme="light"] .inventory-modal-icon.adjustment-icon{background:linear-gradient(145deg,#d9ecff,#b9d8f5)!important;color:#28649e!important}
[data-theme="light"] .inventory-field{color:#2c4563!important}
[data-theme="light"] .inventory-field input,[data-theme="light"] .inventory-field select,[data-theme="light"] .inventory-field textarea{background:#f8fbff!important;color:#233953!important;border-color:#d4e1f0!important}
[data-theme="light"] .inventory-field input::placeholder,[data-theme="light"] .inventory-field textarea::placeholder{color:#8497b0!important}
[data-theme="light"] .inventory-field input:focus,[data-theme="light"] .inventory-field select:focus,[data-theme="light"] .inventory-field textarea:focus{border-color:#76a4dc!important;box-shadow:0 0 0 3px rgba(91,145,208,.14)!important}
[data-theme="light"] .inventory-modal-footer{background:#f7faff!important;border-top-color:#dce7f4!important}
[data-theme="light"] .inventory-info-card{background:linear-gradient(130deg,#f0f8f5,#e8f5ef)!important;border-color:#c8e4d7!important;color:#426d5a!important}
[data-theme="light"] .inventory-info-card strong{color:#285642!important}
[data-theme="light"] .inventory-info-card small{color:#547968!important}
[data-theme="light"] .inventory-info-icon{background:#d6f0e2!important;color:#278452!important}
[data-theme="light"] .inventory-adjust-type{color:#2b4563!important}
[data-theme="light"] .inventory-adjust-options label span{background:#f6f9fd!important;border-color:#d7e3f0!important;color:#6c819c!important}
[data-theme="light"] .inventory-adjust-options input:checked+span{background:#e8f5ee!important;border-color:#8ac5a5!important;color:#267a4c!important;box-shadow:0 0 0 2px rgba(63,151,103,.08)!important}
[data-theme="light"] .inventory-adjust-options label:nth-child(2) input:checked+span{background:#fff0f1!important;border-color:#e2a1a7!important;color:#b3424d!important}
[data-theme="light"] .inventory-balance-preview{background:linear-gradient(145deg,#f4f8fd,#fff)!important;border-color:#d7e4f2!important}
[data-theme="light"] .inventory-balance-preview small{color:#7187a3!important}
[data-theme="light"] .inventory-balance-preview strong{color:#243b57!important}
[data-theme="light"] .preview-operation{color:#7a91ad!important}
[data-theme="light"] .preview-operation.is-positive,[data-theme="light"] .inventory-balance-preview strong.is-positive{color:#218452!important}
[data-theme="light"] .preview-operation.is-negative,[data-theme="light"] .inventory-balance-preview strong.is-negative{color:#c34a54!important}
[data-theme="light"] .inventory-adjust-hint{background:#f5f9fd!important;border-color:#d6e2ef!important;color:#637b97!important}
[data-theme="light"] .inventory-adjust-hint.is-invalid{background:#fff1f2!important;border-color:#e2a1a7!important;color:#b3424d!important}
[data-theme="light"] .transfer-modal{background:#fff!important;color:#243a55!important;border:1px solid #d8e4f1!important;border-radius:20px!important;box-shadow:0 24px 70px rgba(31,56,84,.24)!important}
[data-theme="light"] .transfer-modal-heading{background:linear-gradient(125deg,#f1f7fd,#e8f0fa)!important;border-bottom:1px solid #d8e4f1!important;padding:20px 24px!important}
[data-theme="light"] .transfer-modal-heading h3{color:#233a55!important;font-size:19px!important}
[data-theme="light"] .transfer-modal-heading p{color:#6a819d!important;font-size:12px!important;line-height:1.7!important}
[data-theme="light"] .transfer-heading-icon{background:linear-gradient(145deg,#d9ebff,#bad5f4)!important;color:#326da8!important;border:1px solid #b5d0ef!important;border-radius:14px!important;width:46px!important;height:46px!important;display:grid!important;place-items:center!important}
[data-theme="light"] .transfer-modal .product-form-scroll{padding:20px 24px!important}
[data-theme="light"] .transfer-form-grid{gap:15px!important;align-items:stretch!important}
[data-theme="light"] .transfer-form-grid label{color:#536d8d!important;font-size:12px!important;font-weight:800!important;display:flex!important;flex-direction:column!important;gap:7px!important}
[data-theme="light"] .transfer-form-grid select,[data-theme="light"] .transfer-form-grid input{background:#f8fbff!important;border:1px solid #d6e3f1!important;border-radius:11px!important;min-height:46px!important;padding:11px 13px!important;color:#263e5a!important;box-shadow:inset 0 1px 0 #fff!important}
[data-theme="light"] .transfer-form-grid select:focus,[data-theme="light"] .transfer-form-grid input:focus{border-color:#79a6dc!important;box-shadow:0 0 0 3px rgba(92,145,204,.12)!important}
[data-theme="light"] .transfer-source-field,[data-theme="light"] .transfer-destination-field{padding:13px!important;border:1px solid #d8e4f1!important;border-radius:14px!important;background:#f6faff!important}
[data-theme="light"] .transfer-source-field select{border-color:#9fc3e9!important}
[data-theme="light"] .transfer-destination-field select{border-color:#a8d6c0!important}
[data-theme="light"] .transfer-stock-info{min-height:48px!important;border-radius:12px!important;background:linear-gradient(120deg,#eff7ff,#e8f3ff)!important;color:#376b9f!important;border:1px solid #d0e3f7!important;font-size:12px!important;padding:13px 15px!important}
[data-theme="light"] .transfer-summary{padding:13px 15px!important;border:1px solid #d9e5f2!important;border-radius:12px!important;background:#f6faff!important;color:#536e8e!important;line-height:1.8!important;font-weight:700!important}
[data-theme="light"] .transfer-modal .modal-actions{padding:15px 22px 18px!important;border-top:1px solid #dce7f3!important;gap:10px!important;background:#f7faff!important}
[data-theme="light"] .transfer-modal .modal-actions button{min-height:43px!important;border-radius:11px!important;font-weight:800!important;padding:0 18px!important}
/* Pass186: product list reflects multi-warehouse stock and recent transfers */
.product-warehouse-stock{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:150px}
.warehouse-stock-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border:1px solid var(--line,#d8e0eb);border-radius:999px;background:var(--surface-soft,#f3f6fa);white-space:nowrap;font-size:12px}
.warehouse-stock-chip b{font-weight:650}
.warehouse-stock-chip small{opacity:.78;font-size:11px}
.product-transfer-note{flex-basis:100%;display:inline-flex;align-items:center;gap:4px;margin-top:2px;padding:4px 7px;border-radius:6px;background:rgba(65,132,205,.10);color:var(--primary,#4776b8);font-size:11px;line-height:1.45;white-space:normal}
.warehouse-stock-empty{opacity:.65;font-size:12px}
[data-theme="dark"] .warehouse-stock-chip{background:rgba(92,130,177,.13);border-color:rgba(131,162,202,.28);color:var(--text,#e8eef8)}
[data-theme="dark"] .product-transfer-note{background:rgba(76,143,218,.17);color:#9bc6fa}

/* Pass191: Fenony Sheets inspection color status and selection */
.fenony-sheet-status-legend{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px;padding:9px 12px;border:1px solid var(--theme-border,var(--line));border-radius:10px;background:var(--theme-surface-2,var(--bg))}.fenony-sheet-status{padding:7px 12px;border-radius:9px;font-weight:700;font-size:12px}.fenony-sheet-status.inspected,.fs-cell-inspected{background:#fee2e2!important;color:#991b1b!important}.fenony-sheet-status.not-inspected,.fs-cell-not-inspected{background:#dcfce7!important;color:#166534!important}.fenony-sheet-status-help{font-size:11px;color:var(--theme-muted,var(--muted));margin-inline-start:auto}.fs-status-btn{border:1px solid transparent;border-radius:8px;padding:8px 11px;font-weight:700;cursor:pointer}.fs-inspected{background:#fee2e2;color:#991b1b;border-color:#fecaca}.fs-not-inspected{background:#dcfce7;color:#166534;border-color:#bbf7d0}.fenony-grid td div.fs-cell-selected{outline:2px solid var(--button,#4776B8);outline-offset:-2px;box-shadow:inset 0 0 0 1px #fff}.thank{gap:8px}.thank span{display:block}.thank-brand{font-size:1.1em;color:#21456d;letter-spacing:.3px}

/* Pass194: premium sales-return payout modal */
.sales-return-payout-overlay{padding:24px;background:rgba(20,35,55,.58);backdrop-filter:blur(5px)}
.sales-return-payout-modal{width:min(720px,100%);padding:0!important;border:1px solid #dce5f1;border-radius:20px!important;overflow:hidden;box-shadow:0 26px 75px rgba(12,28,52,.25)!important;color:#1b2d46;background:#f9fbfe!important}
.srp-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px 24px;color:#fff;background:linear-gradient(110deg,#162b46,#244e79);position:relative;overflow:hidden}
.srp-header:after{content:"";position:absolute;left:35%;top:-90px;width:4px;height:260px;background:#f77020;transform:rotate(32deg);opacity:.95}
.srp-title-wrap{display:flex;align-items:center;gap:13px;position:relative;z-index:1}
.srp-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#f7702028;color:#ff985d;font-size:24px;border:1px solid #ffffff20}
.srp-header h3{font-size:18px;margin:0 0 3px;color:white;font-weight:800}
.srp-header small{font-size:11px;color:#d6e3f3}
.srp-close{width:36px;height:36px;display:grid;place-items:center;position:relative;z-index:2;background:#ffffff14!important;border-color:#ffffff35!important;color:#fff!important}
.srp-summary{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:20px 24px 4px}
.srp-card{border:1px solid #d8e4f2;background:#fff;border-radius:13px;padding:14px 16px;min-height:84px;display:flex;flex-direction:column;justify-content:center;gap:7px}
.srp-customer{border-right:3px solid #4776b8}
.srp-amount{border-right:3px solid #f77020;background:linear-gradient(135deg,#fff8f3,#fff)}
.srp-label{font-size:11px;font-weight:700;color:#718198;display:block}
.srp-card strong{font-size:15px;color:#1d3554;line-height:1.4}
.srp-amount strong{font-size:21px;color:#e76612}
.srp-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:16px 24px 22px}
.srp-field{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:700;color:#41546c;min-width:0}
.srp-field .srp-label i{color:#e65d21;font-style:normal}
.srp-field input,.srp-field select,.srp-field textarea{width:100%;min-height:43px;border:1px solid #d7e2ef;border-radius:10px;background:#fff;padding:10px 12px;font-family:inherit;font-size:12px;color:#263c58;outline:none;transition:border-color .15s,box-shadow .15s}
.srp-field input:focus,.srp-field select:focus,.srp-field textarea:focus{border-color:#6e9bd0;box-shadow:0 0 0 3px #4776b815}
.srp-notes textarea{min-height:88px;resize:vertical}
.srp-notes .srp-label small{font-weight:400;color:#a0a9b5;margin-right:5px}
.srp-footer{border-top:1px solid #e0e8f2;padding:16px 24px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff}
.srp-context{display:flex;align-items:center;gap:9px;color:#8c5b3c;background:#fff5ed;border:1px solid #f8dfcf;border-radius:10px;padding:10px 12px;font-size:11px}
.srp-context span{font-size:17px;color:#f77020}
.srp-footer .modal-actions{border:0;padding:0;margin:0;display:flex;gap:9px}
.srp-footer .modal-actions button{min-height:42px;padding:10px 17px}
.srp-confirm{background:linear-gradient(135deg,#356db6,#24538b)!important;box-shadow:0 5px 13px #24538b2a!important}
[data-theme="dark"] .sales-return-payout-modal{background:#1b2636!important;border-color:#34465d!important;color:#e7edf6}
[data-theme="dark"] .srp-card,[data-theme="dark"] .srp-field input,[data-theme="dark"] .srp-field select,[data-theme="dark"] .srp-field textarea{background:#253449!important;border-color:#40546d!important;color:#e8eff8!important}
[data-theme="dark"] .srp-card strong{color:#e8eff8}
[data-theme="dark"] .srp-amount strong{color:#ff985d}
[data-theme="dark"] .srp-footer{background:#1b2636;border-color:#34465d}
[data-theme="dark"] .srp-context{background:#352d2a;border-color:#5d473b;color:#e7b89c}
@media(max-width:620px){.sales-return-payout-overlay{padding:12px;overflow:auto}.sales-return-payout-modal{max-height:calc(100vh - 24px);overflow:auto}.srp-summary,.srp-form-grid{grid-template-columns:1fr;padding-left:15px;padding-right:15px;gap:10px}.srp-header{padding:16px}.srp-footer{padding:14px 15px;align-items:stretch;flex-direction:column}.srp-context{justify-content:center}.srp-footer .modal-actions{width:100%}.srp-footer .modal-actions button{flex:1}}

/* Pass195 — Unified Reports professional dashboard */
.reports-page{display:flex;flex-direction:column;gap:18px;direction:rtl}
.reports-hero{display:flex;align-items:center;gap:16px;padding:22px 24px;border-radius:18px;background:linear-gradient(115deg,#1b2d49 0%,#234c78 72%,#2d5c8c 100%);color:#fff;box-shadow:0 8px 24px rgba(20,45,76,.12);position:relative;overflow:hidden}
.reports-hero:after{content:"";position:absolute;inset:auto auto -55px -45px;width:190px;height:190px;border-radius:50%;background:rgba(255,125,24,.12);pointer-events:none}
.reports-hero-mark{width:54px;height:54px;flex:0 0 54px;border-radius:15px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);display:grid;place-items:center;font-size:30px;font-weight:900;color:#ff851f}
.reports-hero-copy{flex:1;min-width:0}.reports-eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:800;color:#e9a86f;display:block;margin-bottom:5px}.reports-hero h1{font-size:23px;margin:0 0 5px;color:#fff}.reports-hero p{margin:0;color:#d6e2f0;font-size:12px}.reports-export{white-space:nowrap;z-index:1}
.reports-filter-panel,.reports-table-panel{background:var(--panel,#fff);border:1px solid var(--border,#d8e2ef);border-radius:16px;box-shadow:0 5px 18px rgba(28,50,78,.045);overflow:hidden}
.reports-filter-heading{display:flex;align-items:center;justify-content:space-between;padding:16px 20px 10px}.reports-filter-heading h3{margin:0;font-size:15px;color:var(--text,#22344d)}.reports-filter-heading small{color:var(--muted,#78879b);font-size:11px}.reports-filter-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#edf3fa;color:#4776b8;font-size:21px}
.reports-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:10px 20px 18px}.reports-filters label{display:flex;flex-direction:column;gap:6px;min-width:150px;flex:1}.reports-filters label>span{font-size:11px;color:var(--muted,#78879b);font-weight:700}.reports-filters input,.reports-filters select{width:100%;min-height:40px;border:1px solid var(--border,#d8e2ef);border-radius:9px;padding:8px 10px;background:var(--input-bg,#f8fafc);color:var(--text,#23344d)}.reports-reset{min-height:40px;white-space:nowrap}
.reports-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.report-kpi{display:flex;align-items:center;gap:13px;min-height:98px;padding:16px;border:1px solid var(--border,#dce5ef);border-radius:15px;background:var(--panel,#fff);box-shadow:0 4px 14px rgba(25,48,78,.04)}.report-kpi-icon{width:42px;height:42px;flex:0 0 42px;border-radius:12px;display:grid;place-items:center;font-size:20px;font-weight:800;background:#edf3fa;color:#4776b8}.report-kpi-1 .report-kpi-icon{background:#eaf7ef;color:#23905b}.report-kpi-2 .report-kpi-icon{background:#fff3e8;color:#e47724}.report-kpi-3 .report-kpi-icon{background:#f0ecfb;color:#8064bd}.report-kpi-text{min-width:0;display:flex;flex-direction:column;gap:7px}.report-kpi-text small{font-size:11px;color:var(--muted,#78879b)}.report-kpi-text strong{font-size:clamp(17px,2vw,23px);line-height:1.2;color:var(--text,#22344d);font-weight:800;overflow-wrap:anywhere}
.reports-table-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 20px;border-bottom:1px solid var(--border,#dce5ef)}.reports-table-heading h3{margin:0;color:var(--text,#22344d);font-size:16px}.reports-table-heading small#reportCount{padding:6px 10px;border-radius:20px;background:#edf3fa;color:#52708f;font-size:11px;white-space:nowrap}.reports-table-wrap{overflow:auto;max-height:65vh}.reports-table{width:100%;border-collapse:separate;border-spacing:0;min-width:720px}.reports-table thead th{position:sticky;top:0;z-index:1;background:#203f63;color:#fff;padding:13px 12px;font-size:11px;font-weight:700;border:0;white-space:nowrap}.reports-table tbody td{padding:12px;border-bottom:1px solid var(--border,#e2eaf3);font-size:12px;color:var(--text,#2b405a);white-space:nowrap}.reports-table tbody tr:nth-child(even){background:var(--report-row-alt,#f8fafc)}.reports-table tbody tr:hover{background:var(--report-row-hover,#edf4fb)}.reports-table tbody tr:last-child td{border-bottom:0}.reports-note{margin:0;padding:13px 20px;border-top:1px solid var(--border,#e3eaf2);display:flex;gap:8px;align-items:center;color:var(--muted,#77879a);font-size:11px;background:var(--report-note-bg,#fafbfd)}.reports-note span{color:#4776b8;font-size:15px}
body.dark .reports-filter-panel,body.dark .reports-table-panel,body.dark .report-kpi{background:var(--panel,#202a38);border-color:var(--border,#35465a)}body.dark .reports-filter-heading h3,body.dark .reports-table-heading h3,body.dark .report-kpi-text strong{color:var(--text,#e8edf5)}body.dark .reports-filter-heading small,body.dark .reports-filters label>span,body.dark .report-kpi-text small,body.dark .reports-note{color:var(--muted,#a7b4c6)}body.dark .reports-filters input,body.dark .reports-filters select{background:var(--input-bg,#182230);border-color:var(--border,#35465a);color:var(--text,#e8edf5)}body.dark .reports-table tbody td{color:var(--text,#dce5ef);border-color:var(--border,#35465a)}body.dark .reports-table tbody tr:nth-child(even){background:#202b39}body.dark .reports-table tbody tr:hover{background:#28384b}body.dark .reports-note{background:#1c2735;border-color:#35465a}body.dark .report-kpi-icon{background:#29394d;color:#8eb5e6}body.dark .report-kpi-1 .report-kpi-icon{background:#203c32;color:#6cc69a}body.dark .report-kpi-2 .report-kpi-icon{background:#453324;color:#f3a96e}body.dark .report-kpi-3 .report-kpi-icon{background:#382f4e;color:#b6a1e8}
@media(max-width:1000px){.reports-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.reports-filters label{min-width:130px}}
@media(max-width:620px){.reports-hero{padding:16px;gap:11px;flex-wrap:wrap}.reports-hero-mark{width:44px;height:44px;flex-basis:44px;font-size:25px}.reports-hero h1{font-size:19px}.reports-export{margin-inline-start:auto}.reports-filter-heading,.reports-table-heading{padding:14px}.reports-filters{padding:10px 14px 14px;gap:10px}.reports-filters label{min-width:calc(50% - 10px)}.reports-reset{flex:1}.reports-kpis{gap:9px}.report-kpi{padding:11px;gap:9px;min-height:85px}.report-kpi-icon{width:34px;height:34px;flex-basis:34px;font-size:17px;border-radius:10px}.report-kpi-text strong{font-size:16px}.reports-table-wrap{max-height:60vh}}

/* Pass233: preserve inspection status colors in dark mode */
[data-theme="dark"] .fenony-grid td div.fs-cell-inspected{background-color:#fee2e2!important;color:#991b1b!important;border-color:#fecaca!important}
[data-theme="dark"] .fenony-grid td div.fs-cell-not-inspected{background-color:#dcfce7!important;color:#166534!important;border-color:#bbf7d0!important}
[data-theme="dark"] .fs-status-btn.fs-inspected{background:#fee2e2!important;color:#991b1b!important;border-color:#fecaca!important}
[data-theme="dark"] .fs-status-btn.fs-not-inspected{background:#dcfce7!important;color:#166534!important;border-color:#bbf7d0!important}
/* Pass234 Notepad UX: fast selection color + live numeric total */
.tyke-note-sum-panel{display:flex;align-items:center;justify-content:flex-start;gap:12px;flex-wrap:wrap;margin:0;padding:10px 14px;border:1px solid var(--border,#dce5ef);border-top:0;border-radius:0 0 12px 12px;background:var(--surface,#f6f8fb);color:var(--text,#22344d);}
.tyke-note-sum-label{font-size:12px;font-weight:750;color:var(--muted,#74849a)}
.tyke-note-sum-panel strong{display:inline-flex;align-items:center;justify-content:center;min-width:88px;padding:5px 12px;border-radius:9px;background:var(--primary,#4776b8);color:#fff;font-size:20px;font-variant-numeric:tabular-nums;letter-spacing:.3px;}
.tyke-note-sum-panel small{font-size:11px;color:var(--muted,#74849a)}
[data-theme="dark"] .tyke-note-sum-panel{background:var(--theme-surface,#202b3d);color:var(--theme-text,#f0f4fa);border-color:var(--theme-border,#35445a)}
/* Pass257: keep the Notepad color palette anchored to its toolbar and preserve global text color in dark mode. */
.tyke-note-toolbar{position:relative}
#noteColorPalette{top:calc(100% + 6px);right:8px;}
#noteEditor.tyke-note-global-color{color:var(--note-global-color)!important}
#noteEditor.tyke-note-global-color *{color:inherit!important}
/* Pass261: distinct low-stock severity badges for dashboard risk levels. */
.status.warn{background:#fff4d8;color:#8a5b08}
.status.danger{background:#ffe6e9;color:#b42338}
.legend-item small{font-size:10px;color:var(--muted);margin-inline-start:auto;font-weight:700}
[data-theme="dark"] .status.warn{background:#473b28;color:#f0c56f}
[data-theme="dark"] .status.danger{background:#4b2d35;color:#f2a0b0}

/* Pass276: restore unit-pricing layout geometry in dark mode to match light mode */
html[data-theme="dark"] .product-modal .unit-pricing-box{display:flex!important;flex-direction:column!important;gap:10px!important;width:100%!important;min-width:0!important;box-sizing:border-box!important}
html[data-theme="dark"] .product-modal .unit-price-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;width:100%!important;min-width:0!important;align-items:stretch!important;box-sizing:border-box!important}
html[data-theme="dark"] .product-modal .unit-price-grid label{display:flex!important;flex-direction:column!important;gap:6px!important;width:100%!important;min-width:0!important;margin:0!important;box-sizing:border-box!important}
html[data-theme="dark"] .product-modal .unit-price-grid input{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:40px!important;box-sizing:border-box!important}
@media(max-width:700px){html[data-theme="dark"] .product-modal .unit-price-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* Pass276 correction: Dark Mode pricing grid must not paint its own surface.
   Keep the container surface and input surfaces; labels/grid remain transparent like Light Mode. */
html[data-theme="dark"] .unit-pricing-box .unit-price-grid,
html[data-theme="dark"] .unit-pricing-box .unit-price-grid label {
  background: transparent !important;
}
html[data-theme="dark"] .unit-pricing-box .unit-price-grid {
  grid-template-columns: repeat(3, minmax(150px, 1fr)) !important;
  gap: 12px !important;
}
html[data-theme="dark"] .unit-pricing-box .unit-price-grid label {
  min-width: 0 !important;
  box-sizing: border-box !important;
}
html[data-theme="dark"] .unit-pricing-box .unit-price-grid input {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
@media (max-width: 700px) {
  html[data-theme="dark"] .unit-pricing-box .unit-price-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}


/* Pass286 — Settings workspace redesign and clean /login route */
.fen-settings-workspace{display:flex;flex-direction:column;gap:18px;margin:0 0 28px}
.fen-settings-hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:24px;overflow:hidden;padding:26px 30px;border:1px solid color-mix(in srgb,var(--accent,#4776b8) 22%,var(--border,#dfe5ed));border-radius:20px;background:linear-gradient(115deg,color-mix(in srgb,var(--accent,#4776b8) 12%,var(--card,#fff)),var(--card,#fff) 68%);box-shadow:0 10px 30px rgba(20,35,60,.045)}
.fen-settings-hero:after{content:"";position:absolute;width:220px;height:220px;border:1px solid color-mix(in srgb,var(--accent,#4776b8) 17%,transparent);border-radius:50%;left:12%;top:-155px;box-shadow:0 0 0 24px color-mix(in srgb,var(--accent,#4776b8) 4%,transparent),0 0 0 50px color-mix(in srgb,var(--accent,#4776b8) 3%,transparent);pointer-events:none}
.fen-settings-kicker{display:block;margin-bottom:8px;color:var(--accent,#4776b8);font-size:10px;font-weight:900;letter-spacing:1.5px;direction:ltr;text-align:right}
.fen-settings-hero h2{margin:0;color:var(--text-primary,var(--text,#1c2b40));font-size:24px;font-weight:900}
.fen-settings-hero p{margin:8px 0 0;color:var(--muted,#78869a);font-size:13px}
.fen-settings-hero-mark{display:grid;place-items:center;flex:0 0 64px;width:64px;height:64px;border-radius:19px;background:var(--accent-soft,#e8eff9);color:var(--accent,#4776b8);font-size:30px}
.fen-settings-body{display:grid;grid-template-columns:250px minmax(0,1fr);gap:18px;align-items:start}
.fen-settings-nav{position:sticky;top:18px;display:flex;flex-direction:column;gap:7px;padding:10px;border:1px solid var(--border,#e1e6ee);border-radius:17px;background:var(--card,#fff);box-shadow:0 8px 24px rgba(20,35,60,.035)}
.fen-settings-tab{display:flex;align-items:center;gap:11px;width:100%;min-height:63px;padding:10px 12px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--text-primary,var(--text,#26364b));text-align:right;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}
.fen-settings-tab:hover{background:var(--accent-soft,#eef3fa);transform:translateX(-2px)}
.fen-settings-tab.active{border-color:color-mix(in srgb,var(--accent,#4776b8) 28%,transparent);background:var(--accent-soft,#e8eff9);color:var(--accent,#4776b8)}
.fen-settings-tab-icon{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:11px;background:color-mix(in srgb,var(--accent,#4776b8) 10%,var(--card,#fff));font-size:18px}
.fen-settings-tab b,.fen-settings-tab small{display:block}
.fen-settings-tab b{font-size:12px;font-weight:900}
.fen-settings-tab small{margin-top:4px;color:var(--muted,#8490a0);font-size:10px}
.fen-settings-tab i{margin-right:auto;font-style:normal;font-size:20px;opacity:.55}
.fen-settings-panels{min-width:0}
.fen-settings-section{display:none;min-width:0}
.fen-settings-section.active{display:block;animation:fenSettingsIn .2s ease-out}
.fen-settings-section-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px;padding:0 3px}
.fen-settings-section-head h3{margin:0;color:var(--text-primary,var(--text,#26364b));font-size:17px;font-weight:900}
.fen-settings-section-head p{margin:4px 0 0;color:var(--muted,#8490a0);font-size:11px}
.fen-settings-section-head>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--accent-soft,#e8eff9);color:var(--accent,#4776b8);font-size:11px;font-weight:900}
.fen-settings-section-content>.panel{margin:0 0 13px!important;border:1px solid var(--border,#e1e6ee);border-radius:16px;background:var(--card,#fff);box-shadow:0 7px 22px rgba(20,35,60,.035);padding:20px}
.fen-settings-section-content>.panel .panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:13px;border-bottom:1px solid var(--border,#e7ebf1)}
.fen-settings-section-content>.panel .panel-title h3{font-size:14px;font-weight:900}
.fen-settings-section-content>.panel .panel-title small{color:var(--muted,#8490a0);font-size:10px}
.fen-settings-section-content>.panel .footer-note{line-height:1.9}
.fen-settings-section-content .stats-grid{gap:12px}
.fen-settings-section-content .stat-card{border-radius:12px}
body.fenony-login-route{min-height:100vh;background:#111d30}
body.fenony-login-route .app-shell{min-height:100vh}
body.fenony-login-route .tyke-auth-overlay{position:fixed;inset:0;min-height:100vh;padding:24px;background:radial-gradient(ellipse at 15% 15%,rgba(71,118,184,.28),transparent 35%),radial-gradient(ellipse at 85% 85%,rgba(242,126,45,.17),transparent 34%),linear-gradient(135deg,#101b2d,#1b304d 58%,#111d30)}
body.fenony-login-route .tyke-auth-card{width:min(480px,100%);border:1px solid rgba(255,255,255,.2);border-radius:22px;box-shadow:0 28px 90px rgba(0,0,0,.42)}
body.fenony-login-route .tyke-auth-brand{min-height:116px}
@keyframes fenSettingsIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){.fen-settings-body{grid-template-columns:1fr}.fen-settings-nav{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.fen-settings-tab{min-height:58px}.fen-settings-tab i{display:none}}
@media(max-width:560px){.fen-settings-hero{padding:20px}.fen-settings-hero h2{font-size:19px}.fen-settings-hero-mark{width:48px;height:48px;flex-basis:48px;font-size:23px}.fen-settings-nav{grid-template-columns:1fr}.fen-settings-section-content>.panel{padding:14px}.fen-settings-tab{min-height:54px}}
[data-theme="dark"] .fen-settings-hero{background:linear-gradient(115deg,#243650,#1b283a 70%);border-color:#34465f}
[data-theme="dark"] .fen-settings-hero h2,[data-theme="dark"] .fen-settings-section-head h3{color:#edf3fb}
[data-theme="dark"] .fen-settings-nav,[data-theme="dark"] .fen-settings-section-content>.panel{background:#1b283a;border-color:#34465f;box-shadow:none}
[data-theme="dark"] .fen-settings-tab{color:#e5edf7}
[data-theme="dark"] .fen-settings-tab.active,[data-theme="dark"] .fen-settings-tab:hover{background:#293d59;border-color:#3d587b;color:#a9c9f2}
[data-theme="dark"] .fen-settings-section-content>.panel .panel-title{border-color:#34465f}


/* PASS308 — Dashboard visual system refresh (presentation-only, RTL-first) */
#content:has(.kpis) { --dash-ink:#17253b; --dash-muted:#718096; --dash-line:#e5ebf3; }
#content:has(.kpis) .page-heading{
 position:relative; isolation:isolate; overflow:hidden; padding:25px 28px; margin:0 0 20px;
 border:1px solid #dfe8f4; border-radius:20px;
 background:linear-gradient(120deg,#fff 0%,#f7faff 58%,#edf5ff 100%);
 box-shadow:0 10px 30px rgba(31,55,90,.055); gap:22px;
}
#content:has(.kpis) .page-heading:after{
 content:"";position:absolute;z-index:-1;left:-38px;bottom:-110px;width:260px;height:260px;
 border-radius:50%;background:radial-gradient(circle,rgba(51,111,190,.12),rgba(51,111,190,0) 68%);
}
#content:has(.kpis) .page-heading h1{font-size:28px;letter-spacing:-.5px;color:#17253b;margin-bottom:7px}
#content:has(.kpis) .page-heading p{font-size:13px;color:#68788d;line-height:1.8}
#content:has(.kpis) .dash-source-status{margin-top:12px;display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:11px}
#content:has(.kpis) .dash-source-status b{border-radius:999px;padding:5px 10px;background:#e8f7ef;color:#19794a}
#content:has(.kpis) .dash-source-status span{color:#78879a}
#content:has(.kpis) .dash-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#content:has(.kpis) .dash-updated{font-size:11px;color:#6f8197;white-space:nowrap}
#content:has(.kpis) .dashboard-range{min-height:42px;padding:0 13px;border:1px solid #dbe4ef;border-radius:11px;background:#fff;color:#34465d;font:inherit;font-size:12px}
#content:has(.kpis) .dash-actions .primary{min-height:42px;padding:0 17px;border-radius:11px;background:linear-gradient(135deg,#2373d1,#1859a7);box-shadow:0 7px 18px #2166b529}
#content:has(.kpis) .kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 20px}
#content:has(.kpis) .kpi{position:relative;overflow:hidden;min-height:145px;padding:21px 22px;border:1px solid #e6ebf2;border-radius:18px;background:linear-gradient(155deg,#fff 0%,#fbfcff 100%);box-shadow:0 7px 22px rgba(27,44,71,.045);transition:transform .18s ease,box-shadow .18s ease}
#content:has(.kpis) .kpi:hover{transform:translateY(-3px);box-shadow:0 13px 28px rgba(27,44,71,.09)}
#content:has(.kpis) .kpi:before{content:"";position:absolute;right:0;top:18px;bottom:18px;width:4px;border-radius:4px;background:#2d74c7}
#content:has(.kpis) .kpi:nth-child(2):before{background:#22a68a}
#content:has(.kpis) .kpi:nth-child(3):before{background:#8b6bd6}
#content:has(.kpis) .kpi:nth-child(4):before{background:#e5a33a}
#content:has(.kpis) .kpi-top{font-size:12px;font-weight:700;color:#6d7b8e}
#content:has(.kpis) .kpi-icon{width:43px;height:43px;border-radius:14px;font-size:20px}
#content:has(.kpis) .kpi strong{font-size:clamp(20px,2vw,29px);font-weight:850;color:#17253b;margin:14px 0 8px;letter-spacing:-.35px;overflow-wrap:anywhere}
#content:has(.kpis) .kpi small{font-size:11px;color:#8a97a8;line-height:1.65}
#content:has(.kpis) .dashboard-reconciliation{border-radius:16px;background:#f8fbff;border-color:#e0eaf6;margin-bottom:20px}
#content:has(.kpis) .charts{grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:18px;margin-bottom:20px}
#content:has(.kpis) .panel{border:1px solid #e5ebf3;border-radius:17px;padding:21px 22px;background:#fff;box-shadow:0 7px 24px rgba(24,43,72,.045);margin-bottom:18px}
#content:has(.kpis) .charts .panel{margin-bottom:0;min-width:0}
#content:has(.kpis) .panel-title{align-items:flex-start;gap:12px;margin-bottom:18px;padding-bottom:13px;border-bottom:1px solid #edf1f6}
#content:has(.kpis) .panel-title h3{font-size:15px;font-weight:800;color:#1d2c43;letter-spacing:-.15px}
#content:has(.kpis) .panel-title small{font-size:10px;line-height:1.7;color:#8a98aa}
#content:has(.kpis) .chart-area{height:250px;padding:10px 4px}
#content:has(.kpis) .chart-labels{padding-top:10px;color:#8391a3;font-size:10px}
#content:has(.kpis) .donut-wrap{gap:22px;align-items:center}
#content:has(.kpis) .donut{width:150px;height:150px;flex:0 0 150px;box-shadow:inset 0 0 0 1px #ffffffaa}
#content:has(.kpis) .legend{gap:12px}
#content:has(.kpis) .legend-item{font-size:11px;color:#53647b}
#content:has(.kpis) .legend-item small{color:#8b98a9}
#content:has(.kpis) .stats,#content:has(.kpis) .stats-grid{gap:12px}
#content:has(.kpis) .stat-card{border:1px solid #e9eef5;border-radius:13px;background:#f8fafd;padding:16px;min-width:0}
#content:has(.kpis) .stat-card small{font-size:11px;color:#718198;line-height:1.6}
#content:has(.kpis) .stat-card h2{font-size:21px;font-weight:800;color:#20334d;margin-top:8px;overflow-wrap:anywhere}
#content:has(.kpis) .table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px}
#content:has(.kpis) .table thead th{position:sticky;top:0;background:#f4f7fb;color:#65758b;font-weight:800;border-bottom:1px solid #e2e9f2;padding:13px 12px;white-space:nowrap}
#content:has(.kpis) .table tbody td{padding:12px;border-bottom:1px solid #edf1f6;color:#40516a;vertical-align:middle}
#content:has(.kpis) .table tbody tr:last-child td{border-bottom:0}
#content:has(.kpis) .table tbody tr:hover td{background:#f9fbfe}
#content:has(.kpis) .footer-note{border-radius:10px;background:#f7f9fc;padding:12px 14px;color:#7a899c;font-size:10px;line-height:1.9;margin-top:14px}
#content:has(.kpis) .lower{gap:18px}
#content:has(.kpis) .quick{gap:12px}
#content:has(.kpis) .quick button{border:1px solid #e2eaf4;border-radius:13px;background:#f9fbfe;padding:14px;color:#344a65;font-weight:700;transition:.15s}
#content:has(.kpis) .quick button:hover{background:#edf5ff;border-color:#c7dcf6;transform:translateY(-2px)}
#content:has(.kpis) .qico{background:#e5effc;color:#2369b4;border-radius:10px}
#content:has(.kpis) .status{border-radius:999px;padding:5px 10px;font-size:10px;font-weight:800}
#content:has(.kpis) .advisor-insights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#content:has(.kpis) .advisor-insights .footer-note{margin:0;border:1px solid #e8edf4;background:#fbfcfe}
#content:has(.kpis) .pricing-intelligence-panel .stats{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1100px){
 #content:has(.kpis) .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 #content:has(.kpis) .charts{grid-template-columns:1fr}
 #content:has(.kpis) .pricing-intelligence-panel .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 #content:has(.kpis) .page-heading{padding:18px;border-radius:15px;align-items:stretch;flex-direction:column}
 #content:has(.kpis) .page-heading h1{font-size:23px}
 #content:has(.kpis) .dash-actions{width:100%}
 #content:has(.kpis) .dash-updated{width:100%}
 #content:has(.kpis) .dash-actions .primary,#content:has(.kpis) .dashboard-range{flex:1}
 #content:has(.kpis) .kpis{gap:10px}
 #content:has(.kpis) .kpi{padding:14px;min-height:125px}
 #content:has(.kpis) .kpi strong{font-size:19px}
 #content:has(.kpis) .panel{padding:15px;border-radius:14px}
 #content:has(.kpis) .stats,#content:has(.kpis) .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #content:has(.kpis) .advisor-insights{grid-template-columns:1fr}
 #content:has(.kpis) .donut-wrap{flex-direction:column}
 #content:has(.kpis) .table{min-width:580px}
}
@media(max-width:420px){
 #content:has(.kpis) .kpis{grid-template-columns:1fr 1fr}
 #content:has(.kpis) .kpi-top{font-size:10px}
 #content:has(.kpis) .kpi-icon{width:34px;height:34px}
 #content:has(.kpis) .pricing-intelligence-panel .stats{grid-template-columns:1fr 1fr}
}


/* Pass309 — Smooth UX: uncluttered, low-friction dashboard */
.page-heading:has(.dashboard-range){
  align-items:center; gap:18px; padding:22px 24px; margin:0 0 20px;
  border:1px solid var(--border); border-radius:18px;
  background:linear-gradient(135deg,var(--card),color-mix(in srgb,var(--card) 92%,var(--primary) 8%));
}
.page-heading:has(.dashboard-range) h1{font-size:clamp(1.35rem,2vw,1.8rem);letter-spacing:-.025em;margin:0 0 6px}
.page-heading:has(.dashboard-range) p{color:var(--muted);line-height:1.65;margin:0}
.page-heading:has(.dashboard-range) .dash-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.page-heading:has(.dashboard-range) .dash-updated{font-size:.78rem;color:var(--muted)}
.page-heading:has(.dashboard-range) .dashboard-range,
.page-heading:has(.dashboard-range) button{min-height:42px;border-radius:11px}
.kpis{gap:16px;margin:0 0 20px}
.kpi{position:relative;overflow:hidden;border:1px solid var(--border);border-radius:18px;padding:21px 22px;background:var(--card);box-shadow:0 5px 20px rgba(25,38,60,.035);transition:transform .18s ease,box-shadow .18s ease}
.kpi:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(25,38,60,.075)}
.kpi-top{font-weight:600;color:var(--muted);font-size:.9rem}
.kpi strong{display:block;font-size:clamp(1.35rem,2vw,1.9rem);font-weight:750;letter-spacing:-.03em;margin:13px 0 8px;line-height:1.2}
.kpi small{color:var(--muted);line-height:1.5}
.kpi-icon{width:38px;height:38px;border-radius:12px;display:inline-grid;place-items:center}
.charts{gap:18px;margin-bottom:22px}
.charts>.panel,.panel{border-radius:17px;border:1px solid var(--border);box-shadow:0 4px 18px rgba(25,38,60,.025);padding:20px}
.panel-title{gap:8px;margin-bottom:18px}
.panel-title h3{font-size:1rem;font-weight:700;letter-spacing:-.01em}
.panel-title small{color:var(--muted);font-size:.78rem}
.chart-area{min-height:210px}
.chart-labels{color:var(--muted);font-size:.75rem}
.donut-wrap{gap:22px}
.legend-item{line-height:1.65}
.table{border-collapse:separate;border-spacing:0}
.table th{background:var(--surface,var(--bg));font-weight:650;color:var(--muted);font-size:.8rem}
.table th,.table td{padding:12px 14px}
.table tbody tr:hover{background:color-mix(in srgb,var(--primary) 4%,transparent)}
.quick{gap:12px}
.quick button{min-height:48px;border-radius:12px;font-weight:600;transition:transform .15s ease,box-shadow .15s ease}
.quick button:hover{transform:translateY(-1px);box-shadow:0 5px 16px rgba(25,38,60,.07)}
/* Remove duplicated audit blocks from the overview; detailed values remain in reports. */
.dashboard-reconciliation,.executive-panel{display:none!important}
@media(max-width:900px){
 .page-heading:has(.dashboard-range){align-items:stretch;padding:18px}
 .page-heading:has(.dashboard-range) .dash-actions{justify-content:flex-start}
 .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .charts{grid-template-columns:1fr}
}
@media(max-width:560px){
 .page-heading:has(.dashboard-range) .dash-actions{width:100%}
 .page-heading:has(.dashboard-range) .dash-actions>*{flex:1 1 auto}
 .kpis{gap:10px}
 .kpi{padding:15px;border-radius:14px}
 .kpi strong{font-size:1.25rem}
 .panel{padding:15px;border-radius:14px}
 .quick{grid-template-columns:1fr 1fr}
}

/* Pass310 Product Entry 2.0 — calmer hierarchy, sticky controls, responsive form */
.product-modal{width:min(1120px,96vw);max-height:92vh;display:flex;flex-direction:column;border-radius:18px;overflow:hidden}
.product-modal>.panel-title{position:sticky;top:0;z-index:3;background:var(--panel, #fff);padding:18px 22px;border-bottom:1px solid var(--border,#e5eaf0);margin:0}
.product-modal .product-form-scroll{overflow:auto;padding:20px 22px;overscroll-behavior:contain}
.product-modal .form-grid{gap:16px}
.product-modal .form-grid>label{display:flex;flex-direction:column;gap:7px;font-weight:600}
.product-modal input,.product-modal select,.product-modal textarea{min-height:42px;border-radius:10px}
.product-modal .unit-pricing-box,.product-modal .image-upload-section,.product-modal .variants-section{border:1px solid var(--border,#e5eaf0);border-radius:14px;padding:16px;background:color-mix(in srgb,var(--panel,#fff) 94%,#eef4fb)}
.product-modal .unit-pricing-box>strong{display:block;margin-bottom:12px;font-size:15px}
.product-modal .modal-actions{position:sticky;bottom:0;z-index:3;background:var(--panel,#fff);padding:14px 22px;border-top:1px solid var(--border,#e5eaf0);display:flex;justify-content:flex-end;gap:10px}
.product-entry-livebar{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 16px}
.product-entry-livebar .live-chip{flex:1;min-width:150px;padding:11px 14px;border:1px solid var(--border,#e5eaf0);border-radius:12px;background:var(--surface,#f7f9fc)}
.product-entry-livebar small{display:block;color:var(--muted,#667085);margin-bottom:3px}
.product-entry-livebar strong{font-size:16px}
.product-modal .image-preview img{max-width:180px;max-height:180px;object-fit:contain;border-radius:12px}
.product-modal .variants-section textarea{min-height:100px}
@media(max-width:700px){.product-modal{width:98vw;max-height:96vh}.product-modal .product-form-scroll{padding:13px}.product-modal>.panel-title,.product-modal .modal-actions{padding:12px}.product-modal .form-grid{grid-template-columns:1fr!important}.product-entry-livebar .live-chip{min-width:calc(50% - 10px)}}
/* Pass311 — Product Variants Manager */
.variants-manager-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 14px}.variants-manager-head>div{display:flex;flex-direction:column;gap:4px}.variants-manager-head small,.variants-section>small{color:var(--muted,#718096);font-size:12px}.variants-manager-wrap{overflow-x:auto;border:1px solid var(--border,#e2e8f0);border-radius:12px}.variants-manager{width:100%;min-width:760px;border-collapse:separate;border-spacing:0}.variants-manager th,.variants-manager td{padding:8px;border-bottom:1px solid var(--border,#e2e8f0);text-align:start}.variants-manager th{font-size:12px;background:var(--surface-muted,#f6f8fb)}.variants-manager input{width:100%;min-width:75px;padding:8px;border:1px solid var(--border,#dbe2ea);border-radius:7px;background:var(--input-bg,#fff);color:var(--text,#1f2937)}.variants-manager td:last-child{width:42px}.variant-remove{font-size:20px;line-height:1;padding:6px 10px;color:#b42318}.variants-section{margin-top:18px}
@media(max-width:700px){.variants-manager-head{align-items:flex-start;flex-direction:column}.variants-manager-head button{width:100%}}


/* Pass335 — Fenony colorful product & inventory polish */
.product-hub-heading,.inventory-hub-heading{align-items:center}
.product-hub-heading h1,.inventory-hub-heading h1{letter-spacing:-.35px}
.product-heading-spark,.inventory-heading-spark{display:inline-flex;align-items:center;justify-content:center;color:#16a085;font-size:.82em;margin-inline-start:6px}
.product-add-cta{background:linear-gradient(135deg,#16a085,#27ae90)!important;box-shadow:0 8px 20px rgba(22,160,133,.22);border:0!important;border-radius:13px!important;transition:transform .18s,box-shadow .18s}
.product-add-cta:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(22,160,133,.3)}
.product-color-ribbon{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:-7px 0 16px;padding:12px 17px;border:1px solid rgba(22,160,133,.16);border-radius:14px;background:linear-gradient(100deg,rgba(22,160,133,.10),rgba(52,152,219,.08),rgba(155,89,182,.07));color:var(--text,#26344a);font-size:12px;font-weight:700}
.product-color-ribbon span:first-child{color:#128a76}.product-color-ribbon .ribbon-dot{color:#9b59b6;font-size:10px}
.product-list-panel{border:1px solid rgba(64,120,180,.12);box-shadow:0 10px 28px rgba(25,45,80,.045)}
.products-toolbar{gap:12px}
.products-table{border-collapse:separate;border-spacing:0 5px}
.products-table thead th{background:linear-gradient(90deg,rgba(52,152,219,.08),rgba(22,160,133,.06));color:var(--text,#26344a);border-bottom:1px solid rgba(52,152,219,.13)}
.products-table tbody tr{transition:background .15s,transform .15s,box-shadow .15s}
.products-table tbody tr:hover{background:rgba(22,160,133,.045);box-shadow:0 4px 14px rgba(25,45,80,.045)}
.products-table tbody td{border-top:1px solid rgba(90,120,160,.07);border-bottom:1px solid rgba(90,120,160,.07)}
.products-table tbody tr td:first-child{border-radius:0 10px 10px 0}
.products-table tbody tr td:last-child{border-radius:10px 0 0 10px}
.products-table .product-name{display:flex;align-items:center;gap:10px;font-weight:700}
.products-table .product-thumb{width:42px;height:42px;object-fit:cover;border-radius:11px;border:1px solid rgba(52,152,219,.16);box-shadow:0 3px 9px rgba(30,50,80,.08)}
.products-table .mini-product{display:inline-flex;width:42px;height:42px;align-items:center;justify-content:center;border-radius:11px;background:linear-gradient(135deg,#e8f8f5,#eaf3ff);color:#168f7a;font-size:19px}
.products-table .status{border-radius:999px;padding:5px 10px;font-weight:800;white-space:nowrap}
.products-table .status.low{background:rgba(231,76,60,.10);color:#c0392b;border:1px solid rgba(231,76,60,.13)}
.products-table .status.ok{background:rgba(22,160,133,.10);color:#12866f;border:1px solid rgba(22,160,133,.13)}
.product-modal{border-radius:20px!important;border:1px solid rgba(22,160,133,.15)!important;box-shadow:0 24px 80px rgba(15,35,65,.22)!important}
.product-modal>.panel-title{background:linear-gradient(100deg,rgba(22,160,133,.10),rgba(52,152,219,.08));padding:16px 20px;border-radius:18px 18px 0 0}
.product-entry-livebar{gap:12px}
.product-entry-livebar .live-chip{border:1px solid rgba(52,152,219,.14);border-radius:14px;background:linear-gradient(135deg,rgba(52,152,219,.06),rgba(22,160,133,.07));padding:12px 15px;transition:transform .15s}
.product-entry-livebar .live-chip:hover{transform:translateY(-2px)}
.product-entry-livebar .live-chip strong{color:#128a76}
.inventory-hub-heading .row-actions{flex-wrap:wrap}
.inventory-kpi-grid .stat-card{position:relative;overflow:hidden;border:1px solid rgba(52,152,219,.11);box-shadow:0 8px 22px rgba(25,45,80,.045);border-radius:15px}
.inventory-kpi-grid .stat-card:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,#16a085,#3498db,#9b59b6)}
.inventory-kpi-grid .stat-card:nth-child(3):before{background:linear-gradient(90deg,#f39c12,#e67e22)}
.inventory-kpi-grid .stat-card:nth-child(4):before{background:linear-gradient(90deg,#9b59b6,#3498db)}
.inventory-valuation-panel{border:1px solid rgba(22,160,133,.12)}
.inventory-valuation-panel .stat-card{background:linear-gradient(135deg,rgba(22,160,133,.045),rgba(52,152,219,.04))}
.inventory-valuation-panel .table tbody tr:hover{background:rgba(52,152,219,.045)}
@media(max-width:760px){.product-color-ribbon{font-size:11px}.product-add-cta{width:100%}.inventory-hub-heading .row-actions{width:100%}.inventory-hub-heading .row-actions button{flex:1}}

/* Pass336 — premium guided product-entry form */
.product-modal{width:min(1040px,96vw)!important;max-height:92vh;overflow:hidden;display:flex;flex-direction:column}
.product-modal .panel-title{flex:0 0 auto}
.product-modal #productForm{min-height:0;display:flex;flex-direction:column;flex:1}
.product-modal .product-form-scroll{overflow:auto;overscroll-behavior:contain;padding:18px 22px 24px}
.product-modal .modal-actions{flex:0 0 auto;position:sticky;bottom:0;background:var(--card,#fff);border-top:1px solid rgba(80,110,150,.12);padding:14px 22px;box-shadow:0 -8px 22px rgba(25,45,80,.04)}
.product-form-section-title{grid-column:1/-1;display:flex;align-items:center;gap:12px;margin:14px 0 2px;padding:12px 14px;border-radius:13px;background:linear-gradient(100deg,rgba(22,160,133,.09),rgba(52,152,219,.07),rgba(155,89,182,.055));border:1px solid rgba(52,152,219,.12)}
.product-form-section-title>span{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(135deg,#16a085,#3498db);color:#fff;font-weight:900;font-size:12px;box-shadow:0 4px 12px rgba(22,160,133,.18)}
.product-form-section-title>div{display:flex;flex-direction:column;gap:3px}
.product-form-section-title strong{font-size:14px;color:var(--text,#26344a)}
.product-form-section-title small{font-size:11px;color:var(--muted,#78869a)}
.product-modal .form-grid>label{display:flex;flex-direction:column;gap:7px;font-weight:700;color:var(--text,#34445b)}
.product-modal .form-grid input,.product-modal .form-grid select{min-height:42px;border-radius:10px;border:1px solid rgba(85,115,155,.2);transition:border-color .16s,box-shadow .16s,background .16s}
.product-modal .form-grid input:focus,.product-modal .form-grid select:focus{border-color:#16a085;box-shadow:0 0 0 3px rgba(22,160,133,.11);outline:none}
.product-modal .unit-pricing-box{border:1px solid rgba(155,89,182,.16);border-radius:15px;padding:16px;background:linear-gradient(135deg,rgba(155,89,182,.045),rgba(52,152,219,.04))}
.product-modal .unit-pricing-box>strong{display:block;margin-bottom:12px;color:#8050ad}
.product-modal .image-upload-section{border:1px dashed rgba(22,160,133,.35);border-radius:16px;padding:16px;background:rgba(22,160,133,.025)}
.product-modal .image-preview{min-height:110px;border-radius:13px;background:linear-gradient(135deg,rgba(52,152,219,.045),rgba(155,89,182,.04));display:grid;place-items:center}
.product-modal .image-preview img{max-height:180px;max-width:100%;object-fit:contain;border-radius:12px}
.product-modal .variants-section{border:1px solid rgba(52,152,219,.13);border-radius:15px;padding:14px;background:rgba(52,152,219,.025)}
.product-modal .variants-manager-head{align-items:center;gap:12px}
.product-modal .variants-manager-head strong{color:#2677b8}
.product-modal .variants-manager-head small{display:block;margin-top:4px;color:var(--muted,#78869a)}
.product-modal .modal-actions .primary{background:linear-gradient(135deg,#16a085,#3498db)!important;border:0!important;border-radius:12px!important;box-shadow:0 7px 18px rgba(22,160,133,.18)}
.product-modal .modal-actions .secondary{border-radius:12px}
@media(max-width:650px){.product-modal{width:98vw!important;max-height:96vh}.product-modal .product-form-scroll{padding:12px}.product-form-section-title{margin-top:10px}}


/* Pass338 — comprehensive dark surfaces + live accent tokenization */
:root{--accent:#4776B8;--accent-hover:#3B69A8;--accent-soft:#E8EFF9;--accent-contrast:#fff;--focus-ring:#4776B840}
.primary,.nav.active,.theme-color-swatch[aria-pressed="true"]{background:var(--accent)!important;border-color:var(--accent)!important}
.primary:hover{background:var(--accent-hover)!important}
.quick .qico,.product-entry-livebar .live-chip strong,.inventory-heading-spark{color:var(--accent)}
[data-theme="dark"] body,[data-theme="dark"] .main,[data-theme="dark"] #content,[data-theme="dark"] .content{background:var(--bg)!important;color:#F0F4FA}
[data-theme="dark"] .topbar,[data-theme="dark"] .panel,[data-theme="dark"] .stat-card,[data-theme="dark"] .kpi,[data-theme="dark"] .card,[data-theme="dark"] .modal,[data-theme="dark"] .product-modal,[data-theme="dark"] .inventory-modal,[data-theme="dark"] .quick button,[data-theme="dark"] .secondary,[data-theme="dark"] .icon-btn,[data-theme="dark"] .search,[data-theme="dark"] .products-toolbar,[data-theme="dark"] .table-wrap,[data-theme="dark"] .inventory-valuation-panel .stat-card,[data-theme="dark"] .product-form-section-title,[data-theme="dark"] .unit-pricing-box,[data-theme="dark"] .variants-section,[data-theme="dark"] .image-upload-section{
 background:var(--card)!important;color:#F0F4FA!important;border-color:var(--line)!important
}
[data-theme="dark"] .table,[data-theme="dark"] table{color:#EAF0F7}
[data-theme="dark"] .table th,[data-theme="dark"] table th{background:#253247!important;color:#B8C8DE!important}
[data-theme="dark"] .table td,[data-theme="dark"] table td{background:transparent;color:#E4ECF7;border-color:var(--line)!important}
[data-theme="dark"] .table tbody tr:hover,[data-theme="dark"] table tbody tr:hover{background:#26364D!important}
[data-theme="dark"] label,[data-theme="dark"] .form-grid label,[data-theme="dark"] .inventory-field{color:#DCE6F3}
[data-theme="dark"] input,[data-theme="dark"] textarea,[data-theme="dark"] select,[data-theme="dark"] .search input{
 background:#253247!important;color:#F0F4FA!important;border-color:#43546D!important;color-scheme:dark
}
[data-theme="dark"] input::placeholder,[data-theme="dark"] textarea::placeholder{color:#91A2BA!important}
[data-theme="dark"] .footer-note,[data-theme="dark"] small,[data-theme="dark"] .muted{color:#AABAD0}
[data-theme="dark"] .theme-color-popover,[data-theme="dark"] .theme-color-reset,[data-theme="dark"] .theme-color-custom{background:#202B3D!important;color:#F0F4FA!important;border-color:#35445A!important}
[data-theme="dark"] .theme-color-popover{box-shadow:0 18px 44px #0008}
[data-theme="dark"] .product-modal .modal-actions{background:var(--card)!important;border-color:var(--line)!important}
[data-theme="dark"] .product-form-section-title strong,[data-theme="dark"] .product-modal .unit-pricing-box>strong{color:#B7D0F2}
[data-theme="dark"] .inventory-kpi-grid .stat-card:before{background:linear-gradient(90deg,var(--accent),#168C88,#7557C8)}


/* Pass339 — refined color picker, live preview and coherent accent feedback */
.theme-color-toggle{display:inline-flex;align-items:center;gap:9px;min-height:38px;padding:0 13px;border:1px solid var(--line);border-radius:11px;background:var(--card);color:inherit;font:700 12px Cairo,Tahoma,sans-serif;cursor:pointer;transition:.18s}
.theme-color-toggle:before{content:"";width:13px;height:13px;border-radius:50%;background:var(--preview-color,var(--accent));box-shadow:0 0 0 3px color-mix(in srgb,var(--preview-color,var(--accent)) 18%,transparent)}
.theme-color-toggle:hover{border-color:var(--accent);transform:translateY(-1px)}
.theme-color-popover{position:absolute;z-index:99999;top:calc(100% + 10px);right:0;width:270px;padding:15px;border:1px solid var(--line);border-radius:17px;background:var(--card);color:var(--ink);box-shadow:0 18px 48px #14243b26;display:flex;flex-direction:column;gap:12px;animation:themePickerIn .16s ease-out}
.theme-color-popover[hidden]{display:none!important}
.theme-color-popover-title{margin:0;font-size:13px;font-weight:900}
.theme-color-live-preview{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--bg)}
.theme-color-preview-dot{width:34px;height:34px;flex:0 0 34px;border-radius:10px;background:var(--preview-color,var(--accent));box-shadow:inset 0 0 0 1px #ffffff45,0 4px 12px color-mix(in srgb,var(--preview-color,var(--accent)) 30%,transparent)}
.theme-color-live-preview>span:nth-child(2){display:flex;flex:1;flex-direction:column;line-height:1.5}
.theme-color-live-preview b{font-size:11px}.theme-color-live-preview small{font-size:9px;color:var(--muted)}
.theme-color-live-preview code{font-size:10px;font-weight:900;color:var(--preview-color,var(--accent));direction:ltr}
.theme-color-swatches{display:grid;grid-template-columns:repeat(6,1fr);gap:9px}
.theme-color-swatch{width:31px;height:31px;border-radius:50%;border:2px solid var(--line);background:var(--swatch)!important;cursor:pointer;position:relative;transition:transform .15s,box-shadow .15s}
.theme-color-swatch:hover{transform:scale(1.12)}
.theme-color-swatch[aria-pressed="true"]{box-shadow:0 0 0 3px var(--card),0 0 0 5px var(--swatch);transform:scale(1.04)}
.theme-color-swatch[aria-pressed="true"]:after{content:"✓";position:absolute;inset:0;display:grid;place-items:center;color:#fff;text-shadow:0 1px 3px #000;font-size:15px;font-weight:900}
.theme-color-custom{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border:1px solid var(--line);border-radius:12px;font-size:11px;font-weight:800}
.theme-color-custom input[type=color]{width:40px;height:34px;padding:3px;border:1px solid var(--line);border-radius:8px;background:var(--card);cursor:pointer}
.theme-color-reset{min-height:37px;border:1px solid var(--line);border-radius:11px;background:var(--bg);color:inherit;font:700 11px Cairo,Tahoma,sans-serif;cursor:pointer}
.theme-color-reset:hover{border-color:var(--accent);color:var(--accent)}
[data-theme="dark"] .theme-color-live-preview{background:#172233;border-color:#3A4A61}
[data-theme="dark"] .theme-color-toggle{background:#202B3D;color:#F0F4FA;border-color:#35445A}
@keyframes themePickerIn{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.theme-color-popover{right:auto;left:0;width:min(270px,90vw)}}


/* Pass340 — centralized design tokens consumed by controls, charts and status surfaces */
:root{
 --button-primary:var(--accent);--button-primary-hover:var(--accent-hover);
 --alert-accent:var(--accent);--badge-accent:var(--accent);
 --chart-series-1:var(--accent);--chart-series-2:#168C88;--chart-series-3:#7557C8;--chart-series-4:#E39A35;
 --accent-10:color-mix(in srgb,var(--accent) 10%,transparent);
 --accent-16:color-mix(in srgb,var(--accent) 16%,transparent);
 --accent-24:color-mix(in srgb,var(--accent) 24%,transparent);
}
button.primary,.btn-primary,.primary-action,.modal-actions .primary{background:var(--button-primary)!important;border-color:var(--button-primary)!important;color:var(--accent-contrast,#fff)}
button.primary:hover,.btn-primary:hover,.primary-action:hover,.modal-actions .primary:hover{background:var(--button-primary-hover)!important;border-color:var(--button-primary-hover)!important}
:where(input,select,textarea,button,[tabindex]):focus-visible{outline:2px solid var(--accent)!important;outline-offset:2px}
:where(.badge,.pill,.tag,.status-badge,.category-chip).accent,:where(.badge,.pill,.tag,.status-badge,.category-chip)[data-tone="accent"]{background:var(--accent-10);color:var(--accent);border-color:var(--accent-24)}
:where(.alert,.notice,.callout)[data-tone="accent"]{border-inline-start:4px solid var(--alert-accent);background:var(--accent-10)}
:where(.progress,.progress-bar,.meter) :where(.fill,.bar,.value){background:var(--accent)}
:where(.chart,.chart-container,.dashboard-chart) .series-primary{color:var(--chart-series-1);stroke:var(--chart-series-1)}
:where(.chart,.chart-container,.dashboard-chart) .series-secondary{color:var(--chart-series-2);stroke:var(--chart-series-2)}
:where(.chart,.chart-container,.dashboard-chart) .series-tertiary{color:var(--chart-series-3);stroke:var(--chart-series-3)}
:where(.chart,.chart-container,.dashboard-chart) .series-quaternary{color:var(--chart-series-4);stroke:var(--chart-series-4)}
[data-theme="dark"] :where(.badge,.pill,.tag,.status-badge,.category-chip).accent,[data-theme="dark"] :where(.badge,.pill,.tag,.status-badge,.category-chip)[data-tone="accent"]{background:var(--accent-16);color:color-mix(in srgb,var(--accent) 75%,#fff);border-color:var(--accent-24)}
[data-theme="dark"] :where(.alert,.notice,.callout)[data-tone="accent"]{background:var(--accent-10);color:#EAF0F7}


/* Pass341 — user-level typography, scale and density preferences */
:root{--ui-scale:1;--ui-font:'Cairo',Tahoma,Arial,sans-serif}
body{font-family:var(--ui-font)!important}
.app-shell,.main,.sidebar,.modal-overlay{font-size:calc(1em * var(--ui-scale,1))}
.theme-ui-preferences{display:grid;gap:9px;padding:12px;border:1px solid var(--line);border-radius:13px;background:var(--bg)}
.theme-ui-preferences-title{font-size:12px;font-weight:900}
.theme-ui-preferences>label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;font-weight:700}
.theme-ui-preferences select{max-width:125px;min-width:105px;padding:7px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:inherit;font:inherit}
.theme-ui-density{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:10px}
.theme-ui-density span{width:100%;font-weight:800}
.theme-ui-density button{flex:1;padding:7px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:inherit;font:700 10px Cairo,Tahoma,sans-serif}
.theme-ui-density button[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-10);color:var(--accent)}
[data-ui-density="compact"] .nav{height:36px}
[data-ui-density="compact"] table td,[data-ui-density="compact"] table th{padding-block:6px!important}
[data-ui-density="compact"] .panel,[data-ui-density="compact"] .card,[data-ui-density="compact"] .stat-card{padding:12px!important}
[data-ui-density="comfortable"] .nav{min-height:43px}
[data-theme="dark"] .theme-ui-preferences{background:#172233;border-color:#35445A}
[data-theme="dark"] .theme-ui-preferences select,[data-theme="dark"] .theme-ui-density button{background:#253247;color:#EAF0F7;border-color:#43546D}

/* Pass341 font-size scaling uses root percentage for robust rem scaling */
.app-shell,.main,.sidebar,.modal-overlay{font-size:inherit}

/* Pass342 — named preference profiles */
.theme-profile-box{display:grid;gap:9px;padding:12px;border:1px solid var(--line);border-radius:13px;background:var(--bg)}
.theme-profile-box>strong{font-size:12px;font-weight:900}
.theme-profile-box small{font-size:10px;line-height:1.7;color:var(--muted)}
.theme-profile-row{display:flex;gap:7px}
.theme-profile-box input,.theme-profile-box select{min-width:0;flex:1;padding:8px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:inherit;font:11px Cairo,Tahoma,sans-serif}
.theme-profile-box button{padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:inherit;font:700 11px Cairo,Tahoma,sans-serif;cursor:pointer}
.theme-profile-box button:hover{border-color:var(--accent);color:var(--accent)}
.theme-profile-row button[data-profile-save]{background:var(--accent);border-color:var(--accent);color:#fff}
[data-theme="dark"] .theme-profile-box{background:#172233;border-color:#35445A}
[data-theme="dark"] .theme-profile-box input,[data-theme="dark"] .theme-profile-box select,[data-theme="dark"] .theme-profile-box button{background:#253247;color:#EAF0F7;border-color:#43546D}
[data-theme="dark"] .theme-profile-row button[data-profile-save]{background:var(--accent);color:var(--accent-contrast,#fff)}


/* Pass343 — dashboard dark-mode correction for hard-coded Pass308 light surfaces */
[data-theme="dark"] #content:has(.kpis) .page-heading{background:linear-gradient(120deg,#202B3D 0%,#1D293B 58%,#24364D 100%)!important;border-color:#35445A!important;box-shadow:0 10px 30px rgba(0,0,0,.18)!important;color:#F0F4FA!important}
[data-theme="dark"] #content:has(.kpis) .page-heading h1{color:#F0F4FA!important}
[data-theme="dark"] #content:has(.kpis) .page-heading p,[data-theme="dark"] #content:has(.kpis) .dash-updated,[data-theme="dark"] #content:has(.kpis) .dash-source-status span{color:#AABAD0!important}
[data-theme="dark"] #content:has(.kpis) .dashboard-range{background:#253247!important;color:#F0F4FA!important;border-color:#43546D!important}
[data-theme="dark"] #content:has(.kpis) .kpi{background:linear-gradient(155deg,#202B3D 0%,#1D293B 100%)!important;border-color:#35445A!important;color:#F0F4FA!important}
[data-theme="dark"] #content:has(.kpis) .kpi strong,[data-theme="dark"] #content:has(.kpis) .panel-title h3{color:#F0F4FA!important}
[data-theme="dark"] #content:has(.kpis) .kpi-top,[data-theme="dark"] #content:has(.kpis) .kpi small{color:#AABAD0!important}
[data-theme="dark"] #content:has(.kpis) .panel{background:#202B3D!important;border-color:#35445A!important;color:#F0F4FA!important;box-shadow:0 7px 24px rgba(0,0,0,.16)!important}
[data-theme="dark"] #content:has(.kpis) .dashboard-reconciliation{background:#1B2738!important;border-color:#35445A!important}
[data-theme="dark"] #content:has(.kpis) .panel-title{border-color:#35445A!important}
[data-theme="dark"] #content:has(.kpis) .table th{background:#253247!important;color:#B9C9DC!important}
[data-theme="dark"] #content:has(.kpis) .table td{border-color:#35445A!important;color:#E3ECF7!important}
[data-theme="dark"] #content:has(.kpis) .donut:after{background:#202B3D!important}
[data-theme="dark"] #content:has(.kpis) .chart-labels,[data-theme="dark"] #content:has(.kpis) .legend-item{color:#AABAD0!important}
[data-theme="dark"] #content:has(.kpis) .gridline{stroke:#35445A!important}

/* Pass344 — consistent theme surfaces, popover containment and variants UX */
.theme-color-popover{box-sizing:border-box;max-width:min(340px,calc(100vw - 20px));max-height:min(78vh,720px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable}
.theme-color-popover *,.theme-color-popover *::before,.theme-color-popover *::after{box-sizing:border-box;min-width:0}
.theme-color-popover input,.theme-color-popover select,.theme-color-popover button{max-width:100%}
.theme-color-popover .theme-profile-row,.theme-color-popover .theme-profile-actions,.theme-color-popover .theme-custom-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.theme-color-popover .theme-profile-row input{flex:1 1 120px;width:100%}
.theme-color-popover .theme-profile-row button,.theme-color-popover .theme-profile-actions button{flex:0 1 auto}
.variants-section{min-width:0;max-width:100%;overflow:hidden;border:1px solid var(--border,#dbe2ea);border-radius:14px;padding:14px;background:var(--surface,var(--card,#fff));color:var(--text,var(--ink,#1f2937))}
.variants-manager-head{flex-wrap:wrap;min-width:0}
.variants-manager-head>div{flex:1 1 220px;min-width:0}
.variants-manager-head button{flex:0 0 auto;white-space:nowrap}
.variants-manager-wrap{max-width:100%;width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;border-radius:10px;scrollbar-width:thin}
.variants-manager{table-layout:auto;min-width:790px;width:100%;background:var(--surface,var(--card,#fff));color:var(--text,var(--ink,#1f2937))}
.variants-manager th,.variants-manager td{vertical-align:middle}
.variants-manager td:nth-child(5) input{margin:3px 0}
.variants-manager input{box-sizing:border-box;max-width:100%;background:var(--input-bg,var(--surface-muted,#fff));color:var(--text,var(--ink,#1f2937));border-color:var(--border,#dbe2ea)}
.variants-manager tr:last-child td{border-bottom:0}
.product-modal,.product-modal *{box-sizing:border-box}
.product-modal .product-form-scroll{min-width:0;overflow-x:hidden}
.product-modal .form-grid,.product-modal .unit-price-grid{min-width:0}
[data-theme="dark"] .variants-section{background:var(--surface,#202b3d);border-color:var(--border,#35445a);color:var(--text,#f0f4fa)}
[data-theme="dark"] .variants-manager,[data-theme="dark"] .variants-manager-wrap{background:var(--surface,#202b3d);border-color:var(--border,#35445a)}
[data-theme="dark"] .variants-manager th{background:var(--surface-muted,#26354a);color:var(--text,#f0f4fa)}
[data-theme="dark"] .variants-manager td{border-color:var(--border,#35445a)}
[data-theme="dark"] .variants-manager input{background:var(--input-bg,#1b2637);color:var(--text,#f0f4fa);border-color:var(--border,#35445a)}
[data-theme="dark"] .variants-manager-head strong{color:var(--accent,#72a9e8)}
@media(max-width:700px){.variants-section{padding:10px}.variants-manager-head{align-items:stretch}.variants-manager-head button{width:100%}.theme-color-popover{width:min(320px,calc(100vw - 16px));right:0;left:auto}}

/* Pass347: theme-mode-safe CRM/report surfaces */
html:not([data-theme="dark"]) .crm-hero,html[data-theme="light"] .crm-hero{
 background:linear-gradient(115deg,#f8fbff 0%,#eaf2fb 68%,#dce9f8 100%);color:#20344f;border:1px solid #d7e3f1;box-shadow:0 8px 22px rgba(36,68,105,.08)
}
html:not([data-theme="dark"]) .crm-hero h1,html[data-theme="light"] .crm-hero h1{color:#20344f}
html:not([data-theme="dark"]) .crm-hero h1 span,html[data-theme="light"] .crm-hero h1 span{border-color:#9fb6d1;color:#41658e;background:#ffffff80}
html:not([data-theme="dark"]) .crm-hero p,html[data-theme="light"] .crm-hero p{color:#63758d}
html:not([data-theme="dark"]) .crm-eyebrow,html[data-theme="light"] .crm-eyebrow{color:#52769d}
html:not([data-theme="dark"]) .crm-add,html[data-theme="light"] .crm-add{background:#3769a8!important;color:#fff!important}
html:not([data-theme="dark"]) .crm-alert,html[data-theme="light"] .crm-alert{background:#fff8e9;border-color:#edce91}
html[data-theme="dark"] .crm-hero,html[data-theme="dark"] .reports-hero{
 background:linear-gradient(115deg,#202c40 0%,#24364f 70%,#263c59 100%)!important;color:#edf3fb!important;border:1px solid #3b506c!important;box-shadow:0 8px 22px #0003!important
}
html[data-theme="dark"] .crm-hero h1,html[data-theme="dark"] .reports-hero h1{color:#f3f6fc!important}
html[data-theme="dark"] .crm-hero p,html[data-theme="dark"] .reports-hero p{color:#b9c8dc!important}
html[data-theme="dark"] .crm-eyebrow,html[data-theme="dark"] .reports-eyebrow{color:#9eb9df!important}
html[data-theme="dark"] .crm-hero h1 span{background:#25364d!important;color:#c5d8f2!important;border-color:#607a9c!important}
html[data-theme="dark"] .crm-add{background:var(--accent,#4776b8)!important;color:#fff!important}
html[data-theme="dark"] .reports-hero-mark{background:#2a3d57!important;color:#f0a45a!important;border-color:#526b89!important}
html[data-theme="dark"] .reports-filter-panel,html[data-theme="dark"] .reports-kpi,html[data-theme="dark"] .reports-details,html[data-theme="dark"] .reports-table-wrap{
 background:#202c40!important;color:#e8eff9!important;border-color:#384b64!important
}
html[data-theme="dark"] .reports-table thead th{background:#2b3c55!important;color:#dce8f7!important}
html[data-theme="dark"] .reports-table tbody td{background:#202c40!important;color:#dce5f2!important;border-color:#34465d!important}
html[data-theme="dark"] .reports-note{background:#26374d!important;color:#b9c8dc!important;border-color:#3b506c!important}
html:not([data-theme="dark"]) .reports-hero,html[data-theme="light"] .reports-hero{
 background:linear-gradient(115deg,#f8fbff 0%,#eaf2fb 72%,#dce9f8 100%);color:#20344f;border:1px solid #d7e3f1;box-shadow:0 8px 22px rgba(36,68,105,.08)
}
html:not([data-theme="dark"]) .reports-hero h1,html[data-theme="light"] .reports-hero h1{color:#20344f}
html:not([data-theme="dark"]) .reports-hero p,html[data-theme="light"] .reports-hero p{color:#63758d}
html:not([data-theme="dark"]) .reports-eyebrow,html[data-theme="light"] .reports-eyebrow{color:#52769d}
html:not([data-theme="dark"]) .reports-hero-mark,html[data-theme="light"] .reports-hero-mark{background:#fff;border-color:#d5e2f1;color:#df7b28}
html:not([data-theme="dark"]) .reports-filter-icon,html[data-theme="light"] .reports-filter-icon{background:#eaf1fb;color:#3769a8}
html:not([data-theme="dark"]) .reports-table thead th,html[data-theme="light"] .reports-table thead th{background:#294b70;color:#fff}
html:not([data-theme="dark"]) .reports-note,html[data-theme="light"] .reports-note{background:#f5f8fc;border-color:#e0e8f2}
/* Preset swatches: paint each actual hex directly, independent of custom-property cascade */
.theme-color-popover .theme-color-swatches .theme-color-swatch{
 display:block!important;appearance:none!important;-webkit-appearance:none!important;
 box-sizing:border-box!important;width:27px!important;height:27px!important;min-width:27px!important;min-height:27px!important;
 padding:0!important;margin:0!important;border-radius:50%!important;background-image:none!important;
 opacity:1!important;visibility:visible!important;filter:none!important;border:2px solid #9aa9bd!important;
}
.theme-color-popover .theme-color-swatches .theme-color-swatch[aria-pressed="true"]{outline:2px solid var(--accent)!important;outline-offset:3px!important}
html[data-theme="dark"] .theme-color-popover .theme-color-swatches .theme-color-swatch{border-color:#c0ccdc!important;box-shadow:inset 0 0 0 1px #ffffff55,0 1px 4px #0009!important}


/* Pass348: premium finance/accounts module */
.accounts-page{--acc-ink:#21344d;--acc-muted:#73849a;--acc-line:#dce5ef;--acc-surface:#fff;--acc-soft:#f4f7fb;display:flex;flex-direction:column;gap:20px}
.accounts-heading{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:24px 26px;border:1px solid var(--acc-line);border-radius:18px;background:linear-gradient(120deg,#f8fbff,#eaf2fb 78%,#e2edf9);color:var(--acc-ink);box-shadow:0 8px 24px #183b6210}
.accounts-eyebrow,.accounts-section-kicker{display:block;font-size:10px;letter-spacing:1.6px;font-weight:800;color:#6484aa;margin-bottom:7px}
.accounts-heading h1{margin:0;font-size:25px;font-weight:850;color:#21344d}.accounts-heading p{margin:6px 0 0;font-size:12px;color:#6c7e94}
.accounts-toolbar{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end;max-width:58%}.accounts-toolbar .secondary{background:#fff;border-color:#d7e1ed;color:#40556f}.accounts-toolbar .primary{background:#3769a8}
.accounts-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.accounts-kpi{position:relative;min-width:0;padding:19px 20px;border:1px solid var(--acc-line);border-radius:16px;background:var(--acc-surface);box-shadow:0 5px 18px #183b6208;display:flex;flex-direction:column;gap:5px}
.accounts-kpi-icon{position:absolute;left:18px;top:17px;width:36px;height:36px;border-radius:11px;background:#edf4fc;color:#4775ad;display:grid;place-items:center;font-size:19px}
.accounts-kpi small{font-size:12px;color:var(--acc-muted);font-weight:650}.accounts-kpi strong{font-size:27px;line-height:1.35;color:var(--acc-ink);font-weight:850}.accounts-kpi em{font-size:10px;color:#8a9aaf;font-style:normal}.accounts-kpi-total{border-top:3px solid #4779b6}
.accounts-section{border:1px solid var(--acc-line);border-radius:18px;background:var(--acc-surface);padding:22px;box-shadow:0 5px 18px #183b6208}
.accounts-section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.accounts-section-head h2{font-size:17px;margin:0;color:var(--acc-ink);font-weight:800}.accounts-section-head p{font-size:11px;margin:5px 0 0;color:var(--acc-muted)}.accounts-section-kicker{font-size:9px;letter-spacing:1.4px;margin-bottom:4px}
.accounts-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.accounts-account-card{border:1px solid var(--acc-line);border-radius:15px;padding:18px;background:linear-gradient(180deg,#fff,#fbfdff);min-width:0;transition:transform .18s,box-shadow .18s}.accounts-account-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px #183b6212}
.accounts-account-top{display:flex;justify-content:space-between;align-items:center}.accounts-account-symbol{width:39px;height:39px;border-radius:12px;display:grid;place-items:center;background:#eaf2fc;color:#4775ad;font-size:20px}.accounts-account-type{font-size:11px;color:#7a8ba0;background:#f2f6fb;border-radius:20px;padding:5px 9px}
.accounts-account-card h3{font-size:16px;margin:14px 0 5px;color:#243750;font-weight:800}.accounts-account-card>small{font-size:11px;color:#8b9aab}.accounts-balance{display:block;font-size:24px;color:#234a78;margin:2px 0 17px;font-weight:850}
.accounts-account-actions{display:flex;flex-wrap:wrap;gap:7px;border-top:1px solid #edf1f6;padding-top:13px}.accounts-account-actions button{border:1px solid #dce5ef;background:#fff;color:#52657d;border-radius:8px;padding:7px 10px;font-family:inherit;font-size:11px;font-weight:700;cursor:pointer}.accounts-account-actions .accounts-action-in{background:#eaf6ef;color:#28764c;border-color:#d1eadb}.accounts-account-actions .accounts-action-out{background:#fff1ed;color:#a4513d;border-color:#f2d9d1}
.accounts-ledger-tools{display:flex;gap:8px;flex-wrap:wrap}.accounts-ledger-tools input{min-width:230px}.accounts-table-wrap{overflow:auto}.accounts-table thead th{background:#f1f5fa;color:#536a85;font-size:11px;white-space:nowrap}.accounts-table tbody td{font-size:12px}.accounts-empty{padding:28px;text-align:center;color:var(--acc-muted);background:var(--acc-soft);border-radius:12px}
html[data-theme="dark"] .accounts-page{--acc-ink:#edf3fb;--acc-muted:#a8bad0;--acc-line:#384b64;--acc-surface:#202c40;--acc-soft:#26374d}
html[data-theme="dark"] .accounts-heading{background:linear-gradient(120deg,#202c40,#263b57)!important;color:#edf3fb;border-color:#3b506c}
html[data-theme="dark"] .accounts-heading h1,html[data-theme="dark"] .accounts-section-head h2{color:#edf3fb}
html[data-theme="dark"] .accounts-heading p,html[data-theme="dark"] .accounts-kpi em,html[data-theme="dark"] .accounts-section-head p{color:#a9bad0}
html[data-theme="dark"] .accounts-toolbar .secondary{background:#26374d;border-color:#405570;color:#dce8f7}
html[data-theme="dark"] .accounts-kpi,html[data-theme="dark"] .accounts-section{background:#202c40;border-color:#384b64;box-shadow:0 5px 18px #0002}
html[data-theme="dark"] .accounts-kpi strong{color:#f0f5fc}
html[data-theme="dark"] .accounts-kpi-icon,html[data-theme="dark"] .accounts-account-symbol{background:#2b4260;color:#9fc5f3}
html[data-theme="dark"] .accounts-account-card{background:linear-gradient(180deg,#202c40,#1d293b);border-color:#3b506c}
html[data-theme="dark"] .accounts-account-card h3{color:#edf3fb}
html[data-theme="dark"] .accounts-account-type{background:#2b3c55;color:#bdcce0}
html[data-theme="dark"] .accounts-balance{color:#a9cdf8}
html[data-theme="dark"] .accounts-account-actions{border-color:#35475e}
html[data-theme="dark"] .accounts-account-actions button{background:#26374d;color:#d2deee;border-color:#405570}
html[data-theme="dark"] .accounts-account-actions .accounts-action-in{background:#1f4238;color:#8ee0b4;border-color:#315e4e}
html[data-theme="dark"] .accounts-account-actions .accounts-action-out{background:#4a302e;color:#ffc0ad;border-color:#69433e}
html[data-theme="dark"] .accounts-table thead th{background:#2b3c55!important;color:#cbd9eb!important}
html[data-theme="dark"] .accounts-table tbody td{background:#202c40;color:#dce5f2;border-color:#35475e}
html[data-theme="dark"] .accounts-empty{background:#26374d;color:#b8c8dc}
@media(max-width:1100px){.accounts-heading{align-items:flex-start;flex-direction:column}.accounts-toolbar{max-width:100%;justify-content:flex-start}.accounts-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.accounts-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.accounts-section{padding:15px}.accounts-cards{grid-template-columns:1fr}.accounts-kpis{gap:9px}.accounts-kpi{padding:15px}.accounts-kpi strong{font-size:22px}.accounts-heading{padding:18px}.accounts-ledger-tools,.accounts-ledger-tools input{width:100%;min-width:0}.accounts-section-head{align-items:flex-start;flex-direction:column}}


/* Pass349: accessible polished financial audit report modal */
.financial-audit-overlay{z-index:10020;background:rgba(8,16,29,.72);backdrop-filter:blur(7px);padding:22px;overflow:auto;display:flex;align-items:center;justify-content:center}
.faudit-modal{width:min(900px,96vw)!important;max-height:min(88vh,900px);overflow:hidden;display:flex;flex-direction:column;padding:0!important;border:1px solid #dbe5f0!important;border-radius:20px!important;background:#f7f9fc!important;color:#243750!important;box-shadow:0 30px 90px #0005!important}
.faudit-header{display:flex;align-items:center;gap:15px;padding:23px 26px;background:linear-gradient(115deg,#f5f9ff,#e6effa);border-bottom:1px solid #dbe5f0}
.faudit-mark{flex:0 0 48px;width:48px;height:48px;border-radius:15px;background:#e1f4e9;color:#22834e;display:grid;place-items:center;font-size:26px;font-weight:900}
.faudit-eyebrow{font-size:9px;font-weight:850;letter-spacing:1.6px;color:#6985a7}
.faudit-header h2{margin:4px 0;font-size:22px;color:#233952}.faudit-header p{margin:0;color:#74869b;font-size:12px}
.faudit-close{margin-inline-start:auto;border:1px solid #d6e0eb;background:#fff;color:#64758b;width:36px;height:36px;border-radius:10px;font-size:23px;cursor:pointer}
.faudit-summary{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:18px 22px 0;padding:17px 19px;border:1px solid #cfe6d8;border-radius:14px;background:#eff9f2;color:#235f3d}
.faudit-summary.has-issues{background:#fff7e9;border-color:#f0d6a6;color:#80551a}.faudit-summary>div:first-child{display:flex;flex-direction:column;gap:4px}.faudit-summary small,.faudit-summary span{font-size:11px;opacity:.8}.faudit-summary strong{font-size:18px}.faudit-count{display:flex;align-items:center;gap:8px}.faudit-count b{font-size:32px;line-height:1}.faudit-body{padding:20px 22px;overflow:auto;min-height:0}.faudit-section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.faudit-section-heading h3{margin:0;font-size:15px}.faudit-section-heading span{font-size:11px;color:#8090a4}.faudit-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.faudit-group{border:1px solid #e0e7ef;border-radius:12px;background:#fff;padding:13px 14px;min-width:0}.faudit-group-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;font-size:12px;font-weight:750;color:#40556e}.faudit-group-title b{flex:0 0 27px;height:27px;border-radius:9px;background:#e9f5ed;color:#28764b;display:grid;place-items:center;font-size:12px}.faudit-group.has-issues .faudit-group-title b{background:#fff0d7;color:#99651c}.faudit-group p{font-size:11px;color:#66806f;margin:10px 0 0}.faudit-group ul{margin:10px 0 0;padding-inline-start:18px;max-height:150px;overflow:auto;color:#865a22;font-size:11px;line-height:1.8}.faudit-group>small{display:block;margin-top:7px;color:#8796a8}.faudit-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 22px;border-top:1px solid #e0e7ef;background:#fff}.faudit-footer>span{font-size:11px;color:#7a8ba0}.faudit-footer button{min-width:105px}
html[data-theme="dark"] .faudit-modal{background:#1d293b!important;color:#e7eff9!important;border-color:#3a4d66!important}
html[data-theme="dark"] .faudit-header{background:linear-gradient(115deg,#202c40,#263b57);border-color:#3a4d66}
html[data-theme="dark"] .faudit-header h2{color:#edf4fc}html[data-theme="dark"] .faudit-header p{color:#a9bad0}html[data-theme="dark"] .faudit-eyebrow{color:#9bb8dc}
html[data-theme="dark"] .faudit-close{background:#2b3c55;color:#d8e4f3;border-color:#405570}
html[data-theme="dark"] .faudit-summary{background:#203c33;border-color:#315b49;color:#a8e2bf}html[data-theme="dark"] .faudit-summary.has-issues{background:#493923;border-color:#71562e;color:#f2cc8c}
html[data-theme="dark"] .faudit-section-heading span{color:#9fb1c8}
html[data-theme="dark"] .faudit-group{background:#243247;border-color:#3a4d66}html[data-theme="dark"] .faudit-group-title{color:#dce8f7}html[data-theme="dark"] .faudit-group p{color:#a6d5b8}html[data-theme="dark"] .faudit-group ul{color:#f0c887}html[data-theme="dark"] .faudit-group-title b{background:#29483a;color:#a5e0ba}html[data-theme="dark"] .faudit-group.has-issues .faudit-group-title b{background:#4a3a23;color:#f0ca8b}
html[data-theme="dark"] .faudit-footer{background:#202c40;border-color:#3a4d66}html[data-theme="dark"] .faudit-footer>span{color:#a9bad0}
@media(max-width:650px){.financial-audit-overlay{padding:8px}.faudit-modal{width:100%!important;max-height:94vh}.faudit-header{padding:16px}.faudit-header h2{font-size:18px}.faudit-summary{margin:12px;padding:13px}.faudit-body{padding:14px}.faudit-groups{grid-template-columns:1fr}.faudit-footer{padding:12px;flex-direction:column;align-items:stretch}}

/* Pass350: unified polished audit modal family */
.faudit-warning{background:#fff0d8;color:#9a6414}.faudit-ok{background:#e1f4e9;color:#22834e}
.faudit-empty{border:1px solid #cfe6d8;background:#eff9f2;color:#28764b;padding:28px;text-align:center;border-radius:13px;font-size:13px;font-weight:700}
html[data-theme="dark"] .faudit-empty{background:#203c33;border-color:#315b49;color:#a8e2bf}
.faudit-repair-modal{width:min(1180px,96vw)!important;max-height:90vh!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;border:1px solid #dbe5f0!important;border-radius:18px!important;background:#f7f9fc!important;color:#243750!important;box-shadow:0 30px 90px #0005!important}
.faudit-repair-modal>.panel-title{padding:18px 22px!important;background:linear-gradient(115deg,#f5f9ff,#e6effa)!important;border-bottom:1px solid #dbe5f0!important}
.faudit-repair-modal>.panel-title h3{color:#233952!important;font-size:19px!important}
.faudit-repair-modal .product-form-scroll{overflow:auto!important;min-height:0!important;padding:18px 22px!important}
.faudit-repair-modal .modal-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;padding:15px 20px!important;border-top:1px solid #e0e7ef!important;background:#fff!important;max-height:190px!important;overflow:auto!important}
.faudit-repair-modal .modal-actions button{border-radius:9px!important;font-size:11px!important}
.faudit-repair-modal .footer-note{border-radius:12px!important;padding:13px!important;background:#edf4fc!important;color:#536a85!important}
html[data-theme="dark"] .faudit-repair-modal{background:#1d293b!important;color:#e7eff9!important;border-color:#3a4d66!important}
html[data-theme="dark"] .faudit-repair-modal>.panel-title{background:linear-gradient(115deg,#202c40,#263b57)!important;border-color:#3a4d66!important}
html[data-theme="dark"] .faudit-repair-modal>.panel-title h3{color:#edf4fc!important}
html[data-theme="dark"] .faudit-repair-modal .modal-actions{background:#202c40!important;border-color:#3a4d66!important}
html[data-theme="dark"] .faudit-repair-modal .footer-note{background:#26374d!important;color:#b9c8dc!important}
@media(max-width:650px){.faudit-repair-modal{width:96vw!important;max-height:94vh!important}.faudit-repair-modal .modal-actions{max-height:230px!important}}

/* Pass351 central audit dashboard */
.faudit-domain-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:18px 22px 0}
.faudit-domain-cards article{display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:7px 9px;padding:12px;border:1px solid #dfe7f0;border-radius:12px;background:#fff}
.faudit-domain-cards article>span{grid-row:span 2;width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:#eaf2fc;color:#4775ad;font-size:17px}
.faudit-domain-cards b{font-size:11px;color:#425873}.faudit-domain-cards strong{font-size:20px;color:#29496e}.faudit-domain-cards small{grid-column:2/4;color:#8494a8;font-size:10px}
html[data-theme="dark"] .faudit-domain-cards article{background:#243247;border-color:#3a4d66}
html[data-theme="dark"] .faudit-domain-cards b{color:#dce8f7}html[data-theme="dark"] .faudit-domain-cards strong{color:#a9cdf8}
html[data-theme="dark"] .faudit-domain-cards article>span{background:#2b4260;color:#9fc5f3}html[data-theme="dark"] .faudit-domain-cards small{color:#9fb1c8}
@media(max-width:760px){.faudit-domain-cards{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}.faudit-center-modal .faudit-summary{margin:0 12px}.faudit-center-modal .faudit-body{padding:12px}}

/* Pass352 smart repair recommendations and approval queue */
.repair-approve-one{margin-top:7px!important;font-size:11px!important;padding:7px 10px!important;border:1px solid #b9cce2!important;border-radius:8px!important;background:#edf4fc!important;color:#315d91!important}
.repair-approve-one.approved{background:#e3f5e9!important;border-color:#b8dfc7!important;color:#247448!important}
.repair-approve-one:disabled{opacity:1;cursor:default}
html[data-theme="dark"] .repair-approve-one{background:#2a3c55!important;color:#c5dcf8!important;border-color:#435b78!important}
html[data-theme="dark"] .repair-approve-one.approved{background:#244333!important;color:#a9e2bd!important;border-color:#37644b!important}
.faudit-footer .faudit-repair-open{border:1px solid #c4d5e8!important;border-radius:9px!important;background:#edf4fc!important;color:#315d91!important}
html[data-theme="dark"] .faudit-footer .faudit-repair-open{background:#2a3c55!important;color:#c5dcf8!important;border-color:#435b78!important}

/* Pass353: polished account modal + utility calculator; theme-aware */
.tyke-account-modal{width:min(620px,calc(100vw - 28px));max-height:min(88vh,760px);overflow:auto;border:1px solid var(--border-color,rgba(148,163,184,.22));border-radius:22px;padding:26px;background:var(--card-bg,var(--surface,#1e293b));color:var(--text-color,#e5edf8);box-shadow:0 28px 90px rgba(0,0,0,.38)}
.tyke-account-modal .panel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}
.tyke-account-modal .panel-title h3{font-size:1.35rem;font-weight:800;margin:0}
.tyke-account-modal .product-form-scroll{padding:0 2px 18px}
.tyke-account-modal .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.tyke-account-modal label{display:flex;flex-direction:column;gap:9px;font-weight:700;color:var(--text-color,#e5edf8)}
.tyke-account-modal input,.tyke-account-modal select{width:100%;min-height:46px;border:1px solid var(--border-color,rgba(148,163,184,.25));border-radius:12px;padding:10px 13px;background:var(--input-bg,var(--surface-2,#263449));color:inherit;outline:none}
.tyke-account-modal input:focus,.tyke-account-modal select:focus{border-color:#6b9fe5;box-shadow:0 0 0 3px rgba(88,145,220,.16)}
.tyke-account-modal .modal-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:18px;border-top:1px solid var(--border-color,rgba(148,163,184,.18))}
#tykeCalcLauncher{position:fixed;z-index:999;left:22px;bottom:22px;width:54px;height:54px;border:1px solid rgba(130,170,225,.45);border-radius:17px;background:#4776b8;color:#fff;font-size:25px;font-weight:800;box-shadow:0 10px 30px rgba(0,0,0,.28);cursor:pointer}
.tyke-calculator{width:min(390px,calc(100vw - 26px));padding:22px;border-radius:22px;background:var(--card-bg,var(--surface,#1e293b));color:var(--text-color,#e5edf8);border:1px solid var(--border-color,rgba(148,163,184,.22));box-shadow:0 24px 80px rgba(0,0,0,.4)}
.tyke-calculator header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.tyke-calculator header h3{margin:3px 0;font-size:1.25rem}.tyke-calculator header small{letter-spacing:.15em;color:#8ba8cf}
.tyke-calc-display{box-sizing:border-box;width:100%;height:64px;margin-bottom:14px;border-radius:14px;border:1px solid var(--border-color,rgba(148,163,184,.2));background:var(--input-bg,#152238);color:var(--text-color,#f4f7fb);font-size:27px;font-weight:700;text-align:left;padding:12px 16px}
.tyke-calc-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.tyke-calc-grid button{min-height:52px;border-radius:12px;border:1px solid var(--border-color,rgba(148,163,184,.2));background:var(--surface-2,#293950);color:inherit;font-size:18px;font-weight:700;cursor:pointer;transition:transform .12s,filter .12s}.tyke-calc-grid button:hover{filter:brightness(1.12);transform:translateY(-1px)}.tyke-calc-grid button[data-key="="]{background:#4776b8;color:white}.tyke-calculator>p{font-size:12px;opacity:.7;margin:14px 0 0}
@media(max-width:560px){.tyke-account-modal .form-grid{grid-template-columns:1fr}.tyke-account-modal{padding:18px}}

/* PASS354 — global light/dark component normalization */
:root{
 --ui-radius:12px;--ui-radius-sm:9px;--ui-control-h:40px;
 --ui-focus:rgba(71,118,184,.24);--ui-primary:#4776b8;--ui-primary-hover:#38659f;
 --ui-text:#263449;--ui-muted:#6f7f93;--ui-border:#dbe3ed;--ui-panel:#fff;--ui-input:#fff;
}
html[data-theme="dark"]{
 --ui-text:#e6edf7;--ui-muted:#a6b6ca;--ui-border:#35465c;--ui-panel:#202b3d;--ui-input:#172337;
 --ui-focus:rgba(126,166,218,.28);--ui-primary:#628ec8;--ui-primary-hover:#79a3d8;
}
body{color:var(--ui-text)}
button,input,select,textarea{font:inherit}
button:not([class*="icon"]){border-radius:var(--ui-radius-sm);transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .12s ease}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:0;box-shadow:0 0 0 3px var(--ui-focus)!important}
input,select,textarea{border-radius:var(--ui-radius-sm);border-color:var(--ui-border)}
button.primary,.primary-action,.btn-primary,.modal-actions .primary{background:var(--ui-primary);border-color:var(--ui-primary);color:#fff}
button.primary:hover,.primary-action:hover,.btn-primary:hover,.modal-actions .primary:hover{background:var(--ui-primary-hover);border-color:var(--ui-primary-hover)}
button.secondary,.btn-secondary{background:var(--ui-panel);color:var(--ui-text);border:1px solid var(--ui-border)}
html[data-theme="dark"] button.secondary,html[data-theme="dark"] .btn-secondary{background:#253247;color:#e4edf8;border-color:#3a4b62}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background-color:var(--ui-input);color:var(--ui-text);border-color:var(--ui-border)}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#8295ad}
.table,table{border-collapse:separate;border-spacing:0}
.table th,table thead th{font-weight:800}
.table td,.table th,table td,table th{border-color:var(--ui-border)}
html[data-theme="dark"] .table th,html[data-theme="dark"] table thead th{background:#29384e;color:#d8e4f3}
html[data-theme="dark"] .table td,html[data-theme="dark"] table tbody td{color:#dce6f3;border-color:#35465c}
html[data-theme="dark"] .table tbody tr:nth-child(even),html[data-theme="dark"] table tbody tr:nth-child(even){background:#1d293b}
html[data-theme="dark"] .table tbody tr:nth-child(odd),html[data-theme="dark"] table tbody tr:nth-child(odd){background:#202b3d}
html[data-theme="dark"] .table tbody tr:hover,html[data-theme="dark"] table tbody tr:hover{background:#2b3c54}
.modal, [role="dialog"]{color:var(--ui-text)}
html[data-theme="dark"] .modal,html[data-theme="dark"] [role="dialog"]{background:var(--ui-panel);border-color:var(--ui-border)}
/* Remove costly broad animated effects; keep short feedback transitions */
*{scroll-behavior:auto}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* PASS355 — contrast correction for inventory optimization dashboard cards */
.inventory-optimization-panel .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.inventory-optimization-panel .stats .stat-card{background:#fff!important;color:#263449!important;border:1px solid #dce4ef!important;min-width:0}
.inventory-optimization-panel .stats .stat-card small{color:#66778d!important;font-weight:700;line-height:1.55}
.inventory-optimization-panel .stats .stat-card h2{color:#1d3d66!important;font-size:clamp(20px,2vw,28px);font-weight:850;line-height:1.3;opacity:1!important;text-shadow:none!important}
html[data-theme="dark"] .inventory-optimization-panel .stats .stat-card{background:#26364d!important;border-color:#455b78!important;color:#edf4fc!important}
html[data-theme="dark"] .inventory-optimization-panel .stats .stat-card small{color:#c2d0e2!important}
html[data-theme="dark"] .inventory-optimization-panel .stats .stat-card h2{color:#f2f7ff!important;opacity:1!important;text-shadow:none!important}
html[data-theme="dark"] .inventory-optimization-panel .panel-title h3,html[data-theme="dark"] .inventory-optimization-panel table th{color:#eaf2fc!important}
html[data-theme="dark"] .inventory-optimization-panel table td{color:#dce8f7!important}
@media(max-width:900px){.inventory-optimization-panel .stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.inventory-optimization-panel .stats{grid-template-columns:1fr}}
/* Calculator: persistent global dock, layered over app but below critical dialogs */
#tykeCalcLauncher{position:fixed;z-index:8500;left:20px;bottom:20px;width:58px;height:58px;border-radius:18px;display:grid;place-items:center;font-size:0;background:linear-gradient(145deg,#5d91d2,#37649d)!important;color:#fff!important;border:1px solid #8bb5e7!important;box-shadow:0 12px 32px #07142655;cursor:pointer}
#tykeCalcLauncher:before{content:"";width:25px;height:25px;display:block;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M8 7h8M8 11h2m4 0h2M8 15h2m4 0h2M8 19h2m4 0h2'/%3E%3C/svg%3E") center/contain no-repeat}
#tykeCalcOverlay{z-index:10050;backdrop-filter:blur(5px)}
.tyke-calculator{width:min(430px,calc(100vw - 24px));padding:22px!important;border-radius:24px!important}
.tyke-calculator .tyke-calc-display{height:78px;font-size:30px;text-align:right;direction:ltr;letter-spacing:.4px;background:#f3f6fa;color:#15253c;border:1px solid #ccd8e7}
.tyke-calc-grid button{min-height:56px;font-size:20px;border-radius:14px}
.tyke-calc-grid button[data-key="C"],.tyke-calc-grid button[data-key="⌫"]{background:#fbe9e9;color:#9b3434;border-color:#f0caca}
.tyke-calc-grid button[data-key="÷"],.tyke-calc-grid button[data-key="×"],.tyke-calc-grid button[data-key="−"],.tyke-calc-grid button[data-key="+"]{background:#e7f0fc;color:#285b98;border-color:#c7d9f0}
html[data-theme="dark"] .tyke-calculator .tyke-calc-display{background:#111b2b;color:#f4f8ff;border-color:#435873}
html[data-theme="dark"] .tyke-calc-grid button{background:#293a52;color:#eaf2fc;border-color:#405773}
html[data-theme="dark"] .tyke-calc-grid button[data-key="C"],html[data-theme="dark"] .tyke-calc-grid button[data-key="⌫"]{background:#49313a;color:#ffd1d5;border-color:#70434e}
html[data-theme="dark"] .tyke-calc-grid button[data-key="÷"],html[data-theme="dark"] .tyke-calc-grid button[data-key="×"],html[data-theme="dark"] .tyke-calc-grid button[data-key="−"],html[data-theme="dark"] .tyke-calc-grid button[data-key="+"]{background:#304966;color:#d5e8ff;border-color:#496a8e}

/* PASS356 — enforce high contrast for every dashboard stat KPI, not just stock panel */
[data-theme="dark"] .customer-intelligence-panel .stats .stat-card,
[data-theme="dark"] .dashboard .stats .stat-card,
[data-theme="dark"] .stats-grid .stat-card,
[data-theme="dark"] .stats .stat-card{background:#26364d!important;border:1px solid #465c79!important;color:#edf4ff!important}
[data-theme="dark"] .customer-intelligence-panel .stats .stat-card small,
[data-theme="dark"] .dashboard .stats .stat-card small,
[data-theme="dark"] .stats-grid .stat-card small,
[data-theme="dark"] .stats .stat-card small{color:#c6d5e8!important;opacity:1!important}
[data-theme="dark"] .customer-intelligence-panel .stats .stat-card h2,
[data-theme="dark"] .dashboard .stats .stat-card h2,
[data-theme="dark"] .stats-grid .stat-card h2,
[data-theme="dark"] .stats .stat-card h2{color:#f6f9ff!important;opacity:1!important;text-shadow:none!important;filter:none!important}
[data-theme="dark"] .customer-intelligence-panel .stats .stat-card h2 *,
[data-theme="dark"] .stats .stat-card h2 *{color:inherit!important;opacity:1!important}

/* PASS356 hard override: legacy KPI rules were winning on customer/dashboard cards */
html[data-theme="dark"] body .customer-intelligence-panel .stats .stat-card h2,
html[data-theme="dark"] body .panel .stats .stat-card h2,
html[data-theme="dark"] body .stats .stat-card h2,
html[data-theme="dark"] body .stats-grid .stat-card h2,
html[data-theme="dark"] body .stat-card h2,
html[data-theme="dark"] body .stat-card .value,
html[data-theme="dark"] body .stat-card strong{color:#FFFFFF!important;-webkit-text-fill-color:#FFFFFF!important;opacity:1!important;filter:none!important;text-shadow:0 1px 1px #0005!important}
html[data-theme="dark"] body .customer-intelligence-panel .stats .stat-card small,
html[data-theme="dark"] body .panel .stats .stat-card small,
html[data-theme="dark"] body .stats .stat-card small{color:#D2DEEE!important;-webkit-text-fill-color:#D2DEEE!important;opacity:1!important}
html[data-theme="light"] body .customer-intelligence-panel .stats .stat-card h2,
html[data-theme="light"] body .panel .stats .stat-card h2,
html[data-theme="light"] body .stats .stat-card h2,
html[data-theme="light"] body .stat-card h2{color:#17385F!important;-webkit-text-fill-color:#17385F!important;opacity:1!important}

/* PASS357 light-mode calculator contrast fix: force foreground/background at every nested control */
html[data-theme="light"] #tykeCalcOverlay .tyke-calculator{background:#ffffff!important;color:#17263c!important;border:1px solid #d7e0ec!important}
html[data-theme="light"] #tykeCalcOverlay .tyke-calculator h3,
html[data-theme="light"] #tykeCalcOverlay .tyke-calculator p,
html[data-theme="light"] #tykeCalcOverlay .tyke-calculator small,
html[data-theme="light"] #tykeCalcOverlay .tyke-calculator summary,
html[data-theme="light"] #tykeCalcOverlay .tyke-calculator li{color:#263b56!important;-webkit-text-fill-color:#263b56!important;opacity:1!important}
html[data-theme="light"] #tykeCalcOverlay .tyke-calc-grid button{background:#f0f4fa!important;color:#243954!important;-webkit-text-fill-color:#243954!important;border:1px solid #cbd7e6!important}
html[data-theme="light"] #tykeCalcOverlay .tyke-calc-grid button.operator,
html[data-theme="light"] #tykeCalcOverlay .tyke-calc-grid button[data-key="÷"],
html[data-theme="light"] #tykeCalcOverlay .tyke-calc-grid button[data-key="×"],
html[data-theme="light"] #tykeCalcOverlay .tyke-calc-grid button[data-key="−"],
html[data-theme="light"] #tykeCalcOverlay .tyke-calc-grid button[data-key="+"]{background:#dceafd!important;color:#174e91!important;-webkit-text-fill-color:#174e91!important}
html[data-theme="light"] #tykeCalcOverlay .tyke-calc-grid button[data-key="C"],
html[data-theme="light"] #tykeCalcOverlay .tyke-calc-grid button[data-key="⌫"]{background:#fde8e8!important;color:#9c3038!important;-webkit-text-fill-color:#9c3038!important}
html[data-theme="light"] #tykeCalcOverlay .tyke-calc-grid button[data-key="="]{background:#4776b8!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-theme="light"] #tykeCalcOverlay .tyke-calc-memory button{background:#eaf1fb!important;color:#23466f!important;border:1px solid #cbd9eb!important}
html[data-theme="light"] #tykeCalcOverlay #tykeCalcMemState{color:#526780!important}
html[data-theme="light"] #tykeCalcOverlay .tyke-calc-display{background:#f5f8fc!important;color:#14263e!important;-webkit-text-fill-color:#14263e!important}
html[data-theme="light"] #tykeCalcOverlay .tyke-calculator header button{background:#edf2f8!important;color:#253b56!important}
.tyke-auth-remember{display:flex!important;align-items:center;gap:10px;margin:8px 0 16px;color:#43556d;font-size:14px;cursor:pointer}
.tyke-auth-remember input{width:18px;height:18px;accent-color:#4776b8;flex:0 0 auto}
html[data-theme="dark"] .tyke-auth-remember{color:#d4e0ef}


/* PASS370 — compact, scannable ERP dashboard */
#content.dashboard-compact > .page-heading{
  padding:14px 18px!important;margin-bottom:12px!important;gap:12px!important;border-radius:14px!important;
}
#content.dashboard-compact > .page-heading h1{font-size:clamp(1.15rem,1.7vw,1.5rem)!important;margin-bottom:3px!important}
#content.dashboard-compact > .page-heading p{font-size:.82rem!important;line-height:1.45!important}
#content.dashboard-compact > .kpis{
  gap:10px!important;margin:0 0 12px!important;
}
#content.dashboard-compact > .kpis .kpi{
  min-height:100px!important;padding:13px 15px!important;border-radius:13px!important;
}
#content.dashboard-compact > .kpis .kpi strong{font-size:clamp(1.15rem,1.8vw,1.55rem)!important}
#content.dashboard-compact > .panel{
  margin-bottom:12px!important;border-radius:14px!important;
}
#content.dashboard-compact > .panel .panel-title{
  padding:13px 16px!important;margin-bottom:8px!important;
}
#content.dashboard-compact > .panel .panel-title h3{font-size:1rem!important}
#content.dashboard-compact > .panel .panel-title small{font-size:.75rem!important}
#content.dashboard-compact > .dashboard-more{
  margin:12px 0 16px!important;border:1px solid var(--border,#dbe3ee)!important;
  border-radius:14px!important;background:var(--card,#fff)!important;overflow:hidden!important;
}
#content.dashboard-compact > .dashboard-more > summary{
  cursor:pointer;list-style:none;padding:15px 18px;font-weight:700;font-size:.92rem;
  display:flex;align-items:center;justify-content:space-between;color:var(--text,#243247);
}
#content.dashboard-compact > .dashboard-more > summary::-webkit-details-marker{display:none}
#content.dashboard-compact > .dashboard-more > summary:after{content:'＋';font-size:1.15rem;color:var(--primary,#4776b8)}
#content.dashboard-compact > .dashboard-more[open] > summary:after{content:'−'}
#content.dashboard-compact .dashboard-more-content{padding:0 12px 12px}
#content.dashboard-compact .dashboard-more-content > .panel{margin:10px 0!important;border-radius:12px!important}
#content.dashboard-compact .dashboard-more-content > .panel .panel-title{padding:12px 14px!important}
#content.dashboard-compact .dashboard-more-content .table th,
#content.dashboard-compact .dashboard-more-content .table td{padding:8px 10px!important}
@media(max-width:760px){
 #content.dashboard-compact > .kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #content.dashboard-compact > .kpis .kpi{min-height:88px!important;padding:11px!important}
 #content.dashboard-compact > .page-heading{padding:12px!important}
}

/* Pass373: compact dashboard first-screen hierarchy */
.dashboard-compact-pass373 > .page-heading{margin-bottom:12px}
.dashboard-compact-pass373 > .kpis{margin-bottom:14px;gap:12px}
.dashboard-compact-pass373 > .panel:has(.quick){margin-bottom:14px}
.dashboard-more-pass373{margin:12px 0 20px;border:1px solid var(--border);border-radius:14px;background:var(--card, var(--surface));overflow:hidden}
.dashboard-more-pass373>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;font-weight:700;color:var(--primary);background:var(--soft, var(--bg));}
.dashboard-more-pass373>summary::-webkit-details-marker{display:none}
.dashboard-more-pass373>summary:after{content:'＋';font-size:1.15rem;font-weight:800}
.dashboard-more-pass373[open]>summary:after{content:'−'}
.dashboard-more-pass373 .dashboard-more-content{padding:14px;display:grid;gap:14px}
.dashboard-more-pass373 .charts{margin:0}
@media(max-width:700px){.dashboard-more-pass373>summary{padding:13px 14px}.dashboard-more-pass373 .dashboard-more-content{padding:10px;gap:10px}}
