:root {
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --primary-color: #0071e3;
    --text-main: #1d1d1f;
    --text-secondary: #86868b;
    --radius-lg: 20px;
    --radius-md: 14px;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --nav-height: 70px;
    --pad-card: 20px;
    --gap-section: 24px;
}

body {
    font-family: 'Noto Sans Thai', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    height: 100dvh;
    margin: 0;
    overflow: hidden;
}

/* --- Layout Containers --- */
.page-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px;
    padding-bottom: 100px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: opacity 0.3s ease, transform 0.3s ease;
    background: transparent;
}

.page-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.98);
    visibility: hidden;
    z-index: 0;
}

.page-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    visibility: visible;
    z-index: 10;
}

/* --- Glassmorphism Components --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    padding: var(--pad-card);
    margin-bottom: var(--gap-section);
}

/* --- Dashboard Specifics --- */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100px;
    position: relative;
    overflow: hidden;
}

/* Apple Health Style Gradients */
.stat-sales {
    background: linear-gradient(135deg, #FF9F0A 0%, #FFB340 100%);
    color: #fff;
    border: none;
}

.stat-deposit {
    background: linear-gradient(135deg, #30B0C7 0%, #5AC8FA 100%);
    color: #fff;
    border: none;
}

.stat-count {
    background: linear-gradient(135deg, #FF375F 0%, #FF5E7D 100%);
    color: #fff;
    border: none;
}

.stat-rate {
    background: linear-gradient(135deg, #34C759 0%, #5DD17B 100%);
    color: #fff;
    border: none;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.stat-icon {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 40px;
    opacity: 0.2;
}

/* Search & Filter Bar */
.toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.search-input {
    border-radius: 20px;
    border: none;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 10px 16px;
    width: 100%;
    font-size: 14px;
}

.filter-btn {
    background: #fff;
    border: none;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    color: var(--primary-color);
}

/* Filter Chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    justify-content: center;
    /* Centered as requested */
}

.chip {
    padding: 6px 12px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e5e5ea;
    font-size: 12px;
    color: #86868b;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    white-space: nowrap;
}

.chip.active {
    background: #0071e3;
    color: #fff;
    border-color: #0071e3;
    box-shadow: 0 2px 6px rgba(0, 113, 227, 0.3);
}

/* Date Picker Group */
.date-toolbar {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.date-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.date-inputs input {
    flex: 1;
    min-width: 0;
    /* Fallback for flexbox */
    font-size: 13px !important;
    padding: 8px !important;
}

.date-actions {
    display: flex;
    gap: 8px;
}

/* --- Admin Redesign Styles --- */
.admin-header {
    padding: 20px 0;
    margin-bottom: 10px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    font-size: 20px;
    color: var(--primary-color);
}

.control-center {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 258, 0.5);
}

.action-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.btn-add-new {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0 16px;
    font-weight: 600;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
    flex-shrink: 0;
    transition: all 0.2s;
}

.btn-add-new:active {
    transform: scale(0.95);
}

/* Card Enhancements */
.item-card {
    position: relative;
    padding-right: 12px;
}

.btn-delete-card {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border: none;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-delete-card:active {
    background: #ff3b30;
    color: #fff;
}

@media (max-width: 380px) {
    .date-inputs {
        flex-direction: column;
        align-items: stretch;
    }

    .date-inputs span {
        display: none;
    }
}

/* --- Bottom Navigation --- */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(25px);
    border-radius: 24px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #86868b;
    background: none;
    border: none;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.12, 0, 0.39, 0);
    position: relative;
    padding: 6px 10px;
    border-radius: 12px;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active .nav-icon {
    transform: translateY(-4px);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: fadeInDot 0.3s ease;
}

@keyframes fadeInDot {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.nav-icon {
    font-size: 24px;
    transition: transform 0.3s cubic-bezier(0.12, 0, 0.39, 0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    width: 24px;
    height: 24px;
}

/* Analytics Enhancements */
.analytics-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: -4px;
    display: block;
}

.staff-filter-wrapper {
    position: relative;
    margin: 4px 0 12px;
}

.staff-filter-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--glass-bg));
    pointer-events: none;
    border-radius: 0 20px 20px 0;
}

.staff-filter-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 10px 10px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.staff-filter-scroll::-webkit-scrollbar {
    display: none;
}

.staff-chip {
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 12px;
    white-space: nowrap;
    color: #86868b;
    cursor: pointer;
    transition: all 0.2s;
}

.staff-chip.active {
    background: #1d1d1f;
    color: #fff;
    border-color: #1d1d1f;
}

/* --- Existing Styles (Login, Form, Cards) --- */
/* [Keeping your previous good styles] */
.login-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100%;
}

.pin-reveal-container {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s;
    transform: translateY(20px);
}

/* --- Premium Login Card --- */
.login-screen {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fff;
    gap: 20px;
}

.login-card {
    width: 100%;
    max-width: 320px;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #1d1d1f 0%, #434345 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 40px;
}

.user-avatar-main {
    width: 80px;
    height: 80px;
    background: #f5f5f7;
    border-radius: 22px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.user-avatar-main.admin {
    background: #1d1d1f;
    color: #fff;
}

.login-greeting {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* PIN Display Area */
.pin-dots-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    min-height: 12px;
}

.pin-dot-new {
    width: 12px;
    height: 12px;
    border: 2px solid #d2d2d7;
    border-radius: 50%;
    transition: all 0.2s cubic-bezier(0.12, 0, 0.39, 0);
}

.pin-dot-new.active {
    background: #1d1d1f;
    border-color: #1d1d1f;
    transform: scale(1.1);
}

.pin-dot-new.error {
    background: #ff3b30;
    border-color: #ff3b30;
    animation: shake 0.4s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

/* Numpad Redesign */
.apple-numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 0 auto;
}

.num-key {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f5f5f7;
    border: none;
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f;
}

.num-key:active {
    background: #d2d2d7;
    transform: scale(0.92);
}

.num-key.empty {
    background: transparent;
    cursor: default;
}

.num-key.del {
    font-size: 18px;
    background: transparent;
}

/* User Selector Overlay */
.user-selector-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.user-selector-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.user-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 340px;
    padding: 20px;
}

.user-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.user-option:active {
    transform: scale(0.9);
}

.user-option .avatar {
    width: 65px;
    height: 65px;
    background: #f5f5f7;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    border: 2px solid transparent;
}

.user-option.selected .avatar {
    border-color: var(--primary-color);
    background: #fff;
}

.user-option span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
}

