/* ================================================================
   FOREST CLUB ERP — Unified Design System  |  erp.css
   Single source of truth for all pages.
   ================================================================ */

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Design Tokens ──────────────────────────────────────────────── */
:root {
    --brand-1:      #4f46e5;
    --brand-2:      #7c3aed;
    --bg-page:      #f1f5f9;
    --bg-card:      #ffffff;
    --bg-nav:       #1e293b;
    --text-1:       #1e293b;
    --text-2:       #64748b;
    --border:       #e2e8f0;
    --accent:       #4f46e5;
    --accent-hover: #4338ca;
    --success:      #16a34a;
    --danger:       #dc2626;
    --danger-hover: #b91c1c;
    --radius-sm:    6px;
    --radius-md:    10px;
    --radius-lg:    16px;
    --radius-xl:    22px;
    --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    --shadow-md:    0 4px 16px rgba(0,0,0,.08);
    --shadow-lg:    0 12px 40px rgba(0,0,0,.12);
    --nav-h:        56px;
    --nav-h-mobile: 52px;
    --font:         'Segoe UI', Arial, sans-serif;
}

/* ── Base ───────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text-1);
    background: var(--bg-page);
    min-height: 100vh;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

.required-star {
    color: var(--danger);
    font-weight: 700;
    margin-left: 2px;
}

/* ================================================================
   NAVBAR
   ================================================================ */
.main-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--nav-h);
    background: var(--bg-nav);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.main-menu > ul {
    display: flex;
    align-items: center;
    list-style: none;
    height: 100%;
    padding: 0 28px;
    margin: 0;
    gap: 2px;
    overflow: visible;
}

.main-menu > ul > li {
    position: relative;
    flex: 0 0 auto;
}

.main-menu > ul > li > a {
    display: block;
    padding: 8px 14px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background .15s, color .15s;
    white-space: nowrap;
}

.main-menu > ul > li > a:hover,
.main-menu > ul > li > a.active {
    background: rgba(255,255,255,.10);
    color: #ffffff;
}

/* Dropdown submenu */
.main-menu ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 9999;
    padding-top: 6px;
    max-height: min(70vh, 420px);
}

.main-menu ul li:hover > ul,
.main-menu ul li:focus-within > ul { display: block; }

.main-menu ul ul li a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-1) !important;
    background: transparent;
    border-left: 3px solid transparent;
    transition: background .12s, border-color .12s, color .12s;
}

.main-menu ul ul li a:hover {
    background: #f1f5f9;
    color: var(--accent) !important;
    border-left-color: var(--accent);
}

.main-menu > ul > li.menu-user {
    margin-left: auto;
    padding: 8px 12px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .06);
    white-space: nowrap;
}

.main-menu > ul > li.menu-user span {
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

/* Right-align last item (Logout) */
.main-menu > ul > li.menu-right { margin-left: 6px; }

/* ================================================================
   APP PAGE — body class for any page with fixed navbar
   ================================================================ */
body.app-page {
    padding: calc(var(--nav-h) + 24px) 24px 32px;
    background: var(--bg-page);
}

/* ── Container (max-width centred wrapper) ──────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ── Page banner (dashboard title bar) ─────────────────────────── */
.page-banner {
    background: var(--bg-card);
    color: var(--text-1);
    text-align: left;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    margin-bottom: 20px;
}

/* ── Inner-page header (users / detail pages) ───────────────────── */
.inner-header {
    background: var(--bg-card);
    color: var(--text-1);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
}

.inner-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
}

.title-with-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ── Section Header (title + action button inside a card) ──────── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin: 0 0 0.75rem; }
.section-header h3 { margin: 0; font-size: 1rem; font-weight: 700; color: #374151; }

/* ── Card ───────────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
}

.card h3, .card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 16px;
}

/* ================================================================
   BUTTONS
   ================================================================ */
button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    background: var(--accent);
    color: #ffffff;
    transition: background .15s;
}

button:hover { background: var(--accent-hover); }

.btn-add {
    background: var(--success);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: filter .15s;
}

.btn-add:hover { filter: brightness(.90); }

