:root {
    --app-primary: #2f6fed;
    --app-primary-dark: #2458c7;
    --app-ink: #172033;
    --app-muted: #667085;
    --app-border: #e8edf4;
    --app-bg: #f4f7fb;
    --app-card: #ffffff;
    --app-success: #16866b;
    --app-shadow: 0 12px 32px rgba(22, 32, 51, 0.08);
}

html,
body {
    min-height: 100%;
}

body {
    background: var(--app-bg);
    color: var(--app-ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.navbar.navbar-inverse.navbar-fixed-top {
    height: 68px;
    background: rgba(255, 255, 255, 0.96);
    border: 0;
    border-bottom: 1px solid var(--app-border);
    box-shadow: 0 4px 20px rgba(22, 32, 51, 0.06);
    backdrop-filter: blur(12px);
}

.navbar-fixed-top .container {
    height: 68px;
}

.navbar-brand {
    height: 68px;
    display: flex;
    align-items: center;
    padding: 8px 15px;
}

.navbar-brand img {
    height: 42px !important;
    width: auto !important;
}

@media (min-width: 768px) {
    body:not(.auth-page) .navbar-header > .navbar-toggle {
        display: none !important;
    }
}

@media (max-width: 767px) {
    body:not(.auth-page) .navbar-toggle {
        width: 42px;
        height: 40px;
        margin: 14px 0 0;
        padding: 9px 10px;
        border: 1px solid var(--app-border);
        border-radius: 10px;
        background: #ffffff;
    }

    body:not(.auth-page) .navbar-toggle:hover,
    body:not(.auth-page) .navbar-toggle:focus {
        background: #f4f7fb;
    }

    body:not(.auth-page) .navbar-toggle .icon-bar {
        width: 20px;
        height: 2px;
        background: #344054;
    }
}

.navbar-inverse .navbar-nav > li > a {
    color: #5d6678;
    line-height: 38px;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease, background 0.2s ease;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
    color: var(--app-primary);
    background: #f2f6ff;
    border-radius: 10px;
}

.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus {
    color: var(--app-primary);
    background: #eef4ff;
}

.navbar-right {
    margin-top: 9px;
}

.navbar-right .dropdown-menu {
    margin-top: 10px;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    box-shadow: var(--app-shadow);
}

.body-content {
    width: 100% !important;
    max-width: none;
    margin-top: 68px !important;
    padding: 0;
}

.body-content > p[align="center"] {
    display: none;
}

input,
select,
textarea,
.form-control {
    max-width: none;
    border: 1px solid #dfe5ee;
    border-radius: 9px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: #91adf2;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.11) !important;
    outline: 0;
}

.btn,
.easyui-linkbutton,
button {
    border-radius: 9px;
    font-weight: 700;
}

.easyui-layout {
    background: var(--app-bg);
}

.panel.layout-split-west,
.layout-split-west {
    border-right: 1px solid var(--app-border) !important;
}

.panel.layout-panel-west > .panel-header,
.layout-panel-west > .panel-header {
    background: #ffffff;
    border: 0;
    border-bottom: 1px solid var(--app-border);
    color: var(--app-ink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.layout-panel-west {
    background: #ffffff;
}

.accordion {
    background: #ffffff;
    border: 0;
}

.accordion .accordion-header {
    background: #ffffff;
    border: 0;
    border-bottom: 1px solid #f0f3f7;
    color: var(--app-ink);
    font-weight: 750;
}

.accordion .accordion-header-selected {
    background: #eef4ff;
    color: var(--app-primary);
}

.accordion .accordion-body {
    border: 0;
    padding: 8px;
}

.accordion a.block,
a.block {
    display: flex;
    align-items: center;
    min-height: 42px;
    margin: 2px 0;
    padding: 8px 10px;
    color: #59647a;
    border-radius: 9px;
    text-decoration: none;
    transition: 0.18s ease;
}

.accordion a.block:hover,
a.block:hover {
    background: #f1f5fc;
    color: var(--app-primary);
    text-decoration: none;
}

.accordion a.block img,
a.block img {
    display: none;
}

.accordion a.block::before,
a.block::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 10px;
    border-radius: 50%;
    background: #b9c5d6;
}

.accordion a.block:hover::before,
a.block:hover::before {
    background: var(--app-primary);
}

.panel.window {
    border: 1px solid var(--app-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--app-shadow);
}

.panel.window .panel-header,
.window-header {
    background: #ffffff;
    border: 0;
    border-bottom: 1px solid var(--app-border);
    color: var(--app-ink);
}

.panel.window .panel-body,
.window-body {
    background: #ffffff;
}

.datagrid,
.datagrid-header,
.datagrid-toolbar,
.datagrid-pager {
    border-color: var(--app-border);
}

.datagrid-header,
.datagrid-header-row,
.datagrid-row {
    background: #ffffff;
}

.datagrid-header-row {
    color: #3d4659;
    font-weight: 700;
}

.datagrid-row-over,
.datagrid-row-selected {
    background: #eef4ff !important;
}

.panel-body .textbox,
.textbox {
    border: 1px solid #dfe5ee;
    border-radius: 9px;
}

.textbox-focused {
    border-color: #91adf2;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.11);
}

/* Authentication experience */
body.auth-page {
    padding: 0;
    overflow-x: hidden;
}

body.auth-page .navbar-fixed-top,
body.auth-page .se-pre-con,
body.auth-page .loading-Results,
body.auth-page .body-content > p {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.auth-page .body-content {
    margin: 0 !important;
    padding: 0;
}

.terms-login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(520px, 1.18fr) minmax(430px, 0.82fr);
    background: #f7f9fc;
}

.terms-login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    overflow: hidden;
    padding: 44px clamp(44px, 7vw, 92px);
    color: #ffffff;
    background:
        radial-gradient(circle at 82% 18%, rgba(88, 160, 255, 0.38), transparent 23%),
        radial-gradient(circle at 12% 92%, rgba(57, 199, 184, 0.18), transparent 28%),
        linear-gradient(145deg, #10264a 0%, #173f78 58%, #245da3 100%);
}

.terms-login-brand::before,
.terms-login-brand::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.terms-login-brand::before {
    width: 520px;
    height: 520px;
    right: -260px;
    bottom: -260px;
}

.terms-login-brand::after {
    width: 330px;
    height: 330px;
    right: -90px;
    top: 80px;
}

.auth-brand-mark {
    position: relative;
    z-index: 1;
    width: fit-content;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.auth-brand-mark img {
    display: block;
    width: auto;
    height: 58px;
}

.auth-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: auto 0;
    padding: 64px 0;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: #cfe1ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: #64d6c7;
}

.auth-hero-copy h1 {
    max-width: 620px;
    margin: 0 0 22px;
    font-size: clamp(44px, 5.4vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 780;
}

.auth-hero-copy p {
    max-width: 540px;
    margin: 0;
    color: rgba(232, 240, 255, 0.78);
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.65;
}

.auth-feature-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.auth-feature-grid article {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
}

.auth-feature-icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 10px;
    background: #64d6c7;
    color: #10264a;
    font-size: 12px;
    font-weight: 900;
}

.auth-feature-grid strong,
.auth-feature-grid small {
    display: block;
}

.auth-feature-grid strong {
    margin-bottom: 4px;
    font-size: 14px;
}

.auth-feature-grid small {
    color: rgba(232, 240, 255, 0.66);
    font-size: 12px;
    line-height: 1.35;
}

.terms-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 48px clamp(32px, 5vw, 72px);
    background:
        linear-gradient(rgba(37, 57, 91, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 57, 91, 0.025) 1px, transparent 1px),
        #f7f9fc;
    background-size: 32px 32px;
}

.terms-login-card {
    width: 100%;
    max-width: 440px;
    padding: 42px;
    border: 1px solid #e7ecf3;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 70px rgba(36, 64, 112, 0.13);
}

.login-card-header {
    margin-bottom: 30px;
}

.login-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.login-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #29b7a1;
    box-shadow: 0 0 0 4px rgba(41, 183, 161, 0.11);
}

.terms-login-card h2 {
    margin: 0 0 8px;
    color: #18243a;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.login-card-header p {
    margin: 0;
    color: #7a8598;
    font-size: 14px;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label,
.auth-label-row {
    color: #344054;
    font-size: 13px;
    font-weight: 750;
}

.auth-field > label {
    display: block;
    margin-bottom: 8px;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.forgot-link {
    color: #2f6fed;
    font-size: 12px;
    text-decoration: none;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    z-index: 2;
    left: 14px;
    top: 50%;
    width: 19px;
    height: 19px;
    transform: translateY(-50%);
    color: #98a2b3;
    pointer-events: none;
}

.auth-input-icon svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.terms-login-card .auth-input-wrap .form-control {
    width: 100% !important;
    height: 52px;
    padding: 10px 54px 10px 44px;
    border: 1px solid #dfe5ed;
    border-radius: 10px;
    background: #ffffff;
    color: #172033;
    font-size: 14px;
}

.terms-login-card .auth-input-wrap .form-control:focus {
    border-color: #7699ed;
    box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.09) !important;
}

.password-toggle {
    position: absolute;
    z-index: 3;
    right: 10px;
    top: 50%;
    height: 32px;
    min-width: 44px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.password-toggle:hover {
    background: #f2f5f9;
}

.auth-validation,
.field-validation-error {
    display: block;
    color: #d92d20;
    font-size: 12px;
}

.auth-validation {
    margin: 0 0 14px;
}

.field-validation-error {
    margin-top: 6px;
}

.auth-submit {
    display: flex;
    width: 100%;
    height: 52px;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 17px 0 20px;
    border: 0;
    border-radius: 10px;
    background: #2f6fed;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(47, 111, 237, 0.22);
    font-size: 14px;
}

.auth-facial-login-link {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 12px;
    border: 1px solid #d7e3f8;
    border-radius: 10px;
    background: #f7faff;
    color: #2458c7;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.auth-facial-login-link svg {
    width: 18px;
    height: 18px;
}

.auth-facial-login-link:hover,
.auth-facial-login-link:focus {
    border-color: #9eb8ee;
    background: #edf4ff;
    color: #1949aa;
    text-decoration: none;
}

.auth-facial-login-link:focus-visible {
    outline: 3px solid rgba(47, 111, 237, 0.2);
    outline-offset: 2px;
}

.auth-submit span:last-child {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 18px;
}

.auth-submit:hover {
    background: #2458c7;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 14px;
    color: #98a2b3;
    font-size: 11px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #edf0f5;
}

.auth-secondary {
    display: flex;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dde4ee;
    border-radius: 10px;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.auth-secondary:hover {
    border-color: #c8d4ea;
    background: #f8fafc;
    color: #2458c7;
    text-decoration: none;
}

.auth-trust {
    margin-top: 18px;
    color: #98a2b3;
    text-align: center;
    font-size: 11px;
}

.auth-trust span {
    display: inline-grid;
    width: 17px;
    height: 17px;
    place-items: center;
    margin-right: 4px;
    border-radius: 50%;
    background: #e8f7f3;
    color: #16866b;
    font-weight: 900;
}

/* Loading experience */
.se-pre-con {
    display: grid;
    place-items: center;
    background: rgba(248, 250, 253, 0.98);
}

.loading-Results {
    display: grid;
    place-items: center;
    background: rgba(248, 250, 253, 0.88);
}

.loading-Results::before {
    content: "";
    width: 54px;
    height: 54px;
    border: 4px solid #e8edf6;
    border-top-color: #2f6fed;
    border-right-color: #64d6c7;
    border-radius: 50%;
    box-sizing: border-box;
    box-shadow: 0 8px 24px rgba(47, 111, 237, 0.12);
    animation: terms-loader-spin 0.85s linear infinite;
}

.terms-loader-mark {
    position: relative;
    width: 54px;
    height: 54px;
    border: 4px solid #e8edf6;
    border-top-color: #2f6fed;
    border-right-color: #64d6c7;
    border-radius: 50%;
    animation: terms-loader-spin 0.85s linear infinite;
    box-shadow: 0 8px 24px rgba(47, 111, 237, 0.12);
}

.terms-loader-mark::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    transform: translate(-50%, -50%);
    border-radius: 3px;
    background: #2458c7;
}

.terms-panel-loading {
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
}

.terms-inline-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #e6edf6;
    border-top-color: #3478df;
    border-right-color: #43b9ad;
    border-radius: 50%;
    animation: terms-loader-spin 0.8s linear infinite;
}

.panel-loading {
    background-image: none !important;
}

.datagrid-mask-msg {
    padding-left: 34px !important;
    border: 1px solid #dfe7f1 !important;
    border-radius: 8px;
    background: #ffffff !important;
    color: #475569;
    box-shadow: 0 8px 24px rgba(23, 32, 51, 0.1);
}

.datagrid-mask-msg::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid #e6edf6;
    border-top-color: #3478df;
    border-radius: 50%;
    animation: terms-loader-spin 0.8s linear infinite;
}

.tree-loading,
.pagination-loading {
    position: relative;
    background-image: none !important;
}

.tree-loading::after,
.pagination-loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border: 2px solid #e6edf6;
    border-top-color: #3478df;
    border-radius: 50%;
    animation: terms-loader-spin 0.8s linear infinite;
}

@keyframes terms-loader-spin {
    to { transform: rotate(360deg); }
}

/* Enterprise application shell */
body:not(.auth-page) {
    background: #f4f6f9;
}

body:not(.auth-page) [hidden] {
    display: none !important;
}

body:not(.auth-page) .navbar.navbar-inverse.navbar-fixed-top {
    height: 64px;
    background: linear-gradient(105deg, #123361 0%, #174a83 58%, #176a87 100%);
    border-bottom: 1px solid rgba(17, 47, 82, 0.28);
    box-shadow: 0 5px 20px rgba(18, 51, 97, 0.2);
}

/* Keep the top navigation's contents in sync with Bootstrap's viewport breakpoint. */
.responsive-mobile-links { display: none; }

@media (max-width: 767px) {
    .responsive-desktop-links { display: none !important; }
    .responsive-mobile-links { display: block; }
}

body:not(.auth-page) .navbar-fixed-top .container {
    width: 100%;
    max-width: none;
    height: 64px;
    padding: 0 18px;
}

body:not(.auth-page) .navbar-brand {
    height: 64px;
    padding: 7px 12px 7px 0;
    margin-right: 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

body:not(.auth-page) .navbar-brand img {
    height: 45px !important;
    width: auto !important;
    object-fit: contain;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

body:not(.auth-page) .navbar-inverse .navbar-nav > li > a {
    height: 50px;
    line-height: 36px;
    margin: 7px 3px;
    padding: 7px 13px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 650;
}

body:not(.auth-page) .navbar-collapse > ul.navbar-nav > li.active > a {
    background: linear-gradient(135deg, #38b8c5, #3889e8);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 5px 13px rgba(7, 24, 55, 0.18);
}

body:not(.auth-page) .navbar-inverse .navbar-nav > li > a:hover,
body:not(.auth-page) .navbar-inverse .navbar-nav > li > a:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: none;
}

body:not(.auth-page) .navbar-nav.navbar-right {
    display: flex;
    align-items: center;
    margin-top: 0;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 12px;
    background: rgba(8, 35, 69, 0.22);
}

body:not(.auth-page) .navbar-nav.navbar-right > li:first-child > a {
    height: 42px;
    margin: 0;
    padding: 7px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #ffffff;
    line-height: 28px;
    font-size: 12px;
    font-weight: 700;
}

body:not(.auth-page) .navbar-nav.navbar-right > li:last-child > a {
    width: 34px;
    height: 34px;
    margin: 0 0 0 2px;
    padding: 8px;
    border-radius: 8px;
    line-height: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

body:not(.auth-page) .navbar.navbar-inverse .navbar-nav.profile-nav {
    display: block;
    margin: 0;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(8, 35, 69, 0.24);
}

body:not(.auth-page) .navbar.navbar-inverse .navbar-nav.profile-nav > li.profile-dropdown {
    position: relative;
}

body:not(.auth-page) .navbar.navbar-inverse .navbar-nav.profile-nav > li.profile-dropdown > a.profile-trigger {
    display: flex;
    width: auto;
    min-width: 240px;
    height: 48px;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 5px 10px 5px 6px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #ffffff;
    line-height: normal;
    text-align: left;
}

body:not(.auth-page) .navbar.navbar-inverse .navbar-nav.profile-nav > li.profile-dropdown.open > a.profile-trigger,
body:not(.auth-page) .navbar.navbar-inverse .navbar-nav.profile-nav > li.profile-dropdown > a.profile-trigger:hover,
body:not(.auth-page) .navbar.navbar-inverse .navbar-nav.profile-nav > li.profile-dropdown > a.profile-trigger:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: none;
}

.profile-trigger-avatar {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: linear-gradient(145deg, #63d6c6, #49a9d8);
}

.profile-trigger-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-trigger-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.profile-trigger-copy small {
    color: rgba(235, 244, 255, 0.7);
    font-size: 10px;
    line-height: 1;
}

.profile-trigger-copy strong {
    max-width: 190px;
    overflow: hidden;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-trigger-caret {
    margin: 0 2px 0 5px;
    border-top-color: rgba(255, 255, 255, 0.85);
}

body:not(.auth-page) .navbar.navbar-inverse .navbar-nav.profile-nav .profile-dropdown-menu {
    right: 0;
    left: auto;
    width: 326px;
    margin-top: 9px;
    padding: 8px;
    border: 1px solid #e3eaf3;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 20px 48px rgba(13, 36, 68, 0.2);
}

@media (max-width: 767px) {
    body:not(.auth-page) .navbar.navbar-inverse .navbar-nav.profile-nav > li.profile-dropdown > a.profile-trigger {
        min-width: 0;
        max-width: calc(100vw - 48px);
    }

    body:not(.auth-page) .navbar.navbar-inverse .navbar-nav.profile-nav .profile-dropdown-menu {
        right: 0;
        left: auto;
        width: min(326px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
    }
}

.profile-dropdown-menu > .profile-summary {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 13px;
    border-radius: 10px;
    background: linear-gradient(120deg, #f1f7ff, #f0fbfa);
}

.profile-photo-wrap {
    position: relative;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
}

.profile-photo-wrap img {
    width: 58px;
    height: 58px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #e4edf7;
    box-shadow: 0 3px 10px rgba(28, 62, 102, 0.15);
    object-fit: cover;
}

.profile-online-indicator {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 12px;
    height: 12px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #27b78d;
}

.profile-summary-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.profile-summary-copy strong {
    overflow: hidden;
    color: #18395f;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-summary-copy span {
    overflow: hidden;
    color: #60728a;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-summary-copy small {
    color: #168a8a;
    font-size: 10px;
    font-weight: 750;
}

.profile-menu-divider {
    height: 1px;
    margin: 7px 4px;
    background: #edf1f6;
}

body:not(.auth-page) .profile-dropdown-menu > li > a {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    border-radius: 9px;
    color: #344967;
    white-space: normal;
}

body:not(.auth-page) .profile-dropdown-menu > li > a:hover,
body:not(.auth-page) .profile-dropdown-menu > li > a:focus {
    background: #f0f6ff;
    color: #174e83;
}

.profile-menu-icon {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 9px;
    background: #e9f2ff;
    color: #286bc4;
    font-size: 10px;
    font-weight: 900;
}

.profile-icon-security {
    background: #e8f8f4;
    color: #16866b;
}

.profile-icon-logout {
    background: #fff0ef;
    color: #ce5149;
    font-size: 12px;
}

.profile-dropdown-menu > li > a > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

.profile-dropdown-menu > li > a strong {
    color: #263d59;
    font-size: 12px;
}

.profile-dropdown-menu > li > a small {
    color: #7b899b;
    font-size: 10px;
}

.profile-menu-arrow {
    color: #96a4b7;
    font-size: 17px;
    font-weight: 700;
}

.profile-dropdown-menu > li > a.profile-logout:hover {
    background: #fff4f3;
}

/* Compact password update form */
.password-change-shell {
    width: 100%;
    max-width: 660px;
    margin: 34px auto;
    padding: 0 20px;
}

.password-change-standalone {
    margin-top: 54px;
}

.password-change-card {
    padding: 30px;
    border: 1px solid #e4eaf2;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(23, 45, 78, 0.09);
}

.password-change-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid #edf1f6;
}

.password-change-icon {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, #e6f4ff, #e6f8f4);
    color: #17628c;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.password-change-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #168a8a;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.password-change-heading h1 {
    margin: 0 0 5px;
    color: #193858;
    font-size: 22px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.password-change-heading p {
    margin: 0;
    color: #738197;
    font-size: 12px;
}

.password-change-field {
    margin-bottom: 17px;
}

.password-change-field label {
    display: block;
    margin-bottom: 7px;
    color: #344967;
    font-size: 12px;
    font-weight: 750;
}

.password-change-form .password-change-field .form-control {
    width: 100%;
    height: 44px;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid #dfe6ef;
    border-radius: 8px;
    background: #ffffff;
    color: #24364d;
    font-size: 13px;
}

.password-change-form .password-change-field .form-control:focus {
    border-color: #83a6e9;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.1);
}

.password-change-validation {
    margin: 0 0 16px;
    color: #c2413b;
    font-size: 12px;
}

.password-change-submit {
    display: flex;
    width: 100%;
    height: 46px;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding: 0 15px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(105deg, #2467d6, #208da5);
    color: #ffffff;
    font-size: 13px;
    font-weight: 750;
    box-shadow: 0 8px 18px rgba(36, 103, 214, 0.17);
}

.password-change-submit:hover {
    background: linear-gradient(105deg, #1d58bb, #177b91);
}

.password-change-submit span {
    font-size: 17px;
}

body:not(.auth-page) .body-content {
    height: calc(100vh - 64px) !important;
    margin-top: 64px !important;
    background: #f4f6f9;
}

body:not(.auth-page) #cc {
    height: calc(100vh - 64px) !important;
    margin: 0 !important;
}

body:not(.auth-page) .layout-panel-west {
    background: #f4f7fb;
    border-right: 1px solid #dfe7f1 !important;
}

/* Desktop module navigation: preserve room for the open menu on short screens. */
body:not(.expertpay-mobile-page) #cc .layout-panel-west > .panel-body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body:not(.expertpay-mobile-page) #Module {
    height: auto !important;
    min-height: 100%;
}

body:not(.expertpay-mobile-page) #Module .accordion-body {
    max-height: 180px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body:not(.auth-page) .panel.layout-panel-west > .panel-header,
body:not(.auth-page) .layout-panel-west > .panel-header {
    padding: 16px 14px 14px 42px;
    background: linear-gradient(110deg, #183d6b, #205d91);
    border: 0;
    color: #ffffff;
    font-size: 11px;
    letter-spacing: 0.12em;
}

body:not(.auth-page) .panel.layout-panel-west > .panel-header .panel-icon {
    left: 13px;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    filter: brightness(0) invert(1);
}

body:not(.auth-page) .panel.layout-panel-west > .panel-header .panel-title {
    color: #ffffff !important;
    height: auto;
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(8, 29, 56, 0.24);
}

body:not(.auth-page) .accordion .accordion-header {
    margin: 0;
    padding: 12px 34px 12px 38px;
    border: 0;
    border-bottom: 1px solid #e7edf5;
    border-radius: 0;
    background: linear-gradient(100deg, #ffffff, #f8fbff);
    color: #344967;
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
}

body:not(.auth-page) .accordion .accordion-header .panel-icon {
    left: 11px;
    width: 18px;
    height: 18px;
    margin-top: -9px;
}

body:not(.auth-page) .accordion .accordion-header .panel-title {
    height: 16px;
    line-height: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body:not(.auth-page) .accordion .accordion-header-selected {
    position: relative;
    border: 0;
    border-bottom: 1px solid #245e9e;
    background: linear-gradient(100deg, #194675, #236e9b);
    color: #ffffff;
    box-shadow: inset 4px 0 #55d2c4, 0 3px 9px rgba(25, 70, 117, 0.13);
}

body:not(.auth-page) #Module .accordion-header-selected .panel-title {
    padding-right: 56px;
}

body:not(.auth-page) #Module .accordion-header-selected::after {
    content: "OPEN";
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    padding: 3px 6px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(8, 39, 70, 0.2);
    color: #ffffff;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    pointer-events: none;
}

body:not(.auth-page) .accordion .accordion-header-selected .panel-title {
    color: #ffffff;
}

body:not(.auth-page) .accordion .accordion-body {
    margin: 0;
    padding: 6px 8px 8px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(135deg, #fff0df 0%, #fff7ed 100%);
    box-shadow: inset 4px 0 #ed8b36;
    overflow: auto !important;
}

body:not(.auth-page) #Module .accordion-body a.block {
    border-color: #f5dfc7;
    background: #fffaf4 !important;
}

body:not(.auth-page) #Module .accordion-body a.block.module-page-active {
    padding-left: 11px;
    border: 1px solid #e57920;
    border-left: 4px solid #df6e13;
    background: linear-gradient(100deg, #ffdbb3, #ffecd7) !important;
    color: #713708 !important;
    box-shadow: 0 3px 9px rgba(173, 91, 20, 0.16);
}

body:not(.auth-page) #Module .accordion-body a.block.module-page-active img {
    background: #ffd09b;
}

body:not(.auth-page) #Module .accordion-body a.block:hover {
    border-color: #efbd87;
    background: #ffecd8 !important;
    color: #85430d;
}

body:not(.auth-page) #Module .accordion-body a.block.module-page-active:hover {
    border-color: #d66b12;
    border-left-color: #bd5707;
    background: linear-gradient(100deg, #ffd09b, #ffe2c2) !important;
}

body:not(.auth-page) #OtFiling .spinner .textbox-icon.spinner-arrow {
    display: flex !important;
    width: 42px !important;
    height: 22px !important;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    padding: 0 2px;
    border-left: 1px solid #dce5f0;
    border-radius: 0 8px 8px 0;
    background: #f5f8fc;
    box-sizing: border-box;
}

body:not(.auth-page) #OtFiling .spinner .spinner-arrow-up,
body:not(.auth-page) #OtFiling .spinner .spinner-arrow-down {
    position: relative;
    display: flex !important;
    width: 50% !important;
    height: 100% !important;
    float: none !important;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent !important;
    opacity: 1;
    box-sizing: border-box;
}

body:not(.auth-page) #OtFiling .spinner .spinner-arrow-up::after,
body:not(.auth-page) #OtFiling .spinner .spinner-arrow-down::after {
    position: static;
    display: block;
    width: 6px;
    height: 6px;
    margin: 0;
    border: solid #647891;
    border-width: 1.5px 1.5px 0 0;
    background: transparent;
    content: "";
    transform: rotate(-45deg);
    box-sizing: border-box;
}

body:not(.auth-page) #OtFiling .spinner .spinner-arrow-down::after {
    transform: rotate(135deg);
}

body:not(.auth-page) #OtFiling .spinner .spinner-arrow-up:hover,
body:not(.auth-page) #OtFiling .spinner .spinner-arrow-down:hover {
    background: #e8eff7 !important;
}


body:not(.auth-page) #Module {
    scrollbar-width: thin;
    scrollbar-color: #bdcce0 transparent;
}

body:not(.auth-page) #Module::-webkit-scrollbar {
    width: 6px;
}

