/* ================================================
   ECMS Design System — Enterprise Clean
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand */
    --primary:        #dc2626;
    --primary-hover:  #b91c1c;
    --primary-light:  #fef2f2;
    --primary-border: #fecaca;

    /* Sidebar */
    --sidebar-bg:        #1e293b;
    --sidebar-hover:     #334155;
    --sidebar-active-bg: rgba(220, 38, 38, 0.15);
    --sidebar-width:     240px;
    --sidebar-collapsed-width: 84px;
    --sidebar-text:      #cbd5e1;
    --sidebar-text-dim:  #64748b;

    /* Surface */
    --bg-app:    #f1f5f9;
    --bg-card:   #ffffff;
    --bg-header: #ffffff;

    /* Text */
    --text-primary:   #0f172a;
    --text-secondary: #475569;
    --text-muted:     #94a3b8;

    /* Border */
    --border:       #e2e8f0;
    --border-light: #f1f5f9;

    /* Topbar */
    --topbar-height: 60px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Shadow */
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg: 0 10px 24px rgba(0,0,0,.1),  0 4px 8px  rgba(0,0,0,.05);

    /* Animation */
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    background: var(--bg-app);
    color: var(--text-primary);
}

.app-shell {
    position: relative;
}

.app-shell::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(220, 38, 38, 0.14), transparent 32%),
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 24%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 48%, #f8fafc 100%);
    pointer-events: none;
    z-index: -1;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar          { width: 6px; height: 6px; }
::-webkit-scrollbar-track    { background: var(--border-light); }
::-webkit-scrollbar-thumb    { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ---- Focus ---- */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ================================================
   SIDEBAR
   ================================================ */
.ecms-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 50;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid rgba(255,255,255,.05);
    transition: transform 0.3s var(--ease-out), width 0.3s var(--ease-out);
}

.ecms-sidebar::-webkit-scrollbar       { width: 4px; }
.ecms-sidebar::-webkit-scrollbar-track { background: transparent; }
.ecms-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }

/* Sidebar brand area */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 16px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}

.sidebar-brand-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-brand-icon i { color: #fff; font-size: 18px; }

.sidebar-brand-text h2 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.2;
}

.sidebar-brand-text p {
    color: var(--sidebar-text-dim);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-top: 1px;
}

/* Sidebar nav */
.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    overflow-y: auto;
}

.sidebar-section-label {
    padding: 8px 12px 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sidebar-text-dim);
    margin-top: 8px;
}

.sidebar-nav a,
.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-md);
    color: var(--sidebar-text);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out);
    margin-bottom: 1px;
    cursor: pointer;
    position: relative;
}

.sidebar-nav a i,
.sidebar-nav-item i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
    color: var(--sidebar-text-dim);
    transition: color 0.15s;
}

.sidebar-nav a:hover,
.sidebar-nav-item:hover {
    background: var(--sidebar-hover);
    color: #fff;
    transform: translateX(2px);
}

.sidebar-nav a:hover i,
.sidebar-nav-item:hover i {
    color: #fff;
}

.sidebar-nav a.active,
.sidebar-nav-item.active {
    background: var(--sidebar-active-bg);
    color: #fff;
    border-left: 3px solid var(--primary);
    padding-left: 9px;
    box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.08);
}

.sidebar-nav a.active i,
.sidebar-nav-item.active i {
    color: var(--primary);
}

/* Notification badge in sidebar */
.sidebar-badge {
    margin-left: auto;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* Sidebar divider */
.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,.07);
    margin: 8px 12px;
}

/* Sidebar user footer */
.sidebar-user {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 12px 8px;
    flex-shrink: 0;
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
}

.sidebar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
}

.sidebar-user-avatar img { width: 100%; height: 100%; object-fit: cover; }

body.sidebar-collapsed .ecms-sidebar {
    width: var(--sidebar-collapsed-width);
}

body.sidebar-collapsed .ecms-content {
    margin-left: var(--sidebar-collapsed-width);
}

body.sidebar-collapsed .sidebar-brand {
    justify-content: center;
    padding-left: 12px;
    padding-right: 12px;
}

body.sidebar-collapsed .sidebar-brand-text,
body.sidebar-collapsed .sidebar-user-name,
body.sidebar-collapsed .sidebar-user-role,
body.sidebar-collapsed .sidebar-section-label,
body.sidebar-collapsed .sidebar-divider,
body.sidebar-collapsed .sidebar-badge {
    display: none;
}

body.sidebar-collapsed .sidebar-nav {
    padding-left: 10px;
    padding-right: 10px;
}

body.sidebar-collapsed .sidebar-nav a,
body.sidebar-collapsed .sidebar-nav-item {
    justify-content: center;
    gap: 0;
    font-size: 0;
    padding-left: 0;
    padding-right: 0;
    transform: none;
}

body.sidebar-collapsed .sidebar-nav a.active,
body.sidebar-collapsed .sidebar-nav-item.active {
    border-left: none;
    padding-left: 0;
    box-shadow: inset 0 0 0 1px rgba(220,38,38,.35);
}

body.sidebar-collapsed .sidebar-nav a i,
body.sidebar-collapsed .sidebar-nav-item i {
    margin: 0;
    width: 20px;
    font-size: 16px;
}

body.sidebar-collapsed .sidebar-user {
    padding-left: 10px;
    padding-right: 10px;
}

