/*
 * OMT Global Operations Platform — visual theme
 * Brand tokens sourced from the official OMT logo and omt.com.lb
 * (primary yellow #FFDE00, near-black ink, Lato typeface).
 * This file is presentation-only: it restyles the existing Bootstrap 5
 * markup already used across every page, so no view structure, routes,
 * or backend logic needs to change for the theme to apply everywhere.
 */

:root {
    --omt-yellow: #ffde00;
    --omt-yellow-dark: #E6C700;
    --omt-yellow-soft: #FFF6CC;
    --omt-ink: #101112;
    --omt-ink-soft: #3A3D42;
    --omt-navy: #0B1B33;
    --omt-blue: #1434CB;
    --omt-gray-50: #F8F9FA;
    --omt-gray-100: #F2F2F2;
    --omt-gray-200: #EBEBEB;
    --omt-gray-300: #E0E0E0;
    --omt-gray-500: #8A8D93;
    --omt-success: #1B8A5A;
    --omt-warning: #B8860B;
    --omt-danger: #C0392B;
    --omt-radius: 10px;
    --omt-radius-lg: 16px;
    --omt-shadow: 0 2px 10px rgba(16, 17, 18, 0.06);
    --omt-shadow-lg: 0 12px 32px rgba(16, 17, 18, 0.12);
}

body {
    font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--omt-ink);
    background-color: var(--omt-gray-50);
}

/* ---------- Administration forms ---------- */

.omt-admin-page-header {
    margin-bottom: 0.9rem;
}

.omt-admin-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
    gap: 1rem;
    width: 100%;
    align-items: start;
}

.omt-admin-form-card {
    overflow: visible;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(16, 17, 18, 0.05);
}

.omt-admin-card-header {
    display: flex;
    min-height: 64px;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--omt-gray-200);
    background: #f7f8fa;
    border-radius: 10px 10px 0 0;
}

.omt-admin-card-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    color: var(--omt-ink);
    background: var(--omt-yellow);
    border-radius: 8px;
}

.omt-admin-eyebrow {
    display: block;
    color: var(--omt-gray-500);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.omt-admin-card-header h2,
.omt-user-security-panel h2 {
    margin: 0.08rem 0 0;
    font-size: 0.88rem;
}

.omt-required-note {
    margin-left: auto;
    color: var(--omt-gray-500);
    font-size: 0.68rem;
}

.omt-required-note b {
    color: var(--omt-danger);
}

.omt-admin-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1rem;
    padding: 1rem;
}

.omt-admin-form-single {
    grid-template-columns: 1fr;
}

.omt-admin-form-single .omt-admin-form-actions {
    grid-column: 1;
}

.omt-admin-textarea {
    min-height: 110px !important;
    resize: vertical;
}

.omt-object-code {
    font-family: "IBM Plex Mono", monospace;
}

.omt-selected-parent {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.8rem;
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
}

.omt-selected-parent > i {
    color: var(--omt-yellow);
}

.omt-selected-parent small,
.omt-selected-parent strong,
.omt-selected-parent span {
    display: block;
}

