* {
    font-family: 'Inter', sans-serif;
}

body {
    background: #f4f2ef;
}

.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at top, rgba(251, 191, 36, 0.18), rgba(244, 242, 239, 1) 45%);
}

.login-card {
    width: min(100%, 420px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(214, 211, 209, 0.9);
    border-radius: 24px;
    box-shadow: 0 22px 45px -18px rgba(28, 25, 23, 0.25);
    padding: 28px;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.login-brand h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    color: #292524;
}

.login-brand p {
    margin: 2px 0 0;
    color: #78716c;
    font-size: 0.8rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #44403c;
}

.form-group input {
    width: 100%;
    border: 1px solid #d6d3d1;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.96rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.login-btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #a16207, #b45309);
    color: white;
    font-weight: 700;
    padding: 12px 18px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -12px rgba(146, 64, 14, 0.8);
}

.login-btn:disabled {
    opacity: 0.75;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.login-error {
    min-height: 20px;
    margin: 0;
    color: #b91c1c;
    font-size: 0.82rem;
    text-align: center;
}

.hidden {
    display: none !important;
}

.brick-pattern-bg {
    background-image: radial-gradient(circle at 10% 20%, rgba(180, 70, 50, 0.03) 2%, transparent 2.5%);
    background-size: 28px 28px;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #e7e5e2;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: #b4533b;
    border-radius: 8px;
}

.card-hover:hover {
    transform: translateY(-2px);
    transition: all 0.2s ease;
    box-shadow: 0 12px 20px -12px rgba(0, 0, 0, 0.1);
}

.week-cell {
    min-width: 95px;
}

.export-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.edit-modal-content {
    background: white;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    padding: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

table {
    border-collapse: collapse;
}

th,
td {
    border: 1px solid #e5e7eb;
}

.month-badge {
    transition: all 0.3s ease;
}

.kpi-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 150px;
    padding: 28px 32px;
    color: #fff;
    background: linear-gradient(115deg, #78350f, #a16207 58%, #0369a1);
    border-radius: 22px;
    box-shadow: 0 18px 28px -20px rgba(120, 53, 15, 0.8);
}

.kpi-hero h2 {
    margin: 4px 0 6px;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 700;
}

.kpi-hero p:not(.kpi-eyebrow) { color: rgba(255, 255, 255, 0.78); }
.kpi-hero-icon { color: rgba(255, 255, 255, 0.32); font-size: 5rem; margin-right: 8%; }
.kpi-eyebrow { color: #a16207; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.kpi-hero .kpi-eyebrow { color: #fde68a; }
.kpi-card { display: flex; align-items: center; gap: 14px; min-height: 132px; padding: 20px; background: rgba(255, 255, 255, 0.92); border: 1px solid #e7e5e4; border-top: 4px solid; border-radius: 16px; box-shadow: 0 10px 20px -18px rgba(41, 37, 36, 0.8); }
.kpi-card p { margin: 0; color: #57534e; font-size: 0.82rem; font-weight: 700; }
.kpi-card strong { display: block; margin: 3px 0; color: #292524; font-size: 1.7rem; line-height: 1.15; }
.kpi-card span { color: #a8a29e; font-size: 0.72rem; }
.kpi-card-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 1.1rem; }
.kpi-card-amber { border-top-color: #d97706; }.kpi-card-amber .kpi-card-icon { color: #b45309; background: #fef3c7; }
.kpi-card-sky { border-top-color: #0284c7; }.kpi-card-sky .kpi-card-icon { color: #0369a1; background: #e0f2fe; }
.kpi-card-emerald { border-top-color: #059669; }.kpi-card-emerald .kpi-card-icon { color: #047857; background: #d1fae5; }
.kpi-card-rose { border-top-color: #e11d48; }.kpi-card-rose .kpi-card-icon { color: #be123c; background: #ffe4e6; }
.kpi-panel { padding: 24px; background: rgba(255, 255, 255, 0.9); border: 1px solid #e7e5e4; border-radius: 18px; box-shadow: 0 12px 24px -22px rgba(41, 37, 36, 0.9); }
.kpi-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.kpi-panel-heading h2 { margin-top: 3px; color: #292524; font-size: 1.2rem; font-weight: 750; }
.kpi-panel-note { color: #a8a29e; font-size: 0.75rem; }
.kpi-week-bars { display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 16px; min-height: 190px; }
.kpi-week-bar { display: flex; min-width: 0; height: 190px; flex-direction: column; align-items: center; justify-content: end; gap: 7px; }
.kpi-bar-value { color: #57534e; font-size: 0.8rem; font-weight: 700; }
.kpi-bar-track { display: flex; align-items: end; width: min(52px, 70%); height: 135px; overflow: hidden; background: #f5f5f4; border-radius: 10px 10px 4px 4px; }
.kpi-bar-fill { width: 100%; min-height: 2px; background: linear-gradient(to top, #b45309, #f59e0b); border-radius: 8px 8px 2px 2px; transition: height 0.35s ease; }
.kpi-bar-label { color: #78716c; font-size: 0.72rem; }
.kpi-mix-list { display: grid; gap: 18px; padding-top: 10px; }
.kpi-mix-item { display: flex; align-items: center; gap: 14px; padding: 16px; background: #fafaf9; border-radius: 12px; }
.kpi-mix-dot { width: 11px; height: 11px; flex: none; border-radius: 50%; }.kpi-mix-dot-amber { background: #d97706; }.kpi-mix-dot-sky { background: #0284c7; }
.kpi-mix-item strong { color: #44403c; font-size: 0.88rem; }.kpi-mix-item p { margin: 3px 0 0; color: #78716c; font-size: 0.8rem; }
.kpi-leaderboard { display: grid; gap: 8px; }
.kpi-leader-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 11px 12px; border-bottom: 1px solid #f5f5f4; }
.kpi-leader-row:last-child { border-bottom: 0; }.kpi-rank { display: grid; place-items: center; width: 25px; height: 25px; color: #a16207; background: #fef3c7; border-radius: 50%; font-size: 0.75rem; font-weight: 800; }.kpi-analyst { color: #44403c; font-size: 0.9rem; font-weight: 650; }.kpi-leader-total { color: #292524; font-size: 1rem; font-weight: 800; }

@media (max-width: 640px) {
    .kpi-hero { padding: 24px; }
    .kpi-hero-icon { display: none; }
    .kpi-panel { padding: 18px; }
}

@media print {
    .no-print {
        display: none !important;
    }
}