.admin-link {
    margin-top: 40px;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.back-to-users {
    position: absolute;
    top: 40px;
    left: 20px;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 12px;
    font-size: 16px;
    color: #1d1d1f;
}

.form-control:focus,
.form-select:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
    background: #ffffff;
}

.btn-main {
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    padding: 14px;
    font-weight: 600;
    border: none;
    width: 100%;
}

/* Smart Cards */
.item-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-lg);
    padding: var(--pad-card);
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.item-name {
    font-weight: 600;
    font-size: 16px;
    color: #1d1d1f;
}

.item-price {
    font-weight: 700;
    color: #0071e3;
    font-size: 16px;
}

.item-sub {
    font-size: 13px;
    color: #86868b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.badge-smart {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f2f2f7;
    color: #86868b;
    font-weight: 500;
}

.badge-deposit {
    background: #eaf6e3;
    color: #34c759;
}

.btn-edit-smart {
    background: transparent;
    color: #0071e3;
    border: 1px solid rgba(0, 113, 227, 0.2);
    border-radius: 12px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Deposit Card */
.deposit-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

.deposit-card.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: #f5c518;
    box-shadow: 0 8px 20px rgba(245, 197, 24, 0.15);
}

.icon-circle {
    width: 42px;
    height: 42px;
    background: #e5e5ea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
}

