/* =========================================================
   SLN CONDOTELS HR
   SHARED COMPACT UI
========================================================= */


/* =========================================================
   RESET / BASE
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #1f2937;
    line-height: 1.4;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}


/* =========================================================
   COLORS / GENERAL
========================================================= */

:root {
    --navy: #17365d;
    --navy-dark: #102a4a;
    --navy-light: #eef3f8;

    --text: #1f2937;
    --muted: #6b7280;

    --border: #e1e5ea;
    --border-dark: #cbd5e1;

    --background: #f4f6f8;
    --white: #ffffff;

    --green-bg: #e8f5ec;
    --green-text: #247a3e;
    --green-border: #b9dfc4;

    --yellow-bg: #fff5dd;
    --yellow-text: #8a5b00;
    --yellow-border: #ead49a;

    --red-bg: #fdecec;
    --red-text: #a93226;
    --red-border: #f5c2c0;

    --blue-bg: #e8f0fb;
    --blue-text: #245b9e;

    --gray-bg: #f1f3f5;
}


/* =========================================================
   TOP BAR
========================================================= */

.topbar {
    min-height: 58px;
    background: var(--navy);
    color: var(--white);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 8px 24px;
    gap: 20px;
}

.brand h1 {
    font-size: 19px;
    line-height: 1.1;
    margin-bottom: 2px;
}

.brand p {
    font-size: 11px;
    color: #d9e3f0;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-info {
    text-align: right;
}

.user-name {
    font-size: 13px;
    font-weight: 700;
}

.user-role {
    font-size: 11px;
    color: #d9e3f0;
    margin-top: 1px;
}

.logout-button {
    color: var(--white);
    text-decoration: none;

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 5px;

    padding: 7px 11px;
    font-size: 12px;
}

.logout-button:hover {
    background: rgba(255, 255, 255, 0.10);
}


/* =========================================================
   MAIN PAGE
========================================================= */

.page {
    width: min(1500px, 100%);
    margin: 0 auto;
    padding: 22px 26px 32px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;
    margin-bottom: 16px;
}

.page-title h2 {
    color: var(--navy);
    font-size: 24px;
    line-height: 1.15;
    margin-bottom: 4px;
}

.page-title p {
    font-size: 13px;
    color: var(--muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}


/* =========================================================
   BUTTONS
========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    white-space: nowrap;

    padding: 8px 13px;
    border-radius: 5px;

    border: 1px solid transparent;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.button-primary {
    background: var(--navy);
    color: var(--white);
}

.button-primary:hover {
    background: var(--navy-dark);
}

.button-secondary {
    background: var(--white);
    color: var(--navy);
    border-color: var(--border-dark);
}

.button-secondary:hover {
    background: #f8fafc;
}

.button-warning {
    background: var(--yellow-bg);
    color: var(--yellow-text);
    border-color: var(--yellow-border);
}

.button-success {
    background: var(--green-bg);
    color: var(--green-text);
    border-color: var(--green-border);
}

.button-danger {
    background: var(--red-bg);
    color: var(--red-text);
    border-color: var(--red-border);
}

.button-small {
    padding: 6px 10px;
    font-size: 11px;
}


/* =========================================================
   FLASH / SYSTEM MESSAGES
========================================================= */

.message {
    padding: 9px 12px;
    margin-bottom: 14px;

    border-radius: 5px;

    background: var(--navy-light);
    color: var(--navy);
    border: 1px solid #cad7e6;

    font-size: 12px;
}

.message-success {
    background: var(--green-bg);
    color: var(--green-text);
    border-color: var(--green-border);
}

.message-warning {
    background: var(--yellow-bg);
    color: var(--yellow-text);
    border-color: var(--yellow-border);
}

.message-error {
    background: var(--red-bg);
    color: var(--red-text);
    border-color: var(--red-border);
}


/* =========================================================
   CARDS
========================================================= */

.card {
    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 8px;

    padding: 16px;
}

.card + .card {
    margin-top: 14px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 12px;
}

.card-title {
    color: var(--navy);
    font-size: 15px;
    font-weight: 700;
}

.card-subtitle {
    color: var(--muted);
    font-size: 11px;
    margin-top: 2px;
}


/* =========================================================
   FORM CONTROLS
========================================================= */

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width,
.full-width {
    grid-column: 1 / -1;
}

label {
    margin-bottom: 5px;

    color: #374151;

    font-size: 12px;
    font-weight: 700;
}

.required {
    color: #b42318;
}

input,
select,
textarea {
    width: 100%;

    padding: 8px 10px;

    background: var(--white);
    color: var(--text);

    border: 1px solid #d1d5db;
    border-radius: 5px;

    font-size: 13px;
    outline: none;
}

input,
select {
    min-height: 36px;
}

textarea {
    min-height: 72px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 2px rgba(23, 54, 93, 0.08);
}

input[readonly] {
    background: #f3f4f6;
    color: var(--navy);
    font-weight: 700;
}

select:disabled,
input:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.field-note {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
    margin-top: 4px;
}


/* =========================================================
   FORM SECTIONS
========================================================= */

.form-section {
    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 8px;

    padding: 16px 18px;
    margin-bottom: 14px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 12px;

    padding-bottom: 9px;
    margin-bottom: 14px;

    border-bottom: 1px solid var(--border);
}

.section-heading h3 {
    color: var(--navy);
    font-size: 15px;
    margin-bottom: 2px;
}

.section-heading p {
    color: var(--muted);
    font-size: 11px;
}


/* =========================================================
   FORM ACTIONS
========================================================= */

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;

    padding: 12px 14px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;

    margin-bottom: 24px;
}


/* =========================================================
   TOOLBAR / SEARCH
========================================================= */

.toolbar {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 12px;
    margin-bottom: 14px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 8px;
}

.search-form {
    display: flex;
    width: 100%;
    gap: 8px;
}

.search-input {
    flex: 1;
}


/* =========================================================
   TABLES
========================================================= */

.table-card {
    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 8px;

    overflow: hidden;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 14px;

    border-bottom: 1px solid var(--border);
}

.table-header h3 {
    color: var(--navy);
    font-size: 15px;
}

.table-meta,
.employee-count {
    color: var(--muted);
    font-size: 11px;
}

.table-wrapper {
    overflow-x: auto;
}

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

thead {
    background: #f8fafc;
}

th {
    padding: 9px 11px;

    text-align: left;
    white-space: nowrap;

    color: #4b5563;

    font-size: 11px;
    font-weight: 700;

    border-bottom: 1px solid var(--border);
}

td {
    padding: 9px 11px;

    font-size: 12px;
    vertical-align: middle;

    border-bottom: 1px solid #eef0f3;
}

tbody tr:hover {
    background: #fafbfc;
}

tbody tr:last-child td {
    border-bottom: none;
}


/* =========================================================
   BADGES
========================================================= */

.badge,
.status,
.stage-badge {
    display: inline-flex;
    align-items: center;

    padding: 3px 7px;

    border-radius: 20px;

    font-size: 10px;
    font-weight: 700;

    white-space: nowrap;
}

.badge-active,
.status-active,
.stage-regular {
    background: var(--green-bg);
    color: var(--green-text);
}

.badge-inactive,
.status-inactive {
    background: var(--gray-bg);
    color: var(--muted);
}

.stage-stc,
.badge-warning {
    background: var(--yellow-bg);
    color: var(--yellow-text);
}

.stage-probationary,
.badge-info {
    background: var(--blue-bg);
    color: var(--blue-text);
}

.badge-danger {
    background: var(--red-bg);
    color: var(--red-text);
}


/* =========================================================
   KPI / DASHBOARD
========================================================= */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 12px;

    margin-bottom: 16px;
}

.kpi-card {
    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 8px;

    padding: 14px;
}

.kpi-label {
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 4px;
}

.kpi-value {
    color: var(--navy);
    font-size: 23px;
    font-weight: 700;
}


/* =========================================================
   ID / SUMMARY CARDS
========================================================= */

.summary-grid,
.id-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 12px;

    margin-bottom: 14px;
}

.summary-box {
    background: var(--navy-light);

    border-left: 3px solid var(--navy);
    border-radius: 6px;

    padding: 12px 14px;
}

.summary-label {
    color: var(--muted);
    font-size: 10px;
    margin-bottom: 3px;
}

.summary-value {
    color: var(--navy);
    font-size: 19px;
    font-weight: 700;
}

.summary-note {
    color: var(--muted);
    font-size: 10px;
    margin-top: 3px;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {
    padding: 35px 18px;
    text-align: center;
}

.empty-state h3 {
    color: var(--navy);
    font-size: 16px;
    margin-bottom: 5px;
}

.empty-state p {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 14px;
}


/* =========================================================
   ORGANIZATION MASTER
========================================================= */

.organization-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;

    margin-bottom: 14px;
}

.organization-add-card {
    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 8px;

    padding: 12px;
}

.organization-add-card h3 {
    color: var(--navy);
    font-size: 14px;
    margin-bottom: 2px;
}

.organization-add-card p {
    color: var(--muted);
    font-size: 10px;
    margin-bottom: 9px;
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 7px;
}


/* =========================================================
   ACCORDION
========================================================= */

.accordion-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 10px;
}

.accordion-toolbar-actions {
    display: flex;
    gap: 7px;
}

.department-accordion {
    margin-bottom: 8px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 7px;

    overflow: hidden;
}

.department-row {
    min-height: 46px;

    display: grid;
    grid-template-columns:
        minmax(220px, 1fr)
        100px
        100px
        auto;

    align-items: center;

    gap: 12px;

    padding: 8px 12px;

    background: var(--white);
}

.department-row:hover {
    background: #fafbfc;
}

.department-main {
    display: flex;
    align-items: center;
    gap: 8px;

    min-width: 0;
}

.accordion-toggle {
    width: 26px;
    height: 26px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 26px;

    border: 1px solid var(--border-dark);
    border-radius: 5px;

    background: var(--white);
    color: var(--navy);

    cursor: pointer;

    font-size: 11px;
    font-weight: 700;
}

.department-name {
    color: var(--navy);

    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.department-count {
    color: var(--muted);
    font-size: 11px;
}

.department-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.department-details {
    display: none;

    border-top: 1px solid var(--border);

    background: #fbfcfd;
}

.department-accordion.open
.department-details {
    display: block;
}

.department-accordion.open
.accordion-toggle {
    background: var(--navy-light);
}


/* =========================================================
   COMPACT POSITION ROWS
========================================================= */

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

.position-table th {
    background: #f8fafc;
}

.position-name {
    font-weight: 600;
}

.position-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}


/* =========================================================
   INLINE EDITING
========================================================= */

.inline-edit {
    display: flex;
    align-items: center;
    gap: 6px;
}

.inline-edit input,
.inline-edit select {
    min-width: 150px;
}

.inline-edit-wide input {
    min-width: 220px;
}


/* =========================================================
   ACCESS / INFORMATION BAR
========================================================= */

.access-note {
    margin-bottom: 14px;

    padding: 9px 12px;

    background: var(--white);

    border: 1px solid var(--border);
    border-left: 3px solid var(--navy);
    border-radius: 6px;

    color: #4b5563;
    font-size: 11px;
}


/* =========================================================
   SMALL UTILITY CLASSES
========================================================= */

.text-muted {
    color: var(--muted);
}

.text-navy {
    color: var(--navy);
}

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

.font-bold {
    font-weight: 700;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 6px;
}

.mt-2 {
    margin-top: 12px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 6px;
}

.mb-2 {
    margin-bottom: 12px;
}

.hidden {
    display: none !important;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .department-row {
        grid-template-columns:
            minmax(200px, 1fr)
            90px
            auto;
    }

    .department-count {
        display: none;
    }
}


@media (max-width: 760px) {

    .topbar {
        min-height: auto;
        padding: 12px 16px;

        flex-direction: column;
        align-items: flex-start;
    }

    .user-area {
        width: 100%;
        justify-content: space-between;
    }

    .user-info {
        text-align: left;
    }

    .page {
        padding: 16px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
    }

    .form-grid,
    .organization-toolbar,
    .summary-grid,
    .id-summary {
        grid-template-columns: 1fr;
    }

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

    .inline-form {
        flex-direction: column;
        align-items: stretch;
    }

    .department-row {
        grid-template-columns: 1fr;
        gap: 7px;
    }

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

    .search-form {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column-reverse;
    }
}


@media (max-width: 480px) {

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

    .page-title h2 {
        font-size: 21px;
    }
}

/* =========================================================
   DASHBOARD MODULES
========================================================= */

.dashboard-module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.dashboard-module-card {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;

    gap: 12px;

    padding: 14px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 8px;

    text-decoration: none;

    transition: 0.15s ease;
}

.dashboard-module-card:hover {
    border-color: var(--navy);
    transform: translateY(-1px);
}

.dashboard-module-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--navy-light);
    color: var(--navy);

    border-radius: 7px;

    font-size: 11px;
    font-weight: 700;
}

.dashboard-module-content h3 {
    color: var(--navy);

    font-size: 14px;
    margin-bottom: 3px;
}

.dashboard-module-content p {
    color: var(--muted);

    font-size: 11px;
    line-height: 1.35;
}

.dashboard-module-arrow {
    color: var(--navy);

    font-size: 22px;
    font-weight: 700;
}


/* =========================================================
   FUTURE MODULES
========================================================= */

.future-module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.future-module-card {
    min-height: 82px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 10px;

    padding: 12px;

    background: #fafbfc;

    border: 1px solid var(--border);
    border-radius: 6px;
}

.future-module-card strong {
    display: block;

    color: var(--navy);

    font-size: 12px;

    margin-bottom: 4px;
}

.future-module-card p {
    color: var(--muted);

    font-size: 10px;
    line-height: 1.4;
}


/* =========================================================
   DASHBOARD RESPONSIVE
========================================================= */

@media (max-width: 950px) {

    .dashboard-module-grid,
    .future-module-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 650px) {

    .dashboard-module-grid,
    .future-module-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   GLOBAL READABILITY UPGRADE
   Slightly larger text while keeping compact layout
========================================================= */

body {
    font-size: 15px;
    line-height: 1.5;
}


/* TOP BAR */

.brand h1 {
    font-size: 20px;
}

.brand p {
    font-size: 12px;
}

.user-name {
    font-size: 14px;
}

.user-role {
    font-size: 12px;
}

.logout-button {
    font-size: 13px;
}


/* PAGE TITLES */

.page-title h2 {
    font-size: 26px;
}

.page-title p {
    font-size: 14px;
}


/* BUTTONS */

.button {
    font-size: 13px;
}

.button-small {
    font-size: 12px;
}


/* FORMS */

label {
    font-size: 13px;
}

input,
select,
textarea {
    font-size: 14px;
}

.field-note {
    font-size: 11px;
}


/* SECTION HEADINGS */

.section-heading h3 {
    font-size: 16px;
}

.section-heading p {
    font-size: 12px;
}

.card-title {
    font-size: 16px;
}

.card-subtitle {
    font-size: 12px;
}


/* TABLES */

th {
    font-size: 12px;
}

td {
    font-size: 13px;
}


/* BADGES */

.badge,
.status,
.stage-badge {
    font-size: 11px;
}


/* ORGANIZATION MASTER */

.organization-add-card h3 {
    font-size: 15px;
}

.organization-add-card p {
    font-size: 11px;
}

.department-name {
    font-size: 14px;
}

.department-count {
    font-size: 12px;
}

.access-note {
    font-size: 12px;
}


/* DASHBOARD */

.dashboard-module-content h3 {
    font-size: 15px;
}

.dashboard-module-content p {
    font-size: 12px;
    line-height: 1.5;
}

.future-module-card strong {
    font-size: 13px;
}

.future-module-card p {
    font-size: 12px;
    line-height: 1.5;
}

.table-meta,
.employee-count {
    font-size: 12px;
}

.summary-label {
    font-size: 11px;
}

.summary-note {
    font-size: 11px;
}

/* =========================================================
   FINAL READABILITY ADJUSTMENT
========================================================= */

body {
    font-size: 16px;
}


/* PAGE TITLES */

.page-title h2 {
    font-size: 28px;
}

.page-title p {
    font-size: 15px;
}


/* HEADER */

.brand h1 {
    font-size: 21px;
}

.brand p {
    font-size: 13px;
}

.user-name {
    font-size: 14px;
}

.user-role {
    font-size: 12px;
}


/* BUTTONS */

.button {
    font-size: 14px;
}

.button-small {
    font-size: 13px;
}


/* FORM TEXT */

label {
    font-size: 14px;
}

input,
select,
textarea {
    font-size: 15px;
}

.field-note {
    font-size: 12px;
}


/* SECTION HEADINGS */

.section-heading h3 {
    font-size: 17px;
}

.section-heading p {
    font-size: 13px;
}

.card-title {
    font-size: 17px;
}

.card-subtitle {
    font-size: 13px;
}


/* TABLES */

th {
    font-size: 13px;
}

td {
    font-size: 14px;
}


/* STATUS / BADGES */

.badge,
.status,
.stage-badge {
    font-size: 12px;
}


/* ORGANIZATION MASTER */

.organization-add-card h3 {
    font-size: 16px;
}

.organization-add-card p {
    font-size: 12px;
}

.department-name {
    font-size: 15px;
}

.department-count {
    font-size: 13px;
}

.access-note {
    font-size: 13px;
}


/* DASHBOARD */

.dashboard-module-content h3 {
    font-size: 16px;
}

.dashboard-module-content p {
    font-size: 13px;
}

.future-module-card strong {
    font-size: 14px;
}

.future-module-card p {
    font-size: 13px;
}

.table-meta,
.employee-count {
    font-size: 13px;
}

.summary-label {
    font-size: 12px;
}

.summary-note {
    font-size: 12px;
}

/* =========================================================
   LOGIN PAGE
========================================================= */

.login-page {
    min-height: calc(100vh - 62px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px 20px;
}

.login-card {
    width: 100%;
    max-width: 440px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 10px;

    padding: 28px 30px;
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-header h2 {
    color: var(--navy);

    font-size: 27px;
    font-weight: 700;

    margin-bottom: 6px;
}

.login-header p {
    color: var(--muted);

    font-size: 14px;
    line-height: 1.5;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-form .form-group {
    width: 100%;
}

.login-form input {
    min-height: 42px;
}

.login-button {
    width: 100%;
    min-height: 42px;

    margin-top: 4px;

    font-size: 15px;
}

.login-footer {
    margin-top: 20px;

    padding-top: 16px;

    border-top: 1px solid var(--border);

    text-align: center;

    color: var(--muted);
    font-size: 12px;
}


/* =========================================================
   LOGIN RESPONSIVE
========================================================= */

@media (max-width: 520px) {

    .login-page {
        align-items: flex-start;
        padding-top: 35px;
    }

    .login-card {
        padding: 22px 20px;
    }

    .login-header h2 {
        font-size: 24px;
    }

}

/* =========================================================
   PAYROLL-STYLE HR LOGIN
========================================================= */

.hr-login-body {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 34px 24px;

    background:
        radial-gradient(
            circle at top left,
            rgba(23, 54, 93, 0.08),
            transparent 32%
        ),
        #f3f6fa;
}


.hr-login-shell {
    width: min(1080px, 100%);
    min-height: 570px;

    display: grid;
    grid-template-columns: 1.08fr 1fr;

    background: var(--white);

    border: 1px solid #d9e0e8;
    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 24px 60px rgba(15, 35, 60, 0.14);
}


/* =========================================================
   LEFT BRAND PANEL
========================================================= */

.hr-login-brand-panel {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 570px;

    padding: 52px 54px 42px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #142d4f 0%,
            #274a78 100%
        );

    color: #ffffff;
}


.hr-login-logo {
    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 34px;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 13px;

    background: rgba(255, 255, 255, 0.08);

    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
}


.hr-login-brand-content {
    position: relative;
    z-index: 2;
}


.hr-login-eyebrow {
    margin-bottom: 11px;

    color: #c9daf2;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}


.hr-login-brand-content h1 {
    max-width: 460px;

    margin-bottom: 18px;

    font-size: 37px;
    line-height: 1.14;

    font-weight: 700;

    color: #ffffff;
}


.hr-login-brand-content p {
    max-width: 470px;

    color: #edf3fb;

    font-size: 15px;
    line-height: 1.65;
}


.hr-login-tags {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;

    margin-top: 27px;
}


.hr-login-tags span {
    padding: 7px 12px;

    border: 1px solid rgba(255, 255, 255, 0.23);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.08);

    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
}


.hr-login-brand-footer {
    position: relative;
    z-index: 2;

    margin-top: auto;

    color: #d1def0;

    font-size: 11px;
}


.hr-login-decoration {
    position: absolute;

    right: -100px;
    bottom: -145px;

    width: 360px;
    height: 360px;

    border: 38px solid rgba(255, 255, 255, 0.035);
    border-radius: 50%;
}


.hr-login-decoration::after {
    content: "";

    position: absolute;

    inset: 55px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}


/* =========================================================
   RIGHT LOGIN PANEL
========================================================= */

.hr-login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 54px 56px;

    background: #ffffff;
}


.hr-login-form-wrapper {
    width: 100%;
    max-width: 390px;
}


.hr-login-secure-label {
    margin-bottom: 13px;

    color: #355f9d;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}


.hr-login-form-wrapper h2 {
    margin-bottom: 6px;

    color: #0f2d55;

    font-size: 31px;
    line-height: 1.2;

    font-weight: 700;
}


.hr-login-subtitle {
    margin-bottom: 27px;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   LOGIN FORM
========================================================= */

.hr-login-form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}


.hr-login-form label {
    display: block;

    margin-bottom: 6px;

    color: #1f2937;

    font-size: 13px;
    font-weight: 600;
}


.hr-login-form input {
    min-height: 48px;

    padding: 11px 13px;

    border: 1px solid #c9d3df;
    border-radius: 8px;

    background: #ffffff;

    font-size: 15px;
}


.hr-login-form input::placeholder {
    color: #9aa8bb;
}


.hr-login-form input:focus {
    border-color: #3967a8;

    box-shadow:
        0 0 0 3px rgba(57, 103, 168, 0.12);
}


.hr-login-submit {
    min-height: 48px;

    margin-top: 3px;

    border: none;
    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            #223f6c,
            #3d65a0
        );

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 18px rgba(32, 62, 105, 0.18);
}


.hr-login-submit:hover {
    filter: brightness(1.04);
}


/* =========================================================
   LOGIN MESSAGE
========================================================= */

.hr-login-message {
    margin-bottom: 18px;

    padding: 10px 12px;

    border: 1px solid #f0c9c5;
    border-radius: 7px;

    background: #fff3f1;
    color: #9f332a;

    font-size: 13px;
}


/* =========================================================
   RIGHT FOOTER
========================================================= */

.hr-login-right-footer {
    margin-top: 22px;

    padding-top: 17px;

    border-top: 1px solid var(--border);

    text-align: center;

    color: #8793a3;

    font-size: 11px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .hr-login-shell {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .hr-login-brand-panel {
        min-height: auto;
        padding: 34px 36px;
    }

    .hr-login-brand-content h1 {
        font-size: 31px;
    }

    .hr-login-brand-footer {
        margin-top: 30px;
    }

    .hr-login-form-panel {
        padding: 42px 36px;
    }

}


@media (max-width: 520px) {

    .hr-login-body {
        padding: 18px 12px;
    }

    .hr-login-shell {
        border-radius: 14px;
    }

    .hr-login-brand-panel {
        padding: 28px 24px;
    }

    .hr-login-form-panel {
        padding: 34px 24px;
    }

    .hr-login-logo {
        margin-bottom: 24px;
    }

    .hr-login-brand-content h1 {
        font-size: 27px;
    }

    .hr-login-brand-content p {
        font-size: 14px;
    }

    .hr-login-form-wrapper h2 {
        font-size: 27px;
    }

}

/* =========================================================
   EMPLOYEE PROFILE / 201 FILE
========================================================= */


/* =========================================================
   PROFILE HERO
========================================================= */

.employee-profile-hero {
    display: grid;
    grid-template-columns: 190px 1fr auto;
    align-items: center;

    gap: 24px;

    margin-bottom: 14px;
    padding: 18px 20px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 9px;
}


.employee-profile-id {
    padding-right: 20px;

    border-right: 1px solid var(--border);
}


.employee-profile-id-label,
.profile-small-label {
    margin-bottom: 4px;

    color: var(--muted);

    font-size: 12px;
    font-weight: 600;
}


.employee-profile-id-value {
    color: var(--navy);

    font-size: 24px;
    font-weight: 700;
}


.employee-profile-previous-id {
    margin-top: 4px;

    color: var(--muted);

    font-size: 12px;
}


.employee-profile-main h1 {
    margin-bottom: 3px;

    color: var(--navy);

    font-size: 25px;
    line-height: 1.2;
}


.employee-profile-preferred {
    margin-bottom: 5px;

    color: var(--muted);

    font-size: 13px;
}


.employee-profile-meta {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #4b5563;

    font-size: 14px;
}


.employee-profile-dot {
    color: #a5acb6;
}


.employee-profile-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 22px;
}


.employee-profile-status-group {
    min-width: 110px;
}


/* =========================================================
   PROFILE TABS
========================================================= */

.employee-profile-tabs {
    display: flex;
    align-items: center;
    gap: 5px;

    margin-bottom: 14px;
    padding: 6px;

    overflow-x: auto;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 8px;
}


.employee-profile-tab {
    padding: 8px 13px;

    border-radius: 5px;

    color: #4b5563;

    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;
}


.employee-profile-tab.active {
    background: var(--navy);
    color: #ffffff;
}


.employee-profile-tab.disabled {
    color: #9ca3af;
    cursor: default;
}


/* =========================================================
   PROFILE GRID
========================================================= */

.employee-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 14px;

    margin-bottom: 14px;
}


.profile-card {
    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 8px;

    padding: 16px 18px;
}


.profile-card-full {
    margin-bottom: 14px;
}


.profile-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding-bottom: 10px;
    margin-bottom: 12px;

    border-bottom: 1px solid var(--border);
}


.profile-card-header h3 {
    color: var(--navy);

    font-size: 17px;
    font-weight: 700;

    margin-bottom: 2px;
}


.profile-card-header p {
    color: var(--muted);

    font-size: 12px;
}


/* =========================================================
   PROFILE DETAILS
========================================================= */

.profile-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 13px 20px;
}


.profile-detail.full {
    grid-column: 1 / -1;
}


.profile-detail-label {
    margin-bottom: 3px;

    color: var(--muted);

    font-size: 12px;
    font-weight: 600;
}


.profile-detail-value {
    color: var(--text);

    font-size: 14px;
    font-weight: 600;

    word-break: break-word;
}


/* =========================================================
   STAGE DATES
========================================================= */

.profile-stage-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);

    gap: 10px;
}


.profile-stage-item {
    padding: 12px 13px;

    background: #f8fafc;

    border: 1px solid var(--border);
    border-radius: 6px;
}


.profile-stage-label {
    margin-bottom: 4px;

    color: var(--muted);

    font-size: 11px;
    font-weight: 600;
}


.profile-stage-value {
    color: var(--navy);

    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   ID HISTORY
========================================================= */

.profile-id-history {
    display: grid;
    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    gap: 18px;
}


.profile-id-history-item {
    padding: 13px 15px;

    background: var(--navy-light);

    border: 1px solid #d8e2ee;
    border-radius: 7px;
}


.profile-id-history-value {
    color: var(--navy);

    font-size: 18px;
    font-weight: 700;
}


.profile-id-history-arrow {
    color: var(--navy);

    font-size: 24px;
    font-weight: 700;
}


/* =========================================================
   REMARKS
========================================================= */

.profile-remarks {
    min-height: 50px;

    padding: 12px 14px;

    background: #f8fafc;

    border: 1px solid var(--border);
    border-radius: 6px;

    color: #374151;

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   201 FILE MODULES
========================================================= */

.profile-module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 8px;
}


.profile-module-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    min-height: 52px;

    padding: 10px 12px;

    background: #fafbfc;

    border: 1px solid var(--border);
    border-radius: 6px;
}


.profile-module-item strong {
    color: var(--navy);

    font-size: 13px;
}


/* =========================================================
   EMPLOYEE PROFILE RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

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

    .employee-profile-status {
        grid-column: 1 / -1;

        justify-content: flex-start;

        padding-top: 12px;

        border-top: 1px solid var(--border);
    }

    .profile-stage-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}


@media (max-width: 800px) {

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

    .profile-stage-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-module-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 620px) {

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

    .employee-profile-id {
        padding-right: 0;
        padding-bottom: 12px;

        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .employee-profile-status {
        grid-column: auto;

        flex-direction: column;
        align-items: flex-start;

        gap: 12px;
    }

    .profile-detail-grid,
    .profile-stage-grid,
    .profile-module-grid {
        grid-template-columns: 1fr;
    }

    .profile-id-history {
        grid-template-columns: 1fr;
    }

    .profile-id-history-arrow {
        transform: rotate(90deg);
        text-align: center;
    }

}

/* =========================================================
   LOGIN LOGO SIZE ADJUSTMENT
========================================================= */

.hr-login-logo {
    width: 115px !important;
    height: 115px !important;

    padding: 3px !important;

    margin-bottom: 28px !important;

    border-radius: 50% !important;

    background: rgba(255, 255, 255, 0.08) !important;
}


.hr-login-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;

    border-radius: 50%;
}

/* =========================================================
   FINAL LOGIN BRAND BALANCE
========================================================= */

/* CENTER AND ENLARGE COMPANY LOGO */

.hr-login-logo {
    align-self: center !important;

    width: 150px !important;
    height: 150px !important;

    margin: 0 auto 25px !important;
    padding: 3px !important;

    border-radius: 50% !important;

    background: transparent !important;
    border: none !important;
}


.hr-login-logo img {
    width: 100% !important;
    height: 100% !important;

    object-fit: contain !important;

    display: block;

    border-radius: 50%;
}


