/* POS Clic Empresa — light / dark */

:root,
[data-theme="light"] {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: #dbeafe;
    --bg: #f1f5f9;
    --bg-elevated: #ffffff;
    --sidebar-bg: #0f172a;
    --sidebar-text: #e2e8f0;
    --sidebar-muted: #94a3b8;
    --sidebar-active: #1e293b;
    --sidebar-border: #1e293b;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --input-bg: #ffffff;
    --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    --overlay: rgba(15, 23, 42, 0.45);
    --success-bg: #f0fdf4;
    --success-text: #16a34a;
    --success-border: #bbf7d0;
    --error-bg: #fef2f2;
    --error-text: #dc2626;
    --error-border: #fecaca;
    --warning-bg: #fef3c7;
    --warning-text: #d97706;
    --table-head: #f8fafc;
    --badge-bg: #dbeafe;
    --badge-text: #1d4ed8;
}

[data-theme="dark"] {
    --primary: #60a5fa;
    --primary-hover: #93c5fd;
    --primary-soft: #1e3a5f;
    --bg: #0b1220;
    --bg-elevated: #111827;
    --sidebar-bg: #070d18;
    --sidebar-text: #e5e7eb;
    --sidebar-muted: #9ca3af;
    --sidebar-active: #172033;
    --sidebar-border: #1f2937;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: #243041;
    --input-bg: #0f172a;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    --overlay: rgba(0, 0, 0, 0.55);
    --success-bg: #052e16;
    --success-text: #4ade80;
    --success-border: #14532d;
    --error-bg: #450a0a;
    --error-text: #fca5a5;
    --error-border: #7f1d1d;
    --warning-bg: #422006;
    --warning-text: #fbbf24;
    --table-head: #0f172a;
    --badge-bg: #1e3a5f;
    --badge-text: #93c5fd;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

/* App shell */
.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--overlay);
    z-index: 30;
}

.sidebar-overlay.is-visible { display: block; }

.sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 40;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1rem 1rem;
    border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-brand strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.2;
}

.sidebar-brand small {
    color: var(--sidebar-muted);
    font-size: 0.75rem;
}

.sidebar-logo {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.8rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
}

.sidebar-nav ul { list-style: none; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    margin-bottom: 0.25rem;
    border-radius: 10px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: background 0.15s, color 0.15s;
}

.nav-link:hover {
    background: var(--sidebar-active);
    color: #fff;
}

.nav-link.is-active {
    background: var(--primary-soft);
    color: #fff;
}

[data-theme="light"] .nav-link.is-active {
    background: rgba(37, 99, 235, 0.22);
    color: #eff6ff;
}

.nav-link.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.nav-soon {
    margin-left: auto;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--sidebar-muted);
    background: rgba(255,255,255,0.06);
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
}

.nav-icon {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    opacity: 0.9;
}

