:root {
    --admin-bg: #f3f6f0;
    --admin-surface: #ffffff;
    --admin-ink: #182018;
    --admin-muted: #687466;
    --admin-border: #dfe7db;
    --admin-green: #286b3a;
    --admin-green-dark: #142716;
    --admin-lime: #d9ef78;
    --admin-gold: #c78d2d;
    --admin-red: #b74235;
    --admin-blue: #2f6c8f;
    --admin-shadow: 0 18px 44px rgba(30, 45, 28, .08);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 15px;
}

body.admin-body {
    margin: 0;
    min-height: 100vh;
    color: var(--admin-ink);
    background: var(--admin-bg);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

button,
input {
    font: inherit;
}

.admin-shell {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px 18px;
    color: #fff;
    background: var(--admin-green-dark);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    color: #fff;
    text-decoration: none;
}

.admin-brand:hover {
    color: #fff;
}

.admin-brand-mark,
.profile-button,
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-brand-mark {
    width: 46px;
    height: 46px;
    color: var(--admin-green-dark);
    background: var(--admin-lime);
    border-radius: 8px;
    font-weight: 900;
}

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

.admin-brand small {
    margin-top: 2px;
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
}

.admin-nav {
    display: grid;
    gap: 8px;
    margin-top: 34px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 14px;
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
}

.admin-nav-count-link b,
.notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    color: #fff;
    background: #b83a2f;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.admin-nav a:hover,
.admin-nav a:focus {
    color: #fff;
    background: rgba(217, 239, 120, .14);
}

.admin-main {
    min-width: 0;
    padding: 28px;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.admin-topbar p,
.panel-heading p,
.page-toolbar p,
.metric-card p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.admin-topbar h1 {
    margin: 4px 0 0;
    font-size: 30px;
    font-weight: 850;
}

.admin-topbar-actions,
.toolbar-actions,
.row-actions,
.legend {
    display: flex;
    align-items: center;
    gap: 10px;
}

.archive-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 12px;
    color: var(--admin-muted);
    background: #eef4ea;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
}

.archive-toggle input {
    width: 16px;
    height: 16px;
    accent-color: var(--admin-green);
}

.topbar-menu-button,
.profile-menu-button {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    color: var(--admin-ink);
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
}

.topbar-menu-button {
    gap: 8px;
    padding: 0 12px;
    font-weight: 800;
}

.profile-menu-button {
    gap: 10px;
    padding: 4px 12px 4px 5px;
}

.icon-button,
.profile-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--admin-ink);
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    font-weight: 850;
    text-decoration: none;
}

.notification-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    border: 2px solid #fff;
}

.topbar-menu-button svg,
.icon-button svg,
.profile-button svg,
.logout-menu-item svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.topbar-menu-button:hover,
.profile-menu-button:hover,
.icon-button:hover,
.profile-button:hover {
    color: var(--admin-green);
    border-color: #b8c9b3;
}

.profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #fff;
    background: var(--admin-green);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
}

.profile-meta {
    display: grid;
    gap: 1px;
    text-align: left;
}

.profile-meta strong,
.profile-dropdown-header strong {
    font-size: 13px;
    line-height: 1.1;
}

.profile-meta small,
.profile-dropdown-header small {
    color: var(--admin-muted);
    font-size: 11px;
    font-weight: 700;
}

.topbar-dropdown,
.profile-dropdown {
    padding: 8px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    box-shadow: var(--admin-shadow);
}

.topbar-dropdown .dropdown-item,
.logout-menu-item {
    border-radius: 6px;
    font-weight: 750;
}

.profile-dropdown {
    min-width: 220px;
}

.profile-dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--admin-border);
}

.logout-menu-item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
}

.logout-form {
    margin: 0;
}

