﻿:root {
    --app-font: "IBM Plex Sans Arabic", "Cairo", sans-serif;
    --app-display: "Readex Pro", "IBM Plex Sans Arabic", sans-serif;
    --sidebar-w: 284px;
    --sidebar-w-mini: 88px;
    --bg-1: #f3fbfb;
    --bg-2: #edf6ff;
    --bg-3: #f8fcff;
    --ink-950: #0f2227;
    --ink-800: #21404a;
    --ink-600: #5c737d;
    --line: rgba(15, 34, 39, 0.10);
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --sidebar-top: #0f4c5c;
    --sidebar-bottom: #093544;
    --brand: #0f766e;
    --brand-strong: #0b5d57;
    --accent: #2c7be5;
    --accent-soft: #dcecff;
    --danger: #b5452b;
    --danger-soft: #ffe2dc;
    --success: #0f8c67;
    --success-soft: #dcf7eb;
    --warning-soft: #fff1d8;
    --warning: #b97f1f;
    --shadow-xl: 0 30px 70px rgba(15, 34, 39, 0.15);
    --shadow-lg: 0 20px 46px rgba(15, 34, 39, 0.12);
    --shadow-md: 0 12px 28px rgba(15, 34, 39, 0.08);
    --radius-xl: 34px;
    --radius-lg: 26px;
    --radius-md: 20px;
    --radius-sm: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--app-font);
    color: var(--ink-950);
    background:
        radial-gradient(circle at 10% 12%, rgba(15, 118, 110, 0.16), transparent 26%),
        radial-gradient(circle at 92% 16%, rgba(44, 123, 229, 0.14), transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(15, 118, 110, 0.08), transparent 26%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 48%, var(--bg-3) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-title,
.app-hero-title {
    font-family: var(--app-display);
}

.num-ltr {
    direction: ltr !important;
    unicode-bidi: plaintext;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.text-muted {
    color: var(--ink-600) !important;
}

.app-shell {
    min-height: 100vh;
    padding: 12px;
}

.sidebar {
    width: var(--sidebar-w);
    min-height: calc(100vh - 24px);
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(15, 76, 92, 0.98), rgba(9, 53, 68, 0.98));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transition: width .25s ease, transform .25s ease;
}

.sidebar::before,
.sidebar::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.sidebar::before {
    width: 200px;
    height: 200px;
    top: -90px;
    left: -60px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
}

.sidebar::after {
    width: 220px;
    height: 220px;
    bottom: -120px;
    right: -90px;
    background: radial-gradient(circle, rgba(44, 123, 229, 0.24), transparent 70%);
}

.sidebar-header {
    padding: 16px 16px 10px;
    text-align: right;
}

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

.brand-orb {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 14px 24px rgba(15, 118, 110, 0.26);
}

.brand-kicker {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: none;
}

.brand-copy h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.brand-copy small {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.72);
}

.sidebar-section-label {
    padding: 0 16px;
    color: rgba(255, 255, 255, 0.44);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: none;
}

.sidebar ul.components {
    padding: 10px 9px;
    margin: 0;
    border: 0;
}

.sidebar ul li + li {
    margin-top: 3px;
}

.sidebar ul li a,
.sidebar-logout {
    padding: 10px 12px;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(240, 247, 247, 0.76);
    text-decoration: none;
    border-radius: 16px;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.sidebar ul li a:hover,
.sidebar ul li a.active,
.sidebar-logout:hover {
    transform: translateX(-3px);
}

.sidebar ul li a:hover,
.sidebar-logout:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sidebar ul li a.active {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.24), rgba(44, 123, 229, 0.20));
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.sidebar ul li a i,
.sidebar-logout i {
    width: 22px;
    text-align: center;
    flex: 0 0 auto;
}

.nav-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar.is-mini {
    width: var(--sidebar-w-mini);
}