.omt-selected-parent small {
    color: #8f969f;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.omt-selected-parent strong { color: #fff; font-size: 0.72rem; }
.omt-selected-parent span { color: #aeb4bc; font-size: 0.62rem; }

.omt-object-type-list {
    display: grid;
    gap: 0.45rem;
    padding: 0.85rem 0;
}

.omt-object-type-list > div {
    display: flex;
    gap: 0.65rem;
    padding: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.035);
}

.omt-object-type-list > div.active {
    border-color: rgba(255, 222, 0, 0.55);
    background: rgba(255, 222, 0, 0.1);
}

.omt-object-type-list > div > span {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    color: var(--omt-yellow);
    background: rgba(255, 222, 0, 0.1);
    border-radius: 6px;
}

.omt-object-type-list strong {
    display: block;
    color: #fff;
    font-size: 0.7rem;
}

.omt-object-type-list p {
    margin: 0.12rem 0 0;
    color: #aeb4bc;
    font-size: 0.62rem;
    line-height: 1.4;
}

.omt-admin-field {
    min-width: 0;
}

.omt-admin-field .form-label {
    margin-bottom: 0.3rem;
    color: #485260;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.omt-admin-field .form-control,
.omt-admin-field .form-select,
.omt-admin-field .omt-select-trigger,
.omt-admin-field .input-group-text {
    min-height: 40px;
    border-color: #d2d8df;
    border-radius: 7px;
    font-size: 0.78rem;
}

.omt-admin-field .input-group-text {
    min-width: 42px;
    justify-content: center;
    color: #5f6976;
    background: #f5f6f8;
    border-right: 0;
    border-radius: 7px 0 0 7px;
}

.omt-admin-field .input-group .form-control {
    border-left: 0;
    border-radius: 0 7px 7px 0;
}

.omt-admin-field .input-group:focus-within .input-group-text {
    border-color: var(--omt-yellow-dark);
    color: var(--omt-ink);
    background: var(--omt-yellow-soft);
}

.omt-admin-field .form-text {
    margin-top: 0.3rem;
    color: #7a828d;
    font-size: 0.66rem;
}

.omt-admin-form-actions {
    display: flex;
    grid-column: 1 / -1;
    gap: 0.5rem;
    margin: 0 -1rem -1rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--omt-gray-200);
    background: #f7f8fa;
    border-radius: 0 0 10px 10px;
}

.omt-user-security-panel {
    padding: 1rem;
    color: #e7e9ec;
    background: var(--omt-ink);
    border: 1px solid #24272b;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(16, 17, 18, 0.08);
}

.omt-security-panel-heading {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.omt-security-panel-heading > span {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    color: var(--omt-ink);
    background: var(--omt-yellow);
    border-radius: 8px;
}

.omt-security-panel-heading small {
    display: block;
    color: var(--omt-yellow);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.omt-user-security-panel h2 {
    color: #fff;
}

.omt-onboarding-steps {
    margin: 0;
    padding: 0.9rem 0 0;
    list-style: none;
}

.omt-onboarding-steps li {
    position: relative;
    display: flex;
    gap: 0.65rem;
    padding-bottom: 0.85rem;
}

.omt-onboarding-steps li:not(:last-child)::after {
    position: absolute;
    top: 24px;
    bottom: 2px;
    left: 11px;
    width: 1px;
    background: rgba(255, 255, 255, 0.14);
    content: '';
}

.omt-onboarding-steps li > span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    place-items: center;
    color: var(--omt-ink);
    background: var(--omt-yellow);
    border-radius: 50%;
    font-size: 0.62rem;
    font-weight: 900;
}

.omt-onboarding-steps strong {
    display: block;
    color: #fff;
    font-size: 0.72rem;
}

.omt-onboarding-steps p {
    margin: 0.15rem 0 0;
    color: #aeb4bc;
    font-size: 0.65rem;
    line-height: 1.45;
}

.omt-security-note {
    display: flex;
    gap: 0.55rem;
    padding: 0.65rem;
    color: #d9dde2;
    background: rgba(255, 222, 0, 0.09);
    border: 1px solid rgba(255, 222, 0, 0.25);
    border-radius: 7px;
    font-size: 0.65rem;
    line-height: 1.45;
}

.omt-security-note i {
    color: var(--omt-yellow);
}

@media (max-width: 1199.98px) {
    .omt-admin-form-layout {
        grid-template-columns: 1fr;
    }

    .omt-user-security-panel {
        order: -1;
    }

    .omt-onboarding-steps {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.25rem 1rem;
    }

    .omt-onboarding-steps li::after {
        display: none;
    }
}

/* Compact, aligned utility workspace */
body:has(.omt-utilities-page) .omt-navbar {
    margin-bottom: 0 !important;
}

body:has(.omt-utilities-page) .omt-main-content {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.omt-utilities-page {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.omt-utilities-page .omt-page-header {
    margin-bottom: 8px;
}

.omt-utilities-page .omt-page-header h1 {
    margin-bottom: 0;
}

.omt-utilities-page .omt-utility-section-heading {
    min-height: 38px;
    margin: 12px 0 7px;
    align-items: center;
}

.omt-utilities-page .omt-utility-section-heading.is-configurable {
    margin-top: 14px;
}

.omt-utilities-page .omt-reference-grid {
    grid-auto-rows: 68px;
    align-items: stretch;
    gap: 7px;
}

.omt-utilities-page .omt-reference-card {
    height: 68px;
    min-height: 68px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.omt-utilities-page .omt-reference-card-copy,
.omt-utilities-page .omt-reference-count {
    align-self: center;
}

.omt-utilities-page .omt-utility-toolbar {
    min-height: 40px;
    margin-top: 7px;
    margin-bottom: 7px;
    gap: 7px;
}

.omt-utilities-page .omt-utility-toolbar .form-control,
.omt-utilities-page .omt-utility-toolbar .form-select,
.omt-utilities-page .omt-utility-toolbar .btn,
.omt-utilities-page .omt-toolbar-actions .btn {
    min-height: 40px;
    height: 40px;
}

.omt-utilities-page .omt-table-card th,
.omt-utilities-page .omt-table-card td {
    padding-top: 9px;
    padding-bottom: 9px;
}

.omt-utilities-page .omt-table-empty {
    padding: 16px 12px;
}

.omt-utilities-page .omt-data-pagination {
    min-height: 44px;
}

.omt-utilities-page .omt-table-card .card-footer {
    padding-top: 5px;
    padding-bottom: 5px;
}

.omt-utility-reference-page .omt-reference-notice {
    margin-top: 6px;
    padding-top: 7px;
    padding-bottom: 7px;
}

@media (min-width: 1600px) and (min-height: 800px) {
    .omt-utilities-page .omt-reference-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    body:has(.omt-utilities-page) .omt-main-content {
        padding: 10px 12px 16px !important;
    }

    .omt-utilities-page {
        overflow-x: visible;
    }

    .omt-utilities-page .omt-reference-grid {
        grid-auto-rows: auto;
    }

    .omt-utilities-page .omt-reference-card {
        height: auto;
        min-height: 66px;
    }

    .omt-utilities-page .omt-utility-toolbar,
    .omt-utilities-page .omt-toolbar-actions {
        width: 100%;
    }

    .omt-utilities-page .omt-toolbar-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .omt-utilities-page .omt-toolbar-actions .btn:last-child:nth-child(3) {
        grid-column: 1 / -1;
    }
}

/* Utility Type form row alignment */
.omt-utility-form-page { max-width: 1160px; }
.omt-utility-form-page .omt-config-form-card { max-width: 1080px; }
.omt-utility-form-page .omt-config-form-card .card-body { padding: 16px 18px 14px; }
.omt-utility-fields { display: grid; gap: 12px; }
.omt-utility-fields-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.omt-utility-fields-row-core { grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr); }
.omt-utility-inline-field { display: grid; grid-template-columns: 138px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; }
.omt-utility-inline-field .form-label { margin: 0; color: #11151a; font-size: .67rem; font-weight: 800; line-height: 1.15; letter-spacing: .02em; text-transform: uppercase; }
.omt-utility-inline-field .form-label span { color: #dc3545; }
.omt-utility-control-stack { display: grid; gap: 3px; min-width: 0; }
.omt-utility-control-stack .form-control,
.omt-utility-control-stack .input-group-text { height: 42px; min-height: 42px; border-radius: 8px; font-size: .8rem; }
.omt-utility-control-stack .input-group-text { width: 42px; justify-content: center; padding: 7px; }
.omt-utility-control-stack textarea.form-control { height: 58px; min-height: 58px; resize: vertical; }
.omt-utility-inline-field.is-textarea { align-items: start; }
.omt-utility-inline-field.is-textarea .form-label { padding-top: 11px; }
.omt-utility-control-stack > small { color: #718096; font-size: .64rem; line-height: 1.25; }
.omt-utility-fields .omt-config-active { margin-top: 0; }
.omt-utility-form-page .omt-form-actions { margin-top: 12px; padding-top: 12px; }
.omt-utility-form-page .omt-form-actions .btn { min-height: 38px; padding: 7px 14px; font-size: .76rem; }

@media (max-width: 991.98px) {
    .omt-utility-form-page,
    .omt-utility-form-page .omt-config-form-card { max-width: 100%; }
    .omt-utility-fields-row,
    .omt-utility-fields-row-core { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 575.98px) {
    .omt-utility-inline-field { grid-template-columns: 1fr; gap: 5px; }
    .omt-utility-inline-field.is-textarea .form-label { padding-top: 0; }
}

/* Final compact sizing for Utility Type create/edit */
.omt-utility-form-page {
    max-width: 980px;
    margin-inline: auto;
}

.omt-utility-form-page .omt-page-header {
    margin-bottom: 5px;
}

.omt-utility-form-page .omt-page-header h1 {
    font-size: 1.05rem;
}

.omt-utility-form-page .omt-page-header h1 > i {
    width: 32px;
    height: 32px;
    font-size: .85rem;
    border-radius: 8px;
}

.omt-utility-form-page .omt-page-header > div > p {
    margin-top: 2px;
    margin-left: 40px;
    font-size: .72rem;
}

[dir="rtl"] .omt-utility-form-page .omt-page-header > div > p {
    margin-right: 40px;
    margin-left: 0;
}

.omt-utility-form-page .omt-back-link {
    margin-bottom: 5px;
    font-size: .68rem;
}

.omt-utility-form-page .omt-config-form-card {
    max-width: 900px;
    margin-top: 6px;
}

.omt-utility-form-page .omt-config-form-card .card-header {
    min-height: 40px;
    padding: 8px 14px;
}

.omt-utility-form-page .omt-config-form-card .card-header span {
    font-size: .78rem;
}

.omt-utility-form-page .omt-config-form-card .card-header small {
    font-size: .66rem;
}

.omt-utility-form-page .omt-config-form-card .card-body {
    padding: 14px 15px 13px;
}

.omt-utility-form-page .omt-config-form-grid {
    gap: 10px 14px;
}

.omt-utility-form-page .omt-form-field {
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 8px;
    row-gap: 2px;
}

.omt-utility-form-page .omt-form-field .form-label {
    min-height: 14px;
    font-size: .61rem;
    letter-spacing: .025em;
}

.omt-utility-form-page .form-control,
.omt-utility-form-page .form-select,
.omt-utility-form-page .input-group-text {
    height: 36px;
    min-height: 36px;
    font-size: .76rem;
    border-radius: 7px;
}

.omt-utility-form-page .input-group-text {
    width: 38px;
    padding: 6px;
    font-size: .7rem;
}

.omt-utility-form-page textarea.form-control {
    height: 48px;
    min-height: 48px;
}

.omt-utility-form-page .omt-form-field:has(textarea) .form-label {
    padding-top: 7px;
}

.omt-utility-form-page .omt-form-field > small {
    min-height: 11px;
    margin-top: 1px;
    font-size: .59rem;
    line-height: 1.2;
}

.omt-utility-form-page .omt-form-actions {
    margin-top: 10px;
    padding-top: 10px;
    gap: 7px;
}

.omt-utility-form-page .omt-form-actions .btn {
    min-height: 34px;
    padding: 6px 12px;
    font-size: .72rem;
    border-radius: 7px;
}

@media (max-width: 767.98px) {
    .omt-utility-form-page {
        max-width: 100%;
    }

    .omt-utility-form-page .omt-config-form-card {
        max-width: 100%;
    }

    .omt-utility-form-page .omt-form-field {
        grid-template-columns: 1fr;
    }

    .omt-utility-form-page .omt-page-header > div > p,
    [dir="rtl"] .omt-utility-form-page .omt-page-header > div > p {
        margin-right: 0;
        margin-left: 0;
    }
}

/* Utility management */
.omt-utility-page-header p,
.omt-page-header > div > p {
    color: #718096;
    margin: 4px 0 0 46px;
    font-size: .86rem;
}

[dir="rtl"] .omt-utility-page-header p,
[dir="rtl"] .omt-page-header > div > p {
    margin-right: 46px;
    margin-left: 0;
}

.omt-utility-toolbar {
    margin-top: 14px;
}

.omt-utility-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 20px 0 10px;
}

.omt-utility-section-heading.is-configurable {
    margin-top: 26px;
}

.omt-utility-section-heading span:not(.omt-source-badge) {
    display: block;
    color: #667085;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.omt-utility-section-heading h2 {
    margin: 2px 0;
    color: #101418;
    font-size: 1rem;
    font-weight: 800;
}

.omt-utility-section-heading p {
    margin: 0;
    color: #718096;
    font-size: .76rem;
}

.omt-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    color: #176b48;
    background: #e8f7ef;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 800;
    white-space: nowrap;
}

.omt-reference-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
}

.omt-reference-card {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 78px;
    padding: 11px 28px 11px 11px;
    color: #101418;
    background: #fff;
    border: 1px solid #dce2ea;
    border-radius: 11px;
    box-shadow: 0 4px 12px rgba(16, 24, 40, .035);
    text-decoration: none;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.omt-reference-card:hover {
    color: #101418;
    border-color: #e1c500;
    box-shadow: 0 7px 18px rgba(16, 24, 40, .08);
    transform: translateY(-1px);
}

.omt-reference-card-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #101418;
    background: #ffde00;
    border-radius: 9px;
}

.omt-reference-card-copy {
    min-width: 0;
}

.omt-reference-card-copy strong,
.omt-reference-card-copy small {
    display: block;
}

.omt-reference-card-copy strong {
    font-size: .78rem;
    font-weight: 800;
}

.omt-reference-card-copy small {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 3px;
    color: #718096;
    font-size: .64rem;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.omt-reference-count {
    min-width: 34px;
    text-align: center;
}

.omt-reference-count strong,
.omt-reference-count small {
    display: block;
}

.omt-reference-count strong {
    font-size: .9rem;
}

.omt-reference-count small {
    color: #718096;
    font-size: .55rem;
    white-space: nowrap;
}

.omt-reference-arrow {
    position: absolute;
    right: 9px;
    color: #98a2b3;
    font-size: .7rem;
}

[dir="rtl"] .omt-reference-card {
    padding-right: 11px;
    padding-left: 28px;
}

[dir="rtl"] .omt-reference-arrow {
    right: auto;
    left: 9px;
    transform: rotate(180deg);
}

.omt-reference-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 13px;
    background: #fffbea;
    border: 1px solid #eed44d;
    border-radius: 10px;
}

.omt-reference-notice > i {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: #101418;
    background: #ffde00;
    border-radius: 8px;
}

.omt-reference-notice strong,
.omt-reference-notice span {
    display: block;
}

.omt-reference-notice strong {
    color: #101418;
    font-size: .78rem;
}

.omt-reference-notice span {
    margin-top: 2px;
    color: #667085;
    font-size: .7rem;
}

.omt-utility-toolbar .omt-search {
    max-width: 430px;
}

.omt-utility-table td {
    vertical-align: middle;
}

.omt-utility-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.omt-utility-identity > div {
    display: grid;
    gap: 3px;
}

.omt-utility-identity strong {
    color: #101418;
    font-size: .91rem;
}

.omt-utility-identity code,
.omt-page-header code {
    color: #667085;
    background: #f1f3f5;
    border-radius: 6px;
    padding: 2px 7px;
    width: fit-content;
    font-size: .72rem;
}

.omt-utility-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #ffde00;
    color: #101418;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}

.omt-utility-icon.is-small {
    width: 34px;
    height: 34px;
}

.omt-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    white-space: nowrap;
}

.omt-config-form-card {
    max-width: 1120px;
    margin: 14px auto 0;
    border: 1px solid #dce2ea;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .06);
}

.omt-config-form-card .card-header {
    min-height: 52px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f8f9fb;
    border-bottom: 1px solid #dce2ea;
}

.omt-config-form-card .card-header span {
    color: #101418;
    font-weight: 800;
}

.omt-config-form-card .card-header small {
    color: #718096;
}

.omt-config-form-card .card-body {
    padding: 20px;
}

.omt-config-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(170px, .7fr);
    gap: 16px 20px;
}

.omt-form-field {
    min-width: 0;
}

.omt-form-field-wide,
.omt-config-active {
    grid-column: 1 / -1;
}

.omt-form-field .form-label {
    margin-bottom: 6px;
    color: #101418;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.omt-form-field .form-label span {
    color: #dc3545;
}

.omt-form-field > small {
    display: block;
    margin-top: 5px;
    color: #718096;
    font-size: .73rem;
}

.omt-config-form-card .form-control,
.omt-config-form-card .form-select,
.omt-config-form-card .input-group-text {
    min-height: 44px;
    border-color: #ccd5e1;
}

.omt-config-form-card .input-group-text {
    background: #f4f6f8;
    color: #667085;
}

.omt-config-form-card input[readonly] {
    background: #f4f6f8;
    color: #667085;
}

.omt-config-active {
    margin: 0;
}

.omt-form-actions {
    display: flex;
    gap: 9px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e6ec;
}

.omt-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #667085;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.omt-back-link:hover {
    color: #101418;
}

@media (max-width: 767.98px) {
    .omt-reference-grid {
        grid-template-columns: 1fr;
    }

    .omt-utility-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .omt-config-form-grid {
        grid-template-columns: 1fr;
    }

    .omt-form-field-wide,
    .omt-config-active {
        grid-column: auto;
    }

    .omt-config-form-card .card-body {
        padding: 15px;
    }

    .omt-row-actions,
    .omt-form-actions {
        flex-wrap: wrap;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .omt-reference-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) and (max-width: 1599.98px) {
    .omt-reference-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.omt-corridor-fees-page.is-editing-fee > .omt-page-header,
.omt-corridor-fees-page.is-editing-fee .omt-fee-list-heading,
.omt-corridor-fees-page.is-editing-fee .omt-fee-list-card {
    display: none;
}

.omt-corridor-fees-page #fee-rule-form .form-label {
    color: #0f1115;
    font-weight: 800;
}

.omt-corridor-fees-page #fee-rule-form .form-label .text-danger {
    color: #d71920 !important;
    font-weight: 900;
}

/* Modern flash notification. */
.omt-toast-stack {
    position: fixed;
    top: 76px;
    right: 18px;
    z-index: 1090;
    width: min(430px, calc(100vw - 32px));
}

[dir="rtl"] .omt-toast-stack {
    right: auto;
    left: 18px;
}

.omt-status-toast {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    color: #141821;
    background: #fff;
    border: 1px solid #dfe4eb;
    border-left: 4px solid #ffde00;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(20, 24, 33, 0.16);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

[dir="rtl"] .omt-status-toast {
    border-right: 4px solid #ffde00;
    border-left: 1px solid #dfe4eb;
}

.omt-status-toast.is-hiding {
    opacity: 0;
    transform: translateY(-8px);
}

.omt-status-toast-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    color: #111;
    background: #ffde00;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 900;
}

.omt-status-toast-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.omt-status-toast-copy strong {
    color: #111;
    font-size: 12px;
}

.omt-status-toast-copy span {
    color: #5e6878;
    font-size: 11px;
    line-height: 1.35;
}

.omt-status-toast-close {
    display: inline-grid;
    width: 28px;
    height: 28px;
    padding: 0;
    place-items: center;
    color: #6b7482;
    background: transparent;
    border: 0;
    border-radius: 5px;
}

.omt-status-toast-close:hover {
    color: #111;
    background: #f1f3f6;
}

/* Compact OMT toggle cards for fee-rule flags. */
.omt-corridor-fees-page .omt-fee-flags {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.omt-corridor-fees-page .omt-fee-flags .form-check {
    display: flex;
    min-height: 34px;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #d9dfe7;
    border-radius: 7px;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.omt-corridor-fees-page .omt-fee-flags .form-check:hover {
    border-color: #b9c1cd;
    box-shadow: 0 2px 7px rgba(20, 24, 33, 0.07);
}

.omt-corridor-fees-page .omt-fee-flags .form-check:has(.form-check-input:checked) {
    background: #fffbea;
    border-color: #ffde00;
    box-shadow: inset 3px 0 0 #ffde00;
}

[dir="rtl"] .omt-corridor-fees-page .omt-fee-flags .form-check:has(.form-check-input:checked) {
    box-shadow: inset -3px 0 0 #ffde00;
}

.omt-corridor-fees-page .omt-fee-flags .form-check-input {
    float: none;
    width: 30px;
    height: 17px;
    flex: 0 0 30px;
    margin: 0;
    cursor: pointer;
    border-color: #b9c1cd;
    box-shadow: none;
}

.omt-corridor-fees-page .omt-fee-flags .form-check-input:checked {
    background-color: #ffde00;
    border-color: #d6bb00;
}

.omt-corridor-fees-page .omt-fee-flags .form-check-input:focus-visible {
    outline: 3px solid rgba(255, 222, 0, 0.3);
    outline-offset: 2px;
}

.omt-corridor-fees-page .omt-fee-flags .form-check-label {
    margin: 0;
    color: #151820;
    font-size: 10.5px;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 767.98px) {
    .omt-admin-form {
        grid-template-columns: 1fr;
    }

    .omt-admin-form-actions {
        grid-column: 1;
    }

    .omt-onboarding-steps {
        grid-template-columns: 1fr;
    }
}

/* ---------- Application shell / sidebar ---------- */

.omt-app-body {
    min-height: 100vh;
}

.omt-app-shell {
    display: flex;
    min-height: 100vh;
}

.omt-app-main {
    flex: 1 1 auto;
    min-width: 0;
}

.omt-sidebar {
    position: sticky;
    top: 0;
    z-index: 1040;
    display: flex;
    flex: 0 0 230px;
    flex-direction: column;
    width: 230px;
    height: 100vh;
    color: #cfd2d6;
    background: var(--omt-ink);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.omt-sidebar-brand {
    min-height: 70px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.omt-sidebar-brand,
.omt-sidebar-brand a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.omt-sidebar-brand a {
    justify-content: flex-start;
    gap: 11px;
    color: #fff;
    text-decoration: none;
}

.omt-sidebar-brand img {
    width: 72px;
    height: auto;
}

.omt-sidebar-brand strong,
.omt-sidebar-brand small {
    display: block;
}

.omt-sidebar-brand strong {
    color: var(--omt-yellow);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.omt-sidebar-brand small {
    margin-top: 2px;
    color: #8f959d;
    font-size: 0.65rem;
}

.omt-sidebar-label {
    padding: 18px 20px 7px;
    color: #777e87;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.omt-sidebar-nav {
    flex: 1 1 auto;
    padding: 0 10px 14px;
    overflow-y: auto;
}

.omt-sidebar-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    margin: 3px 0;
    padding: 9px 11px;
    gap: 11px;
    color: #cfd2d6;
    background: transparent;
    border: 0;
    border-radius: 7px;
    font-size: 0.79rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.omt-sidebar-item .bi {
    width: 20px;
    flex: 0 0 20px;
    font-size: 0.95rem;
    text-align: center;
}

.omt-sidebar-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

.omt-sidebar-item.active {
    color: var(--omt-ink);
    background: var(--omt-yellow);
}

.omt-sidebar-item:disabled {
    color: #6a6d72;
    cursor: default;
}

.omt-sidebar-item:disabled:hover {
    background: transparent;
    color: #6a6d72;
}

.omt-badge-soon {
    margin-left: auto;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #9a9da2;
}

.omt-sidebar-footer {
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.omt-sidebar-footer form {
    margin: 0;
}

.omt-sidebar-close,
.omt-sidebar-toggle {
    display: inline-grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 7px;
}

.omt-sidebar-toggle {
    margin-right: 10px;
}

.omt-sidebar-backdrop {
    display: none;
}

.omt-main-content {
    width: 100%;
    padding-top: 1rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

@media (max-width: 991.98px) {
    .omt-sidebar {
        position: fixed;
        left: 0;
        transform: translateX(-100%);
        box-shadow: 14px 0 35px rgba(0, 0, 0, 0.25);
        transition: transform 0.2s ease;
    }

    .omt-sidebar-open .omt-sidebar {
        transform: translateX(0);
    }

    .omt-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1035;
        background: rgba(8, 10, 12, 0.48);
    }

    .omt-sidebar-open .omt-sidebar-backdrop {
        display: block;
    }

    .omt-sidebar-open {
        overflow: hidden;
    }
}

@media (max-width: 575.98px) {
    .omt-main-content,
    .omt-navbar .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .omt-navbar .navbar-brand img {
        height: 25px;
    }

    .omt-navbar .brand-suffix {
        display: none;
    }
}

/* ==================================================================
   Simulator parity layer
   The supplied OMT simulator is the visual source of truth. These
   shared tokens keep every platform screen compact and consistent,
   while substituting the production OMT yellow (#ffde00).
   ================================================================== */

:root {
    --omt-ink: #141821;
    --omt-ink-soft: #4a5568;
    --omt-gray-50: #f6f8fb;
    --omt-gray-100: #eef2f7;
    --omt-gray-200: #e3e7ee;
    --omt-gray-300: #cdd4df;
    --omt-gray-500: #6b7688;
    --omt-radius: 6px;
    --omt-radius-lg: 9px;
    --omt-shadow: 0 1px 2px rgba(20, 24, 33, 0.06), 0 4px 16px rgba(20, 24, 33, 0.06);
    --omt-shadow-lg: 0 8px 24px rgba(20, 24, 33, 0.12);
}

html {
    font-size: 14px;
}

body,
button,
input,
select,
textarea,
.omt-corridor-module {
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

body {
    font-size: 13.5px;
    line-height: 1.4;
    background: #eef2f7;
    -webkit-font-smoothing: antialiased;
}

.omt-sidebar {
    width: 216px;
    flex-basis: 216px;
    background: #141821;
}

.omt-sidebar-brand {
    min-height: 58px;
    padding: 10px 14px;
}

.omt-sidebar-brand img {
    width: 64px;
}

.omt-sidebar-brand strong {
    font-size: 12px;
}

.omt-sidebar-brand small {
    font-size: 10px;
}

.omt-sidebar-label {
    padding: 14px 18px 6px;
    font-size: 9px;
}

.omt-sidebar-nav {
    padding: 0 10px 12px;
}

.omt-sidebar-item {
    min-height: 38px;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.omt-sidebar-item.active {
    font-weight: 600;
    background: #ffde00;
}

.omt-navbar {
    min-height: 56px;
    margin-bottom: 0 !important;
    padding: 0 0.3rem;
    background: #141821 !important;
    border-bottom: 3px solid #ffde00;
    box-shadow: none;
}

.omt-main-content {
    padding: 16px !important;
}

.omt-page-header {
    margin-bottom: 14px;
}

.omt-page-header h1 {
    font-size: 18px;
}

.omt-heading-block p {
    margin-top: 3px;
    font-size: 12px;
}

.card,
.omt-table-card,
.omt-admin-form-card,
.omt-user-security-panel,
.omt-dashboard-card {
    border-color: #e3e7ee;
    border-radius: 9px;
    box-shadow: var(--omt-shadow);
}

.card-header,
.omt-simulator-card-header,
.omt-admin-card-header {
    background: #f6f8fb;
    border-color: #e3e7ee;
}

.btn {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: none;
}

.btn-sm,
.omt-row-actions .btn {
    padding: 6px 11px;
    border-radius: 6px;
    font-size: 12px;
}

.form-control,
.form-select,
.omt-select-trigger {
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid #cdd4df;
    border-radius: 6px;
    font-size: 13px;
}

.form-control:focus,
.form-select:focus,
.omt-select-wrap.show .omt-select-trigger,
.omt-select-trigger:focus {
    border-color: #d9bd00;
    box-shadow: 0 0 0 2px rgba(255, 222, 0, 0.35);
}

.form-label {
    margin-bottom: 4px;
    color: #4a5568;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.form-text {
    font-size: 10.5px;
}

.table thead th {
    padding: 10px 12px;
    color: #6b7688;
    background: #f6f8fb;
    border-color: #e3e7ee;
    font-size: 10.5px;
    letter-spacing: 0.5px;
}

.table tbody td {
    padding: 10px 12px;
    border-color: #e3e7ee;
    font-size: 12px;
}

.omt-select-menu {
    border-color: #cdd4df;
    border-radius: 6px;
    box-shadow: var(--omt-shadow-lg);
}

.omt-select-menu li {
    padding: 7px 9px;
    border-radius: 5px;
    font-size: 12px;
}

.omt-dashboard-card {
    min-height: 150px;
}

@media (max-width: 991.98px) {
    .omt-sidebar {
        width: 216px;
    }
}

@media (max-width: 575.98px) {
    .omt-main-content {
        padding: 12px !important;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    color: var(--omt-ink);
}

a {
    color: var(--omt-blue);
}

/* ---------- Top navigation ---------- */

.omt-navbar {
    background-color: var(--omt-ink) !important;
    box-shadow: var(--omt-shadow);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.omt-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.omt-navbar .navbar-brand img {
    height: 30px;
    width: auto;
}

.omt-navbar .navbar-brand .brand-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.2);
}

.omt-navbar .navbar-brand .brand-suffix {
    color: var(--omt-yellow);
    font-weight: 700;
    font-size: 0.95rem;
}

.omt-navbar .navbar-text {
    color: rgba(255, 255, 255, 0.75) !important;
}

.omt-navbar .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.35);
}

.omt-navbar .btn-outline-light:hover {
    background-color: var(--omt-yellow);
    border-color: var(--omt-yellow);
    color: var(--omt-ink);
}

/* ---------- Buttons ---------- */

.btn {
    border-radius: var(--omt-radius);
    font-weight: 600;
    padding: 0.5rem 1.1rem;
    transition: transform 0.05s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-sm {
    border-radius: 8px;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    --bs-btn-color: var(--omt-ink);
    --bs-btn-bg: var(--omt-yellow);
    --bs-btn-border-color: var(--omt-yellow);
    --bs-btn-hover-color: var(--omt-ink);
    --bs-btn-hover-bg: var(--omt-yellow-dark);
    --bs-btn-hover-border-color: var(--omt-yellow-dark);
    --bs-btn-focus-shadow-rgb: 255, 222, 0;
    --bs-btn-active-color: var(--omt-ink);
    --bs-btn-active-bg: var(--omt-yellow-dark);
    --bs-btn-active-border-color: var(--omt-yellow-dark);
    --bs-btn-disabled-color: var(--omt-ink);
    --bs-btn-disabled-bg: var(--omt-yellow);
    --bs-btn-disabled-border-color: var(--omt-yellow);
    background-color: var(--omt-yellow);
    border-color: var(--omt-yellow);
    color: var(--omt-ink);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--omt-yellow-dark);
    border-color: var(--omt-yellow-dark);
    color: var(--omt-ink);
    box-shadow: 0 6px 16px rgba(255, 222, 0, 0.35);
}

.btn-outline-secondary {
    border-color: var(--omt-gray-300);
    color: var(--omt-ink-soft);
}

.btn-outline-secondary:hover {
    background-color: var(--omt-ink);
    border-color: var(--omt-ink);
}

.btn-link {
    color: var(--omt-blue);
    font-weight: 600;
}

/* ---------- Cards ---------- */

.card {
    border: 1px solid var(--omt-gray-200);
    border-radius: var(--omt-radius-lg);
    box-shadow: var(--omt-shadow);
}

a.card {
    color: inherit;
    transition: box-shadow 0.15s ease-in-out, border-color 0.15s ease-in-out, transform 0.1s ease-in-out;
}

a.card:hover {
    box-shadow: var(--omt-shadow-lg);
    border-color: var(--omt-yellow);
    transform: translateY(-2px);
}

/* Dashboard section tiles */
.omt-tile {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.35rem;
}

.omt-tile-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--omt-yellow-soft);
    color: var(--omt-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* ---------- Operations dashboard ---------- */

.omt-dashboard-page-header {
    margin-bottom: 0;
    padding: 0.15rem 0;
}

.omt-dashboard-section-heading-first {
    margin-top: 0.85rem;
}

.omt-dashboard-hero {
    position: relative;
    display: flex;
    min-height: 128px;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 1.4rem;
    overflow: hidden;
    color: #fff;
    background: var(--omt-ink);
    border: 1px solid #282b2f;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(16, 17, 18, 0.1);
}

.omt-dashboard-hero::after {
    position: absolute;
    top: -75px;
    right: 22%;
    width: 220px;
    height: 220px;
    background: var(--omt-yellow);
    border-radius: 50%;
    opacity: 0.07;
    content: '';
}

.omt-dashboard-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
    color: var(--omt-yellow);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.omt-dashboard-hero h1 {
    margin: 0;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
}

.omt-dashboard-hero p {
    margin: 0.3rem 0 0;
    color: #aeb4bc;
    font-size: 0.75rem;
}

.omt-dashboard-role {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 230px;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.85rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
}

.omt-dashboard-role small,
.omt-dashboard-role strong {
    display: block;
}

.omt-dashboard-role small {
    color: #9299a3;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.omt-dashboard-role strong {
    margin-top: 0.1rem;
    color: #fff;
    font-size: 0.74rem;
}

.omt-dashboard-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 1.15rem 0 0.65rem;
}

.omt-dashboard-section-heading span {
    color: var(--omt-gray-500);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.omt-dashboard-section-heading h2 {
    margin: 0.08rem 0 0;
    font-size: 0.98rem;
}

.omt-dashboard-section-heading > small {
    color: var(--omt-gray-500);
    font-size: 0.68rem;
}

.omt-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.omt-dashboard-card {
    position: relative;
    display: flex;
    min-height: 158px;
    flex-direction: column;
    padding: 0.9rem;
    overflow: hidden;
    color: var(--omt-ink);
    background: #fff;
    border: 1px solid var(--omt-gray-200);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(16, 17, 18, 0.045);
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.omt-dashboard-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--omt-yellow);
    content: '';
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.15s ease;
}

.omt-dashboard-card:hover {
    color: var(--omt-ink);
    border-color: #d6bd00;
    box-shadow: 0 8px 22px rgba(16, 17, 18, 0.09);
    transform: translateY(-2px);
}

.omt-dashboard-card:hover::before {
    transform: scaleX(1);
}

.omt-dashboard-card-top,
.omt-dashboard-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.omt-dashboard-card-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--omt-ink);
    background: var(--omt-yellow);
    border-radius: 9px;
    font-size: 1rem;
}

.omt-dashboard-module {
    padding: 0.22rem 0.48rem;
    color: #626b77;
    background: #f2f3f5;
    border-radius: 999px;
    font-size: 0.57rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.omt-dashboard-card-copy {
    margin-top: 0.7rem;
}

.omt-dashboard-card-copy h3 {
    margin: 0;
    font-size: 0.88rem;
}

.omt-dashboard-card-copy p {
    margin: 0.18rem 0 0;
    color: var(--omt-gray-500);
    font-size: 0.69rem;
}

.omt-dashboard-card-action {
    margin-top: auto;
    padding-top: 0.55rem;
    color: #565f6b;
    border-top: 1px solid #eef0f2;
    font-size: 0.63rem;
    font-weight: 700;
}

.omt-dashboard-card:hover .omt-dashboard-card-action {
    color: var(--omt-ink);
}

.omt-dashboard-card-action i {
    transition: transform 0.15s ease;
}

.omt-dashboard-card:hover .omt-dashboard-card-action i {
    transform: translateX(3px);
}

.omt-dashboard-access-note,
.omt-dashboard-empty {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.8rem;
    padding: 0.7rem 0.85rem;
    background: #fffdf0;
    border: 1px solid #eadb7a;
    border-radius: 8px;
}

.omt-dashboard-access-note > i,
.omt-dashboard-empty > i {
    display: grid;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    place-items: center;
    color: var(--omt-ink);
    background: var(--omt-yellow);
    border-radius: 7px;
}

.omt-dashboard-access-note strong,
.omt-dashboard-access-note span {
    display: block;
}

.omt-dashboard-access-note strong { font-size: 0.7rem; }
.omt-dashboard-access-note span { color: #6f7782; font-size: 0.64rem; }

.omt-dashboard-empty {
    grid-column: 1 / -1;
}

.omt-dashboard-empty h2 { margin: 0; font-size: 0.82rem; }
.omt-dashboard-empty p { margin: 0.15rem 0 0; color: var(--omt-gray-500); font-size: 0.68rem; }

@media (max-width: 1199.98px) {
    .omt-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .omt-dashboard-hero { align-items: flex-start; flex-direction: column; }
    .omt-dashboard-role { width: 100%; min-width: 0; }
    .omt-dashboard-grid { grid-template-columns: 1fr; }
}

/* ---------- Page header ---------- */

.omt-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.omt-page-header h1 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.4rem;
    margin: 0;
}

.omt-page-header h1 .bi {
    color: var(--omt-ink);
    background: var(--omt-yellow-soft);
    padding: 0.4rem;
    border-radius: 8px;
    font-size: 1rem;
}

.omt-heading-block p {
    margin: 0.35rem 0 0 3rem;
    color: var(--omt-gray-500);
    font-size: 0.82rem;
}

/* ---------- Tables ---------- */

.table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
}

.table thead th {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--omt-gray-500);
    border-bottom: 2px solid var(--omt-gray-200);
    background-color: var(--omt-gray-50);
    font-weight: 700;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.table tbody td {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    vertical-align: middle;
    border-bottom-color: var(--omt-gray-200);
}

.table-hover tbody tr:hover {
    background-color: var(--omt-yellow-soft);
}

.card > .table-responsive:first-child > .table,
.card > .table:first-child {
    border-top-left-radius: var(--omt-radius-lg);
    border-top-right-radius: var(--omt-radius-lg);
    overflow: hidden;
}

/* ---------- Forms ---------- */

.form-control,
.form-select {
    border-radius: 8px;
    border-color: var(--omt-gray-300);
    padding: 0.55rem 0.85rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--omt-yellow-dark);
    box-shadow: 0 0 0 0.2rem rgba(255, 222, 0, 0.35);
}

.form-label {
    font-weight: 600;
    color: var(--omt-ink-soft);
    font-size: 0.9rem;
}

.form-check-input:checked {
    background-color: var(--omt-ink);
    border-color: var(--omt-ink);
}

.form-switch .form-check-input:checked {
    background-color: var(--omt-ink);
    border-color: var(--omt-ink);
}

/* Corridor and pricing configuration */
.omt-corridor-module {
    --corridor-ink: #141821;
    --corridor-muted: #6b7688;
    --corridor-line: #d9dfe6;
    --corridor-surface: #ffffff;
    --corridor-paper: #f1f3f6;
    width: 100%;
    max-width: none;
    margin: 0;
    color: var(--corridor-ink);
    font-family: "Manrope", "Lato", sans-serif;
    font-size: 0.82rem;
}

.omt-corridor-module .omt-page-header {
    margin-bottom: 0.85rem;
    align-items: flex-end;
}

.omt-corridor-module .omt-page-header h1 {
    gap: 0.55rem;
    margin-bottom: 0.15rem;
    font-size: 1.08rem;
    font-weight: 800;
}

.omt-corridor-module .omt-page-header h1 > i {
    width: 31px;
    height: 31px;
    border-radius: 7px;
}

.omt-corridor-module .omt-heading-block p {
    color: var(--corridor-muted);
    font-size: 0.72rem;
}

.omt-corridor-module .card,
.omt-corridor-module .omt-table-card,
.omt-form-card {
    border: 1px solid var(--corridor-line, var(--omt-gray-200));
    border-radius: 9px;
    box-shadow: 0 1px 2px rgba(20, 24, 33, 0.04), 0 4px 14px rgba(20, 24, 33, 0.04);
    overflow: visible;
}

.omt-corridor-module .card-body {
    padding: 1rem !important;
}

.omt-simulator-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--corridor-line);
    border-radius: 9px 9px 0 0;
    background: #f7f8fa;
}

.omt-simulator-card-header > div {
    display: flex;
    flex-direction: column;
}

.omt-simulator-card-header span,
.omt-corridor-module .form-label {
    color: #4a5568;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.omt-corridor-form-section {
    padding: 0.85rem;
    border: 1px solid var(--corridor-line);
    border-radius: 8px;
    background: #fff;
}

.omt-form-card .card-body {
    padding: 0.85rem !important;
    background: #f4f6f8;
}

.omt-corridor-definition-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem;
}

.omt-section-identity { grid-column: 1; grid-row: 1; }
.omt-section-validity { grid-column: 2; grid-row: 1; }
.omt-section-route { grid-column: 1; grid-row: 2; }
.omt-section-service { grid-column: 2; grid-row: 2; }
.omt-section-currencies,
.omt-form-actions { grid-column: 1 / -1; }

.omt-section-identity .form-text {
    white-space: normal;
}

.omt-corridor-section-heading {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.65rem;
}

.omt-corridor-section-heading > span {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    place-items: center;
    color: var(--corridor-ink);
    background: #ffde00;
    border-radius: 7px;
}

.omt-corridor-section-heading h2 {
    margin: 0;
    color: var(--corridor-ink);
    font-size: 0.75rem;
    font-weight: 800;
}

.omt-corridor-section-heading p {
    margin: 0.12rem 0 0;
    color: var(--corridor-muted);
    font-size: 0.62rem;
}

.omt-code-input .input-group-text {
    color: #536071;
    background: #f3f5f7;
    border-color: #cdd4df;
}

.omt-code-input .form-control {
    font-family: "IBM Plex Mono", monospace;
    text-transform: uppercase;
}

.omt-corridor-module .form-text {
    margin-top: 0.3rem;
    color: #7b8492;
    font-size: 0.64rem;
}

.omt-active-switch {
    display: flex;
    min-height: 39px;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.7rem;
    border: 1px solid #cdd4df;
    border-radius: 6px;
    background: #f8f9fa;
}

.omt-active-switch strong,
.omt-active-switch small {
    display: block;
}

.omt-active-switch strong { font-size: 0.68rem; }
.omt-active-switch small { color: var(--corridor-muted); font-size: 0.58rem; }

.omt-currency-section {
    background: #fff;
}

.omt-currency-row {
    margin-right: 0;
    margin-left: 0;
    padding: 0.55rem;
    border: 1px solid #e0e4e9;
    border-radius: 7px;
    background: #fff;
}

.omt-form-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.1rem 0 0;
    border-top: 0;
    background: transparent;
}

