.premium-body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgb(var(--shell-accent-rgb, 16 214 111) / 0.28), transparent 28%),
        radial-gradient(circle at top right, rgb(var(--shell-highlight-rgb, 56 189 248) / 0.18), transparent 24%),
        linear-gradient(180deg, var(--shell-top-bg, #10D66F) 0, var(--shell-top-bg, #10D66F) 280px, var(--shell-bottom-bg, #EEF4F1) 280px, var(--shell-bottom-bg, #EEF4F1) 100%);
    color: #0f172a;
    background-attachment: fixed;
}

a {
    text-decoration: none;
}

code {
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    padding: 2px 8px;
    border-radius: 999px;
}

.app-shell {
    min-height: 100vh;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    padding: 22px 20px 0;
}

.app-topbar-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: 0;
    backdrop-filter: none;
}

.topbar-section {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 58px;
    padding: 10px 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(14px);
}

.topbar-brand-panel {
    padding-right: 18px;
    justify-content: space-between;
}

.topbar-brand-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.topbar-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1;
}

.topbar-logout-btn i {
    font-size: 14px;
}

.topbar-nav-panel {
    min-width: 0;
    justify-content: flex-start;
}

.topbar-tools-panel {
    justify-content: flex-end;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #071b16;
    box-shadow: 0 12px 35px rgba(7, 27, 22, 0.18);
    font-size: 24px;
    overflow: hidden;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-title {
    color: #071b16;
    font-size: 20px;
    font-weight: 800;
}

.brand-subtitle {
    color: rgba(7, 27, 22, 0.68);
    font-size: 13px;
}

.sidebar-meta,
.sidebar-footer {
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.10);
}

.sidebar-meta {
    margin-bottom: 22px;
}

.sidebar-meta strong,
.sidebar-footer {
    color: #071b16;
    display: block;
}

.sidebar-meta small,
.meta-label {
    color: #64748b;
}

.meta-label,
.nav-group-title,
.page-eyebrow {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
}

.nav-group + .nav-group {
    margin-top: 22px;
}

.nav-group-title {
    color: #64748b;
    margin: 0 0 10px 10px;
}

.nav-link-premium {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    border-radius: 999px;
    color: #21443a;
    font-weight: 600;
    transition: all 0.25s ease;
    white-space: nowrap;
    font-size: 11px;
}

.nav-link-premium i {
    font-size: 13px;
}

.nav-link-premium:hover,
.nav-link-premium.active {
    color: #0c231d;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 0 0 1px rgba(7, 27, 22, 0.08);
}

.app-main {
    padding: 0 0 32px;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: visible;
    flex-wrap: nowrap;
}

.topbar-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.topbar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    width: 180px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(7, 27, 22, 0.08);
}

.topbar-search i {
    color: #16a34a;
}

.topbar-search input {
    width: 100px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font-size: 12px;
}

.topbar-icon-set {
    display: flex;
    gap: 8px;
}

.topbar-icon-btn {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #0c231d;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(7, 27, 22, 0.08);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.topbar-profile {
    background: rgba(255, 255, 255, 0.78);
    padding: 8px 12px;
    gap: 10px;
}

.topbar-profile i {
    font-size: 22px;
}

.topbar-profile strong {
    font-size: 12px;
}

.mobile-nav-link {
    margin-bottom: 6px;
}

.offcanvas .sidebar-footer {
    background: #f8fafc;
}

.profile-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
}

.profile-chip i {
    font-size: 28px;
    color: #334155;
}

.profile-chip small {
    display: block;
    color: #64748b;
}

.metric-card,
.premium-card,
.announcement-card {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.dashboard-stage {
    margin-top: 6px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 52px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.dashboard-hero {
    padding: 14px;
    background: linear-gradient(180deg, #1d5d52 0%, #214f46 100%);
    color: #e9fff4;
}

.dashboard-hero-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(8, 26, 22, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 18px;
}

.dashboard-mini-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.dashboard-mini-brand .brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 16px;
    background: #10d66f;
    color: #07201a;
    box-shadow: none;
}

.dashboard-mini-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
}

.dashboard-mini-nav a {
    padding: 8px 12px;
    border-radius: 999px;
    color: rgba(233, 255, 244, 0.78);
    font-size: 12px;
    font-weight: 600;
}

.dashboard-mini-nav a.active,
.dashboard-mini-nav a:hover {
    color: #0c231d;
    background: #10d66f;
}

.dashboard-hero-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-hero-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 260px;
    padding: 7px 9px 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #64748b;
    box-shadow: 0 10px 24px rgba(8, 26, 22, 0.16);
}

.dashboard-hero-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font-size: 12px;
}

.dashboard-search-meta {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eef2f0;
    color: #21443a;
}

.dashboard-hero-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #10342c;
    box-shadow: 0 10px 24px rgba(8, 26, 22, 0.18);
}

.dashboard-hero-icon.accent {
    background: #dff7a6;
}

.dashboard-hero-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(8, 26, 22, 0.18);
}

.dashboard-hero-main {
    display: grid;
    grid-template-columns: 1.4fr 220px;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.dashboard-greeting h2 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
}

.dashboard-greeting p {
    margin: 0;
    color: rgba(233, 255, 244, 0.72);
}