.sidebar.is-mini .brand-copy,
.sidebar.is-mini .sidebar-section-label,
.sidebar.is-mini .nav-text {
    display: none;
}

.sidebar.is-mini .brand-stack {
    justify-content: center;
}

.sidebar.is-mini ul li a,
.sidebar.is-mini .sidebar-logout {
    justify-content: center;
    padding-inline: 12px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 8px 9px 10px;
}

.sidebar-logout {
    width: 100%;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    color: #ffd9d2;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 34, 39, 0.28);
    z-index: 1035;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.sidebar-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.content {
    margin-right: calc(var(--sidebar-w) + 12px);
    width: calc(100% - var(--sidebar-w) - 24px);
    min-height: calc(100vh - 24px);
    display: flex;
    flex-direction: column;
    transition: margin-right .25s ease, width .25s ease;
}

.content.with-mini {
    margin-right: calc(var(--sidebar-w-mini) + 12px);
    width: calc(100% - var(--sidebar-w-mini) - 24px);
}

.top-navbar {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    padding: 8px 12px;
}

.topbar-shell,
.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-shell {
    justify-content: space-between;
    flex-wrap: wrap;
}

.topbar-right {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.topbar-toggler {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink-950);
    box-shadow: 0 10px 18px rgba(15, 34, 39, 0.08);
}

.page-title {
    font-weight: 700;
    font-size: clamp(0.96rem, 1.55vw, 1.16rem);
    color: var(--ink-950);
}

.topbar-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08);
    border: 1px solid rgba(15, 118, 110, 0.10);
    color: var(--brand-strong);
    font-weight: 700;
    font-size: 0.78rem;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 22px rgba(15, 34, 39, 0.08);
    color: inherit;
    text-decoration: none;
}

.user-chip:hover {
    color: inherit;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    font-weight: 700;
}

.user-meta strong {
    display: block;
    font-size: 0.86rem;
    color: var(--ink-950);
}

.dropdown-menu {
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.96);
}

.dropdown-item {
    border-radius: 12px;
    padding: 0.75rem 0.95rem;
    font-weight: 600;
}

.dropdown-item:hover {
    background: rgba(15, 118, 110, 0.08);
    color: var(--brand-strong);
}

.page-container {
    padding: 8px 2px 14px;
    flex-grow: 1;
}

.page-surface {
    min-height: calc(100vh - 148px);
    padding: 10px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.60));
    border: 1px solid rgba(255, 255, 255, 0.70);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(24px);
}

.page-surface > .container-fluid {
    padding-inline: 2px;
}

.page-surface .container-fluid.py-4,
.page-surface .container.py-4 {
    padding-top: 0.9rem !important;
    padding-bottom: 1rem !important;
}

footer {
    padding: 4px 4px 0;
    text-align: center;
    color: var(--ink-600);
}

.card,
.ui-card,
.surface-card,
.app-card,
.info-card,
.metric-card,
.kpi-card,
.accounting-card {
    border: 1px solid rgba(255, 255, 255, 0.78) !important;
    background: rgba(255, 255, 255, 0.88) !important;
    border-radius: 24px !important;
    box-shadow: var(--shadow-md) !important;
    overflow: hidden;
}

