/* Employee Portal — base theme (TeamPoint360 colours and fonts are layered on top in teampoint.css) */

:root {
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --color-heading: #1e293b;
    --color-text: #334155;
    --color-muted: #94a3b8;
    --color-border: #e2e8f0;
    --color-primary: #0b4fa8;
    --color-primary-light: #dbeafe;
    --color-orange: #f97316;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.06);
}

html.dark, body.dark {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-sidebar: #1a2332;
    --color-heading: #f1f5f9;
    --color-text: #cbd5e1;
    --color-muted: #64748b;
    --color-border: #334155;
    --color-primary: #3b82f6;
    --color-primary-light: rgba(59,130,246,0.1);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.3);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--bg-body); color: var(--color-text); }

/* ── Layout ── */
#app-layout { display: flex; min-height: 100vh; }

#sidebar {
    width: 260px; min-height: 100vh; background: var(--bg-sidebar); border-right: 1px solid var(--color-border);
    display: flex; flex-direction: column; position: fixed; left: 0; top: 0; bottom: 0; z-index: 1040;
    transition: transform 0.3s;
}
@media (max-width: 991px) {
    #sidebar { transform: translateX(-100%); }
    #sidebar.open { transform: translateX(0); }
}

#sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1039; }
#sidebar-overlay.open { display: block; }

/* min-width:0 — a flex item defaults to min-width:auto, so one nowrap child (a long badge, a button
   group) widened the whole content column past the viewport and the page scrolled sideways. */
#main-content { flex: 1; min-width: 0; margin-left: 260px; min-height: 100vh; }
@media (max-width: 991px) { #main-content { margin-left: 0; } }

/* ── Sidebar Components ── */
.sidebar-header { padding: 1rem 1.25rem; display: flex; align-items: center; gap: 0.75rem; border-bottom: 1px solid var(--color-border); }
.sidebar-title { font-weight: 700; font-size: 0.95rem; color: var(--color-heading); }
.sidebar-user { padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--color-border); }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 0.5rem 0; }
.sidebar-section-label { padding: 0.5rem 1.25rem 0.25rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--color-muted); }
.sidebar-section-toggle { margin-top: 0.5rem; }
.sidebar-section-toggle:hover .sidebar-section-label { color: var(--color-primary); }
.sidebar-section-toggle .sidebar-chevron { font-size: 0.6rem; transition: transform 0.2s; }
.sidebar-section-body { overflow: hidden; }
.sidebar-link {
    display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 1.25rem; font-size: 0.88rem;
    color: var(--color-text); text-decoration: none; cursor: pointer; transition: background 0.15s;
}
.sidebar-link:hover { background: var(--color-primary-light); color: var(--color-primary); }
.sidebar-link.active { background: var(--color-primary-light); color: var(--color-primary); font-weight: 600; border-right: 3px solid var(--color-primary); }
.sidebar-link i { font-size: 1.1rem; width: 20px; text-align: center; }

