/* ============================================================
   Clips 2026 - Modern Landscaping Business Manager
   Design System: Nature-inspired green + clean SaaS aesthetic
   ============================================================ */

/* ── 1. CSS VARIABLES ──────────────────────────────────────── */
:root {
    /* Primary Green Palette */
    --green-50:  #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --green-900: #14532d;

    /* Earth Tones */
    --earth-50:  #faf8f5;
    --earth-100: #f5f0e8;
    --earth-200: #e8dfd3;

    /* Neutrals */
    --gray-50:  #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    /* Semantic Colors */
    --primary:    var(--green-600);
    --primary-hover: var(--green-700);
    --primary-light: var(--green-50);
    --danger:     #ef4444;
    --danger-hover: #dc2626;
    --warning:    #f59e0b;
    --info:       #3b82f6;
    --success:    var(--green-500);

    /* Layout */
    --sidebar-width: 260px;
    --sidebar-bg: var(--green-900);
    --sidebar-text: rgba(255,255,255,0.7);
    --sidebar-text-active: #ffffff;
    --sidebar-hover-bg: rgba(255,255,255,0.08);
    --sidebar-active-bg: rgba(255,255,255,0.12);
    --topbar-height: 56px;
    --content-bg: #f5f2ec;
    --card-bg: #ffffff;
    --card-border: var(--gray-200);
    --card-radius: 12px;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --card-shadow-hover: 0 4px 12px rgba(0,0,0,0.08);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-brand: 'Fredoka', var(--font-sans);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}


/* ── 2. BASE & TYPOGRAPHY ──────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--content-bg);
    color: var(--gray-800);
    font-size: 0.9375rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.3;
}


/* ── 3. APP LAYOUT ─────────────────────────────────────────── */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}


/* ── 4. SIDEBAR ────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1a6b3a 0%, #14532d 40%, #0f3d20 100%);
    color: var(--sidebar-text);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-slow);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

/* Brand */
.sidebar-brand {
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.sidebar-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.sidebar-brand-text {
    font-family: var(--font-brand);
    font-size: 1.5rem;
    color: white;
    letter-spacing: 0.5px;
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    padding: 0.5rem 0;
}

.sidebar-section {
    padding: 1.25rem 1rem 0.4rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.38);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.875rem;
    color: var(--sidebar-text);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    margin: 1px 0.625rem;
    transition: all var(--transition-fast);
    text-decoration: none;
    position: relative;
}
.sidebar-link:hover {
    color: var(--sidebar-text-active);
    background: var(--sidebar-hover-bg);
}
.sidebar-link.active {
    background: var(--green-600);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(22,163,74,0.35);
}
.sidebar-link i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
    opacity: 0.8;
    flex-shrink: 0;
    transition: opacity var(--transition-fast);
}
.sidebar-link:hover i,
.sidebar-link.active i {
    opacity: 1;
}
.sidebar-link-sub {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.58);
}
.sidebar-link-sub i { opacity: 0.7; font-size: 0.9rem; }
.sidebar-link-sub:hover { color: rgba(255,255,255,0.88); }
.sidebar-link-sub.active { background: var(--green-700); box-shadow: none; }
.sidebar-link .sidebar-badge {
    margin-left: auto;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    font-size: 0.6875rem;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.sidebar-avatar {
    width: 32px;
    height: 32px;
    background: var(--green-700);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
    flex-shrink: 0;
}
.sidebar-user-info {
    flex: 1;
    min-width: 0;
}
.sidebar-user-name {
    color: white;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user-role {
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.45);
}
.sidebar-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.45);
    font-size: 0.75rem;
    transition: all var(--transition-fast);
    padding: 3px 8px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
}
.sidebar-logout i { font-size: 0.875rem; }
.sidebar-logout:hover {
    color: white;
    background: rgba(255,255,255,0.08);
}