body.sidebar-collapsed .sidebar-user-info {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

body.sidebar-collapsed .sidebar-user > a {
    justify-content: center;
    gap: 0 !important;
    font-size: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.sidebar-collapsed .sidebar-user > a i {
    width: auto !important;
    font-size: 16px !important;
}

@media (min-width: 841px) {
    body.sidebar-collapsed .sidebar-tooltip-target {
        position: relative;
    }

    body.sidebar-collapsed .sidebar-tooltip-target::after {
        content: attr(data-collapsed-label);
        position: absolute;
        left: calc(100% + 14px);
        top: 50%;
        transform: translateY(-50%) translateX(-6px);
        background: rgba(15, 23, 42, 0.96);
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.01em;
        white-space: nowrap;
        padding: 8px 10px;
        border-radius: 10px;
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out);
        z-index: 70;
    }

    body.sidebar-collapsed .sidebar-tooltip-target::before {
        content: '';
        position: absolute;
        left: calc(100% + 8px);
        top: 50%;
        width: 10px;
        height: 10px;
        background: rgba(15, 23, 42, 0.96);
        transform: translateY(-50%) rotate(45deg) scale(0.92);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out);
        z-index: 69;
    }

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

    body.sidebar-collapsed .sidebar-tooltip-target:hover::before,
    body.sidebar-collapsed .sidebar-tooltip-target:focus-visible::before {
        transform: translateY(-50%) rotate(45deg) scale(1);
    }

    body.sidebar-collapsed .sidebar-brand:hover,
    body.sidebar-collapsed .sidebar-user-info:hover,
    body.sidebar-collapsed .sidebar-user > a:hover,
    body.sidebar-collapsed .sidebar-nav a:hover,
    body.sidebar-collapsed .sidebar-nav-item:hover {
        background: rgba(255,255,255,.06);
    }
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 11px;
    color: var(--sidebar-text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ================================================
   TOPBAR
   ================================================ */
.ecms-topbar {
    height: var(--topbar-height);
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: var(--shadow-sm);
}
.topbar-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.topbar-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.topbar-title-copy {
    min-width: 0;
    flex: 1;
}

.topbar-title-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    flex-shrink: 0;
}

.topbar-title-badge__logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.topbar-title-subtitle {
    display: none;
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.topbar-profile {
    position: relative;
    margin-left: auto;
    flex-shrink: 0;
}

.topbar-profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 6px 10px 6px 6px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.92));
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: background 0.15s var(--ease-out), border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out), transform 0.15s var(--ease-out);
}

.topbar-profile-trigger:hover {
    background: linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,0.98));
    border-color: #cbd5e1;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}

.topbar-profile.is-open .topbar-profile-trigger {
    border-color: rgba(220, 38, 38, 0.24);
    box-shadow: 0 14px 28px rgba(220, 38, 38, 0.12);
}

.topbar-user-copy {
    line-height: 1.2;
    min-width: 0;
}

.topbar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-user-role {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-profile-caret {
    font-size: 11px;
    color: #94a3b8;
    transition: transform 0.15s var(--ease-out), color 0.15s var(--ease-out);
}

.topbar-profile.is-open .topbar-profile-caret {
    transform: rotate(180deg);
    color: var(--primary);
}

.topbar-sidebar-toggle {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
}

.topbar-sidebar-toggle:hover {
    background: var(--bg-app);
    color: var(--text-primary);
    border-color: #cbd5e1;
}

.sidebar-logout-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s var(--ease-out), color .15s var(--ease-out);
    margin-top: 2px;
}

.sidebar-logout-link:hover {
    background: rgba(220,38,38,.15);
    color: #ef4444;
}

.sidebar-logout-link i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

/* ================================================
   MAIN LAYOUT
   ================================================ */
.ecms-layout {
    display: flex;
    min-height: 100vh;
}

.ecms-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: margin-left 0.3s var(--ease-out);
}

/* ================================================
   CARDS
   ================================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body { padding: 20px; }

/* ================================================
   DASHBOARD SURFACES
   ================================================ */
.dashboard-stack {
    padding: 24px;
}

.dashboard-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.97) 0%, rgba(153, 27, 27, 0.94) 42%, rgba(194, 65, 12, 0.92) 100%);
    box-shadow: 0 28px 48px rgba(127, 29, 29, 0.22);
    color: #fff;
}

.dashboard-hero--home {
    background-image:
        linear-gradient(98deg, rgba(103, 18, 18, 0.88) 0%, rgba(127, 29, 29, 0.82) 28%, rgba(154, 34, 24, 0.72) 52%, rgba(194, 65, 12, 0.60) 72%, rgba(15, 23, 42, 0.30) 100%),
        url('../images/banner_engleng.jpg');
    background-size: cover, cover;
    background-position: center center, center center;
    background-repeat: no-repeat, no-repeat;
    box-shadow: 0 30px 56px rgba(127, 29, 29, 0.24);
}

.dashboard-hero--home::before {
    width: 440px;
    height: 440px;
    right: -160px;
    top: -170px;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.04) 58%, transparent 100%);
}

.dashboard-hero--home::after {
    width: 320px;
    height: 320px;
    left: -70px;
    bottom: -170px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.14) 0%, rgba(251, 191, 36, 0.02) 68%, transparent 100%);
}

.dashboard-hero::before,
.dashboard-hero::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.dashboard-hero::before {
    width: 320px;
    height: 320px;
    right: -120px;
    top: -150px;
    background: radial-gradient(circle, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.02) 70%, transparent 100%);
}

.dashboard-hero::after {
    width: 260px;
    height: 260px;
    left: -90px;
    bottom: -150px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.18) 0%, rgba(251, 191, 36, 0.02) 72%, transparent 100%);
}

.dashboard-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: end;
}

.dashboard-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.92);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
}

.dashboard-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.92);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
}

.dashboard-hero-title {
    margin-top: 18px;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -0.04em;
    max-width: 10ch;
}

.dashboard-hero__title {
    margin-top: 18px;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -0.04em;
    max-width: 10ch;
}

.dashboard-hero-title span {
    display: block;
    color: #fde68a;
}

.dashboard-hero__title span {
    display: block;
    color: #fde68a;
}

.dashboard-hero-subtitle {
    margin-top: 18px;
    max-width: 62ch;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.84);
}

.dashboard-hero__lead {
    margin-top: 18px;
    max-width: 62ch;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.84);
}

.dashboard-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.dashboard-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(14px);
}

.dashboard-chip i {
    color: #fde68a;
}

.dashboard-hero-panel {
    display: grid;
    gap: 14px;
}

.dashboard-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.dashboard-hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(14px);
}

.dashboard-hero__meta-item i {
    color: #fde68a;
}

.hero-stat-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.hero-stat-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.68);
}

.hero-stat-value {
    margin-top: 8px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
}

.hero-stat-caption {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,0.74);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.section-heading-accent {
    width: 8px;
    align-self: stretch;
    border-radius: 999px;
    background: linear-gradient(180deg, #dc2626, #991b1b);
    box-shadow: 0 10px 18px rgba(220, 38, 38, 0.28);
}

.section-heading-copy {
    min-width: 0;
}

.section-heading__copy {
    min-width: 0;
}

.section-heading-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.section-heading__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.section-heading-title {
    margin-top: 4px;
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.section-heading__title {
    margin-top: 4px;
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.section-heading-subtitle {
    margin-top: 6px;
    font-size: 14px;
    color: #64748b;
}

.section-heading__subtitle {
    margin-top: 6px;
    font-size: 14px;
    color: #64748b;
}

.section-heading-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.28), transparent);
}

