html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    color: #212529;
}

/* ---- Sidebar layout (app-shell = sidebar + content-area, side by side on
   desktop; sidebar becomes an off-canvas drawer under 900px wide, toggled by
   a hidden checkbox - no JS required) ---- */

.sidebar-toggle-check {
    display: none;
}

.app-shell {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    flex-shrink: 0;
    background-color: #1b3a57;
    color: #cfe3f5;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transform: translateX(-100%);
    transition: transform 0.2s ease-in-out;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-brand {
    color: white;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.sidebar-brand-inner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    overflow: hidden;
}

/* Whole-sidebar collapse-to-icon-rail toggle - desktop only (hidden here,
   shown from 900px up below); the mobile off-canvas drawer already handles
   narrow screens, so this control would be redundant there. */
.sidebar-collapse-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 6px;
    color: #cfe3f5;
    cursor: pointer;
    padding: 0;
}

.sidebar-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: white;
}

.sidebar-collapse-btn .nav-icon {
    width: 15px;
    height: 15px;
    transition: transform 0.15s ease-in-out;
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: white;
}

.sidebar-brand small {
    display: block;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #cfe3f5;
    text-transform: none;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
    flex: 1;
}

.sidebar-section-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: #7fa3c2;
    padding: 0.9rem 1.25rem 0.3rem;
}

/* Per-section collapse/expand (My work / My team / Company) - a button
   standing in for the old plain .sidebar-section-label div, so each section
   heading is clickable. State persists per section via localStorage - see
   wwwroot/js/site.js. */
.sidebar-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    font-family: inherit;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: #7fa3c2;
    padding: 0.9rem 1.25rem 0.3rem;
    cursor: pointer;
}

.sidebar-section-toggle:hover {
    color: white;
}

.section-chevron {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    transition: transform 0.15s ease-in-out;
}

.sidebar-section.collapsed .section-chevron {
    transform: rotate(-90deg);
}

.sidebar-section-links {
    display: flex;
    flex-direction: column;
}

.sidebar-section.collapsed .sidebar-section-links {
    display: none;
}

.sidebar-nav a {
    color: #cfe3f5;
    text-decoration: none;
    padding: 0.55rem 1.25rem;
    font-size: 0.94rem;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-nav a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
}

.sidebar-nav a.active {
    background-color: rgba(255, 255, 255, 0.12);
    color: white;
    border-left-color: #4fb0ff;
    font-weight: 600;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem 1.25rem 1.25rem;
    font-size: 0.9rem;
}

.sidebar-user {
    color: #cfe3f5;
    margin-bottom: 0.5rem;
}

.sidebar-footer a,
.sidebar-footer .link-button {
    color: #cfe3f5;
    display: block;
    margin-top: 0.4rem;
    text-decoration: none;
    font-size: 0.92rem;
}

.sidebar-footer a:hover,
.sidebar-footer .link-button:hover {
    color: white;
    text-decoration: underline;
}

.sidebar-backdrop {
    display: none;
}

.content-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.8rem 1.25rem;
    background: white;
    border-bottom: 1px solid #dce3ea;
}

.sidebar-toggle-btn {
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    color: #1b3a57;
}

.topbar-title {
    font-weight: 600;
    color: #1b3a57;
}

/* Login/Create Account (signed out) or the signed-in user's name + Log Out
   (signed in) - always right-aligned in the topbar, visible at every screen
   width so it's never tucked away, unlike the sidebar which can scroll. */
.topbar-auth {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.92rem;
    white-space: nowrap;
}

.topbar-auth a,
.topbar-auth .link-button {
    color: #0078d4;
    text-decoration: none;
    font-weight: 600;
}

.topbar-auth a:hover,
.topbar-auth .link-button:hover {
    text-decoration: underline;
}

.topbar-user {
    color: #5a6b7a;
}

@media (max-width: 899px) {
    .sidebar-toggle-check:checked ~ .app-shell .sidebar {
        transform: translateX(0);
    }

    .sidebar-toggle-check:checked ~ .app-shell .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 90;
    }
}

@media (min-width: 900px) {
    .sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        transform: none;
        transition: width 0.15s ease-in-out;
    }

    /* The topbar itself stays visible at every width (it's what carries the
       login/account menu) - only the hamburger toggle is unnecessary once the
       sidebar is permanently on-screen. */
    .sidebar-toggle-btn {
        display: none;
    }

    .sidebar-collapse-btn {
        display: inline-flex;
    }
}

