/* Fragnis Admin Panel */
:root {
    --admin-primary: #069342;
    --admin-primary-dark: #057a38;
    --admin-gold: #d4a853;
    --admin-bg: #f0f2f5;
    --admin-sidebar: #1a1f2e;
    --admin-sidebar-hover: #252b3b;
    --admin-card: #ffffff;
    --admin-text: #1a1f2e;
    --admin-muted: #6b7280;
    --admin-border: #e5e7eb;
    --admin-pending: #f59e0b;
    --admin-approved: #3b82f6;
    --admin-delivered: #069342;
    --admin-cancelled: #ef4444;
    --admin-radius: 12px;
    --admin-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--admin-bg);
    color: var(--admin-text);
    min-height: 100vh;
}

/* ── Login ── */
.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.18), transparent 35%),
        radial-gradient(circle at bottom right, rgba(6, 147, 66, 0.25), transparent 40%),
        linear-gradient(145deg, #111827 0%, #1a1f2e 45%, #0b5f34 100%);
    padding: 1.5rem;
    overflow: hidden;
}

.login-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.login-bg-glow-1 {
    width: 280px;
    height: 280px;
    background: rgba(6, 147, 66, 0.35);
    top: 10%;
    left: 8%;
}

.login-bg-glow-2 {
    width: 220px;
    height: 220px;
    background: rgba(212, 175, 55, 0.22);
    bottom: 12%;
    right: 10%;
}

.login-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 22px;
    padding: 2.75rem 2.5rem 2.25rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo-ring {
    width: 96px;
    height: 96px;
    margin: 0 auto 1.25rem;
    padding: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff, #f0fdf4);
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(6, 147, 66, 0.35), 0 10px 28px rgba(6, 147, 66, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 50%;
}

.login-logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.15rem;
    color: var(--admin-primary);
    letter-spacing: 0.02em;
    margin-bottom: 0.35rem;
}

.login-tagline {
    color: var(--admin-muted);
    font-size: 0.92rem;
    font-style: italic;
    margin: 0;
}

.login-badge {
    display: inline-block;
    margin-top: 0.85rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(6, 147, 66, 0.1);
    color: var(--admin-primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.login-submit-btn {
    margin-top: 0.25rem;
    box-shadow: 0 10px 24px rgba(6, 147, 66, 0.28);
}

.login-back-link {
    text-align: center;
    margin-top: 1.35rem;
}

.login-back-link a {
    color: var(--admin-primary);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
}

.login-back-link a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--admin-border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--admin-primary);
}

.form-group input[readonly] {
    background: var(--admin-bg);
    color: var(--admin-muted);
    cursor: default;
}

.form-hint {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
}

.form-group small {
    display: block;
    margin-top: 0.35rem;
    color: var(--admin-muted);
    font-size: 0.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.rich-editor-wrap {
    border-radius: 8px;
    overflow: hidden;
}

.rich-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    background: var(--admin-bg);
    border: 1.5px solid var(--admin-border);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.rich-editor-toolbar button {
    padding: 0.45rem 0.8rem;
    border: 1.5px solid var(--admin-border);
    border-radius: 6px;
    background: var(--admin-card);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--admin-text);
    font-family: inherit;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.rich-editor-toolbar button:hover {
    border-color: var(--admin-primary);
    color: var(--admin-primary);
    background: rgba(6, 147, 66, 0.06);
}

.rich-editor-body {
    min-height: 180px;
    max-height: 320px;
    overflow-y: auto;
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--admin-border);
    border-radius: 0 0 8px 8px;
    font-size: 0.95rem;
    line-height: 1.65;
    background: var(--admin-card);
    color: var(--admin-text);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rich-editor-body:focus {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(6, 147, 66, 0.12);
}

.rich-editor-body:empty::before {
    content: attr(data-placeholder);
    color: var(--admin-muted);
    pointer-events: none;
}

.rich-editor-body p {
    margin: 0 0 0.75rem;
}

.rich-editor-body p:last-child {
    margin-bottom: 0;
}

.rich-editor-body .desc-lg {
    font-size: 1.05rem;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary { background: var(--admin-primary); color: white; }
.btn-primary:hover { background: var(--admin-primary-dark); }
.btn-outline { background: transparent; border: 1.5px solid var(--admin-border); color: var(--admin-text); }
.btn-outline:hover { background: var(--admin-bg); }
.btn-danger { background: #ef4444; color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-warning { background: #f59e0b; color: white; }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1rem; width: 100%; }
.btn-icon { padding: 0.5rem; border-radius: 6px; }

/* ── Layout ── */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--admin-sidebar);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--admin-gold);
}

