/* Shared application theme. Page-specific styles may extend these defaults. */
body.app-modern {
    --app-ink: #192c45;
    --app-muted: #61738b;
    --app-line: #e3eaf2;
    --app-primary: #176bcc;
    color: var(--app-ink);
    background: #f4f7fb;
    -webkit-font-smoothing: antialiased;
}

body.app-modern #kt_header {
    position: sticky;
    top: 0;
    z-index: 97;
    height: 80px;
    background: #fff;
    border-bottom: 1px solid var(--app-line);
    box-shadow: 0 4px 24px #192c4505;
}

body.app-modern #kt_wrapper { padding-top: 0; min-width: 0; width: 100%; }
body.app-modern #kt_header > .container-xxl,
body.app-modern #kt_toolbar_container { max-width: 1800px; width: 100%; }

.app-modern .app-brand { display: flex; align-items: center; gap: 12px; }
.app-modern .app-brand-logo { width: 64px; height: 42px; object-fit: contain; }
.app-modern .app-brand-copy { display: flex; flex-direction: column; gap: 2px; padding-left: 12px; border-left: 1px solid var(--app-line); }
.app-modern .app-brand-copy strong { font-size: 14px; color: var(--app-ink); font-weight: 600; }
.app-modern .app-brand-copy > span { font-size: 10px; font-weight: 600; letter-spacing: .16em; color: var(--app-muted); }

