/* ==========================================================================
   COBRANDO 1.0 — DESIGN SYSTEM CORE
   Dark-slate + Emerald Identity • Modern • Clean • High Contrast
   ========================================================================== */

:root {
    color-scheme: dark;

    /* Backgrounds */
    --bg: #090d16;
    --bg-secondary: #0f172a;
    --surface: #131c2e;
    --surface-raised: #182338;
    --surface-hover: #1e2c45;
    --surface-subtle: #0d1424;

    /* Borders */
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --border-accent: rgba(16, 185, 129, 0.35);

    /* Typography */
    --text: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-disabled: #475569;

    /* Brand Accent: Emerald */
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-active: #047857;
    --primary-subtle: rgba(16, 185, 129, 0.12);
    --primary-glow: rgba(16, 185, 129, 0.25);

    /* Semantic States */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.14);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.14);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.14);
    --info: #38bdf8;
    --info-bg: rgba(56, 189, 248, 0.14);

    /* Geometry & Shadows */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.18);

    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;

    /* Legacy CSS Variable Mappings for 100% Backward Compatibility */
    --ink: var(--text);
    --muted: var(--text-muted);
    --card: var(--surface);
    --line: var(--border);
    --accent: var(--primary);
    --accent-ink: #ffffff;
    --error: var(--danger);
    --warn: var(--warning);
    --warn-bg: var(--warning-bg);
    --ok: var(--success);
    --ok-bg: var(--success-bg);
    --sidebar: #0b111e;
    --sidebar-ink: var(--text);
    --sidebar-muted: var(--text-muted);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: #34d399;
}