.sidebar-header span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
    font-family: inherit;
}

.nav-item:hover { background: var(--admin-sidebar-hover); color: white; }
.nav-item.active { background: rgba(6,147,66,0.2); color: #4ade80; border-right: 3px solid var(--admin-primary); }

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.admin-main-wrap {
    flex: 1;
    margin-left: 260px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 2rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
}

.page-header p {
    color: var(--admin-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* ── Stats Cards ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--admin-card);
    border-radius: var(--admin-radius);
    padding: 1.5rem;
    box-shadow: var(--admin-shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.pending { background: #fef3c7; }
.stat-icon.approved { background: #dbeafe; }
.stat-icon.delivered { background: #d1fae5; }
.stat-icon.revenue { background: #fce7f3; }

.stat-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.stat-info p {
    color: var(--admin-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ── Cards ── */
.card {
    background: var(--admin-card);
    border-radius: var(--admin-radius);
    box-shadow: var(--admin-shadow);
    overflow: hidden;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.card-body { padding: 1.5rem; }

/* ── Status Badges ── */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pending { background: #fef3c7; color: #92400e; }
.badge-approved { background: #dbeafe; color: #1e40af; }
.badge-delivered { background: #d1fae5; color: #065f46; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-active { background: #d1fae5; color: #065f46; }
.badge-inactive { background: #f3f4f6; color: #6b7280; }

/* ── Filter Tabs ── */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1.5px solid var(--admin-border);
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    transition: all 0.2s;
}

.filter-tab:hover { border-color: var(--admin-primary); color: var(--admin-primary); }
.filter-tab.active { background: var(--admin-primary); color: white; border-color: var(--admin-primary); }

/* ── Orders Search & UI ── */
.order-search-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1.5px solid var(--admin-border);
}

.order-search-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--admin-text);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--admin-border);
}

.order-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.order-search-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--admin-border);
}

.order-search-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.order-result-badge {
    background: var(--admin-primary);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.order-header-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.order-stat-pill {
    background: white;
    border: 1.5px solid var(--admin-border);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

.order-stat-pill span {
    color: var(--admin-primary);
}

.orders-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}

.order-card {
    border: 1.5px solid var(--admin-border);
    border-radius: var(--admin-radius);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    background: white;
}

.order-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.order-card.status-pending { border-left: 4px solid var(--admin-pending); }
.order-card.status-approved { border-left: 4px solid var(--admin-approved); }
.order-card.status-delivered { border-left: 4px solid var(--admin-delivered); }
.order-card.status-cancelled { border-left: 4px solid var(--admin-cancelled); }

.order-card-top {
    padding: 1.25rem 1.25rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.order-id {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--admin-primary);
}

.order-meta {
    font-size: 0.78rem;
    color: var(--admin-muted);
    margin-top: 0.2rem;
}

.order-card-body { padding: 0 1.25rem 1rem; }

.order-card-bottom {
    padding: 1rem 1.25rem;
    background: var(--admin-bg);
    border-top: 1px solid var(--admin-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.order-customer-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.order-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--admin-primary), #057a38);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.order-customer-info h4 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.order-contact-line {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.82rem;
    color: var(--admin-muted);
}

.order-contact-line span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.order-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.order-product-tag {
    background: #f0fdf4;
    color: #065f46;
    border: 1px solid #bbf7d0;
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
}

.order-fragrance-tag {
    display: inline-block;
    margin-left: 0.25rem;
    padding: 0.1rem 0.45rem;
    background: rgba(6, 147, 66, 0.12);
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #047857;
}

.order-note {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    padding: 0.5rem 0.75rem;
    border-radius: 0 6px 6px 0;
    font-size: 0.82rem;
    color: #92400e;
    margin-top: 0.5rem;
}

.order-total-box {
    text-align: right;
}

.order-total-label {
    font-size: 0.75rem;
    color: var(--admin-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--admin-primary);
}

.status-select {
    padding: 0.5rem 0.75rem;
    border: 1.5px solid var(--admin-border);
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    background: white;
    font-weight: 500;
}

.order-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.status-select.pending { border-color: #f59e0b; color: #92400e; }
.status-select.approved { border-color: #3b82f6; color: #1e40af; }
.status-select.delivered { border-color: #069342; color: #065f46; }
.status-select.cancelled { border-color: #ef4444; color: #991b1b; }

@media (max-width: 768px) {
    .orders-list { grid-template-columns: 1fr; }
    .order-search-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Products Grid ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.product-card-admin {
    border: 1.5px solid var(--admin-border);
    border-radius: var(--admin-radius);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.product-card-admin:hover { box-shadow: var(--admin-shadow); }
.product-card-admin.inactive { opacity: 0.6; }

.product-card-img {
    height: 160px;
    overflow: hidden;
    background: var(--admin-bg);
    position: relative;
}

.product-cat-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(26, 31, 46, 0.85);
    color: white;
    font-size: 0.68rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-weight: 500;
    max-width: calc(100% - 16px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-body { padding: 1rem; }

.product-card-body h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.product-card-body .product-fragrance {
    font-size: 0.82rem;
    color: var(--admin-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.product-card-body .subtitle {
    font-size: 0.85rem;
    color: var(--admin-muted);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-body .price {
    font-weight: 700;
    color: var(--admin-primary);
    margin-bottom: 0.75rem;
}

.product-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ── Categories Grid ── */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.category-card-admin {
    background: white;
    border: 1.5px solid var(--admin-border);
    border-radius: var(--admin-radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: box-shadow 0.2s, transform 0.2s;
    border-left: 4px solid var(--admin-primary);
}

.category-card-admin:hover {
    box-shadow: var(--admin-shadow);
    transform: translateY(-2px);
}

.category-card-admin.inactive {
    opacity: 0.65;
    border-left-color: #9ca3af;
}

.category-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    border: 1px solid #bbf7d0;
}

.category-card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-slug {
    font-size: 0.78rem;
    color: var(--admin-muted);
    font-family: monospace;
    background: var(--admin-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.35rem;
}

.category-count {
    font-size: 0.85rem;
    color: var(--admin-primary);
    font-weight: 600;
}

.category-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 1px solid var(--admin-border);
    margin-top: auto;
}

@media (max-width: 768px) {
    .categories-grid { grid-template-columns: 1fr; }
}

/* ── Features Input ── */
.features-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.features-input input { flex: 1; }

.features-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--admin-bg);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.feature-tag button {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

/* ── Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-box {
    background: white;
    border-radius: var(--admin-radius);
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 { font-size: 1.15rem; }

.modal-body { padding: 1.5rem; }

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--admin-border);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* ── Reports (Premium) ── */
.report-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #1a1f2e 0%, #069342 100%);
    color: white;
    box-shadow: 0 12px 40px rgba(6,147,66,0.25);
}

.report-hero-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.report-hero-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: white;
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.report-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.report-hero p {
    font-size: 0.9rem;
    opacity: 0.85;
}

.report-hero-pdf {
    background: white !important;
    color: var(--admin-primary) !important;
    font-weight: 600;
    padding: 0.85rem 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-radius: 10px;
}

.report-hero-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

.report-filter-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 14px;
    border: 1.5px solid var(--admin-border);
    box-shadow: var(--admin-shadow);
}

.report-quick-dates {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px dashed var(--admin-border);
}

.report-quick-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--admin-muted);
    margin-right: 0.25rem;
}

.report-quick-btn {
    padding: 0.45rem 1rem;
    border: 1.5px solid var(--admin-border);
    background: white;
    border-radius: 20px;
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--admin-text);
}

.report-quick-btn:hover {
    border-color: var(--admin-primary);
    color: var(--admin-primary);
}

.report-quick-btn.active {
    background: var(--admin-primary);
    color: white;
    border-color: var(--admin-primary);
}

.report-filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    align-items: end;
}

.report-filter-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.report-date-badge {
    margin-top: 1.25rem;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(90deg, #f0fdf4, #ffffff);
    border-radius: 10px;
    font-size: 0.88rem;
    color: var(--admin-text);
    border: 1px solid #bbf7d0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.report-date-badge strong {
    color: var(--admin-primary);
}

.report-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.report-stat-card {
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    color: white;
    position: relative;
    overflow: hidden;
}

.report-stat-card::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.report-stat-card.pending { background: linear-gradient(135deg, #f59e0b, #d97706); }
.report-stat-card.approved { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.report-stat-card.delivered { background: linear-gradient(135deg, #069342, #057a38); }
.report-stat-card.revenue { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.report-stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.report-stat-card p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.report-stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.report-results-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--admin-shadow);
}

.report-results-header {
    background: linear-gradient(90deg, #f8fafc, #ffffff);
    padding: 1.25rem 1.5rem;
}

.report-results-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--admin-primary);
}

.report-results-title h2 {
    font-size: 1.05rem;
    color: var(--admin-text);
}

.report-table-wrap {
    padding: 0;
    overflow-x: auto;
}

.report-count {
    font-weight: 400;
    color: var(--admin-muted);
    font-size: 0.9rem;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.report-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.report-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    background: #1a1f2e;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.report-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.report-table tbody tr {
    transition: background 0.15s;
}

.report-table tbody tr:hover td {
    background: #f0fdf4;
}

.report-table tbody tr:nth-child(even) td {
    background: #fafafa;
}

.report-table tbody tr:nth-child(even):hover td {
    background: #f0fdf4;
}

.report-table .order-id-cell {
    font-weight: 700;
    color: var(--admin-primary);
    font-size: 0.82rem;
}

.report-table .amount-cell {
    font-weight: 700;
    color: var(--admin-primary);
}

.report-table .status-cell {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-table .status-pending { background: #fef3c7; color: #92400e; }
.report-table .status-approved { background: #dbeafe; color: #1e40af; }
.report-table .status-delivered { background: #d1fae5; color: #065f46; }
.report-table .status-cancelled { background: #fee2e2; color: #991b1b; }

.report-table .product-cell {
    font-size: 0.82rem;
    color: var(--admin-muted);
    line-height: 1.5;
}

.report-summary-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(90deg, #f0fdf4, #ecfdf5);
    border-top: 2px solid var(--admin-primary);
    flex-wrap: wrap;
    gap: 1rem;
}

.report-summary-item {
    text-align: center;
}

.report-summary-item .label {
    font-size: 0.75rem;
    color: var(--admin-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.report-summary-item .value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--admin-primary);
}

.report-table-pdf {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

@media (max-width: 768px) {
    .report-hero { padding: 1.25rem; }
    .report-hero h1 { font-size: 1.35rem; }
    .report-quick-dates { gap: 0.35rem; }
    .report-quick-btn { padding: 0.35rem 0.75rem; font-size: 0.78rem; }
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--admin-muted);
}

.empty-state svg { margin-bottom: 1rem; opacity: 0.4; }

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--admin-sidebar);
    color: white;
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 9999;
    animation: slideUp 0.3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.hidden { display: none !important; }

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle-switch input[type="checkbox"] {
    width: 44px;
    height: 24px;
    appearance: none;
    background: #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
}

.toggle-switch input[type="checkbox"]:checked { background: var(--admin-primary); }

.toggle-switch input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch input[type="checkbox"]:checked::before { transform: translateX(20px); }

.mobile-topbar {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--admin-primary);
    color: white;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.mobile-topbar-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.mobile-topbar-brand strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--admin-text);
}

.mobile-topbar-brand span {
    font-size: 0.75rem;
    color: var(--admin-muted);
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .admin-main-wrap { margin-left: 0; width: 100%; }
    .mobile-topbar {
        display: flex;
        align-items: center;
        gap: 0.875rem;
        position: sticky;
        top: 0;
        z-index: 90;
        background: var(--admin-card);
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--admin-border);
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    .main-content { padding: 1rem; }
    .form-row { grid-template-columns: 1fr; }
    .mobile-menu-toggle {
        display: flex;
    }
}

.image-preview {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--admin-bg);
    border-radius: 8px;
    text-align: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 160px;
    border-radius: 8px;
    object-fit: cover;
}

.image-preview-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--admin-primary);
    font-weight: 500;
}

.product-images-admin {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.875rem;
    margin-top: 0.875rem;
}

.product-images-empty {
    margin: 0;
    padding: 1rem;
    background: var(--admin-bg);
    border-radius: 8px;
    color: var(--admin-muted);
    font-size: 0.85rem;
    text-align: center;
}

.product-image-admin-item {
    position: relative;
    background: var(--admin-bg);
    border: 1.5px solid var(--admin-border);
    border-radius: 10px;
    overflow: hidden;
}

.product-image-admin-item.primary {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(6, 147, 66, 0.12);
}

.product-image-admin-item img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}

.img-primary-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--admin-primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-image-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.5rem;
}

.product-image-admin-actions .btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
}

.reviews-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.reviews-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.review-admin-card {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    padding: 1.25rem;
    box-shadow: var(--admin-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.review-admin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.review-admin-top {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.review-admin-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(6,147,66,0.12);
    color: var(--admin-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.review-admin-top h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.review-admin-stars {
    display: flex;
    gap: 0.1rem;
    margin-bottom: 0.25rem;
}

.admin-star {
    color: #d1d5db;
    font-size: 1rem;
}

.admin-star.filled {
    color: #f59e0b;
}

.review-admin-date {
    font-size: 0.75rem;
    color: var(--admin-muted);
}

.review-admin-comment {
    color: var(--admin-text);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.review-admin-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--admin-border);
}

.review-admin-actions .btn {
    flex: 1;
}

.star-rating-picker {
    display: flex;
    gap: 0.35rem;
}

.star-pick-btn {
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--admin-border);
    border-radius: 8px;
    background: white;
    color: #d1d5db;
    font-size: 1.15rem;
    cursor: pointer;
}

.star-pick-btn.active,
.star-pick-btn:hover {
    color: #f59e0b;
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}

/* ── Order Receipt ── */
.receipt-modal-box {
    background: #e5e7eb;
    border-radius: 16px;
    width: 95%;
    max-width: 720px;
    min-width: 320px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
}

.receipt-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    z-index: 2;
    background: #e5e7eb;
    padding-bottom: 0.5rem;
}

.receipt-paper {
    background: white;
    border-radius: 12px;
    padding: 2.25rem 2.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    font-size: 0.95rem;
}

.receipt-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.receipt-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 50%;
    padding: 6px;
    background: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(6, 147, 66, 0.35), 0 4px 12px rgba(6, 147, 66, 0.15);
}

.receipt-brand h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--admin-primary);
    line-height: 1.2;
}

.receipt-brand p {
    font-size: 0.85rem;
    color: var(--admin-muted);
}

.receipt-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #f0fdf4, #ffffff);
    padding: 0.65rem 1rem;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--admin-text);
}

.receipt-status-badge {
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.receipt-status-badge.approved { background: #dbeafe; color: #1e40af; }
.receipt-status-badge.delivered { background: #d1fae5; color: #065f46; }

.receipt-order-id {
    text-align: center;
    padding: 0.85rem;
    background: #f0fdf4;
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.receipt-order-id span {
    display: block;
    font-size: 0.75rem;
    color: var(--admin-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.receipt-order-id strong {
    font-size: 1.15rem;
    color: var(--admin-primary);
    letter-spacing: 0.5px;
}

.receipt-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--admin-muted);
    margin-bottom: 1rem;
}

.receipt-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #d1d5db, transparent);
    margin: 1.25rem 0;
}

.receipt-section h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--admin-primary);
    margin-bottom: 0.75rem;
}

.receipt-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
}

.receipt-info-item.full { grid-column: 1 / -1; }

.receipt-info-item .label {
    display: block;
    font-size: 0.72rem;
    color: var(--admin-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.15rem;
}

.receipt-info-item .value {
    font-weight: 500;
    color: var(--admin-text);
    font-size: 0.9rem;
}

.receipt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.receipt-table th {
    background: #1a1f2e;
    color: white;
    padding: 0.75rem 1rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.receipt-table th:first-child { border-radius: 6px 0 0 0; }
.receipt-table th:last-child { border-radius: 0 6px 0 0; }

.receipt-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.receipt-table tbody tr:nth-child(even) td { background: #fafafa; }

.text-center { text-align: center; }
.text-right { text-align: right; }

.receipt-total-box {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.receipt-total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.88rem;
    color: var(--admin-muted);
}

.receipt-total-row.grand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--admin-primary);
    border-top: 2px solid var(--admin-primary);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}

.receipt-cod-badge {
    text-align: center;
    margin-top: 0.75rem;
    padding: 0.6rem;
    background: #fef3c7;
    color: #92400e;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
}

.receipt-company {
    text-align: center;
    padding-top: 0.5rem;
}

.receipt-company h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--admin-primary);
    margin-bottom: 0.15rem;
}

.receipt-company > p {
    font-size: 0.82rem;
    color: var(--admin-muted);
    margin-bottom: 0.75rem;
}

.receipt-company-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--admin-muted);
    margin-bottom: 1rem;
}

.receipt-thankyou {
    font-size: 0.88rem;
    color: var(--admin-primary);
    font-weight: 600;
    padding-top: 0.75rem;
    border-top: 1px dashed #d1d5db;
}

/* ── Inventory / Purchase / Expense Modules ── */
.module-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #1a1f2e 0%, #069342 100%);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    color: white;
    box-shadow: 0 12px 40px rgba(6, 147, 66, 0.2);
}

.module-hero-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.module-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
}

.module-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.module-hero p {
    font-size: 0.9rem;
    opacity: 0.85;
}

.module-hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.module-hero-actions .btn-outline {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.35);
    color: white;
}

.module-hero-actions .btn-outline:hover {
    background: white;
    color: var(--admin-primary);
}

.module-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.module-stat-card {
    background: white;
    border-radius: var(--admin-radius);
    padding: 1.25rem;
    box-shadow: var(--admin-shadow);
    border: 1px solid var(--admin-border);
    text-align: center;
    transition: transform 0.2s;
}

.module-stat-card:hover { transform: translateY(-2px); }

.module-stat-card.warn { border-color: #f59e0b; background: linear-gradient(180deg, #fffbeb, white); }
.module-stat-card.danger { border-color: #ef4444; background: linear-gradient(180deg, #fef2f2, white); }
.module-stat-card.revenue { border-color: var(--admin-primary); background: linear-gradient(180deg, #f0fdf4, white); }

.module-stat-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }

.module-stat-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--admin-text);
    margin-bottom: 0.25rem;
}

.module-stat-card p {
    font-size: 0.82rem;
    color: var(--admin-muted);
}

.inv-row-low { background: #fffbeb !important; }
.inv-row-out { background: #fef2f2 !important; }

.modal-box-lg { max-width: 640px; }

.purchase-item-row {
    display: grid;
    grid-template-columns: 2fr 80px 100px auto;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 640px) {
    .purchase-item-row { grid-template-columns: 1fr; }
}

.purchase-items-list {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.purchase-draft-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0.875rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 0.875rem;
}

.purchase-draft-item button {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 1.25rem;
    cursor: pointer;
}

.purchase-total-preview {
    text-align: right;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--admin-primary);
    padding-top: 0.5rem;
}

.stock-added-tag {
    font-size: 0.8125rem;
    color: var(--admin-primary);
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    background: #f0fdf4;
    border-radius: 999px;
}

.expense-card .expense-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.expense-amount { color: #dc2626 !important; }

.category-picker-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.category-picker-row select { flex: 1; }

.new-category-wrap {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.625rem;
}

.new-category-wrap input { flex: 1; }

.new-category-wrap.hidden { display: none !important; }