.omt-corridor-module .form-control,
.omt-corridor-module .form-select,
.omt-corridor-module .omt-select-trigger {
    min-height: 36px;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.omt-corridor-module .omt-select-menu {
    max-height: 190px;
    padding: 0.25rem;
}

.omt-corridor-module .omt-select-menu li {
    padding: 0.38rem 0.55rem;
    border-radius: 5px;
    font-size: 0.72rem;
}

@media (max-width: 1199.98px) {
    .omt-corridor-definition-form { grid-template-columns: 1fr; }
    .omt-section-identity,
    .omt-section-validity,
    .omt-section-route,
    .omt-section-service,
    .omt-section-currencies,
    .omt-form-actions { grid-column: 1; grid-row: auto; }
}

@media (max-width: 575.98px) {
    .omt-heading-with-action { flex-wrap: wrap; }
    .omt-heading-with-action .btn { width: 100%; margin-left: 0 !important; }
}

.omt-simulator-card-header strong {
    color: var(--corridor-ink);
    font-size: 0.82rem;
}

.omt-simulator-card-header em {
    color: var(--corridor-muted);
    font-size: 0.66rem;
    font-style: normal;
}

.omt-corridor-module .form-label {
    margin-bottom: 0.3rem;
}

.omt-corridor-module .form-control,
.omt-corridor-module .form-select,
.omt-corridor-module .omt-select-trigger {
    min-height: 36px;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    border-color: #cdd4df;
    border-radius: 6px;
    font-family: "Manrope", "Lato", sans-serif;
    font-size: 0.76rem;
}

.omt-corridor-module input[type="number"],
.omt-corridor-module code,
.omt-corridor-module .table td:nth-child(3),
.omt-corridor-module .table td:nth-child(4) {
    font-family: "IBM Plex Mono", monospace;
}

.omt-corridor-module .form-control:focus,
.omt-corridor-module .omt-select-wrap.show .omt-select-trigger {
    border-color: #d5ba00;
    box-shadow: 0 0 0 2px rgba(255, 222, 0, 0.28);
}

.omt-corridor-module .omt-select-menu {
    border-radius: 7px;
    box-shadow: 0 12px 28px rgba(20, 24, 33, 0.14);
    font-size: 0.76rem;
}

.omt-corridor-module .btn {
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
}

.omt-corridor-module .btn-primary {
    border-color: #ffde00;
    background: #ffde00;
    color: #141821;
}

.omt-corridor-module .btn-primary:hover {
    border-color: #e1c400;
    background: #e1c400;
    color: #141821;
}

.omt-corridor-module .omt-table-toolbar {
    margin-bottom: 0.7rem;
}

.omt-corridor-module .omt-search {
    max-width: 320px;
}

.omt-corridor-module .table thead th {
    padding: 0.65rem 0.75rem;
    border-bottom-color: var(--corridor-line);
    background: #f7f8fa;
    color: #697586;
    font-size: 0.62rem;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.omt-corridor-module .table tbody td {
    padding: 0.7rem 0.75rem;
    border-color: #e7eaee;
    font-size: 0.74rem;
}

.omt-corridor-module .omt-data-pagination {
    border-top-color: var(--corridor-line);
    background: #f7f8fa;
}

.omt-corridor-module .omt-page-number.is-current,
.omt-corridor-module .omt-count-badge {
    background: #ffde00;
    color: #141821;
}

.omt-form-section {
    padding: 0.85rem;
    border: 1px solid var(--corridor-line, var(--omt-gray-200));
    border-radius: 8px;
    background: #f7f8fa;
}

.omt-count-badge {
    display: inline-flex;
    min-width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffde00;
    color: #101112;
    font-weight: 800;
}

.omt-corridor-summary {
    border: 0 !important;
    border-radius: 8px !important;
    background: #141821;
    color: #fff;
    box-shadow: 0 9px 24px rgba(16, 17, 18, 0.14);
}

.omt-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.5rem;
}

.omt-summary-grid > div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.omt-summary-grid span {
    color: #aeb4ba;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.omt-summary-grid strong {
    font-size: 0.82rem;
}

.omt-summary-grid .omt-summary-wide {
    grid-column: span 3;
}

.omt-summary-grid em {
    display: inline-flex;
    margin: 0.2rem 0.35rem 0 0;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #ffde00;
    color: #101112;
    font-size: 0.7rem;
    font-style: normal;
}

.omt-corridor-module .omt-form-heading {
    margin-bottom: 0.8rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--corridor-line);
}

