:root {
    --bg: #f3f6fb;
    --panel: #ffffff;
    --panel-strong: #f8fbff;
    --line: #dbe5f3;
    --text: #183153;
    --muted: #6881a6;
    --blue: #2e6edc;
    --blue-strong: #1650b8;
    --green: #22a05f;
    --orange: #f68d2b;
    --red: #e15c4b;
    --shadow: 0 16px 40px rgba(24, 49, 83, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(46, 110, 220, 0.08), transparent 28%),
        linear-gradient(180deg, #f7f9fd 0%, #eef3fb 100%);
}

body {
    min-height: 100vh;
}

button, input, select, textarea {
    font: inherit;
}

.app-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.auth-shell {
    display: block;
}

.sidebar {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--line);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), #6aa7ff);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 800;
    text-transform: lowercase;
}

.brand strong {
    display: block;
    font-size: 1.25rem;
    color: var(--blue);
}

.brand span,
.topbar p,
.card-title,
.sidebar-nav,
.eyebrow,
.info-note,
.topbar-user span,
.receipt-number span,
.receipt-search label,
.info-card p,
.lot-item small,
.auth-hero p,
.auth-hero li,
.auth-form label,
.section-head span {
    color: var(--muted);
}

.sidebar-nav {
    display: grid;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--muted);
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
}

.nav-item:hover,
.nav-item.active,
.nav-item-ghost:hover {
    background: #eaf2ff;
    color: var(--blue-strong);
    border-color: #d6e3f8;
}

.logout-form {
    margin-top: auto;
}

.workspace {
    padding: 28px;
    display: grid;
    gap: 18px;
}