/* My Menu favourite star — hover-reveal; pinned ("on") stars stay visible. Theme-aware (light sidebar default). */
.mymenu-star { margin-left: auto; opacity: 0; color: var(--color-muted); transition: opacity .12s ease; font-size: 0.8rem; cursor: pointer; flex: 0 0 auto; }
.mymenu-star i { font-size: 0.85rem; width: auto; }
.sidebar-link:hover .mymenu-star { opacity: 0.6; }
.mymenu-star:hover { opacity: 1; color: #f6c343; }
.mymenu-star.on { opacity: 0.9; color: #f6c343; }
/* Reorder mode — ▲▼ move controls (shown only while reordering). */
.menu-reorder-row { display: flex; align-items: center; gap: 2px; }
.menu-reorder-row .menu-reorder-item { flex: 1 1 auto; min-width: 0; }
.menu-move { display: inline-flex; flex-direction: column; line-height: 0.7; margin: 0 2px 0 6px; flex: 0 0 auto; }
.menu-move > span { cursor: pointer; font-size: 0.7rem; color: var(--color-muted); padding: 1px 3px; }
.menu-move > span:hover { color: #f6c343; }
/* Per-user hidden items: gone from the menu, back while searching, dimmed in Customise mode. */
.menu-eye { cursor: pointer; font-size: 0.8rem; color: var(--color-muted); padding: 0 4px; flex: 0 0 auto; }
.menu-eye:hover { color: #f6c343; }
.menu-user-hidden-row { opacity: 0.45; }
#sidebar-nav:not(.menu-searching) .menu-user-hidden { display: none !important; }

/* ────────────────────────────────────────────────────────────
   Second-level collapsible subgroups (Portal Menu Reorg)
   Used inside each .sidebar-section-body to group related items.
   ──────────────────────────────────────────────────────────── */
.nav-subgroup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.35rem 1.25rem 0.35rem 1.55rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
    font-weight: 600;
    user-select: none;
    transition: background 0.15s;
}
.nav-subgroup:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
}
.nav-subgroup .subgroup-caret {
    font-size: 0.6rem;
    transition: transform 0.2s ease;
}
.nav-subgroup[data-expanded="false"] .subgroup-caret {
    transform: rotate(-90deg);
}
.nav-subgroup-items {
    overflow: hidden;
    max-height: 2000px;
    transition: max-height 0.3s ease;
}
.nav-subgroup-items[data-expanded="false"] {
    max-height: 0;
}
.nav-subgroup-items .sidebar-link {
    padding-left: 2.25rem;
    font-size: 0.82rem;
}

/* Sidebar search input */
.nav-search {
    margin: 0.5rem 0.75rem 0.75rem 0.75rem;
    position: relative;
}
.nav-search input {
    width: 100%;
    padding: 0.4rem 0.6rem 0.4rem 1.8rem;
    background: var(--color-bg-card, rgba(0,0,0,0.03));
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    font-size: 0.82rem;
    outline: none;
}
.nav-search input::placeholder { color: var(--color-muted); }
.nav-search input:focus {
    border-color: var(--color-primary);
}
.nav-search i.bi-search {
    position: absolute;
    left: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-muted);
    font-size: 0.85rem;
    pointer-events: none;
}
[data-search-hidden="true"] { display: none !important; }

.sidebar-footer { padding: 0.75rem 0; border-top: 1px solid var(--color-border); }

/* ── Header ── */
.app-header {
    display: flex; align-items: center; padding: 0.75rem 1.25rem; background: var(--bg-card);
    border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 1020;
}

/* ── Cards ── */
.emp-card {
    background: var(--bg-card); border-radius: 10px; border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card); transition: box-shadow 0.2s;
}
.emp-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
html.dark .emp-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.3); }

/* ── Utility ── */
.cursor-pointer { cursor: pointer; }
.text-orange { color: var(--color-orange); }

/* ── Comprehensive Dark Mode ── */
/* Forms */
html.dark .form-control, html.dark .form-select, html.dark .form-control[readonly] {
    background: #0f172a; border-color: var(--color-border); color: var(--color-text);
}
html.dark .form-control:focus, html.dark .form-select:focus {
    background: #0f172a; border-color: var(--color-primary); color: var(--color-heading);
    box-shadow: 0 0 0 0.2rem rgba(59,130,246,0.15);
}
html.dark .form-label, html.dark label { color: var(--color-heading); }
html.dark .form-text { color: var(--color-muted); }
html.dark .form-check-label { color: var(--color-text); }
html.dark input::placeholder, html.dark textarea::placeholder { color: var(--color-muted) !important; opacity: 0.7; }

/* Native input pickers (date, time, datetime-local, month, week) + selects.
   These render through the browser's color-scheme renderer, not via background CSS.
   `color-scheme: dark` on html.dark tells Chrome/Edge/Safari to use the dark variants
   of the calendar picker, dropdown arrows, scrollbars, and time-picker chrome. */
html.dark { color-scheme: dark; }
html.dark input[type="date"],
html.dark input[type="time"],
html.dark input[type="datetime-local"],
html.dark input[type="month"],
html.dark input[type="week"] {
    background: #0f172a !important; color: var(--color-text) !important; border-color: var(--color-border) !important;
}
/* Calendar-picker indicator icon — invert so it's visible on dark background */
html.dark input[type="date"]::-webkit-calendar-picker-indicator,
html.dark input[type="time"]::-webkit-calendar-picker-indicator,
html.dark input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.4);
    cursor: pointer;
}
/* <select> options inherit the system color scheme. The dropdown panel is OS-controlled,
   but with color-scheme: dark above, the open menu uses the dark variant.
   Force the closed-state styling here so it matches our card backgrounds. */
