/* ============================================================
   KENSIUM HR MANAGEMENT PORTAL
   GLOBAL SITE STYLES
   ============================================================ */

:root {
    --kensium-navy: #172f55;
    --kensium-navy-dark: #102544;
    --kensium-blue: #234a7a;
    --kensium-light-blue: #eef4fb;
    --kensium-bg: #f5f8fc;
    --kensium-border: #d8e0eb;
    --kensium-text: #172b4d;
    --kensium-muted: #6c7f99;
    --kensium-green: #35a853;
    --kensium-red: #dc4b4b;
    --white: #ffffff;
    --shadow: 0 15px 40px rgba(23, 47, 85, 0.08);
}


/* ============================================================
   GLOBAL RESET
   ============================================================ */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    min-height: 100%;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: var(--kensium-text);
    background: var(--kensium-bg);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font-family: inherit;
}


/* ============================================================
   LOGIN / PORTAL BODY
   ============================================================ */

.login-body {
    background: #f5f8fc;
    min-height: 100vh;
}

.portal-body {
    background: var(--kensium-bg);
    min-height: 100vh;
}


/* ============================================================
   PORTAL HEADER
   ============================================================ */

.portal-header {
    width: 100%;
    height: 96px;
    background: var(--white);
    border-bottom: 1px solid #e4e9f0;
    box-shadow: 0 2px 10px rgba(23, 47, 85, 0.04);
    position: relative;
    z-index: 100;
}

.portal-navbar {
    width: 100%;
    height: 100%;
}

.portal-navbar-container {
    width: min(1200px, calc(100% - 48px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ============================================================
   PORTAL BRAND
   ============================================================ */

.portal-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 100%;
}

.portal-logo {
    width: 50px;
    height: 62px;
    object-fit: contain;
    display: block;
}

.portal-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.portal-brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 4px;
    line-height: 1;
    color: var(--kensium-navy);
}

.portal-brand-title {
    font-size: 14px;
    color: var(--kensium-blue);
    line-height: 1.4;
}


/* ============================================================
   USER AREA
   ============================================================ */

.portal-user-area {
    display: flex;
    align-items: center;
    gap: 24px;
}

.portal-user-info {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.portal-user-greeting {
    color: #70809a;
}

.portal-user-name {
    color: var(--kensium-navy);
    font-weight: 600;
}


/* ============================================================
   LOGOUT
   ============================================================ */

.logout-form {
    margin: 0;
    padding: 0;
}

.logout-button {
    height: 44px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: #ffffff;
    color: var(--kensium-navy);
    border: 1px solid #d6dfeb;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

    .logout-button svg {
        flex-shrink: 0;
    }

    .logout-button:hover {
        background: #f5f8fc;
        border-color: #bdcadd;
        box-shadow: 0 4px 12px rgba(23, 47, 85, 0.08);
    }

    .logout-button:active {
        transform: translateY(1px);
    }


/* ============================================================
   MAIN PORTAL AREA
   ============================================================ */

.portal-main {
    width: 100%;
    min-height: calc(100vh - 96px);
    padding: 54px 24px 70px;
}


/* ============================================================
   EMPLOYEE SEARCH PAGE
   ============================================================ */

.employee-page,
.employee-search-page {
    width: min(1200px, 100%);
    margin: 0 auto;
}


/* ============================================================
   PAGE HEADER
   ============================================================ */

.employee-page-header {
    margin-bottom: 38px;
}

.employee-eyebrow {
    margin: 0 0 12px;
    color: #6680a4;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.employee-page-title {
    margin: 0;
    color: var(--kensium-navy);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.8px;
}

.employee-page-subtitle {
    margin: 12px 0 0;
    color: var(--kensium-muted);
    font-size: 16px;
    line-height: 1.6;
}

.portal-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: #627995;
    font-size: 14px;
}

    .portal-status::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--kensium-green);
        box-shadow: 0 0 0 4px rgba(53, 168, 83, 0.10);
    }


/* ============================================================
   SEARCH CARD
   ============================================================ */

.employee-search-card {
    width: 100%;
    padding: 42px;
    background: #ffffff;
    border: 1px solid #e1e7ef;
    border-radius: 18px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.search-card-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 34px;
}

.search-card-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf4fc;
    color: var(--kensium-navy);
    border-radius: 11px;
}

    .search-card-icon svg {
        width: 22px;
        height: 22px;
    }

.search-card-title {
    margin: 0;
    color: var(--kensium-navy);
    font-size: 27px;
    font-weight: 700;
    line-height: 1.2;
}

