/* ==========================================================================
   MAWOKO — Design System
   --------------------------------------------------------------------------
   Refreshed skin. Brand DNA preserved (deep blue + teal + amber).
   Class names used across application pages are kept intact; only the
   visual treatment changes, so existing pages inherit the new look.

   Contents
     1.  Design tokens (:root)
     2.  Base / reset
     3.  Typography helpers
     4.  Buttons
     5.  Application shell (header, sidebar, body, footer)
     6.  Mobile navigation
     7.  Page header
     8.  Dashboard / stat cards
     9.  Cards, sections, detail lists
     10. Tables
     11. Status & shift badges
     12. Alerts
     13. Forms, filters
     14. Professional profile & services
     15. Shift, schedule, notification components
     16. Empty states, pagination, tabs
     17. Login
     18. Utilities
     19. Print
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
    /* Brand */
    --mawoko-blue:       #0B4F6C;
    --mawoko-blue-dark:  #07384D;
    --mawoko-blue-deep:  #052A3A;
    --mawoko-teal:       #12B0A0;
    --mawoko-teal-dark:  #0E8C7C;
    --mawoko-teal-soft:  #E4F6F3;
    --mawoko-orange:     #E8945B;

    /* Cool neutrals (chosen, slight blue bias) */
    --background:  #EEF3F6;
    --surface:     #FFFFFF;
    --surface-2:   #F6F9FB;
    --surface-3:   #EDF3F6;

    --text-primary:   #12303F;
    --text-secondary: #476070;
    --text-muted:     #7D93A0;

    --border:    #DBE6EC;
    --border-2:  #E9F0F4;

    /* Semantic (kept separate from brand accent) */
    --ok:       #0E8C7C;   --ok-bg:   #E3F6F1;   --ok-border:   #BBE7DF;
    --warn:     #B26A0A;   --warn-bg: #FCF0DC;   --warn-border: #F0D9AE;
    --danger:   #C13A2B;   --danger-bg: #FBE9E6; --danger-border: #F2C9C2;
    --info:     #1B5FA8;   --info-bg: #E6EFFA;   --info-border: #C6DBF1;

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(9, 49, 68, .06), 0 1px 3px rgba(9, 49, 68, .05);
    --shadow-md: 0 4px 12px rgba(9, 49, 68, .08), 0 2px 4px rgba(9, 49, 68, .04);
    --shadow-lg: 0 18px 40px rgba(9, 49, 68, .14);

    /* Radius */
    --radius-small:  10px;
    --radius-medium: 14px;
    --radius-large:  20px;

    /* Legacy shadow token kept for any inline references */
    --shadow: var(--shadow-md);

    /* Layout */
    --sidebar-width: 248px;
    --header-height: 68px;

    /* Type */
    --font-display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-body:    'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;

    font-family: var(--font-body);
    color-scheme: light;
}

/* --------------------------------------------------------------------------
   2. Base / reset
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: var(--background);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    text-wrap: balance;
    margin: 0;
}

img { max-width: 100%; }

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--mawoko-teal) 45%, transparent);
    outline-offset: 2px;
}

::selection { background: color-mix(in srgb, var(--mawoko-teal) 25%, transparent); }

/* --------------------------------------------------------------------------
   3. Typography helpers
   -------------------------------------------------------------------------- */
.tnum { font-variant-numeric: tabular-nums; }

