.pc-container .pc-content {
    padding: 1.25rem 2rem 2rem;
}

.app-content-shell {
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
}

.app-logo {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
}

.app-logo-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.app-logo-fallback {
    color: #1f2937;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.sidebar-brand-logo {
    width: 188px;
    height: 36px;
    justify-content: flex-start;
}

.auth-brand-logo {
    width: min(220px, 70vw);
    height: 44px;
    justify-content: flex-start;
}

.app-page-header {
    margin-bottom: 1.5rem;
}

.app-page-heading h1 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: 0;
}

.app-page-heading > p {
    max-width: 720px;
    margin: 0.35rem 0 0;
    color: #667382;
}

.app-page-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.6rem;
    margin-top: 0.55rem;
    color: #52606d;
    font-size: 0.84rem;
}

.app-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.app-page-actions .btn,
.form-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.pc-content .card {
    margin-bottom: 1.5rem;
    border-color: #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(27, 46, 94, 0.045);
}

.pc-content .card > .card-header {
    padding: 1rem 1.25rem;
    border-bottom-color: #e8edf2;
    background: transparent;
}

.pc-content .card > .card-body {
    padding: 1.25rem;
}

.pc-content .card > .card-body.p-0 {
    padding: 0 !important;
}

.pc-content .card-header h5,
.pc-content .card-header .h5 {
    font-size: 1rem;
    line-height: 1.35;
}

.page-intro-card {
    border-left: 3px solid var(--bs-primary);
}

.page-intro-card .card-body {
    padding-block: 1rem;
}

.content-section {
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(27, 46, 94, 0.035);
}

.content-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e8edf2;
}

.content-section-header h2,
.content-section-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: 0;
}

.content-section-header p {
    margin: 0.25rem 0 0;
    color: #667382;
    font-size: 0.85rem;
}

.content-section-body {
    padding: 1.25rem;
}

.content-section > .card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e8edf2;
    background: transparent;
}

.content-section > .card-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 650;
}

.content-section > .card-body {
    padding: 1.25rem;
}

.content-section > .card-body.p-0 {
    padding: 0 !important;
}

.profile-form-shell {
    width: 100%;
    max-width: 1120px;
}

.profile-form-shell > .card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: none;
}

.profile-form-shell > .card > .card-header {
    padding: 1rem 1.25rem;
    border-bottom-color: #e8edf2;
    background: transparent;
}

.profile-form-shell > .card > .card-body {
    padding: 1.25rem;
}

.profile-stepper {
    overflow-x: auto;
    scrollbar-width: thin;
}

.profile-stepper .nav {
    min-width: 700px;
    border-bottom: 1px solid #dfe5eb;
}

.profile-stepper .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 48px;
    padding: 0.65rem 0.75rem;
    color: #667382;
    border: 0;
    border-radius: 0;
    background: transparent;
    white-space: nowrap;
}

.profile-stepper .nav-link::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: transparent;
    content: "";
}

.profile-stepper .nav-link.active {
    color: var(--bs-primary);
    background: transparent;
}

.profile-stepper .nav-link.active::after {
    background: var(--bs-primary);
}

.profile-stepper .nav-link.is-complete {
    color: #198754;
}

.profile-step-number {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 650;
}

.profile-progress {
    max-width: 1120px;
    margin-bottom: 1.25rem;
}

.profile-progress .progress {
    height: 5px;
    background: #e9edf2;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1.5rem;
    border-block: 1px solid #e2e8f0;
    background: #fff;
}

.metric-item {
    min-width: 0;
    padding: 0.9rem 1rem;
    border-right: 1px solid #e2e8f0;
}

.metric-item:last-child {
    border-right: 0;
}

.metric-item .metric-label {
    color: #667382;
    font-size: 0.78rem;
}

.metric-item .metric-value {
    margin-top: 0.1rem;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 650;
}

.action-list {
    border-block: 1px solid #e2e8f0;
    background: #fff;
}

.action-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    color: inherit;
    border-bottom: 1px solid #e8edf2;
    text-decoration: none;
}

.action-list-item:last-child {
    border-bottom: 0;
}

.action-list-item:hover {
    color: var(--bs-primary);
}

.dashboard-grid .card {
    margin-bottom: 0;
}

.dashboard-kpi-card {
    overflow: hidden;
}

.dashboard-kpi-card .card-body {
    display: flex;
    min-height: 142px;
    flex-direction: column;
    justify-content: center;
}

.dashboard-kpi-heading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.dashboard-kpi-icon,
.dashboard-insight-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.dashboard-kpi-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
}

.dashboard-kpi-icon.is-primary,
.dashboard-insight-icon.is-primary {
    color: #4680ff;
    background: rgba(70, 128, 255, 0.11);
}

.dashboard-kpi-icon.is-success,
.dashboard-insight-icon.is-success {
    color: #198754;
    background: rgba(25, 135, 84, 0.11);
}