.search-card-description {
    margin: 7px 0 0;
    color: #71839c;
    font-size: 14px;
    line-height: 1.5;
}


/* ============================================================
   SEARCH FORM
   ============================================================ */

.employee-search-form {
    width: 100%;
    max-width: 720px;
}

.employee-search-label {
    display: block;
    margin-bottom: 9px;
    color: var(--kensium-text);
    font-size: 14px;
    font-weight: 600;
}

.employee-input-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

.employee-input {
    width: 100%;
    height: 50px;
    padding: 0 18px 0 46px;
    background: #ffffff;
    border: 1px solid #d2dce9;
    border-radius: 9px;
    color: var(--kensium-text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .employee-input::placeholder {
        color: #9aabc0;
    }

    .employee-input:focus {
        border-color: #5d7fa8;
        box-shadow: 0 0 0 3px rgba(35, 74, 122, 0.10);
    }

.employee-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #6e819b;
    pointer-events: none;
}


/* ============================================================
   SEARCH BUTTON
   ============================================================ */

.employee-search-button {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: none;
    border-radius: 9px;
    background: var(--kensium-navy);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

    .employee-search-button:hover {
        background: var(--kensium-navy-dark);
        box-shadow: 0 7px 18px rgba(23, 47, 85, 0.20);
    }

    .employee-search-button:active {
        transform: translateY(1px);
    }


/* ============================================================
   SECURITY MESSAGE
   ============================================================ */

.search-security {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 19px;
    color: #71839c;
    font-size: 13px;
}

    .search-security svg {
        width: 16px;
        height: 16px;
        color: #7589a3;
    }


/* ============================================================
   INFORMATION CARDS
   ============================================================ */

.employee-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
}

.employee-info-card {
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e1e7ef;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(23, 47, 85, 0.04);
}

    .employee-info-card h3 {
        margin: 0 0 8px;
        color: var(--kensium-navy);
        font-size: 17px;
        font-weight: 700;
    }

    .employee-info-card p {
        margin: 0;
        color: #72839b;
        font-size: 14px;
        line-height: 1.6;
    }


/* ============================================================
   PORTAL FOOTER
   ============================================================ */

.portal-footer {
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e1e7ef;
}

.portal-footer-container {
    width: min(1200px, calc(100% - 48px));
    min-height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #7b8ca3;
    font-size: 12px;
}

    .portal-footer-container a {
        color: var(--kensium-blue);
        font-weight: 500;
    }

.footer-dot {
    color: #b5c0cf;
}


/* ============================================================
   LOGIN PAGE
   ============================================================ */

.kensium-login-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #f5f8fc;
}


/* ============================================================
   LOGIN BACKGROUND
   ============================================================ */

.login-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(23, 47, 85, 0.055);
}

.bg-circle-one {
    width: 700px;
    height: 700px;
    top: -420px;
    right: -250px;
}

.bg-circle-two {
    width: 500px;
    height: 500px;
    bottom: -320px;
    left: -220px;
}

.bg-circle-three {
    width: 280px;
    height: 280px;
    top: 35%;
    right: 5%;
    background: rgba(35, 74, 122, 0.035);
}

.bg-grid {
    position: absolute;
    inset: 0;
    opacity: 0.25;
    background-image: linear-gradient( rgba(23, 47, 85, 0.025) 1px, transparent 1px ), linear-gradient( 90deg, rgba(23, 47, 85, 0.025) 1px, transparent 1px );
    background-size: 45px 45px;
}


/* ============================================================
   LOGIN LAYOUT
   ============================================================ */

.login-wrapper {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 48px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    align-items: center;
    gap: 70px;
    padding: 60px 0;
}


/* ============================================================
   LOGIN BRANDING
   ============================================================ */

.login-brand {
    padding: 30px 0;
}

.brand-content {
    max-width: 520px;
}

.brand-logo-container {
    margin-bottom: 26px;
}

.brand-logo-box {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e1e7ef;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(23, 47, 85, 0.07);
}

.brand-logo {
    width: 75px;
    height: 82px;
    object-fit: contain;
}

.brand-line {
    width: 55px;
    height: 3px;
    margin-bottom: 25px;
    background: var(--kensium-navy);
    border-radius: 5px;
}

.brand-content h1 {
    margin: 0;
    color: var(--kensium-navy);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
}

    .brand-content h1 span {
        display: block;
        color: #58759a;
    }

.brand-description {
    max-width: 470px;
    margin: 20px 0 35px;
    color: #71839c;
    font-size: 16px;
    line-height: 1.7;
}