.section-heading-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 12px 20px rgba(148, 163, 184, 0.08);
}

.section-surface {
    border-radius: 28px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255,255,255,0.9);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.quick-action-card {
    grid-column: span 3;
    position: relative;
    display: block;
    min-height: 220px;
    border-radius: 24px;
    padding: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
    border: 1px solid rgba(226,232,240,0.85);
    overflow: hidden;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), border-color 0.22s var(--ease-out);
}

.quick-action-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.04), transparent 48%, rgba(15, 23, 42, 0.02));
    opacity: 0;
    transition: opacity 0.22s var(--ease-out);
}

.quick-action-card:hover {
    transform: translateY(-6px);
    border-color: rgba(248, 113, 113, 0.28);
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.12);
}

.quick-action-card:hover::before {
    opacity: 1;
}

.quick-action-icon,
.quick-action-content,
.quick-action-footer,
.quick-action-ghost {
    position: relative;
    z-index: 1;
}

.quick-action-ghost {
    position: absolute;
    right: -6px;
    top: -8px;
    font-size: 86px;
    color: rgba(15, 23, 42, 0.06);
    transition: transform 0.22s var(--ease-out), color 0.22s var(--ease-out);
}

.quick-action-card:hover .quick-action-ghost {
    transform: translate(6px, -2px) scale(1.04);
    color: rgba(220, 38, 38, 0.08);
}

.quick-action-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.16);
}

.quick-action-content {
    margin-top: 18px;
}

.quick-action-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
}

.quick-action-description {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
}

.quick-action-footer {
    margin-top: 24px;
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.quick-action-link {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #b91c1c;
}

.quick-action-arrow {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
    transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.quick-action-card:hover .quick-action-arrow {
    background: #b91c1c;
    color: #fff;
    transform: translateX(4px);
}

/* ================================================
   FEED SURFACES
   ================================================ */
.feed-composer {
    border-radius: 28px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95));
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.dashboard-hero--feed {
    background:
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.18), transparent 30%),
        radial-gradient(circle at bottom left, rgba(249, 115, 22, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(91, 33, 182, 0.96) 0%, rgba(190, 24, 93, 0.94) 52%, rgba(220, 38, 38, 0.92) 100%);
}

.feed-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.72fr);
    gap: 24px;
    align-items: start;
}

.feed-main-column {
    min-width: 0;
}

.feed-side-column {
    display: grid;
    gap: 18px;
}

.feed-helper-card {
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.94));
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
    padding: 20px;
}

.feed-helper-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #be185d;
}

.feed-helper-title {
    margin-top: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.feed-helper-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.feed-helper-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.95);
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
}

.feed-helper-item i {
    color: #db2777;
    margin-top: 4px;
}

.feed-post-list {
    display: grid;
    gap: 16px;
}

.feed-empty-state {
    border-radius: 22px;
}

.feed-composer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    gap: 12px;
}

.feed-card {
    position: relative;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(248,250,252,0.96));
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.feed-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.04), transparent 45%, rgba(220, 38, 38, 0.03));
    pointer-events: none;
}

.feed-card-inner {
    position: relative;
    z-index: 1;
    padding: 18px;
}

.feed-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}

.feed-profile-link {
    display: flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
    transition: opacity 0.18s var(--ease-out);
}

.feed-profile-link:hover {
    opacity: 0.82;
}

.feed-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f43f5e, #dc2626);
    box-shadow: 0 12px 20px rgba(220, 38, 38, 0.18);
}

.feed-avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f43f5e, #dc2626);
}

.feed-profile-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-profile-role,
.feed-timestamp {
    font-size: 12px;
    color: #64748b;
}

.feed-delete-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    color: #dc2626;
    background: rgba(254, 226, 226, 0.9);
    transition: background 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}

.feed-delete-btn:hover {
    background: rgba(254, 202, 202, 1);
    transform: translateY(-1px);
}

.feed-content {
    font-size: 15px;
    line-height: 1.75;
    color: #1e293b;
}

.feed-image-grid {
    margin-top: 14px;
    display: grid;
    gap: 8px;
}

.feed-image-grid.cols-1 {
    grid-template-columns: 1fr;
}

.feed-image-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feed-image {
    width: 100%;
    border-radius: 18px;
    cursor: pointer;
    min-height: 180px;
    max-height: 320px;
    object-fit: cover;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
}

.feed-reaction-summary {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.feed-reaction-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 8px;
    margin-top: 12px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.reaction-btn {
    flex: 1;
    justify-content: center;
    border-radius: 14px;
    min-height: 42px;
}

.feed-comment-form {
    margin-top: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feed-comment-input {
    width: 100%;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 999px;
    padding: 11px 16px;
    background: rgba(248,250,252,0.95);
}

.feed-comment-submit {
    min-width: 46px;
    height: 46px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.15s var(--ease-out);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); color: #fff; }

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--bg-app); color: var(--text-primary); }

.btn-danger {
    background: #dc2626;
    color: #fff;
}
.btn-danger:hover { background: #b91c1c; color: #fff; }

.btn-success {
    background: #059669;
    color: #fff;
}
.btn-success:hover { background: #047857; color: #fff; }

/* ================================================
   BADGES / STATUS
   ================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 600;
}

.badge-red    { background: #fef2f2; color: #b91c1c; }
.badge-green  { background: #ecfdf5; color: #047857; }
.badge-blue   { background: #eff6ff; color: #1d4ed8; }
.badge-yellow { background: #fefce8; color: #854d0e; }
.badge-gray   { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }
.badge-orange { background: #fff7ed; color: #c2410c; }
.badge-purple { background: #f5f3ff; color: #6d28d9; }

/* ================================================
   FORM ELEMENTS
   ================================================ */
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 13.5px;
    color: var(--text-primary);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220,38,38,.08);
}