/* SLIGHTLY REDUCE MAIN SYSTEM TITLE */

.hr-login-brand-content h1 {
    max-width: 440px;

    font-size: 32px;
    line-height: 1.16;

    margin-bottom: 18px;
}


/* KEEP COMPANY LABEL PROPORTIONAL */

.hr-login-eyebrow {
    font-size: 12px;
    letter-spacing: 2px;

    margin-bottom: 10px;
}


/* SLIGHTLY TIGHTER DESCRIPTION */

.hr-login-brand-content p {
    max-width: 455px;

    font-size: 14px;
    line-height: 1.6;
}


/* BALANCE VERTICAL SPACE IN LEFT PANEL */

.hr-login-brand-panel {
    padding-top: 35px;
    padding-bottom: 36px;
}


/* MOBILE / SMALL SCREEN */

@media (max-width: 900px) {

    .hr-login-logo {
        width: 125px !important;
        height: 125px !important;
    }

    .hr-login-brand-content h1 {
        font-size: 29px;
    }

}


@media (max-width: 520px) {

    .hr-login-logo {
        width: 105px !important;
        height: 105px !important;

        margin-bottom: 20px !important;
    }

    .hr-login-brand-content h1 {
        font-size: 26px;
    }

}

/* =========================================================
   SHARED SYSTEM HEADER LOGO
========================================================= */

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


.system-logo {
    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    display: flex;
    align-items: center;
    justify-content: center;
}


.system-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    display: block;

    border-radius: 50%;
}


.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.brand-text h1 {
    margin: 0;

    font-size: 21px;
    line-height: 1.05;
}


.brand-text p {
    margin: 3px 0 0;

    font-size: 13px;
    line-height: 1.1;
}


/* =========================================================
   HEADER LOGO RESPONSIVE
========================================================= */

@media (max-width: 650px) {

    .system-logo {
        width: 40px;
        height: 40px;

        flex-basis: 40px;
    }

    .brand-text h1 {
        font-size: 18px;
    }

    .brand-text p {
        font-size: 11px;
    }

}

/* =========================================================
   EMPLOYEE 201 FILE - CORPORATE PRINT / PDF
========================================================= */

.print-201-body {
    margin: 0;
    padding: 0;

    background: #e9edf2;

    color: #172033;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


/* =========================================================
   SCREEN CONTROLS
========================================================= */

.print-201-screen-controls {
    width: 210mm;
    max-width: calc(100% - 32px);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin: 24px auto 14px;
}


/* =========================================================
   A4 DOCUMENT
========================================================= */

.print-201-document {
    width: 210mm;
    min-height: 297mm;

    margin: 0 auto 30px;

    padding:
        14mm
        14mm
        20mm;

    background: #ffffff;

    box-sizing: border-box;

    box-shadow:
        0 16px 40px
        rgba(20, 42, 72, 0.14);
}


/* =========================================================
   CORPORATE HEADER
========================================================= */

.print-201-header {
    display: grid;

    grid-template-columns:
        24mm
        1fr
        42mm;

    align-items: center;

    gap: 5mm;

    padding-bottom: 5mm;

    margin-bottom: 5mm;

    border-bottom:
        2px solid
        #203f6d;
}


.print-201-logo {
    width: 22mm;
    height: 22mm;

    display: flex;
    align-items: center;
    justify-content: center;
}


.print-201-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


.print-201-company-name {
    margin-bottom: 1mm;

    color: #203f6d;

    font-size: 17pt;
    font-weight: 700;
}


.print-201-document-title {
    color: #111827;

    font-size: 12pt;
    font-weight: 700;

    letter-spacing: 0.8px;
}


.print-201-document-subtitle {
    margin-top: 1mm;

    color: #697386;

    font-size: 8.5pt;
}


.print-201-document-meta {
    display: flex;
    flex-direction: column;

    gap: 4mm;

    text-align: right;
}


.print-201-document-meta div {
    display: flex;
    flex-direction: column;

    gap: 1mm;
}


.print-201-document-meta span {
    color: #697386;

    font-size: 7.5pt;
    font-weight: 600;
}


.print-201-document-meta strong {
    color: #203f6d;

    font-size: 9.5pt;
}


/* =========================================================
   EMPLOYEE SUMMARY
========================================================= */

.print-201-summary {
    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr;

    gap: 4mm 6mm;

    margin-bottom: 6mm;

    padding: 5mm;

    background: #f4f7fb;

    border:
        1px solid
        #dce4ee;

    border-radius: 3mm;
}


.print-201-summary-name {
    grid-row: span 2;
}


.print-201-name {
    color: #17385f;

    font-size: 15pt;
    font-weight: 700;

    line-height: 1.2;
}


.print-201-label {
    display: block;

    margin-bottom: 1.2mm;

    color: #687386;

    font-size: 7.5pt;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.3px;
}


.print-201-value {
    color: #111827;

    font-size: 9pt;
    font-weight: 700;
}


.print-201-small {
    margin-top: 1.5mm;

    color: #697386;

    font-size: 8pt;
}


/* =========================================================
   DOCUMENT SECTIONS
========================================================= */

.print-201-section {
    margin-bottom: 5mm;

    break-inside: avoid;
    page-break-inside: avoid;
}


.print-201-section h2 {
    margin:
        0
        0
        3mm;

    padding:
        2.2mm
        3mm;

    background: #203f6d;

    color: #ffffff;

    font-size: 9.5pt;
    font-weight: 700;

    letter-spacing: 0.2px;

    border-radius: 1.5mm;
}


/* =========================================================
   INFORMATION GRID
========================================================= */

.print-201-grid {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    column-gap: 8mm;
    row-gap: 3.5mm;

    padding:
        3.5mm
        4mm;

    border:
        1px solid
        #dfe5ec;

    border-radius: 2mm;
}


.print-201-grid > div {
    min-height: 10mm;

    padding-bottom: 1.5mm;

    border-bottom:
        1px dotted
        #d7dde5;
}


.print-201-grid strong {
    display: block;

    color: #151d2b;

    font-size: 9pt;
    font-weight: 600;

    line-height: 1.35;

    word-break: break-word;
}


.print-201-full {
    grid-column: 1 / -1;
}


/* =========================================================
   COMPANY ID HISTORY
========================================================= */

.print-201-id-history {
    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;

    gap: 5mm;

    padding:
        4mm;

    border:
        1px solid
        #dfe5ec;

    border-radius: 2mm;
}


.print-201-id-history > div:not(
    .print-201-id-arrow
) {
    padding:
        4mm;

    background: #f4f7fb;

    border:
        1px solid
        #dce4ee;

    border-radius: 2mm;
}


.print-201-id-history strong {
    display: block;

    color: #17385f;

    font-size: 12pt;
}


.print-201-id-arrow {
    color: #203f6d;

    font-size: 16pt;
    font-weight: 700;

    text-align: center;
}


/* =========================================================
   REMARKS
========================================================= */

.print-201-remarks {
    min-height: 16mm;

    padding: 4mm;

    border:
        1px solid
        #dfe5ec;

    border-radius: 2mm;

    color: #202938;

    font-size: 9pt;
    line-height: 1.5;
}


/* =========================================================
   FUTURE MODULE PLACEHOLDERS
========================================================= */

.print-201-future p {
    margin: 0;

    padding: 4mm;

    border:
        1px solid
        #dfe5ec;

    border-radius: 2mm;

    color: #7a8493;

    font-size: 8.5pt;
    font-style: italic;
}


/* =========================================================
   CORPORATE FOOTER
========================================================= */

.print-201-footer {
    margin-top: 8mm;

    padding-top: 4mm;

    border-top:
        1.5px solid
        #203f6d;

    text-align: center;

    color: #596579;
}


.print-201-footer-company {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    flex-wrap: wrap;

    font-size: 8pt;
}


.print-201-footer-company strong {
    color: #203f6d;

    font-size: 8.5pt;
}


.print-201-footer-contact {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    flex-wrap: wrap;

    margin-top: 1.5mm;

    font-size: 7.5pt;
}


.print-201-confidential {
    margin-top: 2mm;

    color: #203f6d;

    font-size: 7pt;
    font-weight: 700;

    letter-spacing: 0.8px;
}


/* =========================================================
   SCREEN RESPONSIVE
========================================================= */

@media screen and (max-width: 900px) {

    .print-201-screen-controls {
        width: auto;
        margin-left: 16px;
        margin-right: 16px;
    }

    .print-201-document {
        width: calc(100% - 24px);

        padding:
            20px;

        margin-left: 12px;
        margin-right: 12px;
    }

}


/* =========================================================
   PRINT SETTINGS
========================================================= */

@page {
    size: A4;
    margin:
        12mm
        12mm
        18mm;
}


@media print {

    html,
    body {
        margin: 0 !important;
        padding: 0 !important;

        background: #ffffff !important;
    }


    .print-201-screen-controls {
        display: none !important;
    }


    .print-201-document {
        width: auto !important;
        min-height: auto !important;

        margin: 0 !important;
        padding: 0 !important;

        box-shadow: none !important;

        background: #ffffff !important;
    }


    .print-201-header {
        margin-top: 0;
    }


    .print-201-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }


    .print-201-grid,
    .print-201-summary,
    .print-201-id-history,
    .print-201-remarks {
        break-inside: avoid;
        page-break-inside: avoid;
    }


    .print-201-section h2,
    .print-201-summary {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }


    .print-201-footer {
        break-inside: avoid;
        page-break-inside: avoid;
    }


    a {
        color: inherit !important;
        text-decoration: none !important;
    }

}

/* =========================================================
   EMPLOYEE 201 FILE
   FINAL CORPORATE PRINT LAYOUT
========================================================= */


/* =========================================================
   PAGE / SCREEN PREVIEW
========================================================= */

.print-201-body {
    margin: 0;
    padding: 0;

    background: #e8edf3;

    color: #182235;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


.print-201-screen-controls {
    width: 210mm;
    max-width: calc(100% - 32px);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin: 20px auto 12px;
}


.print-201-document {
    width: 210mm;
    min-height: 297mm;

    margin: 0 auto 32px;

    padding:
        10mm
        12mm
        18mm;

    box-sizing: border-box;

    background: #ffffff;

    box-shadow:
        0 16px 42px
        rgba(25, 45, 70, 0.15);
}


/* =========================================================
   CORPORATE HEADER
========================================================= */

.print-201-header,
.print-201-header-compact {
    display: grid;

    grid-template-columns:
        18mm
        1fr
        38mm;

    align-items: center;

    gap: 5mm;

    margin-bottom: 4mm;
    padding-bottom: 3.5mm;

    border-bottom:
        1.5px solid
        #213f6b;
}


.print-201-logo {
    width: 17mm;
    height: 17mm;

    display: flex;
    align-items: center;
    justify-content: center;
}


.print-201-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}


.print-201-company-name {
    margin: 0 0 0.6mm;

    color: #213f6b;

    font-size: 15pt;
    font-weight: 700;

    line-height: 1.05;
}


.print-201-document-title {
    margin: 0;

    color: #111827;

    font-size: 10.5pt;
    font-weight: 700;

    letter-spacing: 0.8px;
}


.print-201-document-subtitle {
    margin-top: 0.8mm;

    color: #687487;

    font-size: 7.3pt;
}


.print-201-document-meta {
    display: flex;
    flex-direction: column;

    gap: 2.5mm;

    text-align: right;
}


.print-201-document-meta div {
    display: flex;
    flex-direction: column;

    gap: 0.5mm;
}


.print-201-document-meta span {
    color: #778296;

    font-size: 6.7pt;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.25px;
}


.print-201-document-meta strong {
    color: #17375f;

    font-size: 8.7pt;
    font-weight: 700;
}


/* =========================================================
   COMPACT EMPLOYEE SUMMARY
========================================================= */

.print-201-summary,
.print-201-summary-compact {
    display: grid;

    grid-template-columns:
        1.8fr
        1fr
        1fr;

    gap: 3mm 6mm;

    margin-bottom: 4mm;
    padding: 3.5mm 4mm;

    background: #f5f7fa;

    border:
        1px solid
        #d9e0e8;

    border-radius: 1.5mm;
}


.print-201-summary strong,
.print-201-summary-compact strong {
    display: block;

    color: #172033;

    font-size: 8.5pt;
    font-weight: 700;

    line-height: 1.25;
}


.print-summary-name {
    grid-row: span 2;
}


.print-summary-primary {
    color: #17375f !important;

    font-size: 12pt !important;

    line-height: 1.15 !important;
}


.print-summary-note {
    display: block;

    margin-top: 1mm;

    color: #6c7687;

    font-size: 7pt;
}


/* =========================================================
   SHARED LABELS
========================================================= */

.print-201-label {
    display: block;

    margin-bottom: 0.7mm;

    color: #697589;

    font-size: 6.6pt;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.3px;
}


/* =========================================================
   SECTIONS
========================================================= */

.print-201-section {
    margin-bottom: 3.5mm;
}


.print-201-section h2 {
    margin:
        0
        0
        2mm;

    padding:
        1.5mm
        2.5mm;

    background: #254a7b;

    color: #ffffff;

    border-radius: 0.8mm;

    font-size: 8.5pt;
    font-weight: 700;

    line-height: 1.25;

    letter-spacing: 0.15px;
}


/* =========================================================
   INFORMATION GRIDS
========================================================= */

.print-201-grid {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    column-gap: 7mm;
    row-gap: 0;

    padding:
        2mm
        3mm;

    border:
        1px solid
        #dde3ea;

    border-radius: 1mm;
}


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


.print-201-grid-three {
    grid-template-columns:
        repeat(3, 1fr);

    column-gap: 5mm;
}


.print-201-grid > div {
    min-height: 8.5mm;

    padding:
        1.5mm
        0
        1.2mm;

    border-bottom:
        1px dotted
        #d7dde5;
}


.print-201-grid strong {
    display: block;

    color: #151d2b;

    font-size: 8pt;
    font-weight: 600;

    line-height: 1.3;

    word-break: break-word;
}


.print-201-full {
    grid-column: 1 / -1;
}


/* =========================================================
   EMPLOYMENT STAGE TABLE
========================================================= */

.print-stage-table {
    border:
        1px solid
        #dce2e9;

    border-radius: 1mm;

    overflow: hidden;
}


.print-stage-row {
    display: grid;

    grid-template-columns:
        1.4fr
        1fr
        1fr;

    border-bottom:
        1px solid
        #e1e6ec;
}


.print-stage-row:last-child {
    border-bottom: none;
}


.print-stage-row > div {
    padding:
        2mm
        2.5mm;

    color: #1b2433;

    font-size: 7.8pt;

    border-right:
        1px solid
        #e1e6ec;
}


.print-stage-row > div:last-child {
    border-right: none;
}


.print-stage-header {
    background: #f1f4f8;
}


.print-stage-header > div {
    color: #586579;

    font-size: 6.8pt;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.25px;
}


/* =========================================================
   COMPANY ID HISTORY
========================================================= */

.print-id-table {
    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;

    gap: 4mm;

    padding:
        2.5mm
        3mm;

    border:
        1px solid
        #dce2e9;

    border-radius: 1mm;
}


.print-id-table > div:not(
    .print-id-progress
) {
    padding:
        2.5mm
        3mm;

    background: #f5f7fa;
}


.print-id-table strong {
    color: #17375f;

    font-size: 10pt;
    font-weight: 700;
}


.print-id-progress {
    color: #254a7b;

    font-size: 14pt;
    font-weight: 700;
}


/* =========================================================
   REMARKS
========================================================= */

.print-201-remarks {
    min-height: 10mm;

    padding:
        2.5mm
        3mm;

    border:
        1px solid
        #dde3ea;

    border-radius: 1mm;

    color: #253044;

    font-size: 8pt;
    line-height: 1.4;
}


/* =========================================================
   ADDITIONAL 201 RECORDS
========================================================= */

.print-record-status-table {
    border:
        1px solid
        #dce2e9;

    border-radius: 1mm;

    overflow: hidden;
}


.print-record-status-row {
    display: grid;

    grid-template-columns:
        1fr
        35mm;

    align-items: center;

    min-height: 7mm;

    border-bottom:
        1px solid
        #e2e7ed;
}


.print-record-status-row:last-child {
    border-bottom: none;
}


.print-record-status-row span {
    padding:
        1.5mm
        2.5mm;

    color: #283548;

    font-size: 7.7pt;
}


.print-record-status-row strong {
    padding:
        1.5mm
        2.5mm;

    background: #f6f7f9;

    color: #6d7788;

    font-size: 7.2pt;
    font-weight: 600;

    text-align: center;
}


/* =========================================================
   DOCUMENT CONTROL
========================================================= */

.print-document-control {
    display: grid;

    grid-template-columns:
        1.4fr
        1fr
        1.2fr;

    gap: 3mm;

    margin-top: 5mm;
    padding:
        2.5mm
        3mm;

    background: #f6f8fa;

    border-top:
        1px solid
        #d5dde6;

    border-bottom:
        1px solid
        #d5dde6;
}


.print-document-control strong {
    display: block;

    color: #263650;

    font-size: 7.3pt;
}


/* =========================================================
   CORPORATE FOOTER
========================================================= */

.print-201-footer {
    margin-top: 4mm;
    padding-top: 2.5mm;

    border-top:
        1.2px solid
        #254a7b;

    text-align: center;

    color: #606d80;
}


.print-footer-main {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    flex-wrap: wrap;

    font-size: 7pt;
}


.print-footer-main strong {
    color: #254a7b;

    font-size: 7.5pt;
}


.print-footer-contact {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    margin-top: 0.8mm;

    font-size: 6.8pt;
}


.print-footer-separator {
    color: #a0a8b5;
}


.print-201-confidential {
    margin-top: 1mm;

    color: #254a7b;

    font-size: 6.3pt;
    font-weight: 700;

    letter-spacing: 0.7px;
}


/* =========================================================
   SCREEN RESPONSIVE
========================================================= */

@media screen and (max-width: 900px) {

    .print-201-screen-controls {
        width: auto;

        margin-left: 14px;
        margin-right: 14px;
    }


    .print-201-document {
        width: calc(100% - 24px);

        margin-left: 12px;
        margin-right: 12px;

        padding:
            20px;
    }

}


/* =========================================================
   PRINT SETTINGS
========================================================= */

@page {
    size: A4;

    margin:
        10mm
        11mm
        14mm;
}


@media print {

    html,
    body {
        margin: 0 !important;
        padding: 0 !important;

        background: #ffffff !important;
    }


    .print-201-screen-controls {
        display: none !important;
    }


    .print-201-document {
        width: auto !important;
        min-height: auto !important;

        margin: 0 !important;

        padding:
            0
            0
            12mm !important;

        box-shadow: none !important;

        background: #ffffff !important;
    }


    .print-201-header {
        break-inside: avoid;
        page-break-inside: avoid;
    }


    .print-201-summary {
        break-inside: avoid;
        page-break-inside: avoid;
    }


    .print-201-section h2 {
        break-after: avoid;
        page-break-after: avoid;
    }


    .print-stage-table,
    .print-id-table,
    .print-record-status-table,
    .print-document-control {
        break-inside: avoid;
        page-break-inside: avoid;
    }


    .print-201-section h2,
    .print-201-summary,
    .print-stage-header,
    .print-record-status-row strong,
    .print-document-control {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }


    a {
        color: inherit !important;
        text-decoration: none !important;
    }

}

/* =========================================================
   FINAL PRINT FOOTER POSITION
   Fixed corporate footer on every A4 page
========================================================= */

@media print {

    /* Reserve space at the bottom of every printed page */
    @page {
        size: A4;

        margin:
            10mm
            11mm
            20mm;
    }


    /* Keep document content away from footer */
    .print-201-document {
        padding-bottom: 8mm !important;
    }


    /* Fixed corporate footer */
    .print-201-footer {
        position: fixed;

        left: 0;
        right: 0;

        bottom: -14mm;

        height: 12mm;

        margin: 0 !important;
        padding-top: 2mm !important;

        background: #ffffff;

        border-top:
            1.2px solid
            #254a7b;

        text-align: center;

        z-index: 100;
    }


    .print-footer-main {
        font-size: 6.8pt;
        line-height: 1.25;
    }


    .print-footer-main strong {
        font-size: 7.3pt;
    }


    .print-footer-contact {
        margin-top: 0.6mm;

        font-size: 6.5pt;
        line-height: 1.2;
    }


    .print-201-confidential {
        margin-top: 0.7mm;

        font-size: 6pt;
        line-height: 1.2;
    }

}

/* =========================================================
   EMPLOYEE 201 FILE
   EXPLICIT TWO-PAGE A4 LAYOUT
========================================================= */


/* =========================================================
   SCREEN DOCUMENT SET
========================================================= */

.print-201-document-set {
    width: 210mm;
    max-width: calc(100% - 24px);

    margin: 0 auto 35px;

    display: flex;
    flex-direction: column;

    gap: 18px;
}


/* =========================================================
   INDIVIDUAL A4 PAGE
========================================================= */

.print-201-page {
    width: 210mm;
    min-height: 297mm;

    box-sizing: border-box;

    padding:
        10mm
        11mm
        9mm;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    box-shadow:
        0 16px 42px
        rgba(25, 45, 70, 0.15);

    overflow: hidden;
}


/* Main page content takes available space.
   Footer is pushed to the bottom automatically. */

.print-201-page-content {
    width: 100%;

    flex: 1 1 auto;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   PAGE FOOTER
========================================================= */

.print-201-page-footer {
    width: 100%;

    flex: 0 0 auto;

    margin-top: auto;

    padding-top: 2.5mm;

    border-top:
        1.2px solid
        #254a7b;

    position: relative;

    text-align: center;

    color: #606d80;

    background: #ffffff;
}


.print-201-page-footer .print-footer-main {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    flex-wrap: wrap;

    font-size: 6.8pt;
    line-height: 1.25;
}


.print-201-page-footer .print-footer-main strong {
    color: #254a7b;

    font-size: 7.3pt;
}


.print-201-page-footer .print-footer-contact {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    margin-top: 0.6mm;

    font-size: 6.4pt;
    line-height: 1.2;
}


.print-201-page-footer .print-201-confidential {
    margin-top: 0.8mm;

    color: #254a7b;

    font-size: 6pt;
    font-weight: 700;

    letter-spacing: 0.7px;

    line-height: 1.2;
}


/* =========================================================
   PAGE NUMBER
========================================================= */

.print-page-number {
    position: absolute;

    right: 0;
    bottom: 0;

    color: #687487;

    font-size: 6.3pt;
    font-weight: 600;
}


/* =========================================================
   PAGE 2 CONTINUATION HEADER
========================================================= */

.print-continuation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10mm;

    margin-bottom: 4mm;
    padding-bottom: 3mm;

    border-bottom:
        1.5px solid
        #254a7b;
}


.print-continuation-header > div:first-child {
    display: flex;
    flex-direction: column;

    gap: 0.8mm;
}


.print-continuation-header > div:first-child strong {
    color: #254a7b;

    font-size: 10pt;
    font-weight: 700;

    letter-spacing: 0.5px;
}


.print-continuation-header > div:first-child span {
    color: #263650;

    font-size: 8pt;
    font-weight: 600;
}


.print-continuation-id {
    display: flex;
    flex-direction: column;

    gap: 0.5mm;

    text-align: right;
}


.print-continuation-id span {
    color: #788397;

    font-size: 6.5pt;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.3px;
}


.print-continuation-id strong {
    color: #17375f;

    font-size: 9pt;
}


/* =========================================================
   SMALL PAGE-2 SPACING ADJUSTMENTS
========================================================= */

.print-201-page:nth-child(2)
.print-201-section {
    margin-bottom: 3.2mm;
}


.print-201-page:nth-child(2)
.print-document-control {
    margin-top: 4mm;
}


/* =========================================================
   SCREEN RESPONSIVE
========================================================= */

@media screen and (max-width: 900px) {

    .print-201-document-set {
        width: auto;

        max-width: none;

        margin-left: 12px;
        margin-right: 12px;
    }


    .print-201-page {
        width: 100%;
        min-height: auto;

        padding: 20px;

        overflow: visible;
    }

}


/* =========================================================
   ACTUAL A4 PRINTING
========================================================= */

@page {
    size: A4;
    margin: 0;
}


@media print {

    html,
    body {
        width: 210mm;

        margin: 0 !important;
        padding: 0 !important;

        background: #ffffff !important;
    }


    .print-201-screen-controls {
        display: none !important;
    }


    .print-201-document-set {
        width: 210mm !important;
        max-width: none !important;

        margin: 0 !important;

        display: block !important;
    }


    .print-201-page {
        width: 210mm !important;
        height: 297mm !important;
        min-height: 297mm !important;

        margin: 0 !important;

        padding:
            10mm
            11mm
            9mm !important;

        box-sizing: border-box !important;

        display: flex !important;
        flex-direction: column !important;

        overflow: hidden !important;

        box-shadow: none !important;

        background: #ffffff !important;

        break-after: page;
        page-break-after: always;
    }


    .print-201-page:last-child {
        break-after: auto;
        page-break-after: auto;
    }


    .print-201-page-content {
        flex: 1 1 auto !important;
    }


    .print-201-page-footer {
        position: relative !important;

        left: auto !important;
        right: auto !important;
        bottom: auto !important;

        height: auto !important;

        margin-top: auto !important;

        flex: 0 0 auto !important;
    }


    .print-201-header,
    .print-201-summary,
    .print-stage-table,
    .print-id-table,
    .print-record-status-table,
    .print-document-control,
    .print-201-page-footer {
        break-inside: avoid;
        page-break-inside: avoid;
    }


    .print-201-section h2 {
        break-after: avoid;
        page-break-after: avoid;
    }


    .print-201-section h2,
    .print-201-summary,
    .print-stage-header,
    .print-record-status-row strong,
    .print-document-control,
    .print-201-page-footer {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }


    a {
        color: inherit !important;
        text-decoration: none !important;
    }

}


/* =========================================================
   COMPACT HR SCREEN LAYOUT / SECTION CONTRAST
   Added for faster scanning on desktop screens.
   Print/PDF styling is intentionally unaffected.
========================================================= */

@media screen {

    /* ---------------------------------------------------------
       MAIN WORKING AREA
    --------------------------------------------------------- */

    .page {
        width: min(1320px, 100%);
        padding: 16px 20px 26px;
    }

    .page-header {
        gap: 12px;
        margin-bottom: 12px;
    }


    /* ---------------------------------------------------------
       EMPLOYEE 201 PROFILE - COMPACT SUMMARY
    --------------------------------------------------------- */

    .employee-profile-hero {
        gap: 16px;
        margin-bottom: 10px;
        padding: 13px 15px;

        border-color: #ccd8e6;

        box-shadow:
            0 1px 3px rgba(23, 54, 93, 0.05);
    }

    .employee-profile-id {
        padding-right: 14px;
    }

    .employee-profile-id-value {
        font-size: 21px;
    }

    .employee-profile-main h1 {
        font-size: 22px;
    }

    .employee-profile-preferred {
        margin-bottom: 3px;
        font-size: 12px;
    }

    .employee-profile-meta {
        gap: 6px;
        font-size: 13px;
    }

    .employee-profile-status {
        gap: 14px;
    }

    .employee-profile-status-group {
        min-width: 96px;
    }


    /* ---------------------------------------------------------
       PROFILE NAVIGATION
    --------------------------------------------------------- */

    .employee-profile-tabs {
        gap: 4px;

        margin-bottom: 10px;
        padding: 4px;

        background: #eaf0f7;
        border-color: #cbd8e7;
    }

    .employee-profile-tab {
        padding: 7px 11px;

        font-size: 12px;
    }

    .employee-profile-tab.active {
        background: var(--navy);

        box-shadow:
            0 1px 2px rgba(16, 42, 74, 0.15);
    }


    /* ---------------------------------------------------------
       PROFILE CARDS
    --------------------------------------------------------- */

    .employee-profile-grid {
        gap: 10px;
        margin-bottom: 10px;
    }

    .profile-card {
        padding: 0 12px 10px;

        overflow: hidden;

        border-color: #d4dde8;

        box-shadow:
            0 1px 3px rgba(23, 54, 93, 0.04);
    }

    .profile-card-full {
        margin-bottom: 10px;
    }

    .profile-card-header {
        margin: 0 -12px 9px;
        padding: 9px 12px 8px;

        background:
            linear-gradient(
                90deg,
                #e8eff7 0%,
                #f4f7fb 100%
            );

        border-bottom: 1px solid #d6e0eb;
        border-left: 4px solid var(--navy);
    }

    .profile-card-header h3 {
        font-size: 15px;
    }

    .profile-card-header p {
        font-size: 11px;
    }


    /* ---------------------------------------------------------
       PROFILE FIELD GROUPS
    --------------------------------------------------------- */

    .profile-detail-grid {
        gap: 6px 8px;
    }

    .profile-detail {
        min-height: 48px;

        padding: 6px 8px;

        background: #f8fafc;

        border: 1px solid #edf1f5;
        border-radius: 5px;
    }

    .profile-detail-label {
        margin-bottom: 2px;

        color: #50647e;

        font-size: 11px;
        font-weight: 700;
    }

    .profile-detail-value {
        font-size: 13px;
        line-height: 1.3;
    }


    /* ---------------------------------------------------------
       STAGE DATES / ID HISTORY
    --------------------------------------------------------- */

    .profile-stage-grid {
        gap: 7px;
    }

    .profile-stage-item {
        padding: 9px 10px;

        background: #f5f8fc;

        border-color: #dce5ef;
        border-top: 3px solid #7793b6;
    }

    .profile-stage-label {
        margin-bottom: 2px;

        color: #50647e;

        font-size: 10px;
        font-weight: 700;
    }

    .profile-stage-value {
        font-size: 13px;
    }

    .profile-id-history {
        gap: 12px;
    }

    .profile-id-history-item {
        padding: 10px 12px;

        background: #edf3f9;

        border-color: #d2deeb;
    }

    .profile-id-history-value {
        font-size: 16px;
    }

    .profile-id-history-arrow {
        font-size: 20px;
    }


    /* ---------------------------------------------------------
       REMARKS / MODULES
    --------------------------------------------------------- */

    .profile-remarks {
        min-height: 38px;

        padding: 9px 11px;

        font-size: 13px;
        line-height: 1.45;
    }

    .profile-module-grid {
        gap: 6px;
    }

    .profile-module-item {
        min-height: 44px;

        padding: 8px 10px;

        background: #f7f9fc;

        border-color: #dce4ee;
    }

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


    /* ---------------------------------------------------------
       ADD / EDIT FORMS - STRONGER SECTION SEPARATION
    --------------------------------------------------------- */

    .form-section {
        padding: 0 14px 12px;
        margin-bottom: 10px;

        overflow: hidden;

        border-color: #d4dde8;
    }

    .section-heading {
        margin: 0 -14px 10px;
        padding: 9px 14px 8px;

        align-items: center;

        background:
            linear-gradient(
                90deg,
                #e8eff7 0%,
                #f4f7fb 100%
            );

        border-bottom: 1px solid #d6e0eb;
        border-left: 4px solid var(--navy);
    }

    .section-heading h3 {
        font-size: 15px;
    }

    .section-heading p {
        font-size: 11px;
    }

    .form-grid {
        gap: 10px 12px;
    }


    /* ---------------------------------------------------------
       TABLE / SEARCH DENSITY
    --------------------------------------------------------- */

    .toolbar {
        margin-bottom: 10px;
        padding: 8px 10px;
    }

    .table-header {
        padding: 10px 12px;

        background: #f7f9fc;
    }

    th {
        padding: 8px 9px;

        background: #eef3f8;

        color: #324b6b;
    }

    td {
        padding: 8px 9px;
    }

}