.dashboard-date-chip {
    justify-self: end;
    padding: 12px 14px;
    border-radius: 18px;
    background: #dff7a6;
    color: #25422d;
    font-weight: 700;
    text-align: center;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-stat {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-stat span {
    display: block;
    color: rgba(233, 255, 244, 0.72);
    font-size: 12px;
    margin-bottom: 10px;
}

.dashboard-stat strong {
    display: block;
    font-size: 24px;
    line-height: 1;
    margin-bottom: 6px;
}

.dashboard-stat small {
    color: #7ff4a6;
    font-size: 11px;
}

.dashboard-panels {
    padding: 14px;
}

.dashboard-chart-card,
.dashboard-side-card,
.dashboard-soft-card {
    height: 100%;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.dashboard-chart-card,
.dashboard-side-card,
.dashboard-soft-card {
    padding: 14px;
}

.panel-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.panel-title.minimal {
    margin-bottom: 14px;
}

.panel-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
}

.panel-title p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12px;
}

.title-chip {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}

.float-pill {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.dashboard-side-stack {
    display: grid;
    gap: 14px;
}

.leave-today-list,
.compact-feed {
    display: grid;
    gap: 12px;
}

.leave-person,
.feed-row {
    padding: 10px 12px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.leave-person-top,
.feed-row-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: start;
    margin-bottom: 6px;
}

.person-meta,
.feed-meta {
    color: #64748b;
    font-size: 12px;
}

.person-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.avatar-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.avatar-badge.tone-1 {
    background: linear-gradient(135deg, #22c55e, #0f766e);
}

.avatar-badge.tone-2 {
    background: linear-gradient(135deg, #8b5cf6, #4f46e5);
}

.avatar-badge.tone-3 {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.avatar-badge.tone-4 {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.avatar-badge.tone-5 {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.avatar-badge.tone-6 {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
}

.tiny-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
}

.tiny-badge.neutral {
    background: #eef2ff;
    color: #4338ca;
}

.employment-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.employment-badge-probationary {
    background: #fef3c7;
    color: #92400e;
}

.employment-badge-regular {
    background: #dcfce7;
    color: #166534;
}

.employment-badge-training {
    background: #dbeafe;
    color: #1d4ed8;
}

.employment-badge-contractual {
    background: #fce7f3;
    color: #9d174d;
}

.leave-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.summary-mini {
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.summary-mini span {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-bottom: 8px;
}

.summary-mini strong {
    font-size: 20px;
}

.soft-list {
    display: grid;
    gap: 10px;
}

.mini-calendar {
    margin-bottom: 14px;
}

.mini-calendar-weekdays,
.mini-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.mini-calendar-weekdays {
    margin-bottom: 8px;
}

.mini-calendar-weekdays span {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 700;
}

.mini-calendar-grid span {
    min-height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 12px;
    border: 1px solid rgba(148, 163, 184, 0.10);
}

.mini-calendar-grid span.today {
    background: #10d66f;
    color: #07201a;
    font-weight: 800;
}

.mini-calendar-grid span.muted-day {
    background: transparent;
    border-color: transparent;
}

.schedule-list {
    display: grid;
    gap: 10px;
}

.schedule-item {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.10);
}

.schedule-item.tone-1 {
    background: linear-gradient(180deg, #ecfdf3, #dcfce7);
}

.schedule-item.tone-2 {
    background: linear-gradient(180deg, #eef2ff, #e0e7ff);
}

.schedule-item.tone-3 {
    background: linear-gradient(180deg, #fff7ed, #ffedd5);
}

.schedule-item.tone-4 {
    background: linear-gradient(180deg, #faf5ff, #f3e8ff);
}

.schedule-item-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.schedule-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
}

.schedule-caption {
    font-size: 11px;
    color: #475569;
    line-height: 1.4;
}

.pastel-card {
    border: 0;
    box-shadow: none;
}

.pastel-card.tone-1 {
    background: linear-gradient(180deg, #f4f8ff, #eef4ff);
}

.pastel-card.tone-2 {
    background: linear-gradient(180deg, #fdf2f8, #fce7f3);
}

.pastel-card.tone-3 {
    background: linear-gradient(180deg, #f0fdf4, #dcfce7);
}

.pastel-card.tone-4 {
    background: linear-gradient(180deg, #fefce8, #fef3c7);
}

.pastel-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(100, 116, 139, 0.22);
    font-size: 11px;
    color: #64748b;
}

.metric-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
}

.metric-card::after {
    content: "";
    position: absolute;
    inset: auto -20px -20px auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.metric-card.primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
}

.metric-card.warning {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
}

.metric-card.success {
    background: linear-gradient(135deg, #10b981, #0f766e);
    color: #fff;
}

.metric-card.dark {
    background: linear-gradient(135deg, #111827, #334155);
    color: #fff;
}

.metric-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 22px;
    margin-bottom: 14px;
}

.metric-label {
    font-size: 13px;
    opacity: 0.88;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.metric-value {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
}

.premium-card {
    padding: 24px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.section-head h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
}

.section-head p {
    margin: 4px 0 0;
    color: #64748b;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.profile-grid div,
.mini-item,
.stack-item {
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.profile-grid span,
.mini-item span {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.profile-grid strong,
.mini-item strong {
    font-size: 15px;
}

.mini-list,
.stack-list {
    display: grid;
    gap: 12px;
}

.premium-table {
    margin: 0;
}

.premium-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.premium-table td,
.premium-table th {
    padding: 14px 12px;
    vertical-align: middle;
}

.premium-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.03);
}

.employee-directory-card,
.employee-profile-dashboard {
    padding: 18px;
}

.employee-filter-bar {
    align-items: center;
}

.employee-directory-table {
    min-width: 1100px;
}

.employee-table-subline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.employee-directory-table tbody tr.is-selected {
    background: rgba(16, 185, 129, 0.08);
}

.table-action-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.employee-row-link {
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.employee-name-link {
    color: inherit;
    text-decoration: none;
}

.employee-name-link:hover {
    text-decoration: underline;
}

.employee-row-link:hover {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.06), rgba(99, 102, 241, 0.04));
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.10);
}

.avatar-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(148, 163, 184, 0.20);
}

.employee-profile-page .employee-profile-shell {
    padding: 14px;
}

.employee-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.employee-profile-header-left,
.employee-profile-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.employee-hero-panel {
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(135deg, #ecfdf5, #f8fafc 55%, #eef2ff);
}

.employee-dashboard-layout {
    display: grid;
    grid-template-columns: 296px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.employee-dashboard-rail,
.employee-dashboard-main,
.employee-overview-side {
    display: grid;
    gap: 10px;
}

.employee-profile-card {
    position: sticky;
    top: 10px;
}

.employee-photo-panel {
    text-align: center;
    margin-bottom: 10px;
    min-width: 156px;
}

.employee-photo-form {
    margin: 0;
}

.employee-photo-stage {
    position: relative;
    width: 156px;
    height: 156px;
    border-radius: 30px;
    overflow: hidden;
    margin: 0 auto;
    display: grid;
    place-items: center;
    cursor: pointer;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(99, 102, 241, 0.10));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.employee-photo-stage.readonly {
    cursor: default;
}

.employee-photo-xl {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.employee-photo-overlay {
    position: absolute;
    inset: auto 10px 10px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.employee-photo-stage:hover .employee-photo-overlay {
    opacity: 1;
    transform: translateY(0);
}

.employee-photo-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
    max-width: 156px;
}

.employee-side-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.employee-profile-identity-text h2 {
    margin: 0 0 6px;
    font-size: clamp(28px, 2vw, 34px);
    font-weight: 900;
}

.employee-profile-identity-text p {
    margin: 0 0 10px;
    color: #475569;
}

.employee-tabs {
    border-bottom-color: rgba(148, 163, 184, 0.18);
    margin-bottom: 0;
}

.employee-tabs .nav-link {
    border: none;
    font-weight: 800;
    font-size: 13px;
    color: #334155;
    border-radius: 14px 14px 0 0;
    padding: 8px 11px;
}

.employee-tabs .nav-link.active {
    background: #0f172a;
    color: #fff;
}

.employee-tab-content {
    padding-top: 10px;
}

.employee-dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.employee-overview-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.82fr;
    gap: 10px;
    align-items: start;
    grid-template-areas:
        "attendance side"
        "payroll leavechart"
        "activity compliance";
}

.employee-overview-attendance {
    grid-area: attendance;
    width: 100%;
    max-width: 760px;
    justify-self: center;
    align-self: start;
    height: auto !important;
    min-height: 0;
    padding: 10px 14px;
}
.employee-overview-side { grid-area: side; }
.employee-overview-payroll { grid-area: payroll; }
.employee-overview-leavechart { grid-area: leavechart; }
.employee-overview-activity { grid-area: activity; }
.employee-overview-compliance { grid-area: compliance; }

.employee-overview-grid > .dashboard-soft-card,
.employee-overview-side > .dashboard-soft-card {
    height: auto;
    min-height: 0;
}

.chart-shell {
    position: relative;
    height: 220px;
}

.chart-shell.compact {
    height: 132px;
}

.chart-shell.compact.small {
    height: 116px;
}

.chart-shell.compact.attendance-tight {
    height: 112px;
}

.chart-shell.compact.payroll-tight {
    height: 102px;
}

.chart-shell.compact.small.donut-tight,
.chart-shell.compact.small.polar-tight {
    height: 108px;
}

.chart-shell canvas {
    width: 100% !important;
    height: 100% !important;
}

.employee-future-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.12);
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.15), transparent 32%),
        radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.96));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.employee-future-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 30%, transparent 70%, rgba(14, 165, 233, 0.08));
}

.employee-shift-widget,
.leave-balance-cards,
.compliance-rate-widget {
    position: relative;
    z-index: 1;
}

.employee-shift-widget {
    display: grid;
    gap: 10px;
}

.employee-shift-core {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
    color: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.employee-shift-core strong {
    font-size: 16px;
}

.employee-shift-core span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
}

.leave-balance-cards {
    display: grid;
    gap: 8px;
}

.leave-balance-cards.compact {
    gap: 8px;
}

.leave-balance-card {
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.leave-balance-card.tone-1 {
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.92), rgba(239, 246, 255, 0.96));
}

.leave-balance-card.tone-2 {
    background: linear-gradient(180deg, rgba(224, 231, 255, 0.92), rgba(238, 242, 255, 0.96));
}

.leave-balance-card.tone-3 {
    background: linear-gradient(180deg, rgba(220, 252, 231, 0.92), rgba(240, 253, 244, 0.96));
}

.leave-balance-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    align-items: center;
}

.leave-balance-head strong {
    font-size: 15px;
}

.leave-balance-head span,
.leave-balance-meta {
    color: #64748b;
    font-size: 12px;
}

.leave-balance-value {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}

.neo-progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    overflow: hidden;
    margin-bottom: 8px;
}

.neo-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #06b6d4, #3b82f6, #8b5cf6);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.35);
}

.compliance-rate-widget {
    display: grid;
    gap: 10px;
}

.compliance-ring {
    width: 112px;
    height: 112px;
    margin: 0 auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, #ffffff 40%, transparent 41%),
        conic-gradient(#22c55e 0 var(--compliance-rate, 72%), rgba(148, 163, 184, 0.20) var(--compliance-rate, 72%) 100%);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.72), 0 12px 28px rgba(15, 23, 42, 0.10);
}

.compliance-ring-value {
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
}

.employee-side-card .profile-grid,
.soft-list.compact {
    gap: 8px;
}

.employee-dashboard-redesign {
    display: grid;
    gap: 12px;
}

.employee-profile-hero-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.95fr);
    gap: 16px;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.14), transparent 30%),
        radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.12), transparent 30%),
        linear-gradient(135deg, #ecfdf5, #f8fbff 56%, #eef2ff);
    align-items: start;
}

