:root {
    --primary: #1f4fd8;
    --primary-dark: #163ca8;
    --sidebar: #111827;
    --sidebar-light: #1f2937;
    --bg: #f4f7fb;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.login-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #102a63, #1f4fd8, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.login-card {
    background: #fff;
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.brand-box {
    text-align: center;
    margin-bottom: 28px;
}

.brand-icon,
.brand-logo {
    background: linear-gradient(135deg, #1f4fd8, #0f172a);
    color: #fff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-icon {
    width: 78px;
    height: 78px;
    border-radius: 22px;
    margin-bottom: 14px;
}

.brand-box h2 {
    margin: 0;
    font-weight: 800;
}

.brand-box p {
    margin: 6px 0;
    color: var(--muted);
}

.brand-box span {
    font-size: 13px;
    color: var(--primary);
    font-weight: 700;
}

.login-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 13px;
    color: var(--muted);
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 285px;
    background: var(--sidebar);
    color: #fff;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 22px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 14px;
}

.sidebar-brand h4 {
    margin: 0;
    font-weight: 800;
}

.sidebar-brand small {
    color: #cbd5e1;
}

.sidebar-user {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 18px;
    padding: 14px;
    background: var(--sidebar-light);
    border-radius: 16px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.sidebar-user strong,
.sidebar-user small {
    display: block;
}

.sidebar-user small {
    color: #cbd5e1;
    font-size: 12px;
}

.sidebar-menu {
    padding: 0 14px 20px;
}

.menu-link,
.menu-title,
.submenu a {
    color: #e5e7eb;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 11px;
    border-radius: 12px;
    transition: .2s;
}

.menu-link,
.menu-title {
    padding: 12px 14px;
    margin-bottom: 6px;
    cursor: pointer;
}

.menu-title {
    justify-content: space-between;
}

.menu-title span {
    display: flex;
    align-items: center;
    gap: 11px;
}

.menu-link:hover,
.menu-title:hover,
.submenu a:hover {
    background: rgba(255,255,255,.09);
    color: #fff;
}

.submenu {
    display: none;
    margin: 0 0 8px 18px;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,.12);
}

.menu-group.open .submenu {
    display: block;
}

.submenu a {
    padding: 9px 12px;
    font-size: 14px;
}

.logout-link {
    margin-top: 18px;
    background: rgba(239, 68, 68, .18);
}

.main-content {
    margin-left: 285px;
    width: calc(100% - 285px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 76px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 500;
}

.topbar h5 {
    margin: 0;
    font-weight: 800;
}

.topbar span {
    color: var(--muted);
    font-size: 13px;
}

.mobile-menu-btn {
    display: none;
    border: none;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    padding: 8px 12px;
}

.dashboard-page {
    padding: 28px;
    flex: 1;
}

.page-header {
    background: linear-gradient(135deg, #fff, #eef4ff);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h2 {
    margin: 0;
    font-weight: 800;
}

.page-header p {
    margin: 6px 0 0;
    color: var(--muted);
}

.page-badge {
    background: #e0edff;
    color: var(--primary-dark);
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.stat-card {
    background: #fff;
    border-radius: 20px;
    padding: 22px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.stat-card span {
    color: var(--muted);
    font-size: 14px;
}

.stat-card h3 {
    margin: 8px 0 0;
    font-weight: 800;
}

.stat-card i {
    font-size: 34px;
    opacity: .9;
}

.stat-card.blue i { color: #2563eb; }
.stat-card.green i { color: #16a34a; }
.stat-card.orange i { color: #f97316; }
.stat-card.purple i { color: #7c3aed; }

.content-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 18px;
}

.panel-card {
    background: #fff;
    border-radius: 20px;
    padding: 22px;
    border: 1px solid var(--border);
}

.panel-card h5 {
    font-weight: 800;
    margin-bottom: 18px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.quick-btn {
    text-decoration: none;
    color: var(--text);
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    font-weight: 700;
}

.quick-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.overview-list div {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.overview-list span {
    color: var(--muted);
}

.app-footer {
    padding: 16px 28px;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        transition: .25s;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .mobile-menu-btn {
        display: inline-block;
    }

    .stats-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

.permissions-layout {
    grid-template-columns: 360px 1fr;
    align-items: start;
}

.role-form .btn {
    width: 100%;
    border-radius: 12px;
}

.role-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.role-item {
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    transition: .2s;
}

.role-item:hover,
.role-item.active {
    border-color: var(--primary);
    background: #eef4ff;
}

.role-item strong,
.role-item small {
    display: block;
}

.role-item small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.role-item span {
    font-size: 12px;
    font-weight: 700;
    color: #16a34a;
}

.permissions-card {
    overflow: hidden;
}

.permission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.permission-header h5 {
    margin-bottom: 4px;
}

.permission-header p {
    margin: 0;
    color: var(--muted);
}

.permission-table-wrap {
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: auto;
}

.permission-table {
    margin-bottom: 0;
}

.permission-table thead th {
    background: #f8fafc;
    font-size: 13px;
    color: #475569;
    white-space: nowrap;
    padding: 14px;
}

.permission-table tbody td {
    padding: 13px 14px;
    border-color: #edf0f5;
}

.parent-menu-row {
    background: #f9fbff;
}

.parent-menu-row td:first-child strong {
    color: var(--primary-dark);
}

.child-menu-row td:first-child {
    background: #fff;
}

.menu-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-name-cell i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #eef4ff;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-name-cell strong,
.menu-name-cell small {
    display: block;
}

.menu-name-cell small {
    color: var(--muted);
    font-size: 11px;
    margin-top: 2px;
}

.child-indent {
    width: 22px;
    height: 1px;
    background: #cbd5e1;
    display: inline-block;
}

.permission-check {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.permission-actions {
    margin-top: 18px;
    text-align: right;
}

.permission-actions .btn {
    border-radius: 14px;
    padding-left: 28px;
    padding-right: 28px;
}

@media (max-width: 991px) {
    .permissions-layout {
        grid-template-columns: 1fr;
    }

    .permission-actions {
        text-align: left;
    }
}

.users-layout {
    grid-template-columns: 360px 1fr;
    align-items: start;
}

.custom-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
    border-bottom: 1px solid var(--border);
    padding: 14px;
    white-space: nowrap;
}

.custom-table tbody td {
    padding: 14px;
    border-color: #edf0f5;
    vertical-align: middle;
}

.custom-table small {
    color: var(--muted);
}

.status-badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.status-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.modal-content {
    border-radius: 20px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid var(--border);
}

.modal-footer {
    border-top: 1px solid var(--border);
}

@media (max-width: 991px) {
    .users-layout {
        grid-template-columns: 1fr;
    }
}
.form-section-title {
    margin: 24px 0 14px;
    font-weight: 800;
    color: var(--primary-dark);
    border-left: 4px solid var(--primary);
    padding-left: 10px;
}

.permission-switch {
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 12px 14px 12px 40px;
    border-radius: 14px;
    width: 100%;
}

.modal-xl {
    max-width: 1180px;
}

.general-master-layout {
    grid-template-columns: 360px 1fr;
    align-items: start;
}

.master-type-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 620px;
    overflow-y: auto;
    padding-right: 4px;
}

.master-type-item {
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    transition: .2s;
}

.master-type-item:hover,
.master-type-item.active {
    border-color: var(--primary);
    background: #eef4ff;
}

.master-type-item strong,
.master-type-item small {
    display: block;
}

.master-type-item small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.master-type-item span {
    background: #e0edff;
    color: var(--primary-dark);
    border-radius: 999px;
    min-width: 34px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
}

@media (max-width: 991px) {
    .general-master-layout {
        grid-template-columns: 1fr;
    }
}

.employee-top-card {
    background: linear-gradient(135deg, #ffffff, #eef4ff);
}

.employee-tabs {
    gap: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

.employee-tabs .nav-link {
    border-radius: 14px;
    font-weight: 800;
    color: #334155;
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 12px 18px;
}

.employee-tabs .nav-link.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.employee-tab-content {
    padding-top: 6px;
}

.employee-save-bar {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: right;
}

.gross-field {
    background: #eef4ff;
    font-weight: 900;
    color: var(--primary-dark);
}

.employee-form .form-label {
    font-weight: 700;
    color: #334155;
}

@media (max-width: 768px) {
    .employee-tabs {
        flex-direction: column;
    }

    .employee-tabs .nav-link {
        width: 100%;
        text-align: left;
    }

    .employee-save-bar {
        text-align: left;
    }

    .employee-save-bar .btn {
        width: 100%;
    }
}
.employee-summary-grid {
    grid-template-columns: repeat(4, 1fr);
}

.employee-list-table td {
    font-size: 14px;
}

.employee-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
}

.employee-photo-sm {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #e0edff;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    overflow: hidden;
    flex-shrink: 0;
}

.employee-photo-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee-status {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.employee-status.active {
    background: #dcfce7;
    color: #166534;
}

.employee-status.inactive,
.employee-status.resigned,
.employee-status.terminated,
.employee-status.absconded {
    background: #fee2e2;
    color: #991b1b;
}

.employee-status.vacation {
    background: #ffedd5;
    color: #9a3412;
}

.employee-status.on-hold {
    background: #e0e7ff;
    color: #3730a3;
}

.expiry-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.expiry-badge.valid {
    background: #dcfce7;
    color: #166534;
}

.expiry-badge.soon {
    background: #ffedd5;
    color: #9a3412;
}

.expiry-badge.expired {
    background: #fee2e2;
    color: #991b1b;
}

.employee-profile-modal .modal-body {
    background: #f8fafc;
}

.employee-profile-header {
    background: linear-gradient(135deg, #ffffff, #eef4ff);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
    display: flex;
    gap: 18px;
    align-items: center;
}

.employee-photo-lg {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: #dbeafe;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 900;
    overflow: hidden;
    flex-shrink: 0;
}

.employee-photo-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee-profile-header h3 {
    margin: 0;
    font-weight: 900;
}

.employee-profile-header p {
    margin: 6px 0 12px;
    color: var(--muted);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.profile-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
}

.profile-box h6 {
    font-weight: 900;
    margin-bottom: 14px;
    color: var(--primary-dark);
}

.profile-box div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid #edf0f5;
}

.profile-box div:last-child {
    border-bottom: none;
}

.profile-box span {
    color: var(--muted);
    font-size: 13px;
}

.profile-box strong {
    text-align: right;
    font-size: 13px;
}

@media (max-width: 991px) {
    .employee-summary-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .employee-profile-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-box div {
        flex-direction: column;
        gap: 4px;
    }

    .profile-box strong {
        text-align: left;
    }
}
.asset-status {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.asset-status.issued {
    background: #ffedd5;
    color: #9a3412;
}

.asset-status.returned {
    background: #dcfce7;
    color: #166534;
}

.asset-status.lost,
.asset-status.damaged,
.asset-status.deducted {
    background: #fee2e2;
    color: #991b1b;
}

.topbar-user-box {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-date {
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 9px 14px;
    border-radius: 999px;
}

.topbar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.topbar-user strong,
.topbar-user small {
    display: block;
    line-height: 1.1;
}

.topbar-user small {
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
}

.corporate-hero {
    background: linear-gradient(135deg, #ffffff, #eef4ff, #f8fafc);
}

.dashboard-card-grid {
    grid-template-columns: repeat(4, 1fr);
}

.warning-card {
    text-decoration: none;
    color: var(--text);
}

.warning-card small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.warning-card i {
    color: #f97316;
}

.warning-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    transition: .2s;
}

.dashboard-analytics-grid {
    display: grid;
    grid-template-columns: 1.3fr .9fr;
    gap: 18px;
}

.dashboard-lower-grid {
    display: grid;
    grid-template-columns: .9fr 1.3fr;
    gap: 18px;
}

.panel-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.panel-title-row h5 {
    margin: 0;
}

.panel-title-row span,
.panel-title-row a {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-list-item {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    background: #fff;
}

.dashboard-list-item strong,
.dashboard-list-item small {
    display: block;
}

.dashboard-list-item small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.dashboard-expiry-table td,
.dashboard-expiry-table th {
    font-size: 13px;
}

@media (max-width: 991px) {
    .topbar {
        height: auto;
        min-height: 76px;
        gap: 12px;
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .topbar-user-box {
        width: 100%;
        justify-content: space-between;
    }

    .dashboard-card-grid,
    .dashboard-analytics-grid,
    .dashboard-lower-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-list-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

.bulk-rules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.bulk-rule-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    background: #f8fafc;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.bulk-rule-card i {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #e0edff;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.bulk-rule-card strong,
.bulk-rule-card span {
    display: block;
}

.bulk-rule-card span {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.status-badge.soon {
    background: #ffedd5;
    color: #9a3412;
}

@media (max-width: 991px) {
    .bulk-rules-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-analytics-grid .panel-card {
    min-height: 360px;
}

.dashboard-analytics-grid canvas {
    max-height: 260px !important;
}

#companyChart {
    height: 250px !important;
}

#statusChart {
    height: 250px !important;
}

@media (max-width: 991px) {
    .dashboard-analytics-grid .panel-card {
        min-height: auto;
    }

    .dashboard-analytics-grid canvas {
        max-height: 230px !important;
    }
}

.report-print-header {
    display: none;
    text-align: center;
    margin-bottom: 18px;
}

.report-print-header h3 {
    margin: 0;
    font-weight: 900;
}

.report-print-header p {
    margin: 6px 0 0;
    color: var(--muted);
}

.report-table th,
.report-table td {
    font-size: 13px;
}

@media print {
    body {
        background: #fff !important;
    }

    .sidebar,
    .topbar,
    .no-print,
    .app-footer,
    .page-header,
    .stats-grid {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .dashboard-page {
        padding: 0 !important;
    }

    .panel-card {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .report-print-header {
        display: block;
    }

    .report-table {
        width: 100% !important;
        border-collapse: collapse !important;
    }

    .report-table th,
    .report-table td {
        border: 1px solid #000 !important;
        padding: 6px !important;
        font-size: 11px !important;
    }

    .employee-status,
    .expiry-badge {
        border: 1px solid #000 !important;
        background: transparent !important;
        color: #000 !important;
        padding: 2px 5px !important;
    }
}

.passport-status {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.passport-status.draft {
    background: #e5e7eb;
    color: #374151;
}

.passport-status.submitted {
    background: #dbeafe;
    color: #1d4ed8;
}

.passport-status.approved,
.passport-status.released {
    background: #ffedd5;
    color: #9a3412;
}

.passport-status.returned {
    background: #dcfce7;
    color: #166534;
}

.passport-status.rejected,
.passport-status.cancelled {
    background: #fee2e2;
    color: #991b1b;
}
.job-offer-status {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.job-offer-status.draft {
    background: #e5e7eb;
    color: #374151;
}

.job-offer-status.issued {
    background: #dbeafe;
    color: #1d4ed8;
}

.job-offer-status.accepted,
.job-offer-status.joined {
    background: #dcfce7;
    color: #166534;
}

.job-offer-status.rejected,
.job-offer-status.cancelled {
    background: #fee2e2;
    color: #991b1b;
}
.loan-employee-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.loan-employee-grid div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
}

.loan-employee-grid span {
    display: block;
    font-size: 11px;
    color: #64748b;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.loan-employee-grid strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
}

.loan-status {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.loan-status.draft {
    background: #e5e7eb;
    color: #374151;
}

.loan-status.submitted {
    background: #dbeafe;
    color: #1d4ed8;
}

.loan-status.approved {
    background: #ffedd5;
    color: #9a3412;
}

.loan-status.released,
.loan-status.active {
    background: #dcfce7;
    color: #166534;
}

.loan-status.completed {
    background: #d1fae5;
    color: #065f46;
}

.loan-status.rejected,
.loan-status.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 991px) {
    .loan-employee-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.deduction-employee-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.deduction-employee-grid div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
}

.deduction-employee-grid span {
    display: block;
    font-size: 11px;
    color: #64748b;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.deduction-employee-grid strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
}

.deduction-status {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.deduction-status.draft {
    background: #e5e7eb;
    color: #374151;
}

.deduction-status.submitted {
    background: #dbeafe;
    color: #1d4ed8;
}

.deduction-status.approved {
    background: #ffedd5;
    color: #9a3412;
}

.deduction-status.posted,
.deduction-status.completed {
    background: #dcfce7;
    color: #166534;
}

.deduction-status.rejected,
.deduction-status.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 991px) {
    .deduction-employee-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.salary-employee-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.salary-employee-grid div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
}

.salary-employee-grid span {
    display: block;
    font-size: 11px;
    color: #64748b;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.salary-employee-grid strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
}

.salary-adjustment-table input[readonly] {
    background: #f8fafc;
    font-weight: 800;
}

.salary-total-row td {
    background: #f1f5f9;
    font-weight: 900;
}

.salary-type,
.salary-status {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.salary-type.increment {
    background: #dcfce7;
    color: #166534;
}

.salary-type.decrement {
    background: #fee2e2;
    color: #991b1b;
}

.salary-status.draft {
    background: #e5e7eb;
    color: #374151;
}

.salary-status.submitted {
    background: #dbeafe;
    color: #1d4ed8;
}

.salary-status.approved {
    background: #ffedd5;
    color: #9a3412;
}

.salary-status.applied {
    background: #dcfce7;
    color: #166534;
}

.salary-status.rejected,
.salary-status.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 991px) {
    .salary-employee-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.salary-edit-dialog {
    max-width: 1200px;
}

.salary-edit-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.salary-edit-content .modal-header {
    flex-shrink: 0;
}

.salary-edit-content .modal-body {
    overflow-y: auto;
    max-height: calc(90vh - 135px);
    padding-bottom: 20px;
}

.salary-edit-content .modal-footer {
    flex-shrink: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    position: sticky;
    bottom: 0;
    z-index: 5;
}

@media (max-width: 768px) {
    .salary-edit-dialog {
        margin: 10px;
    }

    .salary-edit-content {
        max-height: 94vh;
    }

    .salary-edit-content .modal-body {
        max-height: calc(94vh - 135px);
    }
}
.endorsement-employee-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.endorsement-employee-grid div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
}

.endorsement-employee-grid span {
    display: block;
    font-size: 11px;
    color: #64748b;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.endorsement-employee-grid strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
}

.endorsement-status {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.endorsement-status.draft {
    background: #e5e7eb;
    color: #374151;
}

.endorsement-status.submitted {
    background: #dbeafe;
    color: #1d4ed8;
}

.endorsement-status.approved {
    background: #dcfce7;
    color: #166534;
}

.endorsement-status.rejected,
.endorsement-status.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.endorsement-edit-dialog {
    max-width: 1200px;
}

.endorsement-edit-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.endorsement-edit-content .modal-header {
    flex-shrink: 0;
}

.endorsement-edit-content .modal-body {
    overflow-y: auto;
    max-height: calc(90vh - 135px);
    padding-bottom: 20px;
}

.endorsement-edit-content .modal-footer {
    flex-shrink: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    position: sticky;
    bottom: 0;
    z-index: 5;
}

@media (max-width: 991px) {
    .endorsement-employee-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.leave-employee-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.leave-employee-grid div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
}

.leave-employee-grid span {
    display: block;
    font-size: 11px;
    color: #64748b;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.leave-employee-grid strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
}

.leave-status,
.leave-settlement {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.leave-status.draft {
    background: #e5e7eb;
    color: #374151;
}

.leave-status.submitted {
    background: #dbeafe;
    color: #1d4ed8;
}

.leave-status.approved {
    background: #dcfce7;
    color: #166534;
}

.leave-status.rejected,
.leave-status.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.leave-settlement.not-settled {
    background: #ffedd5;
    color: #9a3412;
}

.leave-settlement.settled {
    background: #dcfce7;
    color: #166534;
}

.leave-edit-dialog {
    max-width: 1200px;
}

.leave-edit-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.leave-edit-content .modal-header {
    flex-shrink: 0;
}

.leave-edit-content .modal-body {
    overflow-y: auto;
    max-height: calc(90vh - 135px);
    padding-bottom: 20px;
}

.leave-edit-content .modal-footer {
    flex-shrink: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    position: sticky;
    bottom: 0;
    z-index: 5;
}

@media (max-width: 991px) {
    .leave-employee-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.leave-return-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.leave-return-grid div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
}

.leave-return-grid span {
    display: block;
    font-size: 11px;
    color: #64748b;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.leave-return-grid strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
}

.leave-return-status,
.leave-return-passport {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.leave-return-status.draft {
    background: #e5e7eb;
    color: #374151;
}

.leave-return-status.submitted {
    background: #dbeafe;
    color: #1d4ed8;
}

.leave-return-status.approved {
    background: #dcfce7;
    color: #166534;
}

.leave-return-status.rejected,
.leave-return-status.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.leave-return-passport.yes {
    background: #dcfce7;
    color: #166534;
}

.leave-return-passport.no {
    background: #fee2e2;
    color: #991b1b;
}

.leave-return-edit-dialog {
    max-width: 950px;
}

.leave-return-edit-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.leave-return-edit-content .modal-body {
    overflow-y: auto;
    max-height: calc(90vh - 135px);
}

.leave-return-edit-content .modal-footer {
    flex-shrink: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    position: sticky;
    bottom: 0;
    z-index: 5;
}

@media (max-width: 991px) {
    .leave-return-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.resignation-employee-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.resignation-employee-grid div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
}

.resignation-employee-grid span {
    display: block;
    font-size: 11px;
    color: #64748b;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.resignation-employee-grid strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
}

.resignation-status,
.resignation-passport,
.resignation-eos {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.resignation-status.draft {
    background: #e5e7eb;
    color: #374151;
}

.resignation-status.submitted {
    background: #dbeafe;
    color: #1d4ed8;
}

.resignation-status.approved {
    background: #dcfce7;
    color: #166534;
}

.resignation-status.rejected,
.resignation-status.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.resignation-passport.yes,
.resignation-eos.settled {
    background: #dcfce7;
    color: #166534;
}

.resignation-passport.no,
.resignation-eos.not-settled {
    background: #ffedd5;
    color: #9a3412;
}

.resignation-passport.not-applicable {
    background: #e5e7eb;
    color: #374151;
}

.resignation-edit-dialog {
    max-width: 1200px;
}

.resignation-edit-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.resignation-edit-content .modal-body {
    overflow-y: auto;
    max-height: calc(90vh - 135px);
    padding-bottom: 20px;
}

.resignation-edit-content .modal-footer {
    flex-shrink: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    position: sticky;
    bottom: 0;
    z-index: 5;
}

@media (max-width: 1200px) {
    .resignation-employee-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .resignation-employee-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.clearance-employee-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.clearance-employee-grid div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
}

.clearance-employee-grid span {
    display: block;
    font-size: 11px;
    color: #64748b;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.clearance-employee-grid strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
}

.clearance-status {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.clearance-status.draft {
    background: #e5e7eb;
    color: #374151;
}

.clearance-status.submitted {
    background: #dbeafe;
    color: #1d4ed8;
}

.clearance-status.under-clearance {
    background: #ffedd5;
    color: #9a3412;
}

.clearance-status.cleared {
    background: #dcfce7;
    color: #166534;
}

.clearance-status.rejected,
.clearance-status.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.clearance-edit-dialog {
    max-width: 1200px;
}

.clearance-edit-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.clearance-edit-content .modal-body {
    overflow-y: auto;
    max-height: calc(90vh - 135px);
    padding-bottom: 20px;
}

.clearance-edit-content .modal-footer {
    flex-shrink: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    position: sticky;
    bottom: 0;
    z-index: 5;
}

@media (max-width: 991px) {
    .clearance-employee-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.wf-search-select-wrapper {
    position: relative;
    width: 100%;
}

.wf-search-select-input {
    background: #ffffff;
}

.wf-search-select-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.16);
    max-height: 260px;
    overflow-y: auto;
    z-index: 99999;
    display: none;
    padding: 6px;
}

.wf-search-select-item {
    padding: 10px 12px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 14px;
    color: #0f172a;
    font-weight: 600;
}

.wf-search-select-item:hover {
    background: #eef4ff;
    color: #0b5ed7;
}

.wf-search-select-empty {
    padding: 12px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}
.leave-settlement-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.leave-settlement-info-grid div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
}

.leave-settlement-info-grid span {
    display: block;
    font-size: 11px;
    color: #64748b;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.leave-settlement-info-grid strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
}

.leave-settlement-total-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.leave-settlement-total-box div {
    background: #0f172a;
    color: #ffffff;
    border-radius: 18px;
    padding: 18px;
}

.leave-settlement-total-box span {
    display: block;
    font-size: 12px;
    opacity: .8;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.leave-settlement-total-box strong {
    display: block;
    font-size: 22px;
    font-weight: 900;
}

.leave-settlement-status {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.leave-settlement-status.draft {
    background: #e5e7eb;
    color: #374151;
}

.leave-settlement-status.submitted {
    background: #dbeafe;
    color: #1d4ed8;
}

.leave-settlement-status.approved {
    background: #dcfce7;
    color: #166534;
}

.leave-settlement-status.paid {
    background: #ede9fe;
    color: #5b21b6;
}

.leave-settlement-status.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 991px) {
    .leave-settlement-info-grid,
    .leave-settlement-total-box {
        grid-template-columns: repeat(2, 1fr);
    }
}
.leave-settlement-edit-dialog {
    max-width: 1250px;
}

.leave-settlement-edit-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.leave-settlement-edit-content .modal-body {
    overflow-y: auto;
    max-height: calc(90vh - 135px);
    padding-bottom: 20px;
}

.leave-settlement-edit-content .modal-footer {
    flex-shrink: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    position: sticky;
    bottom: 0;
    z-index: 5;
}