/* Mobile overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1035;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.show {
    display: block;
}


/* ── 5. MAIN CONTENT ───────────────────────────────────────── */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Bar — seamless with page background */
.top-bar {
    height: var(--topbar-height);
    background: var(--content-bg);
    border-bottom: none;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1020;
    flex-shrink: 0;
}
.top-bar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--gray-600);
    padding: 0.25rem;
    margin-right: 0.75rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background var(--transition-fast);
}
.top-bar-toggle:hover {
    background: var(--gray-100);
}
.top-bar-breadcrumb {
    font-size: 0.8125rem;
    color: var(--gray-500);
}
.top-bar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 1.5rem;
}

/* Footer */
.app-footer {
    padding: 1.5rem;
    text-align: center;
    color: var(--gray-400);
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}


/* ── 6. PAGE HEADER ────────────────────────────────────────── */
.page-header {
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    border-bottom: none;
}
.page-header h1 {
    font-family: var(--font-brand);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--green-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0.75rem;
    border-left: 4px solid var(--green-500);
    line-height: 1.2;
}
.page-header h1 i {
    color: var(--green-600);
    font-size: 1.4rem;
}


/* ── 7. CARDS ──────────────────────────────────────────────── */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    transition: box-shadow var(--transition-base);
}
.card:hover {
    box-shadow: var(--card-shadow-hover);
}
.card-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--gray-100);
    padding: 0.875rem 1.25rem;
    font-family: var(--font-brand);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--green-900);
}
.card-header i {
    color: var(--green-600);
    margin-right: 0.25rem;
}
.card-body {
    padding: 1.25rem;
}
.card-footer {
    background: #ede9e1;
    border-top: 1px solid var(--earth-200);
    padding: 0.75rem 1.25rem;
}

/* Stat Cards — editorial left-border accent */
.stat-card {
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--gray-300);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: box-shadow var(--transition-fast);
}
.stat-card:hover {
    box-shadow: var(--card-shadow-hover);
}
.stat-card .card-body {
    padding: 1.25rem;
}
.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}
.stat-card .stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

/* Stat card accent variants */
.stat-card-green   { border-left-color: var(--green-600); }
.stat-card-teal    { border-left-color: var(--green-800); }
.stat-card-amber   { border-left-color: #d97706; }
.stat-card-blue    { border-left-color: #2563eb; }
.stat-card-red     { border-left-color: var(--danger); }
.stat-card-neutral { border-left-color: var(--gray-300); }


/* ── 8. TABLES ─────────────────────────────────────────────── */
.table {
    margin-bottom: 0;
    font-size: 0.875rem;
}
.table > thead > tr > th {
    background: var(--green-50);
    color: var(--green-900);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--green-100);
    white-space: nowrap;
}
.table > tbody > tr > td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
    color: var(--gray-700);
}
.table > tbody > tr:last-child > td {
    border-bottom: none;
}
.table-hover > tbody > tr:hover > td {
    background: var(--green-50);
}
.table > tfoot > tr > td {
    padding: 0.75rem 1rem;
    border-top: 2px solid var(--gray-200);
    background: var(--gray-50);
    font-weight: 600;
}
.table-borderless > tbody > tr > td {
    border-bottom: none;
}

/* Table links */
.table a {
    color: var(--gray-800);
    font-weight: 500;
    transition: color var(--transition-fast);
}
.table a:hover {
    color: var(--primary);
}


/* ── 9. BUTTONS ────────────────────────────────────────────── */
.btn {
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}
.btn i {
    font-size: 1rem;
}

.btn-green {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 1px 2px rgba(22, 163, 74, 0.2);
}
.btn-green:hover,
.btn-green:focus {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
    transform: translateY(-1px);
}
.btn-green:active {
    transform: translateY(0);
}

.btn-outline-secondary {
    color: var(--gray-600);
    border-color: var(--gray-300);
    background: white;
}
.btn-outline-secondary:hover {
    color: var(--gray-800);
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-outline-danger {
    color: var(--danger);
    border-color: rgba(239,68,68,0.3);
}
.btn-outline-danger:hover {
    color: white;
    background: var(--danger);
    border-color: var(--danger);
}

.btn-sm {
    font-size: 0.8125rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
}
.btn-lg {
    font-size: 1rem;
    padding: 0.625rem 1.5rem;
    border-radius: 10px;
}


/* ── 10. FORMS ─────────────────────────────────────────────── */
.form-label {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}

.form-control,
.form-select {
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-800);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    background-color: white;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--green-400);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
    outline: none;
}
.form-control::placeholder {
    color: var(--gray-400);
}

