/* EIRA Base - Estilos principales - 100% Responsive */

:root {
    --sidebar-width: 260px;
    --sidebar-collapsed: 72px;
    --sidebar-bg: #1a1d24;
    --sidebar-text: #e2e8f0;
    --sidebar-hover: #2d323e;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --content-bg: #e2e8f0;
    --content-bg-subtle: #f1f5f9;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-muted: #64748b;
    --border: #cbd5e1;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,.08);
    --shadow-card: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DM Sans', system-ui, sans-serif; font-size: 15px; color: var(--text-primary); background: var(--content-bg); line-height: 1.5; }

/* Auth */
.auth-screen {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem;
    background: linear-gradient(135deg, #1a1d24 0%, #2d323e 50%, #3d4460 100%);
}
.auth-card {
    width: 100%; max-width: 400px; background: var(--card-bg); border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); padding: 2.5rem;
}
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header h1 { font-size: 1.75rem; color: var(--text-primary); }
.auth-header p { color: var(--text-muted); margin-top: 0.25rem; }
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius);
    margin-bottom: 0.5rem; font-size: 1rem;
}
.password-wrapper { margin-bottom: 1rem; }
.password-with-toggle { display: flex; flex-direction: column; gap: 0.5rem; }
.password-with-toggle .checkbox-ver-password { margin: 0; }
.password-inline-wrap {
    display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
}
.password-inline-wrap input { flex: 1; min-width: 200px; }
.password-inline-wrap .checkbox-inline { margin: 0; flex-shrink: 0; white-space: nowrap; }

/* Campo contraseña con botón ojo (mostrar/ocultar) */
.pw-field-wrap { position: relative; display: block; width: 100%; }
.pw-field-wrap input { width: 100%; padding-right: 2.75rem; box-sizing: border-box; }
.pw-toggle-btn {
    position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; padding: 0.35rem; color: var(--text-muted);
    font-size: 1rem; line-height: 1; border-radius: 4px;
}
.pw-toggle-btn:hover { color: var(--accent); background: var(--content-bg-subtle); }
.pw-toggle-btn i { display: block; }
.checkbox-ver-password {
    display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.875rem; color: var(--text-muted);
}
.checkbox-ver-password input[type="checkbox"] { width: auto; margin: 0; cursor: pointer; }
.checkbox-ver-password:hover { color: var(--accent); }
.auth-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.2); }
.auth-link { display: block; text-align: right; margin-bottom: 1rem; color: var(--accent); text-decoration: none; font-size: 0.875rem; }
.auth-link:hover { text-decoration: underline; }
.auth-form button {
    width: 100%; padding: 0.75rem 1rem; background: var(--accent); color: white; border: none;
    border-radius: var(--radius); font-size: 1rem; font-weight: 600; cursor: pointer;
}
.auth-form button:hover { background: var(--accent-hover); }
.auth-setup-info { margin-bottom: 1rem; font-size: 0.9rem; color: var(--text-muted); }
.auth-message { margin-top: 1rem; padding: 0.75rem; border-radius: var(--radius); font-size: 0.875rem; }
.auth-message.success { background: #dcfce7; color: #166534; }
.auth-message.error { background: #fee2e2; color: #991b1b; }
.hidden { display: none !important; }

/* Layout principal */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: var(--sidebar-width); min-height: 100vh; background: var(--sidebar-bg); color: var(--sidebar-text);
    display: flex; flex-direction: column; transition: width .3s cubic-bezier(.4,0,.2,1), transform .3s;
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 100; overflow: hidden;
}
.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}
.sidebar.collapsed .sidebar-empresa,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .user-info { display: none; }
.sidebar.collapsed .sidebar-logo { font-size: 1rem; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 0.75rem; }
.sidebar.collapsed .user-profile { justify-content: center; padding: 0.5rem; }
.sidebar.collapsed .sidebar-header { justify-content: center; padding: 0.5rem; }