.omt-corridor-module .omt-form-heading h2 {
    font-size: 0.9rem;
}

.omt-corridor-module .omt-form-heading p {
    font-size: 0.7rem;
}

.omt-fee-components {
    display: grid;
    gap: 0.75rem;
}

.omt-fee-scope-panel {
    margin-right: 0;
    margin-left: 0;
    padding: 0.85rem;
    border: 1px solid var(--corridor-line, var(--omt-gray-200));
    border-radius: 8px;
    background: #fff;
}

.omt-fee-flags {
    display: flex;
    min-height: 36px;
    align-items: center;
    gap: 1.5rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid #d4dae1;
    border-radius: 6px;
    background: #f8f9fa;
}

.omt-fee-flags .form-check {
    min-width: 0;
    margin: 0;
}

.omt-fee-flags .form-check-label {
    font-size: 0.72rem;
}

@media (max-width: 575.98px) {
    .omt-fee-flags {
        width: 100%;
        justify-content: flex-start;
        gap: 1rem;
    }
}

.omt-fee-component {
    padding: 0 0.85rem 0.85rem;
    border: 1px solid var(--corridor-line, var(--omt-gray-200));
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.omt-fee-component-title {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    margin: 0 -0.85rem 0.75rem;
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid var(--corridor-line);
    background: #f7f8fa;
}

.omt-fee-component-title > span {
    display: inline-flex;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #ffde00;
    font-weight: 900;
}

.omt-fee-component-title h3 {
    margin: 0;
    font-size: 0.76rem;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    font-weight: 800;
}

.omt-fee-component-title p {
    margin: 0;
    color: var(--omt-gray-600);
    font-size: 0.68rem;
}

.omt-fee-component .row {
    align-items: flex-end;
}

.omt-fee-component .form-label {
    display: flex;
    min-height: 1.65rem;
    align-items: flex-end;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    font-size: 0.58rem;
    line-height: 1.15;
}

.omt-fee-component .form-control {
    width: 100%;
}

@media (max-width: 767.98px) {
    .omt-fee-component .form-label {
        min-height: auto;
        white-space: normal;
    }
}

.omt-rule-flag {
    display: inline-flex;
    margin: 0.1rem;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    background: #fff5b5;
    color: #665900;
    font-size: 0.65rem;
    font-weight: 800;
}

.omt-risk-note {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.85rem;
    border: 1px solid #e3c600;
    border-radius: 8px;
    background: #fffbed;
}

.omt-risk-note > i {
    color: #695c00;
    font-size: 1.25rem;
}

.omt-risk-note div {
    display: flex;
    flex-direction: column;
}

.omt-risk-note span {
    color: var(--omt-gray-700);
    font-size: 0.72rem;
}

.omt-row-actions form {
    display: inline-block;
    margin: 0;
}

/* ---------- Badges ---------- */

.badge.bg-success { background-color: var(--omt-success) !important; }
.badge.bg-warning { background-color: var(--omt-yellow) !important; color: var(--omt-ink) !important; }
.badge.bg-danger { background-color: var(--omt-danger) !important; }
.badge.bg-secondary { background-color: var(--omt-gray-500) !important; }
.badge.bg-info { background-color: var(--omt-navy) !important; color: #fff !important; }
.badge.bg-light { background-color: var(--omt-gray-100) !important; color: var(--omt-ink-soft) !important; }

/* ---------- Alerts ---------- */

.alert {
    border: none;
    border-radius: var(--omt-radius);
    border-left: 4px solid transparent;
}

.alert-success {
    background-color: #E9F7EF;
    color: #14532d;
    border-left-color: var(--omt-success);
}

.alert-danger {
    background-color: #FDEDEB;
    color: #7f1d1d;
    border-left-color: var(--omt-danger);
}

.alert-warning {
    background-color: var(--omt-yellow-soft);
    color: #6b5900;
    border-left-color: var(--omt-yellow-dark);
}

/* ---------- Auth shell (login / MFA / change password) ---------- */

.omt-auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 222, 0, 0.14), transparent 42%),
        radial-gradient(circle at 88% 92%, rgba(255, 222, 0, 0.10), transparent 40%),
        linear-gradient(180deg, #FFFFFF 0%, #F4F5F7 100%);
    padding: 1.5rem;
}

.omt-auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: var(--omt-radius-lg);
    box-shadow: var(--omt-shadow-lg);
    overflow: hidden;
}

.omt-auth-card .omt-auth-brand {
    background-color: var(--omt-ink);
    padding: 2rem 2rem 1.5rem;
    text-align: center;
}

.omt-auth-card .omt-auth-brand img {
    height: 40px;
}

.omt-auth-card .omt-auth-brand p {
    color: rgba(255, 255, 255, 0.65);
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.omt-auth-card .omt-auth-body {
    padding: 2rem;
}

/* ---------- Pagination ---------- */

.pagination .page-link {
    color: var(--omt-ink-soft);
    border-radius: 8px;
    margin: 0 2px;
    border-color: var(--omt-gray-300);
}

.pagination .page-item.active .page-link {
    background-color: var(--omt-ink);
    border-color: var(--omt-ink);
}

/* ---------- Utility ---------- */

.omt-muted {
    color: var(--omt-gray-500);
}

code {
    background: var(--omt-gray-100);
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    color: var(--omt-ink-soft);
}

/* ---------- Focus / active / selected states ----------
 * Bootstrap ships every interactive component wired to its own blue
 * (--bs-primary / --bs-*-focus-shadow-rgb). Overriding background-color on
 * .btn-primary etc. doesn't change those baked-in shadow variables, so we
 * neutralize the ring/shadow color directly wherever Bootstrap shows one.
 */

:root {
    --bs-focus-ring-color: rgba(255, 222, 0, 0.4);
}

.btn:focus,
.btn:focus-visible,
.btn-check:focus + .btn,
.btn-check:checked + .btn,
.btn.show,
.btn:first-child:active,
:not(.btn-check) + .btn:active {
    box-shadow: 0 0 0 0.2rem rgba(16, 17, 18, 0.15) !important;
}

.btn-primary:focus,
.btn-primary:focus-visible,
.btn-primary.show,
.btn-primary:active {
    box-shadow: 0 0 0 0.2rem rgba(255, 222, 0, 0.45) !important;
}

.form-check-input:focus {
    border-color: var(--omt-yellow-dark);
    box-shadow: 0 0 0 0.2rem rgba(255, 222, 0, 0.4);
}

.form-check-input:checked[type="radio"] {
    background-color: var(--omt-ink);
    border-color: var(--omt-ink);
}

.page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 222, 0, 0.4);
    z-index: 3;
}

a:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--omt-yellow-dark);
    outline-offset: 1px;
}

/* ---------- Dropdown menus ---------- */

.dropdown-toggle::after {
    vertical-align: 0.16em;
}

.dropdown-menu {
    border: 1px solid var(--omt-gray-200);
    border-radius: var(--omt-radius);
    box-shadow: var(--omt-shadow-lg);
    padding: 0.4rem;
    font-size: 0.9rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--omt-ink-soft);
}

.dropdown-item .bi {
    color: var(--omt-gray-500);
    font-size: 0.95rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--omt-yellow-soft);
    color: var(--omt-ink);
}

.dropdown-item:hover .bi,
.dropdown-item:focus .bi {
    color: var(--omt-ink);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--omt-ink);
    color: #fff;
}

.dropdown-divider {
    border-top-color: var(--omt-gray-200);
    margin: 0.35rem 0;
}

.omt-user-menu {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: var(--omt-radius);
    padding: 0.35rem 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.omt-user-menu:hover,
.omt-user-menu:focus,
.omt-user-menu.show {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.omt-user-menu .omt-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--omt-yellow);
    color: var(--omt-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
}

/* ---------- Select refinement ---------- */

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23101112' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-size: 12px 8px;
}

.form-select-sm,
.form-control-sm {
    border-radius: 8px;
}

/* ---------- Data table toolbar (search / filter) ---------- */

.omt-table-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.omt-table-toolbar .omt-search {
    position: relative;
    flex: 1 1 260px;
    max-width: 320px;
}

.omt-table-toolbar .omt-search .bi {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--omt-gray-500);
    pointer-events: none;
}

.omt-table-toolbar .omt-search input {
    padding-left: 2.1rem;
}

.omt-table-toolbar .form-select {
    width: auto;
    min-width: 140px;
}

.omt-select-form .omt-select-trigger {
    min-height: 44px;
    min-width: 220px;
}

.omt-permission-filter-form {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}

.omt-permission-filter {
    display: grid;
    gap: 5px;
}

.omt-permission-filter > label {
    margin: 0;
    color: #11151a;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.omt-permission-filter.is-group .omt-select-trigger {
    min-width: 250px;
}

.omt-permission-filter.is-module .omt-select-trigger {
    min-width: 360px;
}

@media (max-width: 767.98px) {
    .omt-permission-filter-form,
    .omt-permission-filter,
    .omt-permission-filter .omt-select-wrap,
    .omt-permission-filter .omt-select-trigger {
        width: 100%;
        min-width: 0;
    }
}

.omt-toolbar-actions {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0.6rem;
}

.omt-toolbar-actions .omt-select-wrap,
.omt-toolbar-actions .omt-select-trigger,
.omt-toolbar-actions .btn {
    min-height: 44px;
}

.omt-toolbar-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.omt-table-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--omt-gray-500);
}

/* ---------- Table + card + pagination as one cohesive block ---------- */

.omt-table-card {
    border-radius: var(--omt-radius-lg);
    overflow: hidden;
}

.omt-table-card .card-footer {
    background-color: var(--omt-gray-50);
    border-top: 1px solid var(--omt-gray-200);
    padding: 0.6rem 1rem;
}

.omt-table-card .pagination {
    margin-bottom: 0;
}

.omt-data-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 54px;
}

.omt-pagination-summary {
    color: var(--omt-gray-500);
    font-size: 0.76rem;
    white-space: nowrap;
}

.omt-pagination-summary strong {
    color: var(--omt-ink-soft);
    font-weight: 700;
}

.omt-pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.omt-page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 32px;
    padding: 0.3rem 0.55rem;
    border: 1px solid var(--omt-gray-300);
    border-radius: 8px;
    background: #fff;
    color: var(--omt-ink-soft);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.omt-page-button:hover {
    border-color: #ffde00;
    background: #fffbed;
    color: var(--omt-ink);
}

.omt-page-button.is-number {
    width: 32px;
    padding-right: 0;
    padding-left: 0;
}

.omt-page-button.is-current {
    border-color: #ffde00;
    background: #ffde00;
    color: var(--omt-ink);
}

.omt-page-button.is-disabled {
    background: var(--omt-gray-50);
    color: var(--omt-gray-300);
    cursor: not-allowed;
}

.omt-page-ellipsis {
    padding: 0 0.15rem;
    color: var(--omt-gray-500);
}

/* ---------- Users data table ---------- */

.omt-users-table {
    min-width: 980px;
}

.omt-users-table thead th {
    padding: 0.9rem 1rem;
}

.omt-users-table tbody td {
    padding: 0.85rem 1rem;
}

.omt-user-identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 190px;
}

.omt-user-avatar {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #f2db45;
    border-radius: 11px;
    background: linear-gradient(145deg, #fff9d9, var(--omt-yellow));
    color: var(--omt-ink);
    font-size: 0.85rem;
    font-weight: 900;
}

.omt-user-identity > span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.omt-user-identity strong {
    font-size: 0.9rem;
    line-height: 1.25;
}

.omt-user-identity small {
    margin-top: 0.15rem;
    color: var(--omt-gray-500);
    font-size: 0.75rem;
}

.omt-user-email {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--omt-ink-soft);
    font-size: 0.85rem;
    text-decoration: none;
}

