:root {
    --cui-primary: #1fb8ad;
    --cui-info: #38cfd0;
    --brand-gradient-start: #173248;
    --brand-gradient-end: #0d2230;
    --prisma-navy: #0d2230;
    --prisma-teal: #1fb8ad;
    --prisma-blue: #2c5f86;
    --cui-body-font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

body {
    font-family: var(--cui-body-font-family);
}

a {
    text-decoration: none;
}

.sidebar {
    background: var(--prisma-navy);
}

.brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-gradient-start), var(--brand-gradient-end));
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand-title {
    font-weight: 600;
    color: #fff;
}

.user-meta {
    padding: 1rem 1.25rem;
}

.user-name {
    font-weight: 600;
    color: #fff;
}

.user-role {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.nav-title {
    letter-spacing: 0.12em;
    font-size: 0.7rem;
}

.sidebar-nav .nav-link.active {
    color: #fff;
    background: rgba(31, 184, 173, 0.25);
}

.nav-group-items .nav-link {
    font-size: 0.92rem;
}

.shadow-soft {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.card-highlight {
    background: linear-gradient(135deg, var(--cui-primary), var(--prisma-blue));
    color: #fff;
}

.stat-card {
    border-radius: 12px;
    padding: 1rem 1.2rem;
    background: #f2f8f9;
    border: 1px solid rgba(31, 184, 173, 0.2);
}

.stat-card strong {
    font-size: 1.4rem;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.82rem;
}

.action-list {
    padding-left: 1.1rem;
    margin: 0;
}

.action-list a {
    color: var(--cui-primary);
    font-weight: 600;
}

.profile-list {
    display: grid;
    gap: 0.75rem;
}

.profile-list span {
    color: var(--cui-text-muted, #6b7280);
    margin-right: 0.4rem;
}

.form-grid {
    display: grid;
    gap: 2rem;
}

.field {
    display: grid;
    gap: 0.8rem;
    font-weight: 600;
}

  .field.is-required > span::after {
      content: ' *';
      color: #ef4444;
      font-weight: 700;
  }

.field input,
.field select,
.field textarea {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    background: #fff;
}

.field small {
    color: #c24136;
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    row-gap: 1.75rem;
    column-gap: 2.5rem;
}

.table-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.btn-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--cui-primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.btn-link.danger {
    color: #b3362a;
}

.badge-success {
    background: rgba(72, 170, 107, 0.18);
    color: #2f7a4a;
}

.badge-muted {
    background: rgba(15, 23, 42, 0.08);
    color: #6b7280;
}

.employee-row-inactive {
    background: #f8fafc;
}

.employee-row-inactive .employee-name a {
    color: #64748b;
}

.employee-status-nonactive {
    border: 1px solid rgba(100, 116, 139, 0.18);
}





.sidebar ~ .wrapper {
    margin-left: var(--cui-sidebar-width, 256px);
    transition: margin-left 0.2s ease;
}

.sidebar.hide ~ .wrapper {
    margin-left: 0;
}

.sidebar.sidebar-narrow ~ .wrapper,
.sidebar.sidebar-narrow-unfoldable ~ .wrapper {
    margin-left: var(--cui-sidebar-narrow-width, 4rem);
}

.sidebar.sidebar-unfoldable ~ .wrapper {
    margin-left: var(--cui-sidebar-narrow-width, 4rem);
}

.sidebar.sidebar-unfoldable:hover ~ .wrapper {
    margin-left: var(--cui-sidebar-width, 256px);
}

.sidebar.sidebar-narrow .brand-title,
.sidebar.sidebar-narrow .nav-title,
.sidebar.sidebar-narrow .nav-label,
.sidebar.sidebar-narrow .user-meta {
    display: none;
}

.sidebar.sidebar-narrow .nav-link {
    justify-content: center;
}

.sidebar.sidebar-narrow .nav-icon {
    margin-right: 0;
}

.sidebar.sidebar-narrow .nav-group-toggle::after {
    display: none;
}

.sidebar.sidebar-narrow .nav-group-items {
    display: none;
}

.sidebar.sidebar-narrow .sidebar-toggler {
    display: none;
}

.sidebar.sidebar-narrow .sidebar-header {
    justify-content: center;
}

.sidebar.sidebar-narrow .sidebar-brand {
    justify-content: center;
}

@media (max-width: 992px) {
    .sidebar {
        width: 260px;
        --cui-is-mobile: true;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar ~ .wrapper {
        margin-left: 0;
    }
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.header-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #4a566d;
    padding: 0.35rem;
    border-radius: 0.5rem;
}

.header-toggler .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.nav-user {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.header-user-name {
    display: block;
    font-weight: 600;
    line-height: 1.1;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    background: #e5e7eb;
}

.avatar-md {
    width: 40px;
    height: 40px;
}

.avatar-xl {
    width: 96px;
    height: 96px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-dot {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #d22f27;
    color: #fff;
    font-size: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.25rem;
    border: 2px solid #fff;
}

.dropdown-menu-lg {
    min-width: 260px;
}

.sidebar-close {
    border: 0;
    background: transparent;
    color: #fff;
    padding: 0.25rem;
    margin-left: 0.5rem;
}

.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-head h2 {
    margin: 0;
}

.page-head p {
    margin: 0;
    color: var(--cui-text-muted, #6b7280);
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.division-stat {
    height: 100%;
    border-radius: 14px;
    border: 1px solid rgba(31, 184, 173, 0.18);
    background: linear-gradient(180deg, #ffffff 0%, #f5fbfb 100%);
    padding: 1rem 1.1rem;
    display: grid;
    gap: 0.25rem;
}

.division-stat span {
    font-size: 0.85rem;
    color: #64748b;
}

.division-stat strong {
    font-size: 1.35rem;
    color: #0f172a;
    line-height: 1.1;
}

.division-card .table th {
    border-top: 0;
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
    white-space: nowrap;
}

.division-card .table td {
    vertical-align: middle;
}

.division-empty {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-align: center;
    padding: 2rem 1rem;
}

.division-empty h5 {
    margin: 0;
    color: #0f172a;
}

.division-empty p {
    margin: 0 0 0.65rem;
    color: #64748b;
    max-width: 460px;
}


.employee-shell {
    width: 100%;
}

.directory-sidebar {
    background: #f3f6ff;
    border: none;
    border-radius: 16px;
    height: fit-content;
}

.directory-sidebar .card-body {
    padding: 1.5rem;
}

.directory-brand {
    display: grid;
    gap: 0.15rem;
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    font-weight: 700;
    color: #4f46e5;
    margin-bottom: 1.5rem;
}

.directory-nav {
    display: grid;
    gap: 0.35rem;
}

.directory-nav .list-group-item {
    border: 0;
    border-radius: 12px;
    font-weight: 600;
    color: #0f172a;
    background: transparent;
}

.directory-nav .list-group-item + .list-group-item {
    margin-top: 0.35rem;
}

.directory-nav .list-group-item.active {
    background: #e0e7ff;
    color: #3b4be0;
}

.directory-nav .list-group-item.disabled {
    color: #94a3b8;
    background: transparent;
    pointer-events: none;
}

.directory-main {
    display: grid;
    gap: 1.25rem;
}

.directory-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.directory-breadcrumb {
    font-size: 0.85rem;
    color: #64748b;
}

.directory-breadcrumb a {
    color: #3b4be0;
    font-weight: 600;
}

.directory-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.directory-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.directory-tabs {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.directory-tools {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.directory-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    min-width: 220px;
}

.directory-search input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
}

.directory-summary .summary-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.summary-label {
    font-size: 0.85rem;
    color: #94a3b8;
}

.summary-value {
    font-weight: 600;
    font-size: 1.05rem;
}

.directory-table .table {
    margin-bottom: 0;
}

.directory-table {
    overflow: visible;
}

.directory-table .table-responsive {
    overflow-x: auto;
    overflow-y: visible;
}

.directory-table .table {
    min-width: 720px;
}

.directory-table td:last-child {
    white-space: nowrap;
    text-align: right;
}

.directory-table .dropdown {
    position: relative;
}

.directory-table .dropdown-menu {
    z-index: 1056;
}

.directory-table .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 110px;
    gap: 0.35rem;
}

.employee-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.employee-name a {
    color: #1f2937;
}

.employee-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.employee-stepper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
    position: relative;
    text-align: center;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    background: #fff;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.step.active {
    color: #0f172a;
}

.step.active .step-circle {
    border-color: var(--cui-primary);
    color: var(--cui-primary);
    background: #eef2ff;
}

.step-index {
    font-size: 0.85rem;
}

.step-check {
    display: none;
    width: 14px;
    height: 14px;
}

.step-label {
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.step.completed {
    color: #0f172a;
}

.step.completed .step-circle {
    border-color: #22c55e;
    color: #16a34a;
    background: #ecfdf3;
}

.step.completed .step-index {
    display: none;
}

.step.completed .step-check {
    display: block;
}

.employee-stepper .step::after {
    content: "";
    position: absolute;
    top: 16px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.employee-stepper .step.completed::after {
    background: #22c55e;
}

.employee-stepper .step:last-child::after {
    display: none;
}

@media (max-width: 991.98px) {
    .employee-stepper .step::after {
        display: none;
    }
}
@media (max-width: 992px) {
    .directory-actions {
        justify-content: flex-start;
    }

    .directory-toolbar {
        justify-content: flex-start;
    }

    .directory-search {
        min-width: 100%;
    }
}




.employee-shell {
    align-items: flex-start;
}

.directory-sidebar {
    background: #fff;
    border: 1px solid #e2e8f0;
}

.directory-dropdown .btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.65rem 0.9rem;
}

.directory-dropdown .dropdown-menu {
    border-radius: 12px;
    padding: 0.35rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.directory-dropdown .dropdown-item {
    border-radius: 10px;
    font-weight: 600;
    color: #0f172a;
}

.directory-dropdown .dropdown-item.active {
    background: #e0e7ff;
    color: #3b4be0;
}

.directory-dropdown .dropdown-item.disabled {
    color: #94a3b8;
}

.directory-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.directory-header > div:first-child {
    min-width: 220px;
}

.directory-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.directory-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.directory-tools {
    margin-left: auto;
}

.directory-search .icon {
    width: 16px;
    height: 16px;
    color: #94a3b8;
}

@media (max-width: 992px) {
    .directory-actions {
        margin-left: 0;
        width: 100%;
    }

    .directory-tools {
        margin-left: 0;
        width: 100%;
    }
}


.form-section {
    display: grid;
    gap: 1.5rem;
    padding: 1.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
}

.form-section + .form-section {
    margin-top: 1.75rem;
}

.form-section h3 {
    margin: 0;
    font-size: 1.05rem;
}

.profile-upload {
    display: grid;
    gap: 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem;
    background: #fff;
}

.profile-upload-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 184, 173, 0.14);
    color: #0f766e;
}

.profile-upload-icon .icon {
    width: 18px;
    height: 18px;
}

.profile-upload input[type="file"] {
    width: 100%;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 0.55rem 0.75rem;
    background: #f8fafc;
}

.profile-avatar-picker {
    display: grid;
    gap: 0.5rem;
}

.profile-avatar-picker-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-photo-source {
    display: grid;
    gap: 0.35rem;
}

.profile-photo-source .form-control[type="file"] {
    padding: 0.5rem 0.65rem;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 12px;
}

.profile-file-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.profile-camera-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-camera-panel {
    width: min(420px, 100%);
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    overflow: hidden;
    background: #0f172a;
}

.profile-camera-video {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.profile-camera-preview {
    width: min(420px, 100%);
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    overflow: hidden;
    background: #f8fafc;
}

.profile-camera-preview img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    width: 100%;
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 10px;
    padding: 0.35rem 0.5rem;
    color: #0f172a;
    z-index: 2;
    cursor: pointer;
    pointer-events: auto;
}

.password-toggle .icon {
    width: 20px;
    height: 20px;
    display: block;
}

.password-toggle .password-icon,
.password-toggle .password-icon path,
.password-toggle .password-icon circle,
.password-toggle .password-icon line {
    stroke: currentColor !important;
    fill: none !important;
    stroke-width: 2;
}

.password-toggle .password-icon-show,
.password-toggle .password-icon-hide {
    display: block;
}


.step-section {
    display: none;
}

.step-section.is-active {
    display: block;
}

.employee-stepper .step {
    background: none;
    border: 0;
    padding: 0 0.5rem;
    cursor: pointer;
    width: auto;
    flex: 1 1 140px;
    font: inherit;
}

.employee-stepper .step:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
    border-radius: 12px;
}


.company-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.company-label {
    font-weight: 600;
}

.company-items {
    display: grid;
    gap: 0.8rem;
}

.company-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.8rem;
    align-items: center;
}

.company-item .field {
    margin: 0;
}

@media (max-width: 575.98px) {
    .company-item {
        grid-template-columns: 1fr;
    }
}



.form-note {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.form-note-required {
    color: #ef4444;
    font-weight: 700;
}





.attendance-status {
    display: grid;
    gap: 0.4rem;
}

.attendance-status span {
    color: #64748b;
    font-size: 0.85rem;
}

.attendance-status strong {
    display: block;
    font-weight: 600;
}

.attendance-form {
    display: grid;
    gap: 1rem;
}

.attendance-help {
    font-size: 0.9rem;
    color: #64748b;
}

.attendance-info {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.attendance-hint {
    background: #f1f5f9;
    border: 1px dashed #cbd5f5;
    color: #475569;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.attendance-area-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.attendance-area-section {
    display: grid;
    gap: 1rem;
}

.attendance-location-gate-status {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    font-size: 0.92rem;
}

.attendance-location-gate-status.is-error {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #b91c1c;
}

.attendance-area-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.attendance-area-group {
    display: grid;
    gap: 0.75rem;
}

.attendance-area-group-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.attendance-area-link {
    text-decoration: none;
}

.attendance-area-empty {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px dashed #cbd5f5;
    background: #f8fafc;
    color: #64748b;
}

.attendance-area-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
    text-align: left;
    width: 100%;
    appearance: none;
}

.attendance-area-card:hover {
    border-color: rgba(31, 184, 173, 0.4);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.attendance-area-card.is-active {
    border-color: rgba(31, 184, 173, 0.6);
    box-shadow: 0 18px 32px rgba(31, 184, 173, 0.2);
}

.attendance-area-card.is-selected {
    border-color: rgba(31, 184, 173, 0.9);
    box-shadow: 0 18px 32px rgba(31, 184, 173, 0.28);
}

.badge-soft {
    background: rgba(31, 184, 173, 0.15);
    color: #0f2c3f;
}

.attendance-area-card.is-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.attendance-area-section[data-location-gate] .attendance-area-card {
    display: none;
}

.attendance-area-section[data-location-gate] .attendance-area-card.is-available {
    display: flex;
}

.attendance-area-card {
    flex-direction: column;
    align-items: stretch;
}

.attendance-area-info {
    display: grid;
    gap: 0.15rem;
    margin-bottom: 0.5rem;
}

.attendance-area-map.is-full {
    width: 100%;
    height: 160px;
    border-radius: 16px;
    margin: 0.35rem 0 0.6rem;
    background: #ffffff;
}

.attendance-area-map .leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.75);
    font-size: 9px;
    color: #94a3b8;
    padding: 0 4px;
}

.attendance-area-map .leaflet-control-attribution a {
    color: #94a3b8;
}

.leaflet-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffffff;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.25);
}

.leaflet-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.location-preview {
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
}

.location-preview-header {
    font-weight: 600;
    color: #0f172a;
}

.location-preview-map {
    width: 100%;
    height: 260px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.location-preview-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #475569;
}

.attendance-area-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.attendance-area-meta {
    color: #64748b;
    font-size: 0.9rem;
}

.attendance-selfie {
    display: grid;
    gap: 1rem;
    align-items: center;
    grid-template-columns: minmax(120px, 160px) 1fr;
}

.attendance-camera {
    display: grid;
    gap: 0.65rem;
}

.attendance-camera-preview {
    position: relative;
    width: 100%;
    min-height: 180px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #0f172a;
    overflow: hidden;
}

.attendance-camera.is-live .attendance-camera-preview {
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25), 0 12px 24px rgba(15, 23, 42, 0.18);
}

.attendance-camera.face-detected .attendance-camera-preview {
    border-color: #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25), 0 14px 26px rgba(34, 197, 94, 0.18);
}

.attendance-camera.face-detected .attendance-face-guide {
    border-color: rgba(34, 197, 94, 0.9);
}

.attendance-camera.face-detected .attendance-face-guide::before,
.attendance-camera.face-detected .attendance-face-guide::after {
    border-color: rgba(34, 197, 94, 0.7);
}

.attendance-camera-actions:empty {
    display: none;
}
.attendance-face-guide {
    position: absolute;
    inset: 10%;
    border: 2px dashed rgba(255, 255, 255, 0.7);
    border-radius: 45% 45% 55% 55%;
    box-shadow: 0 0 0 200vmax rgba(15, 23, 42, 0.15);
    pointer-events: none;
}

.attendance-face-guide::before,
.attendance-face-guide::after {
    content: "";
    position: absolute;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    border-style: dashed;
}

.attendance-face-guide::before {
    top: 6%;
    bottom: 6%;
    left: 50%;
    border-left-width: 2px;
    border-left-style: dashed;
    border-left-color: rgba(255, 255, 255, 0.45);
}

.attendance-face-guide::after {
    left: 8%;
    right: 8%;
    top: 50%;
    border-top-width: 2px;
    border-top-style: dashed;
    border-top-color: rgba(255, 255, 255, 0.45);
}

.attendance-camera-video,
.attendance-camera-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.attendance-camera-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.attendance-profile {
    display: grid;
    gap: 0.5rem;
    justify-items: center;
    text-align: center;
}

.attendance-profile-img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.attendance-profile-text {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.attendance-history {
    display: grid;
    gap: 0.75rem;
}

.attendance-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.attendance-map-frame {
    width: 100%;
    height: 220px;
    border: 0;
    border-radius: 12px;
}

.shift-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.shift-toolbar-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: end;
}

.shift-date-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 1rem;
    align-items: end;
    flex: 1 1 auto;
}

.shift-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shift-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #334155;
}