body:not(.auth-page) #Module::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #bdcce0;
}

body:not(.auth-page) .accordion a.block,
body:not(.auth-page) a.block {
    min-height: 40px;
    margin: 2px 0;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #ffffff !important;
    color: #42536a;
    font-size: 12px;
    font-weight: 650 !important;
}

body:not(.auth-page) .accordion a.block::before,
body:not(.auth-page) a.block::before {
    display: none;
}

body:not(.auth-page) .accordion a.block img,
body:not(.auth-page) a.block img {
    display: block;
    width: 24px !important;
    height: 24px !important;
    margin-right: 9px;
    padding: 5px;
    border-radius: 7px;
    background: #e5eef8;
    object-fit: contain;
}

body:not(.auth-page) .accordion a.block:hover,
body:not(.auth-page) a.block:hover {
    background: linear-gradient(100deg, #e6f4ff, #f0efff) !important;
    border-color: #c7ddf5;
    color: #174e83;
}

body:not(.auth-page) .accordion a.block:hover img,
body:not(.auth-page) a.block:hover img {
    background: #cde5fb;
}

body:not(.auth-page) .accordion .accordion-header .panel-icon {
    filter: saturate(1.35);
}

body:not(.auth-page) .accordion .accordion-header-selected .panel-icon {
    filter: brightness(0) invert(1);
}

body:not(.auth-page) #regionTittle {
    background: #f4f6f9 !important;
    border: 0 !important;
}

body:not(.auth-page) #regionTittle > .panel-header,
body:not(.auth-page) #regionTittle .panel-header {
    background: #ffffff;
    border-bottom: 1px solid #edf0f4;
    color: #344054;
    font-size: 13px;
}

body:not(.auth-page) #windowContainer {
    background: #f4f6f9;
    padding: 24px 28px !important;
}

/* Unified enterprise surfaces */
body:not(.auth-page) .panel,
body:not(.auth-page) .panel-header,
body:not(.auth-page) .panel-body,
body:not(.auth-page) .window,
body:not(.auth-page) .dialog,
body:not(.auth-page) .tabs {
    border-color: #e7ecf3;
}

body:not(.auth-page) .panel-header,
body:not(.auth-page) .panel-title,
body:not(.auth-page) .window-header,
body:not(.auth-page) .window-header .panel-title,
body:not(.auth-page) .dialog-header,
body:not(.auth-page) .dialog-header .panel-title {
    color: #344054;
    font-weight: 750;
}

body:not(.auth-page) .panel-header,
body:not(.auth-page) .window-header,
body:not(.auth-page) .dialog-header {
    background: #ffffff;
}

body:not(.auth-page) .panel-body,
body:not(.auth-page) .window-body,
body:not(.auth-page) .dialog-body {
    background: #ffffff;
    color: #344054;
}

body:not(.auth-page) .l-btn,
body:not(.auth-page) .easyui-linkbutton,
body:not(.auth-page) .easyui-menubutton {
    border: 1px solid #dfe5ed;
    border-radius: 8px;
    background: #ffffff;
    color: #344054;
    box-shadow: none;
}

body:not(.auth-page) .l-btn:hover,
body:not(.auth-page) .easyui-linkbutton:hover,
body:not(.auth-page) .easyui-menubutton:hover {
    border-color: #cad6e8;
    background: #f7f9fc;
    color: #2458c7;
}

body:not(.auth-page) .l-btn-primary,
body:not(.auth-page) .c8,
body:not(.auth-page) .c1,
body:not(.auth-page) .c2,
body:not(.auth-page) .c5,
body:not(.auth-page) .c6,
body:not(.auth-page) .c7 {
    border: 0;
    background: #2f6fed;
    color: #ffffff;
}

body:not(.auth-page) input,
body:not(.auth-page) select,
body:not(.auth-page) textarea,
body:not(.auth-page) .textbox,
body:not(.auth-page) .combo {
    border-radius: 8px;
}

body:not(.auth-page) input:focus,
body:not(.auth-page) select:focus,
body:not(.auth-page) textarea:focus,
body:not(.auth-page) a:focus,
body:not(.auth-page) button:focus,
body:not(.auth-page) .textbox-focused,
body:not(.auth-page) .combo-focused {
    outline: none !important;
    border-color: #7699ed !important;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.08) !important;
}

body:not(.auth-page) .tabs-header,
body:not(.auth-page) .tabs-tool,
body:not(.auth-page) .tabs-panels,
body:not(.auth-page) .tabs {
    border-color: #e7ecf3;
    background: #ffffff;
}

body:not(.auth-page) .tabs li a.tabs-inner {
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #667085;
}

body:not(.auth-page) .tabs li.tabs-selected a.tabs-inner {
    border-bottom-color: #2f6fed;
    background: #ffffff;
    color: #2458c7;
    font-weight: 750;
}

body:not(.auth-page) .datagrid-header,
body:not(.auth-page) .datagrid-toolbar,
body:not(.auth-page) .datagrid-pager {
    border-color: #edf0f4;
    background: #ffffff;
}

body:not(.auth-page) .datagrid-header-row {
    height: 42px;
    background: #f8fafc;
    color: #475467;
    font-size: 12px;
}

body:not(.auth-page) .datagrid-row {
    height: 40px;
    color: #344054;
}

body:not(.auth-page) .datagrid-row-alt {
    background: #fbfcfe;
}

body:not(.auth-page) .datagrid-row-over,
body:not(.auth-page) .datagrid-row-selected {
    background: #eef4ff !important;
}

body:not(.auth-page) .window,
body:not(.auth-page) .dialog,
body:not(.auth-page) .messager-window {
    border: 1px solid #e1e6ee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(23, 32, 51, 0.16);
}

/* Prevent keyboard and browser focus artifacts from appearing as red outlines */
body:not(.auth-page) a,
body:not(.auth-page) button,
body:not(.auth-page) input,
body:not(.auth-page) select,
body:not(.auth-page) textarea {
    outline: none;
}

body:not(.auth-page) a:focus,
body:not(.auth-page) button:focus {
    outline: none !important;
    outline-offset: 0 !important;
}

body:not(.auth-page) .navbar,
body:not(.auth-page) .navbar * {
    box-sizing: border-box;
}

body:not(.auth-page) .layout-panel-west .accordion {
    width: 100% !important;
}

body:not(.auth-page) .accordion a.block,
body:not(.auth-page) a.block {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ExpertPay mobile screens */
body.expertpay-mobile-page {
    background:
        radial-gradient(ellipse at 12% 0, rgba(47, 111, 237, 0.07), transparent 34rem),
        #f4f7fb;
}

body.expertpay-mobile-page .body-content {
    width: 100% !important;
    max-width: 1120px;
    margin: 68px auto 0 !important;
    padding: 24px 24px 48px;
}

body.expertpay-mobile-page .mobile-screen-heading {
    display: flex;
    min-height: 48px;
    align-items: center;
    margin: 0 0 16px;
    padding: 0 2px 12px;
    border-bottom: 1px solid #e6ecf4;
}

body.expertpay-mobile-page .mobile-screen-heading h1 {
    margin: 0;
    color: #243d5b;
    font-size: 21px;
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

body.expertpay-mobile-page .body-content .m-toolbar,
body.expertpay-mobile-page .mobile-census-title {
    display: none !important;
}

body.expertpay-mobile-page .body-content > br:nth-of-type(-n+2) {
    display: none;
}

body.expertpay-mobile-page .mobile-census-back {
    display: flex;
    justify-content: center;
    margin: 14px 0 8px;
    padding-top: 14px;
    border-top: 1px solid #e7edf5;
}

body.expertpay-mobile-page #divEmployeeCensusForm .paired-inputs {
    grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr);
}

body.expertpay-mobile-page #divEmployeeCensusForm .mobile-field-group > .textbox {
    display: block;
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

body.expertpay-mobile-page #divEmployeeCensusForm .mobile-field-group > .textbox .textbox-text {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

body.expertpay-mobile-page #divEmployeeCensusForm .paired-inputs > .textbox {
    width: auto !important;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

body.expertpay-mobile-page #divEmployeeCensusForm .paired-inputs > .textbox .textbox-text {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

body.expertpay-mobile-page .body-content > div[style*="position:relative"] {
    max-width: 900px;
    margin: 0 auto;
    padding: 22px !important;
    border: 1px solid #e6ecf4;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(22, 32, 51, 0.07);
}

body.expertpay-mobile-page .m-toolbar {
    display: flex;
    min-height: 52px;
    align-items: center;
    margin: 0 0 18px;
    padding: 0 0 14px;
    border-bottom: 1px solid #edf1f6;
    background: transparent;
}

body.expertpay-mobile-page .m-title {
    color: #172f50;
    font-size: 20px;
    font-weight: 750;
    line-height: 1.25;
}

body.expertpay-mobile-page form:not(.navbar-form) {
    margin: 0;
}

body.expertpay-mobile-page form:not(.navbar-form) > div {
    margin-bottom: 14px !important;
}

body.expertpay-mobile-page form label {
    display: block;
    margin-bottom: 6px;
    color: #52637a;
    font-size: 12px;
    font-weight: 700;
}

body.expertpay-mobile-page .textbox,
body.expertpay-mobile-page .combo,
body.expertpay-mobile-page .spinner,
body.expertpay-mobile-page .datebox,
body.expertpay-mobile-page .timespinner {
    min-height: 40px;
    border-color: #dce5f0;
    border-radius: 9px;
    background: #ffffff;
}

body.expertpay-mobile-page .textbox .textbox-text,
body.expertpay-mobile-page .combo .textbox-text,
body.expertpay-mobile-page .spinner .textbox-text {
    min-height: 38px;
    padding: 8px 10px;
    color: #25364c;
    font-size: 14px;
}

body.expertpay-mobile-page .l-btn,
body.expertpay-mobile-page .easyui-linkbutton {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 9px;
    font-size: 12px;
}

body.expertpay-mobile-page .body-content > div[style*="position:relative"] > p[align="center"],
body.expertpay-mobile-page .body-content > div[style*="position:relative"] > p[align="right"] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 18px 0 0;
}

body.expertpay-mobile-page .panel.datagrid,
body.expertpay-mobile-page .datagrid-wrap {
    border-radius: 11px;
}

body.expertpay-mobile-page .datagrid-header-row {
    height: 44px;
}

body.expertpay-mobile-page .datagrid-row {
    height: 44px;
}

body.expertpay-mobile-page .window,
body.expertpay-mobile-page .dialog {
    max-width: calc(100vw - 24px);
}

body.expertpay-mobile-page .mobile-home {
    max-width: 980px;
    margin: 0 auto;
}

body.expertpay-mobile-page .mobile-welcome {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.75fr);
    align-items: center;
    gap: 28px;
    margin: 0 0 30px;
    padding: 30px;
    border: 1px solid #dfebf7;
    border-radius: 20px;
    background:
        radial-gradient(circle at 85% 15%, rgba(52, 191, 170, 0.16), transparent 13rem),
        linear-gradient(120deg, #ffffff 15%, #f3f8ff 100%);
    box-shadow: 0 14px 36px rgba(22, 61, 105, 0.08);
}

body.expertpay-mobile-page .mobile-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #198b89;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

body.expertpay-mobile-page .mobile-welcome h1 {
    margin: 0;
    color: #173a62;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 780;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

body.expertpay-mobile-page .mobile-welcome-copy p {
    max-width: 470px;
    margin: 10px 0 0;
    color: #64758c;
    font-size: 14px;
    line-height: 1.6;
}

body.expertpay-mobile-page .mobile-employee-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 1px solid rgba(216, 229, 244, 0.9);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
}