.omt-user-email .bi {
    color: var(--omt-gray-500);
}

.omt-user-email:hover {
    color: var(--omt-ink);
    text-decoration: underline;
    text-decoration-color: var(--omt-yellow-dark);
    text-underline-offset: 3px;
}

.omt-group-pill,
.omt-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.omt-group-pill {
    padding: 0.35rem 0.6rem;
    background: var(--omt-gray-100);
    color: var(--omt-ink-soft);
}

.omt-group-pill .bi {
    color: var(--omt-gray-500);
}

.omt-user-statuses {
    display: table-cell;
    min-width: 145px;
}

.omt-status-pill {
    padding: 0.3rem 0.55rem;
    margin: 0.1rem 0.2rem 0.1rem 0;
}

.omt-status-pill > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.omt-status-pill.is-active {
    background: #e9f7ef;
    color: var(--omt-success);
}

.omt-status-pill.is-inactive {
    background: var(--omt-gray-100);
    color: var(--omt-gray-500);
}

.omt-status-pill.is-warning {
    background: var(--omt-yellow-soft);
    color: #765d00;
}

.omt-status-pill.is-locked {
    background: #fdedeb;
    color: var(--omt-danger);
}

.omt-last-activity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--omt-ink-soft);
    font-size: 0.82rem;
    white-space: nowrap;
}

.omt-last-activity > .bi,
.omt-never-logged .bi {
    color: var(--omt-gray-500);
}

.omt-last-activity span {
    display: flex;
    flex-direction: column;
}

.omt-last-activity small {
    margin-top: 0.1rem;
    color: var(--omt-gray-500);
    font-size: 0.7rem;
}

.omt-never-logged {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--omt-gray-500);
    font-size: 0.82rem;
}

.omt-manage-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ---------- Groups data table ---------- */

.omt-groups-table {
    min-width: 840px;
}

.omt-groups-table thead th {
    padding: 0.9rem 1rem;
}

.omt-groups-table tbody td {
    padding: 0.85rem 1rem;
}

.omt-group-identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 210px;
}

.omt-group-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #f2db45;
    border-radius: 11px;
    background: linear-gradient(145deg, #fff9d9, var(--omt-yellow));
    color: var(--omt-ink);
    font-size: 1rem;
}

.omt-group-identity > span:last-child {
    display: flex;
    flex-direction: column;
}

.omt-group-identity strong {
    font-size: 0.9rem;
    line-height: 1.25;
}

.omt-group-identity small {
    margin-top: 0.15rem;
    color: var(--omt-gray-500);
    font-size: 0.72rem;
}

.omt-group-description {
    display: block;
    max-width: 520px;
    color: var(--omt-ink-soft);
    font-size: 0.85rem;
    line-height: 1.45;
}

.omt-member-count {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: var(--omt-gray-100);
    color: var(--omt-ink-soft);
    font-size: 0.74rem;
    white-space: nowrap;
}

.omt-member-count .bi {
    color: var(--omt-gray-500);
    margin-right: 0.05rem;
}

.omt-member-count strong {
    color: var(--omt-ink);
}

/* ---------- Objects data table ---------- */

.omt-objects-table {
    min-width: 1040px;
}

.omt-objects-table thead th {
    padding: 0.9rem 1rem;
}

.omt-objects-table tbody td {
    padding: 0.85rem 1rem;
}

.omt-object-identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 235px;
}

.omt-object-identity > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.omt-object-identity strong {
    font-size: 0.9rem;
    line-height: 1.25;
}

.omt-object-identity code {
    width: fit-content;
    padding: 0;
    background: transparent;
    color: var(--omt-gray-500);
    font-size: 0.72rem;
}

.omt-object-list-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    font-size: 1rem;
}

.omt-object-list-icon.is-page {
    border: 1px solid #f2db45;
    background: linear-gradient(145deg, #fff9d9, var(--omt-yellow));
    color: var(--omt-ink);
}

.omt-object-list-icon.is-section {
    border: 1px solid var(--omt-gray-300);
    background: var(--omt-gray-100);
    color: var(--omt-ink-soft);
}

.omt-object-list-icon.is-button {
    border: 1px solid #cfd1d4;
    background: var(--omt-ink-soft);
    color: #fff;
}

.omt-object-type,
.omt-module-pill,
.omt-parent-object,
.omt-root-object {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    white-space: nowrap;
    font-size: 0.75rem;
}

.omt-object-type,
.omt-module-pill {
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-weight: 700;
}

.omt-object-type.is-page {
    background: var(--omt-yellow-soft);
    color: #765d00;
}

.omt-object-type.is-section {
    background: var(--omt-gray-100);
    color: var(--omt-ink-soft);
}

.omt-object-type.is-button {
    background: var(--omt-ink);
    color: #fff;
}

.omt-parent-object {
    color: var(--omt-ink-soft);
}

.omt-root-object {
    color: var(--omt-gray-500);
}

.omt-module-pill {
    background: #f3f1e8;
    color: #5f5840;
}

.omt-object-toolbar-actions .omt-select-trigger {
    min-width: 132px;
}

@media (max-width: 767.98px) {
    .omt-heading-block p {
        margin-left: 0;
    }

    .omt-object-toolbar-actions {
        flex: 1 1 100%;
    }
}

/* Compact, professional row-action buttons */

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

.omt-row-actions .btn {
    padding: 0.3rem 0.65rem;
    font-size: 0.8rem;
    border-radius: 7px;
}

.table tbody td,
.table thead th {
    font-size: 0.875rem;
}

/* ---------- Sortable table columns ---------- */

.omt-sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.omt-sortable .bi {
    margin-left: 0.25rem;
    font-size: 0.7rem;
    color: var(--omt-gray-300);
}

.omt-sortable.omt-sort-asc .bi,
.omt-sortable.omt-sort-desc .bi {
    color: var(--omt-ink);
}

.omt-sortable:hover {
    color: var(--omt-ink);
}

/* ==================================================================
   Custom dropdown ("omt-select") — replaces native <select> popups.
   Native <select> option lists are rendered by the OS on Windows
   Chrome/Edge and their hover/selected color cannot be styled with
   CSS at all, which is why filter/group dropdowns showed a blue
   highlight no theme override could touch. This component is a fully
   custom, CSS-styled stand-in: the real <select> stays in the DOM
   (visually hidden) as the source of truth for form submission, so no
   name/value/validation behavior changes — only the presentation.
   ================================================================== */

.omt-select-wrap {
    position: relative;
}

.omt-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.omt-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    background-color: #fff;
    border: 1px solid var(--omt-gray-300);
    border-radius: 8px;
    padding: 0.55rem 0.85rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--omt-ink);
    text-align: left;
}

.omt-select-trigger.omt-select-sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.9rem;
    width: auto;
}

.omt-select-trigger .omt-select-placeholder {
    color: var(--omt-gray-500);
}

.omt-select-trigger .bi {
    color: var(--omt-ink-soft);
    transition: transform 0.15s ease-in-out;
    font-size: 0.85rem;
}

.omt-select-wrap.show .omt-select-trigger .bi {
    transform: rotate(180deg);
}

.omt-select-wrap.show .omt-select-trigger,
.omt-select-trigger:focus {
    outline: none;
    border-color: var(--omt-yellow-dark);
    box-shadow: 0 0 0 0.2rem rgba(255, 222, 0, 0.4);
}

.omt-select-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    min-width: 180px;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--omt-gray-200);
    border-radius: var(--omt-radius);
    box-shadow: var(--omt-shadow-lg);
    padding: 0.35rem;
    margin: 0;
    list-style: none;
    z-index: 1050;
    display: none;
}

.omt-select-wrap.show .omt-select-menu {
    display: block;
}

.omt-select-wrap.omt-select-dropup .omt-select-menu {
    top: auto;
    bottom: calc(100% + 4px);
}

.omt-select-menu li {
    padding: 0.5rem 0.7rem;
    border-radius: 7px;
    font-size: 0.9rem;
    color: var(--omt-ink-soft);
    cursor: pointer;
}

.omt-select-menu li:hover,
.omt-select-menu li.omt-focused {
    background-color: var(--omt-yellow-soft);
    color: var(--omt-ink);
}

.omt-select-menu li.active {
    background-color: var(--omt-ink);
    color: #fff;
    font-weight: 600;
}

/* ---------- Group Permissions — card layout ---------- */

.omt-perm-section {
    margin-bottom: 1rem;
}

.omt-perm-section-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    background-color: var(--omt-ink);
    color: #fff;
    border-radius: var(--omt-radius);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
}

.omt-perm-section-header .bi-chevron-down {
    margin-left: auto;
    transition: transform 0.15s ease-in-out;
}

.omt-perm-section.collapsed .bi-chevron-down {
    transform: rotate(-90deg);
}

.omt-perm-section-header .badge {
    background-color: var(--omt-yellow) !important;
    color: var(--omt-ink) !important;
}

.omt-perm-section-body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.75rem;
    padding-top: 0.75rem;
}

.omt-perm-section.collapsed .omt-perm-section-body {
    display: none;
}

.omt-perm-card {
    border: 1px solid var(--omt-gray-200);
    border-radius: var(--omt-radius);
    padding: 0.9rem 1rem;
    background: #fff;
}

.omt-perm-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.omt-perm-card-title .badge {
    background-color: var(--omt-gray-100) !important;
    color: var(--omt-ink-soft) !important;
    font-weight: 600;
}

.omt-perm-card-title code {
    font-size: 0.72rem;
}

.omt-perm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.9rem;
}

.omt-perm-actions .form-check {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    min-width: 108px;
}

.omt-perm-actions .form-check-input {
    margin: 0;
}

.omt-perm-actions .form-check-label {
    font-size: 0.8rem;
    color: var(--omt-ink-soft);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.omt-perm-quick {
    display: flex;
    gap: 0.4rem;
    margin-left: auto;
}

.omt-perm-quick button {
    font-size: 0.72rem;
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    border: 1px solid var(--omt-gray-300);
    background: #fff;
    color: var(--omt-ink-soft);
}

.omt-perm-quick button:hover {
    background: var(--omt-ink);
    border-color: var(--omt-ink);
    color: #fff;
}

/* Modern permission matrix. The earlier card rules remain as harmless
   compatibility styles for any cached markup while this table is deployed. */

.omt-permissions-table-card {
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.omt-permissions-table {
    min-width: 1180px;
}

.omt-permissions-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 0.75rem 0.45rem;
    text-align: center;
    white-space: nowrap;
}

.omt-permissions-table thead .omt-perm-object-column {
    text-align: left;
    padding-left: 1rem;
}

.omt-perm-action-column {
    width: 64px;
}

.omt-perm-action-column .bi {
    display: block;
    color: var(--omt-ink-soft);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.omt-perm-action-column span {
    font-size: 0.62rem;
}

.omt-perm-object-column {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 260px;
    min-width: 260px;
    background: #fff !important;
}

thead .omt-perm-object-column {
    z-index: 3;
    background: var(--omt-gray-50) !important;
}

.omt-permissions-table tbody td {
    padding: 0.65rem 0.45rem;
}

.omt-permissions-table tbody tr[data-row]:hover td,
.omt-permissions-table tbody tr[data-row]:hover .omt-perm-object-column {
    background-color: #fffbed !important;
}

.omt-perm-module-row td {
    background: var(--omt-ink) !important;
    color: #fff;
    padding: 0.55rem 1rem !important;
    border: 0;
    font-weight: 700;
}

.omt-perm-module-row .bi {
    color: var(--omt-yellow);
    margin-right: 0.45rem;
}

.omt-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-left: 0.45rem;
    border-radius: 999px;
    background: var(--omt-yellow);
    color: var(--omt-ink);
    font-size: 0.7rem;
}

.omt-object-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0 0.55rem;
    border-radius: 9px;
    background: var(--omt-yellow-soft);
    vertical-align: middle;
}

.omt-object-meta {
    display: inline-flex;
    flex-direction: column;
    gap: 0.15rem;
    vertical-align: middle;
}

.omt-object-meta > span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.omt-type-badge {
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: var(--omt-gray-100);
    color: var(--omt-gray-500);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.omt-perm-check-cell {
    text-align: center;
}

.omt-perm-check-cell .form-check-input {
    float: none;
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    cursor: pointer;
}

.omt-perm-bulk-column {
    width: 105px;
    min-width: 105px;
    text-align: center !important;
}

.omt-perm-bulk-column .omt-perm-quick {
    justify-content: center;
    margin: 0;
}

@media (max-width: 575.98px) {
    .omt-table-toolbar,
    .omt-toolbar-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .omt-table-toolbar .omt-search,
    .omt-table-toolbar .omt-select-form,
    .omt-table-toolbar .omt-select-form .omt-select-wrap,
    .omt-table-toolbar .omt-select-form .omt-select-trigger,
    .omt-toolbar-actions .omt-select-wrap,
    .omt-toolbar-actions .omt-select-trigger,
    .omt-toolbar-actions .btn {
        width: 100%;
        max-width: none;
    }
}

/* ---------- Defensive hardening: kill every remaining Bootstrap-blue
   trouble spot (component-scoped custom properties that a plain
   background-color override on the same selector cannot always beat
   once :hover/:focus/:active pseudo-state specificity gets involved). */

.btn-outline-secondary:focus,
.btn-outline-secondary:active,
.btn-outline-light:focus,
.btn-outline-light:active,
.btn-outline-warning:focus,
.btn-outline-warning:active,
.btn-link:focus,
.btn-link:active {
    box-shadow: 0 0 0 0.2rem rgba(16, 17, 18, 0.15) !important;
}

.btn-outline-warning {
    --bs-btn-color: #8a6300;
    --bs-btn-border-color: var(--omt-yellow-dark);
    --bs-btn-hover-bg: var(--omt-yellow);
    --bs-btn-hover-border-color: var(--omt-yellow-dark);
    --bs-btn-hover-color: var(--omt-ink);
}

.nav-link.active,
.nav-pills .nav-link.active {
    background-color: var(--omt-ink) !important;
    color: #fff !important;
}

.list-group-item.active {
    background-color: var(--omt-ink) !important;
    border-color: var(--omt-ink) !important;
}

::selection {
    background-color: var(--omt-yellow);
    color: var(--omt-ink);
}

/* ---------- Dynamic object workspaces ---------- */

.omt-object-guide {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 1.15rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid #ead44a;
    border-radius: var(--omt-radius);
    background: #fffbed;
}

.omt-object-guide > .bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #ffde00;
    color: var(--omt-ink);
}

.omt-object-guide div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.omt-object-guide strong { font-size: 0.82rem; }
.omt-object-guide span { color: var(--omt-ink-soft); font-size: 0.75rem; line-height: 1.4; }

.omt-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
    color: var(--omt-gray-500);
    font-size: 0.75rem;
}

.omt-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--omt-ink-soft);
    text-decoration: none;
}

.omt-breadcrumb a:hover { color: var(--omt-ink); }
.omt-breadcrumb > .bi { font-size: 0.62rem; }

.omt-workspace-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--omt-gray-200);
    border-radius: var(--omt-radius-lg);
    background: #fff;
    box-shadow: var(--omt-shadow);
}

.omt-workspace-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: #ffde00;
    color: var(--omt-ink);
    font-size: 1.2rem;
}