.shift-toggle input {
    width: 36px;
    height: 20px;
}

.shift-board {
    display: grid;
    gap: 1rem;
}

.shift-board--excel {
    grid-template-columns: minmax(360px, 1.8fr) 140px minmax(220px, 0.9fr);
    align-items: start;
}

.shift-column-stack {
    display: grid;
    gap: 1rem;
}

.shift-column-actions {
    display: grid;
    align-items: center;
    justify-items: center;
    min-height: 520px;
}

.shift-action-pill {
    display: grid;
    gap: 0.35rem;
    align-items: center;
    justify-items: center;
    padding: 0.75rem 0.65rem;
    border-radius: 14px;
    border: 1px dashed #cbd5f5;
    color: #475569;
    font-weight: 600;
    background: #f8fafc;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
}

.shift-action-arrow {
    font-size: 1.4rem;
    color: #1fb8ad;
}

.shift-column {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0.85rem;
    min-height: 260px;
    display: grid;
    gap: 0.75rem;
}

.shift-column--list {
    min-height: 520px;
}

.shift-column-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.shift-column-title {
    font-weight: 700;
    color: #0f172a;
}

.shift-column-sub {
    font-size: 0.8rem;
    color: #64748b;
}

.shift-column-count {
    background: #e2e8f0;
    color: #0f172a;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
}