.dashboard-kpi-icon.is-info,
.dashboard-insight-icon.is-info {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.1);
}

.dashboard-kpi-icon.is-warning,
.dashboard-insight-icon.is-warning {
    color: #b46900;
    background: rgba(229, 138, 0, 0.13);
}

.dashboard-insight-icon.is-danger {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.dashboard-kpi-label {
    color: #52606d;
    font-size: 0.82rem;
    font-weight: 600;
}

.dashboard-kpi-value {
    margin-top: 0.8rem;
    color: #1f2937;
    font-size: 1.75rem;
    font-weight: 650;
    line-height: 1.1;
}

.dashboard-kpi-meta {
    margin-top: 0.35rem;
    color: #667382;
    font-size: 0.76rem;
}

.dashboard-panel {
    min-height: 100%;
}

.dashboard-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.dashboard-chart {
    width: 100%;
    min-height: 320px;
}

.dashboard-empty-state {
    display: flex;
    min-height: 320px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dashboard-insight-list {
    display: flex;
    flex-direction: column;
}

.dashboard-insight-item {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: inherit;
    border-bottom: 1px solid #e8edf2;
    text-decoration: none;
}

.dashboard-insight-item:last-child {
    border-bottom: 0;
}

.dashboard-insight-item:hover,
.dashboard-insight-item:focus {
    color: inherit;
    background: #f8fafc;
}

.dashboard-insight-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
}

.dashboard-insight-content {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.dashboard-insight-content strong {
    color: #344054;
    font-size: 0.82rem;
    font-weight: 600;
}

.dashboard-insight-content small {
    overflow: hidden;
    color: #667382;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-insight-count {
    min-width: 2rem;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 650;
    text-align: right;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
}

.detail-item {
    min-width: 0;
    padding: 0.85rem 0;
    border-bottom: 1px solid #edf1f5;
}

.detail-item:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.detail-label {
    display: block;
    margin-bottom: 0.2rem;
    color: #6b7785;
    font-size: 0.76rem;
}

.table-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
}

.table-actions form,
.dropdown-menu form {
    margin: 0;
}

.table-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.table-actions .btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
}

.filter-card .form-label {
    color: #52606d;
    font-size: 0.8rem;
    font-weight: 600;
}

.filter-card .card-header {
    min-height: 52px;
}

.filter-search-wrap {
    position: relative;
}

.filter-search-wrap .ti-search {
    position: absolute;
    top: 50%;
    left: 0.9rem;
    z-index: 3;
    color: #748091;
    font-size: 1rem;
    pointer-events: none;
    transform: translateY(-50%);
}

.filter-search-wrap .form-control {
    padding-left: 2.45rem;
}

.filter-primary-actions {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.filter-secondary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e8edf2;
}

.filter-advanced-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding-inline: 0;
    color: #475569;
    font-weight: 600;
    text-decoration: none;
}

.filter-advanced-toggle:hover,
.filter-advanced-toggle:focus {
    color: var(--bs-primary);
}

.filter-advanced-toggle .ti-chevron-down {
    transition: transform 0.2s ease;
}

.filter-advanced-toggle[aria-expanded="true"] .ti-chevron-down {
    transform: rotate(180deg);
}

.filter-advanced-panel {
    margin-top: 0.9rem;
    padding: 1rem;
    border: 1px solid #e4e9ef;
    border-radius: 6px;
    background: #f8fafc;
}

.active-filter-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

.active-filter-label {
    margin-right: 0.15rem;
    color: #667382;
    font-size: 0.78rem;
    font-weight: 600;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    padding: 0.38rem 0.6rem;
    color: #344054;
    border: 1px solid #d8e0e8;
    border-radius: 999px;
    background: #f8fafc;
    font-size: 0.76rem;
    line-height: 1.2;
    text-decoration: none;
}

.active-filter-chip:hover,
.active-filter-chip:focus {
    color: var(--bs-primary);
    border-color: rgba(var(--bs-primary-rgb), 0.35);
    background: rgba(var(--bs-primary-rgb), 0.06);
}

.active-filter-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-result-summary {
    color: #667382;
    font-size: 0.8rem;
}

.pc-content .form-label {
    margin-bottom: 0.45rem;
    color: #475569;
    font-weight: 500;
}

.pc-content .form-text,
.pc-content .invalid-feedback {
    margin-top: 0.35rem;
}

.pc-content .form-check {
    min-height: 1.5rem;
}

.pc-content .table-responsive {
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.pc-content .table > :not(caption) > * > * {
    padding: 0.8rem 1rem;
}

.pc-content .table thead th {
    color: #52606d;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.35;
    white-space: nowrap;
}

.pc-content .table tbody td {
    line-height: 1.45;
}

.pc-content .badge {
    padding: 0.42em 0.65em;
    line-height: 1.2;
}

.data-meta {
    color: #667382;
    font-size: 0.8rem;
}

.empty-state {
    max-width: 560px;
    margin-inline: auto;
    padding: 1.75rem 1rem;
    text-align: center;
}

.empty-state h5 {
    font-size: 0.95rem;
}

.empty-state p {
    line-height: 1.5;
}

.empty-state .avtar {
    margin-inline: auto;
    margin-bottom: 0.75rem;
}

.dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.pc-sidebar .m-header {
    padding-inline: 20px;
}

.pc-sidebar .b-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
}