/* Whole-sidebar icon-rail collapse (desktop only - the "sidebar-collapsed"
   class lives on <html>, set by the inline script in _Layout's <head> and
   toggled by #sidebar-collapse-toggle in wwwroot/js/site.js). Collapsing
   shows every link as an icon only, with the link text as a native tooltip
   (title attribute) - including links inside a section that was individually
   collapsed, since the whole point of the rail is fast access without having
   to reopen a section first. */
@media (min-width: 900px) {
    .sidebar-collapsed .sidebar {
        width: 64px;
    }

    .sidebar-collapsed .sidebar-brand {
        flex-direction: column;
        gap: 0.6rem;
        padding: 1rem 0.5rem;
    }

    .sidebar-collapsed .sidebar-brand-inner span {
        display: none;
    }

    .sidebar-collapsed .sidebar-logo {
        width: 30px;
        height: 30px;
    }

    .sidebar-collapsed .sidebar-collapse-btn .nav-icon {
        transform: rotate(180deg);
    }

    .sidebar-collapsed .sidebar-section-toggle,
    .sidebar-collapsed .sidebar-section-label {
        display: none;
    }

    .sidebar-collapsed .sidebar-section-links {
        display: flex !important;
    }

    .sidebar-collapsed .sidebar-nav a {
        justify-content: center;
        padding: 0.65rem 0;
    }

    .sidebar-collapsed .nav-text {
        display: none;
    }
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
}

h1 {
    color: #1b3a57;
    font-size: 1.8rem;
}

.btn-primary {
    background-color: #0078d4;
    color: white;
    border: none;
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.btn-primary:hover:not(:disabled) {
    background-color: #005a9e;
}

.btn-primary:disabled {
    background-color: #99c5e8;
    cursor: not-allowed;
}

.status-message {
    margin-top: 1rem;
    color: #444;
    font-style: italic;
}

.status-error {
    color: #b3261e;
    font-style: normal;
    font-weight: 600;
}

.result-card {
    margin-top: 1.5rem;
    background: white;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.result-card p {
    margin: 0.35rem 0;
}

#address-label {
    font-weight: 600;
    color: #0078d4;
}

.site-footer {
    margin-top: 3rem;
    padding: 1.25rem 0;
    text-align: center;
    color: #6c757d;
    font-size: 0.85rem;
    border-top: 1px solid #dce3ea;
}

.footer-logo {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 0.4rem;
    opacity: 0.85;
}

.auth-logo {
    display: block;
    width: 84px;
    height: 84px;
    margin: 0 auto 1rem;
}

.text-danger {
    color: #b3261e;
}

/* ---- Attendance / Clock In-Out feature ---- */

.info-note {
    background-color: #eaf3fb;
    border: 1px solid #bcdcf4;
    border-left: 4px solid #0078d4;
    border-radius: 4px;
    padding: 0.85rem 1rem;
    margin: 1rem 0;
    font-size: 0.92rem;
    color: #1b3a57;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #1b3a57;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 4rem;
}

.password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #0078d4;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.4rem;
}

.password-toggle:hover {
    text-decoration: underline;
}

.form-control {
    width: 100%;
    max-width: 420px;
    padding: 0.55rem 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid #c7d0d9;
    border-radius: 6px;
    box-sizing: border-box;
}

/* Every other .form-control on the site is an <input>, which already renders in the
   page's sans-serif font without help - textarea (Feedback/Submit.cshtml) is the first
   multi-line field, and browsers default <textarea> to a monospace font, so without
   this it stood out against every other field on the page. */
textarea.form-control {
    max-width: 100%;
    resize: vertical;
}

.form-control:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.15);
}

.field-error {
    display: block;
    color: #b3261e;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.validation-summary {
    color: #b3261e;
    margin-bottom: 1rem;
}

.validation-summary ul {
    margin: 0;
    padding-left: 1.2rem;
}