.shift-column-body {
    display: grid;
    gap: 0.5rem;
    min-height: 160px;
}

.shift-column--list .shift-column-body {
    max-height: 520px;
    overflow: auto;
    padding-right: 0.25rem;
}

.shift-column-stack .shift-column {
    min-height: 140px;
}

.shift-column.is-drop-target {
    border-color: #1fb8ad;
    box-shadow: 0 0 0 2px rgba(31, 184, 173, 0.15);
}

.shift-employee {
    background: #ffffff;
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    border: 1px solid #e2e8f0;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.shift-employee:active {
    cursor: grabbing;
}

.shift-employee:hover {
    border-color: #cbd5f5;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.shift-employee-main {
    display: grid;
    gap: 0.15rem;
}

.shift-employee-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.9rem;
}

.shift-employee-meta {
    font-size: 0.75rem;
    color: #64748b;
}

.shift-employee-handle {
    font-size: 1.1rem;
    color: #94a3b8;
    letter-spacing: 2px;
}

@media (max-width: 575.98px) {
    .attendance-selfie {
        grid-template-columns: 1fr;
        justify-items: start;
    }
}






.login-brand {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.login-body {
    background: #1f2f2d;
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
}

.login-shell.login-docjus {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.login-shell--single {
    padding: clamp(16px, 2.5vw, 32px);
}

.login-card {
    width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    overflow: hidden;
}

.login-card--single {
    grid-template-columns: 1fr;
    max-width: 980px;
    margin: 0 auto;
    height: auto;
    min-height: min(760px, calc(100vh - (2 * clamp(16px, 2.5vw, 32px))));
    border-radius: 26px;
    box-shadow: 0 20px 46px rgba(9, 28, 37, 0.26);
}

.login-card--single .login-panel {
    min-height: 100%;
    padding: clamp(2rem, 4vw, 3.25rem) clamp(1.25rem, 4vw, 2.75rem);
}

.login-card--single .login-panel::before {
    left: -16%;
    width: 36%;
    height: 132%;
    top: -16%;
}

.login-card--single .login-panel-inner {
    max-width: 430px;
}

.login-hero {
    position: relative;
    padding: 3rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #f7fbfa;
    overflow: hidden;
    color: #11352d;
}

.login-hero::before,
.login-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.login-hero::before {
    width: 150%;
    height: 150%;
    right: -65%;
    top: -28%;
    background: rgba(31, 184, 173, 0.12);
}

.login-hero::after {
    width: 240px;
    height: 240px;
    left: 10%;
    bottom: 10%;
    background: #e6f3ef;
}

.login-hero-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: #11352d;
    position: relative;
    z-index: 1;
}

.login-hero-brand img {
    width: 48px;
    height: 48px;
}

.login-hero-title {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.08em;
}

.login-hero-subtitle {
    font-size: 0.85rem;
    color: #3b6157;
}

.login-hero-art {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.login-hero-blob {
    position: absolute;
    inset: 10% auto auto 10%;
    width: min(460px, 78%);
    height: min(460px, 78%);
    background: radial-gradient(circle at top, rgba(31, 184, 173, 0.22), rgba(31, 184, 173, 0.06));
    border-radius: 45% 55% 60% 40%;
    z-index: 0;
    animation: loginBlob 12s ease-in-out infinite;
}

.login-hero-bubbles {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.login-hero-bubbles span {
    position: absolute;
    border-radius: 50%;
    background: rgba(31, 184, 173, 0.18);
    animation: loginBubble 6s ease-in-out infinite;
}

.login-hero-bubbles span:nth-child(1) {
    width: 40px;
    height: 40px;
    top: 12%;
    left: 18%;
}

.login-hero-bubbles span:nth-child(2) {
    width: 60px;
    height: 60px;
    bottom: 18%;
    right: 18%;
    animation-delay: 0.8s;
}

.login-hero-bubbles span:nth-child(3) {
    width: 28px;
    height: 28px;
    top: 34%;
    right: 32%;
    animation-delay: 1.4s;
}

.login-hero-bubbles span:nth-child(4) {
    width: 18px;
    height: 18px;
    bottom: 34%;
    left: 24%;
    animation-delay: 2s;
}

.login-hero-illustration {
    width: min(520px, 100%);
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.login-hero-illustration svg {
    width: 100%;
    max-width: 420px;
    height: auto;
}

.login-hero-illustration--animated .hero-float {
    animation: loginFloat 4.2s ease-in-out infinite;
    transform-origin: center;
}

.login-hero-illustration--animated .hero-float.delay {
    animation-delay: 0.8s;
}

.login-hero-illustration--animated .hero-bob {
    animation: loginBob 5.2s ease-in-out infinite;
    transform-origin: center;
}

.login-hero-illustration--animated .hero-person {
    animation: loginPulse 4s ease-in-out infinite;
    transform-origin: center;
}

.login-hero-illustration--animated .hero-screen {
    animation: loginGlow 3.4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes loginFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes loginBob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}

@keyframes loginSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes loginBars {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.7);
    }
}

@keyframes loginBubble {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-10px) scale(1.05);
        opacity: 1;
    }
}

