:root{--cihrm-primary:#28b054;--cihrm-secondary:#0f172a;--cihrm-bg:#f6f8fb;--cihrm-card:#fff;--cihrm-text:#111827;--cihrm-muted:#6b7280;--cihrm-border:#e5e7eb;--cihrm-radius:20px;--cihrm-shadow:0 18px 50px rgba(15,23,42,.08)}
#cihrm-root,.cihrm-root{width:100%;max-width:100%!important;box-sizing:border-box;color:var(--cihrm-text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow-x:clip}
#cihrm-root *,#cihrm-root *::before,#cihrm-root *::after,.cihrm-root *,.cihrm-root *::before,.cihrm-root *::after{box-sizing:border-box}
.entry-content #cihrm-root,.wp-site-blocks #cihrm-root{width:min(1500px,calc(100vw - 32px));max-width:min(1500px,calc(100vw - 32px))!important;position:relative;left:50%;transform:translateX(-50%);margin:0}
.wrap #cihrm-root{width:100%;max-width:100%!important;margin:0}
.cihrm-app{display:grid;grid-template-columns:280px minmax(0,1fr);gap:24px;min-height:760px;background:var(--cihrm-bg);border:1px solid var(--cihrm-border);border-radius:28px;padding:22px;box-sizing:border-box;overflow:visible;isolation:isolate}
.cihrm-sidebar{background:linear-gradient(180deg,var(--cihrm-sidebar-bg,var(--cihrm-secondary)),color-mix(in srgb,var(--cihrm-sidebar-bg,var(--cihrm-secondary)) 86%,#000));color:var(--cihrm-sidebar-text,#fff);border-radius:24px;padding:20px;display:flex;flex-direction:column;gap:20px;min-height:0;height:calc(100vh - 40px);max-height:calc(100vh - 40px);position:sticky;top:20px;align-self:start;box-shadow:var(--cihrm-shadow)}
.cihrm-brand{display:flex;align-items:center;gap:12px;color:var(--cihrm-sidebar-text,#fff);padding:6px 4px 12px;border-bottom:1px solid rgba(255,255,255,.12)}
.cihrm-brand-mark{width:44px;height:44px;border-radius:14px;background:var(--cihrm-primary);display:grid;place-items:center;font-weight:800;color:#fff;box-shadow:0 10px 24px rgba(0,0,0,.2)}
.cihrm-brand strong{display:block;font-size:15px;line-height:1.2}.cihrm-brand span{display:block;color:rgba(255,255,255,.65);font-size:12px;margin-top:2px}
.cihrm-sidebar nav{display:grid;gap:7px;max-height:calc(100vh - 160px);overflow:auto;padding:12px 8px 18px 0;scroll-padding-block:12px;scrollbar-gutter:stable}.cihrm-sidebar nav::-webkit-scrollbar{width:5px}.cihrm-sidebar nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.25);border-radius:999px}.cihrm-sidebar nav button:last-child{margin-bottom:8px}.cihrm-sidebar nav button.active{scroll-margin-block:12px}.cihrm-sidebar button:focus,.cihrm-sidebar button:focus-visible{outline:0!important;box-shadow:inset 0 0 0 2px rgba(255,255,255,.92)!important}
.cihrm-sidebar button{border:0;background:transparent;color:color-mix(in srgb,var(--cihrm-sidebar-text,#fff) 78%,transparent);text-align:left;padding:11px 13px;border-radius:13px;cursor:pointer;font-weight:650;font-size:14px!important;line-height:1.2;transition:.18s ease}
.cihrm-sidebar button:hover,.cihrm-sidebar button.active{background:rgba(255,255,255,.12);color:#fff;transform:translateX(2px)}
.cihrm-main{min-width:0;display:flex;flex-direction:column;gap:22px}.cihrm-topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;background:var(--cihrm-card);border:1px solid var(--cihrm-border);border-radius:24px;padding:22px;box-shadow:var(--cihrm-shadow)}
.cihrm-topbar h1{margin:0!important;font-size:clamp(22px,3vw,32px)!important;line-height:1.1}.cihrm-topbar p,.cihrm-panel p{margin:6px 0 0;color:var(--cihrm-muted);font-size:14px}.cihrm-user-pill{background:#f3f4f6;border:1px solid var(--cihrm-border);border-radius:999px;padding:9px 14px;display:flex;gap:8px;align-items:center;white-space:nowrap;min-width:0;max-width:48%;box-sizing:border-box}.cihrm-user-pill span{font-size:12px;color:var(--cihrm-muted);flex:0 0 auto}.cihrm-user-pill strong{font-size:13px;min-width:0;overflow:hidden;text-overflow:ellipsis}
.cihrm-view{min-width:0}.cihrm-grid{display:grid;gap:18px}.cihrm-stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:22px}.cihrm-two-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.cihrm-card,.cihrm-panel{background:var(--cihrm-card);border:1px solid var(--cihrm-border);border-radius:var(--cihrm-radius);box-shadow:var(--cihrm-shadow);box-sizing:border-box}.cihrm-card{padding:22px;min-width:0}.cihrm-card-title{color:var(--cihrm-muted);font-size:13px;font-weight:750}.cihrm-card-value{font-size:clamp(26px,4vw,42px);line-height:1.1;font-weight:850;margin-top:8px;color:var(--cihrm-secondary)}.cihrm-card-note{font-size:12px;color:var(--cihrm-muted);margin-top:8px}.cihrm-panel{padding:24px;margin-bottom:22px;min-width:0;overflow:hidden}.cihrm-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}.cihrm-panel-head h2{font-size:21px!important;line-height:1.25!important;margin:0!important}.cihrm-panel-actions,.cihrm-actions,.cihrm-mini-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.cihrm-mini-actions{gap:6px}.cihrm-mini-actions button,.cihrm-link-btn{border:0;background:#eef2ff;color:#1d4ed8;border-radius:10px;padding:7px 10px;cursor:pointer;font-weight:700}.cihrm-mini-actions button:hover,.cihrm-link-btn:hover{background:#dbeafe}
.cihrm-btn{border:0!important;background:var(--cihrm-primary)!important;color:#fff!important;border-radius:13px!important;padding:11px 16px!important;font-weight:800!important;cursor:pointer!important;box-shadow:0 12px 22px rgba(40,176,84,.2)!important;line-height:1.2!important;min-height:42px}.cihrm-btn:hover{filter:brightness(.95)}.cihrm-btn:disabled{opacity:.6;cursor:not-allowed}.cihrm-btn-secondary{background:#111827!important;box-shadow:none!important}.cihrm-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;margin-bottom:18px}.cihrm-form-grid-wide{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.cihrm-form-grid-compact{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.cihrm-form-grid-single{grid-template-columns:1fr}.cihrm-field{display:flex;flex-direction:column;gap:7px;min-width:0}.cihrm-field>span{font-weight:750;font-size:13px;color:#1f2937}.cihrm-field em{color:#ef4444;font-style:normal;margin-left:3px}.cihrm-field input,.cihrm-field select,.cihrm-field textarea{width:100%!important;max-width:100%!important;box-sizing:border-box!important;border:1px solid var(--cihrm-border)!important;background:#fff!important;color:var(--cihrm-text)!important;border-radius:13px!important;padding:11px 12px!important;min-height:44px!important;font-size:14px!important;box-shadow:none!important}.cihrm-field textarea{min-height:95px!important;resize:vertical}.cihrm-field small,.cihrm-check small{display:block;color:var(--cihrm-muted);font-size:12px;margin-top:3px}.cihrm-field-span{grid-column:1/-1}.cihrm-color-field{display:grid;grid-template-columns:64px minmax(0,1fr);gap:8px}.cihrm-color-field input[type=color]{padding:3px!important}.cihrm-check{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border:1px solid var(--cihrm-border);border-radius:13px;background:#fff;line-height:1.3}.cihrm-check input{margin-top:3px}.cihrm-check span{font-weight:700}.cihrm-check-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;margin:0 0 18px}.cihrm-weekdays{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-bottom:18px}.cihrm-subpanel{border:1px dashed var(--cihrm-border);border-radius:18px;padding:16px;margin:4px 0 18px;background:#fbfdff}.cihrm-subpanel h3{margin:0 0 4px!important}.cihrm-chip-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.cihrm-chip{display:inline-flex;gap:7px;align-items:center;background:#ecfdf5;border:1px solid #bbf7d0;color:#166534;border-radius:999px;padding:7px 10px;font-weight:700;font-size:12px}.cihrm-chip button{border:0;background:transparent;color:#166534;cursor:pointer;font-weight:900}.cihrm-table-card{border:1px solid var(--cihrm-border);border-radius:18px;overflow:hidden;background:#fff}.cihrm-table-wrap{overflow-x:auto;width:100%;-webkit-overflow-scrolling:touch}.cihrm-table{width:100%;min-width:760px;border-collapse:collapse;margin:0!important}.cihrm-table th,.cihrm-table td{padding:13px 14px!important;border-bottom:1px solid var(--cihrm-border)!important;text-align:left!important;vertical-align:middle!important;font-size:13px!important}.cihrm-table th{background:#f9fafb;color:#4b5563;font-size:12px!important;text-transform:uppercase;letter-spacing:.04em;font-weight:850}.cihrm-table tr:last-child td{border-bottom:0!important}.cihrm-status{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:850;text-transform:capitalize;background:#f3f4f6;color:#374151;white-space:nowrap}.cihrm-status-present,.cihrm-status-approved,.cihrm-status-active,.cihrm-status-published{background:#dcfce7;color:#166534}.cihrm-status-late,.cihrm-status-pending,.cihrm-status-pending_correction,.cihrm-status-missing_clock_out{background:#fef3c7;color:#92400e}.cihrm-status-rejected,.cihrm-status-terminated,.cihrm-status-suspended,.cihrm-status-deleted{background:#fee2e2;color:#991b1b}.cihrm-status-half_day,.cihrm-status-early_leave,.cihrm-status-draft{background:#dbeafe;color:#1d4ed8}.cihrm-empty{display:flex;flex-direction:column;gap:4px;align-items:center;text-align:center;padding:24px;color:var(--cihrm-muted)}.cihrm-empty strong{color:var(--cihrm-text)}.cihrm-profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.cihrm-profile-grid>div{background:#f9fafb;border:1px solid var(--cihrm-border);border-radius:15px;padding:13px;display:flex;flex-direction:column;gap:4px}.cihrm-profile-grid strong{font-size:12px;color:var(--cihrm-muted)}.cihrm-profile-grid span{font-weight:750}.cihrm-clean-list{margin:0!important;padding-left:19px!important;color:#374151}.cihrm-clean-list li{margin:5px 0}.cihrm-clock-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,420px);gap:22px;align-items:start}.cihrm-clock-status{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:14px}.cihrm-clock-status>span{font-weight:750;color:var(--cihrm-muted)}.cihrm-clock-box{background:#f9fafb;border:1px solid var(--cihrm-border);border-radius:18px;padding:18px}.cihrm-verification-list{display:flex;gap:7px;flex-wrap:wrap;margin-top:16px}.cihrm-verification-list span{font-size:11px;border-radius:999px;background:#f3f4f6;color:#6b7280;padding:5px 8px;text-transform:capitalize}.cihrm-verification-list span.enabled{background:#dcfce7;color:#166534}.cihrm-two-col{display:grid;grid-template-columns:minmax(260px,360px) minmax(0,1fr);gap:22px}.cihrm-permission-box{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;max-height:640px;overflow:auto;padding-right:4px}.cihrm-permission-group{border:1px solid var(--cihrm-border);border-radius:16px;padding:13px;background:#f9fafb}.cihrm-permission-group h3{text-transform:capitalize;margin:0 0 10px!important;font-size:15px!important}.cihrm-org-dept{margin:20px 0}.cihrm-org-dept h3{margin:0 0 12px!important}.cihrm-org-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}.cihrm-org-card{background:#fff;border:1px solid var(--cihrm-border);border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:8px;align-items:flex-start}.cihrm-org-card img,.cihrm-avatar{width:54px;height:54px;border-radius:16px;object-fit:cover;background:linear-gradient(135deg,var(--cihrm-primary),#16a34a);color:#fff;display:grid;place-items:center;font-weight:900;font-size:24px}.cihrm-org-card strong{font-size:16px}.cihrm-org-card span{color:#374151;font-weight:700}.cihrm-org-card small{color:var(--cihrm-muted);word-break:break-all}.cihrm-org-card em{font-size:12px;color:var(--cihrm-muted);font-style:normal}.cihrm-loading,.cihrm-error,.cihrm-error-panel{padding:24px;border-radius:18px;background:#fff;border:1px solid var(--cihrm-border);box-shadow:var(--cihrm-shadow)}.cihrm-error,.cihrm-error-panel{border-color:#fecaca;color:#991b1b;background:#fff7f7}.cihrm-auth-box{max-width:520px;margin:40px auto;padding:28px;border:1px solid var(--cihrm-border);border-radius:22px;background:#fff;box-shadow:var(--cihrm-shadow)}
.cihrm-toast-region{position:fixed;z-index:999999;top:28px;right:24px;display:grid;gap:10px;width:min(390px,calc(100vw - 32px));pointer-events:none}.cihrm-toast{pointer-events:auto;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;padding:13px 13px 13px 15px;border:1px solid var(--cihrm-border);border-left-width:5px;border-radius:16px;background:#fff;color:#111827;box-shadow:0 18px 44px rgba(15,23,42,.18);opacity:0;transform:translateY(-8px) scale(.98);transition:.18s ease}.cihrm-toast-visible{opacity:1;transform:translateY(0) scale(1)}.cihrm-toast span{font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.cihrm-toast p{grid-column:1;margin:2px 0 0!important;color:#334155!important;font-size:13px!important;line-height:1.45}.cihrm-toast button{grid-column:2;grid-row:1/3;border:0;background:transparent;color:#64748b;cursor:pointer;font-size:18px;font-weight:900;line-height:1;padding:2px 5px}.cihrm-toast-success{border-left-color:#22c55e}.cihrm-toast-success span{color:#15803d}.cihrm-toast-error{border-left-color:#ef4444}.cihrm-toast-error span{color:#b91c1c}.cihrm-toast-info{border-left-color:#3b82f6}.cihrm-toast-info span{color:#1d4ed8}.cihrm-edit-focus{animation:cihrm-edit-focus 1.8s ease}@keyframes cihrm-edit-focus{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--cihrm-primary) 40%,transparent);border-color:var(--cihrm-primary)}45%{box-shadow:0 0 0 8px color-mix(in srgb,var(--cihrm-primary) 16%,transparent);border-color:var(--cihrm-primary)}100%{box-shadow:var(--cihrm-shadow);border-color:var(--cihrm-border)}}
@media (max-width:1280px){.cihrm-app{grid-template-columns:240px minmax(0,1fr);gap:18px}.cihrm-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:960px){.entry-content #cihrm-root,.wp-site-blocks #cihrm-root{width:calc(100vw - 16px);max-width:calc(100vw - 16px)!important;left:50%;transform:translateX(-50%);margin:0}.cihrm-app{display:block;width:100%;max-width:100%;padding:12px;border-radius:20px;overflow:hidden}.cihrm-sidebar{position:relative;top:auto;min-height:auto;height:auto;max-height:none;margin-bottom:14px;border-radius:18px;max-width:100%;box-sizing:border-box}.cihrm-sidebar nav{display:flex;overflow-x:auto;max-width:100%;max-height:none;padding-bottom:6px}.cihrm-sidebar button{white-space:nowrap}.cihrm-topbar{display:block;padding:18px}.cihrm-user-pill{margin-top:0;width:100%;max-width:100%;white-space:normal}.cihrm-panel{padding:18px;border-radius:18px}.cihrm-panel-head{display:block}.cihrm-panel-actions{margin-top:12px}.cihrm-clock-content,.cihrm-two-col,.cihrm-two-cards{grid-template-columns:1fr}.cihrm-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.cihrm-app{padding:8px;border-radius:16px;border-left:0;border-right:0}.cihrm-sidebar{padding:14px}.cihrm-brand strong{font-size:14px}.cihrm-topbar h1{font-size:22px!important}.cihrm-stats-grid{grid-template-columns:1fr}.cihrm-form-grid,.cihrm-form-grid-wide,.cihrm-form-grid-compact{grid-template-columns:1fr}.cihrm-card,.cihrm-panel{padding:15px}.cihrm-btn{width:100%;justify-content:center}.cihrm-actions .cihrm-btn{width:auto}.cihrm-table{min-width:680px}.cihrm-user-pill{width:100%;box-sizing:border-box;justify-content:space-between}.cihrm-panel-head h2{font-size:18px!important}}
@media (prefers-color-scheme:dark){.cihrm-app.cihrm-dark{--cihrm-bg:#0b1220;--cihrm-card:#111827;--cihrm-text:#f9fafb;--cihrm-muted:#9ca3af;--cihrm-border:#1f2937}}
.cihrm-brand-logo{width:42px;height:42px;object-fit:contain;border-radius:10px;background:#fff;padding:4px;box-sizing:border-box}@media (prefers-color-scheme:dark){.cihrm-dark .cihrm-panel,.cihrm-dark .cihrm-card,.cihrm-dark .cihrm-topbar{background:var(--cihrm-card);color:var(--cihrm-text)}.cihrm-dark .cihrm-field input,.cihrm-dark .cihrm-field select,.cihrm-dark .cihrm-field textarea{background:#0f172a;color:#f9fafb;border-color:#334155}}
.cihrm-profile-photo{grid-row:span 2}.cihrm-profile-photo img{width:88px;height:88px;object-fit:cover;border-radius:22px;border:3px solid color-mix(in srgb,var(--cihrm-primary) 25%,white)}
.cihrm-org-tree{overflow:auto;padding:12px}.cihrm-org-tree ul{list-style:none;margin:0;padding:0;display:flex;gap:20px;justify-content:center}.cihrm-org-tree li{position:relative;min-width:220px}.cihrm-org-tree li>ul{margin-top:24px;padding-top:20px;border-top:2px solid var(--cihrm-border)}.cihrm-org-tree li>ul:before{content:"";position:absolute;left:50%;top:100%;height:24px;border-left:2px solid var(--cihrm-border)}.cihrm-org-tree .cihrm-org-card{height:auto}@media(max-width:960px){.cihrm-org-tree ul{justify-content:flex-start}.cihrm-org-tree li{min-width:190px}}
.cihrm-decision-panel{border-color:color-mix(in srgb,var(--cihrm-primary) 55%,var(--cihrm-border));box-shadow:0 16px 42px color-mix(in srgb,var(--cihrm-primary) 12%,transparent)}
@media(max-width:960px){.cihrm-org-tree{overflow:visible;padding:0}.cihrm-org-tree ul{display:block;width:100%;max-width:100%}.cihrm-org-tree li{width:100%;min-width:0;margin:0 0 12px}.cihrm-org-tree li>ul{display:block;margin:12px 0 0 14px;padding:0 0 0 14px;border-top:0;border-left:2px solid var(--cihrm-border)}.cihrm-org-tree li>ul:before{display:none}.cihrm-org-tree .cihrm-org-card{width:100%;max-width:100%}}
@media(max-width:640px){.cihrm-org-tree li>ul{margin-left:8px;padding-left:10px}.cihrm-org-tree .cihrm-org-card{padding:13px}.cihrm-decision-panel .cihrm-actions{display:grid;grid-template-columns:1fr;width:100%}}
.cihrm-live-timers{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.cihrm-live-timers strong{font-variant-numeric:tabular-nums;background:color-mix(in srgb,var(--cihrm-primary) 12%,white);border:1px solid color-mix(in srgb,var(--cihrm-primary) 25%,white);padding:8px 12px;border-radius:999px}
.cihrm-bar-chart{height:180px;display:flex;align-items:flex-end;gap:10px;border-bottom:1px solid var(--cihrm-border);padding-top:12px}.cihrm-bar-column{height:100%;flex:1;display:flex;align-items:flex-end;justify-content:center;gap:2px;position:relative;padding-bottom:24px}.cihrm-bar{width:34%;min-height:2px;border-radius:5px 5px 0 0}.cihrm-bar.present{background:var(--cihrm-primary)}.cihrm-bar.absent{background:#ef4444}.cihrm-bar-column>span{position:absolute;bottom:3px;font-size:10px;color:var(--cihrm-muted)}.cihrm-progress-list>div{display:grid;grid-template-columns:minmax(90px,1fr) 2fr auto;gap:10px;align-items:center;margin:13px 0}.cihrm-progress{height:9px;background:#e5e7eb;border-radius:999px;overflow:hidden}.cihrm-progress i{display:block;height:100%;background:var(--cihrm-primary);border-radius:inherit}

/* Explicit dark theme. Keep this outside prefers-color-scheme so the saved
   dashboard setting behaves consistently and is not dependent on the OS. */
.cihrm-app.cihrm-dark{
  --cihrm-bg:#07111f;
  --cihrm-card:#111c2e;
  --cihrm-text:#f8fafc;
  --cihrm-muted:#b8c4d4;
  --cihrm-border:#2b3a50;
  --cihrm-shadow:0 18px 48px rgba(0,0,0,.28);
  color-scheme:dark;
  color:var(--cihrm-text)!important;
}
.cihrm-dark .cihrm-main,.cihrm-dark .cihrm-view,.cihrm-dark .cihrm-panel,.cihrm-dark .cihrm-card,.cihrm-dark .cihrm-topbar{color:var(--cihrm-text)!important}
.cihrm-dark h1,.cihrm-dark h2,.cihrm-dark h3,.cihrm-dark h4,.cihrm-dark h5,.cihrm-dark h6,.cihrm-dark strong,.cihrm-dark label{color:var(--cihrm-text)!important}
.cihrm-dark .cihrm-topbar p,.cihrm-dark .cihrm-panel p,.cihrm-dark .cihrm-card-title,.cihrm-dark .cihrm-card-note,.cihrm-dark .cihrm-field small,.cihrm-dark .cihrm-check small,.cihrm-dark .cihrm-org-card small,.cihrm-dark .cihrm-org-card em,.cihrm-dark .cihrm-clock-status>span{color:var(--cihrm-muted)!important}
.cihrm-dark .cihrm-card-value,.cihrm-dark .cihrm-field>span,.cihrm-dark .cihrm-check span,.cihrm-dark .cihrm-profile-grid span,.cihrm-dark .cihrm-org-card span,.cihrm-dark .cihrm-clean-list{color:var(--cihrm-text)!important}
.cihrm-dark .cihrm-user-pill,.cihrm-dark .cihrm-subpanel,.cihrm-dark .cihrm-clock-box,.cihrm-dark .cihrm-profile-grid>div,.cihrm-dark .cihrm-permission-group,.cihrm-dark .cihrm-org-card,.cihrm-dark .cihrm-table-card,.cihrm-dark .cihrm-loading{background:#172337!important;border-color:var(--cihrm-border)!important;color:var(--cihrm-text)!important}
.cihrm-dark .cihrm-user-pill span{color:var(--cihrm-muted)!important}
.cihrm-dark .cihrm-field input:not([type=color]),.cihrm-dark .cihrm-field select,.cihrm-dark .cihrm-field textarea{background:#0b1627!important;border-color:#40516a!important;color:#f8fafc!important;box-shadow:0 0 0 1px rgba(255,255,255,.02)!important}
.cihrm-dark .cihrm-field input::placeholder,.cihrm-dark .cihrm-field textarea::placeholder{color:#8190a5!important;opacity:1}
.cihrm-dark .cihrm-field input:focus,.cihrm-dark .cihrm-field select:focus,.cihrm-dark .cihrm-field textarea:focus{border-color:var(--cihrm-primary)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--cihrm-primary) 25%,transparent)!important;outline:0!important}
.cihrm-dark .cihrm-field input[type=color]{background:#0b1627!important;border-color:#40516a!important}
.cihrm-dark .cihrm-check{background:#172337!important;border-color:#3a4b63!important;color:var(--cihrm-text)!important}
.cihrm-dark .cihrm-check:hover{background:#1b2a40!important;border-color:#536780!important}
.cihrm-dark .cihrm-table th{background:#0c1728!important;color:#cbd5e1!important;border-color:var(--cihrm-border)!important}
.cihrm-dark .cihrm-table td{background:#111c2e!important;color:#edf2f7!important;border-color:var(--cihrm-border)!important}
.cihrm-dark .cihrm-table tbody tr:hover td{background:#17253a!important}
.cihrm-dark .cihrm-mini-actions button,.cihrm-dark .cihrm-link-btn{background:#20304a!important;color:#bfdbfe!important}
.cihrm-dark .cihrm-mini-actions button:hover,.cihrm-dark .cihrm-link-btn:hover{background:#29405f!important;color:#fff!important}
.cihrm-dark .cihrm-btn{background:color-mix(in srgb,var(--cihrm-primary) 72%,#000)!important;color:#fff!important;box-shadow:0 10px 24px color-mix(in srgb,var(--cihrm-primary) 22%,transparent)!important}
.cihrm-dark .cihrm-btn-secondary{background:#334155!important;color:#fff!important}
.cihrm-dark .cihrm-progress{background:#2d3c52!important}
.cihrm-dark .cihrm-live-timers strong{background:#172e2a!important;border-color:#285947!important;color:#dcfce7!important}
.cihrm-dark .cihrm-empty{color:var(--cihrm-muted)!important}
.cihrm-dark .cihrm-empty strong{color:var(--cihrm-text)!important}
.cihrm-dark input[type=checkbox],.cihrm-dark input[type=radio]{accent-color:var(--cihrm-primary)}
.cihrm-dark .cihrm-toast,.cihrm-toast-region-dark .cihrm-toast{background:#172337;color:#f8fafc;border-color:#40516a;box-shadow:0 18px 44px rgba(0,0,0,.34)}.cihrm-dark .cihrm-toast p,.cihrm-toast-region-dark .cihrm-toast p{color:#dbe4ef!important}.cihrm-dark .cihrm-toast button,.cihrm-toast-region-dark .cihrm-toast button{color:#cbd5e1}.cihrm-dark .cihrm-toast-success span,.cihrm-toast-region-dark .cihrm-toast-success span{color:#86efac}.cihrm-dark .cihrm-toast-error span,.cihrm-toast-region-dark .cihrm-toast-error span{color:#fca5a5}.cihrm-dark .cihrm-toast-info span,.cihrm-toast-region-dark .cihrm-toast-info span{color:#93c5fd}

/* Frontend account controls and branded login. */
.cihrm-user-area{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0;max-width:55%}
.cihrm-user-area .cihrm-user-pill{max-width:100%}
.cihrm-theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:40px;padding:8px 13px;border:1px solid var(--cihrm-border);border-radius:12px;background:transparent;color:var(--cihrm-text);font-size:13px!important;font-weight:800;cursor:pointer}
.cihrm-theme-toggle:hover{border-color:var(--cihrm-primary);background:color-mix(in srgb,var(--cihrm-primary) 10%,transparent)}
.cihrm-weekend-section{margin:2px 0 18px;padding:16px;border:1px solid var(--cihrm-border);border-radius:16px;background:color-mix(in srgb,var(--cihrm-card) 92%,var(--cihrm-bg))}.cihrm-weekend-section>strong{display:block;font-size:15px;color:var(--cihrm-text)}.cihrm-weekend-section>p{margin:4px 0 14px!important;font-size:13px!important;color:var(--cihrm-muted)!important}.cihrm-weekend-section .cihrm-weekdays{margin-bottom:0}
.cihrm-settings .cihrm-panel-head h2{font-size:19px!important}.cihrm-settings .cihrm-panel p{font-size:13px!important}.cihrm-settings .cihrm-field>span,.cihrm-settings .cihrm-check span{font-size:13px!important;line-height:1.3}.cihrm-inline-note{font-size:12px!important;color:var(--cihrm-muted)!important;margin:-10px 0 12px!important}
@media(max-width:960px){.cihrm-user-area{max-width:100%;justify-content:flex-start;flex-wrap:wrap;margin-top:12px}.cihrm-user-area .cihrm-user-pill{order:-1;flex:1 1 100%}.cihrm-theme-toggle,.cihrm-logout{flex:1 1 auto}}
.cihrm-logout{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:40px;padding:8px 13px;border:1px solid var(--cihrm-border);border-radius:12px;background:transparent;color:var(--cihrm-text)!important;text-decoration:none!important;font-size:13px;font-weight:800;transition:.18s ease}
.cihrm-logout:hover{border-color:var(--cihrm-primary);background:color-mix(in srgb,var(--cihrm-primary) 10%,transparent);color:var(--cihrm-text)!important}
.cihrm-brand span{color:color-mix(in srgb,var(--cihrm-sidebar-text,#fff) 68%,transparent)}
.cihrm-sidebar button:hover,.cihrm-sidebar button.active{color:var(--cihrm-sidebar-text,#fff)}
.cihrm-field input,.cihrm-field select,.cihrm-field textarea,.cihrm-check,.cihrm-table-card,.cihrm-org-card,.cihrm-loading,.cihrm-auth-box{background-color:var(--cihrm-card)!important}
.cihrm-login-shell{--cihrm-primary:#28b054;--cihrm-secondary:#0f172a;width:min(1080px,calc(100vw - 32px));max-width:min(1080px,calc(100vw - 32px));min-height:620px;position:relative;left:50%;transform:translateX(-50%);display:grid;place-items:center;margin:24px 0;padding:clamp(12px,3vw,32px);border:1px solid #dce3ec;border-radius:30px;background:radial-gradient(circle at 10% 0%,color-mix(in srgb,var(--cihrm-primary) 14%,transparent),transparent 34%),#eef3f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-sizing:border-box;overflow:hidden}
.cihrm-login-shell *{box-sizing:border-box}
.cihrm-login-card{width:100%;max-width:920px;display:grid;grid-template-columns:minmax(0,.9fr) minmax(340px,1.1fr);overflow:hidden;border:1px solid rgba(15,23,42,.12);border-radius:26px;background:#fff;box-shadow:0 28px 80px rgba(15,23,42,.16)}
.cihrm-login-intro{min-width:0;display:flex;flex-direction:column;justify-content:space-between;gap:46px;padding:clamp(28px,5vw,54px);background:linear-gradient(155deg,var(--cihrm-secondary),#111f36);color:#fff}
.cihrm-login-brand{display:flex;align-items:center;gap:12px}.cihrm-login-brand>span,.cihrm-login-brand img{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:var(--cihrm-primary);color:#fff;object-fit:contain;padding:5px;font-weight:900}.cihrm-login-brand strong,.cihrm-login-brand small{display:block;color:#fff}.cihrm-login-brand strong{font-size:15px}.cihrm-login-brand small{margin-top:3px;color:#cbd5e1;font-size:12px}
.cihrm-login-message>span,.cihrm-login-form-heading>span{display:inline-flex;margin-bottom:12px;color:var(--cihrm-primary);font-size:12px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.cihrm-login-message h1{margin:0 0 14px!important;color:#fff!important;font-size:clamp(32px,5vw,48px)!important;line-height:1!important}.cihrm-login-message p{max-width:360px;margin:0;color:#cbd5e1;font-size:15px;line-height:1.65}.cihrm-login-security{color:#94a3b8;line-height:1.5}
.cihrm-login-form-panel{min-width:0;padding:clamp(28px,5vw,56px);color:#172033}.cihrm-login-form-heading h2{margin:0 0 8px!important;color:#111827!important;font-size:28px!important;line-height:1.2!important}.cihrm-login-form-heading p{margin:0 0 26px;color:#64748b;font-size:14px}.cihrm-login-alert{margin:0 0 18px;padding:12px 14px;border:1px solid #fecaca;border-radius:12px;background:#fff1f2;color:#9f1239;font-size:13px;font-weight:700}
.cihrm-login-form{display:grid;gap:18px;margin:0}.cihrm-login-form>label:not(.cihrm-login-remember){display:grid;gap:7px}.cihrm-login-form label>span{color:#334155;font-size:13px;font-weight:800}.cihrm-login-form input[type=text],.cihrm-login-form input[type=password]{width:100%!important;max-width:100%!important;min-height:48px!important;margin:0!important;padding:11px 13px!important;border:1px solid #cbd5e1!important;border-radius:13px!important;background:#fff!important;color:#111827!important;font-size:15px!important;box-shadow:none!important;outline:0}.cihrm-login-form input[type=text]:focus,.cihrm-login-form input[type=password]:focus{border-color:var(--cihrm-primary)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--cihrm-primary) 18%,transparent)!important}.cihrm-login-remember{display:flex;align-items:center;gap:9px}.cihrm-login-remember input{margin:0!important;accent-color:var(--cihrm-primary)}.cihrm-login-submit{width:100%;min-height:48px;border:0;border-radius:13px;background:color-mix(in srgb,var(--cihrm-primary) 78%,#000);color:#fff;font-size:14px;font-weight:850;cursor:pointer;box-shadow:0 12px 24px color-mix(in srgb,var(--cihrm-primary) 24%,transparent);transition:.18s ease}.cihrm-login-submit:hover{filter:brightness(1.06);transform:translateY(-1px)}
.cihrm-login-links{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:22px;padding-top:18px;border-top:1px solid #e2e8f0}.cihrm-login-links a{color:#334155!important;text-decoration:none!important;font-size:13px;font-weight:750}.cihrm-login-links a:hover{color:var(--cihrm-primary)!important}
@media(max-width:760px){.cihrm-user-area{width:100%;max-width:100%;justify-content:stretch;margin-top:12px}.cihrm-user-area .cihrm-user-pill{width:100%;margin-top:0}.cihrm-logout{min-height:44px}.cihrm-login-shell{width:calc(100vw - 16px);max-width:calc(100vw - 16px);min-height:auto;margin:8px 0;padding:8px;border-radius:20px}.cihrm-login-card{grid-template-columns:1fr;border-radius:18px}.cihrm-login-intro{gap:24px;padding:24px}.cihrm-login-message h1{font-size:32px!important}.cihrm-login-message p{font-size:14px}.cihrm-login-security{display:none}.cihrm-login-form-panel{padding:26px 22px 30px}.cihrm-login-form-heading h2{font-size:24px!important}}
@media(max-width:420px){.cihrm-user-area{display:grid;grid-template-columns:minmax(0,1fr) auto}.cihrm-user-area .cihrm-user-pill{display:block}.cihrm-user-area .cihrm-user-pill span,.cihrm-user-area .cihrm-user-pill strong{display:block}.cihrm-login-intro{padding:20px}.cihrm-login-form-panel{padding:24px 18px 26px}}

/* Keep profile data readable inside every card, regardless of theme typography. */
.cihrm-profile-grid{grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))}
.cihrm-profile-grid>div{min-width:0;overflow:hidden;gap:5px}
.cihrm-profile-grid>div>strong{display:block;font-size:12px!important;line-height:1.35!important}
.cihrm-profile-grid>div>span{display:block;max-width:100%;font-size:clamp(13px,1.1vw,16px)!important;line-height:1.4!important;overflow-wrap:anywhere;word-break:break-word;white-space:normal}
.cihrm-profile-grid>div>.cihrm-status{display:inline-flex;width:max-content;max-width:100%;font-size:11px!important;line-height:1.2!important}
@media(max-width:760px){.cihrm-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.cihrm-profile-grid{grid-template-columns:1fr}.cihrm-profile-grid>div>span{font-size:14px!important}}
.cihrm-announcement-list{display:grid;gap:10px}.cihrm-announcement-item{min-width:0;padding:13px 14px;border:1px solid var(--cihrm-border);border-radius:14px;background:#f8fafc}.cihrm-announcement-item>div{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.cihrm-announcement-item strong{min-width:0;color:var(--cihrm-text);font-size:14px;line-height:1.35;overflow-wrap:anywhere}.cihrm-announcement-item time{flex:0 0 auto;color:var(--cihrm-muted);font-size:11px}.cihrm-announcement-item p{margin:6px 0 0!important;color:var(--cihrm-muted)!important;font-size:13px!important;line-height:1.5}.cihrm-dark .cihrm-announcement-item{background:#172337;border-color:var(--cihrm-border)}
@media(max-width:480px){.cihrm-announcement-item>div{display:block}.cihrm-announcement-item time{display:block;margin-top:3px}}

/* Attendance correction approval details. */
.cihrm-detail-row>td{background:#fbfdff!important;padding:16px!important}
.cihrm-correction-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.cihrm-correction-column{border:1px solid var(--cihrm-border);border-radius:16px;background:#fff;padding:14px;display:flex;flex-direction:column;gap:10px}
.cihrm-correction-column h4{margin:0!important;font-size:14px!important}
.cihrm-correction-cell{display:flex;flex-direction:column;gap:3px}
.cihrm-correction-cell small,.cihrm-correction-note small{color:var(--cihrm-muted);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.cihrm-correction-cell strong{font-size:13px;word-break:break-word}
.cihrm-correction-note p{margin:4px 0 0!important;color:var(--cihrm-text);font-size:13px;white-space:pre-wrap}
.cihrm-correction-column-wide{grid-column:1/-1}.cihrm-attachment-box{border:1px solid var(--cihrm-border);border-radius:12px;padding:10px;background:var(--cihrm-card);display:grid;gap:5px}.cihrm-attachment-box small{font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:var(--cihrm-muted);font-weight:850}.cihrm-attachment-box strong{font-size:13px;overflow-wrap:anywhere}.cihrm-attachment-box p{margin:0!important;color:var(--cihrm-muted)!important;font-size:12px}.cihrm-leave-approval-details .cihrm-correction-column{align-content:start}
.cihrm-dark .cihrm-detail-row>td{background:#0f1b2d!important}
.cihrm-dark .cihrm-correction-column{background:#172337!important;border-color:var(--cihrm-border)!important}
.cihrm-dark .cihrm-attachment-box{background:#0f172a!important;border-color:#334155!important}
.cihrm-audit-detail{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}.cihrm-audit-detail>div{border:1px solid var(--cihrm-border);border-radius:14px;background:var(--cihrm-card);padding:12px;min-width:0}.cihrm-audit-detail h4{margin:0 0 8px!important;font-size:13px!important}.cihrm-audit-detail pre{max-height:260px;overflow:auto;margin:0;padding:10px;border-radius:10px;background:#f8fafc;color:#0f172a;font-size:12px;line-height:1.45;white-space:pre-wrap;word-break:break-word}.cihrm-audit-detail p{font-size:12px!important;line-height:1.5!important;margin:0!important;color:var(--cihrm-muted)!important}.cihrm-dark .cihrm-audit-detail>div{background:#0f172a!important;border-color:#334155!important}.cihrm-dark .cihrm-audit-detail pre{background:#020617!important;color:#e2e8f0!important;border:1px solid #334155!important}

/* Search, filters, and pagination for operational tables. */
.cihrm-table-tools{display:grid;grid-template-columns:minmax(220px,1fr) minmax(260px,auto) auto;gap:12px;align-items:end;padding:14px;border-bottom:1px solid var(--cihrm-border);background:color-mix(in srgb,var(--cihrm-card) 92%,var(--cihrm-bg))}
.cihrm-table-search,.cihrm-table-per-page,.cihrm-table-filters label,.cihrm-table-date-filters label{display:flex;flex-direction:column;gap:5px;min-width:0}
.cihrm-table-tools span{font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.04em;color:var(--cihrm-muted)}
.cihrm-table-tools input,.cihrm-table-tools select{width:100%;min-height:38px;border:1px solid var(--cihrm-border);border-radius:11px;background:var(--cihrm-card);color:var(--cihrm-text);padding:8px 10px;font-size:13px;box-shadow:none}
.cihrm-table-filters,.cihrm-table-date-filters{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.cihrm-table-filters label{min-width:150px}.cihrm-table-date-filters fieldset{display:grid;grid-template-columns:repeat(2,minmax(120px,1fr));gap:8px;min-width:260px;margin:0;padding:0;border:0}.cihrm-table-date-filters legend{grid-column:1/-1;margin:0 0 -3px;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.04em;color:var(--cihrm-muted)}
.cihrm-table-per-page{width:96px}
.cihrm-table-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-top:1px solid var(--cihrm-border);background:color-mix(in srgb,var(--cihrm-card) 92%,var(--cihrm-bg));color:var(--cihrm-muted);font-size:12px}
.cihrm-table-pagination>div{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.cihrm-table-pagination button{border:1px solid var(--cihrm-border);border-radius:10px;background:var(--cihrm-card);color:var(--cihrm-text);padding:7px 10px;font-size:12px;font-weight:800;cursor:pointer}.cihrm-table-pagination button:disabled{opacity:.45;cursor:not-allowed}.cihrm-table-pagination strong{color:var(--cihrm-text);font-size:12px}
.cihrm-dark .cihrm-table-tools,.cihrm-dark .cihrm-table-pagination{background:#0f1b2d;border-color:var(--cihrm-border)}
.cihrm-dark .cihrm-table-tools input,.cihrm-dark .cihrm-table-tools select,.cihrm-dark .cihrm-table-pagination button{background:#172337;border-color:#40516a;color:var(--cihrm-text)}
@media(max-width:960px){.cihrm-table-tools{grid-template-columns:1fr}.cihrm-table-filters,.cihrm-table-date-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.cihrm-table-filters label,.cihrm-table-date-filters fieldset,.cihrm-table-per-page{width:100%;min-width:0}.cihrm-table-pagination{display:grid;gap:10px}.cihrm-table-pagination>div{justify-content:flex-start}}
@media(max-width:520px){.cihrm-table-filters,.cihrm-table-date-filters{grid-template-columns:1fr}.cihrm-table-pagination>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.cihrm-table-pagination strong{grid-column:1/-1;order:-1}.cihrm-table-pagination button{width:100%}}

/* Unified responsive filter toolbar for every DataTable. */
.cihrm-table-tools{display:grid!important;grid-template-columns:minmax(230px,1.15fr) minmax(260px,1.45fr) minmax(260px,1.25fr) minmax(92px,.35fr) auto!important;gap:12px!important;align-items:end!important;padding:14px 16px!important;border-bottom:1px solid var(--cihrm-border)!important;background:linear-gradient(180deg,color-mix(in srgb,var(--cihrm-card) 96%,var(--cihrm-bg)),color-mix(in srgb,var(--cihrm-card) 90%,var(--cihrm-bg)))!important}
.cihrm-table-tools>*{min-width:0!important}
.cihrm-table-search,.cihrm-table-per-page,.cihrm-table-filters label,.cihrm-table-date-filters label{display:grid!important;gap:6px!important;min-width:0!important}
.cihrm-table-tools span,.cihrm-table-date-filters legend{font-size:10.5px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.055em!important;color:var(--cihrm-muted)!important;line-height:1.15!important}
.cihrm-table-tools input,.cihrm-table-tools select{width:100%!important;max-width:100%!important;min-height:44px!important;height:44px!important;box-sizing:border-box!important;border:1px solid var(--cihrm-border)!important;border-radius:13px!important;background:var(--cihrm-card)!important;color:var(--cihrm-text)!important;padding:9px 12px!important;font-size:13px!important;line-height:1.2!important;box-shadow:none!important;outline:0!important}
.cihrm-table-tools input:focus,.cihrm-table-tools select:focus{border-color:color-mix(in srgb,var(--cihrm-primary) 55%,var(--cihrm-border))!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--cihrm-primary) 14%,transparent)!important}
.cihrm-table-filters{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(155px,1fr))!important;gap:10px!important;align-items:end!important}
.cihrm-table-filters label{min-width:0!important}
.cihrm-table-date-filters{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;align-items:end!important}
.cihrm-table-date-filters fieldset{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important}
.cihrm-table-date-filters legend{grid-column:1/-1!important;margin:0 0 -2px!important}
.cihrm-table-per-page{width:auto!important}
.cihrm-table-reset{min-height:44px!important;border:1px solid var(--cihrm-border)!important;border-radius:13px!important;background:var(--cihrm-card)!important;color:var(--cihrm-text)!important;padding:9px 13px!important;font-size:12px!important;font-weight:850!important;cursor:pointer!important;white-space:nowrap!important}
.cihrm-table-reset:disabled{opacity:.45!important;cursor:not-allowed!important}
.cihrm-table-reset:not(:disabled):hover{border-color:color-mix(in srgb,var(--cihrm-primary) 45%,var(--cihrm-border))!important;color:var(--cihrm-primary)!important}
.cihrm-dark .cihrm-table-reset{background:#1e293b!important;color:#e2e8f0!important;border-color:#475569!important}
@media(max-width:1180px){.cihrm-table-tools{grid-template-columns:minmax(220px,1fr) minmax(240px,1fr) minmax(260px,1fr) minmax(92px,.4fr)!important}.cihrm-table-reset{grid-column:1/-1;width:max-content!important}}
@media(max-width:820px){.cihrm-table-tools{grid-template-columns:1fr 1fr!important}.cihrm-table-search,.cihrm-table-filters,.cihrm-table-date-filters{grid-column:1/-1!important}.cihrm-table-per-page{grid-column:1/2!important}.cihrm-table-reset{grid-column:2/3!important;width:100%!important}.cihrm-table-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){.cihrm-table-tools{grid-template-columns:1fr!important;padding:12px!important}.cihrm-table-search,.cihrm-table-filters,.cihrm-table-date-filters,.cihrm-table-per-page,.cihrm-table-reset{grid-column:1/-1!important;width:100%!important}.cihrm-table-filters,.cihrm-table-date-filters fieldset{grid-template-columns:1fr!important}}

/* Final table-toolbar layout: every filter is an inline grid item, not a stacked group. */
.cihrm-table-tools{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important;gap:12px!important;align-items:end!important}
.cihrm-table-filters,.cihrm-table-date-filters{display:contents!important}
.cihrm-table-search,.cihrm-table-filters label,.cihrm-table-per-page{width:100%!important;min-width:0!important}
.cihrm-table-date-filters fieldset{min-width:0!important;width:100%!important}
.cihrm-table-search{grid-column:auto!important}
.cihrm-table-per-page{max-width:none!important}
.cihrm-table-reset{width:100%!important}
@media(min-width:900px){.cihrm-table-search{min-width:220px!important}.cihrm-table-date-filters fieldset{grid-column:span 2!important}.cihrm-table-reset{align-self:end!important}}
@media(max-width:720px){.cihrm-table-tools{grid-template-columns:repeat(2,minmax(0,1fr))!important}.cihrm-table-date-filters fieldset{grid-column:1/-1!important}.cihrm-table-search{grid-column:1/-1!important}}
@media(max-width:520px){.cihrm-table-tools{grid-template-columns:1fr!important}.cihrm-table-date-filters fieldset,.cihrm-table-search,.cihrm-table-reset,.cihrm-table-per-page{grid-column:1/-1!important}}

/* Fixed professional dark mode. It intentionally ignores configurable branding
   colors so every installation gets one readable dark palette. */
.cihrm-app.cihrm-dark{--cihrm-primary:#38bdf8!important;--cihrm-secondary:#e2e8f0!important;--cihrm-bg:#07111f!important;--cihrm-card:#111827!important;--cihrm-text:#f8fafc!important;--cihrm-muted:#cbd5e1!important;--cihrm-border:#334155!important;--cihrm-sidebar-bg:#020617!important;--cihrm-sidebar-text:#f8fafc!important;background:#07111f!important;color:#f8fafc!important;border-color:#1e293b!important}
.cihrm-dark .cihrm-main,.cihrm-dark .cihrm-view,.cihrm-dark .cihrm-panel,.cihrm-dark .cihrm-card,.cihrm-dark .cihrm-topbar,.cihrm-dark .cihrm-table-card,.cihrm-dark .cihrm-auth-box{background:#111827!important;color:#f8fafc!important;border-color:#334155!important}
.cihrm-dark .cihrm-sidebar{background:linear-gradient(180deg,#020617,#0f172a)!important;color:#f8fafc!important;border:1px solid #1e293b!important}.cihrm-dark .cihrm-sidebar button{color:#dbeafe!important}.cihrm-dark .cihrm-sidebar button:hover,.cihrm-dark .cihrm-sidebar button.active{background:#1e293b!important;color:#fff!important}
.cihrm-dark h1,.cihrm-dark h2,.cihrm-dark h3,.cihrm-dark h4,.cihrm-dark strong,.cihrm-dark label,.cihrm-dark .cihrm-field>span,.cihrm-dark .cihrm-check span,.cihrm-dark .cihrm-card-value,.cihrm-dark .cihrm-profile-grid span{color:#f8fafc!important}
.cihrm-dark p,.cihrm-dark small,.cihrm-dark em,.cihrm-dark .cihrm-card-title,.cihrm-dark .cihrm-card-note,.cihrm-dark .cihrm-topbar p,.cihrm-dark .cihrm-panel p,.cihrm-dark .cihrm-field small,.cihrm-dark .cihrm-check small{color:#cbd5e1!important}
.cihrm-dark .cihrm-subpanel,.cihrm-dark .cihrm-clock-box,.cihrm-dark .cihrm-profile-grid>div,.cihrm-dark .cihrm-permission-group,.cihrm-dark .cihrm-org-card,.cihrm-dark .cihrm-correction-column,.cihrm-dark .cihrm-announcement-item,.cihrm-dark .cihrm-user-pill,.cihrm-dark .cihrm-empty,.cihrm-dark .cihrm-loading{background:#0f172a!important;color:#f8fafc!important;border-color:#334155!important}
.cihrm-dark .cihrm-field input:not([type=color]),.cihrm-dark .cihrm-field select,.cihrm-dark .cihrm-field textarea,.cihrm-dark .cihrm-table-tools input,.cihrm-dark .cihrm-table-tools select{background:#020617!important;color:#f8fafc!important;border-color:#475569!important}.cihrm-dark .cihrm-field input::placeholder,.cihrm-dark .cihrm-field textarea::placeholder{color:#94a3b8!important}
.cihrm-dark .cihrm-check{background:#172033!important;color:#f8fafc!important;border-color:#475569!important}.cihrm-dark .cihrm-check:hover{background:#1e293b!important;border-color:#64748b!important}.cihrm-dark input[type=checkbox],.cihrm-dark input[type=radio]{accent-color:#38bdf8!important}
.cihrm-dark .cihrm-table th{background:#020617!important;color:#e2e8f0!important;border-color:#334155!important}.cihrm-dark .cihrm-table td{background:#111827!important;color:#f8fafc!important;border-color:#334155!important}.cihrm-dark .cihrm-table tbody tr:hover td{background:#1e293b!important}
.cihrm-dark .cihrm-btn{background:#0284c7!important;color:#fff!important;box-shadow:0 12px 24px rgba(14,165,233,.22)!important}.cihrm-dark .cihrm-btn-secondary,.cihrm-dark .cihrm-theme-toggle,.cihrm-dark .cihrm-logout,.cihrm-dark .cihrm-mini-actions button,.cihrm-dark .cihrm-link-btn,.cihrm-dark .cihrm-table-pagination button{background:#1e293b!important;color:#e2e8f0!important;border-color:#475569!important}
.cihrm-dark .cihrm-status{background:#1e293b;color:#f8fafc}.cihrm-dark .cihrm-status-present,.cihrm-dark .cihrm-status-approved,.cihrm-dark .cihrm-status-active,.cihrm-dark .cihrm-status-published{background:#064e3b!important;color:#bbf7d0!important}.cihrm-dark .cihrm-status-late,.cihrm-dark .cihrm-status-pending,.cihrm-dark .cihrm-status-pending_correction,.cihrm-dark .cihrm-status-missing_clock_out{background:#78350f!important;color:#fde68a!important}.cihrm-dark .cihrm-status-rejected,.cihrm-dark .cihrm-status-terminated,.cihrm-dark .cihrm-status-suspended,.cihrm-dark .cihrm-status-deleted{background:#7f1d1d!important;color:#fecaca!important}.cihrm-dark .cihrm-status-half_day,.cihrm-dark .cihrm-status-early_leave,.cihrm-dark .cihrm-status-draft{background:#1e3a8a!important;color:#bfdbfe!important}
.cihrm-mini-actions .cihrm-danger-link{background:#fee2e2!important;color:#991b1b!important}.cihrm-mini-actions .cihrm-danger-link:hover{background:#fecaca!important;color:#7f1d1d!important}.cihrm-dark .cihrm-mini-actions .cihrm-danger-link{background:#7f1d1d!important;color:#fecaca!important;border-color:#991b1b!important}.cihrm-dark .cihrm-mini-actions .cihrm-danger-link:hover{background:#991b1b!important;color:#fff!important}

/* Compact organization cards with animated team groups and detail modal. */
.cihrm-org-toolbar{display:flex;gap:10px;align-items:end;margin:0 0 14px}.cihrm-org-toolbar label{display:flex;flex-direction:column;gap:5px;min-width:min(100%,420px)}.cihrm-org-toolbar span{font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.04em;color:var(--cihrm-muted)}.cihrm-org-toolbar input{width:100%;min-height:40px;border:1px solid var(--cihrm-border);border-radius:12px;background:var(--cihrm-card);color:var(--cihrm-text);padding:9px 12px;font-size:13px}.cihrm-org-tree,.cihrm-org-tree ul{width:100%;max-width:100%;overflow:visible!important;padding:0!important}.cihrm-org-tree ul{list-style:none!important;margin:0!important;display:grid!important;gap:12px!important}.cihrm-org-tree>ul,.cihrm-org-search-results{grid-template-columns:repeat(auto-fill,minmax(255px,1fr))!important;display:grid!important;gap:12px!important}.cihrm-org-node{min-width:0!important;margin:0!important}.cihrm-org-node::before,.cihrm-org-node>ul:before,.cihrm-org-node>ul>.cihrm-org-node::before{display:none!important;content:none!important}.cihrm-org-card{position:relative!important;width:100%!important;min-width:0!important;display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;padding:11px!important;border:1px solid var(--cihrm-border)!important;border-radius:16px!important;background:var(--cihrm-card)!important;box-shadow:0 8px 18px rgba(15,23,42,.04)!important}.cihrm-org-card img,.cihrm-org-card .cihrm-avatar{width:42px!important;height:42px!important;border-radius:13px!important;font-size:19px!important}.cihrm-org-card-main{min-width:0;display:grid;gap:2px}.cihrm-org-card-main strong{font-size:14px!important;line-height:1.22!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cihrm-org-card-main span{font-size:12px!important;line-height:1.3!important;color:var(--cihrm-text)!important;font-weight:800!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cihrm-org-card-main small{font-size:11px!important;color:var(--cihrm-muted)!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cihrm-org-card-actions{display:flex;align-items:center;gap:6px}.cihrm-org-icon-btn,.cihrm-org-detail-btn,.cihrm-org-count{border:1px solid var(--cihrm-border);background:#f8fafc;color:#1d4ed8;border-radius:999px;font-weight:900;line-height:1;min-height:28px}.cihrm-org-icon-btn{width:28px;padding:0;font-size:16px;cursor:pointer}.cihrm-org-count{display:grid;place-items:center;width:28px;color:var(--cihrm-muted);font-size:11px}.cihrm-org-detail-btn{padding:7px 10px;font-size:11px;cursor:pointer}.cihrm-org-report-count{position:absolute;right:12px;bottom:-9px;background:#ecfdf5;color:#166534;border:1px solid #bbf7d0;border-radius:999px;padding:3px 8px;font-size:10px;font-weight:900}.cihrm-org-children-wrap{display:grid;grid-template-rows:0fr;opacity:0;transform:translateY(-4px);transition:grid-template-rows .24s ease,opacity .18s ease,transform .24s ease;margin-left:clamp(8px,calc((var(--cihrm-org-level,0) + 1) * 10px),32px);padding-left:10px;border-left:2px solid color-mix(in srgb,var(--cihrm-primary) 24%,var(--cihrm-border))}.cihrm-org-children-wrap.is-open{grid-template-rows:1fr;opacity:1;transform:translateY(0);margin-top:12px}.cihrm-org-children-wrap.is-closed{pointer-events:none}.cihrm-org-children-wrap>.cihrm-org-children{overflow:hidden;grid-template-columns:repeat(auto-fill,minmax(255px,1fr))!important}.cihrm-modal-backdrop{position:fixed;inset:0;z-index:99999;background:rgba(15,23,42,.54);display:grid;place-items:center;padding:18px}.cihrm-modal-card{position:relative;width:min(680px,100%);max-height:min(720px,92vh);overflow:auto;background:var(--cihrm-card);color:var(--cihrm-text);border:1px solid var(--cihrm-border);border-radius:22px;box-shadow:0 30px 80px rgba(15,23,42,.28);padding:20px}.cihrm-modal-close{position:absolute;top:12px;right:12px;border:0;background:#f3f4f6;color:#111827;border-radius:999px;width:34px;height:34px;font-size:22px;line-height:1;cursor:pointer}.cihrm-org-modal-head{display:flex;gap:14px;align-items:center;padding-right:38px;margin-bottom:16px}.cihrm-org-modal-head img,.cihrm-org-modal-head .cihrm-avatar{width:58px!important;height:58px!important;border-radius:17px!important}.cihrm-org-modal-head h3{margin:0!important;font-size:20px!important}.cihrm-org-modal-head p{margin:2px 0 8px!important;color:var(--cihrm-muted)}.cihrm-org-modal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.cihrm-org-modal-grid>div,.cihrm-org-modal-note{border:1px solid var(--cihrm-border);border-radius:14px;padding:10px;background:color-mix(in srgb,var(--cihrm-card) 88%,var(--cihrm-bg))}.cihrm-org-modal-grid span,.cihrm-org-modal-note span{display:block;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;color:var(--cihrm-muted);margin-bottom:4px}.cihrm-org-modal-grid strong{font-size:13px;overflow-wrap:anywhere}.cihrm-org-modal-note{margin-top:10px}.cihrm-org-modal-note p{margin:0!important}.cihrm-dark .cihrm-org-card,.cihrm-dark .cihrm-modal-card{background:#0f172a!important;border-color:#334155!important}.cihrm-dark .cihrm-org-icon-btn,.cihrm-dark .cihrm-org-detail-btn,.cihrm-dark .cihrm-org-count,.cihrm-dark .cihrm-modal-close{background:#111827!important;border-color:#334155!important;color:#93c5fd!important}.cihrm-dark .cihrm-org-modal-grid>div,.cihrm-dark .cihrm-org-modal-note{background:#111827!important;border-color:#334155!important}
.cihrm-org-split{display:grid;grid-template-columns:minmax(340px,.95fr) minmax(300px,1.05fr);gap:18px;align-items:start}.cihrm-org-split.is-tree-focus{grid-template-columns:1fr}.cihrm-org-main{min-width:0}.cihrm-org-card{cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.cihrm-org-card:hover,.cihrm-org-card.is-selected{border-color:color-mix(in srgb,var(--cihrm-primary) 45%,var(--cihrm-border))!important;box-shadow:0 12px 26px rgba(15,23,42,.08)!important}.cihrm-org-card.is-selected{transform:translateY(-1px)}.cihrm-org-side-panel{position:sticky;top:18px;border:1px solid var(--cihrm-border);border-radius:20px;background:linear-gradient(180deg,color-mix(in srgb,var(--cihrm-card) 94%,var(--cihrm-primary)),var(--cihrm-card));padding:16px;box-shadow:0 12px 30px rgba(15,23,42,.06);min-width:0}.cihrm-org-side-head{display:flex;gap:13px;align-items:center;margin-bottom:14px}.cihrm-org-side-head img,.cihrm-org-side-head .cihrm-avatar{width:58px!important;height:58px!important;border-radius:17px!important}.cihrm-org-side-head h3,.cihrm-org-summary-panel h3{margin:0!important;font-size:19px!important}.cihrm-org-side-head p,.cihrm-org-summary-panel p{margin:3px 0 8px!important;color:var(--cihrm-muted)}.cihrm-org-side-grid,.cihrm-org-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:9px}.cihrm-org-side-grid>div,.cihrm-org-stat-grid>div,.cihrm-org-side-note,.cihrm-org-direct-list{border:1px solid var(--cihrm-border);border-radius:14px;background:color-mix(in srgb,var(--cihrm-card) 90%,var(--cihrm-bg));padding:10px}.cihrm-org-side-grid span,.cihrm-org-stat-grid span,.cihrm-org-side-note span,.cihrm-org-direct-list>span{display:block;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;color:var(--cihrm-muted);margin-bottom:4px}.cihrm-org-side-grid strong,.cihrm-org-stat-grid strong{font-size:13px;overflow-wrap:anywhere}.cihrm-org-direct-list,.cihrm-org-side-note{margin-top:10px}.cihrm-org-direct-list ul{list-style:none;margin:0!important;padding:0!important;display:grid;gap:7px}.cihrm-org-direct-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.cihrm-org-direct-list button{border:0;background:transparent;color:var(--cihrm-primary);font-weight:850;text-align:left;padding:0;cursor:pointer}.cihrm-org-direct-list small{color:var(--cihrm-muted);font-size:11px}.cihrm-org-side-note p{margin:0!important}.cihrm-org-side-panel>.cihrm-link-btn{margin-top:12px}.cihrm-dark .cihrm-org-side-panel,.cihrm-dark .cihrm-org-side-grid>div,.cihrm-dark .cihrm-org-stat-grid>div,.cihrm-dark .cihrm-org-side-note,.cihrm-dark .cihrm-org-direct-list{background:#0f172a!important;border-color:#334155!important;color:#f8fafc!important}
@media(max-width:720px){.cihrm-org-toolbar{display:grid}.cihrm-org-toolbar label{min-width:0}.cihrm-org-tree>ul,.cihrm-org-search-results,.cihrm-org-children-wrap>.cihrm-org-children{grid-template-columns:1fr!important}.cihrm-org-card{grid-template-columns:40px minmax(0,1fr)!important}.cihrm-org-card-actions{grid-column:1/-1;justify-content:flex-start}.cihrm-org-report-count{position:static;grid-column:1/-1;width:max-content}.cihrm-org-children-wrap{margin-left:8px;padding-left:8px}.cihrm-modal-backdrop{padding:10px}.cihrm-modal-card{padding:16px}.cihrm-org-modal-head h3{font-size:17px!important}}
@media(max-width:1100px){.cihrm-org-split{grid-template-columns:1fr}.cihrm-org-side-panel{position:relative;top:auto;order:-1}.cihrm-org-split.is-tree-focus .cihrm-org-side-panel{display:none}}
@media(max-width:720px){.cihrm-org-side-grid,.cihrm-org-stat-grid{grid-template-columns:1fr}.cihrm-org-side-head{align-items:flex-start}.cihrm-org-direct-list li{grid-template-columns:1fr}.cihrm-org-toolbar .cihrm-link-btn{width:max-content}}
.cihrm-org-accordion>ul{display:block!important}.cihrm-org-accordion .cihrm-org-node{display:block!important;width:100%!important;margin:0 0 12px!important}.cihrm-org-accordion .cihrm-org-children-wrap>.cihrm-org-children{display:block!important}.cihrm-org-accordion .cihrm-org-children>.cihrm-org-node:last-child{margin-bottom:0!important}.cihrm-org-children-wrap.is-closed{margin-top:0!important;margin-left:0!important;padding-left:0!important;border-left:0!important;visibility:hidden}.cihrm-org-children-wrap.is-open{visibility:visible}.cihrm-org-accordion .cihrm-org-card{max-width:520px!important}