/* ---------------------------------------------------------
   DESKTOP PROFILE SUMMARY WIDTH
--------------------------------------------------------- */

@media screen and (min-width: 1051px) {

    .employee-profile-hero {
        grid-template-columns: 165px 1fr auto;
    }

}


/* ---------------------------------------------------------
   SMALL SCREEN SAFETY
--------------------------------------------------------- */

@media screen and (max-width: 760px) {

    .page {
        padding: 14px;
    }

    .profile-card {
        padding-left: 10px;
        padding-right: 10px;
    }

    .profile-card-header {
        margin-left: -10px;
        margin-right: -10px;

        padding-left: 10px;
        padding-right: 10px;
    }

}


/* =========================================================
   CORPORATE SECTION DISTINCTION
   Subtle border + shadow + stronger section header band.
   Screen only. Print/PDF remains unchanged.
========================================================= */

@media screen {

    /* ---------------------------------------------------------
       SECTION CARD DEPTH
    --------------------------------------------------------- */

    .form-section,
    .edit-section,
    .profile-card {
        background: #ffffff !important;

        border: 1px solid #cbd7e5 !important;
        border-radius: 9px !important;

        box-shadow:
            0 2px 8px rgba(20, 47, 82, 0.07),
            0 1px 2px rgba(20, 47, 82, 0.04) !important;

        overflow: hidden;
    }


    /* Slightly clearer spacing between form sections */

    .form-section,
    .edit-section {
        margin-bottom: 12px !important;
    }


    /* ---------------------------------------------------------
       ADD EMPLOYEE SECTION HEADERS
    --------------------------------------------------------- */

    .section-heading {
        background:
            linear-gradient(
                90deg,
                #e7eef7 0%,
                #f5f8fb 100%
            ) !important;

        border-bottom: 1px solid #cfdbe8 !important;
        border-left: 4px solid #244b7a !important;
    }

    .section-heading h3 {
        color: #17365d !important;
        font-weight: 700;
    }


    /* ---------------------------------------------------------
       EDIT EMPLOYEE SECTION HEADERS
       Uses !important because edit_employee.html has
       page-specific style rules loaded after hr.css.
    --------------------------------------------------------- */

    .edit-section-header {
        margin:
            -16px
            -16px
            13px
            -16px !important;

        padding:
            10px
            14px
            9px
            14px !important;

        background:
            linear-gradient(
                90deg,
                #e7eef7 0%,
                #f5f8fb 100%
            ) !important;

        border-bottom:
            1px solid #cfdbe8 !important;

        border-left:
            4px solid #244b7a !important;
    }

    .edit-section-header h3 {
        color: #17365d !important;
        font-weight: 700 !important;
    }

    .edit-section-header p {
        color: #5f6f83 !important;
    }


    /* ---------------------------------------------------------
       EMPLOYEE 201 PROFILE CARDS
    --------------------------------------------------------- */

    .profile-card-header {
        background:
            linear-gradient(
                90deg,
                #e7eef7 0%,
                #f5f8fb 100%
            ) !important;

        border-bottom:
            1px solid #cfdbe8 !important;

        border-left:
            4px solid #244b7a !important;
    }

    .profile-card-header h3 {
        color: #17365d !important;
    }


    /* ---------------------------------------------------------
       EMPLOYEE PROFILE HERO
    --------------------------------------------------------- */

    .employee-profile-hero {
        border:
            1px solid #c7d5e4 !important;

        box-shadow:
            0 2px 8px rgba(20, 47, 82, 0.07),
            0 1px 2px rgba(20, 47, 82, 0.04) !important;
    }


    /* ---------------------------------------------------------
       SUBTLE PAGE BACKGROUND CONTRAST
    --------------------------------------------------------- */

    body {
        background: #f1f4f8;
    }

}


/* =========================================================
   SYSTEM-WIDE CORPORATE COMPACT STANDARD
   Applies one visual language to all internal HR pages:
   Dashboard, Employee Master, Organization Master,
   Add/Edit Employee, and Employee 201.
   Login and Print/PDF are intentionally left alone.
========================================================= */

