:root {
    --bg: #f4f6fb;
    --ink: #222b3d;
    --muted: #7d8492;
    --panel: #ffffff;
    --line: #e5e9f2;
    --navy: #10184d;
    --navy-2: #4d5c78;
    --gold: #f6b120;
    --green: #16a34a;
    --red: #dc2626;
    --blue: #2563eb;
    --violet: #8b5cf6;
    --violet-soft: #f1ecfe;
    --holiday: #e53e3e;
    --holiday-soft: #fbe9e9;
    --shadow: 0 20px 60px rgba(34, 43, 61, .12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

input,
select,
button {
    font: inherit;
}

.app-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 28px;
    color: white;
    background:
        radial-gradient(circle at 80% 95%, rgba(246, 177, 32, .16), transparent 32%),
        radial-gradient(circle at 40% 28%, rgba(255, 255, 255, .10), transparent 34%),
        var(--navy);
}

.brand,
.sidebar-footer {
    display: flex;
    gap: 14px;
    align-items: center;
}

.brand-logo {
    height: 34px;
    width: auto;
}

.brand small,
.sidebar-footer a,
.sidebar-footer small,
.topbar p,
small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.topbar p {
    margin-top: 8px;
}

.brand small,
.sidebar-footer a,
.sidebar-footer small {
    color: rgba(255, 255, 255, .66);
}

.sidebar-footer-avatar {
    display: inline-grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 999px;
    background: var(--gold);
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
}

.sidebar-footer-info {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.sidebar-footer-info strong {
    overflow: hidden;
    color: white;
    font-size: 14px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-footer-info small {
    line-height: 1.5;
}

.sidebar nav {
    display: grid;
    gap: 8px;
    margin-top: 42px;
}

.sidebar nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    color: rgba(255, 255, 255, .78);
}

.nav-item-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-item-label svg {
    flex: 0 0 auto;
    color: inherit;
}

.sidebar nav a.active .nav-item-label svg {
    color: var(--gold);
}

.sidebar nav a.active,
.sidebar nav a:hover {
    background: rgba(255, 255, 255, .12);
    color: white;
}

.sidebar nav b {
    min-width: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--navy);
    text-align: center;
    font-size: 12px;
}

.sidebar-footer {
    position: absolute;
    right: 28px;
    bottom: 28px;
    left: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.main {
    padding: 0 34px 34px;
}

.topbar,
.section-title,
.tabs,
.toolbar {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    align-items: center;
}

.topbar {
    margin: 0 -34px 26px;
    padding: 18px 18px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: clamp(22px, vw, 22px);
}

h2 {
    margin-bottom: 0;
    font-size: 22px;
}

.date-pill,
.badge,
.mini-btn,
.primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    white-space: nowrap;
}

.date-pill {
    padding: 12px 16px;
    background: white;
    box-shadow: var(--shadow);
}

.panel,
.stat-card {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.panel {
    padding: 24px;
    margin-bottom: 24px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stat-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card {
    padding: 22px;
}

.stat-card span {
    color: var(--muted);
}

.stat-card strong {
    display: block;
    margin: 8px 0;
    color: var(--navy);
    font-size: 34px;
}

.grid-two,
.profile-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

table {
    width: 100%;
    margin-top: 18px;
    border-collapse: collapse;
}

th,
td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.badge {
    padding: 6px 10px;
    background: #eef2ff;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
}

.badge.active,
.badge.approved,
.badge.closed,
.badge.success {
    background: #dcfce7;
    color: var(--green);
}

.badge.pending,
.badge.open {
    background: #fef3c7;
    color: #b45309;
}

.badge.rejected,
.badge.revoked,
.badge.suspended {
    background: #fee2e2;
    color: var(--red);
}

.mini-btn,
.primary-link,
.primary-btn,
.secondary-btn {
    border: 0;
    cursor: pointer;
    font-weight: 800;
}

.mini-btn,
.primary-link {
    padding: 8px 12px;
    background: #eef2ff;
    color: var(--navy);
    font-size: 13px;
}

.mini-btn.approve {
    background: #dcfce7;
    color: var(--green);
}

.mini-btn.reject {
    background: #fee2e2;
    color: var(--red);
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 16px;
    text-decoration: none;
}

.primary-btn {
    background: var(--gold);
    color: var(--navy);
}

.secondary-btn {
    background: var(--navy);
    color: white;
}

.toolbar {
    margin-top: 20px;
}

input,
select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
    color: var(--ink);
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.form-panel {
    display: grid;
    gap: 16px;
}

.form-panel.wide {
    max-width: 900px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-grid .primary-btn {
    grid-column: 1 / -1;
}

.request-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.request-item {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.request-item span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.profile-card {
    text-align: center;
}

.avatar {
    display: inline-grid;
    width: 90px;
    height: 90px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 28px;
    background: var(--navy);
    color: white;
    font-size: 42px;
    font-weight: 900;
}

.meta-list {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    text-align: left;
}

.meta-list span {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-radius: 14px;
    background: var(--bg);
    color: var(--muted);
}

.tabs {
    justify-content: flex-start;
    margin-bottom: 8px;
}

.tabs a {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 800;
}

.tabs a.active {
    background: var(--navy);
    color: white;
}

.inline-actions {
    display: flex;
    gap: 8px;
}

.flash {
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: #dcfce7;
    color: var(--green);
    font-weight: 800;
}

.flash.error {
    background: #fee2e2;
    color: var(--red);
}

.empty {
    color: var(--muted);
    text-align: center;
}

.login-page {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 24px;
    background: var(--navy);
    font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.deco-circle {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, .2);
    border-radius: 50%;
}

.deco-circle--tl {
    top: -22vw;
    left: -18vw;
    width: 55vw;
    height: 55vw;
    opacity: .18;
}

.deco-circle--br {
    right: -20vw;
    bottom: -24vw;
    width: 58vw;
    height: 58vw;
    opacity: .15;
}

.deco-dot {
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
}

.deco-dot em {
    position: absolute;
    top: -22px;
    left: 12px;
    white-space: nowrap;
    color: rgba(255, 255, 255, .45);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 11px;
    font-style: normal;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.deco-dot--now {
    width: 10px;
    height: 10px;
    background: #f6b120;
    box-shadow: 0 0 0 6px rgba(246, 177, 32, .18), 0 0 24px 4px rgba(246, 177, 32, .45);
    animation: deco-pulse 2.4s ease-in-out infinite;
}

.deco-dot--now em {
    color: #f6b120;
    font-weight: 700;
}

@keyframes deco-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 6px rgba(246, 177, 32, .18), 0 0 24px 4px rgba(246, 177, 32, .45);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(246, 177, 32, .1), 0 0 32px 8px rgba(246, 177, 32, .3);
    }
}

.login-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    width: min(430px, 100%);
}

.login-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
}

.login-logo {
    height: 40px;
    width: auto;
}

.login-brand h1 {
    margin: 0;
    color: var(--gold);
    font-size: 32px;
    font-weight: 800;
}

.login-card {
    width: 100%;
    padding: 40px;
    border: 0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 30px 70px rgba(17, 22, 37, .35);
}

.login-card h2 {
    color: #394151;
    font-size: 26px;
    font-weight: 800;
}

.login-help {
    margin: 6px 0 22px;
    color: #7d8492;
    font-size: 14px;
    line-height: 1.5;
}

.login-field {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    color: #394151;
    font-size: 14px;
    font-weight: 700;
}

.login-input {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #e5e9f2;
    border-radius: 12px;
    background: #f8f8f8;
}

.login-input svg {
    flex: 0 0 auto;
    margin-left: 14px;
    color: #9aa1ae;
}

.login-input input {
    min-height: 48px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    font-weight: 500;
}

.login-input input:focus {
    outline: none;
}

.login-eye {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: 4px;
    border: 0;
    background: transparent;
    color: #9aa1ae;
    cursor: pointer;
}

.login-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.login-checkbox {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #394151;
    font-size: 14px;
    font-weight: 600;
}

.login-checkbox input {
    width: 18px;
    min-height: 18px;
    accent-color: #f6b120;
}

.login-forgot {
    color: #394151;
    font-size: 14px;
    font-weight: 700;
}

.login-forgot:hover {
    text-decoration: underline;
}

.login-submit {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    background: #f6b120;
    color: #394151;
    font-weight: 800;
    cursor: pointer;
    transition: background-color .15s ease;
}

.login-submit:hover {
    background: #dd9c14;
}

.login-back {
    display: block;
    margin-top: 18px;
    color: #394151;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.login-back:hover {
    text-decoration: underline;
}

.login-card .flash {
    margin-bottom: 18px;
    font-size: 13px;
}

@media (max-width: 1050px) {

    .app-shell,
    .grid-two,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
    }

    .sidebar-footer {
        position: static;
        margin-top: 24px;
    }

    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .main {
        padding: 20px;
    }

    .stat-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    table {
        display: block;
        overflow-x: auto;
    }
}

/* Dashboard */

.dashboard-v2 h1 {
    font-size: 28px;
}

.topbar-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

.topbar-search {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 260px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eef1f6;
    color: #9aa1ae;
}

.topbar-search input {
    min-height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
}

.topbar-search input:focus {
    outline: none;
}

.topbar-icon-btn {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #eef1f6;
    color: #9aa1ae;
    cursor: pointer;
}

.topbar-avatar {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 999px;
    background: var(--navy);
    color: white;
    font-size: 13px;
    font-weight: 800;
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.dash-stat {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 30px rgba(34, 43, 61, .06);
}

.dash-stat-icon {
    display: inline-grid;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    place-items: center;
    border-radius: 12px;
    color: white;
}

.dash-stat-icon--navy {
    background: var(--navy);
}

.dash-stat-icon--green {
    background: var(--green);
}

.dash-stat-icon--gold {
    background: var(--gold);
    color: var(--navy);
}

.dash-stat strong {
    display: block;
    margin-bottom: 4px;
    color: #394151;
    font-size: 30px;
}

.dash-stat-label {
    display: block;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.dash-stat-trend {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
}

.dash-stat-trend--positive {
    color: var(--green);
}

.dash-stat-trend--neutral {
    color: var(--muted);
}

.dash-stat-trend--attention {
    color: #b45309;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
    align-items: start;
}

.dash-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 30px rgba(34, 43, 61, .06);
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.dash-card-header h2 {
    font-size: 18px;
}

.dash-card-header a {
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
}

.dash-live-row {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.dash-live-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.dash-live-avatar {
    display: inline-grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 999px;
    background: var(--navy);
    color: white;
    font-size: 13px;
    font-weight: 800;
    overflow: hidden;
}

.dash-live-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dash-live-name {
    display: grid;
    flex: 1;
    min-width: 0;
    gap: 2px;
}

.dash-live-name strong {
    overflow: hidden;
    color: #394151;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-live-name small {
    color: var(--muted);
    font-size: 12px;
}

.dash-live-time {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-pill--office {
    background: #dcfce7;
    color: var(--green);
}

.status-pill--break {
    background: #fef3c7;
    color: #b45309;
}

.status-pill--absent {
    background: #f1f2f5;
    color: var(--muted);
}

.dash-alerts {
    display: grid;
    gap: 14px;
    margin-top: 8px;
}

.dash-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.dash-alert:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.dash-alert-icon {
    display: inline-grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 10px;
}

.dash-alert-icon--danger {
    background: #fee2e2;
    color: var(--red);
}

.dash-alert-icon--warning {
    background: #fef3c7;
    color: #b45309;
}

.dash-alert-icon--info {
    background: #fef3c7;
    color: var(--gold);
}

.dash-alert strong {
    display: block;
    color: #394151;
    font-size: 13px;
}

.dash-alert small {
    color: var(--muted);
    font-size: 12px;
}

.dash-cta {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 30px rgba(34, 43, 61, .06);
    color: var(--navy);
}

.dash-cta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.dash-cta-header span {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    background: rgba(20, 27, 51, .08);
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
}

.dash-cta strong {
    display: block;
    margin-bottom: 6px;
    font-size: 40px;
    color: var(--gold);
}

.dash-cta p {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 13px;
}

.dash-cta .primary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.dash-chart-wrap {
    height: 260px;
    margin-top: 18px;
}

@media (max-width: 1200px) {
    .dash-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1050px) {
    .topbar-search {
        display: none;
    }
}

@media (max-width: 700px) {
    .dash-stats {
        grid-template-columns: 1fr;
    }
}

/* Personnel list */

.pl-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pl-header h2 {
    font-size: 20px;
}

.pl-add-btn {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.pl-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.filter-select {
    appearance: none;
    padding: 10px 34px 10px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: white url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%237d8492" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>') no-repeat right 12px center;
    color: #394151;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.pl-table-card {
    padding: 0;
    overflow: hidden;
}

.pl-table {
    width: 100%;
    border-collapse: collapse;
}

.pl-table th {
    padding: 16px 24px;
    background: #fafbfc;
    text-align: left;
}

.pl-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.pl-table tbody tr {
    cursor: pointer;
    transition: background-color .1s ease;
}

.pl-table tbody tr:hover td {
    background: #fafbfc;
}

.pl-table tbody tr:last-child td {
    border-bottom: 0;
}

.pl-person {
    display: flex;
    gap: 12px;
    align-items: center;
}

.pl-chevron {
    color: var(--muted);
    text-align: right;
}

.pl-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    color: var(--muted);
    font-size: 13px;
}

.pl-pagination {
    display: flex;
    gap: 6px;
    align-items: center;
}

.pl-page-btn {
    display: inline-grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    color: #394151;
    font-size: 13px;
    font-weight: 700;
}

.pl-page-btn.active {
    border-color: var(--navy);
    background: var(--navy);
    color: white;
}

.pl-page-btn.disabled {
    color: var(--line);
    pointer-events: none;
}

/* New personnel form */

.np-back-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.np-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
}

.np-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 30px rgba(34, 43, 61, .06);
}

.np-card h2 {
    margin-bottom: 20px;
    font-size: 17px;
}

.np-card h3 {
    margin: 24px 0 16px;
    font-size: 14px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.avatar-upload {
    display: grid;
    width: 160px;
    height: 160px;
    margin: 0 auto;
    place-items: center;
    border: 2px dashed var(--line);
    border-radius: 999px;
    background: #fafbfc;
    color: var(--muted);
    text-align: center;
    cursor: pointer;
    overflow: hidden;
}

.avatar-upload svg {
    display: block;
    margin: 0 auto 8px;
}

.avatar-upload span {
    font-size: 13px;
    font-weight: 600;
}

.avatar-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.np-upload-hint {
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.np-divider {
    margin: 24px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.np-info-box {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 12px;
    background: #f8f8f8;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.np-info-box svg {
    flex: 0 0 auto;
    margin-top: 1px;
}

.np-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.np-field {
    display: grid;
    gap: 8px;
}

.np-field label {
    color: #394151;
    font-size: 13px;
    font-weight: 700;
}

.np-input {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8f8f8;
}

.np-input svg {
    flex: 0 0 auto;
    margin-left: 14px;
    color: #9aa1ae;
}

.np-input input,
.np-input select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    font-weight: 500;
}

.np-input select {
    appearance: none;
    padding-right: 36px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%237d8492" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.np-input input:focus,
.np-input select:focus {
    outline: none;
}

.np-input input:disabled {
    color: var(--muted);
    cursor: not-allowed;
}

.np-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}

.btn-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    background: #eef1f6;
    color: #394151;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

/* Personnel detail */

.pd-profile-card {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 30px rgba(34, 43, 61, .06);
}

.pd-profile-identity {
    display: flex;
    gap: 16px;
    align-items: center;
}

.pd-profile-avatar {
    display: inline-grid;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    place-items: center;
    border-radius: 999px;
    background: var(--navy);
    color: white;
    font-size: 22px;
    font-weight: 800;
    overflow: hidden;
}

.pd-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-profile-identity h2 {
    font-size: 21px;
}

.pd-profile-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.pd-profile-actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.pd-password-form {
    flex-basis: 100%;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.pd-password-form h3 {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pd-password-form .np-field-row {
    margin-bottom: 12px;
}

.pd-profile-device {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-basis: 100%;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.pd-profile-device strong {
    color: var(--navy);
    font-weight: 700;
}

.btn-edit {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: #eef1f6;
    color: #394151;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.btn-danger-outline {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fef2f2;
    color: var(--red);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.btn-success-outline {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    background: #f0fdf4;
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.pd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.pd-cal-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 30px rgba(34, 43, 61, .06);
}

.pd-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.pd-cal-header h2 {
    font-size: 17px;
}

.pd-view-toggle {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: #f1f2f5;
}

.pd-view-toggle button {
    min-width: 56px;
    padding: 7px 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.pd-view-toggle button.active {
    background: var(--navy);
    color: white;
}

.pd-cal-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.pd-cal-nav-btn {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    color: #394151;
    cursor: pointer;
}

.pd-cal-label {
    min-width: 180px;
    color: #394151;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
}

.pd-weekday-row,
.pd-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.pd-weekday-row span {
    padding-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.pd-month-cell {
    display: grid;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 10px;
    color: #394151;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.pd-month-cell:hover {
    background: #f1f2f5;
}

.pd-month-cell.muted {
    color: var(--line);
    cursor: default;
    pointer-events: none;
}

.pd-month-cell.selected {
    background: var(--navy);
    color: white;
}

.pd-month-cell .pd-dot {
    display: block;
    width: 4px;
    height: 4px;
    margin: 3px auto 0;
    border-radius: 999px;
    background: #9aa1ae;
}

.pd-month-cell .pd-dot.attention {
    background: var(--gold);
}

.pd-month-cell .pd-dot.leave {
    background: var(--violet);
    cursor: help;
}

.pd-month-cell .pd-dot.holiday {
    background: var(--holiday);
    cursor: help;
}

.pd-month-cell .pd-dot.holiday.half {
    background: linear-gradient(90deg, var(--holiday) 50%, transparent 50%);
}

.pd-month-cell.selected .pd-dot {
    background: rgba(255, 255, 255, .7);
}

.pd-week-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.pd-week-cell {
    display: grid;
    gap: 4px;
    padding: 10px 4px;
    border-radius: 12px;
    color: #394151;
    text-align: center;
    cursor: pointer;
}

.pd-week-cell:hover {
    background: #f1f2f5;
}

.pd-week-cell small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.pd-week-cell strong {
    font-size: 15px;
}

.pd-week-cell .pd-week-minutes {
    color: var(--muted);
    font-size: 11px;
}

.pd-week-cell.selected {
    background: var(--navy);
    color: white;
}

.pd-week-cell.selected small,
.pd-week-cell.selected .pd-week-minutes {
    color: rgba(255, 255, 255, .7);
}

.pd-summary-box {
    display: grid;
    gap: 16px;
    margin-top: 18px;
    padding: 20px;
    border-radius: 14px;
    background: var(--navy);
    color: white;
}

.pd-summary-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pd-summary-top small {
    display: block;
    color: rgba(255, 255, 255, .6);
    font-size: 12px;
}

.pd-summary-top strong {
    display: block;
    margin-top: 4px;
    font-size: 26px;
}

.pd-day-title {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 800;
    color: #394151;
}

.pd-leave-banner {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: var(--violet-soft);
    color: var(--violet);
    font-size: 13px;
    font-weight: 600;
}

.pd-leave-banner svg {
    flex: 0 0 auto;
    margin-top: 1px;
}

.pd-leave-banner.holiday {
    background: var(--holiday-soft);
    color: var(--holiday);
}

.pd-day-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 30px rgba(34, 43, 61, .06);
}

.pd-day-stat {
    display: grid;
    gap: 8px;
    justify-items: center;
    text-align: center;
}

.pd-day-stat-icon {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: var(--muted);
}

.pd-day-stat-icon.break {
    color: #b45309;
}

.pd-day-stat-icon.net {
    color: var(--green);
}

.pd-day-stat strong {
    font-size: 17px;
    color: #394151;
}

.pd-day-stat small {
    color: var(--muted);
    font-size: 12px;
}

.pd-timeline-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 30px rgba(34, 43, 61, .06);
}

.pd-timeline-card h2 {
    margin-bottom: 16px;
    font-size: 17px;
}

.pd-timeline-item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.pd-timeline-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.pd-timeline-icon {
    display: inline-grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: #394151;
}

.pd-timeline-icon.break {
    border-color: #fde7bd;
    color: #b45309;
}

.pd-timeline-body {
    flex: 1;
    min-width: 0;
}

.pd-timeline-body strong {
    display: block;
    color: #394151;
    font-size: 14px;
}

.pd-timeline-body small {
    color: var(--muted);
    font-size: 12px;
}

.pd-timeline-time {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

/* Device requests */

.dt-tabs {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 20px;
    padding: 4px;
    border-radius: 999px;
    background: #eef1f6;
}

.dt-tabs a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.dt-tabs a.active {
    background: white;
    color: #394151;
    box-shadow: 0 6px 16px rgba(34, 43, 61, .1);
}

.dt-tabs a b {
    display: inline-grid;
    min-width: 20px;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--navy);
    text-align: center;
    font-size: 11px;
}

.dt-list {
    display: grid;
    gap: 16px;
}

.dt-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 30px rgba(34, 43, 61, .06);
}

.dt-card-main {
    min-width: 0;
}

.dt-card-name {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.dt-card-name strong {
    display: block;
    color: #394151;
    font-size: 15px;
}

.dt-card-name small {
    color: var(--muted);
    font-size: 12px;
}

.dt-card-device {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
}

.dt-card-device svg {
    flex: 0 0 auto;
    color: #9aa1ae;
}

.dt-card-device em {
    color: var(--green);
    font-style: normal;
    font-weight: 700;
}

.dt-card-side {
    display: grid;
    flex: 0 0 auto;
    gap: 10px;
    text-align: right;
}

.dt-card-date {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    color: var(--muted);
    font-size: 13px;
}

.dt-card-actions {
    display: flex;
    gap: 10px;
}

.btn-approve,
.btn-reject {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.btn-approve {
    background: var(--green);
    color: white;
}

.btn-reject {
    background: #fef2f2;
    color: var(--red);
    border: 1px solid #fecaca;
}

.dt-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.dt-status-pill.approved {
    background: #dcfce7;
    color: var(--green);
}

.dt-status-pill.rejected {
    background: #fee2e2;
    color: var(--red);
}

.dt-status-pill.pending {
    background: #fef3c7;
    color: var(--gold);
}

.dt-status-pill.revoked {
    background: #f1f2f6;
    color: var(--muted);
}

.dt-review-note {
    max-width: 320px;
    color: var(--muted);
    font-size: 12px;
}

.dt-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    align-items: center;
    justify-content: center;
    background: rgba(17, 22, 37, .45);
}

.dt-modal-backdrop.open {
    display: flex;
}

.dt-modal {
    width: min(420px, 90vw);
    padding: 24px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 30px 70px rgba(17, 22, 37, .35);
}

.dt-modal h3 {
    margin-bottom: 6px;
    font-size: 17px;
    color: #394151;
}

.dt-modal p {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 13px;
}

.dt-modal textarea {
    width: 100%;
    min-height: 90px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8f8f8;
    color: var(--ink);
    font-family: inherit;
    resize: vertical;
}

.dt-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}

/* Reports */

.rp-filter-card {
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 30px rgba(34, 43, 61, .06);
}

.rp-label {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.rp-range-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rp-chip {
    padding: 9px 16px;
    border: 0;
    border-radius: 999px;
    background: #eef1f6;
    color: #394151;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.rp-chip.active {
    background: var(--navy);
    color: white;
}

.rp-custom-range {
    display: none;
    gap: 16px;
    margin-top: 16px;
}

.rp-custom-range.open {
    display: flex;
}

.rp-custom-range .np-input {
    width: 200px;
}

.rp-divider {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.rp-subfilters {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    align-items: end;
}

.rp-field {
    display: grid;
    gap: 8px;
}

.rp-multiselect {
    position: relative;
}

.rp-multiselect-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8f8f8;
    color: var(--ink);
    font-size: 14px;
    cursor: pointer;
}

.rp-multiselect-btn svg {
    color: #9aa1ae;
}

.rp-multiselect-panel {
    display: none;
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    width: 320px;
    max-height: 320px;
    padding: 12px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
    box-shadow: 0 20px 50px rgba(17, 22, 37, .18);
}

.rp-multiselect-panel.open {
    display: block;
}

.rp-multiselect-panel input[type="text"] {
    width: 100%;
    min-height: 38px;
    margin-bottom: 8px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8f8f8;
}

.rp-option {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
    font-size: 13px;
    color: #394151;
    cursor: pointer;
}

.rp-option:hover {
    background: #f8f9fb;
}

.rp-option input {
    width: 16px;
    min-height: 16px;
    accent-color: var(--gold);
}

.rp-option small {
    color: var(--muted);
}

.rp-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.rp-results-header h2 {
    font-size: 18px;
}

.rp-export-actions {
    display: flex;
    gap: 10px;
}

.btn-export {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    color: #394151;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.btn-export:hover {
    background: #f8f9fb;
}