/* ============================================================
   LOGIN FEATURES
   ============================================================ */

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.feature-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kensium-navy);
    background: #eaf1f9;
    border-radius: 9px;
}

    .feature-icon svg {
        width: 17px;
        height: 17px;
    }

.feature-item strong {
    display: block;
    margin-bottom: 2px;
    color: var(--kensium-navy);
    font-size: 14px;
    font-weight: 650;
}

.feature-item span {
    display: block;
    color: #7b8da5;
    font-size: 12px;
}


/* ============================================================
   LOGIN SECTION
   ============================================================ */

.login-section {
    width: 100%;
}

.login-card {
    width: 100%;
    padding: 46px;
    background: #ffffff;
    border: 1px solid #e0e6ef;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(23, 47, 85, 0.10);
}


/* ============================================================
   MOBILE LOGO
   ============================================================ */

.mobile-logo {
    display: none;
}


/* ============================================================
   LOGIN HEADING
   ============================================================ */

.login-heading {
    margin-bottom: 30px;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 13px;
    color: #58769a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--kensium-green);
}

.login-heading h2 {
    margin: 0;
    color: var(--kensium-navy);
    font-size: 31px;
    font-weight: 700;
    line-height: 1.2;
}

.login-heading p {
    margin: 9px 0 0;
    color: #7889a0;
    font-size: 14px;
    line-height: 1.6;
}


/* ============================================================
   LOGIN ERRORS
   ============================================================ */

.login-error {
    margin-bottom: 18px;
    color: #b42318;
    font-size: 13px;
}

.field-error {
    display: block;
    margin-top: 6px;
    color: #c43c3c;
    font-size: 12px;
}


/* ============================================================
   LOGIN INPUTS
   ============================================================ */

.input-group-custom {
    margin-bottom: 21px;
}

    .input-group-custom label {
        display: block;
        margin-bottom: 8px;
        color: var(--kensium-text);
        font-size: 13px;
        font-weight: 600;
    }

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #7890aa;
    pointer-events: none;
    z-index: 2;
}

    .input-icon svg {
        width: 100%;
        height: 100%;
    }

.custom-input {
    width: 100%;
    height: 50px;
    padding: 0 45px 0 45px;
    background: #ffffff;
    border: 1px solid #d4deea;
    border-radius: 9px;
    color: var(--kensium-text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .custom-input::placeholder {
        color: #a1afc0;
    }

    .custom-input:focus,
    .input-wrapper.focused .custom-input {
        border-color: #5c7da5;
        box-shadow: 0 0 0 3px rgba(35, 74, 122, 0.10);
    }


/* ============================================================
   PASSWORD TOGGLE
   ============================================================ */

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 32px;
    height: 32px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    color: #71859e;
    cursor: pointer;
    border-radius: 6px;
}

    .password-toggle:hover {
        background: #f1f5f9;
        color: var(--kensium-navy);
    }

.eye-icon {
    width: 18px;
    height: 18px;
}


/* ============================================================
   LOGIN SECURITY
   ============================================================ */

.login-security {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 3px 0 20px;
    font-size: 12px;
}

.security-status {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #607792;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--kensium-green);
}

.security-text {
    color: #9aa8ba;
}


/* ============================================================
   LOGIN BUTTON
   ============================================================ */

.login-button {
    position: relative;
    width: 100%;
    height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 9px;
    background: var(--kensium-navy);
    color: #ffffff;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

    .login-button:hover {
        background: var(--kensium-navy-dark);
        box-shadow: 0 8px 20px rgba(23, 47, 85, 0.22);
    }

    .login-button:active {
        transform: translateY(1px);
    }

.button-text {
    transition: opacity 0.2s ease;
}

.button-arrow {
    margin-left: 10px;
    font-size: 18px;
    line-height: 1;
}

.button-loader {
    position: absolute;
    display: none;
    align-items: center;
    gap: 5px;
}

    .button-loader span {
        width: 5px;
        height: 5px;
        background: #ffffff;
        border-radius: 50%;
        animation: loginLoader 0.8s infinite ease-in-out;
    }

        .button-loader span:nth-child(2) {
            animation-delay: 0.12s;
        }

        .button-loader span:nth-child(3) {
            animation-delay: 0.24s;
        }

.login-button.loading .button-text,
.login-button.loading .button-arrow {
    opacity: 0;
}

.login-button.loading .button-loader {
    display: flex;
}

@keyframes loginLoader {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}


/* ============================================================
   LOGIN FOOTER
   ============================================================ */

.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 27px;
    color: #91a0b3;
    font-size: 11px;
    text-align: center;
}

    .login-footer .footer-dot {
        color: #c1cad5;
    }


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1000px) {

    .login-wrapper {
        grid-template-columns: 1fr;
        max-width: 600px;
        gap: 30px;
    }

    .login-brand {
        display: none;
    }

    .mobile-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 25px;
    }

    .mobile-logo-box {
        width: 82px;
        height: 82px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        border: 1px solid #e0e6ef;
        border-radius: 14px;
    }

    .mobile-logo-image {
        width: 62px;
        height: 68px;
        object-fit: contain;
    }
}


