: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;
}





.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;
}

.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: 100%;
    overflow: hidden;
}

.login-shell.login-docjus {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
}

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

.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);
}

.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-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);
    }
}

@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);
}