.employee-identity-surface,
.employee-summary-surface {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.employee-hero-primary {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.employee-identity-surface {
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.9));
    display: flex;
    align-items: center;
}

.employee-identity-quickgrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.employee-identity-mini-card {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.employee-identity-mini-card span,
.employee-identity-mini-card strong {
    display: block;
}

.employee-identity-mini-card span {
    margin-bottom: 6px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.employee-identity-mini-card strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
}

.employee-summary-surface {
    padding: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 249, 0.92));
}

.employee-identity-block {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    flex: 1;
}

.employee-profile-identity-text {
    flex: 1;
    min-width: 0;
}

.employee-profile-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.employee-profile-roleline {
    margin: 0 0 12px;
}

.employee-summary-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.employee-summary-head h3 {
    margin: 4px 0 0;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}

.employee-hero-summary {
    display: grid;
    gap: 10px;
    align-content: start;
    width: 100%;
    min-width: 0;
}

.employee-profile-hero-v2 .employee-photo-panel {
    margin-bottom: 0;
}

.employee-profile-hero-v2 .employee-photo-stage {
    width: 132px;
    height: 132px;
    border-radius: 26px;
}

.employee-profile-hero-v2 .employee-photo-hint {
    max-width: 132px;
}

.employee-profile-hero-v2 .employee-side-stat-grid .summary-mini,
.employee-profile-hero-v2 .employee-balance-strip-v2 .compact-kpi-balance {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(148, 163, 184, 0.12);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.employee-balance-strip-v2 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.compact-kpi-balance {
    padding: 12px;
    min-height: auto;
}

.compact-kpi-balance small {
    color: #64748b;
    font-size: 11px;
}

.employee-dashboard-redesign .dashboard-soft-card,
.employee-dashboard-redesign .employee-future-card {
    height: auto;
    min-height: 0;
}

.employee-overview-grid-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
    gap: 12px;
    align-items: start;
}

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

.employee-main-stack,
.employee-side-stack-v2 {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.employee-main-subgrid,
.employee-side-subgrid-v2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.employee-main-subgrid-wide {
    grid-column: 1 / -1;
}

.employee-evaluation-history-card {
    padding: 14px 16px;
}

.employee-evaluation-history-card .table-responsive {
    position: relative;
    z-index: 1;
}

.employee-evaluation-simple-table {
    min-width: 100%;
    table-layout: fixed;
}

.employee-evaluation-simple-table th:nth-child(1),
.employee-evaluation-simple-table td:nth-child(1) {
    width: 26%;
}

.employee-evaluation-simple-table th:nth-child(2),
.employee-evaluation-simple-table td:nth-child(2) {
    width: 22%;
}

.employee-evaluation-simple-table th:nth-child(3),
.employee-evaluation-simple-table td:nth-child(3) {
    width: 52%;
}

.employee-evaluation-simple-table tbody tr td {
    background: rgba(255, 255, 255, 0.72);
}

.evaluation-remarks-cell {
    white-space: normal;
    color: #475569;
    line-height: 1.55;
}

.employee-overview-bottom-row {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.92fr) minmax(0, 1.18fr) minmax(220px, 0.92fr);
    gap: 10px;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.employee-overview-bottom-row > .employee-bottom-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 248px;
    padding: 12px 13px;
}

.employee-overview-bottom-row > .employee-bottom-card .panel-title.minimal {
    min-height: 44px;
    margin-bottom: 8px;
}

.employee-overview-bottom-row > .employee-bottom-card .panel-title.minimal p {
    line-height: 1.35;
}

.employee-bottom-wallet-grid {
    flex: 1;
    align-content: stretch;
}

.employee-bottom-wallet-grid .leave-balance-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
    padding: 9px 10px;
}

.employee-bottom-activity-list {
    flex: 1;
    align-content: start;
}

.employee-bottom-activity-list .feed-row,
.employee-bottom-activity-list .schedule-item {
    border-radius: 12px;
}

.employee-bottom-chart-card {
    justify-content: space-between;
}

.employee-bottom-chart-shell {
    flex: 1;
    min-height: 162px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2px;
}

.employee-bottom-chart-shell canvas {
    max-width: 100%;
}

.employee-side-subgrid-v2-charts .dashboard-soft-card {
    align-self: start;
}

.employee-overview-attendance-v2 {
    padding: 12px 14px;
}

.attendance-tight-v2 {
    height: 220px;
}

.payroll-tight-v2 {
    height: 150px;
}

.donut-tight-v2,
.polar-tight-v2 {
    height: 170px;
}

.employee-dashboard-redesign .panel-title.minimal {
    margin-bottom: 10px;
}

.employee-dashboard-redesign .profile-grid.compact-grid {
    gap: 8px;
}

.employee-employment-card {
    padding: 12px 13px;
}

.employee-employment-card .profile-grid.compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.employee-employment-card .profile-grid.compact-grid > div,
.employee-employment-card .profile-grid.compact-grid > .grid-span-2 {
    padding: 10px 11px;
    border-radius: 14px;
}

.employee-employment-card .profile-grid.compact-grid span {
    margin-bottom: 6px;
    font-size: 10px;
    letter-spacing: 0.07em;
}

.employee-employment-card .profile-grid.compact-grid strong {
    font-size: 13px;
    line-height: 1.35;
}

.employee-dashboard-redesign .feed-row {
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.employee-dashboard-redesign .schedule-item {
    margin-bottom: 0;
}

.leave-balance-cards-inline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.leave-balance-cards-inline .leave-balance-card {
    width: 100%;
    text-align: left;
}

.employee-main-subgrid > .dashboard-soft-card,
.employee-main-subgrid > .employee-future-card,
.employee-side-stack-v2 > .dashboard-soft-card,
.employee-side-stack-v2 > .employee-future-card {
    align-self: start;
}

.compact-ui .employee-profile-page .employee-profile-shell {
    padding: 12px;
}

.compact-ui .employee-hero-panel {
    padding: 12px;
    border-radius: 18px;
}

.compact-ui .employee-photo-stage {
    width: 124px;
    height: 124px;
    border-radius: 24px;
}

.compact-ui .employee-profile-identity-text h2 {
    font-size: 22px;
}

.compact-ui .employee-dashboard-kpis {
    gap: 8px;
    margin-bottom: 10px;
}

.compact-ui .chart-shell {
    height: 152px;
}

.compact-ui .chart-shell.compact {
    height: 118px;
}

.compact-ui .chart-shell.compact.small {
    height: 104px;
}

.compact-ui .chart-shell.compact.attendance-tight {
    height: 98px;
}

.compact-ui .chart-shell.compact.payroll-tight {
    height: 94px;
}

.compact-ui .chart-shell.compact.small.donut-tight,
.compact-ui .chart-shell.compact.small.polar-tight {
    height: 98px;
}

.compact-ui .leave-balance-card,
.compact-ui .employee-shift-core {
    border-radius: 16px;
}

.compact-ui .compliance-ring {
    width: 104px;
    height: 104px;
}

@media (max-width: 1399px) {
    .employee-overview-grid-v2 {
        grid-template-columns: 1fr;
    }

    .employee-overview-bottom-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .employee-main-subgrid,
    .employee-side-subgrid-v2 {
        grid-template-columns: 1fr 1fr;
    }

    .attendance-tight-v2 {
        height: 200px;
    }

    .payroll-tight-v2,
    .donut-tight-v2,
    .polar-tight-v2 {
        height: 150px;
    }

    .employee-dashboard-layout {
        grid-template-columns: 290px minmax(0, 1fr);
    }

    .employee-overview-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "attendance"
            "side"
            "payroll"
            "leavechart"
            "activity"
            "compliance";
    }

    .employee-overview-attendance {
        max-width: 100%;
        justify-self: stretch;
    }
}