@media (max-width: 768px) {

    .portal-header {
        height: auto;
        min-height: 82px;
    }

    .portal-navbar-container {
        width: calc(100% - 30px);
        padding: 15px 0;
    }

    .portal-brand {
        gap: 10px;
    }

    .portal-logo {
        width: 38px;
        height: 48px;
    }

    .portal-brand-name {
        font-size: 16px;
        letter-spacing: 3px;
    }

    .portal-brand-title {
        font-size: 11px;
    }

    .portal-user-area {
        gap: 10px;
    }

    .portal-user-info {
        display: none;
    }

    .logout-button {
        height: 40px;
        padding: 0 13px;
    }

    .portal-main {
        padding: 35px 15px 50px;
    }

    .employee-page-title {
        font-size: 32px;
    }

    .employee-search-card {
        padding: 28px 22px;
    }

    .employee-info-grid {
        grid-template-columns: 1fr;
    }

    .portal-footer-container {
        width: calc(100% - 30px);
        text-align: center;
    }

    .login-wrapper {
        width: calc(100% - 30px);
        padding: 25px 0;
    }

    .login-card {
        padding: 30px 23px;
    }

    .login-heading h2 {
        font-size: 27px;
    }

    .login-security {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}


@media (max-width: 480px) {

    .portal-brand-title {
        display: none;
    }

    .portal-logo {
        width: 35px;
        height: 43px;
    }

    .portal-brand-name {
        font-size: 15px;
    }

    .employee-page-title {
        font-size: 29px;
    }

    .search-card-header {
        gap: 12px;
    }

    .search-card-title {
        font-size: 23px;
    }

    .employee-search-card {
        padding: 24px 18px;
        border-radius: 14px;
    }

    .login-card {
        padding: 27px 19px;
        border-radius: 14px;
    }

    .login-footer {
        flex-direction: column;
        gap: 5px;
    }

        .login-footer .footer-dot {
            display: none;
        }
}


/* ============================================================
   ACCESSIBILITY
   ============================================================ */

button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(35, 74, 122, 0.25);
    outline-offset: 2px;
}


/* ============================================================
   BOOTSTRAP OVERRIDES
   Prevent Bootstrap from interfering with portal styling
   ============================================================ */

.portal-main .btn,
.portal-main button {
    font-family: inherit;
}

.portal-main input.form-control {
    box-shadow: none;
}


/* ============================================================
   VALIDATION
   ============================================================ */

.input-validation-error {
    border-color: #d9534f !important;
}

    .input-validation-error:focus {
        border-color: #d9534f !important;
        box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.10) !important;
    }

.validation-summary-errors {
    color: #b42318;
}

    .validation-summary-errors ul {
        margin: 0;
        padding-left: 18px;
    }


/* =========================================================
   EMPLOYEE DETAILS PAGE
   ========================================================= */

.employee-details-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 28px 70px;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.employee-details-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.details-eyebrow {
    color: #60789d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.employee-details-header h1 {
    margin: 0;
    color: #132d52;
    font-size: 36px;
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -0.8px;
}

.employee-details-header p {
    margin: 10px 0 0;
    color: #7184a0;
    font-size: 15px;
}

.details-header-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid #dbe4ef;
    border-radius: 999px;
    background: #ffffff;
    color: #536b8d;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.status-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #35ad68;
}


/* =========================================================
   EMPLOYEE PROFILE CARD
   ========================================================= */

.employee-profile-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 28px 30px;
    margin-bottom: 22px;
    background: #ffffff;
    border: 1px solid #e2e9f2;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(28, 53, 84, 0.055);
}

.employee-profile-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.employee-avatar {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 16px;
    background: #edf3fb;
    color: #17365f;
    font-size: 21px;
    font-weight: 750;
    letter-spacing: 0.5px;
}