.eyebrow {
    color: var(--mawoko-teal-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.muted-text { color: var(--text-secondary); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease, border-color .15s ease, transform .05s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }

.btn-primary {
    background: var(--mawoko-blue);
    color: #FFFFFF;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--mawoko-blue-dark); }

.btn-secondary {
    background: var(--surface);
    color: var(--mawoko-blue);
    border-color: var(--border);
}
.btn-secondary:hover { background: var(--surface-2); border-color: var(--mawoko-teal); }

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--surface-3); color: var(--text-primary); }

.btn-danger {
    background: var(--danger);
    color: #FFFFFF;
}
.btn-danger:hover { background: #A62E21; }

.btn-full { width: 100%; }

/* Small button (used by page markup as btn-sm and btn-small) */
.btn-sm, .btn-small {
    padding: 7px 12px;
    font-size: 13px;
    border-radius: 8px;
}

/* --------------------------------------------------------------------------
   5. Application shell
   -------------------------------------------------------------------------- */
.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 22px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
}

.top-header-left,
.top-header-right,
.brand-link,
.user-summary {
    display: flex;
    align-items: center;
}

.top-header-left { gap: 12px; }
.top-header-right { gap: 16px; }

.brand-link { display: inline-flex; align-items: center; gap: 12px; }

.header-logo {
    display: block;
    width: auto;
    height: 40px;
    max-width: 200px;
    object-fit: contain;
}

/* Fallback brand mark if logo image is unavailable */
.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(145deg, var(--mawoko-teal), var(--mawoko-blue));
    color: #FFFFFF;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 19px;
    box-shadow: 0 4px 10px rgba(18, 176, 160, .35);
}

.user-summary { gap: 10px; }

.user-avatar {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--mawoko-blue), var(--mawoko-teal));
    color: #FFFFFF;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
}

.user-summary-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.user-summary-text strong { font-size: 14px; font-weight: 700; }
.user-summary-text small { margin-top: 2px; color: var(--text-muted); font-size: 12px; }

/* Icon button (notifications, etc.) */
.icon-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--text-secondary);
}
.icon-btn:hover { color: var(--mawoko-blue); border-color: var(--mawoko-teal); }
.icon-btn .icon-dot {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mawoko-orange);
    border: 2px solid var(--surface);
}

.app-body {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    flex: 1;
}

/* Sidebar */
.sidebar {
    min-height: calc(100vh - var(--header-height));
    background: linear-gradient(180deg, var(--mawoko-blue-dark), var(--mawoko-blue-deep));
    padding: 18px 14px;
    color: #FFFFFF;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: sticky;
    top: calc(var(--header-height) + 18px);
}

.nav-section {
    margin: 20px 12px 8px;
    color: rgba(255, 255, 255, .42);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.nav-section:first-child { margin-top: 4px; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    border-radius: 10px;
    color: rgba(255, 255, 255, .74);
    font-weight: 600;
    font-size: 14px;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.nav-item svg { flex: 0 0 18px; width: 18px; height: 18px; opacity: .85; }

/* Bulletproof icon sizing: wins over any page-level `svg { width: 100% }`
   rule so sidebar icons can never be stretched by another stylesheet. */
.sidebar .nav-item svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    flex: 0 0 18px;
}
.nav-item:hover { background: rgba(255, 255, 255, .09); color: #FFFFFF; }
.nav-item:hover svg { opacity: 1; }

.nav-item.active {
    background: rgba(18, 176, 160, .18);
    color: #FFFFFF;
    box-shadow: inset 3px 0 0 var(--mawoko-teal);
}
.nav-item.active svg { opacity: 1; }

/* Main content */
.main-content {
    min-width: 0;
    padding: 30px 34px 44px;
}

/* Footer */
.app-footer {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 24px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
}

/* --------------------------------------------------------------------------
   6. Mobile navigation
   -------------------------------------------------------------------------- */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--mawoko-blue);
    cursor: pointer;
    place-items: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 42, 58, .5);
    z-index: 250;
}

@media (max-width: 860px) {
    .app-body { grid-template-columns: 1fr; }

    .nav-toggle { display: grid; }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        min-height: 100vh;
        z-index: 300;
        transform: translateX(-100%);
        transition: transform .22s ease;
        overflow-y: auto;
        padding-top: 22px;
    }
    .sidebar-nav { position: static; top: auto; }

    body.nav-open .sidebar { transform: translateX(0); box-shadow: var(--shadow-lg); }
    body.nav-open .sidebar-backdrop { display: block; }

    .user-summary-text { display: none; }
}