/* ================================================
   TABLES
   ================================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.data-table th {
    text-align: left;
    padding: 10px 16px;
    background: #f8fafc;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #fafbfc; }

/* ================================================
   ALERTS
   ================================================ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #78350f; border: 1px solid #fde68a; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ================================================
   REQUEST DETAIL PAGE
   ================================================ */
.request-detail-hero-grid {
    align-items: stretch;
}

.request-detail-hero-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.request-detail-hero-status {
    font-size: 2rem;
}

.request-detail-back-btn {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.request-detail-back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

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

.request-detail-summary-card {
    padding: 20px 22px;
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(248,250,252,0.98));
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.request-detail-summary-label,
.request-detail-label,
.request-detail-timeline-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.request-detail-summary-value {
    display: block;
    margin-top: 10px;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #0f172a;
}

.request-detail-summary-note {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
}

.request-detail-section {
    overflow: hidden;
}

.request-detail-section-inner {
    padding: 28px;
}

.request-detail-section-heading {
    align-items: flex-start;
}

.request-detail-section-actions {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.request-detail-action-btn {
    gap: 8px;
}

.request-detail-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.request-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.request-detail-field,
.request-detail-finance-card,
.request-detail-timeline-item,
.request-detail-attachment-card {
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

.request-detail-field {
    padding: 18px 20px;
}

.request-detail-field--wide {
    grid-column: span 2;
}

.request-detail-value {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    color: #0f172a;
    word-break: break-word;
}

.request-detail-note {
    margin-top: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(241, 245, 249, 0.95);
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
}

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

.request-detail-finance-card {
    padding: 20px;
    min-height: 126px;
}

.request-detail-finance-card--warning {
    background: linear-gradient(180deg, #fffaf0 0%, #fff7ed 100%);
    border-color: rgba(251, 191, 36, 0.35);
}

.request-detail-finance-card--success {
    background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
    border-color: rgba(16, 185, 129, 0.24);
}

.request-detail-amount {
    margin-top: 12px;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.request-detail-timeline {
    display: grid;
    gap: 14px;
}

.request-detail-timeline-item {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
    color: #334155;
}

.request-detail-alert {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 22px;
    margin-top: 18px;
}

.request-detail-alert--danger {
    background: linear-gradient(180deg, #fff1f2 0%, #fef2f2 100%);
    border: 1px solid rgba(248, 113, 113, 0.28);
    color: #7f1d1d;
}

.request-detail-alert-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}

.request-detail-alert h5 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
}

.request-detail-alert p {
    margin: 0;
    line-height: 1.7;
}

.request-detail-alert-meta {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #b91c1c;
}

.request-detail-empty-state {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    border-radius: 20px;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    background: rgba(248, 250, 252, 0.85);
    color: #475569;
}

.request-detail-empty-state > i {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 163, 184, 0.12);
    color: #64748b;
}

.request-detail-empty-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.request-detail-empty-state p {
    margin: 4px 0 0;
    font-size: 13px;
}

.request-detail-attachment-card {
    padding: 16px;
}

.request-edit-section .section-heading {
    margin-bottom: 20px;
}

.request-edit-highlight-box {
    padding: 18px 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fffbeb 0%, #fefce8 100%);
    border: 1px solid rgba(250, 204, 21, 0.28);
}

.request-edit-textarea {
    min-height: 108px;
    line-height: 1.7;
}

.request-edit-readonly-field {
    background: #f8fafc;
    color: #475569;
}

.request-edit-finance-panel {
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.request-detail-modal-card {
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 28px 56px rgba(15, 23, 42, 0.22);
}

.request-detail-modal-warning {
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff1f2 0%, #fef2f2 100%);
    border: 1px solid rgba(248, 113, 113, 0.24);
    color: #b91c1c;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .request-detail-summary-grid,
    .request-detail-finance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .request-detail-hero-split,
    .request-detail-info-grid {
        grid-template-columns: 1fr;
    }

    .request-detail-field--wide {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .request-detail-summary-grid,
    .request-detail-finance-grid {
        grid-template-columns: 1fr;
    }

    .request-detail-section-inner {
        padding: 22px 18px;
    }

    .request-detail-section-actions {
        margin-left: 0;
        justify-content: flex-start;
        width: 100%;
    }

    .request-detail-timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .mobile-work-menu-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.18);
        z-index: 63;
    }

    .mobile-work-menu {
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: calc(max(10px, env(safe-area-inset-bottom)) + 92px);
        padding: 14px;
        border-radius: 24px;
        background: rgba(255,255,255,0.96);
        border: 1px solid rgba(255,255,255,0.88);
        box-shadow: 0 24px 40px rgba(15, 23, 42, 0.18);
        backdrop-filter: blur(20px);
        z-index: 64;
    }

    .mobile-work-menu__header {
        margin-bottom: 10px;
        font-size: 12px;
        font-weight: 800;
        color: #991b1b;
        letter-spacing: 0.02em;
    }

    .mobile-work-menu__item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
        border-radius: 18px;
        color: #334155;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
    }

    .mobile-work-menu__item + .mobile-work-menu__item {
        margin-top: 8px;
    }

    .mobile-work-menu__item i {
        width: 18px;
        text-align: center;
        font-size: 16px;
        color: #991b1b;
    }

    .mobile-work-menu__item.is-active {
        background: rgba(153, 27, 27, 0.08);
        color: #991b1b;
    }

    .dashboard-stack {
        padding: 12px;
    }

    .request-detail-summary-grid {
        display: none;
    }

    .dashboard-hero {
        border-radius: 22px;
        padding: 18px 16px;
    }

    .dashboard-hero__eyebrow {
        padding: 7px 12px;
        font-size: 11px;
    }

    .dashboard-hero__title {
        margin-top: 14px;
        font-size: 2.35rem;
        line-height: 0.98;
        letter-spacing: -0.05em;
    }

    .dashboard-hero__lead {
        margin-top: 14px;
        font-size: 14px;
        line-height: 1.65;
    }

    .dashboard-hero__meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 18px;
    }

    .dashboard-hero__meta-item,
    .request-detail-back-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        min-width: 0;
        padding: 10px 12px;
        border-radius: 14px;
        font-size: 12px;
    }

    .request-detail-back-btn {
        grid-column: 1 / -1;
        background: rgba(255, 255, 255, 0.16);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .dashboard-hero-panel {
        gap: 10px;
    }

    .hero-stat-card {
        padding: 14px;
        border-radius: 18px;
    }

    .request-detail-hero-split {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero-stat-label {
        font-size: 10px;
    }

    .hero-stat-value,
    .request-detail-hero-status {
        font-size: 1.95rem;
        line-height: 1.05;
    }

    .hero-stat-caption {
        font-size: 12px;
        line-height: 1.55;
    }

    .request-detail-summary-grid {
        gap: 10px;
        margin-top: 10px;
    }

    .request-detail-summary-card {
        padding: 14px 16px;
        border-radius: 18px;
        box-shadow: 0 12px 22px rgba(15, 23, 42, 0.06);
    }

    .request-detail-summary-value {
        margin-top: 8px;
        font-size: 1rem;
    }

    .request-detail-summary-note {
        margin-top: 6px;
        font-size: 12px;
        line-height: 1.55;
    }

    .request-detail-section {
        border-radius: 22px;
    }

    .request-detail-section-inner {
        padding: 18px 16px;
    }

    .section-heading {
        gap: 10px;
        margin-bottom: 16px;
    }

    .section-heading-accent {
        width: 6px;
    }

    .section-heading__eyebrow {
        font-size: 11px;
    }

    .section-heading__title {
        font-size: 1.7rem;
        line-height: 1.08;
    }

    .section-heading__subtitle {
        font-size: 13px;
        line-height: 1.55;
    }

    .request-detail-section-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .request-detail-status-pill {
        justify-content: center;
        padding: 9px 12px;
    }

    .request-detail-action-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 12px;
        font-size: 12px;
    }

    .request-detail-field,
    .request-detail-finance-card,
    .request-detail-timeline-item,
    .request-detail-attachment-card,
    .request-detail-empty-state {
        border-radius: 18px;
    }

    .request-detail-field,
    .request-detail-finance-card,
    .request-detail-timeline-item {
        padding: 14px 15px;
        border-color: rgba(203, 213, 225, 0.95);
        box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
    }

    .request-detail-value {
        margin-top: 8px;
        font-size: 15px;
        line-height: 1.5;
    }

    .request-detail-note {
        margin-top: 8px;
        padding: 12px 13px;
        font-size: 13px;
    }

    .request-detail-amount {
        margin-top: 10px;
        font-size: 1.35rem;
    }

    .request-edit-highlight-box,
    .request-edit-finance-panel {
        padding: 14px 15px;
        border-radius: 18px;
    }

    .request-detail-modal-card {
        border-radius: 22px;
        padding: 20px 18px;
    }
}

@media (max-width: 420px) {
    .dashboard-hero__title {
        font-size: 2.05rem;
    }

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

    .section-heading__title {
        font-size: 1.55rem;
    }
}

/* ================================================
   MOBILE SIDEBAR
   ================================================ */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 49;
}