@keyframes loginBlob {
    0%, 100% {
        border-radius: 45% 55% 60% 40%;
    }
    50% {
        border-radius: 55% 45% 45% 55%;
    }
}

@keyframes loginPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

.login-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.login-hero-tags span {
    background: #e9f2ef;
    color: #224337;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.login-hero-footer {
    font-size: 0.8rem;
    color: #4e6f67;
    position: relative;
    z-index: 1;
}

.login-panel {
    background: linear-gradient(160deg, #2f5b51, #2a4a43);
    color: #eef6f4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.login-panel::before {
    content: '';
    position: absolute;
    left: -45%;
    top: -20%;
    width: 70%;
    height: 150%;
    background: #f7fbfa;
    border-radius: 60%;
    filter: blur(0.2px);
    pointer-events: none;
}

.login-panel-inner {
    width: 100%;
    max-width: 320px;
    position: relative;
    z-index: 1;
}


.login-panel h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-panel p {
    color: rgba(238, 246, 244, 0.75);
    margin-bottom: 1.5rem;
}

.login-form {
    display: grid;
    gap: 1rem;
}

.login-form .form-label {
    color: rgba(238, 246, 244, 0.85);
}

.login-form .form-control {
    background: rgba(21, 43, 38, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-radius: 999px;
    height: 44px;
}

.login-form .form-control::placeholder {
    color: rgba(238, 246, 244, 0.6);
}

.login-form .form-check-label {
    color: rgba(238, 246, 244, 0.75);
}

.login-panel .btn-primary {
    background: #6fb99f;
    border-color: #6fb99f;
    font-weight: 700;
    border-radius: 999px;
    height: 44px;
}

.login-panel .btn-primary:hover {
    background: #5daa90;
    border-color: #5daa90;
}

.login-panel .alert {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.login-panel .password-toggle {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 999px;
}

.login-panel a {
    color: #9ad8cc;
}

.login-input {
    position: relative;
}

.login-input .form-control {
    padding-left: 2.7rem;
}

.login-input-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: rgba(238, 246, 244, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-input-icon svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 991.98px) {
    .login-card {
        grid-template-columns: 1fr;
        border-radius: 0;
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
    }

    .login-body {
        overflow-y: auto;
    }

    .login-shell.login-docjus {
        align-items: stretch;
        justify-content: stretch;
    }

    .login-hero {
        min-height: 32vh;
        padding: 1.5rem 1.5rem 0.5rem;
    }

    .login-hero-blob,
    .login-hero-bubbles {
        display: none;
    }

    .login-hero-illustration {
        max-width: 260px;
        margin: 0 auto;
    }

    .login-panel {
        background: #f7fbfa;
        padding: 1.5rem;
    }

    .login-panel::before {
        display: none;
    }

    .login-panel-inner {
        max-width: 360px;
        margin: 0 auto;
        background: #ffffff;
        padding: 1.5rem 1.4rem;
        border-radius: 18px;
        box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
    }

    .login-panel h1 {
        color: #11352d;
    }

    .login-panel p,
    .login-form .form-label,
    .login-form .form-check-label {
        color: rgba(15, 23, 42, 0.7);
    }

    .login-form .form-control {
        background: #f7fbf9;
        border: 1px solid #d6e4df;
        color: #0f172a;
    }

    .login-form .form-control::placeholder {
        color: rgba(15, 23, 42, 0.45);
    }

    .login-panel .password-toggle {
        background: #f1f5f4;
        border: 1px solid #d6e4df;
        color: #1b3b34;
    }

    .login-panel a {
        color: #1b6b5b;
    }

    .login-input-icon {
        color: rgba(15, 23, 42, 0.45);
    }

    .login-shell--single {
        padding: 0;
    }

    .login-card--single {
        min-height: 100vh;
        min-height: 100svh;
        border-radius: 0;
        box-shadow: none;
    }

    .login-card--single .login-panel {
        padding: 1.5rem 1rem 1.8rem;
    }

    .login-card--single .login-panel-inner {
        max-width: 520px;
    }
}

@keyframes loginGlow {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}


.bg-primary {
    background-color: var(--prisma-navy) !important;
}

.btn-primary {
    background-color: var(--prisma-teal);
    border-color: var(--prisma-teal);
}

.btn-primary:hover {
    background-color: #179f96;
    border-color: #179f96;
}

.btn-outline-primary {
    color: var(--prisma-teal);
    border-color: var(--prisma-teal);
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: var(--prisma-teal);
    border-color: var(--prisma-teal);
}

.employee-chat-page {
    --chat-panel: #eaf5f0;
    --chat-surface: #ffffff;
    --chat-bg: #efeae2;
    --chat-own-bg: #d9fdd3;
    --chat-other-bg: #ffffff;
    --chat-muted: #667085;
}

.whatsapp-chat .wa-chat-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--chat-panel);
    border: 1px solid #d8e7df;
    border-radius: 18px;
    padding: 0.75rem;
}

.whatsapp-chat .wa-chat-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--chat-surface);
    border: 1px solid #dce8e0;
    border-radius: 14px;
    padding: 0.6rem 0.75rem;
}