@media (max-width: 1199px) {
    .employee-profile-hero-v2 {
        grid-template-columns: 1fr;
    }

    .employee-identity-surface,
    .employee-summary-surface {
        padding: 14px;
    }

    .employee-identity-quickgrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .employee-identity-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .employee-balance-strip-v2,
    .employee-main-subgrid,
    .employee-side-subgrid-v2,
    .employee-overview-bottom-row,
    .employee-side-stat-grid,
    .employee-dashboard-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .employee-employment-card .profile-grid.compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .leave-balance-cards-inline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .employee-id-thumbnails {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .employee-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .employee-profile-card {
        position: static;
    }

    .attendance-tight-v2 {
        height: 180px;
    }
}

@media (max-width: 767px) {
    .employee-profile-hero-v2,
    .employee-balance-strip-v2,
    .employee-main-subgrid,
    .employee-side-subgrid-v2,
    .employee-overview-bottom-row,
    .employee-side-stat-grid,
    .employee-dashboard-kpis {
        grid-template-columns: 1fr;
    }

    .employee-identity-quickgrid {
        grid-template-columns: 1fr;
    }

    .employee-photo-stage {
        width: 128px;
        height: 128px;
        border-radius: 24px;
    }

    .employee-profile-hero-v2 .employee-photo-stage {
        width: 120px;
        height: 120px;
    }

    .attendance-tight-v2 {
        height: 160px;
    }

    .leave-balance-cards-inline {
        grid-template-columns: 1fr;
    }

    .employee-overview-bottom-row > .employee-bottom-card {
        min-height: 0;
    }

    .employee-id-thumbnails {
        grid-template-columns: 1fr 1fr;
    }

    .employee-employment-card .profile-grid.compact-grid {
        grid-template-columns: 1fr;
    }
}

.employee-profile-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ecfdf5, #f8fafc 55%, #eef2ff);
    border: 1px solid rgba(148, 163, 184, 0.16);
    margin-bottom: 16px;
}

.employee-profile-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.employee-profile-avatar {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
}

.employee-profile-avatar.tone-1 {
    background: linear-gradient(135deg, #22c55e, #0f766e);
}

.employee-profile-avatar.tone-2 {
    background: linear-gradient(135deg, #8b5cf6, #4f46e5);
}

.employee-profile-avatar.tone-3 {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.employee-profile-avatar.tone-4 {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.employee-profile-avatar.tone-5 {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.employee-profile-avatar.tone-6 {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
}

.employee-profile-main h4 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
}

.employee-profile-main p {
    margin: 0 0 8px;
    color: #475569;
}

.employee-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.employee-profile-meta span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 12px;
    color: #334155;
}

.employee-profile-meta-rich {
    margin-top: 10px;
}

.employee-profile-meta-rich span {
    padding: 7px 11px;
    font-weight: 700;
}

.employee-id-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.employee-id-thumb-card {
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(148, 163, 184, 0.14);
    display: grid;
    gap: 8px;
}

.employee-id-thumb-stage {
    aspect-ratio: 1.25 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.10), rgba(99, 102, 241, 0.08));
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.employee-id-thumb-stage img,
.employee-id-thumb-empty {
    width: 100%;
    height: 100%;
}

.employee-id-thumb-stage img {
    object-fit: cover;
    display: block;
}

.employee-id-thumb-empty {
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 900;
    color: #475569;
}

.employee-id-thumb-meta {
    display: grid;
    gap: 2px;
}

.employee-id-thumb-meta strong {
    font-size: 12px;
    color: #0f172a;
}

.employee-id-thumb-meta span {
    font-size: 11px;
    color: #64748b;
}

.employee-evaluation-table {
    min-width: 760px;
}

.evaluation-feedback-cell {
    max-width: 320px;
    white-space: normal;
    color: #475569;
}

.employee-balance-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-width: 290px;
}

.employee-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}

.table-sub {
    color: #64748b;
    font-size: 12px;
    margin-top: 2px;
}

.announcement-card {
    padding: 18px;
    display: flex;
    gap: 14px;
}

.announcement-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    flex-shrink: 0;
}

.badge-pending,
.badge-draft {
    background: #fef3c7;
    color: #92400e;
}

.badge-approved,
.badge-finalized,
.badge-emailed {
    background: #dcfce7;
    color: #166534;
}

.badge-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.hero {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.demo-box,
.stack-item,
.mini-item {
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.form-control,
.form-select,
.btn {
    border-radius: 16px;
}

.form-control,
.form-select {
    padding: 0.8rem 1rem;
    border-color: rgba(148, 163, 184, 0.28);
}

.btn.rounded-pill {
    font-weight: 700;
}

.modal-content {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.employee-compute-form .modal-body {
    padding-top: 10px;
}

.employee-form-section-title {
    padding-top: 4px;
}

.employee-form-section-title span {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.10);
    color: #0369a1;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.employee-form-section-title p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px;
}

.employee-field .form-label,
.employee-id-field .form-label,
.employee-upload-field .form-label {
    margin: 0 0 7px;
    font-size: 12px;
    font-weight: 800;
    color: #334155;
}

.employee-upload-field {
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.employee-id-field {
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.employee-id-field .employee-upload-top {
    margin-bottom: 8px;
}

.employee-id-field .form-control {
    min-height: 48px;
    background: #fff;
}

.employee-upload-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.employee-upload-top .form-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.employee-upload-top .form-label i {
    font-size: 14px;
    color: #0ea5e9;
}

.employee-upload-top .form-label span {
    font-size: 12px;
    font-weight: 900;
    color: #0f172a;
}

.employee-upload-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    background: rgba(99, 102, 241, 0.12);
    color: #4338ca;
    border: 1px solid rgba(99, 102, 241, 0.16);
}

.employee-upload-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.employee-upload-preview {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.10), rgba(99, 102, 241, 0.08));
    border: 1px solid rgba(148, 163, 184, 0.16);
    display: grid;
    place-items: center;
}

.employee-upload-preview.has-image {
    border-color: rgba(14, 165, 233, 0.28);
}

.employee-upload-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.employee-upload-preview-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #334155;
}

.employee-upload-preview-fallback i {
    font-size: 18px;
    opacity: 0.9;
}

.employee-upload-field .form-control[type="file"] {
    padding: 0.65rem 0.8rem;
    min-height: 52px;
    background: #fff;
}

.employee-create-page .employee-create-shell {
    padding: 18px;
}

.employee-create-head {
    margin-bottom: 16px;
}

.employee-create-form-page {
    padding: 10px 4px 2px;
}

.employee-field-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
}