.sidebar-overlay.show { display: block; }

@media (max-width: 840px) {
    .ecms-sidebar {
        width: min(82vw, 360px);
        transform: translateX(-100%);
        box-shadow: 24px 0 40px rgba(15, 23, 42, 0.28);
    }
    .ecms-sidebar.open {
        transform: translateX(0);
    }
    .ecms-content {
        margin-left: 0;
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }

    /* Mobile topbar */
    .ecms-topbar {
        height: 68px;
        margin: 12px 12px 0;
        padding: 0 14px;
        border-radius: 24px;
        border: 1px solid rgba(255,255,255,0.8);
        background: rgba(255,255,255,0.82);
        backdrop-filter: blur(18px);
        box-shadow: 0 18px 34px rgba(127, 29, 29, 0.14);
        top: 10px;
        z-index: 60;
    }

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

    .topbar-menu-btn {
        width: 44px;
        height: 44px;
        border-radius: 16px;
        border: 1px solid rgba(153, 27, 27, 0.16);
        background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(254, 242, 242, 0.92));
        color: #7f1d1d;
        box-shadow: 0 10px 24px rgba(127, 29, 29, 0.14);
    }

    .topbar-menu-btn:hover {
        background: linear-gradient(135deg, rgba(255,255,255,1), rgba(254, 242, 242, 0.96));
    }

    .topbar-title-wrap {
        gap: 10px;
    }

    .topbar-title-badge {
        width: 40px;
        height: 40px;
        border-radius: 15px;
        background: #fff;
        box-shadow: 0 14px 24px rgba(15, 23, 42, 0.16);
    }

    .topbar-title {
        font-size: 16px;
        font-weight: 800;
        line-height: 1.15;
        flex: initial;
    }

    .topbar-title-subtitle {
        display: block;
    }

    .topbar-actions {
        display: none;
    }

    .topbar-profile-trigger {
        min-height: 44px;
        padding: 4px;
        border-radius: 18px;
        gap: 0;
    }

    .topbar-user-copy,
    .topbar-profile-caret {
        display: none;
    }

    .dashboard-stack {
        padding: 16px;
    }

    .dashboard-hero {
        border-radius: 24px;
        padding: 22px 18px;
    }

    .dashboard-hero--home {
        background-position: center center, 58% center;
    }

    .dashboard-hero-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .feed-workspace {
        grid-template-columns: 1fr;
    }

    .feed-side-column {
        order: -1;
    }

    .dashboard-hero-title {
        max-width: none;
    }

    .dashboard-hero__title {
        max-width: none;
    }

    .section-heading {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 12px;
    }

    .section-heading-line {
        display: none;
    }

    .quick-actions-grid {
        gap: 14px;
    }

    .quick-action-card {
        grid-column: span 6;
        min-height: 200px;
        border-radius: 20px;
        padding: 18px;
    }

    .page-content {
        padding: 14px 12px calc(108px + env(safe-area-inset-bottom));
    }

    .mobile-home-shell {
        display: block;
        margin-bottom: 18px;
    }

    .app-page-home .dashboard-hero--home,
    .app-page-home .home-directory-panel {
        display: none;
    }

    .mobile-home-hero-card {
        position: relative;
        overflow: hidden;
        padding: 20px 18px;
        border-radius: 30px;
        background: linear-gradient(145deg, #450a0a 0%, #7f1d1d 34%, #991b1b 64%, #b91c1c 100%);
        color: #fff;
        box-shadow: 0 28px 46px rgba(69, 10, 10, 0.32);
    }

    .mobile-home-hero-card::before,
    .mobile-home-hero-card::after {
        content: '';
        position: absolute;
        border-radius: 999px;
        pointer-events: none;
    }

    .mobile-home-hero-card::before {
        width: 220px;
        height: 220px;
        right: -100px;
        top: -90px;
        background: radial-gradient(circle, rgba(255,255,255,0.24) 0%, rgba(255,255,255,0.04) 62%, transparent 100%);
    }

    .mobile-home-hero-card::after {
        width: 180px;
        height: 180px;
        left: -82px;
        bottom: -92px;
        background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.03) 64%, transparent 100%);
    }

    .mobile-home-hero-top,
    .mobile-home-meta-row,
    .mobile-home-stat-grid {
        position: relative;
        z-index: 1;
    }

    .mobile-home-hero-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
    }

    .mobile-home-identity {
        display: flex;
        gap: 16px;
        min-width: 0;
        align-items: flex-start;
        flex: 1;
    }

    .mobile-home-avatar {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 176px;
        height: 176px;
        margin-left: -10px;
        border-radius: 34px;
        background: linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,255,255,0.14));
        border: 1px solid rgba(255,255,255,0.22);
        font-size: 42px;
        font-weight: 800;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 18px 34px rgba(69, 10, 10, 0.22);
        flex-shrink: 0;
        overflow: hidden;
    }

    .mobile-home-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 18%;
    }

    .mobile-home-copy {
        min-width: 0;
        padding-top: 12px;
    }

    .mobile-home-kicker {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.04em;
        color: rgba(255,255,255,0.88);
    }

    .mobile-home-name {
        margin-top: 4px;
        font-size: 1.85rem;
        line-height: 1.04;
        font-weight: 800;
        letter-spacing: -0.04em;
    }

    .mobile-home-role-chip,
    .mobile-home-meta-pill {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 999px;
        background: rgba(127, 29, 29, 0.24);
        border: 1px solid rgba(255,255,255,0.16);
        backdrop-filter: blur(14px);
        font-size: 12px;
        font-weight: 700;
    }

    .mobile-home-role-chip {
        margin-top: 12px;
    }

    .mobile-home-profile-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 999px;
        color: #fff;
        background: rgba(127, 29, 29, 0.26);
        border: 1px solid rgba(255,255,255,0.16);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
        flex-shrink: 0;
    }

    .mobile-home-meta-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
    }

    .mobile-home-stat-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin-top: 8px;
    }

    .mobile-home-stat-card {
        padding: 7px 9px;
        min-height: 62px;
        border-radius: 14px;
        background: linear-gradient(180deg, rgba(185, 28, 28, 0.28), rgba(127, 29, 29, 0.22));
        border: 1px solid rgba(255,255,255,0.12);
        backdrop-filter: blur(16px);
    }

    .mobile-home-stat-label {
        font-size: 9px;
        font-weight: 700;
        color: rgba(255,255,255,0.72);
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .mobile-home-stat-value {
        margin-top: 3px;
        font-size: 1.05rem;
        line-height: 1;
        font-weight: 800;
        letter-spacing: -0.04em;
    }

    .mobile-home-stat-note {
        margin-top: 2px;
        font-size: 9px;
        color: rgba(255,255,255,0.76);
    }

    .mobile-home-alert-card {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 14px;
        padding: 14px 16px;
        border-radius: 20px;
        background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(254, 242, 242, 0.94));
        border: 1px solid rgba(254, 202, 202, 0.92);
        color: #450a0a;
        box-shadow: 0 18px 28px rgba(127, 29, 29, 0.12);
    }

    .mobile-home-alert-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 14px;
        background: linear-gradient(135deg, #991b1b, #b91c1c);
        color: #fff;
        box-shadow: 0 10px 20px rgba(127, 29, 29, 0.18);
        flex-shrink: 0;
    }

    .mobile-home-alert-copy {
        min-width: 0;
        flex: 1;
    }

    .mobile-home-alert-title {
        font-size: 13px;
        font-weight: 800;
        color: #7f1d1d;
    }

    .mobile-home-alert-text {
        margin-top: 4px;
        font-size: 12px;
        color: #7f1d1d;
    }

    .mobile-home-alert-arrow {
        color: #991b1b;
        flex-shrink: 0;
    }

    .mobile-home-team-strip {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-top: 14px;
        padding: 12px 14px;
        border-radius: 20px;
        background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(254, 242, 242, 0.84));
        border: 1px solid rgba(254, 202, 202, 0.76);
        box-shadow: 0 14px 24px rgba(15, 23, 42, 0.06);
    }

    .mobile-home-directory {
        margin-top: 14px;
        padding: 16px 0 4px;
        border-radius: 24px;
        background: linear-gradient(180deg, #b61a1a 0%, #a81515 100%);
        border: 1px solid rgba(255,255,255,0.12);
        box-shadow: 0 20px 34px rgba(88, 8, 8, 0.28);
        overflow: hidden;
    }

    .mobile-home-directory__header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
        padding: 0 14px;
    }

    .mobile-home-directory__eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.82);
    }

    .mobile-home-directory__title {
        margin-top: 4px;
        font-size: 1rem;
        font-weight: 800;
        line-height: 1.2;
        color: #fff;
    }

    .mobile-home-directory__subtitle {
        margin-top: 4px;
        font-size: 11px;
        line-height: 1.45;
        color: rgba(255,255,255,0.84);
    }

    .mobile-home-directory__count {
        flex-shrink: 0;
        padding: 8px 10px;
        border-radius: 999px;
        background: rgba(255,255,255,0.14);
        border: 1px solid rgba(255,255,255,0.18);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
        font-size: 11px;
        font-weight: 800;
        color: #fff;
    }

    .mobile-home-directory__rail {
        position: relative;
        margin-top: 10px;
    }

    .mobile-home-directory__rail::before,
    .mobile-home-directory__rail::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 30px;
        z-index: 1;
        pointer-events: none;
    }

    .mobile-home-directory__rail::before {
        left: 0;
        background: linear-gradient(90deg, rgba(168, 21, 21, 1), transparent);
    }

    .mobile-home-directory__rail::after {
        right: 0;
        background: linear-gradient(270deg, rgba(168, 21, 21, 1), transparent);
    }

    .mobile-home-directory__carousel {
        padding: 0 10px;
    }

    .mobile-home-directory__card {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        width: 88px;
        margin: 0 8px;
        color: #fff;
        text-align: center;
    }

    .mobile-home-directory__avatar {
        width: 70px;
        height: 70px;
        border-radius: 999px;
        overflow: hidden;
        border: 3px solid rgba(255,255,255,0.92);
        background: linear-gradient(135deg, #ef4444, #c11f1f);
        box-shadow: 0 12px 22px rgba(102, 10, 10, 0.28);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        font-weight: 800;
    }

    .mobile-home-directory__name {
        width: 100%;
        margin-top: 8px;
        font-size: 11px;
        font-weight: 800;
        line-height: 1.25;
        color: #fff;
        text-shadow: 0 1px 1px rgba(102, 10, 10, 0.28);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-home-directory__role {
        width: 100%;
        margin-top: 3px;
        font-size: 10px;
        line-height: 1.25;
        color: rgba(255,255,255,0.8);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-home-team-title {
        font-size: 13px;
        font-weight: 800;
        color: #111827;
    }

    .mobile-home-team-subtitle {
        margin-top: 3px;
        font-size: 12px;
        color: #6b7280;
    }

    .mobile-home-team-avatars {
        display: flex;
        align-items: center;
        padding-left: 10px;
    }

    .mobile-home-team-avatar {
        width: 34px;
        height: 34px;
        margin-left: -10px;
        border-radius: 999px;
        border: 2px solid #fff;
        background: linear-gradient(135deg, #991b1b, #b91c1c);
        color: #fff;
        font-size: 13px;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
    }

    .mobile-home-team-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .app-page-home .home-quick-actions-panel {
        margin-top: 12px;
    }

    .app-page-home .home-quick-actions-panel .section-heading,
    .app-page-home .home-news-panel .section-heading,
    .app-page-home .home-requests-panel .section-heading {
        margin-bottom: 14px;
    }

    .app-page-home .quick-action-card {
        min-height: 148px;
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        text-align: left;
        padding: 16px;
        border-radius: 22px;
        box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
    }

    .app-page-home .quick-action-content {
        margin-top: 14px;
        width: 100%;
    }

    .app-page-home .quick-action-title {
        font-size: 14px;
        line-height: 1.35;
    }

    .app-page-home .quick-action-icon {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .app-page-home .section-surface {
        border-radius: 24px;
        box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
    }

    .mobile-bottom-nav {
        display: grid;
        grid-template-columns: repeat(var(--mobile-bottom-nav-columns, 4), minmax(0, 1fr));
        align-items: end;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: max(10px, env(safe-area-inset-bottom));
        padding: 12px 14px;
        border-radius: 28px;
        background: rgba(255,255,255,0.88);
        border: 1px solid rgba(255,255,255,0.82);
        box-shadow: 0 24px 36px rgba(15, 23, 42, 0.14);
        backdrop-filter: blur(22px);
        z-index: 65;
    }

    .mobile-bottom-nav__item,
    .mobile-bottom-nav__item--menu {
        border: 0;
        background: transparent;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 46px;
        color: #64748b;
        font-size: 11px;
        font-weight: 700;
        text-align: center;
    }

    .mobile-bottom-nav__item i,
    .mobile-bottom-nav__item--menu i {
        font-size: 18px;
    }

    .mobile-bottom-nav__item.is-active {
        color: #991b1b;
    }
}

/* Mobile topbar toggle btn */
.topbar-menu-btn {
    display: none;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.topbar-menu-btn:hover { background: var(--bg-app); }

@media (max-width: 840px) {
    .topbar-menu-btn { display: flex; }
}

.mobile-home-shell,
.mobile-bottom-nav {
    display: none;
}

.mobile-bottom-nav__item,
.mobile-bottom-nav__fab {
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 840px) {
    .mobile-home-shell {
        display: block;
    }

    .mobile-bottom-nav {
        display: grid;
    }
}

/* ================================================
   PAGE CONTENT AREA
   ================================================ */
.page-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

@media (max-width: 640px) {
    .page-content { padding: 16px; }

    .app-page-home .page-content {
        padding: 12px 12px calc(108px + env(safe-area-inset-bottom));
    }

    .feed-composer-toolbar {
        flex-wrap: wrap;
    }

    .feed-helper-card {
        border-radius: 20px;
        padding: 16px;
    }

    .dashboard-chip-row {
        gap: 8px;
    }

    .dashboard-chip {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-stat-card {
        padding: 16px;
        border-radius: 18px;
    }

    .quick-action-card {
        grid-column: span 6;
        min-height: 0;
        aspect-ratio: 1 / 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 14px 10px;
    }

    .quick-action-ghost {
        display: none;
    }

    .quick-action-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
    }

    .quick-action-content {
        margin-top: 10px;
        width: 100%;
    }

    .quick-action-title {
        font-size: 12px;
        font-weight: 700;
        line-height: 1.3;
    }

    .quick-action-description,
    .quick-action-footer {
        display: none;
    }

    .app-page-home .quick-action-card {
        min-height: 144px;
        aspect-ratio: auto;
        align-items: flex-start;
        justify-content: space-between;
        text-align: left;
        padding: 16px;
    }

    .app-page-home .quick-action-content {
        margin-top: 14px;
    }

    .app-page-home .quick-action-title {
        font-size: 14px;
    }

    .app-page-home .quick-action-icon {
        width: 48px;
        height: 48px;
    }

    .mobile-home-name {
        font-size: 1.45rem;
    }

    .mobile-home-stat-grid {
        gap: 8px;
    }

    .mobile-home-stat-card {
        padding: 13px;
        border-radius: 16px;
    }

    .mobile-bottom-nav {
        left: 10px;
        right: 10px;
        padding: 11px 12px;
    }

    .app-page-create-other .page-content {
        padding: 12px 10px calc(88px + env(safe-area-inset-bottom));
    }

    .app-page-create-other .dashboard-stack {
        padding: 8px;
    }

    .app-page-create-other .section-surface {
        border-radius: 22px;
    }

    .app-page-create-other .section-surface > .p-6 {
        padding: 16px;
    }

    .app-page-create-other #otherRequisitionForm {
        padding: 0;
    }

    .app-page-create-other #otherRequisitionForm > .bg-white,
    .app-page-create-other #otherRequisitionForm > .section-surface,
    .app-page-create-other #otherRequisitionForm > .border,
    .app-page-create-other #otherRequisitionForm > .rounded-lg {
        margin-bottom: 14px;
    }

    .app-page-create-other #otherRequisitionForm .bg-white.rounded-lg.shadow {
        border-radius: 18px;
        overflow: hidden;
    }

    .app-page-create-other #otherRequisitionForm .bg-white.rounded-lg.shadow > .p-4,
    .app-page-create-other #otherRequisitionForm .bg-white.rounded-lg.shadow > .p-6 {
        padding: 14px;
    }

    .app-page-create-other #otherRequisitionForm .grid.grid-cols-1.md\:grid-cols-2.gap-6 {
        gap: 14px;
    }

    .app-page-create-other #otherRequisitionForm input,
    .app-page-create-other #otherRequisitionForm select,
    .app-page-create-other #otherRequisitionForm textarea {
        min-height: 48px;
        font-size: 16px;
    }

    .app-page-create-other #otherRequisitionForm textarea {
        min-height: 120px;
    }

    .app-page-create .page-content {
        padding: 12px 10px calc(88px + env(safe-area-inset-bottom));
    }

    .app-page-create .dashboard-stack {
        padding: 8px;
    }

    .app-page-create .dashboard-hero {
        padding: 14px 14px;
        border-radius: 20px;
        margin-bottom: 12px;
    }

    .app-page-create .dashboard-hero-grid {
        gap: 10px;
    }

    .app-page-create .dashboard-kicker {
        padding: 6px 10px;
        font-size: 10px;
    }

    .app-page-create .dashboard-hero-title {
        margin-top: 10px;
        font-size: 1.8rem;
        line-height: 0.96;
    }

    .app-page-create .dashboard-hero-subtitle {
        margin-top: 10px;
        font-size: 13px;
        line-height: 1.5;
    }

    .app-page-create .dashboard-chip-row {
        margin-top: 14px;
        gap: 8px;
    }

    .app-page-create .dashboard-chip {
        padding: 8px 10px;
        font-size: 12px;
    }

    .app-page-create .dashboard-hero-panel {
        display: none;
    }

    .app-page-create .section-surface {
        border-radius: 22px;
    }

    .app-page-create .section-surface > .px-6,
    .app-page-create .section-surface > .p-6 {
        padding-left: 16px;
        padding-right: 16px;
    }

    .app-page-create .section-surface > .px-6 {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .app-page-create .section-surface > form.p-6 {
        padding: 16px;
    }

    .app-page-create .section-surface form > .grid.grid-cols-1.md\:grid-cols-2.gap-6 {
        gap: 14px;
    }

    .app-page-create .section-surface form .bg-red-50,
    .app-page-create .section-surface form .bg-white.rounded-lg.shadow {
        border-radius: 18px;
    }

    .app-page-create .section-surface form input,
    .app-page-create .section-surface form select,
    .app-page-create .section-surface form textarea {
        min-height: 48px;
        font-size: 16px;
    }

    .app-page-create .section-surface form textarea {
        min-height: 120px;
    }
}