@media screen {

    /* ---------------------------------------------------------
       GLOBAL INTERNAL PAGE DENSITY
    --------------------------------------------------------- */

    body:not(.hr-login-body) {
        background: #f1f4f8;
    }

    .page {
        width: min(1260px, 100%);
        padding: 12px 18px 22px;
    }

    .page-header {
        gap: 10px;
        margin-bottom: 10px;
    }

    .page-title h2 {
        font-size: 26px;
        line-height: 1.12;
        margin-bottom: 2px;
    }

    .page-title p {
        font-size: 13px;
    }

    .header-actions {
        gap: 6px;
    }

    .button {
        padding: 7px 11px;
        font-size: 13px;
    }

    .button-small {
        padding: 5px 8px;
        font-size: 11px;
    }


    /* ---------------------------------------------------------
       TOP BAR
    --------------------------------------------------------- */

    .topbar {
        min-height: 54px;
        padding: 6px 18px;

        box-shadow:
            0 1px 4px rgba(16, 42, 74, 0.16);
    }


    /* ---------------------------------------------------------
       SHARED CORPORATE CARD LANGUAGE
    --------------------------------------------------------- */

    .card,
    .kpi-card,
    .dashboard-module-card,
    .future-module-card,
    .organization-add-card,
    .department-accordion,
    .toolbar,
    .table-card,
    .form-section,
    .edit-section,
    .profile-card,
    .employee-profile-hero,
    .form-actions,
    .access-note {
        border-color: #cbd7e5 !important;
        border-radius: 9px !important;

        box-shadow:
            0 2px 8px rgba(20, 47, 82, 0.065),
            0 1px 2px rgba(20, 47, 82, 0.035);
    }


    /* ---------------------------------------------------------
       DASHBOARD
    --------------------------------------------------------- */

    .dashboard-module-grid {
        gap: 9px;
        margin-bottom: 10px;
    }

    .dashboard-module-card {
        grid-template-columns: 38px 1fr auto;

        gap: 9px;
        padding: 10px 11px;

        border-left: 4px solid #244b7a !important;

        background:
            linear-gradient(
                90deg,
                #ffffff 0%,
                #f8fafc 100%
            );
    }

    .dashboard-module-card:hover {
        border-color: #8ca3be !important;
        border-left-color: #17365d !important;

        box-shadow:
            0 4px 12px rgba(20, 47, 82, 0.10);

        transform: translateY(-1px);
    }

    .dashboard-module-icon {
        width: 34px;
        height: 34px;

        background: #e7eef7;
        border: 1px solid #d2deeb;

        font-size: 10px;
    }

    .dashboard-module-content h3 {
        font-size: 14px;
        margin-bottom: 1px;
    }

    .dashboard-module-content p {
        font-size: 11px;
        line-height: 1.35;
    }

    .dashboard-module-arrow {
        font-size: 18px;
    }

    .future-module-grid {
        gap: 7px;
    }

    .future-module-card {
        min-height: 66px;

        padding: 9px 10px;

        background: #f7f9fc;

        border-top: 3px solid #8ba2bc !important;
    }

    .future-module-card strong {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .future-module-card p {
        font-size: 11px;
        line-height: 1.35;
    }

    .kpi-grid {
        gap: 9px;
        margin-bottom: 10px;
    }

    .kpi-card {
        padding: 10px 11px;

        border-top: 3px solid #244b7a !important;
    }

    .kpi-label {
        font-size: 10px;
        margin-bottom: 2px;
    }

    .kpi-value {
        font-size: 20px;
    }


    /* ---------------------------------------------------------
       EMPLOYEE MASTER / TABLE PAGES
    --------------------------------------------------------- */

    .toolbar {
        gap: 6px;

        padding: 7px 9px;
        margin-bottom: 9px;

        background: #ffffff;
    }

    .search-form {
        gap: 6px;
    }

    .table-card {
        overflow: hidden;

        background: #ffffff;
    }

    .table-header {
        padding: 8px 10px;

        background:
            linear-gradient(
                90deg,
                #e7eef7 0%,
                #f5f8fb 100%
            );

        border-bottom: 1px solid #cfdbe8;
        border-left: 4px solid #244b7a;
    }

    .table-header h3 {
        font-size: 14px;
    }

    .table-meta,
    .employee-count {
        font-size: 11px;
    }

    thead {
        background: #eef3f8;
    }

    th {
        padding: 7px 8px;

        background: #eef3f8;
        color: #324b6b;

        font-size: 11px;
    }

    td {
        padding: 7px 8px;

        font-size: 12px;
    }

    tbody tr:hover {
        background: #f7f9fc;
    }

    .empty-state {
        padding: 24px 16px;
    }


    /* ---------------------------------------------------------
       ORGANIZATION MASTER
    --------------------------------------------------------- */

    .organization-toolbar {
        gap: 9px;
        margin-bottom: 9px;
    }

    .organization-add-card {
        padding: 10px 11px;

        border-left: 4px solid #244b7a !important;

        background:
            linear-gradient(
                90deg,
                #ffffff 0%,
                #f8fafc 100%
            );
    }

    .organization-add-card h3 {
        font-size: 14px;
        margin-bottom: 1px;
    }

    .organization-add-card p {
        font-size: 10px;
        margin-bottom: 7px;
    }

    .inline-form {
        gap: 5px;
    }

    .accordion-toolbar {
        gap: 8px;
        margin-bottom: 8px;
    }

    .accordion-toolbar-actions {
        gap: 5px;
    }

    .department-accordion {
        margin-bottom: 6px;
    }

    .department-row {
        min-height: 40px;

        gap: 9px;
        padding: 6px 9px;

        border-left: 4px solid #8ba2bc;

        background:
            linear-gradient(
                90deg,
                #ffffff 0%,
                #fafbfd 100%
            );
    }

    .department-accordion.open .department-row {
        border-left-color: #244b7a;

        background:
            linear-gradient(
                90deg,
                #eef3f8 0%,
                #ffffff 100%
            );
    }

    .accordion-toggle {
        width: 24px;
        height: 24px;

        flex-basis: 24px;

        font-size: 10px;
    }

    .department-name {
        font-size: 13px;
    }

    .department-count {
        font-size: 11px;
    }

    .department-actions,
    .position-actions {
        gap: 4px;
    }

    .department-details {
        background: #f8fafc;
    }

    .position-table th,
    .position-table td {
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .access-note {
        margin-bottom: 9px;
        padding: 7px 9px;

        background: #f8fafc;

        border-left: 4px solid #244b7a !important;

        font-size: 11px;
    }


    /* ---------------------------------------------------------
       SUMMARY / ID BLOCKS
    --------------------------------------------------------- */

    .summary-grid,
    .id-summary {
        gap: 8px;
        margin-bottom: 9px;
    }

    .summary-box {
        padding: 9px 11px;

        border-left: 4px solid #244b7a;

        box-shadow:
            0 1px 4px rgba(20, 47, 82, 0.05);
    }

    .summary-label {
        font-size: 10px;
        margin-bottom: 1px;
    }

    .summary-value {
        font-size: 17px;
    }

    .summary-note {
        margin-top: 2px;
        font-size: 10px;
    }


    /* ---------------------------------------------------------
       ADD EMPLOYEE
    --------------------------------------------------------- */

    .form-section {
        padding: 0 12px 9px !important;
        margin-bottom: 9px !important;
    }

    .section-heading {
        margin: 0 -12px 8px !important;
        padding: 8px 11px 7px !important;

        background:
            linear-gradient(
                90deg,
                #e7eef7 0%,
                #f5f8fb 100%
            ) !important;

        border-bottom: 1px solid #cfdbe8 !important;
        border-left: 4px solid #244b7a !important;
    }

    .section-heading h3 {
        font-size: 15px !important;
        margin-bottom: 1px !important;
    }

    .section-heading p {
        font-size: 11px !important;
    }

    .form-grid {
        gap: 8px 10px !important;
    }

    label {
        margin-bottom: 3px;
        font-size: 12px;
    }

    input,
    select {
        min-height: 34px;
        padding: 7px 9px;

        font-size: 13px;
    }

    textarea {
        min-height: 66px;
        padding: 7px 9px;

        font-size: 13px;
    }

    .field-note {
        margin-top: 2px;

        font-size: 10px;
    }

    .form-actions {
        gap: 6px;

        padding: 9px 10px;
        margin-bottom: 16px;
    }


    /* ---------------------------------------------------------
       EDIT EMPLOYEE
       !important is used where the template has inline page CSS.
    --------------------------------------------------------- */

    .edit-id-banner {
        gap: 8px !important;
        margin-bottom: 8px !important;
    }

    .edit-id-box {
        padding: 8px 10px !important;
    }

    .edit-id-box span {
        margin-bottom: 1px !important;

        font-size: 10px !important;
    }

    .edit-id-box strong {
        font-size: 16px !important;
    }

    .edit-warning {
        padding: 7px 9px !important;
        margin-bottom: 8px !important;

        font-size: 10px !important;
        line-height: 1.35 !important;
    }

    .edit-section {
        padding: 10px 11px 9px !important;
        margin-bottom: 9px !important;
    }

    .edit-section-header {
        margin:
            -10px
            -11px
            8px
            -11px !important;

        padding:
            8px
            10px
            7px
            10px !important;

        background:
            linear-gradient(
                90deg,
                #e7eef7 0%,
                #f5f8fb 100%
            ) !important;

        border-bottom: 1px solid #cfdbe8 !important;
        border-left: 4px solid #244b7a !important;
    }

    .edit-section-header h3 {
        font-size: 15px !important;
        margin-bottom: 1px !important;
    }

    .edit-section-header p {
        font-size: 10px !important;
    }

    .edit-grid,
    .edit-grid-two {
        gap: 7px 9px !important;
    }

    .edit-field {
        gap: 2px !important;
    }

    .edit-field label {
        font-size: 11px !important;
    }

    .edit-field input,
    .edit-field select,
    .edit-field textarea {
        min-height: 33px !important;

        padding: 6px 8px !important;

        font-size: 12px !important;
    }

    .edit-field textarea {
        min-height: 62px !important;
    }

    .edit-actions {
        gap: 6px !important;
        margin-top: 10px !important;
        margin-bottom: 16px !important;
    }


    /* ---------------------------------------------------------
       EMPLOYEE 201 PROFILE
    --------------------------------------------------------- */

    .employee-profile-hero {
        gap: 11px;
        margin-bottom: 8px;
        padding: 9px 11px;
    }

    .employee-profile-id {
        padding-right: 10px;
    }

    .employee-profile-id-label,
    .profile-small-label {
        margin-bottom: 2px;

        font-size: 10px;
    }

    .employee-profile-id-value {
        font-size: 19px;
    }

    .employee-profile-previous-id {
        margin-top: 2px;

        font-size: 10px;
    }

    .employee-profile-main h1 {
        margin-bottom: 1px;

        font-size: 20px;
    }

    .employee-profile-preferred {
        margin-bottom: 2px;

        font-size: 11px;
    }

    .employee-profile-meta {
        gap: 5px;

        font-size: 12px;
    }

    .employee-profile-status {
        gap: 10px;
    }

    .employee-profile-status-group {
        min-width: 88px;
    }

    .employee-profile-tabs {
        gap: 3px;

        margin-bottom: 8px;
        padding: 3px;
    }

    .employee-profile-tab {
        padding: 6px 9px;

        font-size: 11px;
    }

    .employee-profile-grid {
        gap: 8px;
        margin-bottom: 8px;
    }

    .profile-card {
        padding: 0 10px 8px !important;
    }

    .profile-card-full {
        margin-bottom: 8px;
    }

    .profile-card-header {
        margin: 0 -10px 7px !important;
        padding: 7px 10px 6px !important;

        background:
            linear-gradient(
                90deg,
                #e7eef7 0%,
                #f5f8fb 100%
            ) !important;

        border-bottom: 1px solid #cfdbe8 !important;
        border-left: 4px solid #244b7a !important;
    }

    .profile-card-header h3 {
        font-size: 14px;
    }

    .profile-card-header p {
        font-size: 10px;
    }

    .profile-detail-grid {
        gap: 5px 7px;
    }

    .profile-detail {
        min-height: 40px;
        padding: 5px 7px;
    }

    .profile-detail-label {
        margin-bottom: 1px;

        font-size: 10px;
    }

    .profile-detail-value {
        font-size: 12px;
        line-height: 1.25;
    }

    .profile-stage-grid {
        gap: 6px;
    }

    .profile-stage-item {
        padding: 7px 8px;
    }

    .profile-stage-label {
        font-size: 9px;
    }

    .profile-stage-value {
        font-size: 12px;
    }

    .profile-id-history {
        gap: 9px;
    }

    .profile-id-history-item {
        padding: 8px 9px;
    }

    .profile-id-history-value {
        font-size: 14px;
    }

    .profile-id-history-arrow {
        font-size: 18px;
    }

    .profile-remarks {
        min-height: 34px;

        padding: 7px 9px;

        font-size: 12px;
        line-height: 1.4;
    }

    .profile-module-grid {
        gap: 5px;
    }

    .profile-module-item {
        min-height: 38px;

        padding: 6px 8px;
    }

    .profile-module-item strong {
        font-size: 11px;
    }

}


/* ---------------------------------------------------------
   DESKTOP EMPLOYEE SUMMARY WIDTH
--------------------------------------------------------- */

@media screen and (min-width: 1051px) {

    .employee-profile-hero {
        grid-template-columns: 155px 1fr auto;
    }

}


/* ---------------------------------------------------------
   RESPONSIVE SAFETY
--------------------------------------------------------- */

@media screen and (max-width: 760px) {

    .page {
        width: 100%;
        padding: 13px;
    }

    .dashboard-module-grid,
    .future-module-grid,
    .organization-toolbar {
        gap: 8px;
    }

    .department-row {
        border-left-width: 3px;
    }

}


/* =========================================================
   DASHBOARD-ONLY REFINEMENT
   Larger, more spacious main page without changing
   Employee 201, forms, tables, or print styling.
========================================================= */

@media screen {

    /* Use more of the desktop viewport on the dashboard only */
    body:has(.dashboard-page) .page {
        width: min(1680px, 100%);
        padding: 26px 34px 42px;
    }

    .dashboard-page .page-header {
        margin-bottom: 22px;
    }

    .dashboard-page .page-title h2 {
        font-size: 34px;
        line-height: 1.12;
        margin-bottom: 6px;
    }

    .dashboard-page .page-title p {
        font-size: 16px;
        line-height: 1.45;
    }

    .dashboard-page .header-actions {
        gap: 10px;
    }

    .dashboard-page .header-actions .button {
        min-height: 42px;
        padding: 10px 16px;
        font-size: 15px;
    }


    /* Primary dashboard actions */
    .dashboard-page .dashboard-module-grid {
        gap: 16px;
        margin-bottom: 20px;
    }

    .dashboard-page .dashboard-module-card {
        min-height: 112px;

        grid-template-columns: 56px 1fr auto;
        align-items: center;

        gap: 16px;
        padding: 20px 22px;

        border-left: 5px solid #244b7a !important;
    }

    .dashboard-page .dashboard-module-card:hover {
        border-color: #8ca3be !important;
        border-left-color: #17365d !important;

        box-shadow:
            0 6px 18px rgba(20, 47, 82, 0.11);

        transform: translateY(-2px);
    }

    .dashboard-page .dashboard-module-icon {
        width: 50px;
        height: 50px;

        border-radius: 9px;

        font-size: 13px;
    }

    .dashboard-page .dashboard-module-content h3 {
        font-size: 18px;
        line-height: 1.25;
        margin-bottom: 6px;
    }

    .dashboard-page .dashboard-module-content p {
        max-width: 430px;

        font-size: 14px;
        line-height: 1.5;
    }

    .dashboard-page .dashboard-module-arrow {
        font-size: 28px;
    }


    /* HR Modules container */
    .dashboard-page > .card {
        padding: 20px 22px 22px;

        border-top: 4px solid #244b7a !important;
    }

    .dashboard-page > .card .card-header {
        margin-bottom: 16px;
    }

    .dashboard-page > .card .card-title {
        font-size: 21px;
        line-height: 1.25;
    }

    .dashboard-page > .card .card-subtitle {
        margin-top: 4px;

        font-size: 14px;
        line-height: 1.45;
    }


    /* HR module cards */
    .dashboard-page .future-module-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .dashboard-page .future-module-card {
        min-height: 108px;

        align-items: flex-start;

        gap: 16px;
        padding: 18px 19px;

        background: #f8fafc;

        border-top: 3px solid #8ba2bc !important;
    }

    .dashboard-page .future-module-card strong {
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 6px;
    }

    .dashboard-page .future-module-card p {
        max-width: 560px;

        font-size: 14px;
        line-height: 1.5;
    }

    .dashboard-page .future-module-card .badge {
        margin-top: 1px;

        padding: 5px 10px;

        font-size: 12px;
    }

}


/* Dashboard responsive behavior */
@media screen and (max-width: 1100px) {

    body:has(.dashboard-page) .page {
        padding: 22px 24px 34px;
    }

    .dashboard-page .dashboard-module-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-page .future-module-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media screen and (max-width: 760px) {

    body:has(.dashboard-page) .page {
        width: 100%;
        padding: 16px;
    }

    .dashboard-page .page-title h2 {
        font-size: 28px;
    }

    .dashboard-page .page-title p {
        font-size: 14px;
    }

    .dashboard-page .dashboard-module-grid,
    .dashboard-page .future-module-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-page .dashboard-module-card {
        min-height: 96px;
        padding: 16px;
    }

    .dashboard-page .future-module-card {
        min-height: 92px;
        padding: 15px 16px;
    }

}

/* ==================================================
   NUMBER INPUT SAFETY
   Hide browser up/down spinner controls on all number
   fields while keeping numeric validation.
================================================== */

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}



/* =========================================================
   DASHBOARD HR MODULE INTERACTION
   Available modules are clickable and interactive.
   Planned modules remain visibly inactive.
========================================================= */

.dashboard-page .future-module-card {
    min-width: 0;
}

.dashboard-page a.future-module-card {
    color: inherit;
    text-decoration: none;
}

.dashboard-page .future-module-card-active {
    cursor: pointer;
    background: #ffffff;
    border-color: #cfd9e5;
    border-top-color: #244b7a !important;

    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.dashboard-page .future-module-card-active .future-module-card-side {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.dashboard-page .future-module-arrow {
    color: var(--navy);
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
}

@media (hover: hover) and (pointer: fine) {

    .dashboard-page .future-module-card-active:hover {
        background: #ffffff;
        border-color: #8ca3be !important;
        border-top-color: #17365d !important;

        box-shadow:
            0 6px 18px rgba(20, 47, 82, 0.11);

        transform: translateY(-2px);
    }

    .dashboard-page .future-module-card-active:hover strong,
    .dashboard-page .future-module-card-active:hover .future-module-arrow {
        color: var(--navy-dark);
    }

}

.dashboard-page .future-module-card-active:focus-visible {
    outline: 3px solid rgba(36, 91, 158, 0.22);
    outline-offset: 2px;
}

.dashboard-page .future-module-card-planned {
    background: #f4f6f8;
    border-color: #e1e5ea;
    border-top-color: #cbd5e1 !important;
}

.dashboard-page .future-module-card-planned strong {
    color: #64748b;
}

.dashboard-page .future-module-card-planned p {
    color: #8792a2;
}

.dashboard-page .future-module-card-planned .badge {
    flex: 0 0 auto;
}



/* =========================================================
   SLN BUSINESS SYSTEM UI STANDARD — FOUNDATION V1
   Reference: finalized SLN Payroll UI (2026-09-28)
   Purpose: shared visual language for HR and future modules.
   Screen-only overrides; print/PDF styling remains untouched.
========================================================= */

@media screen {

    :root {
        --sln-header: #223d67;
        --sln-primary: #17365d;
        --sln-primary-dark: #102a4c;
        --sln-page-bg: #f3f6f9;
        --sln-text: #172033;
        --sln-muted: #64748b;
        --sln-border: #dde3ea;
        --sln-soft: #f8fafc;
        --sln-card-radius: 12px;
        --sln-control-radius: 7px;
    }

    body {
        background: var(--sln-page-bg);
        color: var(--sln-text);
        font-size: 14px;
    }

    /* Shared system header */
    .topbar {
        min-height: 70px;
        padding: 11px 16px;
        background: var(--sln-header);
        gap: 16px;
    }

    .brand {
        gap: 10px;
    }

    .system-logo {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .brand-text h1 {
        font-size: 19px;
        line-height: 1.05;
    }

    .brand-text p {
        margin-top: 3px;
        color: #d0d9e6;
        font-size: 11px;
        line-height: 1.15;
    }

    .user-area {
        gap: 12px;
        font-size: 13px;
    }

    .user-name {
        font-size: 13px;
    }

    .user-role {
        margin-top: 2px;
        color: #d0d9e6;
        font-size: 10px;
    }

    .logout-button {
        padding: 8px 13px;
        border: 1px solid #7589a6;
        border-radius: var(--sln-control-radius);
        font-size: 12px;
    }

    /* Shared page frame */
    .page {
        width: 100%;
        max-width: 1280px;
        margin: 0 auto;
        padding: 28px 24px 50px;
    }

    .page-header {
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 20px;
    }

    .page-title h2 {
        margin: 0 0 4px;
        color: #12233f;
        font-size: 27px;
        line-height: 1.15;
    }

    .page-title p {
        margin: 0;
        color: var(--sln-muted);
        font-size: 14px;
        line-height: 1.45;
    }

    .header-actions {
        gap: 8px;
    }

    /* Shared actions */
    .button {
        min-height: 36px;
        padding: 9px 15px;
        border-radius: var(--sln-control-radius);
        font-size: 13px;
        font-weight: 700;
    }

    .button-primary {
        background: var(--sln-primary);
        color: #fff;
    }

    .button-primary:hover {
        background: var(--sln-primary-dark);
    }

    .button-secondary {
        background: #fff;
        color: var(--sln-primary);
        border-color: #cbd5e1;
    }

    .button-secondary:hover {
        background: #f1f5f9;
    }

    .button-small {
        min-height: 30px;
        padding: 7px 12px;
        font-size: 12px;
    }

    /* Shared cards / sections */
    .card,
    .form-section,
    .table-card,
    .profile-card,
    .employee-profile-hero,
    .employee-profile-tabs,
    .organization-add-card {
        border-color: var(--sln-border);
        border-radius: var(--sln-card-radius);
        box-shadow: 0 2px 5px rgba(0, 0, 0, .03);
    }

    .card {
        padding: 22px 24px;
    }

    .card + .card {
        margin-top: 18px;
    }

    .card-title {
        color: #12233f;
        font-size: 18px;
    }

    .card-subtitle {
        margin-top: 3px;
        color: var(--sln-muted);
        font-size: 12px;
    }

    .form-section {
        padding: 20px 22px;
        margin-bottom: 18px;
        background: #fff;
    }

    .section-heading {
        margin-bottom: 16px;
        padding-bottom: 11px;
        border-bottom-color: var(--sln-border);
    }

    .section-heading h3 {
        color: #12233f;
        font-size: 17px;
    }

    .section-heading p {
        color: var(--sln-muted);
        font-size: 12px;
    }

    /* Forms */
    .form-grid {
        gap: 14px 18px;
    }

    label {
        margin-bottom: 5px;
        color: #374151;
        font-size: 12px;
    }

    input,
    select,
    textarea {
        border-color: #cbd5e1;
        border-radius: 6px;
        color: var(--sln-text);
        font-size: 13px;
    }

    input,
    select {
        min-height: 38px;
        padding: 9px 10px;
    }

    textarea {
        padding: 9px 10px;
    }

    input:focus,
    select:focus,
    textarea:focus {
        border-color: var(--sln-primary);
        box-shadow: 0 0 0 2px rgba(23, 54, 93, .08);
    }

    .form-actions {
        padding: 14px 16px;
        border-color: var(--sln-border);
        border-radius: var(--sln-card-radius);
        box-shadow: 0 2px 5px rgba(0, 0, 0, .03);
    }

    /* Tables */
    .table-card {
        background: #fff;
        overflow: hidden;
    }

    .table-header {
        padding: 15px 18px;
        border-bottom-color: var(--sln-border);
    }

    .table-header h3 {
        color: #12233f;
        font-size: 17px;
    }

    thead {
        background: var(--sln-soft);
    }

    th {
        padding: 10px 12px;
        color: #475569;
        font-size: 11px;
    }

    td {
        padding: 10px 12px;
        color: #263244;
        font-size: 12px;
        border-bottom-color: #edf1f5;
    }

    tbody tr:hover {
        background: #fafcff;
    }

    /* Status distinction */
    .badge,
    .status,
    .stage-badge {
        padding: 4px 8px;
        border-radius: 999px;
        font-size: 10px;
        letter-spacing: .01em;
    }

    .badge-active,
    .status-active,
    .stage-regular {
        background: #e8f5ec;
        color: #247a3e;
        border: 1px solid #c9e7d1;
    }

    .badge-warning,
    .stage-stc {
        background: #fff5dd;
        color: #8a5b00;
        border: 1px solid #ead49a;
    }

    .badge-info,
    .stage-probationary {
        background: #e8f0fb;
        color: #245b9e;
        border: 1px solid #cbdcf2;
    }

    .badge-danger {
        background: #fdecec;
        color: #a93226;
        border: 1px solid #f5c2c0;
    }

    /* Employee 201 profile */
    .employee-profile-hero {
        grid-template-columns: 165px 1fr auto;
        gap: 22px;
        margin-bottom: 18px;
        padding: 20px 22px;
        background: #fff;
    }

    .employee-profile-id {
        padding-right: 18px;
    }

    .employee-profile-id-label,
    .profile-small-label {
        color: var(--sln-muted);
        font-size: 11px;
    }

    .employee-profile-id-value {
        color: var(--sln-primary);
        font-size: 23px;
    }

    .employee-profile-main h1 {
        color: #12233f;
        font-size: 24px;
    }

    .employee-profile-meta {
        color: #475569;
        font-size: 13px;
    }

    .employee-profile-tabs {
        gap: 4px;
        margin-bottom: 18px;
        padding: 6px;
        background: #fff;
    }

    .employee-profile-tab {
        padding: 8px 12px;
        border-radius: 6px;
        color: #475569;
        font-size: 12px;
    }

    .employee-profile-tab.active {
        background: var(--sln-primary);
        color: #fff;
    }

    .employee-profile-grid {
        gap: 18px;
        margin-bottom: 18px;
    }

    .profile-card {
        padding: 20px 22px;
        background: #fff;
    }

    .profile-card-full {
        margin-bottom: 18px;
    }

    .profile-card-header {
        padding-bottom: 11px;
        margin-bottom: 14px;
        border-bottom-color: var(--sln-border);
    }

    .profile-card-header h3 {
        color: #12233f;
        font-size: 17px;
    }

    .profile-card-header p {
        color: var(--sln-muted);
        font-size: 12px;
    }

    .profile-detail-label {
        color: var(--sln-muted);
        font-size: 11px;
    }

    /* Dashboard — intentionally follows Payroll visual hierarchy */
    body:has(.dashboard-page) .page {
        width: 100%;
        max-width: 1040px;
        margin: 0 auto;
        padding: 30px 20px 50px;
    }

    .dashboard-page .page-header {
        padding: 22px 24px;
        margin-bottom: 22px;
        background: #fff;
        border: 1px solid var(--sln-border);
        border-radius: var(--sln-card-radius);
        box-shadow: none;
    }

    .dashboard-page .page-title h2 {
        margin: 0 0 5px;
        color: #12233f;
        font-size: 22px;
    }

    .dashboard-page .page-title p {
        color: var(--sln-muted);
        font-size: 14px;
    }

    .dashboard-page .dashboard-module-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
        margin-bottom: 22px;
    }

    .dashboard-page .dashboard-module-card {
        min-height: 205px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 22px;
        background: #fff;
        border: 1px solid var(--sln-border) !important;
        border-radius: var(--sln-card-radius);
        box-shadow: none;
        transform: none;
    }

    .dashboard-page .dashboard-module-card:hover {
        border-color: #b8c5d4 !important;
        box-shadow: 0 4px 12px rgba(24, 45, 76, .07);
        transform: translateY(-1px);
    }

    .dashboard-page .dashboard-module-icon {
        width: 34px;
        height: 34px;
        margin-bottom: 14px;
        border-radius: 8px;
        background: #edf2f8;
        color: var(--sln-primary);
        font-size: 11px;
        flex: 0 0 auto;
    }

    .dashboard-page .dashboard-module-content {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
    }

    .dashboard-page .dashboard-module-content h3 {
        margin: 0 0 10px;
        color: #12233f;
        font-size: 17px;
        line-height: 1.25;
    }

    .dashboard-page .dashboard-module-content p {
        max-width: none;
        margin: 0;
        color: var(--sln-muted);
        font-size: 13px;
        line-height: 1.5;
        flex: 1 1 auto;
    }

    .dashboard-page .dashboard-module-arrow {
        width: 100%;
        margin-top: 18px;
        padding: 10px 12px;
        border-radius: 8px;
        background: var(--sln-primary);
        color: #fff;
        text-align: center;
        font-size: 0;
        line-height: 1;
    }

    .dashboard-page .dashboard-module-arrow::after {
        content: "Open";
        font-size: 13px;
        font-weight: 700;
    }

    .dashboard-page > .card {
        padding: 22px 24px 24px;
        border: 1px solid var(--sln-border) !important;
        border-radius: var(--sln-card-radius);
        box-shadow: none;
    }

    .dashboard-page > .card .card-title {
        color: #12233f;
        font-size: 20px;
    }

    .dashboard-page > .card .card-subtitle {
        color: var(--sln-muted);
        font-size: 13px;
    }

    .dashboard-page .future-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .dashboard-page .future-module-card {
        min-height: 96px;
        padding: 16px 17px;
        background: #fff;
        border: 1px solid var(--sln-border) !important;
        border-radius: 9px;
        box-shadow: none;
    }

    .dashboard-page .future-module-card strong {
        color: #12233f;
        font-size: 14px;
    }

    .dashboard-page .future-module-card p {
        margin-top: 5px;
        color: var(--sln-muted);
        font-size: 12px;
    }

    .dashboard-page .future-module-card-active:hover {
        border-color: #b8c5d4 !important;
        box-shadow: 0 3px 9px rgba(24, 45, 76, .06);
        transform: translateY(-1px);
    }

    .dashboard-page .future-module-card-planned {
        background: #f8fafc;
    }

    /* System messages */
    .message {
        padding: 10px 13px;
        margin-bottom: 16px;
        border-radius: 7px;
        font-size: 12px;
    }
}

@media screen and (max-width: 1100px) {
    .dashboard-page .dashboard-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 760px) {
    .topbar {
        padding: 10px 13px;
    }

    .page,
    body:has(.dashboard-page) .page {
        padding: 18px 14px 36px;
    }

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

    .page-title h2 {
        font-size: 23px;
    }

    .dashboard-page .page-header {
        padding: 18px;
    }

    .dashboard-page .dashboard-module-grid,
    .dashboard-page .future-module-grid,
    .employee-profile-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-page .dashboard-module-card {
        min-height: 175px;
    }

    .employee-profile-hero {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .employee-profile-id {
        padding-right: 0;
        padding-bottom: 12px;
        border-right: 0;
        border-bottom: 1px solid var(--sln-border);
    }

    .employee-profile-status {
        justify-content: flex-start;
    }
}

/* =========================================================
   SLN UI FOUNDATION - STEP 1A
   DASHBOARD DEPTH + MODULE COLOR DISTINCTION
   Based on the approved Payroll visual reference.
========================================================= */

/* Dashboard header: same lifted white-card feel as Payroll welcome card. */
.dashboard-page .page-header {
    border-left: 4px solid #4f76b6 !important;
    box-shadow: 0 5px 16px rgba(24, 45, 76, .07) !important;
}

/* Primary dashboard cards get subtle depth and a clear module accent. */
.dashboard-page .dashboard-module-card {
    --module-accent: #4f76b6;
    --module-tint: #eef4ff;
    --module-line: #cbd9ee;

    position: relative;
    overflow: hidden;
    border: 1px solid var(--sln-border) !important;
    border-top: 4px solid var(--module-accent) !important;
    box-shadow: 0 5px 15px rgba(24, 45, 76, .075) !important;
}

/* Payroll-inspired module distinctions. */
.dashboard-page .dashboard-module-card:nth-child(1) {
    --module-accent: #4f76b6;
    --module-tint: #edf3ff;
    --module-line: #c9d7ef;
}

.dashboard-page .dashboard-module-card:nth-child(2) {
    --module-accent: #3d7d7b;
    --module-tint: #edf8f7;
    --module-line: #c9e3e1;
}

.dashboard-page .dashboard-module-card:nth-child(3) {
    --module-accent: #9a6a19;
    --module-tint: #fff7e6;
    --module-line: #ecd7aa;
}

.dashboard-page .dashboard-module-card:nth-child(4) {
    --module-accent: #3f765b;
    --module-tint: #edf7f1;
    --module-line: #c7dfd1;
}

.dashboard-page .dashboard-module-icon {
    background: var(--module-tint) !important;
    color: var(--module-accent) !important;
    border: 1px solid var(--module-line);
}

.dashboard-page .dashboard-module-card:hover {
    border-color: var(--module-line) !important;
    border-top-color: var(--module-accent) !important;
    box-shadow: 0 9px 22px rgba(24, 45, 76, .11) !important;
    transform: translateY(-2px);
}

/* Keep the action button unified navy so accent colors identify modules,
   not competing actions. */
.dashboard-page .dashboard-module-arrow {
    box-shadow: 0 2px 5px rgba(23, 54, 93, .13);
}

/* HR Modules section gets the same card depth without becoming visually busy. */
.dashboard-page > .card {
    box-shadow: 0 5px 16px rgba(24, 45, 76, .065) !important;
}

.dashboard-page .future-module-card {
    box-shadow: 0 3px 10px rgba(24, 45, 76, .055) !important;
}

.dashboard-page .future-module-card-active {
    border-left: 3px solid #5f8b70 !important;
}

.dashboard-page .future-module-card-active:hover {
    border-color: #bfd3c7 !important;
    border-left-color: #4f7d61 !important;
    box-shadow: 0 6px 15px rgba(24, 45, 76, .085) !important;
}

.dashboard-page .future-module-card-planned {
    border-left: 3px solid #c7ced8 !important;
    box-shadow: 0 2px 7px rgba(24, 45, 76, .035) !important;
}

@media screen and (max-width: 760px) {
    .dashboard-page .page-header {
        border-left-width: 3px !important;
    }
}

/* =========================================================
   SLN UI FOUNDATION - STEP 1B
   COMPACT DASHBOARD PRIMARY MODULES
   Reduces unused vertical space while preserving the approved
   Payroll-style depth, module accents and clear action hierarchy.
========================================================= */

@media screen and (min-width: 1101px) {
    body:has(.dashboard-page) .page {
        padding-top: 24px;
    }

    .dashboard-page .page-header {
        padding: 17px 22px;
        margin-bottom: 18px;
    }

    .dashboard-page .page-title h2 {
        margin-bottom: 3px;
    }

    .dashboard-page .dashboard-module-grid {
        gap: 16px;
        margin-bottom: 18px;
    }

    .dashboard-page .dashboard-module-card {
        min-height: 170px;
        padding: 17px 18px 16px;
    }

    .dashboard-page .dashboard-module-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 10px;
    }

    .dashboard-page .dashboard-module-content h3 {
        margin-bottom: 7px;
        font-size: 16px;
    }

    .dashboard-page .dashboard-module-content p {
        font-size: 12px;
        line-height: 1.42;
    }

    .dashboard-page .dashboard-module-arrow {
        margin-top: 12px;
        padding: 8px 11px;
    }

    .dashboard-page > .card {
        padding: 19px 22px 21px;
    }
}

/* =========================================================
   SLN UI FOUNDATION - STEP 1C
   SUBTLE SEMANTIC SECTION TONES
   Navy remains the primary SLN color. These pale tones are
   secondary navigation cues only, helping long HR screens scan
   like the approved Payroll UI without becoming visually busy.
========================================================= */

:root {
    --sln-tone-blue-bg: #f7faff;
    --sln-tone-blue-line: #bfd1ee;
    --sln-tone-blue-accent: #4f76b6;

    --sln-tone-teal-bg: #f5fbfa;
    --sln-tone-teal-line: #c4ddda;
    --sln-tone-teal-accent: #4d807a;

    --sln-tone-indigo-bg: #f8f8fd;
    --sln-tone-indigo-line: #d4d4e9;
    --sln-tone-indigo-accent: #67699a;

    --sln-tone-lavender-bg: #faf8fd;
    --sln-tone-lavender-line: #ddd2ea;
    --sln-tone-lavender-accent: #7b6592;

    --sln-tone-green-bg: #f6fbf7;
    --sln-tone-green-line: #c9dfcf;
    --sln-tone-green-accent: #5c8469;

    --sln-tone-amber-bg: #fffaf0;
    --sln-tone-amber-line: #ead8ad;
    --sln-tone-amber-accent: #a27628;

    --sln-tone-neutral-bg: #f9fafc;
    --sln-tone-neutral-line: #d7dde6;
    --sln-tone-neutral-accent: #718096;
}

/* Shared tone variables. Backgrounds stay close to white; navy headings/actions
   remain dominant throughout the interface. */
.sln-tone-blue { --tone-bg:var(--sln-tone-blue-bg); --tone-line:var(--sln-tone-blue-line); --tone-accent:var(--sln-tone-blue-accent); }
.sln-tone-teal { --tone-bg:var(--sln-tone-teal-bg); --tone-line:var(--sln-tone-teal-line); --tone-accent:var(--sln-tone-teal-accent); }
.sln-tone-indigo { --tone-bg:var(--sln-tone-indigo-bg); --tone-line:var(--sln-tone-indigo-line); --tone-accent:var(--sln-tone-indigo-accent); }
.sln-tone-lavender { --tone-bg:var(--sln-tone-lavender-bg); --tone-line:var(--sln-tone-lavender-line); --tone-accent:var(--sln-tone-lavender-accent); }
.sln-tone-green { --tone-bg:var(--sln-tone-green-bg); --tone-line:var(--sln-tone-green-line); --tone-accent:var(--sln-tone-green-accent); }
.sln-tone-amber { --tone-bg:var(--sln-tone-amber-bg); --tone-line:var(--sln-tone-amber-line); --tone-accent:var(--sln-tone-amber-accent); }
.sln-tone-neutral { --tone-bg:var(--sln-tone-neutral-bg); --tone-line:var(--sln-tone-neutral-line); --tone-accent:var(--sln-tone-neutral-accent); }

/* Employee 201 cards */
.profile-card.sln-tone-blue,
.profile-card.sln-tone-teal,
.profile-card.sln-tone-indigo,
.profile-card.sln-tone-lavender,
.profile-card.sln-tone-green,
.profile-card.sln-tone-amber,
.profile-card.sln-tone-neutral {
    background: var(--tone-bg) !important;
    border-color: var(--tone-line) !important;
    border-left: 3px solid var(--tone-accent) !important;
    box-shadow: 0 3px 10px rgba(24,45,76,.045);
}

.profile-card[class*="sln-tone-"] .profile-card-header {
    border-bottom-color: color-mix(in srgb, var(--tone-line) 72%, #ffffff 28%) !important;
}

.profile-card[class*="sln-tone-"] .profile-card-header h3,
.profile-card[class*="sln-tone-"] strong,
.profile-card[class*="sln-tone-"] .profile-detail-value {
    color: #12233f;
}

/* Performance Review form/detail/report sections. These templates currently
   contain their own component CSS, so the semantic layer intentionally uses
   narrowly-scoped !important rules to stay presentation-only. */
.pr-section[class*="sln-tone-"],
.prd-section[class*="sln-tone-"],
.prr-card[class*="sln-tone-"] {
    background: var(--tone-bg) !important;
    border-color: var(--tone-line) !important;
    border-left: 3px solid var(--tone-accent) !important;
    box-shadow: 0 3px 10px rgba(24,45,76,.045) !important;
}

.pr-section[class*="sln-tone-"] .pr-section-header {
    border-bottom-color: var(--tone-line) !important;
}

.pr-section[class*="sln-tone-"] h3,
.prd-section[class*="sln-tone-"] h3,
.prr-card[class*="sln-tone-"] h3 {
    color: #12233f !important;
}

/* Keep nested scoring/data surfaces white so the colored section acts only as
   a gentle frame rather than tinting every control. */
.pr-section[class*="sln-tone-"] .pr-criterion,
.pr-section[class*="sln-tone-"] .pr-result-box,
.prd-section[class*="sln-tone-"] table,
.prd-section[class*="sln-tone-"] .prd-summary-box,
.prr-card[class*="sln-tone-"] table {
    background: #fff;
}

/* Inputs remain neutral and highly legible. */
.profile-card[class*="sln-tone-"] input,
.profile-card[class*="sln-tone-"] select,
.profile-card[class*="sln-tone-"] textarea,
.pr-section[class*="sln-tone-"] input,
.pr-section[class*="sln-tone-"] select,
.pr-section[class*="sln-tone-"] textarea {
    background: #fff;
}

@media print {
    .profile-card[class*="sln-tone-"],
    .pr-section[class*="sln-tone-"],
    .prd-section[class*="sln-tone-"],
    .prr-card[class*="sln-tone-"] {
        background:#fff !important;
        border-left-color:#cbd5e1 !important;
        box-shadow:none !important;
    }
}

/* =========================================================
   SLN UI FOUNDATION - STEP 1D
   Payroll-matched section tints
   - Navy remains dominant.
   - Section backgrounds now use the same visible-but-soft
     treatment as the approved Payroll UI.
========================================================= */

:root {
    /* Matches/extends the approved Payroll form palette */
    --sln-tone-blue-bg: #f2f7fd;
    --sln-tone-blue-line: #d9e6f5;
    --sln-tone-blue-accent: #5678b4;

    --sln-tone-teal-bg: #f1f8f7;
    --sln-tone-teal-line: #d5e8e4;
    --sln-tone-teal-accent: #4d807a;

    --sln-tone-indigo-bg: #f4f5fb;
    --sln-tone-indigo-line: #dde0ef;
    --sln-tone-indigo-accent: #68709c;

    /* Exact Payroll payment-section family */
    --sln-tone-lavender-bg: #f7f4ff;
    --sln-tone-lavender-line: #e2d9fa;
    --sln-tone-lavender-accent: #7865a0;

    --sln-tone-green-bg: #f2f8f3;
    --sln-tone-green-line: #d6e8d9;
    --sln-tone-green-accent: #5c8469;

    /* Exact Payroll loan/attention family */
    --sln-tone-amber-bg: #fff9e9;
    --sln-tone-amber-line: #f1dfaa;
    --sln-tone-amber-accent: #a27628;

    /* Exact Payroll base form-section family */
    --sln-tone-neutral-bg: #f8fafc;
    --sln-tone-neutral-line: #dde3ea;
    --sln-tone-neutral-accent: #718096;
}

/* Let the section tint read clearly around the profile data cells,
   similar to the Payroll form sections. */
.profile-card[class*="sln-tone-"] .profile-detail {
    background: rgba(255,255,255,.78) !important;
    border-color: color-mix(in srgb, var(--tone-line) 74%, #ffffff 26%) !important;
}

.profile-card[class*="sln-tone-"] .profile-card-header {
    background: transparent !important;
}

/* Slightly stronger card edge, still restrained. */
.profile-card[class*="sln-tone-"],
.pr-section[class*="sln-tone-"],
.prd-section[class*="sln-tone-"],
.prr-card[class*="sln-tone-"] {
    box-shadow: 0 4px 12px rgba(24,45,76,.055) !important;
}

@media print {
    .profile-card[class*="sln-tone-"] .profile-detail {
        background:#fff !important;
        border-color:#e5e7eb !important;
    }
}

/* =========================================================
   SLN UI FOUNDATION - STEP 1E
   VISIBLE PAYROLL-MATCHED EMPLOYEE 201 SECTION TINTS
   Uses the approved Payroll section palette. Navy remains the
   dominant interface color; section colors are soft scan cues.
========================================================= */

/* Exact/near-exact Payroll section families, plus restrained teal/green
   companions for HR-only categories. */
.profile-card.sln-tone-blue {
    --tone-bg: #f2f7fd;
    --tone-cell: #f8fbff;
    --tone-line: #d9e6f5;
    --tone-accent: #5678b4;
}

.profile-card.sln-tone-teal {
    --tone-bg: #f1f8f7;
    --tone-cell: #f8fcfb;
    --tone-line: #d5e8e4;
    --tone-accent: #4d807a;
}

.profile-card.sln-tone-indigo,
.profile-card.sln-tone-lavender {
    --tone-bg: #f7f4ff;
    --tone-cell: #fbf9ff;
    --tone-line: #e2d9fa;
    --tone-accent: #7865a0;
}

.profile-card.sln-tone-green {
    --tone-bg: #f2f8f3;
    --tone-cell: #f8fcf9;
    --tone-line: #d6e8d9;
    --tone-accent: #5c8469;
}

.profile-card.sln-tone-amber {
    --tone-bg: #fff9e9;
    --tone-cell: #fffdf5;
    --tone-line: #f1dfaa;
    --tone-accent: #a27628;
}

.profile-card.sln-tone-neutral {
    --tone-bg: #f8fafc;
    --tone-cell: #ffffff;
    --tone-line: #dde3ea;
    --tone-accent: #718096;
}

/* Make the section tint visible across the complete card rather than only
   in the narrow gutter around mostly-white detail boxes. */
.profile-card[class*="sln-tone-"] {
    background: var(--tone-bg) !important;
    border-color: var(--tone-line) !important;
    border-left: 3px solid var(--tone-accent) !important;
}

.profile-card[class*="sln-tone-"] .profile-card-header {
    background: var(--tone-bg) !important;
    border-bottom-color: var(--tone-line) !important;
    border-left-color: var(--tone-accent) !important;
}

.profile-card[class*="sln-tone-"] .profile-detail {
    background: var(--tone-cell) !important;
    border-color: var(--tone-line) !important;
}

/* Preserve navy as the visual anchor. */
.profile-card[class*="sln-tone-"] .profile-card-header h3,
.profile-card[class*="sln-tone-"] .profile-detail-value {
    color: #12233f !important;
}

@media print {
    .profile-card[class*="sln-tone-"],
    .profile-card[class*="sln-tone-"] .profile-card-header,
    .profile-card[class*="sln-tone-"] .profile-detail {
        background: #fff !important;
        border-color: #dfe5ec !important;
    }
}

/* =========================================================
   SLN UI FOUNDATION - STEP 1E REVISED
   EMPLOYEE 201 TAB + CONTENT COLOR LINKAGE
   - Navy remains the dominant SLN identity color.
   - Each tab gets a restrained semantic accent.
   - The active tab and its displayed panel share the same
     soft color family for faster visual orientation.
========================================================= */

/* Inactive tabs stay light, but each carries a subtle identity. */
.employee-profile-tab[data-profile-tab="profile"] {
    background: #f4f8fe;
    border: 1px solid #d8e5f6;
    color: #29466f;
}
.employee-profile-tab[data-profile-tab="employment-history"] {
    background: #f2f8f7;
    border: 1px solid #d4e7e3;
    color: #315f5a;
}
.employee-profile-tab[data-profile-tab="salary-history"] {
    background: #f7f4ff;
    border: 1px solid #e1d9f7;
    color: #5c4f82;
}
.employee-profile-tab[data-profile-tab="attendance"] {
    background: #f2f8f3;
    border: 1px solid #d5e7d8;
    color: #41684c;
}
.employee-profile-tab[data-profile-tab="leave-absence"] {
    background: #f0f7fb;
    border: 1px solid #cfe0eb;
    color: #3f6075;
}
.employee-profile-tab[data-profile-tab="performance-reviews"] {
    background: #fff9e9;
    border: 1px solid #f0dfad;
    color: #77591d;
}
.employee-profile-tab[data-profile-tab="documents"] {
    background: #f5f7fa;
    border: 1px solid #dce2e9;
    color: #536273;
}
.employee-profile-tab[data-profile-tab="hr-cases"] {
    background: #fff5f5;
    border: 1px solid #ecd8d8;
    color: #7d5050;
}

/* Active tabs become more distinct, but remain restrained and use navy text. */
.employee-profile-tab.active[data-profile-tab="profile"] {
    background: #dfeafa !important;
    border-color: #9fb9df !important;
    box-shadow: inset 0 -2px 0 #5678b4;
    color: #17365d !important;
}
.employee-profile-tab.active[data-profile-tab="employment-history"] {
    background: #dff1ee !important;
    border-color: #a8d0c9 !important;
    box-shadow: inset 0 -2px 0 #4d807a;
    color: #17365d !important;
}
.employee-profile-tab.active[data-profile-tab="salary-history"] {
    background: #eae4f8 !important;
    border-color: #c7b9e7 !important;
    box-shadow: inset 0 -2px 0 #7865a0;
    color: #17365d !important;
}
.employee-profile-tab.active[data-profile-tab="attendance"] {
    background: #e2f0e5 !important;
    border-color: #b7d7bf !important;
    box-shadow: inset 0 -2px 0 #5c8469;
    color: #17365d !important;
}
.employee-profile-tab.active[data-profile-tab="leave-absence"] {
    background: #dfeff7 !important;
    border-color: #a9cbdc !important;
    box-shadow: inset 0 -2px 0 #5e8da5;
    color: #17365d !important;
}
.employee-profile-tab.active[data-profile-tab="performance-reviews"] {
    background: #fff0c8 !important;
    border-color: #e8ce82 !important;
    box-shadow: inset 0 -2px 0 #a27628;
    color: #17365d !important;
}
.employee-profile-tab.active[data-profile-tab="documents"] {
    background: #e8edf3 !important;
    border-color: #c6d0dc !important;
    box-shadow: inset 0 -2px 0 #718096;
    color: #17365d !important;
}
.employee-profile-tab.active[data-profile-tab="hr-cases"] {
    background: #f8e7e7 !important;
    border-color: #ddbcbc !important;
    box-shadow: inset 0 -2px 0 #9a6262;
    color: #17365d !important;
}

/* Matching panel frame/background for the information displayed by each tab. */
[data-profile-panel] {
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 12px;
}

[data-profile-panel="profile"] {
    background: #f7faff;
    border-color: #dce7f5;
}
[data-profile-panel="employment-history"] {
    background: #f5faf9;
    border-color: #d8e9e6;
}
[data-profile-panel="salary-history"] {
    background: #faf8fe;
    border-color: #e4ddf3;
}
[data-profile-panel="attendance"] {
    background: #f6faf7;
    border-color: #dae9dd;
}
[data-profile-panel="performance-reviews"] {
    background: #fffaf0;
    border-color: #efdfb5;
}
[data-profile-panel="documents"] {
    background: #f7f9fb;
    border-color: #dfe5ec;
}
[data-profile-panel="hr-cases"] {
    background: #fff8f8;
    border-color: #eddcdc;
}

/* Panels should still feel like part of the same navy-led system. */
[data-profile-panel] h2,
[data-profile-panel] h3,
[data-profile-panel] strong {
    color: #12233f;
}

/* Slight hover feedback without turning the navigation into a rainbow bar. */
.employee-profile-tab:not(.active):hover {
    filter: brightness(.985);
    border-color: #bfcddd;
}

@media print {
    .employee-profile-tab {
        background: #fff !important;
        border-color: #dfe5ec !important;
        color: #17365d !important;
        box-shadow: none !important;
    }

    [data-profile-panel] {
        background: #fff !important;
        border-color: transparent !important;
        padding: 0 !important;
    }
}

/* =========================================================
   SLN UI FOUNDATION - STEP 1F
   STRONGER TAB -> CONTENT COLOR MATCHING
   - Active tab uses the same tint as the matching content header.
   - Content panel background is more visible, while still restrained.
   - Navy remains the dominant text/action color.
========================================================= */

/* Profile / Blue */
.employee-profile-tab.active[data-profile-tab="profile"],
[data-profile-panel="profile"] > .profile-card > .profile-card-header {
    background: #dfeafa !important;
    border-color: #9fb9df !important;
}
[data-profile-panel="profile"] {
    background: #edf4fd !important;
    border-color: #c7d8ee !important;
}

/* Employment History / Teal */
.employee-profile-tab.active[data-profile-tab="employment-history"],
[data-profile-panel="employment-history"] > .profile-card > .profile-card-header {
    background: #dff1ee !important;
    border-color: #a8d0c9 !important;
}
[data-profile-panel="employment-history"] {
    background: #edf8f6 !important;
    border-color: #c6e0db !important;
}
[data-profile-panel="employment-history"] > .profile-card {
    background: #f7fcfb !important;
    border-color: #c6e0db !important;
}

/* Salary History / Lavender */
.employee-profile-tab.active[data-profile-tab="salary-history"],
[data-profile-panel="salary-history"] > .profile-card > .profile-card-header {
    background: #eae4f8 !important;
    border-color: #c7b9e7 !important;
}
[data-profile-panel="salary-history"] {
    background: #f1ecfb !important;
    border-color: #d3c6ec !important;
}
[data-profile-panel="salary-history"] > .profile-card {
    background: #fbf9ff !important;
    border-color: #d3c6ec !important;
}

/* Attendance / Green */
.employee-profile-tab.active[data-profile-tab="attendance"],
[data-profile-panel="attendance"] > .profile-card > .profile-card-header {
    background: #e2f0e5 !important;
    border-color: #b7d7bf !important;
}
[data-profile-panel="attendance"] {
    background: #eef7f0 !important;
    border-color: #c9e0cf !important;
}
[data-profile-panel="attendance"] > .profile-card {
    background: #f8fcf9 !important;
    border-color: #c9e0cf !important;
}

/* Performance Reviews / Amber */
.employee-profile-tab.active[data-profile-tab="performance-reviews"],
[data-profile-panel="performance-reviews"] > .profile-card > .profile-card-header {
    background: #fff0c8 !important;
    border-color: #e8ce82 !important;
}
[data-profile-panel="performance-reviews"] {
    background: #fff6dc !important;
    border-color: #ead89f !important;
}
[data-profile-panel="performance-reviews"] > .profile-card {
    background: #fffdf7 !important;
    border-color: #ead89f !important;
}

/* Documents / Slate */
.employee-profile-tab.active[data-profile-tab="documents"],
[data-profile-panel="documents"] > .profile-card > .profile-card-header {
    background: #e8edf3 !important;
    border-color: #c6d0dc !important;
}
[data-profile-panel="documents"] {
    background: #f0f3f7 !important;
    border-color: #d2dbe5 !important;
}
[data-profile-panel="documents"] > .profile-card {
    background: #fafbfd !important;
    border-color: #d2dbe5 !important;
}

/* HR Cases / Soft Rose */
.employee-profile-tab.active[data-profile-tab="hr-cases"],
[data-profile-panel="hr-cases"] > .profile-card > .profile-card-header {
    background: #f8e7e7 !important;
    border-color: #ddbcbc !important;
}
[data-profile-panel="hr-cases"] {
    background: #fceeee !important;
    border-color: #e4caca !important;
}
[data-profile-panel="hr-cases"] > .profile-card {
    background: #fffafa !important;
    border-color: #e4caca !important;
}

/* The matching content heading should visually read as the selected tab. */
[data-profile-panel] > .profile-card > .profile-card-header {
    border-bottom-width: 1px !important;
    border-bottom-style: solid !important;
}
[data-profile-panel] > .profile-card > .profile-card-header h3,
[data-profile-panel] > .profile-card > .profile-card-header p {
    color: #17365d !important;
}

/* Keep tables and dense records crisp against the tinted panel. */
[data-profile-panel] .table-wrapper,
[data-profile-panel] .empty-state {
    background: rgba(255,255,255,.82);
    border-radius: 8px;
}

@media print {
    [data-profile-panel],
    [data-profile-panel] > .profile-card,
    [data-profile-panel] > .profile-card > .profile-card-header {
        background: #fff !important;
        border-color: #dfe5ec !important;
    }
}

/* =========================================================
   SLN UI FOUNDATION - STEP 1G
   EXACT TAB <-> CONTENT COLOR PAIRING
   - The active Employee 201 tab and its section header use the
     exact same soft tint.
   - The surrounding content panel uses a lighter version of
     the same family so the selected section is immediately clear.
   - Navy remains the primary SLN system color.
========================================================= */

/* PROFILE / BLUE */
.employee-profile-tab.active[data-profile-tab="profile"],
[data-profile-panel="profile"] > .profile-card > .profile-card-header,
[data-profile-panel="profile"] .profile-card.sln-tone-blue > .profile-card-header {
    background: #dbe8f8 !important;
    border-color: #9fb9df !important;
    color: #17365d !important;
}
[data-profile-panel="profile"] {
    background: #edf4fc !important;
    border-color: #c7d8ee !important;
}
[data-profile-panel="profile"] > .profile-card {
    background: #f7faff !important;
    border-color: #c7d8ee !important;
}

/* EMPLOYMENT HISTORY / TEAL */
.employee-profile-tab.active[data-profile-tab="employment-history"],
[data-profile-panel="employment-history"] > .profile-card > .profile-card-header,
[data-profile-panel="employment-history"] .profile-card.sln-tone-teal > .profile-card-header {
    background: #d4ebe7 !important;
    border-color: #8fc2b9 !important;
    color: #17365d !important;
}
[data-profile-panel="employment-history"] {
    background: #eaf5f3 !important;
    border-color: #b8d9d3 !important;
}
[data-profile-panel="employment-history"] > .profile-card {
    background: #f4faf8 !important;
    border-color: #b8d9d3 !important;
}
[data-profile-panel="employment-history"] table thead th {
    background: #e5f2ef !important;
}

/* SALARY HISTORY / LAVENDER */
.employee-profile-tab.active[data-profile-tab="salary-history"],
[data-profile-panel="salary-history"] > .profile-card > .profile-card-header,
[data-profile-panel="salary-history"] .profile-card.sln-tone-indigo > .profile-card-header {
    background: #e2daf5 !important;
    border-color: #b8a6df !important;
    color: #17365d !important;
}
[data-profile-panel="salary-history"] {
    background: #f0ebfa !important;
    border-color: #cfc2e9 !important;
}
[data-profile-panel="salary-history"] > .profile-card {
    background: #f8f5fd !important;
    border-color: #cfc2e9 !important;
}
[data-profile-panel="salary-history"] table thead th {
    background: #ece6f8 !important;
}

/* ATTENDANCE / GREEN */
.employee-profile-tab.active[data-profile-tab="attendance"],
[data-profile-panel="attendance"] > .profile-card > .profile-card-header,
[data-profile-panel="attendance"] .profile-card.sln-tone-green > .profile-card-header {
    background: #dcecdf !important;
    border-color: #9fc7aa !important;
    color: #17365d !important;
}
[data-profile-panel="attendance"] {
    background: #edf6ef !important;
    border-color: #bfdbc6 !important;
}
[data-profile-panel="attendance"] > .profile-card {
    background: #f6faf7 !important;
    border-color: #bfdbc6 !important;
}
[data-profile-panel="attendance"] table thead th {
    background: #e7f2e9 !important;
}

/* PERFORMANCE REVIEWS / AMBER */
.employee-profile-tab.active[data-profile-tab="performance-reviews"],
[data-profile-panel="performance-reviews"] > .profile-card > .profile-card-header,
[data-profile-panel="performance-reviews"] .profile-card.sln-tone-blue > .profile-card-header {
    background: #ffedbd !important;
    border-color: #dfc16f !important;
    color: #17365d !important;
}
[data-profile-panel="performance-reviews"] {
    background: #fff6dc !important;
    border-color: #ead89f !important;
}
[data-profile-panel="performance-reviews"] > .profile-card {
    background: #fffbef !important;
    border-color: #ead89f !important;
}
[data-profile-panel="performance-reviews"] table thead th {
    background: #fff2cf !important;
}

/* DOCUMENTS / SLATE */
.employee-profile-tab.active[data-profile-tab="documents"],
[data-profile-panel="documents"] > .profile-card > .profile-card-header,
[data-profile-panel="documents"] .profile-card.sln-tone-neutral > .profile-card-header {
    background: #e5ebf2 !important;
    border-color: #b7c4d2 !important;
    color: #17365d !important;
}
[data-profile-panel="documents"] {
    background: #f0f3f7 !important;
    border-color: #d2dbe5 !important;
}
[data-profile-panel="documents"] > .profile-card {
    background: #f8fafc !important;
    border-color: #d2dbe5 !important;
}
[data-profile-panel="documents"] table thead th {
    background: #edf1f5 !important;
}

/* HR CASES / SOFT ROSE */
.employee-profile-tab.active[data-profile-tab="hr-cases"],
[data-profile-panel="hr-cases"] > .profile-card > .profile-card-header,
[data-profile-panel="hr-cases"] .profile-card.sln-tone-amber > .profile-card-header {
    background: #f6e0e0 !important;
    border-color: #d7aaaa !important;
    color: #17365d !important;
}
[data-profile-panel="hr-cases"] {
    background: #fbeeee !important;
    border-color: #e5c7c7 !important;
}
[data-profile-panel="hr-cases"] > .profile-card {
    background: #fff7f7 !important;
    border-color: #e5c7c7 !important;
}
[data-profile-panel="hr-cases"] table thead th {
    background: #f8e8e8 !important;
}

/* Make the matching section heading visually connected to its active tab. */
[data-profile-panel] > .profile-card > .profile-card-header {
    border-bottom-style: solid !important;
    border-bottom-width: 1px !important;
    border-left-style: solid !important;
    border-left-width: 4px !important;
}
[data-profile-panel="profile"] > .profile-card > .profile-card-header { border-left-color: #5678b4 !important; }
[data-profile-panel="employment-history"] > .profile-card > .profile-card-header { border-left-color: #4d807a !important; }
[data-profile-panel="salary-history"] > .profile-card > .profile-card-header { border-left-color: #7865a0 !important; }
[data-profile-panel="attendance"] > .profile-card > .profile-card-header { border-left-color: #5c8469 !important; }
[data-profile-panel="performance-reviews"] > .profile-card > .profile-card-header { border-left-color: #a27628 !important; }
[data-profile-panel="documents"] > .profile-card > .profile-card-header { border-left-color: #718096 !important; }
[data-profile-panel="hr-cases"] > .profile-card > .profile-card-header { border-left-color: #9a6262 !important; }

/* Keep the colour system out of print/PDF output. */
@media print {
    [data-profile-panel],
    [data-profile-panel] > .profile-card,
    [data-profile-panel] > .profile-card > .profile-card-header,
    [data-profile-panel] table thead th {
        background: #fff !important;
        border-color: #dfe5ec !important;
    }
}

/* =========================================================
   SLN UI FOUNDATION - STEP 1H
   NEUTRAL CONTENT BACKGROUND + COLOR-MATCHED TAB/HEADER
   - Keep the tab and matching section header in the same soft color family.
   - Return the main content/body background to the original neutral white.
   - Navy remains the dominant SLN system color.
========================================================= */

/* Restore the main tab content canvas to the original neutral treatment. */
[data-profile-panel="profile"],
[data-profile-panel="employment-history"],
[data-profile-panel="salary-history"],
[data-profile-panel="attendance"],
[data-profile-panel="performance-reviews"],
[data-profile-panel="documents"],
[data-profile-panel="hr-cases"] {
    background: #ffffff !important;
    border-color: #d9e2ec !important;
}

/* Keep the actual record/card area neutral and easy to read. */
[data-profile-panel] > .profile-card {
    background: #ffffff !important;
    border-color: #d9e2ec !important;
}

/* Dense tables return to the standard neutral business-table background. */
[data-profile-panel] table thead th {
    background: #eef2f7 !important;
}
[data-profile-panel] .table-wrapper,
[data-profile-panel] .empty-state {
    background: #ffffff !important;
}

/* Preserve the exact tab <-> section-header color pairing from Step 1G. */
/* PROFILE / BLUE */
.employee-profile-tab.active[data-profile-tab="profile"],
[data-profile-panel="profile"] > .profile-card > .profile-card-header,
[data-profile-panel="profile"] .profile-card.sln-tone-blue > .profile-card-header {
    background: #dbe8f8 !important;
    border-color: #9fb9df !important;
}
/* EMPLOYMENT HISTORY / TEAL */
.employee-profile-tab.active[data-profile-tab="employment-history"],
[data-profile-panel="employment-history"] > .profile-card > .profile-card-header,
[data-profile-panel="employment-history"] .profile-card.sln-tone-teal > .profile-card-header {
    background: #d4ebe7 !important;
    border-color: #8fc2b9 !important;
}
/* SALARY HISTORY / LAVENDER */
.employee-profile-tab.active[data-profile-tab="salary-history"],
[data-profile-panel="salary-history"] > .profile-card > .profile-card-header,
[data-profile-panel="salary-history"] .profile-card.sln-tone-indigo > .profile-card-header {
    background: #e2daf5 !important;
    border-color: #b8a6df !important;
}
/* ATTENDANCE / GREEN */
.employee-profile-tab.active[data-profile-tab="attendance"],
[data-profile-panel="attendance"] > .profile-card > .profile-card-header,
[data-profile-panel="attendance"] .profile-card.sln-tone-green > .profile-card-header {
    background: #dcecdf !important;
    border-color: #9fc7aa !important;
}
/* PERFORMANCE REVIEWS / AMBER */
.employee-profile-tab.active[data-profile-tab="performance-reviews"],
[data-profile-panel="performance-reviews"] > .profile-card > .profile-card-header,
[data-profile-panel="performance-reviews"] .profile-card.sln-tone-blue > .profile-card-header {
    background: #ffedbd !important;
    border-color: #dfc16f !important;
}
/* DOCUMENTS / SLATE */
.employee-profile-tab.active[data-profile-tab="documents"],
[data-profile-panel="documents"] > .profile-card > .profile-card-header,
[data-profile-panel="documents"] .profile-card.sln-tone-neutral > .profile-card-header {
    background: #e5ebf2 !important;
    border-color: #b7c4d2 !important;
}
/* HR CASES / SOFT ROSE */
.employee-profile-tab.active[data-profile-tab="hr-cases"],
[data-profile-panel="hr-cases"] > .profile-card > .profile-card-header,
[data-profile-panel="hr-cases"] .profile-card.sln-tone-amber > .profile-card-header {
    background: #f6e0e0 !important;
    border-color: #d7aaaa !important;
}

@media print {
    [data-profile-panel],
    [data-profile-panel] > .profile-card,
    [data-profile-panel] > .profile-card > .profile-card-header,
    [data-profile-panel] table thead th {
        background: #fff !important;
        border-color: #dfe5ec !important;
    }
}


/* =========================================================
   SLN UI STANDARD - FULL HR ROLLOUT STEP 2
   Applies the approved Payroll-inspired visual system to the
   remaining current HR screens without changing business logic.
   Navy remains the primary identity; secondary colors are subtle
   section/navigation cues only.
========================================================= */

/* Consistent working width and vertical rhythm for master/form pages. */
.sln-standard-page {
    width: min(1280px, 100%);
    margin: 0 auto;
}

.sln-standard-page .page-header {
    margin-bottom: 16px;
}

/* Shared depth language used throughout Payroll and the approved HR dashboard. */
.sln-master-toolbar,
.sln-master-table-card,
.sln-master-form-card,
.sln-form-page .form-section,
.sln-form-page .edit-section,
.sln-form-page .change-section,
.sln-form-page .salary-section,
.sln-form-page .form-actions,
.sln-form-page .edit-actions,
.sln-form-page .change-actions,
.sln-form-page .salary-actions,
.sln-form-page .edit-warning,
.sln-form-page .change-warning,
.sln-form-page .salary-notice,
.sln-form-page .edit-id-box,
.sln-form-page .change-summary-box,
.sln-form-page .salary-summary-box,
.sln-add-employee-page .summary-box,
.sln-organization-page .organization-add-card,
.sln-organization-page .department-accordion,
.sln-portal-module-card {
    box-shadow: 0 4px 13px rgba(24,45,76,.055);
}

.sln-master-toolbar,
.sln-master-table-card,
.sln-master-form-card,
.sln-form-page .form-section,
.sln-form-page .edit-section,
.sln-form-page .change-section,
.sln-form-page .salary-section,
.sln-organization-page .organization-add-card,
.sln-organization-page .department-accordion {
    border-radius: 10px !important;
}

/* Employee Master: neutral search, blue record table identity. */
.sln-employee-master-page .sln-master-toolbar {
    background: #ffffff;
    border-left: 3px solid #5678b4;
}

.sln-master-table-card.sln-tone-blue {
    background: #ffffff !important;
    border-color: #d7e1ee !important;
    border-top: 3px solid #5678b4 !important;
    overflow: hidden;
}

.sln-master-table-card.sln-tone-blue > .table-header {
    background: #edf3fb !important;
    border-bottom-color: #c9d9ec !important;
    padding: 12px 15px;
}

.sln-master-table-card table thead {
    background: #eef2f7;
}

/* Master-data add cards: same restrained blue/teal language as Dashboard cards. */
.sln-organization-page .organization-add-card.sln-tone-blue,
.sln-master-form-card.sln-tone-blue {
    background: #f2f7fd !important;
    border-color: #d5e3f2 !important;
    border-top: 3px solid #5678b4 !important;
}

.sln-organization-page .organization-add-card.sln-tone-teal,
.sln-master-form-card.sln-tone-teal {
    background: #f1f8f7 !important;
    border-color: #d3e6e2 !important;
    border-top: 3px solid #4d807a !important;
}

.sln-organization-page .organization-add-card input,
.sln-organization-page .organization-add-card select,
.sln-master-form-card input,
.sln-master-form-card select,
.sln-master-form-card textarea {
    background: #ffffff !important;
}

.sln-organization-page .accordion-toolbar {
    background: #ffffff;
    border: 1px solid #dde5ee;
    border-left: 3px solid #718096;
    border-radius: 9px;
    box-shadow: 0 3px 10px rgba(24,45,76,.045);
}

.sln-organization-page .department-accordion.sln-master-record {
    border-color: #dbe3ec !important;
    background: #ffffff;
}

.sln-organization-page .department-row {
    background: #f8fafc;
}

.sln-organization-page .department-accordion.open .department-row {
    background: #edf3f9;
}

/* Form tone system: visible like Payroll, still deliberately pale. */
.sln-form-page .form-section[class*="sln-tone-"],
.sln-form-page .edit-section[class*="sln-tone-"],
.sln-form-page .change-section[class*="sln-tone-"],
.sln-form-page .salary-section[class*="sln-tone-"] {
    border: 1px solid var(--tone-line) !important;
    border-left: 3px solid var(--tone-accent) !important;
    background: var(--tone-bg) !important;
    padding: 16px 18px !important;
    margin-bottom: 14px !important;
}

/* Payroll-like visible soft section families. */
.sln-form-page .sln-tone-blue {
    --tone-bg:#f2f7fd; --tone-line:#d9e6f5; --tone-accent:#5678b4;
}
.sln-form-page .sln-tone-teal {
    --tone-bg:#f1f8f7; --tone-line:#d5e8e4; --tone-accent:#4d807a;
}
.sln-form-page .sln-tone-indigo {
    --tone-bg:#f4f3fb; --tone-line:#dfd9f0; --tone-accent:#7865a0;
}
.sln-form-page .sln-tone-lavender {
    --tone-bg:#f7f4fc; --tone-line:#e2d9fa; --tone-accent:#80699a;
}
.sln-form-page .sln-tone-green {
    --tone-bg:#f3f8f4; --tone-line:#d7e6db; --tone-accent:#5c8469;
}
.sln-form-page .sln-tone-amber {
    --tone-bg:#fff9e9; --tone-line:#f1dfaa; --tone-accent:#a27628;
}
.sln-form-page .sln-tone-neutral {
    --tone-bg:#f8fafc; --tone-line:#dce3eb; --tone-accent:#718096;
}

.sln-form-page [class*="sln-tone-"] .section-heading,
.sln-form-page [class*="sln-tone-"] .edit-section-header,
.sln-form-page [class*="sln-tone-"] .change-section-header,
.sln-form-page [class*="sln-tone-"] .salary-section-header {
    border-bottom-color: var(--tone-line) !important;
}

.sln-form-page [class*="sln-tone-"] h3 {
    color: #17365d !important;
}

.sln-form-page [class*="sln-tone-"] input,
.sln-form-page [class*="sln-tone-"] select,
.sln-form-page [class*="sln-tone-"] textarea {
    background: #ffffff !important;
}

/* Compact section spacing: preserve readability while fitting more operational data. */
.sln-form-page .section-heading,
.sln-form-page .edit-section-header,
.sln-form-page .change-section-header,
.sln-form-page .salary-section-header {
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
}

.sln-form-page .form-grid,
.sln-form-page .edit-grid,
.sln-form-page .change-grid,
.sln-form-page .salary-grid {
    gap: 12px 14px !important;
}

/* ID / summary strips use subtle module accents rather than flat gray boxes. */
.sln-add-employee-page .summary-box,
.sln-edit-employee-page .edit-id-box,
.sln-employment-change-page .change-summary-box,
.sln-salary-change-page .salary-summary-box {
    background: #ffffff !important;
    border: 1px solid #dbe3ec !important;
    border-left: 3px solid #5678b4 !important;
    border-radius: 8px !important;
}

.sln-add-employee-page .summary-box:nth-child(2),
.sln-edit-employee-page .edit-id-box:nth-child(2),
.sln-employment-change-page .change-summary-box:nth-child(2),
.sln-salary-change-page .salary-summary-box:nth-child(2) {
    border-left-color: #4d807a !important;
}
.sln-add-employee-page .summary-box:nth-child(3),
.sln-edit-employee-page .edit-id-box:nth-child(3),
.sln-employment-change-page .change-summary-box:nth-child(3),
.sln-salary-change-page .salary-summary-box:nth-child(3) {
    border-left-color: #a27628 !important;
}
.sln-employment-change-page .change-summary-box:nth-child(4),
.sln-salary-change-page .salary-summary-box:nth-child(4) {
    border-left-color: #5c8469 !important;
}

/* Notices and action bars align with the approved hierarchy. */
.sln-form-page .edit-warning,
.sln-form-page .change-warning,
.sln-form-page .salary-notice {
    border-radius: 9px !important;
}

.sln-form-page .form-actions,
.sln-form-page .edit-actions,
.sln-form-page .change-actions,
.sln-form-page .salary-actions {
    background: #ffffff !important;
    border: 1px solid #dce3eb !important;
    border-radius: 9px !important;
    padding: 11px 13px !important;
}

/* Legal Entity page: teal entry form, blue record list. */
.sln-legal-entity-page .sln-master-form-card.sln-tone-teal {
    box-shadow: 0 4px 13px rgba(24,45,76,.06);
}

.sln-legal-entity-page .sln-master-table-card .table-header {
    background: #edf3fb;
}

/* Portal: existing module layout keeps approved module accents, add consistent depth to the lower card. */
.sln-portal-module-card {
    border-radius: 12px !important;
    box-shadow: 0 5px 16px rgba(24,45,76,.06) !important;
}

/* Keep current polished login page, but align input/button radius and depth with the standard. */
.hr-login-shell {
    box-shadow: 0 12px 34px rgba(18,35,63,.12) !important;
}
.hr-login-form input,
.hr-login-submit {
    border-radius: 7px !important;
}

/* Responsive consistency. */
@media screen and (max-width: 900px) {
    .sln-standard-page {
        width: 100%;
    }
}

@media print {
    .sln-form-page .form-section,
    .sln-form-page .edit-section,
    .sln-form-page .change-section,
    .sln-form-page .salary-section,
    .sln-master-table-card,
    .sln-master-form-card,
    .sln-organization-page .organization-add-card,
    .sln-organization-page .department-accordion {
        background: #ffffff !important;
        box-shadow: none !important;
        border-color: #dfe5ec !important;
    }
}

/* =========================================================
   SLN UI STANDARD - FULL HR ROLLOUT STEP 2A
   PROFILE TAB: UNIFIED BLUE FAMILY
   - Every section displayed under the Profile tab uses the
     Profile tab's blue family for consistent visual grouping.
   - Other Employee 201 tabs keep their own assigned colors.
   - Navy remains the primary SLN identity color.
========================================================= */

/* All cards inside the Profile tab belong to one visual family. */
[data-profile-panel="profile"] .profile-card[class*="sln-tone-"] {
    --tone-bg: #f2f7fd !important;
    --tone-cell: #f8fbff !important;
    --tone-line: #d9e6f5 !important;
    --tone-accent: #5678b4 !important;
    background: var(--tone-bg) !important;
    border-color: var(--tone-line) !important;
    border-left-color: var(--tone-accent) !important;
}

[data-profile-panel="profile"] .profile-card[class*="sln-tone-"] > .profile-card-header,
[data-profile-panel="profile"] > .profile-card > .profile-card-header {
    background: #dbe8f8 !important;
    border-color: #9fb9df !important;
    border-left-color: #5678b4 !important;
}

[data-profile-panel="profile"] .profile-card[class*="sln-tone-"] .profile-detail {
    background: #f8fbff !important;
    border-color: #d9e6f5 !important;
}

/* Keep the Profile tab itself in the same family. */
.employee-profile-tab[data-profile-tab="profile"] {
    background: #f4f8fe !important;
    border-color: #d8e5f6 !important;
    color: #29466f !important;
}
.employee-profile-tab.active[data-profile-tab="profile"] {
    background: #dbe8f8 !important;
    border-color: #9fb9df !important;
    color: #17365d !important;
}

@media print {
    [data-profile-panel="profile"] .profile-card[class*="sln-tone-"],
    [data-profile-panel="profile"] .profile-card[class*="sln-tone-"] > .profile-card-header,
    [data-profile-panel="profile"] .profile-card[class*="sln-tone-"] .profile-detail {
        background: #fff !important;
        border-color: #dfe5ec !important;
    }
}

/* =========================================================
   SLN UI STANDARD - FULL HR ROLLOUT STEP 2B
   HEADER-ONLY SECTION COLOR + NEUTRAL CONTENT
   - Matching tab and section header retain their assigned color.
   - Card bodies, data cells, forms, tables, and content areas return
     to white / neutral business surfaces.
   - Navy remains the primary SLN identity and action color.
========================================================= */

/* All Employee 201 tab content canvases stay neutral. */
[data-profile-panel] {
    background: #ffffff !important;
    border-color: #d9e2ec !important;
}

/* Section/card bodies are neutral regardless of tone class. */
[data-profile-panel] > .profile-card,
[data-profile-panel] .profile-card[class*="sln-tone-"] {
    background: #ffffff !important;
    border-color: #d9e2ec !important;
}

/* Profile detail/data blocks use a quiet neutral surface, not the tab color. */
[data-profile-panel] .profile-detail,
[data-profile-panel="profile"] .profile-card[class*="sln-tone-"] .profile-detail {
    background: #f8fafc !important;
    border-color: #dce3eb !important;
}

/* Actual inputs remain white for clarity and consistency with Payroll. */
[data-profile-panel] input:not([type="checkbox"]):not([type="radio"]),
[data-profile-panel] select,
[data-profile-panel] textarea {
    background: #ffffff !important;
    border-color: #cfd9e5 !important;
}

/* Tables and empty states remain neutral; only the section header carries color. */
[data-profile-panel] .table-wrapper,
[data-profile-panel] .empty-state,
[data-profile-panel] table,
[data-profile-panel] tbody,
[data-profile-panel] tr,
[data-profile-panel] td {
    background: #ffffff !important;
}
[data-profile-panel] table thead th {
    background: #eef2f7 !important;
    border-color: #d9e2ec !important;
}

/* Summary/stat boxes inside tabs stay neutral and compact. */
[data-profile-panel] .metric-card,
[data-profile-panel] .stat-card,
[data-profile-panel] .summary-card,
[data-profile-panel] .summary-box {
    background: #f8fafc !important;
    border-color: #dce3eb !important;
}

/* Re-assert the approved tab <-> header color pairing only. */
/* PROFILE / BLUE */
.employee-profile-tab.active[data-profile-tab="profile"],
[data-profile-panel="profile"] > .profile-card > .profile-card-header,
[data-profile-panel="profile"] .profile-card[class*="sln-tone-"] > .profile-card-header {
    background: #dbe8f8 !important;
    border-color: #9fb9df !important;
    border-left-color: #5678b4 !important;
}

/* EMPLOYMENT HISTORY / TEAL */
.employee-profile-tab.active[data-profile-tab="employment-history"],
[data-profile-panel="employment-history"] > .profile-card > .profile-card-header {
    background: #d4ebe7 !important;
    border-color: #8fc2b9 !important;
    border-left-color: #4d807a !important;
}

/* SALARY HISTORY / LAVENDER */
.employee-profile-tab.active[data-profile-tab="salary-history"],
[data-profile-panel="salary-history"] > .profile-card > .profile-card-header {
    background: #e2daf5 !important;
    border-color: #b8a6df !important;
    border-left-color: #7865a0 !important;
}

/* ATTENDANCE / GREEN */
.employee-profile-tab.active[data-profile-tab="attendance"],
[data-profile-panel="attendance"] > .profile-card > .profile-card-header {
    background: #dcecdf !important;
    border-color: #9fc7aa !important;
    border-left-color: #5c8469 !important;
}

/* PERFORMANCE REVIEWS / AMBER */
.employee-profile-tab.active[data-profile-tab="performance-reviews"],
[data-profile-panel="performance-reviews"] > .profile-card > .profile-card-header {
    background: #ffedbd !important;
    border-color: #dfc16f !important;
    border-left-color: #a27628 !important;
}

/* DOCUMENTS / SLATE */
.employee-profile-tab.active[data-profile-tab="documents"],
[data-profile-panel="documents"] > .profile-card > .profile-card-header {
    background: #e5ebf2 !important;
    border-color: #b7c4d2 !important;
    border-left-color: #718096 !important;
}

/* HR CASES / SOFT ROSE */
.employee-profile-tab.active[data-profile-tab="hr-cases"],
[data-profile-panel="hr-cases"] > .profile-card > .profile-card-header {
    background: #f6e0e0 !important;
    border-color: #d7aaaa !important;
    border-left-color: #9a6262 !important;
}

@media print {
    [data-profile-panel],
    [data-profile-panel] > .profile-card,
    [data-profile-panel] .profile-card[class*="sln-tone-"],
    [data-profile-panel] .profile-detail,
    [data-profile-panel] > .profile-card > .profile-card-header,
    [data-profile-panel] table thead th,
    [data-profile-panel] table,
    [data-profile-panel] td {
        background: #ffffff !important;
        border-color: #dfe5ec !important;
    }
}

/* =========================================================
   SLN UI STANDARD - FULL HR ROLLOUT STEP 2C
   HEADER-ONLY SEMANTIC COLOR SYSTEM
   - Semantic colors identify tabs and section headers only.
   - Forms, detail tiles, tables, and content bodies use one
     consistent neutral business surface.
   - Navy remains the primary SLN identity and action color.
========================================================= */

/* Shared header palette used by any semantic-tone section. */
.sln-tone-blue {
    --tone-header-bg:#dbe8f8;
    --tone-header-line:#9fb9df;
    --tone-accent:#5678b4;
}
.sln-tone-teal {
    --tone-header-bg:#d4ebe7;
    --tone-header-line:#8fc2b9;
    --tone-accent:#4d807a;
}
.sln-tone-indigo,
.sln-tone-lavender {
    --tone-header-bg:#e2daf5;
    --tone-header-line:#b8a6df;
    --tone-accent:#7865a0;
}
.sln-tone-green {
    --tone-header-bg:#dcecdf;
    --tone-header-line:#9fc7aa;
    --tone-accent:#5c8469;
}
.sln-tone-amber {
    --tone-header-bg:#ffedbd;
    --tone-header-line:#dfc16f;
    --tone-accent:#a27628;
}
.sln-tone-neutral {
    --tone-header-bg:#e5ebf2;
    --tone-header-line:#b7c4d2;
    --tone-accent:#718096;
}

/* ---------------------------------------------------------
   Employee 201 tabs: only the section header carries color.
   Everything below the header is neutral and consistent.
--------------------------------------------------------- */
[data-profile-panel] > .profile-card,
[data-profile-panel] .profile-card[class*="sln-tone-"] {
    background:#ffffff !important;
    border-color:#d9e2ec !important;
}

/* Stronger specificity than legacy tone rules so HR Case fields,
   Profile fields, and all future Employee 201 form tiles stay neutral. */
[data-profile-panel] .profile-card[class*="sln-tone-"] .profile-detail,
[data-profile-panel] > .profile-card .profile-detail,
[data-profile-panel] .profile-stage-grid > *,
[data-profile-panel] .metric-card,
[data-profile-panel] .stat-card,
[data-profile-panel] .summary-card,
[data-profile-panel] .summary-box {
    background:#f8fafc !important;
    border-color:#dce3eb !important;
}

[data-profile-panel] .profile-detail-grid,
[data-profile-panel] form,
[data-profile-panel] .table-wrapper,
[data-profile-panel] .empty-state,
[data-profile-panel] table,
[data-profile-panel] tbody,
[data-profile-panel] tr,
[data-profile-panel] td {
    background:#ffffff !important;
}

[data-profile-panel] input:not([type="checkbox"]):not([type="radio"]),
[data-profile-panel] select,
[data-profile-panel] textarea {
    background:#ffffff !important;
    border-color:#cfd9e5 !important;
}

[data-profile-panel] table thead th {
    background:#eef2f7 !important;
    border-color:#d9e2ec !important;
}

/* Keep the already-approved tab <-> header pairings. */
[data-profile-panel="profile"] > .profile-card > .profile-card-header,
[data-profile-panel="profile"] .profile-card[class*="sln-tone-"] > .profile-card-header {
    background:#dbe8f8 !important;
    border-color:#9fb9df !important;
    border-left-color:#5678b4 !important;
}
[data-profile-panel="employment-history"] > .profile-card > .profile-card-header {
    background:#d4ebe7 !important;
    border-color:#8fc2b9 !important;
    border-left-color:#4d807a !important;
}
[data-profile-panel="salary-history"] > .profile-card > .profile-card-header {
    background:#e2daf5 !important;
    border-color:#b8a6df !important;
    border-left-color:#7865a0 !important;
}
[data-profile-panel="attendance"] > .profile-card > .profile-card-header {
    background:#dcecdf !important;
    border-color:#9fc7aa !important;
    border-left-color:#5c8469 !important;
}
[data-profile-panel="performance-reviews"] > .profile-card > .profile-card-header {
    background:#ffedbd !important;
    border-color:#dfc16f !important;
    border-left-color:#a27628 !important;
}
[data-profile-panel="documents"] > .profile-card > .profile-card-header {
    background:#e5ebf2 !important;
    border-color:#b7c4d2 !important;
    border-left-color:#718096 !important;
}
[data-profile-panel="hr-cases"] > .profile-card > .profile-card-header {
    background:#f6e0e0 !important;
    border-color:#d7aaaa !important;
    border-left-color:#9a6262 !important;
}

/* ---------------------------------------------------------
   Add/Edit/Employment Change/Future Compensation forms:
   white section body + colored heading band only.
--------------------------------------------------------- */
.sln-form-page .form-section[class*="sln-tone-"],
.sln-form-page .edit-section[class*="sln-tone-"],
.sln-form-page .change-section[class*="sln-tone-"],
.sln-form-page .salary-section[class*="sln-tone-"] {
    background:#ffffff !important;
    border-color:#d9e2ec !important;
    border-left-color:#d9e2ec !important;
}

.sln-form-page [class*="sln-tone-"] .section-heading,
.sln-form-page [class*="sln-tone-"] .edit-section-header,
.sln-form-page [class*="sln-tone-"] .change-section-header,
.sln-form-page [class*="sln-tone-"] .salary-section-header {
    background:var(--tone-header-bg) !important;
    border:1px solid var(--tone-header-line) !important;
    border-left:3px solid var(--tone-accent) !important;
    margin:-16px -18px 12px !important;
    padding:10px 14px !important;
    border-radius:9px 9px 0 0 !important;
}

.sln-form-page [class*="sln-tone-"] .form-group,
.sln-form-page [class*="sln-tone-"] .edit-field,
.sln-form-page [class*="sln-tone-"] .change-field,
.sln-form-page [class*="sln-tone-"] .salary-field {
    background:transparent !important;
}

.sln-form-page [class*="sln-tone-"] input,
.sln-form-page [class*="sln-tone-"] select,
.sln-form-page [class*="sln-tone-"] textarea {
    background:#ffffff !important;
    border-color:#cfd9e5 !important;
}

/* ---------------------------------------------------------
   Performance Review workflow: neutral cards and data bodies;
   semantic color lives in the section heading only.
--------------------------------------------------------- */
.pr-section[class*="sln-tone-"],
.prd-section[class*="sln-tone-"],
.prr-card[class*="sln-tone-"] {
    background:#ffffff !important;
    border-color:#d9e2ec !important;
    border-left-color:#d9e2ec !important;
}

.pr-section[class*="sln-tone-"] .pr-section-header {
    background:var(--tone-header-bg) !important;
    border:1px solid var(--tone-header-line) !important;
    border-left:3px solid var(--tone-accent) !important;
    margin:-22px -24px 16px !important;
    padding:11px 14px !important;
    border-radius:11px 11px 0 0 !important;
}

.pr-section[class*="sln-tone-"] .pr-criterion,
.pr-section[class*="sln-tone-"] .pr-result-box,
.prd-section[class*="sln-tone-"] table,
.prd-section[class*="sln-tone-"] .prd-summary-box,
.prr-card[class*="sln-tone-"] table {
    background:#ffffff !important;
    border-color:#dce3eb !important;
}

/* Detail/report cards use their H3 as the header band where no wrapper exists. */
.prd-section[class*="sln-tone-"] > h3,
.prr-card[class*="sln-tone-"] > h3 {
    background:var(--tone-header-bg) !important;
    border:1px solid var(--tone-header-line) !important;
    border-left:3px solid var(--tone-accent) !important;
    margin:-22px -24px 16px !important;
    padding:11px 14px !important;
    border-radius:11px 11px 0 0 !important;
    color:#17365d !important;
}

@media print {
    [data-profile-panel] .profile-card[class*="sln-tone-"] .profile-detail,
    .sln-form-page [class*="sln-tone-"] .section-heading,
    .sln-form-page [class*="sln-tone-"] .edit-section-header,
    .sln-form-page [class*="sln-tone-"] .change-section-header,
    .sln-form-page [class*="sln-tone-"] .salary-section-header,
    .pr-section[class*="sln-tone-"] .pr-section-header,
    .prd-section[class*="sln-tone-"] > h3,
    .prr-card[class*="sln-tone-"] > h3 {
        background:#ffffff !important;
        border-color:#dfe5ec !important;
    }
}

/* =========================================================
   SLN UI STANDARD - FULL HR ROLLOUT STEP 2D
   SOFTER CORPORATE SEMANTIC COLORS
   - Preserve tab/header color identity.
   - Reduce saturation so color acts only as a navigation cue.
   - Keep content areas neutral/white and navy dominant.
========================================================= */

/* Softer shared header palette. */
.sln-tone-blue {
    --tone-header-bg:#edf4fc;
    --tone-header-line:#c8d8ed;
    --tone-accent:#6f8fbd;
}
.sln-tone-teal {
    --tone-header-bg:#edf7f5;
    --tone-header-line:#c7e0db;
    --tone-accent:#648f89;
}
.sln-tone-indigo,
.sln-tone-lavender {
    --tone-header-bg:#f2effa;
    --tone-header-line:#d5caeb;
    --tone-accent:#8a79ad;
}
.sln-tone-green {
    --tone-header-bg:#f0f7f1;
    --tone-header-line:#cfe0d2;
    --tone-accent:#6f9278;
}
.sln-tone-amber {
    --tone-header-bg:#fff8e8;
    --tone-header-line:#ead8aa;
    --tone-accent:#ad8741;
}
.sln-tone-neutral {
    --tone-header-bg:#f3f6f9;
    --tone-header-line:#d6dee8;
    --tone-accent:#8190a2;
}

/* Employee 201 active tab + matching header: same hue, softer intensity. */
.employee-profile-tab.active[data-profile-tab="profile"],
[data-profile-panel="profile"] > .profile-card > .profile-card-header,
[data-profile-panel="profile"] .profile-card[class*="sln-tone-"] > .profile-card-header {
    background:#edf4fc !important;
    border-color:#c8d8ed !important;
    border-left-color:#6f8fbd !important;
}
.employee-profile-tab.active[data-profile-tab="employment-history"],
[data-profile-panel="employment-history"] > .profile-card > .profile-card-header {
    background:#edf7f5 !important;
    border-color:#c7e0db !important;
    border-left-color:#648f89 !important;
}
.employee-profile-tab.active[data-profile-tab="salary-history"],
[data-profile-panel="salary-history"] > .profile-card > .profile-card-header {
    background:#f2effa !important;
    border-color:#d5caeb !important;
    border-left-color:#8a79ad !important;
}
.employee-profile-tab.active[data-profile-tab="attendance"],
[data-profile-panel="attendance"] > .profile-card > .profile-card-header {
    background:#f0f7f1 !important;
    border-color:#cfe0d2 !important;
    border-left-color:#6f9278 !important;
}
.employee-profile-tab.active[data-profile-tab="performance-reviews"],
[data-profile-panel="performance-reviews"] > .profile-card > .profile-card-header {
    background:#fff8e8 !important;
    border-color:#ead8aa !important;
    border-left-color:#ad8741 !important;
}
.employee-profile-tab.active[data-profile-tab="documents"],
[data-profile-panel="documents"] > .profile-card > .profile-card-header {
    background:#f3f6f9 !important;
    border-color:#d6dee8 !important;
    border-left-color:#8190a2 !important;
}
.employee-profile-tab.active[data-profile-tab="hr-cases"],
[data-profile-panel="hr-cases"] > .profile-card > .profile-card-header {
    background:#fbf1f1 !important;
    border-color:#e4caca !important;
    border-left-color:#a87979 !important;
}

/* Keep content/body surfaces neutral regardless of semantic section. */
[data-profile-panel] > .profile-card,
[data-profile-panel] .profile-card[class*="sln-tone-"],
.sln-form-page .form-section[class*="sln-tone-"],
.sln-form-page .edit-section[class*="sln-tone-"],
.sln-form-page .change-section[class*="sln-tone-"],
.sln-form-page .salary-section[class*="sln-tone-"],
.pr-section[class*="sln-tone-"],
.prd-section[class*="sln-tone-"],
.prr-card[class*="sln-tone-"] {
    background:#ffffff !important;
}

/* =========================================================
   SLN UI STANDARD - DASHBOARD DEPTH STEP 3
   REFINED TACTILE / KEYCAP ELEVATION
   2026-09-29
   - Dashboard selections receive layered, premium elevation.
   - Hover lifts slightly; active/pressed state compresses depth.
   - Detail/forms remain unchanged and intentionally flatter.
   - Navy remains the dominant corporate action color.
========================================================= */

/* Shared dashboard depth tokens. */
.dashboard-page {
    --sln-depth-border: #d4dde8;
    --sln-depth-shadow-rest:
        0 1px 0 rgba(255,255,255,.96) inset,
        0 2px 4px rgba(21,42,72,.055),
        0 8px 16px rgba(29,52,84,.095),
        0 18px 30px rgba(29,52,84,.055);
    --sln-depth-shadow-hover:
        0 1px 0 rgba(255,255,255,.98) inset,
        0 4px 7px rgba(21,42,72,.07),
        0 12px 22px rgba(29,52,84,.125),
        0 24px 40px rgba(29,52,84,.07);
    --sln-depth-shadow-pressed:
        0 1px 0 rgba(255,255,255,.82) inset,
        0 2px 4px rgba(21,42,72,.06),
        0 5px 10px rgba(29,52,84,.08);
    --sln-depth-shadow-soft:
        0 1px 0 rgba(255,255,255,.94) inset,
        0 2px 4px rgba(21,42,72,.045),
        0 7px 14px rgba(29,52,84,.075),
        0 14px 24px rgba(29,52,84,.04);
}

/* Hero/title card: elevated, but calmer than selectable module cards. */
.dashboard-page .page-header {
    border-color: var(--sln-depth-border) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,.96) inset,
        0 3px 6px rgba(21,42,72,.045),
        0 10px 22px rgba(29,52,84,.085) !important;
}

/* Main selectable dashboard cards: strongest keycap-style depth. */
.dashboard-page .dashboard-module-card {
    border-color: var(--sln-depth-border) !important;
    box-shadow: var(--sln-depth-shadow-rest) !important;
    transform: translateY(0);
    transition:
        transform .16s cubic-bezier(.2,.7,.3,1),
        box-shadow .16s ease,
        border-color .16s ease,
        background-color .16s ease !important;
    will-change: transform;
}

.dashboard-page .dashboard-module-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--sln-depth-shadow-hover) !important;
}

.dashboard-page .dashboard-module-card:active {
    transform: translateY(1px) !important;
    box-shadow: var(--sln-depth-shadow-pressed) !important;
    transition-duration: .08s !important;
}

.dashboard-page .dashboard-module-card:focus-visible {
    outline: 3px solid rgba(79,118,182,.20);
    outline-offset: 3px;
}

/* Small identity badge/icon also gets a gentle raised keycap treatment. */
.dashboard-page .dashboard-module-icon {
    box-shadow:
        0 1px 0 rgba(255,255,255,.92) inset,
        0 2px 4px rgba(24,45,76,.07),
        0 5px 10px rgba(24,45,76,.055);
}

/* Navy Open action: more tactile than the surrounding card. */
.dashboard-page .dashboard-module-arrow {
    border: 1px solid rgba(12,40,77,.36);
    box-shadow:
        0 1px 0 rgba(255,255,255,.18) inset,
        0 2px 3px rgba(13,37,70,.15),
        0 6px 12px rgba(23,54,93,.22) !important;
    transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease;
}

.dashboard-page .dashboard-module-card:hover .dashboard-module-arrow {
    box-shadow:
        0 1px 0 rgba(255,255,255,.22) inset,
        0 3px 5px rgba(13,37,70,.18),
        0 8px 16px rgba(23,54,93,.25) !important;
}

.dashboard-page .dashboard-module-card:active .dashboard-module-arrow {
    transform: translateY(1px);
    box-shadow:
        0 1px 1px rgba(13,37,70,.12),
        0 3px 7px rgba(23,54,93,.17) !important;
}

/* Module-group container: visible depth, but not a clickable key. */
.dashboard-page > .card,
.dashboard-page .sln-portal-module-card {
    border-color: var(--sln-depth-border) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,.96) inset,
        0 3px 6px rgba(21,42,72,.04),
        0 10px 22px rgba(29,52,84,.075) !important;
}

/* Smaller module rows/tiles: medium depth hierarchy. */
.dashboard-page .future-module-card {
    border-color: #d7e0ea !important;
    box-shadow: var(--sln-depth-shadow-soft) !important;
    transition:
        transform .15s cubic-bezier(.2,.7,.3,1),
        box-shadow .15s ease,
        border-color .15s ease !important;
}

/* Only interactive future-module tiles should lift/press. */
.dashboard-page a.future-module-card:hover {
    transform: translateY(-2px) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,.97) inset,
        0 3px 6px rgba(21,42,72,.06),
        0 10px 18px rgba(29,52,84,.10),
        0 18px 30px rgba(29,52,84,.05) !important;
}

.dashboard-page a.future-module-card:active {
    transform: translateY(1px) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,.82) inset,
        0 2px 4px rgba(21,42,72,.055),
        0 5px 9px rgba(29,52,84,.075) !important;
}

.dashboard-page a.future-module-card:focus-visible {
    outline: 3px solid rgba(79,118,182,.18);
    outline-offset: 2px;
}

/* Planned/non-clickable rows remain elevated but intentionally calmer. */
.dashboard-page .future-module-card-planned,
.dashboard-page div.future-module-card {
    box-shadow:
        0 1px 0 rgba(255,255,255,.92) inset,
        0 2px 4px rgba(21,42,72,.035),
        0 6px 12px rgba(29,52,84,.055) !important;
}

/* Status pills read as small physical labels without becoming glossy. */
.dashboard-page .future-module-card .badge {
    box-shadow:
        0 1px 0 rgba(255,255,255,.75) inset,
        0 2px 5px rgba(24,45,76,.055);
}

/* Top-right dashboard navigation buttons get the same refined tactile cue. */
body:has(.dashboard-page) .logout-button {
    box-shadow:
        0 1px 0 rgba(255,255,255,.14) inset,
        0 2px 4px rgba(2,16,38,.16),
        0 5px 10px rgba(2,16,38,.12);
    transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease;
}

body:has(.dashboard-page) .logout-button:hover {
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255,255,255,.17) inset,
        0 3px 5px rgba(2,16,38,.18),
        0 7px 13px rgba(2,16,38,.14);
}

body:has(.dashboard-page) .logout-button:active {
    transform: translateY(1px);
    box-shadow:
        0 1px 2px rgba(2,16,38,.14),
        0 3px 6px rgba(2,16,38,.10);
}

/* Respect reduced-motion preferences while retaining the depth hierarchy. */
@media (prefers-reduced-motion: reduce) {
    .dashboard-page .dashboard-module-card,
    .dashboard-page .future-module-card,
    body:has(.dashboard-page) .logout-button {
        transition: none !important;
    }

    .dashboard-page .dashboard-module-card:hover,
    .dashboard-page .dashboard-module-card:active,
    .dashboard-page a.future-module-card:hover,
    .dashboard-page a.future-module-card:active,
    body:has(.dashboard-page) .logout-button:hover,
    body:has(.dashboard-page) .logout-button:active {
        transform: none !important;
    }
}

@media print {
    .dashboard-page .page-header,
    .dashboard-page .dashboard-module-card,
    .dashboard-page .dashboard-module-icon,
    .dashboard-page .dashboard-module-arrow,
    .dashboard-page > .card,
    .dashboard-page .future-module-card {
        box-shadow: none !important;
        transform: none !important;
    }
}

/* =========================================================
   SLN UI STANDARD - DASHBOARD DEPTH STEP 3A
   STRONGER PREMIUM KEYCAP DEPTH
   2026-09-29
   Approved visual target refinement:
   - Stronger, cleaner elevation on dashboard selections.
   - More visible accent identity on dashboard cards only.
   - Tactile navy buttons with highlight + cast shadow.
   - Detail/forms remain untouched and corporate-neutral.
========================================================= */

.dashboard-page {
    --sln-3d-edge: #d2dce8;
    --sln-3d-card-bg: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    --sln-3d-shadow-card:
        0 1px 0 rgba(255,255,255,.98) inset,
        0 2px 3px rgba(22,42,70,.10),
        0 8px 14px rgba(28,52,84,.15),
        0 18px 30px rgba(28,52,84,.10);
    --sln-3d-shadow-card-hover:
        0 1px 0 rgba(255,255,255,1) inset,
        0 3px 5px rgba(22,42,70,.12),
        0 11px 20px rgba(28,52,84,.19),
        0 24px 40px rgba(28,52,84,.11);
    --sln-3d-shadow-tile:
        0 1px 0 rgba(255,255,255,.98) inset,
        0 2px 3px rgba(22,42,70,.07),
        0 6px 11px rgba(28,52,84,.11),
        0 12px 20px rgba(28,52,84,.065);
}

/* Main dashboard hero/header: clearly lifted from the canvas. */
.dashboard-page .page-header {
    background: var(--sln-3d-card-bg) !important;
    border-color: var(--sln-3d-edge) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,.98) inset,
        0 3px 5px rgba(22,42,70,.08),
        0 10px 20px rgba(28,52,84,.14),
        0 20px 34px rgba(28,52,84,.075) !important;
}

/* Primary dashboard module cards: stronger soft-3D/keycap effect. */
.dashboard-page .dashboard-module-card {
    background: var(--sln-3d-card-bg) !important;
    border-color: var(--sln-3d-edge) !important;
    box-shadow: var(--sln-3d-shadow-card) !important;
    transform: translateY(-1px);
}

.dashboard-page .dashboard-module-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--sln-3d-shadow-card-hover) !important;
}

.dashboard-page .dashboard-module-card:active {
    transform: translateY(1px) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,.82) inset,
        0 1px 2px rgba(22,42,70,.09),
        0 4px 8px rgba(28,52,84,.11) !important;
}

/* Dashboard-only accents regain a little presence without affecting forms. */
.dashboard-page .dashboard-module-card:nth-child(1) {
    --module-accent: #4a78c2;
    --module-tint: #eaf2ff;
    --module-line: #bfd1ee;
}
.dashboard-page .dashboard-module-card:nth-child(2) {
    --module-accent: #3c8b84;
    --module-tint: #eaf7f5;
    --module-line: #bedfdc;
}
.dashboard-page .dashboard-module-card:nth-child(3) {
    --module-accent: #b07816;
    --module-tint: #fff4de;
    --module-line: #ead09a;
}
.dashboard-page .dashboard-module-card:nth-child(4) {
    --module-accent: #3f825f;
    --module-tint: #eaf6ef;
    --module-line: #bfdcc9;
}

.dashboard-page .dashboard-module-card {
    border-top-color: var(--module-accent) !important;
}

.dashboard-page .dashboard-module-icon {
    background: linear-gradient(180deg, #ffffff 0%, var(--module-tint) 100%) !important;
    border-color: var(--module-line) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,1) inset,
        0 2px 3px rgba(22,42,70,.10),
        0 5px 9px rgba(28,52,84,.10) !important;
}

/* Navy action buttons: premium keycap with visible lower edge and cast shadow. */
.dashboard-page .dashboard-module-arrow {
    background: linear-gradient(180deg, #274a80 0%, #1d3a68 100%) !important;
    border: 1px solid #17335e !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,.24) inset,
        0 -1px 0 rgba(5,22,48,.22) inset,
        0 3px 4px rgba(10,31,60,.20),
        0 7px 12px rgba(19,47,83,.28) !important;
}

.dashboard-page .dashboard-module-card:hover .dashboard-module-arrow {
    background: linear-gradient(180deg, #2b5089 0%, #1d3966 100%) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,.27) inset,
        0 -1px 0 rgba(5,22,48,.24) inset,
        0 4px 6px rgba(10,31,60,.22),
        0 9px 15px rgba(19,47,83,.31) !important;
}

.dashboard-page .dashboard-module-card:active .dashboard-module-arrow {
    transform: translateY(2px) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,.13) inset,
        0 1px 2px rgba(10,31,60,.18),
        0 3px 6px rgba(19,47,83,.20) !important;
}

/* Large module grouping panel gets a distinct raised platform. */
.dashboard-page > .card,
.dashboard-page .sln-portal-module-card {
    background: var(--sln-3d-card-bg) !important;
    border-color: var(--sln-3d-edge) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,.98) inset,
        0 3px 5px rgba(22,42,70,.065),
        0 10px 20px rgba(28,52,84,.11),
        0 18px 30px rgba(28,52,84,.055) !important;
}

/* Smaller dashboard rows: visibly raised selections, lighter than main cards. */
.dashboard-page .future-module-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%) !important;
    border-color: #d5dfea !important;
    box-shadow: var(--sln-3d-shadow-tile) !important;
}