.whatsapp-chat .wa-chat-header-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #d6e5dd;
}

.whatsapp-chat .wa-chat-header-meta {
    min-width: 0;
}

.whatsapp-chat .wa-chat-header-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.92rem;
    line-height: 1.2;
}

.whatsapp-chat .wa-chat-header-subtitle {
    font-size: 0.78rem;
    color: var(--chat-muted);
}

.whatsapp-chat .wa-mobile-contact-panel {
    background: #f4fbf7;
    border: 1px solid #dbe8e1;
    border-radius: 14px;
    padding: 0.55rem;
    margin-bottom: 0.55rem;
}

.whatsapp-chat .wa-mobile-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
    max-height: 210px;
    overflow: auto;
    padding-right: 2px;
}

.whatsapp-chat .wa-mobile-contact-list .wa-thread-item {
    width: 100%;
}

.whatsapp-chat .wa-contact-search-wrap {
    margin-bottom: 0.5rem;
}

.whatsapp-chat .wa-contact-search {
    width: 100%;
    border: 1px solid #d8e6de;
    background: #fff;
    border-radius: 11px;
    padding: 0.5rem 0.7rem;
    font-size: 0.84rem;
    color: #0f172a;
    outline: none;
}

.whatsapp-chat .wa-contact-search:focus {
    border-color: #1fb8ad;
    box-shadow: 0 0 0 3px rgba(31, 184, 173, 0.14);
}

