/* V5.20.64 Daily Ledger v2 — notebook style: hero cash card, item tiles, day-end closing. (global reset zeroes padding, so spacing is !important) */
html body .skl-hero{display:block;margin:0 0 10px !important;padding:16px 18px !important;border-radius:20px;background:linear-gradient(135deg,var(--primary,#2563eb),color-mix(in srgb,var(--primary,#2563eb) 70%,#0b1220));color:#fff;box-shadow:0 8px 22px color-mix(in srgb,var(--primary,#2563eb) 28%,transparent)}
html body .skl-hero-top{display:flex;align-items:center;justify-content:space-between}
html body .skl-hero small{font-size:.68rem;font-weight:800;letter-spacing:.06em;opacity:.85}
html body .skl-hero-ic{width:34px;height:34px;border-radius:12px;background:rgba(255,255,255,.18);display:grid;place-items:center}
html body .skl-hero-ic svg{width:18px;height:18px}
html body .skl-hero-amt{display:block;font-size:2rem;font-weight:900;line-height:1.15;margin:4px 0 2px !important}
html body .skl-hero em{font-style:normal;font-size:.72rem;opacity:.85}
html body .skl-mini{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 10px !important}
html body .skl-m{padding:10px 10px !important;border-radius:14px;background:var(--card-bg,#fff);border:1px solid var(--card-border,#e2e8f0);min-width:0}
html body .skl-m small{display:block;font-size:.66rem;font-weight:800;color:var(--text-muted,#64748b)}
html body .skl-m b{display:block;font-size:.98rem;font-weight:900;margin:2px 0 !important;white-space:nowrap}
html body .skl-m em{font-style:normal;font-size:.64rem;color:var(--text-muted,#64748b)}
html body .skl-m-g b{color:#16a34a}html body .skl-m-r b{color:#dc2626}html body .skl-m-a b{color:#d97706}
html body .skl-box{padding:12px !important}
html body .skl-lbl{font-size:.72rem;font-weight:800;color:var(--text-muted,#64748b);margin:10px 0 6px !important}
html body .skl-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html body .skl-tile{padding:11px 10px !important;border-radius:12px;border:1px solid var(--card-border,#e2e8f0);background:var(--card-bg,#fff);color:var(--text,#0f172a);font-size:.8rem;font-weight:700;text-align:left;line-height:1.25;min-height:44px}
html body .skl-tile.on{background:var(--primary,#2563eb);border-color:var(--primary,#2563eb);color:#fff}
html body .skl-tile-new{border-style:dashed;color:var(--primary,#2563eb);text-align:center}
html body .skl-tile-cr{grid-column:span 2;border-color:#d97706;color:#b45309}
html body .skl-sel{margin:10px 0 6px !important;font-weight:800;font-size:.9rem}
html body .skl-amt{font-size:1.15rem !important;font-weight:800 !important}
html body .skl-chips{display:flex;gap:6px;flex-wrap:wrap}
html body .skl-chip{flex:1 1 0;min-width:64px;padding:10px 8px !important;border-radius:12px;border:1px solid var(--card-border,#e2e8f0);background:transparent;color:var(--text,#0f172a);font-size:.82rem;font-weight:800}
html body .skl-chip.on{background:color-mix(in srgb,var(--primary,#2563eb) 14%,transparent);border-color:var(--primary,#2563eb);color:var(--primary,#2563eb)}
html body .skl-close{padding:14px !important}
html body .skl-cr{display:flex;justify-content:space-between;gap:10px;padding:7px 0 !important;font-size:.86rem}
html body .skl-cr-b{border-top:1px dashed var(--card-border,#cbd5e1);font-weight:800;margin-top:2px}
html body .skl-neg{color:#dc2626}html body .skl-pos{color:#16a34a}
html body .skl-count{margin-top:10px}
html body .skl-count label{display:block;font-size:.74rem;font-weight:800;color:var(--text-muted,#64748b);margin:0 0 6px !important}
html body .skl-diff{margin-top:8px;padding:9px 12px !important;border-radius:12px;background:var(--model-bg,#eef2f7);font-size:.84rem;font-weight:800;text-align:center}
html body .skl-diff.ok{background:#dcfce7;color:#166534}html body .skl-diff.bad{background:#fee2e2;color:#991b1b}
html body .skl-note{font-size:.76rem;color:var(--text-muted,#64748b);margin-top:6px}
html body .skl-item{margin-top:2px}
html body .skl-sug{margin-top:6px;border:1px solid var(--card-border,#e2e8f0);border-radius:12px;overflow:hidden;background:var(--card-bg,#fff);max-height:240px;overflow-y:auto}
html body .skl-sg{display:flex;width:100%;justify-content:space-between;align-items:center;gap:8px;padding:11px 12px !important;border:0;border-top:1px solid var(--card-border,#e2e8f0);background:transparent;color:var(--text,#0f172a);font-size:.84rem;font-weight:700;text-align:left}
html body .skl-sg:first-child{border-top:0}
html body .skl-sg em{font-style:normal;font-size:.72rem;font-weight:700;color:var(--text-muted,#64748b);white-space:nowrap}
html body .skl-lbl0{font-size:.74rem;font-weight:800;color:var(--text-muted,#64748b)}
html body .skl-big{font-size:2rem;font-weight:900;margin:2px 0 !important}
html body .skl-sub{font-size:.74rem;color:var(--text-muted,#64748b);margin-bottom:10px !important}
html body .skl-tg{display:block;width:100%;margin-top:10px !important;padding:8px !important;border:0;background:transparent;color:var(--primary,#2563eb);font-size:.82rem;font-weight:800}
html body .skl-calc{border-top:1px solid var(--card-border,#e2e8f0);margin-top:4px !important;padding-top:6px !important}

/* V5.20.74/75: for these full-screen pages the VISIBLE surface is .modal-sheet (it fully covers .modal-overlay),
   not .modal-overlay itself - V5.20.72 colored the overlay, which is invisible here, so the mismatch stayed.
   This has to live in @layer skp: sk-premium-ui.css's own ".modal-sheet{background:var(--modal-bg)!important}"
   is inside that layer, and a layered !important always beats an unlayered one regardless of specificity.
   "inherit" takes whatever color appearance.css / sk-premium-ui.css already put on the direct parent
   (.modal-overlay, already matching Home's <body> since V5.20.72), so this tracks every theme automatically.
   V5.20.74 only listed a handful of IDs and missed Accessories / Orders / most other full-page screens;
   V5.20.75 reuses the fuller "full-page modal" ID list already maintained in css/fixes.css (search
   "div.modal-overlay:is(" there) so every one of these pages gets the same fix, plus Repair Guide which
   that list does not include. */
@layer skp{
html:not(#a#b) :is(#skAccessoriesPage,#skUsedStockModal,#settingsModal,#viewBillModal,#itemEditorModal,#repairSparesModal,#toolsOthersNoteModal,#billingModal,#skRepairJobsModal,#skWorkerEditModal,#skAdminPanelModal,#skCreditLedgerPage,#skAgingModal,#skBackupModal,#skBulkModal,#skCreditRangeModal,#skCreditRemindModal,#skCustModal,#skTechModal,#skDailyReportModal,#skDealerModal,#skMonthReportModal,#skPriceListModal,#skRecentModal,#skReviewModal,#skStorageHealthModal,#skWarrantyModal,#skGlobalSearchModal,#skRecycleBinModal,#modelsModal,#orderModal,#skRepairDetailModal,#skUrgentRepairModal,#skWorkerProfileModal,#skAdminProfileModal,#skCreditLedgerModal,#skCreditEntryModal,#skCreditCustomerModal,#skEmiReminderModal,#skKeepImportModal,#skCreditActionModal,#skRepairGuideModal,#skPurchaseDetailsModal) > .modal-sheet{background:inherit!important;background-image:inherit!important}
}

/* V5.20.76: the sticky TITLE BAR at the top of each of those same full-page screens still had its own
   background (--card-bg / --modal-bg, a near-white "header bar" look) instead of the page colour, which
   stood out even more once the page itself matched Home (V5.20.74/75) - the nav bar matched but the title
   bar at the top did not. Same @layer skp + inherit approach, one level deeper (the title bar's parent is
   now the correctly-coloured .modal-sheet, so it inherits the right colour automatically in every theme).
   This selector needs a long :not(#fakeId) chain (not just 2, like the .modal-sheet rule above) because
   css/pro-pages.css and css/hdr-collapse.css both carry their own 62-fake-ID title-bar background rules in
   this same @layer skp, which otherwise outrank a shorter chain on plain CSS specificity and keep painting
   the old --card-bg/--modal-bg colour. 70 fake IDs safely beats both. */
@layer skp{
html:not(#sktb0#sktb1#sktb2#sktb3#sktb4#sktb5#sktb6#sktb7#sktb8#sktb9#sktb10#sktb11#sktb12#sktb13#sktb14#sktb15#sktb16#sktb17#sktb18#sktb19#sktb20#sktb21#sktb22#sktb23#sktb24#sktb25#sktb26#sktb27#sktb28#sktb29#sktb30#sktb31#sktb32#sktb33#sktb34#sktb35#sktb36#sktb37#sktb38#sktb39#sktb40#sktb41#sktb42#sktb43#sktb44#sktb45#sktb46#sktb47#sktb48#sktb49#sktb50#sktb51#sktb52#sktb53#sktb54#sktb55#sktb56#sktb57#sktb58#sktb59#sktb60#sktb61#sktb62#sktb63#sktb64#sktb65#sktb66#sktb67#sktb68#sktb69) :is(#skAccessoriesPage,#skUsedStockModal,#settingsModal,#viewBillModal,#itemEditorModal,#repairSparesModal,#toolsOthersNoteModal,#billingModal,#skRepairJobsModal,#skWorkerEditModal,#skAdminPanelModal,#skCreditLedgerPage,#skAgingModal,#skBackupModal,#skBulkModal,#skCreditRangeModal,#skCreditRemindModal,#skCustModal,#skTechModal,#skDailyReportModal,#skDealerModal,#skMonthReportModal,#skPriceListModal,#skRecentModal,#skReviewModal,#skStorageHealthModal,#skWarrantyModal,#skGlobalSearchModal,#skRecycleBinModal,#modelsModal,#orderModal,#skRepairDetailModal,#skUrgentRepairModal,#skWorkerProfileModal,#skAdminProfileModal,#skCreditLedgerModal,#skCreditEntryModal,#skCreditCustomerModal,#skEmiReminderModal,#skKeepImportModal,#skCreditActionModal,#skRepairGuideModal,#skPurchaseDetailsModal) > .modal-sheet > :is(.modal-title,.skpro-head,.sk-used-stock-header,.skcl-bar,.repair-spares-head,.tools-others-head){background:inherit!important}
}