.admin-card {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    box-shadow: var(--admin-shadow);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.metric-card {
    min-height: 150px;
    padding: 20px;
}

.metric-card strong {
    display: block;
    margin-top: 10px;
    font-size: 30px;
    line-height: 1.1;
}

.metric-card span {
    display: inline-flex;
    margin-top: 16px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #183018;
    background: var(--admin-lime);
    font-size: 12px;
    font-weight: 850;
}

.metric-card.gold span {
    background: #f1d7a3;
}

.metric-card.red span {
    color: #fff;
    background: var(--admin-red);
}

.metric-card.blue span {
    color: #fff;
    background: var(--admin-blue);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 18px;
    margin-top: 18px;
}

.table-panel,
.calendar-preview,
.page-toolbar,
.calendar-panel {
    padding: 22px;
}

.panel-heading,
.page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.panel-heading {
    margin-bottom: 18px;
}

.panel-heading h2,
.page-toolbar h2 {
    margin: 4px 0 0;
    font-size: 20px;
    font-weight: 850;
}

.panel-heading a {
    color: var(--admin-green);
    text-decoration: none;
    font-weight: 850;
}

.activity-list {
    display: grid;
    gap: 10px;
}

.activity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
}

.activity-row strong,
.activity-row span,
.activity-meta small,
.activity-meta b {
    display: block;
}

.activity-row span,
.activity-meta small {
    margin-top: 4px;
    color: var(--admin-muted);
    font-size: 13px;
}

.activity-meta {
    text-align: right;
    white-space: nowrap;
}

.activity-meta b,
.status-pill {
    color: #3e2a05;
    background: #f4d99f;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
}

.variety-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    object-fit: cover;
    color: #fff;
    background: var(--admin-green);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
}

.variety-thumb.is-empty {
    background: #e9efe5;
    color: var(--admin-green);
}

.variety-photo-stack {
    position: relative;
    display: inline-flex;
    width: 50px;
}

.variety-photo-count {
    position: absolute;
    right: 0;
    bottom: -4px;
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    color: #fff;
    background: #273b2a;
    border: 2px solid #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.activity-meta b {
    display: inline-flex;
    margin-top: 6px;
    padding: 5px 9px;
}

.mini-calendar-header,
.mini-calendar-row {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.mini-calendar-header {
    margin: 8px 0 10px;
}

.mini-calendar-row {
    margin-top: 12px;
}

.mini-calendar-row span {
    min-width: 0;
    font-weight: 800;
}

.mini-calendar-row strong,
.mini-calendar-row small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-calendar-row small {
    margin-top: 3px;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 750;
}

.mini-calendar-months,
.mini-calendar-cells {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4px;
}

.mini-calendar-months b {
    display: flex;
    justify-content: center;
    color: var(--admin-muted);
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
}

.mini-calendar-cells i,
.legend i {
    display: block;
    min-width: 0;
    height: 18px;
    border-radius: 4px;
    background: #edf2e9;
}

.mini-calendar-cells i.is-active,
.legend i.is-active {
    background: #a8d765;
}

.mini-calendar-cells i.is-peak,
.legend i.is-peak {
    background: var(--admin-gold);
}

.mini-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.mini-calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 850;
}

.mini-calendar-legend i {
    width: 18px;
    height: 10px;
    border-radius: 4px;
}

.mini-calendar-legend i.is-active {
    background: #a8d765;
}

.mini-calendar-legend i.is-peak {
    background: var(--admin-gold);
}

.page-toolbar {
    margin-bottom: 18px;
}

.search-field {
    display: grid;
    gap: 6px;
}

.search-field span {
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 800;
}

.search-field input {
    width: min(320px, 46vw);
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    outline: none;
}

.search-field input:focus {
    border-color: var(--admin-green);
}

.primary-button {
    min-height: 42px;
    padding: 0 16px;
    color: #fff;
    background: var(--admin-green);
    border: 0;
    border-radius: 8px;
    font-weight: 850;
}

.primary-button:disabled,
.primary-button.is-loading {
    cursor: wait;
    opacity: .68;
}