.employee-upload-field-profile {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.employee-upload-field-profile-priority {
    min-height: 100%;
}

.employee-id-combined-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.employee-id-combined-card {
    padding: 14px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.employee-id-combined-body {
    display: grid;
    gap: 12px;
}

.employee-id-combined-card .employee-upload-row {
    grid-template-columns: 64px minmax(0, 1fr);
}

.employee-id-upload-control .form-control[type="file"] {
    min-height: 52px;
}

.employee-id-combined-card .employee-upload-preview {
    width: 64px;
    height: 64px;
}

.settings-nav-dropdown {
    display: inline-flex;
    position: relative;
}

.settings-dropdown-menu {
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    min-width: 240px;
    z-index: 1080;
}

.nav-link-premium-button {
    border: 0;
    background: transparent;
}

.settings-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 700;
    color: #334155;
}

.settings-dropdown-menu .dropdown-item.active,
.settings-dropdown-menu .dropdown-item:active,
.settings-dropdown-menu .dropdown-item:hover {
    background: rgba(59, 130, 246, 0.10);
    color: #1d4ed8;
}

.mobile-settings-submenu {
    margin: 8px 0 0 18px;
    display: grid;
    gap: 8px;
}

.mobile-nav-sublink {
    background: rgba(148, 163, 184, 0.08);
}

.settings-page-shell .premium-card {
    height: 100%;
}

.settings-dropdown-trigger {
    min-height: 48px;
    border-color: rgba(148, 163, 184, 0.25);
    font-weight: 700;
}

.settings-form-grid .form-label {
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #334155;
}

.settings-form-grid .form-control,
.settings-form-grid .form-select {
    min-height: 48px;
    border-radius: 16px;
}

.settings-check {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.settings-form-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

body.theme-midnight,
body.theme-dark {
    --shell-top-bg: #08111F;
    --shell-bottom-bg: #0B1527;
    --shell-accent-rgb: 59 130 246;
    --shell-highlight-rgb: 20 184 166;
    color: #dbe4f0;
}

body.theme-midnight,
body.theme-dark {
    background:
        radial-gradient(circle at top left, rgb(var(--shell-accent-rgb, 59 130 246) / 0.18), transparent 22%),
        radial-gradient(circle at top right, rgb(var(--shell-highlight-rgb, 20 184 166) / 0.15), transparent 24%),
        linear-gradient(180deg, var(--shell-top-bg, #08111F) 0, var(--shell-top-bg, #08111F) 300px, var(--shell-bottom-bg, #0B1527) 300px, var(--shell-bottom-bg, #0B1527) 100%);
}

body.theme-midnight .app-topbar,
body.theme-midnight .premium-card,
body.theme-midnight .dashboard-soft-card,
body.theme-midnight .modal-content,
body.theme-midnight .employee-upload-field,
body.theme-midnight .employee-id-field,
body.theme-midnight .employee-id-combined-card,
body.theme-midnight .settings-branding-card,
body.theme-midnight .settings-preview-suite,
body.theme-midnight .document-generator-card,
body.theme-midnight .offcanvas,
body.theme-dark .app-topbar,
body.theme-dark .premium-card,
body.theme-dark .dashboard-soft-card,
body.theme-dark .modal-content,
body.theme-dark .employee-upload-field,
body.theme-dark .employee-id-field,
body.theme-dark .employee-id-combined-card,
body.theme-dark .settings-branding-card,
body.theme-dark .settings-preview-suite,
body.theme-dark .document-generator-card,
body.theme-dark .offcanvas {
    background: #0f172a !important;
    color: #dbe4f0;
    border-color: rgba(148, 163, 184, 0.18);
}

body.theme-midnight .nav-link-premium,
body.theme-midnight .section-head h3,
body.theme-midnight .settings-form-grid .form-label,
body.theme-midnight .mini-item span,
body.theme-midnight .mini-item strong,
body.theme-midnight .employee-field-hint,
body.theme-midnight .section-head p,
body.theme-dark .nav-link-premium,
body.theme-dark .section-head h3,
body.theme-dark .settings-form-grid .form-label,
body.theme-dark .mini-item span,
body.theme-dark .mini-item strong,
body.theme-dark .employee-field-hint,
body.theme-dark .section-head p,
body.theme-midnight .settings-branding-copy p,
body.theme-dark .settings-branding-copy p {
    color: #dbe4f0;
}

body.theme-midnight .settings-preview-chip,
body.theme-dark .settings-preview-chip {
    background: rgba(96, 165, 250, 0.16);
    color: #dbe4f0;
}

body.theme-midnight .form-control,
body.theme-midnight .form-select,
body.theme-midnight .settings-check,
body.theme-midnight .dropdown-menu,
body.theme-midnight .settings-dropdown-trigger,
body.theme-dark .form-control,
body.theme-dark .form-select,
body.theme-dark .settings-check,
body.theme-dark .dropdown-menu,
body.theme-dark .settings-dropdown-trigger {
    background: #111c31;
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.22);
}

body.theme-emerald {
    --shell-top-bg: #0D8A60;
    --shell-bottom-bg: #E9F5EF;
    --shell-accent-rgb: 16 185 129;
    --shell-highlight-rgb: 45 212 191;
    background:
        radial-gradient(circle at top left, rgb(var(--shell-accent-rgb, 16 185 129) / 0.24), transparent 24%),
        radial-gradient(circle at top right, rgb(var(--shell-highlight-rgb, 45 212 191) / 0.18), transparent 22%),
        linear-gradient(180deg, var(--shell-top-bg, #0D8A60) 0, var(--shell-top-bg, #0D8A60) 300px, var(--shell-bottom-bg, #E9F5EF) 300px, var(--shell-bottom-bg, #E9F5EF) 100%);
}

body.theme-emerald .topbar-section,
body.theme-emerald .premium-card,
body.theme-emerald .dashboard-soft-card,
body.theme-emerald .modal-content,
body.theme-emerald .employee-upload-field,
body.theme-emerald .employee-id-field,
body.theme-emerald .employee-id-combined-card,
body.theme-emerald .settings-branding-card,
body.theme-emerald .settings-preview-suite,
body.theme-emerald .document-generator-card,
body.theme-emerald .offcanvas {
    background: rgba(255, 255, 255, 0.84) !important;
    border-color: rgba(16, 185, 129, 0.12);
}

body.theme-dark .settings-dropdown-menu .dropdown-item {
    color: #dbe4f0;
}

body.theme-dark .settings-dropdown-menu .dropdown-item.active,
body.theme-dark .settings-dropdown-menu .dropdown-item:hover {
    background: rgba(96, 165, 250, 0.16);
    color: #93c5fd;
}

.settings-branding-grid {
    display: grid;
    gap: 16px;
}

.settings-branding-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) minmax(220px, 280px);
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.settings-branding-preview {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: grid;
    place-items: center;
}

.settings-branding-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.settings-branding-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 34px;
    color: #0f766e;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(59, 130, 246, 0.12));
}

.settings-branding-copy strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.settings-branding-copy p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.settings-branding-input .form-control {
    min-height: 52px;
}

.settings-color-input {
    width: 100%;
    min-height: 52px;
    padding: 6px;
}

.leave-policy-builder {
    padding: 18px;
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.leave-policy-table {
    margin-bottom: 0;
}

.leave-policy-table tbody tr td {
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.86);
}

.leave-policy-name {
    font-weight: 700;
    color: #0f172a;
}

.leave-policy-description {
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

.leave-policy-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: center;
}

.leave-policy-table .btn {
    white-space: nowrap;
}

.leave-policy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.leave-policy-row.is-inactive td {
    opacity: 0.8;
}

.leave-policy-row.is-deleted td {
    opacity: 0.55;
}

.leave-policy-confirm-copy {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.leave-request-policy-note {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #475569;
    font-size: 13px;
}

.leave-access-card .employee-field-hint {
    min-height: 72px;
}

.settings-preview-suite {
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.86));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.settings-preview-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.settings-preview-header strong {
    display: block;
    font-size: 16px;
}

.settings-preview-header p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
}

.settings-preview-chip {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.settings-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.branding-preview-card {
    min-width: 0;
}

.branding-preview-window,
.branding-preview-document {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.branding-preview-window {
    background:
        radial-gradient(circle at top left, rgb(var(--shell-accent-rgb, 16 214 111) / 0.28), transparent 28%),
        radial-gradient(circle at top right, rgb(var(--shell-highlight-rgb, 56 189 248) / 0.18), transparent 24%),
        linear-gradient(180deg, var(--shell-top-bg, #10D66F) 0, var(--shell-top-bg, #10D66F) 120px, var(--shell-bottom-bg, #EEF4F1) 120px, var(--shell-bottom-bg, #EEF4F1) 100%);
}

.branding-preview-browser {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.9);
}

.branding-preview-browser > span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.7);
}

.branding-preview-tab {
    margin-left: 8px;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
    font-size: 12px;
    font-weight: 600;
}

.branding-preview-tab img,
.branding-preview-tab i {
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
}

.branding-preview-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 14px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(8, 26, 22, 0.28);
    color: #ecfdf5;
}

.branding-preview-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.branding-preview-brand strong,
.branding-preview-brand span {
    display: block;
}

.branding-preview-brand strong {
    font-size: 13px;
}

.branding-preview-brand span {
    font-size: 11px;
    opacity: 0.78;
}

.branding-preview-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.branding-preview-logo.is-dark-surface {
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
}

.branding-preview-logo.is-light-surface {
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.branding-preview-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.branding-preview-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.branding-preview-pills span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 11px;
    font-weight: 600;
}

.branding-preview-body {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 0 14px 14px;
}

.branding-preview-kpi {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    color: #0f172a;
}

.branding-preview-kpi span,
.branding-preview-kpi strong {
    display: block;
}

.branding-preview-kpi span {
    margin-bottom: 6px;
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.branding-preview-kpi strong {
    font-size: 16px;
}

.branding-preview-window.theme-midnight .branding-preview-topbar {
    background: rgba(15, 23, 42, 0.55);
}

.branding-preview-window.theme-midnight .branding-preview-kpi {
    background: rgba(15, 23, 42, 0.78);
    color: #e2e8f0;
}

.branding-preview-window.theme-midnight .branding-preview-kpi span {
    color: #94a3b8;
}

.branding-preview-document {
    padding: 16px;
    background: #ffffff;
}

.branding-preview-document-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.branding-preview-doc-meta {
    display: grid;
    gap: 4px;
    font-size: 11px;
    color: #64748b;
    text-align: right;
}

.branding-preview-document-note {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 12px;
    color: #475569;
}

.branding-preview-document-body {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.branding-preview-line {
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.35), rgba(203, 213, 225, 0.7));
}

.branding-preview-document-footer {
    display: grid;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(203, 213, 225, 0.85);
}

.branding-preview-document-footer strong,
.branding-preview-document-footer span {
    display: block;
}

.branding-preview-document-footer span,
.branding-preview-document-footer p {
    color: #64748b;
    font-size: 12px;
}

.branding-preview-document-footer p {
    margin: 0;
}

.document-generator-card {
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.employee-inline-check {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.employee-inline-check .form-check-input {
    margin-top: 0;
}

.employee-inline-check .form-check-label {
    font-weight: 700;
    color: #334155;
}

.inline-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.feed-item {
    padding: 16px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
}

.feed.compact,
.stack-list {
    max-height: 620px;
    overflow: auto;
}

.alert {
    border-radius: 20px;
}

.muted {
    color: #64748b;
}

.compact-ui .brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 20px;
}

.compact-ui .brand-title {
    font-size: 17px;
}

.compact-ui .app-topbar {
    padding: 16px 14px 0;
}

.compact-ui .app-topbar-inner {
    gap: 10px;
}

.compact-ui .topbar-section {
    min-height: 50px;
    padding: 8px 10px;
    border-radius: 18px;
}

.compact-ui .nav-link-premium {
    gap: 6px;
    padding: 6px 8px;
    border-radius: 999px;
    font-size: 10px;
}

.compact-ui .page-title {
    font-size: clamp(22px, 3vw, 30px);
}

.compact-ui .page-subtitle {
    font-size: 13px;
}

.compact-ui .container-fluid {
    max-width: 1600px;
}

.compact-ui .dashboard-stage {
    border-radius: 22px;
}

.compact-ui .dashboard-hero,
.compact-ui .dashboard-panels {
    padding: 12px;
}

.compact-ui .dashboard-hero-nav {
    padding: 8px 10px;
    border-radius: 16px;
    margin-bottom: 12px;
}

.compact-ui .dashboard-greeting h2 {
    font-size: 24px;
}

.compact-ui .dashboard-date-chip {
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 12px;
}

.compact-ui .dashboard-stat {
    padding: 10px;
    border-radius: 14px;
}

.compact-ui .dashboard-stat strong {
    font-size: 24px;
}

.compact-ui .dashboard-chart-card,
.compact-ui .dashboard-side-card,
.compact-ui .dashboard-soft-card {
    padding: 12px;
    border-radius: 18px;
}

.compact-ui .metric-card {
    padding: 14px;
    border-radius: 20px;
}

.compact-ui .metric-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
    margin-bottom: 10px;
}

.compact-ui .metric-value {
    font-size: 24px;
}

.compact-ui .premium-card {
    padding: 14px;
    border-radius: 18px;
}

.compact-ui .section-head {
    margin-bottom: 10px;
    gap: 12px;
}

.compact-ui .section-head h3 {
    font-size: 18px;
}

.compact-ui .section-head p,
.compact-ui .table-sub,
.compact-ui .profile-chip small {
    font-size: 12px;
}

.compact-ui .premium-table td,
.compact-ui .premium-table th {
    padding: 8px 9px;
    font-size: 12px;
}

.compact-ui .employee-directory-card,
.compact-ui .employee-profile-dashboard {
    padding: 14px;
}

.compact-ui .employee-profile-hero {
    padding: 12px 14px;
    border-radius: 18px;
}

.compact-ui .employee-profile-avatar {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    font-size: 18px;
}

.compact-ui .employee-profile-main h4 {
    font-size: 20px;
}

.compact-ui .employee-stat-grid {
    gap: 10px;
}

.compact-ui .profile-grid div,
.compact-ui .mini-item,
.compact-ui .stack-item {
    padding: 10px;
    border-radius: 14px;
}

.compact-kpi {
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.compact-kpi span {
    display: block;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.compact-kpi strong {
    font-size: 16px;
}

.compact-filter .form-control,
.compact-filter .form-select {
    min-height: auto;
    padding: 0.48rem 0.75rem;
}

.compact-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
}

.compact-grid {
    grid-template-columns: 1fr;
}

.grid-span-2 {
    grid-column: 1 / -1;
}

.empty-state {
    padding: 18px;
    border-radius: 16px;
    background: #f8fafc;
    color: #64748b;
    border: 1px dashed rgba(148, 163, 184, 0.4);
}

.detail-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.14);
    font-size: 12px;
}

.print-shell {
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px;
    font-family: "Inter", Arial, sans-serif;
    color: #0f172a;
}

.print-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.print-brand-block {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.print-brand-logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    background: #fff;
    flex-shrink: 0;
}

.print-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.print-company-meta {
    margin-top: 8px;
    display: grid;
    gap: 4px;
    font-size: 12px;
    color: #475569;
}

.print-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
}