@media (max-width: 560px) {
    .header-logo { height: 34px; max-width: 150px; }
    .main-content { padding: 22px 16px 32px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* --------------------------------------------------------------------------
   7. Page header
   -------------------------------------------------------------------------- */
.page-header { margin-bottom: 26px; }

.page-header h1 {
    margin: 6px 0 4px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.6px;
}
.page-header p { margin: 0; color: var(--text-secondary); max-width: 65ch; }

.page-header-flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

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

/* --------------------------------------------------------------------------
   8. Dashboard / stat cards
   -------------------------------------------------------------------------- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-sm);
}

.card-label {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.dashboard-card strong {
    margin: 10px 0 2px;
    color: var(--mawoko-blue-dark);
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1px;
}

.dashboard-card small { color: var(--mawoko-teal-dark); font-weight: 700; }

/* Professional summary grid (compliance / profile pages) */
.professional-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.summary-card {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-sm);
}

.summary-label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.summary-card strong {
    color: var(--mawoko-blue-dark);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
}

/* --------------------------------------------------------------------------
   9. Cards, sections, detail lists
   -------------------------------------------------------------------------- */
.content-card,
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-sm);
}
.content-card { overflow: hidden; }
.content-card + .content-card { margin-top: 20px; }

.form-card { max-width: 780px; padding: 28px; }

.detail-card { padding: 0; }

.detail-grid { display: grid; gap: 20px; padding: 22px; }

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-2);
}
.card-header h2 { margin: 0; font-size: 18px; font-weight: 700; }
.card-header p { margin: 4px 0 0; color: var(--text-secondary); font-size: 13.5px; }

.card-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.detail-list { padding: 6px 24px; }

.detail-row {
    display: grid;
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-2);
}
.detail-row:last-child { border-bottom: none; }

.detail-label { color: var(--text-secondary); font-size: 13px; font-weight: 700; }

.section-heading {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-2);
}
.section-heading h2 { margin: 0; font-size: 19px; font-weight: 700; }
.section-heading p { margin: 5px 0 0; color: var(--text-secondary); }

/* --------------------------------------------------------------------------
   10. Tables
   -------------------------------------------------------------------------- */
.table-responsive { width: 100%; overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-2);
    vertical-align: middle;
}

.data-table th {
    background: var(--surface-2);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .7px;
    border-bottom: 1px solid var(--border);
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--surface-2); }

.data-table td strong { color: var(--text-primary); font-weight: 700; }

.table-actions { white-space: nowrap; text-align: right; }

.table-link {
    margin-left: 14px;
    color: var(--mawoko-blue);
    font-weight: 700;
}
.table-link:hover { color: var(--mawoko-teal-dark); text-decoration: underline; }
.table-link:first-child { margin-left: 0; }

/* --------------------------------------------------------------------------
   11. Status & shift badges
   -------------------------------------------------------------------------- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .2px;
    line-height: 1;
}
.status-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: .9;
}

.status-active   { background: var(--ok-bg);     color: var(--ok); }
.status-pending  { background: var(--warn-bg);   color: var(--warn); }
.status-inactive { background: var(--surface-3); color: var(--text-secondary); }
.status-verified { background: var(--ok-bg);     color: var(--ok); }
.status-expired  { background: var(--danger-bg); color: var(--danger); }
.status-review   { background: var(--warn-bg);   color: var(--warn); }
.status-approved { background: var(--ok-bg);     color: var(--ok); }
.status-hold     { background: var(--danger-bg); color: var(--danger); }

/* Shift urgency */
.shift-urgency-standard { background: var(--info-bg);   color: var(--info); }
.shift-urgency-urgent   { background: var(--warn-bg);   color: var(--warn); }
.shift-urgency-critical { background: var(--danger-bg); color: var(--danger); }

/* Shift status */
.shift-status-draft            { background: var(--surface-3); color: var(--text-secondary); }
.shift-status-open,
.shift-status-offering         { background: var(--ok-bg);     color: var(--ok); }
.shift-status-partially_filled { background: var(--warn-bg);   color: var(--warn); }
.shift-status-filled,
.shift-status-completed        { background: var(--info-bg);   color: var(--info); }
.shift-status-cancelled        { background: var(--danger-bg); color: var(--danger); }