.alert {
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.alert-success {
    background: rgba(220, 247, 235, 0.94);
    border-color: rgba(15, 140, 103, 0.14);
    color: #0b694e;
}

.alert-danger {
    background: rgba(255, 226, 220, 0.94);
    border-color: rgba(181, 69, 43, 0.12);
    color: #8f351f;
}

.btn {
    border-radius: 16px;
    font-weight: 700;
    padding: 0.72rem 1.12rem;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

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

.btn-primary {
    border: 0;
    background: linear-gradient(135deg, var(--brand), #15988d);
    box-shadow: 0 14px 24px rgba(15, 118, 110, 0.22);
}

.btn-outline-primary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-secondary,
.btn-outline-dark {
    background: rgba(255, 255, 255, 0.76);
}

.form-control,
.form-select,
textarea.form-control {
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(15, 34, 39, 0.10);
    background-color: rgba(255, 255, 255, 0.94);
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: rgba(15, 118, 110, 0.34);
    box-shadow: 0 0 0 0.24rem rgba(15, 118, 110, 0.12);
    background-color: #fff;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(15, 34, 39, 0.018);
    --bs-table-hover-bg: rgba(15, 118, 110, 0.055);
    margin-bottom: 0;
}

.table thead th {
    background: rgba(248, 251, 252, 0.96) !important;
    color: var(--ink-600);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--line);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex: 0 0 auto;
}
.topbar-actions:not(:has(a,button)) { display: none; }

@media screen {
    .reading-panel { padding: .45rem .65rem; margin-bottom: .5rem; }
    .reading-period-fields {
        display: grid;
        grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr) minmax(0, 1fr) minmax(0, .85fr) auto;
        align-items: end;
        gap: .5rem .75rem;
    }
    .reading-period-fields .form-label { margin-bottom: .15rem; }
    .reading-period-fields [role="status"] { grid-column: 1 / -1; }
    .loaded-reading-period { margin-block-end: .15rem; }
    .reading-excel-bar, .reading-excel-form, .reading-grid-bar, .reading-tools-fields {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: .45rem .65rem;
    }
    .reading-excel-form { flex: 1 1 22rem; min-width: 0; }
    .reading-excel-file { display: flex; flex: 0 1 26rem; align-items: center; gap: .5rem; min-width: 0; position: relative; }
    .reading-excel-file .btn { white-space: nowrap; }
    .reading-excel-file bdi { overflow-wrap: anywhere; }
    .reading-excel-file input:focus-visible + label { outline: 2px solid var(--brand-strong); outline-offset: 2px; }
    .reading-excel-file input:disabled + label { opacity: .55; }
    .reading-excel-form .btn { flex: 0 0 auto; }
    .reading-tools { padding: .4rem .55rem; }
    .reading-grid-bar { justify-content: space-between; }
    .reading-tools-fields { flex: 1 1 auto; min-width: 0; }
    .reading-tools-fields .reading-search { margin-inline-start: auto; width: min(100%, 19rem); }
    .work-chip {
        display: inline-flex;
        align-items: center;
        min-height: 32px;
        padding: .25rem .55rem;
        color: var(--ink-950);
        border-radius: .6rem;
        background: #edf4f7;
    }
    .reading-tools .work-chip { min-width: 0; flex-direction: row; gap: .25rem; }
    .reading-tools .work-chip .kpi-label::after { content: ":"; }
    .readings-workbench .mobile-reading-list { margin-bottom: .45rem; }
    .reading-delete-trigger { margin-inline-end: .45rem; }
    .readings-workbench .reading-actions {
        position: static;
        padding: .45rem .55rem;
        border: 1px solid var(--line);
        border-radius: .75rem;
        box-shadow: none;
    }
    .reading-deletion-dialog {
        width: min(28rem, calc(100% - 1rem));
        max-height: calc(100dvh - 1rem);
        border: 1px solid var(--line);
        border-radius: 1rem;
        padding: 1rem;
        color: var(--ink-950);
        background: white;
        box-shadow: var(--shadow-xl);
    }
    .reading-deletion-dialog::backdrop { background: rgba(12,32,42,.54); }
    .reading-deletion-dialog .btn { min-height: 44px; }
    .reading-deletion-dialog [hidden] { display: none !important; }
}

@media screen and (min-width: 768px) {
    .page-surface .table:not(.nbg-readings-table) thead th {
        background: #e9f1f5 !important;
        color: var(--ink-950);
        letter-spacing: normal;
        padding-block: .45rem;
    }
    .page-surface :is(.mobile-work-page, .subscriber-list, .legacy-page) .form-label { margin-bottom: .25rem; }
    .page-surface .mobile-compact-panel > .card-body { padding: .8rem !important; }
    .page-surface:has(.readings-workbench) { padding-block: .35rem; }
    .readings-workbench .reading-panel { padding-block: .28rem; margin-bottom: .3rem !important; }
    .readings-workbench .reading-period-fields .form-label { line-height: 1.25; margin-bottom: .15rem; }
    .readings-workbench :is(.reading-excel-form, .reading-search, .reading-period-fields) :is(.form-control,.form-select,.btn,.input-group-text) {
        min-height: 35px;
        padding-block: .2rem;
    }
    .readings-workbench .reading-tools { padding-block: .35rem; }
    .readings-workbench .reading-grid-scroll { max-height: max(15rem, calc(100dvh - 350px)); overflow: auto; }
    .reading-grid { border-collapse: separate; border-spacing: 0; }
    .readings-workbench .reading-grid thead th { position: sticky; inset-block-start: 0; z-index: 1; font-size: .84rem; }
    .reading-grid tbody td { height: 41px; padding: .15rem .6rem; border-inline-end: 1px solid var(--line); }
    .reading-grid tbody tr:nth-child(even) { background: #f7fafb; }
    .readings-workbench .reading-grid td.cell-current { background: #eaf7f6; }
    .readings-workbench .reading-grid .current-index-input {
        min-height: 34px;
        padding-block: .1rem;
        border: 1px solid #bbd1d9;
        border-radius: .45rem;
        font-size: 1rem;
    }
    .readings-workbench .reading-grid .current-index-input:focus {
        border-color: var(--brand-strong);
        box-shadow: 0 0 0 1px var(--brand-strong);
    }
    .reading-grid .sub-code { display: none; }
}

@media screen and (max-width: 767.98px) {
    .reading-period-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .reading-period-fields .reading-zone-field { grid-column: 1 / -1; }
    .reading-period-fields .loaded-reading-period { justify-self: start; }
    .reading-period-fields:not(:has(.loaded-reading-period)) .reading-show-period { grid-column: 1 / -1; }
    .topbar-actions .btn {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        gap: .25rem;
        min-width: 44px;
        min-height: 44px;
        padding-inline: .45rem;
    }
    .topbar-shell .topbar-actions { gap: .25rem; }
    .reading-tools-fields .reading-search { max-width: none; }
    .reading-delete-trigger { margin-inline-end: 0; }
}

.table td,
.table th {
    border-color: rgba(15, 34, 39, 0.06);
    vertical-align: middle;
}

.badge {
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-weight: 800;
}

.modal-content {
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-xl);
}

.modal-backdrop {
    z-index: 1070;
}

.modal {
    z-index: 1080;
}

body.modal-open .sidebar-backdrop {
    opacity: 0;
    pointer-events: none;
}

.modal-header.bg-primary {
    background: linear-gradient(135deg, var(--brand), #15988d) !important;
}

.modal-header.bg-success {
    background: linear-gradient(135deg, var(--success), #14a36f) !important;
}

.modal-header.bg-danger {
    background: linear-gradient(135deg, var(--danger), #d86a48) !important;
}

.modal-header.bg-dark {
    background: linear-gradient(135deg, var(--ink-950), var(--ink-800)) !important;
}

.modal-header.bg-secondary {
    background: linear-gradient(135deg, #50616d, #6c7c89) !important;
}

.legacy-page > .d-flex.justify-content-between.align-items-center.mb-3,
.legacy-page > .d-flex.justify-content-between.align-items-center.mb-4,
.legacy-page > .d-flex.justify-content-between.align-items-center.mb-3.flex-wrap.gap-2,
.legacy-page > .d-flex.justify-content-between.align-items-center.mb-4.flex-wrap.gap-2 {
    position: relative;
    overflow: hidden;
    padding: 14px 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(11, 93, 87, 0.96), rgba(15, 34, 39, 0.98) 60%, rgba(44, 123, 229, 0.90));
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.legacy-page > .d-flex.justify-content-between.align-items-center.mb-3::after,
.legacy-page > .d-flex.justify-content-between.align-items-center.mb-4::after,
.legacy-page > .d-flex.justify-content-between.align-items-center.mb-3.flex-wrap.gap-2::after,
.legacy-page > .d-flex.justify-content-between.align-items-center.mb-4.flex-wrap.gap-2::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    inset-inline-start: -80px;
    bottom: -120px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 72%);
}

.legacy-page > .d-flex.justify-content-between.align-items-center.mb-3 > *,
.legacy-page > .d-flex.justify-content-between.align-items-center.mb-4 > *,
.legacy-page > .d-flex.justify-content-between.align-items-center.mb-3.flex-wrap.gap-2 > *,
.legacy-page > .d-flex.justify-content-between.align-items-center.mb-4.flex-wrap.gap-2 > * {
    position: relative;
    z-index: 1;
}

.legacy-page > .d-flex.justify-content-between.align-items-center.mb-3 h4,
.legacy-page > .d-flex.justify-content-between.align-items-center.mb-4 h4,
.legacy-page > .d-flex.justify-content-between.align-items-center.mb-3.flex-wrap.gap-2 h4,
.legacy-page > .d-flex.justify-content-between.align-items-center.mb-4.flex-wrap.gap-2 h4,
.legacy-form-head h3 {
    color: #fff !important;
}

.legacy-page > .d-flex.justify-content-between.align-items-center.mb-3 .text-muted,
.legacy-page > .d-flex.justify-content-between.align-items-center.mb-4 .text-muted,
.legacy-page > .d-flex.justify-content-between.align-items-center.mb-3.flex-wrap.gap-2 .text-muted,
.legacy-page > .d-flex.justify-content-between.align-items-center.mb-4.flex-wrap.gap-2 .text-muted,
.legacy-page > .d-flex.justify-content-between.align-items-center.mb-3 .small,
.legacy-page > .d-flex.justify-content-between.align-items-center.mb-4 .small,
.legacy-page > .d-flex.justify-content-between.align-items-center.mb-3.flex-wrap.gap-2 .small,
.legacy-page > .d-flex.justify-content-between.align-items-center.mb-4.flex-wrap.gap-2 .small,
.legacy-form-head .text-muted,
.legacy-form-head .small {
    color: rgba(255, 255, 255, 0.82) !important;
}

.legacy-form-head {
    position: relative;
    overflow: hidden;
    padding: 14px 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(11, 93, 87, 0.96), rgba(15, 34, 39, 0.98) 60%, rgba(44, 123, 229, 0.90));
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.legacy-form-head::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    inset-inline-start: -80px;
    bottom: -120px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 72%);
}

.legacy-form-head > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(110%);
    }

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

    .content,
    .content.with-mini {
        margin-right: 0;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .app-shell {
        padding: 8px;
    }

    .sidebar {
        top: 8px;
        right: 8px;
        min-height: calc(100vh - 16px);
        width: min(86vw, 320px);
    }

    .page-surface {
        padding: 8px;
        border-radius: 20px;
    }

    .legacy-page .table {
        min-width: 760px;
    }

    .legacy-form-head,
    .legacy-page > .d-flex.justify-content-between.align-items-center.mb-3,
    .legacy-page > .d-flex.justify-content-between.align-items-center.mb-4,
    .legacy-page > .d-flex.justify-content-between.align-items-center.mb-3.flex-wrap.gap-2,
    .legacy-page > .d-flex.justify-content-between.align-items-center.mb-4.flex-wrap.gap-2 {
        padding: 14px;
        border-radius: 20px;
    }

    .modal-dialog {
        margin: 8px;
        max-width: calc(100vw - 16px);
    }
}