.print-table th,
.print-table td {
    border: 1px solid #cbd5e1;
    padding: 8px 10px;
    font-size: 12px;
    text-align: left;
}

.print-document-meta {
    display: grid;
    gap: 6px;
    font-size: 12px;
    color: #334155;
}

.print-banner-note {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #334155;
    font-size: 13px;
}

.document-letter-body {
    padding: 8px 0 12px;
    font-size: 14px;
    line-height: 1.75;
}

.document-section-title {
    margin: 18px 0 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f172a;
}

.document-signature-block {
    margin-top: 36px;
    max-width: 280px;
}

.document-signature-block strong,
.document-signature-block span {
    display: block;
}

.document-signature-block span {
    color: #64748b;
    font-size: 12px;
}

.signature-line {
    width: 100%;
    margin-bottom: 8px;
    border-top: 1px solid #0f172a;
}

.print-footer-note {
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px solid #cbd5e1;
    font-size: 12px;
    color: #64748b;
}

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

@media (max-width: 1199px) {
    .app-topbar-inner,
    .dashboard-hero-main,
    .dashboard-stats-grid,
    .leave-summary-grid {
        grid-template-columns: 1fr;
    }

    .employee-dashboard-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .employee-quick-stats {
        grid-template-columns: 1fr 1fr;
    }

    .employee-id-combined-grid {
        grid-template-columns: 1fr;
    }

    .settings-branding-card {
        grid-template-columns: 1fr;
    }

    .settings-preview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .topbar-section {
        width: 100%;
    }

    .dashboard-hero-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .hero,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .employee-profile-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .employee-balance-strip,
    .employee-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .employee-profile-hero-2 {
        grid-template-columns: 1fr;
    }

    .employee-shift-core {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .section-head {
        flex-direction: column;
    }

    .settings-preview-header,
    .branding-preview-topbar,
    .branding-preview-document-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .branding-preview-body {
        grid-template-columns: 1fr;
    }

    .topbar-tools,
    .topbar-brand-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-mini-nav,
    .topbar-nav {
        width: 100%;
    }

    .employee-balance-strip,
    .employee-stat-grid {
        grid-template-columns: 1fr;
    }

    .employee-upload-row {
        grid-template-columns: 1fr;
    }

    .employee-upload-preview {
        width: 100%;
        max-width: 72px;
    }


    .employee-dashboard-kpis {
        grid-template-columns: 1fr;
    }

    .table-action-group {
        width: 100%;
        justify-content: flex-end;
    }

    .employee-quick-stats {
        grid-template-columns: 1fr;
    }
}

.settings-tiles-wrap {
    display: block;
}

.settings-tiles-hero {
    margin-bottom: 20px;
    padding: 22px 26px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 95% 0%, rgba(16, 214, 111, 0.18), transparent 42%),
        linear-gradient(135deg, #0f2a78 0%, #2246ab 45%, #10D66F 100%);
    color: #fff;
    box-shadow: 0 22px 50px rgba(18, 45, 125, 0.18);
    border: 1px solid rgba(18, 45, 125, 0.08);
}

.settings-tiles-hero h2 {
    margin: 0 0 4px;
    font-size: 22px;
    letter-spacing: -0.01em;
    color: #fff;
}

.settings-tiles-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13.5px;
}