.whatsapp-chat .wa-desktop-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    min-height: 74vh;
}

.whatsapp-chat .wa-sidebar {
    border-right: 1px solid #d6e3dc;
    background: #f4fbf7;
    padding: 0.95rem;
}

.whatsapp-chat .wa-sidebar-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.whatsapp-chat .wa-sidebar-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.whatsapp-chat .wa-sidebar-title {
    font-weight: 800;
    font-size: 1rem;
    color: #0f172a;
}

.whatsapp-chat .wa-thread-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #fff;
    border: 1px solid #dbe8e1;
    border-radius: 12px;
    padding: 0.6rem 0.7rem;
    text-decoration: none;
    color: inherit;
}

.whatsapp-chat .wa-thread-item.is-active {
    background: #dff4ea;
    border-color: #b9e6d2;
}

.whatsapp-chat .wa-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.whatsapp-chat .wa-thread-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #d6e7de;
}

.whatsapp-chat .wa-thread-meta {
    min-width: 0;
}

.whatsapp-chat .wa-thread-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: #0f172a;
}

.whatsapp-chat .wa-thread-sub {
    color: #64748b;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.whatsapp-chat .wa-thread-time {
    margin-left: auto;
    font-size: 0.7rem;
    color: #64748b;
    flex-shrink: 0;
}