.omt-workspace-module {
    color: #806a00;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.omt-workspace-hero h1 { margin: 0.1rem 0; font-size: 1.25rem; }
.omt-workspace-hero p { margin: 0; color: var(--omt-gray-500); font-size: 0.75rem; }

.omt-workspace-empty { text-align: center; }
.omt-workspace-empty .card-body { padding: 2.5rem 1rem; }
.omt-workspace-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 0.8rem;
    border-radius: 13px;
    background: #ffde00;
    font-size: 1.2rem;
}
.omt-workspace-empty h2 { margin-bottom: 0.35rem; font-size: 1rem; }
.omt-workspace-empty p { max-width: 480px; margin: 0 auto 1rem; color: var(--omt-gray-500); font-size: 0.78rem; }

.omt-workspace-section .card-body { padding: 1rem; }
.omt-workspace-section-title { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.9rem; }
.omt-workspace-section-title > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #ffde00;
}
.omt-workspace-section-title h2 { margin: 0; font-size: 0.88rem; }
.omt-workspace-section-title code { padding: 0; background: transparent; color: var(--omt-gray-500); font-size: 0.68rem; }
.omt-workspace-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.omt-workspace-standalone-action { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ==================================================================
   Compact responsive system layer
   Keeps every screen on one small, consistent scale and reserves the
   exact OMT yellow (#ffde00) for primary actions and visual accents.
   ================================================================== */

html {
    font-size: 15px;
}

body {
    min-width: 0;
    overflow-x: hidden;
    font-size: 1rem;
}

.container-fluid.px-4 {
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
}

.omt-navbar {
    margin-bottom: 1.5rem !important;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.omt-navbar .navbar-brand img {
    height: 27px;
}

.omt-navbar .navbar-brand .brand-suffix {
    font-size: 0.85rem;
}

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

.omt-page-header h1 {
    font-size: 1.25rem;
}

.omt-page-header h1 .bi,
.omt-tile-icon,
.omt-user-menu .omt-avatar,
.omt-user-avatar,
.omt-group-icon,
.omt-object-list-icon,
.omt-object-list-icon.is-page,
.omt-object-list-icon.is-section,
.omt-object-list-icon.is-button,
.omt-object-icon {
    border-color: #ffde00;
    background: #ffde00;
    color: var(--omt-ink);
}

.omt-user-avatar,
.omt-group-icon,
.omt-object-list-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.omt-tile-icon {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
}

.btn {
    padding: 0.42rem 0.85rem;
    font-size: 0.84rem;
}

.btn-sm,
.omt-row-actions .btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.76rem;
}

.form-control,
.form-select,
.omt-select-trigger {
    min-height: 40px;
    padding: 0.45rem 0.7rem;
    font-size: 0.88rem;
}

.omt-toolbar-actions .omt-select-wrap,
.omt-toolbar-actions .omt-select-trigger,
.omt-toolbar-actions .btn,
.omt-select-form .omt-select-trigger {
    min-height: 40px;
}

.form-label,
.form-check-label,
.dropdown-menu,
.omt-select-menu li {
    font-size: 0.82rem;
}

.card-body.p-4 {
    padding: 1.35rem !important;
}

.table tbody td,
.table thead th {
    font-size: 0.8rem;
}

.table thead th,
.omt-users-table thead th,
.omt-groups-table thead th,
.omt-objects-table thead th {
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
}

.table tbody td,
.omt-users-table tbody td,
.omt-groups-table tbody td,
.omt-objects-table tbody td {
    padding-top: 0.68rem;
    padding-bottom: 0.68rem;
}

.omt-user-identity strong,
.omt-group-identity strong,
.omt-object-identity strong {
    font-size: 0.82rem;
}

.omt-user-email,
.omt-group-description,
.omt-last-activity,
.omt-never-logged {
    font-size: 0.78rem;
}

.omt-status-pill,
.omt-group-pill,
.omt-member-count,
.omt-object-type,
.omt-module-pill,
.omt-parent-object,
.omt-root-object {
    font-size: 0.7rem;
}

.form-check-input:checked {
    background-color: #ffde00;
    border-color: #d8bc00;
}

.form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23101112' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m5 10 3 3 7-7'/%3E%3C/svg%3E");
}

.form-check-input:checked[type="radio"] {
    background-color: #ffde00;
    border-color: #d8bc00;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='2' fill='%23101112'/%3E%3C/svg%3E");
}

.form-switch .form-check-input:checked {
    background-color: #ffde00;
    border-color: #d8bc00;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23101112'/%3E%3C/svg%3E");
}

.table-responsive {
    scrollbar-color: #ffde00 var(--omt-gray-100);
    scrollbar-width: thin;
}

.table-responsive::-webkit-scrollbar {
    height: 7px;
}

.table-responsive::-webkit-scrollbar-track {
    background: var(--omt-gray-100);
}

.table-responsive::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #ffde00;
}

@media (max-width: 991.98px) {
    .omt-table-toolbar {
        align-items: stretch;
    }

    .omt-table-toolbar .omt-search {
        max-width: none;
    }

    .omt-toolbar-actions {
        flex-wrap: wrap;
    }

    .row.justify-content-center > .col-md-6,
    .row.justify-content-center > .col-lg-5 {
        width: min(100%, 680px);
    }
}

@media (max-width: 767.98px) {
    html {
        font-size: 14.5px;
    }

    .container-fluid.px-4 {
        padding-right: 1rem !important;
        padding-left: 1rem !important;
    }

    .omt-navbar {
        margin-bottom: 1.1rem !important;
    }

    .omt-navbar .container-fluid {
        flex-wrap: nowrap;
        gap: 0.75rem;
    }

    .omt-user-menu {
        max-width: 48vw;
        padding: 0.3rem 0.55rem;
    }

    .omt-user-menu > span:not(.omt-avatar) {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .omt-table-toolbar {
        flex-direction: column;
        gap: 0.55rem;
    }

    .omt-table-toolbar .omt-search,
    .omt-toolbar-actions {
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
    }

    .omt-toolbar-actions .omt-select-wrap {
        flex: 1 1 140px;
    }

    .omt-toolbar-actions .omt-select-trigger {
        width: 100%;
    }

    .omt-select-menu {
        max-width: calc(100vw - 2rem);
    }

    .omt-page-header h1 {
        font-size: 1.15rem;
        line-height: 1.35;
    }

    .omt-auth-shell {
        padding: 1rem;
    }

    .omt-auth-card .omt-auth-body,
    .omt-auth-card .omt-auth-brand {
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    .omt-perm-object-column {
        width: 210px;
        min-width: 210px;
    }

    .omt-summary-grid {
        grid-template-columns: 1fr;
    }

    .omt-summary-grid .omt-summary-wide {
        grid-column: auto;
    }
}

@media (max-width: 575.98px) {
    .omt-navbar .navbar-brand .brand-divider,
    .omt-navbar .navbar-brand .brand-suffix {
        display: none;
    }

    .omt-navbar .navbar-brand img {
        height: 25px;
    }

    .omt-toolbar-actions {
        flex-direction: column;
    }

    .omt-toolbar-actions .omt-select-wrap,
    .omt-toolbar-actions .btn,
    .omt-table-toolbar .omt-select-form,
    .omt-table-toolbar .omt-select-form .omt-select-wrap,
    .omt-table-toolbar .omt-select-form .omt-select-trigger {
        width: 100%;
    }

    .card form > .d-flex.gap-2 {
        flex-direction: column;
    }

    .card form > .d-flex.gap-2 .btn {
        width: 100%;
    }

    .card-body.p-4 {
        padding: 1rem !important;
    }

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

    .omt-heading-block p {
        max-width: 32rem;
    }

    .omt-data-pagination {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .omt-pagination-summary {
        text-align: center;
    }

    .omt-pagination-controls {
        justify-content: center;
    }

    .omt-page-button > span {
        display: none;
    }

    .omt-page-button {
        width: 32px;
        padding-right: 0;
        padding-left: 0;
    }
}

/* ---------- Grouped sidebar navigation ---------- */

.omt-sidebar-parent {
    cursor: pointer;
}

.omt-sidebar-parent-chevron {
    width: auto !important;
    margin-left: auto;
    font-size: 10px !important;
    transition: transform 0.15s ease;
}

.omt-sidebar-parent[aria-expanded="true"] .omt-sidebar-parent-chevron {
    transform: rotate(180deg);
}

.omt-sidebar-parent.has-active {
    color: #ffde00;
    background: rgba(255, 222, 0, 0.1);
}

.omt-sidebar-submenu {
    position: relative;
    margin: 2px 0 5px 19px;
    padding: 1px 0 1px 9px;
    border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.omt-sidebar-submenu[hidden] {
    display: none;
}

.omt-sidebar-child {
    min-height: 34px;
    margin: 2px 0;
    padding: 7px 9px;
    font-size: 12px;
}

.omt-sidebar-child .bi {
    width: 17px;
    flex-basis: 17px;
    font-size: 12px;
}

/* ---------- Password workspace ---------- */

.omt-password-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.75fr);
}

.omt-password-required-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 12px;
    color: #7a5a00;
    background: #fdf6e3;
    border: 1px solid #ecd9a0;
    border-radius: 8px;
}

.omt-password-required-alert > i {
    color: #b8860b;
    font-size: 15px;
}

.omt-password-required-alert strong,
.omt-password-required-alert span {
    display: block;
}

.omt-password-required-alert strong { font-size: 12px; }
.omt-password-required-alert span { margin-top: 2px; font-size: 11px; }

.omt-password-policy-panel {
    padding: 14px;
    background: #fff;
    border: 1px solid #e3e7ee;
    border-radius: 9px;
    box-shadow: var(--omt-shadow);
}

.omt-policy-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 11px;
    border-bottom: 1px solid #e3e7ee;
}

.omt-policy-heading > span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    color: #141821;
    background: #ffde00;
    border-radius: 7px;
}

.omt-policy-heading small {
    display: block;
    color: #6b7688;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.omt-policy-heading h2 {
    margin: 1px 0 0;
    font-size: 13px;
}

.omt-policy-list {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 12px 0;
    list-style: none;
}

.omt-policy-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a5568;
    font-size: 11.5px;
}

.omt-policy-list i {
    display: grid;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    place-items: center;
    color: #176638;
    background: #e8f6ee;
    border-radius: 50%;
    font-size: 11px;
}

.omt-policy-expiry {
    display: flex;
    gap: 9px;
    padding: 9px 10px;
    color: #4a5568;
    background: #f6f8fb;
    border: 1px solid #e3e7ee;
    border-radius: 7px;
}