.settings-tiles-hero .hero-tags {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.settings-tiles-hero .hero-tag {
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.settings-tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.settings-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 22px 22px 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.settings-tile::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tile-accent, #2246ab), var(--tile-accent-2, #10D66F));
    opacity: 0.9;
}

.settings-tile:hover,
.settings-tile:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 22px 46px rgba(18, 45, 125, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(34, 70, 171, 0.3);
    outline: none;
}

.settings-tile-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--tile-accent, #2246ab), var(--tile-accent-2, #10D66F));
    color: #fff;
    font-size: 26px;
    box-shadow: 0 14px 30px rgba(34, 70, 171, 0.22);
}

.settings-tile-label {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.settings-tile-copy {
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 16px;
    flex: 1;
}

.settings-tile-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px dashed rgba(148, 163, 184, 0.28);
}

.settings-tile-stat {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.settings-tile-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(34, 70, 171, 0.08);
    color: #122d7d;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
}

.settings-tile:hover .settings-tile-cta {
    background: linear-gradient(135deg, #2246ab, #122d7d);
    color: #fff;
}

.settings-modal-dialog.modal-lg {
    max-width: 880px;
}

.settings-modal-dialog.modal-xl {
    max-width: 1140px;
}

.settings-modal-dialog .modal-content {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.28);
}

.settings-modal-dialog .modal-header {
    padding: 18px 26px;
    background:
        radial-gradient(circle at 100% 0%, rgba(16, 214, 111, 0.16), transparent 38%),
        linear-gradient(135deg, #0f2a78 0%, #2246ab 55%, #2a55c4 100%);
    color: #fff;
    border-bottom: 0;
}

.settings-modal-dialog .modal-header .modal-title {
    color: #fff;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-modal-dialog .modal-header .modal-title .title-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.settings-modal-dialog .modal-header .modal-title small {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.settings-modal-dialog .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.settings-modal-dialog .modal-body {
    padding: 22px 26px 18px;
    background: #fbfdff;
}

.settings-modal-dialog .modal-footer {
    padding: 14px 26px 18px;
    background: #f8fafc;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.settings-modal-dialog .settings-form-grid {
    padding: 10px 2px 4px;
}

.settings-modal-dialog .leave-policy-builder {
    padding: 14px;
    background: rgba(255, 255, 255, 0.9);
}

/* Device Connections test loading overlay */
.device-modal-wrap {
    position: relative;
}
.device-test-loading {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    border-radius: 22px;
}
.device-test-loading.active {
    display: flex;
}
.device-test-loading .loader-core {
    background: #fff;
    border-radius: 18px;
    padding: 28px 36px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-width: 260px;
    text-align: center;
}
.device-test-loading .spinner-ring {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(34, 70, 171, 0.15);
    border-top-color: #2246ab;
    border-right-color: #10D66F;
    border-radius: 50%;
    animation: device-spin 0.9s linear infinite;
}
@keyframes device-spin {
    to { transform: rotate(360deg); }
}
.device-test-loading .loader-label {
    font-weight: 700;
    color: #0f172a;
    font-size: 15px;
    letter-spacing: -0.01em;
}
.device-test-loading .loader-sub {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

.device-test-result {
    margin: 0 0 18px;
    border-radius: 14px;
    padding: 14px 18px;
    display: none;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.device-test-result.visible {
    display: flex;
}
.device-test-result.success {
    background: linear-gradient(135deg, rgba(16, 214, 111, 0.10), rgba(16, 185, 129, 0.06));
    border-color: rgba(16, 185, 129, 0.25);
    color: #065f46;
}
.device-test-result.failed {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.10), rgba(220, 38, 38, 0.06));
    border-color: rgba(220, 38, 38, 0.25);
    color: #7f1d1d;
}
.device-test-result .result-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
}
.device-test-result.success .result-icon {
    background: #10b981;
    color: #fff;
}
.device-test-result.failed .result-icon {
    background: #ef4444;
    color: #fff;
}
.device-test-result .result-body {
    flex: 1 1 auto;
    min-width: 0;
}
.device-test-result .result-title {
    font-weight: 800;
    font-size: 14px;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}
.device-test-result .result-message {
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 2px;
    opacity: 0.92;
    word-break: break-word;
    white-space: normal;
}
.device-test-result .result-meta {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.85;
    margin-top: 4px;
}
.device-test-result .result-close {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
    color: inherit;
    opacity: 0.7;
    flex: 0 0 auto;
}
.device-test-result .result-close:hover {
    opacity: 1;
    background: rgba(15, 23, 42, 0.06);
}

body.theme-midnight .settings-tile {
    background: linear-gradient(180deg, #1f2937, #111827);
    border-color: rgba(75, 85, 99, 0.4);
}

body.theme-midnight .settings-tile-label {
    color: #f1f5f9;
}

body.theme-midnight .settings-tile-copy,
body.theme-midnight .settings-tile-stat {
    color: #94a3b8;
}

body.theme-midnight .settings-tile-cta {
    background: rgba(16, 214, 111, 0.14);
    color: #86efac;
}

body.theme-midnight .settings-modal-dialog .modal-body {
    background: #0f172a;
}

body.theme-midnight .settings-modal-dialog .modal-footer {
    background: #0b1220;
}

body.theme-emerald .settings-tile::before {
    filter: hue-rotate(-10deg) saturate(1.1);
}

@media (max-width: 1199px) {
    .settings-tiles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .settings-tiles-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .settings-tiles-hero {
        padding: 18px 20px;
    }

    .settings-tiles-hero h2 {
        font-size: 19px;
    }

    .settings-modal-dialog .modal-header,
    .settings-modal-dialog .modal-body,
    .settings-modal-dialog .modal-footer {
        padding-left: 18px;
        padding-right: 18px;
    }
}

.section-label-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #0f172a;
    font-size: 15px;
    letter-spacing: -0.01em;
}
.section-label-with-icon i { font-size: 16px; }
body.theme-midnight .section-label-with-icon { color: #f1f5f9; }

.permissions-section { }
.permissions-section .small.text-secondary { font-size: 12px; }

.permissions-grid { }
.permissions-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.permissions-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border-color: rgba(59, 130, 246, 0.35) !important;
}
.permissions-card .card-body { padding: 18px 18px 14px; }
.permissions-card-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
    letter-spacing: -0.01em;
}
.permissions-card-title i { font-size: 14px; }
.permissions-card-sub {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin: 2px 0 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.permissions-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.permissions-check {
    padding: 7px 10px;
    border-radius: 10px;
    transition: background-color .12s ease;
}
.permissions-check:hover {
    background: rgba(59, 130, 246, 0.06);
}
.permissions-check .form-check-input {
    width: 15px;
    height: 15px;
    border-radius: 4px;
    border: 1.5px solid #cbd5e1;
    cursor: pointer;
}
.permissions-check .form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}
.permissions-check .form-check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    color: #0f172a;
    cursor: pointer;
    padding-left: 2px;
    width: calc(100% - 20px);
}
.permissions-check .form-check-label i {
    color: #64748b;
    font-size: 13px;
    flex: 0 0 auto;
}