.form-control-sm,
.form-select-sm {
    font-size: 0.8125rem;
    border-radius: 6px;
}
.form-control-sm {
    padding: 0.35rem 0.65rem;
}
.form-select-sm {
    padding: 0.35rem 2.25rem 0.35rem 0.65rem;
}

.input-group-text {
    background: var(--gray-50);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.form-check-input {
    border-color: var(--gray-300);
    border-radius: 4px;
    width: 1.1em;
    height: 1.1em;
}
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
.form-check-input:focus {
    border-color: var(--green-400);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}
.form-switch .form-check-input {
    border-radius: 2em;
}


/* ── 11. BADGES ────────────────────────────────────────────── */
.badge {
    font-weight: 600;
    font-size: 0.6875rem;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Invoice Status */
.badge-unpaid {
    background: #dbeafe;
    color: #1d4ed8;
}
.badge-partial {
    background: #fef3c7;
    color: #b45309;
}
.badge-paid {
    background: var(--green-100);
    color: var(--green-800);
}
.badge-void {
    background: var(--gray-200);
    color: var(--gray-500);
}

/* Client Type */
.badge-weekly {
    background: var(--green-100);
    color: var(--green-800);
}
.badge-seasonal {
    background: #fef3c7;
    color: #b45309;
}
.badge-inactive {
    background: var(--gray-100);
    color: var(--gray-500);
}

/* Category */
.badge-category {
    background: var(--gray-100);
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: none;
}


/* ── 12. ALERTS ────────────────────────────────────────────── */
.alert {
    border-radius: 10px;
    border: none;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
}
.alert-success {
    background: var(--green-50);
    color: var(--green-800);
    border-left: 4px solid var(--green-500);
}
.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}
.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}
.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}


/* ── 13. QUICK ADD ─────────────────────────────────────────── */
.quick-add-row {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition-fast);
}
.quick-add-row:last-child {
    border-bottom: none;
}
.quick-add-row:hover {
    background: var(--green-50);
}
.quick-add-row.checked {
    background: var(--green-50);
    border-left: 3px solid var(--green-500);
}


/* ── 14. PROFIT/LOSS ───────────────────────────────────────── */
.profit-positive {
    color: var(--green-600) !important;
    font-weight: 600;
}
.profit-negative {
    color: var(--danger) !important;
    font-weight: 600;
}


/* ── 15. LOGIN PAGE ────────────────────────────────────────── */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 50%, var(--green-700) 100%);
    padding: 1rem;
}
.login-container {
    max-width: 420px;
    width: 100%;
}
.login-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}
.login-header {
    background: transparent;
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
}
.sidebar-brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.login-logo {
    width: 128px;
    height: 128px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.login-card .card-body {
    padding: 1.5rem 2rem 2.5rem;
}


/* ── 16. INVOICE PRINT ─────────────────────────────────────── */
.print-invoice {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}
.print-header {
    border-bottom: 3px solid var(--green-600);
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
}
.print-header h1 {
    color: var(--green-800);
    font-size: 1.75rem;
    margin: 0;
}
.print-header .invoice-label {
    color: var(--gray-600);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}
.invoice-meta td {
    padding: 3px 10px 3px 0;
    font-size: 0.9rem;
}
.line-items th {
    background: var(--green-50);
    color: var(--green-800);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.total-row {
    font-size: 1.15em;
}


/* ── 17. CHART CONTAINERS ──────────────────────────────────── */
canvas {
    max-width: 100%;
}


/* ── 17b. CARD VIEW-ALL LINK ───────────────────────────────── */
/* Replaces generic outline buttons at card bottoms */
.card-view-link {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--green-700);
    text-decoration: none;
    border-top: 1px solid var(--gray-100);
    margin-top: 0.75rem;
    transition: color var(--transition-fast);
    letter-spacing: 0.2px;
}
.card-view-link::after {
    content: ' →';
}
.card-view-link:hover {
    color: var(--green-900);
}


/* ── 18. FORM CARD HEADER ──────────────────────────────────── */
.form-card-header {
    background: var(--green-50);
    color: var(--green-900);
    font-family: var(--font-brand);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    border-bottom: 1px solid var(--green-100);
}


/* ── 18b. FILTER CARDS ─────────────────────────────────────── */
.filter-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: none;
}
.filter-card:hover {
    box-shadow: none;
}