body.app-modern #kt_header .header-menu .menu > .menu-item > .menu-link {
    color: var(--app-muted);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    transition: background-color .15s, color .15s;
}
/* Metronic's non-sticky header also sets white text for every interaction state. */
body.app-modern .header-menu .menu > .menu-item > .menu-link .menu-title { color: inherit !important; }
body.app-modern .header-menu .menu > .menu-item > .menu-link .menu-arrow::after {
    background-image: none !important;
    background-color: transparent !important;
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
}
body.app-modern .header-menu .menu > .menu-item > .menu-link:hover,
body.app-modern .header-menu .menu > .menu-item.hover > .menu-link,
body.app-modern .header-menu .menu > .menu-item > .menu-link.active,
body.app-modern .header-menu .menu > .menu-item.here > .menu-link,
body.app-modern .header-menu .menu > .menu-item.show > .menu-link {
    background: #eaf3ff !important;
    color: #145caf !important;
}
.app-modern .menu-sub-dropdown,
.app-modern .menu-sub-lg-dropdown { border: 1px solid var(--app-line); border-radius: 14px !important; box-shadow: 0 14px 45px #192c4514; }
body.app-modern .topbar .btn.btn-custom { color: var(--app-muted); background: #f0f5fb; border-radius: 12px; }
body.app-modern .topbar .btn.btn-custom .svg-icon,
body.app-modern .topbar .btn.btn-custom i { color: var(--app-muted) !important; }
.app-modern #kt_header_user_menu_toggle img { object-fit: cover; border-radius: 10px !important; }

body.app-modern #kt_toolbar { padding: 30px 0 24px; }
.app-modern .app-section-label { color: var(--app-muted); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.app-modern .app-page-heading { color: var(--app-ink); font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.035em; line-height: 1.3; }
.app-modern #kt_toolbar .breadcrumb { gap: 6px; margin-bottom: 0; }
.app-modern #kt_toolbar .breadcrumb,
.app-modern #kt_toolbar .breadcrumb a,
.app-modern #kt_toolbar .breadcrumb-item { color: var(--app-muted); font-size: 12px; font-weight: 400; }
.app-modern #kt_toolbar .breadcrumb a:hover { color: var(--app-primary); }
.app-modern #kt_content_container { max-width: 1800px; margin: 0 auto; padding-bottom: 36px; }
.app-modern #kt_content { min-width: 0; width: 100%; flex: 1 1 0; }
.app-modern #kt_toolbar .breadcrumb-item { white-space: normal; overflow-wrap: anywhere; }

.app-modern .card { border: 1px solid var(--app-line); border-radius: 16px; box-shadow: 0 5px 24px #192c4506; }
.app-modern .card .card-header { background-color: transparent; border-bottom: 1px solid #edf1f6; border-radius: 16px 16px 0 0; min-height: 64px; padding: 16px 24px; }
.app-modern .card .card-body { padding: 24px !important; }
.app-modern .card .card-title { color: var(--app-ink); font-weight: 600; }
.app-modern .form-label { color: #40536b; font-weight: 500; }
.app-modern .form-control,
.app-modern .form-select,
.app-modern .select2-container--bootstrap5 .select2-selection { border: 1px solid #dce5ef; border-radius: 9px; background-color: #fff; color: var(--app-ink); }
.app-modern .form-control:focus,
.app-modern .form-select:focus { border-color: #71a7e5; box-shadow: 0 0 0 3px #176bcc12; }
.app-modern .input-group-text { border-color: #dce5ef; background: #f5f8fc; color: var(--app-muted); }
.app-modern .btn { border-radius: 9px; font-weight: 500; }
.app-modern .btn.btn-primary { background-color: var(--app-primary); border-color: var(--app-primary); }
.app-modern .btn.btn-primary:hover:not(.btn-active) { background-color: #145caf !important; border-color: #145caf !important; }
.app-modern .btn.btn-light-primary { background: #eaf3ff; color: #145caf; }
.app-modern .btn.btn-secondary { background: #e9eff6; border-color: #e9eff6; color: #40536b; }
.app-modern a:focus-visible,
.app-modern button:focus-visible { outline: 3px solid #71a7e5; outline-offset: 3px; }

.app-modern .table { color: #40536b; }
.app-modern .table > thead > tr > th { background-color: #f5f8fc; color: #61738b; font-weight: 600; font-size: 12px; padding-top: 14px; padding-bottom: 14px; }
.app-modern .table > tbody > tr > td { border-bottom-color: #edf1f6; vertical-align: middle; }
.app-modern .table-hover > tbody > tr:hover > * { --bs-table-accent-bg: #f5f9ff; }
.app-modern .badge { border-radius: 6px; }
.app-modern .page-item.active .page-link { background-color: var(--app-primary); }
.app-modern .modal-content { border: 1px solid var(--app-line); border-radius: 18px; box-shadow: 0 24px 80px #192c4526; }
.app-modern .modal-header { border-bottom-color: var(--app-line); }

@media (min-width: 992px) {
    .app-modern #kt_header .header-logo { margin-right: 24px !important; }
    .app-modern .header-menu > .menu { gap: 3px; }
    .app-modern .header-menu > .menu > .menu-item > .menu-link { padding-left: 12px; padding-right: 12px; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .app-modern .app-brand-copy { display: none; }
    .app-modern #kt_header .header-logo { margin-right: 12px !important; }
    .app-modern .header-menu > .menu > .menu-item > .menu-link { padding-left: 8px; padding-right: 8px; font-size: 11px; }
}
@media (max-width: 991.98px) {
    body.app-modern #kt_header { height: 68px; }
    body.app-modern #kt_toolbar { padding: 24px 0 18px; }
    .app-modern .header-menu.drawer { padding: 16px; background: #fff; }
    .app-modern .card .card-body { padding: 18px !important; }
    .app-modern .card .card-header { padding: 14px 18px; }
}
@media (max-width: 575.98px) {
    .app-modern .app-brand-logo { width: 50px; height: 36px; }
    .app-modern .app-brand-copy strong { font-size: 12px; }
    .app-modern #kt_toolbar_container { gap: 12px; }
    .app-modern .card { border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .app-modern .menu-link { transition: none !important; }
}

.app-modern .supplier-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
.app-modern .supplier-status-badge > i {
    color: inherit;
    font-size: 13px;
    line-height: 1;
    width: 14px;
    flex: 0 0 14px;
    text-align: center;
}
.app-modern .supplier-status-pending,
.app-modern .supplier-status-expiring { color: #855400; background: #fff4d6; border-color: #f4dfa3; }
.app-modern .supplier-status-approved,
.app-modern .supplier-status-valid { color: #17673b; background: #e4f5ea; border-color: #bde3cc; }
.app-modern .supplier-status-rejected,
.app-modern .supplier-status-expired { color: #a92439; background: #fde9ed; border-color: #f2c2cb; }
.app-modern .supplier-status-unknown,
.app-modern .supplier-status-missing { color: #52637b; background: #eef2f7; border-color: #d8e1ec; }

/* Public evaluation form */
body.public-evaluation { background: #f3f6fb; color: #192c45; font-family: Poppins, Arial, sans-serif; }
.public-evaluation #kt_wrapper { padding-top: 0; }
.public-evaluation #kt_header { position: relative; height: 82px; background: #fff; border-bottom: 1px solid #e0e8f2; box-shadow: none; }
.public-evaluation #kt_header .container-xxl { max-width: 1080px; }
.public-evaluation-logo { display: block; width: 125px; height: auto; }
.public-header-label { font-size: 12px; color: #61738b; }
.public-evaluation #kt_content_container { max-width: 1080px; margin: 0 auto; padding: 32px 20px 48px; }
.public-evaluation #kt_content { padding: 0; }
.public-evaluation-row { margin-top: 0; }
.public-evaluation-column { max-width: 940px; }
.public-evaluation .card { border: 1px solid #e0e8f2; border-radius: 12px; box-shadow: none; }
.public-evaluation .public-form-card { box-shadow: 0 6px 28px #192c4505; }
.public-evaluation .public-form-card > .card-body { padding: 32px; }
.public-form-heading { border-bottom: 1px solid #e0e8f2; padding-bottom: 24px; margin-bottom: 24px; }
.public-eyebrow { color: #176bcc; text-transform: uppercase; font-size: 10px; font-weight: 600; letter-spacing: 1px; }
.public-form-heading h1 { margin: 10px 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.4; color: #192c45; }
.public-evaluation-name { font-size: 13px; color: #61738b; margin-bottom: 18px; }
.public-form-meta { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; font-size: 11px; color: #61738b; }
.public-form-meta strong { color: #40536b; font-weight: 500; }
.public-state { padding: 6px 10px; border-radius: 6px; background: #eaf3ff; color: #145caf; }
.public-instructions { padding: 18px 20px; margin-bottom: 24px; border: 1px solid #d5e5fa; background: #f1f7ff; border-radius: 9px; font-size: 13px; }
.public-instructions p { margin: 6px 0 0; font-size: 12px; line-height: 1.8; color: #536780; white-space: pre-line; }
.public-evaluation .form-answers { padding: 0 !important; }
.public-evaluation #sortableList { gap: 18px; }
.public-evaluation .cardField { padding: 0; overflow: hidden; }
.public-evaluation .cardField .card-header { min-height: 0; padding: 18px 20px; background: #f8fafc; border-bottom: 1px solid #e0e8f2; }
.public-evaluation .cardField h2 { font-size: 14px; font-weight: 600; line-height: 1.7; color: #192c45; }
.public-evaluation .cardField .card-body { padding: 20px; }
.public-evaluation .cardField .card-body > p { font-size: 12px; color: #61738b; line-height: 1.8; }
.public-evaluation .form-label { font-size: 12px !important; color: #40536b; }
.public-evaluation .fv-row { margin-bottom: 0 !important; }
.public-evaluation .form-control { border: 1px solid #dce5ef; background: #fff; border-radius: 8px; font-size: 13px; color: #192c45; }
.public-evaluation .form-control:focus { border-color: #71a7e5; box-shadow: 0 0 0 3px #176bcc12; }
.public-evaluation .form-control:disabled { background: #f7f9fc; color: #40536b; opacity: 1; }
.public-evaluation textarea.form-control { min-height: 120px; line-height: 1.8; }
.public-evaluation .btn { border-radius: 8px; font-size: 12px; padding: 11px 18px; }
.public-evaluation .btn-primary { background: #176bcc; border-color: #176bcc; }
.public-evaluation #addFormGradeNum { max-width: none !important; margin: 24px 0 !important; padding: 18px 20px !important; border: 1px solid #e0e8f2; border-radius: 9px; background: #f8fafc; }
.public-evaluation #addFormGradeNum .input-group { margin: 0 !important; display: flex; gap: 15px; align-items: center; }
.public-evaluation #addFormGradeNum label span { font-size: 14px !important; }
.public-evaluation #formGradeNum { max-width: 140px; flex: none; }
.public-evaluation #signatureForm .modal-body { padding: 20px 0; margin: 0 !important; }
.public-signature-hint { font-size: 11px; font-weight: 400; color: #61738b; margin: 0 0 0 12px; }
.public-evaluation #signature-pad { width: 100%; height: 200px; border: 1px dashed #9fb9d9; border-radius: 10px; background: #fff; cursor: crosshair; box-sizing: border-box; touch-action: none; }
.public-evaluation .save-answer-btn { margin-top: 20px; min-width: 210px; }
@media (max-width: 575px) {
    .public-evaluation #kt_header { height: 70px; }
    .public-evaluation-logo { width: 105px; }
    .public-header-label { font-size: 10px; }
    .public-evaluation #kt_content_container { padding: 18px 10px 30px; }
    .public-evaluation .public-form-card > .card-body { padding: 18px; }
    .public-evaluation .cardField .card-header, .public-evaluation .cardField .card-body { padding: 15px; }
    .public-evaluation #signatureForm .form-label { flex-wrap: wrap; gap: 6px; }
    .public-signature-hint { margin-left: 0; }
    .public-evaluation .save-answer-btn { width: 100%; }
}

/* Evaluation workspace */
.evaluation-workspace { color: #192c45; }
    .evaluation-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
    .evaluation-eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #6c7e95; }
    .evaluation-page-heading p, .evaluation-sidebar .card-header p { font-size: 12px; color: #6c7e95; margin: 0; }
    .evaluation-layout > * { min-width: 0; }
    .evaluation-sidebar .card-header h3 { font-size: 14px; margin: 0 0 6px; }
    .evaluation-sidebar .card-body { padding: 16px !important; }
    .evaluation-count { margin-left: 7px; color: #176bcc; background: #eaf3ff; font-size: 11px; padding: 3px 7px; border-radius: 6px; }
    .evaluation-search > i { position: absolute; top: 14px; left: 12px; font-size: 12px; color: #7b8da3; }
    .evaluation-search .form-control { padding-left: 34px; font-size: 11px; min-height: 40px; }
    .evaluation-entry:last-child { margin-bottom: 0; }
    .evaluation-entry-heading > .dropdown { flex-shrink: 0; }
    .evaluation-toggle { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; padding: 0; color: #40536b; }
    .evaluation-toggle[aria-expanded="true"] strong { color: #176bcc; }
    .evaluation-entry-label { font-size: 10px; color: #6c7e95; }
    .evaluation-entry-meta { display: block; font-size: 10px; line-height: 1.7; color: #6c7e95; font-weight: 400; }
    .evaluation-form-row .load-form > i { color: #7b8da3; font-size: 14px; margin-top: 3px; }
    .evaluation-form-row .load-form:hover { background: #f5f8fc; }
    .evaluation-form-row .load-form.active > i { color: inherit; }
    .evaluation-workspace .btn-icon { width: 28px; height: 30px; }
    .evaluation-workspace .btn-icon i { font-size: 11px; padding: 0; }
    .evaluation-sidebar-empty { font-size: 11px; color: #6c7e95; padding: 12px 8px; margin: 0; line-height: 1.7; }
    .evaluation-content-empty > i { color: #176bcc; background: #eaf3ff; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 14px; font-size: 22px; margin-bottom: 22px; }
    .evaluation-content-empty h3 { font-size: 17px; }
    .evaluation-content-empty p { max-width: 380px; font-size: 12px; line-height: 1.8; color: #6c7e95; margin: 0; }
    .evaluation-form-content #form-content > .row { margin: 0; }
    .evaluation-form-content #form-content > .row > .col-md-12 { padding: 0; }
    .evaluation-form-content #form-content .card h1 { font-size: 22px; }
    .evaluation-form-row .load-form.active { background: #f1f7ff; color: #176bcc; border-color: #cfe0f7; }
    .evaluation-form-row .load-form > span { flex: 1; min-width: 0; }
    .evaluation-form-date > span { color: #6c7e95; }
    .evaluation-form-date time { font-variant-numeric: tabular-nums; }
    .evaluation-reader-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
    .evaluation-reader-heading h1 { margin: 6px 0 0; line-height: 1.4; }
    .evaluation-reader-heading .btn { flex-shrink: 0; font-size: 12px; }
    .evaluation-reader-period { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 20px 0; padding: 14px 0; border-top: 1px solid #edf1f6; border-bottom: 1px solid #edf1f6; font-size: 12px; color: #536780; }
    .evaluation-reader-description { margin: 0 0 22px; font-size: 13px; color: #536780; }
    .evaluation-reader .cardField { background: #fff; border: 1px solid #e2e9f2; border-radius: 12px; margin-bottom: 16px; }
    .evaluation-reader .cardField .fv-row { margin-bottom: 0 !important; }
    @media (max-width: 575.98px) {
        .evaluation-reader-heading { flex-direction: column; }
        .evaluation-reader > .card-body { padding: 18px !important; }
        .evaluation-reader-period { gap: 10px; }
    }
    .evaluation-assignment-modal .modal-dialog { max-width: 640px; }
    .evaluation-assignment-modal .modal-header, .evaluation-assignment-modal .modal-body { padding: 24px; }
    .evaluation-assignment-modal .modal-header h2 { font-size: 18px; margin-bottom: 6px; }
    .evaluation-assignment-modal .modal-header p { font-size: 12px; color: #6c7e95; margin: 0; }
    .assignment-date-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .evaluation-assignment-modal .form-label, .evaluation-assignment-modal .form-control, .evaluation-assignment-modal .form-select { font-size: 12px; }
    .evaluation-assignment-modal .modal-footer { padding: 16px 24px; }
    @media (max-width: 991.98px) { .evaluation-layout { grid-template-columns: minmax(0, 1fr); } }
    @media (max-width: 575.98px) {
        .evaluation-page-heading { flex-direction: column; align-items: start; gap: 14px; }
        .assignment-date-grid { grid-template-columns: minmax(0, 1fr); }
        .evaluation-page-heading h2 { font-size: 20px; }
    }
    .evaluation-workspace .card { border: 1px solid #e0e8f2; border-radius: 12px; box-shadow: 0 4px 18px rgba(25, 44, 69, .025); }
    .evaluation-workspace .evaluation-page-heading { padding: 22px 24px; margin-bottom: 22px; background: #fff; flex-direction: row; }
    .evaluation-page-heading h2 { font-size: 20px; margin: 8px 0; }
    .evaluation-heading-actions { display: flex; flex-wrap: wrap; gap: 10px; }
    .evaluation-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 22px; align-items: start; }
    .evaluation-layout-without-forms { grid-template-columns: minmax(0, 1fr); }
    .evaluation-sidebar .card-header { padding: 20px !important; min-height: 0; background: #fff; border-radius: 12px 12px 0 0; }
    .evaluation-search { display: block; position: relative; margin-bottom: 14px; }
    #evaluations-list { list-style: none; padding: 0; margin: 0; }
    .evaluation-entry { border: 1px solid #e3eaf2; border-radius: 10px; margin-bottom: 12px; background: #fff; overflow-wrap: anywhere; }
    .evaluation-entry-heading { display: flex; align-items: start; gap: 4px; padding: 14px; background: #f7f9fc; border-radius: 10px 10px 0 0; }
    .evaluation-toggle strong { font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; color: #192c45; }
    .evaluation-form-list { list-style: none; padding: 8px; margin: 0; border-top: 1px solid #edf1f6; }
    .evaluation-form-row { display: flex; align-items: start; gap: 3px; margin-bottom: 4px; position: relative; }
    .evaluation-form-row .load-form { display: flex; align-items: start; gap: 9px; flex: 1; min-width: 0; padding: 12px; border-radius: 7px; color: #40536b; border: 1px solid #e3eaf2; padding-right: 32px; }
    .evaluation-form-row .load-form strong { font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
    .evaluation-form-row > .dropdown { position: absolute; right: 5px; top: 6px; }
    .evaluation-form-dates { display: grid; gap: 4px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #dce6f2; }
    .evaluation-form-date { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: #40536b; }
    .evaluation-open-form { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; color: #176bcc; font-size: 11px; }
    .evaluation-open-form i { font-size: 10px; }
    .evaluation-workspace .btn.evaluation-assign { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; max-width: calc(100% - 24px); margin: 8px 12px 12px; padding: 9px 14px !important; background-color: #eaf3ff; color: #145caf; border: 1px solid #cfe0f7; border-radius: 8px; font-size: 12px; font-weight: 600; line-height: 1.4; }
    .evaluation-workspace .btn.evaluation-assign i { color: inherit !important; padding: 0; margin: 0 !important; font-size: 12px; flex-shrink: 0; }
    .evaluation-workspace .btn.evaluation-assign:hover, .evaluation-workspace .btn.evaluation-assign:focus-visible { background-color: #dcecff !important; color: #104e95 !important; border-color: #9fbfe8 !important; }
    .evaluation-content-empty { display: flex; align-items: center; text-align: center; padding: 40px 24px; min-height: 300px; justify-content: center; }
    .evaluation-reader > .card-body { padding: 24px !important; }
    .evaluation-form-content { scroll-margin-top: 100px; }
    .evaluation-layout-without-forms #evaluations-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 16px; }
    .evaluation-layout-without-forms .evaluation-entry { margin-bottom: 0; }
    @media (max-width: 991.98px) { .evaluation-layout { grid-template-columns: minmax(0, 1fr); } }
    @media (max-width: 575.98px) {
        .evaluation-reader > .card-body { padding: 18px !important; }
        .evaluation-workspace .evaluation-page-heading { padding: 18px; flex-direction: column; align-items: flex-start; }
    }
    .evaluation-reader .cardField .card-header { min-height: 0; padding: 16px 18px; border: 0; background: #f7f9fc; border-bottom: 1px solid #e3eaf2; }
    .evaluation-reader .cardField h2 { font-size: 14px; line-height: 1.5; }
    .evaluation-reader .cardField .card-body { padding: 18px !important; }
    .evaluation-reader .cardField .card-body > p { color: #6c7e95; font-size: 12px; }
    .evaluation-reader .cardField .form-control:disabled { background: #f8fafc; color: #192c45; opacity: 1; border-color: #e3eaf2; }
    .evaluation-reader textarea.answerVal { min-height: 90px; resize: vertical; line-height: 1.7; }
    .evaluation-grade-panel { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 20px; padding: 20px; margin-top: 16px; background: #f1f7ff; border: 1px solid #cfe0f7; border-radius: 10px; }
    .evaluation-grade-panel h3 { margin: 8px 0 0; color: #145caf; font-size: 22px; }
    .evaluation-grade-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
    .evaluation-grade-form label { font-size: 12px; }
    .evaluation-grade-form .form-control { width: 170px; font-size: 12px; }

/* Shared workspace components: lists, configuration, forms and dashboards. */
body.app-modern {
    --app-surface: #fff;
    --app-soft: #f5f8fc;
    --app-radius: 12px;
    --app-success: #17673b;
    --app-danger: #a92439;
    --app-warning: #855400;
}
.app-modern .app-skip-link { position: fixed; left: 20px; top: -100px; z-index: 1100; padding: 12px 20px; background: #fff; color: var(--app-primary); border-radius: 9px; }
.app-modern .app-skip-link:focus { top: 12px; }
.app-modern #kt_content:focus { outline: none; }
.app-modern #kt_content > .card.p-12 { padding: 28px !important; }
.app-modern #kt_content > .card.p-12 > .row:first-child { row-gap: 14px; padding-bottom: 20px; margin-bottom: 24px !important; border-bottom: 1px solid var(--app-line); }
.app-modern #kt_content > .card.p-12 > .row:first-child h1 { font-size: 20px; font-weight: 600; letter-spacing: -.025em; margin-bottom: 0; }
.app-modern #kt_content > .card.p-12 > .row:first-child .d-flex { flex-wrap: wrap; gap: 8px; }
.app-modern #kt_content > .card.p-12 > .row:first-child .btn-success { background: var(--app-primary); border-color: var(--app-primary); color: #fff; }
.app-modern #kt_content > .card.p-12 > .row:first-child .btn-success:hover { background: #145caf !important; border-color: #145caf !important; }
.app-modern .btn { transition: background-color .15s, border-color .15s, box-shadow .15s; }
.app-modern .btn:not(.btn-icon) { line-height: 1.5; }
.app-modern .btn-light { background-color: #f0f4f9; color: #40536b; }
.app-modern .btn-light:hover { background-color: #e5edf7; }
.app-modern .btn i { color: inherit; }
.app-modern .btn.btn-light-danger { background: #fde9ed; color: var(--app-danger); }
.app-modern .btn.btn-light-success { background: #e4f5ea; color: var(--app-success); }
.app-modern .form-control, .app-modern .form-select { min-height: 42px; font-size: 13px; }
.app-modern .form-control::placeholder { color: #7b8da3; opacity: 1; }
.app-modern .form-control:disabled, .app-modern .form-select:disabled, .app-modern .form-control[readonly] { background-color: var(--app-soft); color: #536780; }
.app-modern textarea.form-control { line-height: 1.8; }
.app-modern .form-check-input:checked { background-color: var(--app-primary); border-color: var(--app-primary); }
.app-modern .form-check-input:focus { box-shadow: 0 0 0 3px #176bcc18; border-color: #71a7e5; }
.app-modern .select2-container--bootstrap5 .select2-dropdown { border-color: var(--app-line); border-radius: 9px; box-shadow: 0 8px 28px #192c4510; }
.app-modern .table-responsive { border-radius: 10px; }
.app-modern .table { font-size: 13px; }
.app-modern .table > thead > tr > th { letter-spacing: .025em; vertical-align: middle; border-bottom: 1px solid var(--app-line); }
.app-modern .table > thead > tr > .table-title { font-size: 12px !important; font-weight: 600 !important; }
.app-modern .table > :not(caption) > * > :first-child { padding-left: 16px; }
.app-modern .table > :not(caption) > * > :last-child { padding-right: 16px; }
.app-modern .table > tbody > tr > td { padding-top: 16px; padding-bottom: 16px; }
.app-modern .table > tbody > tr:hover > td { background-color: #f8faff; }
.app-modern .table td .btn:not(.btn-icon) { padding: 8px 12px; font-size: 12px; }
.app-modern .table td .btn i.fs-2x { font-size: 17px !important; }
.app-modern .table td > .d-flex { align-items: center; gap: 5px; }
.app-modern .table td .form-select { min-width: 150px; }
.app-modern .table td.dataTables_empty { padding: 44px 16px; color: var(--app-muted); text-align: center; }
.app-modern .dataTables_wrapper > .row { row-gap: 14px; align-items: center; }
.app-modern .dataTables_wrapper .dataTables_filter input { border: 1px solid var(--app-line); border-radius: 8px; padding: 9px 12px; }
.app-modern .dataTables_wrapper .dataTables_length select { border-color: var(--app-line); border-radius: 8px; }
.app-modern .dataTables_info, .app-modern .dataTables_length, .app-modern .dataTables_filter { color: var(--app-muted); font-size: 12px; }
.app-modern .pagination { gap: 4px; flex-wrap: wrap; }
.app-modern .page-link { border-radius: 8px; font-size: 12px; }
.app-modern .modal-header, .app-modern .modal-body { padding: 24px; }
.app-modern .modal-header h2, .app-modern .modal-title { font-size: 19px; font-weight: 600; color: var(--app-ink); }
.app-modern .modal-footer { padding: 16px 24px; border-top: 1px solid var(--app-line); background: #fafbfd; border-radius: 0 0 18px 18px; gap: 8px; }
.app-modern .modal-body .fs-2hx { font-size: 24px !important; }
.app-modern .nav-tabs { border-bottom-color: var(--app-line); gap: 8px; }
.app-modern .nav-tabs .nav-link { color: var(--app-muted); font-weight: 500; }
.app-modern .nav-tabs .nav-link.active { color: var(--app-primary); border-bottom-color: var(--app-primary); }
.app-modern .alert { border-radius: var(--app-radius); font-size: 13px; line-height: 1.7; }
.app-modern .alert-container { max-width: calc(100vw - 32px); }
.app-modern .accordion-item { border-color: var(--app-line); }
.app-modern .accordion-button { color: var(--app-ink); font-weight: 500; }
.app-modern .accordion-button:not(.collapsed) { background: #eaf3ff; color: #145caf; }
.app-modern .step .circle { border-color: #cfe0f7; background: #f1f7ff; }
.app-modern .step .circle i { color: var(--app-primary); }
.app-modern .step .circle.active { background: #e4f5ea; border-color: #bde3cc; }
.app-modern .step .circle.active i { color: var(--app-success); }
.app-modern .step-number { border-color: var(--app-line); color: var(--app-ink); }
.app-modern #kt_footer { border-top: 1px solid var(--app-line); background: #ffffff80; font-size: 12px; }
.app-modern #kt_footer > .container-xxl { max-width: 1800px; }
.app-modern .app-dashboard-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; margin-bottom: 24px; }
.app-modern .app-metric { margin-bottom: 0; }
.app-modern .app-metric .card-body { display: flex; align-items: center; gap: 16px; }
.app-modern .app-metric-label { display: block; font-size: 12px; color: var(--app-muted); margin-bottom: 8px; }
.app-modern .app-metric-value { display: block; font-size: 30px; line-height: 1.2; letter-spacing: -.04em; font-weight: 600; font-variant-numeric: tabular-nums; }
.app-modern .app-metric-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; height: 44px; border-radius: 12px; background: #eaf3ff; color: var(--app-primary); }
.app-modern .app-metric-icon i { font-size: 21px; color: inherit; }
.app-modern .app-metric-success .app-metric-icon { background: #e4f5ea; color: var(--app-success); }
.app-modern .app-metric-warning .app-metric-icon { background: #fff4d6; color: var(--app-warning); }
.app-modern .app-metric-danger .app-metric-icon { background: #fde9ed; color: var(--app-danger); }
.app-modern .app-dashboard .card-header .fs-2hx, .app-modern .app-dashboard .card-header .fs-2x { font-size: 18px !important; }
.app-modern .app-dashboard .card-header .fs-2 { font-size: 12px !important; color: var(--app-muted); }
.app-modern .app-dashboard .card-body > .card { box-shadow: none; border: 0; }
.app-modern .app-dashboard .card-body > .card > .card-header { padding-left: 0; padding-right: 0; }
@media (max-width: 991.98px) {
    .app-modern #kt_content > .card.p-12 { padding: 20px !important; }
    .app-modern .app-dashboard-metrics { gap: 12px; }
}
@media (max-width: 575.98px) {
    .app-modern #kt_content_container { padding-left: 12px; padding-right: 12px; }
    .app-modern #kt_content > .card.p-12 { padding: 16px !important; }
    .app-modern #kt_content > .card.p-12 > .row:first-child .justify-content-end { justify-content: flex-start !important; }
    .app-modern .modal-header, .app-modern .modal-body { padding: 18px; }
    .app-modern .modal-footer { padding: 14px 18px; }
    .app-modern .app-dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .app-modern .app-metric .card-body { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px !important; }
    .app-modern .app-metric-value { font-size: 26px; }
    .app-modern .app-metric-label { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .app-modern .btn { transition: none; }
}

/* Index workspaces share the supplier and evaluation visual language. */
.app-modern .app-index-page { padding: 0; overflow: hidden; }
.app-modern .app-index-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding: 28px; border-bottom: 1px solid var(--app-line); background: linear-gradient(115deg, #fff 45%, #f1f7ff); }
.app-modern .app-index-intro { display: flex; align-items: center; gap: 18px; min-width: 0; }
.app-modern .app-index-icon { width: 54px; height: 54px; flex: 0 0 54px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: #eaf3ff; border: 1px solid #d5e5fa; }
.app-modern .app-index-icon i { color: var(--app-primary); font-size: 24px; }
.app-modern .app-index-heading .app-section-label { display: block; font-size: 10px; margin-bottom: 7px; }
.app-modern .app-index-heading h2 { font-size: 21px; letter-spacing: -.03em; color: var(--app-ink); margin: 0 0 7px; font-weight: 600; }
.app-modern .app-index-heading p { color: var(--app-muted); font-size: 12px; line-height: 1.7; margin: 0; }
.app-modern .app-index-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.app-modern .app-index-actions .btn { padding: 11px 16px; font-size: 12px; }
.app-modern .app-index-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 28px; }
.app-modern .app-index-toolbar strong { color: var(--app-ink); font-size: 13px; font-weight: 600; }
.app-modern .app-index-count { display: inline-flex; align-items: center; justify-content: center; min-width: 25px; padding: 3px 8px; margin-left: 8px; border-radius: 6px; background: #eaf3ff; color: #145caf; font-size: 11px; font-weight: 600; }
.app-modern .app-index-hint { font-size: 11px; color: var(--app-muted); }
.app-modern .app-index-search { width: min(100%, 320px); position: relative; }
.app-modern .app-index-search > i { position: absolute; left: 14px; top: 14px; color: var(--app-muted); font-size: 14px; }
.app-modern .app-index-search .form-control { padding-left: 38px; background: #f8fafc; }
.app-modern .app-index-table { padding: 0 28px 24px; }
.app-modern .app-index-page .table { margin-top: 0; margin-bottom: 0; font-size: 12px; }
.app-modern .app-index-page .table > thead > tr > th { font-size: 11px; padding: 14px 12px; background: #f1f5f9; white-space: nowrap; }
.app-modern .app-index-page .table > tbody > tr > td { padding: 16px 12px; border-bottom: 1px solid #e6edf5; }
.app-modern .app-index-page .table td:first-child { color: var(--app-ink); font-weight: 500; }
.app-modern .app-index-page .table .form-select { font-size: 12px; background-color: #f8fafc; }
.app-modern .app-index-page .pagination { margin-top: 20px; margin-bottom: 0; }
.app-modern .app-index-page .modal-body.scroll-y { margin: 0 !important; }
.app-modern .app-index-empty { text-align: center; padding: 48px 20px !important; }
.app-modern .app-index-empty > i, .app-modern .app-index-empty > strong, .app-modern .app-index-empty > span { display: block; }
.app-modern .app-index-empty > i { color: var(--app-primary); font-size: 28px; margin-bottom: 14px; }
.app-modern .app-index-empty > strong { color: var(--app-ink); font-size: 14px; margin-bottom: 7px; }
.app-modern .app-index-empty > span { color: var(--app-muted); font-size: 12px; font-weight: 400; }
.app-modern .app-account-index .app-account-body { padding: 0 28px 24px !important; }
.app-modern .app-account-body > .app-index-toolbar { padding-left: 0; padding-right: 0; }
.app-modern .app-account-body > .nav-tabs { gap: 8px; padding: 8px; border: 1px solid var(--app-line); border-radius: 10px; background: #f5f8fc; }
.app-modern .app-account-body > .nav-tabs .nav-link { border: 0 !important; border-radius: 7px; padding: 10px 14px; margin: 0; font-size: 12px; }
.app-modern .app-account-body > .nav-tabs .nav-link.active { background: #fff; color: #145caf; box-shadow: 0 2px 6px #192c4510; }
.app-modern .app-account-index .form-check-label { font-size: 12px; color: var(--app-muted); }
.app-modern .app-account-index .symbol img { border: 1px solid var(--app-line); border-radius: 10px; object-fit: cover; }
@media (max-width: 767.98px) {
    .app-modern .app-index-heading { padding: 20px; align-items: flex-start; }
    .app-modern .app-index-intro { align-items: flex-start; gap: 12px; }
    .app-modern .app-index-icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 10px; }
    .app-modern .app-index-icon i { font-size: 20px; }
    .app-modern .app-index-heading h2 { font-size: 18px; }
    .app-modern .app-index-toolbar { padding: 18px 20px; }
    .app-modern .app-index-table { padding: 0 16px 20px; }
    .app-modern .app-account-index .app-account-body { padding: 0 16px 20px !important; }
    .app-modern .app-index-search { width: 100%; }
    .app-modern .app-index-actions { width: 100%; }
    .app-modern .app-index-actions .btn { flex: 1 1 auto; text-align: center; }
    .app-modern .app-index-page .table { min-width: 660px; }
    .app-modern .app-account-index .table { min-width: 520px; }
}

/* Inspection creation and registry (/audit). */
.app-modern .app-audit-heading { margin-bottom: 24px; }
.app-modern .app-audit-heading .app-index-heading { border-bottom: 0; }
.app-modern .app-audit-total { display: inline-flex; align-items: center; gap: 10px; color: var(--app-muted); font-size: 12px; padding: 10px 14px; border: 1px solid #d5e5fa; background: #fff; border-radius: 10px; }
.app-modern .app-audit-total strong { color: var(--app-primary); font-size: 22px; font-variant-numeric: tabular-nums; }
.app-modern .app-audit-workspace > * { min-width: 0; }
.app-modern .app-audit-create-heading { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--app-line); }
.app-modern .app-audit-section-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 9px; background: #eaf3ff; }
.app-modern .app-audit-section-icon i { color: var(--app-primary); font-size: 17px; }
.app-modern .app-audit-create-heading h3 { font-size: 15px; font-weight: 600; margin: 0 0 5px; }
.app-modern .app-audit-create-heading p { font-size: 11px; color: var(--app-muted); margin: 0; line-height: 1.6; }
.app-modern .app-audit-create-body #formAuditCreate { max-width: none !important; padding: 0 !important; }
.app-modern .app-audit-create-body .fv-row { margin-bottom: 20px !important; }
.app-modern .app-audit-create-body label { color: #40536b; font-size: 12px !important; font-weight: 500; }
.app-modern .app-audit-create-body #create { width: 100%; font-size: 13px; font-weight: 500 !important; }
.app-modern .app-audit-create-body #customerContainer { padding: 12px; border: 1px solid var(--app-line); border-radius: 9px; background: #f8fafc; }
.app-modern .app-audit-workspace .app-audit-list-body { padding: 0 20px 20px !important; }
.app-modern .app-audit-state { display: inline-block; padding: 5px 9px; border-radius: 6px; background: #eef3f9; color: #40536b; font-size: 11px; font-weight: 500; }
.app-modern .app-audit-workspace #dynamicTable { min-width: 650px; }
.app-modern .app-audit-workspace #dynamicTable td:last-child .d-flex { flex-wrap: nowrap; }
@media (max-width: 575.98px) {
    .app-modern .app-audit-create-heading { padding: 18px; }
    .app-modern .app-audit-workspace .app-audit-list-body { padding: 0 16px 16px !important; }
    .app-modern .app-audit-total { width: 100%; }
}

/* Inspection evaluation detail. */
.app-modern .inspection-evaluation > .card { margin-bottom: 22px; }
.app-modern .inspection-evaluation .app-index-heading { border-bottom: 0; }
.app-modern .inspection-evaluation-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 22px; }
.app-modern .inspection-evaluation-metrics .app-metric .card-body { padding: 22px 24px !important; }
.app-modern .inspection-evaluation-grade { display: inline-block; padding: 6px 10px; color: #145caf; background: #eaf3ff; border-radius: 7px; font-weight: 500; white-space: nowrap; }
.app-modern .inspection-evaluation .app-index-empty { padding-top: 44px !important; padding-bottom: 44px !important; }
@media (max-width: 575.98px) {
    .app-modern .inspection-evaluation-metrics .app-metric .card-body { padding: 16px !important; }
    .app-modern .inspection-evaluation-metrics .app-metric-value { font-size: 23px; }
}

/* Inspection registry actions and expandable evaluations. */
.app-modern #inspectionTable > tbody > tr:not(.inspection-detail-row) > td { padding-top: 14px; padding-bottom: 14px; }
.app-modern #inspectionTable > tbody > tr > td:nth-child(3),
.app-modern #inspectionTable > tbody > tr > td:nth-child(4) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.app-modern #inspectionTable .inspection-expand { width: 30px; height: 30px; border-radius: 8px; }
.app-modern #inspectionTable .inspection-expand i { font-size: 12px; }
.app-modern #inspectionTable .inspection-detail-row > td { padding: 16px 20px; background: #f5f8fc; }
.app-modern .inspection-detail-heading { color: var(--app-ink); font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.app-modern #inspectionTable .inspection-evaluation-table { background: #fff; border: 1px solid var(--app-line); }
.app-modern #inspectionTable .inspection-evaluation-table th { background: #edf3fb; }

/* System catalog maintenance. */
.app-modern .app-maintainer > .app-index-heading { gap: 20px; }
.app-modern .app-maintainer > .app-index-table > .table-responsive > .table { min-width: 560px; }
.app-modern .app-maintainer .table td .btn.editBtn,
.app-modern .app-maintainer .table td form > .btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border-radius: 8px; }
.app-modern .app-maintainer .table td .btn i { font-size: 14px !important; padding: 0; }
.app-modern .app-maintainer .table td form { margin: 0; }
.app-modern .app-maintainer .table td .d-flex.align-center { gap: 8px; }
.app-modern .app-maintainer .modal-header h2 { margin: 0; font-size: 18px; }
.app-modern .app-maintainer .modal-body.scroll-y { margin: 0 !important; padding: 24px; }
.app-modern .app-maintainer .modal-body form { max-width: none !important; padding-top: 0 !important; padding-bottom: 0 !important; }
.app-modern .app-maintainer .modal-body .fv-row { margin-bottom: 20px !important; }
.app-modern .app-maintainer .modal-body .fs-2hx { font-size: 20px !important; }
.app-modern .app-maintainer .modal-body .form-label,
.app-modern .app-maintainer .modal-body label { font-size: 12px !important; font-weight: 500 !important; color: #40536b; }
.app-modern .app-maintainer .modal-body .btn.btn-lg { font-size: 13px; font-weight: 500 !important; padding: 11px 22px; }
.app-modern .app-maintainer-documents > .card-body { padding-top: 0 !important; }
.app-modern .app-maintainer-documents .table td .btn { width: auto; height: auto; padding: 8px 12px; }
.app-modern .app-maintainer-detail { max-width: 1000px; margin-left: auto; margin-right: auto; }
.app-modern .app-maintainer-detail h1 { font-size: 22px; font-weight: 600; letter-spacing: -.025em; }
.app-modern .app-maintainer-detail > .card-body > .row:first-child { padding-bottom: 18px; margin-bottom: 24px !important; border-bottom: 1px solid var(--app-line); row-gap: 12px; }
.app-modern .app-maintainer-back a { padding: 9px 14px; border-radius: 8px; color: #145caf; background: #eaf3ff; font-size: 12px; }
.app-modern .app-maintainer-detail form > .fv-row { margin-bottom: 20px !important; }
.app-modern .app-maintainer-detail .form-label { font-size: 12px !important; }
@media (max-width: 575.98px) {
    .app-modern .app-maintainer .modal-body.scroll-y { padding: 18px; }
    .app-modern .app-maintainer-back { justify-content: flex-start !important; }
}

/* Standard edit/delete controls, including catalog and dynamically loaded rows. */
body.app-modern .btn.app-action,
body.app-modern .table td .btn.app-action,
body.app-modern .app-maintainer .table td .btn.app-action {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    width: auto; min-width: 84px; height: 34px; padding: 7px 11px !important;
    border: 1px solid transparent; border-radius: 8px !important;
    font-size: 12px; font-weight: 500; line-height: 18px; white-space: nowrap;
    margin: 0; text-decoration: none; box-shadow: none;
}
body.app-modern .btn.app-action.app-action-edit { background: #eaf3ff; border-color: #d5e5fa; color: #145caf; }
body.app-modern .btn.app-action.app-action-delete { background: #fde9ed; border-color: #f2c2cb; color: #a92439; }
body.app-modern .btn.app-action.app-action-edit:hover,
body.app-modern .btn.app-action.app-action-edit:focus-visible { background: #dcecff !important; border-color: #9fbfe8 !important; color: #104e95 !important; }
body.app-modern .btn.app-action.app-action-delete:hover,
body.app-modern .btn.app-action.app-action-delete:focus-visible { background: #f9d6de !important; border-color: #e7a5b3 !important; color: #8e1d30 !important; }
body.app-modern .btn.app-action i,
body.app-modern .table td .btn.app-action i { padding: 0 !important; margin: 0 !important; font-size: 13px !important; color: inherit; line-height: 1; }
body.app-modern .btn.app-action:disabled { opacity: .55; cursor: not-allowed; }


/* Compact supplier controls leave room for dates and provider details. */
body.app-modern .supplier-page td.supplier-row-actions { white-space: nowrap; width: 1%; }
body.app-modern .supplier-page td.supplier-row-actions .btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; min-width: 34px; height: 34px; padding: 0 !important;
    vertical-align: middle; margin-left: 4px;
}
body.app-modern .supplier-page td.supplier-row-actions .btn span { display: none; }
body.app-modern .supplier-page td.supplier-row-actions .btn i { margin: 0 !important; padding: 0 !important; }

/* Review progress and alternative final outcomes. */
.app-modern .review-result-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.app-modern .review-result-choices legend { float: none; grid-column: 1 / -1; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.app-modern .review-result-choice { display: flex; align-items: center; gap: 10px; padding: 16px; border: 2px solid #dbe3ef; border-radius: 12px; cursor: pointer; background: #fff; }
.app-modern .review-result-choice input { flex-shrink: 0; accent-color: #176bcc; width: 17px; height: 17px; }
.app-modern .review-result-choice i { font-size: 21px; color: #237d42; }
.app-modern .review-result-choice.is-rejected i { color: #b52c40; }
.app-modern .review-result-choice strong, .app-modern .review-result-choice small { display: block; }
.app-modern .review-result-choice strong { font-size: 14px; color: #192c45; }
.app-modern .review-result-choice small { margin-top: 4px; color: #61738b; font-size: 11px; line-height: 1.5; }
.app-modern .review-result-choice.is-approved:has(input:checked) { border-color: #237d42; background: #edf8f0; }
.app-modern .review-result-choice.is-rejected:has(input:checked) { border-color: #b52c40; background: #fff0f3; }
.app-modern .review-result-choice:focus-within { outline: 2px solid #176bcc; outline-offset: 3px; }
.app-modern .review-phase-pending .review-phase-content { background: #f8fafc; }
.app-modern .review-phase-pending .review-phase-description { margin-bottom: 0; }
.app-modern .review-result-approved .review-phase-content { border-color: #bde3cc; background: #edf8f0; }
.app-modern .review-result-approved .review-phase-marker { background: #e4f5ea; border-color: #bde3cc; color: #237d42; }
.app-modern .review-result-rejected .review-phase-content { border-color: #f2c2cb; background: #fff0f3; }
.app-modern .review-result-rejected .review-phase-marker { background: #fde8ec; border-color: #f2c2cb; color: #b52c40; }
@media (max-width: 575px) {
    .app-modern .review-result-choices { grid-template-columns: 1fr; }
    .app-modern .review-phases-summary, .app-modern .review-phase-heading { flex-wrap: wrap; }
    .app-modern .supplier-review-phases-modal .modal-body { padding: 16px; }
    .app-modern .review-phase { gap: 10px; }
    .app-modern .review-phase-content { padding: 14px; }
}

/* Administrative overview. */
.app-modern .admin-dashboard { max-width: 1600px; margin: 0 auto; }
.app-modern .admin-dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; padding-top: 4px; }
.app-modern .admin-dashboard-heading h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -.04em; color: var(--app-ink); margin: 7px 0 10px; }
.app-modern .admin-dashboard-heading p { color: var(--app-muted); font-size: 13px; line-height: 1.6; margin: 0; }
.app-modern .admin-dashboard-period { display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--app-line); padding: 10px 14px; border-radius: 10px; color: var(--app-muted); font-size: 12px; }
.app-modern .admin-dashboard-shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; margin-bottom: 28px; background: #fff; border: 1px solid var(--app-line); border-radius: 12px; overflow: hidden; }
.app-modern .admin-dashboard-shortcuts a { display: flex; align-items: center; gap: 13px; padding: 14px 18px; background: transparent; border: 0; border-radius: 0; color: var(--app-ink); transition: border-color .15s, background-color .15s; }
.app-modern .admin-dashboard-shortcuts a:hover { background: #f5f9ff; border-color: #9fbfe8; }
.app-modern .admin-shortcut-icon { display: grid; place-items: center; flex: 0 0 40px; height: 40px; background: #edf4fd; border-radius: 10px; }
.app-modern .admin-shortcut-icon i { color: #176bcc; font-size: 19px; }
.app-modern .admin-dashboard-shortcuts strong { display: block; font-size: 13px; font-weight: 600; }
.app-modern .admin-dashboard-shortcuts small { display: block; font-size: 11px; color: var(--app-muted); margin-top: 4px; }
.app-modern .admin-dashboard-shortcuts a > i { margin-left: auto; color: #8193aa; }
.app-modern .admin-dashboard-section { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.app-modern .admin-dashboard-section h2 { font-size: 15px; margin: 0; font-weight: 600; }
.app-modern .admin-dashboard-section > span { color: var(--app-muted); font-size: 11px; }
.app-modern .admin-dashboard .app-metric { border-top: 1px solid var(--app-line); border-radius: 12px; box-shadow: none; }
.app-modern .admin-dashboard .app-metric-success { border-top-color: var(--app-line); }
.app-modern .admin-dashboard .app-metric-danger { border-top-color: var(--app-line); }
.app-modern .admin-dashboard .app-metric-warning { border-top-color: var(--app-line); }
.app-modern .admin-dashboard .app-metric .card-body { flex-direction: row-reverse; justify-content: space-between; padding: 20px !important; }
.app-modern .admin-dashboard .app-metric-value { font-size: 34px; }
.app-modern .admin-dashboard .app-metric-label { font-size: 11px; }
.app-modern .admin-dashboard .admin-dashboard-chart { border: 0; border-bottom: 1px solid var(--app-line); border-radius: 16px 16px 0 0; box-shadow: none; margin-bottom: 0; }
.app-modern .admin-dashboard-table-title { font-size: 16px; font-weight: 600; color: var(--app-ink); margin-bottom: 20px; }
.app-modern .admin-dashboard .nav-group { display: flex; flex-wrap: wrap; gap: 6px; background: #f3f6fa; padding: 6px; border-radius: 10px; }
.app-modern .admin-dashboard .nav-group .btn { font-size: 11px; padding: 8px 12px !important; margin: 0 !important; }
.app-modern .admin-dashboard .table td { vertical-align: middle; font-size: 12px; }
.app-modern .admin-dashboard #tabSupplier td:nth-child(3), .app-modern .admin-dashboard #tabSupplier td:nth-child(4) { white-space: nowrap; }
.app-modern .admin-dashboard .timeline-content { font-size: 12px; line-height: 1.7; }
.app-modern .admin-dashboard .timeline-label { font-size: 11px; }
@media (max-width: 575px) {
    .app-modern .admin-dashboard-heading { align-items: flex-start; }
    .app-modern .admin-dashboard-period { padding: 8px 10px; }
    .app-modern .admin-dashboard-shortcuts { grid-template-columns: 1fr; gap: 10px; }
    .app-modern .admin-dashboard-section > span { display: none; }
    .app-modern .admin-dashboard .app-metric .card-body { gap: 8px; padding: 15px !important; }
    .app-modern .admin-dashboard .app-metric-icon { flex-basis: 32px; height: 32px; }
    .app-modern .admin-dashboard .app-metric-value { font-size: 28px; }
}

.app-modern .admin-dashboard-shortcuts a + a { border-left: 1px solid var(--app-line); }
.app-modern .admin-alerts .card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; }
.app-modern .admin-alerts h2 { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.app-modern .admin-alerts h2 i { font-size: 17px; color: var(--app-primary); }
.app-modern .admin-alerts #countAlerts { font-size: 11px; color: var(--app-muted); margin: 0; }
.app-modern .admin-alerts-caption { font-size: 10px; color: var(--app-muted); background: #f3f6fa; padding: 6px 9px; border-radius: 6px; }
.app-modern .admin-alerts .admin-alerts-list { max-height: 460px; overflow-y: auto; padding: 0 20px !important; }
.app-modern .admin-alert-item { padding: 18px 0; }
.app-modern .admin-alert-item + .admin-alert-item { border-top: 1px solid var(--app-line); }
.app-modern .admin-alert-title { display: flex; align-items: flex-start; gap: 9px; }
.app-modern .admin-alert-title i { font-size: 16px; line-height: 1.5; flex-shrink: 0; }
.app-modern .admin-alert-title h3 { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.app-modern .admin-alert-time { font-size: 12px; color: var(--app-ink); margin: 8px 0 5px; }
.app-modern .admin-alert-reference { font-size: 11px; color: var(--app-muted); margin: 0 0 12px; overflow-wrap: anywhere; }
.app-modern .admin-alert-track { height: 5px; border-radius: 4px; overflow: hidden; background: #edf1f6; }
.app-modern .admin-alert-progress { height: 100%; border-radius: inherit; }
.app-modern .admin-alert-empty { padding: 26px 0; color: var(--app-muted); font-size: 12px; text-align: center; }
@media (max-width: 575px) {
    .app-modern .admin-dashboard-shortcuts { gap: 0; }
    .app-modern .admin-dashboard-shortcuts a + a { border-left: 0; border-top: 1px solid var(--app-line); }
}

.app-modern .admin-review-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.app-modern .admin-review-type .card-body { padding: 20px !important; }
.app-modern .admin-review-type-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.app-modern .admin-review-type-heading h3 { font-size: 14px; font-weight: 600; line-height: 1.5; margin: 0; }
.app-modern .admin-review-type-heading > strong { font-size: 25px; line-height: 1; text-align: right; color: var(--app-ink); }
.app-modern .admin-review-type-heading small { display: block; font-size: 10px; font-weight: 400; color: var(--app-muted); margin-top: 6px; }
.app-modern .admin-review-state { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--app-muted); margin-bottom: 7px; }
.app-modern .admin-review-state strong { color: var(--app-ink); }
.app-modern .admin-review-state-track { height: 4px; background: #eff3f8; border-radius: 4px; overflow: hidden; margin-bottom: 14px; }
.app-modern .admin-review-state-track:last-child { margin-bottom: 0; }
.app-modern .admin-review-state-track span { display: block; height: 100%; border-radius: inherit; }
.app-modern .admin-shortcut-icon svg { color: #176bcc; flex-shrink: 0; }
.app-modern .admin-dashboard .admin-dashboard-chart { border-bottom: 0; border-radius: 16px; }
.app-modern .admin-recent-records .table th { background: #f7f9fc; font-size: 10px; letter-spacing: .03em; padding: 12px 14px; }
.app-modern .admin-recent-records .table td { padding: 15px 14px; border-bottom: 1px solid #edf1f6; }
.app-modern .admin-recent-records .table tbody tr:last-child td { border-bottom: 0; }
.app-modern .admin-recent-records .table tbody tr:hover { background: #f8fbff; }
.app-modern .admin-recent-records .nav-group { width: 100%; }
.app-modern .admin-recent-records .table-responsive { border: 1px solid #edf1f6; border-radius: 10px; }
.app-modern .admin-dashboard .apexcharts-legend { padding-left: 0 !important; }
@media (max-width: 575px) {
    .app-modern .admin-review-types { grid-template-columns: 1fr; }
}


.app-modern .admin-dashboard-intro { padding: 24px; margin-bottom: 26px; }
.app-modern .admin-dashboard-intro .admin-dashboard-heading { padding: 0; margin-bottom: 22px; }
.app-modern .admin-dashboard-intro .admin-dashboard-shortcuts { margin-bottom: 0; border-radius: 10px; background: #f8fafc; }
@media (max-width: 575px) {
    .app-modern .admin-dashboard-intro { padding: 18px; }
}

/* Personal account. */
.app-modern .profile-workspace { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; max-width: 1150px; margin: 0 auto; align-items: start; }
.app-modern .profile-account { text-align: center; }
.app-modern .profile-avatar { width: 104px; height: 104px; object-fit: cover; border-radius: 24px; border: 4px solid #edf4fc; margin: 4px 0 20px; }
.app-modern .profile-account h2 { font-size: 19px; line-height: 1.5; margin-bottom: 6px; overflow-wrap: anywhere; }
.app-modern .profile-email { color: var(--app-muted); font-size: 12px; overflow-wrap: anywhere; }
.app-modern .profile-roles { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 16px 0 24px; }
.app-modern .profile-account form { border-top: 1px solid var(--app-line); padding-top: 22px; text-align: left; }
.app-modern .profile-main { display: grid; gap: 24px; }
.app-modern .profile-main .card-header { padding-top: 20px; padding-bottom: 20px; }
.app-modern .profile-main .card-title { font-size: 16px; margin-bottom: 7px; }
.app-modern .profile-hint { color: var(--app-muted); font-size: 11px; line-height: 1.7; margin-top: 8px; }
.app-modern .profile-main .card-footer { padding: 16px 24px; background: #fafbfd; border-top: 1px solid var(--app-line); border-radius: 0 0 16px 16px; }
.app-modern .profile-main input[readonly] { background: #f5f7fa; color: var(--app-muted); }
@media (max-width: 991px) {
    .app-modern .profile-workspace { grid-template-columns: minmax(0, 1fr); }
}