.employee-profile-info h2 {
    margin: 0;
    color: #132d52;
    font-size: 22px;
    font-weight: 700;
}

.employee-designation {
    margin: 5px 0 10px;
    color: #7184a0;
    font-size: 14px;
}

.employee-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

    .employee-meta span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #637895;
        font-size: 12px;
        font-weight: 600;
    }

    .employee-meta svg {
        width: 15px;
        height: 15px;
    }

.employee-profile-right {
    flex-shrink: 0;
}

.profile-status {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f2faf5;
    color: #37805a;
    font-size: 12px;
    font-weight: 650;
}

.profile-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #35ad68;
}


/* =========================================================
   INFORMATION SECTIONS
   ========================================================= */

.details-section {
    margin-bottom: 20px;
    padding: 28px 30px;
    background: #ffffff;
    border: 1px solid #e2e9f2;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(28, 53, 84, 0.045);
}

.details-section-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 24px;
}

.section-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 11px;
    background: #edf3fb;
    color: #1b3b66;
}

    .section-icon svg {
        width: 20px;
        height: 20px;
    }

.details-section-heading h3 {
    margin: 0;
    color: #17365f;
    font-size: 17px;
    font-weight: 700;
}

.details-section-heading p {
    margin: 4px 0 0;
    color: #8293aa;
    font-size: 12px;
}


/* =========================================================
   DETAIL GRID
   ========================================================= */

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.detail-item {
    min-height: 78px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px 17px;
    background: #f8fafc;
    border: 1px solid #e7edf4;
    border-radius: 11px;
}

.detail-item-wide {
    grid-column: 1 / -1;
}

.detail-label {
    margin-bottom: 6px;
    color: #8090a6;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.detail-value {
    color: #263f62;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.email-value {
    color: #315d91;
}

.manager-value {
    display: flex;
    align-items: center;
    gap: 9px;
}

.manager-avatar {
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #e8eff8;
    color: #24476f;
    font-size: 10px;
    font-weight: 750;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 18px;
    background: #f8fafc;
    border: 1px solid #e7edf4;
    border-radius: 11px;
}

.contact-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    background: #edf3fb;
    color: #24466f;
}

    .contact-icon svg {
        width: 19px;
        height: 19px;
    }

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    color: #8090a6;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.contact-value {
    color: #263f62;
    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.details-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
}

.details-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

    .details-button svg {
        width: 17px;
        height: 17px;
    }

    .details-button.primary {
        background: #18365d;
        border: 1px solid #18365d;
        color: #ffffff;
        box-shadow: 0 5px 14px rgba(24, 54, 93, 0.14);
    }

        .details-button.primary:hover {
            background: #102b4e;
            border-color: #102b4e;
            color: #ffffff;
            transform: translateY(-1px);
        }

    .details-button.secondary {
        background: #ffffff;
        border: 1px solid #d7e0eb;
        color: #526b8d;
    }

        .details-button.secondary:hover {
            background: #f6f8fb;
            border-color: #c9d5e4;
            color: #29496f;
        }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .employee-details-page {
        padding: 30px 16px 50px;
    }

    .employee-details-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

        .employee-details-header h1 {
            font-size: 30px;
        }

    .employee-profile-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 23px;
    }

    .employee-profile-right {
        width: 100%;
    }

    .profile-status {
        width: fit-content;
    }

    .details-section {
        padding: 23px;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .detail-item-wide {
        grid-column: auto;
    }

    .details-actions {
        justify-content: stretch;
        flex-direction: column-reverse;
    }

    .details-button {
        width: 100%;
    }
}


@media (max-width: 480px) {

    .employee-profile-left {
        align-items: flex-start;
    }

    .employee-avatar {
        width: 56px;
        height: 56px;
        border-radius: 13px;
    }

    .employee-profile-info h2 {
        font-size: 18px;
    }

    .employee-meta {
        flex-direction: column;
        gap: 6px;
    }

    .details-section-heading {
        align-items: flex-start;
    }
}
/* =========================================================
   EMPLOYEE SEARCH PAGE - FINAL UI FIX
   ========================================================= */

/* Main Employee Search page */
.portal-main {
    min-height: calc(100vh - 80px);
    background: #f5f8fc;
}

/* Search page container */
.employee-search-page {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 56px 0 70px;
}

/* Page heading */
.employee-search-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 28px;
}

.employee-search-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: #60789a;
    margin-bottom: 8px;
}

.employee-search-header h1 {
    margin: 0;
    color: #172f54;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
}

.employee-search-header p {
    margin: 10px 0 0;
    color: #627896;
    font-size: 16px;
}