/* Transparent toolbar — filter bars that sit directly on page bg */
.filter-toolbar {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.filter-toolbar:hover {
    box-shadow: none !important;
}
.filter-toolbar .card-body {
    padding: 0 0 0.75rem 0;
}


/* ── 19. SELECT ALL BUTTON ─────────────────────────────────── */
.btn-select-all {
    cursor: pointer;
    user-select: none;
}


/* ── 20. EMPTY STATES ──────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-400);
}
.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    color: var(--gray-300);
}

/* Empty table rows */
.table tbody td.text-center.text-muted {
    padding: 2.5rem 1rem !important;
    font-size: 0.875rem;
    color: var(--gray-400) !important;
    font-style: italic;
    letter-spacing: 0.2px;
}


/* ── 21. ERROR PAGE ────────────────────────────────────────── */
.error-page .display-1 {
    font-weight: 800;
    color: var(--gray-200);
}


/* ── 22. RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .top-bar-toggle {
        display: block;
    }
    .content-area {
        padding: 1rem;
    }
}

@media (max-width: 767.98px) {
    .page-header h1 {
        font-size: 1.25rem;
    }
    .stat-card .stat-value {
        font-size: 1.35rem;
    }
    .table {
        font-size: 0.8125rem;
    }
    .table > thead > tr > th,
    .table > tbody > tr > td {
        padding: 0.625rem 0.75rem;
    }
    .content-area {
        padding: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }
}


/* ── 23. PRINT STYLES ──────────────────────────────────────── */
@media print {
    .no-print,
    .sidebar,
    .top-bar,
    .app-footer {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
    }
    body {
        background: white;
        font-size: 12pt;
    }
    .content-area {
        padding: 0;
    }
    .card {
        border: none;
        box-shadow: none;
    }
    .print-invoice {
        max-width: 100%;
        padding: 0;
    }
    .print-invoice table {
        width: 100%;
        border-collapse: collapse;
    }
    .print-invoice th,
    .print-invoice td {
        padding: 8px 12px;
        border-bottom: 1px solid #ddd;
    }
    .print-invoice th {
        background-color: #f5f5f5 !important;
        font-weight: 600;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}


/* ── 24. UTILITY OVERRIDES ─────────────────────────────────── */
.shadow-sm {
    box-shadow: var(--card-shadow) !important;
}
.shadow-sm:hover {
    box-shadow: var(--card-shadow-hover) !important;
}
.bg-light {
    background-color: #f5f2ec !important;
}
.text-muted {
    color: var(--gray-500) !important;
}
.fw-bold {
    font-weight: 600 !important;
}

/* Dropdown menus (used in top-bar) */
.dropdown-menu {
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 0.375rem;
    font-size: 0.875rem;
}
.dropdown-item {
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    color: var(--gray-700);
    transition: all var(--transition-fast);
}
.dropdown-item:hover {
    background: var(--green-50);
    color: var(--green-800);
}

/* Scrollbar for main content */
.main-content {
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
}

/* Table light row */
.table-light td,
.table-light th {
    background: var(--gray-50) !important;
}


/* ── 25. ICON CLEANUP ──────────────────────────────────────── */
/* Suppress decorative icons in page headers and card headers
   across all templates — keeps the chrome icon-free globally */
.page-header h1 > i,
.card-header > i,
.card-header > span > i {
    display: none;
}

/* Suppress stat card icon column (not used on dashboard;
   hides it on any other page that uses the stat-card pattern) */
.stat-icon {
    display: none;
}
