/* ============================================================
   LIFT MANAGEMENT — Aurora Design System
   Glass-morphism, warm palette, Plus Jakarta Sans
   ============================================================ */

:root {
    /* ===== BACKGROUND ===== */
    --bg-gradient-1: #faf8f5;
    --bg-gradient-2: #f5f0eb;
    --bg-gradient-3: #efe8e0;

    /* ===== GLASS ===== */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);

    /* ===== TEXT ===== */
    --text-primary: #1a1714;
    --text-secondary: #6b635a;
    --text-muted: #9d958c;

    /* ===== BRAND ACCENTS ===== */
    --accent-warm: #c4956a;
    --accent-coral: #e8a598;
    --accent-sage: #9cb89b;
    --accent-sky: #8eb8d4;

    /* ===== FUNCTIONAL ===== */
    --blue: #8eb8d4;
    --green: #9cb89b;
    --red: #e8a598;
    --orange: #e0b075;

    /* ===== LAYOUT ===== */
    --sidebar-width: 280px;
    --header-height: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { min-height: 100vh; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(145deg, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 50%, var(--bg-gradient-3) 100%);
    color: var(--text-primary);
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* =============== AURORA BACKGROUND =============== */
.bg-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatShape 20s ease-in-out infinite;
}
.bg-shape-1 {
    width: 600px; height: 600px;
    background: linear-gradient(135deg, #f5d5c8, #e8c4b8);
    top: -200px; right: -100px;
}
.bg-shape-2 {
    width: 500px; height: 500px;
    background: linear-gradient(135deg, #d4e5d3, #c8dbc7);
    bottom: -150px; left: -100px;
    animation-delay: -5s;
}
.bg-shape-3 {
    width: 420px; height: 420px;
    background: linear-gradient(135deg, #e8d5c0, #d8c0a8);
    top: 30%; left: 35%;
    animation-delay: -10s;
    opacity: 0.35;
}
@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(30px, -30px) scale(1.05); }
    66%      { transform: translate(-20px, 20px) scale(0.95); }
}

/* =============== LAYOUT =============== */
.app-container {
    margin-left: 300px;
    padding: 24px;
    position: relative;
    min-height: 100vh;
    z-index: 1;
}
.main-content {
    max-width: 1400px;
    margin: 0 auto;
}
.page-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* =============== PAGE HEADING =============== */
.page-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.page-heading {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* =============== GLASS CARD =============== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

/* =============== CARD TITLE =============== */
.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.card-title i {
    color: var(--accent-warm);
    font-size: 15px;
}

/* =============== BUTTONS =============== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-warm), #d4a07a);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(196, 149, 106, 0.3);
    font-family: inherit;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 149, 106, 0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    padding: 12px 24px;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    background: white;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.btn-secondary:hover {
    background: #f8f9fa;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.8);
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 15px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}
.action-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.btn-primary.sm, .btn-secondary.sm, .btn-outline.sm {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 10px;
}

/* =============== STATUS BADGES =============== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}
.status-badge.active   { background: rgba(156, 184, 155, 0.2); color: #5a8a58; }
.status-badge.vacation { background: rgba(142, 184, 212, 0.2); color: #4a8ab0; }
.status-badge.inactive { background: rgba(232, 165, 152, 0.2); color: #b85a4a; }
.status-badge.pending  { background: rgba(224, 176, 117, 0.2); color: #a07a4a; }
.status-badge.warm     { background: rgba(196, 149, 106, 0.18); color: #a07a4a; }
.status-badge.plain    { background: rgba(0, 0, 0, 0.05); color: var(--text-secondary); }

/* =============== FORMS =============== */
.form-group   { margin-bottom: 20px; }
.form-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    background: white;
    border-color: var(--accent-warm);
    box-shadow: 0 4px 12px rgba(196, 149, 106, 0.15);
}
.form-textarea { min-height: 88px; resize: vertical; }

.input-icon-group { position: relative; display: flex; align-items: center; }
.input-icon-group i {
    position: absolute; left: 16px;
    color: var(--text-muted); font-size: 14px;
    pointer-events: none;
}
.input-icon-group input { padding-left: 42px; }

.form-divider {
    border: none;
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 24px 0;
}

/* =============== SEARCH BOX =============== */
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 240px;
    padding: 11px 16px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    transition: all 0.18s;
}
.search-box input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    width: 100%;
    font-family: inherit;
    color: var(--text-primary);
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box:focus-within {
    background: white;
    border-color: rgba(196, 149, 106, 0.5);
    box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.1),
                0 2px 8px rgba(196, 149, 106, 0.08);
}
.search-box:focus-within i.fa-magnifying-glass { color: var(--accent-warm); }
.search-box i { color: var(--text-muted); font-size: 14px; }