.button-row {
    display: flex;
    gap: 0.85rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.btn-clock-in {
    background-color: #1a8f4c;
}

.btn-clock-in:hover:not(:disabled) {
    background-color: #147a3f;
}

.btn-clock-out {
    background-color: #c9302c;
}

.btn-clock-out:hover:not(:disabled) {
    background-color: #a8241f;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
}

.badge-in {
    background-color: #1a8f4c;
}

.badge-out {
    background-color: #c9302c;
}

.detail-list {
    margin-top: 1rem;
}

.detail-list dt {
    font-weight: 600;
    color: #1b3a57;
    margin-top: 0.85rem;
}

.detail-list dd {
    margin: 0.2rem 0 0 0;
}

.muted {
    color: #6c757d;
    font-size: 0.88rem;
}

/* ---- Account (Register / Login / Logout) ---- */

.link-button {
    background: none;
    border: none;
    padding: 0;
    color: #cfe3f5;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
}

.link-button:hover {
    color: white;
    text-decoration: underline;
}

.status-banner {
    background-color: #eafaf1;
    border: 1px solid #a9dfbf;
    border-left: 4px solid #1a8f4c;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    color: #1b3a57;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-group-inline {
    flex: 1 1 180px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 1.05rem;
    height: 1.05rem;
}

.form-check-label {
    margin-bottom: 0;
    font-weight: 400;
}

/* ---- Wide pages (Dashboard, Holiday, Employees) ---- */

.container-wide {
    max-width: 1100px;
}

.table-scroll {
    overflow-x: auto;
    margin-top: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.92rem;
}

.data-table th,
.data-table td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid #e6ebf0;
    text-align: left;
    white-space: nowrap;
}

/* Opt out of the nowrap above for a column that holds free-form text of unpredictable
   length (e.g. Feedback/Index.cshtml's Suggestion column, up to 2000 characters) - every
   other data-table column is a short fixed-format value (a date, a name, a status) where
   nowrap is the right default, but nowrap on a long paragraph would force the whole row
   into one very wide horizontally-scrolling line instead of just wrapping in place. */
.data-table td.wrap {
    white-space: normal;
    word-break: break-word;
}

.data-table th {
    background-color: #eef3f8;
    color: #1b3a57;
    font-weight: 600;
}

.data-table tbody tr:hover {
    background-color: #f7fafc;
}

.data-table td.numeric,
.data-table th.numeric {
    text-align: right;
}

.data-table td.total,
.data-table th.total {
    font-weight: 700;
}

/* ---- Week navigator (Dashboard) ---- */

.week-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.week-nav a {
    color: #0078d4;
    text-decoration: none;
    font-weight: 600;
}

.week-nav a:hover {
    text-decoration: underline;
}

.week-nav .week-label {
    font-weight: 600;
    color: #1b3a57;
}

.week-nav .badge-current {
    background-color: #eaf3fb;
    color: #0078d4;
    border-radius: 999px;
    padding: 0.15rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ---- Status badges (Holiday requests) ---- */

.badge-pending {
    background-color: #b7791f;
}

.badge-approved {
    background-color: #1a8f4c;
}

.badge-rejected {
    background-color: #c9302c;
}

.badge-cancelled {
    background-color: #6c757d;
}

/* ---- Status badges (Employee accounts - Views/Employees/Index.cshtml) ---- */

.badge-deactivated {
    background-color: #495057;
}

/* ---- Status badges (shift flags - forgotten clock-out, over-target hours) ---- */

.badge-flagged {
    background-color: #e07b17;
    font-size: 0.78rem;
    padding: 0.2rem 0.6rem;
}

.badge-overtime {
    background-color: #c9302c;
    font-size: 0.78rem;
    padding: 0.2rem 0.6rem;
}

/* ---- Holiday balance summary cards ---- */

.stat-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0 1.5rem;
}

.stat-card {
    background: white;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    padding: 0.9rem 1.25rem;
    min-width: 140px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-card .stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1b3a57;
}

.stat-card .stat-label {
    font-size: 0.82rem;
    color: #6c757d;
    margin-top: 0.15rem;
}

.stat-card.stat-remaining .stat-value {
    color: #0078d4;
}

/* ---- Inline row actions (approve/reject, cancel) ---- */

.row-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.3rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 5px;
}

.btn-approve {
    background-color: #1a8f4c;
}

.btn-approve:hover:not(:disabled) {
    background-color: #147a3f;
}

.btn-reject {
    background-color: #c9302c;
}

.btn-reject:hover:not(:disabled) {
    background-color: #a8241f;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #565e64;
}

.section-heading {
    margin-top: 2rem;
    color: #1b3a57;
    font-size: 1.25rem;
}

.role-pill {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background-color: #eef3f8;
    color: #1b3a57;
}