/* Give shift badges the same pill shape as status badges when reused */
[class*="shift-urgency-"],
[class*="shift-status-"] {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   12. Alerts
   -------------------------------------------------------------------------- */
.alert {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: var(--radius-medium);
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid transparent;
}
.alert strong { font-family: var(--font-display); }

/* Alerts placed directly inside a card get side/top margins to match padding */
.content-card > .alert,
.detail-card > .alert { margin: 18px 24px; }

.alert-error,
.alert-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: var(--danger-border);
}
.alert-warning {
    background: var(--warn-bg);
    color: var(--warn);
    border-color: var(--warn-border);
}
.alert-success {
    background: var(--ok-bg);
    color: var(--ok);
    border-color: var(--ok-border);
}
.alert-info {
    background: var(--info-bg);
    color: var(--info);
    border-color: var(--info-border);
}

/* --------------------------------------------------------------------------
   13. Forms, filters
   -------------------------------------------------------------------------- */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-group textarea { resize: vertical; min-height: 92px; }

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--mawoko-teal);
    box-shadow: 0 0 0 3px rgba(18, 176, 160, .16);
}

.field-help {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 12px;
}

.form-actions,
.professional-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
}
.professional-form-actions { margin-bottom: 30px; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.form-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.checkbox-group { display: flex; align-items: flex-end; }
.checkbox-label {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px;
    cursor: pointer;
}
.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--mawoko-teal);
}

.professional-form-section { max-width: none; margin-bottom: 22px; }

/* Filters */
.filter-card {
    margin-bottom: 20px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-sm);
}

.filter-form {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.filter-group { width: 100%; max-width: 420px; }
.filter-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.filter-group select {
    width: 100%;
    padding: 11px 13px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    font-size: 14px;
    font-family: var(--font-body);
}
.filter-group select:focus {
    border-color: var(--mawoko-teal);
    box-shadow: 0 0 0 3px rgba(18, 176, 160, .16);
    outline: none;
}
.filter-actions { display: flex; gap: 10px; }

/* --------------------------------------------------------------------------
   14. Professional profile & services
   -------------------------------------------------------------------------- */
.professional-profile-heading { display: flex; align-items: center; gap: 18px; }
.professional-profile-heading h1 { margin-bottom: 2px; }

.professional-profile-avatar {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(145deg, var(--mawoko-blue), var(--mawoko-teal));
    color: #FFFFFF;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: var(--shadow-md);
}

.profile-bio { max-width: 720px; color: var(--text-primary); line-height: 1.7; }

.professional-section { margin-bottom: 22px; }

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 24px;
}

.service-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: var(--surface-2);
}
.service-card h3 { margin: 6px 0 16px; color: var(--mawoko-blue-dark); font-size: 18px; }

/* --------------------------------------------------------------------------
   15. Shift, schedule, notification components
   -------------------------------------------------------------------------- */
.shift-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 24px 20px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: var(--surface-2);
}
.shift-action-bar form { margin: 0; }

.shift-offer-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.shift-offer-actions form { margin: 0; }

.shift-activity { padding: 8px 24px; }
.shift-event {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-2);
}
.shift-event:last-child { border-bottom: none; }
.shift-event time { color: var(--text-muted); font-size: 12px; white-space: nowrap; }

.shift-inbox-grid,
.shift-response-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    padding: 24px;
}

.shift-inbox-card,
.shift-response-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.shift-inbox-card h3 { margin: 14px 0 5px; }
.shift-response-card h3 { margin-top: 0; }

.shift-inbox-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.shift-expiration { font-size: 12px; font-weight: 700; color: var(--danger); }

.shift-time-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 18px 0;
    padding: 14px;
    border-radius: var(--radius-small);
    background: var(--surface-2);
}

/* Schedule */
.schedule-grid { display: flex; flex-direction: column; gap: 14px; padding: 24px; }