body.expertpay-mobile-page .mobile-employee-avatar {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(145deg, #3679dd, #22a99d);
    color: #ffffff;
    font-size: 19px;
    font-weight: 800;
}

body.expertpay-mobile-page .mobile-employee-card > div:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

body.expertpay-mobile-page .mobile-employee-caption {
    color: #8492a6;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

body.expertpay-mobile-page .mobile-employee-card strong {
    overflow: hidden;
    color: #203c5e;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.expertpay-mobile-page .mobile-employee-code {
    color: #718198;
    font-size: 11px;
}

body.expertpay-mobile-page .mobile-employee-code b {
    color: #425b79;
    font-weight: 700;
}

body.expertpay-mobile-page .mobile-menu-section {
    margin: 0 0 28px;
}

body.expertpay-mobile-page .mobile-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 0 2px 13px;
}

body.expertpay-mobile-page .mobile-section-heading .mobile-eyebrow {
    margin-bottom: 3px;
    color: #8492a6;
    font-size: 9px;
}

body.expertpay-mobile-page .mobile-section-heading h2 {
    margin: 0;
    color: #243d5b;
    font-size: 18px;
    font-weight: 750;
}

body.expertpay-mobile-page .mobile-section-note {
    color: #8190a4;
    font-size: 11px;
}

body.expertpay-mobile-page .m-list.mobile-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.expertpay-mobile-page .m-list.mobile-menu-grid > li {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 1px solid #e5ebf3;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(22, 32, 51, 0.025);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.expertpay-mobile-page .m-list.mobile-menu-grid > li:hover {
    transform: translateY(-2px);
    border-color: #c9dcf4;
    box-shadow: 0 8px 20px rgba(22, 61, 105, 0.08);
}

body.expertpay-mobile-page .m-list.mobile-menu-grid > li > a {
    display: flex;
    min-height: 72px;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: #344967;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

body.expertpay-mobile-page .m-list.mobile-menu-grid > li > a::after {
    display: none;
}

body.expertpay-mobile-page .mobile-menu-icon {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 11px;
    background: #edf5ff;
}

body.expertpay-mobile-page .mobile-menu-icon img {
    display: block;
    max-width: 25px;
    max-height: 25px;
    object-fit: contain;
}

body.expertpay-mobile-page .mobile-menu-label {
    min-width: 0;
    flex: 1;
    line-height: 1.35;
}

body.expertpay-mobile-page .mobile-menu-arrow {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    background: #f2f6fb;
    color: #6b819d;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
}

body.expertpay-mobile-page .m-list.mobile-menu-grid > li > a:hover,
body.expertpay-mobile-page .m-list.mobile-menu-grid > li > a:focus {
    color: #2458a6;
}

@media (max-width: 767px) {
    body.expertpay-mobile-page .body-content {
        margin-top: 56px !important;
        padding: 18px 13px 32px;
    }

    body.expertpay-mobile-page .mobile-screen-heading {
        min-height: 44px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    body.expertpay-mobile-page .mobile-screen-heading h1 {
        font-size: 19px;
    }

    body.expertpay-mobile-page .body-content > div[style*="position:relative"] {
        padding: 16px !important;
        border-radius: 13px;
    }

    body.expertpay-mobile-page .mobile-welcome {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 24px;
        padding: 22px 18px;
        border-radius: 16px;
    }

    body.expertpay-mobile-page .mobile-welcome h1 {
        font-size: 29px;
    }

    body.expertpay-mobile-page .mobile-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    body.expertpay-mobile-page .mobile-section-heading h2 {
        font-size: 17px;
    }

    body.expertpay-mobile-page .m-list.mobile-menu-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    body.expertpay-mobile-page .m-list.mobile-menu-grid > li > a {
        min-height: 64px;
    }

    body.expertpay-mobile-page .body-content > div[style*="position:relative"] .datagrid-view {
        overflow-x: auto;
    }

    body.expertpay-mobile-page #divEmployeeCensusForm .paired-inputs {
        grid-template-columns: minmax(0, 1fr);
    }

    body.expertpay-mobile-page .body-content > div[style*="position:relative"] > p[align="center"],
    body.expertpay-mobile-page .body-content > div[style*="position:relative"] > p[align="right"] {
        gap: 6px;
    }
}

/* Dashboard */
.dashboard-shell {
    max-width: 1080px;
    margin: 0 auto;
}

.dashboard-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 4px 0 20px;
    padding: 0 2px;
}

.dashboard-kicker {
    display: block;
    margin-bottom: 5px;
    color: #8a94a6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dashboard-heading h1 {
    margin: 0;
    color: #172033;
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.dashboard-period {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #e6ebf2;
    border-radius: 8px;
    background: #ffffff;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.dashboard-period-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #29b7a1;
    box-shadow: 0 0 0 3px rgba(41, 183, 161, 0.10);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 18px;
    max-width: none;
    margin: 0;
    padding: 0;
}

.dashboard-card {
    position: relative;
    min-height: 148px;
    padding: 20px 20px 18px 78px;
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(22, 32, 51, 0.045);
    overflow: hidden;
}

.dashboard-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #98a2b3;
}

.dashboard-card-icon {
    position: absolute;
    left: 20px;
    top: 22px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 10px;
    background: #eef4ff;
    color: #2f6fed;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.dashboard-card .dashboard-label {
    color: var(--app-muted);
    font-size: 13px;
    font-weight: 750;
}

.dashboard-card .dashboard-value {
    display: block;
    margin: 9px 0 6px;
    color: #172033;
    font-size: 38px;
    line-height: 1;
    font-weight: 800;
}

.dashboard-card-teal .dashboard-card-icon { background: #eaf8f5; color: #16866b; }
.dashboard-card-violet .dashboard-card-icon { background: #f1efff; color: #6956c8; }
.dashboard-card-orange .dashboard-card-icon { background: #fff3e8; color: #d97706; }
.dashboard-card-indigo .dashboard-card-icon { background: #eef2ff; color: #4f46a5; }
.dashboard-card-slate .dashboard-card-icon { background: #edf1f5; color: #475569; }

.dashboard-card-teal::before { background: #16866b; }
.dashboard-card-violet::before { background: #6956c8; }
.dashboard-card-orange::before { background: #d97706; }
.dashboard-card-indigo::before { background: #4f46a5; }
.dashboard-card-slate::before { background: #475569; }

.mobile-pds-card {
    border: 1px solid var(--app-border) !important;
    border-radius: 18px !important;
    box-shadow: var(--app-shadow) !important;
}

.section-divider {
    background: #eef4ff !important;
    color: var(--app-primary) !important;
    border-radius: 9px !important;
}

@media (max-width: 900px) {
    .terms-login-page {
        grid-template-columns: 1fr;
        background: #f7f9fc;
    }

    .terms-login-brand {
        min-height: 320px;
        justify-content: flex-start;
        padding: 24px;
    }

    .auth-hero-copy {
        margin: auto 0 0;
        padding: 42px 0 18px;
    }

    .terms-login-brand h1 {
        max-width: 520px;
        font-size: 43px;
    }

    .auth-feature-grid {
        display: none;
    }

    .terms-login-panel {
        min-height: auto;
        align-items: flex-start;
        padding: 24px 16px 40px;
    }

    .terms-login-card {
        margin-top: -8px;
        padding: 32px 24px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
        gap: 12px;
        padding: 0 12px;
    }

    .dashboard-card {
        min-height: 130px;
        padding: 18px;
    }

    .navbar.navbar-inverse.navbar-fixed-top,
    .navbar-fixed-top .container {
        height: 62px;
    }

    .navbar-brand {
        height: 62px;
    }

    .navbar-brand img {
        height: 38px !important;
    }

    .body-content {
        margin-top: 62px !important;
    }

    .navbar-collapse {
        background: linear-gradient(135deg, #123361, #176a87);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 12px;
        box-shadow: 0 16px 34px rgba(18, 51, 97, 0.22);
    }

    body:not(.auth-page) .navbar-collapse .navbar-nav.navbar-right {
        display: block;
        margin: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    body:not(.auth-page) .navbar-collapse .navbar-nav.navbar-right > li {
        display: inline-block;
    }
}

@media (max-width: 520px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .terms-login-brand {
        min-height: 270px;
        padding: 20px;
    }

    .auth-brand-mark img {
        height: 46px;
    }

    .auth-hero-copy h1 {
        font-size: 36px;
    }

    .auth-hero-copy p {
        font-size: 14px;
    }

    .terms-login-card {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .terms-login-card h2 {
        font-size: 28px;
    }
}

/* Shared page and popup system */
body:not(.auth-page) {
    font-size: 13px;
    line-height: 1.5;
}

body:not(.auth-page) h1,
body:not(.auth-page) h2,
body:not(.auth-page) h3,
body:not(.auth-page) h4 {
    color: #203854;
    letter-spacing: -0.015em;
}

body:not(.auth-page) h2 {
    font-size: 22px;
    font-weight: 750;
}

body:not(.auth-page) h3 {
    font-size: 18px;
    font-weight: 700;
}

body:not(.auth-page) h4 {
    font-size: 15px;
    font-weight: 700;
}

body:not(.auth-page) hr {
    margin: 18px 0;
    border-color: #e9eef5;
}

body:not(.auth-page) .body-content,
body:not(.auth-page) #windowContainer,
body:not(.auth-page) #regionTittle {
    color: #344054;
}

body:not(.auth-page) #windowContainer {
    padding: 22px !important;
}

body:not(.auth-page) .form-control,
body:not(.auth-page) input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]):not([type="button"]):not([type="reset"]):not([type="file"]):not(.textbox-text):not(.combo-text),
body:not(.auth-page) select,
body:not(.auth-page) textarea:not(.textbox-text) {
    min-height: 36px;
    padding: 8px 11px;
    border: 1px solid #dce4ee;
    border-radius: 8px;
    background-color: #ffffff;
    color: #263b55;
    font-size: 13px;
    box-shadow: none;
}

body:not(.auth-page) textarea {
    min-height: 88px;
    resize: vertical;
}

body:not(.auth-page) input::placeholder,
body:not(.auth-page) textarea::placeholder {
    color: #9aa8b9;
}

body:not(.auth-page) .form-group {
    margin-bottom: 16px;
}

body:not(.auth-page) label,
body:not(.auth-page) .control-label {
    color: #475a72;
    font-size: 12px;
    font-weight: 700;
}

body:not(.auth-page) .form-horizontal .control-label {
    padding-top: 9px;
    text-align: left;
}

body:not(.auth-page) .checkbox label,
body:not(.auth-page) .radio label {
    color: #53647a;
    font-weight: 500;
}

body:not(.auth-page) input[type="checkbox"],
body:not(.auth-page) input[type="radio"] {
    accent-color: #2f6fed;
}

body:not(.auth-page) .btn,
body:not(.auth-page) input[type="submit"].btn,
body:not(.auth-page) button.btn {
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 750;
    text-shadow: none;
    box-shadow: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body:not(.auth-page) .btn-default {
    border: 1px solid #d7e0eb;
    background: #ffffff;
    color: #3a4f68;
}

body:not(.auth-page) .btn-default:hover,
body:not(.auth-page) .btn-default:focus {
    border-color: #b7c8dd;
    background: #f5f8fc;
    color: #1d568d;
}

body:not(.auth-page) .btn-primary {
    border-color: #2868d5;
    background: linear-gradient(110deg, #2f6fed, #247dad);
    color: #ffffff;
}

body:not(.auth-page) .btn-primary:hover,
body:not(.auth-page) .btn-primary:focus {
    border-color: #1f5cc1;
    background: linear-gradient(110deg, #245fcf, #1d6e99);
    color: #ffffff;
}

body:not(.auth-page) .btn-success {
    border-color: #16866b;
    background: #16866b;
    color: #ffffff;
}

body:not(.auth-page) .btn-danger {
    border-color: #cc4f4a;
    background: #cc4f4a;
    color: #ffffff;
}

body:not(.auth-page) .btn-warning {
    border-color: #d89023;
    background: #d89023;
    color: #ffffff;
}

body:not(.auth-page) .btn-info {
    border-color: #168aa2;
    background: #168aa2;
    color: #ffffff;
}

body:not(.auth-page) .btn:active,
body:not(.auth-page) .l-btn:active {
    transform: translateY(1px);
}

body:not(.auth-page) .text-danger,
body:not(.auth-page) .field-validation-error,
body:not(.auth-page) .validation-summary-errors {
    color: #bf3e3a;
}

body:not(.auth-page) .validation-summary-errors,
body:not(.auth-page) .alert {
    padding: 12px 14px;
    border-radius: 9px;
}

body:not(.auth-page) .alert {
    border: 1px solid #e4eaf2;
    box-shadow: 0 4px 12px rgba(23, 45, 78, 0.04);
}

body:not(.auth-page) .table {
    margin-bottom: 0;
    color: #344054;
}

body:not(.auth-page) .table > thead > tr > th {
    padding: 11px 12px;
    border-bottom: 1px solid #dfe7f1;
    background: #f5f8fc;
    color: #40546d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.035em;
}

body:not(.auth-page) .table > tbody > tr > td,
body:not(.auth-page) .table > tbody > tr > th {
    padding: 10px 12px;
    border-top-color: #edf1f6;
    vertical-align: middle;
}

body:not(.auth-page) .table-striped > tbody > tr:nth-of-type(odd) {
    background: #f9fbfd;
}

body:not(.auth-page) .table-hover > tbody > tr:hover {
    background: #eef5ff;
}

body:not(.auth-page) .label,
body:not(.auth-page) .badge {
    border-radius: 999px;
    font-weight: 750;
}

body:not(.auth-page) .easyui-linkbutton,
body:not(.auth-page) .l-btn {
    min-height: 32px;
    border-radius: 8px;
    box-shadow: none;
}

body:not(.auth-page) .l-btn .l-btn-text {
    line-height: 20px;
    font-weight: 700;
}

body:not(.auth-page) .panel-header,
body:not(.auth-page) .window-header,
body:not(.auth-page) .dialog-header {
    min-height: 42px;
    padding: 11px 15px;
    border-bottom: 1px solid #e8edf3;
    background: linear-gradient(110deg, #ffffff, #f8fbff);
}

body:not(.auth-page) .panel-header .panel-title,
body:not(.auth-page) .window-header .panel-title,
body:not(.auth-page) .dialog-header .panel-title {
    height: auto;
    color: #294560;
    font-size: 13px;
    line-height: 20px;
    font-weight: 750;
}

body:not(.auth-page) .window .panel-body,
body:not(.auth-page) .dialog .panel-body,
body:not(.auth-page) .messager-window .panel-body {
    background: #ffffff;
}

body:not(.auth-page) .window-mask,
body:not(.auth-page) .window-proxy-mask {
    background: rgba(15, 35, 63, 0.42);
}

body:not(.auth-page) .dialog-button {
    padding: 10px 14px;
    border-top: 1px solid #e8edf3;
    background: #f8fafc;
    text-align: right;
}

body:not(.auth-page) .dialog-button .l-btn {
    margin-left: 7px;
}

body:not(.auth-page) .panel-tool a:hover,
body:not(.auth-page) .window-header .panel-tool a:hover {
    border-radius: 5px;
    background-color: #e9f1fb;
}

body:not(.auth-page) .modal-content {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 24px 64px rgba(15, 35, 63, 0.22);
}

body:not(.auth-page) .modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e8edf3;
    background: linear-gradient(110deg, #ffffff, #f7faff);
}

body:not(.auth-page) .modal-title {
    color: #294560;
    font-size: 16px;
    font-weight: 750;
}

body:not(.auth-page) .modal-body {
    padding: 20px;
}

body:not(.auth-page) .modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #e8edf3;
    background: #f8fafc;
}

body:not(.auth-page) .modal-backdrop.in {
    opacity: 0.48;
}

body:not(.auth-page) .floating-btn {
    border: 0;
    background: linear-gradient(110deg, #1976db, #1689a8);
    box-shadow: 0 9px 22px rgba(27, 105, 179, 0.28);
}

body:not(.auth-page) .floating-btn:hover {
    background: linear-gradient(110deg, #155fba, #126f8a);
    box-shadow: 0 11px 26px rgba(27, 105, 179, 0.34);
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    body:not(.auth-page) #windowContainer {
        padding: 14px !important;
    }

    body:not(.auth-page) .password-change-shell {
        margin: 18px auto;
        padding: 0 12px;
    }

    body:not(.auth-page) .password-change-card {
        padding: 22px 18px;
    }

    body:not(.auth-page) .form-horizontal .control-label {
        padding-bottom: 5px;
    }

    body:not(.auth-page) .window,
    body:not(.auth-page) .dialog,
    body:not(.auth-page) .messager-window {
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100vh - 20px) !important;
    }

    body:not(.auth-page) .modal-dialog {
        margin: 10px;
    }

    body:not(.auth-page) .modal-body {
        padding: 16px;
    }

    body:not(.auth-page) .table-responsive {
        border: 0;
    }
}

/* High-contrast operations pages and EasyUI popups */
body:not(.auth-page) #regionTittle > .panel-header,
body:not(.auth-page) #regionTittle .panel-header {
    min-height: 42px;
    padding: 11px 16px;
    border: 0;
    border-bottom: 1px solid #dce8f1;
    background: linear-gradient(105deg, #eaf3fb, #e9f7f5);
    color: #315774;
}

body:not(.auth-page) #regionTittle .panel-title {
    color: #315774 !important;
    font-size: 12px;
    font-weight: 800;
}

body:not(.auth-page) .panel.datagrid {
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
    border: 1px solid #dfe7f1;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(25, 55, 91, 0.08);
}

body:not(.auth-page) .datagrid-wrap,
body:not(.auth-page) .datagrid-view {
    box-sizing: border-box;
    max-width: 100%;
}

body:not(.auth-page) .panel.datagrid > .panel-header {
    min-height: 48px;
    padding: 13px 16px;
    border: 0;
    border-bottom: 1px solid #d8e6f0;
    background: linear-gradient(105deg, #e3eff9, #e4f4f1);
    color: #294d69;
}

body:not(.auth-page) .panel.datagrid > .panel-header .panel-title {
    height: auto;
    color: #294d69 !important;
    font-size: 13px;
    line-height: 20px;
    font-weight: 800;
}

body:not(.auth-page) .panel.datagrid > .panel-header .panel-icon {
    filter: saturate(0.8);
}

body:not(.auth-page) .panel.datagrid .datagrid-toolbar {
    min-height: 48px;
    padding: 7px 10px;
    border: 0;
    border-bottom: 1px solid #e5edf4;
    background: linear-gradient(100deg, #f6f9fd, #f4fbfa);
}

body:not(.auth-page) .panel.datagrid .datagrid-toolbar .l-btn {
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid #cbdde9;
    border-radius: 8px;
    background: #ffffff;
    color: #32678d;
    box-shadow: 0 2px 6px rgba(50, 93, 130, 0.05);
}

body:not(.auth-page) .panel.datagrid .datagrid-toolbar .l-btn:hover {
    border-color: #a9c6d9;
    background: #edf6fc;
    color: #245c80;
}

body:not(.auth-page) .panel.datagrid .datagrid-header,
body:not(.auth-page) .panel.datagrid .datagrid-header td {
    background: linear-gradient(105deg, #dcebf6, #dcefeb) !important;
    color: #315774 !important;
    border-color: #cddfe9 !important;
}

body:not(.auth-page) .panel.datagrid .datagrid-header-row {
    height: 44px;
}

body:not(.auth-page) .panel.datagrid .datagrid-header .datagrid-cell,
body:not(.auth-page) .panel.datagrid .datagrid-header .datagrid-cell span {
    height: auto;
    padding: 0 10px;
    color: #315774 !important;
    font-size: 11px;
    line-height: 18px;
    font-weight: 800;
}

body:not(.auth-page) .panel.datagrid .datagrid-header td {
    border-right: 1px solid #cddfe9;
    border-bottom: 0;
    border-style: solid;
}

body:not(.auth-page) .panel.datagrid .datagrid-body {
    background: #ffffff;
}

body:not(.auth-page) .panel.datagrid .datagrid-body td {
    border-right: 1px solid #edf1f6;
    border-bottom: 1px solid #e9eff6;
    border-style: solid;
}

body:not(.auth-page) .panel.datagrid .datagrid-row {
    height: 42px;
    background: #ffffff;
    color: #30455f;
    transition: background-color 0.15s ease;
}

body:not(.auth-page) .panel.datagrid .datagrid-row-alt {
    background: #f7fafd;
}

body:not(.auth-page) .panel.datagrid .datagrid-row-over,
body:not(.auth-page) .panel.datagrid .datagrid-row-selected {
    background: #e5f4fb !important;
    color: #183f62;
}

body:not(.auth-page) .panel.datagrid .datagrid-cell {
    height: 22px;
    padding: 0 9px;
    color: inherit;
    font-size: 12px;
    line-height: 22px;
}

body:not(.auth-page) .panel.datagrid .datagrid-header-rownumber,
body:not(.auth-page) .panel.datagrid .datagrid-cell-rownumber {
    width: 42px;
    min-width: 42px;
    padding: 0;
    text-align: center;
}

body:not(.auth-page) .panel.datagrid .datagrid-header-rownumber {
    border-color: #cddfe9 !important;
    background: linear-gradient(105deg, #dcebf6, #dcefeb) !important;
    color: #315774 !important;
}

body:not(.auth-page) .panel.datagrid .datagrid-cell-rownumber {
    border-right: 1px solid #dce7f1 !important;
    background: #edf4fa !important;
    color: #315774 !important;
    font-size: 12px;
    font-weight: 800;
}

body:not(.auth-page) .panel.datagrid .datagrid-view1 .datagrid-body .datagrid-td-rownumber {
    border-right: 1px solid #d8e5ee !important;
    border-bottom: 1px solid #e7eef4 !important;
    background: #edf4fa !important;
    color: #315774 !important;
}

body:not(.auth-page) .panel.datagrid .datagrid-row-alt .datagrid-cell-rownumber {
    background: #e6f0f7 !important;
}

body:not(.auth-page) .panel.datagrid .datagrid-row-over .datagrid-cell-rownumber,
body:not(.auth-page) .panel.datagrid .datagrid-row-selected .datagrid-cell-rownumber {
    background: #d6eaf2 !important;
    color: #2b536e !important;
}

body:not(.auth-page) .panel.datagrid .datagrid-body .datagrid-cell img[src*="APPROVED.png"] {
    filter: hue-rotate(62deg) saturate(0.7);
}

body:not(.auth-page) .panel.datagrid .datagrid-body .datagrid-cell img[src*="CANCELLED.png"] {
    filter: saturate(0.62);
    opacity: 0.88;
}

body:not(.auth-page) .panel.datagrid .datagrid-cell a {
    color: #176ea3;
    font-weight: 700;
}

body:not(.auth-page) .panel.datagrid .datagrid-cell a:hover {
    color: #0e4d7b;
}

body:not(.auth-page) .panel.datagrid .datagrid-pager {
    min-height: 42px;
    padding: 5px 8px;
    border: 0;
    background: #f7fafd;
}

body:not(.auth-page) .panel.datagrid .pagination-info {
    color: #718198;
    font-size: 11px;
}

body:not(.auth-page) .window > .panel-header,
body:not(.auth-page) .dialog > .panel-header,
body:not(.auth-page) .window > .window-header,
body:not(.auth-page) .dialog > .window-header {
    min-height: 48px;
    padding: 13px 17px;
    border: 0;
    border-bottom: 1px solid #d8e6f0;
    background: linear-gradient(105deg, #e3eff9, #e4f4f1);
}

body:not(.auth-page) .window .window-header .panel-title,
body:not(.auth-page) .dialog .window-header .panel-title {
    color: #294d69 !important;
    font-size: 14px;
    font-weight: 800;
}

body:not(.auth-page) .window .window-header .panel-tool a,
body:not(.auth-page) .dialog .window-header .panel-tool a {
    filter: saturate(0.65);
    opacity: 0.9;
}

body:not(.auth-page) .window .window-body,
body:not(.auth-page) .dialog .window-body {
    background: #ffffff;
}

body:not(.auth-page) .window .window-body .table2 {
    border-collapse: separate;
    border-spacing: 0 7px;
}

body:not(.auth-page) .window .window-body .table2 td {
    padding: 5px 8px;
    color: #475a72;
    font-size: 12px;
}

body:not(.auth-page) .window .window-body .table2 td:first-child {
    font-weight: 700;
}

body:not(.auth-page) .window .window-body .table2 input,
body:not(.auth-page) .window .window-body .table2 textarea {
    border-radius: 8px;
}

body:not(.auth-page) .window .dialog-button,
body:not(.auth-page) .dialog .dialog-button {
    padding: 10px 14px;
    border-top: 1px solid #e5ebf2;
    background: #f5f8fc;
}

/* Notice to Explain workspace */
body:not(.auth-page) .show-cause-letter {
    color: #344967;
}

body:not(.auth-page) .show-cause-letter .da-workspace {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
}

body:not(.auth-page) .show-cause-letter .da-page-heading {
    padding: 2px 2px 4px;
}

body:not(.auth-page) .show-cause-letter .da-page-heading > span {
    color: #178b8d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

body:not(.auth-page) .show-cause-letter .da-page-heading h2 {
    margin: 4px 0 5px;
    color: #1d3858;
    font-size: 24px;
    font-weight: 780;
    letter-spacing: -0.025em;
}

body:not(.auth-page) .show-cause-letter .da-page-heading p,
body:not(.auth-page) .show-cause-letter .da-section-heading p {
    margin: 0;
    color: #7a8aa0;
    font-size: 12px;
}

body:not(.auth-page) .show-cause-letter .da-incident-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

body:not(.auth-page) .show-cause-letter .da-form-section {
    min-width: 0;
    padding: 18px;
    border: 1px solid #e2eaf3;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(27, 55, 87, 0.045);
}

body:not(.auth-page) .show-cause-letter .da-section-heading {
    display: flex;
    align-items: center;
    gap: 11px;
}

body:not(.auth-page) .show-cause-letter .da-section-heading > span {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: #eaf3ff;
    color: #2f6fed;
    font-size: 11px;
    font-weight: 800;
}

body:not(.auth-page) .show-cause-letter .da-section-heading h3 {
    margin: 0 0 3px;
    color: #294766;
    font-size: 15px;
    font-weight: 750;
}

body:not(.auth-page) .show-cause-letter .da-form-table {
    width: 100%;
    margin-top: 14px;
    border-collapse: separate;
    border-spacing: 0 8px;
    table-layout: fixed;
}

body:not(.auth-page) .show-cause-letter .da-form-table td {
    padding: 3px 5px;
    color: #536780;
    font-size: 12px;
    vertical-align: middle;
}

body:not(.auth-page) .show-cause-letter .da-form-table td:first-child {
    width: 132px;
    text-align: left !important;
    font-weight: 700;
    white-space: normal;
}

body:not(.auth-page) .show-cause-letter .da-form-table td:last-child {
    min-width: 0;
    flex-wrap: wrap;
    gap: 6px;
}

body:not(.auth-page) .show-cause-letter .da-form-table .textbox,
body:not(.auth-page) .show-cause-letter .da-form-table .datebox,
body:not(.auth-page) .show-cause-letter .da-form-table .combo {
    max-width: 100%;
    border-color: #dce5f0;
    border-radius: 8px;
    background: #fbfcfe;
}

body:not(.auth-page) .show-cause-letter .da-form-table .textbox .textbox-text {
    min-width: 0;
    color: #2c4058;
    font-size: 12px;
}

body:not(.auth-page) .show-cause-letter .da-incident-text {
    width: 100% !important;
    min-height: 118px;
    padding: 10px 12px;
    border: 1px solid #dce5f0 !important;
    border-radius: 9px;
    background: #fbfcfe;
    color: #2c4058;
    resize: vertical;
}

body:not(.auth-page) .show-cause-letter .da-attachment-input {
    display: block;
    width: 100% !important;
    max-width: 100%;
    min-height: 38px;
    padding: 7px;
    border: 1px dashed #cbd9e8 !important;
    border-radius: 8px;
    background: #f8fbff;
    color: #667991;
    font-size: 11px;
}

body:not(.auth-page) .show-cause-letter .da-view-attachments {
    width: 100%;
    min-height: 34px;
    margin-top: 7px;
    border: 1px solid #d6e4f2;
    border-radius: 8px;
    background: #f1f7ff;
    color: #28628f;
    font-size: 12px;
    font-weight: 700;
}

body:not(.auth-page) .show-cause-letter .da-remarks-input {
    width: 100% !important;
}

body:not(.auth-page) .show-cause-letter .da-list-heading {
    padding: 2px 2px 0;
}

body:not(.auth-page) .show-cause-letter .da-list-heading > span {
    background: #e9f7f4;
    color: #16866b;
}

body:not(.auth-page) .show-cause-letter .da-case-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.7fr) minmax(230px, 0.8fr);
    gap: 14px;
    height: 360px;
    margin: 0;
}

body:not(.auth-page) .show-cause-letter .da-grid-panel {
    min-width: 0;
    min-height: 0;
    padding: 8px;
    overflow: hidden;
    border: 1px solid #e2eaf3;
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(27, 55, 87, 0.04);
}

body:not(.auth-page) .show-cause-letter .da-grid-panel > .easyui-datagrid,
body:not(.auth-page) .show-cause-letter .da-grid-panel .panel.datagrid {
    width: 100% !important;
    height: 100% !important;
}

body:not(.auth-page) .show-cause-letter #disciplineMasterHeader {
    padding: 7px 8px;
    border-bottom: 1px solid #edf1f6;
    background: #f8fbff;
}

body:not(.auth-page) .show-cause-letter #disciplineMasterHeader .textbox {
    width: 260px !important;
    max-width: 100%;
    border-radius: 8px;
}

body:not(.auth-page) .show-cause-letter .da-previous-cases {
    display: block;
    height: 290px;
    margin: 0;
}

body:not(.auth-page) .show-cause-letter .da-previous-cases .da-grid-panel {
    height: 100%;
}

body:not(.auth-page) .show-cause-letter .da-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 0 2px;
    border-top: 1px solid #e8edf4;
}

body:not(.auth-page) .show-cause-letter .da-form-actions #btndaSave {
    border-color: #2f6fed;
    background: #2f6fed;
    color: #ffffff;
}

#imageModal {
    position: fixed;
    z-index: 1000;
    top: 50%;
    left: 50%;
    width: calc(100vw - 32px);
    max-width: 680px;
    max-height: 80vh;
    padding: 18px;
    transform: translate(-50%, -50%);
    overflow: hidden;
    border: 1px solid #dce5f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 20px 48px rgba(22, 32, 51, 0.22);
}

#modalImagesContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

#modalImagesContainer img {
    width: 250px;
    height: 150px;
    margin: 5px;
    border: 1px solid #dce5f0;
    border-radius: 8px;
    object-fit: cover;
}

#closeModalButton {
    margin-top: 14px;
    padding: 9px 16px;
    border: 0;
    border-radius: 8px;
    background: #2f6fed;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 1100px) {
    body:not(.auth-page) .show-cause-letter .da-incident-card {
        grid-template-columns: minmax(0, 1fr);
    }

    body:not(.auth-page) .show-cause-letter .da-case-grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(200px, 0.8fr);
    }
}

@media (max-width: 720px) {
    body:not(.auth-page) .show-cause-letter .da-workspace {
        gap: 12px;
        padding: 12px;
    }

    body:not(.auth-page) .show-cause-letter .da-form-section {
        padding: 14px 12px;
    }

    body:not(.auth-page) .show-cause-letter .da-form-table {
        table-layout: auto;
    }

    body:not(.auth-page) .show-cause-letter .da-form-table td:first-child {
        width: 112px;
    }

    body:not(.auth-page) .show-cause-letter .da-form-table td:last-child {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    body:not(.auth-page) .show-cause-letter .da-form-table td:last-child .textbox,
    body:not(.auth-page) .show-cause-letter .da-form-table td:last-child .datebox,
    body:not(.auth-page) .show-cause-letter .da-form-table td:last-child .combo {
        width: 100% !important;
    }

    body:not(.auth-page) .show-cause-letter .da-case-grid {
        grid-template-columns: minmax(0, 1fr);
        height: auto;
    }

    body:not(.auth-page) .show-cause-letter .da-case-grid .da-grid-panel {
        height: 300px;
    }

    body:not(.auth-page) .show-cause-letter .da-form-actions {
        position: sticky;
        bottom: 0;
        justify-content: stretch;
        padding: 10px;
        border: 1px solid #e4eaf2;
        border-radius: 11px 11px 0 0;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 -6px 20px rgba(22, 32, 51, 0.07);
    }

    body:not(.auth-page) .show-cause-letter .da-form-actions .easyui-linkbutton {
        flex: 1;
    }
}

/* Consistent surfaces for the remaining EasyUI and Bootstrap popups */
body:not(.auth-page) .window:not(.messager-window),
body:not(.auth-page) .dialog:not(.messager-window) {
    box-sizing: border-box;
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
    border: 1px solid #dce5ef;
    border-radius: 14px;
    box-shadow: 0 22px 56px rgba(21, 40, 65, 0.22);
}

body:not(.auth-page) .window:not(.messager-window) > .panel-header,
body:not(.auth-page) .window:not(.messager-window) > .window-header,
body:not(.auth-page) .dialog:not(.messager-window) > .panel-header,
body:not(.auth-page) .dialog:not(.messager-window) > .window-header {
    min-height: 50px;
    padding: 13px 17px;
    border-bottom: 1px solid #e6ebf2;
    background: linear-gradient(110deg, #fff8f1, #ffffff 68%);
}

body:not(.auth-page) .window:not(.messager-window) .panel-title,
body:not(.auth-page) .dialog:not(.messager-window) .panel-title {
    color: #2b405b;
    font-size: 14px;
    font-weight: 800;
}

body:not(.auth-page) .window:not(.messager-window) .window-body,
body:not(.auth-page) .dialog:not(.messager-window) .window-body {
    box-sizing: border-box;
    max-height: calc(100vh - 100px);
    overflow: auto;
    background: #f7f9fc;
    color: #354a63;
}

body:not(.auth-page) .window:not(.messager-window) .window-body table:not(.easyui-datagrid),
body:not(.auth-page) .dialog:not(.messager-window) .window-body table:not(.easyui-datagrid) {
    border-color: #e4eaf1;
}

body:not(.auth-page) .window:not(.messager-window) .window-body table:not(.easyui-datagrid) td,
body:not(.auth-page) .dialog:not(.messager-window) .window-body table:not(.easyui-datagrid) td {
    padding: 5px 7px;
    color: #445a73;
}

body:not(.auth-page) .window:not(.messager-window) .window-body input[type="text"],
body:not(.auth-page) .window:not(.messager-window) .window-body input[type="date"],
body:not(.auth-page) .window:not(.messager-window) .window-body input[type="email"],
body:not(.auth-page) .window:not(.messager-window) .window-body input[type="number"],
body:not(.auth-page) .window:not(.messager-window) .window-body select,
body:not(.auth-page) .window:not(.messager-window) .window-body textarea,
body:not(.auth-page) .window:not(.messager-window) .window-body .textbox,
body:not(.auth-page) .window:not(.messager-window) .window-body .combo,
body:not(.auth-page) .dialog:not(.messager-window) .window-body input[type="text"],
body:not(.auth-page) .dialog:not(.messager-window) .window-body input[type="date"],
body:not(.auth-page) .dialog:not(.messager-window) .window-body input[type="email"],
body:not(.auth-page) .dialog:not(.messager-window) .window-body input[type="number"],
body:not(.auth-page) .dialog:not(.messager-window) .window-body select,
body:not(.auth-page) .dialog:not(.messager-window) .window-body textarea,
body:not(.auth-page) .dialog:not(.messager-window) .window-body .textbox,
body:not(.auth-page) .dialog:not(.messager-window) .window-body .combo {
    border-radius: 8px;
}

body:not(.auth-page) .window:not(.messager-window) .window-body input[type="text"],
body:not(.auth-page) .window:not(.messager-window) .window-body input[type="date"],
body:not(.auth-page) .window:not(.messager-window) .window-body input[type="email"],
body:not(.auth-page) .window:not(.messager-window) .window-body input[type="number"],
body:not(.auth-page) .window:not(.messager-window) .window-body select,
body:not(.auth-page) .dialog:not(.messager-window) .window-body input[type="text"],
body:not(.auth-page) .dialog:not(.messager-window) .window-body input[type="date"],
body:not(.auth-page) .dialog:not(.messager-window) .window-body input[type="email"],
body:not(.auth-page) .dialog:not(.messager-window) .window-body input[type="number"],
body:not(.auth-page) .dialog:not(.messager-window) .window-body select {
    min-height: 34px;
}

body:not(.auth-page) .window:not(.messager-window) .window-body .textbox,
body:not(.auth-page) .window:not(.messager-window) .window-body .combo,
body:not(.auth-page) .dialog:not(.messager-window) .window-body .textbox,
body:not(.auth-page) .dialog:not(.messager-window) .window-body .combo {
    min-height: 36px;
    border-color: #d7e1ec;
    background: #fff;
}

body:not(.auth-page) .window:not(.messager-window) .window-body .textbox .textbox-text,
body:not(.auth-page) .dialog:not(.messager-window) .window-body .textbox .textbox-text {
    min-height: 34px;
    padding-right: 9px;
    padding-left: 9px;
    line-height: 34px;
}

body:not(.auth-page) .window:not(.messager-window) .window-body h3,
body:not(.auth-page) .window:not(.messager-window) .window-body h4,
body:not(.auth-page) .dialog:not(.messager-window) .window-body h3,
body:not(.auth-page) .dialog:not(.messager-window) .window-body h4 {
    color: #2b405b;
}

body:not(.auth-page) .window:not(.messager-window) > .panel-footer,
body:not(.auth-page) .window:not(.messager-window) > .window-footer,
body:not(.auth-page) .dialog:not(.messager-window) > .panel-footer,
body:not(.auth-page) .dialog:not(.messager-window) > .window-footer {
    border-top: 1px solid #e5ebf2;
    background: #fff;
}

body:not(.auth-page) .modal-dialog {
    max-width: calc(100vw - 32px);
}

body:not(.auth-page) .modal-content {
    border-radius: 14px;
    box-shadow: 0 22px 56px rgba(21, 40, 65, 0.22);
}

body:not(.auth-page) .modal-header {
    background: linear-gradient(110deg, #fff8f1, #ffffff 68%);
}

body:not(.auth-page) .modal-body {
    padding: 18px;
    background: #f7f9fc;
    color: #354a63;
}

body:not(.auth-page) .modal-footer {
    border-top: 1px solid #e5ebf2;
    background: #fff;
}

@media (max-width: 760px) {
    body:not(.auth-page) .window:not(.messager-window),
    body:not(.auth-page) .dialog:not(.messager-window) {
        max-width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        border-radius: 12px;
    }

    body:not(.auth-page) .window:not(.messager-window) .window-body,
    body:not(.auth-page) .dialog:not(.messager-window) .window-body {
        max-height: calc(100vh - 84px);
    }

    body:not(.auth-page) .modal-dialog {
        width: auto;
        margin: 10px;
    }

    body:not(.auth-page) .modal-body {
        padding: 13px;
    }
}

/* Keep filing-entry dialogs from expanding to the viewport based on full-width fields. */
body:not(.auth-page) .filing-entry-window {
    box-sizing: border-box;
    width: 640px !important;
    max-width: calc(100vw - 32px) !important;
}

body:not(.auth-page) .filing-entry-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body:not(.auth-page) .filing-entry-field {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

body:not(.auth-page) .filing-entry-field > label {
    margin: 0;
    color: #43566f;
    font-size: 12px;
    font-weight: 700;
}

body:not(.auth-page) .filing-entry-field .textbox,
body:not(.auth-page) .filing-entry-field .combo,
body:not(.auth-page) .filing-entry-field .datebox,
body:not(.auth-page) .filing-entry-field .numberbox {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
}

body:not(.auth-page) .filing-entry-checkbox input[type="checkbox"] {
    justify-self: start;
}

body:not(.auth-page) #DtrManualFiling .table2 td:not(:first-child) > .textbox {
    width: 100% !important;
}

body:not(.auth-page) #DtrManualFiling .datagrid,
body:not(.auth-page) #DtrManualFiling .datagrid-wrap,
body:not(.auth-page) #DtrManualFiling .panel.datagrid {
    box-sizing: border-box;
    width: 100% !important;
}

body:not(.auth-page) #DtrManualFiling .datagrid-view1 {
    box-sizing: border-box;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
}

body:not(.auth-page) #DtrManualFiling .table2 .datagrid-view1 td:first-child,
body:not(.auth-page) #DtrManualFiling .datagrid-header-rownumber,
body:not(.auth-page) #DtrManualFiling .datagrid-cell-rownumber,
body:not(.auth-page) #DtrManualFiling .datagrid-td-rownumber {
    box-sizing: border-box;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    padding: 0 !important;
}

/* Keep legacy auto-width dialogs from stretching across wide desktop screens. */
body:not(.auth-page) .window:not(.messager-window),
body:not(.auth-page) .dialog:not(.messager-window) {
    max-width: 1280px !important;
}

body:not(.auth-page) .da-response-window {
    box-sizing: border-box;
    width: 1180px !important;
    max-width: calc(100vw - 32px) !important;
}

body:not(.auth-page) .personnel-evaluation-window {
    box-sizing: border-box;
    width: 1120px !important;
    max-width: calc(100vw - 32px) !important;
}

body:not(.auth-page) #CreateTalentRequisitionModal {
    box-sizing: border-box;
    width: 1000px !important;
    max-width: calc(100vw - 32px) !important;
}

body:not(.auth-page) #CreateTalentRequisitionModal .window-body {
    padding: 20px 24px;
}

body:not(.auth-page) .talent-requisition-create-content {
    color: #344a63;
}

body:not(.auth-page) .talent-requisition-create-heading {
    margin-bottom: 18px;
    padding: 2px 2px 14px;
    border-bottom: 1px solid #e3eaf2;
}

body:not(.auth-page) .talent-requisition-create-heading > span {
    color: #c65e1b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

body:not(.auth-page) .talent-requisition-create-heading h2 {
    margin: 5px 0;
    color: #293f59;
    font-size: 22px;
    font-weight: 800;
}

body:not(.auth-page) .talent-requisition-create-heading p,
body:not(.auth-page) .talent-requisition-create-section-heading p {
    margin: 0;
    color: #78889a;
    font-size: 12px;
}

body:not(.auth-page) .talent-requisition-create-section {
    min-width: 0;
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid #e1e9f2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(32, 54, 80, 0.045);
}

body:not(.auth-page) .talent-requisition-create-section-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f6;
}

body:not(.auth-page) .talent-requisition-create-section-heading > span {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #fff0e3;
    color: #b94d0a;
    font-size: 11px;
    font-weight: 800;
}

body:not(.auth-page) .talent-requisition-create-section-heading h3 {
    margin: 0 0 3px;
    color: #293f59;
    font-size: 14px;
    font-weight: 800;
}

body:not(.auth-page) .talent-requisition-create-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0 7px;
}

body:not(.auth-page) .talent-requisition-create-table td {
    padding: 3px 9px;
    vertical-align: middle;
}

body:not(.auth-page) .talent-requisition-create-table .trf-create-label {
    width: 17%;
    color: #43566f;
    font-size: 12px;
    font-weight: 750;
}

body:not(.auth-page) .talent-requisition-create-table td:nth-child(2) {
    width: 33%;
}

body:not(.auth-page) .talent-requisition-create-table .textbox,
body:not(.auth-page) .talent-requisition-create-table .combo,
body:not(.auth-page) .talent-requisition-create-table .datebox,
body:not(.auth-page) .talent-requisition-create-table select,
body:not(.auth-page) .talent-requisition-create-table textarea {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    border-radius: 8px;
}

body:not(.auth-page) .talent-requisition-create-table #tranNo {
    width: 180px !important;
}

body:not(.auth-page) .talent-requisition-create-table textarea {
    min-height: 78px;
    padding: 8px 10px;
    border: 1px solid #dce5ef;
    resize: vertical;
}

body:not(.auth-page) .talent-requisition-transfer-grid {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    max-width: 720px;
}

body:not(.auth-page) .talent-requisition-transfer-grid label {
    color: #61748a;
    font-size: 11px;
    font-weight: 700;
}

body:not(.auth-page) .talent-requisition-create-package-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

body:not(.auth-page) .talent-requisition-create-field {
    min-width: 0;
    margin-bottom: 14px;
}

body:not(.auth-page) .talent-requisition-create-field > label,
body:not(.auth-page) .talent-requisition-create-label {
    display: block;
    margin-bottom: 7px;
    color: #43566f;
    font-size: 12px;
    font-weight: 750;
}

body:not(.auth-page) .talent-requisition-create-field .textbox,
body:not(.auth-page) .talent-requisition-create-field .numberbox,
body:not(.auth-page) .talent-requisition-create-field .combo,
body:not(.auth-page) .talent-requisition-create-field .datebox,
body:not(.auth-page) .talent-requisition-create-field select,
body:not(.auth-page) .talent-requisition-create-field textarea {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    border-radius: 8px;
}

body:not(.auth-page) .talent-requisition-create-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body:not(.auth-page) .talent-requisition-create-check-grid > label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #e6ecf3;
    border-radius: 8px;
    background: #f9fbfd;
    color: #43566f;
    font-size: 12px;
    font-weight: 600;
}

body:not(.auth-page) .talent-requisition-create-check-grid input[type="checkbox"] {
    flex: 0 0 auto;
    margin: 0;
    accent-color: #315fbd;
}

body:not(.auth-page) .talent-requisition-create-check-grid .talent-requisition-create-other {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #e6ecf3;
    border-radius: 8px;
    background: #f9fbfd;
}

body:not(.auth-page) .talent-requisition-create-check-grid .talent-requisition-create-other label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #43566f;
    font-size: 12px;
    font-weight: 600;
}

body:not(.auth-page) .talent-requisition-create-check-grid .talent-requisition-create-other .textbox {
    flex: 1 1 180px;
    width: 180px !important;
    margin-left: auto;
}

body:not(.auth-page) .talent-requisition-create-staff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

body:not(.auth-page) .talent-requisition-create-staff-grid textarea {
    min-height: 94px;
    padding: 9px 10px;
    border: 1px solid #dce5ef;
    resize: vertical;
}

body:not(.auth-page) #CreateTalentRequisitionFooter {
    padding: 10px 16px !important;
    border-top: 1px solid #e3eaf2;
    background: #fff;
}

body:not(.auth-page) #CreateTalentRequisitionFooter .l-btn {
    min-width: 92px;
    height: 36px;
    margin-left: 6px;
    padding: 0 12px;
    border-radius: 8px;
    line-height: 34px;
}