.auth-workspace {
    width: min(100%, 440px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 24px;
    align-content: center;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.topbar-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-logo {
    width: 126px;
    height: auto;
    flex: 0 0 auto;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 700;
}

.topbar h1 {
    margin: 6px 0 4px;
    font-size: clamp(2rem, 2vw + 1rem, 2.6rem);
    color: var(--text);
}

.topbar p {
    margin: 0;
    max-width: 720px;
}

.topbar-user {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: var(--shadow);
    min-width: 220px;
    text-align: right;
}

.topbar-user strong {
    display: block;
    margin-bottom: 4px;
}

.alert {
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid transparent;
}

.alert-success {
    background: #ecf9f0;
    border-color: #c8ead5;
    color: #12713f;
}

.alert-error {
    background: #fff1ef;
    border-color: #f0c3bd;
    color: #b33d2f;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 23, 38, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.loading-overlay.visible {
    display: flex;
}

.loading-card {
    min-width: 240px;
    max-width: 90vw;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 30, 55, 0.22);
    padding: 22px 24px;
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
}

.loading-card strong {
    font-size: 1.05rem;
    color: var(--text);
}

.loading-card span {
    color: var(--muted);
    font-size: 0.95rem;
}

.loading-spinner {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 4px solid #d9e4f4;
    border-top-color: var(--blue);
    animation: spin 0.85s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.card,
.auth-panel,
.auth-hero {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.receipt-toolbar,
.medications-card {
    width: 100%;
}

.receipt-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
}

.receipt-search {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.receipt-search label,
.auth-form label,
.inner-card label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.receipt-search input,
.auth-form input,
.auth-form textarea,
.inner-card input,
.inner-card textarea,
.inner-card select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.receipt-search input:focus,
.auth-form input:focus,
.auth-form textarea:focus,
.inner-card input:focus,
.inner-card textarea:focus,
.inner-card select:focus {
    border-color: #9fc0f8;
    box-shadow: 0 0 0 4px rgba(46, 110, 220, 0.12);
}

.receipt-number {
    padding: 10px 16px;
    border-radius: 14px;
    background: #f6f9ff;
    border: 1px solid #d7e3f8;
    min-width: 190px;
    text-align: right;
}

.receipt-number strong {
    display: block;
    margin-top: 4px;
    color: var(--blue-strong);
    font-size: 1.35rem;
}

.info-card,
.inner-card {
    padding: 18px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.card-title {
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.info-card h3,
.auth-hero h2 {
    margin: 0 0 8px;
    color: var(--blue-strong);
}

.info-card p {
    margin: 6px 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.pill-success {
    color: #12713f;
    background: #e6f8ee;
}

.pill-warning {
    color: #c06a10;
    background: #fff3e4;
}

.status-subline {
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--muted);
}

.medications-card {
    padding: 0;
    overflow: hidden;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 0;
}

.section-head h2 {
    margin: 0;
}

.medications-card form {
    padding: 0 20px 20px;
}

.table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.receipt-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.receipt-table th,
.receipt-table td {
    padding: 12px 12px;
    text-align: left;
    border-bottom: 1px solid #edf2f8;
    vertical-align: middle;
}

.receipt-table th {
    background: #f7faff;
    font-size: 0.82rem;
    color: var(--muted);
    position: sticky;
    top: 0;
    z-index: 1;
}

.item-row {
    cursor: pointer;
    transition: background 0.18s ease;
}

.item-row:hover,
.item-row.selected {
    background: #f4f8ff;
}

.item-row-disabled {
    cursor: not-allowed;
    opacity: 0.92;
}

.item-row-disabled:hover {
    background: transparent;
}

.item-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.item-config-cell {
    min-width: 210px;
}

.item-config-btn {
    width: 100%;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.84rem;
}

.item-config-detail-row td {
    background: #fbfdff;
    padding: 10px 12px;
}

.item-config-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.86rem;
    color: var(--muted);
}

.item-config-detail strong {
    color: var(--text);
}

.item-config-detail .sep {
    color: #9fb0c8;
}

.medication-select-table {
    min-width: 0;
}

.mobile-table-hint {
    display: none;
}

.dispense-observation {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.actions-bar {
    margin-top: 14px;
    padding: 18px 20px 0;
    border-top: 1px solid #edf2f8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.info-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #edf4ff;
    border-radius: 14px;
    flex: 1;
}

.actions {
    display: flex;
    gap: 10px;
}

.primary-btn,
.secondary-btn,
.tab {
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-btn {
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--blue-strong));
    box-shadow: 0 10px 24px rgba(22, 80, 184, 0.22);
}

.secondary-btn {
    color: var(--blue-strong);
    background: #eaf2ff;
}

.signature-actions {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.signature-link {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    text-decoration: none;
}

.signature-copy-btn.is-copied {
    background: #d8f5e4;
    color: #12713f;
}

.item-config-modal {
    position: fixed;
    inset: 0;
    background: rgba(13, 23, 38, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.item-config-modal.visible {
    display: flex;
}

.item-config-modal__dialog {
    width: min(560px, 96vw);
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: 0 22px 50px rgba(19, 42, 74, 0.3);
    overflow: hidden;
}

.item-config-modal__header {
    padding: 16px 18px 10px;
    border-bottom: 1px solid #edf2f8;
}

.item-config-modal__header h3 {
    margin: 0;
}

.item-config-modal__header p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.item-config-modal__body {
    padding: 14px 18px;
    display: grid;
    gap: 12px;
}

.item-config-modal__body label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

.item-config-modal__body input,
.item-config-modal__body textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text);
    background: #fff;
}

.item-config-modal__actions {
    padding: 12px 18px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid #edf2f8;
}

.submit-confirm-modal__dialog {
    width: min(760px, 96vw);
}

.submit-confirm-message {
    margin: 0;
    color: var(--muted);
}

.submit-confirm-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.submit-confirm-summary div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: #f7f9fc;
}

.submit-confirm-summary dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.submit-confirm-summary dd {
    margin: 4px 0 0;
    font-weight: 700;
}

.submit-confirm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.submit-confirm-table th,
.submit-confirm-table td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
}

.submit-confirm-table th {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 520px) {
    .submit-confirm-summary {
        grid-template-columns: 1fr;
    }
}

.primary-btn:hover,
.secondary-btn:hover,
.tab:hover {
    transform: translateY(-1px);
}

.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: 18px;
    margin-top: 24px;
}

.auth-workspace .auth-grid {
    display: block;
    margin-top: 0;
}

.auth-logo {
    display: block;
    width: min(100%, 250px);
    height: auto;
    margin: 0 auto 24px;
}

.auth-hero {
    padding: 30px;
    background: linear-gradient(160deg, #f8fbff 0%, #edf4ff 100%);
    display: grid;
    align-content: start;
    gap: 16px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--blue-strong);
    background: #e4efff;
    font-weight: 700;
    font-size: 0.8rem;
}

.auth-hero ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.auth-panel {
    padding: 18px;
}

.tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.tab {
    background: #edf4ff;
    color: var(--muted);
}

.tab.active {
    background: linear-gradient(135deg, var(--blue), var(--blue-strong));
    color: white;
}

.auth-form {
    display: none;
    gap: 12px;
}

.auth-form.active {
    display: grid;
}

.auth-form .primary-btn {
    margin-top: 6px;
}

.auth-form textarea {
    resize: vertical;
}

@media (max-width: 1180px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .auth-grid,
    .topbar {
        grid-template-columns: 1fr;
        display: grid;
    }

    .topbar-user {
        text-align: left;
    }
}

@media (max-width: 760px) {
    .workspace {
        padding: 16px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .mobile-table-hint {
        display: block;
        margin: 14px 0 8px;
        color: var(--blue-strong);
        font-size: 0.9rem;
        font-weight: 700;
    }

    .table-wrap {
        overflow-x: scroll;
        overflow-y: hidden;
        scrollbar-color: var(--blue) #dce7f8;
        scrollbar-width: thin;
    }

    .table-wrap::-webkit-scrollbar {
        height: 10px;
    }

    .table-wrap::-webkit-scrollbar-track {
        background: #dce7f8;
    }

    .table-wrap::-webkit-scrollbar-thumb {
        background: var(--blue);
        border: 2px solid #dce7f8;
        border-radius: 8px;
    }

    .medication-select-table {
        min-width: 780px;
    }

    .receipt-toolbar,
    .actions-bar {
        grid-template-columns: 1fr;
        display: grid;
    }

    .receipt-search,
    .actions {
        grid-template-columns: 1fr;
        display: grid;
    }
}

/* Layout compacto */
.app-shell { grid-template-columns: 200px 1fr; }
.sidebar { padding: 16px 12px; gap: 16px; }
.workspace { padding: 14px 20px; gap: 12px; align-content: start; }
.auth-workspace { padding: 24px; align-content: center; }
.topbar { align-items: center; gap: 16px; }
.topbar h1 { margin: 0; font-size: 1.4rem; }
.topbar-logo { width: 96px; }
.topbar-user { padding: 8px 14px; min-width: 0; box-shadow: none; }
.topbar-user strong { margin-bottom: 0; font-size: 0.95rem; }
.topbar-user span { font-size: 0.82rem; }
.receipt-toolbar { padding: 10px 14px; gap: 12px; }
.receipt-search { flex: 1; }
.receipt-search-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.receipt-search-form label { margin: 0; font-size: 0.9rem; }
.receipt-search-form input { width: 14rem; padding: 8px 12px; }
.receipt-search-form .primary-btn { padding: 9px 16px; }
.receipt-number { padding: 6px 12px; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.receipt-number strong { display: inline; margin: 0; font-size: 1.05rem; }
.summary-grid { gap: 12px; }
.info-card, .inner-card { padding: 12px 16px; }
.info-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.info-card p { margin: 3px 0; font-size: 0.9rem; }
.card-title { margin-bottom: 6px; }
.section-head { padding: 12px 16px 0; }
.section-head h2 { font-size: 1.1rem; }
.medications-card form { padding: 0 16px 14px; }
.receipt-table th, .receipt-table td { padding: 8px 10px; }
.actions-bar { margin-top: 10px; padding: 12px 16px 0; }

.signature-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.signature-actions .signature-link { width: auto; flex: 1 1 0; white-space: nowrap; }

/* Menu sanduiche (mobile) */
.menu-toggle, .sidebar-backdrop { display: none; }

@media (max-width: 900px) {
    .app-shell { grid-template-columns: 1fr; }
    .auth-shell { display: block; }

    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        padding: 0 10px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: #fff;
        cursor: pointer;
        flex: 0 0 auto;
    }
    .menu-toggle span {
        display: block;
        height: 2px;
        background: var(--blue-strong);
        border-radius: 2px;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 240px;
        z-index: 10001;
        background: #fff;
        border-right: 1px solid var(--line);
        border-bottom: 0;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }
    body.menu-open .sidebar { transform: translateX(0); }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(13, 23, 38, 0.45);
        z-index: 10000;
    }
    body.menu-open .sidebar-backdrop { display: block; }
    body.menu-open { overflow: hidden; }

    .topbar { flex-wrap: wrap; justify-content: flex-start; }
    .topbar-title { flex: 1 1 auto; min-width: 0; }
    .topbar-user { text-align: left; flex: 1 1 100%; }
}

/* ===== UX: acessibilidade e desktop ===== */
:focus-visible { outline: 3px solid rgba(46, 110, 220, 0.45); outline-offset: 2px; }
.primary-btn, .secondary-btn, .nav-item { min-height: 40px; }
.primary-btn:disabled, .secondary-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.primary-btn:active, .secondary-btn:active { transform: translateY(0); }
.item-row:not(.item-row-disabled) td { cursor: pointer; }
.item-row.selected { box-shadow: inset 3px 0 0 var(--blue); }
.item-row input[type="checkbox"] { cursor: pointer; accent-color: var(--blue); }
.receipt-search-form input { font-size: 1rem; }
.topbar-user { white-space: normal; word-break: break-word; }
.workspace { max-width: 1280px; width: 100%; }

/* ===== UX: mobile (cards em vez de tabela com scroll horizontal) ===== */
@media (max-width: 760px) {
    .workspace { padding: 12px; gap: 10px; }
    .topbar-title { gap: 10px; }
    .topbar-logo { width: 80px; }
    .topbar h1 { font-size: 1.05rem; line-height: 1.2; }

    .receipt-toolbar { padding: 10px 12px; }
    .receipt-search-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
    .receipt-search-form label { grid-column: 1 / -1; }
    .receipt-search-form input { width: 100%; min-width: 0; font-size: 16px; }
    .receipt-number { justify-content: space-between; }

    .mobile-table-hint { display: none; }
    .table-wrap { overflow: visible; border: 0; background: transparent; }
    .medication-select-table, .medication-select-table tbody { display: block; min-width: 0; width: 100%; }
    .medication-select-table thead { display: none; }

    .medication-select-table .item-row {
        display: block;
        margin-bottom: 10px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: #fff;
        overflow: hidden;
    }
    .medication-select-table .item-row.selected { border-color: #9fc0f8; background: #f4f8ff; box-shadow: none; }
    .medication-select-table .item-row td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 9px 14px;
        border-bottom: 1px solid #edf2f8;
        text-align: right;
    }
    .medication-select-table .item-row td:last-child { border-bottom: 0; }
    .medication-select-table .item-row td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        color: var(--muted);
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        text-align: left;
    }
    .medication-select-table .cell-name strong { font-size: 1rem; text-align: right; }
    .medication-select-table .cell-check input[type="checkbox"] { width: 26px; height: 26px; }
    .medication-select-table .item-config-cell { min-width: 0; }
    .medication-select-table .item-config-cell:empty,
    .medication-select-table .item-config-cell:has(.item-config-btn[style*="none"]) { display: none; }
    .medication-select-table .item-config-btn { width: auto; max-width: 100%; }

    .medication-select-table .item-config-detail-row { display: block; margin: -10px 0 10px; }
    .medication-select-table .item-config-detail-row td {
        display: block;
        border: 1px solid #9fc0f8;
        border-top: 0;
        border-radius: 0 0 14px 14px;
        padding: 10px 14px;
    }
    .medication-select-table .item-config-detail-row td::before { content: none; }

    .section-head { flex-wrap: wrap; gap: 4px; }
    .medications-card form { padding: 0 12px 12px; }

    .actions-bar {
        position: sticky;
        bottom: 0;
        z-index: 5;
        margin: 10px -12px -12px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(6px);
        box-shadow: 0 -6px 18px rgba(24, 49, 83, 0.1);
    }
    .actions-bar .info-note { display: none; }
    .actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; }
    .actions .primary-btn, .actions .secondary-btn { width: 100%; min-height: 46px; }

    .signature-actions { flex-direction: column; }

    .item-config-modal { align-items: flex-end; padding: 0; }
    .item-config-modal__dialog {
        width: 100%;
        max-height: 92vh;
        overflow: auto;
        border-radius: 18px 18px 0 0;
    }
    .item-config-modal__body input, .item-config-modal__body textarea { font-size: 16px; }
    .item-config-modal__actions { position: sticky; bottom: 0; background: #fff; }
    .item-config-modal__actions button { flex: 1; min-height: 44px; }
}