.schedule-card {
    display: grid;
    grid-template-columns: 84px 1fr;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.schedule-card-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 18px 10px;
    background: linear-gradient(160deg, var(--mawoko-teal-soft), var(--surface-2));
}
.schedule-card-date strong { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--mawoko-blue); }
.schedule-card-date span { font-size: 12px; }
.schedule-month { font-weight: 700; text-transform: uppercase; }

.schedule-card-content { padding: 18px 20px; }
.schedule-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.schedule-card-heading h3 { margin: 0 0 4px; }
.schedule-time { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.schedule-location { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--text-secondary); }

/* Notifications */
.notification-list { display: flex; flex-direction: column; }
.notification-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-2);
    background: var(--surface);
}
.notification-item:last-child { border-bottom: 0; }
.notification-unread { background: var(--mawoko-teal-soft); }
.notification-heading { display: flex; align-items: center; gap: 10px; }
.notification-content p { margin: 6px 0 8px; line-height: 1.5; }
.notification-actions { flex-shrink: 0; }

/* Sidebar notification badge */
.nav-item-with-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.nav-item-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--mawoko-orange);
    color: var(--mawoko-blue-deep);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}
.nav-item.active .notification-badge { background: #FFFFFF; color: var(--mawoko-blue); }

/* --------------------------------------------------------------------------
   16. Empty states, pagination, tabs
   -------------------------------------------------------------------------- */
.empty-state { padding: 70px 25px; text-align: center; }
.empty-state h3 { margin-bottom: 6px; font-size: 22px; }
.empty-state p { margin: 0 auto 22px; max-width: 460px; color: var(--text-secondary); }
.compact-empty { padding: 45px 20px; }

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px;
    flex-wrap: wrap;
}
.pagination a,
.pagination span {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: var(--surface);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 14px;
}
.pagination a:hover { border-color: var(--mawoko-teal); color: var(--mawoko-blue); }
.pagination .is-current { background: var(--mawoko-blue); border-color: var(--mawoko-blue); color: #FFFFFF; }
.pagination .is-disabled { opacity: .5; pointer-events: none; }

/* Tabs / secondary navigation (Shift Overview, Assignments, etc.) */
.tab-nav {
    display: flex;
    gap: 4px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow-x: auto;
    margin-bottom: 22px;
}
.tab-nav a {
    padding: 9px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
}
.tab-nav a:hover { background: var(--surface-3); color: var(--text-primary); }
.tab-nav a.active { background: var(--mawoko-blue); color: #FFFFFF; }

/* --------------------------------------------------------------------------
   17. Login
   -------------------------------------------------------------------------- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: linear-gradient(135deg, #E7F1F4, #FFFFFF 60%);
}

.login-wrapper {
    width: 100%;
    max-width: 940px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.login-brand {
    position: relative;
    padding: 52px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(155deg, var(--mawoko-blue-deep), var(--mawoko-blue));
    color: #FFFFFF;
    overflow: hidden;
}
.login-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(420px 320px at 78% 12%, rgba(18, 176, 160, .40), transparent 62%);
}
.login-brand-content { position: relative; z-index: 2; }

.login-logo {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
}
.login-logo-image { margin-bottom: 22px; }
.login-logo-image img { display: block; width: 100px; height: 100px; object-fit: contain; }

.login-brand h1 { margin: 0; font-size: 32px; letter-spacing: 3px; }
.login-brand p { margin-top: 10px; max-width: 30ch; color: rgba(255, 255, 255, .82); }

.login-card { padding: 52px; }
.login-card-header { margin-bottom: 26px; }
.login-card-header h2 { margin: 6px 0 0; font-size: 28px; font-weight: 800; }
.login-card h2 { font-size: 28px; }
.login-subtitle { margin: 4px 0 26px; color: var(--text-secondary); }

.login-footer-note {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-2);
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   18. Utilities
   -------------------------------------------------------------------------- */
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   19. Responsive helpers for shared components
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .professional-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .login-wrapper { grid-template-columns: 1fr; }
    .login-brand { min-height: 220px; padding: 36px; }
    .login-card { padding: 36px; }
}

@media (max-width: 700px) {
    .page-header-flex,
    .card-header-flex { flex-direction: column; align-items: flex-start; }
    .detail-row { grid-template-columns: 1fr; gap: 4px; }
    .form-grid,
    .form-grid-three { grid-template-columns: 1fr; }
    .filter-form { flex-direction: column; align-items: stretch; }
    .filter-group { max-width: none; }
    .service-grid { grid-template-columns: 1fr; }
    .shift-action-bar { flex-direction: column; align-items: flex-start; }
    .schedule-card-heading { flex-direction: column; gap: 8px; }
    .notification-item { flex-direction: column; }
}

@media (max-width: 600px) {
    .professional-summary-grid { grid-template-columns: 1fr; }
    .professional-profile-heading { align-items: flex-start; }
    .shift-event { flex-direction: column; align-items: flex-start; gap: 5px; }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
    .top-header,
    .sidebar,
    .app-footer,
    .nav-toggle,
    .page-actions,
    .sidebar-backdrop { display: none !important; }

    .app-body { grid-template-columns: 1fr; }
    .main-content { padding: 0; }

    body { background: #FFFFFF; }
    .content-card,
    .dashboard-card,
    .summary-card { box-shadow: none; border-color: #CCC; }

    a { color: #000; }
}

/* ==========================================================================
   Mawoko Global Header
   Cross-browser: Chrome / Firefox / Safari
   ========================================================================== */

/*
 * Header layout
 */
.top-header {
    display: -webkit-flex;
    display: flex;

    -webkit-align-items: center;
    align-items: center;

    -webkit-justify-content: space-between;
    justify-content: space-between;

    min-width: 0;
}

.top-header-left,
.top-header-right {
    display: -webkit-flex;
    display: flex;

    -webkit-align-items: center;
    align-items: center;

    min-width: 0;
}

.top-header-right {
    -webkit-justify-content: flex-end;
    justify-content: flex-end;

    gap: 12px;

    flex: 0 0 auto;
}


/*
 * Notification bell
 */
.header-notification-button {
    position: relative;

    display: -webkit-flex;
    display: flex;

    -webkit-align-items: center;
    align-items: center;

    -webkit-justify-content: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    min-width: 42px;
    min-height: 42px;

    flex: 0 0 42px;

    padding: 0;
    margin: 0;

    overflow: visible;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: var(--surface-2);
    color: var(--text-secondary);

    text-decoration: none;

    box-sizing: border-box;

    -webkit-appearance: none;
    appearance: none;

    transition:
        color .15s ease,
        border-color .15s ease,
        background-color .15s ease;
}

.header-notification-button:hover {
    color: var(--mawoko-blue);
    border-color: var(--mawoko-teal);
    background: var(--surface);
}

.header-notification-button svg {
    display: block;

    width: 21px;
    height: 21px;

    min-width: 21px;
    min-height: 21px;

    flex: 0 0 21px;

    margin: 0;
}


/*
 * Notification badge
 *
 * Do not use transforms here. Absolute positioning
 * is more consistent across Safari / Firefox.
 */
.header-notification-badge {
    position: absolute;

    top: -7px;
    right: -7px;

    z-index: 10;

    display: -webkit-flex;
    display: flex;

    -webkit-align-items: center;
    align-items: center;

    -webkit-justify-content: center;
    justify-content: center;

    min-width: 20px;
    height: 20px;

    padding: 0 5px;
    margin: 0;

    border: 2px solid var(--surface);
    border-radius: 999px;

    background: var(--mawoko-orange);
    color: #FFFFFF;

    font-size: 10px;
    font-weight: 800;
    line-height: 16px;

    white-space: nowrap;

    box-sizing: border-box;

    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}


/*
 * Account wrapper
 */
.header-account {
    position: relative;

    display: block;

    min-width: 0;

    flex: 0 0 auto;
}


/*
 * Account button
 */
.header-account-button {
    display: -webkit-flex;
    display: flex;

    -webkit-align-items: center;
    align-items: center;

    -webkit-justify-content: flex-start;
    justify-content: flex-start;

    gap: 10px;

    min-width: 0;
    min-height: 46px;

    padding: 3px 8px 3px 3px;
    margin: 0;

    border: 1px solid transparent;
    border-radius: 14px;

    background: transparent;
    color: var(--text-primary);

    font-family: inherit;
    font-size: inherit;
    line-height: normal;

    text-align: left;

    cursor: pointer;

    box-sizing: border-box;

    -webkit-appearance: none;
    appearance: none;

    transition:
        background-color .15s ease,
        border-color .15s ease;
}

.header-account-button:hover,
.header-account.is-open .header-account-button {
    background: var(--surface-2);
    border-color: var(--border);
}

.header-account-button:focus-visible {
    outline: 3px solid rgba(18, 176, 160, .20);
    outline-offset: 2px;
}


/*
 * Avatar
 */
.header-account .user-avatar {
    position: relative;

    display: block;

    width: 42px;
    height: 42px;

    min-width: 42px;
    min-height: 42px;

    flex: 0 0 42px;

    padding: 0;
    margin: 0;

    overflow: hidden;

    border-radius: 50%;

    box-sizing: border-box;
}

.header-profile-photo {
    display: block;

    width: 42px;
    height: 42px;

    max-width: none;

    margin: 0;

    border: 0;
    border-radius: 50%;

    object-fit: cover;
    object-position: center;
}


/*
 * Initials avatar
 */
.header-profile-initials {
    display: -webkit-flex;
    display: flex;

    -webkit-align-items: center;
    align-items: center;

    -webkit-justify-content: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    min-width: 42px;
    min-height: 42px;

    margin: 0;

    border-radius: 50%;

    background: var(--mawoko-blue);
    color: #FFFFFF;

    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;

    text-align: center;

    box-sizing: border-box;
}

.header-profile-initials-fallback {
    display: none;
}


/*
 * Name and professional title
 */
.header-account .user-summary-text {
    display: -webkit-flex;
    display: flex;

    -webkit-flex-direction: column;
    flex-direction: column;

    -webkit-justify-content: center;
    justify-content: center;

    min-width: 0;

    line-height: 1.15;
}

.header-account .user-summary-text strong {
    display: block;

    max-width: 190px;

    overflow: hidden;

    color: var(--text-primary);

    font-size: 14px;
    font-weight: 700;

    line-height: 1.2;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-account .user-summary-text small {
    display: block;

    max-width: 190px;

    margin-top: 3px;

    overflow: hidden;

    color: var(--text-muted);

    font-size: 12px;
    font-weight: 500;

    line-height: 1.2;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/*
 * Dropdown chevron
 */
.header-account-chevron {
    display: block;

    width: 17px;
    height: 17px;

    min-width: 17px;
    min-height: 17px;

    flex: 0 0 17px;

    margin: 0;

    color: var(--text-muted);

    transform-origin: center center;

    transition: transform .15s ease;
}

.header-account.is-open .header-account-chevron {
    transform: rotate(180deg);
}


/*
 * Dropdown menu
 */
.header-account-menu {
    position: absolute;

    top: calc(100% + 8px);
    right: 0;

    z-index: 10000;

    display: block;

    width: 270px;
    max-width: calc(100vw - 28px);

    padding: 8px;
    margin: 0;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--surface);

    box-sizing: border-box;

    box-shadow:
        0 18px 45px rgba(15, 23, 42, .14),
        0 4px 12px rgba(15, 23, 42, .08);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transform: translateY(-4px);

    transition:
        opacity .15s ease,
        visibility .15s ease,
        transform .15s ease;
}

.header-account.is-open .header-account-menu {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    transform: translateY(0);
}


/*
 * Identity at top of dropdown
 */
.header-account-menu-profile {
    display: block;

    padding: 10px 11px 12px;
}

.header-account-menu-profile strong {
    display: block;

    overflow: hidden;

    color: var(--text-primary);

    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-account-menu-profile span {
    display: block;

    margin-top: 3px;

    overflow: hidden;

    color: var(--text-muted);

    font-size: 13px;
    line-height: 1.3;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/*
 * Dropdown navigation links
 */
.header-account-menu-item {
    display: -webkit-flex;
    display: flex;

    -webkit-align-items: center;
    align-items: center;

    -webkit-justify-content: space-between;
    justify-content: space-between;

    gap: 12px;

    width: 100%;
    min-height: 42px;

    padding: 9px 11px;
    margin: 0;

    border-radius: 9px;

    color: var(--text-primary);

    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;

    text-decoration: none;

    box-sizing: border-box;
}

.header-account-menu-item:hover {
    background: var(--surface-2);
    color: var(--mawoko-blue);
}

.header-account-menu-divider {
    display: block;

    width: auto;
    height: 1px;

    margin: 7px 4px;

    background: var(--border);
}

.header-account-signout {
    color: #B42318;
}

.header-account-signout:hover {
    color: #B42318;
}


/*
 * Notification count inside dropdown
 */
.header-menu-count {
    display: -webkit-inline-flex;
    display: inline-flex;

    -webkit-align-items: center;
    align-items: center;

    -webkit-justify-content: center;
    justify-content: center;

    min-width: 22px;
    height: 22px;

    padding: 0 6px;

    flex: 0 0 auto;

    border-radius: 999px;

    background: var(--mawoko-orange);
    color: #FFFFFF;

    font-size: 11px;
    font-weight: 800;
    line-height: 22px;

    box-sizing: border-box;
}


/*
 * Tablet
 */
@media (max-width: 760px) {

    .header-account .user-summary-text {
        display: none;
    }

    .header-account-button {
        gap: 4px;
        padding-right: 5px;
    }

    .header-account-chevron {
        width: 15px;
        height: 15px;

        min-width: 15px;
        min-height: 15px;

        flex-basis: 15px;
    }
}


/*
 * Phone
 */
@media (max-width: 560px) {

    .top-header {
        padding-left: 14px;
        padding-right: 14px;
    }

    .top-header-right {
        gap: 9px;
    }

    .header-notification-button {
        width: 38px;
        height: 38px;

        min-width: 38px;
        min-height: 38px;

        flex-basis: 38px;
    }

    .header-notification-button svg {
        width: 20px;
        height: 20px;

        min-width: 20px;
        min-height: 20px;
    }

    .header-notification-badge {
        top: -6px;
        right: -6px;
    }

    .header-account .user-avatar,
    .header-profile-photo,
    .header-profile-initials {
        width: 38px;
        height: 38px;

        min-width: 38px;
        min-height: 38px;
    }

    .header-account .user-avatar {
        flex-basis: 38px;
    }

    .header-profile-initials {
        font-size: 13px;
    }

    .header-account-menu {
        position: fixed;

        top: 68px;
        right: 12px;

        width: 280px;
        max-width: calc(100vw - 24px);
    }
}


/* MAWOKO GLOBAL HEADER LOGO START */

/*
 * Standard Mawoko navigation logo.
 * Original image: 739 x 185 pixels.
 *
 * Desktop: 80px height, approximately 320px width.
 * Mobile: 52px height, approximately 208px width.
 */

.top-header .brand-link img.header-logo {
    display: block !important;
    height: 80px !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
}

.top-header .brand-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

@media (max-width: 650px) {
    .top-header .brand-link img.header-logo {
        height: 52px !important;
        width: auto !important;
        max-width: none !important;
        max-height: none !important;
    }
}

/* MAWOKO GLOBAL HEADER LOGO END */


/* MAWOKO HEADER VERTICAL SPACING START */

/*
 * Increase navigation breathing room.
 * Preserve approved logo dimensions.
 */

.top-header {
    min-height: 104px;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
}

.top-header-left,
.top-header-right {
    display: flex;
    align-items: center;
}

.top-header .brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.top-header .brand-link img.header-logo {
    display: block;
    height: 80px !important;
    width: auto !important;
}

@media (max-width: 650px) {
    .top-header {
        min-height: 76px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .top-header .brand-link img.header-logo {
        height: 52px !important;
    }
}

/* MAWOKO HEADER VERTICAL SPACING END */