.filter-select {
    padding: 11px 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
}
.filter-select:hover { background: rgba(255, 255, 255, 0.8); }

/* =============== TOOLBAR =============== */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 16px;
    flex-wrap: wrap;
}
.toolbar-actions { display: flex; gap: 12px; align-items: center; }

.view-toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 3px;
}
.view-toggle button {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 7px 11px;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.15s;
}
.view-toggle button.active {
    background: white;
    color: var(--text-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* =============== TOOLBAR COUNT PILL =============== */
.toolbar-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(142, 184, 212, 0.12);
    border: 1px solid rgba(142, 184, 212, 0.25);
    border-radius: 12px;
    color: #4a8ab0;
    font-size: 13px;
    font-weight: 600;
}
.toolbar-count-pill strong {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}
.toolbar-count-pill span { color: var(--text-muted); font-weight: 500; }

/* =============== TABLES =============== */
.table-card { overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead { background: rgba(0, 0, 0, 0.02); }
.data-table th {
    text-align: left;
    padding: 16px 24px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}
.data-table td {
    padding: 16px 24px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    vertical-align: middle;
}
.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.4); cursor: pointer; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table td.muted { color: var(--text-muted); }
.data-table td.num { font-variant-numeric: tabular-nums; }
.data-table td.mono { font-variant-numeric: tabular-nums; }
.data-table td.num.positive { color: #5a8a58; font-weight: 600; }
.data-table td.num.negative { color: #b85a4a; font-weight: 600; }

/* Employee/client cell (avatar + name + sub) */
.emp-cell { display: flex; align-items: center; gap: 12px; }
.emp-avatar {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}
.emp-name { font-weight: 600; color: var(--text-primary); }
.emp-dept { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

/* =============== INFO GRID =============== */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.info-item { display: flex; flex-direction: column; gap: 4px; }
.info-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 500;
}
.info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* =============== STAT CARDS =============== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}
.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-icon {
    width: 54px; height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.stat-info h3 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

.border-blue   .stat-icon { background: rgba(142, 184, 212, 0.2); color: var(--accent-sky); }
.border-green  .stat-icon { background: rgba(156, 184, 155, 0.2); color: var(--accent-sage); }
.border-red    .stat-icon { background: rgba(232, 165, 152, 0.2); color: var(--accent-coral); }
.border-orange .stat-icon { background: rgba(224, 176, 117, 0.2); color: var(--accent-warm); }

/* =============== FILTER TAB CARDS (like BAĞÇAM screenshot) =============== */
.filter-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.filter-tab-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--glass-shadow);
}
.filter-tab-card:hover { transform: translateY(-3px); }
.filter-tab-card.active {
    background: var(--text-primary);
    border-color: var(--text-primary);
    box-shadow: 0 8px 24px rgba(26, 23, 20, 0.18);
}
.filter-tab-card.active .ft-label { color: rgba(255, 255, 255, 0.65); }
.filter-tab-card.active .ft-value { color: white; }
.filter-tab-icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.filter-tab-card.active .filter-tab-icon {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}
.ft-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}
.ft-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