.employee-chat-body {
    background: var(--chat-bg);
    border: 1px solid #d8d1c7;
    border-radius: 14px;
    padding: 0.9rem 0.8rem;
    max-height: 54vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background-image:
        radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.28) 0, rgba(255, 255, 255, 0) 28%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.25) 0, rgba(255, 255, 255, 0) 26%);
}

.employee-chat-body.desktop {
    max-height: calc(74vh - 124px);
    min-height: calc(74vh - 124px);
}

.employee-chat-date-divider {
    display: flex;
    justify-content: center;
    margin: 0.18rem 0;
}

.employee-chat-date-divider span {
    background: rgba(255, 255, 255, 0.7);
    color: #4b5563;
    font-size: 0.74rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.22rem 0.62rem;
}

.employee-chat-item {
    display: flex;
    align-items: flex-end;
    gap: 0.52rem;
}

.employee-chat-item.is-own {
    justify-content: flex-end;
}

.employee-chat-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #d5ddcb;
    flex-shrink: 0;
}

.employee-chat-bubble {
    max-width: min(82%, 460px);
    background: var(--chat-other-bg);
    border-radius: 10px;
    padding: 0.46rem 0.62rem 0.34rem;
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.12);
    position: relative;
}

.employee-chat-item.is-own .employee-chat-bubble {
    background: var(--chat-own-bg);
}

.employee-chat-name {
    color: #12664f;
    font-size: 0.73rem;
    font-weight: 700;
    margin-bottom: 0.14rem;
}

.employee-chat-text {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.93rem;
    line-height: 1.35;
    color: #111827;
}

.employee-chat-meta {
    margin-top: 0.2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.24rem;
}

.employee-chat-time {
    font-size: 0.7rem;
    color: #64748b;
}

.employee-chat-check {
    font-size: 0.72rem;
    color: #2a9fd8;
    letter-spacing: -1px;
}

.employee-chat-item.is-pending .employee-chat-bubble {
    opacity: 0.72;
}

.employee-chat-item.is-pending .employee-chat-check {
    color: #64748b;
    letter-spacing: 0;
}

.employee-chat-form {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--chat-surface);
    border: 1px solid #dce8e0;
    border-radius: 14px;
    padding: 0.5rem;
}

.employee-chat-form input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    padding: 0.28rem 0.35rem;
    font-size: 0.95rem;
}

.employee-chat-form button {
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #1ca790 0%, #2f7d8f 100%);
}

.employee-chat-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.employee-chat-form button .icon {
    width: 16px;
    height: 16px;
}

.employee-chat-empty {
    text-align: center;
    color: #64748b;
    padding: 1rem 0.5rem;
}

.chat-live-toast-container {
    position: fixed;
    right: 16px;
    top: 16px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.chat-live-toast {
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: 0.83rem;
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
    transform: translateY(0);
    opacity: 1;
    transition: all 0.22s ease;
    max-width: min(320px, calc(100vw - 32px));
}

.chat-live-toast.is-hide {
    transform: translateY(-8px);
    opacity: 0;
}

@media (max-width: 991.98px) {
    .whatsapp-chat .wa-desktop-layout {
        grid-template-columns: 1fr;
    }

    .whatsapp-chat .wa-sidebar {
        display: none;
    }
}

.payslip-company-logo,
.payslip-company-logo-placeholder {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
}

.payslip-company-logo {
    object-fit: contain;
}

.payslip-sheet {
    background: #fff;
    border-radius: 20px;
    padding: 1.35rem 1.35rem 1.1rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    max-width: 1220px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.payslip-sheet--document::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(31, 184, 173, 0.04) 0%, rgba(37, 99, 235, 0.02) 45%, rgba(15, 23, 42, 0.01) 100%);
    pointer-events: none;
}