.omt-policy-expiry > i { color: #b8860b; }
.omt-policy-expiry strong,
.omt-policy-expiry span { display: block; }
.omt-policy-expiry strong { color: #141821; font-size: 11px; }
.omt-policy-expiry span { margin-top: 2px; font-size: 10.5px; line-height: 1.4; }

@media (max-width: 1199.98px) {
    .omt-password-layout { grid-template-columns: 1fr; }
    .omt-password-policy-panel { order: -1; }
}

/* Final simulator cascade lock — intentionally last. */
html { font-size: 14px; }

body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
.omt-corridor-module {
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

body {
    font-size: 13.5px;
    line-height: 1.4;
    background: #eef2f7;
}

.omt-navbar {
    min-height: 56px;
    margin-bottom: 0 !important;
    padding-top: 0;
    padding-bottom: 0;
    background: #141821 !important;
    border-bottom: 3px solid #ffde00;
    box-shadow: none;
}

.omt-main-content { padding: 16px !important; }
.omt-page-header { margin-bottom: 14px; }
.omt-page-header h1 { font-size: 18px; }
.omt-heading-block p { margin-top: 3px; font-size: 12px; }

.card,
.omt-table-card,
.omt-admin-form-card,
.omt-user-security-panel,
.omt-dashboard-card {
    border-color: #e3e7ee;
    border-radius: 9px;
    box-shadow: 0 1px 2px rgba(20, 24, 33, 0.06), 0 4px 16px rgba(20, 24, 33, 0.06);
}

.btn {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: none;
}

.btn-sm,
.omt-row-actions .btn {
    padding: 6px 11px;
    font-size: 12px;
}

.form-control,
.form-select,
.omt-select-trigger {
    min-height: 36px;
    padding: 7px 10px;
    border-color: #cdd4df;
    border-radius: 6px;
    font-size: 13px;
}

.form-label {
    margin-bottom: 4px;
    color: #4a5568;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.form-text { font-size: 10.5px; }

.table thead th {
    padding: 10px 12px;
    color: #6b7688;
    background: #f6f8fb;
    border-color: #e3e7ee;
    font-size: 10.5px;
}

.table tbody td {
    padding: 10px 12px;
    border-color: #e3e7ee;
    font-size: 12px;
}

@media (max-width: 575.98px) {
    .omt-main-content { padding: 12px !important; }
}

/* ---------- English / Arabic locale controls and RTL ---------- */
.omt-language-switch {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 7px;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.22);
    white-space: nowrap;
}

.omt-language-switch:hover,
.omt-language-switch:focus-visible {
    color: #111;
    background: #ffde00;
    border-color: #ffde00;
}

.omt-language-switch-light {
    color: #232832;
    background: #fff;
    border-color: #d9dee7;
}

.omt-auth-language {
    display: flex;
    justify-content: flex-end;
}

[dir="rtl"] body {
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    text-align: right;
}

[dir="rtl"] .omt-sidebar-submenu {
    margin: 2px 19px 5px 0;
    padding: 1px 9px 1px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.13);
    border-left: 0;
}

[dir="rtl"] .omt-sidebar-parent-chevron {
    margin-right: auto;
    margin-left: 0;
}

[dir="rtl"] .bi-arrow-right,
[dir="rtl"] .bi-arrow-left,
[dir="rtl"] .bi-chevron-right,
[dir="rtl"] .bi-chevron-left,
[dir="rtl"] .bi-arrow-return-right {
    display: inline-block;
    transform: scaleX(-1);
}

[dir="rtl"] .text-end { text-align: left !important; }
[dir="rtl"] .text-start { text-align: right !important; }

@media (max-width: 991.98px) {
    [dir="rtl"] .omt-sidebar {
        right: 0;
        left: auto;
        transform: translateX(100%);
        box-shadow: -14px 0 35px rgba(0, 0, 0, 0.25);
    }

    [dir="rtl"] .omt-sidebar-open .omt-sidebar {
        transform: translateX(0);
    }
}

@media (max-width: 575.98px) {
    .omt-language-switch span { display: none; }
    .omt-language-switch { width: 34px; justify-content: center; padding: 0; }
}

/* ---------- Compact corridor fee workspace ---------- */
@media (min-width: 1200px) {
    .omt-corridor-fees-page .omt-page-header {
        margin-bottom: 8px;
    }

    .omt-corridor-fees-page .omt-corridor-summary {
        margin-bottom: 10px !important;
        color: #141821;
        background: #fff;
        border: 1px solid #dfe4eb !important;
        box-shadow: 0 2px 8px rgba(20, 24, 33, 0.05);
    }

    .omt-corridor-fees-page .omt-corridor-summary .card-body {
        padding: 10px 14px;
    }

    .omt-corridor-fees-page .omt-summary-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 8px 18px;
    }

    .omt-corridor-fees-page .omt-summary-grid > div {
        min-width: 0;
    }

    .omt-corridor-fees-page .omt-summary-grid span {
        color: #788397;
        font-size: 9px;
    }

    .omt-corridor-fees-page .omt-summary-grid strong {
        overflow: hidden;
        font-size: 11px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .omt-corridor-fees-page .omt-summary-grid .omt-summary-wide {
        grid-column: auto;
    }

    .omt-corridor-fees-page .omt-summary-grid em {
        margin: 0 2px 0 0;
        padding: 3px 6px;
        font-size: 9px;
    }

    .omt-corridor-fees-page > .d-flex.justify-content-between {
        margin-bottom: 6px !important;
    }

    .omt-corridor-fees-page > .d-flex.justify-content-between p {
        display: none;
    }

    .omt-corridor-fees-page .omt-table-card {
        margin-bottom: 10px !important;
    }

    .omt-corridor-fees-page .omt-table-card .table thead th,
    .omt-corridor-fees-page .omt-table-card .table tbody td {
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .omt-corridor-fees-page #fee-editor .omt-simulator-card-header {
        min-height: 44px;
        padding: 8px 14px;
    }

    .omt-corridor-fees-page #fee-editor .card-body {
        padding: 10px 12px !important;
    }

    .omt-corridor-fees-page #fee-editor .omt-form-heading {
        display: none;
    }

    .omt-corridor-fees-page .omt-fee-scope-panel {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 7px 9px;
        padding: 9px;
    }

    .omt-corridor-fees-page .omt-fee-scope-panel > [class*="col-"] {
        width: auto;
        padding: 0;
    }

    .omt-corridor-fees-page .omt-fee-scope-panel > :nth-child(1),
    .omt-corridor-fees-page .omt-fee-scope-panel > :nth-child(2),
    .omt-corridor-fees-page .omt-fee-scope-panel > :nth-child(5),
    .omt-corridor-fees-page .omt-fee-scope-panel > :nth-child(6),
    .omt-corridor-fees-page .omt-fee-scope-panel > :nth-child(7) {
        grid-column: span 2;
    }

    .omt-corridor-fees-page .omt-fee-scope-panel > :nth-child(14) {
        grid-column: 1 / -1;
    }

    .omt-corridor-fees-page .omt-fee-scope-panel .form-label {
        margin-bottom: 2px;
        font-size: 9px;
    }

    .omt-corridor-fees-page .omt-fee-scope-panel .form-control,
    .omt-corridor-fees-page .omt-fee-scope-panel .omt-select-trigger {
        min-height: 32px;
        padding-top: 5px;
        padding-bottom: 5px;
        font-size: 11px;
    }

    .omt-corridor-fees-page .omt-fee-flags {
        min-height: 30px;
        justify-content: flex-start;
        padding: 3px 8px;
    }

    .omt-corridor-fees-page .omt-fee-components {
        gap: 5px;
        margin-top: 8px !important;
    }

    .omt-corridor-fees-page .omt-fee-component {
        display: grid;
        grid-template-columns: 190px minmax(0, 1fr);
        padding: 0;
    }

    .omt-corridor-fees-page .omt-fee-component-title {
        min-width: 0;
        margin: 0;
        padding: 7px 9px;
        border-right: 1px solid var(--corridor-line, #dfe4eb);
        border-bottom: 0;
    }

    [dir="rtl"] .omt-corridor-fees-page .omt-fee-component-title {
        border-right: 0;
        border-left: 1px solid var(--corridor-line, #dfe4eb);
    }

    .omt-corridor-fees-page .omt-fee-component-title > span {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
    }

    .omt-corridor-fees-page .omt-fee-component-title h3 {
        font-size: 10px;
    }

    .omt-corridor-fees-page .omt-fee-component-title > div {
        min-width: 0;
        overflow: hidden;
    }

    .omt-corridor-fees-page .omt-fee-component-title h3 {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .omt-corridor-fees-page .omt-fee-component-title p {
        display: none;
    }

    .omt-corridor-fees-page .omt-fee-component > .row {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 7px;
        margin: 0;
        padding: 6px 8px;
    }

    .omt-corridor-fees-page .omt-fee-component > .row > [class*="col-"] {
        width: auto;
        padding: 0;
    }

    .omt-corridor-fees-page .omt-fee-component .form-label {
        min-height: 12px;
        margin-bottom: 2px;
        font-size: 8px;
    }

    .omt-corridor-fees-page .omt-fee-component .form-control {
        min-height: 30px;
        padding: 4px 7px;
        font-size: 10px;
    }

    .omt-corridor-fees-page .omt-risk-note {
        margin-top: 7px !important;
        padding: 6px 9px;
        font-size: 10px;
    }

    .omt-corridor-fees-page #fee-rule-form > .d-flex:last-child {
        margin-top: 7px !important;
    }
}

/* Fee editor: labels and controls share one compact line on desktop. */
@media (min-width: 1200px) {
    .omt-corridor-fees-page .omt-fee-scope-panel > :nth-child(1) { grid-column: 1 / span 2; grid-row: 1; }
    .omt-corridor-fees-page .omt-fee-scope-panel > :nth-child(2) { grid-column: 3 / span 2; grid-row: 1; }
    .omt-corridor-fees-page .omt-fee-scope-panel > :nth-child(3) { grid-column: 5; grid-row: 1; }
    .omt-corridor-fees-page .omt-fee-scope-panel > :nth-child(4) { grid-column: 6; grid-row: 1; }
    .omt-corridor-fees-page .omt-fee-scope-panel > :nth-child(5) { grid-column: 1 / span 2; grid-row: 2; }
    .omt-corridor-fees-page .omt-fee-scope-panel > :nth-child(6) { grid-column: 3 / span 2; grid-row: 2; }
    .omt-corridor-fees-page .omt-fee-scope-panel > :nth-child(13) { grid-column: 5 / span 2; grid-row: 2; }

    .omt-corridor-fees-page .omt-fee-scope-panel > :nth-child(13) {
        grid-template-columns: 1fr;
    }

    .omt-corridor-fees-page .omt-fee-scope-panel > :nth-child(n+7):nth-child(-n+12) {
        grid-row: 3;
    }

    .omt-corridor-fees-page .omt-fee-scope-panel > :nth-child(7) { grid-column: 1; }
    .omt-corridor-fees-page .omt-fee-scope-panel > :nth-child(8) { grid-column: 2; }
    .omt-corridor-fees-page .omt-fee-scope-panel > :nth-child(9) { grid-column: 3; }
    .omt-corridor-fees-page .omt-fee-scope-panel > :nth-child(10) { grid-column: 4; }
    .omt-corridor-fees-page .omt-fee-scope-panel > :nth-child(11) { grid-column: 5; }
    .omt-corridor-fees-page .omt-fee-scope-panel > :nth-child(12) { grid-column: 6; }

    .omt-corridor-fees-page .omt-fee-scope-panel > [class*="col-"] {
        display: grid;
        grid-template-columns: minmax(62px, auto) minmax(0, 1fr);
        align-items: center;
        column-gap: 6px;
    }

    .omt-corridor-fees-page .omt-fee-scope-panel > [class*="col-"] > .form-label,
    .omt-corridor-fees-page .omt-fee-component .row > [class*="col-"] > .form-label {
        min-height: 0;
        margin: 0;
        line-height: 1.15;
        white-space: normal;
    }

    .omt-corridor-fees-page .omt-fee-scope-panel .omt-select-wrap,
    .omt-corridor-fees-page .omt-fee-scope-panel .form-control {
        min-width: 0;
    }

    .omt-corridor-fees-page .omt-fee-component > .row > [class*="col-"] {
        display: grid;
        grid-template-columns: minmax(55px, auto) minmax(0, 1fr);
        align-items: center;
        column-gap: 5px;
    }

    .omt-corridor-fees-page .omt-fee-scope-columns {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px 12px;
    }

    .omt-corridor-fees-page .omt-fee-scope-columns > .omt-fee-scope-column {
        display: grid;
        grid-column: auto !important;
        grid-row: auto !important;
        align-content: start;
        gap: 7px;
        min-width: 0;
    }

    .omt-corridor-fees-page .omt-fee-scope-columns > .omt-fee-scope-column + .omt-fee-scope-column {
        padding-left: 8px;
        border-left: 1px solid #e2e6ec;
    }

    [dir="rtl"] .omt-corridor-fees-page .omt-fee-scope-columns > .omt-fee-scope-column + .omt-fee-scope-column {
        padding-right: 8px;
        padding-left: 0;
        border-right: 1px solid #e2e6ec;
        border-left: 0;
    }

    .omt-corridor-fees-page .omt-fee-inline-field {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        align-items: center;
        gap: 4px;
        min-width: 0;
    }

    .omt-corridor-fees-page .omt-fee-scope-column:nth-child(2) .omt-fee-inline-field {
        grid-template-columns: 94px minmax(0, 1fr);
    }

    .omt-corridor-fees-page .omt-fee-scope-column:nth-child(3) .omt-fee-inline-field {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .omt-corridor-fees-page .omt-fee-inline-field .form-label {
        min-height: 0;
        margin: 0;
        line-height: 1.15;
        white-space: nowrap;
    }

    .omt-corridor-fees-page .omt-fee-inline-field .omt-select-wrap,
    .omt-corridor-fees-page .omt-fee-inline-field .form-control {
        width: 100%;
        min-width: 0;
    }

    .omt-corridor-fees-page .omt-fee-scope-column .omt-fee-flags {
        width: 100%;
        justify-content: flex-start;
        gap: 18px;
    }

    .omt-corridor-fees-page .omt-fee-description-field {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        grid-template-columns: 104px minmax(0, 1fr);
        margin-top: 1px;
        padding-top: 8px;
        border-top: 1px solid #e2e6ec;
    }

    .omt-corridor-fees-page .omt-fee-component > .row {
        gap: 5px;
    }

    .omt-corridor-fees-page .omt-fee-component > .row > [class*="col-"] {
        grid-template-columns: 68px minmax(0, 1fr);
        column-gap: 3px;
    }

    .omt-corridor-fees-page .omt-fee-component .form-label {
        line-height: 1.05;
    }
}

@media (max-width: 1199.98px) {
    .omt-corridor-fees-page .omt-fee-scope-column + .omt-fee-scope-column {
        margin-top: 12px;
    }

    .omt-corridor-fees-page .omt-fee-inline-field + .omt-fee-inline-field {
        margin-top: 10px;
    }
}

/* Compact Utility Type form overrides */
.omt-utility-form-page { max-width: 980px; margin-inline: auto; }
.omt-utility-form-page .omt-page-header { margin-bottom: 5px; }
.omt-utility-form-page .omt-page-header h1 { font-size: 1.05rem; }
.omt-utility-form-page .omt-page-header h1 > i { width: 32px; height: 32px; font-size: .85rem; border-radius: 8px; }
.omt-utility-form-page .omt-page-header > div > p { margin-top: 2px; margin-left: 40px; font-size: .72rem; }
[dir="rtl"] .omt-utility-form-page .omt-page-header > div > p { margin-right: 40px; margin-left: 0; }
.omt-utility-form-page .omt-back-link { margin-bottom: 5px; font-size: .68rem; }
.omt-utility-form-page .omt-config-form-card { max-width: 900px; margin-top: 6px; }
.omt-utility-form-page .omt-config-form-card .card-header { min-height: 40px; padding: 8px 14px; }
.omt-utility-form-page .omt-config-form-card .card-header span { font-size: .78rem; }
.omt-utility-form-page .omt-config-form-card .card-header small { font-size: .66rem; }
.omt-utility-form-page .omt-config-form-card .card-body { padding: 14px 15px 13px; }
.omt-utility-form-page .omt-config-form-grid { gap: 10px 14px; }
.omt-utility-form-page .omt-form-field { grid-template-columns: 112px minmax(0, 1fr); column-gap: 8px; row-gap: 2px; }
.omt-utility-form-page .omt-form-field .form-label { min-height: 14px; font-size: .61rem; letter-spacing: .025em; }
.omt-utility-form-page .form-control,
.omt-utility-form-page .form-select,
.omt-utility-form-page .input-group-text { height: 36px; min-height: 36px; font-size: .76rem; border-radius: 7px; }
.omt-utility-form-page .input-group-text { width: 38px; padding: 6px; font-size: .7rem; }
.omt-utility-form-page textarea.form-control { height: 48px; min-height: 48px; }
.omt-utility-form-page .omt-form-field:has(textarea) .form-label { padding-top: 7px; }
.omt-utility-form-page .omt-form-field > small { min-height: 11px; margin-top: 1px; font-size: .59rem; line-height: 1.2; }
.omt-utility-form-page .omt-form-actions { margin-top: 10px; padding-top: 10px; gap: 7px; }
.omt-utility-form-page .omt-form-actions .btn { min-height: 34px; padding: 6px 12px; font-size: .72rem; border-radius: 7px; }

@media (max-width: 767.98px) {
    .omt-utility-form-page,
    .omt-utility-form-page .omt-config-form-card { max-width: 100%; }
    .omt-utility-form-page .omt-form-field { grid-template-columns: 1fr; }
    .omt-utility-form-page .omt-page-header > div > p,
    [dir="rtl"] .omt-utility-form-page .omt-page-header > div > p { margin-right: 0; margin-left: 0; }
}

/* Final Utility Type row layout */
body .omt-utility-form-page { max-width: 1120px; }
body .omt-utility-form-page .omt-config-form-card { max-width: 1040px; }
body .omt-utility-form-page .omt-config-form-card .card-body { padding: 16px 18px 14px; }
.omt-utility-fields { display: grid; gap: 12px; }
.omt-utility-fields-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.omt-utility-fields-row-core { grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr); }
.omt-utility-inline-field { display: grid; grid-template-columns: 138px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; }
.omt-utility-inline-field .form-label { margin: 0; color: #11151a; font-size: .67rem; font-weight: 800; line-height: 1.15; letter-spacing: .02em; text-transform: uppercase; }
.omt-utility-inline-field .form-label span { color: #dc3545; }
.omt-utility-control-stack { display: grid; gap: 3px; min-width: 0; }
.omt-utility-form-page .omt-utility-control-stack .form-control,
.omt-utility-form-page .omt-utility-control-stack .input-group-text { height: 42px; min-height: 42px; border-radius: 8px; font-size: .8rem; }
.omt-utility-form-page .omt-utility-control-stack .input-group-text { width: 42px; justify-content: center; padding: 7px; }
.omt-utility-form-page .omt-utility-control-stack textarea.form-control { height: 58px; min-height: 58px; resize: vertical; }
.omt-utility-inline-field.is-textarea { align-items: start; }
.omt-utility-inline-field.is-textarea .form-label { padding-top: 11px; }
.omt-utility-control-stack > small { color: #718096; font-size: .64rem; line-height: 1.25; }
.omt-utility-fields .omt-config-active { margin-top: 0; }
body .omt-utility-form-page .omt-form-actions { margin-top: 12px; padding-top: 12px; }
body .omt-utility-form-page .omt-form-actions .btn { min-height: 38px; padding: 7px 14px; font-size: .76rem; }

@media (max-width: 991.98px) {
    body .omt-utility-form-page,
    body .omt-utility-form-page .omt-config-form-card { max-width: 100%; }
    .omt-utility-fields-row,
    .omt-utility-fields-row-core { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 575.98px) {
    .omt-utility-inline-field { grid-template-columns: 1fr; gap: 5px; }
    .omt-utility-inline-field.is-textarea .form-label { padding-top: 0; }
}

/* Utility type form — compact bilingual alignment */
.omt-utility-form-page .omt-page-header {
    margin-bottom: 8px;
}

.omt-utility-form-page .omt-config-form-card {
    position: relative;
    max-width: 1180px;
    margin-top: 8px;
    border-radius: 12px;
}

.omt-utility-form-page .omt-config-form-card::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: #ffde00;
}

.omt-utility-form-page .omt-config-form-card .card-header {
    min-height: 48px;
    padding: 10px 18px;
}

.omt-utility-form-page .omt-config-form-card .card-body {
    padding: 18px 20px 16px;
}

.omt-utility-form-page .omt-config-form-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 13px 18px;
    align-items: start;
}

.omt-utility-form-page .omt-config-code-field {
    grid-column: span 4;
}

.omt-utility-form-page .omt-config-order-field {
    grid-column: span 2;
}

.omt-utility-form-page .omt-config-half {
    grid-column: span 3;
}

.omt-utility-form-page .omt-config-active {
    grid-column: 1 / -1;
}

.omt-utility-form-page .omt-form-field .form-label {
    display: flex;
    align-items: center;
    min-height: 17px;
    margin: 0;
    color: #11151a;
    font-size: .7rem;
    line-height: 1.2;
}

.omt-utility-form-page .omt-form-field {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    row-gap: 3px;
}

.omt-utility-form-page .omt-form-field > .form-label {
    grid-column: 1;
    grid-row: 1;
}

.omt-utility-form-page .omt-form-field > .form-control,
.omt-utility-form-page .omt-form-field > .form-select,
.omt-utility-form-page .omt-form-field > .input-group {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
}

.omt-utility-form-page .omt-form-field > small,
.omt-utility-form-page .omt-form-field > .invalid-feedback,
.omt-utility-form-page .omt-form-field > .text-danger {
    grid-column: 2;
    margin-top: 1px;
}

.omt-utility-form-page .omt-bilingual-field .form-label {
    justify-content: flex-start;
    text-align: left;
}

[dir="rtl"] .omt-utility-form-page .omt-bilingual-field .form-label,
[dir="rtl"] .omt-utility-form-page .omt-form-field .form-label {
    justify-content: flex-start;
    text-align: right;
}

.omt-utility-form-page .form-control,
.omt-utility-form-page .form-select,
.omt-utility-form-page .input-group-text {
    min-height: 42px;
    height: 42px;
    border-color: #cbd5e1;
    border-radius: 8px;
}

.omt-utility-form-page .input-group > .form-control {
    border-start-start-radius: 0;
    border-end-start-radius: 0;
}

.omt-utility-form-page .input-group-text {
    width: 44px;
    justify-content: center;
}

.omt-utility-form-page textarea.form-control {
    height: 62px;
    min-height: 62px;
    resize: vertical;
}

.omt-utility-form-page .omt-form-field:has(textarea) .form-label {
    align-self: start;
    padding-top: 10px;
}

.omt-utility-form-page .omt-form-field > small {
    min-height: 15px;
    margin-top: 4px;
    font-size: .68rem;
}

.omt-utility-form-page .omt-form-actions {
    margin-top: 15px;
    padding-top: 14px;
}

.omt-utility-form-page .omt-form-actions .btn {
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 8px;
}

@media (max-width: 767.98px) {
    .omt-utility-form-page .omt-config-form-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .omt-utility-form-page .omt-config-code-field,
    .omt-utility-form-page .omt-config-order-field,
    .omt-utility-form-page .omt-config-half,
    .omt-utility-form-page .omt-config-active {
        grid-column: 1;
    }

    .omt-utility-form-page .omt-config-form-card .card-body {
        padding: 14px;
    }

    .omt-utility-form-page .omt-form-field {
        grid-template-columns: 1fr;
        row-gap: 5px;
    }

    .omt-utility-form-page .omt-form-field > .form-label,
    .omt-utility-form-page .omt-form-field > .form-control,
    .omt-utility-form-page .omt-form-field > .form-select,
    .omt-utility-form-page .omt-form-field > .input-group,
    .omt-utility-form-page .omt-form-field > small,
    .omt-utility-form-page .omt-form-field > .invalid-feedback,
    .omt-utility-form-page .omt-form-field > .text-danger {
        grid-column: 1;
        grid-row: auto;
    }

    .omt-utility-form-page .omt-form-field:has(textarea) .form-label {
        padding-top: 0;
    }
}

/* Final compact Utility Type form sizing */
.omt-utility-form-page { max-width: 980px; margin-inline: auto; }
.omt-utility-form-page .omt-page-header { margin-bottom: 5px; }
.omt-utility-form-page .omt-page-header h1 { font-size: 1.05rem; }
.omt-utility-form-page .omt-page-header h1 > i { width: 32px; height: 32px; font-size: .85rem; border-radius: 8px; }
.omt-utility-form-page .omt-page-header > div > p { margin-top: 2px; margin-left: 40px; font-size: .72rem; }
[dir="rtl"] .omt-utility-form-page .omt-page-header > div > p { margin-right: 40px; margin-left: 0; }
.omt-utility-form-page .omt-back-link { margin-bottom: 5px; font-size: .68rem; }
.omt-utility-form-page .omt-config-form-card { max-width: 900px; margin-top: 6px; }
.omt-utility-form-page .omt-config-form-card .card-header { min-height: 40px; padding: 8px 14px; }
.omt-utility-form-page .omt-config-form-card .card-header span { font-size: .78rem; }
.omt-utility-form-page .omt-config-form-card .card-header small { font-size: .66rem; }
.omt-utility-form-page .omt-config-form-card .card-body { padding: 14px 15px 13px; }
.omt-utility-form-page .omt-config-form-grid { gap: 10px 14px; }
.omt-utility-form-page .omt-form-field { grid-template-columns: 112px minmax(0, 1fr); column-gap: 8px; row-gap: 2px; }
.omt-utility-form-page .omt-form-field .form-label { min-height: 14px; font-size: .61rem; letter-spacing: .025em; }
.omt-utility-form-page .form-control,
.omt-utility-form-page .form-select,
.omt-utility-form-page .input-group-text { height: 36px; min-height: 36px; font-size: .76rem; border-radius: 7px; }
.omt-utility-form-page .input-group-text { width: 38px; padding: 6px; font-size: .7rem; }
.omt-utility-form-page textarea.form-control { height: 48px; min-height: 48px; }
.omt-utility-form-page .omt-form-field:has(textarea) .form-label { padding-top: 7px; }
.omt-utility-form-page .omt-form-field > small { min-height: 11px; margin-top: 1px; font-size: .59rem; line-height: 1.2; }
.omt-utility-form-page .omt-form-actions { margin-top: 10px; padding-top: 10px; gap: 7px; }
.omt-utility-form-page .omt-form-actions .btn { min-height: 34px; padding: 6px 12px; font-size: .72rem; border-radius: 7px; }

@media (max-width: 767.98px) {
    .omt-utility-form-page,
    .omt-utility-form-page .omt-config-form-card { max-width: 100%; }
    .omt-utility-form-page .omt-form-field { grid-template-columns: 1fr; }
    .omt-utility-form-page .omt-page-header > div > p,
    [dir="rtl"] .omt-utility-form-page .omt-page-header > div > p { margin-right: 0; margin-left: 0; }
}
/* AML compliance queue */
.omt-aml-alert { display:flex; align-items:center; gap:.65rem; font-weight:700; }
.omt-aml-summary-card,.omt-aml-detail-card,.omt-aml-decision-card { border:1px solid #dce2e9; box-shadow:0 8px 22px rgba(15,23,42,.05); }
.omt-aml-summary-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:0; }
.omt-aml-summary-grid>div { padding:1rem; border-inline-end:1px solid #e5e9ee; }
.omt-aml-summary-grid>div:last-child { border-inline-end:0; }
.omt-aml-summary-grid small { display:block; color:#718096; font-size:.68rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; margin-bottom:.3rem; }
.omt-aml-summary-grid strong { display:block; overflow-wrap:anywhere; }
.omt-aml-detail-card .card-header { background:#f7f8fa; border-bottom:1px solid #dce2e9; }
.omt-aml-definition-list { display:grid; grid-template-columns:7rem 1fr; gap:.7rem; margin:0; }
.omt-aml-definition-list dt { color:#667085; font-size:.75rem; text-transform:uppercase; }
.omt-aml-definition-list dd { margin:0; font-weight:700; }
.omt-status-pill.is-warning { background:#fff6cc; color:#715800; }
.omt-status-pill.is-warning>span { background:#ffde00; }
@media(max-width:1200px){.omt-aml-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.omt-aml-summary-grid>div:nth-child(3){border-inline-end:0}}
@media(max-width:767px){.omt-aml-summary-grid{grid-template-columns:1fr 1fr}.omt-aml-summary-grid>div:nth-child(3){border-inline-end:1px solid #e5e9ee}.omt-aml-summary-grid>div:nth-child(even){border-inline-end:0}}

/* Monthly compliance aggregates and limits */
.omt-aggregate-module { display:grid; gap:12px; }
.omt-aggregate-module .omt-page-header { margin-bottom:0; }
.omt-aggregate-policy-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.omt-aggregate-policy-card { border:1px solid #d8e0e9; border-radius:12px; overflow:hidden; box-shadow:0 6px 18px rgba(15,23,42,.045); }
.omt-aggregate-config-card { border:1px solid #d8e0e9; border-radius:12px; box-shadow:0 6px 18px rgba(15,23,42,.045); }
.omt-aggregate-config-card > .omt-aggregate-section-heading { border-radius:12px 12px 0 0; }
.omt-aggregate-policy-card.is-missing { border-color:#e8c600; }
.omt-aggregate-policy-title { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; padding:12px 14px; border-bottom:1px solid #e6ebf0; }
.omt-aggregate-policy-title small,.omt-aggregate-policy-values small,.omt-aggregate-section-heading small { display:block; color:#667085; font-size:.65rem; font-weight:800; letter-spacing:.055em; text-transform:uppercase; }
.omt-aggregate-policy-title strong { font-size:.9rem; }
.omt-aggregate-policy-values { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
.omt-aggregate-policy-values>div { min-width:0; padding:11px 12px; border-inline-end:1px solid #e6ebf0; }
.omt-aggregate-policy-values>div:last-child { border-inline-end:0; }
.omt-aggregate-policy-values strong { display:block; margin-top:3px; font-size:.86rem; }
.omt-aggregate-missing { display:flex; align-items:center; gap:8px; min-height:55px; padding:11px 14px; background:#fffbea; color:#624f00; font-size:.77rem; font-weight:700; }
.omt-aggregate-section-heading { display:flex; align-items:end; justify-content:space-between; gap:16px; padding:10px 14px; border-bottom:1px solid #dce3eb; background:#f8fafc; }
.omt-aggregate-section-heading h2 { margin:2px 0 0; font-size:.92rem; font-weight:800; }
.omt-aggregate-section-heading>span { color:#667085; font-size:.7rem; }
.omt-aggregate-policy-form { display:grid; grid-template-columns:1.05fr 1.15fr repeat(4,minmax(0,1fr)) auto; align-items:end; gap:9px; padding:12px 14px; }
.omt-aggregate-policy-form .form-label { margin-bottom:4px; color:#111827; font-size:.65rem; font-weight:800; text-transform:uppercase; }
.omt-aggregate-policy-form .form-control,.omt-aggregate-policy-form .form-select,.omt-aggregate-policy-form .btn { min-height:40px; height:40px; }
.omt-aggregate-policy-form .btn { white-space:nowrap; }
.omt-aggregate-section { min-width:0; }
.omt-aggregate-section .omt-table-card { border-radius:0 0 12px 12px; }
.omt-aggregate-module .table th { white-space:nowrap; }
@media(max-width:1200px){.omt-aggregate-policy-form{grid-template-columns:repeat(3,minmax(0,1fr))}.omt-aggregate-policy-form .btn{width:max-content}.omt-aggregate-policy-values{grid-template-columns:repeat(2,minmax(0,1fr))}.omt-aggregate-policy-values>div:nth-child(2){border-inline-end:0}}
@media(max-width:767px){.omt-aggregate-policy-grid,.omt-aggregate-policy-form{grid-template-columns:1fr}.omt-aggregate-section-heading{align-items:start;flex-direction:column}.omt-aggregate-policy-title{grid-template-columns:auto 1fr}.omt-aggregate-policy-title .omt-status-pill{grid-column:2}.omt-aggregate-policy-values{grid-template-columns:1fr 1fr}}

/* ==================================================================
   Send Money wizard — stepper, RF1-A/RF1-B sections, OTP input.
   Reuses the existing OMT yellow/ink tokens; adds only what the
   simulator-parity layer above doesn't already cover (a multi-step
   flow, threshold-gated sections, and a 6-digit code input).
   ================================================================== */

.omt-wizard-stepper { display:flex; align-items:center; flex-wrap:wrap; gap:2px; padding:11px 4px; margin-bottom:16px; background:var(--omt-gray-50); border:1px solid var(--omt-gray-200); border-radius:var(--omt-radius-lg); }
.omt-wizard-step { display:flex; align-items:center; gap:8px; padding:0 10px; color:var(--omt-gray-500); font-size:12px; font-weight:700; white-space:nowrap; }
.omt-wizard-step .dot { width:23px; height:23px; flex:0 0 23px; display:grid; place-items:center; border-radius:50%; background:#fff; border:1.5px solid var(--omt-gray-300); font-size:11px; }
.omt-wizard-step.done .dot { background:var(--omt-success); border-color:var(--omt-success); color:#fff; }
.omt-wizard-step.active { color:var(--omt-ink); }
.omt-wizard-step.active .dot { background:var(--omt-ink); border-color:var(--omt-ink); color:var(--omt-yellow); }
.omt-wizard-step.rf .dot { border-color:#6b46c1; }
.omt-wizard-step.rf.active .dot { background:#6b46c1; border-color:#6b46c1; color:#fff; }
.omt-wizard-connector { width:22px; height:2px; margin:0 2px; background:var(--omt-gray-300); flex-shrink:0; }
.omt-wizard-connector.done { background:var(--omt-success); }

.omt-rf1-section { margin:18px 0 10px; padding-bottom:6px; border-bottom:1px solid var(--omt-gray-200); display:flex; align-items:center; gap:10px; font-size:10.5px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--omt-gray-500); }
.omt-rf1-section.is-violet { color:#6b46c1; border-bottom-color:#d6c5f2; }
.omt-rf1-section .badge-violet { background:#efe7fb; color:#6b46c1; font-size:10px; font-weight:700; letter-spacing:.03em; text-transform:none; padding:3px 9px; border-radius:999px; }
.omt-rf1-section .badge-pass { background:#e8f6ee; color:#1f9d55; font-size:10px; font-weight:700; letter-spacing:.03em; text-transform:none; padding:3px 9px; border-radius:999px; }

.omt-found-tag { display:inline-flex; gap:6px; align-items:center; font-size:11.5px; font-weight:700; color:#176638; background:#e8f6ee; border:1px solid #bfe3cd; border-radius:7px; padding:6px 11px; margin-top:8px; }
.omt-lookup-empty { display:inline-flex; gap:6px; align-items:center; font-size:11.5px; color:var(--omt-gray-500); margin-top:8px; }

.omt-otp-inputs { display:flex; gap:9px; justify-content:center; margin:10px 0 6px; }
.omt-otp-inputs input { width:46px; height:54px; text-align:center; font-size:21px; font-weight:700; font-family:'IBM Plex Mono', monospace; border:1px solid var(--omt-gray-300); border-radius:8px; }
.omt-otp-inputs input:focus { outline:2px solid var(--omt-yellow); outline-offset:-1px; border-color:var(--omt-yellow-dark); }

.omt-signature-block { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:28px; padding-top:18px; border-top:1px solid var(--omt-gray-300); }
.omt-signature-block .omt-signature-line { border-bottom:1px solid #444; min-height:34px; }
.omt-signature-block label { display:block; margin-top:6px; font-size:11px; font-weight:700; color:var(--omt-ink-soft); }

.omt-wizard-actions { display:flex; justify-content:space-between; gap:10px; margin-top:18px; padding-top:14px; border-top:1px solid var(--omt-gray-200); }

@media (max-width: 575.98px) {
    .omt-wizard-step span:not(.dot) { display:none; }
    .omt-signature-block { grid-template-columns:1fr; gap:14px; }
}