.empty-state {
    color: #6c757d;
    font-style: italic;
    padding: 1rem 0;
}

/* ---- Settings hub ---- */

.breadcrumb {
    margin-bottom: 0.5rem;
}

.breadcrumb a {
    color: #0078d4;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.settings-card {
    display: block;
    background: white;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    padding: 1.25rem 1.4rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.settings-card:hover {
    border-color: #0078d4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.settings-card-title {
    font-weight: 700;
    color: #1b3a57;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.settings-card-desc {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ---- Home dashboard: warm gold-on-navy accents, compact drill-down cards ----
   Scoped to the dashboard itself (.dash-*) so the rest of the app - Settings,
   other tile grids - keeps its existing look. */

.dash-hero {
    background: linear-gradient(135deg, #1b3a57 0%, #234a6e 55%, #2f5c85 100%);
    color: #fdf9f0;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-top: 1.25rem;
    box-shadow: 0 4px 18px rgba(27, 58, 87, 0.2);
}

.dash-hero h1 {
    color: #ffffff;
    margin: 0 0 0.35rem;
}

.dash-hero .muted {
    color: #cfe3f5;
    margin: 0;
}

.dash-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0 1.5rem;
}

.dash-card {
    display: block;
    background: #fdf9f0;
    border: 1px solid #f0e2b8;
    border-left: 4px solid #c9a227;
    border-radius: 10px;
    padding: 1rem 1.15rem;
    box-shadow: 0 2px 8px rgba(201, 162, 39, 0.1);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;
}

a.dash-card:hover {
    box-shadow: 0 4px 14px rgba(201, 162, 39, 0.22);
    transform: translateY(-1px);
}

details.dash-card {
    padding: 0;
}

details.dash-card summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.15rem;
    position: relative;
}

details.dash-card summary::-webkit-details-marker {
    display: none;
}

.dash-card-arrow {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    color: #a3801a;
    font-size: 0.75rem;
    transition: transform 0.15s ease-in-out;
}

details.dash-card[open] .dash-card-arrow {
    transform: rotate(180deg);
}

.dash-card-value {
    font-size: 1.9rem;
    font-weight: 700;
    color: #1b3a57;
    line-height: 1.15;
}

.dash-card-unit {
    font-size: 1rem;
    font-weight: 500;
    color: #a3801a;
    margin-left: 0.3rem;
}

.dash-card-label {
    font-size: 0.85rem;
    color: #6b6250;
    margin-top: 0.2rem;
    padding-right: 1.25rem;
}

.dash-card-detail {
    padding: 0 1.15rem 1.1rem;
    margin-top: 0.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid #f0e2b8;
}

.dash-cta-card {
    background: linear-gradient(135deg, #1b3a57, #2a5075);
    border-left: 4px solid #c9a227;
}

.dash-cta-card .dash-card-value {
    color: #e8cf7a;
}

.dash-cta-card .dash-card-unit {
    color: #cfe3f5;
}

.dash-cta-card .dash-card-label {
    color: #cfe3f5;
    padding-right: 0;
}

.dash-quick-access .settings-card:hover {
    border-color: #c9a227;
    box-shadow: 0 2px 8px rgba(201, 162, 39, 0.18);
}

/* ---- User Manual ---- */

.manual-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.manual-header img {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.manual-toc {
    background: white;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    padding: 1.1rem 1.4rem;
    margin: 1.25rem 0 2rem;
}

.manual-toc-title {
    font-weight: 700;
    color: #1b3a57;
    margin-bottom: 0.6rem;
}

.manual-toc ol {
    columns: 2;
    -moz-columns: 2;
    -webkit-columns: 2;
    margin: 0;
    padding-left: 1.2rem;
}

.manual-toc li {
    break-inside: avoid;
    margin-bottom: 0.35rem;
}

.manual-toc a {
    color: #0078d4;
    text-decoration: none;
}

.manual-toc a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .manual-toc ol {
        columns: 1;
    }
}

.manual-section {
    margin-top: 2.75rem;
    padding-top: 0.25rem;
    border-top: 1px solid #dce3ea;
}

.manual-section:first-of-type {
    border-top: none;
}

.manual-role-tags {
    margin: 0.4rem 0 1rem;
}

.manual-role-tags .role-pill {
    margin-right: 0.4rem;
}

.manual-step-list {
    padding-left: 1.3rem;
}

.manual-step-list li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.manual-back-to-top {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: 0.85rem;
}

/* ---- Data Insights ---- */

.insight-section {
    margin-top: 2.5rem;
}

.insight-generated-at {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: -0.5rem;
}

.insight-bar-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.1rem;
}

.insight-bar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.insight-bar-label {
    width: 140px;
    flex-shrink: 0;
    font-weight: 600;
    color: #1b3a57;
    font-size: 0.9rem;
}

.insight-bar-track {
    flex: 1;
    background: #eef3f8;
    border-radius: 999px;
    height: 14px;
    overflow: hidden;
}

.insight-bar-fill {
    height: 100%;
    border-radius: 999px;
}

.insight-bar-value {
    width: 34px;
    text-align: right;
    font-weight: 600;
    color: #1b3a57;
    font-size: 0.9rem;
}

/* Fixed, non-cycled color per role/status - see InsightsController for the
   assignment. Direct value labels sit next to every bar (see .insight-bar-value
   above), so identity is never color-alone. */
.insight-role-employee { background-color: #0078d4; }
.insight-role-supervisor { background-color: #1a8f4c; }
.insight-role-hr { background-color: #b7791f; }
.insight-role-admin { background-color: #7c4dbd; }
.insight-role-superadmin { background-color: #c9302c; }

.insight-status-pending { background-color: #b7791f; }
.insight-status-approved { background-color: #1a8f4c; }
.insight-status-rejected { background-color: #c9302c; }
.insight-status-cancelled { background-color: #6c757d; }

.insight-week-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.85rem;
    height: 150px;
    margin-top: 1.25rem;
    padding: 0 0.25rem;
}

.insight-week-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.insight-week-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1b3a57;
    margin-bottom: 0.35rem;
}

.insight-week-bar-track {
    width: 100%;
    max-width: 38px;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.insight-week-bar {
    width: 100%;
    background-color: #0078d4;
    border-radius: 4px 4px 0 0;
}

.insight-week-bar.is-today {
    background-color: #1a8f4c;
}

.insight-week-label {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: #6c757d;
    text-align: center;
}

.insight-caveat {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* ---- Clock In/Out + Lunch widget (Views/Shared/_ClockWidget.cshtml) - shared by the
   dedicated Attendance page and the Home dashboard's clock widget card. ---- */

.name-pill__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background-color: #1b3a57;
    color: #fdf9f0;
    font-weight: 700;
    font-size: 0.95rem;
    margin-right: 0.6rem;
    vertical-align: middle;
}

.clock-widget-card {
    margin-top: 1.25rem;
}

.clock-widget-status {
    margin-top: 0;
    color: #1b3a57;
}

.clock-widget-disabled {
    color: #b3261e;
}

.clock-widget-buttons {
    margin-top: 0.75rem;
}

.btn-lunch-start {
    background-color: #b7791f;
}

.btn-lunch-start:hover:not(:disabled) {
    background-color: #9c6519;
}

.btn-lunch-end {
    background-color: #0078d4;
}

.btn-lunch-end:hover:not(:disabled) {
    background-color: #0063ad;
}

/* ---- Employee Directory (Views/Directory/*) ---- */

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.directory-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    border: 1px solid #dce3ea;
    border-radius: 10px;
    padding: 1.25rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.directory-card:hover {
    box-shadow: 0 4px 14px rgba(27, 58, 87, 0.15);
    transform: translateY(-1px);
    border-color: #c9a227;
}

.directory-photo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
}

.directory-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1b3a57;
    color: #fdf9f0;
    font-weight: 700;
    font-size: 1.8rem;
}

.directory-name {
    font-weight: 600;
    color: #1b3a57;
}

.directory-contact {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.2rem;
    word-break: break-word;
}

.directory-profile-card {
    max-width: 480px;
    margin-top: 1.25rem;
    text-align: center;
}

.directory-photo-large {
    width: 140px;
    height: 140px;
    font-size: 2.8rem;
    margin: 0 auto 1rem;
}

/* ---- Feedback picture / profile photo uploads ---- */

.feedback-thumb {
    display: block;
    margin-top: 0.5rem;
    max-width: 160px;
    max-height: 160px;
    border-radius: 6px;
    border: 1px solid #dce3ea;
    object-fit: cover;
}

.profile-photo-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 0.5rem;
}

.profile-photo-preview {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1b3a57;
    color: #fdf9f0;
    font-weight: 700;
    font-size: 1.8rem;
}