.secondary-button {
    min-height: 42px;
    padding: 0 16px;
    color: var(--admin-ink);
    background: #eef4ea;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    font-weight: 850;
}

.admin-modal {
    border: 0;
    border-radius: 8px;
}

.admin-modal .modal-header,
.admin-modal .modal-footer {
    padding: 20px 22px;
    border-color: var(--admin-border);
}

.admin-modal .modal-header {
    align-items: flex-start;
}

.admin-modal .modal-header p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.admin-modal .modal-title {
    margin: 4px 0 0;
    font-size: 22px;
    font-weight: 850;
}

.admin-modal .modal-body {
    padding: 22px;
}

.admin-modal {
    max-height: calc(100vh - 32px);
}

.confirm-modal .modal-body p {
    margin: 0;
    color: var(--admin-ink);
    font-size: 15px;
    font-weight: 750;
}

.danger-confirm-button {
    background: #b83a2f;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.translation-group {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    background: #f7faf4;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
}

.translation-group > span {
    grid-column: 1 / -1;
    color: var(--admin-ink);
    font-size: 13px;
    font-weight: 850;
}

.form-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.form-field span {
    color: var(--admin-ink);
    font-weight: 800;
}

.form-field input,
.form-field select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 12px;
    color: var(--admin-ink);
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    outline: none;
}

.form-field input[type="file"] {
    height: auto;
    min-height: 44px;
    padding: 9px 10px;
    font-size: 13px;
    line-height: 1.4;
}

.form-field input[type="file"]::file-selector-button {
    max-width: 140px;
    margin-right: 10px;
    padding: 8px 10px;
    color: #fff;
    background: var(--admin-green);
    border: 0;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 850;
}

.form-field input:focus,
.form-field select:focus {
    border-color: var(--admin-green);
}

.month-range-selects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.form-alert {
    margin-bottom: 14px;
    padding: 12px;
    color: #7c241c;
    background: #fbe8e5;
    border: 1px solid #efb5ad;
    border-radius: 8px;
    font-weight: 700;
}

.image-gallery-editor {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.image-gallery-editor > span {
    font-weight: 800;
}

.image-gallery-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
}

.image-gallery-item {
    position: relative;
    min-height: 86px;
    overflow: hidden;
    background: #eef4ea;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
}

.image-gallery-item img {
    display: block;
    width: 100%;
    height: 86px;
    object-fit: cover;
}

.image-gallery-item button {
    position: absolute;
    right: 6px;
    bottom: 6px;
    min-height: 28px;
    padding: 0 8px;
    color: #9f2f25;
    background: #fff;
    border: 1px solid #efb5ad;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 850;
}

.month-picker {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.month-picker > span {
    grid-column: 1 / -1;
    font-weight: 800;
}

.month-picker label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 10px;
    background: #eef4ea;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
}

.admin-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--admin-border);
    vertical-align: middle;
}

.admin-table th {
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.messages-table {
    min-width: 1120px;
}

.message-summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 10px 12px;
    background: #eef4ea;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
}

.message-summary strong {
    color: var(--admin-green);
    font-size: 22px;
    line-height: 1;
}

.message-summary span {
    color: var(--admin-muted);
    font-weight: 850;
}

.messages-table tr.is-unread td {
    background: #fffdf4;
}

.message-preview {
    max-width: 360px;
    white-space: normal;
}

.inline-user-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 8px;
    min-width: 760px;
}

.inline-user-form input,
.inline-user-form select {
    min-height: 34px;
    padding: 0 8px;
    border: 1px solid var(--admin-border);
    border-radius: 7px;
}

.inline-user-form label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.row-actions .password-action {
    color: #35466f;
    background: #eef2fb;
    border-color: #c8d4ee;
}

.user-active-toggle label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    background: #eef4ea;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
}

.user-active-toggle input {
    width: auto;
    min-height: auto;
}

.profile-password-form {
    margin-top: 24px;
}