body.theme-midnight .permissions-card {
    background: #111827;
    border-color: rgba(55, 65, 81, 0.6) !important;
}
body.theme-midnight .permissions-card-title { color: #f1f5f9; }
body.theme-midnight .permissions-card-sub { color: #9ca3af; }
body.theme-midnight .permissions-check:hover { background: rgba(59, 130, 246, 0.10); }
body.theme-midnight .permissions-check .form-check-input {
    background: #0b1220;
    border-color: #374151;
}
body.theme-midnight .permissions-check .form-check-label { color: #e5e7eb; }
body.theme-midnight .permissions-check .form-check-label i { color: #6b7280; }

body.theme-emerald .permissions-card:hover { border-color: rgba(16, 185, 129, 0.4) !important; }
body.theme-emerald .permissions-check .form-check-input:checked { background-color: #10b981; border-color: #10b981; }
body.theme-emerald .permissions-check:hover { background: rgba(16, 185, 129, 0.06); }


/* Biometrics-sync style additions (mirror biometrics/app.css patterns) */
.pill-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(100,116,139,.28); background: rgba(15,23,42,.04); font-size: 12px; color: #64748b; }
.pill-tag strong { color: #0f172a; font-weight: 700; }
body.theme-midnight .pill-tag, body.theme-dark .pill-tag { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.04); color: #9ca3af; }
body.theme-midnight .pill-tag strong, body.theme-dark .pill-tag strong { color: #e5e7eb; }

.note-line { color: #64748b; font-size: 12px; margin-top: 8px; }
.note-line code { padding: 1px 6px; border-radius: 6px; background: rgba(15,23,42,.06); border: 1px solid rgba(100,116,139,.2); }
body.theme-midnight .note-line, body.theme-dark .note-line { color: #9ca3af; }
body.theme-midnight .note-line code, body.theme-dark .note-line code { background: rgba(15,23,42,.4); border-color: rgba(255,255,255,.08); }

.sync-status-line { font-weight: 600; }

.spinning { animation: spin 0.9s linear infinite; display: inline-block; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

div.biometrics-dark-card {
    background-color: #0E1728 !important;
    background-image: none !important;
    color: #E5EDFF;
    border-radius: 16px !important;
    border: 1px solid rgba(30, 41, 59, 0.75) !important;
    box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    --bs-table-bg: transparent;
    --bs-table-color: #E2E8F0;
    --bs-table-striped-bg: transparent;
    --bs-table-hover-bg: transparent;
    --bs-table-border-color: rgba(30, 41, 59, 0.6);
}
div.biometrics-dark-card,
div.biometrics-dark-card * {
    --bs-body-bg: transparent;
}
div.biometrics-dark-card .panel-title.dark {
    padding: 18px 22px 10px 22px;
    color: #F8FAFC;
}
div.biometrics-dark-card .panel-title.dark h3 {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.12rem;
    letter-spacing: 0.02em;
    margin: 0;
}
div.biometrics-dark-card .panel-title.dark p {
    color: rgba(226, 232, 240, 0.65);
    margin: 4px 0 0 0;
    font-size: 0.8rem;
}
div.biometrics-dark-card .panel-body { padding: 0 14px 16px 14px; background-color: transparent !important; }

div.biometrics-dark-card .bio-pager-toolbar {
    padding: 6px 4px 14px 4px;
}
div.biometrics-dark-card .bio-pager-toolbar .input-group-text {
    background-color: #121D35 !important;
    border: 1px solid rgba(51, 65, 85, 0.65) !important;
    border-right: none !important;
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
    color: #94A3B8 !important;
    padding: 0.55rem 0.8rem;
}
div.biometrics-dark-card .bio-pager-toolbar input.form-control {
    background-color: #121D35 !important;
    border: 1px solid rgba(51, 65, 85, 0.65) !important;
    border-left: none !important;
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
    color: #E2E8F0 !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    font-size: 0.92rem;
}
div.biometrics-dark-card .bio-pager-toolbar input.form-control::placeholder {
    color: rgba(148, 163, 184, 0.82) !important;
}
div.biometrics-dark-card .bio-pager-toolbar label {
    color: rgba(203, 213, 225, 0.88) !important;
}
div.biometrics-dark-card .bio-pager-toolbar select.form-select {
    background-color: #121D35 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    border: 1px solid rgba(51, 65, 85, 0.65) !important;
    border-radius: 12px !important;
    color: #FFFFFF !important;
    padding: 0.55rem 2.4rem 0.55rem 0.95rem;
    font-weight: 500;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}
div.biometrics-dark-card .bio-pager-toolbar input.form-control:focus,
div.biometrics-dark-card .bio-pager-toolbar select.form-select:focus {
    border-color: #3B82F6 !important;
}
div.biometrics-dark-card .bio-showing-label {
    color: rgba(203, 213, 225, 0.92) !important;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-weight: 500;
    font-size: 0.92rem;
    letter-spacing: 0.2px;
}
div.biometrics-dark-card div.bio-dark-table-wrap {
    border: 1px solid rgba(30, 41, 59, 0.85);
    border-radius: 16px !important;
    overflow: hidden !important;
    background-color: #0B1324 !important;
    background-image: none !important;
    margin: 0;
}
div.biometrics-dark-card table.bio-dark-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    color: #E2E8F0;
    font-size: 0.9rem;
    background-color: transparent !important;
    --bs-table-bg: transparent;
}
div.biometrics-dark-card table.bio-dark-table,
div.biometrics-dark-card table.bio-dark-table thead,
div.biometrics-dark-card table.bio-dark-table tbody,
div.biometrics-dark-card table.bio-dark-table tfoot {
    background-color: transparent !important;
}
div.biometrics-dark-card table.bio-dark-table thead tr {
    background-color: #0A1226 !important;
}
div.biometrics-dark-card table.bio-dark-table thead th {
    color: #E2E8F0;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    font-weight: 600;
    font-size: 0.83rem;
    padding: 1rem 1.05rem;
    text-align: left;
    border: none !important;
    border-bottom: 1px solid rgba(30, 41, 59, 0.95) !important;
    background-color: #0A1226 !important;
}
div.biometrics-dark-card table.bio-dark-table thead th:first-child {
    border-top-left-radius: 16px;
}
div.biometrics-dark-card table.bio-dark-table thead th:last-child {
    border-top-right-radius: 16px;
}
div.biometrics-dark-card table.bio-dark-table tbody tr {
    transition: background-color 0.18s ease;
}
div.biometrics-dark-card table.bio-dark-table tbody tr:nth-child(odd) {
    background-color: #121D35 !important;
}
div.biometrics-dark-card table.bio-dark-table tbody tr:nth-child(even) {
    background-color: #0F1830 !important;
}
div.biometrics-dark-card table.bio-dark-table tbody tr:hover {
    background-color: #1A2849 !important;
}
div.biometrics-dark-card table.bio-dark-table tbody td {
    padding: 0.95rem 1.05rem;
    border: none !important;
    border-bottom: 1px solid rgba(30, 41, 59, 0.85) !important;
    vertical-align: middle;
    background-color: transparent !important;
    color: inherit;
    font-size: 0.94rem;
    line-height: 1.35;
}
div.biometrics-dark-card table.bio-dark-table tbody tr:last-child td { border-bottom: none; }
div.biometrics-dark-card table.bio-dark-table td.bio-name {
    color: #FFFFFF !important;
    font-weight: 500;
    letter-spacing: 0.1px;
    background-color: transparent !important;
}
div.biometrics-dark-card table.bio-dark-table td.bio-no {
    color: #CBD5E1 !important;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    background-color: transparent !important;
}
div.biometrics-dark-card table.bio-dark-table td.bio-date {
    color: rgba(226, 232, 240, 0.92) !important;
    font-variant-numeric: tabular-nums;
    background-color: transparent !important;
    text-align: center;
}
div.biometrics-dark-card table.bio-dark-table td.bio-login,
div.biometrics-dark-card table.bio-dark-table td.bio-logout {
    color: #FFFFFF !important;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    background-color: transparent !important;
    text-align: right;
}
div.biometrics-dark-card table.bio-dark-table td.bio-hours {
    color: #E2E8F0 !important;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    background-color: transparent !important;
    text-align: right;
}
div.biometrics-dark-card .bio-pager-nav {
    padding-top: 0.85rem;
}
div.biometrics-dark-card .bio-pager-nav .page-link {
    background-color: #121D35 !important;
    border: 1px solid rgba(51, 65, 85, 0.75) !important;
    color: #CBD5E1 !important;
    min-width: 2.1rem;
    text-align: center;
    padding: 0.4rem 0.7rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
div.biometrics-dark-card .bio-pager-nav li:first-child .page-link {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
div.biometrics-dark-card .bio-pager-nav li:last-child .page-link {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}
div.biometrics-dark-card .bio-pager-nav .page-item.disabled .page-link {
    background-color: rgba(15, 27, 51, 0.55) !important;
    color: rgba(100, 116, 139, 0.75) !important;
}
div.biometrics-dark-card .bio-pager-nav .page-item.active .page-link {
    background-color: #2563EB !important;
    border-color: #2563EB !important;
    color: #FFFFFF !important;
    font-weight: 600;
    -webkit-box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}
div.biometrics-dark-card .bio-pager-nav .page-link:hover:not(.disabled):not(.active) {
    background-color: #1A2849 !important;
    color: #FFFFFF !important;
}

