/* Paylo 1.0.18 | Single palette for every interactive surface.
   Theme is resolved on <html data-theme="light|dark"> at page load and live.
   Receipt/PDF/print canvases intentionally retain their white paper styling. */
:root {
 --card:var(--surface);
 --card-bg:var(--surface);
 --border:var(--line);
 --soft:var(--surface-3);
 --text-primary:var(--text);
 --text-secondary:var(--text-2);
 /* Retain original --accent and secondary palette tokens. */
 --danger:var(--red);
 --danger-soft:var(--red-soft);
 --paylo-nav-bg:linear-gradient(115deg,#1769c2,#0f519a);
 --paylo-nav-action-bg:rgba(255,255,255,.12);
 --paylo-footer-shadow:0 -4px 18px rgba(23,73,110,.08);
}
html[data-theme="dark"] {
 --card:var(--surface);
 --card-bg:var(--surface);
 --border:var(--line);
 --soft:var(--surface-3);
 --paylo-nav-bg:linear-gradient(115deg,#163856,#102a43);
 --paylo-nav-action-bg:rgba(167,207,255,.12);
 --paylo-footer-shadow:0 -6px 22px rgba(0,0,0,.3);
}
/* NAVIGATION — original sizes, positions, and hit areas are not modified. */
.paylo-navbar{background:var(--paylo-nav-bg);color:#fff;border-bottom:1px solid rgba(255,255,255,.12)}
.paylo-nav-icon{background:var(--paylo-nav-action-bg)}
.paylo-bottom-nav{background:var(--surface);color:var(--text);border-top:1px solid var(--line);box-shadow:var(--paylo-footer-shadow)}
.paylo-tab{color:var(--muted)}
.paylo-tab.active{color:var(--brand);background:var(--brand-soft)}
.paylo-tab.active::before{background:var(--brand)}
.paylo-home,.paylo-calendar,.paylo-home-main{color:var(--text)}
/* Keep app shell, forms, and dialog surfaces in the same theme, including vendor dialogs. */
html[data-theme="dark"] :is(.app,.paylo-home,.paylo-calendar,.paylo-home-main,.table-wrap,.rows){background:var(--bg);color:var(--text)}
html[data-theme="dark"] :is(.controls,.row,.summary,.dialog-card,.modal,.sheet-card,.popover,.paylo-recent-section,.paylo-home-loading,.managed-account,.managed-account-quick-actions .quick,.pcal-board,.pcal-day,.pcal-card,.pcal-editor-card,.pcal-preview-card,.pcal-account-picker-card){background:var(--surface);color:var(--text);border-color:var(--line)}
html[data-theme="dark"] :is(.period,.mini,.date-mini,.account-select,.form-control,.manager-search,.managed-account-number,.account-row-index,.managed-row-index,.page-btn,.choice-chip,.theme-chip,.account-create-btn,.occasion-date-input input:first-child,.occasion-date-input button,.occasion-date-field,.today-stats-toggle,.head-fund-wrap select,.head-fund-wrap select option,.paylo-view-all,.pcal-picker-row,.pcal-picker-search,.pcal-account-trigger,.pcal-nav-arrow,.pcal-collapse){background:var(--surface-2);color:var(--text);border-color:var(--line-2)}
html[data-theme="dark"] :is(.period.active,.mini.active,.popitem.active,.theme-chip.active,.choice-chip.active,.pcal-chip.active,.pcal-today,.paylo-view-all){background:var(--brand-soft);border-color:var(--brand);color:#b4dbff}
html[data-theme="dark"] :is(.search-drawer,.search-panel,.search-overlay,.search-box){background:var(--surface-2);color:var(--text);border-color:var(--line)}
html[data-theme="dark"] .search-clear{color:var(--text-2)}
html[data-theme="dark"] :is(input:not([type="color"]):not([type="checkbox"]):not([type="radio"]),textarea,select){color:var(--text);accent-color:var(--brand)}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
html[data-theme="dark"] :is(input[type="date"],input[type="datetime-local"],input[type="time"]){color-scheme:dark}
html[data-theme="light"] :is(input[type="date"],input[type="datetime-local"],input[type="time"]){color-scheme:light}
html[data-theme="dark"] :is(.settings-block,.settings-group,.settings-section,.toggle-row,.tool-card,.manager-toolbar,.managed-account,.paylo-recent-item,.pcal-placeholder,.pcal-load-more,.pcal-picker-none,.pcal-picker-more){color:var(--text);border-color:var(--line)}
html[data-theme="dark"] .tool-card{background:var(--surface-2)}
html[data-theme="dark"] :is(.tool-card small,.settings-title small,.managed-account-copy small,.paylo-recent-header small,.pcal-card-main small,.pcal-card-side em){color:var(--muted)}
html[data-theme="dark"] :is(.sync-icon,.managed-account-icon,.user-profile-badge,.account-create-btn){background:var(--brand-soft);color:var(--brand-3)}
html[data-theme="dark"] :is(.sync-progress,.skeleton-line,.maha-ledger-skeleton){background-color:var(--surface-3)}
html[data-theme="dark"] :is(.managed-account-quick-actions .call,.managed-account-quick-actions .sms,.managed-account-quick-actions .whatsapp,.managed-account-quick-actions .pdf,.managed-account-quick-actions .excel){background:var(--surface-2);border-color:var(--line)}
html[data-theme="dark"] :is(.notification-item,.notification-list,.notifications-screen,.account-picker-screen,.account-picker-list,.setting-chip,.account-picker-item){background-color:var(--surface);color:var(--text);border-color:var(--line)}
html[data-theme="dark"] :is(.paylo-sidebar-open #moreDialog .dialog-card,.dialog.open>.dialog-card,.sheet.open>.dialog-card){background:var(--surface);color:var(--text)}
html[data-theme="dark"] :is(.dialog,.sheet,.modal-backdrop){background-color:rgba(0,7,17,.72)}
html[data-theme="dark"] .pcal-card{box-shadow:0 2px 12px rgba(0,0,0,.12)}
/* The ledger and preview use theme-aware skins. Paper printouts remain white. */
html[data-theme="dark"] :is(.voucher-preview-card,.voucher-preview-hero,.voucher-preview-item,.voucher-preview-actions,.voucher-statement-field,.voucher-field,.voucher-service-field,.voucher-deposit-tag,.voucher-remaining-field){color:var(--text);border-color:var(--line)}
html[data-theme="dark"] :is(.voucher-preview-card,.voucher-preview-hero,.voucher-preview-actions){background:var(--surface)}
html[data-theme="dark"] :is(.voucher-preview-item,.voucher-field,.voucher-service-field,.voucher-deposit-tag,.voucher-remaining-field){background:var(--surface-2)}
html[data-theme="dark"] .voucher-preview-item.amount{background:linear-gradient(135deg,#17578b,#1c72b7);color:#fff}
/* Entire management forms, including the newly introduced Chips. */
.pcat-tabs button,.pcat-theme,.pcal-type-chips button,.pcat-item,.pcat-form input:not([type="color"]),.pcat-form select{background:var(--surface);color:var(--text);border-color:var(--line)}
.pcat-tabs button.active,.pcat-theme.active,.pcal-type-chips button.active{background:var(--brand-soft);color:var(--brand-3);border-color:var(--brand)}
html[data-theme="dark"] .pcat-tabs button,html[data-theme="dark"] .pcat-theme,html[data-theme="dark"] .pcat-item,html[data-theme="dark"] .pcat-form input:not([type="color"]),html[data-theme="dark"] .pcat-form select,html[data-theme="dark"] .pcal-type-chips button{background:var(--surface-2);color:var(--text);border-color:var(--line-2)}
html[data-theme="dark"] .pcat-tabs button.active,html[data-theme="dark"] .pcat-theme.active,html[data-theme="dark"] .pcal-type-chips button.active{background:var(--brand-soft);color:#b4dbff;border-color:var(--brand)}
html[data-theme="dark"] #pcatColor{border-color:var(--line);background:var(--surface-2)}
/* Dedicated tools use shared theme aliases instead of white fallbacks. */
html[data-theme="dark"] :is(.pstock-panel,.pstock-card,.pstock-form,.pmat-panel,.pmat-card,.pper-panel,.pper-card,.pcash-panel,.pcash-entry,.pcash-summary>div,.pcash-difference){color:var(--text);background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] :is(.pcash-scroll input,.pcash-scroll select,.pcash-scroll textarea,.pper-panel input,.pper-panel select,.pstock-panel input,.pstock-panel select,.pmat-panel input,.pmat-panel select){background:var(--surface-2);color:var(--text);border-color:var(--line-2)}
html[data-theme="dark"] .pcash-summary>div,html[data-theme="dark"] .pcash-difference{background:var(--surface-2)}
/* Specific stock, material plan, and financial-period dialogs share their tokens. */
html[data-theme="dark"] :is(.pmplan-modal,.paylo-period-panel,.pmplan-line,.paylo-period-item,.paylo-period-secondary,.paylo-period-auto){background:var(--surface);color:var(--text);border-color:var(--line)}
html[data-theme="dark"] :is(.pmplan-line,.paylo-period-auto,.paylo-period-secondary){background:var(--surface-2)}
html[data-theme="dark"] :is(.pmplan-scroll input,.pmplan-scroll select,.paylo-period-scroll input,.paylo-period-scroll select,.pstock-section input,.pstock-section select,.pstock-section textarea){background:var(--surface-2);color:var(--text);border-color:var(--line-2)}
html[data-theme="dark"] :is(.pstock-card,.pstock-summary,.pstock-available,.pmplan-info,.pstock-price-editor){background:var(--surface-2);color:var(--text);border-color:var(--line)}
html[data-theme="dark"] :is(.pstock-tabs button.active,.pmplan-secondary){background:var(--brand-soft);color:#b4dbff;border-color:var(--brand)}
/* Diagnostics is separate from the boot process but adopts the same theme. */
html[data-theme="dark"] #payloDoctorPanel{background:var(--surface);color:var(--text);border:1px solid var(--line)}
html[data-theme="dark"] #payloDoctorPanel :is(.pd-small,.pd-row small){color:var(--text-2)}
html[data-theme="dark"] #payloDoctorPanel :is(.pd-close,.pd-actions button.secondary,.pd-note,.pd-errors){background:var(--surface-2);color:var(--text);border-color:var(--line)}
html[data-theme="dark"] #payloDoctorResults .pd-row{background:var(--surface-2);color:var(--text);border-color:var(--line)}
html[data-theme="dark"] #payloDoctorPanel .pd-note{background:var(--brand-soft);color:var(--text-2)}
/* Settings chips and selection indicators must remain legible. */
html[data-theme="dark"] :is(.theme-chip.active,.pcat-theme.active,.pcal-type-chips button.active,.paylo-tab.active){color:#b4dbff}
/* Shared scrollbars for floating dialogs and inner panels. */
html :is(.dialog-card,.modal-scroll,.pcal-cards,.pcal-picker-results,.pcat-items,.pcash-scroll,.pstock-scroll,.paylo-home){scrollbar-color:color-mix(in srgb,var(--brand) 72%,var(--line)) var(--surface-2)}
/* Reusable accessibility contrast; no sizing changes. */
html[data-theme="dark"] :is(button,input,textarea,select):focus-visible{outline-color:var(--brand)}
@media print{
 html,html[data-theme="dark"]{color-scheme:light!important}
 #exportCanvasHost,.voucher-doc,.pdf-doc,.report-page{color-scheme:light!important}
}

/* Standalone offline, privacy and terms pages honor the explicit theme as well as Auto. */
html[data-theme="light"] body:not([class]){background:#f4f7fb!important;color:#172033!important}
html[data-theme="light"] body:not([class]) .card{background:#fff!important;color:#172033!important;border-color:#dce5ef!important}
html[data-theme="light"] body:not([class]) section{background:#f9fbfd!important;border-color:#e3e9f0!important}
html[data-theme="light"] body:not([class]) :is(small,.card p){color:#667085!important}
html[data-theme="dark"] body:not([class]){background:var(--bg)!important;color:var(--text)!important}
html[data-theme="dark"] body:not([class]) .card{background:var(--surface)!important;color:var(--text)!important;border-color:var(--line)!important;box-shadow:var(--shadow-soft)!important}
html[data-theme="dark"] body:not([class]) section{background:var(--surface-2)!important;border-color:var(--line)!important}
html[data-theme="dark"] body:not([class]) :is(small,.card p){color:var(--text-2)!important}

/* Restore original semantic colors on top of the unified theme. */
html[data-theme] :is(.credit,.income,.positive,.success){--accent:var(--green)}
html[data-theme] :is(.debit,.expense,.negative,.danger){--accent:var(--red)}
html[data-theme] .pcal-count-badge.bookings{background:var(--brand);color:#fff}
html[data-theme] .pcal-count-badge.tasks{background:var(--paylo-task);color:#fff}
html[data-theme] .pcal-count-badge.payments{background:var(--paylo-payment);color:#fff}
html[data-theme] .pcal-count-badge.movements{background:var(--paylo-incoming);color:#fff}

/* 1.0.20 — Three independent layers: brand / semantic statuses / surfaces.
 * Surface changes must not repaint semantic actions or saved category colors.
 * Scoped to screen UI: print/export retain their own paper palette. */
:root {
 --paylo-incoming:var(--green);
 --paylo-outgoing:var(--red);
 --paylo-booking:#2397ca;
 --paylo-task:#a56ad1;
 --paylo-payment:#cf8520;
 --paylo-due:#d68b1c;
 --paylo-incoming-soft:var(--green-soft);
 --paylo-outgoing-soft:var(--red-soft);
}
html[data-theme="dark"] {
 --paylo-booking:#56bdf0;
 --paylo-task:#c697eb;
 --paylo-payment:#f0b251;
 --paylo-due:#f0b251;
}
/* Preserve category-specific inline styles and defined accent variables. */
html[data-theme] :is(.credit,.income,.positive,.success){--accent:var(--paylo-incoming)}
html[data-theme] :is(.debit,.expense,.negative,.danger){--accent:var(--paylo-outgoing)}
html[data-theme] #payloCalendar .pcal-card.incoming .pcal-card-mark,
html[data-theme] #payloCalendar .pcal-card-mark.payments{background:var(--paylo-incoming-soft);color:var(--paylo-incoming)}
html[data-theme] #payloCalendar .pcal-card.outgoing .pcal-card-mark{background:var(--paylo-outgoing-soft);color:var(--paylo-outgoing)}
html[data-theme] #payloCalendar .pcal-card.incoming .pcal-card-side>b{color:var(--paylo-incoming)}
html[data-theme] #payloCalendar .pcal-card.outgoing .pcal-card-side>b{color:var(--paylo-outgoing)}
html[data-theme] #payloCalendar .pcal-card-mark.bookings{background:color-mix(in srgb,var(--paylo-booking) 14%,var(--surface));color:var(--paylo-booking)}
html[data-theme] #payloCalendar .pcal-card-mark.tasks{background:color-mix(in srgb,var(--paylo-task) 16%,var(--surface));color:var(--paylo-task)}
html[data-theme] #payloCalendar .pcal-card-mark.dues{background:color-mix(in srgb,var(--paylo-due) 16%,var(--surface));color:var(--paylo-due)}
html[data-theme] #payloCalendar .pcal-count-badge.bookings{background:var(--paylo-booking)}
html[data-theme] #payloCalendar .pcal-count-badge.dues{background:var(--paylo-due);color:#1b1711}
/* Do not flatten primary/danger/success buttons into neutral surfaces. */
html[data-theme="dark"] :is(.btn.primary,.btn.danger,.btn.success,.sel-btn.primary,.pcal-create){color:#fff}
html[data-theme="dark"] .btn.danger{background:var(--paylo-outgoing);border-color:var(--paylo-outgoing)}
html[data-theme="dark"] .btn.success{background:var(--paylo-incoming);border-color:var(--paylo-incoming);color:#071c12}
/* Do not recolor voucher symbols indiscriminately; printed documents keep their palette. */
html[data-theme="dark"] .voucher-inline-icon{background:var(--brand-soft);color:var(--brand-3)}

/* Paylo 1.0.21: four PRIMARY color identities x three appearance modes.
   Semantic green/red/orange, category-selected colors and surface tokens are NOT modified. */
html[data-palette="ocean"]{--brand:#1769c2;--brand-2:#0f56a5;--brand-3:#0b417f;--brand-soft:#eaf4ff;--brand-soft-2:#f4f9ff;--paylo-nav-bg:linear-gradient(115deg,#1769c2,#0f519a)}
html[data-palette="forest"]{--brand:#087c71;--brand-2:#07665e;--brand-3:#06534e;--brand-soft:#e4f7f3;--brand-soft-2:#f2fcf9;--paylo-nav-bg:linear-gradient(115deg,#087c71,#045f58)}
html[data-palette="violet"]{--brand:#7550b8;--brand-2:#5e399a;--brand-3:#4c2d81;--brand-soft:#f0eafd;--brand-soft-2:#f8f5fe;--paylo-nav-bg:linear-gradient(115deg,#7550b8,#533591)}
html[data-palette="sunset"]{--brand:#bd6734;--brand-2:#9c4c24;--brand-3:#783813;--brand-soft:#fff0e5;--brand-soft-2:#fff8f2;--paylo-nav-bg:linear-gradient(115deg,#bd6734,#984820)}
html[data-theme="dark"][data-palette="ocean"]{--brand:#2f8ae6;--brand-2:#1f72c4;--brand-3:#a8d2ff;--brand-soft:#132d47;--brand-soft-2:#10253a;--paylo-nav-bg:linear-gradient(115deg,#163856,#102a43)}
html[data-theme="dark"][data-palette="forest"]{--brand:#3abfb0;--brand-2:#178f84;--brand-3:#a4eee1;--brand-soft:#113a36;--brand-soft-2:#0e2b29;--paylo-nav-bg:linear-gradient(115deg,#145650,#103c39)}
html[data-theme="dark"][data-palette="violet"]{--brand:#b297f2;--brand-2:#8d6cd3;--brand-3:#ddcfff;--brand-soft:#302447;--brand-soft-2:#251c38;--paylo-nav-bg:linear-gradient(115deg,#4b336c,#302143)}
html[data-theme="dark"][data-palette="sunset"]{--brand:#f0a778;--brand-2:#ca8051;--brand-3:#ffd2b3;--brand-soft:#422a1d;--brand-soft-2:#322319;--paylo-nav-bg:linear-gradient(115deg,#71412b,#4e2e24)}
.pcat-palette-label{width:100%;font-weight:800;color:var(--text);font-size:12px;margin:5px 0 0}
.pcat-palettes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;width:100%}
.pcat-palette{border:1px solid var(--line);background:var(--surface-2);color:var(--text);border-radius:13px;min-height:70px;padding:9px 3px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;font:inherit;font-size:11px;font-weight:800}
.pcat-palette .pcat-swatch{width:27px;height:27px;border-radius:50%;background:var(--swatch);box-shadow:0 0 0 3px color-mix(in srgb,var(--swatch) 19%,transparent)}
.pcat-palette.active{border:2px solid var(--brand);background:var(--brand-soft)}
.pcal-schedule-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,.9fr) minmax(0,.9fr);gap:7px;align-items:start}
.pcal-schedule-grid .pcal-date-col{min-width:0}.pcal-schedule-grid .form-control{min-width:0;padding-inline:3px;font-size:12px}
.pcal-schedule-grid>[hidden]{display:none!important}
.paylo-hijri-setting{display:flex!important;flex-direction:row!important;align-items:center;justify-content:space-between;gap:8px}
.paylo-hijri-setting input{width:20px;height:20px;accent-color:var(--brand)}
@media(max-width:350px){.pcal-schedule-grid{grid-template-columns:minmax(0,1.45fr) repeat(2,minmax(0,1fr));gap:3px}.pcal-schedule-grid .form-control{font-size:11px;padding-inline:1px}}

.paylo-service-management{border:1px solid var(--line);background:var(--surface-2);border-radius:13px;padding:12px;margin:10px 0;display:grid;gap:10px}
.paylo-service-management h4{font-size:13px;color:var(--text);margin:0}
.paylo-service-management .pcal-service-add{display:flex;gap:7px}.paylo-service-management .pcal-service-add input{min-width:0;flex:1;border:1px solid var(--line-2);border-radius:10px;background:var(--surface);color:var(--text);padding:10px}.paylo-service-management .pcal-service-add .btn{flex:0 0 auto}

/* Paylo 1.0.24 — theme coverage and semantic integrity.
 * Brand controls identity/primary actions; statuses retain their own tokens.
 * No changes to dimensions, offsets, calendar geometry, print or user category colors. */
:root { --paylo-primary-shadow:color-mix(in srgb,var(--brand) 30%,transparent); --paylo-panel-overlay:rgba(7,20,34,.60); }
html[data-theme="dark"] { --paylo-panel-overlay:rgba(0,7,17,.75); }
/* Unified surface tokens: dialogs, bottom sheets, embedded management panes. */
html[data-theme] :is(.dialog-card,.modal,.sheet-card,.pcal-editor-card,.pcal-preview-card,.pcal-account-picker-card,.pcat-dialog-card,.pmplan-modal,.paylo-period-panel,#payloDoctorPanel){background-color:var(--surface);color:var(--text);border-color:var(--line)}
html[data-theme] :is(.dialog,.modal-backdrop,.sheet){background-color:var(--paylo-panel-overlay)}
html[data-theme] :is(.modal-scroll,.modal-body,.dialog-card .form-group,.pcal-editor-form,.pcal-preview-content,.pcat-form,.pcal-service-field){color:var(--text)}
html[data-theme] :is(.pcal-service-chip,.pcal-service-manage,.pcal-type-chips button,.pcat-tabs button,.pcat-theme,.pcat-item,.pcat-form input:not([type="color"]),.pcat-form select,.theme-chip,.choice-chip,.setting-chip,.pcal-chip,.paychip,.period,.mini,.sheet-btn){background-color:var(--surface-2);color:var(--text);border-color:var(--line)}
html[data-theme] :is(.pcal-service-chip.active,.pcal-type-chips button.active,.pcat-tabs button.active,.pcat-theme.active,.theme-chip.active,.choice-chip.active,.setting-chip.active,.pcal-chip.active,.paychip.active,.period.active,.mini.active){background-color:var(--brand-soft);color:var(--brand-3);border-color:var(--brand)}
html[data-theme] :is(.pcal-service-chip,.pcal-service-manage,.pcal-type-chips button,.pcat-tabs button,.pcat-theme,.theme-chip,.choice-chip,.setting-chip,.pcal-chip,.paychip){transition:background-color .16s ease,border-color .16s ease,color .16s ease}
html[data-theme] .pcal-service-chip i,html[data-theme] .pcal-service-manage>i{color:var(--brand)}
html[data-theme] .pcal-service-chip.active i{color:var(--brand-3)}
html[data-theme] .pcal-service-manage button{color:var(--paylo-outgoing)}
/* All floating create buttons use the chosen primary palette, no embedded blue shadow. */
html[data-theme] :is(.fab,.pcal-create-fab){background:var(--brand);color:#fff;border-color:color-mix(in srgb,var(--brand) 48%,var(--surface));box-shadow:0 8px 20px var(--paylo-primary-shadow)!important}
html[data-theme] :is(.fab,.pcal-create-fab):focus-visible{outline:3px solid var(--brand-2);outline-offset:3px}
html[data-theme] :is(.fab,.pcal-create-fab):active{filter:brightness(.94)}
/* Consistent form surfaces across the new and legacy modals; never color icon-specific operations. */
html[data-theme] :is(.pcal-editor-card,.pcat-dialog-card,.dialog-card,.modal,.sheet-card) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),select,textarea){border-color:var(--line-2);color:var(--text);background:var(--surface-2)}
html[data-theme] :is(.pcal-editor-card,.pcat-dialog-card,.dialog-card,.modal,.sheet-card) :is(input,textarea)::placeholder{color:var(--muted)}
html[data-theme] :is(.mact.credit,.btn.success){background:var(--green-soft);border-color:var(--green);color:var(--green)}
html[data-theme] :is(.mact.debit,.btn.danger){background:var(--red-soft);border-color:var(--red);color:var(--red)}
html[data-theme] :is(.mact.cancel,.btn.primary,.pcal-create){border-color:var(--brand)}
html[data-theme] .mact.cancel{background:var(--brand-soft-2);color:var(--brand-3)}
html[data-theme] :is(.mact.credit,.mact.debit,.mact.cancel) i{color:currentColor}
/* Avoid flatting saved per-category colors: icon colors are authored in the category record. */
html[data-theme] .pcat-icon{color:var(--pcat-color);background:color-mix(in srgb,var(--pcat-color) 14%,var(--surface))}
html[data-theme] .pcat-palette.active{border-color:var(--brand);background:var(--brand-soft)}
/* Accessible selection, without changing semantic background or icon styles. */
html[data-theme] :is(.pcat-palette,.pcal-service-chip,.pcal-type-chips button,.pcal-chip,.theme-chip,.setting-chip):focus-visible{outline:2px solid var(--brand);outline-offset:2px}
@media (prefers-reduced-motion:reduce){html[data-theme] :is(.pcal-service-chip,.pcal-service-manage,.pcal-type-chips button,.pcat-tabs button,.pcat-theme,.theme-chip,.choice-chip,.setting-chip,.pcal-chip,.paychip){transition:none}}
@media print {html[data-theme] :is(.voucher-doc,.pdf-doc,.report-page){background:#fff!important;color:#111!important}}

/* 1.0.25 - consistent full-screen search, modal contrast and touch targets */
.paylo-global-search-head{background:linear-gradient(115deg,var(--brand),color-mix(in srgb,var(--brand) 74%,#101d35))!important}
#payloGlobalSearch .paylo-global-search-field:focus-within{border-color:var(--brand)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 15%,transparent)!important}
#payloGlobalSearch .paylo-global-search-back,#payloGlobalSearch .paylo-global-search-field button{min-width:42px;min-height:42px;display:grid;place-items:center}
#payloGlobalSearch .paylo-global-result{min-height:68px;border-color:var(--line)!important;background:var(--surface)!important;color:var(--text)!important}
#payloGlobalSearch .paylo-global-result:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
#payloGlobalSearch .paylo-global-result .in{color:var(--income,#168b56)!important}
#payloGlobalSearch .paylo-global-result .out{color:var(--expense,#ca4848)!important}
#payloDoctorPanel{background:var(--surface,#fff)!important;color:var(--text,#182940)!important;border:1px solid var(--line,#dfe8f2)!important}
#payloDoctorResults .pd-row,#payloDoctorPanel .pd-errors{background:var(--surface-2,var(--surface,#fff))!important;border-color:var(--line,#dfe8f2)!important;color:var(--text,#182940)!important}
#payloDoctorPanel .pd-small{color:var(--muted,#53647e)!important}
#payloDoctorPanel .pd-actions button:not(.secondary){background:var(--brand,#1768bc)!important;color:white!important}
#payloDoctorPanel .pd-actions button.secondary,#payloDoctorPanel .pd-close{background:var(--surface-2,var(--surface,#fff))!important;color:var(--text,#182940)!important;border:1px solid var(--line,#dfe8f2)!important}
#payloDoctorFab{background:var(--brand,#1768bc)!important}
#payloDoctorPanel .pd-note{background:color-mix(in srgb,var(--brand,#1768bc) 9%,var(--surface,#fff))!important;color:var(--text,#182940)!important}