.dashboard-page a.future-module-card:hover {
    transform: translateY(-4px) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,1) inset,
        0 3px 5px rgba(22,42,70,.09),
        0 9px 16px rgba(28,52,84,.15),
        0 17px 28px rgba(28,52,84,.075) !important;
}

.dashboard-page a.future-module-card:active {
    transform: translateY(1px) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,.82) inset,
        0 1px 2px rgba(22,42,70,.07),
        0 4px 7px rgba(28,52,84,.09) !important;
}

/* Non-clickable planned cards keep depth but are visually calmer. */
.dashboard-page .future-module-card-planned,
.dashboard-page div.future-module-card {
    box-shadow:
        0 1px 0 rgba(255,255,255,.96) inset,
        0 2px 3px rgba(22,42,70,.055),
        0 6px 10px rgba(28,52,84,.075),
        0 11px 18px rgba(28,52,84,.04) !important;
}

/* Status chips read as small raised labels. */
.dashboard-page .future-module-card .badge,
.dashboard-page .badge {
    box-shadow:
        0 1px 0 rgba(255,255,255,.88) inset,
        0 2px 4px rgba(22,42,70,.08),
        0 5px 8px rgba(28,52,84,.055) !important;
}

/* Keep printed output flat and clean. */
@media print {
    .dashboard-page .page-header,
    .dashboard-page .dashboard-module-card,
    .dashboard-page .dashboard-module-icon,
    .dashboard-page .dashboard-module-arrow,
    .dashboard-page > .card,
    .dashboard-page .future-module-card {
        background: #fff !important;
        box-shadow: none !important;
        transform: none !important;
    }
}