body:not(.auth-page) #btnSaveTalentRequisition {
    border-color: #c65e1b;
    background: #c65e1b;
    color: #fff;
}

body:not(.auth-page) #btnSaveTalentRequisition .l-btn-text {
    color: #fff;
    font-weight: 750;
}

body:not(.auth-page) #CreateTalentRequisitionModal .window-body select,
body:not(.auth-page) #CreateTalentRequisitionModal .window-body textarea,
body:not(.auth-page) #CreateTalentRequisitionModal .window-body .textbox,
body:not(.auth-page) #CreateTalentRequisitionModal .window-body .combo {
    box-sizing: border-box;
    max-width: 100%;
}

body:not(.auth-page) #CreateTalentRequisitionModal .window-body .datebox,
body:not(.auth-page) #CreateTalentRequisitionModal .window-body .datetimebox {
    max-width: 100%;
}

@media (max-width: 760px) {
    body:not(.auth-page) #CreateTalentRequisitionModal .window-body {
        padding: 12px;
    }

    body:not(.auth-page) .talent-requisition-create-section {
        padding: 13px;
    }

    body:not(.auth-page) .talent-requisition-create-package-grid,
    body:not(.auth-page) .talent-requisition-create-staff-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body:not(.auth-page) .talent-requisition-create-table,
    body:not(.auth-page) .talent-requisition-create-table tbody {
        display: block;
    }

    body:not(.auth-page) .talent-requisition-create-table tr {
        display: block;
        margin-bottom: 12px;
    }

    body:not(.auth-page) .talent-requisition-create-table td {
        display: block;
        width: 100% !important;
        padding: 3px 2px;
    }

    body:not(.auth-page) .talent-requisition-create-table td.trf-create-label {
        padding-top: 7px;
    }

    body:not(.auth-page) .talent-requisition-transfer-grid {
        grid-template-columns: 74px minmax(0, 1fr);
    }
}

@media (max-width: 1312px) {
    body:not(.auth-page) .window:not(.messager-window),
    body:not(.auth-page) .dialog:not(.messager-window) {
        max-width: calc(100vw - 32px) !important;
    }
}

@media (max-width: 760px) {
    body:not(.auth-page) .window:not(.messager-window),
    body:not(.auth-page) .dialog:not(.messager-window) {
        max-width: calc(100vw - 16px) !important;
    }

    body:not(.auth-page) .da-response-window,
    body:not(.auth-page) .personnel-evaluation-window,
    body:not(.auth-page) #CreateTalentRequisitionModal {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
    }

}

/* Talent Requisition HR acknowledgement */
body:not(.auth-page) #ViewAcknowledgeTalentRequisition {
    box-sizing: border-box;
    width: 1120px !important;
    max-width: calc(100vw - 32px) !important;
}

body:not(.auth-page) .talent-acknowledge-content {
    padding: 18px 22px 24px;
    color: #344a63;
}

body:not(.auth-page) .talent-acknowledge-heading {
    margin-bottom: 18px;
    padding: 2px 2px 14px;
    border-bottom: 1px solid #e3eaf2;
}

body:not(.auth-page) .talent-acknowledge-heading > span {
    color: #c65e1b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

body:not(.auth-page) .talent-acknowledge-heading h2 {
    margin: 5px 0;
    color: #293f59;
    font-size: 22px;
    font-weight: 800;
}

body:not(.auth-page) .talent-acknowledge-heading p,
body:not(.auth-page) .talent-acknowledge-section-heading p {
    margin: 0;
    color: #78889a;
    font-size: 12px;
}

body:not(.auth-page) .talent-acknowledge-section {
    min-width: 0;
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid #e1e9f2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(32, 54, 80, 0.045);
}

body:not(.auth-page) .talent-acknowledge-section-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f6;
}

body:not(.auth-page) .talent-acknowledge-section-heading > span {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #fff0e3;
    color: #b94d0a;
    font-size: 11px;
    font-weight: 800;
}

body:not(.auth-page) .talent-acknowledge-section-heading h3 {
    margin: 0 0 3px;
    color: #293f59;
    font-size: 14px;
    font-weight: 800;
}

body:not(.auth-page) .talent-acknowledge-field-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0 7px;
}

body:not(.auth-page) .talent-acknowledge-field-table td {
    padding: 3px 9px;
    vertical-align: middle;
}

body:not(.auth-page) .talent-acknowledge-field-table .ack-label {
    width: 17%;
    color: #43566f;
    font-size: 12px;
    font-weight: 750;
}

body:not(.auth-page) .talent-acknowledge-field-table td:nth-child(2) {
    width: 33%;
}

body:not(.auth-page) .talent-acknowledge-field-table .textbox,
body:not(.auth-page) .talent-acknowledge-field-table .combo,
body:not(.auth-page) .talent-acknowledge-field-table .datebox,
body:not(.auth-page) .talent-acknowledge-field-table textarea {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    border-radius: 8px;
}

body:not(.auth-page) .talent-acknowledge-field-table textarea {
    min-height: 64px;
    padding: 8px 10px;
    border: 1px solid #dce5ef;
    resize: vertical;
}

body:not(.auth-page) .talent-acknowledge-transfer-grid {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    max-width: 720px;
}

body:not(.auth-page) .talent-acknowledge-transfer-grid label {
    color: #61748a;
    font-size: 11px;
    font-weight: 700;
}

body:not(.auth-page) .talent-acknowledge-package-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

body:not(.auth-page) .talent-acknowledge-field {
    min-width: 0;
    margin-bottom: 14px;
}

body:not(.auth-page) .talent-acknowledge-field > label,
body:not(.auth-page) .talent-acknowledge-label {
    display: block;
    margin-bottom: 7px;
    color: #43566f;
    font-size: 12px;
    font-weight: 750;
}

body:not(.auth-page) .talent-acknowledge-field .textbox,
body:not(.auth-page) .talent-acknowledge-field .numberbox,
body:not(.auth-page) .talent-acknowledge-field .combo,
body:not(.auth-page) .talent-acknowledge-field .datebox,
body:not(.auth-page) .talent-acknowledge-field select,
body:not(.auth-page) .talent-acknowledge-field textarea {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    border-radius: 8px;
}

body:not(.auth-page) .talent-acknowledge-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body:not(.auth-page) .talent-acknowledge-check-grid > label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #e6ecf3;
    border-radius: 8px;
    background: #f9fbfd;
    color: #43566f;
    font-size: 12px;
    font-weight: 600;
}

body:not(.auth-page) .talent-acknowledge-check-grid input[type="checkbox"] {
    flex: 0 0 auto;
    margin: 0;
    accent-color: #315fbd;
}

body:not(.auth-page) .talent-acknowledge-check-grid .talent-acknowledge-other {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #e6ecf3;
    border-radius: 8px;
    background: #f9fbfd;
}

body:not(.auth-page) .talent-acknowledge-check-grid .talent-acknowledge-other label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #43566f;
    font-size: 12px;
    font-weight: 600;
}

body:not(.auth-page) .talent-acknowledge-check-grid .talent-acknowledge-other .textbox {
    flex: 1 1 180px;
    width: 180px !important;
    margin-left: auto;
}

body:not(.auth-page) .talent-acknowledge-benefits {
    padding-top: 2px;
}

body:not(.auth-page) .talent-acknowledge-staff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

body:not(.auth-page) .talent-acknowledge-staff-grid textarea {
    min-height: 94px;
    padding: 9px 10px;
    border: 1px solid #dce5ef;
    resize: vertical;
}

body:not(.auth-page) .talent-acknowledge-required {
    margin-left: 5px;
    color: #ad4b13;
    font-size: 10px;
    font-weight: 700;
}

body:not(.auth-page) #ViewAcknowledgeTalentRequisitionFooter {
    padding: 10px 16px !important;
    border-top: 1px solid #e3eaf2;
    background: #fff;
}

body:not(.auth-page) #ViewAcknowledgeTalentRequisitionFooter .l-btn {
    min-width: 92px;
    height: 36px;
    margin-left: 6px;
    padding: 0 12px;
    border-radius: 8px;
    line-height: 34px;
}

body:not(.auth-page) #ViewAcknowledgeTalentRequisitionFooter #btnSubmitTalentRequisitionAcknowledgement {
    border-color: #2458b8;
    background: #2458b8;
    color: #fff;
}

body:not(.auth-page) #ViewAcknowledgeTalentRequisitionFooter #btnSubmitTalentRequisitionAcknowledgement .l-btn-text {
    color: #fff;
    font-weight: 750;
}

@media (max-width: 760px) {
    body:not(.auth-page) #ViewAcknowledgeTalentRequisition {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
    }

    body:not(.auth-page) .talent-acknowledge-content {
        padding: 12px 10px 18px;
    }

    body:not(.auth-page) .talent-acknowledge-section {
        padding: 13px;
    }

    body:not(.auth-page) .talent-acknowledge-package-grid,
    body:not(.auth-page) .talent-acknowledge-staff-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body:not(.auth-page) .talent-acknowledge-field-table,
    body:not(.auth-page) .talent-acknowledge-field-table tbody {
        display: block;
    }

    body:not(.auth-page) .talent-acknowledge-field-table tr {
        display: block;
        margin-bottom: 12px;
    }

    body:not(.auth-page) .talent-acknowledge-field-table td {
        display: block;
        width: 100% !important;
        padding: 3px 2px;
    }

    body:not(.auth-page) .talent-acknowledge-field-table td.ack-label {
        padding-top: 7px;
    }

    body:not(.auth-page) .talent-acknowledge-transfer-grid {
        grid-template-columns: 74px minmax(0, 1fr);
    }
}

body:not(.auth-page) .da-response-window button[id*="Attachment"] {
    min-width: 76px;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid #c9d8eb;
    border-radius: 8px;
    background: #f7faff;
    color: #2458c7;
    font-weight: 700;
}

body:not(.auth-page) .da-response-window button[id*="Attachment"]:hover {
    border-color: #9ab5db;
    background: #edf4ff;
}

body:not(.auth-page) .l-btn,
body:not(.auth-page) button,
body:not(.auth-page) .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

body:not(.auth-page) .l-btn-left {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: none;
}

body:not(.auth-page) .l-btn .l-btn-text {
    float: none;
    text-align: center;
    vertical-align: middle;
}

/* Preserve the Employee Generator's existing EasyUI button layout. */
body:not(.auth-page) #divEmployeeIdGenerator .l-btn,
body:not(.auth-page) #divEmployeeBulkIdGenerator .l-btn,
body:not(.auth-page) #employeeGeneratorEmployeeList .l-btn {
    display: inline-block;
    text-align: left;
}

body:not(.auth-page) #divEmployeeIdGenerator .l-btn-left,
body:not(.auth-page) #divEmployeeBulkIdGenerator .l-btn-left,
body:not(.auth-page) #employeeGeneratorEmployeeList .l-btn-left {
    display: inline-block;
    float: left;
}

body:not(.auth-page) #divEmployeeIdGenerator .l-btn .l-btn-text,
body:not(.auth-page) #divEmployeeBulkIdGenerator .l-btn .l-btn-text,
body:not(.auth-page) #employeeGeneratorEmployeeList .l-btn .l-btn-text {
    float: left;
    text-align: left;
}

body:not(.auth-page) .personnel-evaluation-window #divEvalItemsRatings {
    position: absolute !important;
    z-index: 10050 !important;
    box-sizing: border-box;
    width: 620px;
    max-width: calc(100vw - 24px);
    max-height: 260px;
    overflow: auto;
    margin: 0;
    padding: 8px;
    border: 1px solid #dce5ef;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(27, 45, 70, 0.2);
}

body:not(.auth-page) .personnel-evaluation-window #divEvalItemsRatings table {
    width: 100% !important;
    table-layout: fixed;
}

body:not(.auth-page) .personnel-evaluation-window #divEvalItemsRatings th,
body:not(.auth-page) .personnel-evaluation-window #divEvalItemsRatings td {
    padding: 8px 10px;
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    body:not(.auth-page) .filing-entry-window {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
    }

    body:not(.auth-page) .filing-entry-field {
        grid-template-columns: 110px minmax(0, 1fr);
    }
}

/* Disciplinary Action approval review */
body:not(.auth-page) .da-approval-search {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
}

body:not(.auth-page) .da-approval-window {
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    overflow: hidden;
    border: 1px solid #dce5ef;
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(15, 35, 63, 0.26);
}

body:not(.auth-page) .da-approval-window > .panel-header,
body:not(.auth-page) .da-approval-window > .window-header {
    min-height: 52px;
    padding: 14px 18px;
    border-bottom: 1px solid #e4ebf3;
    background: linear-gradient(110deg, #fff8f1, #fff);
}

body:not(.auth-page) .da-approval-window .panel-title {
    color: #263d58;
    font-size: 15px;
    font-weight: 800;
}

body:not(.auth-page) .da-approval-window .window-body {
    padding: 16px;
    background: #f5f8fc;
}

body:not(.auth-page) .da-approval-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body:not(.auth-page) .da-approval-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 14px;
}

body:not(.auth-page) .da-approval-card,
body:not(.auth-page) .da-approval-cases {
    min-width: 0;
    padding: 17px;
    border: 1px solid #e3eaf2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(32, 54, 80, 0.04);
}

body:not(.auth-page) .da-approval-card-heading,
body:not(.auth-page) .da-approval-cases-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 12px;
}

body:not(.auth-page) .da-approval-card-icon {
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #fff0e3;
    color: #b94d0a;
    font-size: 11px;
    font-weight: 800;
}

body:not(.auth-page) .da-approval-card-heading h3,
body:not(.auth-page) .da-approval-cases-heading h3 {
    margin: 0;
    color: #263d58;
    font-size: 14px;
    font-weight: 800;
}

body:not(.auth-page) .da-approval-card-heading p,
body:not(.auth-page) .da-approval-cases-heading p {
    margin: 3px 0 0;
    color: #78889a;
    font-size: 11px;
}

body:not(.auth-page) .da-approval-fields {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 7px;
}

body:not(.auth-page) .da-approval-fields td {
    padding: 2px 6px;
    color: #52657b;
    font-size: 12px;
}

body:not(.auth-page) .da-approval-fields td:first-child,
body:not(.auth-page) .da-approval-fields td:nth-child(3) {
    width: 116px;
    white-space: nowrap;
    font-weight: 700;
}

body:not(.auth-page) .da-approval-fields .textbox,
body:not(.auth-page) .da-approval-fields #daIncidentDate {
    width: 100%;
    max-width: 100%;
    height: 34px;
    border-radius: 8px;
}

body:not(.auth-page) .da-approval-fields .textbox .textbox-text {
    height: 32px;
    padding: 0 9px;
    line-height: 32px;
}

body:not(.auth-page) .da-approval-fields .da-approval-paired-fields {
    display: flex;
    gap: 7px;
}

body:not(.auth-page) .da-approval-fields .da-approval-paired-fields > .textbox:first-child {
    flex: 0 0 104px;
}

body:not(.auth-page) .da-approval-fields .da-approval-paired-fields > .textbox:nth-child(2) {
    flex: 1 1 0;
    min-width: 0;
}

body:not(.auth-page) .da-approval-field {
    margin-top: 12px;
}

body:not(.auth-page) .da-approval-field label,
body:not(.auth-page) .da-approval-attachments > span {
    display: block;
    margin-bottom: 6px;
    color: #52657b;
    font-size: 12px;
    font-weight: 750;
}

body:not(.auth-page) .da-approval-field label span {
    color: #ad4b21;
    font-size: 11px;
    font-weight: 600;
}

body:not(.auth-page) .da-approval-field textarea {
    display: block;
    width: 100%;
    min-height: 102px;
    padding: 10px 11px;
    border: 1px solid #d8e1eb;
    border-radius: 9px;
    background: #fff;
    color: #31455e;
    font: inherit;
    line-height: 1.5;
    resize: vertical;
}

body:not(.auth-page) .da-approval-field textarea:disabled {
    background: #f7f9fc;
    color: #55687e;
}

body:not(.auth-page) .da-approval-attachments {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #e7edf4;
    border-radius: 9px;
    background: #f8fafc;
}

body:not(.auth-page) .da-approval-attachments > span {
    margin: 0;
}

body:not(.auth-page) .da-approval-attachment-button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #d5e0ec;
    border-radius: 8px;
    background: #fff;
    color: #315777;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

body:not(.auth-page) .da-approval-attachment-button:hover {
    border-color: #ef9b57;
    background: #fff7f0;
}

body:not(.auth-page) .da-approval-cases {
    padding: 16px;
}

body:not(.auth-page) .da-approval-cases-heading {
    justify-content: space-between;
}

body:not(.auth-page) .da-approval-grid {
    overflow: hidden;
    border: 1px solid #e1e9f1;
    border-radius: 10px;
}

body:not(.auth-page) .da-approval-grid > .datagrid,
body:not(.auth-page) .da-approval-grid > .easyui-datagrid {
    width: 100% !important;
}

body:not(.auth-page) #DAApprovalFooter {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 16px;
    border-top: 1px solid #e4ebf3;
    background: #fff;
}

body:not(.auth-page) #DAApprovalFooter .l-btn {
    min-width: 94px;
    min-height: 36px;
    border: 1px solid #d8e1eb;
    border-radius: 8px;
    background: #fff;
}

body:not(.auth-page) #DAApprovalFooter #btnDAApprovalApprove {
    border-color: #d76520;
    background: #d76520;
    color: #fff;
}

body:not(.auth-page) #DAApprovalFooter #btnDAApprovalApprove .l-btn-text {
    color: #fff;
}

@media (max-width: 760px) {
    body:not(.auth-page) .da-approval-window {
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }

    body:not(.auth-page) .da-approval-window .window-body {
        padding: 10px;
    }

    body:not(.auth-page) .da-approval-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    body:not(.auth-page) .da-approval-card,
    body:not(.auth-page) .da-approval-cases {
        padding: 13px;
    }

    body:not(.auth-page) .da-approval-fields td:first-child,
    body:not(.auth-page) .da-approval-fields td:nth-child(3) {
        width: 96px;
        white-space: normal;
    }

    body:not(.auth-page) .da-approval-fields .da-approval-paired-fields {
        flex-wrap: wrap;
    }

    body:not(.auth-page) .da-approval-fields .da-approval-paired-fields > .textbox:first-child,
    body:not(.auth-page) .da-approval-fields .da-approval-paired-fields > .textbox:nth-child(2) {
        flex: 1 1 100%;
    }

    body:not(.auth-page) #DAApprovalFooter {
        flex-wrap: wrap;
    }
}

/* Shared form layout for legacy MVC, EasyUI, and mobile forms */
body:not(.auth-page) .table2 {
    width: 100% !important;
    max-width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
    table-layout: fixed;
}

body:not(.auth-page) .table2 td {
    padding: 4px 8px !important;
    vertical-align: middle;
}

body:not(.auth-page) .table2 td:first-child {
    width: 170px;
    color: #43566f;
    font-weight: 700;
    text-align: left !important;
}

body:not(.auth-page) .table2 td:not(:first-child) {
    min-width: 0;
}

body:not(.auth-page) .table2 input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body:not(.auth-page) .table2 select,
body:not(.auth-page) .table2 textarea,
body:not(.auth-page) .table2 .textbox,
body:not(.auth-page) .table2 .combo,
body:not(.auth-page) .table2 .datebox,
body:not(.auth-page) .table2 .numberbox,
body:not(.auth-page) .table2 .spinner {
    box-sizing: border-box;
    max-width: 100%;
}

body:not(.auth-page) .table2 td:not(:first-child) > input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):only-child,
body:not(.auth-page) .table2 td:not(:first-child) > select:only-child,
body:not(.auth-page) .table2 td:not(:first-child) > textarea:only-child,
body:not(.auth-page) .table2 td:not(:first-child) > .textbox:only-child,
body:not(.auth-page) .table2 td:not(:first-child) > .combo:only-child,
body:not(.auth-page) .table2 td:not(:first-child) > .datebox:only-child,
body:not(.auth-page) .table2 td:not(:first-child) > .numberbox:only-child,
body:not(.auth-page) .table2 td:not(:first-child) > .spinner:only-child {
    width: 100% !important;
}

body:not(.auth-page) .table2 td:not(:first-child) > textarea:only-child {
    min-width: 100%;
}

body:not(.auth-page) .table2 .textbox,
body:not(.auth-page) .table2 .combo,
body:not(.auth-page) .table2 .datebox,
body:not(.auth-page) .table2 .numberbox,
body:not(.auth-page) .table2 .spinner {
    min-height: 36px;
    border-color: #d7e1ec;
    border-radius: 9px;
    background: #fff;
}

body:not(.auth-page) .table2 .textbox .textbox-text,
body:not(.auth-page) .table2 .combo .textbox-text,
body:not(.auth-page) .table2 .numberbox .textbox-text,
body:not(.auth-page) .table2 .spinner .textbox-text {
    box-sizing: border-box;
    min-height: 34px;
    padding: 0 10px;
    line-height: 34px;
}

body:not(.auth-page) .table2 textarea {
    min-height: 90px;
    padding: 10px 11px;
    resize: vertical;
}

body:not(.auth-page) form:not(.navbar-form) .form-group {
    margin-bottom: 19px;
}

body:not(.auth-page) form:not(.navbar-form):not(.form-horizontal) .form-group > label {
    display: block;
    margin-bottom: 7px;
}

body:not(.auth-page) .form-group .help-block,
body:not(.auth-page) .field-validation-error,
body:not(.auth-page) .validation-summary-errors {
    color: #b5473a;
    font-size: 12px;
}

body:not(.auth-page) .form-group .help-block {
    margin-top: 5px;
    margin-bottom: 0;
}

body:not(.auth-page) .validation-summary-errors ul {
    margin: 0;
    padding-left: 18px;
}

body:not(.auth-page) .input-validation-error,
body:not(.auth-page) .has-error .form-control {
    border-color: #db6c62 !important;
    box-shadow: 0 0 0 3px rgba(219, 108, 98, 0.1) !important;
}

body:not(.auth-page) fieldset {
    min-width: 0;
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid #e2e9f1;
    border-radius: 10px;
}

body:not(.auth-page) fieldset > legend {
    width: auto;
    margin: 0;
    padding: 0 7px;
    border: 0;
    color: #304862;
    font-size: 13px;
    font-weight: 800;
}

body:not(.auth-page) .form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5ebf2;
}

body:not(.auth-page) .form-control:focus,
body:not(.auth-page) input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]):not([type="button"]):not([type="reset"]):not([type="file"]):not(.textbox-text):not(.combo-text):focus,
body:not(.auth-page) select:focus,
body:not(.auth-page) textarea:not(.textbox-text):focus,
body:not(.auth-page) .textbox-focused,
body:not(.auth-page) .combo-focused {
    border-color: #2f6fed !important;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.13) !important;
}