/* ================================================
   STAT CARDS
   ================================================ */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}

.stat-card-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ================================================
   PROFILE DROPDOWN
   ================================================ */
.profile-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 220px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    overflow: hidden;
}

.profile-dropdown-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(248,250,252,0.96), rgba(255,255,255,0.98));
}

.profile-dropdown-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-dropdown-avatar {
    width: 42px;
    height: 42px;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.24), 0 10px 20px rgba(220,38,38,0.14);
}

.profile-dropdown-copy {
    min-width: 0;
}

.profile-dropdown-email {
    font-size: 12px;
    color: #64748b;
    margin-top: 1px;
}

.profile-dropdown-role {
    margin-top: 8px;
    display: inline-flex;
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13.5px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background 0.1s, color 0.1s;
}

.profile-dropdown a:hover { background: var(--bg-app); color: var(--text-primary); }
.profile-dropdown a.danger { color: #dc2626; }
.profile-dropdown a.danger:hover { background: #fef2f2; }
.profile-dropdown a i { width: 16px; text-align: center; color: #94a3b8; }
.profile-dropdown a.danger i { color: #dc2626; }
.profile-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* User avatar circle */
.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #b91c1c);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.18), 0 10px 20px rgba(220,38,38,0.18);
    transition: opacity 0.15s, transform 0.15s var(--ease-out);
}

.user-avatar:hover { opacity: .92; transform: scale(1.02); }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ================================================
   LOGIN PAGE
   ================================================ */
.login-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-page {
    min-height: 0;
    flex: 1;
    display: flex;
    background: var(--bg-app);
}

.login-left {
    width: 420px;
    flex-shrink: 0;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: rgba(220,38,38,.12);
    border-radius: 50%;
    top: -80px;
    right: -80px;
    pointer-events: none;
}

.login-left::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(220,38,38,.08);
    border-radius: 50%;
    bottom: 40px;
    left: -60px;
    pointer-events: none;
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px 56px;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.login-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.login-card-sub {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .login-page { flex-direction: column; }
    .login-left {
        width: 100%;
        padding: 32px 24px;
        min-height: 200px;
    }
    .login-left::before, .login-left::after { display: none; }
    .login-right { padding: 24px 16px 32px; }
}

/* ================================================
   FOOTER
   ================================================ */
.ecms-footer {
    border-top: 1px solid var(--border);
    padding: 14px 24px;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* ================================================
   UTILITY
   ================================================ */
.text-primary-color { color: var(--primary); }
.bg-primary-color   { background: var(--primary); }

/* Fade-in animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up { animation: fadeInUp 0.3s var(--ease-out) both; }

/* Stagger */
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 60ms; }
.stagger > *:nth-child(3) { animation-delay: 120ms; }
.stagger > *:nth-child(4) { animation-delay: 180ms; }
.stagger > *:nth-child(5) { animation-delay: 240ms; }
.stagger > *:nth-child(6) { animation-delay: 300ms; }

/* Print */
@media print {
    .ecms-sidebar,
    .ecms-topbar,
    .topbar-menu-btn,
    .sidebar-overlay { display: none !important; }
    .ecms-content { margin-left: 0 !important; }
}