.admin-table td span {
    display: block;
    color: var(--admin-muted);
    font-size: 12px;
}

.product-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    color: var(--admin-ink) !important;
    background: #f4f8ef;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    font-size: 18px !important;
    line-height: 1;
}

.product-name-text {
    min-width: 0;
}

.product-name-text strong {
    display: block;
}

.product-name-text span {
    display: block;
}

.status-pill {
    display: inline-flex;
    padding: 6px 10px;
}

.row-actions button {
    min-height: 34px;
    padding: 0 10px;
    color: var(--admin-green);
    background: #eef4ea;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    font-weight: 800;
}

.row-actions .danger-action,
.calendar-actions .danger-action {
    color: #9f2f25;
    background: #fbe8e5;
    border-color: #efb5ad;
}

.row-actions .restore-action {
    color: #245b32;
    background: #dff1df;
    border-color: #bad9bd;
}

.legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--admin-muted);
    font-weight: 800;
}

.legend i {
    width: 18px;
}

.season-calendar {
    display: grid;
    grid-template-columns: 210px repeat(12, minmax(54px, 1fr));
    gap: 6px;
    min-width: 960px;
}

.calendar-head,
.calendar-product,
.calendar-cell {
    min-height: 48px;
    border-radius: 8px;
}

.calendar-head {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-muted);
    background: #eef4ea;
    font-size: 12px;
    font-weight: 850;
}

.calendar-product {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 12px;
    background: #f8faf6;
    border: 1px solid var(--admin-border);
}

.calendar-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.calendar-actions button {
    min-height: 28px;
    padding: 0 8px;
    color: var(--admin-green);
    background: #eef4ea;
    border: 1px solid var(--admin-border);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
}

.calendar-product span {
    color: var(--admin-muted);
    font-size: 12px;
}

.calendar-cell {
    border: 1px solid var(--admin-border);
    background: #fff;
}

.calendar-cell.is-active {
    background: #cfeaa5;
}

.calendar-cell.is-peak {
    background: var(--admin-gold);
}

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

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .admin-main {
        padding: 18px;
    }

    .admin-topbar,
    .page-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .toolbar-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .search-field input {
        width: 100%;
    }

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

    .translation-group {
        grid-template-columns: 1fr;
    }

    .month-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.auth-body {
    min-height: 100vh;
    margin: 0;
    color: var(--admin-ink);
    background:
        linear-gradient(135deg, rgba(40, 107, 58, .16), transparent 36%),
        var(--admin-bg);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.auth-panel {
    width: min(100%, 460px);
    padding: 28px;
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    box-shadow: var(--admin-shadow);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

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

.auth-brand small,
.auth-heading span,
.auth-hint span {
    color: var(--admin-muted);
}

.auth-heading {
    margin-bottom: 22px;
}

.auth-heading p {
    margin: 0;
    color: var(--admin-green);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.auth-heading h1 {
    margin: 6px 0 8px;
    font-size: 30px;
    font-weight: 850;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-form label:not(.remember-row) {
    display: grid;
    gap: 7px;
}

.auth-form label > span {
    font-weight: 800;
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    outline: none;
}

.auth-form input:focus {
    border-color: var(--admin-green);
}

.auth-form small,
.validation-message {
    color: var(--admin-red);
    font-size: 13px;
}

.validation-message ul {
    margin: 0 0 4px;
    padding-left: 18px;
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--admin-muted);
    font-weight: 700;
}

.auth-submit {
    width: 100%;
    margin-top: 4px;
}

.auth-hint {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding: 12px;
    background: #eef4ea;
    border-radius: 8px;
    font-size: 13px;
}


.admin-modal {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.admin-modal .modal-header {
    flex-shrink: 0;
}

.admin-modal .modal-body {
    overflow-y: auto;
    flex: 1 1 auto;
    max-height: calc(90vh - 160px);
}

.admin-modal .modal-footer {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 5;
    border-top: 1px solid #e5e7eb;
}