.btn-cancel {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-1);
    border-radius: var(--radius-md);
    padding: 8px 18px;
    font-size: 13px;
    cursor: pointer;
}

.btn-cancel:hover { background: var(--bg-page); }

.btn-submit {
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.btn-submit:hover { background: var(--accent-hover); }

/* Export buttons (Excel / PDF) */
.btn-export {
    border: 1px solid transparent;
    color: #ffffff;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
    transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}
.btn-export:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
    filter: brightness(1.04);
}
.btn-export:active { transform: translateY(0); }
.btn-export-excel {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #047857;
}
.btn-export-pdf {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-color: #c2410c;
}

/* Small action buttons inside table rows */
.btn-edit {
    padding: 5px 12px;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    transition: background .15s;
}

.btn-edit:hover { background: var(--accent-hover); }

.btn-delete {
    padding: 5px 12px;
    background: var(--danger);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    transition: background .15s;
}

.btn-delete:hover { background: var(--danger-hover); }

.icon-btn {
    min-width: 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

/* ================================================================
   FORM CONTROLS
   ================================================================ */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    font-family: var(--font);
    color: var(--text-1);
    background: #f0f7ff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 6px;
}

.form-group { margin-bottom: 16px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

/* ================================================================
   TABLE
   ================================================================ */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

thead tr {
    background: #1e293b;
    border-bottom: 2px solid #0f172a;
}

th {
    padding: 11px 14px;
    text-align: left;
    font-weight: 600;
    color: #e2e8f0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

td {
    padding: 12px 14px;
    color: var(--text-1);
    border-bottom: 1px solid #f1f5f9;
}

tbody tr:hover { background: #f8fafc; }
tbody tr:last-child td { border-bottom: none; }

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.users-table { min-width: 700px; }

.action-buttons { display: flex; gap: 6px; }

.excel-form-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.excel-form-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
}

.excel-form-table th,
.excel-form-table td {
    border: 1px solid var(--border);
    padding: 8px;
    white-space: nowrap;
}

.excel-form-table th {
    background: #1e293b;
    color: #e2e8f0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-align: center;
}

.excel-form-table td input,
.excel-form-table td select {
    width: 100%;
    min-width: 88px;
    margin: 0;
}

.excel-form-table .size-input {
    width: 72px;
    min-width: 72px;
    padding: 8px 6px;
    text-align: right;
    appearance: textfield;
    -moz-appearance: textfield;
}

.excel-form-table .field-operation_date {
    width: 108px;
    min-width: 108px;
}

.excel-form-table .size-input::-webkit-outer-spin-button,
.excel-form-table .size-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.excel-form-table th:nth-child(1),
.excel-form-table th:nth-child(2),
.excel-form-table th:nth-child(n+11),
.excel-form-table td:nth-child(1),
.excel-form-table td:nth-child(2),
.excel-form-table td:nth-child(n+11) {
    position: sticky;
    z-index: 2;
}

/* Product — col 1 */
.excel-form-table th:nth-child(1),
.excel-form-table td:nth-child(1) { left: 0; min-width: 160px; width: 160px; }

/* Color — col 2 */
.excel-form-table th:nth-child(2),
.excel-form-table td:nth-child(2) { left: 160px; min-width: 120px; width: 120px; box-shadow: 2px 0 0 var(--border); }

.excel-form-table th:nth-child(1),
.excel-form-table th:nth-child(2) { background: #1e293b; }
.excel-form-table td:nth-child(1),
.excel-form-table td:nth-child(2) { background: #ffffff; }

/* QTY — col 11 */
.excel-form-table th:nth-child(11),
.excel-form-table td:nth-child(11) { right: 444px; box-shadow: -2px 0 0 var(--border); }

/* Price — col 12 */
.excel-form-table th:nth-child(12),
.excel-form-table td:nth-child(12) { right: 332px; }

/* GST% — col 13 */
.excel-form-table th:nth-child(13),
.excel-form-table td:nth-child(13) { right: 264px; }

/* GST Amt — col 14 */
.excel-form-table th:nth-child(14),
.excel-form-table td:nth-child(14) { right: 160px; }

/* Total — col 15 */
.excel-form-table th:nth-child(15),
.excel-form-table td:nth-child(15) { right: 48px; }

/* Action — col 16 */
.excel-form-table th:nth-child(16),
.excel-form-table td:nth-child(16) { right: 0; }

.excel-form-table th:nth-child(n+11) { background: #1e293b; }
.excel-form-table td:nth-child(n+11) { background: #ffffff; }

/* ── Status badges ──────────────────────────────────────────────── */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.status-active   { background: #dcfce7; color: #15803d; }
.status-inactive { background: #fee2e2; color: #b91c1c; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.badge-yes { background: #dcfce7; color: #15803d; }
.badge-no  { background: #f3f4f6; color: #6b7280; }

/* ================================================================
   SEARCH / FILTER BAR
   ================================================================ */
.search-filter {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: center;
}

.search-filter input { flex: 1; min-width: 220px; }
.search-filter select { min-width: 140px; width: auto; }

.pagination-row {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-info {
    font-size: 13px;
    color: var(--text-2);
}

.page-actions {
    display: flex;
    gap: 8px;
}

.page-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ================================================================
   ALERTS & ERROR MESSAGES
   ================================================================ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    margin-bottom: 16px;
}

.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-danger  { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.alert-info    { background: #dbeafe; color: #1e3a8a; border: 1px solid #93c5fd; }

/* ================================================================
   GLOBAL TOASTS & CONFIRM DIALOG
   ================================================================ */
.ui-toast-root {
    position: fixed;
    top: calc(var(--nav-h) + 14px);
    right: 16px;
    z-index: 3100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(380px, calc(100vw - 24px));
}

.ui-toast {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 11px 13px;
    transform: translateY(-8px);
    opacity: 0;
    transition: transform .2s ease, opacity .2s ease;
    border-left-width: 5px;
}

.ui-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.ui-toast-title {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 2px;
}

.ui-toast-message {
    font-size: 13px;
    color: var(--text-1);
    line-height: 1.35;
}

.ui-toast-line {
    display: block;
}

.ui-toast-success { border-left-color: #16a34a; }
.ui-toast-success .ui-toast-title { color: #166534; }

.ui-toast-danger { border-left-color: #dc2626; }
.ui-toast-danger .ui-toast-title { color: #991b1b; }

.ui-toast-warning { border-left-color: #d97706; }
.ui-toast-warning .ui-toast-title { color: #92400e; }

.ui-toast-info { border-left-color: #2563eb; }
.ui-toast-info .ui-toast-title { color: #1e3a8a; }

.ui-confirm-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3200;
    background: rgba(15, 23, 42, .50);
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ui-confirm-modal.show {
    display: flex;
}

.ui-confirm-card {
    width: min(460px, 100%);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 20px;
    border-top: 5px solid #d97706;
}

.ui-confirm-card.success { border-top-color: #16a34a; }
.ui-confirm-card.danger { border-top-color: #dc2626; }
.ui-confirm-card.warning { border-top-color: #d97706; }
.ui-confirm-card.info { border-top-color: #2563eb; }

.ui-confirm-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-1);
}

.ui-confirm-message {
    margin: 10px 0 18px;
    color: var(--text-2);
    line-height: 1.5;
    font-size: 14px;
}

.ui-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.ui-confirm-actions #uiConfirmOk.ui-confirm-ok-danger {
    background: var(--danger);
}

.ui-confirm-actions #uiConfirmOk.ui-confirm-ok-danger:hover {
    background: var(--danger-hover);
}

.ui-confirm-actions #uiConfirmOk.ui-confirm-ok-warning {
    background: #d97706;
}

.ui-confirm-actions #uiConfirmOk.ui-confirm-ok-warning:hover {
    background: #b45309;
}

.ui-confirm-actions #uiConfirmOk.ui-confirm-ok-info {
    background: #2563eb;
}

.ui-confirm-actions #uiConfirmOk.ui-confirm-ok-info:hover {
    background: #1d4ed8;
}

.ui-confirm-actions #uiConfirmOk.ui-confirm-ok-success {
    background: #16a34a;
}

.ui-confirm-actions #uiConfirmOk.ui-confirm-ok-success:hover {
    background: #15803d;
}

.error-message {
    padding: 10px 14px;
    background: #fee2e2;
    color: #b91c1c;
    border-radius: var(--radius-md);
    font-size: 13px;
    margin-bottom: 16px;
}

/* ================================================================
   LOADING SPINNER
   ================================================================ */
.loading {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: inherit;
    pointer-events: none;
}

.loading.show {
    display: flex;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    opacity: 0.7;
}

@keyframes spin { to { transform: rotate(360deg); } }

.no-data {
    text-align: center;
    padding: 48px;
    color: var(--text-2);
}

.no-data-icon { font-size: 44px; margin-bottom: 12px; }

/* ================================================================
   MODAL
   ================================================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.45);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show { display: flex; }

.modal-content {
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-1);
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 22px;
    color: var(--text-2);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.close-btn:hover { color: var(--text-1); background: transparent; }

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ================================================================
   LOGIN PAGE
   ================================================================ */
body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
    overflow-y: auto;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-box {
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 44px 40px;
    text-align: center;
}

.login-box h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-1);
    margin-bottom: 32px;
    letter-spacing: -.01em;
}

.login-box form { display: flex; flex-direction: column; gap: 12px; }

.login-box label { text-align: left; }

.btn-login {
    width: 100%;
    padding: 11px;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    margin-top: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-login:hover { background: var(--accent-hover); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
    body.app-page {
        padding: calc(var(--nav-h-mobile) + 14px) 12px 20px;
    }

    .main-menu {
        height: var(--nav-h-mobile);
        overflow-x: auto;
        overflow-y: visible;
        scrollbar-width: thin;
    }

    .main-menu::-webkit-scrollbar {
        height: 4px;
    }

    .main-menu::-webkit-scrollbar-thumb {
        background: rgba(148, 163, 184, .45);
        border-radius: 999px;
    }

    .main-menu > ul {
        padding: 0 10px;
        gap: 4px;
        min-width: max-content;
    }

    .main-menu > ul > li > a {
        padding: 7px 11px;
        font-size: 13px;
    }

    .main-menu > ul > li.menu-user {
        font-size: 12px;
        padding: 7px 10px;
        max-width: 180px;
    }

    .main-menu ul li ul {
        min-width: 160px;
    }

    .inner-header {
        flex-direction: column;
        gap: 12px;
        text-align: left;
        align-items: stretch;
    }

    .inner-header h1 {
        font-size: 1.1rem;
    }

    .inner-header .btn-add {
        width: 100%;
        justify-content: center;
    }

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

    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea {
        font-size: 16px;
    }

    .search-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .search-filter input,
    .search-filter select {
        min-width: 0;
        width: 100%;
    }

    .pagination-row {
        flex-direction: column;
        align-items: stretch;
    }

    .page-actions {
        width: 100%;
    }

    .page-actions button {
        flex: 1;
        justify-content: center;
    }

    .action-buttons {
        flex-wrap: wrap;
    }

    .card {
        padding: 14px;
        border-radius: 14px;
    }

    .modal-content {
        width: 96%;
        max-height: 92vh;
        padding: 20px 16px;
        border-radius: 14px;
    }

    .modal-buttons {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .modal-buttons button {
        width: 100%;
        justify-content: center;
    }

    .login-box {
        padding: 32px 24px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    body.app-page {
        padding: calc(var(--nav-h) + 20px) 18px 24px;
    }

    .main-menu > ul {
        padding: 0 16px;
    }

    .inner-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .card {
        padding: 18px;
    }

    .form-row {
        gap: 0 12px;
    }
}

@media (max-width: 420px) {
    .main-menu > ul > li.menu-user {
        display: none;
    }

    .inner-header h1 {
        font-size: 1rem;
    }

    .ui-toast-root {
        right: 8px;
        top: calc(var(--nav-h-mobile) + 10px);
        width: calc(100vw - 16px);
    }
}