/* HR Access status */
.employee-search-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid #dce5ef;
    border-radius: 999px;
    background: #ffffff;
    color: #385575;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

    .employee-search-status .status-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #2eaa62;
        box-shadow: 0 0 0 4px rgba(46, 170, 98, 0.10);
    }

/* Search card */
.employee-search-card {
    background: #ffffff;
    border: 1px solid #e1e8f0;
    border-radius: 18px;
    padding: 34px;
    box-shadow: 0 12px 35px rgba(27, 55, 88, 0.07);
}

/* Search card heading */
.search-card-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 28px;
}

.search-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #edf4fc;
    color: #1d4f86;
    flex-shrink: 0;
}

    .search-card-icon svg {
        width: 23px;
        height: 23px;
    }

.search-card-heading h2 {
    margin: 0;
    color: #172f54;
    font-size: 22px;
    font-weight: 700;
}

.search-card-heading p {
    margin: 5px 0 0;
    color: #71849d;
    font-size: 14px;
}

/* Search form */
.employee-search-form {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.employee-search-input-group {
    flex: 1;
}

    .employee-search-input-group label {
        display: block;
        margin-bottom: 8px;
        color: #243c5c;
        font-size: 14px;
        font-weight: 600;
    }

.employee-search-input-wrapper {
    position: relative;
}

.employee-search-input {
    width: 100%;
    height: 50px;
    padding: 0 18px;
    border: 1px solid #d5dfeb;
    border-radius: 9px;
    background: #ffffff;
    color: #1c3556;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
}

    .employee-search-input::placeholder {
        color: #9aabc0;
    }

    .employee-search-input:focus {
        border-color: #284e7c;
        box-shadow: 0 0 0 3px rgba(40, 78, 124, 0.10);
    }

/* Search button */
.employee-search-button {
    height: 50px;
    min-width: 180px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: none;
    border-radius: 9px;
    background: #192f52;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .employee-search-button:hover {
        background: #23466f;
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(25, 47, 82, 0.18);
    }

    .employee-search-button svg {
        width: 18px;
        height: 18px;
    }

/* Security message */
.employee-search-security {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #edf1f5;
    color: #71849d;
    font-size: 13px;
}

    .employee-search-security svg {
        width: 16px;
        height: 16px;
        color: #71849d;
    }

/* Bottom information cards */
.employee-search-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 22px;
}

.employee-search-info-card {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e1e8f0;
    border-radius: 15px;
    box-shadow: 0 7px 22px rgba(27, 55, 88, 0.045);
}

    .employee-search-info-card h3 {
        margin: 0 0 7px;
        color: #19385f;
        font-size: 16px;
        font-weight: 700;
    }

    .employee-search-info-card p {
        margin: 0;
        color: #71849d;
        font-size: 14px;
        line-height: 1.6;
    }


/* =========================================================
   IMPORTANT - PREVENT LOGIN BACKGROUND FROM LEAKING
   ========================================================= */

.portal-body {
    position: relative;
    overflow-x: hidden;
}

    .portal-body .login-bg,
    .portal-body .bg-circle,
    .portal-body .bg-grid,
    .portal-body .kensium-login-page {
        display: none !important;
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .employee-search-page {
        width: min(100% - 30px, 1180px);
        padding: 35px 0 50px;
    }

    .employee-search-header {
        display: block;
    }

    .employee-search-status {
        margin-top: 18px;
    }

    .employee-search-header h1 {
        font-size: 32px;
    }

    .employee-search-card {
        padding: 24px;
    }

    .employee-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .employee-search-button {
        width: 100%;
    }

    .employee-search-info-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   EMPLOYEE SEARCH PAGE - FINAL STYLING
   Matches Employee/Index.cshtml
   ========================================================= */

.portal-main {
    min-height: calc(100vh - 80px);
    background: #f5f8fc;
}

.employee-search-page {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 56px 0 70px;
}

/* =========================================================
   PAGE HEADER
   ========================================================= */

.employee-search-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 28px;
}

.search-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: #60789a;
    margin-bottom: 8px;
}

.employee-search-header h1 {
    margin: 0;
    color: #172f54;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
}

.employee-search-header p {
    margin: 10px 0 0;
    color: #627896;
    font-size: 16px;
}

.search-header-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid #dce5ef;
    border-radius: 999px;
    background: #ffffff;
    color: #385575;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

    .search-header-status .status-indicator {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #2eaa62;
        box-shadow: 0 0 0 4px rgba(46, 170, 98, 0.10);
    }