body:not(.auth-page) input:disabled,
body:not(.auth-page) select:disabled,
body:not(.auth-page) textarea:disabled,
body:not(.auth-page) .textbox-disabled,
body:not(.auth-page) .combo-disabled {
    border-color: #e2e8ef !important;
    background-color: #f5f7fa !important;
    color: #738297 !important;
}

body:not(.auth-page) input[type="checkbox"],
body:not(.auth-page) input[type="radio"] {
    accent-color: #2f6fed;
}

@media (max-width: 760px) {
    body:not(.auth-page) .table2 {
        table-layout: auto;
    }

    body:not(.auth-page) .table2 td {
        padding: 4px 5px !important;
    }

    body:not(.auth-page) .table2 td:first-child {
        width: 122px;
    }

    body:not(.auth-page) fieldset {
        padding: 12px;
    }

    body:not(.auth-page) .form-actions {
        justify-content: stretch;
    }

    body:not(.auth-page) .form-actions .btn {
        flex: 1 1 auto;
    }
}

/* Reflow the common Bootstrap form rows used across legacy modules */
body:not(.auth-page) .form-group.row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 14px;
    margin: 0 0 16px;
}

body:not(.auth-page) .form-group.row > [class*="col-"] {
    float: none;
    width: auto;
    max-width: 100%;
    min-width: 0;
    padding-right: 0;
    padding-left: 0;
    flex: 1 1 60%;
}

body:not(.auth-page) .form-group.row > label {
    flex: 0 0 30%;
    max-width: 30%;
    padding-top: 7px;
    text-align: left !important;
}

body:not(.auth-page) .window-body > table:not(.easyui-datagrid):not(.table2) {
    width: 100% !important;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0 7px;
    table-layout: fixed;
}

body:not(.auth-page) .window-body > table:not(.easyui-datagrid):not(.table2) td {
    padding: 5px 8px;
    vertical-align: middle;
}

body:not(.auth-page) .window-body > table:not(.easyui-datagrid):not(.table2) td:first-child {
    width: 190px;
    color: #43566f;
    font-weight: 700;
    text-align: left !important;
}

body:not(.auth-page) .window-body > table:not(.easyui-datagrid):not(.table2) td:not(:first-child) {
    min-width: 0;
}

body:not(.auth-page) .window-body > table:not(.easyui-datagrid):not(.table2) input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body:not(.auth-page) .window-body > table:not(.easyui-datagrid):not(.table2) select,
body:not(.auth-page) .window-body > table:not(.easyui-datagrid):not(.table2) textarea,
body:not(.auth-page) .window-body > table:not(.easyui-datagrid):not(.table2) .textbox,
body:not(.auth-page) .window-body > table:not(.easyui-datagrid):not(.table2) .combo {
    box-sizing: border-box;
    max-width: 100%;
}

body:not(.auth-page) .window-body > table:not(.easyui-datagrid):not(.table2) td:not(:first-child) > input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):only-child,
body:not(.auth-page) .window-body > table:not(.easyui-datagrid):not(.table2) td:not(:first-child) > select:only-child,
body:not(.auth-page) .window-body > table:not(.easyui-datagrid):not(.table2) td:not(:first-child) > textarea:only-child,
body:not(.auth-page) .window-body > table:not(.easyui-datagrid):not(.table2) td:not(:first-child) > .textbox:only-child,
body:not(.auth-page) .window-body > table:not(.easyui-datagrid):not(.table2) td:not(:first-child) > .combo:only-child {
    width: 100% !important;
}

body:not(.auth-page) .window-body .panel-primary {
    overflow: hidden;
    border-color: #e0e8f1;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(34, 55, 79, 0.06);
}

body:not(.auth-page) .window-body .panel-primary > .panel-heading {
    padding: 12px 16px;
    border-color: #dce5ef;
    background: linear-gradient(110deg, #fff5eb, #fff);
    color: #344a63;
    font-weight: 800;
}

@media (max-width: 760px) {
    body:not(.auth-page) .form-group.row {
        flex-direction: column;
        gap: 5px;
    }

    body:not(.auth-page) .form-group.row > label {
        flex: 0 0 auto;
        max-width: 100%;
        padding-top: 0;
    }

    body:not(.auth-page) .form-group.row > [class*="col-"] {
        flex: 1 1 auto;
        width: 100%;
    }

    body:not(.auth-page) .window-body > table:not(.easyui-datagrid):not(.table2) td:first-child {
        width: 125px;
    }
}

/* Employee Response review and submission */
body:not(.auth-page) .da-response-window {
    max-width: calc(100vw - 32px);
    border-radius: 15px;
    box-shadow: 0 24px 64px rgba(15, 35, 63, 0.25);
}

body:not(.auth-page) .da-response-window .window-body {
    padding: 16px;
    background: #f5f8fc;
}

body:not(.auth-page) .da-response-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body:not(.auth-page) .da-response-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 14px;
}

body:not(.auth-page) .da-response-card,
body:not(.auth-page) .da-response-list {
    min-width: 0;
    padding: 17px;
    border: 1px solid #e1e9f2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(32, 54, 80, 0.045);
}

body:not(.auth-page) .da-response-card-heading,
body:not(.auth-page) .da-response-list-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f6;
}

body:not(.auth-page) .da-response-step {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fff0e3;
    color: #b94d0a;
    font-size: 11px;
    font-weight: 800;
}

body:not(.auth-page) .da-response-card-heading h3,
body:not(.auth-page) .da-response-list-heading h3 {
    margin: 0;
    color: #2b405b;
    font-size: 14px;
    font-weight: 800;
}

body:not(.auth-page) .da-response-card-heading p,
body:not(.auth-page) .da-response-list-heading p {
    margin: 4px 0 0;
    color: #78889a;
    font-size: 11px;
}

body:not(.auth-page) .da-response-card .form-group.row {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 8px 12px;
    margin-bottom: 13px;
}

body:not(.auth-page) .da-response-card .form-group.row > label {
    flex: 0 0 155px;
    max-width: 155px;
    padding-top: 7px;
    color: #52657b;
    font-size: 11px;
    text-align: left !important;
}

body:not(.auth-page) .da-response-card .form-group.row > div {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

body:not(.auth-page) .da-response-card .form-group.row[style*="display:none"],
body:not(.auth-page) .da-response-card .form-group.row[style*="display: none"] {
    display: none !important;
}

body:not(.auth-page) .da-response-card .form-group.row .textbox,
body:not(.auth-page) .da-response-card .form-group.row textarea,
body:not(.auth-page) .da-response-card .form-group.row input:not([type="file"]) {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
}

body:not(.auth-page) .da-response-card .form-group.row textarea,
body:not(.auth-page) #daEmployeeResponse {
    min-height: 100px;
}

body:not(.auth-page) .da-response-card .form-group.row input[type="file"] {
    max-width: 100%;
    padding: 7px;
    border: 1px dashed #cbd6e3;
    border-radius: 8px;
    background: #f8fafc;
}

body:not(.auth-page) .da-response-policy {
    margin: 12px 0;
    padding: 13px 14px;
    border: 1px solid #f4d2b7;
    border-left: 4px solid #d76520;
    border-radius: 9px;
    background: #fff8f1;
    color: #79513a;
    font-size: 12px;
    line-height: 1.55;
}

body:not(.auth-page) .da-response-policy hr {
    display: none;
}

body:not(.auth-page) #daPreviousResponses {
    min-height: 80px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px 12px;
    border: 1px solid #e3eaf2;
    border-radius: 9px;
    background: #f8fafc;
}

body:not(.auth-page) #daPreviousResponses p {
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid #e9eef4;
    color: #4a5e75;
    font-size: 12px;
    line-height: 1.5;
}

body:not(.auth-page) #daPreviousResponses p:last-child {
    border-bottom: 0;
}

body:not(.auth-page) .da-response-tip {
    padding: 10px 12px;
    border: 1px solid #d8e6f4;
    border-radius: 8px;
    background: #f3f8fd;
    color: #47627f;
    font-size: 11px;
    line-height: 1.5;
}

body:not(.auth-page) .da-response-lists {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

body:not(.auth-page) .da-response-list {
    padding: 14px;
}

body:not(.auth-page) .da-response-grid {
    overflow: hidden;
    border: 1px solid #e1e9f1;
    border-radius: 9px;
}

body:not(.auth-page) .da-response-grid > .datagrid,
body:not(.auth-page) .da-response-grid > .easyui-datagrid {
    width: 100% !important;
}

body:not(.auth-page) #DAEmployeeResponseFooter {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 16px;
    border-top: 1px solid #e4ebf3;
    background: #fff;
}

body:not(.auth-page) #DAEmployeeResponseFooter .l-btn {
    min-width: 100px;
    min-height: 36px;
    border: 1px solid #d8e1eb;
    border-radius: 8px;
}

body:not(.auth-page) #DAEmployeeResponseFooter #btnDAEmpResponseSave {
    border-color: #d76520;
    background: #d76520;
    color: #fff;
}

body:not(.auth-page) #DAEmployeeResponseFooter #btnDAEmpResponseSave .l-btn-text {
    color: #fff;
}

@media (max-width: 900px) {
    body:not(.auth-page) .da-response-summary,
    body:not(.auth-page) .da-response-lists {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    body:not(.auth-page) .da-response-window {
        max-width: calc(100vw - 16px);
    }

    body:not(.auth-page) .da-response-window .window-body {
        padding: 10px;
    }

    body:not(.auth-page) .da-response-card,
    body:not(.auth-page) .da-response-list {
        padding: 12px;
    }

    body:not(.auth-page) .da-response-card .form-group.row {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 5px;
    }

    body:not(.auth-page) .da-response-card .form-group.row > label {
        flex: 0 0 auto;
        max-width: 100%;
        padding-top: 0;
    }

    body:not(.auth-page) .da-response-card .form-group.row > div {
        width: 100%;
    }

    body:not(.auth-page) #DAEmployeeResponseFooter {
        flex-wrap: wrap;
    }
}

/* Disciplinary Action counselling and supervisor review */
body:not(.auth-page) .da-counselling-window,
body:not(.auth-page) .da-monitoring-window {
    max-width: calc(100vw - 32px);
    border-radius: 15px;
}

body:not(.auth-page) .da-counselling-window .window-body,
body:not(.auth-page) .da-monitoring-window .window-body {
    padding: 16px;
    background: #f5f8fc;
}

body:not(.auth-page) .da-counselling-window .window-body > center,
body:not(.auth-page) .da-monitoring-window .window-body > center {
    display: block;
    text-align: left;
}

body:not(.auth-page) .da-counselling-intro {
    margin-bottom: 14px;
    padding: 2px 3px 12px;
    border-bottom: 1px solid #e3eaf2;
}

body:not(.auth-page) .da-counselling-intro > span {
    color: #c65e1b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

body:not(.auth-page) .da-counselling-intro h3 {
    margin: 4px 0;
    color: #2b405b;
    font-size: 18px;
    font-weight: 800;
}

body:not(.auth-page) .da-counselling-intro p,
body:not(.auth-page) .da-monitoring-card-heading p,
body:not(.auth-page) .da-monitoring-list p {
    margin: 0;
    color: #78889a;
    font-size: 11px;
}

body:not(.auth-page) .da-counselling-summary,
body:not(.auth-page) .da-monitoring-summary {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 14px;
    margin-bottom: 14px;
}

body:not(.auth-page) .da-counselling-card,
body:not(.auth-page) .da-monitoring-card,
body:not(.auth-page) .da-counselling-list,
body:not(.auth-page) .da-monitoring-list {
    min-width: 0;
    padding: 15px;
    border: 1px solid #e1e9f2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(32, 54, 80, 0.045);
}

body:not(.auth-page) .da-counselling-card-heading,
body:not(.auth-page) .da-monitoring-card-heading {
    margin-bottom: 13px;
    padding-bottom: 11px;
    border-bottom: 1px solid #edf1f6;
    color: #2b405b;
    font-size: 13px;
    font-weight: 800;
}

body:not(.auth-page) .da-monitoring-card-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

body:not(.auth-page) .da-monitoring-card-heading > span {
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #fff0e3;
    color: #b94d0a;
    font-size: 11px;
    font-weight: 800;
}

body:not(.auth-page) .da-monitoring-card-heading h3,
body:not(.auth-page) .da-monitoring-list h3 {
    margin: 0 0 4px;
    color: #2b405b;
    font-size: 13px;
    font-weight: 800;
}

body:not(.auth-page) .da-counselling-summary .form-group.row,
body:not(.auth-page) .da-monitoring-summary .form-group.row {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 8px 10px;
    margin-bottom: 12px;
}

body:not(.auth-page) .da-counselling-summary .form-group.row > label,
body:not(.auth-page) .da-monitoring-summary .form-group.row > label {
    flex: 0 0 140px;
    max-width: 140px;
    padding-top: 7px;
    color: #52657b;
    font-size: 11px;
    text-align: left !important;
}

body:not(.auth-page) .da-counselling-summary .form-group.row > div,
body:not(.auth-page) .da-monitoring-summary .form-group.row > div {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

body:not(.auth-page) .da-counselling-summary .form-group.row .textbox,
body:not(.auth-page) .da-counselling-summary .form-group.row .combo,
body:not(.auth-page) .da-counselling-summary .form-group.row textarea,
body:not(.auth-page) .da-counselling-summary .form-group.row input:not([type="file"]),
body:not(.auth-page) .da-monitoring-summary .form-group.row .textbox,
body:not(.auth-page) .da-monitoring-summary .form-group.row .combo,
body:not(.auth-page) .da-monitoring-summary .form-group.row textarea,
body:not(.auth-page) .da-monitoring-summary .form-group.row input:not([type="file"]) {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
}

body:not(.auth-page) #daCounsellingPreviousResponses,
body:not(.auth-page) #daMonitoringPreviousResponses {
    min-height: 72px;
    max-height: 190px;
    overflow-y: auto;
    padding: 9px 11px;
    border: 1px solid #e3eaf2;
    border-radius: 9px;
    background: #f8fafc;
}

body:not(.auth-page) #daCounsellingPreviousResponses p,
body:not(.auth-page) #daMonitoringPreviousResponses p {
    margin: 0;
    padding: 7px 0;
    border-bottom: 1px solid #e9eef4;
    color: #4a5e75;
    font-size: 12px;
    line-height: 1.5;
}

body:not(.auth-page) .da-counselling-list,
body:not(.auth-page) .da-monitoring-list {
    margin-bottom: 14px;
}

body:not(.auth-page) .da-counselling-list h4 {
    margin: 0 0 12px;
    color: #2b405b;
    font-weight: 800;
}

body:not(.auth-page) #daContainer3.da-counselling-decisions {
    display: flex;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 14px;
}

body:not(.auth-page) #daContainer3 .da-counselling-change {
    flex: 2 1 0;
    overflow: auto;
}

body:not(.auth-page) #daContainer3 .da-counselling-added {
    flex: 1 1 0;
}

body:not(.auth-page) .da-counselling-card .datagrid,
body:not(.auth-page) .da-monitoring-card .datagrid,
body:not(.auth-page) .da-counselling-list .datagrid,
body:not(.auth-page) .da-monitoring-list .datagrid {
    width: 100% !important;
}

body:not(.auth-page) #DACounsellingFooter,
body:not(.auth-page) #DAMonitoringFooter {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 16px;
    border-top: 1px solid #e4ebf3;
    background: #fff;
}

body:not(.auth-page) #DACounsellingFooter .l-btn,
body:not(.auth-page) #DAMonitoringFooter .l-btn {
    min-width: 94px;
    min-height: 36px;
    border: 1px solid #d8e1eb;
    border-radius: 8px;
}

body:not(.auth-page) #DACounsellingFooter #btnDACounsellingCounsel,
body:not(.auth-page) #DAMonitoringFooter #btnDAMonitoringApprove {
    border-color: #d76520;
    background: #d76520;
    color: #fff;
}

body:not(.auth-page) #DACounsellingFooter #btnDACounsellingCounsel .l-btn-text,
body:not(.auth-page) #DAMonitoringFooter #btnDAMonitoringApprove .l-btn-text {
    color: #fff;
}

@media (max-width: 900px) {
    body:not(.auth-page) .da-counselling-summary,
    body:not(.auth-page) .da-monitoring-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    body:not(.auth-page) #daContainer3.da-counselling-decisions {
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    body:not(.auth-page) .da-counselling-window .window-body,
    body:not(.auth-page) .da-monitoring-window .window-body {
        padding: 10px;
    }

    body:not(.auth-page) .da-counselling-card,
    body:not(.auth-page) .da-monitoring-card,
    body:not(.auth-page) .da-counselling-list,
    body:not(.auth-page) .da-monitoring-list {
        padding: 12px;
    }

    body:not(.auth-page) .da-counselling-summary .form-group.row,
    body:not(.auth-page) .da-monitoring-summary .form-group.row {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 5px;
    }

    body:not(.auth-page) .da-counselling-summary .form-group.row > label,
    body:not(.auth-page) .da-monitoring-summary .form-group.row > label {
        flex: 0 0 auto;
        max-width: 100%;
        padding-top: 0;
    }

    body:not(.auth-page) .da-counselling-summary .form-group.row > div,
    body:not(.auth-page) .da-monitoring-summary .form-group.row > div {
        width: 100%;
    }

    body:not(.auth-page) #DACounsellingFooter,
    body:not(.auth-page) #DAMonitoringFooter {
        flex-wrap: wrap;
    }
}

/* Exit Interview creation form */
body:not(.auth-page) #divCreateExitForm .exit-interview-workspace {
    width: 100%;
    max-width: 1120px;
    margin: 24px auto;
    color: #344a63;
}

body:not(.auth-page) .exit-interview-heading {
    margin-bottom: 18px;
    padding: 4px 2px 14px;
    border-bottom: 1px solid #e3eaf2;
}

body:not(.auth-page) .exit-interview-heading > span {
    color: #c65e1b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

body:not(.auth-page) .exit-interview-heading h2 {
    margin: 5px 0;
    color: #293f59;
    font-size: 22px;
    font-weight: 800;
}

body:not(.auth-page) .exit-interview-heading p,
body:not(.auth-page) .exit-interview-card-heading p {
    margin: 0;
    color: #78889a;
    font-size: 12px;
}

body:not(.auth-page) .exit-interview-card {
    padding: 22px;
    border: 1px solid #e1e9f2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(32, 54, 80, 0.06);
}

body:not(.auth-page) .exit-interview-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf1f6;
}

body:not(.auth-page) .exit-interview-card-heading > span {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff0e3;
    color: #b94d0a;
    font-size: 11px;
    font-weight: 800;
}

body:not(.auth-page) .exit-interview-card-heading h3 {
    margin: 0 0 4px;
    color: #293f59;
    font-size: 15px;
    font-weight: 800;
}

body:not(.auth-page) .exit-interview-fields {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px 22px;
}

body:not(.auth-page) .exit-interview-field {
    grid-column: span 2;
    min-width: 0;
}

body:not(.auth-page) .exit-interview-field--transaction {
    grid-column: span 2;
}

body:not(.auth-page) .exit-interview-field--date {
    grid-column: span 3;
}

body:not(.auth-page) .exit-interview-field--employee {
    grid-column: 1 / -1;
}

body:not(.auth-page) .exit-interview-field > label {
    display: block;
    margin-bottom: 7px;
    color: #43566f;
    font-size: 12px;
    font-weight: 750;
}

body:not(.auth-page) .exit-interview-employee-controls,
body:not(.auth-page) .exit-interview-code-name {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
}

body:not(.auth-page) .exit-interview-employee-controls {
    grid-template-columns: 120px 38px minmax(0, 1fr);
    max-width: 820px;
}

body:not(.auth-page) .exit-interview-field--transaction .textbox {
    width: 180px !important;
}

body:not(.auth-page) .exit-interview-field--date .textbox,
body:not(.auth-page) .exit-interview-field--date .combo,
body:not(.auth-page) .exit-interview-field--date .datebox {
    width: 100% !important;
}

body:not(.auth-page) .exit-interview-employee-controls > .textbox:first-child {
    width: 120px !important;
}

body:not(.auth-page) .exit-interview-employee-controls > .textbox:last-child {
    width: 100% !important;
}

body:not(.auth-page) .exit-interview-code-name > .textbox:first-child {
    width: 96px !important;
}

body:not(.auth-page) .exit-interview-code-name > .textbox:last-child {
    width: 100% !important;
}

body:not(.auth-page) .exit-interview-fields .textbox,
body:not(.auth-page) .exit-interview-fields .combo,
body:not(.auth-page) .exit-interview-fields .datebox {
    max-width: 100%;
    border-radius: 9px;
}

body:not(.auth-page) .exit-interview-employee-controls > .l-btn {
    display: inline-flex;
    width: 38px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

body:not(.auth-page) .exit-interview-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
    padding: 14px 2px 0;
    border-top: 1px solid #e1e8f0;
}

body:not(.auth-page) .exit-interview-actions .l-btn {
    min-width: 88px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d6e0eb;
    border-radius: 8px;
    background: #fff;
    line-height: 34px;
}

body:not(.auth-page) .exit-interview-actions #btnSaveResponse {
    min-width: 96px;
}

body:not(.auth-page) #btnSaveResponse {
    border-color: #d76520;
    background: #d76520;
    color: #fff;
}

body:not(.auth-page) #btnSaveResponse .l-btn-text {
    color: #fff;
}

@media (max-width: 760px) {
    body:not(.auth-page) #divCreateExitForm .exit-interview-workspace {
        margin: 14px auto;
    }

    body:not(.auth-page) .exit-interview-card {
        padding: 14px;
    }

    body:not(.auth-page) .exit-interview-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    body:not(.auth-page) .exit-interview-field--transaction,
    body:not(.auth-page) .exit-interview-field--date {
        grid-column: span 1;
    }

    body:not(.auth-page) .exit-interview-field--employee {
        grid-column: 1 / -1;
    }

    body:not(.auth-page) .exit-interview-code-name {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    body:not(.auth-page) .exit-interview-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 520px) {
    body:not(.auth-page) .exit-interview-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    body:not(.auth-page) .exit-interview-field,
    body:not(.auth-page) .exit-interview-field--transaction,
    body:not(.auth-page) .exit-interview-field--date,
    body:not(.auth-page) .exit-interview-field--employee {
        grid-column: 1;
    }

    body:not(.auth-page) .exit-interview-employee-controls {
        grid-template-columns: 100px 38px minmax(0, 1fr);
    }

    body:not(.auth-page) .exit-interview-employee-controls > .textbox:first-child {
        width: 100px !important;
    }
}

/* Personnel Evaluation form and review */
body:not(.auth-page) .personnel-evaluation-window {
    max-width: calc(100vw - 32px);
    border-radius: 15px;
}

body:not(.auth-page) .personnel-evaluation-window .window-body {
    padding: 18px;
    background: #f5f8fc;
}

body:not(.auth-page) .personnel-evaluation-heading {
    margin-bottom: 14px;
    padding: 6px 2px 12px;
    border-bottom: 1px solid #e3eaf2;
    text-align: left;
}

body:not(.auth-page) .personnel-evaluation-heading > span {
    color: #c65e1b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

body:not(.auth-page) .personnel-evaluation-heading h3 {
    margin: 4px 0;
    color: #293f59;
    font-size: 18px;
    font-weight: 800;
}

body:not(.auth-page) .personnel-evaluation-heading hr {
    display: none;
}

body:not(.auth-page) .personnel-evaluation-info {
    width: 100% !important;
    max-width: 100%;
    margin-bottom: 16px;
    border-collapse: separate;
    border-spacing: 0 7px;
    table-layout: fixed;
}

body:not(.auth-page) .personnel-evaluation-info td {
    padding: 4px 8px;
    vertical-align: middle;
}

body:not(.auth-page) .personnel-evaluation-info td:first-child {
    width: 190px;
    color: #43566f;
    font-size: 12px;
    font-weight: 750;
    text-align: left !important;
}

body:not(.auth-page) .personnel-evaluation-info td:not(:first-child) {
    min-width: 0;
}

body:not(.auth-page) .personnel-evaluation-info .textbox,
body:not(.auth-page) .personnel-evaluation-info select {
    max-width: 100%;
    border-radius: 9px;
}

body:not(.auth-page) .personnel-evaluation-rubric {
    overflow: auto;
    margin: 14px 0;
    border: 1px solid #e0e8f1;
    border-radius: 11px;
    background: #fff;
}

body:not(.auth-page) .personnel-evaluation-rubric table {
    width: 100% !important;
    border-collapse: collapse;
}

body:not(.auth-page) .personnel-evaluation-rubric th {
    padding: 10px 12px;
    background: #eaf2f8;
    color: #36506b;
    font-size: 11px;
    font-weight: 800;
    text-align: left;
}

body:not(.auth-page) .personnel-evaluation-rubric td {
    padding: 9px 10px;
    border-top: 1px solid #e9eef4;
    color: #43566f;
    font-size: 12px;
    line-height: 1.5;
}

body:not(.auth-page) .personnel-evaluation-rubric tr:nth-child(even) td {
    background: #f8fafc;
}

body:not(.auth-page) .personnel-evaluation-rubric input,
body:not(.auth-page) .personnel-evaluation-rubric select,
body:not(.auth-page) .personnel-evaluation-rubric .textbox {
    max-width: 100%;
    border-radius: 8px;
}

body:not(.auth-page) .personnel-evaluation-section-heading {
    margin: 18px 0 12px;
    padding: 12px 14px;
    border-left: 4px solid #d76520;
    border-radius: 0 9px 9px 0;
    background: #fff4ea;
}

body:not(.auth-page) .personnel-evaluation-section-heading hr {
    display: none;
}

body:not(.auth-page) .personnel-evaluation-section-heading h3 {
    margin: 0;
    color: #334a64;
    font-size: 14px;
}

body:not(.auth-page) .personnel-evaluation-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    text-align: left;
}

body:not(.auth-page) .personnel-evaluation-note {
    min-width: 0;
    padding: 14px;
    border: 1px solid #e1e9f2;
    border-radius: 11px;
    background: #fff;
}

body:not(.auth-page) .personnel-evaluation-notes h3 {
    margin: 0 0 7px;
    color: #43566f;
    font-size: 12px;
}

body:not(.auth-page) .personnel-evaluation-notes textarea {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    min-height: 120px;
    padding: 10px;
    border: 1px solid #d8e1eb;
    border-radius: 9px;
    background: #fff;
}

body:not(.auth-page) .personnel-evaluation-feedback {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body:not(.auth-page) .personnel-evaluation-log,
body:not(.auth-page) .personnel-evaluation-employee-response {
    min-width: 0;
    padding: 15px;
    border: 1px solid #e1e9f2;
    border-radius: 11px;
    background: #fff;
}

body:not(.auth-page) .personnel-evaluation-log h3,
body:not(.auth-page) .personnel-evaluation-employee-response h3 {
    margin: 0 0 8px;
    color: #334a64;
    font-size: 13px;
    font-weight: 800;
}

body:not(.auth-page) .personnel-evaluation-log-content {
    box-sizing: border-box;
    width: 100% !important;
    min-height: 100px;
    max-height: 220px;
    overflow: auto;
    padding: 10px 12px;
    border: 1px solid #e3eaf2;
    border-radius: 9px;
    background: #f8fafc;
}

body:not(.auth-page) .personnel-evaluation-employee-response > span {
    display: block;
    margin-bottom: 8px;
    color: #78889a;
    font-size: 11px;
}

body:not(.auth-page) .personnel-evaluation-employee-response textarea {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    min-height: 100px;
}

body:not(.auth-page) #personnelEvaluationFormFooter,
body:not(.auth-page) #ViewPersonnelEvaluationFooter,
body:not(.auth-page) #ViewEmployeeEvaluationResponseFooter,
body:not(.auth-page) #ViewEvaluationMonitoringFooter {
    gap: 10px;
    padding: 12px 16px !important;
    border-top: 1px solid #e4ebf3;
    background: #fff;
}

