:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --accent: #4f46e5;
    --border: #e5e7eb;
    --ok: #0f766e;
    --err: #b91c1c;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.auth-card, .card {
    background: var(--card);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    padding: 1.25rem;
}

.auth-card { max-width: 560px; width: 100%; }

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    background: white;
    border-bottom: 1px solid var(--border);
}

.topbar h1 { margin: 0; font-size: 1.2rem; }
.topbar p { margin: .2rem 0 0; color: var(--muted); }

.layout {
    padding: 1rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.full-width { grid-column: 1 / -1; }

.form-grid {
    display: grid;
    gap: .8rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.form-grid .full { grid-column: 1 / -1; }

label {
    display: grid;
    gap: .35rem;
    color: var(--muted);
    font-size: .92rem;
}

input, select, textarea, button, .button-link {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .65rem .8rem;
    font-size: .95rem;
}

button, .button-link {
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.muted { color: var(--muted); }
.alert { padding: .8rem; border-radius: 10px; margin-bottom: .8rem; }
.alert.success { background: #d1fae5; color: var(--ok); }
.alert.error { background: #fee2e2; color: var(--err); }

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: .7rem; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }

.table-head {
    display: flex;
    justify-content: space-between;
    gap: .8rem;
    flex-wrap: wrap;
    align-items: center;
}

#holiday-calendar {
    display: grid;
    gap: .5rem;
    max-height: 350px;
    overflow: auto;
}

.holiday-item {
    display: flex;
    justify-content: space-between;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .6rem .8rem;
}

@media (max-width: 600px) {
    .topbar { flex-direction: column; align-items: flex-start; gap: .6rem; }
}