/* =========================================================
   SEARCH CARD
   ========================================================= */

.employee-search-card {
    background: #ffffff;
    border: 1px solid #e1e8f0;
    border-radius: 18px;
    padding: 34px;
    box-shadow: 0 12px 35px rgba(27, 55, 88, 0.07);
}

.search-card-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 28px;
}

.search-icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #edf4fc;
    color: #1d4f86;
    flex-shrink: 0;
}

    .search-icon-box svg {
        width: 23px;
        height: 23px;
    }

.search-card-heading h2 {
    margin: 0;
    color: #172f54;
    font-size: 22px;
    font-weight: 700;
}

.search-card-heading p {
    margin: 5px 0 0;
    color: #71849d;
    font-size: 14px;
}

/* =========================================================
   SEARCH FORM
   ========================================================= */

.employee-search-form {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.search-field {
    flex: 1;
}

    .search-field label {
        display: block;
        margin-bottom: 8px;
        color: #243c5c;
        font-size: 14px;
        font-weight: 600;
    }

.search-input-wrapper {
    position: relative;
}

.employee-search-input {
    width: 100%;
    height: 50px;
    padding: 0 18px 0 48px;
    border: 1px solid #d5dfeb;
    border-radius: 9px;
    background: #ffffff;
    color: #1c3556;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

    .employee-search-input::placeholder {
        color: #9aabc0;
    }

    .employee-search-input:focus {
        border-color: #284e7c;
        box-shadow: 0 0 0 3px rgba(40, 78, 124, 0.10);
    }

.search-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #71849d;
    pointer-events: none;
    z-index: 2;
}

    .search-input-icon svg {
        width: 19px;
        height: 19px;
    }

.search-helper {
    display: block;
    margin-top: 7px;
    color: #8798ad;
    font-size: 12px;
}

/* =========================================================
   SEARCH BUTTON
   ========================================================= */

.employee-search-button {
    height: 50px;
    min-width: 180px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: none;
    border-radius: 9px;
    background: #192f52;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .employee-search-button:hover {
        background: #23466f;
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(25, 47, 82, 0.18);
    }

    .employee-search-button svg {
        width: 18px;
        height: 18px;
    }

/* =========================================================
   ERROR MESSAGE
   ========================================================= */

.employee-search-error {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 13px 15px;
    border: 1px solid #f1caca;
    border-radius: 9px;
    background: #fff6f6;
    color: #a63b3b;
    font-size: 14px;
}

    .employee-search-error svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

/* =========================================================
   INFORMATION CARDS
   ========================================================= */

.search-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 22px;
}

.search-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e1e8f0;
    border-radius: 15px;
    box-shadow: 0 7px 22px rgba(27, 55, 88, 0.045);
}

.search-info-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #edf4fc;
    color: #1d4f86;
}

    .search-info-icon svg {
        width: 21px;
        height: 21px;
    }

.search-info-card h3 {
    margin: 0 0 7px;
    color: #19385f;
    font-size: 16px;
    font-weight: 700;
}

.search-info-card p {
    margin: 0;
    color: #71849d;
    font-size: 14px;
    line-height: 1.6;
}

/* =========================================================
   SECURITY NOTICE
   ========================================================= */

.search-security-notice {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 22px;
    padding: 16px 18px;
    border: 1px solid #dfe8f2;
    border-radius: 12px;
    background: #f9fbfd;
}

.security-notice-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #edf4fc;
    color: #345b86;
}

    .security-notice-icon svg {
        width: 19px;
        height: 19px;
    }

.search-security-notice strong {
    display: block;
    margin-bottom: 2px;
    color: #294666;
    font-size: 13px;
    font-weight: 700;
}

.search-security-notice span {
    color: #71849d;
    font-size: 13px;
}

/* =========================================================
   PREVENT LOGIN PAGE BACKGROUND FROM LEAKING
   ========================================================= */

.portal-body {
    position: relative;
    overflow-x: hidden;
}

    .portal-body .login-bg,
    .portal-body .bg-circle,
    .portal-body .bg-grid,
    .portal-body .kensium-login-page {
        display: none !important;
    }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .employee-search-page {
        width: calc(100% - 30px);
        padding: 35px 0 50px;
    }

    .employee-search-header {
        display: block;
    }

    .search-header-status {
        margin-top: 18px;
    }

    .employee-search-header h1 {
        font-size: 32px;
    }

    .employee-search-card {
        padding: 24px;
    }

    .employee-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .employee-search-button {
        width: 100%;
    }

    .search-info-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   EMPLOYEE SEARCH - FORM WIDTH FIX
   ========================================================= */

