/* Shared modern theme for the accounting workspace. */
#wrapper {height:100dvh;overflow:hidden;align-items:stretch;}
#sidebar-wrapper {height:100dvh;min-height:0!important;flex-shrink:0;overflow:hidden;}
#sidebar-wrapper > div:first-child {min-height:0;overflow-y:auto;flex:1;}
#sidebar-wrapper > div:last-child {flex-shrink:0;}
#page-content-wrapper {height:100dvh;overflow-y:auto;flex:1;}
#page-content-wrapper > .navbar {position:sticky;top:0;z-index:1030;flex-shrink:0;}
.digital-clock {font:600 clamp(3rem,7vw,5rem)/1.3 monospace;letter-spacing:.05em;color:#2456a6;font-variant-numeric:tabular-nums;}
:root { --primary-color:#2456a6; --primary-hover:#1b4382; --primary-light:#e8f0ff; --bg-light:#f3f6f8; --text-dark:#1c3042; --text-muted:#697c8c; --border-color:#e3eaf0; --bs-primary:#2456a6; --bs-primary-rgb:36,86,166; }
body { background:#f3f6f8!important; color:#1c3042; }
#page-content-wrapper { background:#f3f6f8; }
#sidebar-wrapper { background:#14243b!important; border:0!important; }
#sidebar-wrapper .sidebar-heading { padding:25px 20px!important; border-color:#ffffff18!important; }
#sidebar-wrapper .text-dark,#sidebar-wrapper h5 { color:#f3f8fa!important; }
#sidebar-wrapper .text-muted,#sidebar-wrapper .text-secondary { color:#a9bfca!important; }
#sidebar-wrapper .list-group-item { background:transparent!important; color:#c2d4dc!important; padding:11px 14px!important; margin:3px 0; border-radius:9px!important; }
#sidebar-wrapper .list-group-item:hover { background:#ffffff0d!important; color:white!important; }
#sidebar-wrapper .list-group-item.bg-primary { background:#285ba9!important; color:white!important; box-shadow:none; }
#sidebar-wrapper .border-top { border-color:#ffffff18!important; background:#101e32!important; }
#sidebar-wrapper .text-primary { color:#a4c8ff!important; }
.navbar { min-height:76px; box-shadow:none!important; border-color:#e3eaf0!important; }
.card { border:1px solid #e3eaf0!important; border-radius:16px!important; box-shadow:0 3px 14px #193b4d05!important; background:#fff; }
.card-header { background:#fff; border-color:#edf1f5; padding:18px 22px; }
.btn { border-radius:9px; font-weight:600; padding:9px 16px; transition:background .15s,box-shadow .15s; }
.btn-primary { --bs-btn-bg:#2456a6; --bs-btn-border-color:#2456a6; --bs-btn-hover-bg:#1b4382; --bs-btn-hover-border-color:#1b4382; --bs-btn-active-bg:#1b4382; background:#2456a6!important; border-color:#2456a6!important; box-shadow:none!important; }
.btn-outline-primary { --bs-btn-color:#2456a6; --bs-btn-border-color:#2456a6; --bs-btn-hover-bg:#2456a6; --bs-btn-hover-border-color:#2456a6; }
.form-control,.form-select { border-color:#dce5eb; border-radius:9px; min-height:42px; color:#243e50; }
.form-control:focus,.form-select:focus { border-color:#4d79c3; box-shadow:0 0 0 3px #2456a61c; }
.form-label { color:#435a6b; font-size:13px; font-weight:600; }
.table { --bs-table-bg:transparent; --bs-table-border-color:#edf1f5; font-size:12px!important; margin-bottom:8px; }
.table thead th { background:#f6f8fa!important; color:#617585!important; font-size:11px; font-weight:700; letter-spacing:0; text-transform:uppercase; }
/* Override older cell spacing utilities consistently across every data table. */
.table > :not(caption) > * > * { padding:4px 6px!important; vertical-align:middle; }
.table td { font-size:12px; line-height:1.4; }
.table .btn { font-size:12px; padding:4px 8px; line-height:1.25; }
.table th .btn { font-size:11px; letter-spacing:0; }
.data-grid > div:first-child { gap:8px!important; margin-bottom:8px!important; }
.data-grid .form-control, .data-grid .form-select,
.card:has(.table) > .card-header .form-control,
.card:has(.table) > .card-header .form-select,
.card:has(.table) > .card-header .input-group-text,
.table-responsive + div .form-control, .table-responsive + div .form-select {
    font-size:12px!important; padding:4px 8px; min-height:30px;
}
.table-responsive + div { font-size:12px!important; flex-wrap:wrap; gap:8px; }
.table-responsive + div .btn { font-size:12px; padding:4px 8px; }
.card:has(.table) > .card-header { padding:12px!important; }
.table-responsive + .border-top { padding:8px 12px!important; }
.modal-content { border:0; border-radius:18px!important; box-shadow:0 24px 80px #102c3933; }
.modal-header,.modal-footer { border-color:#edf1f5; }
.badge { border-radius:6px; font-weight:600; }
h3,h4,h5 { letter-spacing:-.025em; }
:focus-visible { outline:3px solid #76a2eb; outline-offset:3px; }
dialog::backdrop { background:#10263399; backdrop-filter:blur(3px); }
.global-categories .form-control, .global-categories .form-select { font-size:12px; padding:4px 8px; min-height:30px; }
@media(max-width:767px) { .navbar { min-height:64px; } .card-body { padding:18px!important; } .table-responsive { border-radius:12px; } }
@media print { body,#page-content-wrapper { background:white!important; } .card { box-shadow:none!important; } }
/* Consistent compact table search and neutral row hover. */
.data-grid > div:first-child { flex-wrap:wrap; }
.data-grid > div:first-child > input { width:220px; max-width:100%; flex:0 1 220px; }
.card:has(.table) .input-group:has(input[placeholder*="Search"]),
.card:has(.table) input[placeholder*="Search"] { width:220px; max-width:100%; flex-grow:0; }
.table tbody tr:hover > td { --bs-table-accent-bg:#f1f3f5; --bs-table-bg-state:#f1f3f5; background-color:#f1f3f5!important; }
.ledger-details { text-align:left; font-size:13px; }
.ledger-details dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0; }
.ledger-details dl > div { padding:10px 12px; border:1px solid #e3eaf0; border-radius:8px; background:#f8fafb; overflow-wrap:anywhere; }
.ledger-details dt { font-size:11px; color:#697c8c; margin-bottom:4px; }
.ledger-details dd { margin:0; color:#1c3042; white-space:pre-wrap; }
.ledger-details h6 { margin:20px 0 10px; }
.ledger-details .cashflow { padding:10px 12px; border-radius:8px; background:#f8fafb; margin-bottom:6px; }
@media(max-width:575px) { .ledger-details dl { grid-template-columns:1fr; } }
.staff-attendance td {
    white-space: normal;
    overflow-wrap: anywhere;
    min-width: 90px;
    max-width: 260px;
}
.table-actions, .table th:last-child:has(+ .table-actions) { text-align: right; }
.table-actions { width: 1%; white-space: nowrap; }
.table-actions .btn { padding: .2rem .35rem; }
.report-bars { display:flex; gap:12px; overflow-x:auto; padding-top:12px; min-height:160px; }
.report-bar-group { text-align:center; }
.staff-calendar { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; }
.calendar-day { min-height:95px; padding:8px; text-align:left; border:1px solid #e2e8f0; border-radius:8px; background:#f8fafc; overflow-wrap:anywhere; }
.calendar-present { background:#dcfce7; }.calendar-absent { background:#fee2e2; }.calendar-leave { background:#fef3c7; }.calendar-half_day { background:#e0f2fe; }
.table th.table-actions { width:1%; text-align:right!important; }
.table tr > td:has(button[title="Edit"]), .table tr > td:has(button[title="Delete"]) { text-align:right; white-space:nowrap; }
/* Balanced center column keeps quick actions centered without overlapping controls. */
#page-content-wrapper > .app-topbar {display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;}
.topbar-account {min-width:0;grid-column:3;}
.topbar-account .dropdown-toggle > span {max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.topbar-brand { min-width:0; height:60px; }
.topbar-logo { display:block; height:100%; width:auto; max-width:100%; min-width:0; object-fit:contain; object-position:left center; }
@media(max-width:767px){.topbar-brand{height:48px}}
@media(max-width:575px){.topbar-account{gap:4px!important}.topbar-quick-actions .btn{padding:6px 9px}}
.app-select{position:relative;min-width:100px;max-width:100%}
.app-select-native{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.app-select-toggle{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-height:34px!important}
.app-select-panel{position:absolute;top:100%;left:0;min-width:220px;width:100%;z-index:1060;background:white;border:1px solid #dce5eb;border-radius:8px;padding:8px;box-shadow:0 6px 20px #0002}
.app-select-options{max-height:240px;overflow-y:auto}
.app-select-option{display:block;border:0;background:white;width:100%;text-align:left;padding:7px 8px;font-size:13px}
.app-select-option:hover,.app-select-option:focus,.app-select-option[aria-selected="true"]{background:#e8f0ff}
.app-select-option:disabled{opacity:.5}
.report-filter .form-control,.report-filter .form-select{min-height:34px!important}
.calendar-day:disabled{opacity:.45;cursor:not-allowed}

.weekly-card .report-bars{flex:1;min-height:230px;align-items:stretch;padding-bottom:0}
.weekly-card .report-bar-group{display:flex;flex-direction:column;flex:1;align-items:center;min-width:32px}
.weekly-bar-track{flex:1;min-height:190px;width:100%;justify-content:center}
.report-category-filter{flex:1 1 320px;min-width:240px;max-width:640px}
.report-category-filter .search-select .form-select span{white-space:normal;overflow-wrap:anywhere}
.calendar-day .staff-pill{display:block;text-align:left;white-space:normal;border:0;border-left:3px solid;margin:4px 0;padding:4px 6px;border-radius:5px;font-size:11px;width:100%}
.calendar-day:has(.staff-pill){min-width:0;overflow:hidden}
.weekly-value-bar{position:relative;flex-shrink:0;border-radius:8px 8px 0 0!important}
.weekly-bar-amount{position:absolute;left:50%;bottom:5px;writing-mode:vertical-rl;transform:translateX(-50%) rotate(180deg);white-space:nowrap;font-size:11px;font-weight:600;line-height:18px}
.weekly-bar-amount.amount-above{bottom:calc(100% + 5px)}
.weekly-card .report-bars{gap:3px}
.weekly-card .report-bar-group{min-width:56px}
.staff-filter-right{width:min(250px,100%);min-width:0}
.staff-filter-right .app-select-panel{left:auto;right:0;min-width:min(280px,calc(100vw - 48px));max-width:calc(100vw - 48px)}
.license-logo{max-width:220px;max-height:76px;object-fit:contain;object-position:left center}
.user-license-wheel{width:128px;height:128px;flex:0 0 128px;border-radius:50%;padding:13px;background:conic-gradient(var(--usage-color,#2563eb) var(--usage-angle,0%),#e2e8f0 0);box-shadow:inset 0 0 0 1px #00000008}
.user-license-wheel>div{height:100%;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.user-license-wheel strong{font-size:22px;color:#0f172a}.user-license-wheel small{font-size:10px;color:#64748b}
.license-profile{background:linear-gradient(135deg,#f2faf7,#fff);border-top:4px solid #198754!important}
.license-pricing{background:#0f172a;color:#f1f5f9;border-radius:20px;padding:32px 24px}
.license-pricing h3,.license-pricing h4{color:#f8fafc;font-weight:750}
.license-pricing .license-muted{color:#a8b5c8}
.license-billing{display:inline-flex;flex-wrap:wrap;justify-content:center;gap:4px;padding:6px;border:1px solid #334155;border-radius:14px;background:#1e293b}
.license-billing button{border:0;border-radius:9px;padding:10px 15px;background:transparent;color:#cbd5e1;font-size:13px;font-weight:600}
.license-billing button.active{background:#4f46e5;color:#fff}
.license-billing button:focus-visible{outline:2px solid #a5b4fc;outline-offset:2px}
.license-value{display:inline-block;margin-left:4px;padding:2px 5px;border-radius:4px;background:#065f46;color:#a7f3d0;font-size:10px}
.license-plan{position:relative;display:flex;flex-direction:column;padding:26px 22px;border:1px solid #475569;border-radius:18px;background:#1e293b}
.license-plan-popular{border:2px solid #818cf8;background:linear-gradient(180deg,#272e50,#1e293b);box-shadow:0 8px 24px #0002}
.license-popular{position:absolute;left:50%;top:-13px;transform:translateX(-50%);white-space:nowrap;background:#4f46e5;color:#fff;padding:4px 12px;border-radius:20px;font-size:11px;font-weight:700}
.license-current{padding:3px 7px;border-radius:5px;background:#064e3b;color:#a7f3d0;font-size:10px;white-space:nowrap}
.license-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px;margin-top:10px;font-size:36px;font-weight:800;letter-spacing:-1px;color:#fff}
.license-price small{font-size:12px;font-weight:500;color:#cbd5e1;letter-spacing:0}
.license-price-note{display:flex;flex-wrap:wrap;gap:7px;align-items:center;font-size:11px;color:#6ee7b7;min-height:40px}
.license-saving{border:1px solid #065f46;border-radius:4px;padding:2px 5px;background:#064e3b55}
.license-accounts{border-top:1px solid #475569;border-bottom:1px solid #475569;padding:15px 0;margin:16px 0;color:#e0e7ff}
.license-features{list-style:none;padding:0;margin:0 0 24px;font-size:12px;line-height:1.5}
.license-features li{display:flex;gap:9px;align-items:flex-start;margin-bottom:11px}
.license-features i{color:#6ee7b7;flex:0 0 13px;margin-top:3px}
.license-plan .btn-primary{background:#4f46e5;border-color:#4f46e5}
.license-plan .btn-primary:hover{background:#4338ca}
@media(max-width:575px){.license-pricing{padding:26px 14px}.license-billing button{padding:8px 10px}.license-profile .license-logo{max-width:65%;max-height:64px}}
.cash-accounts-card td:nth-child(2),.cash-accounts-card td:nth-child(3){white-space:nowrap}
.cash-accounts-card td:first-child{min-width:90px}
.cash-accounts-card .table-actions{min-width:65px;width:65px}
/* Consistent breathing room around tables, without increasing cell density. */
.data-grid{padding:10px}
.card > .table-responsive,.card-body.p-0 > .table-responsive{padding:12px}
.modal-backdrop-custom{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:1060;padding:24px;overflow-y:auto}
.modal-content-custom{max-height:calc(100vh - 48px);overflow-y:auto}
/* Admin card layouts retain Vue ownership while their keyed order changes. */
.report-layout { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:1rem; align-items:start; }
.report-layout > * { grid-column:span 12; min-width:0; }
.report-layout > .report-layout-card { grid-column:span var(--card-span,12); width:auto; margin:0!important; position:relative; height:var(--card-height,auto); border-radius:.75rem; outline:2px solid transparent; outline-offset:3px; }
.report-card-content { min-width:0; height:100%; border-radius:inherit; }
.report-card-content > * { width:100%!important; max-width:100%; margin:0!important; }
.report-card-content > [class*="col-"] { height:100%; }
.report-card-content > .card,.report-card-content > [class*="col-"] > .card { min-height:100%; }
.has-custom-height > .report-card-content { overflow:auto; scrollbar-width:thin; }
.report-layout-card:hover,.report-layout-card:focus-within { outline-color:#cbd5e1; }
.report-layout-card.is-resizing,.report-layout-card.is-drop-target { outline-color:#2563eb; box-shadow:0 0 0 5px #2563eb12; }
.report-layout-card.is-dragging { opacity:.55; }
.report-layout-card.is-resizing { user-select:none; }
.report-drag-header { cursor:grab; user-select:none; }
.report-drag-header:active { cursor:grabbing; }
.report-drag-header:hover { color:var(--bs-primary)!important; }
.report-card-tools { position:absolute; left:8px; bottom:5px; z-index:5; display:flex; align-items:center; gap:5px; padding:2px 6px; border:1px solid #dbe3ee; border-radius:6px; background:#fff; color:#64748b; box-shadow:0 2px 8px #0f172a12; opacity:0; pointer-events:none; font-size:10px; }
.report-layout-card:hover > .report-card-tools,.report-layout-card:focus-within > .report-card-tools,.is-resizing > .report-card-tools { opacity:1; pointer-events:auto; }
.report-size-reset { border:0; background:transparent; color:#64748b; padding:2px 4px; }
.report-size-reset:hover { color:#2563eb; }
.report-resize-handle { position:absolute; z-index:6; border:0; padding:0; background:transparent; touch-action:none; color:#64748b; opacity:0; }
.report-layout-card:hover > .report-resize-handle,.report-resize-handle:focus-visible,.is-resizing > .report-resize-handle { opacity:1; }
.report-resize-width { right:-4px; top:18px; bottom:18px; width:9px; cursor:ew-resize; }
.report-resize-height { left:18px; right:18px; bottom:-4px; height:9px; cursor:ns-resize; }
.report-resize-both { right:-3px; bottom:-3px; width:19px; height:19px; border-radius:4px; background:#fff; border:1px solid #dbe3ee; font-size:20px; line-height:14px; cursor:nwse-resize; }
.report-resize-handle:hover,.report-resize-handle:focus-visible { background:#2563eb26; outline:2px solid #2563eb; }
.report-resize-handle:disabled { cursor:wait; }
.report-layout-feedback { font-size:12px; color:#64748b; }
.report-layout-feedback:empty { display:none; }
@media(max-width:991px) { .report-layout > .report-layout-card { grid-column:span 12; } }
@media(max-width:991px) { .report-resize-width { display:none; } }
@media(pointer:coarse) { .report-resize-both { width:26px; height:26px; } }/* ── Payroll module ── */
.fade-enter-active,.fade-leave-active{transition:opacity .2s,transform .2s}
.fade-enter-from,.fade-leave-to{opacity:0;transform:translateY(6px)}
#payroll-root .nav-pills .nav-link{color:#435a6b;font-weight:600}
#payroll-root .nav-pills .nav-link.active{background:var(--primary-color);color:#fff}
#payroll-root .staff-btn:hover{background:var(--primary-light)!important}