body:not(.auth-page) #personnelEvaluationFormFooter > div:first-child,
body:not(.auth-page) #ViewPersonnelEvaluationFooter > div:first-child,
body:not(.auth-page) #ViewEmployeeEvaluationResponseFooter > div:first-child,
body:not(.auth-page) #ViewEvaluationMonitoringFooter > div:first-child {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-right: auto !important;
}

body:not(.auth-page) #ViewEmployeeEvaluationResponseFooter #btnApproveEvaluationResponse {
    border-color: #d76520;
    background: #d76520;
    color: #fff;
}

body:not(.auth-page) #ViewEmployeeEvaluationResponseFooter #btnApproveEvaluationResponse .l-btn-text {
    color: #fff;
}

body:not(.auth-page) #ViewEmployeeEvaluationResponseFooter #btnRejectEvaluationResponse {
    border-color: #d79b91;
    background: #fff;
    color: #a4493e;
}

@media (max-width: 760px) {
    body:not(.auth-page) .personnel-evaluation-window .window-body {
        padding: 11px;
    }

    body:not(.auth-page) .personnel-evaluation-info {
        table-layout: auto;
    }

    body:not(.auth-page) .personnel-evaluation-info td:first-child {
        width: 125px;
    }

    body:not(.auth-page) .personnel-evaluation-notes {
        grid-template-columns: minmax(0, 1fr);
    }

    body:not(.auth-page) #personnelEvaluationFormFooter,
    body:not(.auth-page) #ViewPersonnelEvaluationFooter,
    body:not(.auth-page) #ViewEmployeeEvaluationResponseFooter,
    body:not(.auth-page) #ViewEvaluationMonitoringFooter {
        flex-wrap: wrap;
    }
}

/* Personnel Evaluation creation form */
body:not(.auth-page) #personnelEvaluationForm {
    box-sizing: border-box;
    width: 1120px !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100vh - 40px) !important;
    border-radius: 15px;
    box-shadow: 0 24px 64px rgba(15, 35, 63, 0.22);
}

body:not(.auth-page) #personnelEvaluationForm.window-body {
    overflow: auto !important;
    padding: 20px 24px !important;
    background: #f4f7fb !important;
}

body:not(.auth-page) #personnelEvaluationForm .personnel-evaluation-heading {
    margin-bottom: 16px;
    padding: 4px 2px 14px;
}

body:not(.auth-page) #personnelEvaluationForm .personnel-evaluation-heading h3 {
    margin-top: 5px;
    font-size: 21px;
}

body:not(.auth-page) .personnel-evaluation-create-section {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid #e1e9f2;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(27, 55, 87, 0.04);
}

body:not(.auth-page) .personnel-evaluation-create-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 13px;
    border-bottom: 1px solid #edf1f6;
}

body:not(.auth-page) .personnel-evaluation-create-section-heading > span {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #fff1e5;
    color: #bc5413;
    font-size: 12px;
    font-weight: 800;
}

body:not(.auth-page) .personnel-evaluation-create-section-heading h4 {
    margin: 0;
    color: #263d58;
    font-size: 15px;
    font-weight: 750;
}

body:not(.auth-page) .personnel-evaluation-create-section-heading p {
    margin: 4px 0 0;
    color: #718198;
    font-size: 12px;
    line-height: 1.5;
}

body:not(.auth-page) .personnel-evaluation-create-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

body:not(.auth-page) .personnel-evaluation-create-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

body:not(.auth-page) .personnel-evaluation-create-field--wide {
    grid-column: 1 / -1;
}

body:not(.auth-page) .personnel-evaluation-create-field > label {
    color: #425975;
    font-size: 12px;
    font-weight: 700;
}

body:not(.auth-page) .personnel-evaluation-create-field > .textbox,
body:not(.auth-page) .personnel-evaluation-create-field > select,
body:not(.auth-page) .personnel-evaluation-create-field > input[type="month"],
body:not(.auth-page) .personnel-evaluation-employee > .textbox,
body:not(.auth-page) .personnel-evaluation-code-name > .textbox {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
}

body:not(.auth-page) .personnel-evaluation-create-field > select,
body:not(.auth-page) .personnel-evaluation-create-field > input[type="month"] {
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid #d4deea;
    border-radius: 9px;
    background: #ffffff;
    color: #293d56;
}

body:not(.auth-page) .personnel-evaluation-employee {
    display: grid;
    min-width: 0;
    grid-template-columns: 110px 40px minmax(0, 1fr);
    gap: 8px;
}

body:not(.auth-page) #btnPersonnelEvaluation {
    display: inline-flex;
    width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4deea;
    border-radius: 9px;
    background: #ffffff;
}

body:not(.auth-page) .personnel-evaluation-code-name {
    display: grid;
    min-width: 0;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 8px;
}

body:not(.auth-page) #personnelEvaluationForm .personnel-evaluation-rubric-heading {
    margin: 20px 0 12px;
}

body:not(.auth-page) #personnelEvaluationForm .personnel-evaluation-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body:not(.auth-page) #personnelEvaluationForm .personnel-evaluation-section-heading span {
    color: #718198;
    font-size: 11px;
    font-weight: 600;
}

body:not(.auth-page) #personnelEvaluationForm .personnel-evaluation-notes {
    margin-bottom: 18px;
}

body:not(.auth-page) #personnelEvaluationFormFooter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 20px !important;
    border-top: 1px solid #e5ebf2;
    background: #ffffff;
}

body:not(.auth-page) .personnel-evaluation-footer-summary {
    display: flex;
    align-items: center;
    gap: 20px;
}

body:not(.auth-page) .personnel-evaluation-footer-summary > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

body:not(.auth-page) .personnel-evaluation-footer-summary span {
    color: #667991;
    font-size: 11px;
    font-weight: 700;
}

body:not(.auth-page) .personnel-evaluation-footer-summary input {
    width: 104px;
    min-height: 34px;
    padding: 5px 9px;
    border: 1px solid #e1e8f0;
    border-radius: 8px;
    background: #f5f8fc;
    color: #263d58;
    font-weight: 800;
}

body:not(.auth-page) .personnel-evaluation-footer-actions {
    display: flex;
    gap: 8px;
}

body:not(.auth-page) #personnelEvaluationFormFooter .l-btn {
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid #d6e0eb;
    border-radius: 9px;
    background: #ffffff;
}

body:not(.auth-page) #personnelEvaluationFormFooter #btnSavePersonnelEvaluation {
    border-color: #c65e1b;
    background: #c65e1b;
}

body:not(.auth-page) #personnelEvaluationFormFooter #btnSavePersonnelEvaluation .l-btn-text {
    color: #ffffff;
    font-weight: 750;
}

@media (max-width: 760px) {
    body:not(.auth-page) #personnelEvaluationForm.window-body {
        padding: 12px !important;
    }

    body:not(.auth-page) .personnel-evaluation-create-section {
        padding: 14px;
    }

    body:not(.auth-page) .personnel-evaluation-create-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body:not(.auth-page) .personnel-evaluation-create-field--wide {
        grid-column: 1;
    }

    body:not(.auth-page) .personnel-evaluation-employee {
        grid-template-columns: 86px 40px minmax(0, 1fr);
    }

    body:not(.auth-page) .personnel-evaluation-code-name {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    body:not(.auth-page) #personnelEvaluationFormFooter {
        flex-wrap: wrap;
    }

    body:not(.auth-page) .personnel-evaluation-footer-summary {
        flex-wrap: wrap;
        gap: 8px 14px;
    }

    body:not(.auth-page) .personnel-evaluation-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Personnel Evaluation review */
body:not(.auth-page) #ViewPersonnelEvaluation {
    box-sizing: border-box;
    width: 1120px !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100vh - 40px) !important;
    border-radius: 15px;
    box-shadow: 0 24px 64px rgba(15, 35, 63, 0.22);
}

body:not(.auth-page) #ViewPersonnelEvaluation.window-body {
    overflow: auto !important;
    padding: 20px 24px !important;
    background: #f4f7fb !important;
}

body:not(.auth-page) #ViewPersonnelEvaluation .personnel-evaluation-create-section {
    margin-bottom: 20px;
}

body:not(.auth-page) #ViewPersonnelEvaluation .personnel-evaluation-create-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body:not(.auth-page) #ViewPersonnelEvaluation .personnel-evaluation-review-rubric-heading {
    margin: 20px 0 12px;
}

body:not(.auth-page) #ViewPersonnelEvaluation .personnel-evaluation-rubric table {
    min-width: 760px;
    table-layout: fixed;
}

body:not(.auth-page) #ViewPersonnelEvaluation .personnel-evaluation-rubric th:first-child,
body:not(.auth-page) #ViewPersonnelEvaluation .personnel-evaluation-rubric td:first-child {
    width: 23%;
}

body:not(.auth-page) #ViewPersonnelEvaluation .personnel-evaluation-rubric th:last-child,
body:not(.auth-page) #ViewPersonnelEvaluation .personnel-evaluation-rubric td:last-child {
    width: 160px;
}

body:not(.auth-page) #ViewPersonnelEvaluation .personnel-evaluation-rubric td[colspan="3"] {
    background: #edf3fa;
    color: #293f59;
    font-weight: 750;
}

body:not(.auth-page) #ViewPersonnelEvaluation .personnel-evaluation-rubric select {
    box-sizing: border-box;
    width: 100%;
    min-height: 38px;
    padding: 6px 8px;
    border: 1px solid #d5dfeb;
    border-radius: 8px;
    background: #fff;
    color: #344a63;
}

body:not(.auth-page) #ViewPersonnelEvaluation .personnel-evaluation-rubric select:disabled {
    background: #f5f8fc;
    color: #53667c;
    opacity: 1;
}

body:not(.auth-page) #ViewPersonnelEvaluation .personnel-evaluation-review-notes-heading {
    margin-top: 20px;
}

body:not(.auth-page) #ViewPersonnelEvaluation .personnel-evaluation-notes {
    margin-bottom: 18px;
}

body:not(.auth-page) #ViewPersonnelEvaluationFooter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 20px !important;
}

body:not(.auth-page) #ViewPersonnelEvaluationFooter .personnel-evaluation-footer-summary {
    flex-wrap: wrap;
    gap: 10px 20px;
}

body:not(.auth-page) #ViewPersonnelEvaluationFooter .personnel-evaluation-footer-summary input {
    width: 150px;
}

body:not(.auth-page) #ViewPersonnelEvaluationFooter .personnel-evaluation-footer-actions .l-btn {
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid #d6e0eb;
    border-radius: 9px;
    background: #fff;
}

body:not(.auth-page) #ViewPersonnelEvaluationFooter #btnEditPersonnelEvaluation,
body:not(.auth-page) #ViewPersonnelEvaluationFooter #btnUpdatePersonnelEvaluation {
    border-color: #c65e1b;
    background: #c65e1b;
}

body:not(.auth-page) #ViewPersonnelEvaluationFooter #btnEditPersonnelEvaluation .l-btn-text,
body:not(.auth-page) #ViewPersonnelEvaluationFooter #btnUpdatePersonnelEvaluation .l-btn-text {
    color: #fff;
    font-weight: 750;
}

body:not(.auth-page) #ViewPersonnelEvaluationFooter #btnUpdatePersonnelEvaluation {
    display: none;
}

@media (max-width: 760px) {
    body:not(.auth-page) #ViewPersonnelEvaluation.window-body {
        padding: 12px !important;
    }

    body:not(.auth-page) #ViewPersonnelEvaluation .personnel-evaluation-create-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body:not(.auth-page) #ViewPersonnelEvaluation .personnel-evaluation-create-field--wide {
        grid-column: 1;
    }

    body:not(.auth-page) #ViewPersonnelEvaluationFooter {
        flex-wrap: wrap;
    }
}

/* Employee Evaluation Response review */
body:not(.auth-page) #ViewEmployeeEvaluationResponse {
    box-sizing: border-box;
    width: 1120px !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100vh - 40px) !important;
    border-radius: 15px;
    box-shadow: 0 24px 64px rgba(15, 35, 63, 0.22);
}

body:not(.auth-page) #ViewEmployeeEvaluationResponse.window-body {
    overflow: auto !important;
    padding: 20px 24px !important;
    background: #f4f7fb !important;
}

body:not(.auth-page) #ViewEmployeeEvaluationResponse .personnel-evaluation-heading {
    margin-bottom: 16px;
    padding: 4px 2px 14px;
}

body:not(.auth-page) #ViewEmployeeEvaluationResponse .personnel-evaluation-heading h3 {
    margin-top: 5px;
    font-size: 21px;
}

body:not(.auth-page) .personnel-evaluation-response-section {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid #e1e9f2;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(27, 55, 87, 0.04);
}

body:not(.auth-page) .personnel-evaluation-response-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 13px;
    border-bottom: 1px solid #edf1f6;
}

body:not(.auth-page) .personnel-evaluation-response-section-heading > span {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #fff1e5;
    color: #bc5413;
    font-size: 12px;
    font-weight: 800;
}

body:not(.auth-page) .personnel-evaluation-response-section-heading h4 {
    margin: 0;
    color: #263d58;
    font-size: 15px;
    font-weight: 750;
}

body:not(.auth-page) .personnel-evaluation-response-section-heading p {
    margin: 4px 0 0;
    color: #718198;
    font-size: 12px;
    line-height: 1.5;
}

body:not(.auth-page) .personnel-evaluation-response-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

body:not(.auth-page) .personnel-evaluation-response-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

body:not(.auth-page) .personnel-evaluation-response-field--wide {
    grid-column: 1 / -1;
}

body:not(.auth-page) .personnel-evaluation-response-field > label {
    color: #425975;
    font-size: 12px;
    font-weight: 700;
}

body:not(.auth-page) .personnel-evaluation-response-field > .textbox,
body:not(.auth-page) .personnel-evaluation-response-code-name > .textbox {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
}

body:not(.auth-page) .personnel-evaluation-response-code-name {
    display: grid;
    min-width: 0;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 8px;
}

body:not(.auth-page) #ViewEmployeeEvaluationResponse .personnel-evaluation-response-rubric-heading {
    margin: 20px 0 12px;
}

body:not(.auth-page) #ViewEmployeeEvaluationResponse .personnel-evaluation-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body:not(.auth-page) #ViewEmployeeEvaluationResponse .personnel-evaluation-section-heading > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

body:not(.auth-page) #ViewEmployeeEvaluationResponse .personnel-evaluation-section-heading span {
    color: #718198;
    font-size: 11px;
    font-weight: 600;
}

body:not(.auth-page) #ViewEmployeeEvaluationResponse .personnel-evaluation-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body:not(.auth-page) #ViewEmployeeEvaluationResponse .personnel-evaluation-feedback {
    margin-bottom: 18px;
}

body:not(.auth-page) #ViewEmployeeEvaluationResponse .personnel-evaluation-note textarea,
body:not(.auth-page) #ViewEmployeeEvaluationResponse #employeeEvaluationResponse {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    min-height: 110px;
    padding: 10px 12px;
    border: 1px solid #d8e1eb;
    border-radius: 9px;
    background: #f8fafc;
    color: #43566f;
}

body:not(.auth-page) #ViewEmployeeEvaluationResponse #empEvalResponse {
    padding: 16px;
    border: 1px solid #e1e9f2;
    border-radius: 12px;
    background: #ffffff;
}

body:not(.auth-page) #ViewEmployeeEvaluationResponseFooter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 20px !important;
}

body:not(.auth-page) #ViewEmployeeEvaluationResponseFooter .personnel-evaluation-footer-summary {
    display: flex;
    align-items: center;
    gap: 18px;
}

body:not(.auth-page) #ViewEmployeeEvaluationResponseFooter .personnel-evaluation-footer-summary > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

body:not(.auth-page) #ViewEmployeeEvaluationResponseFooter .personnel-evaluation-footer-summary span {
    color: #667991;
    font-size: 11px;
    font-weight: 700;
}

body:not(.auth-page) #ViewEmployeeEvaluationResponseFooter .personnel-evaluation-footer-summary input {
    width: 104px;
    min-height: 34px;
    padding: 5px 9px;
    border: 1px solid #e1e8f0;
    border-radius: 8px;
    background: #f5f8fc;
    color: #263d58;
    font-weight: 800;
}

body:not(.auth-page) #ViewEmployeeEvaluationResponseFooter .personnel-evaluation-footer-actions {
    display: flex;
    gap: 8px;
}

body:not(.auth-page) #ViewEmployeeEvaluationResponseFooter .l-btn {
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid #d6e0eb;
    border-radius: 9px;
    background: #ffffff;
}

body:not(.auth-page) #ViewEmployeeEvaluationResponseFooter #btnApproveEvaluationResponse {
    border-color: #c65e1b;
    background: #c65e1b;
}

body:not(.auth-page) #ViewEmployeeEvaluationResponseFooter #btnApproveEvaluationResponse .l-btn-text {
    color: #ffffff;
    font-weight: 750;
}

@media (max-width: 760px) {
    body:not(.auth-page) #ViewEmployeeEvaluationResponse.window-body {
        padding: 12px !important;
    }

    body:not(.auth-page) .personnel-evaluation-response-section {
        padding: 14px;
    }

    body:not(.auth-page) .personnel-evaluation-response-grid,
    body:not(.auth-page) #ViewEmployeeEvaluationResponse .personnel-evaluation-notes {
        grid-template-columns: minmax(0, 1fr);
    }

    body:not(.auth-page) .personnel-evaluation-response-field--wide {
        grid-column: 1;
    }

    body:not(.auth-page) .personnel-evaluation-response-code-name {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    body:not(.auth-page) #ViewEmployeeEvaluationResponseFooter {
        flex-wrap: wrap;
    }

    body:not(.auth-page) #ViewEmployeeEvaluationResponseFooter .personnel-evaluation-footer-summary {
        flex-wrap: wrap;
        gap: 8px 14px;
    }

    body:not(.auth-page) #ViewEmployeeEvaluationResponse .personnel-evaluation-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Online COE request form */
body:not(.auth-page) #divCreateRequestCoe {
    box-sizing: border-box;
    width: 100%;
    max-width: 1100px;
    margin: 24px auto;
    padding: 28px;
    border: 1px solid #e1e9f2;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(22, 32, 51, 0.07);
}

body:not(.auth-page) .coe-request-content {
    color: #344a63;
}

body:not(.auth-page) .coe-request-heading {
    margin-bottom: 18px;
    padding: 2px 2px 14px;
    border-bottom: 1px solid #e3eaf2;
}

body:not(.auth-page) .coe-request-heading > span {
    color: #c65e1b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

body:not(.auth-page) .coe-request-heading h2 {
    margin: 5px 0;
    color: #293f59;
    font-size: 22px;
    font-weight: 800;
}

body:not(.auth-page) .coe-request-heading p,
body:not(.auth-page) .coe-request-section-heading p {
    margin: 0;
    color: #78889a;
    font-size: 12px;
}

body:not(.auth-page) .coe-request-section {
    min-width: 0;
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid #e1e9f2;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(32, 54, 80, 0.045);
}

body:not(.auth-page) .coe-request-section-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f6;
}

body:not(.auth-page) .coe-request-section-heading > span {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #fff0e3;
    color: #b94d0a;
    font-size: 11px;
    font-weight: 800;
}

body:not(.auth-page) .coe-request-section-heading h3 {
    margin: 0 0 3px;
    color: #293f59;
    font-size: 14px;
    font-weight: 800;
}

body:not(.auth-page) .coe-request-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 22px;
}

body:not(.auth-page) .coe-request-field {
    min-width: 0;
}

body:not(.auth-page) .coe-request-field--employee,
body:not(.auth-page) .coe-request-field--wide {
    grid-column: 1 / -1;
}

body:not(.auth-page) .coe-request-field > label {
    display: block;
    margin-bottom: 7px;
    color: #43566f;
    font-size: 12px;
    font-weight: 750;
}

body:not(.auth-page) .coe-request-field > .textbox,
body:not(.auth-page) .coe-request-field > .combo,
body:not(.auth-page) .coe-request-field > select,
body:not(.auth-page) .coe-request-field > textarea {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
}

body:not(.auth-page) .coe-request-employee-controls,
body:not(.auth-page) .coe-request-code-name {
    display: grid;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

body:not(.auth-page) .coe-request-employee-controls {
    grid-template-columns: 120px 38px minmax(0, 1fr);
}

body:not(.auth-page) .coe-request-code-name {
    grid-template-columns: 104px minmax(0, 1fr);
}

body:not(.auth-page) .coe-request-employee-controls > .textbox,
body:not(.auth-page) .coe-request-code-name > .textbox {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
}

body:not(.auth-page) .coe-request-search-btn {
    display: inline-flex !important;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d5e0ec;
    border-radius: 9px;
    background: #f7f9fc;
}

body:not(.auth-page) .coe-request-search-btn:hover,
body:not(.auth-page) .coe-request-search-btn:focus {
    border-color: #b8cce1;
    background: #edf4fb;
}

body:not(.auth-page) .coe-request-details-grid textarea {
    box-sizing: border-box;
    width: 100% !important;
    min-height: 96px;
    resize: vertical;
}

body:not(.auth-page) .coe-request-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #e3eaf2;
}

body:not(.auth-page) .coe-request-actions .action-btn {
    display: inline-flex !important;
    min-width: 96px;
    height: 38px;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 14px;
    border: 1px solid #d6e0eb;
    border-radius: 8px;
    background: #ffffff;
    color: #43566f;
}

body:not(.auth-page) .coe-request-actions #btnSaveRequestCoe {
    min-width: 132px;
    border-color: #c65e1b;
    background: #c65e1b;
    color: #ffffff;
}

body:not(.auth-page) .coe-request-actions #btnSaveRequestCoe .l-btn-text {
    color: #ffffff;
}

body:not(.auth-page) .coe-request-actions .action-btn:hover {
    border-color: #b8c9dc;
    background: #f5f8fc;
}

body:not(.auth-page) .coe-request-actions #btnSaveRequestCoe:hover {
    border-color: #a94c13;
    background: #a94c13;
}

@media (max-width: 760px) {
    body:not(.auth-page) #divCreateRequestCoe {
        margin: 14px auto;
        padding: 14px;
    }

    body:not(.auth-page) .coe-request-section {
        padding: 13px;
    }

    body:not(.auth-page) .coe-request-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    body:not(.auth-page) .coe-request-field--employee,
    body:not(.auth-page) .coe-request-field--wide {
        grid-column: 1;
    }

    body:not(.auth-page) .coe-request-employee-controls {
        grid-template-columns: 96px 38px minmax(0, 1fr);
    }

    body:not(.auth-page) .coe-request-code-name {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    body:not(.auth-page) .coe-request-actions {
        flex-wrap: wrap;
    }
}

/* Post Trainee creation form */
body:not(.auth-page) #CreatePostTraineeModal.window-body {
    box-sizing: border-box;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100vh - 40px) !important;
    overflow: auto !important;
    padding: 0 !important;
    background: #f4f7fb !important;
}

body:not(.auth-page) .post-trainee-form {
    padding: 24px;
    color: #344a63;
}

body:not(.auth-page) .post-trainee-intro {
    margin-bottom: 18px;
    padding: 2px 2px 16px;
    border-bottom: 1px solid #e3eaf2;
}

body:not(.auth-page) .post-trainee-intro > span {
    color: #c65e1b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

body:not(.auth-page) .post-trainee-intro p,
body:not(.auth-page) .post-trainee-section-heading p {
    margin: 4px 0 0;
    color: #718198;
    font-size: 12px;
    line-height: 1.5;
}

body:not(.auth-page) .post-trainee-section {
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid #e1e9f2;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(27, 55, 87, 0.04);
}

body:not(.auth-page) .post-trainee-section:last-child {
    margin-bottom: 0;
}

body:not(.auth-page) .post-trainee-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 13px;
    border-bottom: 1px solid #edf1f6;
}

body:not(.auth-page) .post-trainee-section-heading > span {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #fff1e5;
    color: #bc5413;
    font-size: 12px;
    font-weight: 800;
}

body:not(.auth-page) .post-trainee-section-heading h3 {
    margin: 0;
    color: #263d58;
    font-size: 15px;
    font-weight: 750;
}

body:not(.auth-page) .post-trainee-grid {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

body:not(.auth-page) .post-trainee-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

body:not(.auth-page) .post-trainee-field--wide {
    grid-column: 1 / -1;
}

body:not(.auth-page) .post-trainee-field > label {
    color: #425975;
    font-size: 12px;
    font-weight: 700;
}

body:not(.auth-page) .post-trainee-field > input,
body:not(.auth-page) .post-trainee-field > textarea,
body:not(.auth-page) .post-trainee-code-name > .textbox,
body:not(.auth-page) .post-trainee-field--date > .datebox,
body:not(.auth-page) .post-trainee-employee > .post-trainee-search {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
}

body:not(.auth-page) .post-trainee-code-name {
    display: grid;
    min-width: 0;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 8px;
}

body:not(.auth-page) .post-trainee-employee {
    display: grid;
    min-width: 0;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 8px;
}

body:not(.auth-page) .post-trainee-search {
    min-height: 40px !important;
    border: 1px solid #d5e0ec !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    color: #354d69 !important;
}

body:not(.auth-page) .post-trainee-search .l-btn-text {
    font-weight: 700;
}

body:not(.auth-page) .post-trainee-field textarea {
    min-height: 82px;
    padding: 10px 12px;
    resize: vertical;
}

body:not(.auth-page) .post-trainee-field--date {
    width: 100%;
    max-width: 360px;
}

body:not(.auth-page) #CreatePostTraineeFooter {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px !important;
    border-top: 1px solid #e5ebf2;
    background: #ffffff;
}

body:not(.auth-page) #CreatePostTraineeFooter .l-btn {
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid #d6e0eb;
    border-radius: 9px;
    background: #ffffff;
}

body:not(.auth-page) #CreatePostTraineeFooter #btnSavePostTrainee {
    border-color: #c65e1b;
    background: #c65e1b;
}

body:not(.auth-page) #CreatePostTraineeFooter #btnSavePostTrainee .l-btn-text {
    color: #ffffff;
    font-weight: 750;
}

@media (max-width: 760px) {
    body:not(.auth-page) .post-trainee-form {
        padding: 14px;
    }

    body:not(.auth-page) .post-trainee-section {
        padding: 14px;
    }

    body:not(.auth-page) .post-trainee-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body:not(.auth-page) .post-trainee-field--wide {
        grid-column: 1;
    }

    body:not(.auth-page) .post-trainee-employee {
        grid-template-columns: minmax(0, 1fr);
    }

    body:not(.auth-page) .post-trainee-field--date {
        max-width: none;
    }

    body:not(.auth-page) #CreatePostTraineeFooter {
        flex-wrap: wrap;
        padding: 10px 14px !important;
    }
}