.pc-sidebar .pc-navbar > .pc-item > .pc-link {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 0.65rem;
}

.pc-sidebar .pc-navbar .pc-micon {
    flex: 0 0 22px;
    margin-right: 0;
    text-align: center;
}

.pc-sidebar .pc-caption {
    padding-top: 1rem;
    padding-bottom: 0.35rem;
}

.pc-header .header-wrapper,
.pc-header .pc-head-link {
    display: flex;
    align-items: center;
}

.pc-header .user-avtar {
    flex: 0 0 auto;
}

@media (max-width: 991.98px) {
    .pc-container .pc-content {
        padding-inline: 1.5rem;
    }

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

    .metric-item:nth-child(2) {
        border-right: 0;
    }

    .metric-item:nth-child(-n + 2) {
        border-bottom: 1px solid #e2e8f0;
    }
}

@media (max-width: 767.98px) {
    .pc-container .pc-content {
        padding: 1rem 1rem 1.5rem;
    }

    .app-page-header {
        margin-bottom: 1.1rem;
    }

    .app-page-heading h1 {
        font-size: 1.3rem;
    }

    .app-page-actions,
    .app-page-actions .btn {
        width: 100%;
    }

    .app-page-actions form {
        width: 100%;
    }

    .app-page-meta > .d-flex {
        align-items: flex-start !important;
    }

    .content-section-header,
    .content-section > .card-header,
    .pc-content .card > .card-header {
        padding: 0.9rem 1rem;
    }

    .content-section-body,
    .content-section > .card-body,
    .pc-content .card > .card-body,
    .profile-form-shell > .card > .card-body {
        padding: 1rem;
    }

    .pc-content .table > :not(caption) > * > * {
        padding: 0.72rem 0.85rem;
    }

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

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

    .metric-item {
        border-right: 1px solid #e2e8f0;
        border-bottom: 0;
    }

    .metric-item:nth-child(even) {
        border-right: 0;
    }

    .metric-item:nth-child(-n + 2) {
        border-bottom: 1px solid #e2e8f0;
    }

    .detail-item:nth-last-child(-n + 2) {
        border-bottom: 1px solid #e2e8f0;
    }

    .metric-item:last-child,
    .detail-item:last-child {
        border-bottom: 0;
    }

    .table-actions {
        justify-content: flex-start;
    }

    .filter-primary-actions,
    .filter-primary-actions .btn {
        width: 100%;
    }

    .filter-secondary-row {
        align-items: flex-start;
    }

    .filter-advanced-panel {
        padding: 0.9rem;
    }

    .dashboard-panel-header {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-panel-header .btn {
        align-self: flex-start;
    }

    .dashboard-chart,
    .dashboard-empty-state {
        min-height: 280px;
    }

    .dashboard-insight-item {
        padding: 0.9rem 1rem;
    }
}

.scanner-event-table {
    min-width: 700px;
}

/* Employee onboarding focus mode: the employee portal remains unchanged elsewhere. */
.employee-onboarding-page {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    background: #f4f7f6;
}

.employee-onboarding-main {
    min-height: 100vh;
    min-height: 100dvh;
}

.employee-onboarding-appbar {
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.employee-onboarding-appbar-inner {
    display: flex;
    width: 100%;
    max-width: 1120px;
    min-height: 64px;
    margin-inline: auto;
    padding: 0.75rem 1.25rem;
    align-items: center;
    gap: 0.85rem;
}

.employee-onboarding-logo {
    width: 142px;
    height: 36px;
    justify-content: flex-start;
}

.employee-onboarding-brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.2;
}

.employee-onboarding-brand-copy strong {
    color: #1f2937;
    font-size: 0.875rem;
}

.employee-onboarding-brand-copy span {
    color: #6b7280;
    font-size: 0.75rem;
}

.employee-onboarding-shell {
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
    padding: 1.5rem 1.25rem 2rem;
}

.employee-onboarding-page .profile-form-shell,
.employee-onboarding-page .profile-progress {
    max-width: none;
}

.employee-onboarding-page .app-page-header nav[aria-label="Breadcrumb"] {
    display: none;
}

.employee-onboarding-heading {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.employee-onboarding-heading h1 {
    letter-spacing: 0;
}

.employee-onboarding-step-summary {
    display: flex;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dfe5eb;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.employee-onboarding-step-summary strong {
    color: var(--bs-primary);
}

@media (max-width: 575.98px) {
    .employee-onboarding-appbar-inner {
        min-height: 58px;
        padding: 0.65rem 1rem;
    }

    .employee-onboarding-logo {
        width: 116px;
        height: 30px;
    }

    .employee-onboarding-brand-copy {
        display: none;
    }

    .employee-onboarding-shell {
        padding: 1rem 0.75rem 1.5rem;
    }

    .employee-onboarding-heading {
        flex-direction: column;
        gap: 0.5rem;
    }

    .employee-onboarding-heading h1 {
        font-size: 1.35rem;
    }

    .employee-onboarding-page .app-page-header {
        margin-bottom: 1rem;
    }
}

/* Attendance scanner focus mode: scoped away from the admin shell. */
.scanner-focus-page,
.scanner-focus-main {
    min-height: 100vh;
    min-height: 100dvh;
    background: #f4f7f6;
}

.scanner-focus-shell {
    width: 100%;
    max-width: 1920px;
    margin-inline: auto;
    padding: 1rem 1.25rem;
}

.scanner-focus-header,
.scanner-focus-brand,
.scanner-focus-actions,
.scanner-event-meta,
.scanner-secondary-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.scanner-focus-header {
    justify-content: space-between;
    padding-bottom: 1rem;
}

.scanner-focus-brand { flex: 1; }
.scanner-focus-logo { width: 154px; height: 38px; flex: 0 0 154px; }
.scanner-focus-heading { min-width: 0; }
.scanner-focus-heading h1 { margin: 0; font-size: 1.25rem; font-weight: 650; letter-spacing: 0; }
.scanner-focus-heading > strong { display: block; margin-top: 0.15rem; font-size: 0.9rem; overflow-wrap: anywhere; }
.scanner-event-meta { flex-wrap: wrap; gap: 0.25rem 0.8rem; margin-top: 0.25rem; color: #667382; font-size: 0.78rem; }
.scanner-event-meta span { display: inline-flex; align-items: center; gap: 0.25rem; overflow-wrap: anywhere; }
.scanner-focus-actions { flex: 0 0 auto; flex-wrap: wrap; gap: 0.5rem; }
.scanner-focus-actions .btn,
.scanner-input-form .btn,
.scanner-secondary-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; }
.scanner-flash-stack .alert { margin-bottom: 1rem; }

.scanner-metric-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 0;
    border: 0;
    border-bottom: 1px solid #e1e8e5;
    border-radius: 0;
    box-shadow: none;
}

.scanner-metric-strip .metric-item { min-width: 0; padding: 0.75rem 1.25rem; }
.scanner-metric-strip .metric-value { font-size: 1.5rem; line-height: 1.3; }
.scanner-metric-strip .metric-label { font-size: 0.78rem; }

.scanner-workspace {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: max(470px, calc(100dvh - 205px));
    background: #fff;
}

.scanner-stage {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.scanner-state { color: #315c50; }
.scanner-state-icon { display: inline-flex; align-items: center; justify-content: center; width: 80px; height: 80px; margin-bottom: 1rem; color: #02936f; background: #eef8f4; border-radius: 8px; font-size: 3rem; }
.scanner-state h2 { margin-bottom: 0.65rem; color: #253b35; font-size: 1.5rem; font-weight: 600; letter-spacing: 0; }
.scanner-state p { margin-bottom: 1.5rem; color: #667382; font-size: 0.9rem; }
.scanner-state.is-processing .scanner-state-icon { color: #285ea8; background: #eff5fd; }
.scanner-input-form { width: 100%; max-width: 580px; }
.scanner-input-form .form-control { min-height: 60px; border-color: #a9cfc4; font-size: 1rem; }
.scanner-input-form .form-control:focus { border-color: #02936f; box-shadow: 0 0 0 0.2rem rgba(2, 147, 111, 0.14); }

.scanner-workspace-footer { padding: 1rem 1.5rem; border-top: 1px solid #e8edf2; }
.scanner-last-line { display: flex; align-items: baseline; gap: 0.5rem; min-height: 24px; font-size: 0.85rem; overflow-wrap: anywhere; }
.scanner-secondary-actions { justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

/* Feedback never captures clicks or keyboard focus; Bootstrap surfaces remain above it. */
.scanner-result-overlay {
    position: absolute;
    z-index: 10;
    top: 1.25rem;
    right: 1.25rem;
    width: min(420px, calc(100% - 2.5rem));
    padding: 1.25rem;
    border: 1px solid #badbcc;
    border-left: 4px solid #198754;
    border-radius: 8px;
    background: #f0faf4;
    color: #146c43;
    box-shadow: 0 8px 24px rgba(24, 48, 39, 0.12);
    pointer-events: none;
    overflow-wrap: anywhere;
}

.scanner-result-overlay.is-warning { color: #805400; background: #fff9ec; border-color: #efd394; border-left-color: #c18613; }
.scanner-result-overlay.is-error { color: #a72d3b; background: #fff3f4; border-color: #efc2c8; border-left-color: #c63449; }
.scanner-result-overlay[hidden],
.scanner-result-person[hidden] { display: none; }
.scanner-result-heading { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.5rem; }
.scanner-result-heading i { font-size: 1.4rem; line-height: 1.2; }
.scanner-result-person { display: flex; gap: 0.75rem; margin-top: 1rem; }
.scanner-result-avatar { display: inline-flex; width: 48px; height: 48px; flex: 0 0 48px; align-items: center; justify-content: center; border-radius: 8px; background: #fff; color: #52665f; font-size: 1.5rem; }
.scanner-result-identity { display: flex; min-width: 0; flex-direction: column; gap: 0.2rem; color: #344054; font-size: 0.82rem; }
.scanner-result-identity strong { font-size: 1rem; }
.scanner-result-identity small { margin-top: 0.25rem; }

.scanner-recent-panel { --bs-offcanvas-width: 420px; max-width: 100%; }
.scanner-recent-item { padding: 1rem 1.25rem; overflow-wrap: anywhere; }
.scanner-recent-item > strong,
.scanner-recent-item > small { display: block; }
.scanner-recent-item small { color: #667382; font-size: 0.8rem; }
.scanner-recent-item > small { margin-top: 0.25rem; }
.scanner-manual-modal .form-select { width: 100%; min-width: 0; }
.scanner-manual-modal .modal-footer { gap: 0.25rem; }
.scanner-spin { animation: scanner-spin 0.9s linear infinite; }
@keyframes scanner-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .scanner-spin { animation: none; } }

@media (max-width: 991.98px) {
    .scanner-focus-header { align-items: flex-start; flex-direction: column; }
    .scanner-focus-actions { width: 100%; }
}

@media (max-width: 575.98px) {
    .scanner-focus-shell { padding: 0.75rem; }
    .scanner-focus-brand { align-items: flex-start; flex-direction: column; gap: 0.65rem; }
    .scanner-focus-logo { width: 142px; height: 32px; flex-basis: 32px; }
    .scanner-focus-actions .btn { flex: 1; padding-inline: 0.5rem; font-size: 0.78rem; }
    .scanner-metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .scanner-metric-strip .metric-item { padding: 0.6rem 0.8rem; }
    .scanner-metric-strip .metric-item:nth-child(2) { border-right: 0; }
    .scanner-metric-strip .metric-item:nth-child(n+3) { border-top: 1px solid #e8edf2; }
    .scanner-workspace { min-height: 430px; }
    .scanner-stage { padding: 2rem 1rem; }
    .scanner-state-icon { width: 64px; height: 64px; font-size: 2.5rem; }
    .scanner-state h2 { font-size: 1.2rem; }
    .scanner-state p { font-size: 0.82rem; }
    .scanner-input-form .form-control { min-height: 56px; font-size: 0.9rem; }
    .scanner-workspace-footer { padding: 1rem; }
    .scanner-secondary-actions .btn { flex: 1 1 140px; padding-inline: 0.5rem; font-size: 0.8rem; }
    .scanner-result-overlay { top: 0.75rem; right: 0.75rem; width: calc(100% - 1.5rem); padding: 1rem; }
}

/* Login shell: isolated from dashboard, guest, and employee application layouts. */
.auth-login-page {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    background: #fff;
}

.auth-login-shell {
    position: relative;
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    grid-template-columns: minmax(520px, 55%) minmax(420px, 1fr);
}

.auth-brand-panel {
    position: relative;
    isolation: isolate;
    display: flex;
    min-width: 0;
    padding: 3rem clamp(2.5rem, 6vw, 6rem);
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background: linear-gradient(145deg, #02936f 0%, #01765a 100%);
}

.auth-brand-panel::before,
.auth-brand-panel::after {
    position: absolute;
    z-index: -1;
    content: '';
    pointer-events: none;
}

.auth-brand-content {
    width: min(100%, 500px);
    margin-block: auto;
}

.auth-login-brand-logo {
    width: 220px;
    height: 60px;
    padding: 0.45rem 0.6rem;
    justify-content: flex-start;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.97);
}

.auth-login-brand-image {
    width: 100%;
    height: 100%;
}

.auth-brand-copy {
    margin-top: 2.25rem;
}

.auth-brand-eyebrow {
    margin-bottom: 0.65rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
}

.auth-brand-copy h1 {
    max-width: 460px;
    margin-bottom: 0.8rem;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.auth-brand-copy > p:last-child {
    max-width: 430px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    line-height: 1.65;
}

.auth-brand-footer {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.auth-login-with-building .auth-brand-panel {
    justify-content: flex-start;
    color: #1f2937;
    background: #f8fbfa;
    padding: clamp(3rem, 4vw, 4rem);
}

.auth-login-with-building .auth-brand-content {
    position: relative;
    z-index: 2;
    margin: 0;
}

.auth-login-with-building .auth-login-brand-logo {
    padding: 0;
    background: transparent;
}

.auth-login-with-building .auth-brand-eyebrow {
    color: #01765a;
}

.auth-login-with-building .auth-brand-copy h1 {
    color: #1f2937;
}

.auth-login-with-building .auth-brand-copy > p:last-child {
    color: #667085;
}

.auth-login-with-building .auth-brand-visual {
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: 0;
    width: 55%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.auth-login-with-building .auth-brand-viewport {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.auth-login-with-building .auth-brand-building {
    position: absolute;
    bottom: -10vh;
    left: 50%;
    display: block;
    width: 110%;
    max-width: none;
    height: auto;
    object-fit: contain;
    object-position: center bottom;
    mix-blend-mode: multiply;
    transform: translateX(-50%);
}

.auth-form-panel {
    display: flex;
    min-width: 0;
    padding: 2.5rem clamp(2rem, 6vw, 6rem);
    align-items: center;
    justify-content: center;
    background: #fff;
}

.auth-login-with-building .auth-form-panel {
    position: relative;
    z-index: 2;
    padding-top: clamp(3rem, 8vh, 5rem);
    padding-right: clamp(2.5rem, 4vw, 4.5rem);
    padding-bottom: clamp(3rem, 8vh, 5rem);
    padding-left: clamp(2.5rem, 4vw, 4.5rem);
    align-items: center;
    border-left: 1px solid #edf2f0;
}

.auth-login-with-building .auth-login-form {
    transform: translateY(-1.5rem);
}

.auth-login-form {
    width: 100%;
    max-width: 440px;
}

.auth-login-form > .mb-4 {
    margin-bottom: 1.875rem !important;
}

.auth-login-title {
    margin-bottom: 0.5rem;
    color: #1f2937;
    font-size: 1.75rem;
    font-weight: 700;
}

.auth-login-form .form-label {
    color: #344054;
    font-weight: 600;
}

.auth-login-form .form-control {
    min-height: 48px;
}

.auth-login-form form > .mb-3 {
    margin-bottom: 1.25rem !important;
}

.auth-login-form .form-control:focus {
    border-color: rgba(2, 147, 111, 0.72);
    box-shadow: 0 0 0 0.2rem rgba(2, 147, 111, 0.12);
}

.auth-login-form .form-check-input:checked {
    border-color: #02936f;
    background-color: #02936f;
}

.auth-login-form .link-primary {
    color: #01765a !important;
}

.auth-password-toggle {
    width: 48px;
    padding-inline: 0;
    border-color: #dbe1e8;
}

.auth-password-toggle:focus-visible {
    outline: 2px solid #02936f;
    outline-offset: 2px;
}

.auth-session-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.auth-login-submit {
    min-height: 48px;
    border-color: #02936f;
    background: #02936f;
    font-weight: 600;
}

.auth-login-submit:hover,
.auth-login-submit:focus {
    border-color: #01765a;
    background: #01765a;
}

.auth-form-footer {
    margin-top: 2rem;
    color: #7b8794;
    font-size: 0.75rem;
    text-align: center;
}

.auth-login-copyright {
    margin-top: 1.25rem;
    color: #98a2b3;
    font-size: 0.75rem;
    text-align: center;
}

@media (max-width: 991.98px) {
    .auth-login-page {
        background: #fff;
    }

    .auth-login-shell {
        display: flex;
        overflow: hidden;
        flex-direction: column;
    }

    .auth-brand-panel {
        min-height: 200px;
        padding: 1.75rem 1.5rem 2.8rem;
        justify-content: center;
    }

    .auth-login-with-building .auth-brand-panel {
        min-height: 0;
        padding: 1.25rem 1.25rem 0;
        color: #1f2937;
        background: #fff;
    }

    .auth-login-with-building .auth-brand-copy {
        display: none;
    }

    .auth-login-with-building .auth-brand-visual {
        position: relative;
        inset: auto;
        display: block;
        width: 100%;
        height: auto;
        overflow: visible;
        background: transparent;
    }

    .auth-login-with-building .auth-brand-viewport {
        position: relative;
        inset: auto;
        width: 100%;
        height: clamp(220px, 58vw, 250px);
        overflow: hidden;
    }

    .auth-brand-content {
        margin: 0;
    }

    .auth-login-brand-logo {
        width: 168px;
        height: 45px;
    }

    .auth-brand-copy {
        margin-top: 1.25rem;
    }

    .auth-brand-copy h1 {
        margin-bottom: 0.3rem;
        font-size: 1.35rem;
    }

    .auth-brand-copy > p:last-child,
    .auth-brand-footer {
        display: none;
    }

    .auth-brand-eyebrow {
        margin-bottom: 0.35rem;
        font-size: 0.7rem;
    }

    .auth-form-panel {
        min-height: 0;
        margin-top: 0;
        padding: 2rem 1.5rem;
        align-items: flex-start;
        border-radius: 0;
    }

    .auth-login-with-building .auth-form-panel {
        padding: 1.5rem 1.25rem 2rem;
        border-left: 0;
    }

    .auth-login-with-building .auth-login-form {
        transform: none;
    }

    .auth-login-with-building .auth-brand-building {
        bottom: -2.5rem;
        width: min(120%, 560px);
    }

    .auth-login-form {
        max-width: 460px;
    }
}

@media (max-width: 575.98px) {
    .auth-brand-panel {
        min-height: 184px;
        padding: 1.35rem 1rem 2.5rem;
    }

    .auth-login-with-building .auth-brand-panel {
        min-height: 0;
        padding: 1.25rem 1.25rem 0;
    }

    .auth-login-brand-logo {
        width: 164px;
        height: 44px;
    }

    .auth-brand-copy {
        margin-top: 1rem;
    }

    .auth-brand-copy h1 {
        font-size: 1.2rem;
    }

    .auth-form-panel {
        min-height: 0;
        padding: 1.25rem 1.25rem calc(3.75rem + env(safe-area-inset-bottom));
    }

    .auth-login-with-building .auth-form-panel {
        padding: 1.25rem 1.25rem calc(3.75rem + env(safe-area-inset-bottom));
    }

    .auth-login-with-building .auth-brand-visual {
        z-index: 3;
        height: auto;
        margin-top: -4.375rem;
        overflow: visible;
    }

    .auth-login-with-building .auth-brand-viewport {
        height: clamp(300px, 82vw, 340px);
        background: transparent;
    }

    .auth-login-with-building .auth-brand-building {
        bottom: -1.5rem;
        width: 132%;
        max-width: 620px;
    }

    .auth-login-title {
        font-size: 1.45rem;
    }

    .auth-session-options {
        align-items: center;
        flex-wrap: nowrap;
        font-size: 0.875rem;
    }
}

/* Digital employee card shared by employee self-service and authorized admin preview. */
.employee-e-card-stage {
    width: 100%;
}

.employee-e-card {
    position: relative;
    isolation: isolate;
    display: flex;
    width: 100%;
    max-width: 720px;
    min-height: 360px;
    margin-inline: auto;
    padding: 1.4rem;
    overflow: hidden;
    flex-direction: column;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: linear-gradient(135deg, #02936f 0%, #027f62 58%, #016b53 100%);
    box-shadow: 0 16px 36px rgba(2, 91, 70, 0.2);
}

.employee-e-card::before,
.employee-e-card::after {
    position: absolute;
    z-index: -1;
    content: '';
    pointer-events: none;
}

.employee-e-card::before {
    inset: -46% -10% auto 54%;
    width: 40%;
    height: 155%;
    transform: rotate(24deg);
    background: rgba(255, 255, 255, 0.08);
}

.employee-e-card::after {
    right: -12%;
    bottom: -58%;
    width: 62%;
    height: 92%;
    transform: rotate(-18deg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
}

.employee-e-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.employee-e-card-logo {
    width: 176px;
    height: 42px;
    padding: 0.3rem 0.45rem;
    justify-content: flex-start;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
}

.employee-e-card-logo-image {
    width: 100%;
    height: 100%;
}

.employee-e-card-status {
    display: inline-flex;
    min-height: 30px;
    padding: 0.3rem 0.65rem;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(0, 77, 58, 0.34);
}

.employee-e-card-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c9ffeb;
}

.employee-e-card-content {
    display: grid;
    min-width: 0;
    margin-block: auto;
    padding-block: 1.15rem 0.75rem;
    grid-template-columns: 118px minmax(0, 1fr) 138px;
    align-items: center;
    gap: 1.25rem;
}

.employee-e-card-photo {
    display: block;
    width: 118px;
    height: 144px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.76);
    border-radius: 12px;
    background: #fff;
}

.employee-e-card-identity {
    min-width: 0;
}

.employee-e-card-name {
    display: -webkit-box;
    margin: 0 0 0.45rem;
    overflow: hidden;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.18;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.employee-e-card-position,
.employee-e-card-institution {
    margin: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.84rem;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-e-card-number {
    margin-top: 1rem;
}

.employee-e-card-number span,
.employee-e-card-number strong {
    display: block;
}

.employee-e-card-number span {
    margin-bottom: 0.1rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
}

.employee-e-card-number strong {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.employee-e-card-qr {
    width: 138px;
    padding: 8px;
    justify-self: end;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 60, 46, 0.16);
}

.employee-e-card-qr svg,
.employee-e-card-qr-modal svg {
    display: block;
    width: 100%;
    height: auto;
}

.employee-e-card-note {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.72rem;
    text-align: right;
}

.employee-e-card-qr-modal {
    width: 260px;
    max-width: 100%;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
}

.employee-e-card-unavailable {
    max-width: 720px;
    margin-inline: auto;
}

@media (max-width: 575.98px) {
    .employee-e-card {
        min-height: 222px;
        padding: 0.85rem;
        border-radius: 14px;
        box-shadow: 0 10px 24px rgba(2, 91, 70, 0.18);
    }

    .employee-e-card-logo {
        width: 140px;
        height: 34px;
        padding: 0.22rem 0.35rem;
    }

    .employee-e-card-status {
        min-height: 26px;
        padding: 0.25rem 0.5rem;
        font-size: 0.68rem;
    }

    .employee-e-card-content {
        padding-block: 0.75rem 0.45rem;
        grid-template-columns: 72px minmax(0, 1fr) 82px;
        gap: 0.65rem;
    }

    .employee-e-card-photo {
        width: 72px;
        height: 92px;
        border-width: 2px;
        border-radius: 9px;
    }

    .employee-e-card-name {
        margin-bottom: 0.3rem;
        font-size: 1rem;
    }

    .employee-e-card-position,
    .employee-e-card-institution {
        font-size: 0.69rem;
        line-height: 1.35;
    }

    .employee-e-card-number {
        margin-top: 0.55rem;
    }

    .employee-e-card-number span {
        font-size: 0.58rem;
    }

    .employee-e-card-number strong {
        font-size: 0.86rem;
    }

    .employee-e-card-qr {
        width: 82px;
        padding: 5px;
        border-radius: 8px;
    }

    .employee-e-card-note {
        font-size: 0.62rem;
    }
}

/* Employee self-service shell: scoped so admin, HR, and committee layouts stay unchanged. */
.employee-mobile-appbar,
.employee-bottom-nav {
    display: none;
}

.employee-id-preview-qr {
    width: 76px;
    min-width: 76px;
    padding: 4px;
    background: #fff;
}

.employee-id-preview-qr svg {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 991.98px) {
    .employee-app {
        padding-bottom: calc(4.25rem + env(safe-area-inset-bottom));
        background: #f8fafc;
    }

    .employee-app .pc-sidebar,
    .employee-app .employee-desktop-header,
    .employee-app .pc-footer {
        display: none !important;
    }

    .employee-mobile-appbar {
        position: fixed;
        inset: 0 0 auto;
        z-index: 1025;
        display: flex;
        height: 3.6rem;
        padding: 0.6rem 1rem;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #e2e8f0;
        background: #fff;
    }

    .employee-mobile-brand,
    .employee-mobile-account {
        display: inline-flex;
        align-items: center;
    }

    .employee-mobile-logo {
        width: 150px;
        height: 32px;
        justify-content: flex-start;
    }

    .employee-mobile-account .user-avtar {
        width: 34px;
        height: 34px;
        object-fit: cover;
        border-radius: 50%;
    }

    .employee-app .pc-container {
        top: 3.6rem;
        min-height: calc(100vh - 3.6rem);
        margin: 0;
    }

    .employee-app .pc-container .pc-content {
        padding: 1rem 1rem calc(5rem + env(safe-area-inset-bottom));
    }

    .employee-app .app-content-shell {
        max-width: none;
    }

    .employee-app .app-page-header {
        margin-bottom: 1rem;
    }

    .employee-app .app-page-header nav[aria-label="Breadcrumb"],
    .employee-app .app-page-heading > p,
    .employee-app .app-page-heading .badge {
        display: none;
    }

    .employee-app .app-page-heading h1 {
        font-size: 1.3rem;
    }

    .employee-app .app-page-actions,
    .employee-app .app-page-actions .btn,
    .employee-app .app-page-actions form {
        width: auto;
    }

    .employee-app .pc-content .card,
    .employee-app .content-section {
        margin-bottom: 1rem;
    }

    .employee-app .pc-content .card > .card-header,
    .employee-app .content-section-header {
        padding: 0.8rem 1rem;
    }

    .employee-app .pc-content .card > .card-body,
    .employee-app .content-section-body {
        padding: 1rem;
    }

    .employee-app .profile-stepper {
        display: none;
    }

    .employee-bottom-nav {
        position: fixed;
        inset: auto 0 0;
        z-index: 1030;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        min-height: calc(4.25rem + env(safe-area-inset-bottom));
        padding: 0.35rem 0.35rem env(safe-area-inset-bottom);
        border-top: 1px solid #dfe5eb;
        background: #fff;
        box-shadow: 0 -4px 14px rgba(27, 46, 94, 0.06);
    }

    .employee-bottom-nav-item {
        display: flex;
        min-width: 0;
        min-height: 3.55rem;
        padding: 0.35rem 0.15rem;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 0.15rem;
        color: #667382;
        font-size: 0.68rem;
        font-weight: 500;
        line-height: 1.15;
        text-align: center;
    }

    .employee-bottom-nav-item i {
        font-size: 1.3rem;
    }

    .employee-bottom-nav-item.active {
        color: var(--bs-primary);
    }

    .employee-bottom-nav-item:focus-visible {
        outline: 2px solid var(--bs-primary);
        outline-offset: -2px;
        border-radius: 6px;
    }
}
