:root {
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 20px 50px rgba(20, 28, 55, 0.08);
    --shadow-glass: 0 20px 60px rgba(51, 76, 142, 0.12);
    --line-soft: rgba(138, 149, 196, 0.16);
    --text-strong: #182033;
    --text-soft: #6f768e;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-solid: #ffffff;
    --surface-muted: #f5f6fb;
    --brand: #456fff;
    --brand-2: #6b56ff;
    --brand-strong: #2458d3;
    --ink-900: #111827;
    --ink-700: #46546f;
    --ink-500: #71819d;
    --line-strong: #d8e1f0;
    --panel-shadow: 0 20px 45px rgba(27, 39, 94, 0.08);
    --panel-radius: 20px;
    --control-radius: 14px;
}

html, body {
    background:
        radial-gradient(circle at top right, rgba(103, 123, 255, 0.12), transparent 24%),
        linear-gradient(180deg, #eef2fb 0%, #f5f1f8 100%);
    color: var(--text-strong);
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

body {
    margin: 0;
}

a, .btn-link {
    color: var(--brand);
}

.btn {
    align-items: center;
    border-radius: 12px;
    display: inline-flex;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    transition: all .16s ease;
}

.btn .bi {
    display: inline-flex;
    line-height: 1;
}

.btn-sm {
    border-radius: 10px;
    gap: 6px;
    min-height: 34px;
    padding: 0 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(69, 111, 255, 0.24);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #365de3 0%, #5b45f5 100%);
    border-color: transparent;
    color: #fff;
}

.btn-outline-dark {
    background: #f5f7fb;
    border-color: #d7dfeb;
    color: #25304c;
    box-shadow: 0 4px 12px rgba(19, 33, 68, 0.05);
}

.btn-outline-dark:hover {
    background: #eef3f8;
    border-color: #c7d2e1;
    color: #17243b;
    box-shadow: 0 8px 18px rgba(19, 33, 68, 0.08);
}

.btn-outline-secondary {
    background: #f5f7fb;
    border-color: #d7dfeb;
    box-shadow: 0 4px 12px rgba(19, 33, 68, 0.05);
    color: #25304c;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background: #eef3f8;
    border-color: #c7d2e1;
    box-shadow: 0 8px 18px rgba(19, 33, 68, 0.08);
    color: #17243b;
}

.btn-outline-primary {
    background: rgba(69, 111, 255, 0.08);
    border-color: rgba(69, 111, 255, 0.18);
    box-shadow: 0 4px 12px rgba(69, 111, 255, 0.06);
    color: #3158d5;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: rgba(69, 111, 255, 0.12);
    border-color: rgba(69, 111, 255, 0.24);
    box-shadow: 0 8px 18px rgba(69, 111, 255, 0.1);
    color: #2447ba;
}

.btn-link {
    font-weight: 600;
    min-height: auto;
    padding: 0;
}

.btn-link:hover,
.btn-link:focus {
    color: #365de3;
    text-decoration: none;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: rgba(69, 111, 255, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(69, 111, 255, 0.14);
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeGxpbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBvdmVyZmxvdz0iaGlkZGVuIj48ZGVmcz48Y2xpcFBhdGggaWQ9ImNsaXAwIj48cmVjdCB4PSIyMzUiIHk9IjUxIiB3aWR0aD0iNTYiIGhlaWdodD0iNDkiLz48L2NsaXBQYXRoPjwvZGVmcz48ZyBjbGlwLXBhdGg9InVybCgjY2xpcDApIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjM1IC01MSkiPjxwYXRoIGQ9Ik0yNjMuNTA2IDUxQzI2NC43MTcgNTEgMjY1LjgxMyA1MS40ODM3IDI2Ni42MDYgNTIuMjY1OEwyNjcuMDUyIDUyLjc5ODcgMjY3LjUzOSA1My42MjgzIDI5MC4xODUgOTIuMTgzMSAyOTAuNTQ1IDkyLjc5NSAyOTAuNjU2IDkyLjk5NkMyOTAuODc3IDkzLjUxMyAyOTEgOTQuMDgxNSAyOTEgOTQuNjc4MiAyOTEgOTcuMDY1MSAyODkuMDM4IDk5IDI4Ni42MTcgOTlMMjQwLjM4MyA5OUMyMzcuOTYzIDk5IDIzNiA5Ny4wNjUxIDIzNiA5NC42NzgyIDIzNiA5NC4zNzk5IDIzNi4wMzEgOTQuMDg4NiAyMzYuMDg5IDkzLjgwNzJMMjM2LjMzOCA5My4wMTYyIDIzNi44NTggOTIuMTMxNCAyNTkuNDczIDUzLjYyOTQgMjU5Ljk2MSA1Mi43OTg1IDI2MC40MDcgNTIuMjY1OEMyNjEuMiA1MS40ODM3IDI2Mi4yOTYgNTEgMjYzLjUwNiA1MVoiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    color: white;
    padding: 1rem 1rem 1rem 3.7rem;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.toast-host {
    pointer-events: none;
}

.toast-message {
    animation: toast-in 0.25s ease-out;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    font-size: 0.92rem;
    margin-top: 0.4rem;
    padding: 0.7rem 1rem;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(1rem);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-success { background: #198754; color: #fff; }
.toast-error { background: #dc3545; color: #fff; }
.toast-info { background: #0d6efd; color: #fff; }

.sentinel-surface {
    backdrop-filter: blur(10px);
    background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(248,250,255,0.88) 100%);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 30px rgba(51, 76, 142, 0.08);
}

.sentinel-panel {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line-strong);
    border-radius: var(--panel-radius);
    box-shadow: var(--panel-shadow);
}

.sentinel-control {
    background: #fbfcff;
    border: 1px solid var(--line-strong);
    border-radius: var(--control-radius);
    color: var(--ink-900);
    min-height: 46px;
    padding: 0 14px;
}

.sentinel-control.form-control,
.sentinel-control.form-select {
    box-shadow: none;
}

.sentinel-control.form-control::placeholder {
    color: #93a0b8;
}

.sentinel-control-shell {
    align-items: center;
    background: #fbfcff;
    border: 1px solid var(--line-strong);
    border-radius: var(--control-radius);
    display: inline-flex;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
}

.sentinel-control-shell .form-control,
.sentinel-control-shell .form-select {
    background: transparent;
    border: 0;
    box-shadow: none;
    min-height: 44px;
    padding-left: 0;
    padding-right: 0;
}

.sentinel-control-shell .bi {
    color: #7c8bab;
    font-size: 1rem;
}

.sentinel-dropdown-field {
    position: relative;
}

.sentinel-dropdown {
    position: relative;
}

.sentinel-dropdown.is-open {
    z-index: 1400;
}

.sentinel-dropdown-trigger {
    align-items: center;
    background: #fbfcff;
    border: 1px solid var(--line-strong);
    border-radius: var(--control-radius);
    color: var(--ink-900);
    display: inline-flex;
    font-weight: 600;
    gap: 12px;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 14px;
    text-align: left;
    width: 100%;
}

.sentinel-dropdown-trigger:hover {
    background: #f8fbff;
    border-color: #cbd8ee;
}

.sentinel-dropdown-trigger-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sentinel-dropdown-chevron {
    color: #7c8bab;
    font-size: 0.9rem;
    flex: 0 0 auto;
    transition: transform .18s ease;
}

.sentinel-dropdown.is-open .sentinel-dropdown-chevron {
    transform: rotate(180deg);
}

.sentinel-dropdown-backdrop {
    background: transparent;
    border: 0;
    inset: 0;
    position: fixed;
    z-index: 1399;
}

.sentinel-dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #d7e0ee;
    border-radius: 16px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
    display: grid;
    gap: 4px;
    left: 0;
    margin-top: 8px;
    min-width: 100%;
    padding: 8px;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 1401;
}

.sentinel-dropdown-option {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 12px;
    color: var(--ink-900);
    display: inline-flex;
    font-size: 0.97rem;
    font-weight: 600;
    gap: 10px;
    justify-content: space-between;
    min-height: 42px;
    padding: 0 12px;
    text-align: left;
    width: 100%;
}

.sentinel-dropdown-option:hover {
    background: #f3f7ff;
    color: #1f3765;
}

.sentinel-dropdown-option.is-selected {
    background: #eaf2ff;
    color: var(--brand-strong);
}

.sentinel-btn {
    align-items: center;
    appearance: none;
    background: #ffffff;
    border: 1px solid #d9e2f2;
    box-sizing: border-box;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(20, 36, 74, 0.05);
    color: #284066;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    gap: 10px;
    height: 44px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    outline: none;
    padding: 0 18px;
    text-decoration: none;
    transition: all .16s ease;
    -webkit-appearance: none;
}

.sentinel-btn:hover {
    background: #f8fafc;
    border-color: #cbd6e7;
    box-shadow: 0 6px 18px rgba(20, 36, 74, 0.08);
    color: #1f3355;
    transform: translateY(-1px);
}

.sentinel-btn:disabled,
.sentinel-btn.is-disabled {
    box-shadow: none;
    cursor: not-allowed;
    opacity: .58;
    transform: none;
}

.sentinel-btn .bi {
    align-items: center;
    display: inline-flex;
    font-size: 0.9rem;
    justify-content: center;
    line-height: 1;
}

.sentinel-btn-primary {
    background: #2180f3;
    border-color: #2180f3;
    box-shadow: 0 10px 24px rgba(33, 128, 243, 0.24);
    color: #ffffff;
}

.sentinel-btn-primary:hover {
    background: #1773e3;
    border-color: #1773e3;
    box-shadow: 0 14px 28px rgba(33, 128, 243, 0.3);
    color: #ffffff;
}

.sentinel-btn-secondary {
    background: #f5f7fb;
    border-color: #d6deea;
    color: #22324d;
}

.sentinel-btn-secondary:hover {
    background: #eef3f8;
    border-color: #c8d3e2;
    color: #16233b;
}

.sentinel-btn-ghost {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: #587092;
    padding: 0 8px;
}

.sentinel-btn-ghost:hover {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: #1f57cc;
}

.sentinel-btn-icon {
    background: #eef3f8;
    border-color: #e1e8f2;
    border-radius: 999px;
    height: 40px;
    padding: 0;
    width: 40px;
}

.sentinel-btn-icon:hover {
    background: #e6eef8;
}

.sentinel-btn-table {
    min-width: 112px;
}

.sentinel-btn-table .bi {
    color: #5d6f8d;
}

.sentinel-btn-table:hover .bi {
    color: #1f57cc;
}

.sentinel-btn-table .bi,
.sentinel-btn-soft .bi,
.sentinel-btn .bi {
    flex: 0 0 auto;
}

.sentinel-btn:focus-visible,
.sentinel-control-shell:focus-within {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(69, 111, 255, 0.15);
}

.sentinel-btn-soft {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    justify-content: center;
}

.sentinel-btn-soft.is-primary {
    color: #1f57cc;
}

.sentinel-table-pill {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1;
    padding: 9px 14px;
}

.sentinel-table-pill.is-success {
    background: #d9f4e6;
    color: #127245;
}

.sentinel-table-pill.is-warning {
    background: #f9ebbf;
    color: #9b6700;
}

.sentinel-table-pill.is-danger {
    background: #f8dde2;
    color: #bc263e;
}

.sentinel-table-pill.is-info {
    background: #dde9ff;
    color: #2457c7;
}

.sentinel-table-pill.is-neutral {
    background: #edf1f7;
    color: #51607b;
}

.sentinel-kicker {
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sentinel-page-title {
    font-size: clamp(1.8rem, 2vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.sentinel-page-subtitle {
    color: var(--text-soft);
    font-size: 0.98rem;
    max-width: 72ch;
}

.sentinel-stat-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(248,250,255,0.84) 100%);
    border: 1px solid rgba(162, 176, 218, 0.22);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 24px rgba(20, 28, 55, 0.06);
}

.sentinel-stat-label {
    color: #7d87a1;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sentinel-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.sentinel-chip {
    background: rgba(80, 103, 178, 0.08);
    border: 1px solid rgba(116, 132, 185, 0.2);
    border-radius: 999px;
    color: #2f3750;
    font-size: 0.82rem;
    font-weight: 600;
    padding: .45rem .8rem;
}

.sentinel-section-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.sentinel-section-note {
    color: var(--text-soft);
    font-size: 0.86rem;
}

.sentinel-empty {
    background: linear-gradient(180deg, rgba(247,249,255,0.9) 0%, rgba(243,246,255,0.76) 100%);
    border: 1px dashed rgba(128, 142, 185, 0.35);
    border-radius: 16px;
    color: var(--text-soft);
    padding: 1rem 1.1rem;
}

.sentinel-context-strip {
    align-items: center;
    background: rgba(245, 247, 254, 0.88);
    border: 1px solid rgba(138, 149, 196, 0.14);
    border-radius: 16px;
    color: var(--text-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
}

.sentinel-context-label {
    color: #4a546d;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sentinel-context-copy {
    font-size: 0.92rem;
    line-height: 1.45;
}

.sentinel-nav-shell {
    background: #f7f9fc;
    border-right: 1px solid #d9e2ee;
    color: #1f2b42;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 18px 14px 14px;
    position: relative;
}

.sentinel-nav-shell::before {
    background: linear-gradient(180deg, rgba(255,255,255,.8), transparent 18%);
    content: "";
    inset: 0;
    opacity: .5;
    pointer-events: none;
    position: absolute;
}

.sentinel-nav-brand,
.sentinel-nav-scroll,
.sentinel-nav-footer {
    position: relative;
    z-index: 1;
}

.sentinel-nav-brand {
    margin-bottom: 16px;
}

.sentinel-nav-logo {
    align-items: center;
    color: #0f172a;
    display: flex;
    gap: 12px;
    text-decoration: none;
}

.sentinel-nav-logo-mark {
    align-items: center;
    background: linear-gradient(135deg, #2f84ff 0%, #1f6fe6 100%);
    border: 1px solid rgba(28, 96, 192, 0.22);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(44, 78, 202, 0.2);
    color: #fff;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 700;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.sentinel-nav-logo-title {
    color: #111827;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.sentinel-nav-logo-subtitle {
    color: #6b7a95;
    font-size: .74rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sentinel-nav-scroll {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 18px;
    overflow: auto;
    padding-right: 4px;
}

.sentinel-nav-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sentinel-nav-section-label {
    color: #7b8aa5;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: 6px;
    padding: 0 10px;
    text-transform: uppercase;
}

.sentinel-nav-section-note {
    display: none;
}

.sentinel-nav-link {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #2f4266;
    display: flex;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    text-decoration: none;
    transition: all .2s ease;
}

.sentinel-nav-link-button {
    background: transparent;
    text-align: left;
    width: 100%;
}

.sentinel-nav-link-button .sentinel-nav-toggle-caret {
    font-size: .82rem;
    margin-left: auto;
}

.sentinel-nav-link .bi {
    font-size: .95rem;
}

.sentinel-nav-link:hover {
    background: #edf2f9;
    border-color: #dce6f4;
    color: #1f2f48;
}

.sentinel-nav-link.active {
    background: #e2edf9;
    border-color: #cbdcf2;
    box-shadow: none;
    color: #1d4f9f;
}

.sentinel-nav-sublist {
    display: grid;
    gap: 2px;
    margin: -2px 0 4px;
    padding-left: 38px;
}

.sentinel-nav-sublink {
    border-radius: 10px;
    color: #5f7192;
    font-size: 0.9rem;
    min-height: 34px;
    padding: 7px 10px;
    text-decoration: none;
    transition: all .2s ease;
}

.sentinel-nav-sublink:hover {
    background: #edf2f9;
    color: #2f4266;
}

.sentinel-nav-sublink.active {
    background: #e2edf9;
    color: #1d4f9f;
    font-weight: 600;
}

.sentinel-nav-footer {
    margin-top: 16px;
    padding-top: 12px;
}

.sentinel-nav-user-card {
    align-items: center;
    background: #eef3fa;
    border: 1px solid #d9e2ef;
    border-radius: 12px;
    display: grid;
    gap: 10px;
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 10px;
}

.sentinel-nav-avatar {
    align-items: center;
    background: #d9e7f8;
    border-radius: 10px;
    color: #fff;
    display: inline-flex;
    font-weight: 700;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.sentinel-nav-user-name {
    color: #1f2b42;
    font-size: .9rem;
    font-weight: 600;
}

.sentinel-nav-user-role {
    color: #73829d;
    font-size: .76rem;
}

.sentinel-shell {
    display: grid;
    grid-template-columns: 296px minmax(0, 1fr);
    min-height: 100vh;
}

.sentinel-sidebar {
    min-height: 100vh;
    position: relative;
    z-index: 30;
}

.sentinel-main {
    background: #f3f5f9;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sentinel-topbar {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(138, 149, 196, 0.2);
    display: flex;
    justify-content: space-between;
    min-height: 72px;
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.sentinel-topbar-left,
.sentinel-topbar-right {
    min-width: 0;
}

.sentinel-topbar-left {
    flex: 1 1 auto;
}

.sentinel-topbar-right {
    flex-shrink: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.sentinel-topbar-right > * {
    flex-shrink: 0;
}

.sentinel-topbar-search {
    align-items: center;
    background: #eef2f7;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    color: #5c6b85;
    display: inline-flex;
    gap: 10px;
    min-height: 44px;
    min-width: min(520px, 58vw);
    padding: 0 14px;
}

.sentinel-topbar-search input {
    background: transparent;
    border: 0;
    color: #1e2b44;
    flex: 1;
    font-size: 0.98rem;
    outline: none;
}

.sentinel-topbar-search .bi,
.sentinel-topbar-icon .bi {
    display: inline-flex;
    font-size: 1.05rem;
    line-height: 1;
}

.sentinel-topbar-icon {
    align-items: center;
    background: #eff3f9;
    border: 1px solid #dce5f2;
    border-radius: 10px;
    color: #44526b;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.sentinel-topbar-panel-host {
    position: relative;
}

.sentinel-topbar-panel {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(138, 149, 196, 0.18);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    display: grid;
    gap: 8px;
    min-width: 300px;
    padding: 14px;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 40;
}

.sentinel-topbar-panel-head {
    align-items: baseline;
    color: var(--text-soft);
    display: flex;
    justify-content: space-between;
}

.sentinel-topbar-panel-head strong {
    color: var(--text-main);
    font-size: 0.98rem;
}

.sentinel-topbar-panel-head span,
.sentinel-topbar-panel-summary small {
    font-size: 0.82rem;
}

.sentinel-topbar-panel-summary {
    background: #f7f9fd;
    border: 1px solid rgba(138, 149, 196, 0.14);
    border-radius: 14px;
    padding: 12px;
}

.sentinel-settings-password {
    border-top: 1px solid rgba(138, 149, 196, 0.14);
    display: grid;
    gap: 10px;
    margin-top: 2px;
    padding-top: 12px;
}

.sentinel-settings-password-head {
    display: grid;
    gap: 2px;
}

.sentinel-settings-password-head small {
    color: var(--text-soft);
    font-size: 0.78rem;
}

.sentinel-settings-password-actions {
    display: flex;
    gap: 10px;
}

.sentinel-topbar-panel-item {
    align-items: center;
    background: #f7f9fd;
    border: 1px solid rgba(138, 149, 196, 0.14);
    border-radius: 14px;
    color: inherit;
    display: grid;
    gap: 12px;
    grid-template-columns: 20px 1fr;
    padding: 12px;
    text-align: left;
    width: 100%;
}

.sentinel-topbar-panel-item strong {
    display: block;
    font-size: 0.93rem;
}

.sentinel-topbar-panel-item small {
    color: var(--text-soft);
    display: block;
}

.sentinel-logout-btn {
    min-height: 40px;
    padding: 8px 14px;
}

.sentinel-layout-content {
    flex: 1;
    min-height: calc(100vh - 80px);
    overflow: auto;
    padding: 24px;
}

.sentinel-page-shell {
    margin: 0 auto;
    max-width: 1440px;
}

.sentinel-role-badge {
    border: 1px solid rgba(111, 127, 162, 0.25);
    font-size: .82rem;
    font-weight: 700;
    padding: 8px 12px;
}

.sentinel-menu-toggle {
    align-items: center;
    background: rgba(27, 31, 53, 0.04);
    border: 1px solid rgba(94, 108, 156, 0.16);
    border-radius: 14px;
    display: none;
    flex-direction: column;
    gap: 4px;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.sentinel-menu-toggle span {
    background: #2c3555;
    border-radius: 999px;
    display: block;
    height: 2px;
    width: 16px;
}

.sentinel-mobile-overlay {
    display: none;
}

.form-control,
.form-select {
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(148, 161, 200, 0.24);
    border-radius: 14px;
    min-height: 44px;
}

.table {
    --bs-table-bg: transparent;
}

.organization-shell {
    display: grid;
    gap: var(--space-3);
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.95fr);
}

.organization-main,
.organization-sidebar {
    min-width: 0;
}

.organization-sidebar-stack,
.organization-sections,
.organization-stack {
    display: grid;
    gap: var(--space-3);
}

.organization-block {
    margin-bottom: var(--space-3);
}

.organization-header {
    align-items: end;
    display: grid;
    gap: var(--space-3);
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
}

.organization-header-copy {
    min-width: 0;
}

.organization-header-title {
    font-size: clamp(1.7rem, 2vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 6px 0 0;
}

.organization-header-note {
    color: var(--text-soft);
    margin: 10px 0 0;
    max-width: 60ch;
}

.organization-header-filter {
    min-width: 0;
}

.organization-top-grid {
    display: grid;
    gap: var(--space-3);
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
}

.organization-context-banner,
.organization-workbench,
.organization-map-card,
.organization-audit-surface {
    padding: var(--space-3);
}

.organization-context-banner {
    display: grid;
    gap: var(--space-2);
}

.organization-context-grid {
    align-items: end;
    display: grid;
    gap: var(--space-2);
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
}

.organization-context-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 4px;
}

.organization-context-note {
    color: var(--text-soft);
    margin-top: 8px;
    max-width: 72ch;
}

.organization-context-stat {
    background: rgba(69, 111, 255, 0.06);
    border: 1px solid rgba(69, 111, 255, 0.14);
    border-radius: var(--radius-md);
    display: grid;
    gap: 4px;
    min-height: 52px;
    padding: var(--space-2);
}

.organization-context-stat-label {
    color: var(--text-soft);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.organization-progress {
    display: grid;
    gap: var(--space-2);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.organization-progress-step {
    align-items: start;
    background: rgba(255,255,255,0.76);
    border: 1px solid rgba(138, 149, 196, 0.16);
    border-radius: var(--radius-md);
    display: grid;
    gap: var(--space-2);
    grid-template-columns: auto minmax(0, 1fr);
    padding: var(--space-2);
}

.organization-progress-step.is-current {
    border-color: rgba(69, 111, 255, 0.24);
    box-shadow: 0 10px 24px rgba(69, 111, 255, 0.08);
}

.organization-progress-step.is-complete .organization-progress-index {
    background: linear-gradient(135deg, #365de3 0%, #5b45f5 100%);
    color: #fff;
}

.organization-progress-index {
    align-items: center;
    background: rgba(69, 111, 255, 0.08);
    border: 1px solid rgba(69, 111, 255, 0.14);
    border-radius: 14px;
    color: var(--brand);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.organization-progress-copy {
    min-width: 0;
}

.organization-progress-title,
.organization-workbench-title {
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.organization-progress-note,
.organization-progress-status,
.organization-workbench-note,
.organization-inline-note {
    color: var(--text-soft);
}

.organization-progress-note {
    font-size: 0.88rem;
    margin-top: 4px;
}

.organization-progress-status {
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 8px;
}

.organization-workbench {
    overflow: hidden;
}

.organization-workbench.is-locked {
    background: linear-gradient(180deg, rgba(250, 251, 255, 0.96) 0%, rgba(244, 246, 252, 0.9) 100%);
    box-shadow: none;
}

.organization-workbench-head {
    display: flex;
    gap: var(--space-2);
    justify-content: space-between;
}

.organization-workbench-copy {
    min-width: 0;
}

.organization-workbench-note {
    margin-top: 8px;
    max-width: 72ch;
}

.organization-workbench-body {
    display: grid;
    gap: var(--space-3);
    margin-top: var(--space-3);
}

.organization-step-gate {
    background: rgba(255,255,255,0.72);
    border: 1px dashed rgba(138, 149, 196, 0.28);
    border-radius: var(--radius-md);
    display: grid;
    gap: 10px;
    padding: var(--space-3);
}

.organization-step-gate-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.organization-step-gate-reason {
    color: var(--text-soft);
    font-size: 0.92rem;
    max-width: 58ch;
}

.organization-step-gate-action {
    align-items: center;
    background: rgba(69, 111, 255, 0.07);
    border: 1px solid rgba(69, 111, 255, 0.14);
    border-radius: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
}

.organization-step-gate-action span {
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.organization-form-grid,
.organization-coordinates,
.organization-map-meta,
.organization-map-coordinates {
    display: grid;
    gap: var(--space-2);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.organization-action-row,
.organization-inline-actions {
    display: flex;
    flex-wrap: wrap;
}

.organization-action-row {
    align-items: center;
    gap: var(--space-2);
}

.organization-advanced {
    border-top: 1px solid rgba(138, 149, 196, 0.12);
    margin-top: var(--space-2);
    padding-top: var(--space-2);
}

.organization-advanced summary {
    color: var(--text-soft);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}

.organization-inline-actions {
    gap: var(--space-1);
}

.organization-list,
.organization-quick-sites,
.organization-audit-feed {
    display: grid;
    gap: var(--space-2);
}

.organization-list-item {
    align-items: center;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(138, 149, 196, 0.16);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    gap: var(--space-2);
    justify-content: space-between;
    padding: var(--space-2);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.organization-list-item--active,
.organization-list-item:hover {
    border-color: rgba(69, 111, 255, 0.28);
    box-shadow: 0 16px 36px rgba(69, 111, 255, 0.08);
    transform: translateY(-1px);
}

.organization-list-copy,
.organization-inline-edit,
.organization-inline-edit--stacked {
    min-width: 0;
    width: 100%;
}

.organization-inline-edit {
    display: grid;
    gap: var(--space-2);
}

.organization-list-title,
.organization-audit-entry-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.organization-list-meta,
.organization-audit-entry-meta,
.organization-audit-entry-time {
    color: var(--text-soft);
    font-size: 0.85rem;
}

.organization-list-meta,
.organization-audit-entry-meta {
    margin-top: 4px;
}

.organization-map-card {
    display: grid;
    gap: var(--space-3);
    position: sticky;
    top: 88px;
}

.organization-selected-card,
.organization-selected-form {
    display: grid;
    gap: var(--space-2);
}

.organization-selected-card {
    padding: var(--space-2);
}

.organization-selected-empty {
    background: rgba(255,255,255,0.55);
    border: 1px dashed rgba(138, 149, 196, 0.3);
    border-radius: var(--radius-md);
    color: var(--text-soft);
    font-size: 0.92rem;
    padding: var(--space-2);
}

.organization-map-meta-value {
    font-size: 0.95rem;
    font-weight: 700;
}

.organization-map-meta-label {
    color: var(--text-soft);
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.organization-map-coordinates strong {
    display: block;
    font-size: 1rem;
    margin-top: 2px;
}

.organization-map-focuses {
    display: grid;
    gap: var(--space-2);
}

.organization-quick-site {
    align-items: flex-start;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(138, 149, 196, 0.16);
    border-radius: 16px;
    color: var(--text-strong);
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    text-align: left;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    width: 100%;
}

.organization-quick-site small {
    color: var(--text-soft);
}

.organization-quick-site--active,
.organization-quick-site:hover {
    border-color: rgba(69, 111, 255, 0.28);
    box-shadow: 0 16px 36px rgba(69, 111, 255, 0.08);
    transform: translateY(-1px);
}

.organization-audit-surface {
    display: grid;
}

.organization-audit-toggle {
    padding: var(--space-2);
}

.organization-audit-toggle[open] {
    box-shadow: 0 18px 42px rgba(32, 49, 116, 0.12);
}

.organization-audit-toggle-summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: var(--space-2);
    justify-content: space-between;
    list-style: none;
}

.organization-audit-toggle-summary::-webkit-details-marker {
    display: none;
}

.organization-audit-toggle-summary strong {
    display: block;
    font-size: 1rem;
    line-height: 1.2;
}

.organization-audit-toggle-count {
    align-items: center;
    background: rgba(69, 111, 255, 0.08);
    border: 1px solid rgba(69, 111, 255, 0.14);
    border-radius: 999px;
    color: var(--brand);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    min-height: 32px;
    padding: 0 12px;
}

.organization-audit-toggle-body {
    margin-top: var(--space-2);
}

.organization-audit-entry {
    align-items: start;
    display: grid;
    gap: var(--space-2);
    grid-template-columns: 8px minmax(0, 1fr) auto;
}

.organization-audit-entry-rail {
    background: linear-gradient(180deg, rgba(69, 111, 255, 0.9) 0%, rgba(107, 86, 255, 0.3) 100%);
    border-radius: 999px;
    min-height: 100%;
}

.organization-audit-entry-body {
    min-width: 0;
}

.dashboard-shell {
    display: grid;
    gap: var(--space-3);
}

.dashboard-block {
    margin-bottom: var(--space-2);
}

.dashboard-loading {
    margin-top: var(--space-5);
    padding-bottom: var(--space-5);
    padding-top: var(--space-5);
}

.dashboard-hero-panel,
.dashboard-feed-surface,
.dashboard-attention-surface {
    padding: var(--space-3);
}

.dashboard-hero-panel {
    align-items: stretch;
    background:
        radial-gradient(circle at top right, rgba(103, 123, 255, 0.08), transparent 18%),
        linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(247,249,255,0.92) 100%);
    display: grid;
    gap: var(--space-3);
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
}

.dashboard-hero-main,
.dashboard-health-panel,
.dashboard-column-main,
.dashboard-column-side,
.dashboard-feed-surface,
.dashboard-attention-surface {
    min-width: 0;
}

.dashboard-hero-title {
    font-size: clamp(2rem, 2.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 8px 0 0;
}

.dashboard-hero-subtitle {
    color: var(--text-soft);
    font-size: 1rem;
    margin: var(--space-2) 0 0;
    max-width: 62ch;
}

.dashboard-hero-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    margin-top: var(--space-3);
}

.dashboard-role-badge,
.dashboard-summary-chip,
.dashboard-attention-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    padding: 10px 14px;
}

.dashboard-role-badge {
    border: 1px solid rgba(90, 104, 150, 0.18);
}

.dashboard-role-badge.is-critical,
.dashboard-attention-badge.is-critical {
    background: rgba(220, 53, 69, 0.12);
    color: #a11d2f;
}

.dashboard-role-badge.is-primary,
.dashboard-attention-badge.is-primary {
    background: rgba(69, 111, 255, 0.12);
    color: #2f4dc9;
}

.dashboard-role-badge.is-info,
.dashboard-attention-badge.is-info {
    background: rgba(13, 202, 240, 0.14);
    color: #0b6f85;
}

.dashboard-role-badge.is-neutral,
.dashboard-attention-badge.is-neutral {
    background: rgba(109, 117, 141, 0.12);
    color: #4a546d;
}

.dashboard-role-badge.is-warning,
.dashboard-attention-badge.is-warning {
    background: rgba(255, 193, 7, 0.18);
    color: #8a6300;
}

.dashboard-role-badge.is-positive,
.dashboard-attention-badge.is-positive {
    background: rgba(25, 135, 84, 0.14);
    color: #156b46;
}

.dashboard-summary-chip {
    background: rgba(255,255,255,0.66);
    border: 1px solid rgba(116, 132, 185, 0.18);
    color: #2f3750;
}

.dashboard-health-panel {
    background: rgba(20, 28, 55, 0.94);
    border-radius: 20px;
    color: #eef2ff;
    display: grid;
    gap: var(--space-2);
    overflow: hidden;
    padding: var(--space-3);
    position: relative;
}

.dashboard-health-panel::before {
    background:
        radial-gradient(circle at top right, rgba(89, 123, 255, 0.28), transparent 24%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.dashboard-health-label,
.dashboard-health-title,
.dashboard-health-note {
    position: relative;
    z-index: 1;
}

.dashboard-health-label {
    color: rgba(233, 238, 255, 0.7);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-health-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.dashboard-health-note {
    color: rgba(227, 234, 255, 0.76);
    font-size: 0.9rem;
    max-width: 34ch;
}

.dashboard-kpi-grid {
    display: grid;
    gap: var(--space-2);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-kpi-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(248,250,255,0.82) 100%);
    border: 1px solid rgba(162, 176, 218, 0.22);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px rgba(20, 28, 55, 0.05);
    display: grid;
    gap: 12px;
    min-height: 156px;
    padding: var(--space-2);
}

.dashboard-kpi-card-head {
    align-items: center;
    display: flex;
    gap: var(--space-2);
    justify-content: space-between;
}

.dashboard-kpi-label {
    color: #7d87a1;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-kpi-dot {
    border-radius: 999px;
    display: inline-flex;
    height: 12px;
    width: 12px;
}

.dashboard-kpi-dot.is-primary {
    background: var(--brand);
}

.dashboard-kpi-dot.is-secondary {
    background: var(--brand-2);
}

.dashboard-kpi-dot.is-info {
    background: #2dbfd6;
}

.dashboard-kpi-dot.is-neutral {
    background: #99a3bf;
}

.dashboard-kpi-value {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
}

.dashboard-kpi-note,
.dashboard-activity-meta,
.dashboard-activity-time,
.dashboard-attention-message,
.dashboard-rule-copy {
    color: var(--text-soft);
}

.dashboard-kpi-note {
    font-size: 0.92rem;
    max-width: 32ch;
}

.dashboard-content-grid {
    display: grid;
    gap: var(--space-3);
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.dashboard-column-main,
.dashboard-column-side {
    display: grid;
    gap: var(--space-2);
}

.dashboard-overview-surface {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.dashboard-overview-head {
    align-items: start;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.dashboard-overview-kicker {
    color: var(--brand);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.dashboard-overview-head h2 {
    color: var(--text-strong);
    font-size: 1.1rem;
    line-height: 1.2;
    margin: 0;
}

.dashboard-overview-head p {
    color: var(--text-soft);
    font-size: 0.98rem;
    line-height: 1.5;
    margin: 0;
    padding-top: 2px;
}

.dashboard-overview-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-overview-card {
    background: rgba(247, 249, 253, 0.88);
    border: 1px solid rgba(138, 149, 196, 0.14);
    border-radius: 18px;
    display: grid;
    gap: 4px;
    padding: 18px;
}

.dashboard-overview-label {
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-overview-card strong {
    color: var(--text-strong);
    font-size: 2rem;
    line-height: 1;
}

.dashboard-overview-card small {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.dashboard-highlights-surface {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.dashboard-highlights-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-highlight-card {
    background: rgba(247, 249, 253, 0.88);
    border: 1px solid rgba(138, 149, 196, 0.14);
    border-radius: 18px;
    display: grid;
    gap: 4px;
    padding: 18px;
}

.dashboard-highlight-card strong {
    color: var(--text-main);
    font-size: 2rem;
    line-height: 1;
}

.dashboard-highlight-label {
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-highlight-card small {
    color: var(--text-soft);
}

.dashboard-activity-feed,
.dashboard-attention-list {
    display: grid;
    gap: var(--space-2);
}

.dashboard-activity-item {
    align-items: start;
    display: grid;
    gap: var(--space-2);
    grid-template-columns: 12px minmax(0, 1fr) auto;
}

.dashboard-activity-marker {
    border-radius: 999px;
    min-height: 100%;
}

.dashboard-activity-marker.is-warning {
    background: linear-gradient(180deg, rgba(255, 193, 7, 0.9) 0%, rgba(255, 157, 0, 0.48) 100%);
}

.dashboard-activity-marker.is-critical {
    background: linear-gradient(180deg, rgba(220, 53, 69, 0.9) 0%, rgba(220, 53, 69, 0.36) 100%);
}

.dashboard-activity-marker.is-neutral {
    background: linear-gradient(180deg, rgba(138, 149, 196, 0.9) 0%, rgba(138, 149, 196, 0.3) 100%);
}

.dashboard-activity-title,
.dashboard-attention-title {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
}

.dashboard-attention-item {
    background: rgba(255,255,255,0.58);
    border: 1px solid rgba(138, 149, 196, 0.14);
    border-radius: var(--radius-md);
    padding: var(--space-2);
}

.dashboard-attention-row {
    align-items: center;
    display: flex;
    gap: var(--space-2);
    justify-content: space-between;
}

.dashboard-attention-message {
    font-size: 0.9rem;
    margin-top: 10px;
}

@media (max-width: 1199.98px) {
    .organization-shell {
        grid-template-columns: 1fr;
    }

    .organization-map-card {
        position: static;
        top: auto;
    }

    .organization-top-grid,
    .dashboard-hero-panel,
    .dashboard-content-grid,
    .dashboard-overview-head,
    .dashboard-overview-grid,
    .timesheets-hero-panel,
    .timesheets-detail-grid,
    .timesheets-report-layout {
        grid-template-columns: 1fr;
    }

    .timesheets-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-map-placeholder {
        min-height: 320px;
    }
}

@media (max-width: 991.98px) {
    .organization-progress,
    .organization-context-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-kpi-grid,
    .timesheets-preview-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .organization-form-grid,
    .organization-coordinates,
    .organization-map-meta,
    .organization-map-coordinates {
        grid-template-columns: 1fr;
    }

    .organization-list-item,
    .organization-audit-entry,
    .organization-workbench-head {
        align-items: flex-start;
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .organization-progress-step {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dashboard-activity-item,
    .dashboard-attention-row {
        align-items: flex-start;
        grid-template-columns: 12px minmax(0, 1fr);
    }

    .dashboard-activity-time {
        grid-column: 2;
    }

.dashboard-hero-title {
        line-height: 1.05;
    }
}

.timesheets-page {
    --timesheets-accent: #3159de;
    --timesheets-accent-soft: rgba(69, 111, 255, 0.12);
    --timesheets-danger-soft: rgba(220, 53, 69, 0.12);
    --timesheets-warning-soft: rgba(255, 193, 7, 0.16);
    --timesheets-info-soft: rgba(13, 202, 240, 0.12);
    --timesheets-ink: #1d2438;
    display: grid;
    gap: var(--space-3);
}

.timesheets-block {
    margin-bottom: var(--space-3);
}

.timesheets-hero-panel,
.timesheets-filter-surface,
.timesheets-policy-surface,
.timesheets-warning-surface,
.timesheets-table-surface,
.timesheets-detail-surface {
    padding: var(--space-3);
}

.timesheets-hero-panel {
    align-items: stretch;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(248,250,255,0.9) 100%);
    display: grid;
    gap: var(--space-2);
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.72fr);
}

.timesheets-hero-main,
.timesheets-hero-actions,
.timesheets-detail-aside,
.timesheets-filter-surface,
.timesheets-table-surface {
    min-width: 0;
}

.timesheets-hero-title {
    font-size: clamp(1.7rem, 2vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 8px 0 0;
}

.timesheets-hero-subtitle {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin: 10px 0 0;
    max-width: 56ch;
}

.timesheets-hero-chip-row,
.timesheets-hero-action-row,
.timesheets-context-chips,
.timesheets-policy-flags,
.timesheets-legend-row {
    display: flex;
    flex-wrap: wrap;
}

.timesheets-hero-chip-row,
.timesheets-context-chips,
.timesheets-policy-flags {
    gap: var(--space-1);
}

.timesheets-hero-action-row,
.timesheets-legend-row {
    gap: var(--space-2);
}

.timesheets-hero-chip,
.timesheets-context-chip,
.timesheets-policy-flag,
.timesheets-role-pill {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    padding: 10px 14px;
}

.timesheets-hero-chip,
.timesheets-context-chip,
.timesheets-policy-flag {
    background: rgba(255,255,255,0.74);
    border: 1px solid rgba(116, 132, 185, 0.18);
    color: var(--timesheets-ink);
}

.timesheets-context-chip.is-primary {
    background: var(--timesheets-accent-soft);
    border-color: rgba(69, 111, 255, 0.2);
    color: #2748bf;
}

.timesheets-role-pill {
    background: rgba(138, 149, 196, 0.12);
    border: 1px solid rgba(138, 149, 196, 0.18);
    color: #49506a;
}

.timesheets-hero-actions {
    background: rgba(247, 249, 255, 0.94);
    border: 1px solid rgba(138, 149, 196, 0.16);
    border-radius: 18px;
    color: var(--timesheets-ink);
    display: grid;
    gap: var(--space-2);
    padding: var(--space-2);
}

.timesheets-hero-health-label,
.timesheets-hero-health-title,
.timesheets-hero-health-note,
.timesheets-hero-action-row {
    position: relative;
    z-index: 1;
}

.timesheets-hero-health-label {
    color: #6b738d;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.timesheets-hero-health-title {
    font-size: 1.32rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.timesheets-hero-health-note {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.timesheets-filter-grid,
.timesheets-policy-edit-grid {
    display: grid;
    gap: var(--space-2);
}

.timesheets-filter-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.timesheets-filter-context {
    border-top: 1px solid rgba(138, 149, 196, 0.12);
    margin-top: var(--space-3);
    padding-top: var(--space-2);
}

.timesheets-policy-toggle {
    border-top: 1px solid rgba(138, 149, 196, 0.12);
    margin-top: var(--space-3);
    padding-top: var(--space-2);
}

.timesheets-policy-toggle-summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    list-style: none;
}

.timesheets-policy-toggle-summary::-webkit-details-marker {
    display: none;
}

.timesheets-policy-toggle-summary strong {
    display: block;
    font-size: 1rem;
    line-height: 1.2;
}

.timesheets-policy-toggle-kicker {
    color: var(--text-soft);
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.timesheets-policy-toggle-note {
    align-items: center;
    background: rgba(69, 111, 255, 0.08);
    border: 1px solid rgba(69, 111, 255, 0.14);
    border-radius: 999px;
    color: var(--timesheets-accent);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    min-height: 32px;
    padding: 0 12px;
    white-space: nowrap;
}

.timesheets-policy-toggle-body {
    margin-top: var(--space-2);
}

.timesheets-policy-edit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: var(--space-3);
}

.timesheets-filter-action {
    align-self: end;
}

.timesheets-context-bar {
    display: grid;
    gap: 10px;
}

.timesheets-context-title,
.timesheets-detail-title {
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.timesheets-context-note,
.timesheets-kpi-note,
.timesheets-warning-meta,
.timesheets-detail-note,
.timesheets-detail-warning-date,
.timesheets-row-note,
.timesheets-row-alert,
.timesheets-rule-copy {
    color: var(--text-soft);
}

.timesheets-context-note,
.timesheets-detail-note {
    margin-top: 6px;
}

.timesheets-kpi-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timesheets-kpi-card {
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(162, 176, 218, 0.16);
    border-radius: 16px;
    display: grid;
    gap: 8px;
    min-height: 0;
    padding: 16px;
}

.timesheets-kpi-card.is-warning {
    border-color: rgba(255, 193, 7, 0.3);
}

.timesheets-kpi-card.is-danger {
    border-color: rgba(220, 53, 69, 0.24);
}

.timesheets-kpi-card.is-primary {
    border-color: rgba(69, 111, 255, 0.24);
}

.timesheets-kpi-card.is-info {
    border-color: rgba(13, 202, 240, 0.24);
}

.timesheets-kpi-label {
    color: #7d87a1;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.timesheets-kpi-value {
    font-size: clamp(1.25rem, 1.6vw, 1.65rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.timesheets-kpi-note {
    font-size: 0.88rem;
}

.timesheets-policy-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}

.timesheets-policy-metric {
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(138, 149, 196, 0.14);
    border-radius: 16px;
    display: grid;
    gap: 4px;
    padding: var(--space-2);
}

.timesheets-policy-metric span {
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.timesheets-policy-metric strong {
    font-size: 1.16rem;
    font-weight: 700;
}

.timesheets-policy-actions {
    margin-top: var(--space-2);
}

.timesheets-policy-body {
    margin-top: var(--space-2);
}

.timesheets-policy-check {
    align-items: center;
    background: rgba(255,255,255,0.66);
    border: 1px solid rgba(138, 149, 196, 0.14);
    border-radius: 16px;
    display: flex;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
}

.timesheets-warning-feed,
.timesheets-detail-warning-list {
    display: grid;
    gap: 10px;
}

.timesheets-warning-item {
    align-items: start;
    display: grid;
    gap: var(--space-2);
    grid-template-columns: 10px minmax(0, 1fr);
}

.timesheets-warning-rail {
    background: linear-gradient(180deg, rgba(255, 193, 7, 0.94) 0%, rgba(255, 157, 0, 0.44) 100%);
    border-radius: 999px;
    min-height: 100%;
}

.timesheets-warning-title,
.timesheets-detail-warning-message {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.timesheets-warning-meta {
    font-size: 0.82rem;
    margin-top: 4px;
}

.timesheets-loading-state {
    padding-bottom: var(--space-5);
    padding-top: var(--space-5);
}

.timesheets-table-surface {
    overflow: hidden;
    padding: 0;
}

.timesheets-report-layout {
    align-items: start;
    display: grid;
    gap: var(--space-3);
    grid-template-columns: minmax(0, 1fr);
}

.timesheets-table-head {
    border-bottom: 1px solid rgba(138, 149, 196, 0.16);
    padding: 20px 24px;
}

.timesheets-table-head-row {
    align-items: center;
    display: flex;
    gap: var(--space-2);
    justify-content: space-between;
}

.timesheets-legend {
    align-items: center;
    color: #6c757d;
    display: inline-flex;
    gap: 8px;
}

.timesheets-status-dot {
    border-radius: 999px;
    display: inline-flex;
    height: 10px;
    width: 10px;
}

.timesheets-status-dot.is-success {
    background: #198754;
}

.timesheets-status-dot.is-warning {
    background: #ffc107;
}

.timesheets-status-dot.is-danger {
    background: #dc3545;
}

.timesheets-table thead th,
.timesheets-detail-table thead th {
    background: #f5f7fe;
    border-bottom: 1px solid rgba(138, 149, 196, 0.14);
    color: #5d6783;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.timesheets-table tbody td,
.timesheets-detail-table tbody td {
    border-color: rgba(138, 149, 196, 0.12);
    padding-bottom: 14px;
    padding-top: 14px;
}

.timesheets-row-selected td {
    background: rgba(69, 111, 255, 0.06) !important;
}

.timesheets-row-alert {
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 6px;
}

.timesheets-row-note {
    font-size: 0.82rem;
    line-height: 1.5;
    margin-top: 6px;
    max-width: 28rem;
}

.timesheets-net-balance {
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.timesheets-net-balance.is-positive {
    color: #1d6f42;
}

.timesheets-net-balance.is-negative {
    color: #b64747;
}

.timesheets-detail-surface {
    display: grid;
    gap: var(--space-3);
}

.timesheets-detail-head {
    align-items: center;
    display: flex;
    gap: var(--space-2);
    justify-content: space-between;
}

.timesheets-detail-grid {
    display: grid;
    gap: var(--space-3);
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr);
}

.timesheets-detail-aside {
    background: rgba(250, 251, 255, 0.72);
    border: 1px solid rgba(138, 149, 196, 0.12);
    border-radius: 16px;
    padding: var(--space-2);
}

.timesheets-detail-explanation {
    font-size: 0.88rem;
}

.timesheets-detail-line + .timesheets-detail-line {
    margin-top: 6px;
}

.timesheets-detail-inline-warnings {
    border-top: 1px solid rgba(138, 149, 196, 0.12);
    margin-top: 10px;
    padding-top: 10px;
}

.timesheets-detail-inline-warning {
    color: #9a6a00;
    font-weight: 600;
}

.timesheets-detail-inline-warning + .timesheets-detail-inline-warning {
    margin-top: 6px;
}

.timesheets-detail-warning-item {
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(138, 149, 196, 0.14);
    border-radius: 14px;
    padding: 14px;
}

.timesheets-detail-warning-date {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

@media (max-width: 1199.98px) {
    .timesheets-hero-panel,
    .timesheets-detail-grid,
    .timesheets-report-layout {
        grid-template-columns: 1fr;
    }

    .timesheets-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .timesheets-filter-grid,
    .timesheets-policy-edit-grid,
    .timesheets-policy-grid {
        grid-template-columns: 1fr 1fr;
    }

    .timesheets-table-head-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .timesheets-filter-grid,
    .timesheets-policy-edit-grid,
    .timesheets-policy-grid,
    .timesheets-kpi-grid {
        grid-template-columns: 1fr;
    }
}

.personnel-page,
.reports-page {
    display: grid;
    gap: var(--space-3);
}

.personnel-toolbar,
.reports-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.personnel-modern .personnel-toolbar {
    justify-content: flex-end;
}

.personnel-upload-label {
    overflow: hidden;
    position: relative;
}

.personnel-upload-input {
    cursor: pointer;
    inset: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
}

.personnel-loading,
.reports-loading {
    padding-bottom: var(--space-5);
    padding-top: var(--space-5);
}

.personnel-filter-surface {
    overflow: hidden;
    padding: 24px;
}

.personnel-filter-grid {
    align-items: end;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(160px, 0.8fr)) auto;
}

.personnel-filter-item {
    min-width: 0;
}

.personnel-filter-label {
    color: #6b7690;
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.personnel-filter-actions {
    display: flex;
    justify-content: flex-end;
}

.personnel-table-surface,
.reports-filter-surface,
.reports-table-surface {
    overflow: hidden;
    padding: 0;
}

.reports-table-head,
.reports-filter-surface {
    padding: 24px;
}

.personnel-table thead th,
.reports-table thead th {
    background: #f5f7fe;
    border-bottom: 1px solid rgba(138, 149, 196, 0.14);
    color: #5d6783;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.personnel-table tbody td,
.reports-table tbody td {
    border-color: rgba(138, 149, 196, 0.12);
    padding-bottom: 18px;
    padding-top: 18px;
}

.personnel-user-name,
.reports-person {
    font-weight: 700;
}

.personnel-person-cell {
    align-items: center;
    display: flex;
    gap: 12px;
}

.personnel-avatar {
    align-items: center;
    background: #eaf0ff;
    border: 1px solid #d3deff;
    border-radius: 999px;
    color: #2f4dc9;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 700;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.personnel-user-id,
.personnel-tcno,
.personnel-device-id,
.reports-time {
    color: var(--text-soft);
    font-size: 0.88rem;
}

.personnel-modern-table .personnel-project,
.personnel-modern-table .personnel-time {
    color: #4c566f;
    font-size: 0.9rem;
}

.personnel-role-pill,
.personnel-device-pill,
.reports-status-pill,
.reports-total-chip {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    padding: 10px 14px;
}

.personnel-role-pill {
    border: 1px solid rgba(138, 149, 196, 0.16);
}

.personnel-role-pill.is-critical {
    background: rgba(220, 53, 69, 0.12);
    color: #a11d2f;
}

.personnel-role-pill.is-primary {
    background: rgba(69, 111, 255, 0.12);
    color: #2f4dc9;
}

.personnel-role-pill.is-info {
    background: rgba(13, 202, 240, 0.14);
    color: #0b6f85;
}

.personnel-role-pill.is-neutral {
    background: rgba(109, 117, 141, 0.12);
    color: #4a546d;
}

.personnel-role-pill.is-warning {
    background: rgba(255, 193, 7, 0.18);
    color: #8a6300;
}

.personnel-device-status {
    align-items: center;
    color: #4a546d;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 8px;
}

.personnel-dot {
    background: #9aa5bf;
    border-radius: 999px;
    height: 8px;
    width: 8px;
}

.personnel-device-status.is-online .personnel-dot {
    background: #24b25f;
}

.personnel-device-status.is-offline .personnel-dot {
    background: #b7c0d3;
}

.personnel-state-pill {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 8px 12px;
}

.personnel-state-pill.is-active {
    background: rgba(25, 135, 84, 0.16);
    color: #176b47;
}

.personnel-state-pill.is-passive {
    background: rgba(108, 117, 141, 0.16);
    color: #4f5870;
}

.personnel-device-cell {
    display: grid;
    gap: 6px;
}

.personnel-device-pill.is-linked,
.reports-status-pill.is-success {
    background: rgba(25, 135, 84, 0.14);
    color: #156b46;
}

.personnel-device-pill.is-pending,
.reports-status-pill.is-warning {
    background: rgba(255, 193, 7, 0.18);
    color: #8a6300;
}

.personnel-row-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.btn.btn-icon {
    align-items: center;
    background: #f2f5fb;
    border: 1px solid #dbe2f3;
    border-radius: 10px;
    color: #3c4761;
    display: inline-flex;
    font-size: 0.92rem;
    height: 34px;
    justify-content: center;
    min-width: 34px;
    padding: 0 8px;
}

.btn.btn-icon:hover {
    background: #e9eefb;
    border-color: #c9d5f0;
}

.btn.btn-icon.is-danger {
    color: #c53b4a;
}

.btn.btn-icon.is-info {
    color: #2f4dc9;
}

.btn.btn-icon.has-tooltip {
    position: relative;
}

.btn.btn-icon.has-tooltip::after {
    background: #111827;
    border-radius: 8px;
    color: #fff;
    content: attr(data-tooltip);
    font-size: 0.75rem;
    font-weight: 600;
    left: 50%;
    line-height: 1.2;
    opacity: 0;
    padding: 6px 8px;
    pointer-events: none;
    position: absolute;
    top: calc(100% + 8px);
    transform: translateX(-50%);
    transition: opacity 0.12s ease;
    white-space: nowrap;
    z-index: 20;
}

.btn.btn-icon.has-tooltip:hover::after,
.btn.btn-icon.has-tooltip:focus-visible::after {
    opacity: 1;
}

.personnel-table-footer {
    border-top: 1px solid rgba(138, 149, 196, 0.12);
    color: #68738d;
    font-size: 0.9rem;
    padding: 14px 20px;
}

.regions-page {
    display: grid;
    gap: var(--space-3);
}

.regions-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.regions-filter-surface {
    overflow: visible;
    padding: 24px;
    position: relative;
    z-index: 20;
}

.regions-filter-grid {
    align-items: end;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(260px, 1.5fr) repeat(2, minmax(180px, 0.9fr)) auto;
}

.regions-filter-label {
    color: #6b7690;
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.regions-filter-actions {
    display: flex;
    justify-content: flex-end;
}

.regions-table-surface {
    overflow: hidden;
    padding: 0;
    position: relative;
    z-index: 1;
}

.regions-table thead th {
    background: #f5f7fe;
    border-bottom: 1px solid rgba(138, 149, 196, 0.14);
    color: #5d6783;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.regions-table tbody td {
    border-color: rgba(138, 149, 196, 0.12);
    padding-bottom: 18px;
    padding-top: 18px;
}

.regions-name {
    font-size: 1.05rem;
    font-weight: 700;
}

.regions-meta,
.regions-description {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.regions-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 8px 12px;
}

.regions-status.is-active {
    background: rgba(25, 135, 84, 0.16);
    color: #176b47;
}

.regions-status.is-passive {
    background: rgba(108, 117, 141, 0.16);
    color: #4f5870;
}

.regions-actions {
    display: inline-flex;
    gap: 8px;
    justify-content: flex-end;
}

.regions-table-footer {
    align-items: center;
    border-top: 1px solid rgba(138, 149, 196, 0.12);
    color: #68738d;
    display: flex;
    font-size: 0.9rem;
    gap: 12px;
    justify-content: space-between;
    padding: 14px 20px;
}

.regions-pagination {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.projects-page,
.qr-create-page {
    display: grid;
    gap: var(--space-3);
}

.projects-toolbar,
.qr-create-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.projects-filter-surface {
    overflow: visible;
    padding: 24px;
    position: relative;
    z-index: 20;
}

.projects-filter-grid {
    align-items: end;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(180px, 0.8fr)) auto;
}

.projects-filter-label {
    color: #6b7690;
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.projects-filter-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.projects-table-surface {
    overflow: hidden;
    padding: 0;
    position: relative;
    z-index: 1;
}

.projects-table thead th {
    background: #f5f7fe;
    border-bottom: 1px solid rgba(138, 149, 196, 0.14);
    color: #5d6783;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.projects-table tbody td {
    border-color: rgba(138, 149, 196, 0.12);
    padding-bottom: 18px;
    padding-top: 18px;
}

.projects-name {
    font-size: 1.02rem;
    font-weight: 700;
}

.projects-meta {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.projects-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 8px 12px;
}

.projects-status.is-active {
    background: rgba(25, 135, 84, 0.16);
    color: #176b47;
}

.projects-actions {
    display: inline-flex;
    gap: 8px;
}

.projects-table-footer {
    align-items: center;
    border-top: 1px solid rgba(138, 149, 196, 0.12);
    color: #68738d;
    display: flex;
    font-size: 0.9rem;
    gap: 12px;
    justify-content: space-between;
    padding: 14px 20px;
}

.projects-pagination {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.staffing-page {
    display: grid;
    gap: var(--space-3);
}

.staffing-hero-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.staffing-summary-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.staffing-summary-card {
    display: grid;
    gap: 6px;
    padding: 22px;
}

.staffing-summary-card strong {
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.staffing-summary-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.staffing-summary-card small {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.staffing-summary-card.is-brand {
    border-color: rgba(69, 111, 255, 0.16);
}

.staffing-summary-card.is-success {
    border-color: rgba(25, 135, 84, 0.18);
}

.staffing-summary-card.is-warning {
    border-color: rgba(245, 158, 11, 0.18);
}

.staffing-summary-card.is-neutral {
    border-color: rgba(108, 117, 141, 0.16);
}

.staffing-filter-surface,
.staffing-templates-surface,
.staffing-assignments-surface {
    padding: 24px;
}

.staffing-filter-surface {
    overflow: visible;
    position: relative;
    z-index: 20;
}

.staffing-filter-grid {
    align-items: end;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(170px, 1fr)) minmax(220px, 1.3fr) repeat(2, minmax(160px, 0.9fr)) auto;
}

.staffing-filter-search {
    min-width: 0;
}

.staffing-filter-actions {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.staffing-section-head {
    align-items: start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.staffing-section-meta {
    align-items: start;
    display: grid;
    gap: 10px;
}

.staffing-inline-badge {
    align-items: center;
    background: rgba(69, 111, 255, 0.08);
    border: 1px solid rgba(69, 111, 255, 0.14);
    border-radius: 999px;
    color: #3558d4;
    display: inline-flex;
    font-size: .8rem;
    font-weight: 800;
    line-height: 1;
    padding: 8px 12px;
    width: fit-content;
}

.staffing-template-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.staffing-template-card {
    background: rgba(248, 250, 255, 0.9);
    border: 1px solid rgba(138, 149, 196, 0.14);
    border-radius: 20px;
    display: grid;
    gap: 16px;
    padding: 18px;
}

.staffing-template-card-head {
    align-items: start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.staffing-template-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0;
}

.staffing-template-time {
    color: var(--text-soft);
    font-size: 0.94rem;
    margin-top: 4px;
}

.staffing-template-actions,
.staffing-row-actions {
    display: inline-flex;
    gap: 8px;
}

.staffing-template-days {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.staffing-day-pill {
    background: rgba(69, 111, 255, 0.08);
    border: 1px solid rgba(69, 111, 255, 0.12);
    border-radius: 999px;
    color: #2f52c9;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 12px;
}

.staffing-table th {
    background: #f5f7fe;
    border-bottom: 1px solid rgba(138, 149, 196, 0.14);
    color: #5d6783;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.staffing-table tbody td {
    border-color: rgba(138, 149, 196, 0.12);
    padding-bottom: 18px;
    padding-top: 18px;
}

.staffing-person-name,
.staffing-site-name {
    font-size: 1rem;
    font-weight: 700;
}

.staffing-person-meta {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.staffing-role-pill,
.staffing-state-pill {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 8px 12px;
}

.staffing-role-pill.is-primary {
    background: rgba(69, 111, 255, 0.12);
    color: #3053cd;
}

.staffing-role-pill.is-info {
    background: rgba(14, 165, 233, 0.12);
    color: #0d7490;
}

.staffing-role-pill.is-neutral {
    background: rgba(108, 117, 141, 0.14);
    color: #4f5870;
}

.staffing-role-pill.is-warning {
    background: rgba(245, 158, 11, 0.14);
    color: #a16207;
}

.staffing-role-pill.is-critical {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

.staffing-state-pill.is-success {
    background: rgba(25, 135, 84, 0.14);
    color: #176b47;
}

.staffing-state-pill.is-warning {
    background: rgba(245, 158, 11, 0.16);
    color: #9a6700;
}

.staffing-state-pill.is-neutral {
    background: rgba(108, 117, 141, 0.16);
    color: #4f5870;
}

.staffing-table-footer {
    border-top: 1px solid rgba(138, 149, 196, 0.12);
    color: #68738d;
    font-size: 0.9rem;
    padding-top: 14px;
}

.staffing-loading {
    align-items: center;
    color: var(--text-soft);
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    min-height: 180px;
}

.staffing-modal-shell {
    max-width: 640px;
    width: min(100%, 640px);
}

.staffing-day-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.staffing-search-note {
    color: var(--text-soft);
    font-size: 0.82rem;
    margin-top: 6px;
}

.staffing-assignment-pick-grid {
    align-items: start;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}

.staffing-day-button {
    background: #f7f9ff;
    border: 1px solid rgba(138, 149, 196, 0.16);
    border-radius: 12px;
    color: var(--ink-900);
    font-weight: 700;
    min-height: 42px;
    min-width: 56px;
    padding: 0 14px;
    transition: all .16s ease;
}

.staffing-day-button.is-selected {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(69, 111, 255, 0.2);
    color: #fff;
}

.qr-create-layout {
    align-items: start;
    display: grid;
    gap: var(--space-3);
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
}

.qr-create-form-surface,
.qr-create-preview-surface {
    padding: 24px;
}

.qr-create-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr 1fr;
    margin-top: 8px;
}

.qr-create-field-full {
    grid-column: 1 / -1;
}

.qr-create-preview-box {
    align-items: center;
    background: rgba(248, 250, 255, 0.82);
    border: 1px solid rgba(138, 149, 196, 0.14);
    border-radius: 18px;
    display: flex;
    justify-content: center;
    min-height: 260px;
    padding: 16px;
}

.qr-create-image {
    max-width: 240px;
}

.qr-create-status-card {
    background: rgba(248, 250, 255, 0.82);
    border: 1px solid rgba(138, 149, 196, 0.14);
    border-radius: 14px;
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 14px;
}

.qr-create-status-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.qr-create-status-row span {
    color: var(--text-soft);
    font-size: 0.84rem;
}

.qr-create-status-row strong {
    font-weight: 700;
}

.qr-create-preview-actions {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.points-page {
    display: grid;
    gap: var(--space-3);
}

.points-hero-actions {
    align-items: center;
    display: flex;
    gap: var(--space-2);
}

.points-main-grid {
    align-items: start;
    display: grid;
    gap: var(--space-3);
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
}

.points-form-surface,
.points-map-surface,
.points-qr-surface {
    padding: 24px;
}

.points-field-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr 1fr;
}

.points-field-full {
    grid-column: 1 / -1;
}

.points-switch-row {
    align-items: center;
    background: rgba(248, 250, 255, 0.82);
    border: 1px solid rgba(138, 149, 196, 0.14);
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding: 12px 14px;
}

.points-switch-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.points-switch-note {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.points-map-search-row {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr auto;
    margin-top: 8px;
}

.points-map-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.points-coord-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
    margin-top: 10px;
}

.points-qr-surface {
    display: grid;
    gap: 14px;
}

.points-qr-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.points-qr-header {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.points-qr-header-actions {
    align-items: center;
    display: flex;
    gap: 10px;
}

.points-qr-status {
    color: #d12a2a;
    font-size: 0.95rem;
    font-weight: 700;
}

.points-qr-card {
    background: rgba(247, 249, 253, 0.88);
    border: 1px solid rgba(138, 149, 196, 0.14);
    border-radius: 18px;
    display: grid;
    gap: 12px;
    padding: 16px;
}

.points-qr-card-checkpoints {
    grid-column: span 3;
}

.points-qr-card-head {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.points-qr-card-head small,
.points-qr-card-meta span,
.points-qr-card-empty {
    color: var(--text-soft);
    display: block;
    font-size: 0.82rem;
}

.points-qr-card-meta {
    display: grid;
    gap: 8px;
}

.points-qr-card-meta strong {
    display: block;
    font-size: 0.92rem;
}

.points-qr-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.points-qr-pill {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    min-height: 28px;
    padding: 0 10px;
}

.points-qr-pill.is-active {
    background: rgba(44, 182, 125, 0.14);
    color: #178f5d;
}

.points-qr-pill.is-idle {
    background: rgba(138, 149, 196, 0.12);
    color: #5e6a84;
}

.points-qr-list {
    display: grid;
    gap: 8px;
}

.points-qr-list-item {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(138, 149, 196, 0.14);
    border-radius: 14px;
    color: inherit;
    display: flex;
    justify-content: space-between;
    padding: 12px;
    text-align: left;
    width: 100%;
}

.points-qr-list-item small {
    color: var(--text-soft);
    display: block;
}

.points-qr-preview {
    align-items: center;
    background: rgba(248, 250, 255, 0.4);
    border: 2px dashed rgba(138, 149, 196, 0.2);
    border-radius: 18px;
    display: flex;
    justify-content: center;
    min-height: 220px;
    padding: 20px;
}

.points-qr-image {
    max-width: 180px;
}

.points-qr-empty {
    color: var(--text-soft);
    font-size: 0.95rem;
    text-align: center;
}

.points-qr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.personnel-modal-backdrop {
    align-items: flex-start;
    background: rgba(13, 18, 32, 0.52);
    backdrop-filter: blur(6px);
    display: flex;
    inset: 0;
    justify-content: center;
    overflow-y: auto;
    padding: 56px 24px 24px;
    position: fixed;
    z-index: 1050;
}

.personnel-modal-shell {
    background: #fff;
    border: 1px solid rgba(138, 149, 196, 0.16);
    border-radius: 24px;
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.18);
    display: grid;
    gap: 18px;
    max-height: calc(100vh - 48px);
    max-width: 560px;
    overflow: hidden;
    padding: 20px;
    width: min(100%, 560px);
}

.personnel-modal-head,
.personnel-modal-actions {
    align-items: center;
    display: flex;
    gap: var(--space-2);
    justify-content: space-between;
}

.personnel-modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 6px 0 0;
}

.personnel-modal-body,
.personnel-form-grid {
    display: grid;
    gap: var(--space-2);
}

.personnel-modal-body {
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
}

.personnel-form-grid {
    grid-template-columns: 1fr 1fr;
}

.personnel-modal-note {
    background: rgba(245, 247, 254, 0.9);
    border: 1px solid rgba(138, 149, 196, 0.14);
    border-radius: 16px;
    color: var(--text-soft);
    font-size: 0.92rem;
    padding: 14px 16px;
}

.reports-filter-row {
    align-items: end;
    display: grid;
    gap: var(--space-2);
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    margin-top: var(--space-3);
}

.reports-filter-field {
    min-width: 0;
}

.reports-filter-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: flex-end;
}

.reports-total-chip {
    background: rgba(245, 247, 254, 0.9);
    border: 1px solid rgba(138, 149, 196, 0.14);
    color: #4a546d;
}

.reports-empty {
    padding: 28px;
}

.sentinel-login-shell {
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(69, 111, 255, 0.1), transparent 26%),
        linear-gradient(180deg, #f6f8fe 0%, #eef2fb 100%);
    display: flex;
    min-height: 100vh;
    padding: 32px;
}

.sentinel-login-grid {
    align-items: center;
    display: grid;
    gap: 48px;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.86fr);
    margin: 0 auto;
    max-width: 1180px;
    width: 100%;
}

.sentinel-login-copy {
    display: grid;
    gap: 20px;
    max-width: 34rem;
}

.sentinel-login-title {
    font-size: clamp(2.4rem, 4vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 0.98;
    margin: 0;
}

.sentinel-login-lead {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.75;
    margin: 0;
    max-width: 32rem;
}

.sentinel-login-notes {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.sentinel-login-note {
    background: rgba(255,255,255,0.58);
    border: 1px solid rgba(138, 149, 196, 0.14);
    border-radius: 18px;
    display: grid;
    gap: 6px;
    padding: 16px 18px;
}

.sentinel-login-note-label {
    color: var(--text-soft);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sentinel-login-card {
    border-radius: 28px;
    margin-left: auto;
    max-width: 440px;
    padding: 32px;
    width: 100%;
}

.sentinel-login-card-head,
.sentinel-login-form {
    display: grid;
    gap: 20px;
}

.sentinel-login-hint {
    background: rgba(245, 247, 254, 0.92);
    border: 1px solid rgba(138, 149, 196, 0.14);
    border-radius: 16px;
    color: var(--text-soft);
    font-size: 0.92rem;
    padding: 14px 16px;
}

@media (max-width: 991.98px) {
    .points-main-grid,
    .points-field-grid,
    .points-coord-grid,
    .points-qr-grid,
    .projects-filter-grid,
    .qr-create-layout,
    .qr-create-grid,
    .regions-filter-grid,
    .personnel-filter-grid,
    .personnel-form-grid,
    .reports-filter-row,
    .sentinel-login-grid {
        grid-template-columns: 1fr;
    }

    .projects-filter-actions,
    .regions-filter-actions,
    .personnel-filter-actions,
    .reports-filter-actions {
        justify-content: flex-start;
    }

    .sentinel-login-card {
        margin-left: 0;
    }

    .dashboard-highlights-grid {
        grid-template-columns: 1fr;
    }

    .staffing-assignment-pick-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .points-form-surface,
    .points-map-surface,
    .points-qr-surface,
    .projects-filter-surface,
    .qr-create-form-surface,
    .qr-create-preview-surface,
    .regions-filter-surface,
    .reports-table-head,
    .reports-filter-surface,
    .personnel-modal-shell,
    .sentinel-login-card {
        padding: 20px;
    }

    .personnel-row-actions {
        justify-content: flex-start;
    }

    .sentinel-login-shell {
        padding: 20px;
    }

    .points-qr-card-checkpoints {
        grid-column: auto;
    }
}

.qr-page {
    display: grid;
    gap: var(--space-3);
}

.qr-summary-strip {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.qr-summary-card {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(181, 194, 226, 0.24);
    border-radius: 24px;
    display: grid;
    gap: 16px;
    grid-template-columns: auto 1fr;
    min-height: 126px;
    padding: 22px 24px;
}

.qr-summary-icon {
    align-items: center;
    border-radius: 20px;
    display: inline-flex;
    height: 64px;
    justify-content: center;
    width: 64px;
}

.qr-summary-icon .bi {
    font-size: 1.4rem;
    line-height: 1;
}

.qr-summary-card.is-primary .qr-summary-icon {
    background: rgba(69, 111, 255, 0.12);
    color: #3153df;
}

.qr-summary-card.is-success .qr-summary-icon {
    background: rgba(32, 178, 99, 0.14);
    color: #16814a;
}

.qr-summary-card.is-warning .qr-summary-icon {
    background: rgba(255, 193, 7, 0.18);
    color: #9a6a00;
}

.qr-summary-card.is-neutral .qr-summary-icon {
    background: rgba(148, 163, 184, 0.16);
    color: #475569;
}

.qr-summary-content {
    display: grid;
    gap: 4px;
}

.qr-summary-label {
    color: #6a7896;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.qr-summary-content strong {
    color: #101828;
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
}

.qr-summary-content small {
    color: #7a87a6;
    font-size: 0.88rem;
}

.qr-site-surface,
.qr-step-surface,
.qr-drawer-card {
    padding: 24px;
}

.qr-site-surface {
    overflow: visible;
    position: relative;
    z-index: 30;
}

.qr-filter-grid {
    align-items: end;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.qr-filter-reset {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 6px;
}

.qr-selection-shell,
.qr-selection-group,
.qr-map-caption,
.qr-management-surface,
.qr-management-head,
.qr-stats-stack,
.qr-stats-item {
    display: grid;
}

.qr-selection-shell,
.qr-management-surface,
.qr-stats-stack {
    gap: 20px;
}

.qr-selection-group {
    gap: 12px;
}

.qr-selection-head {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
}

.qr-selection-group--projects {
    padding-top: 20px;
    border-top: 1px solid rgba(181, 194, 226, 0.24);
}

.qr-selection-title {
    align-items: center;
    color: var(--text-strong);
    display: inline-flex;
    font-size: 0.98rem;
    font-weight: 700;
    gap: 10px;
    letter-spacing: -0.02em;
}

.qr-selection-title .bi {
    color: var(--brand);
    font-size: 1rem;
    line-height: 1;
}

.qr-chip-list,
.qr-management-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.qr-selection-search {
    align-items: center;
    background: rgba(245, 247, 254, 0.94);
    border: 1px solid rgba(181, 194, 226, 0.36);
    border-radius: 18px;
    display: flex;
    gap: 10px;
    min-height: 52px;
    padding: 0 16px;
    width: min(100%, 320px);
}

.qr-selection-search .bi {
    color: #7180a0;
    font-size: 1rem;
    line-height: 1;
}

.qr-selection-search .form-control {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--text-strong);
    font-size: 0.96rem;
    min-height: 50px;
    padding: 0;
}

.qr-selection-search .form-control::placeholder {
    color: #8290ab;
}

.qr-selection-chip,
.qr-management-tab {
    appearance: none;
    background: rgba(245, 247, 254, 0.94);
    border: 1px solid rgba(181, 194, 226, 0.36);
    border-radius: 16px;
    color: #314056;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    padding: 13px 18px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.qr-selection-chip:hover,
.qr-management-tab:hover {
    border-color: rgba(69, 111, 255, 0.26);
    color: #21356f;
    transform: translateY(-1px);
}

.qr-selection-chip.is-active,
.qr-management-tab.is-active {
    background: linear-gradient(135deg, #456fff 0%, #3153df 100%);
    border-color: transparent;
    box-shadow: 0 16px 32px rgba(49, 83, 223, 0.18);
    color: #fff;
}

.qr-selection-chip--project {
    border-radius: 14px;
}

.qr-map-surface,
.qr-stats-surface {
    padding: 24px;
}

.qr-map-surface {
    display: grid;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.qr-map-surface-head {
    align-items: start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.qr-live-pill {
    align-items: center;
    align-self: center;
    background: rgba(32, 178, 99, 0.12);
    border: 1px solid rgba(32, 178, 99, 0.16);
    border-radius: 999px;
    color: #16814a;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    min-height: 34px;
    padding: 0 14px;
    text-transform: uppercase;
    white-space: nowrap;
}

.qr-map-caption {
    gap: 4px;
}

.qr-map-caption strong {
    color: var(--text-strong);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.qr-map-caption span {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.qr-management-head {
    align-items: start;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.qr-workspace-surface {
    display: grid;
    gap: 20px;
    padding: 24px;
}

.qr-workspace-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-end;
}

.qr-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qr-icon-btn {
    min-width: 38px;
    padding: 0 10px;
}

.qr-tooltip {
    position: relative;
}

.qr-tooltip::after {
    background: #182033;
    border-radius: 10px;
    color: #fff;
    content: attr(data-tooltip);
    font-size: 0.75rem;
    font-weight: 700;
    left: 50%;
    opacity: 0;
    padding: 8px 10px;
    pointer-events: none;
    position: absolute;
    top: calc(100% + 10px);
    transform: translateX(-50%) translateY(-4px);
    transition: opacity 0.14s ease, transform 0.14s ease;
    white-space: nowrap;
    z-index: 12;
}

.qr-tooltip::before {
    border-bottom: 6px solid #182033;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    content: "";
    left: 50%;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: calc(100% + 4px);
    transform: translateX(-50%) translateY(-4px);
    transition: opacity 0.14s ease, transform 0.14s ease;
    z-index: 12;
}

.qr-tooltip:hover::after,
.qr-tooltip:hover::before,
.qr-tooltip:focus-visible::after,
.qr-tooltip:focus-visible::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.qr-dialog-modal {
    inset: 56px auto auto 50%;
    max-width: 820px;
    position: fixed;
    transform: translateX(-50%);
    width: min(calc(100vw - 32px), 820px);
    z-index: 1501;
}

.qr-dialog-surface {
    display: grid;
    gap: 18px;
    max-height: calc(100vh - 112px);
    overflow: auto;
    padding: 24px;
}

.qr-point-modal {
    inset: 32px;
    position: fixed;
    z-index: 1501;
}

.qr-point-modal-surface {
    display: grid;
    gap: 20px;
    max-height: calc(100vh - 64px);
    overflow: auto;
    padding: 24px;
}

.qr-point-grid {
    align-items: start;
}

.qr-dialog-head {
    align-items: start;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.qr-management-launch {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 24px;
}

.qr-management-launch h3 {
    color: var(--text-strong);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 6px;
}

.qr-management-launch p {
    color: var(--text-soft);
    margin: 0;
}

.qr-management-launch-kicker {
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.qr-launch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.qr-management-backdrop {
    background: rgba(15, 23, 42, 0.32);
    inset: 0;
    position: fixed;
    z-index: 1500;
}

.qr-management-modal {
    inset: 40px 32px;
    position: fixed;
    z-index: 1501;
}

.qr-management-surface--modal {
    display: grid;
    gap: 20px;
    height: 100%;
    overflow: auto;
    padding: 24px;
    padding-right: 92px;
    position: relative;
}

.qr-management-close {
    position: absolute;
    right: 24px;
    top: 24px;
    z-index: 2;
}

.qr-ops-sections {
    display: grid;
    gap: 20px;
}

.qr-ops-section {
    padding: 24px;
}

.qr-ops-card-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 20px;
}

.qr-ops-card {
    background: rgba(248, 250, 255, 0.84);
    border: 1px solid rgba(181, 194, 226, 0.24);
    border-radius: 18px;
    display: grid;
    gap: 14px;
    padding: 18px;
}

.qr-ops-card-head,
.qr-ops-card-meta > div {
    align-items: start;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.qr-ops-card-head strong {
    color: var(--text-strong);
    display: block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.qr-ops-card-meta {
    display: grid;
    gap: 10px;
}

.qr-ops-card-meta span {
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.qr-ops-card-meta strong {
    color: var(--text-strong);
    font-size: 0.92rem;
    font-weight: 600;
    text-align: right;
}

.qr-stats-surface {
    gap: 18px;
}

.qr-stats-item {
    align-items: center;
    background: rgba(248, 250, 255, 0.86);
    border: 1px solid rgba(181, 194, 226, 0.22);
    border-radius: 18px;
    gap: 14px;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 94px;
    padding: 16px 18px;
}

.qr-stats-item span {
    color: var(--text-soft);
    display: block;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.qr-stats-item strong {
    color: var(--text-strong);
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.qr-stats-icon {
    align-items: center;
    border-radius: 18px;
    display: inline-flex;
    height: 56px;
    justify-content: center;
    width: 56px;
}

.qr-stats-icon .bi {
    font-size: 1.2rem;
    line-height: 1;
}

.qr-stats-icon.is-primary {
    background: rgba(69, 111, 255, 0.12);
    color: #3153df;
}

.qr-stats-icon.is-success {
    background: rgba(32, 178, 99, 0.14);
    color: #16814a;
}

.qr-stats-icon.is-warning {
    background: rgba(255, 193, 7, 0.18);
    color: #9a6a00;
}

.qr-secondary-surface {
    padding: 16px 18px;
}

.qr-site-selection-row {
    align-items: end;
    display: grid;
    gap: var(--space-3);
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    margin-top: var(--space-3);
}

.qr-site-field,
.qr-ops-main,
.qr-ops-drawer {
    min-width: 0;
}

.qr-site-summary {
    background: rgba(248, 250, 255, 0.78);
    border: 1px solid rgba(138, 149, 196, 0.14);
    border-radius: 18px;
    display: grid;
    gap: 6px;
    min-height: 84px;
    padding: 14px 16px;
}

.qr-site-summary-label,
.qr-summary-item span,
.qr-control-meta span,
.qr-drawer-meta span {
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.qr-site-summary-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.qr-site-summary-note {
    color: var(--text-soft);
    font-size: 0.84rem;
}

.qr-ops-layout,
.qr-stage-grid {
    display: grid;
    gap: var(--space-3);
}

.qr-ops-layout {
    align-items: start;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.72fr);
}

.qr-stage-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.qr-control-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: var(--space-3);
}

.qr-control-card {
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(162, 176, 218, 0.16);
    border-radius: 18px;
    display: grid;
    gap: 16px;
    padding: 18px;
}

.qr-step-head {
    align-items: start;
    display: flex;
    gap: var(--space-2);
    justify-content: space-between;
}

.qr-step-gate {
    margin-top: var(--space-2);
}

.qr-control-head,
.qr-control-meta > div,
.qr-drawer-meta > div {
    align-items: start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.qr-control-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.qr-control-meta,
.qr-drawer-meta,
.qr-checkpoint-form {
    display: grid;
    gap: 12px;
}

.qr-control-meta strong,
.qr-drawer-meta strong {
    color: var(--text-strong);
    font-size: 0.92rem;
    font-weight: 600;
    text-align: right;
}

.qr-control-actions,
.qr-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qr-batch-panel {
    display: grid;
    gap: 12px;
    margin-top: var(--space-3);
}

.qr-stage-grid .qr-step-surface {
    height: 100%;
}

.qr-batch-select-all {
    margin: 0;
}

.qr-batch-list {
    display: grid;
    gap: 8px;
    max-height: 240px;
    overflow: auto;
    padding-right: 4px;
}

.qr-batch-item {
    align-items: flex-start;
    background: rgba(248, 250, 255, 0.82);
    border: 1px solid rgba(138, 149, 196, 0.14);
    border-radius: 12px;
    display: grid;
    gap: 8px;
    grid-template-columns: auto 1fr;
    margin: 0;
    padding: 10px 12px;
}

.qr-batch-item .form-check-label {
    display: grid;
    gap: 3px;
}

.qr-batch-item .form-check-label small {
    color: var(--text-soft);
    font-size: 0.8rem;
}

.qr-status-pill,
.qr-type-pill,
.qr-history-pill {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    padding: 10px 14px;
}

.qr-status-pill.is-active {
    background: rgba(25, 135, 84, 0.14);
    color: #156b46;
}

.qr-status-pill.is-idle {
    background: rgba(109, 117, 141, 0.12);
    color: #4a546d;
}

.qr-type-pill.is-attendance {
    background: rgba(69, 111, 255, 0.12);
    color: #2f4dc9;
}

.qr-type-pill.is-break {
    background: rgba(255, 193, 7, 0.18);
    color: #8a6300;
}

.qr-history-pill {
    background: rgba(245, 247, 254, 0.9);
    border: 1px solid rgba(138, 149, 196, 0.14);
    color: #4a546d;
}

.qr-step-surface--table {
    overflow: hidden;
    padding-bottom: 0;
}

.qr-inline-edit,
.qr-checkpoint-form-grid {
    display: grid;
    gap: 12px;
}

.qr-inline-panel {
    background: rgba(248, 250, 255, 0.82);
    border: 1px solid rgba(181, 194, 226, 0.24);
    border-radius: 20px;
    display: grid;
    gap: 16px;
    margin-top: 20px;
    padding: 20px;
}

.qr-checkpoint-form-grid {
    grid-template-columns: 1fr 1fr;
}

.qr-drawer-card {
    display: grid;
    gap: var(--space-3);
    position: sticky;
    top: 104px;
}

.qr-drawer-selected-strip {
    background: rgba(248, 250, 255, 0.84);
    border: 1px solid rgba(138, 149, 196, 0.14);
    border-radius: 14px;
    display: grid;
    gap: 4px;
    padding: 12px 14px;
}

.qr-drawer-selected-kicker {
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.qr-drawer-selected-title {
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.qr-secondary-summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    list-style: none;
}

.qr-secondary-summary::-webkit-details-marker {
    display: none;
}

.qr-secondary-summary strong {
    display: block;
    font-size: 1rem;
    line-height: 1.2;
}

.qr-secondary-kicker {
    color: var(--text-soft);
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.qr-secondary-note {
    align-items: center;
    background: rgba(69, 111, 255, 0.08);
    border: 1px solid rgba(69, 111, 255, 0.14);
    border-radius: 999px;
    color: var(--brand);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    min-height: 32px;
    padding: 0 12px;
    white-space: nowrap;
}

.qr-secondary-body {
    margin-top: 16px;
}

.qr-drawer-visual {
    align-items: center;
    background: rgba(245, 247, 254, 0.8);
    border: 1px dashed rgba(138, 149, 196, 0.24);
    border-radius: 18px;
    display: grid;
    justify-items: center;
    min-height: 220px;
    padding: 20px;
}

.qr-drawer-image {
    max-height: 320px;
}

.qr-table thead th {
    background: #f5f7fe;
    border-bottom: 1px solid rgba(138, 149, 196, 0.14);
    color: #5d6783;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.qr-table tbody td {
    border-color: rgba(138, 149, 196, 0.12);
    padding-bottom: 14px;
    padding-top: 14px;
}

.qr-table tbody tr {
    cursor: pointer;
}

.qr-table tbody tr.qr-row-readonly {
    cursor: default;
}

.qr-row-selected td {
    background: rgba(69, 111, 255, 0.06) !important;
}

@media (max-width: 1199.98px) {
    .qr-summary-strip,
    .qr-ops-layout,
    .qr-stage-grid,
    .qr-control-grid,
    .qr-site-selection-row,
    .qr-filter-grid {
        grid-template-columns: 1fr;
    }

    .qr-management-head {
        grid-template-columns: 1fr;
    }

    .qr-dialog-head {
        grid-template-columns: 1fr;
    }

    .qr-workspace-actions {
        justify-content: flex-start;
    }

    .qr-filter-reset {
        justify-content: flex-start;
        padding-bottom: 0;
    }

    .qr-management-launch {
        align-items: stretch;
        flex-direction: column;
    }

    .qr-launch-actions,
    .qr-ops-card-grid {
        grid-template-columns: 1fr;
        justify-content: flex-start;
    }

    .qr-management-modal {
        inset: 20px 16px;
    }

    .qr-dialog-modal {
        inset: 20px 16px auto 16px;
        max-width: none;
        transform: none;
        width: auto;
    }

    .qr-point-modal {
        inset: 20px 16px;
    }

    .qr-drawer-card {
        position: static;
        top: auto;
    }
}

@media (max-width: 767.98px) {
    .qr-site-surface,
    .qr-step-surface,
    .qr-drawer-card,
    .qr-map-surface,
    .qr-stats-surface {
        padding: 20px;
    }

    .qr-checkpoint-form-grid {
        grid-template-columns: 1fr;
    }

    .qr-selection-search {
        width: 100%;
    }

    .qr-map-surface-head {
        align-items: stretch;
        flex-direction: column;
    }

    .qr-launch-actions {
        width: 100%;
    }
}

.excuses-page,
.excuse-history-page,
.companies-page {
    display: grid;
    gap: var(--space-3);
}

.excuses-approval-block {
    margin: 0 auto;
    max-width: 1440px;
    width: 100%;
}

.excuses-hero-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.excuses-summary-strip,
.excuse-history-summary-strip,
.companies-summary-strip {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.excuses-summary-strip--approvals {
    gap: 20px;
}

.excuses-summary-item,
.excuse-history-summary-item,
.companies-summary-item {
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(162, 176, 218, 0.16);
    border-radius: 16px;
    display: grid;
    gap: 8px;
    padding: 16px;
}

.excuses-summary-card {
    align-items: center;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(182, 194, 220, 0.42);
    border-radius: 24px;
    display: grid;
    gap: 18px;
    grid-template-columns: auto 1fr;
    min-height: 118px;
    padding: 24px 28px;
}

.excuses-summary-card span {
    color: #6a7896;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.excuses-summary-card strong {
    color: #101828;
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
    margin-top: 10px;
}

.excuses-summary-card-icon {
    align-items: center;
    border-radius: 18px;
    display: inline-flex;
    font-size: 1.5rem;
    height: 60px;
    justify-content: center;
    width: 60px;
}

.excuses-summary-card.is-pending .excuses-summary-card-icon {
    background: rgba(245, 158, 11, 0.16);
    color: #ea580c;
}

.excuses-summary-card.is-approved .excuses-summary-card-icon {
    background: rgba(34, 197, 94, 0.16);
    color: #16a34a;
}

.excuses-summary-card.is-rejected .excuses-summary-card-icon {
    background: rgba(239, 68, 68, 0.14);
    color: #dc2626;
}

.excuse-history-filter-grid--approvals {
    align-items: center;
    grid-template-columns: minmax(320px, 2fr) minmax(240px, 1fr) minmax(240px, 1fr);
}

.excuses-filter-search {
    min-width: 0;
}

.excuses-table-head {
    padding: 24px 28px 0;
}

.excuses-page .sentinel-section-head-note {
    color: #73829d;
    font-size: .95rem;
    margin-left: auto;
    text-align: right;
}

@media (max-width: 1199.98px) {
    .excuse-history-filter-grid--approvals {
        grid-template-columns: 1fr;
    }
}

.excuses-summary-item span,
.excuse-history-summary-item span,
.companies-summary-item span {
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.excuses-summary-item strong,
.excuse-history-summary-item strong,
.companies-summary-item strong {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.excuses-table-surface,
.excuse-history-table-surface,
.companies-table-surface {
    overflow: hidden;
    padding: 0;
}

.excuse-history-filter-surface {
    overflow: visible;
    position: relative;
    z-index: 12;
}

.excuses-table-surface,
.excuse-history-table-surface {
    position: relative;
    z-index: 1;
}

.excuses-table-head,
.excuse-history-table-head,
.companies-table-head,
.excuse-history-filter-surface {
    padding: 24px;
}

.excuses-table thead th,
.excuse-history-table thead th,
.companies-table thead th {
    background: #f5f7fe;
    border-bottom: 1px solid rgba(138, 149, 196, 0.14);
    color: #5d6783;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.excuses-table tbody td,
.excuse-history-table tbody td,
.companies-table tbody td {
    border-color: rgba(138, 149, 196, 0.12);
    padding-bottom: 14px;
    padding-top: 14px;
    vertical-align: top;
}

.excuses-description,
.excuse-history-description {
    color: var(--text-soft);
    line-height: 1.45;
    margin-top: 4px;
    max-width: 320px;
}

.excuses-row-selected td {
    background: rgba(69, 111, 255, 0.06) !important;
}

.excuses-status-pill,
.excuse-history-pill,
.companies-status-pill {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    padding: 10px 14px;
}

.excuses-status-pill.is-pending,
.excuse-history-pill.is-warning {
    background: rgba(255, 193, 7, 0.18);
    color: #8a6300;
}

.excuse-history-pill.is-success,
.companies-status-pill.is-active {
    background: rgba(25, 135, 84, 0.14);
    color: #156b46;
}

.excuse-history-pill.is-danger {
    background: rgba(220, 53, 69, 0.12);
    color: #a11d2f;
}

.excuse-history-pill.is-primary {
    background: rgba(69, 111, 255, 0.12);
    color: #2f4dc9;
}

.excuse-history-pill.is-neutral,
.companies-status-pill.is-idle {
    background: rgba(109, 117, 141, 0.12);
    color: #4a546d;
}

.excuse-history-pill.is-muted {
    background: rgba(245, 247, 254, 0.9);
    border: 1px solid rgba(138, 149, 196, 0.14);
    color: #4a546d;
}

.excuses-summary-item--pending {
    border-left: 4px solid #f59e0b;
}

.excuses-summary-item--approved {
    border-left: 4px solid #16a34a;
}

.excuses-summary-item--rejected {
    border-left: 4px solid #dc2626;
}

.excuses-table-surface--approval {
    min-height: 420px;
}

.excuses-type-pill {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 700;
    gap: 6px;
    padding: 6px 10px;
}

.excuses-type-pill.is-health {
    background: rgba(59, 130, 246, 0.13);
    color: #1d4ed8;
}

.excuses-type-pill.is-vacation {
    background: rgba(124, 58, 237, 0.15);
    color: #6d28d9;
}

.excuses-type-pill.is-unpaid {
    background: rgba(148, 163, 184, 0.18);
    color: #334155;
}

.excuses-type-pill.is-default {
    background: rgba(219, 234, 254, 0.56);
    color: #1e3a8a;
}

.excuses-decision-actions,
.companies-row-actions,
.companies-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.excuses-decision-actions {
    justify-content: center;
}

.excuses-decision-surface {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.excuses-decision-summary {
    background: rgba(248, 250, 255, 0.82);
    border: 1px solid rgba(138, 149, 196, 0.14);
    border-radius: 14px;
    display: grid;
    gap: 6px;
    padding: 12px 14px;
}

.excuse-history-filter-grid,
.companies-form-grid {
    display: grid;
    gap: 16px;
}

.excuse-history-filter-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.excuses-page .excuse-history-filter-grid {
    align-items: end;
    grid-template-columns: minmax(320px, 2fr) minmax(220px, 1fr) minmax(220px, 1fr);
}

.excuses-page .excuses-table-head .sentinel-section-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.excuses-page .excuses-table-head .sentinel-section-head-note {
    margin-left: auto;
    max-width: 520px;
    text-align: right;
}

.excuse-history-filter-action {
    display: flex;
    align-items: end;
}

.excuse-history-page-v2 {
    display: grid;
    gap: var(--space-3);
}

.excuse-history-v2-block {
    margin: 0 auto;
    max-width: 1440px;
    width: 100%;
}

.excuse-history-v2-hero-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.excuse-history-v2-filter-grid {
    align-items: end;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(320px, 2fr) minmax(220px, 1fr) minmax(220px, 1fr);
}

.excuse-history-v2-search,
.excuse-history-v2-date-range {
    min-width: 0;
}

.excuse-history-v2-date-range {
    grid-column: 1 / span 2;
}

.excuse-history-v2-date-controls {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.excuse-history-v2-filter-actions {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.excuse-history-v2-table-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.excuse-history-v2-table-head h3 {
    color: #101828;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin: 0 0 8px;
}

.excuse-history-v2-table-head p {
    color: #6a7896;
    margin: 0;
}

.excuse-history-v2-eye {
    align-items: center;
    border-radius: 14px;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    min-width: 42px;
    padding: 0 14px;
}

.excuse-history-v2-eye .bi {
    line-height: 1;
}

.excuses-drawer-backdrop {
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(2px);
    inset: 0;
    position: fixed;
    z-index: 1090;
}

.excuses-drawer {
    background: #f8faff;
    border-left: 1px solid rgba(138, 149, 196, 0.22);
    box-shadow: -12px 0 32px rgba(30, 41, 59, 0.18);
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100vh;
    max-width: 520px;
    overflow: hidden;
    position: fixed;
    right: 0;
    top: 0;
    width: min(92vw, 520px);
    z-index: 1100;
}

.excuses-drawer-head {
    align-items: center;
    border-bottom: 1px solid rgba(138, 149, 196, 0.18);
    display: flex;
    justify-content: space-between;
    padding: 20px 22px;
}

.excuses-drawer-head h3 {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0;
}

.excuses-drawer-head p {
    color: var(--text-soft);
    margin: 4px 0 0;
}

.excuses-drawer-content {
    display: grid;
    gap: 16px;
    overflow-y: auto;
    padding: 16px 22px 20px;
}

.excuses-drawer-section {
    display: grid;
    gap: 10px;
}

.excuses-drawer-section > span {
    color: #49639a;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.excuses-drawer-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(138, 149, 196, 0.18);
    border-radius: 14px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.excuses-drawer-meta-row {
    display: grid;
    gap: 2px;
}

.excuses-drawer-meta-row small {
    color: #7081a8;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.excuses-drawer-meta-row strong {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
}

.excuses-drawer-empty-card {
    color: var(--text-soft);
    min-height: 72px;
    place-items: center;
}

.excuses-drawer-actions {
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(138, 149, 196, 0.18);
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    padding: 16px 22px 18px;
}

.excuses-drawer-actions .btn {
    min-height: 44px;
}

.companies-form-surface {
    padding: 24px;
}

.companies-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.companies-form-grid--edit {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr) minmax(140px, 0.5fr) auto;
}

.companies-form-grid--admin {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.companies-form-actions {
    align-items: end;
    justify-content: flex-end;
}

.companies-form-actions--full {
    grid-column: 1 / -1;
}

.companies-switch-row {
    display: flex;
    align-items: end;
}

.companies-danger-surface {
    background: rgba(255, 245, 242, 0.88);
    border-color: #efc7bb;
}

.companies-danger-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
}

.companies-row-selected td {
    background: rgba(69, 111, 255, 0.06) !important;
}

.companies-action-surface {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.companies-action-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.risk-events-page {
    display: grid;
    gap: 24px;
}

.risk-events-summary-strip {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.risk-events-block {
    margin: 0 auto;
    max-width: 1440px;
    width: 100%;
}

.risk-events-summary-card {
    min-height: 116px;
}

.risk-events-filter-surface,
.risk-events-table-surface {
    display: grid;
    gap: 16px;
    overflow: visible;
    padding: 24px;
    position: relative;
}

.risk-events-filter-surface {
    z-index: 12;
}

.risk-events-table-surface {
    z-index: 1;
}

.risk-events-filter-grid {
    align-items: end;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(280px, 1.5fr) minmax(220px, .9fr) minmax(220px, .9fr) minmax(340px, 1.1fr) auto;
}

.risk-events-filter-search {
    min-width: 0;
}

.risk-events-filter-date-range {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
}

.risk-events-filter-date-range .sentinel-control-shell {
    min-width: 0;
}

.risk-events-filter-actions {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 6px;
    white-space: nowrap;
}

.risk-events-table-head {
    padding-bottom: 6px;
}


.risk-events-flag-cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.risk-events-severity-pill,
.risk-events-flag-pill,
.risk-events-status-pill {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 10px;
}

.risk-events-flag-pill {
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
}

.risk-events-severity-pill.is-high {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}

.risk-events-severity-pill.is-medium {
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
}

.risk-events-severity-pill.is-low {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

.risk-events-flag-pill.is-primary {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

.risk-events-status-pill.is-danger {
    background: rgba(220, 38, 38, 0.14);
    color: #b91c1c;
}

.risk-events-status-pill.is-warning {
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
}

.risk-events-status-pill.is-success {
    background: rgba(25, 135, 84, 0.14);
    color: #156b46;
}

.risk-events-row-selected td {
    background: rgba(69, 111, 255, 0.06) !important;
}

.risk-events-drawer-backdrop {
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(2px);
    inset: 0;
    position: fixed;
    z-index: 1090;
}

.risk-events-drawer {
    background: #f8faff;
    border-left: 1px solid rgba(138, 149, 196, 0.22);
    box-shadow: -12px 0 32px rgba(30, 41, 59, 0.18);
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100vh;
    max-width: 520px;
    overflow: hidden;
    position: fixed;
    right: 0;
    top: 0;
    width: min(92vw, 520px);
    z-index: 1100;
}

.risk-events-drawer-head {
    align-items: center;
    border-bottom: 1px solid rgba(138, 149, 196, 0.18);
    display: flex;
    justify-content: space-between;
    padding: 20px 22px;
}

.risk-events-drawer-head h3 {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0;
}

.risk-events-drawer-head p {
    color: var(--text-soft);
    margin: 4px 0 0;
}

.risk-events-drawer-content {
    display: grid;
    gap: 14px;
    overflow-y: auto;
    padding: 16px 22px 20px;
}

.risk-events-detail-grid {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(138, 149, 196, 0.18);
    border-radius: 14px;
    display: grid;
    gap: 10px;
    padding: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.risk-events-detail-grid span {
    color: var(--text-soft);
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.risk-events-detail-grid strong {
    color: var(--text-strong);
    font-size: 0.95rem;
    font-weight: 700;
}

.risk-events-detail-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.risk-events-drawer-actions {
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(138, 149, 196, 0.18);
    display: flex;
    justify-content: flex-end;
    padding: 16px 22px 18px;
}

@media (max-width: 991.98px) {
    .excuses-summary-strip,
    .excuse-history-summary-strip,
    .companies-summary-strip,
    .risk-events-summary-strip,
    .risk-events-detail-grid,
    .companies-form-grid,
    .companies-form-grid--edit,
    .companies-form-grid--admin,
    .companies-action-grid {
        grid-template-columns: 1fr;
    }

    .companies-form-actions,
    .companies-row-actions {
        justify-content: flex-start;
    }

    .risk-events-filter-grid {
        grid-template-columns: 1fr;
    }

    .risk-events-filter-date-range {
        grid-template-columns: 1fr;
    }

    .risk-events-filter-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 767.98px) {
    .excuses-table-head,
    .excuse-history-table-head,
    .companies-table-head,
    .excuse-history-filter-surface,
    .companies-form-surface,
    .risk-events-filter-surface,
    .risk-events-table-surface {
        padding: 20px;
    }

    .excuses-drawer {
        max-width: 100vw;
        width: 100vw;
    }

    .excuses-drawer-actions {
        grid-template-columns: 1fr;
    }

    .risk-events-drawer {
        max-width: 100vw;
        width: 100vw;
    }

    .excuse-history-v2-date-controls {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1199.98px) {
    .excuses-page .excuse-history-filter-grid {
        grid-template-columns: 1fr;
    }

    .excuse-history-v2-filter-grid {
        grid-template-columns: 1fr;
    }

    .excuse-history-v2-date-range {
        grid-column: auto;
    }

    .excuse-history-v2-filter-actions {
        justify-content: flex-start;
    }
}

.timesheets-daily-page {
    display: grid;
    gap: var(--space-3);
}

.timesheets-daily-block {
    margin: 0;
}

.timesheets-daily-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.timesheets-daily-date-picker {
    color: #5d6783;
    margin: 0;
}

.timesheets-daily-date-picker .form-control {
    border: 0;
    box-shadow: none;
    min-height: 42px;
    padding-left: 0;
    padding-right: 0;
}

.timesheets-daily-hero-actions .form-control {
    min-width: 196px;
}

.timesheets-daily-summary-strip {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timesheets-daily-summary-card {
    align-items: center;
    border: 1px solid rgba(162, 176, 218, 0.18);
    border-radius: 16px;
    display: grid;
    gap: 14px;
    grid-template-columns: auto 1fr;
    padding: 18px 20px;
    background: #fff;
    color: #1f2a44;
}

.timesheets-daily-summary-card.is-success {
    border-color: rgba(25, 135, 84, 0.24);
}

.timesheets-daily-summary-card.is-warning {
    border-color: rgba(255, 193, 7, 0.3);
}

.timesheets-daily-summary-card.is-info {
    border-color: rgba(59, 130, 246, 0.28);
}

.timesheets-daily-summary-card.is-danger {
    border-color: rgba(220, 53, 69, 0.28);
}

.timesheets-daily-summary-icon {
    align-items: center;
    background: #eef3ff;
    border-radius: 999px;
    color: #3f5fa8;
    display: inline-flex;
    font-size: 1rem;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.timesheets-daily-summary-card.is-success .timesheets-daily-summary-icon {
    background: rgba(25, 135, 84, 0.12);
    color: #14714a;
}

.timesheets-daily-summary-card.is-warning .timesheets-daily-summary-icon {
    background: rgba(255, 193, 7, 0.2);
    color: #9c6a00;
}

.timesheets-daily-summary-card.is-info .timesheets-daily-summary-icon {
    background: rgba(59, 130, 246, 0.14);
    color: #1f57d0;
}

.timesheets-daily-summary-title {
    display: block;
    color: #43557d;
    font-size: 1.85rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 4px;
}

.timesheets-daily-summary-card strong {
    color: #0f172a;
    font-size: 2.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.timesheets-daily-summary-card small {
    color: #5b6784;
    display: block;
    font-size: 0.9rem;
    margin-top: 6px;
}

.timesheets-daily-filter-surface {
    overflow: visible;
    padding: 16px;
    position: relative;
    z-index: 12;
}

.timesheets-daily-filter-grid {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

.timesheets-daily-filter-reset {
    display: flex;
    justify-content: flex-end;
}

.timesheets-daily-table-head {
    align-items: end;
    border-bottom: 1px solid rgba(138, 149, 196, 0.12);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    padding: 18px 18px 14px;
}

.timesheets-daily-table-head h3 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0;
}

.timesheets-daily-table-head p {
    color: #63708f;
    margin: 2px 0 0;
}

.timesheets-daily-table-controls {
    align-items: center;
    display: flex;
    gap: 12px;
}

.timesheets-daily-search {
    min-width: 300px;
}

.timesheets-daily-search .form-control {
    border: 0;
    box-shadow: none;
    min-height: 38px;
    padding-left: 0;
    padding-right: 0;
}

.timesheets-daily-pagesize {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.timesheets-daily-pagesize-dropdown {
    min-width: 74px;
}

.timesheets-daily-pagesize-dropdown .sentinel-dropdown-trigger {
    min-height: 44px;
    padding: 0 12px;
}

.timesheets-daily-table-surface {
    overflow: hidden;
    padding: 0;
    position: relative;
    z-index: 1;
}

.timesheets-daily-loading {
    align-items: center;
    display: grid;
    gap: 10px;
    justify-content: center;
    min-height: 220px;
    padding: 24px;
}

.timesheets-daily-table thead th {
    background: #f5f7fe;
    border-bottom: 1px solid rgba(138, 149, 196, 0.14);
    color: #5d6783;
    font-size: 0.93rem;
    font-weight: 700;
    white-space: nowrap;
}

.timesheets-daily-table tbody td {
    border-color: rgba(138, 149, 196, 0.12);
    padding-bottom: 12px;
    padding-top: 12px;
    vertical-align: middle;
}

.timesheets-daily-person-cell {
    align-items: center;
    display: flex;
    gap: 12px;
}

.timesheets-daily-avatar {
    align-items: center;
    background: rgba(69, 111, 255, 0.14);
    border-radius: 999px;
    color: #2f4dc9;
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 700;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.timesheets-daily-person-name {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.timesheets-daily-person-role {
    color: var(--text-soft);
    font-size: 0.85rem;
    margin-top: 2px;
}

.timesheets-daily-person-meta {
    color: #8a96af;
    font-size: 0.78rem;
    line-height: 1.35;
    margin-top: 3px;
}

.timesheets-daily-status {
    white-space: nowrap;
}

.timesheets-daily-detail-btn {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    white-space: nowrap;
}

.timesheets-daily-detail-btn span:first-child {
    letter-spacing: -0.01em;
}

.timesheets-daily-detail-btn .bi {
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    border: 1px solid rgba(153, 167, 191, 0.22);
    color: #6f7d95;
    display: inline-flex;
    font-size: 0.76rem;
    height: 24px;
    justify-content: center;
    line-height: 1;
    margin-left: 2px;
    position: relative;
    top: 0;
    vertical-align: middle;
    width: 24px;
}

.timesheets-daily-pagination {
    align-items: center;
    border-top: 1px solid rgba(138, 149, 196, 0.12);
    color: var(--text-soft);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    gap: 12px;
    justify-content: space-between;
    padding: 14px 18px;
}

.timesheets-daily-page-buttons {
    align-items: center;
    display: flex;
    gap: 8px;
}

.timesheets-daily-current-page {
    border: 1px solid rgba(138, 149, 196, 0.24);
    border-radius: 6px;
    color: #1e2b48;
    font-weight: 700;
    min-width: 34px;
    padding: 4px 10px;
    text-align: center;
}

.timesheets-daily-drawer-backdrop {
    background: rgba(8, 14, 30, 0.42);
    inset: 0;
    position: fixed;
    z-index: 1048;
}

.timesheets-daily-drawer {
    background: #fff;
    border-left: 1px solid rgba(138, 149, 196, 0.2);
    box-shadow: -14px 0 32px rgba(11, 24, 58, 0.18);
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100vh;
    max-width: 520px;
    padding: 0;
    position: fixed;
    right: 0;
    top: 0;
    width: min(100vw, 520px);
    z-index: 1049;
}

.timesheets-daily-drawer-head {
    align-items: start;
    border-bottom: 1px solid rgba(138, 149, 196, 0.16);
    display: flex;
    justify-content: space-between;
    padding: 20px 20px 14px;
}

.timesheets-daily-drawer-head h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.timesheets-daily-drawer-head p {
    color: #677392;
    margin: 4px 0 0;
}

.timesheets-daily-drawer-body {
    overflow-y: auto;
    padding: 18px 20px 24px;
}

.timesheets-daily-detail-metrics {
    border: 1px solid rgba(138, 149, 196, 0.16);
    border-radius: 12px;
    display: grid;
    gap: 0;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.timesheets-daily-detail-metrics > div {
    border-bottom: 1px solid rgba(138, 149, 196, 0.12);
    border-right: 1px solid rgba(138, 149, 196, 0.12);
    display: grid;
    gap: 6px;
    padding: 12px 14px;
}

.timesheets-daily-detail-metrics > div:nth-child(2n) {
    border-right: 0;
}

.timesheets-daily-detail-metrics > div:nth-last-child(-n+2) {
    border-bottom: 0;
}

.timesheets-daily-detail-metrics span {
    color: #68738d;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.timesheets-daily-detail-metrics strong {
    color: #1e2b48;
    font-size: 0.98rem;
}

.timesheets-daily-detail-section {
    border-top: 1px solid rgba(138, 149, 196, 0.14);
    margin-top: 16px;
    padding-top: 14px;
}

.timesheets-daily-detail-section h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.timesheets-daily-detail-section ul {
    margin: 0;
    padding-left: 18px;
}

.timesheets-daily-detail-section li {
    margin-bottom: 6px;
}

.timesheets-daily-detail-events {
    display: grid;
    gap: 8px;
}

.timesheets-daily-detail-event {
    align-items: center;
    background: rgba(245, 247, 254, 0.76);
    border: 1px solid rgba(138, 149, 196, 0.14);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
}

@media (max-width: 991.98px) {
    .timesheets-daily-summary-strip,
    .timesheets-daily-filter-grid {
        grid-template-columns: 1fr;
    }

    .timesheets-daily-hero-actions {
        width: 100%;
    }

    .timesheets-daily-date-picker {
        width: 100%;
    }

    .timesheets-daily-hero-actions .form-control,
    .timesheets-daily-hero-actions .btn {
        width: 100%;
    }

    .timesheets-daily-search {
        min-width: 0;
        width: 100%;
    }

    .timesheets-daily-table-controls {
        width: 100%;
    }

    .timesheets-daily-detail-metrics {
        grid-template-columns: 1fr;
    }

    .timesheets-daily-detail-metrics > div {
        border-right: 0;
    }

    .timesheets-daily-detail-metrics > div:nth-last-child(-n+2) {
        border-bottom: 1px solid rgba(138, 149, 196, 0.12);
    }

    .timesheets-daily-detail-metrics > div:last-child {
        border-bottom: 0;
    }
}

.timesheets-monthly-page,
.timesheets-report-page-v2 {
    display: grid;
    gap: var(--space-3);
}

.timesheets-monthly-block,
.timesheets-report-v2-block {
    margin: 0;
}

.timesheets-monthly-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
}

.timesheets-monthly-export {
    position: relative;
}

.timesheets-monthly-export-menu {
    background: #fff;
    border: 1px solid rgba(138, 149, 196, 0.2);
    border-radius: 12px;
    box-shadow: 0 14px 26px rgba(17, 25, 40, 0.14);
    display: grid;
    min-width: 220px;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 20;
}

.timesheets-monthly-export-menu button {
    align-items: center;
    background: #fff;
    border: 0;
    color: #27324a;
    display: flex;
    font-weight: 600;
    gap: 10px;
    padding: 12px 14px;
    text-align: left;
}

.timesheets-monthly-export-menu button:hover {
    background: #f5f7fe;
}

.timesheets-monthly-month-picker {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(138, 149, 196, 0.2);
    border-radius: 12px;
    color: #5d6783;
    display: inline-flex;
    gap: 8px;
    margin: 0;
    padding: 0 12px;
}

.timesheets-monthly-month-picker .form-control {
    border: 0;
    box-shadow: none;
    min-height: 42px;
    min-width: 160px;
    padding-left: 0;
    padding-right: 0;
}

.timesheets-monthly-hero-actions .form-control {
    min-width: 180px;
}

.timesheets-monthly-summary-strip {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timesheets-monthly-summary-card {
    align-items: center;
    border: 1px solid rgba(162, 176, 218, 0.16);
    border-radius: 16px;
    display: grid;
    gap: 14px;
    grid-template-columns: auto 1fr;
    padding: 18px 20px;
}

.timesheets-monthly-summary-card.is-primary {
    background: linear-gradient(135deg, #bdd0ec 0%, #b1c5e6 100%);
    color: #1f2435;
}

.timesheets-monthly-summary-card.is-overtime {
    background: linear-gradient(135deg, #f0debb 0%, #edd3a1 100%);
    color: #1f2435;
}

.timesheets-monthly-summary-card.is-warning {
    background: linear-gradient(135deg, #f7eab0 0%, #f2df87 100%);
    color: #1f2435;
}

.timesheets-monthly-summary-card.is-info {
    background: linear-gradient(135deg, #c8d6ee 0%, #b5c8e5 100%);
    color: #1f2435;
}

.timesheets-monthly-summary-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.timesheets-monthly-summary-title {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1;
    margin-bottom: 8px;
}

.timesheets-monthly-summary-card strong {
    font-size: 1rem;
    font-weight: 700;
}

.timesheets-monthly-summary-card small {
    display: block;
    margin-top: 6px;
    opacity: .95;
}

.timesheets-monthly-filter-surface {
    overflow: visible;
    padding: 16px;
    position: relative;
    z-index: 12;
}

.timesheets-monthly-filter-grid {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
}

.timesheets-monthly-filter-grid.is-superadmin {
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
}

.timesheets-monthly-filter-reset {
    display: flex;
    justify-content: flex-end;
}

.timesheets-monthly-table-head {
    align-items: end;
    border-bottom: 1px solid rgba(138, 149, 196, 0.12);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    padding: 18px 18px 14px;
}

.timesheets-monthly-table-head h3 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0;
}

.timesheets-monthly-table-head p {
    color: #63708f;
    margin: 2px 0 0;
}

.timesheets-monthly-table-controls {
    align-items: center;
    display: flex;
    gap: 12px;
}

.timesheets-monthly-search {
    align-items: center;
    border: 1px solid rgba(138, 149, 196, 0.2);
    border-radius: 10px;
    display: inline-flex;
    gap: 8px;
    min-width: 300px;
    padding: 0 12px;
}

.timesheets-monthly-search .form-control {
    border: 0;
    box-shadow: none;
    min-height: 38px;
    padding-left: 0;
    padding-right: 0;
}

.timesheets-monthly-pagesize {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.timesheets-monthly-pagesize-dropdown {
    min-width: 74px;
}

.timesheets-monthly-pagesize-dropdown .sentinel-dropdown-trigger {
    min-height: 44px;
    padding: 0 12px;
}

.timesheets-monthly-table-surface {
    overflow: hidden;
    padding: 0;
    position: relative;
    z-index: 1;
}

.timesheets-monthly-loading {
    align-items: center;
    display: grid;
    gap: 10px;
    justify-content: center;
    min-height: 220px;
    padding: 24px;
}

.timesheets-monthly-table thead th {
    background: #f5f7fe;
    border-bottom: 1px solid rgba(138, 149, 196, 0.14);
    color: #5d6783;
    font-size: 0.93rem;
    font-weight: 700;
    white-space: nowrap;
}

.timesheets-monthly-table tbody td {
    border-color: rgba(138, 149, 196, 0.12);
    padding-bottom: 14px;
    padding-top: 14px;
    vertical-align: middle;
}

.timesheets-monthly-table .btn.btn-primary.btn-sm {
    min-width: 82px;
}

.timesheets-monthly-person-cell {
    align-items: center;
    display: flex;
    gap: 12px;
}

.timesheets-monthly-avatar {
    align-items: center;
    background: rgba(69, 111, 255, 0.14);
    border-radius: 999px;
    color: #2f4dc9;
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 700;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.timesheets-monthly-person-name {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.timesheets-monthly-person-role {
    color: var(--text-soft);
    font-size: .85rem;
    margin-top: 2px;
}

.timesheets-monthly-person-meta {
    color: #8a96af;
    font-size: 0.78rem;
    line-height: 1.35;
    margin-top: 3px;
}

.timesheets-monthly-inline-stack {
    display: grid;
    gap: 3px;
}

.timesheets-monthly-inline-stack strong {
    color: #0f172a;
    font-size: 0.96rem;
}

.timesheets-monthly-inline-stack small {
    color: #7d89a3;
    font-size: 0.78rem;
}

.timesheets-monthly-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1;
    padding: 8px 12px;
}

.timesheets-monthly-status.is-success { background: rgba(25,135,84,.14); color: #156b46; }
.timesheets-monthly-status.is-warning { background: rgba(255,193,7,.18); color: #8a6300; }
.timesheets-monthly-status.is-danger { background: rgba(220,53,69,.12); color: #a11d2f; }
.timesheets-monthly-status.is-neutral { background: rgba(109,117,141,.12); color: #4a546d; }

.timesheets-monthly-pagination {
    align-items: center;
    border-top: 1px solid rgba(138, 149, 196, 0.12);
    color: var(--text-soft);
    display: flex;
    flex-wrap: wrap;
    font-size: .9rem;
    gap: 12px;
    justify-content: space-between;
    padding: 14px 18px;
}

.timesheets-monthly-page-buttons {
    align-items: center;
    display: flex;
    gap: 8px;
}

.timesheets-monthly-current-page {
    border: 1px solid rgba(138, 149, 196, 0.24);
    border-radius: 6px;
    color: #1e2b48;
    font-weight: 700;
    min-width: 34px;
    padding: 4px 10px;
    text-align: center;
}

.timesheets-monthly-drawer-backdrop {
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(2px);
    inset: 0;
    position: fixed;
    z-index: 1090;
}

.timesheets-monthly-drawer {
    background: #f8faff;
    border-left: 1px solid rgba(138, 149, 196, 0.22);
    box-shadow: -12px 0 32px rgba(30, 41, 59, 0.18);
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100vh;
    max-width: 520px;
    overflow: hidden;
    position: fixed;
    right: 0;
    top: 0;
    width: min(92vw, 520px);
    z-index: 1100;
}

.timesheets-monthly-drawer-head {
    align-items: center;
    border-bottom: 1px solid rgba(138, 149, 196, 0.18);
    display: flex;
    justify-content: space-between;
    padding: 20px 22px;
}

.timesheets-monthly-drawer-head h3 {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0;
}

.timesheets-monthly-drawer-head p {
    color: var(--text-soft);
    margin: 4px 0 0;
}

.timesheets-monthly-drawer-content {
    display: grid;
    gap: 16px;
    overflow-y: auto;
    padding: 16px 22px 20px;
}

.timesheets-monthly-detail-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timesheets-monthly-detail-grid span {
    color: #7081a8;
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.timesheets-monthly-detail-grid strong {
    color: #0f172a;
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 2px;
}

.timesheets-monthly-detail-note {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(138, 149, 196, 0.18);
    border-radius: 14px;
    color: #334155;
    line-height: 1.45;
    padding: 12px 14px;
}

.timesheets-monthly-drawer-actions {
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(138, 149, 196, 0.18);
    padding: 16px 22px 18px;
}

.timesheets-report-v2-builder {
    overflow: visible;
    padding: 0;
    position: relative;
    z-index: 12;
}

.timesheets-report-v2-builder-head {
    align-items: center;
    border-bottom: 1px solid rgba(138, 149, 196, 0.14);
    display: flex;
    gap: 10px;
    padding: 20px 22px;
}

.timesheets-report-v2-builder-head strong {
    color: #0f172a;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.timesheets-report-v2-builder-grid {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: 1.35fr 1fr 1fr auto;
    padding: 20px 22px;
}

.timesheets-report-v2-builder-grid.is-superadmin {
    grid-template-columns: 1.35fr 1fr 1fr 1fr auto;
}

.timesheets-report-v2-date-range {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
}

.timesheets-report-v2-date-control {
    width: 100%;
}

.timesheets-report-v2-date-control .form-control {
    min-height: 44px;
}

.timesheets-report-v2-builder-action .btn {
    min-width: 184px;
}

.timesheets-report-v2-cards {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timesheets-report-v2-card,
.timesheets-report-v2-trend-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(162, 176, 218, 0.16);
    border-radius: 16px;
    padding: 18px;
}

.timesheets-report-v2-card {
    color: inherit;
    display: grid;
    gap: 10px;
    text-align: left;
}

.timesheets-report-v2-card .bi {
    color: #2563eb;
    font-size: 1.25rem;
}

.timesheets-report-v2-card strong {
    color: #0f172a;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.timesheets-report-v2-card small {
    color: var(--text-soft);
    font-size: .95rem;
    line-height: 1.35;
}

.timesheets-report-v2-trend-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.timesheets-report-v2-trend-head strong {
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 700;
}

.timesheets-report-v2-trend-head span {
    background: rgba(37, 99, 235, 0.12);
    border-radius: 999px;
    color: #1d4ed8;
    font-size: .82rem;
    font-weight: 700;
    padding: 8px 12px;
}

.timesheets-report-v2-trend-months {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.timesheets-report-v2-trend-month {
    text-align: center;
}

.timesheets-report-v2-trend-month small {
    color: var(--text-soft);
    display: block;
    font-size: .78rem;
}

.timesheets-report-v2-trend-month strong {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
}

.timesheets-report-v2-table-surface {
    overflow: hidden;
    padding: 0;
}

.timesheets-report-v2-table-head {
    align-items: center;
    border-bottom: 1px solid rgba(138, 149, 196, 0.14);
    display: flex;
    justify-content: space-between;
    padding: 20px 22px;
}

.timesheets-report-v2-table-head strong {
    color: #0f172a;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.timesheets-report-v2-table thead th {
    background: #f5f7fe;
    border-bottom: 1px solid rgba(138, 149, 196, 0.14);
    color: #5d6783;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.timesheets-report-v2-table tbody td {
    border-color: rgba(138, 149, 196, 0.12);
    padding-bottom: 14px;
    padding-top: 14px;
    vertical-align: middle;
}

.timesheets-report-v2-format {
    background: rgba(16, 185, 129, 0.14);
    border-radius: 999px;
    color: #047857;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1;
    padding: 8px 12px;
}

@media (max-width: 1199.98px) {
    .timesheets-monthly-summary-strip,
    .timesheets-monthly-filter-grid,
    .timesheets-report-v2-cards {
        grid-template-columns: 1fr;
    }

    .timesheets-monthly-hero-actions {
        width: 100%;
    }

    .timesheets-monthly-month-picker,
    .timesheets-monthly-hero-actions .btn {
        width: 100%;
    }

    .timesheets-monthly-search {
        min-width: 0;
        width: 100%;
    }

    .timesheets-monthly-table-controls {
        width: 100%;
    }

    .timesheets-monthly-export-menu {
        left: 0;
        right: auto;
        width: 100%;
    }

    .timesheets-report-v2-builder-grid {
        grid-template-columns: 1fr;
    }

    .timesheets-report-v2-builder-action .btn {
        width: 100%;
    }

    .timesheets-report-v2-trend-months {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .timesheets-monthly-drawer {
        max-width: 100vw;
        width: 100vw;
    }

    .timesheets-monthly-detail-grid,
    .timesheets-report-v2-date-range,
    .timesheets-report-v2-trend-months {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .sentinel-shell {
        display: block;
    }

    .sentinel-sidebar {
        inset: 0 auto 0 0;
        max-width: 320px;
        position: fixed;
        transform: translateX(-108%);
        transition: transform .24s ease;
        width: calc(100vw - 48px);
    }

    .sentinel-sidebar.is-open {
        transform: translateX(0);
    }

    .sentinel-mobile-overlay {
        background: rgba(11, 14, 28, 0.54);
        display: block;
        inset: 0;
        opacity: 0;
        pointer-events: none;
        position: fixed;
        transition: opacity .24s ease;
        z-index: 20;
    }

    .sentinel-mobile-overlay.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .sentinel-topbar {
        padding: 16px;
    }

    .sentinel-topbar-search {
        min-width: 0;
        width: 100%;
    }

    .sentinel-layout-content {
        padding: 16px;
    }

    .sentinel-menu-toggle {
        display: inline-flex;
    }
}

.staffing-section-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.staffing-quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.staffing-quick-filter {
    background: #f6f8ff;
    border: 1px solid rgba(128, 145, 196, 0.22);
    border-radius: 999px;
    color: #5a6787;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1;
    padding: 10px 16px;
    transition: all .18s ease;
}

.staffing-quick-filter.is-active,
.staffing-quick-filter:hover {
    background: linear-gradient(135deg, #5d7cff 0%, #4966ff 100%);
    border-color: transparent;
    box-shadow: 0 16px 34px -24px rgba(73, 102, 255, 0.8);
    color: #fff;
}

.staffing-group-stack {
    display: grid;
    gap: 18px;
}

.staffing-group-surface {
    background: #fbfcff;
    border: 1px solid rgba(130, 144, 185, 0.14);
    border-radius: 28px;
    overflow: hidden;
}

.staffing-group-head {
    align-items: center;
    border-bottom: 1px solid rgba(130, 144, 185, 0.12);
    display: flex;
    justify-content: space-between;
    padding: 18px 22px;
}

.staffing-group-head h3 {
    color: #10172f;
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
}

.staffing-group-head p {
    color: #7a86a6;
    font-size: .88rem;
    margin: 4px 0 0;
}

.staffing-autocomplete-results {
    background: #fff;
    border: 1px solid rgba(120, 138, 188, 0.16);
    border-radius: 24px;
    box-shadow: 0 24px 48px -36px rgba(19, 31, 72, 0.35);
    display: grid;
    gap: 6px;
    margin-top: 10px;
    max-height: 96px;
    overflow-y: auto;
    padding: 8px;
}

.staffing-autocomplete-option {
    align-items: flex-start;
    background: transparent;
    border: 0;
    border-radius: 18px;
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    text-align: left;
    transition: background .18s ease, transform .18s ease;
}

.staffing-autocomplete-option:hover,
.staffing-autocomplete-option.is-selected {
    background: #eef3ff;
    transform: translateY(-1px);
}

.staffing-autocomplete-name {
    color: #10172f;
    font-size: .94rem;
    font-weight: 700;
    line-height: 1.2;
}

.staffing-autocomplete-meta {
    color: #7b87a7;
    font-size: .8rem;
    line-height: 1.35;
}

.staffing-assignment-summary {
    background: linear-gradient(180deg, rgba(243, 246, 255, 0.95), rgba(250, 252, 255, 0.95));
    border: 1px solid rgba(124, 141, 189, 0.16);
    border-radius: 22px;
    display: grid;
    gap: 6px;
    min-height: 100%;
    padding: 10px 12px;
}

.staffing-assignment-summary.is-empty {
    color: #7984a2;
    display: flex;
    font-weight: 600;
    justify-content: center;
    min-height: 76px;
    text-align: center;
    align-items: center;
}

.staffing-summary-line {
    align-items: start;
    display: grid;
    gap: 10px;
    grid-template-columns: 74px minmax(0, 1fr);
}

.staffing-summary-line span {
    color: #7a86a6;
    font-size: .76rem;
}

.staffing-summary-line strong {
    color: #10172f;
    font-size: .84rem;
    font-weight: 800;
    line-height: 1.45;
    text-align: left;
    word-break: break-word;
}

.staffing-conflict-box {
    background: rgba(255, 240, 240, 0.88);
    border: 1px solid rgba(239, 68, 68, 0.18);
    border-radius: 22px;
    display: grid;
    gap: 6px;
    margin-top: 12px;
    padding: 10px 12px;
}

.staffing-conflict-title {
    color: #b91c1c;
    font-size: .84rem;
    font-weight: 800;
}

.staffing-conflict-row {
    color: #7f1d1d;
    font-size: .78rem;
    line-height: 1.4;
}

.staffing-bulk-modal-shell {
    max-width: 860px;
}

.staffing-selected-users {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.staffing-selected-user-chip {
    align-items: center;
    background: #eef3ff;
    border: 1px solid rgba(99, 120, 255, 0.12);
    border-radius: 999px;
    color: #2640a8;
    display: inline-flex;
    font-size: .88rem;
    font-weight: 700;
    gap: 8px;
    padding: 10px 14px;
}

.staffing-selected-user-chip .bi {
    font-size: .8rem;
}

.staffing-day-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

@media (max-width: 991.98px) {
    .staffing-section-actions {
        justify-content: stretch;
    }

    .staffing-section-actions .btn,
    .staffing-quick-filter {
        width: 100%;
    }

    .staffing-summary-line {
        align-items: flex-start;
        flex-direction: column;
    }

    .staffing-summary-line strong {
        text-align: left;
    }
}
