@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --sf-bg: #f2f6ff;
    --sf-surface: #ffffff;
    --sf-border: #dbe6f7;
    --sf-text: #152238;
    --sf-muted: #5f7088;
    --sf-brand: #1d5fdb;
    --sf-brand-dark: #1749a8;
    --sf-brand-soft: #e8f0ff;
    --sf-manager-rail-width: 248px;
    --sf-rail-edge-gap: 0.75rem;
    --sf-navbar-height: 4.5rem;
    --sf-navbar-offset: 10px;
}

/* Root scale: slightly below browser default so tables, forms, and Bootstrap rem units read a bit tighter. */
html {
    font-size: 87.5%;
}

body {
    background: radial-gradient(circle at top right, #eef4ff 0%, var(--sf-bg) 38%, var(--sf-bg) 100%);
    color: var(--sf-text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.95rem;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.sf-navbar {
    background: linear-gradient(120deg, #0e1b33 0%, #18335f 65%, #1d4f8f 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1040;
}

.sf-navbar .navbar-brand {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.sf-brand-subtitle {
    font-size: 0.65rem;
    opacity: 0.78;
    font-weight: 500;
    margin-top: -2px;
    margin-left: 2.5rem;
}

.sf-brand-logo {
    width: 190px;
    max-width: 100%;
    /* Keep the logo within the fixed navbar height (minus padding + subtitle row). */
    max-height: calc(var(--sf-navbar-height) - 1.2rem);
    height: auto;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.sf-navbar .navbar-brand {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.sf-login-logo {
    width: 260px;
    max-width: 90%;
    height: auto;
    border-radius: 0;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
}

.sf-shell {
    padding-left: clamp(0.95rem, 1.8vw, 1.9rem);
    padding-right: clamp(0.95rem, 1.8vw, 1.9rem);
    padding-bottom: 5.25rem;
}

.sf-shell.sf-shell--with-manager-rail {
    padding-left: calc(var(--sf-manager-rail-width) + 1.25rem);
    padding-right: clamp(0.95rem, 1.8vw, 1.9rem);
}


.sf-app-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1035;
    border-top: 1px solid var(--sf-border);
    background: rgba(248, 251, 255, 0.96);
    backdrop-filter: blur(4px);
    box-shadow: 0 -8px 20px rgba(16, 35, 67, 0.08);
}

.sf-app-footer__inner {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    padding-left: clamp(0.95rem, 1.8vw, 1.9rem);
    padding-right: clamp(0.95rem, 1.8vw, 1.9rem);
    color: var(--sf-muted);
    font-size: 0.84rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    justify-content: space-between;
}

.sf-app-footer__left,
.sf-app-footer__right {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.sf-app-footer__right {
    margin-left: auto;
    justify-content: flex-end;
    text-align: right;
}

.sf-app-footer__version {
    font-weight: 600;
    color: #415575;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1;
}

.sf-app-footer__logo {
    width: auto;
    height: 30px;
    display: inline-block;
}

.sf-app-footer__inner--centered {
    justify-content: center;
    text-align: center;
    gap: 0.2rem 0.55rem;
}

.sf-app-footer__inner--centered .sf-app-footer__left,
.sf-app-footer__inner--centered .sf-app-footer__right {
    width: 100%;
    margin-left: 0;
    justify-content: center;
    text-align: center;
}

.sf-app-footer__inner--centered .sf-app-footer__right {
    margin-top: -0.1rem;
}

.sf-app-footer__label {
    font-weight: 600;
    color: #415575;
}

.sf-app-footer__sep {
    color: #95a7c2;
}

.sf-app-footer a {
    color: #2d5da8;
    text-decoration: none;
}

.sf-app-footer a:hover {
    text-decoration: underline;
}

.sf-whatsapp-float {
    position: fixed;
    left: 16px;
    bottom: 56px;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    z-index: 1041;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sf-whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.sf-whatsapp-float:active {
    transform: translateY(0);
}

.sf-whatsapp-float img {
    width: 22px;
    height: 22px;
    display: block;
}

@media (max-width: 480px) {
    .sf-whatsapp-float {
        left: 12px;
        bottom: 52px;
        width: 44px;
        height: 44px;
    }

    .sf-whatsapp-float img {
        width: 20px;
        height: 20px;
    }
}

.sf-breadcrumb-wrap {
    border: 1px solid var(--sf-border);
    border-radius: 12px;
    background: #f7faff;
    padding: 0.5rem 0.75rem;
}

.sf-breadcrumb {
    font-size: 0.82rem;
}

.sf-breadcrumb .breadcrumb-item a {
    color: #335d99;
    text-decoration: none;
}

.sf-breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline;
}

.sf-breadcrumb .breadcrumb-item.active {
    color: var(--sf-text);
    font-weight: 600;
}

.sf-page-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.sf-page-subtitle {
    color: var(--sf-muted);
    margin-bottom: 1.1rem;
}

.sf-dashboard-logo-panel {
    border: 1px solid var(--sf-border);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
    padding: 1.4rem 1.2rem;
    text-align: center;
}

.sf-dashboard-logo-admin {
    width: min(100%, 460px);
    max-height: 160px;
    height: auto;
    object-fit: contain;
}

.sf-dashboard-logo-manager {
    max-width: 360px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.sf-dashboard-profile-list dt {
    color: var(--sf-muted);
    font-weight: 600;
}

.sf-dashboard-profile-list dd {
    font-weight: 500;
}

.sf-dashboard-manager-actions {
    width: 100%;
}

.card {
    border: 1px solid var(--sf-border);
    border-radius: 14px;
    background: var(--sf-surface);
    box-shadow: 0 10px 26px rgba(16, 35, 67, 0.07);
}

.card-header {
    font-weight: 600;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-bottom: 1px solid var(--sf-border);
}

.card > .card-header:first-child {
    border-top-left-radius: calc(14px - 1px);
    border-top-right-radius: calc(14px - 1px);
}

@media (max-width: 767.98px) {
    .sf-navbar .navbar-nav-mobile {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem 0;
    }
    .container.sf-shell,
    .container-fluid.sf-shell {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .sf-shell {
        padding-bottom: 6.75rem;
    }

    .sf-app-footer__inner {
        font-size: 0.8rem;
        gap: 0.3rem;
        justify-content: center;
    }

    .sf-app-footer__left,
    .sf-app-footer__right {
        width: 100%;
        justify-content: center;
    }

    .sf-dashboard-logo-panel {
        padding: 1rem 0.9rem;
    }

    .sf-dashboard-logo-admin {
        width: min(100%, 330px);
        max-height: 130px;
    }

    .sf-dashboard-manager-actions {
        justify-content: flex-start !important;
    }

    .sf-shell.sf-shell--with-manager-rail {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .sf-manager-nav-rail {
        position: static !important;
        width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        left: auto !important;
        top: auto !important;
        gap: 0.45rem !important;
    }

    .sf-manager-nav-group-label {
        margin-top: 0.1rem;
        padding-top: 0.4rem;
    }

    .sf-manager-nav-rail .sf-manager-nav-link--standard {
        display: none !important;
    }

    .sf-manager-nav-rail .sf-manager-nav-link--punch {
        display: none !important;
    }

    .sf-breadcrumb-wrap {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .sf-manager-nav-rail .sf-manager-nav-link--punch {
        display: none !important;
    }
}

@media (max-width: 1200px) and (min-width: 768px) {
    .sf-shell.sf-shell--with-manager-rail {
        padding-left: calc(var(--sf-manager-rail-width) + 0.75rem);
    }

    .sf-manager-nav-rail {
        left: 0.85rem !important;
    }
}

.btn-primary {
    background: linear-gradient(100deg, var(--sf-brand) 0%, var(--sf-brand-dark) 100%);
    border-color: var(--sf-brand-dark);
}

.btn-primary:hover {
    border-color: var(--sf-brand-dark);
    filter: brightness(0.98);
}

.btn-outline-secondary {
    color: #1f3f73;
    border-color: #8ea9d1;
    background: #edf3ff;
    font-weight: 500;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active,
.btn-outline-secondary.active,
.btn-check:checked + .btn-outline-secondary {
    color: #ffffff;
    border-color: #355f9e;
    background: #355f9e;
}

.btn-outline-secondary:disabled,
.btn-outline-secondary.disabled {
    color: #7a8fae;
    border-color: #c7d5eb;
    background: #e8f0ff;
}

.sf-page-actions .btn-outline-secondary {
    color: #ffffff;
    border-color: #2d5da8;
    background: #3d6fbe;
}

.sf-page-actions .btn-outline-secondary:hover,
.sf-page-actions .btn-outline-secondary:focus,
.sf-page-actions .btn-outline-secondary:active,
.sf-page-actions .btn-outline-secondary.active,
.sf-page-actions .btn-check:checked + .btn-outline-secondary {
    color: #ffffff;
    border-color: #254f8f;
    background: #2f5ea8;
}

.sf-page-actions a.btn[href^="/manager/"] {
    transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.sf-page-actions a.btn[href^="/manager/"]:not([aria-current="page"]) {
    opacity: 0.78;
}

.sf-page-actions a.btn[href^="/manager/"]:not([aria-current="page"]):hover {
    opacity: 0.92;
}

.sf-page-actions a.btn[href^="/manager/"][aria-current="page"] {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(29, 95, 219, 0.24);
}

.sf-page-actions .sf-btn-required {
    border-color: #9c6a0a;
    background: #c88400;
    color: #fffdf4;
    opacity: 1;
    animation: sfRequiredPulse 1.1s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}

.sf-manager-nav-rail .sf-btn-required {
    border-color: #9c6a0a;
    background: #c88400;
    color: #fffdf4;
    opacity: 1;
    animation: sfRequiredPulse 1.1s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}

.sf-manager-nav-rail .sf-btn-payroll-due {
    border-color: #9c6a0a;
    background: #c88400;
    color: #fffdf4;
    opacity: 1;
    animation: sfRequiredPulse 1.1s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}

.sf-page-actions .sf-btn-required:hover,
.sf-page-actions .sf-btn-required:focus,
.sf-page-actions .sf-btn-required:active {
    border-color: #835906;
    background: #ad7300;
    color: #fffdf4;
}

.sf-manager-nav-rail .sf-btn-required:hover,
.sf-manager-nav-rail .sf-btn-required:focus,
.sf-manager-nav-rail .sf-btn-required:active {
    border-color: #835906;
    background: #ad7300;
    color: #fffdf4;
}

.sf-manager-nav-rail .sf-btn-payroll-due:hover,
.sf-manager-nav-rail .sf-btn-payroll-due:focus,
.sf-manager-nav-rail .sf-btn-payroll-due:active {
    border-color: #835906;
    background: #ad7300;
    color: #fffdf4;
}

.sf-btn-required__badge {
    margin-left: 0.4rem;
    font-size: 0.66rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    line-height: 1.2;
}

.sf-manager-nav-rail {
    position: fixed;
    /* --sf-rail-top is set by JS (sfAlignNavRail) to match the exact rendered
       navbar bottom + margin. Fallback covers the rare no-JS case. */
    top: var(--sf-rail-top, calc(var(--sf-navbar-height) + 1.5rem));
    left: var(--sf-rail-edge-gap);
    width: var(--sf-manager-rail-width);
    z-index: 1030;
    display: flex !important;
    flex-direction: column;
    flex-wrap: nowrap !important;
    align-items: stretch;
    gap: 0.5rem !important;
    max-height: calc(100vh - var(--sf-rail-top, calc(var(--sf-navbar-height) + 1.5rem)) - 6.15rem);
    overflow-y: auto;
    padding: 0.75rem;
    border: 1px solid var(--sf-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 30px rgba(16, 35, 67, 0.12);
}

.sf-manager-nav-rail .btn {
    width: 100%;
    min-height: 2.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    white-space: nowrap;
}
.sf-manager-nav-group-label {
    margin: 0.2rem 0 0.05rem;
    padding-top: 0.55rem;
    border-top: 1px dashed #c7d5eb;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5f7088;
    font-weight: 700;
}

.sf-manager-nav-rail a.btn {
    white-space: nowrap;
}

.sf-manager-nav-rail .btn.btn-primary.disabled,
.sf-manager-nav-rail .btn.btn-primary:disabled {
    color: #ffffff;
    border-color: #1f8a4d;
    background: linear-gradient(120deg, #1f8a4d 0%, #27a35c 100%);
    opacity: 1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 4px 10px rgba(24, 122, 69, 0.28);
}

@keyframes sfRequiredPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(242, 174, 59, 0.75);
        transform: translateY(0);
    }
    40% {
        box-shadow: 0 0 0 12px rgba(242, 174, 59, 0);
        transform: translateY(-1px) scale(1.03);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(224, 113, 90, 0);
        transform: translateY(0);
    }
}

.form-control,
.form-select {
    border-radius: 10px;
    border-color: #d4deef;
    font-size: 0.93rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #9bb6ff;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

/* Action-complete banners use alert-info in views; style them as success-green. */
.alert.alert-info {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.sf-table thead th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--sf-muted);
    border-bottom-width: 1px;
}

.sf-table td {
    vertical-align: middle;
}

.sf-dashboard-employee-table tbody tr:nth-child(odd) td {
    background: #f8fbff;
}

.sf-dashboard-employee-table tbody tr:nth-child(even) td {
    background: #eef4ff;
}

.sf-tooltip-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 0.25rem;
    border-radius: 999px;
    border: 1px solid #b4c3da;
    color: #4f6281;
    font-size: 0.67rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}

.sf-month-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.sf-month-summary__label {
    font-weight: 600;
    color: #324863;
    margin-right: 0.15rem;
}

.sf-month-badge {
    border: 1px solid #d9e2f3;
    color: #304865;
    font-size: 0.74rem;
    font-weight: 600;
}

.sf-month-pill {
    border: 1px solid #d9e2f3;
    color: #304865;
    background: #f4f8ff;
    font-size: 0.74rem;
    font-weight: 400;
    line-height: 1.15;
    padding: 0.22rem 0.55rem;
    border-radius: 8px;
}

.sf-month-pill:hover {
    background: #eaf1ff;
    color: #203651;
}

.sf-month-pill.is-active {
    background: #dce9ff;
    border-color: #b7cff8;
    color: #17365b;
}

.sf-configured-shift-row {
    cursor: pointer;
}

.sf-configured-shift-row.is-selected td {
    background: #e8f1ff;
}

.sf-configured-shift-row.is-selected td:first-child {
    box-shadow: inset 4px 0 0 #4f83d8;
}

/* Subtle row tinting for shift assignment history by shift type. */
.sf-shift-row--day td {
    background: #e8f1ff;
}

.sf-shift-row--early td {
    background: #e6f8ee;
}

.sf-shift-row--night td {
    background: #f1edff;
}

.sf-manager-punch-mode.is-active {
    box-shadow: 0 6px 16px rgba(29, 95, 219, 0.25);
}

.sf-qr-reader {
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--sf-border);
    border-radius: 12px;
    overflow: hidden;
    background: #0f1b31;
}

.sf-qr-reader video {
    width: 100% !important;
    height: auto !important;
}

.sf-shift-row--day td:first-child {
    border-left: 4px solid #4f83d8;
}

.sf-shift-row--early td:first-child {
    border-left: 4px solid #41a96a;
}

.sf-shift-row--night td:first-child {
    border-left: 4px solid #7f67cf;
}

.sf-shift-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
    color: #17365b;
    background: #e8f1ff;
}

.sf-shift-badge--day {
    background: #e8f1ff;
    border-color: #b7cff8;
    color: #17365b;
}

.sf-shift-badge--early {
    background: #e6f8ee;
    border-color: #b8e3c9;
    color: #1f6a3f;
}

.sf-shift-badge--night {
    background: #f1edff;
    border-color: #cfbff7;
    color: #4d3c87;
}

.sf-assignment-history-scroll {
    max-height: 420px;
    overflow-y: auto;
}

.sf-archive-list {
    max-height: 320px;
    overflow-y: auto;
}

.sf-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 1rem;
    color: var(--sf-muted);
    text-align: center;
    background: #fafcff;
}

.sf-badge {
    font-size: 0.72rem;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
}

/* Keep all badge-like labels at regular weight across the app. */
.badge,
.sf-badge,
.sf-btn-required__badge,
.sf-month-badge {
    font-weight: 400 !important;
}

#sf-install-btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
}

#sf-alert-toggle {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
}

.sf-alert-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 340px;
    background: #fff;
    color: var(--sf-text);
    border: 1px solid var(--sf-border);
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(16, 35, 67, 0.14);
    z-index: 1050;
    overflow: hidden;
}

.sf-alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0.85rem;
    background: var(--sf-brand-soft);
    border-bottom: 1px solid var(--sf-border);
}

.sf-alert-header strong {
    color: var(--sf-text);
}

.sf-alert-header .btn-link {
    color: var(--sf-brand);
    text-decoration: underline;
    font-weight: 500;
}

.sf-alert-empty {
    padding: 0.85rem;
    color: var(--sf-muted);
    font-size: 0.88rem;
}

.sf-alert-list {
    max-height: 360px;
    overflow: auto;
}

.sf-alert-item {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid #eef3fc;
}

.sf-alert-item:last-child {
    border-bottom: none;
}

.sf-alert-title {
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.2rem;
}

.sf-alert-message {
    font-size: 0.86rem;
    color: #23344f;
}

.sf-alert-time {
    margin-top: 0.25rem;
    font-size: 0.78rem;
    color: var(--sf-muted);
}

.sf-alert-unread {
    background: #f6f9ff;
}

.sf-alert-read {
    background: #fff;
}

.sf-alert-pulse {
    animation: sfPulse 1.2s ease;
}

@keyframes sfPulse {
    0% { box-shadow: 0 0 0 0 rgba(29, 95, 219, 0.45); }
    100% { box-shadow: 0 0 0 12px rgba(29, 95, 219, 0); }
}

.sf-calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.sf-calendar-day {
    border: 1px solid var(--sf-border);
    border-radius: 12px;
    padding: 0.75rem;
    background: #fff;
}

.sf-calendar-day--active {
    border-color: #b4c9ef;
    box-shadow: 0 6px 18px rgba(16, 35, 67, 0.08);
}

.sf-calendar-day__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.sf-calendar-events {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.sf-calendar-events li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0;
    border-bottom: 1px dashed #e5edf9;
}

.sf-calendar-events li:last-child {
    border-bottom: none;
}

.sf-month-head,
.sf-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
}

.sf-month-head span {
    font-size: 0.76rem;
    text-transform: uppercase;
    color: var(--sf-muted);
    text-align: center;
}

.sf-month-cell {
    border: 1px solid var(--sf-border);
    border-radius: 10px;
    min-height: 66px;
    padding: 0.35rem 0.45rem;
    background: #fff;
}

.sf-month-cell--blank {
    border-style: dashed;
    background: #fafcff;
}

.sf-month-cell--active {
    border-color: #a9c0ea;
    background: #f7faff;
}

.sf-month-cell__date {
    font-weight: 700;
    font-size: 0.86rem;
}

.sf-month-cell__meta {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    line-height: 1.25;
}

.sf-outlook-head,
.sf-outlook-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
}

.sf-outlook-head span {
    text-align: center;
    font-size: 0.75rem;
    color: var(--sf-muted);
    text-transform: uppercase;
}

.sf-outlook-cell {
    border: 1px solid var(--sf-border);
    border-radius: 10px;
    background: #fff;
    min-height: 102px;
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
}

.sf-outlook-cell--active {
    border-color: #9db8ea;
    box-shadow: inset 0 0 0 1px rgba(29, 95, 219, 0.1);
}

.sf-outlook-cell--selected {
    border-color: var(--sf-brand);
    box-shadow: 0 0 0 2px rgba(29, 95, 219, 0.22);
}

.sf-outlook-cell--muted {
    background: #f8fbff;
    color: #8a9ab2;
}

.sf-outlook-cell--out-range {
    opacity: 0.65;
}

.sf-outlook-cell__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.sf-outlook-cell__day {
    font-weight: 700;
    font-size: 0.92rem;
}

.sf-outlook-cell__dow {
    font-size: 0.72rem;
    color: var(--sf-muted);
}

.sf-outlook-cell__badges {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.sf-outlook-cell__meta {
    font-size: 0.72rem;
    line-height: 1.25;
    color: #2b3f5f;
}

.sf-outlook-cell__chips {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sf-event-chip {
    display: inline-block;
    border-radius: 8px;
    padding: 0.1rem 0.38rem;
    font-size: 0.68rem;
    font-weight: 600;
    width: fit-content;
}

.sf-event-chip--in {
    color: #0f5132;
    background: #d1f3e1;
}

.sf-event-chip--out {
    color: #084298;
    background: #d8e8ff;
}

.sf-event-chip--unknown {
    color: #664d03;
    background: #fff2cc;
}

.sf-day-panel {
    position: sticky;
    top: 84px;
}

.sf-day-events {
    list-style: none;
    padding-left: 0;
}

.sf-day-events li {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.3rem 0;
    border-bottom: 1px dashed #e5edf9;
}

.sf-day-events li:last-child {
    border-bottom: none;
}

.sf-punch-live-timer {
    --sf-ring-progress: 0%;
    border: 1px solid #dbe7f3;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(120deg, #f6fbff 0%, #eef6ff 100%);
}

.sf-punch-live-timer__ring {
    width: clamp(170px, 42vw, 250px);
    aspect-ratio: 1 / 1;
    margin: 0.15rem auto 0.4rem;
    border-radius: 50%;
    background: conic-gradient(#2f6fd7 var(--sf-ring-progress), #d5e3f6 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease;
}

.sf-punch-live-timer__ring-inner {
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border-radius: 50%;
    background: #f8fbff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px #d9e6f9;
}

.sf-punch-live-timer__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5b6b79;
    margin-bottom: 0.3rem;
}

.sf-punch-live-timer__value {
    font-size: clamp(1.65rem, 6vw, 2.4rem);
    line-height: 1;
    font-weight: 700;
    color: #173b64;
    font-variant-numeric: tabular-nums;
}

.sf-punch-live-timer__meta {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #5b6b79;
}

.sf-punch-live-timer--active {
    border-color: #8fcb9f;
    background: linear-gradient(120deg, #f4fff6 0%, #e9f9ee 100%);
}

.sf-punch-live-timer--active .sf-punch-live-timer__value {
    color: #0f6b2f;
}

.sf-punch-live-timer--active .sf-punch-live-timer__ring {
    background: conic-gradient(#24a148 var(--sf-ring-progress), #d8efe0 0);
}

.sf-punch-live-timer--active .sf-punch-live-timer__ring-inner {
    background: #f5fff7;
    box-shadow: inset 0 0 0 1px #cae8d2;
}

@media (max-width: 991.98px) {
    .sf-outlook-head,
    .sf-outlook-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Sortable table headers: keep label and sort indicator on same line */
.sf-sort-btn,
.sf-employee-sort-btn,
.sf-attendance-sort-btn {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.2em;
}