/* =========================================================
   SLN UI STANDARD - DASHBOARD DEPTH STEP 3B
   DEEPER CORPORATE KEYCAP / COLORED DEPTH
   2026-09-29
   Refinement target:
   - Stronger physical separation from dashboard canvas.
   - Deeper layered shadows, still soft and corporate.
   - Same subtle accent hues, but with depth through edge/shadow,
     not stronger saturation.
   - Dashboard-only. Detail/forms remain unchanged.
========================================================= */

.dashboard-page {
    --sln-depth-edge: #cbd6e3;
    --sln-depth-base: #bcc8d6;
    --sln-depth-canvas: #eef3f8;
    --sln-depth-card: linear-gradient(180deg, #ffffff 0%, #fbfdff 72%, #f7faff 100%);
    --sln-depth-hero:
        0 1px 0 rgba(255,255,255,1) inset,
        0 -1px 0 rgba(194,206,220,.38) inset,
        0 4px 7px rgba(21,43,72,.10),
        0 13px 24px rgba(29,55,88,.17),
        0 28px 48px rgba(29,55,88,.095);
    --sln-depth-card-shadow:
        0 1px 0 rgba(255,255,255,1) inset,
        0 -2px 0 rgba(185,198,214,.50) inset,
        0 3px 4px rgba(17,37,64,.12),
        0 10px 18px rgba(25,49,82,.20),
        0 22px 34px rgba(25,49,82,.105);
    --sln-depth-card-hover:
        0 1px 0 rgba(255,255,255,1) inset,
        0 -2px 0 rgba(180,194,210,.54) inset,
        0 4px 6px rgba(17,37,64,.14),
        0 14px 24px rgba(25,49,82,.23),
        0 30px 46px rgba(25,49,82,.12);
    --sln-depth-tile:
        0 1px 0 rgba(255,255,255,1) inset,
        0 -1px 0 rgba(190,202,216,.42) inset,
        0 3px 5px rgba(18,39,66,.09),
        0 9px 15px rgba(27,52,84,.145),
        0 18px 28px rgba(27,52,84,.075);
}

/* Give the dashboard canvas enough contrast for the raised pieces to read. */
body:has(.dashboard-page) {
    background: var(--sln-depth-canvas) !important;
}

/* Hero/header: premium floating slab, not a flat card. */
.dashboard-page .page-header {
    background: var(--sln-depth-card) !important;
    border-color: var(--sln-depth-edge) !important;
    box-shadow: var(--sln-depth-hero) !important;
}

/* Main selectable cards: deeper keycap base plus accent-tinted cast shadow. */
.dashboard-page .dashboard-module-card {
    background: var(--sln-depth-card) !important;
    border-color: var(--sln-depth-edge) !important;
    border-top-width: 4px !important;
    border-bottom-color: var(--sln-depth-base) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,1) inset,
        0 -2px 0 rgba(185,198,214,.52) inset,
        0 3px 4px rgba(17,37,64,.12),
        0 10px 18px rgba(25,49,82,.20),
        0 22px 34px rgba(25,49,82,.105),
        0 9px 22px color-mix(in srgb, var(--module-accent, #4a78c2) 18%, transparent) !important;
    transform: translateY(-2px);
}

.dashboard-page .dashboard-module-card:hover {
    transform: translateY(-7px) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,1) inset,
        0 -2px 0 rgba(178,191,208,.56) inset,
        0 5px 7px rgba(17,37,64,.15),
        0 15px 26px rgba(25,49,82,.24),
        0 33px 50px rgba(25,49,82,.13),
        0 13px 28px color-mix(in srgb, var(--module-accent, #4a78c2) 22%, transparent) !important;
}

.dashboard-page .dashboard-module-card:active {
    transform: translateY(1px) !important;
    box-shadow:
        0 2px 5px rgba(18,39,66,.14) inset,
        0 1px 0 rgba(255,255,255,.72),
        0 4px 7px rgba(25,49,82,.13) !important;
}

/* Accent depth: same color family, more dimensional through gradient and shadow. */
.dashboard-page .dashboard-module-icon {
    background:
        linear-gradient(145deg, #ffffff 0%, var(--module-tint) 62%, color-mix(in srgb, var(--module-tint) 74%, var(--module-accent) 26%) 100%) !important;
    border-color: var(--module-line) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,1) inset,
        0 -1px 0 color-mix(in srgb, var(--module-accent) 20%, transparent) inset,
        0 3px 5px rgba(18,39,66,.12),
        0 7px 12px color-mix(in srgb, var(--module-accent) 22%, transparent) !important;
}

/* Navy Open buttons: visibly raised key with a lower face and crisp highlight. */
.dashboard-page .dashboard-module-arrow {
    background: linear-gradient(180deg, #31598f 0%, #274979 48%, #1d3967 100%) !important;
    border: 1px solid #18335e !important;
    border-bottom: 3px solid #132b50 !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,.34) inset,
        0 -1px 0 rgba(6,21,44,.28) inset,
        0 3px 4px rgba(7,25,52,.23),
        0 9px 15px rgba(18,45,81,.34),
        0 16px 24px rgba(18,45,81,.16) !important;
    transform: translateY(-1px);
}

.dashboard-page .dashboard-module-card:hover .dashboard-module-arrow {
    background: linear-gradient(180deg, #35629b 0%, #294e81 48%, #1d3967 100%) !important;
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgba(255,255,255,.38) inset,
        0 -1px 0 rgba(6,21,44,.30) inset,
        0 4px 5px rgba(7,25,52,.25),
        0 11px 18px rgba(18,45,81,.38),
        0 20px 30px rgba(18,45,81,.18) !important;
}

.dashboard-page .dashboard-module-card:active .dashboard-module-arrow {
    transform: translateY(2px) !important;
    border-bottom-width: 1px !important;
    box-shadow:
        0 2px 4px rgba(7,25,52,.22) inset,
        0 2px 4px rgba(18,45,81,.18) !important;
}

/* Grouping platform: heavier bottom shadow so the section reads as one raised tray. */
.dashboard-page > .card,
.dashboard-page .sln-portal-module-card {
    background: var(--sln-depth-card) !important;
    border-color: var(--sln-depth-edge) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,1) inset,
        0 -1px 0 rgba(192,204,218,.36) inset,
        0 4px 7px rgba(20,42,70,.09),
        0 13px 24px rgba(29,55,88,.155),
        0 27px 44px rgba(29,55,88,.085) !important;
}

/* Small module rows: keycap-like lip, deeper shadow, restrained color. */
.dashboard-page .future-module-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 76%, #f7faff 100%) !important;
    border-color: #d1dce8 !important;
    border-bottom-color: #bcc9d7 !important;
    box-shadow: var(--sln-depth-tile) !important;
    transform: translateY(-1px);
}

.dashboard-page a.future-module-card:hover {
    transform: translateY(-6px) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,1) inset,
        0 -1px 0 rgba(184,198,214,.46) inset,
        0 4px 6px rgba(18,39,66,.11),
        0 13px 22px rgba(27,52,84,.19),
        0 27px 42px rgba(27,52,84,.10) !important;
}

.dashboard-page a.future-module-card:active {
    transform: translateY(1px) !important;
    box-shadow:
        0 2px 4px rgba(18,39,66,.10) inset,
        0 3px 6px rgba(27,52,84,.11) !important;
}

/* Status chips: same hue, more shape/depth rather than more saturation. */
.dashboard-page .future-module-card .badge,
.dashboard-page .badge {
    border: 1px solid rgba(152,169,188,.28) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,.96) inset,
        0 -1px 0 rgba(151,168,188,.14) inset,
        0 3px 5px rgba(22,42,70,.10),
        0 7px 11px rgba(28,52,84,.07) !important;
}

/* Portal HR card: give the blue accent a deeper edge without increasing saturation. */
.dashboard-page .dashboard-module-card:nth-child(1) {
    box-shadow:
        0 1px 0 rgba(255,255,255,1) inset,
        0 -2px 0 rgba(185,198,214,.52) inset,
        0 3px 4px rgba(17,37,64,.12),
        0 10px 18px rgba(25,49,82,.20),
        0 22px 34px rgba(25,49,82,.105),
        0 12px 25px rgba(74,120,194,.14) !important;
}

@supports not (color: color-mix(in srgb, red, blue)) {
    .dashboard-page .dashboard-module-card {
        box-shadow: var(--sln-depth-card-shadow) !important;
    }
    .dashboard-page .dashboard-module-icon {
        background: linear-gradient(145deg, #ffffff 0%, var(--module-tint) 100%) !important;
    }
}

@media print {
    .dashboard-page .page-header,
    .dashboard-page .dashboard-module-card,
    .dashboard-page .dashboard-module-icon,
    .dashboard-page .dashboard-module-arrow,
    .dashboard-page > .card,
    .dashboard-page .future-module-card,
    .dashboard-page .badge {
        box-shadow: none !important;
        transform: none !important;
        border-bottom-width: 1px !important;
    }
}

/* =========================================================
   SLN UI STANDARD - DASHBOARD DEPTH STEP 3C
   RESTORED ACCENT COLOR + COLOR DEPTH
   2026-09-29
   Goal:
   - Preserve the approved Step 3B physical shadow/depth.
   - Restore stronger dashboard color identity without making
     the interface bright or playful.
   - Add depth through tinted gradients, colored edge/shadow,
     and richer badges rather than flat saturation.
   - Dashboard-only. Detail/forms remain unchanged.
========================================================= */

/* Richer but still restrained corporate accent palette. */
.dashboard-page .dashboard-module-card:nth-child(1) {
    --module-accent: #3d6fbe;
    --module-tint: #e1ebfb;
    --module-line: #adc4e8;
}
.dashboard-page .dashboard-module-card:nth-child(2) {
    --module-accent: #327c78;
    --module-tint: #e0f0ee;
    --module-line: #a9d1cc;
}
.dashboard-page .dashboard-module-card:nth-child(3) {
    --module-accent: #a87312;
    --module-tint: #fff0d3;
    --module-line: #e4c37d;
}
.dashboard-page .dashboard-module-card:nth-child(4) {
    --module-accent: #377a55;
    --module-tint: #e1f0e7;
    --module-line: #acd0bb;
}

/* Main selection cards: same raised geometry, with deeper color in the lower face. */
.dashboard-page .dashboard-module-card {
    border-top-width: 5px !important;
    border-top-color: var(--module-accent) !important;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #ffffff 48%,
            color-mix(in srgb, #ffffff 76%, var(--module-tint) 24%) 78%,
            color-mix(in srgb, #ffffff 56%, var(--module-tint) 44%) 100%
        ) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,1) inset,
        0 -2px 0 color-mix(in srgb, var(--module-accent) 18%, #c8d3df 82%) inset,
        0 3px 4px rgba(17,37,64,.12),
        0 10px 18px rgba(25,49,82,.20),
        0 22px 34px rgba(25,49,82,.105),
        0 13px 26px color-mix(in srgb, var(--module-accent) 24%, transparent) !important;
}

.dashboard-page .dashboard-module-card:hover {
    box-shadow:
        0 1px 0 rgba(255,255,255,1) inset,
        0 -2px 0 color-mix(in srgb, var(--module-accent) 22%, #c4d0dd 78%) inset,
        0 5px 7px rgba(17,37,64,.15),
        0 15px 26px rgba(25,49,82,.24),
        0 33px 50px rgba(25,49,82,.13),
        0 16px 32px color-mix(in srgb, var(--module-accent) 30%, transparent) !important;
}

/* Identity chips: richer same-hue face with a colored underside. */
.dashboard-page .dashboard-module-icon {
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            color-mix(in srgb, #ffffff 36%, var(--module-tint) 64%) 48%,
            color-mix(in srgb, var(--module-tint) 70%, var(--module-accent) 30%) 100%
        ) !important;
    color: var(--module-accent) !important;
    border-color: var(--module-line) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,1) inset,
        0 -2px 0 color-mix(in srgb, var(--module-accent) 22%, transparent) inset,
        0 3px 5px rgba(18,39,66,.13),
        0 8px 14px color-mix(in srgb, var(--module-accent) 28%, transparent) !important;
}

/* Primary navy action key: richer face, same corporate navy family. */
.dashboard-page .dashboard-module-arrow {
    background: linear-gradient(180deg, #365f99 0%, #294d82 48%, #1d3865 100%) !important;
    border-color: #17325b !important;
    border-bottom-color: #102847 !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,.36) inset,
        0 -2px 0 rgba(7,25,50,.26) inset,
        0 4px 5px rgba(7,25,52,.24),
        0 10px 17px rgba(18,45,81,.37),
        0 18px 27px rgba(18,45,81,.17) !important;
}

.dashboard-page .dashboard-module-card:hover .dashboard-module-arrow {
    background: linear-gradient(180deg, #3a68a5 0%, #2b538a 48%, #1d3865 100%) !important;
}

/* Active/available HR module rows: restore visible green identity without tinting the whole page. */
.dashboard-page a.future-module-card.future-module-card-active,
.dashboard-page .future-module-card-active {
    border-left: 4px solid #5a9a73 !important;
    background:
        linear-gradient(90deg, rgba(228,244,234,.72) 0%, rgba(255,255,255,.98) 12%, #ffffff 100%) !important;
}

.dashboard-page .future-module-card-active .badge,
.dashboard-page .badge-success,
.dashboard-page .badge-active {
    background: linear-gradient(180deg, #f3fbf5 0%, #e0f2e5 100%) !important;
    color: #2f7448 !important;
    border-color: #b9d9c3 !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,.98) inset,
        0 -1px 0 rgba(77,137,95,.12) inset,
        0 3px 5px rgba(22,42,70,.10),
        0 8px 13px rgba(63,132,83,.12) !important;
}

/* Portal integration chip: warmer face/depth while remaining muted. */
.dashboard-page .badge-warning,
.dashboard-page .dashboard-module-card .badge-warning {
    background: linear-gradient(180deg, #fffaf0 0%, #ffefc8 100%) !important;
    color: #8d5b08 !important;
    border-color: #e7c77d !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,.98) inset,
        0 -1px 0 rgba(166,115,18,.13) inset,
        0 3px 5px rgba(22,42,70,.09),
        0 8px 13px rgba(166,115,18,.11) !important;
}

/* Planned/coming-soon chips: preserve depth with a clearer neutral face. */
.dashboard-page .future-module-card-planned .badge,
.dashboard-page .badge-muted,
.dashboard-page .badge-secondary {
    background: linear-gradient(180deg, #ffffff 0%, #edf1f5 100%) !important;
    color: #5b6878 !important;
    border-color: #d2dbe4 !important;
}

/* Small dashboard rows get a crisper lower edge without becoming colorful. */
.dashboard-page .future-module-card {
    border-bottom-color: #b9c7d6 !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,1) inset,
        0 -2px 0 rgba(185,198,214,.48) inset,
        0 3px 5px rgba(18,39,66,.10),
        0 10px 17px rgba(27,52,84,.16),
        0 20px 31px rgba(27,52,84,.08) !important;
}

@supports not (color: color-mix(in srgb, red, blue)) {
    .dashboard-page .dashboard-module-card {
        background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%) !important;
    }
    .dashboard-page .dashboard-module-icon {
        background: linear-gradient(145deg, #ffffff 0%, var(--module-tint) 100%) !important;
    }
}

@media print {
    .dashboard-page .dashboard-module-card,
    .dashboard-page .dashboard-module-icon,
    .dashboard-page .dashboard-module-arrow,
    .dashboard-page .future-module-card,
    .dashboard-page .badge {
        background: #fff !important;
        box-shadow: none !important;
        transform: none !important;
        border-bottom-width: 1px !important;
    }
}

/* =========================================================
   SLN UI STANDARD - DASHBOARD DEPTH STEP 3D
   HERO / TOP HEADER COLOR DEPTH
   2026-09-29
   Goal:
   - Preserve approved Step 3C card depth and accent colors.
   - Restore subtle corporate-blue identity to the dashboard
     hero/title area so the top section does not read flat.
   - Keep the effect restrained: color through edge, gradient,
     highlight and cast shadow rather than strong saturation.
========================================================= */

.dashboard-page .page-header {
    position: relative;
    overflow: hidden;
    border-left: 5px solid #4a78c2 !important;
    background:
        linear-gradient(
            105deg,
            rgba(225,236,252,.92) 0%,
            rgba(241,247,255,.86) 16%,
            rgba(255,255,255,.98) 42%,
            #ffffff 100%
        ) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,1) inset,
        0 -1px 0 rgba(74,120,194,.12) inset,
        0 4px 7px rgba(21,43,72,.10),
        0 14px 25px rgba(29,55,88,.17),
        0 30px 48px rgba(29,55,88,.09),
        0 12px 30px rgba(74,120,194,.10) !important;
}

/* A faint cool highlight gives the hero the same dimensional
   language as the module cards without making it colorful. */
.dashboard-page .page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.72) 0%,
            rgba(255,255,255,0) 42%,
            rgba(74,120,194,.035) 100%
        );
}

.dashboard-page .page-header > * {
    position: relative;
    z-index: 1;
}

@media print {
    .dashboard-page .page-header {
        border-left-width: 1px !important;
        background: #fff !important;
        box-shadow: none !important;
    }
    .dashboard-page .page-header::before {
        display: none !important;
    }
}


/* =========================================================
   SLN UI STANDARD - DASHBOARD ICONS + OPEN ARROW STEP 4
   2026-09-29
   Preserves approved Step 3D depth; adds local SVG iconography.
========================================================= */

.dashboard-page .dashboard-module-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dashboard-page .dashboard-module-icon img {
    width: 20px;
    height: 20px;
    display: block;
}

.dashboard-page .dashboard-module-arrow {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px;
    font-size: 13px !important;
    font-weight: 700;
    letter-spacing: .01em;
}

.dashboard-page .dashboard-module-arrow::after {
    content: none !important;
}

.dashboard-page .dashboard-module-arrow .open-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-.5px);
    transition: transform .16s ease;
}

@media (hover: hover) and (pointer: fine) {
    .dashboard-page .dashboard-module-card:hover .dashboard-module-arrow .open-arrow {
        transform: translate(3px, -.5px);
    }
}

.dashboard-page .future-module-main {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    flex: 1 1 auto;
}

.dashboard-page .future-module-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.dashboard-page .future-module-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border: 1px solid rgba(175, 190, 207, .7);
    background: linear-gradient(145deg, #fff 0%, #eef4fb 100%);
    box-shadow:
        0 1px 0 rgba(255,255,255,1) inset,
        0 -1px 0 rgba(145,164,185,.16) inset,
        0 3px 5px rgba(18,39,66,.10),
        0 8px 14px rgba(27,52,84,.12);
}

.dashboard-page .future-module-icon img { width: 22px; height: 22px; display: block; }
.dashboard-page .future-module-icon.icon-blue   { background: linear-gradient(145deg,#fff 0%,#e3edfc 100%); border-color:#c7d8f0; }
.dashboard-page .future-module-icon.icon-green  { background: linear-gradient(145deg,#fff 0%,#e2f3e7 100%); border-color:#c3dfcc; }
.dashboard-page .future-module-icon.icon-orange { background: linear-gradient(145deg,#fff 0%,#fff0dc 100%); border-color:#ead3b2; }
.dashboard-page .future-module-icon.icon-purple { background: linear-gradient(145deg,#fff 0%,#eee7fb 100%); border-color:#d7caef; }
.dashboard-page .future-module-icon.icon-pink   { background: linear-gradient(145deg,#fff 0%,#fae6ee 100%); border-color:#ebcbd8; }
.dashboard-page .future-module-icon.icon-teal   { background: linear-gradient(145deg,#fff 0%,#e2f2f5 100%); border-color:#c5dee4; }
.dashboard-page .future-module-icon.icon-indigo { background: linear-gradient(145deg,#fff 0%,#e9e8fb 100%); border-color:#d0ceec; }
.dashboard-page .future-module-icon.icon-slate  { background: linear-gradient(145deg,#fff 0%,#eaf0f6 100%); border-color:#d0dbe7; }

.dashboard-page .future-module-card { align-items: center !important; }
.dashboard-page .future-module-card-side,
.dashboard-page .future-module-card > .badge { flex: 0 0 auto; }
.dashboard-page .portal-payroll-card { align-items: flex-start !important; }

@media screen and (max-width: 760px) {
    .dashboard-page .future-module-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; }
    .dashboard-page .future-module-icon img { width: 20px; height: 20px; }
}

@media print {
    .dashboard-page .future-module-icon { box-shadow: none !important; }
}

/* =========================================================
   SLN UI STANDARD - DASHBOARD ICONS STEP 4A
   PAYROLL CARD LAYOUT + SUBTLE REST / PROMINENT HOVER BUTTON
   2026-09-29
========================================================= */

/* Portal Payroll card: keep the icon and Integration badge without
   squeezing the title/description into a narrow text column. */
.dashboard-page .portal-payroll-card {
    display: block !important;
    position: relative;
}

.dashboard-page .portal-payroll-card .portal-payroll-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.dashboard-page .portal-payroll-card .portal-payroll-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.dashboard-page .portal-payroll-card .portal-payroll-title strong {
    display: block;
    min-width: 0;
    line-height: 1.2;
}

.dashboard-page .portal-payroll-card > .portal-payroll-head > .badge {
    flex: 0 0 auto;
    margin-top: 1px;
}

.dashboard-page .portal-payroll-description {
    margin: 13px 0 0 0 !important;
    max-width: none !important;
    line-height: 1.45;
}

/* Open button: quieter at rest, stronger only when the pointer is over
   the selectable card. Keep the tactile/keyboard-key language. */
.dashboard-page .dashboard-module-arrow {
    background: linear-gradient(180deg, #496896 0%, #365783 52%, #29476f 100%) !important;
    border-color: #28486f !important;
    border-bottom-color: #203b60 !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,.28) inset,
        0 -1px 0 rgba(7,25,50,.18) inset,
        0 3px 4px rgba(7,25,52,.16),
        0 7px 12px rgba(18,45,81,.22) !important;
    transition:
        background .18s ease,
        box-shadow .18s ease,
        transform .18s ease,
        border-color .18s ease !important;
}

@media (hover: hover) and (pointer: fine) {
    .dashboard-page .dashboard-module-card:hover .dashboard-module-arrow {
        background: linear-gradient(180deg, #3b67a3 0%, #2b5289 50%, #1c3763 100%) !important;
        border-color: #17325b !important;
        border-bottom-color: #102847 !important;
        transform: translateY(-2px);
        box-shadow:
            0 1px 0 rgba(255,255,255,.38) inset,
            0 -2px 0 rgba(7,25,50,.27) inset,
            0 5px 7px rgba(7,25,52,.25),
            0 11px 18px rgba(18,45,81,.38),
            0 18px 28px rgba(18,45,81,.16) !important;
    }

    .dashboard-page .dashboard-module-card:hover .dashboard-module-arrow .open-arrow {
        transform: translate(4px, -.5px);
    }
}

.dashboard-page .dashboard-module-card:active .dashboard-module-arrow {
    transform: translateY(1px);
    box-shadow:
        0 1px 0 rgba(255,255,255,.20) inset,
        0 -1px 0 rgba(7,25,50,.20) inset,
        0 2px 4px rgba(7,25,52,.20),
        0 4px 8px rgba(18,45,81,.20) !important;
}

/* =========================================================
   SLN UI STANDARD - DASHBOARD ICONS STEP 4B
   PORTAL PAYROLL CARD NARROW-WIDTH FIX
   2026-09-29
   - Keep icon and Integration chip on their own top row.
   - Give Payroll Management the full card width below them.
   - Preserve approved Step 3D/4A depth and hover behavior.
========================================================= */
.dashboard-page .portal-payroll-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
}

.dashboard-page .portal-payroll-card .portal-payroll-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.dashboard-page .portal-payroll-card .portal-payroll-name {
    display: block;
    width: 100%;
    margin-top: 12px;
    color: #12233f;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.dashboard-page .portal-payroll-card .portal-payroll-description {
    display: block;
    width: 100%;
    margin: 7px 0 0 0 !important;
    max-width: none !important;
    white-space: normal !important;
    overflow: visible !important;
}

/* Neutralize obsolete Step 4A title-row rules if present earlier. */
.dashboard-page .portal-payroll-card .portal-payroll-head,
.dashboard-page .portal-payroll-card .portal-payroll-title {
    display: contents !important;
}

/* =========================================================
   SLN UI STANDARD - SYSTEM-WIDE DEPTH ROLLOUT STEP 5
   2026-09-30
   Purpose:
   - Extend the approved SLN premium depth language beyond the
     Main Portal and HR Dashboard.
   - Preserve dashboards as the strongest visual depth tier.
   - Use medium depth for headers/major panels and light depth
     for forms, tables, detail sections and reports.
   - Keep content surfaces white/neutral and restrained.
   - Styling only: no route, model, database or workflow changes.
========================================================= */

@media screen {

    :root {
        /* Working/detail-page depth tiers. Intentionally softer than dashboard. */
        --sln-depth-light:
            0 1px 0 rgba(255,255,255,.96) inset,
            0 -1px 0 rgba(176,190,207,.16) inset,
            0 2px 4px rgba(18,39,66,.045),
            0 7px 15px rgba(27,52,84,.055);

        --sln-depth-medium:
            0 1px 0 rgba(255,255,255,.98) inset,
            0 -1px 0 rgba(164,181,201,.22) inset,
            0 3px 6px rgba(18,39,66,.065),
            0 11px 23px rgba(27,52,84,.085);

        --sln-depth-panel:
            0 1px 0 rgba(255,255,255,.98) inset,
            0 -2px 0 rgba(168,184,203,.18) inset,
            0 3px 6px rgba(18,39,66,.06),
            0 9px 18px rgba(27,52,84,.07);

        --sln-depth-button:
            0 1px 0 rgba(255,255,255,.30) inset,
            0 -2px 0 rgba(6,25,50,.22) inset,
            0 2px 3px rgba(10,31,59,.16),
            0 6px 10px rgba(18,45,81,.19);

        --sln-depth-button-secondary:
            0 1px 0 rgba(255,255,255,1) inset,
            0 -1px 0 rgba(148,163,184,.20) inset,
            0 2px 3px rgba(23,43,70,.06),
            0 5px 9px rgba(23,43,70,.07);
    }

    /* ---------------------------------------------------------
       COMMON SYSTEM CHROME
       --------------------------------------------------------- */

    .topbar {
        box-shadow:
            0 1px 0 rgba(255,255,255,.10) inset,
            0 -2px 0 rgba(8,25,48,.24) inset,
            0 4px 10px rgba(16,38,68,.15);
        position: relative;
        z-index: 20;
    }

    .logout-button {
        box-shadow:
            0 1px 0 rgba(255,255,255,.14) inset,
            0 2px 4px rgba(7,24,47,.12);
        transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
    }

    .logout-button:hover {
        box-shadow:
            0 1px 0 rgba(255,255,255,.18) inset,
            0 4px 8px rgba(7,24,47,.17);
        transform: translateY(-1px);
    }

    .logout-button:active {
        transform: translateY(1px);
        box-shadow:
            0 1px 0 rgba(255,255,255,.10) inset,
            0 1px 2px rgba(7,24,47,.12);
    }

    /* Medium-depth page hero for working/detail pages only.
       Dashboard hero remains controlled by the stronger dashboard rules. */
    body:not(:has(.dashboard-page)):not(.hr-login-body) .page-header {
        position: relative;
        overflow: hidden;
        padding: 18px 20px;
        background:
            linear-gradient(108deg, rgba(237,244,253,.82) 0%, rgba(249,251,254,.94) 22%, #ffffff 58%, #ffffff 100%);
        border: 1px solid #d9e2ec;
        border-left: 4px solid #4f77ad;
        border-radius: var(--sln-card-radius);
        box-shadow: var(--sln-depth-medium);
    }

    body:not(:has(.dashboard-page)):not(.hr-login-body) .page-header::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(255,255,255,.56) 0%, rgba(255,255,255,0) 46%);
    }

    body:not(:has(.dashboard-page)):not(.hr-login-body) .page-header > * {
        position: relative;
        z-index: 1;
    }

    /* ---------------------------------------------------------
       BUTTONS - tactile but lighter than dashboard action keys
       --------------------------------------------------------- */

    body:not(:has(.dashboard-page)) .button {
        position: relative;
        transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
    }

    body:not(:has(.dashboard-page)) .button-primary,
    body:not(:has(.dashboard-page)) button.button-primary {
        background: linear-gradient(180deg, #294f80 0%, #1f416f 52%, #17365d 100%);
        border-color: #17365d;
        border-bottom-color: #102a4c;
        box-shadow: var(--sln-depth-button);
    }

    body:not(:has(.dashboard-page)) .button-primary:hover,
    body:not(:has(.dashboard-page)) button.button-primary:hover {
        background: linear-gradient(180deg, #315b91 0%, #244a7b 52%, #17365d 100%);
        transform: translateY(-1px);
        box-shadow:
            0 1px 0 rgba(255,255,255,.34) inset,
            0 -2px 0 rgba(6,25,50,.24) inset,
            0 3px 5px rgba(10,31,59,.18),
            0 8px 13px rgba(18,45,81,.23);
    }

    body:not(:has(.dashboard-page)) .button-primary:active,
    body:not(:has(.dashboard-page)) button.button-primary:active {
        transform: translateY(1px);
        box-shadow:
            0 1px 0 rgba(255,255,255,.20) inset,
            0 -1px 0 rgba(6,25,50,.20) inset,
            0 1px 2px rgba(10,31,59,.15),
            0 3px 6px rgba(18,45,81,.16);
    }

    body:not(:has(.dashboard-page)) .button-secondary {
        background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 58%, #f4f7fa 100%);
        border-color: #c8d3df;
        box-shadow: var(--sln-depth-button-secondary);
    }

    body:not(:has(.dashboard-page)) .button-secondary:hover {
        background: linear-gradient(180deg, #ffffff 0%, #f7faff 58%, #edf3f9 100%);
        border-color: #aebed0;
        transform: translateY(-1px);
        box-shadow:
            0 1px 0 rgba(255,255,255,1) inset,
            0 -1px 0 rgba(126,148,174,.18) inset,
            0 3px 5px rgba(23,43,70,.08),
            0 7px 11px rgba(23,43,70,.09);
    }

    body:not(:has(.dashboard-page)) .button-secondary:active {
        transform: translateY(1px);
        box-shadow:
            0 1px 0 rgba(255,255,255,.90) inset,
            0 1px 2px rgba(23,43,70,.08);
    }

    body:not(:has(.dashboard-page)) .button-warning,
    body:not(:has(.dashboard-page)) .button-success,
    body:not(:has(.dashboard-page)) .button-danger {
        box-shadow: var(--sln-depth-button-secondary);
        transition: box-shadow .16s ease, transform .16s ease, filter .16s ease;
    }

    body:not(:has(.dashboard-page)) .button-warning:hover,
    body:not(:has(.dashboard-page)) .button-success:hover,
    body:not(:has(.dashboard-page)) .button-danger:hover {
        transform: translateY(-1px);
        filter: saturate(1.03);
    }

    body:not(:has(.dashboard-page)) .button-warning:active,
    body:not(:has(.dashboard-page)) .button-success:active,
    body:not(:has(.dashboard-page)) .button-danger:active {
        transform: translateY(1px);
        box-shadow: 0 1px 2px rgba(23,43,70,.08);
    }

    /* ---------------------------------------------------------
       LIGHT DEPTH - FORMS / TABLES / DETAIL SURFACES
       --------------------------------------------------------- */

    .sln-standard-page .form-section,
    .sln-standard-page .table-card,
    .sln-standard-page .toolbar,
    .sln-standard-page .form-actions,
    .sln-standard-page .organization-add-card,
    .sln-standard-page .access-note,
    .employee-profile-hero,
    .employee-profile-tabs,
    .profile-card,
    [data-profile-panel],
    .edit-section,
    .change-section,
    .salary-section,
    .pr-section,
    .prd-section,
    .prr-card {
        box-shadow: var(--sln-depth-light) !important;
    }

    .sln-standard-page .toolbar,
    .sln-standard-page .form-actions,
    .sln-standard-page .access-note {
        background: #ffffff;
        border-color: #dbe3ec;
    }

    /* Major identity/summary surfaces get one tier more depth. */
    .employee-profile-hero,
    .employee-profile-tabs,
    .edit-id-banner .edit-id-box,
    .change-summary .change-summary-box,
    .salary-summary .salary-summary-box,
    .pr-summary .pr-summary-box,
    .prd-summary .prd-box,
    .summary-grid .summary-box,
    .id-summary .summary-box {
        box-shadow: var(--sln-depth-panel) !important;
    }

    /* Keep section tones restrained while adding a small lower edge. */
    .form-section[class*="sln-tone-"],
    .profile-card[class*="sln-tone-"],
    .pr-section[class*="sln-tone-"],
    .prd-section[class*="sln-tone-"],
    .prr-card[class*="sln-tone-"] {
        box-shadow:
            0 1px 0 rgba(255,255,255,.96) inset,
            0 -1px 0 rgba(160,176,196,.14) inset,
            0 2px 4px rgba(18,39,66,.045),
            0 8px 16px rgba(27,52,84,.055) !important;
    }

    /* Inputs stay neutral; only focus receives controlled depth. */
    input,
    select,
    textarea {
        box-shadow: 0 1px 1px rgba(20,38,62,.025) inset;
        transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
    }

    input:focus,
    select:focus,
    textarea:focus,
    .edit-field input:focus,
    .edit-field select:focus,
    .edit-field textarea:focus,
    .salary-field input:focus,
    .salary-field select:focus,
    .salary-field textarea:focus {
        box-shadow:
            0 0 0 2px rgba(23,54,93,.085),
            0 3px 7px rgba(23,54,93,.055) !important;
    }

    /* Tables remain flat/clean inside a lightly raised container. */
    thead,
    .prd-table th,
    .prr-table th {
        box-shadow: 0 -1px 0 rgba(255,255,255,.80) inset;
    }

    tbody tr {
        transition: background .12s ease;
    }

    /* ---------------------------------------------------------
       EMPLOYEE MASTER / ORGANIZATION / LEGAL ENTITY MASTERS
       --------------------------------------------------------- */

    .sln-master-page .sln-master-table-card,
    .sln-master-page .sln-master-form-card,
    .sln-master-page .sln-master-toolbar {
        box-shadow: var(--sln-depth-light) !important;
    }

    .department-accordion,
    .sln-master-record {
        box-shadow:
            0 1px 0 rgba(255,255,255,.95) inset,
            0 -1px 0 rgba(161,178,198,.14) inset,
            0 2px 4px rgba(18,39,66,.035),
            0 6px 12px rgba(27,52,84,.045);
        transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    }

    .department-accordion:hover,
    .sln-master-record:hover {
        border-color: #c8d4e0;
        box-shadow:
            0 1px 0 rgba(255,255,255,.98) inset,
            0 -1px 0 rgba(151,170,192,.16) inset,
            0 3px 5px rgba(18,39,66,.045),
            0 8px 15px rgba(27,52,84,.06);
    }

    .accordion-toggle {
        box-shadow: var(--sln-depth-button-secondary);
        transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
    }

    .accordion-toggle:active {
        transform: translateY(1px);
        box-shadow: 0 1px 2px rgba(23,43,70,.08);
    }

    /* ---------------------------------------------------------
       EMPLOYEE 201 - HERO / TABS / CONTENT
       --------------------------------------------------------- */

    .employee-profile-hero {
        border-bottom-color: #cad6e3;
    }

    .employee-profile-tabs {
        box-shadow: var(--sln-depth-medium) !important;
    }

    .employee-profile-tab {
        box-shadow:
            0 1px 0 rgba(255,255,255,.92) inset,
            0 -1px 0 rgba(132,151,174,.12) inset,
            0 2px 4px rgba(23,43,70,.04);
        transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, filter .14s ease;
    }

    .employee-profile-tab:not(.active):hover {
        transform: translateY(-1px);
        box-shadow:
            0 1px 0 rgba(255,255,255,.98) inset,
            0 -1px 0 rgba(132,151,174,.15) inset,
            0 3px 6px rgba(23,43,70,.07);
    }

    .employee-profile-tab.active {
        transform: translateY(1px);
        filter: brightness(.995);
        /* Keep the tab-specific colored inset line from the approved foundation. */
    }

    [data-profile-panel] {
        box-shadow:
            0 1px 0 rgba(255,255,255,.88) inset,
            0 5px 12px rgba(27,52,84,.04) !important;
    }

    .profile-module-item,
    .profile-detail,
    .profile-stage-item,
    .profile-id-history-item {
        box-shadow:
            0 1px 0 rgba(255,255,255,.90) inset,
            0 2px 5px rgba(25,46,75,.035);
    }

    /* ---------------------------------------------------------
       EDIT / EMPLOYMENT CHANGE / SALARY CHANGE FORMS
       --------------------------------------------------------- */

    .edit-section,
    .change-section,
    .salary-section {
        border-bottom-color: #cfd9e4 !important;
    }

    .edit-id-box,
    .change-summary-box,
    .salary-summary-box {
        border-top: 1px solid rgba(205,218,232,.80);
        border-right: 1px solid rgba(205,218,232,.70);
        border-bottom: 1px solid rgba(190,205,221,.85);
    }

    .edit-actions,
    .change-actions,
    .salary-actions,
    .pr-actions,
    .prd-actions {
        position: relative;
    }

    .edit-warning,
    .change-warning,
    .salary-notice,
    .pr-warning,
    .prr-alert,
    .prd-reopen-box {
        box-shadow:
            0 1px 0 rgba(255,255,255,.82) inset,
            0 3px 8px rgba(65,50,18,.045) !important;
    }

    /* ---------------------------------------------------------
       PERFORMANCE REVIEW FORM / DETAIL / COMPANY REPORT
       --------------------------------------------------------- */

    .pr-section,
    .prd-section,
    .prr-card {
        border-bottom-color: #cfd9e4 !important;
        box-shadow: var(--sln-depth-light) !important;
    }

    .pr-summary-box,
    .prd-box,
    .pr-result-box,
    .prd-result {
        box-shadow:
            0 1px 0 rgba(255,255,255,.94) inset,
            0 -1px 0 rgba(159,177,198,.12) inset,
            0 3px 7px rgba(25,46,75,.045) !important;
    }

    .pr-criterion {
        box-shadow:
            0 1px 0 rgba(255,255,255,.95) inset,
            0 -1px 0 rgba(159,177,198,.10) inset,
            0 3px 7px rgba(25,46,75,.035) !important;
    }

    .prd-table,
    .prr-table {
        background: #fff;
    }

    /* ---------------------------------------------------------
       BADGES / STATUS CHIPS
       --------------------------------------------------------- */

    .badge,
    .status,
    .stage-badge,
    .prr-badge {
        box-shadow:
            0 1px 0 rgba(255,255,255,.76) inset,
            0 1px 2px rgba(31,49,74,.045);
    }

    /* ---------------------------------------------------------
       LOGIN - premium shell, still calmer than dashboard cards
       --------------------------------------------------------- */

    .hr-login-shell {
        box-shadow:
            0 2px 0 rgba(255,255,255,.18) inset,
            0 8px 18px rgba(13,34,62,.11),
            0 24px 52px rgba(13,34,62,.16) !important;
    }

    .hr-login-form-panel {
        box-shadow: -8px 0 24px rgba(13,34,62,.055) inset;
    }

    .hr-login-form input {
        box-shadow:
            0 1px 2px rgba(25,43,68,.045) inset,
            0 2px 5px rgba(25,43,68,.025);
    }

    .hr-login-form input:focus {
        box-shadow:
            0 0 0 2px rgba(23,54,93,.085),
            0 4px 9px rgba(23,54,93,.055) !important;
    }

    .hr-login-submit {
        box-shadow:
            0 1px 0 rgba(255,255,255,.30) inset,
            0 -2px 0 rgba(6,25,50,.22) inset,
            0 3px 4px rgba(10,31,59,.16),
            0 8px 13px rgba(18,45,81,.20) !important;
        transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
    }

    .hr-login-submit:hover {
        transform: translateY(-1px);
        box-shadow:
            0 1px 0 rgba(255,255,255,.34) inset,
            0 -2px 0 rgba(6,25,50,.24) inset,
            0 4px 6px rgba(10,31,59,.18),
            0 10px 16px rgba(18,45,81,.24) !important;
    }

    .hr-login-submit:active {
        transform: translateY(1px);
        box-shadow:
            0 1px 0 rgba(255,255,255,.20) inset,
            0 -1px 0 rgba(6,25,50,.20) inset,
            0 2px 4px rgba(18,45,81,.16) !important;
    }

}

/* ---------------------------------------------------------
   MOBILE SAFETY
   --------------------------------------------------------- */
@media screen and (max-width: 760px) {
    body:not(:has(.dashboard-page)):not(.hr-login-body) .page-header {
        padding: 16px;
    }

    .employee-profile-tabs,
    .employee-profile-hero,
    .form-section,
    .edit-section,
    .change-section,
    .salary-section,
    .pr-section,
    .prd-section,
    .prr-card {
        box-shadow:
            0 1px 0 rgba(255,255,255,.94) inset,
            0 4px 10px rgba(27,52,84,.045) !important;
    }
}

/* Print/PDF output must stay flat and unaffected by screen depth. */
@media print {
    body:not(:has(.dashboard-page)) .page-header,
    .button,
    .form-section,
    .table-card,
    .toolbar,
    .form-actions,
    .organization-add-card,
    .access-note,
    .department-accordion,
    .employee-profile-hero,
    .employee-profile-tabs,
    .employee-profile-tab,
    .profile-card,
    [data-profile-panel],
    .edit-section,
    .change-section,
    .salary-section,
    .pr-section,
    .prd-section,
    .prr-card,
    .pr-criterion,
    .pr-summary-box,
    .prd-box,
    .pr-result-box,
    .prd-result,
    .badge,
    .status,
    .stage-badge,
    .prr-badge {
        box-shadow: none !important;
        transform: none !important;
    }
}

/* Employee 201 Leave / Absence tab identity */
.employee-profile-tab[data-profile-tab="leave-absence"] {
    background: #f0f7fb !important;
    border-color: #cfe0eb !important;
    color: #3f6075 !important;
}
.employee-profile-tab.active[data-profile-tab="leave-absence"] {
    background: #dfeff7 !important;
    border-color: #a9cbdc !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,.92) inset,
        0 -2px 0 #5e8da5 inset,
        0 2px 4px rgba(23,43,70,.04) !important;
    color: #17365d !important;
}

/* Employee 201 Leave / Absence panel pairing */
[data-profile-panel="leave-absence"] {
    background: #f4f9fb !important;
    border-color: #d1e0e8 !important;
}
[data-profile-panel="leave-absence"] > .profile-card {
    background: #ffffff !important;
    border-color: #d1e0e8 !important;
}
[data-profile-panel="leave-absence"] > .profile-card > .profile-card-header {
    background: #eef6fa !important;
    border-color: #c9dce6 !important;
    border-left-color: #6f99ad !important;
    color: #17365d !important;
}

/* =========================================================
   DAILY ATTENDANCE / HOLIDAY MASTER
   2026-10-04 operational attendance foundation
========================================================= */

.sln-daily-attendance-page,
.sln-holiday-master-page {
    width: min(1450px, 100%);
}

.da-control-card,
.da-footer-card,
.da-toolbar,
.da-holiday-strip,
.hm-year-toolbar,
.hm-add-card {
    background: #ffffff;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    box-shadow: 0 4px 13px rgba(24,45,76,.055);
}

.da-control-card {
    padding: 12px 14px;
    margin-bottom: 12px;
    border-left: 3px solid #5678b4;
}

.da-date-nav {
    display: grid;
    grid-template-columns: auto minmax(330px, 1fr) auto;
    align-items: end;
    gap: 10px;
}

.da-date-form {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 8px;
}

.da-date-form .form-group {
    width: min(260px, 100%);
}

.da-disabled-button {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}

.da-date-heading {
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid #e5eaf0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.da-date-heading strong {
    color: var(--navy);
    font-size: 14px;
}

.da-date-heading small {
    color: var(--muted);
    font-size: 10px;
}

.da-day-status,
.hm-status-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    border: 1px solid #d6dde6;
    background: #f6f8fb;
    color: #536274;
}

.da-day-status.is-draft {
    background: #fff7df;
    border-color: #ead08d;
    color: #775a13;
}

.da-day-status.is-finalized,
.hm-status-badge.is-active {
    background: #edf8f1;
    border-color: #badbc6;
    color: #2f6843;
}

.da-day-status.is-not-started,
.hm-status-badge.is-inactive {
    background: #f3f5f7;
    border-color: #d7dde4;
    color: #647181;
}

.da-holiday-strip {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-left: 3px solid #a97b32;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 11px;
}

.da-holiday-strip > strong {
    color: #665020;
    white-space: nowrap;
    margin-top: 4px;
}

.da-holiday-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.da-holiday-chip {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #e2cf9f;
    background: #fff9e9;
    color: #665020;
    font-size: 10px;
    font-weight: 700;
}

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

.da-summary-card {
    background: #ffffff;
    border: 1px solid #dbe3ec;
    border-top: 3px solid #718096;
    border-radius: 9px;
    padding: 10px 12px;
    box-shadow: 0 3px 10px rgba(24,45,76,.045);
}

.da-summary-card span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 2px;
}

.da-summary-card strong {
    color: var(--navy);
    font-size: 20px;
    line-height: 1;
}

.da-summary-card.da-summary-warning {
    border-top-color: #b77a2a;
    background: #fffaf0;
}

.da-toolbar {
    margin-bottom: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: end;
    gap: 10px;
}

.da-filter-group {
    width: 230px;
}

.da-search-group {
    width: min(330px, 100%);
}

.da-live-progress {
    margin-left: auto;
    padding-bottom: 9px;
    color: var(--muted);
    font-size: 11px;
}

.da-table-card {
    margin-bottom: 12px;
}

.da-table {
    min-width: 1180px;
}

.da-table th,
.da-table td {
    vertical-align: top;
}

.da-table td:nth-child(1) {
    min-width: 205px;
}

.da-table td:nth-child(2) {
    min-width: 180px;
}

.da-table td:nth-child(3) {
    min-width: 220px;
}

.da-table td:nth-child(7) {
    min-width: 220px;
}

.da-row-missing {
    background: #fffdf7;
}

.da-row[hidden] {
    display: none;
}

.da-employee-name {
    color: var(--navy);
    font-weight: 800;
    font-size: 12px;
}

.da-employee-id,
.da-secondary-text {
    color: var(--muted);
    font-size: 10px;
    margin-top: 2px;
}

.da-leave-hint {
    display: inline-block;
    margin-top: 5px;
    color: #315e89;
    background: #eef6ff;
    border: 1px solid #d0e2f5;
    border-radius: 4px;
    padding: 3px 5px;
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
}

.da-leave-hint:hover {
    text-decoration: underline;
}

.da-status-select,
.da-reason-input,
.da-hours-input {
    min-height: 32px;
    padding: 6px 8px;
    font-size: 11px;
}

.da-hours-input {
    width: 76px;
}

.da-center {
    text-align: center;
}

input.da-rest-checkbox {
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin-top: 6px;
    accent-color: var(--navy);
}

.da-empty-state {
    padding: 28px !important;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

.da-footer-card {
    padding: 12px 14px;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(300px, auto);
    gap: 16px;
    align-items: end;
}

.da-day-notes textarea {
    min-height: 58px;
}

.da-save-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.da-lock-note {
    max-width: 430px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
    text-align: right;
}

.hm-add-card {
    padding: 0;
    margin-bottom: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d1e0e8;
    border-radius: 10px;
    box-shadow: 0 4px 13px rgba(24,45,76,.055);
}

.hm-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px 10px;
    background: #eef6fa;
    border-bottom: 1px solid #c9dce6;
    border-left: 4px solid #6f99ad;
}

.hm-section-header h3 {
    margin: 0 0 2px;
    color: #17365d;
    font-size: 15px;
    font-weight: 700;
}

.hm-section-header p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.hm-card-body {
    padding: 13px 15px 14px;
    background: #ffffff;
}

.hm-form-grid {
    display: grid;
    grid-template-columns: 180px minmax(220px, 1.3fr) 230px 190px;
    gap: 11px 12px;
}

.hm-source-field,
.hm-remarks-field {
    grid-column: span 2;
}

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

.hm-year-toolbar {
    padding: 10px 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.hm-year-form {
    display: flex;
    align-items: end;
    gap: 8px;
}

.hm-year-form label {
    margin-bottom: 9px;
}

.hm-year-form input {
    width: 110px;
}

.hm-table-card table {
    min-width: 1040px;
}

.hm-inactive-row {
    opacity: .66;
    background: #f7f8fa;
}

.hm-table-card td form {
    margin: 0;
}

@media (max-width: 1100px) {
    .da-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 760px) {
    .da-date-nav,
    .da-footer-card {
        grid-template-columns: 1fr;
    }

    .da-date-form,
    .da-toolbar,
    .hm-year-toolbar,
    .hm-year-form {
        align-items: stretch;
        flex-direction: column;
    }

    .da-filter-group,
    .da-search-group,
    .da-date-form .form-group,
    .hm-year-form input {
        width: 100%;
    }

    .da-live-progress {
        margin-left: 0;
        padding-bottom: 0;
    }

    .da-summary-grid,
    .hm-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hm-source-field,
    .hm-remarks-field {
        grid-column: span 2;
    }

    .da-save-area {
        align-items: stretch;
        flex-direction: column;
    }

    .da-lock-note {
        max-width: none;
        text-align: left;
    }
}

/* =========================================================
   DAILY ATTENDANCE FINALIZE / LOCK / REOPEN AUDIT
   2026-10-04 controlled payroll-source workflow
========================================================= */

.da-workflow-card,
.da-audit-card {
    margin-top: 12px;
    background: #ffffff;
    border: 1px solid #d1e0e8;
    border-radius: 10px;
    box-shadow: 0 4px 13px rgba(24,45,76,.055);
    overflow: hidden;
}

.da-workflow-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px 10px;
    background: #eef6fa;
    border-bottom: 1px solid #c9dce6;
    border-left: 4px solid #6f99ad;
}

.da-workflow-header h3 {
    margin: 0 0 2px;
    color: #17365d;
    font-size: 15px;
    font-weight: 700;
}

.da-workflow-header p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.da-workflow-body {
    padding: 13px 15px 14px;
    background: #ffffff;
}

.da-workflow-message {
    padding: 10px 12px;
    border: 1px solid #dbe3ec;
    border-radius: 7px;
    background: #f7f9fb;
    color: #536274;
    font-size: 11px;
}

.da-workflow-message.is-warning {
    border-color: #ead08d;
    background: #fffaf0;
    color: #775a13;
}

.da-finalize-row,
.da-finalized-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.da-finalize-row > div,
.da-finalized-summary > div {
    min-width: 0;
}

.da-finalize-row strong,
.da-finalized-summary strong {
    display: block;
    color: var(--navy);
    font-size: 12px;
    margin-bottom: 3px;
}

.da-finalize-row span,
.da-finalized-summary span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.da-finalize-row small {
    display: block;
    margin-top: 4px;
    color: #8a5d16;
    font-size: 10px;
    font-weight: 700;
}

.da-reopen-form {
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid #e3e9ef;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.da-reopen-form textarea {
    min-height: 58px;
}

.da-reopen-button {
    min-width: 150px;
}

.da-audit-list {
    background: #ffffff;
}

.da-audit-item {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 130px minmax(260px, 1.5fr);
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #edf0f4;
    font-size: 10px;
}

.da-audit-item:last-child {
    border-bottom: 0;
}

.da-audit-action {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.da-audit-action strong {
    color: #17365d;
    font-size: 11px;
}

.da-audit-action > span:last-child,
.da-audit-transition {
    color: var(--muted);
}

.da-audit-transition {
    font-weight: 700;
}

.da-audit-badge {
    display: inline-flex;
    padding: 3px 7px;
    border-radius: 999px;
    border: 1px solid #badbc6;
    background: #edf8f1;
    color: #2f6843;
    font-size: 9px;
    font-weight: 800;
}

.da-audit-badge.is-reopened {
    border-color: #ead08d;
    background: #fff7df;
    color: #775a13;
}

.da-audit-reason {
    color: #536274;
    line-height: 1.45;
}

.da-audit-reason strong {
    color: #17365d;
}

@media (max-width: 850px) {
    .da-finalize-row,
    .da-finalized-summary,
    .da-reopen-form {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .da-audit-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}


/* Keep the Finalize unsaved-warning truly hidden until JavaScript reveals it. */
#da-unsaved-warning[hidden] {
    display: none !important;
}


/* =========================================================
   SLN AI SUPPORT — GLOBAL UI SHELL
   UI only. Backend intelligence and feedback persistence are
   intentionally deferred to the later AI integration phase.
========================================================= */

.sln-ai-support-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 35px;
    padding: 8px 13px;
    border: 1px solid rgba(180, 207, 245, .72);
    border-radius: var(--sln-control-radius, 7px);
    background: linear-gradient(180deg, #31588f 0%, #284b7f 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(7, 27, 58, .18);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.sln-ai-support-button:hover {
    background: linear-gradient(180deg, #3b67a3 0%, #2b5188 100%);
    box-shadow: 0 6px 16px rgba(7, 27, 58, .23);
    transform: translateY(-1px);
}

.sln-ai-support-button:focus-visible,
.sln-ai-support-close:focus-visible,
.sln-ai-support-tab:focus-visible {
    outline: 2px solid #9ec5ff;
    outline-offset: 2px;
}

.sln-ai-support-button-icon {
    color: #cfe5ff;
    font-size: 14px;
    line-height: 1;
}

.sln-ai-support-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1190;
    background: rgba(14, 30, 53, .20);
    opacity: 0;
    transition: opacity .18s ease;
}

.sln-ai-support-backdrop.is-visible {
    opacity: 1;
}

.sln-ai-support-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1200;
    width: min(430px, 94vw);
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-left: 1px solid #d8e2ef;
    box-shadow: -18px 0 48px rgba(19, 42, 73, .18);
    transform: translateX(102%);
    transition: transform .22s ease;
}

.sln-ai-support-drawer.is-open {
    transform: translateX(0);
}

.sln-ai-support-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #e0e7ef;
    background: linear-gradient(115deg, #edf5ff 0%, #ffffff 58%);
}

.sln-ai-support-heading {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-width: 0;
}

.sln-ai-support-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    background: #e6f1ff;
    color: #2e6fbd;
    font-size: 21px;
    box-shadow: 0 3px 10px rgba(41, 91, 151, .12);
}

.sln-ai-support-heading h2 {
    margin: 0;
    color: #17365d;
    font-size: 20px;
    line-height: 1.15;
}

.sln-ai-support-heading p {
    margin: 4px 0 0;
    color: #6a7889;
    font-size: 11px;
    line-height: 1.4;
}

.sln-ai-support-close {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #5a6b7d;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.sln-ai-support-close:hover {
    background: #eef3f8;
    color: #17365d;
}

.sln-ai-support-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 10px 14px 0;
    border-bottom: 1px solid #dfe6ee;
    background: #ffffff;
}

.sln-ai-support-tab {
    position: relative;
    padding: 11px 8px 12px;
    border: 0;
    background: transparent;
    color: #6b7787;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.sln-ai-support-tab::after {
    content: '';
    position: absolute;
    left: 13%;
    right: 13%;
    bottom: -1px;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: transparent;
}

.sln-ai-support-tab.is-active {
    color: #17365d;
}

.sln-ai-support-tab.is-active::after {
    background: #3f77c6;
}

.sln-ai-support-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
    background: #fbfcfe;
}

.sln-ai-support-panel[hidden] {
    display: none !important;
}

.sln-ai-context-card,
.sln-ai-compose-card,
.sln-ai-feedback-intro {
    border: 1px solid #d8e4f1;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(30, 58, 92, .045);
}

.sln-ai-context-card {
    padding: 13px 14px;
    background: linear-gradient(110deg, #f3f8ff 0%, #ffffff 82%);
}

.sln-ai-context-label,
.sln-ai-section-label {
    color: #17365d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .01em;
}

.sln-ai-context-value {
    margin-top: 6px;
    color: #203b61;
    font-size: 13px;
    font-weight: 800;
}

.sln-ai-context-path {
    margin-top: 2px;
    color: #8390a0;
    font-size: 9px;
    word-break: break-all;
}

.sln-ai-context-card p,
.sln-ai-feedback-intro p {
    margin: 7px 0 0;
    color: #6d7a8a;
    font-size: 10px;
    line-height: 1.5;
}

.sln-ai-suggestions {
    margin-top: 16px;
}

.sln-ai-suggestion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 8px;
}

.sln-ai-suggestion {
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #d9e5f4;
    border-radius: 999px;
    background: #edf4fd;
    color: #4d6d96;
    font: inherit;
    font-size: 10px;
    text-align: left;
    opacity: .9;
}

.sln-ai-compose-card {
    margin-top: 18px;
    padding: 11px;
}

.sln-ai-compose-input {
    width: 100%;
    min-height: 150px;
    resize: vertical;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 0;
    outline: none;
    background: transparent;
    color: #27364a;
    font: inherit;
    font-size: 12px;
    line-height: 1.5;
}

.sln-ai-compose-input::placeholder {
    color: #9aa6b3;
}

.sln-ai-compose-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 9px;
    border-top: 1px solid #edf1f5;
}

.sln-ai-attachment-button {
    padding: 7px 8px;
    border: 0;
    background: transparent;
    color: #728197;
    font: inherit;
    font-size: 10px;
}

.sln-ai-send-button {
    min-width: 72px;
}

.sln-ai-compose-actions button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.sln-ai-coming-soon {
    margin-top: 8px;
    padding: 7px 9px;
    border-radius: 7px;
    background: #fff8e7;
    color: #80631d;
    font-size: 9px;
    line-height: 1.4;
}

.sln-ai-feedback-intro {
    padding: 13px 14px;
    margin-bottom: 12px;
}

.sln-ai-feedback-intro h3 {
    margin: 0;
    color: #17365d;
    font-size: 14px;
}

.sln-ai-support-footer {
    flex: 0 0 auto;
    padding: 11px 16px 13px;
    border-top: 1px solid #e1e7ee;
    background: #f8fafc;
    color: #68788b;
    font-size: 9px;
    line-height: 1.45;
}

@media (max-width: 760px) {
    .sln-ai-support-button {
        margin-left: auto;
    }

    .user-area {
        flex-wrap: wrap;
        gap: 8px;
    }

    .sln-ai-support-drawer {
        width: 100vw;
    }

    .sln-ai-suggestion-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   EMPLOYEE 201 - PROTECTED 2x2 PROFILE PHOTO
   Screen display + printable Employee 201 integration.
========================================================= */

.employee-profile-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: start;
    gap: 6px;
}

.employee-photo-frame {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;

    overflow: hidden;

    background: #f7f9fc;

    border: 1px solid #cbd7e5;
    border-radius: 8px;

    box-shadow:
        0 1px 0 rgba(255,255,255,.96) inset,
        0 2px 6px rgba(24,45,76,.07);
}

.employee-photo-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.employee-photo-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: #7a889b;
    text-align: center;

    background:
        linear-gradient(180deg, #fbfcfe 0%, #f1f5f9 100%);
}

.employee-photo-placeholder strong {
    color: #4f6075;
    font-size: 16px;
    line-height: 1.1;
}

.employee-photo-placeholder span {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .02em;
}

.employee-photo-form {
    width: 96px;
    margin: 0;
}

.employee-photo-upload {
    position: relative;

    width: 100%;
    min-height: 28px;
    padding: 6px 7px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    cursor: pointer;

    color: #17365d;
    background: linear-gradient(180deg, #ffffff 0%, #f2f6fa 100%);

    border: 1px solid #c8d4e0;
    border-radius: 6px;

    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;

    box-shadow:
        0 1px 0 rgba(255,255,255,.96) inset,
        0 2px 4px rgba(23,43,70,.05);

    transition:
        border-color .14s ease,
        background .14s ease,
        box-shadow .14s ease,
        transform .14s ease;
}

.employee-photo-upload:hover {
    border-color: #aebed0;
    background: linear-gradient(180deg, #ffffff 0%, #eaf1f8 100%);
    transform: translateY(-1px);
}

.employee-photo-upload:focus-within {
    outline: 2px solid rgba(23,54,93,.16);
    outline-offset: 1px;
}

.employee-photo-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.employee-photo-help {
    margin-top: 4px;

    color: #8390a1;
    font-size: 8.5px;
    line-height: 1.25;
    text-align: center;
}

@media screen and (min-width: 1101px) {
    .employee-profile-hero.has-photo-access {
        grid-template-columns:
            96px
            155px
            minmax(0, 1fr)
            auto;
        gap: 16px;
    }
}

@media screen and (min-width: 761px) and (max-width: 1100px) {
    .employee-profile-hero.has-photo-access {
        grid-template-columns:
            96px
            150px
            minmax(0, 1fr);
        gap: 15px;
    }

    .employee-profile-hero.has-photo-access .employee-profile-photo {
        grid-row: 1 / span 2;
    }

    .employee-profile-hero.has-photo-access .employee-profile-status {
        grid-column: 2 / -1;
        justify-content: flex-start;
    }
}

@media screen and (max-width: 760px) {
    .employee-profile-hero.has-photo-access {
        grid-template-columns: 1fr;
    }

    .employee-profile-hero.has-photo-access .employee-profile-photo {
        grid-row: auto;
        align-items: flex-start;
    }

    .employee-profile-hero.has-photo-access .employee-profile-status {
        grid-column: auto;
    }

    .employee-photo-form {
        width: 96px;
    }

    .employee-photo-help {
        text-align: left;
    }
}

/* Printable Employee 201 photo. A compact square is used so the
   approved explicit two-page A4 layout remains stable. */
.print-201-summary.has-photo-access {
    grid-template-columns:
        36mm
        minmax(0, 1.65fr)
        minmax(0, 1fr)
        minmax(0, 1fr);
    align-items: start;
}

.print-employee-photo {
    grid-row: span 3;
    align-self: start;
}

.print-employee-photo-frame {
    width: 36mm;
    height: 36mm;

    overflow: hidden;
    box-sizing: border-box;

    background: #f8fafc;

    border: 0.35mm solid #aab8c8;
    border-radius: 1.4mm;
}

.print-employee-photo-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.print-employee-photo-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    color: #778497;
    background: #f6f8fb;

    font-size: 6.5pt;
    font-weight: 700;
    letter-spacing: .35px;
    text-align: center;
}

@media screen and (max-width: 900px) {
    .print-201-summary.has-photo-access {
        grid-template-columns:
            110px
            minmax(0, 1.65fr)
            minmax(0, 1fr)
            minmax(0, 1fr);
    }

    .print-employee-photo-frame {
        width: 110px;
        height: 110px;
    }
}

@media print {
    .print-employee-photo-frame,
    .employee-photo-frame,
    .employee-photo-upload {
        box-shadow: none !important;
    }
}

/* =========================================================
   EMPLOYEE 201 PHOTO - 120PX SCREEN SIZE
========================================================= */

@media screen {

    .employee-photo-frame {
        width: 120px;
        height: 120px;
        flex: 0 0 120px;
    }

    .employee-photo-form {
        width: 120px;
    }

}

@media screen and (min-width: 1101px) {

    .employee-profile-hero.has-photo-access {
        grid-template-columns:
            120px
            155px
            1fr
            auto;
    }

}


/* =========================================================
   EMPLOYEE 201 PHOTO - FINAL 140PX SCREEN SIZE
========================================================= */

@media screen {

    .employee-photo-frame {
        width: 140px;
        height: 140px;
        flex: 0 0 140px;
    }

    .employee-photo-form {
        width: 140px;
    }

}

@media screen and (min-width: 1101px) {

    .employee-profile-hero.has-photo-access {
        grid-template-columns:
            140px
            155px
            1fr
            auto;
    }

}