.deposit-card.active .icon-circle {
    background: #f5c518;
    color: #fff;
    transform: rotate(-10deg);
}

.input-amount {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #0071e3 !important;
}

/* Image Card */
.upload-card {
    background: rgba(255, 255, 255, 0.6);
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
}

.upload-card.has-file {
    border-style: solid;
    background: #fff;
    padding: 0;
}

.preview-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.hidden {
    display: none !important;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.status-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-secondary);
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
}

.status-item input:checked+.status-card {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: var(--text-main);
    border-color: var(--primary-color);
}

.status-item input {
    display: none;
}

/* Helpers */
.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-admin {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    width: 100%;
    padding: 15px;
    font-size: 0.9rem;
}

.btn-admin.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Dropdown Sort */
.sort-dropdown {
    position: absolute;
    right: 20px;
    top: 140px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 8px;
    z-index: 100;
    display: none;
}

.sort-dropdown.show {
    display: block;
    animation: fadeIn 0.2s;
}

.sort-item {
    padding: 10px 16px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.sort-item:last-child {
    border: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Staff Dashboard Styling --- */
.stat-grid-staff {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 0;
}

.stat-card-staff {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.border-today {
    border-left: 4px solid #0071e3;
}

.border-week {
    border-left: 4px solid #34c759;
}

.border-month {
    border-left: 4px solid #ff9f0a;
}

.border-sales {
    border-left: 4px solid #af52de;
}

.staff-stat-label {
    font-size: 11px;
    color: #86868b;
    margin-bottom: 2px;
    font-weight: 500;
}

.staff-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.2;
}

.staff-stat-unit {
    font-size: 10px;
    color: #86868b;
    font-weight: 400;
    margin-left: 2px;
}

/* Responsive Fixes for Small Devices */
@media (max-width: 375px) {
    .stat-value {
        font-size: 18px;
    }

    .stat-label {
        font-size: 11px;
    }

    .page-container {
        padding: 12px;
    }
}

/* --- Loading Overlay --- */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.spinner-apple {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 113, 227, 0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Dashboard Mini Chips */
.filter-chips-mini {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
    margin-top: 10px;
}

.filter-chips-mini::-webkit-scrollbar {
    display: none;
}

.chip-mini {
    padding: 6px 14px;
    background: #f0f0f7;
    border-radius: 12px;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    color: #8E8E93;
    font-weight: 500;
}

.chip-mini.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 122, 255, 0.2);
}

.chip-mini:active {
    transform: scale(0.95);
}

/* Additional Admin Layout Tweaks */
.stat-card.stat-sales {
    background: linear-gradient(135deg, #007AFF, #00C6FF);
    color: white;
}

.stat-card.stat-deposit {
    background: linear-gradient(135deg, #FF9500, #FFCC00);
    color: white;
}

.stat-card.stat-count {
    background: linear-gradient(135deg, #5856D6, #AF52DE);
    color: white;
}

.stat-card.stat-rate {
    background: linear-gradient(135deg, #34C759, #4CD964);
    color: white;
}

.stat-card .stat-label {
    opacity: 0.9;
}

.stat-card .stat-value {
    font-size: 24px;
    font-weight: 700;
}

.stat-card .stat-icon {
    opacity: 0.5;
}

/* Page transition effect */
.page-container {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    position: absolute;
    width: 100%;
}

.page-active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    z-index: 10;
}
/* Staff Performance Grid */
.staff-perf-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.staff-perf-card {
    background: white;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.staff-perf-card .name {
    font-weight: 700;
    font-size: 14px;
    color: #1d1d1f;
}

.staff-perf-card .stats {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.staff-perf-card .val {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.staff-perf-card .unit {
    font-size: 10px;
    color: #8E8E93;
}

/* Scrollable Search List */
.search-list-container {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #d2d2d7 transparent;
}

.search-list-container::-webkit-scrollbar { width: 5px; }
.search-list-container::-webkit-scrollbar-thumb { background: #d2d2d7; border-radius: 10px; }