/* Personnel Action form modal */
body:not(.auth-page) #PersonnelActionFormModal.window-body {
    box-sizing: border-box;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100vh - 40px) !important;
    overflow: auto !important;
    padding: 20px !important;
    background: #f5f8fc !important;
}

/* Performance Improvement Plan creation and review */
body:not(.auth-page) #PerformancePlanForm,
body:not(.auth-page) #ViewHrPerformanceMonitoring {
    box-sizing: border-box;
    width: 1120px !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100vh - 40px) !important;
    border-radius: 15px;
    box-shadow: 0 24px 64px rgba(15, 35, 63, 0.22);
}

body:not(.auth-page) #PerformancePlanForm.window-body,
body:not(.auth-page) #ViewHrPerformanceMonitoring.window-body {
    padding: 20px 24px !important;
    background: #f5f8fc !important;
}

body:not(.auth-page) .pip-form-content {
    min-width: 0;
    color: #344a63;
}

body:not(.auth-page) .pip-form-heading {
    margin-bottom: 18px;
    padding: 2px 2px 14px;
    border-bottom: 1px solid #e3eaf2;
}

body:not(.auth-page) .pip-form-heading > span {
    color: #c65e1b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

body:not(.auth-page) .pip-form-heading h2 {
    margin: 5px 0;
    color: #293f59;
    font-size: 22px;
    font-weight: 800;
}

body:not(.auth-page) .pip-form-heading p,
body:not(.auth-page) .pip-form-section-heading p {
    margin: 0;
    color: #78889a;
    font-size: 12px;
    line-height: 1.5;
}

body:not(.auth-page) .pip-form-section {
    min-width: 0;
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid #e1e9f2;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(32, 54, 80, 0.045);
}

body:not(.auth-page) .pip-form-section-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f6;
}

body:not(.auth-page) .pip-form-section-heading > span {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #fff0e3;
    color: #b94d0a;
    font-size: 11px;
    font-weight: 800;
}

body:not(.auth-page) .pip-form-section-heading h3 {
    margin: 0 0 3px;
    color: #293f59;
    font-size: 14px;
    font-weight: 800;
}

body:not(.auth-page) .pip-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 22px;
}

body:not(.auth-page) .pip-form-field {
    min-width: 0;
}

body:not(.auth-page) .pip-form-field--employee,
body:not(.auth-page) .pip-form-field--wide {
    grid-column: 1 / -1;
}

body:not(.auth-page) .pip-form-field > label {
    display: block;
    margin-bottom: 7px;
    color: #43566f;
    font-size: 12px;
    font-weight: 750;
}

body:not(.auth-page) .pip-form-field > .textbox,
body:not(.auth-page) .pip-form-field > .datebox,
body:not(.auth-page) .pip-form-field > textarea {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
}

body:not(.auth-page) .pip-form-field > textarea {
    min-height: 92px;
    padding: 10px 12px;
    resize: vertical;
}

body:not(.auth-page) .pip-employee-controls,
body:not(.auth-page) .pip-code-name {
    display: grid;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

body:not(.auth-page) .pip-employee-controls {
    grid-template-columns: 120px 38px minmax(0, 1fr);
}

body:not(.auth-page) .pip-code-name {
    grid-template-columns: 110px minmax(0, 1fr);
}

body:not(.auth-page) .pip-employee-controls > .textbox,
body:not(.auth-page) .pip-code-name > .textbox {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
}

body:not(.auth-page) .pip-search-button {
    display: inline-flex !important;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d5e0ec;
    border-radius: 9px;
    background: #f7f9fc;
}

body:not(.auth-page) .pip-search-button:hover,
body:not(.auth-page) .pip-search-button:focus {
    border-color: #b8cce1;
    background: #edf4fb;
}

body:not(.auth-page) .pip-objectives-section {
    overflow: hidden;
}

body:not(.auth-page) .pip-objectives-section #divPerformancePlanItemsForm {
    min-width: 0;
    overflow-x: auto;
}

body:not(.auth-page) .pip-objectives-section table {
    width: 100% !important;
    min-width: 720px;
    margin: 0;
    table-layout: fixed;
    border-color: #e1e8f0;
}

body:not(.auth-page) .pip-objectives-section table th {
    padding: 11px 12px;
    border-color: #dce5ef;
    background: #f2f6fb;
    color: #3e5671;
    font-size: 11px;
    font-weight: 800;
}

body:not(.auth-page) .pip-objectives-section table td {
    padding: 10px 12px;
    border-color: #e7edf4;
    color: #4a5e75;
    font-size: 12px;
    line-height: 1.5;
    vertical-align: middle;
}

body:not(.auth-page) .pip-objectives-section table td:nth-child(1) {
    width: 18% !important;
    font-weight: 750;
}

body:not(.auth-page) .pip-objectives-section table td:nth-child(2) {
    width: 42% !important;
}

body:not(.auth-page) .pip-objectives-section table td:nth-child(3) {
    width: 40% !important;
}

body:not(.auth-page) .pip-objectives-section table textarea,
body:not(.auth-page) .pip-objectives-section table .pip-objective-readonly {
    box-sizing: border-box;
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-height: 92px;
    padding: 10px 11px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #f8fafc;
    color: #40546d;
    font-size: 12px;
    line-height: 1.5;
    resize: vertical;
}

body:not(.auth-page) .pip-objectives-section table .pip-objective-readonly {
    resize: none;
}

body:not(.auth-page) #PerformancePlanFormFooter,
body:not(.auth-page) #ViewHrPerformanceMonitoringFooter {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 16px !important;
    border-top: 1px solid #e3eaf2;
    background: #ffffff;
}

body:not(.auth-page) #PerformancePlanFormFooter > div,
body:not(.auth-page) #ViewHrPerformanceMonitoringFooter > div {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto !important;
}

body:not(.auth-page) #PerformancePlanFormFooter .l-btn,
body:not(.auth-page) #ViewHrPerformanceMonitoringFooter .l-btn {
    min-width: 92px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #d6e0eb;
    border-radius: 8px;
    background: #ffffff;
    color: #43566f;
    line-height: 36px;
}

body:not(.auth-page) #PerformancePlanFormFooter #btnSavePerformancePlan,
body:not(.auth-page) #ViewHrPerformanceMonitoringFooter #btnConfirmHrPerformanceMonitoring {
    border-color: #c65e1b;
    background: #c65e1b;
    color: #ffffff;
}

body:not(.auth-page) #PerformancePlanFormFooter #btnSavePerformancePlan .l-btn-text,
body:not(.auth-page) #ViewHrPerformanceMonitoringFooter #btnConfirmHrPerformanceMonitoring .l-btn-text {
    color: #ffffff;
    font-weight: 750;
}

@media (max-width: 760px) {
    body:not(.auth-page) #PerformancePlanForm.window-body,
    body:not(.auth-page) #ViewHrPerformanceMonitoring.window-body {
        padding: 12px !important;
    }

    body:not(.auth-page) .pip-form-section {
        padding: 13px;
    }

    body:not(.auth-page) .pip-form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    body:not(.auth-page) .pip-form-field--employee,
    body:not(.auth-page) .pip-form-field--wide {
        grid-column: 1;
    }

    body:not(.auth-page) .pip-employee-controls {
        grid-template-columns: 96px 38px minmax(0, 1fr);
    }

    body:not(.auth-page) .pip-code-name {
        grid-template-columns: 90px minmax(0, 1fr);
    }
}

/* Shared form controls for desktop, mobile, and EasyUI forms */
body:not(.auth-page) .form-control,
body:not(.auth-page) input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]):not([type="button"]):not([type="reset"]):not([type="file"]):not(.textbox-text):not(.combo-text),
body:not(.auth-page) select,
body:not(.auth-page) textarea:not(.textbox-text) {
    box-sizing: border-box;
    border-color: #d4deea;
    border-radius: 9px;
    color: #293d56;
    font-size: 13px;
}

body:not(.auth-page) .form-control,
body:not(.auth-page) input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]):not([type="button"]):not([type="reset"]):not([type="file"]):not(.textbox-text):not(.combo-text),
body:not(.auth-page) select {
    min-height: 40px;
}

body:not(.auth-page) .textbox,
body:not(.auth-page) .combo,
body:not(.auth-page) .datebox,
body:not(.auth-page) .numberbox,
body:not(.auth-page) .spinner {
    box-sizing: border-box;
    min-height: 38px !important;
    border: 1px solid #d4deea !important;
    border-radius: 9px !important;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(23, 45, 78, 0.035);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body:not(.auth-page) .textbox .textbox-text,
body:not(.auth-page) .combo .combo-text {
    box-sizing: border-box;
    min-height: 36px !important;
    padding: 8px 11px !important;
    background: transparent;
    color: #293d56;
    font-size: 13px;
    line-height: 20px;
}

body:not(.auth-page) .textbox-focused,
body:not(.auth-page) .combo-focused {
    border-color: #2f6fed !important;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.13) !important;
}

body:not(.auth-page) .textbox-disabled,
body:not(.auth-page) .combo-disabled,
body:not(.auth-page) input:disabled,
body:not(.auth-page) select:disabled,
body:not(.auth-page) textarea:disabled {
    border-color: #e2e8ef !important;
    background-color: #f5f7fa !important;
    color: #6b7b90 !important;
    opacity: 1;
}

body:not(.auth-page) .textbox-disabled .textbox-text,
body:not(.auth-page) .combo-disabled .combo-text {
    color: #6b7b90 !important;
}

body:not(.auth-page) input[type="file"] {
    max-width: 100%;
    color: #53647a;
    font-size: 12px;
}

body:not(.auth-page) .form-group,
body:not(.auth-page) .form-field {
    min-width: 0;
}

body:not(.auth-page) .field-validation-error,
body:not(.auth-page) .validation-summary-errors {
    line-height: 1.45;
}

@media (max-width: 760px) {
    body:not(.auth-page) .form-control,
    body:not(.auth-page) input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]):not([type="button"]):not([type="reset"]):not([type="file"]):not(.textbox-text):not(.combo-text),
    body:not(.auth-page) select,
    body:not(.auth-page) .textbox,
    body:not(.auth-page) .combo,
    body:not(.auth-page) .datebox,
    body:not(.auth-page) .numberbox,
    body:not(.auth-page) .spinner {
        max-width: 100%;
    }
}

body:not(.auth-page) #divEmployeeIdGenerator .id-card-visual,
body:not(.auth-page) #appendForPrintId .id-card-visual {
    color: #000;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body:not(.auth-page) #divEmployeeIdGenerator .id-card-visual input,
body:not(.auth-page) #appendForPrintId .id-card-visual input,
body:not(.auth-page) #divEmployeeIdGenerator .id-card-visual .textbox,
body:not(.auth-page) #appendForPrintId .id-card-visual .textbox,
body:not(.auth-page) #divEmployeeIdGenerator .id-card-visual .textbox-text,
body:not(.auth-page) #appendForPrintId .id-card-visual .textbox-text {
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    font-family: inherit;
    transition: none;
}

body:not(.auth-page) #divEmployeeIdGenerator .id-name-section input,
body:not(.auth-page) #appendForPrintId .id-name-section input,
body:not(.auth-page) #divEmployeeIdGenerator .id-name-section .textbox-text,
body:not(.auth-page) #appendForPrintId .id-name-section .textbox-text {
    color: #000 !important;
}

body:not(.auth-page) #divEmployeeIdGenerator .id-footer-blue input,
body:not(.auth-page) #appendForPrintId .id-footer-blue input,
body:not(.auth-page) #divEmployeeIdGenerator .id-footer-blue .textbox-text,
body:not(.auth-page) #appendForPrintId .id-footer-blue .textbox-text {
    color: #fff !important;
}