/* Filter tab icon colour variants */
.ft-icon-warm   { background: rgba(196, 149, 106, 0.18); color: var(--accent-warm); }
.ft-icon-sage   { background: rgba(156, 184, 155, 0.18); color: #5a8a58; }
.ft-icon-sky    { background: rgba(142, 184, 212, 0.18); color: #4a8ab0; }
.ft-icon-orange { background: rgba(224, 176, 117, 0.18); color: #a07a4a; }
.ft-icon-coral  { background: rgba(232, 165, 152, 0.18); color: #b85a4a; }
.ft-icon-dark   { background: rgba(26, 23, 20, 0.08); color: var(--text-primary); }

/* =============== QUICK ACTION CARDS =============== */
.dash-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
.dash-qa-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: all 0.25s;
}
.dash-qa-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}
.dash-qa-icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.dash-qa-info { flex: 1; min-width: 0; }
.dash-qa-title { font-size: 14px; font-weight: 600; color: var(--text-primary); display: block; }
.dash-qa-desc  { font-size: 12px; color: var(--text-muted); display: block; margin-top: 2px; }
.dash-qa-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
}
.dash-qa-badge.dqa-coral { background: rgba(232, 165, 152, 0.2); color: #b85a4a; }
.dash-qa-badge.dqa-sage  { background: rgba(156, 184, 155, 0.2); color: #5a8a58; }
.dash-qa-arrow {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.2s;
}
.dash-qa-card:hover .dash-qa-arrow { transform: translateX(3px); }

.dqa-coral .dash-qa-icon { background: rgba(232, 165, 152, 0.15); color: #b85a4a; }
.dqa-warm  .dash-qa-icon { background: rgba(224, 176, 117, 0.15); color: #a07a4a; }
.dqa-sky   .dash-qa-icon { background: rgba(142, 184, 212, 0.15); color: #4a8ab0; }
.dqa-sage  .dash-qa-icon { background: rgba(156, 184, 155, 0.15); color: #5a8a58; }

/* =============== CALENDAR / EVENT LIST =============== */
.dash-cal-list { display: flex; flex-direction: column; gap: 10px; }
.dash-cal-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.2s;
}
.dash-cal-item:hover { background: rgba(255, 255, 255, 0.65); }
.dash-cal-date {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}
.cal-day   { font-size: 18px; line-height: 1; }
.cal-month { font-size: 10px; text-transform: uppercase; margin-top: 2px; opacity: 0.85; }
.cal-birthday  { background: linear-gradient(135deg, var(--accent-coral), #d4877a); }
.cal-interview { background: linear-gradient(135deg, var(--accent-sky),   #6a9fc4); }
.cal-leave     { background: linear-gradient(135deg, var(--accent-warm),  #d4a07a); }
.cal-event     { background: linear-gradient(135deg, var(--accent-sage),  #7aa078); }
.cal-fault     { background: linear-gradient(135deg, #d4877a, #b85a4a); }

.dash-cal-info { flex: 1; min-width: 0; }
.dash-cal-title { font-size: 14px; font-weight: 600; color: var(--text-primary); display: block; }
.dash-cal-sub   { font-size: 12px; color: var(--text-muted); display: block; margin-top: 2px; }
.dash-cal-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 8px;
    white-space: nowrap;
}
.tag-birthday  { background: rgba(232, 165, 152, 0.2); color: #b85a4a; }
.tag-interview { background: rgba(142, 184, 212, 0.2); color: #4a8ab0; }
.tag-leave     { background: rgba(196, 149, 106, 0.2); color: #a07a4a; }
.tag-event     { background: rgba(156, 184, 155, 0.2); color: #5a8a58; }

/* =============== DASHBOARD LAYOUT =============== */
.dashboard-grid { display: flex; flex-direction: column; gap: 20px; }
.dash-widgets-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.dash-widget { padding: 22px; }

.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.widget-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.widget-header h3 i { color: var(--accent-warm); font-size: 14px; }
.widget-header a {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.widget-header a:hover { color: var(--accent-warm); }

/* =============== PROGRESS BAR (warm) =============== */
.progress {
    height: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}
.progress > span {
    display: block;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-warm), #d4a07a);
    transition: width 240ms ease;
    border-radius: 4px;
}
.progress.sage > span { background: linear-gradient(135deg, var(--accent-sage), #7aa078); }
.progress.sky  > span { background: linear-gradient(135deg, var(--accent-sky), #6a9fc4); }
.progress.coral > span { background: linear-gradient(135deg, var(--accent-coral), #d4877a); }
.progress.thin { height: 6px; }

/* =============== TABS (text pills on card) =============== */
.tabs-bar {
    display: inline-flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    padding: 5px;
}
.tabs-bar button {
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    font-weight: 600;
    transition: all 0.15s;
}
.tabs-bar button.active {
    background: var(--text-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(26, 23, 20, 0.15);
}
.tabs-bar button:not(.active):hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
}

/* =============== LIFT CARD GRID =============== */
.lift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.lift-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 18px 20px;
    transition: all 0.2s;
}
.lift-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.lift-card .top { display: flex; justify-content: space-between; align-items: flex-start; }
.lift-card .id  {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}
.lift-card .model {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 12px;
}
.lift-card .serial {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 3px;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}
.lift-card .loc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.45;
}
.lift-card .foot {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}
.lift-card .foot .date {
    font-weight: 600;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

/* =============== LIST ITEM (activity feed, etc.) =============== */
.list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.2s;
}
.list-item:hover { background: rgba(255, 255, 255, 0.65); }
.list-item-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: white;
    flex-shrink: 0;
}
.list-item-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.list-item-sub   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* =============== EXPENSE LIST =============== */
.exp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.2s;
    margin-bottom: 10px;
}
.exp-row:last-child { margin-bottom: 0; }
.exp-row:hover { background: rgba(255, 255, 255, 0.65); }
.exp-row .left { display: flex; gap: 14px; align-items: center; min-width: 0; }
.exp-row .icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    background: rgba(232, 165, 152, 0.18);
    color: #b85a4a;
    flex-shrink: 0;
}
.exp-row .desc { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.exp-row .meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.exp-row .amt {
    font-size: 15px;
    font-weight: 700;
    color: #b85a4a;
    font-variant-numeric: tabular-nums;
}

/* =============== MODAL / SIDE PANEL =============== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.side-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 520px;
    max-width: 100vw;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.08);
    z-index: 1010;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
}
.side-panel.open { transform: translateX(0); }
.side-panel-head {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.side-panel-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.side-panel-title i { color: var(--accent-warm); font-size: 16px; }
.side-panel-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}
.side-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}
.side-panel-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(0, 0, 0, 0.02);
}

.close-btn {
    background: rgba(0, 0, 0, 0.04);
    border: none;
    width: 36px; height: 36px;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.close-btn:hover {
    background: rgba(232, 165, 152, 0.15);
    color: #b85a4a;
}

/* =============== Centered modal =============== */
.center-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    width: calc(100% - 48px);
    max-width: 560px;
    max-height: 88vh;
    background: #F8F8F8;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    z-index: 1010;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.center-modal.open {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}
.center-modal.wide { max-width: 720px; }
.center-modal.xwide { max-width: 860px; }

.center-modal-head {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.center-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.center-modal-title i { color: var(--accent-warm); font-size: 16px; }
.center-modal-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
}
.center-modal-body {
    padding: 22px 24px;
    overflow-y: auto;
    flex: 1;
}
.center-modal-foot {
    padding: 14px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #F1F1F1;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}
.center-modal-foot .hint {
    font-size: 12px;
    color: var(--text-muted);
}

.form-section-head {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.form-section-head i { color: var(--accent-warm); font-size: 12px; }

.radio-group {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}
.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-primary);
    font-weight: 500;
}
.radio-label input[type="radio"] {
    accent-color: var(--accent-warm);
    width: 16px; height: 16px;
    cursor: pointer;
}

.required { color: #b85a4a; margin-left: 2px; }

/* Form fields inside modals — white cells on gray modal bg */
.center-modal .form-input,
.center-modal .form-select,
.center-modal .form-textarea {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.center-modal .form-input:focus,
.center-modal .form-select:focus,
.center-modal .form-textarea:focus {
    background: #ffffff;
    border-color: var(--accent-warm);
    box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.12);
}
.center-modal .form-input::placeholder,
.center-modal .form-textarea::placeholder {
    color: #b5b0a9;
}

/* Pill-style multi-select (for filial-like selectors) */
.pill-select {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pill-select label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
    font-weight: 500;
}
.pill-select label:hover {
    background: rgba(0, 0, 0, 0.07);
}
.pill-select label.selected {
    background: var(--accent-warm);
    color: white;
    border-color: var(--accent-warm);
    box-shadow: 0 2px 8px rgba(196, 149, 106, 0.25);
}
.pill-select label.selected i { color: white; }
.pill-select label i {
    color: var(--text-secondary);
    font-size: 12px;
}
.pill-select input[type="checkbox"] {
    display: none;
}
.pill-all-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    user-select: none;
}
.pill-all-checkbox input[type="checkbox"] {
    accent-color: var(--accent-warm);
    width: 14px; height: 14px;
    cursor: pointer;
}

.field-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* =============== STEPPER =============== */
.stepper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
}
.stepper-item { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.stepper-circle {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}
.stepper-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
}
.stepper-item.done .stepper-circle {
    background: rgba(156, 184, 155, 0.2);
    color: #5a8a58;
    border-color: rgba(156, 184, 155, 0.35);
}
.stepper-item.current .stepper-circle {
    background: linear-gradient(135deg, var(--accent-warm), #d4a07a);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(196, 149, 106, 0.3);
}
.stepper-item.current .stepper-label { color: var(--text-primary); }
.stepper-item.done .stepper-label { color: var(--text-secondary); }
.stepper-bar {
    flex: 1;
    height: 2px;
    background: rgba(0, 0, 0, 0.06);
    margin-top: 16px;
    border-radius: 2px;
}
.stepper-bar.done { background: rgba(156, 184, 155, 0.4); }

/* =============== PHOTO DROP =============== */
.photo-drop {
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    padding: 28px 20px;
    background: rgba(255, 255, 255, 0.4);
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.photo-drop:hover {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(196, 149, 106, 0.4);
    color: var(--accent-warm);
}

/* =============== INLINE INFO ROW =============== */
.inline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}
.inline-row .k { color: var(--text-secondary); font-weight: 500; }
.inline-row .v { color: var(--text-primary); font-weight: 600; font-variant-numeric: tabular-nums; }
.inline-row.em .v { color: #5a8a58; font-size: 15px; }
.inline-row.negative .v { color: #b85a4a; }

/* =============== CHART (SVG) =============== */
.chart { width: 100%; height: 260px; }
.chart-legend {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}
.chart-legend .dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: middle;
}

/* =============== CLIENTS SPLIT =============== */
.clients-split { display: grid; grid-template-columns: 320px 1fr; gap: 20px; }
.client-list-card {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 100px);
    padding: 0;
    overflow: hidden;
}
.client-list-head {
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.client-list-head .title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.client-list-body { flex: 1; overflow-y: auto; padding: 10px; }
.client-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 4px;
    border-radius: 14px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    width: 100%;
    text-align: left;
    font-family: inherit;
}
.client-item:hover {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(255, 255, 255, 0.4);
}
.client-item.active {
    background: rgba(196, 149, 106, 0.12);
    border-color: rgba(196, 149, 106, 0.25);
}
.client-item .name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.client-item .sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; font-variant-numeric: tabular-nums; }

/* =============== RESPONSIVE =============== */
@media (max-width: 1100px) {
    .dash-widgets-row { grid-template-columns: 1fr; }
    .clients-split { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .app-container { margin-left: 0; padding: 16px; }
    .info-grid { grid-template-columns: 1fr; }
    .form-row  { grid-template-columns: 1fr; gap: 0; }
    .toolbar   { flex-direction: column; align-items: stretch; }
    .search-box { min-width: 100%; }
    .data-table th:nth-child(n+5),
    .data-table td:nth-child(n+5) { display: none; }
}
@media (max-width: 600px) {
    .page-title-row { flex-direction: column; align-items: flex-start; }
    .stats-row      { grid-template-columns: 1fr; }
    .filter-tabs    { grid-template-columns: 1fr; }
}

/* =============== TOAST =============== */
#smarthr-toasts {
    position: fixed;
    top: 20px; right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 20000;
    pointer-events: none;
}
.smarthr-toast {
    min-width: 280px;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    padding: 14px 18px 14px 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    pointer-events: auto;
    animation: toastIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    border-left: 4px solid var(--accent-warm);
}
.smarthr-toast.success { border-left-color: #5a8a58; }
.smarthr-toast.error   { border-left-color: #b85a4a; }
.smarthr-toast.info    { border-left-color: #4a8ab0; }
.smarthr-toast.warning { border-left-color: #a07a4a; }
.smarthr-toast-icon {
    width: 28px; height: 28px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    background: rgba(196, 149, 106, 0.15); color: var(--accent-warm);
    flex-shrink: 0;
}
.smarthr-toast-body { flex: 1; font-size: 13px; color: var(--text-primary); font-weight: 500; }
.smarthr-toast-close {
    background: none; border: none;
    font-size: 18px; color: var(--text-muted); cursor: pointer; padding: 0 4px;
}
.smarthr-toast.hide { opacity: 0; transform: translateX(40px); transition: all 0.2s; }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(80px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* =============== MISC =============== */
.row { display: flex; align-items: center; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.row.start { align-items: flex-start; }
.row.gap-1 { gap: 4px; }
.row.gap-2 { gap: 8px; }
.row.gap-3 { gap: 12px; }
.row.gap-4 { gap: 16px; }
.col { display: flex; flex-direction: column; }
.col.gap-2 { gap: 8px; }
.col.gap-3 { gap: 12px; }
.col.gap-4 { gap: 16px; }
.col.gap-5 { gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.link-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s;
    width: fit-content;
}
.link-back:hover {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-primary);
}

.pulse-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-sage);
    animation: pulse 2s infinite;
    margin-right: 6px;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}