.nav-icon-home { background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3 2 12h3v8h6v-5h2v5h6v-8h3z'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3 2 12h3v8h6v-5h2v5h6v-8h3z'/%3E%3C/svg%3E") center/contain no-repeat; }
.nav-icon-sales { background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 4h10l1 3H6zm-1 5h12l-1.2 9H7.2z'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 4h10l1 3H6zm-1 5h12l-1.2 9H7.2z'/%3E%3C/svg%3E") center/contain no-repeat; }
.nav-icon-purchases { background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 7h16v2H4zm2 4h12v2H6zm-2 4h16v2H4z'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 7h16v2H4zm2 4h12v2H6zm-2 4h16v2H4z'/%3E%3C/svg%3E") center/contain no-repeat; }
.nav-icon-products { background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 8h16v12H4zm2 2v8h12v-8zm-1-4h14l1 2H5z'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 8h16v12H4zm2 2v8h12v-8zm-1-4h14l1 2H5z'/%3E%3C/svg%3E") center/contain no-repeat; }
.nav-icon-customers { background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4m-8 9a8 8 0 0 1 16 0z'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4m-8 9a8 8 0 0 1 16 0z'/%3E%3C/svg%3E") center/contain no-repeat; }
.nav-icon-cash { background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 7h18v10H3zm2 2v6h14V9zm7 1a2 2 0 1 0 2 2 2 2 0 0 0-2-2'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 7h18v10H3zm2 2v6h14V9zm7 1a2 2 0 1 0 2 2 2 2 0 0 0-2-2'/%3E%3C/svg%3E") center/contain no-repeat; }
.nav-icon-inventory { background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h16v4H4zm0 6h10v4H4zm0 6h16v4H4z'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h16v4H4zm0 6h10v4H4zm0 6h16v4H4z'/%3E%3C/svg%3E") center/contain no-repeat; }
.nav-icon-tenants { background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 21h8v-8H3zm10 0h8v-8h-8zM3 9h8V1H3zm10 0h8V1h-8z'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 21h8v-8H3zm10 0h8v-8h-8zM3 9h8V1H3zm10 0h8V1h-8z'/%3E%3C/svg%3E") center/contain no-repeat; }
.nav-icon-logout { background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 3h8v18h-8v-2h6V5h-6zm-1 6-1.4 1.4L10.2 13H3v2h7.2l-2.6 2.6L10 19l6-6z'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 3h8v18h-8v-2h6V5h-6zm-1 6-1.4 1.4L10.2 13H3v2h7.2l-2.6 2.6L10 19l6-6z'/%3E%3C/svg%3E") center/contain no-repeat; }

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--sidebar-border);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.user-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.user-meta strong {
    display: block;
    font-size: 0.85rem;
    line-height: 1.2;
}

.user-meta small {
    color: var(--sidebar-muted);
    font-size: 0.72rem;
    word-break: break-all;
}

.nav-link-logout { color: #fca5a5; }
.nav-link-logout:hover { background: rgba(239, 68, 68, 0.15); color: #fecaca; }

.app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.page-title {
    font-size: 1.15rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content {
    flex: 1;
    padding: 1.5rem;
    max-width: 1400px;
    width: 100%;
}

.icon-btn,
.theme-toggle {
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.15s, border-color 0.15s;
}

.icon-btn {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
}

.theme-toggle {
    padding: 0.55rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.icon-btn:hover,
.theme-toggle:hover {
    background: var(--bg);
    border-color: var(--primary);
}

.theme-toggle-icon {
    width: 1rem;
    height: 1rem;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3a9 9 0 1 0 9 9 7 7 0 0 1-9-9'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3a9 9 0 1 0 9 9 7 7 0 0 1-9-9'/%3E%3C/svg%3E") center/contain no-repeat;
}

[data-theme="dark"] .theme-toggle-icon {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0V3a1 1 0 0 1 1-1m0 16a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0v-1a1 1 0 0 1 1-1M4.2 4.2a1 1 0 0 1 1.4 0l.8.8a1 1 0 1 1-1.4 1.4l-.8-.8a1 1 0 0 1 0-1.4m13.6 13.6a1 1 0 0 1 1.4 0l.8.8a1 1 0 0 1-1.4 1.4l-.8-.8a1 1 0 0 1 0-1.4M2 12a1 1 0 0 1 1-1h1a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1m17 0a1 1 0 0 1 1-1h1a1 1 0 1 1 0 2h-1a1 1 0 0 1-1-1M4.2 19.8a1 1 0 0 1 0-1.4l.8-.8a1 1 0 1 1 1.4 1.4l-.8.8a1 1 0 0 1-1.4 0M17.4 6.6a1 1 0 0 1 0-1.4l.8-.8a1 1 0 1 1 1.4 1.4l-.8.8a1 1 0 0 1-1.4 0M12 7a5 5 0 1 0 5 5 5 5 0 0 0-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0V3a1 1 0 0 1 1-1m0 16a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0v-1a1 1 0 0 1 1-1M4.2 4.2a1 1 0 0 1 1.4 0l.8.8a1 1 0 1 1-1.4 1.4l-.8-.8a1 1 0 0 1 0-1.4m13.6 13.6a1 1 0 0 1 1.4 0l.8.8a1 1 0 0 1-1.4 1.4l-.8-.8a1 1 0 0 1 0-1.4M2 12a1 1 0 0 1 1-1h1a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1m17 0a1 1 0 0 1 1-1h1a1 1 0 1 1 0 2h-1a1 1 0 0 1-1-1M4.2 19.8a1 1 0 0 1 0-1.4l.8-.8a1 1 0 1 1 1.4 1.4l-.8.8a1 1 0 0 1-1.4 0M17.4 6.6a1 1 0 0 1 0-1.4l.8-.8a1 1 0 1 1 1.4 1.4l-.8.8a1 1 0 0 1-1.4 0M12 7a5 5 0 1 0 5 5 5 5 0 0 0-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}

.sidebar-open,
.sidebar-close { display: none; }

/* Auth */
.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 40%),
        var(--bg);
}

.auth-card {
    background: var(--bg-elevated);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 420px;
}

.auth-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-card h1 { font-size: 1.5rem; margin-bottom: 0.25rem; }

.auth-page-ddev {
    background:
        radial-gradient(circle at top left, rgba(15, 23, 42, 0.08), transparent 45%),
        var(--bg);
}

.auth-card-ddev {
    border-color: color-mix(in srgb, var(--border) 70%, #64748b);
}
.subtitle { color: var(--text-muted); font-size: 0.875rem; }

/* Forms & UI */
.page-intro {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.page-toolbar .page-intro {
    margin-bottom: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

.form-group-wide {
    grid-column: 1 / -1;
}

.product-form {
    margin-top: 0.5rem;
}

@media (max-width: 720px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9375rem;
    background: var(--input-bg);
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid rgba(37, 99, 235, 0.25);
    border-color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 1.1rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
}

.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
.btn-secondary { background: var(--border); color: var(--text); }
.btn-secondary:hover { filter: brightness(0.95); }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }

.alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    border: 1px solid transparent;
}

.alert-error { background: var(--error-bg); color: var(--error-text); border-color: var(--error-border); }
.alert-success { background: var(--success-bg); color: var(--success-text); border-color: var(--success-border); }

.form-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.form-row .form-group { flex: 1; min-width: 180px; margin-bottom: 0; }
.form-actions { margin-top: 1.5rem; display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }

.badge-borrador { background: var(--warning-bg); color: var(--warning-text); }
.badge-recibido { background: var(--success-bg); color: var(--success-text); }
.badge-anulado { background: var(--error-bg); color: var(--error-text); }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    background: var(--bg-elevated);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

h4 { margin: 1rem 0 0.75rem; font-size: 0.9375rem; }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.card,
.panel {
    background: var(--bg-elevated);
    padding: 1.35rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.card h3 { margin-bottom: 0.45rem; font-size: 1rem; }
.card p { color: var(--text-muted); font-size: 0.875rem; }
.card-disabled { opacity: 0.55; pointer-events: none; }

.section {
    margin-bottom: 2rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
}

.section h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-elevated);
}

.table th,
.table td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    background: var(--table-head);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.table tbody tr:hover { background: rgba(37, 99, 235, 0.04); }
[data-theme="dark"] .table tbody tr:hover { background: rgba(96, 165, 250, 0.06); }

.badge {
    background: var(--badge-bg);
    color: var(--badge-text);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.text-muted { color: var(--text-muted); }

.form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.form-inline .form-group { margin-bottom: 0; flex: 1; min-width: 150px; }

.cash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.cash-card { display: block; }
.cash-card-header h4 { margin: 0 0 0.25rem; }
.cash-card-header small { color: var(--text-muted); }
.cash-status { font-size: 0.875rem; margin: 0.75rem 0; }
.cash-status-open { color: var(--success-text); }
.cash-status-closed { color: var(--text-muted); }
.cash-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.cash-form-close { margin-top: 0.75rem; }
.table-compact th, .table-compact td { padding: 0.45rem 0.6rem; font-size: 0.8125rem; }
.row-warning { background: var(--warning-bg); }

@media (max-width: 960px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }

    .sidebar.is-open { transform: translateX(0); }

    .sidebar-open,
    .sidebar-close { display: inline-flex; }

    .content { padding: 1rem; }
}