/* Shared interaction style for buttons in forms, EasyUI windows, and modals. */
body:not(.auth-page) .btn:not(.btn-link),
body:not(.auth-page) .l-btn,
body:not(.auth-page) .easyui-linkbutton,
body:not(.auth-page) .easyui-menubutton,
body:not(.auth-page) button:not(.navbar-toggle),
body:not(.auth-page) input[type="button"],
body:not(.auth-page) input[type="submit"],
body:not(.auth-page) input[type="reset"] {
    box-sizing: border-box;
    border: 1px solid #cbd8e8;
    border-radius: 9px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
    color: #29445f;
    font-weight: 700;
    text-shadow: none;
    box-shadow: 0 1px 2px rgba(24, 48, 79, 0.06);
    transition: transform 160ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

body:not(.auth-page) .btn:not(.btn-link),
body:not(.auth-page) button:not(.navbar-toggle),
body:not(.auth-page) input[type="button"],
body:not(.auth-page) input[type="submit"],
body:not(.auth-page) input[type="reset"] {
    min-height: 36px;
    padding: 8px 14px;
    line-height: 1.25;
}

body:not(.auth-page) .l-btn,
body:not(.auth-page) .easyui-linkbutton,
body:not(.auth-page) .easyui-menubutton {
    min-height: 36px;
    padding: 5px 12px;
}

body:not(.auth-page) .l-btn .l-btn-left {
    display: inline-flex;
    align-items: center;
}

body:not(.auth-page) .l-btn .l-btn-text {
    line-height: 22px;
}

body:not(.auth-page) .btn-primary,
body:not(.auth-page) .l-btn-primary,
body:not(.auth-page) .easyui-linkbutton.l-btn-primary,
body:not(.auth-page) .l-btn.c8,
body:not(.auth-page) .l-btn.c1,
body:not(.auth-page) .l-btn.c2,
body:not(.auth-page) .l-btn.c5,
body:not(.auth-page) .l-btn.c6,
body:not(.auth-page) .l-btn.c7,
body:not(.auth-page) button.btn-primary,
body:not(.auth-page) input[type="submit"].btn-primary {
    border-color: #2367c9;
    background: linear-gradient(135deg, #3478e5 0%, #2465c4 100%);
    color: #ffffff;
}

body:not(.auth-page) .btn-success,
body:not(.auth-page) .l-btn-success,
body:not(.auth-page) button.btn-success {
    border-color: #12836c;
    background: linear-gradient(135deg, #20a387 0%, #12836c 100%);
    color: #ffffff;
}

body:not(.auth-page) .btn-danger,
body:not(.auth-page) .l-btn-danger,
body:not(.auth-page) button.btn-danger {
    border-color: #c64245;
    background: linear-gradient(135deg, #e15d60 0%, #c64245 100%);
    color: #ffffff;
}

body:not(.auth-page) .btn-warning,
body:not(.auth-page) .l-btn-warning,
body:not(.auth-page) button.btn-warning {
    border-color: #c67a1b;
    background: linear-gradient(135deg, #e59a38 0%, #c67a1b 100%);
    color: #ffffff;
}

body:not(.auth-page) .btn-info,
body:not(.auth-page) .l-btn-info,
body:not(.auth-page) button.btn-info {
    border-color: #1486a0;
    background: linear-gradient(135deg, #28a8bf 0%, #1486a0 100%);
    color: #ffffff;
}

body:not(.auth-page) .l-btn-plain {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

body:not(.auth-page) .btn:not(.btn-link):not(:disabled):not(.disabled):not([aria-disabled="true"]):hover,
body:not(.auth-page) .l-btn:not(.l-btn-disabled):not([aria-disabled="true"]):hover,
body:not(.auth-page) .easyui-linkbutton:not(.l-btn-disabled):hover,
body:not(.auth-page) .easyui-menubutton:not(.l-btn-disabled):hover,
body:not(.auth-page) button:not(.navbar-toggle):not(:disabled):not(.disabled):not([aria-disabled="true"]):hover,
body:not(.auth-page) input[type="button"]:not(:disabled):hover,
body:not(.auth-page) input[type="submit"]:not(:disabled):hover,
body:not(.auth-page) input[type="reset"]:not(:disabled):hover {
    border-color: #8aaddb;
    background-color: #edf5ff;
    color: #174f98;
    box-shadow: 0 7px 16px rgba(34, 83, 145, 0.16);
    transform: translateY(-2px);
    text-decoration: none !important;
}

body:not(.auth-page) .btn-primary:not(:disabled):not(.disabled):hover,
body:not(.auth-page) .l-btn-primary:not(.l-btn-disabled):hover,
body:not(.auth-page) .l-btn.c8:not(.l-btn-disabled):hover,
body:not(.auth-page) .l-btn.c1:not(.l-btn-disabled):hover,
body:not(.auth-page) .l-btn.c2:not(.l-btn-disabled):hover,
body:not(.auth-page) .l-btn.c5:not(.l-btn-disabled):hover,
body:not(.auth-page) .l-btn.c6:not(.l-btn-disabled):hover,
body:not(.auth-page) .l-btn.c7:not(.l-btn-disabled):hover,
body:not(.auth-page) button.btn-primary:not(:disabled):hover,
body:not(.auth-page) input[type="submit"].btn-primary:not(:disabled):hover,
body:not(.auth-page) .btn-success:not(:disabled):not(.disabled):hover,
body:not(.auth-page) button.btn-success:not(:disabled):hover,
body:not(.auth-page) .btn-danger:not(:disabled):not(.disabled):hover,
body:not(.auth-page) button.btn-danger:not(:disabled):hover,
body:not(.auth-page) .btn-warning:not(:disabled):not(.disabled):hover,
body:not(.auth-page) button.btn-warning:not(:disabled):hover,
body:not(.auth-page) .btn-info:not(:disabled):not(.disabled):hover,
body:not(.auth-page) button.btn-info:not(:disabled):hover {
    color: #ffffff;
    filter: brightness(1.06);
}

body:not(.auth-page) .btn:not(.btn-link):not(:disabled):not(.disabled):active,
body:not(.auth-page) .l-btn:not(.l-btn-disabled):active,
body:not(.auth-page) button:not(.navbar-toggle):not(:disabled):not(.disabled):active,
body:not(.auth-page) input[type="button"]:not(:disabled):active,
body:not(.auth-page) input[type="submit"]:not(:disabled):active,
body:not(.auth-page) input[type="reset"]:not(:disabled):active {
    box-shadow: 0 1px 3px rgba(24, 48, 79, 0.12);
    transform: translateY(0) scale(0.98);
}

body:not(.auth-page) .btn:not(.btn-link):focus-visible,
body:not(.auth-page) .l-btn:focus-visible,
body:not(.auth-page) button:not(.navbar-toggle):focus-visible,
body:not(.auth-page) input[type="button"]:focus-visible,
body:not(.auth-page) input[type="submit"]:focus-visible,
body:not(.auth-page) input[type="reset"]:focus-visible {
    outline: 3px solid rgba(47, 111, 237, 0.35) !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 5px rgba(47, 111, 237, 0.22);
}

body:not(.auth-page) .l-btn-disabled,
body:not(.auth-page) .btn:disabled,
body:not(.auth-page) .btn.disabled,
body:not(.auth-page) button:disabled,
body:not(.auth-page) button.disabled,
body:not(.auth-page) input[type="button"]:disabled,
body:not(.auth-page) input[type="submit"]:disabled,
body:not(.auth-page) input[type="reset"]:disabled,
body:not(.auth-page) [aria-disabled="true"] {
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.auth-submit {
    transition: transform 160ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.auth-submit:hover {
    box-shadow: 0 16px 28px rgba(47, 111, 237, 0.3);
    transform: translateY(-2px);
    text-decoration: none !important;
}

.auth-submit:active {
    transform: translateY(0) scale(0.99);
}

.password-toggle {
    transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.password-toggle:hover {
    background: #e9f1ff;
    color: #2458c7;
    box-shadow: 0 2px 8px rgba(34, 83, 145, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    body:not(.auth-page) .btn,
    body:not(.auth-page) .l-btn,
    body:not(.auth-page) .easyui-linkbutton,
    body:not(.auth-page) .easyui-menubutton,
    body:not(.auth-page) button,
    body:not(.auth-page) input[type="button"],
    body:not(.auth-page) input[type="submit"],
    body:not(.auth-page) input[type="reset"],
    .auth-submit,
    .password-toggle {
        transition: none !important;
    }

    body:not(.auth-page) .btn:hover,
    body:not(.auth-page) .l-btn:hover,
    body:not(.auth-page) button:hover,
    body:not(.auth-page) input[type="button"]:hover,
    body:not(.auth-page) input[type="submit"]:hover,
    body:not(.auth-page) input[type="reset"]:hover,
    .auth-submit:hover,
    .password-toggle:hover {
        transform: none !important;
    }
}

/* Let every datagrid header wrap at word boundaries while preserving the
   existing single-line body rows and table styling. */
body:not(.auth-page) .panel.datagrid .datagrid-header-row {
    height: auto !important;
}

body:not(.auth-page) .panel.datagrid .datagrid-header .datagrid-cell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    height: auto !important;
    min-height: 44px;
    padding: 0 6px;
    line-height: 16px;
    white-space: normal !important;
    word-break: normal;
    text-align: left !important;
}

body:not(.auth-page) .panel.datagrid .datagrid-header .datagrid-cell > span:first-child:not(.datagrid-sort-icon) {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    height: auto !important;
    min-width: 0;
    min-height: 44px;
    white-space: normal !important;
    word-break: normal;
    text-align: left !important;
}

body:not(.auth-page) .panel.datagrid .datagrid-header .datagrid-cell > .datagrid-sort-icon {
    flex: 0 0 16px;
    height: 16px !important;
    min-height: 0;
    padding: 0;
}

@media (max-width: 767px) {
    body.expertpay-mobile-page .navbar-header > .navbar-toggle {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }

    body.expertpay-mobile-page .navbar-header > .navbar-toggle .icon-bar {
        display: block !important;
        flex: 0 0 2px;
        float: none !important;
        margin: 0 !important;
    }
}

/* Home dashboard refresh */
body.expertpay-home-page .navbar.navbar-inverse.navbar-fixed-top,
body.expertpay-home-page .navbar-fixed-top .container {
    background: linear-gradient(110deg, #0d2d60 0%, #174a91 62%, #1d65ad 100%);
}

body.expertpay-home-page .navbar.navbar-inverse.navbar-fixed-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 24px rgba(13, 39, 82, 0.18);
    background-image:
        radial-gradient(ellipse at 84% 145%, rgba(77, 160, 255, 0.3) 0 24%, transparent 24.3%),
        radial-gradient(ellipse at 96% 138%, rgba(78, 174, 245, 0.2) 0 34%, transparent 34.3%),
        linear-gradient(110deg, #0d2d60 0%, #174a91 62%, #1d65ad 100%);
}

body.expertpay-home-page .navbar-header > .navbar-toggle {
    display: none !important;
}

body.expertpay-home-page .navbar-brand {
    width: 200px;
    background: rgba(5, 27, 62, 0.32);
}

body.expertpay-home-page .navbar-inverse .navbar-nav > li > a {
    color: rgba(255, 255, 255, 0.84);
}

body.expertpay-home-page .navbar-inverse .navbar-nav > li > a:hover,
body.expertpay-home-page .navbar-inverse .navbar-nav > li > a:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

body.expertpay-home-page .responsive-desktop-links > li > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

body.expertpay-home-page .responsive-desktop-links {
    margin-left: 64px;
}

@media (max-width: 1400px) {
    body.expertpay-home-page .navbar-brand {
        width: 180px;
    }

    body.expertpay-home-page .responsive-desktop-links {
        margin-left: 0;
    }
}

body.expertpay-home-page .responsive-desktop-links > li > a svg {
    display: block;
    width: 14px;
    height: 14px;
}

body.expertpay-home-page .responsive-desktop-links > li.active > a {
    color: #ffffff;
    background: linear-gradient(120deg, #248cff, #3974ee);
    border-radius: 999px;
}

/* Use the same active pill for the primary navigation on every page. */
.responsive-desktop-links > li > a {
    transition: color 180ms ease, background-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease, border-radius 180ms ease;
}

.responsive-desktop-links > li.active > a {
    color: #ffffff !important;
    background: linear-gradient(120deg, #248cff, #3974ee) !important;
    border-radius: 999px !important;
    box-shadow: 0 5px 13px rgba(7, 24, 55, 0.18);
    animation: primaryNavActiveIn 180ms ease-out both;
}

@keyframes primaryNavActiveIn {
    from { opacity: 0.75; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

body.expertpay-home-page .layout-panel-west,
body.expertpay-home-page .layout-panel-west > .panel-body,
body.expertpay-home-page #Module,
body.expertpay-home-page #Module .accordion-body {
    background: #0f2d62 !important;
}

body.expertpay-home-page .panel.layout-panel-west > .panel-header,
body.expertpay-home-page .layout-panel-west > .panel-header {
    background: #102f65;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.expertpay-home-page .accordion .accordion-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: #e5efff;
}

body.expertpay-home-page .accordion .accordion-header .panel-title {
    color: inherit;
}

body.expertpay-home-page .accordion .accordion-header-selected {
    border-radius: 10px;
    background: linear-gradient(110deg, #1884ef, #3679f2);
    box-shadow: inset 3px 0 #8de8df, 0 7px 18px rgba(4, 20, 51, 0.18);
}

body.expertpay-home-page #Module .accordion-body {
    margin: 0 8px 8px;
    padding: 5px;
    border-radius: 12px;
    background: rgba(5, 23, 55, 0.38) !important;
    box-shadow: none;
}

body.expertpay-home-page #Module .accordion-body a.block {
    min-height: 40px;
    border-color: transparent;
    background: transparent !important;
    color: #d7e6ff;
}

body.expertpay-home-page #Module .accordion-body a.block:hover,
body.expertpay-home-page #Module .accordion-body a.block.module-page-active {
    border-color: rgba(126, 190, 255, 0.42);
    color: #ffffff !important;
}

body.expertpay-home-page #Module .accordion-body a.block.module-page-active {
    border-left: 3px solid #72e2d5 !important;
    background: linear-gradient(100deg, #267fe9, #246ed0) !important;
    color: #ffffff !important;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(3, 20, 48, 0.22);
}

body.expertpay-home-page #Module .accordion-body a.block img {
    background: transparent;
    filter: brightness(0) invert(1);
}

body.expertpay-home-page #Module .accordion-body a.block.module-page-active img {
    background: transparent !important;
    filter: brightness(0) invert(1) !important;
}

body.expertpay-home-page .layout-panel-west > .panel-header .panel-icon,
body.expertpay-home-page #Module .accordion-header .panel-icon {
    filter: brightness(0) invert(1);
}

body.expertpay-home-page #regionTittle > .panel-header {
    background: #ffffff;
}

body.expertpay-home-page #windowContainer {
    padding: 16px 20px !important;
}

body.expertpay-home-page .dashboard-shell {
    display: grid;
    width: 100%;
    max-width: none;
    gap: 22px;
    margin: 0 auto;
}

body.expertpay-home-page .dashboard-welcome {
    position: relative;
    display: flex;
    min-height: 138px;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    padding: 22px 28px 22px 72px;
    border: 1px solid #d7e9fa;
    border-radius: 20px;
    background:
        radial-gradient(ellipse at 82% 115%, rgba(46, 133, 236, 0.18) 0 24%, transparent 24.5%),
        radial-gradient(ellipse at 100% 15%, rgba(65, 172, 222, 0.15) 0 27%, transparent 27.5%),
        linear-gradient(110deg, #e8f2ff 0%, #f1f7ff 48%, #e5f6f4 100%);
    box-shadow: 0 10px 26px rgba(30, 83, 142, 0.08);
}

body.expertpay-home-page .dashboard-welcome::before {
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 0;
    width: 5px;
    border-radius: 0 8px 8px 0;
    background: linear-gradient(#258aff, #55c9d8);
    content: "";
}

body.expertpay-home-page .dashboard-welcome-copy {
    position: relative;
    z-index: 1;
}

body.expertpay-home-page .dashboard-welcome-art {
    position: absolute;
    right: 15%;
    bottom: 0;
    display: flex;
    height: 88%;
    align-items: flex-end;
    gap: 14px;
    opacity: 0.17;
    pointer-events: none;
}

body.expertpay-home-page .dashboard-welcome-art span {
    position: relative;
    display: block;
    width: 38px;
    height: 72px;
    border-radius: 24px 24px 4px 4px;
    background: #2474c6;
}

body.expertpay-home-page .dashboard-welcome-art span::before {
    position: absolute;
    top: -23px;
    left: 50%;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: inherit;
    content: "";
    transform: translateX(-50%);
}

body.expertpay-home-page .dashboard-welcome-art span:nth-child(2) { height: 92px; }
body.expertpay-home-page .dashboard-welcome-art span:nth-child(3) { height: 106px; width: 48px; }
body.expertpay-home-page .dashboard-welcome-art span:nth-child(4) { height: 82px; }

body.expertpay-home-page .dashboard-welcome-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 4px;
    padding: 4px 13px;
    border-radius: 999px;
    background: linear-gradient(110deg, #5ba4f5, #82b7fa);
    color: #ffffff;
    font-size: 12px;
    font-weight: 750;
}

body.expertpay-home-page .dashboard-welcome h1 {
    margin: 0;
    color: #173b78;
    font-size: clamp(27px, 2vw, 36px);
    font-weight: 850;
    letter-spacing: -0.035em;
}

body.expertpay-home-page .dashboard-welcome p {
    margin: 5px 0 0;
    color: #49658f;
    font-size: 14px;
}

body.expertpay-home-page .dashboard-activity {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #294c7b;
    font-size: 12px;
    font-weight: 750;
    box-shadow: 0 5px 14px rgba(40, 91, 151, 0.07);
}

body.expertpay-home-page .dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

body.expertpay-home-page .dashboard-card {
    display: flex;
    min-height: 130px;
    align-items: flex-start;
    padding: 22px 18px 18px 112px;
    border: 1px solid rgba(222, 232, 247, 0.9);
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(30, 54, 92, 0.06);
}

body.expertpay-home-page .dashboard-card::before {
    top: 18px;
    bottom: 18px;
    width: 3px;
}

body.expertpay-home-page .dashboard-card::after {
    content: none !important;
}

body.expertpay-home-page .dashboard-card-blue { background: linear-gradient(115deg, #f1f7ff, #e5f0ff); color: #2875e6; }
body.expertpay-home-page .dashboard-card-teal { background: linear-gradient(115deg, #f0fbf8, #e1f8f3); color: #18a687; }
body.expertpay-home-page .dashboard-card-violet { background: linear-gradient(115deg, #f8f5ff, #f0eaff); color: #7552e8; }
body.expertpay-home-page .dashboard-card-orange { background: linear-gradient(115deg, #fff8f0, #fff0e1); color: #dd761b; }
body.expertpay-home-page .dashboard-card-indigo { background: linear-gradient(115deg, #f5f5ff, #ecebff); color: #534be2; }
body.expertpay-home-page .dashboard-card-slate { background: linear-gradient(115deg, #f7f9fc, #edf3fa); color: #3b679c; }
body.expertpay-home-page .dashboard-card-blue::before { background: currentColor; }

body.expertpay-home-page .dashboard-card-icon {
    top: 20px;
    left: 22px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    font-size: 22px;
}

body.expertpay-home-page .dashboard-card-icon i {
    line-height: 1;
}

body.expertpay-home-page .dashboard-card-icon svg {
    display: block;
    width: 28px;
    height: 28px;
}

body.expertpay-home-page .dashboard-card-art {
    position: absolute;
    right: 8px;
    bottom: -28px;
    width: 124px;
    height: 124px;
    color: currentColor;
    opacity: 0.12;
    pointer-events: none;
}

body.expertpay-home-page .dashboard-card-art svg {
    display: block;
    width: 100%;
    height: 100%;
}

body.expertpay-home-page .dashboard-card-art-palm {
    right: -5px;
    bottom: -23px;
    width: 142px;
    height: 142px;
}

body.expertpay-home-page .dashboard-card-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2px;
}

body.expertpay-home-page .dashboard-card .dashboard-label {
    color: #183b71;
    font-size: 15px;
    font-weight: 800;
}

body.expertpay-home-page .dashboard-card .dashboard-value {
    margin: 5px 0 0;
    color: #122b61;
    font-size: 36px;
}

body.expertpay-home-page .dashboard-card .dashboard-description {
    color: #526b94;
    font-size: 12px;
}

body.expertpay-home-page .dashboard-card-teal::before,
body.expertpay-home-page .dashboard-card-violet::before,
body.expertpay-home-page .dashboard-card-orange::before,
body.expertpay-home-page .dashboard-card-indigo::before,
body.expertpay-home-page .dashboard-card-slate::before {
    background: currentColor;
}

body.expertpay-home-page .dashboard-quick-links {
    padding: 20px;
    border: 1px solid #e1eaf7;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 26px rgba(30, 54, 92, 0.07);
}

body.expertpay-home-page .dashboard-quick-heading,
body.expertpay-home-page .dashboard-quick-title-wrap {
    display: flex;
    align-items: center;
}

body.expertpay-home-page .dashboard-quick-heading {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

body.expertpay-home-page .dashboard-quick-title-wrap {
    gap: 12px;
}

body.expertpay-home-page .dashboard-quick-bolt {
    color: #2784f4;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

body.expertpay-home-page .dashboard-quick-bolt svg {
    display: block;
    width: 30px;
    height: 36px;
}

body.expertpay-home-page .dashboard-quick-heading h2 {
    margin: 0;
    color: #172f62;
    font-size: 20px;
    font-weight: 850;
}

body.expertpay-home-page .dashboard-quick-heading p {
    margin: 3px 0 0;
    color: #64799a;
    font-size: 12px;
}

body.expertpay-home-page .dashboard-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2379e6;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
}

body.expertpay-home-page .dashboard-quick-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

body.expertpay-home-page .dashboard-quick-link {
    display: flex;
    min-height: 92px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 8px;
    border: 1px solid rgba(222, 232, 247, 0.7);
    border-radius: 16px;
    color: #173c79;
    font-size: 12px;
    font-weight: 750;
    text-align: center;
    text-decoration: none !important;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

body.expertpay-home-page .dashboard-quick-link:hover,
body.expertpay-home-page .dashboard-quick-link:focus {
    transform: translateY(-2px);
    border-color: #b9d4fa;
    color: #124f9f;
    box-shadow: 0 8px 18px rgba(38, 100, 177, 0.12);
}

body.expertpay-home-page .dashboard-quick-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #2678e8;
    font-size: 20px;
}

body.expertpay-home-page .dashboard-quick-icon svg {
    display: block;
    width: 26px;
    height: 26px;
}

body.expertpay-home-page .quick-link-blue { background: #edf4ff; }
body.expertpay-home-page .quick-link-teal { background: #eefaf7; }
body.expertpay-home-page .quick-link-indigo { background: #f0f0ff; }
body.expertpay-home-page .quick-link-cyan { background: #eef8fb; }
body.expertpay-home-page .quick-link-violet { background: #f5f1ff; }
body.expertpay-home-page .quick-link-slate { background: #f3f6fb; }
body.expertpay-home-page .quick-link-teal .dashboard-quick-icon { color: #159c88; }
body.expertpay-home-page .quick-link-indigo .dashboard-quick-icon { color: #484bd6; }
body.expertpay-home-page .quick-link-cyan .dashboard-quick-icon { color: #1587a5; }
body.expertpay-home-page .quick-link-violet .dashboard-quick-icon { color: #6547d5; }
body.expertpay-home-page .quick-link-slate .dashboard-quick-icon { color: #2b659f; }

body.expertpay-home-page #btnFloatingAction {
    border: 1px solid #d8e5f6;
    background: rgba(255, 255, 255, 0.95);
    color: #1c5fb3;
    box-shadow: 0 8px 22px rgba(24, 68, 127, 0.14);
}

@media (max-width: 1100px) {
    body.expertpay-home-page .dashboard-quick-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body.expertpay-home-page .dashboard-welcome {
        min-height: 165px;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 20px 22px;
    }

    body.expertpay-home-page .dashboard-activity {
        padding: 7px 11px;
    }

    body.expertpay-home-page .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    body.expertpay-home-page .dashboard-card {
        min-height: 120px;
        padding: 17px 12px 14px 64px;
    }

    body.expertpay-home-page .dashboard-card-icon {
        top: 17px;
        left: 13px;
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    body.expertpay-home-page .dashboard-card .dashboard-value {
        font-size: 30px;
    }

    body.expertpay-home-page .dashboard-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    body.expertpay-home-page .dashboard-quick-link {
        transition: none;
    }
}

/* Keep the Home dashboard close to the reference while making EasyUI panels readable. */
body.expertpay-home-page .body-content {
    height: calc(100vh - 25px) !important;
    min-height: 0 !important;
    margin-top: 25px !important;
    padding: 0 !important;
    overflow: hidden;
}

body.expertpay-home-page .body-content > p[align="center"] {
    display: none !important;
}

body.expertpay-home-page #cc {
    height: 100% !important;
}

body.expertpay-home-page .layout-panel-west,
body.expertpay-home-page .layout-panel-west > .panel-body,
body.expertpay-home-page #Module,
body.expertpay-home-page #Module > .panel,
body.expertpay-home-page #Module > .panel > .panel-body,
body.expertpay-home-page #Module .accordion-body {
    background-color: #102f65 !important;
    background-image: none !important;
}

body.expertpay-home-page #Module .accordion-header,
body.expertpay-home-page #Module .accordion-header .panel-title {
    background-color: transparent !important;
    background-image: none !important;
    color: #e5efff !important;
}

body.expertpay-home-page #Module .accordion-header .panel-icon {
    background-color: transparent !important;
    color: #ffffff !important;
}

body.expertpay-home-page #Module .accordion-header-selected,
body.expertpay-home-page #Module .accordion-header-selected .panel-title {
    background: linear-gradient(105deg, #2385f4, #2f77e8) !important;
    color: #ffffff !important;
}

body.expertpay-home-page #Module .accordion-header-selected {
    padding-left: 44px !important;
    border-radius: 9px !important;
    box-shadow: inset 4px 0 #73e2d5, 0 5px 13px rgba(3, 20, 48, 0.2) !important;
}

body.expertpay-home-page #Module .accordion-body {
    border-radius: 0 0 10px 10px;
    background: #eaf3ff !important;
}

body.expertpay-home-page #Module .accordion-body a.block,
body.expertpay-home-page #Module .accordion-body a.block:visited {
    border-color: transparent;
    background: transparent !important;
    color: #173d73 !important;
}

body.expertpay-home-page #Module .accordion-body a.block img {
    background: transparent !important;
    filter: none !important;
}

body.expertpay-home-page #Module .accordion-body a.block:hover {
    border-color: #c5dcfa;
    background: #dceaff !important;
    color: #104f9e !important;
}

body.expertpay-home-page #Module .accordion-body a.block.module-page-active,
body.expertpay-home-page #Module .accordion-body a.block.module-page-active:hover {
    border-color: #b5d2f7;
    border-left: 3px solid #247ded !important;
    background: #cfe3ff !important;
    color: #123d77 !important;
    box-shadow: inset 0 0 0 1px rgba(36, 125, 237, 0.08);
}

/* Warm submenu cards inspired by the expanded-module reference. */
body.expertpay-home-page #Module .accordion-body {
    margin: 0 8px 8px;
    padding: 7px 8px 8px;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(115deg, #f5f5ff, #ecebff) !important;
    box-shadow: inset 3px 0 #f2a35d;
}

body.expertpay-home-page #Module .accordion-body a.block,
body.expertpay-home-page #Module .accordion-body a.block:visited {
    min-height: 40px;
    margin: 0 0 5px;
    padding: 7px 10px;
    border: 1px solid #f4d4b6 !important;
    border-radius: 9px;
    background: #fffaf5 !important;
    color: #24405f !important;
    box-shadow: 0 1px 2px rgba(130, 76, 30, 0.04);
}

body.expertpay-home-page #Module .accordion-body a.block:last-child {
    margin-bottom: 0;
}

body.expertpay-home-page #Module .accordion-body a.block img {
    width: 23px !important;
    height: 23px !important;
    margin-right: 9px;
    padding: 4px;
    border-radius: 6px;
    background: #e7edf3 !important;
    filter: none !important;
}

body.expertpay-home-page #Module .accordion-body a.block:hover,
body.expertpay-home-page #Module .accordion-body a.block.module-page-active,
body.expertpay-home-page #Module .accordion-body a.block.module-page-active:hover {
    border-color: #edb77f !important;
    border-left: 1px solid #edb77f !important;
    background: #ffecd9 !important;
    color: #713f16 !important;
    box-shadow: 0 2px 7px rgba(155, 89, 28, 0.09);
}

body.expertpay-home-page #Module .accordion-body a.block.module-page-active img {
    background: #f8d7b5 !important;
}

body.expertpay-home-page #Module .accordion-header-selected .panel-icon {
    background-color: transparent !important;
}

body.expertpay-home-page #Module .accordion-body a.block,
body.expertpay-home-page #Module .accordion-body a.block:visited {
    color: #d7e6ff !important;
}

body.expertpay-home-page .dashboard-view-all span {
    font-size: 16px;
    line-height: 1;
}

/* Match the reference's highlighted first module and visible module icons. */
body.expertpay-home-page #Module .accordion-header {
    padding-left: 44px !important;
}

body.expertpay-home-page #Module .accordion-header .panel-icon {
    left: 20px !important;
    width: 20px !important;
    height: 20px !important;
    margin-top: -10px !important;
}

/* Keep the module rail clean, without row dividers or a bright edge seam. */
body.expertpay-home-page .panel.layout-split-west,
body.expertpay-home-page .layout-split-west,
body.expertpay-home-page .layout-panel-west,
body.expertpay-home-page .layout-panel-west > .panel-header,
body.expertpay-home-page .layout-panel-west > .panel-body,
body.expertpay-home-page #Module,
body.expertpay-home-page #Module > .panel,
body.expertpay-home-page #Module > .panel > .panel-header {
    border-left: 0 !important;
    border-right: 0 !important;
    box-shadow: none;
}

body.expertpay-home-page #Module .accordion-header,
body.expertpay-home-page #Module .accordion-header-selected {
    border: 0 !important;
}

/* Align the desktop shell with the compact reference dashboard. */
body.expertpay-home-page .navbar-header > .navbar-toggle {
    display: flex !important;
    width: 60px;
    height: 64px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

body.expertpay-home-page .navbar-header {
    display: flex;
    align-items: center;
}

body.expertpay-home-page .navbar-brand {
    order: 0;
}

body.expertpay-home-page .navbar-header > .navbar-toggle {
    order: 1;
}

body.expertpay-home-page .navbar-header > .navbar-toggle .icon-bar {
    display: block !important;
    width: 24px;
    height: 3px;
    margin: 0;
    border-radius: 3px;
    background: #ffffff;
}

body.expertpay-home-page .navbar-brand {
    box-sizing: border-box;
    width: 200px;
    padding-right: 15px;
    padding-left: 15px;
}

body.expertpay-home-page .responsive-desktop-links {
    margin-left: 0;
}

body.expertpay-home-page .layout-panel-west > .panel-header {
    height: 66px !important;
    padding-top: 22px !important;
    padding-bottom: 22px !important;
}

body.expertpay-home-page .layout-panel-west > .panel-header .panel-title {
    font-size: 14px;
    letter-spacing: 0.025em;
}

body.expertpay-home-page .dashboard-shell {
    gap: 18px;
}

body.expertpay-home-page .dashboard-welcome {
    min-height: 138px;
    border-radius: 16px;
    background:
        radial-gradient(ellipse at 81% 130%, rgba(44, 130, 236, 0.2) 0 29%, transparent 29.5%),
        radial-gradient(ellipse at 100% 7%, rgba(65, 172, 222, 0.13) 0 26%, transparent 26.5%),
        linear-gradient(108deg, #e6f0ff 0%, #f1f7ff 49%, #e5f4ff 100%);
}

body.expertpay-home-page .dashboard-welcome h1 {
    font-weight: 800;
    letter-spacing: -0.025em;
}

@media (max-width: 767px) {
    body.expertpay-home-page .navbar-header > .navbar-toggle {
        display: none !important;
    }
}

/* Give the module rail one full-height scroll area instead of a clipped submenu scroll area. */
body.expertpay-home-page .layout-panel-west > .panel-body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(122, 190, 255, 0.72) rgba(4, 22, 53, 0.35);
    scrollbar-gutter: stable;
}

body.expertpay-home-page .layout-panel-west > .panel-body::-webkit-scrollbar {
    width: 8px;
}

body.expertpay-home-page .layout-panel-west > .panel-body::-webkit-scrollbar-track {
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(4, 22, 53, 0.35);
    background-clip: padding-box;
}

body.expertpay-home-page .layout-panel-west > .panel-body::-webkit-scrollbar-thumb {
    min-height: 42px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: linear-gradient(180deg, #8be5df, #5ba9ff);
    background-clip: padding-box;
}

body.expertpay-home-page .layout-panel-west > .panel-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #b2f5ed, #82c2ff);
    background-clip: padding-box;
}

body.expertpay-home-page #Module .accordion-body {
    max-height: none !important;
    overflow: visible !important;
}

@media (min-width: 601px) {
    body.expertpay-home-page #cc {
        --home-sidebar-width: clamp(240px, 17vw, 300px);
        overflow: hidden !important;
    }

    body.expertpay-home-page #cc > .layout-panel-west {
        display: block !important;
        visibility: visible !important;
        left: 0 !important;
        width: var(--home-sidebar-width) !important;
    }

    body.expertpay-home-page #cc > .layout-panel-west > .panel-body {
        display: block !important;
        visibility: visible !important;
    }

    body.expertpay-home-page #cc > .layout-panel-center {
        left: calc(var(--home-sidebar-width) + 4px) !important;
        width: calc(100% - var(--home-sidebar-width) - 4px) !important;
    }

    body.expertpay-home-page #cc > .layout-expand-west {
        display: none !important;
    }
}

/* Keep the warm submenu tint, but return entries to a simple flat list. */
body.expertpay-home-page #Module .accordion-body {
    padding: 6px 8px 8px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(115deg, #f5f5ff, #ecebff) !important;
}

body.expertpay-home-page #Module .accordion-body a.block,
body.expertpay-home-page #Module .accordion-body a.block:visited {
    min-height: 40px;
    margin: 0;
    padding: 7px 10px;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    color: #24405f !important;
    box-shadow: none;
}

body.expertpay-home-page #Module .accordion-body a.block img {
    padding: 0;
    border-radius: 0;
    background: transparent !important;
}

body.expertpay-home-page #Module .accordion-body a.block:hover {
    background: #ffead3 !important;
    color: #713f16 !important;
}

body.expertpay-home-page #Module .accordion-body a.block.module-page-active,
body.expertpay-home-page #Module .accordion-body a.block.module-page-active:hover {
    border: 0 !important;
    border-left: 3px solid #eea45d !important;
    background: #ffe5c8 !important;
    color: #713f16 !important;
    box-shadow: none;
}

/* EasyUI renders each expanded accordion section as a panel body. */
body.expertpay-home-page #Module > .panel > .panel-body {
    background: linear-gradient(115deg, #f5f5ff, #ecebff) !important;
}

body.expertpay-home-page #Module > .panel > .panel-body a.block,
body.expertpay-home-page #Module > .panel > .panel-body a.block:visited {
    color: #24405f !important;
}

body.expertpay-home-page #Module > .panel > .panel-body a.block:hover {
    background: #ffead3 !important;
    color: #713f16 !important;
}

body.expertpay-home-page #Module > .panel > .panel-body a.block.module-page-active,
body.expertpay-home-page #Module > .panel > .panel-body a.block.module-page-active:hover {
    border-left: 3px solid #eea45d !important;
    background: #ffe5c8 !important;
    color: #713f16 !important;
}

body.expertpay-home-page #Module > .panel > .panel-body a.block.module-page-active img {
    background: #e5eef8 !important;
    filter: none !important;
}

body.expertpay-home-page .navbar-header > .navbar-toggle {
    display: none !important;
}

body.expertpay-home-page .profile-menu-form.navbar-right {
    margin-top: 3px !important;
}

body.expertpay-home-page .layout-panel-west > .panel-header .panel-tool,
body.expertpay-home-page #cc > .layout-split-west .layout-button-left,
body.expertpay-home-page #cc > .layout-split-west .layout-button-right {
    display: none !important;
}

body.expertpay-home-page .sidebar-dashboard-link,
body.expertpay-home-page .sidebar-dashboard-link:hover,
body.expertpay-home-page .sidebar-dashboard-link:focus {
    color: #ffffff !important;
    text-decoration: none !important;
}

body.expertpay-home-page .sidebar-dashboard-link:focus-visible {
    outline: 2px solid #82c7ff;
    outline-offset: 3px;
}

body.expertpay-home-page .navbar-brand {
    background: transparent !important;
    border-right: 0 !important;
}

body.expertpay-home-page .responsive-desktop-links {
    margin-left: 40px;
}

body:not(.auth-page) #DtrManualFiling.filing-entry-window {
    width: min(1000px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
}

body:not(.auth-page) #DtrManualFiling .window-body > .table2 {
    box-sizing: border-box;
    width: 100% !important;
    table-layout: fixed;
}

body:not(.auth-page) #DtrManualFiling #dg-DtrManualFiling,
body:not(.auth-page) #DtrManualFiling .panel.datagrid,
body:not(.auth-page) #DtrManualFiling .panel.datagrid .datagrid-wrap,
body:not(.auth-page) #DtrManualFiling .panel.datagrid .datagrid-view {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
}

body:not(.auth-page) #DtrManualFiling .panel.datagrid .datagrid-view2 {
    right: 0 !important;
    max-width: none !important;
}

/* Keep the Home header treatment consistent across the desktop site. */
body:not(.auth-page):not(.expertpay-mobile-page) .navbar.navbar-inverse.navbar-fixed-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background-color: #174a91;
    background-image:
        radial-gradient(ellipse at 84% 145%, rgba(77, 160, 255, 0.3) 0 24%, transparent 24.3%),
        radial-gradient(ellipse at 96% 138%, rgba(78, 174, 245, 0.2) 0 34%, transparent 34.3%),
        linear-gradient(110deg, #0d2d60 0%, #174a91 62%, #1d65ad 100%);
    box-shadow: 0 8px 24px rgba(13, 39, 82, 0.18);
}

body:not(.auth-page):not(.expertpay-mobile-page) .navbar-fixed-top .container {
    background: linear-gradient(110deg, #0d2d60 0%, #174a91 62%, #1d65ad 100%);
}

body:not(.auth-page):not(.expertpay-mobile-page) .navbar-brand {
    width: 200px;
    border-right: 0 !important;
    background: transparent !important;
}

body:not(.auth-page):not(.expertpay-mobile-page) .navbar-inverse .navbar-nav > li > a {
    color: rgba(255, 255, 255, 0.84);
}

body:not(.auth-page):not(.expertpay-mobile-page) .navbar-inverse .navbar-nav > li > a:hover,
body:not(.auth-page):not(.expertpay-mobile-page) .navbar-inverse .navbar-nav > li > a:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

body:not(.auth-page):not(.expertpay-mobile-page) .responsive-desktop-links {
    margin-left: 40px;
}

body:not(.auth-page):not(.expertpay-mobile-page) .responsive-desktop-links > li > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

body:not(.auth-page):not(.expertpay-mobile-page) .responsive-desktop-links > li > a svg {
    display: block;
    width: 14px;
    height: 14px;
}

body:not(.auth-page):not(.expertpay-mobile-page) .profile-menu-form.navbar-right {
    margin-top: 3px !important;
}

body:not(.auth-page) .navbar-nav.navbar-right > li > a#loginLink {
    display: inline-flex;
    width: auto;
    min-width: 70px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 7px 14px;
    line-height: 28px;
    white-space: nowrap;
}

@media (max-width: 1400px) {
    body:not(.auth-page):not(.expertpay-mobile-page) .navbar-brand {
        width: 180px;
    }

    body:not(.auth-page):not(.expertpay-mobile-page) .responsive-desktop-links {
        margin-left: 0;
    }
}

body:not(.auth-page) #DtrManualFiling .panel.datagrid td[field="flag"] .datagrid-editable,
body:not(.auth-page) #DtrManualFiling .panel.datagrid td[field="flag"] .datagrid-editable table {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

body:not(.auth-page) #DtrManualFiling .panel.datagrid td[field="flag"] .datagrid-editable table {
    table-layout: fixed;
}

body:not(.auth-page) #DtrManualFiling .panel.datagrid td[field="flag"] .datagrid-editable .combo {
    box-sizing: border-box !important;
    width: calc(100% - 24px) !important;
    min-width: 0 !important;
    max-width: calc(100% - 24px) !important;
}

body.expertpay-home-page #Module .panel-icon.sidebar-module-icon {
    display: grid !important;
    place-items: center;
    background: none !important;
    background-image: none !important;
    color: #ffffff !important;
    filter: none !important;
}

body.expertpay-home-page #Module .sidebar-module-icon .glyphicon {
    color: inherit;
    font-family: "Glyphicons Halflings";
    font-size: 15px;
    line-height: 1;
}

body.expertpay-home-page #Module .sidebar-submenu-icon {
    display: inline-grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    margin-right: 9px;
    color: #566cac;
    font-family: "Glyphicons Halflings";
    font-size: 14px;
    line-height: 1;
}

body.expertpay-home-page #Module a.block.module-page-active .sidebar-submenu-icon {
    color: #244b91;
}

/* Keep the primary navigation compact on every non-authenticated route. */
@media (min-width: 768px) {
    body:not(.auth-page) .navbar-header {
        height: 64px;
        display: flex;
        align-items: center;
    }

    body:not(.auth-page) .responsive-desktop-links {
        display: flex;
        align-items: center;
        margin-left: 40px;
    }

    body:not(.auth-page) .responsive-desktop-links > li > a {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        white-space: nowrap;
    }

    body:not(.auth-page) .responsive-desktop-links > li > a svg {
        display: block;
        flex: 0 0 14px;
        width: 14px;
        height: 14px;
    }
}