.employee-search-form {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-end !important;
    gap: 14px !important;
    width: 100% !important;
}

    .employee-search-form .search-field {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
    }

    .employee-search-form .search-input-wrapper {
        position: relative !important;
        width: 100% !important;
    }

    .employee-search-form .employee-search-input {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .employee-search-form .employee-search-button {
        flex: 0 0 180px !important;
        width: 180px !important;
        min-width: 180px !important;
        max-width: 180px !important;
        box-sizing: border-box !important;
    }


    /* =========================================================
   SEARCH LABEL
   ========================================================= */

    .employee-search-form .search-field label {
        white-space: nowrap;
    }


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .employee-search-form {
        flex-direction: column !important;
        align-items: stretch !important;
    }

        .employee-search-form .search-field {
            width: 100% !important;
            flex: none !important;
        }

        .employee-search-form .employee-search-button {
            width: 100% !important;
            max-width: none !important;
            min-width: 0 !important;
            flex: none !important;
        }
}
/* ================================================================
   AUDIT TRAIL
   ================================================================ */

.audit-section {
    margin-top: 32px;
    margin-bottom: 50px;
}


/* ================================================================
   AUDIT HEADER
   ================================================================ */

.audit-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.audit-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #526b8f;
    margin-bottom: 6px;
}

.audit-header h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    color: #17365d;
}

.audit-header p {
    margin: 7px 0 0;
    font-size: 15px;
    color: #6882a5;
}


/* ================================================================
   CHANGE COUNT
   ================================================================ */

.audit-count {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid #d9e3ef;
    border-radius: 10px;
    background: #ffffff;
    color: #607797;
    white-space: nowrap;
}

    .audit-count strong {
        font-size: 18px;
        color: #17365d;
    }

    .audit-count span {
        font-size: 14px;
    }


/* ================================================================
   AUDIT LIST
   ================================================================ */

.audit-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}


/* ================================================================
   AUDIT CARD
   ================================================================ */

.audit-card {
    background: #ffffff;
    border: 1px solid #dfe7f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(25, 55, 90, 0.045);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

    .audit-card:hover {
        box-shadow: 0 7px 22px rgba(25, 55, 90, 0.08);
        transform: translateY(-1px);
    }


/* ================================================================
   AUDIT CARD TOP
   ================================================================ */

.audit-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e6edf5;
}


/* ================================================================
   FIELD NAME
   ================================================================ */

.audit-field {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #17365d;
}

.audit-field-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #e8f4ed;
    color: #25804b;
    font-size: 13px;
    font-weight: 700;
}


/* ================================================================
   USER + DATE
   ================================================================ */

.audit-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #7186a1;
    white-space: nowrap;
}

.audit-user {
    font-weight: 600;
    color: #405b7c;
}

.audit-separator {
    color: #a9b6c7;
}

.audit-date {
    color: #7186a1;
}


/* ================================================================
   VALUE AREA
   ================================================================ */

.audit-values {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
    align-items: stretch;
    gap: 16px;
    padding: 20px;
}


/* ================================================================
   VALUE BOX
   ================================================================ */

.audit-value-box {
    min-width: 0;
    padding: 16px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e9f1;
}

.previous-value {
    background: #fafafa;
}

.new-value {
    background: #f7fbf8;
    border-color: #dcebe1;
}


/* ================================================================
   VALUE LABEL
   ================================================================ */

.audit-value-label {
    margin-bottom: 9px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
    color: #7b8da5;
}


/* ================================================================
   VALUE
   ================================================================ */

.audit-value {
    color: #29496f;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}


/* ================================================================
   EMPTY VALUE
   ================================================================ */

.empty-value {
    color: #9aa9ba;
    font-style: italic;
}


/* ================================================================
   CHANGE ARROW
   ================================================================ */

.audit-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 500;
    color: #8aa0ba;
}


/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 900px) {

    .audit-card-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .audit-meta {
        white-space: normal;
    }

    .audit-values {
        grid-template-columns: 1fr;
    }

    .audit-arrow {
        height: 24px;
        transform: rotate(90deg);
    }
}


@media (max-width: 600px) {

    .audit-header {
        align-items: flex-start;
        flex-direction: column;
    }

        .audit-header h2 {
            font-size: 25px;
        }

    .audit-card-top {
        padding: 14px 16px;
    }

    .audit-values {
        padding: 14px;
    }
}