.payslip-sheet__accent {
    position: absolute;
    top: -54px;
    right: -54px;
    width: 170px;
    height: 170px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, rgba(31, 184, 173, 0.38), rgba(31, 184, 173, 0));
    pointer-events: none;
}

.payslip-sheet__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 2px solid #dbe7f2;
    position: relative;
    z-index: 1;
}

.payslip-sheet__brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.payslip-sheet__company {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.payslip-sheet__subtitle {
    margin: 0.1rem 0 0;
    color: #64748b;
    font-size: 0.84rem;
}

.payslip-sheet__meta {
    text-align: right;
}

.payslip-sheet__meta-label {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}

.payslip-sheet__meta-period {
    font-size: 0.9rem;
    color: #334155;
    font-weight: 700;
}

.payslip-sheet__meta-chip {
    margin-top: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(31, 184, 173, 0.15);
    color: #0f766e;
    border: 1px solid rgba(31, 184, 173, 0.28);
    padding: 0.16rem 0.58rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.payslip-identity {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 1rem;
    margin: 0.9rem 0 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    z-index: 1;
}

.payslip-identity__row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0.6rem;
    align-items: baseline;
}

.payslip-identity__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
}

.payslip-identity__value {
    font-size: 0.91rem;
    font-weight: 700;
    color: #0f172a;
}

.payslip-kpi {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0.15rem 0 0.95rem;
    position: relative;
    z-index: 1;
}

.payslip-kpi__item {
    border: 1px solid #dbe7f2;
    background: #f8fbfe;
    border-radius: 12px;
    padding: 0.58rem 0.72rem;
    display: grid;
    gap: 0.18rem;
}

.payslip-kpi__item span {
    color: #64748b;
    font-size: 0.73rem;
    font-weight: 700;
}

.payslip-kpi__item strong {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 900;
}

.payslip-kpi__item--net {
    background: linear-gradient(120deg, rgba(31, 184, 173, 0.12), rgba(37, 99, 235, 0.07));
    border-color: rgba(31, 184, 173, 0.35);
}

.payslip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    position: relative;
    z-index: 1;
}

.payslip-block {
    border: 1px solid #dbe7f2;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 26%);
}

.payslip-block__title {
    margin: 0;
    padding: 0.62rem 0.9rem;
    font-size: 0.86rem;
    font-weight: 800;
    color: #0f172a;
    border-bottom: 1px solid #dbe7f2;
    background: #eff6fb;
}

.payslip-table {
    width: 100%;
    border-collapse: collapse;
}

.payslip-table td {
    padding: 0.48rem 0.9rem;
    font-size: 0.84rem;
    border-bottom: 1px dashed #deebf5;
    color: #1e293b;
}

.payslip-table tr:last-child td {
    border-bottom: none;
    font-weight: 800;
    color: #0f172a;
}

.payslip-summary {
    margin-top: 0.95rem;
    padding: 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(31, 184, 173, 0.35);
    background: linear-gradient(120deg, rgba(31, 184, 173, 0.1) 0%, rgba(37, 99, 235, 0.06) 100%);
    position: relative;
    z-index: 1;
}

.payslip-summary__item {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    font-size: 0.86rem;
    color: #334155;
    margin-bottom: 0.55rem;
}

.payslip-summary__item strong {
    color: #0f172a;
}

.payslip-summary__total {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.payslip-summary__total span {
    font-size: 0.86rem;
    color: #334155;
}

.payslip-summary__total strong {
    font-size: 1.18rem;
    color: #0f172a;
    font-weight: 900;
}

.payslip-summary__total em {
    color: #475569;
    font-size: 0.78rem;
}

.payslip-notes {
    margin-top: 0.85rem;
    padding: 0.72rem 0.9rem;
    border: 1px solid #dbe7f2;
    border-radius: 12px;
    background: #f8fbfe;
    position: relative;
    z-index: 1;
}

.payslip-notes span {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    color: #475569;
    margin-bottom: 0.2rem;
}

.payslip-notes p {
    margin: 0;
    font-size: 0.84rem;
    color: #1e293b;
}

@media (max-width: 991.98px) {
    .payslip-sheet {
        border-radius: 14px;
        padding: 1rem 0.95rem;
    }

    .payslip-sheet__meta {
        text-align: left;
    }

    .payslip-sheet__header {
        flex-direction: column;
    }

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

    .payslip-identity__row {
        grid-template-columns: 130px 1fr;
    }

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

    .payslip-kpi {
        grid-template-columns: 1fr;
    }
}

@media print {
    @page {
        size: A4 landscape;
        margin: 10mm;
    }

    .page-head,
    .employee-topbar,
    .employee-bottom-nav,
    .btn {
        display: none !important;
    }

    .payslip-sheet {
        box-shadow: none !important;
        border: 1px solid #cbd5e1 !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        padding: 12px !important;
    }
}