.sidebar-header {
    padding: 1rem 1.25rem; display: flex; align-items: center; gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,.06); min-height: 56px; flex-shrink: 0;
}
.sidebar-logo { font-weight: 700; font-size: 1.5rem; color: white; white-space: nowrap; display: flex; align-items: center; }
.sidebar-logo.has-img .sidebar-logo-img { height: 32px; width: auto; max-width: 120px; object-fit: contain; display: block; }
.sidebar.collapsed .sidebar-logo.has-img .sidebar-logo-img { height: 24px; max-width: 44px; }
.sidebar-empresa { font-size: 0.8125rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
.btn-toggle {
    margin-left: auto; background: none; border: none; color: var(--sidebar-text); cursor: pointer;
    padding: 0.5rem; border-radius: var(--radius); flex-shrink: 0; min-width: 36px; min-height: 36px;
}
.btn-toggle:hover { background: var(--sidebar-hover); }
.sidebar.collapsed .icon-chevron { transform: rotate(180deg); }
.icon-chevron { width: 20px; height: 20px; transition: transform .3s; }

.sidebar-nav {
    flex: 1; overflow-y: auto; padding: 0.75rem 0;
}
.nav-item {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.25rem;
    color: var(--sidebar-text); text-decoration: none; transition: background .2s;
    cursor: pointer; border-left: 3px solid transparent;
}
.nav-item:hover { background: var(--sidebar-hover); }
.nav-item.active { background: var(--sidebar-hover); border-left-color: var(--accent); color: white; }
.nav-item .nav-icon {
    width: 22px; height: 22px; flex-shrink: 0;
}
.nav-item .nav-icon svg { width: 100%; height: 100%; }
.nav-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.nav-chevron { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.7; transition: transform .25s; }
.nav-chevron svg { width: 100%; height: 100%; }
.nav-item-parent { width: 100%; text-align: left; background: none; border: none; font: inherit; color: inherit; }
.nav-parent:not(.expanded) .nav-chevron { transform: rotate(-90deg); }
.nav-children {
    overflow: hidden; transition: max-height .3s ease;
}
.nav-parent:not(.expanded) .nav-children { max-height: 0; opacity: 0; }
.nav-parent.expanded .nav-children { max-height: 500px; opacity: 1; }
.nav-children .nav-item { padding-left: 2.5rem; background: #252a33; }
.nav-children .nav-item:hover { background: #2e343d; }
.nav-children .nav-item.active { background: rgba(99,102,241,.25); }
.sidebar.collapsed .nav-chevron { display: none; }
.sidebar.collapsed .nav-children .nav-item { padding-left: 0; justify-content: center; padding: 0.5rem 0.75rem; }
.sidebar.collapsed .nav-children .nav-icon { width: 20px; height: 20px; }

.sidebar-footer {
    padding: 1rem; border-top: 1px solid rgba(255,255,255,.06);
}
.user-profile {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem; border-radius: var(--radius);
}
.avatar {
    width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: white;
    display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0;
}
.user-info { overflow: hidden; min-width: 0; }
.user-name { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-email { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main-content {
    flex: 1; margin-left: var(--sidebar-width); min-height: 100vh; display: flex; flex-direction: column;
    transition: margin-left .3s cubic-bezier(.4,0,.2,1);
}
.sidebar.collapsed ~ .main-content,
body.sidebar-collapsed .main-content { margin-left: var(--sidebar-collapsed); }

.topbar {
    padding: 1rem 1.5rem; background: var(--card-bg); border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.topbar-left { display: flex; align-items: center; gap: 1rem; }
.btn-menu-expand {
    display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 0.5rem; cursor: pointer; color: var(--text-primary);
}
.btn-menu-expand svg { width: 24px; height: 24px; }
.btn-menu-expand:hover { background: var(--content-bg-subtle); }
.sidebar.collapsed ~ .main-content .btn-menu-expand { display: flex; align-items: center; justify-content: center; }
.page-title { font-size: 1.25rem; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.plan-alerta {
    padding: 0.5rem 1rem; border-radius: var(--radius); font-size: 0.875rem;
}
.plan-alerta.warning { background: #fef3c7; color: #92400e; }
.plan-alerta.danger { background: #fee2e2; color: #991b1b; }
.btn-icon { padding: 0.5rem 0.75rem; background: none; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; font-size: 0.875rem; display: inline-flex; align-items: center; justify-content: center; }
.btn-icon:hover { background: var(--content-bg-subtle); }
.user-menu .btn-icon { min-width: 38px; min-height: 38px; font-size: 1.1rem; }

.content-area { flex: 1; padding: 1.5rem; overflow: auto; background: var(--content-bg); }

/* Cards y contenido */
.card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 1.5rem; margin-bottom: 1.5rem; border: 1px solid var(--border); }

/* Tablas CRUD */
.crud-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.crud-filters-bar { display: block; }
.crud-title { font-size: 1.25rem; font-weight: 600; flex-shrink: 0; }
.crud-header-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.crud-filter { display: flex; align-items: center; gap: 0.5rem; }
.crud-filter label { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); margin: 0; white-space: nowrap; }
.crud-filter select {
    padding: 0.5rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius);
    font-size: 0.9375rem; background: var(--card-bg); color: var(--text-primary); min-width: 180px;
    cursor: pointer; transition: border-color .2s, background .2s; font-family: inherit;
}
.crud-filter select:hover { border-color: #94a3b8; background: var(--content-bg-subtle); }
.crud-filter select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.crud-filter input[type="date"],
.crud-filter input[type="datetime-local"] {
    padding: 0.5rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius);
    font-size: 0.9375rem; background: var(--card-bg); color: var(--text-primary);
    min-width: 180px; font-family: inherit; cursor: pointer; transition: border-color .2s, background .2s;
}
.crud-filter input[type="date"]:hover,
.crud-filter input[type="datetime-local"]:hover { border-color: #94a3b8; background: var(--content-bg-subtle); }
.crud-filter input[type="date"]:focus,
.crud-filter input[type="datetime-local"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.form-group-checkbox { display: flex; align-items: center; gap: 0.5rem; }
.form-group-checkbox label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; margin: 0; font-weight: 500; }
.form-group-checkbox input[type="checkbox"] {
    width: 1.25rem; height: 1.25rem; min-width: 1.25rem; min-height: 1.25rem; margin: 0;
    cursor: pointer; accent-color: var(--accent); flex-shrink: 0;
    -webkit-appearance: auto; appearance: auto; /* Restaurar checkbox nativo */
}
.btn-primary { padding: 0.5rem 1.25rem; background: var(--accent); color: white; border: none; border-radius: 8px; font-weight: 600; font-size: 0.9375rem; cursor: pointer; transition: background .2s; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { padding: 0.5rem 1.25rem; background: transparent; color: #475569; border: 2px solid #cbd5e1; border-radius: 8px; font-weight: 600; font-size: 0.9375rem; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.btn-outline:hover { background: #f1f5f9; border-color: #94a3b8; color: #334155; }
.btn-sm { padding: 0.35rem 0.6rem; font-size: 0.8125rem; }
.btn-danger { background: #dc2626; color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-secondary { background: var(--border); color: var(--text-primary); }
.btn-secondary:hover { background: #cbd5e1; }
.btn-icon-action {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; min-height: 36px; width: 36px; height: 36px; padding: 0; border: none; border-radius: var(--radius);
    cursor: pointer; transition: transform .15s, opacity .15s;
}
.btn-icon-action svg { width: 18px; height: 18px; flex-shrink: 0; }
@media (min-width: 768px) {
    .btn-icon-action { min-width: 38px; min-height: 38px; width: 38px; height: 38px; }
    .btn-icon-action svg { width: 19px; height: 19px; }
}
.btn-icon-action:hover { transform: scale(1.1); opacity: .9; }
.btn-icon-action:active { transform: scale(0.95); }
.btn-icon-edit { background: #dbeafe; color: #1d4ed8; }
.btn-icon-edit:hover { background: #bfdbfe; }
.btn-icon-delete { background: #fee2e2; color: #dc2626; }
.btn-icon-delete:hover { background: #fecaca; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table .crud-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.data-table .crud-actions button { flex-shrink: 0; }
.data-table th { font-weight: 600; color: var(--text-muted); font-size: 0.8125rem; background: var(--content-bg-subtle); }
.data-table tr:hover { background: var(--content-bg-subtle); }

/* Fichas / Tabs */
.tabs-header { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; flex-wrap: wrap; }
.tab-btn { padding: 0.75rem 1.25rem; background: none; border: none; font-size: 0.9375rem; font-weight: 500; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color .2s, border-color .2s; }
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Sección email de prueba (perfil Mail/SMTP) */
.mail-test-section {
    margin-top: 1.5rem; padding: 1.25rem; background: var(--content-bg-subtle);
    border-radius: var(--radius); border: 1px solid var(--border);
}
.mail-test-title { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.03em; }
.mail-test-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 320px;
}
.mail-test-input-wrap { margin-bottom: 0; width: 100%; }
.mail-test-input-wrap input { width: 100%; }
.mail-test-section .btn-mail-test {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
    width: auto;
}

/* Config (perfil root) */
.config-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.config-table td { padding: 0.5rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.config-table .config-key { font-weight: 600; color: var(--text-muted); width: 45%; }
.config-table code { font-family: ui-monospace, monospace; font-size: 0.8125rem; background: var(--content-bg-subtle); padding: 0.15rem 0.4rem; border-radius: 4px; word-break: break-all; }

.badge { display: inline-block; padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 500; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-info { background: #dbeafe; color: #1d4ed8; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-muted { background: #f1f5f9; color: #64748b; }
.toggle-activo { cursor: pointer; width: 44px; height: 24px; border-radius: 12px; background: #cbd5e1; position: relative; border: none; transition: background .2s; }
.toggle-activo.active { background: var(--accent); }
.toggle-activo::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: white; top: 3px; left: 3px; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle-activo.active::after { transform: translateX(20px); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.6); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
#modal-resumen-comercial.modal-backdrop,
#modal-reabrir-liq.modal-backdrop,
#modal-excepcion-tx.modal-backdrop { background: rgba(15,23,42,.82); }
#modal-preview-email.modal-backdrop { background: rgba(15,23,42,.88); z-index: 1001; }
.modal { background: #ffffff; border-radius: 12px; max-width: 640px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 25px 50px -12px rgba(0,0,0,.3); border: 1px solid #e2e8f0; }
.modal-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid #e2e8f0; background: #f8fafc; border-radius: 12px 12px 0 0; display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 1.125rem; font-weight: 600; color: #0f172a; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #64748b; line-height: 1; padding: 0.25rem; }
.modal-close:hover { color: #0f172a; }
.modal-body { padding: 1.5rem; background: #ffffff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.form-grid .form-group { margin-bottom: 1rem; }
.form-grid .form-group:last-child { margin-bottom: 1rem; }
.form-grid .form-group-full { grid-column: 1 / -1; }
.icon-picker-filter { width: 100%; padding: 0.5rem 0.75rem; border: 1.5px solid #cbd5e1; border-radius: 8px; font-size: 0.9375rem; }
.icon-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 0.35rem; max-height: 180px; overflow-y: auto; padding: 0.5rem; background: #f8fafc; border-radius: 8px; border: 1.5px solid #e2e8f0; }
.icon-picker-item { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 6px; cursor: pointer; transition: background .15s, border-color .15s; border: 2px solid transparent; color: #475569; font-size: 1.1rem; }
.icon-picker-item:hover { background: #e2e8f0; color: #0f172a; }
.icon-picker-item.selected { background: rgba(99,102,241,.15); border-color: var(--accent); color: var(--accent); }
@media (max-width: 520px) {
    .form-grid { grid-template-columns: 1fr; gap: 0; }
}
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid #e2e8f0; background: #f8fafc; border-radius: 0 0 12px 12px; display: flex; gap: 0.75rem; justify-content: flex-end; }
.form-group { margin-bottom: 1.25rem; }
.form-group:last-child { margin-bottom: 0; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.875rem; color: #334155; }
.form-group input:not([type="checkbox"]):not([type="radio"]), .form-group select, .form-group textarea {
    width: 100%; padding: 0.625rem 1rem; border: 1.5px solid #cbd5e1; border-radius: 8px;
    font-size: 1rem; background: #f8fafc; color: #0f172a;
    transition: border-color .2s, background .2s, box-shadow .2s;
    font-family: inherit;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.form-group textarea {
    min-height: 80px; resize: vertical;
    display: block;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #94a3b8; }
.form-group input:hover, .form-group select:hover, .form-group textarea:hover { border-color: #94a3b8; background: #f1f5f9; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--accent); background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.form-group input:disabled, .form-group select:disabled, .form-group textarea:disabled { background: #e2e8f0; cursor: not-allowed; opacity: .8; }
.form-hint { display: block; margin-top: 0.25rem; font-size: 0.8125rem; color: var(--text-muted); }
@media (max-width: 480px) {
    .modal { max-width: 100%; margin: 0.5rem; }
    .modal-body { padding: 1.25rem; }
    .form-group input:not([type="checkbox"]):not([type="radio"]), .form-group select { padding: 0.75rem 1rem; min-height: 44px; font-size: 16px; }
    .form-group textarea { padding: 0.75rem 1rem; min-height: 88px; font-size: 16px; }
}

/* Icono en tabla de menús */
.menu-icon-cell {
    display: inline-flex;
    align-items: center;
    color: var(--text-primary);
}
.menu-icon-cell svg {
    width: 16px;
    height: 16px;
}
.menu-icon-cell i {
    font-size: 0.9rem;
}

/* Vista previa menú */
.menu-preview-sidebar {
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    border-radius: var(--radius);
    padding: 0.75rem;
    font-size: 0.875rem;
}
.menu-preview-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}
.menu-preview-item:hover {
    background: var(--sidebar-hover);
}
.menu-preview-item .nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.menu-preview-item .nav-icon svg {
    width: 100%;
    height: 100%;
}
.menu-preview-parent .menu-preview-children {
    margin-left: 1.5rem;
}
.menu-preview-child {
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .menus-layout {
        grid-template-columns: 1fr !important;
    }
    .menu-preview-card {
        position: static !important;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%); width: var(--sidebar-width);
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar.collapsed { transform: translateX(-100%); }
    .main-content { margin-left: 0 !important; }
    .topbar { flex-wrap: wrap; }
    .btn-menu-expand {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }
}