/* Guest Container (Login, Select Company, Invitations) */
body.guest {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: radial-gradient(circle at 50% 20%, #131c2e 0%, #090d16 80%);
}

/* App Shell Layout */
.app-body {
    min-height: 100vh;
    background: var(--bg);
}

.shell {
    display: grid;
    grid-template-columns: 16.5rem 1fr;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    background: var(--sidebar);
    color: var(--sidebar-ink);
    padding: 1.25rem 1rem;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.brand {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 900;
    font-size: 1.15rem;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.sidebar-company {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0.25rem 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.sidebar a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.sidebar a:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.sidebar a.active {
    background: var(--primary-subtle);
    color: var(--primary);
    font-weight: 600;
    border-left: 3px solid var(--primary);
}

.nav-section-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
    padding: 0.85rem 0.75rem 0.35rem;
    margin-top: 0.35rem;
}

/* Main Area & Topbar */
.main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem 1.75rem;
    border-bottom: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.topbar-meta form { margin: 0; }

.role-badge {
    background: var(--primary-subtle);
    color: var(--primary);
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    border: 1px solid var(--border-accent);
}

/* Content Area */
.content {
    padding: 1.75rem;
    width: min(80rem, 100%);
    margin: 0 auto;
    flex: 1;
}

h1, h2, h3, h4 {
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-top: 0;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }

.page-head {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

/* Cards & Surfaces */
.card, .page {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.card {
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
    border-color: var(--border-strong);
}

/* Grids & Layout Helpers */
.stack { display: grid; gap: 1rem; }

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

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.stat strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    font-feature-settings: 'tnum' on;
}

.stat .label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ==========================================================================
   COBRANDO FORM SYSTEM — UNIFIED FORM STYLING
   Dark Slate + Emerald • Accessible • Robust • Responsive
   ========================================================================== */

/* Universal field formatting for all HTML inputs, selects, and textareas */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]):not([type="hidden"]):not([type="image"]),
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"],
input[type="week"],
select,
textarea,
.form-control,
.form-input {
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text, #f8fafc);
    background-color: var(--surface-subtle, #0d1424);
    border: 1px solid var(--border-strong, rgba(255, 255, 255, 0.16));
    border-radius: var(--radius-sm, 6px);
    padding: 0.55rem 0.85rem;
    width: 100%;
    min-width: 0;
    height: 42px;
    box-sizing: border-box;
    outline: none;
    transition: border-color var(--transition-fast, 0.15s ease), box-shadow var(--transition-fast, 0.15s ease), background-color var(--transition-fast, 0.15s ease);
    -webkit-appearance: none;
    appearance: none;
}

/* Placeholder appearance */
input::placeholder,
textarea::placeholder,
.form-control::placeholder {
    color: var(--text-muted, #94a3b8);
    opacity: 0.7;
}

/* Hover state */
input:not([type="checkbox"]):not([type="radio"]):hover:not(:disabled):not([readonly]),
select:hover:not(:disabled),
textarea:hover:not(:disabled):not([readonly]),
.form-control:hover:not(:disabled):not([readonly]) {
    border-color: rgba(255, 255, 255, 0.28);
}

/* Focus state (Visible, accessible Emerald ring) */
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-input:focus {
    border-color: var(--primary, #10b981) !important;
    background-color: #111a2e !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25) !important;
    outline: none !important;
}

/* Disabled state */
input:not([type="checkbox"]):not([type="radio"]):disabled,
select:disabled,
textarea:disabled,
.form-control:disabled {
    background-color: rgba(15, 23, 42, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-disabled, #64748b) !important;
    cursor: not-allowed !important;
    opacity: 0.75;
}

/* Readonly state (Sleek slate styling, NEVER Windows XP gray) */
input:not([type="checkbox"]):not([type="radio"])[readonly],
textarea[readonly],
.form-control[readonly] {
    background-color: rgba(15, 23, 42, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-secondary, #cbd5e1) !important;
    cursor: default;
}

/* Validation states */
.is-invalid,
.invalid,
input:not([type="checkbox"]):not([type="radio"]).is-invalid {
    border-color: var(--danger, #ef4444) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22) !important;
}

.is-valid,
.valid,
input:not([type="checkbox"]):not([type="radio"]).is-valid {
    border-color: var(--success, #10b981) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22) !important;
}

/* Custom styled Select with Emerald chevron indicator */
select,
select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 14px 14px;
    padding-right: 2.35rem;
    cursor: pointer;
}

select option {
    background-color: #131c2e;
    color: #f8fafc;
    padding: 0.5rem;
}

/* Textarea styling */
textarea,
textarea.form-control {
    height: auto;
    min-height: 95px;
    resize: vertical;
    padding: 0.65rem 0.85rem;
}

/* Checkboxes and Radios */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--primary, #10b981);
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    cursor: pointer;
    border-radius: 4px;
    vertical-align: middle;
}

input[type="radio"] {
    border-radius: 50%;
}

/* File input */
input[type="file"] {
    font-size: 0.88rem;
    color: var(--text-secondary, #cbd5e1);
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    font: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    background: var(--surface-raised, #182338);
    color: var(--text, #f8fafc);
    border: 1px solid var(--border-strong, rgba(255, 255, 255, 0.16));
    border-radius: var(--radius-sm, 6px);
    padding: 0.45rem 0.85rem;
    margin-right: 0.75rem;
    cursor: pointer;
    transition: background var(--transition-fast, 0.15s ease);
}

input[type="file"]::file-selector-button:hover {
    background: var(--surface-hover, #1e2c45);
}

/* Labels and Form Layout Structure */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.15rem;
    width: 100%;
}

.form-label,
label:not(.option):not(.form-check):not(.radio-option):not(.switch) {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary, #cbd5e1);
    margin-bottom: 0.85rem;
    width: 100%;
}

/* When an input or select is placed directly inside a label (legacy views), ensure clean stacking */
label:not(.option):not(.form-check):not(.radio-option):not(.switch) > input:not([type="checkbox"]):not([type="radio"]),
label:not(.option):not(.form-check):not(.radio-option):not(.switch) > select,
label:not(.option):not(.form-check):not(.radio-option):not(.switch) > textarea {
    margin-top: 0.2rem;
    width: 100%;
}

.form-text,
.form-help,
.help-text {
    font-size: 0.8rem;
    color: var(--text-muted, #94a3b8);
    margin-top: 0.3rem;
    line-height: 1.4;
    font-weight: 400;
}

.form-error,
.invalid-feedback {
    font-size: 0.82rem;
    color: var(--danger, #ef4444);
    margin-top: 0.3rem;
    font-weight: 500;
}

/* Reusable Grid Layouts for Desktop and Mobile */
.grid-2,
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.grid-3,
.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.col-span-2,
.form-full {
    grid-column: 1 / -1;
}

/* Responsive collapse: 1 column on mobile / small screens */
@media (max-width: 768px) {
    .grid-2,
    .form-grid-2,
    .grid-3,
    .form-grid-3 {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
}

/* Checkbox groups & horizontal filter options */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 0.25rem;
}

.checkbox-group label {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0 !important;
    font-weight: 500 !important;
    cursor: pointer;
}

/* Autocomplete dropdown styling */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--surface-raised, #182338);
    border: 1px solid var(--border-strong, rgba(255, 255, 255, 0.16));
    border-radius: var(--radius-sm, 6px);
    max-height: 220px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg, 0 10px 25px rgba(0, 0, 0, 0.6));
    margin-top: 4px;
}

.autocomplete-item {
    padding: 0.55rem 0.85rem;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text, #f8fafc);
    border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    transition: background-color var(--transition-fast, 0.15s ease);
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background-color: rgba(16, 185, 129, 0.14);
    color: var(--primary, #10b981);
}

/* Specific exemptions for POS table compact inputs so they remain compact */
#pos-cart-table input {
    width: 90px !important;
    height: 36px !important;
    padding: 0.35rem 0.4rem !important;
}

/* Print Isolation: never apply dark backgrounds or shadow rings on print */
@media print {
    input, select, textarea {
        background: transparent !important;
        color: #000000 !important;
        border: 1px solid #cccccc !important;
        box-shadow: none !important;
    }
}

/* Buttons */
button, .button {
    font: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--primary);
    color: #ffffff;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: background var(--transition-fast), transform 0.05s ease, box-shadow var(--transition-fast);
}

button:hover, .button:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-glow);
    color: #ffffff;
}

button:active, .button:active {
    transform: translateY(1px);
}

.button.secondary,
button.secondary {
    background: var(--surface-raised);
    color: var(--text-secondary);
    border: 1px solid var(--border-strong);
    box-shadow: none;
}

.button.secondary:hover,
button.secondary:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.button.danger,
button.danger {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.button.danger:hover,
button.danger:hover {
    background: #dc2626;
}

.linkish {
    background: none;
    border: 0;
    color: var(--primary);
    padding: 0;
    width: auto;
    font-size: inherit;
    cursor: pointer;
    box-shadow: none;
}

.linkish:hover {
    text-decoration: underline;
    background: none;
    box-shadow: none;
}

.muted { color: var(--text-muted); }
.error { color: var(--danger); font-size: 0.85rem; margin-top: 0.25rem; }

.option {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 0.5rem;
}
.option input { width: auto; margin: 0; }

/* Alerts */
.alert {
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: 1.25rem;
    background: var(--surface-raised);
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert.success {
    background: var(--success-bg);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

.alert.error {
    background: var(--danger-bg);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

.alert.warn {
    background: var(--warning-bg);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.3);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    background: var(--surface-raised);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid var(--border);
}

.badge.active, .badge.trial, .badge.paid, .badge.completed, .badge.authorized {
    background: var(--success-bg);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

.badge.past_due, .badge.pending, .badge.in_review {
    background: var(--warning-bg);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

.badge.suspended, .badge.revoked, .badge.cancelled, .badge.inactive, .badge.archived, .badge.expired {
    background: var(--danger-bg);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.badge.info, .badge.in_transit {
    background: var(--info-bg);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.3);
}

/* Tables */
.table-wrap {
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

th {
    background: var(--surface-raised);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text-secondary);
}

tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: var(--surface-hover);
}

/* Empty States */
.empty {
    background: var(--surface-subtle);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.empty p {
    margin: 0.5rem 0 1rem;
    font-size: 0.95rem;
}

/* Action Groups */
.inline-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.inline-actions form { margin: 0; }

.menu-toggle {
    display: none;
    width: auto;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.4rem 0.75rem;
}

.invite-url {
    word-break: break-all;
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: #34d399;
    font-family: monospace;
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    align-items: center;
}

.dl {
    display: grid;
    grid-template-columns: 14rem 1fr;
    gap: 0.75rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.dl dt {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.88rem;
}

.dl dd {
    margin: 0;
    color: var(--text);
    font-weight: 500;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    max-width: 32rem;
    width: 100%;
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Responsive */
@media (max-width: 960px) {
    .shell {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 18rem;
        height: 100vh;
        z-index: 200;
        box-shadow: var(--shadow-lg);
    }
    .sidebar.open {
        display: flex;
    }
    .sidebar-close-btn {
        display: inline-flex !important;
    }
    .menu-toggle {
        display: inline-flex;
    }
    .grid-2, .grid-3, .dl {
        grid-template-columns: 1fr;
    }
    .content {
        padding: 1rem;
    }
}
