:root {
    --brand: #f47b20;
    --brand-dark: #d96311;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg: #f7f8fb;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Arial, sans-serif; }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #fff7ef, #ffffff); }
.login-card { width: 390px; background: #fff; border-radius: 24px; padding: 32px; box-shadow: 0 24px 60px rgba(0,0,0,.08); }
.login-logo { max-width: 170px; max-height: 80px; object-fit: contain; display: block; margin: 0 auto 16px; }
.btn-brand { background: var(--brand); color: #fff; border: none; }
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 265px; position: fixed; inset: 0 auto 0 0; background: #fff; border-right: 1px solid var(--border); padding: 18px 14px; overflow-y: auto; overflow-x: hidden; }
.logo-brand { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; margin-bottom: 18px; text-decoration: none; color: var(--brand); overflow: hidden; }
.logo-img-wrap { width: 46px; height: 46px; min-width: 46px; display: flex; align-items: center; justify-content: center; background: #fff7f1; border-radius: 14px; overflow: hidden; }
.logo-img-wrap img { width: 42px; height: 42px; object-fit: contain; }
.logo-text { font-weight: 800; line-height: 1.2; font-size: 15px; color: var(--brand); }
.sidebar-nav .nav-link, .menu-parent { display: flex; align-items: center; justify-content: flex-start; width: 100%; border: 0; background: transparent; gap: 10px; text-align: left; white-space: normal; line-height: 1.35; color: #374151; padding: 10px 12px; border-radius: 12px; text-decoration: none; margin-bottom: 3px; }
.menu-parent { font-weight: 700; margin-top: 8px; color: #111827; }
.sidebar-nav .nav-link { padding-left: 22px; font-size: 14px; }
.sidebar-nav .nav-link.active, .sidebar-nav .nav-link:hover { background: #fff1e5; color: var(--brand); }
.main-content { margin-left: 265px; width: calc(100% - 265px); }
.topbar { height: 72px; background: #fff; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; padding: 0 24px; position: sticky; top: 0; z-index: 10; }
.user-mini { display: flex; align-items: center; gap: 10px; }
.avatar-sm, .avatar-fallback { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; object-fit: cover; }
.avatar-fallback { background: #fff1e5; color: var(--brand); font-weight: 800; }
.page-body { padding: 24px; }
.page-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 18px; box-shadow: 0 8px 28px rgba(0,0,0,.04); }
.stat-card span { color: var(--muted); display: block; font-size: 14px; }
.stat-card strong { font-size: 24px; color: var(--brand); }
.card, .table-card { border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 8px 28px rgba(0,0,0,.04); background: #fff; }
.table-card { overflow: hidden; }
.table-card th { background: #fff7f1; color: #374151; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.day-cell { min-height: 105px; border-radius: 16px; background: #fff; border: 1px solid var(--border); padding: 10px; }
.day-number { font-weight: 800; }
.day-label { font-size: 13px; margin-top: 5px; }
.day-cell.normal { background: #ecfdf5; }
.day-cell.late, .day-cell.ot { background: #fff7ed; }
.day-cell.early, .day-cell.missing { background: #fef2f2; }
.day-cell.leave { background: #eef2ff; }
.day-cell.off { background: #f3f4f6; }
@media (max-width: 992px) { .sidebar { position: static; width: 100%; } .main-content { margin-left: 0; width: 100%; } .app-shell { display: block; } .calendar-grid { grid-template-columns: repeat(2, 1fr); } }