html.dark select.form-select option { background: #0f172a; color: var(--color-text); }
html.dark select.form-select { background-color: #0f172a !important; }

/* Tables */
html.dark .table { color: var(--color-text); --bs-table-bg: transparent; --bs-table-hover-bg: rgba(59,130,246,0.05); }
html.dark .table thead th { background: var(--bg-card); color: var(--color-heading) !important; border-color: var(--color-border); }
html.dark .table td, html.dark .table tr { border-color: var(--color-border); color: var(--color-text) !important; }
html.dark .table .fw-semibold, html.dark .table .fw-bold { color: var(--color-heading) !important; }
html.dark .table .small, html.dark .table .text-muted { color: var(--color-muted) !important; }
html.dark .table-hover tbody tr:hover { background: rgba(59,130,246,0.05) !important; }
html.dark .emp-row td { color: var(--color-text) !important; }
html.dark .emp-row .fw-semibold { color: var(--color-heading) !important; }

/* Alerts */
html.dark .alert { border: none; }
html.dark .alert-primary { background: rgba(59,130,246,0.15); color: #93c5fd; }
html.dark .alert-warning { background: rgba(255,193,7,0.15); color: #fcd34d; }
html.dark .alert-danger { background: rgba(220,53,69,0.15); color: #fca5a5; }
html.dark .alert-success { background: rgba(25,135,84,0.15); color: #86efac; }
html.dark .alert-info { background: rgba(13,202,240,0.15); color: #67e8f9; }

/* Badges */
html.dark .badge { border: none; }
html.dark .badge.bg-secondary { background: var(--color-border) !important; color: var(--color-text) !important; }

/* Buttons */
html.dark .btn-outline-secondary { color: var(--color-muted); border-color: var(--color-border); }
html.dark .btn-outline-secondary:hover { background: var(--color-border); color: var(--color-heading); }
html.dark .btn-outline-primary { color: var(--color-primary); border-color: var(--color-primary); }
html.dark .btn-outline-primary.rounded-circle { border-color: var(--color-primary); color: var(--color-primary); }
html.dark .btn-outline-danger { color: #f87171; border-color: #f87171; }
html.dark .btn-outline-warning { color: #fbbf24; border-color: #fbbf24; }
html.dark .btn-outline-success { color: #34d399; border-color: #34d399; }
html.dark .btn-outline-info { color: #22d3ee; border-color: #22d3ee; }
html.dark .btn-close { filter: invert(1); }
html.dark .btn-outline, html.dark .btn.btn-outline, html.dark button.btn-outline { color: var(--color-text) !important; border-color: var(--color-border) !important; }
html.dark .btn-outline:hover, html.dark .btn.btn-outline:hover { color: var(--color-heading) !important; background: var(--color-border) !important; }
html.dark .modal-overlay .btn-sm.btn-outline { color: var(--color-muted) !important; font-size: 1.2rem; }

/* Modals & Overlays */
html.dark .modal-overlay .emp-card { background: var(--bg-card); }
html.dark .modal-overlay .form-control, html.dark .modal-overlay .form-select { background: #0f172a; }

/* List Groups */
html.dark .list-group-item { background: transparent !important; color: var(--color-text); border-color: var(--color-border) !important; }
html.dark .list-group-item .fw-semibold, html.dark .list-group-item span:not(.badge) { color: var(--color-heading); }
html.dark .list-group-item .text-decoration-line-through { color: var(--color-muted) !important; }

/* Progress Bars */
html.dark .progress { background: var(--color-border); }

/* Dropdowns */
html.dark .dropdown-menu { background: var(--bg-card); border-color: var(--color-border); }
html.dark .dropdown-item { color: var(--color-text); }
html.dark .dropdown-item:hover { background: var(--color-primary-light); color: var(--color-heading); }

/* Nav Pills / Tabs */
html.dark .nav-link { color: var(--color-text); }
html.dark .nav-link.active { background: var(--color-primary) !important; color: #fff !important; }
html.dark .nav-link:hover:not(.active) { color: var(--color-primary); }

/* Generic text overrides */
html.dark h1, html.dark h2, html.dark h3, html.dark h4, html.dark h5, html.dark h6 { color: var(--color-heading); }
html.dark .fw-bold, html.dark .fw-semibold { color: var(--color-heading); }
html.dark .text-muted { color: var(--color-muted) !important; }
html.dark .small { color: var(--color-text); }
html.dark a:not(.btn):not(.sidebar-link):not(.nav-link) { color: var(--color-primary); }
html.dark .border, html.dark [style*="border"] { border-color: var(--color-border) !important; }
html.dark [style*="background:var(--bg-body)"], html.dark [style*="background: var(--bg-body)"] { background: var(--bg-body) !important; }

/* Pipeline / candidate cards */
html.dark .opacity-50 { opacity: 0.4 !important; }

/* Stat cards */
html.dark .emp-card .fs-3, html.dark .emp-card .fs-4 { color: inherit; }

/* Input groups */
html.dark .input-group-text { background: var(--color-border); border-color: var(--color-border); color: var(--color-text); }

/* Tooltips & Popovers */
html.dark [title] { color: inherit; }

/* ── Brand switcher ── */
#brand-switcher { font-size: 0.82rem; background: var(--color-primary-light); border-color: transparent; color: var(--color-primary); font-weight: 600; }
html.dark #brand-switcher { background: rgba(59,130,246,0.15); }

/* ── Search Results ── */
.search-result-item:hover { background: var(--color-primary-light) !important; }
html.dark .search-result-item:hover { background: rgba(59,130,246,0.15) !important; }
#search-results { border-radius: 0 0 10px 10px; }

/* ── Calendar Grid ── */
.cal-grid > div { transition: background 0.15s; }
.cal-grid > div:hover { background: var(--color-primary-light) !important; }

/* ── Timesheet Timer ── */
.timer-display { font-family: 'SF Mono', 'Consolas', monospace; font-size: 2rem; font-weight: 700; color: var(--color-primary); }

/* ── Mobile Quick Actions ── */
@media (max-width: 576px) {
    .app-header h5 { font-size: 0.9rem; }
    #global-search-wrap { max-width: 180px !important; }
    .emp-card { border-radius: 8px; }
    .sidebar-link { padding: 0.7rem 1.25rem; font-size: 0.95rem; }
}

/* ── Mobile Time Clock Banner ── */
.mobile-clock-banner {
    background: linear-gradient(135deg, #0b4fa8, #3b82f6);
    color: #fff; border-radius: 12px; padding: 20px; text-align: center;
}
.mobile-clock-banner .clock-time { font-size: 2.5rem; font-weight: 700; margin: 10px 0; }
.mobile-clock-banner .btn { border-radius: 50px; padding: 12px 32px; font-weight: 600; font-size: 1.1rem; }

/* ── Approval Chain ── */
.approval-step { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; }
.approval-step.completed { background: rgba(25,135,84,0.1); }
.approval-step.pending { background: rgba(255,193,7,0.1); }
.approval-step.current { background: var(--color-primary-light); border: 1px solid var(--color-primary); }
.approval-connector { width: 2px; height: 20px; background: var(--color-border); margin-left: 18px; }

/* ── Progress Bars ── */
.progress { background: var(--bg-body); border-radius: 10px; }
html.dark .progress { background: #0f172a; }

/* ── Drag & Drop Upload ── */
.upload-zone {
    border: 2px dashed var(--color-border); border-radius: 12px; padding: 40px; text-align: center;
    cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--color-primary); background: var(--color-primary-light); }

/* ── Kbd ── */
kbd { background: var(--bg-body); border: 1px solid var(--color-border); padding: 2px 6px; border-radius: 4px; font-size: 0.8rem; }

/* ── Onboarding Wizard ── */
.wizard-container { max-width: 720px; margin: 0 auto; }
.wizard-progress { display: flex; gap: 4px; margin-bottom: 1.5rem; }
.wizard-phase { flex: 1; text-align: center; position: relative; }
.wizard-phase-bar { height: 6px; border-radius: 3px; background: var(--color-border); transition: background 0.3s; }
.wizard-phase.done .wizard-phase-bar { background: #198754; }
.wizard-phase.active .wizard-phase-bar { background: var(--color-primary); }
.wizard-phase-label { font-size: 0.68rem; color: var(--color-muted); margin-top: 4px; font-weight: 600; }
.wizard-phase.done .wizard-phase-label { color: #198754; }
.wizard-phase.active .wizard-phase-label { color: var(--color-primary); font-weight: 700; }
.wizard-step-counter { font-size: 0.82rem; color: var(--color-muted); margin-bottom: 1rem; }
.wizard-content { min-height: 300px; }
.wizard-content .form-label { color: var(--color-heading); font-weight: 600; font-size: 0.88rem; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1px solid var(--color-border); margin-top: 1.5rem; }
.wizard-nav .btn { min-width: 120px; }
.wizard-skip-link { font-size: 0.82rem; color: var(--color-muted); cursor: pointer; text-decoration: underline; }
.wizard-skip-link:hover { color: var(--color-primary); }
.wizard-welcome-card { border: 1px solid var(--color-border); border-radius: 10px; padding: 1rem 1.25rem; background: var(--bg-card); transition: border-color 0.2s; }
.wizard-welcome-card:hover { border-color: var(--color-primary); }
.wizard-welcome-card .phase-icon { font-size: 1.5rem; color: var(--color-primary); }
.wizard-welcome-card .phase-time { font-size: 0.72rem; color: var(--color-muted); }
.wizard-summary-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; margin-bottom: 6px; }
.wizard-summary-item.completed { background: rgba(25,135,84,0.08); }
.wizard-summary-item.skipped { background: rgba(255,193,7,0.08); }
.wizard-summary-item.pending { background: rgba(108,117,125,0.06); }
.wizard-doc-viewer { max-height: 400px; overflow-y: auto; border: 1px solid var(--color-border); border-radius: 8px; padding: 1.5rem; background: var(--bg-body); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1rem; }
.wizard-sig-pad { border: 2px solid var(--color-border); border-radius: 8px; background: #fff; cursor: crosshair; display: block; }
html.dark .wizard-sig-pad { background: #f8fafc; }
.wizard-exit-link { font-size: 0.82rem; color: var(--color-muted); text-decoration: none; }
.wizard-exit-link:hover { color: var(--color-primary); text-decoration: underline; }

/* Wizard mobile */
@media (max-width: 576px) {
    .wizard-container { padding: 0 0.5rem; }
    .wizard-phase-label { font-size: 0.58rem; }
    .wizard-nav .btn { min-width: 90px; font-size: 0.85rem; }
    .wizard-doc-viewer { max-height: 280px; padding: 1rem; }
    .wizard-sig-pad { height: 120px !important; }
}

/* ── Print ── */
/* ── Feedback Widget ── */
#feedback-widget { transition: transform 0.2s; }
#feedback-widget:hover { transform: scale(1.1); }
@media (max-width: 576px) { #feedback-widget button { width: 44px !important; height: 44px !important; font-size: 1rem !important; } }

/* ── Tooltips on icon buttons ── */
.btn[title] { position: relative; }
.btn-group .btn { border-radius: 0; }
.btn-group .btn:first-child { border-radius: 0.375rem 0 0 0.375rem; }
.btn-group .btn:last-child { border-radius: 0 0.375rem 0.375rem 0; }

/* ── Loading state ── */
.btn.loading { pointer-events: none; opacity: 0.7; }

/* Push 3CX/chat widget up and prevent overlap with table actions */
#main-content { padding-bottom: 70px; }
[id*="CallUs"], [class*="call-us"], iframe[src*="3cx"] { bottom: 70px !important; }

/* ── Mobile Responsive ── */
@media (max-width: 767px) {
    /* Content padding */
    #main-content .container, #main-content > div { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
    .app-header { padding: 0.5rem 0.75rem; }
    .app-header h4, .app-header h5 { font-size: 1.1rem !important; }

    /* Cards */
    .emp-card { border-radius: 8px; }

    /* Stat cards — 2 columns on small */
    .row.g-3 > .col-6.col-lg-3, .row.g-3 > .col-sm-6.col-lg-3 { flex: 0 0 50%; max-width: 50%; }
    .row.g-3 > .col-6.col-lg-3 .fs-2, .row.g-3 > .col-6.col-lg-3 .fs-3,
    .row.g-3 > .col-sm-6.col-lg-3 .fs-2, .row.g-3 > .col-sm-6.col-lg-3 .fs-3 { font-size: 1.4rem !important; }

    /* Tables — make them horizontally scrollable on phones so wide
     * payroll / timesheet / report grids don't force page-level scroll.
     * Display:block + overflow-x:auto turns each <table> into its own
     * scroll container without per-table .table-responsive wrappers. */
    .table { font-size: 0.8rem; }
    .table th, .table td { padding: 0.35rem 0.5rem; }
    .table .btn-group-sm .btn { padding: 0 0.2rem; }
    .table:not(.no-responsive) {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    /* Modal overlays */
    .modal-overlay > div { margin: 10px !important; max-width: calc(100vw - 20px) !important; max-height: calc(100vh - 20px); overflow-y: auto; }
    .modal-overlay { padding: 10px !important; align-items: flex-start !important; }

    /* Dashboard hero */
    .emp-card[style*="linear-gradient"] h3 { font-size: 1.2rem !important; }
    #dash-live-clock { font-size: 1.5rem !important; }

    /* Buttons */
    .d-flex.gap-2 .btn-sm { font-size: 0.75rem; padding: 0.2rem 0.5rem; }
    .btn-group-sm > .btn { font-size: 0.75rem; }

    /* Touch targets */
    .sidebar-link { padding: 0.65rem 1.25rem; min-height: 44px; }
    .btn { min-height: 36px; }

    /* Hamburger menu button */
    .app-header .btn-link { font-size: 1.4rem; }

    /* Calendar cells */
    .table[style*="table-layout:fixed"] td { padding: 2px !important; font-size: 0.55rem; }
    .table[style*="table-layout:fixed"] td .fw-bold { font-size: 0.7rem; }

    /* Hide less important columns on mobile */
    .table .d-none-mobile { display: none !important; }

    /* Charts */
    canvas { max-height: 180px !important; }
}

@media (max-width: 575px) {
    /* Stack action buttons */
    .d-flex.justify-content-between { flex-wrap: wrap; gap: 0.5rem; }
    .d-flex.justify-content-between h5, .d-flex.justify-content-between h6 { width: 100%; }

    /* Full-width buttons */
    .d-flex.gap-2 { flex-wrap: wrap; }

    /* Smaller stat cards */
    .row.g-3 > .col-6.col-lg-3 .fs-2, .row.g-3 > .col-6.col-lg-3 .fs-3 { font-size: 1.2rem !important; }
    .row.g-3 > .col-6.col-lg-3 .small { font-size: 0.65rem; }
}

@media print {
    #sidebar, .app-header, #sidebar-overlay, #pwa-install-banner, .wizard-nav, .btn, button, .no-print { display: none !important; }
    #main-content { margin-left: 0 !important; }
    .emp-card { box-shadow: none !important; border: 1px solid #ddd !important; break-inside: avoid; }
    body { background: #fff !important; color: #000 !important; }
    .badge { border: 1px solid #999 !important; }
    a { color: #000 !important; text-decoration: none !important; }
}


/* ------------------------------------------------------------------
   Textarea resize lock — Employee Portal.
   Same rule as the store portals — disable browser's default resize
   grip so users can't accidentally drag a textarea out of layout.
   ------------------------------------------------------------------ */
textarea.form-control,
textarea.form-control-sm,
textarea.emp-input {
    resize: none;
}


/* ------------------------------------------------------------------
   Staff chat (XMPP) styles MOVED into employee/assets/js/xmpp-chat.js
   on 2026-09-15.

   The client is loaded by four portals — employee, MSP, BPO and
   store-admin — but only this portal links this stylesheet, so the chat
   rendered unstyled in the other three. The module now injects its own
   sheet (#wkit-xmpp-styles) and is self-contained wherever it loads.
   Do not re-add the rules here: two copies would drift.
   ------------------------------------------------------------------ */
