/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #4c6fff;
    --primary-dark: #1a1d3f;
    --dark-navy: #0f1429;
    --dark-bg: #1a2139;
    --text-primary: #ffffff;
    --text-secondary: #8891b3;
    --border-color: #2d3552;
    --hover-bg: #252b47;
    --success-green: #22c55e;
    --warning-orange: #f97316;
    --error-red: #ef4444;
    --bg-light: #f8f9fc;
    --text-dark: #1f2937;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* (Trial banner removed) */

/* Main Container */
.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: var(--dark-navy);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    font-style: italic;
    color: var(--text-primary);
}

.sidebar-logo-img {
    max-width: 140px;
    height: auto;
    object-fit: contain;
}

/* Navigation */
.main-nav {
    flex: 1;
    padding: 10px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

.nav-item:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--primary-blue);
    color: var(--text-primary);
}

.nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    stroke-width: 2;
}

/* Expandable Nav Items */
.nav-item.expandable {
    display: block;
}

.nav-item-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.nav-item-header:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.expand-icon {
    width: 16px;
    height: 16px;
    margin-left: auto;
    stroke-width: 2;
    transition: transform 0.3s;
}

.nav-item.expandable.expanded .expand-icon {
    transform: rotate(180deg);
}

.nav-submenu {
    display: none;
    background: rgba(0, 0, 0, 0.2);
}

.nav-item.expandable.expanded .nav-submenu {
    display: block;
}

.nav-subitem {
    display: block;
    padding: 10px 20px 10px 52px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.nav-subitem:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.nav-subitem.active {
    color: var(--primary-blue);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.logo-small {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.version {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Top Bar */
.top-bar {
    background: white;
    padding: 15px 30px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.user-menu:hover {
    background: var(--bg-light);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.user-email {
    font-size: 12px;
    color: var(--text-secondary);
}

.user-role {
    font-size: 11px;
    color: var(--text-secondary);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.logout-btn:hover {
    background: #fef2f2;
}

.logout-btn svg {
    width: 20px;
    height: 20px;
    stroke: #dc2626;
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    stroke: var(--text-secondary);
}

.notifications-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.notifications-btn:hover {
    background: var(--bg-light);
}

.notifications-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-secondary);
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--error-red);
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: 600;
}

/* Page Content */
.page-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.page-content::-webkit-scrollbar {
    width: 8px;
}

.page-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Welcome Card */
.welcome-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.welcome-icon {
    width: 40px;
    height: 40px;
    stroke: var(--primary-blue);
    stroke-width: 2;
    flex-shrink: 0;
}

.welcome-card p {
    font-size: 15px;
    color: var(--text-dark);
    margin: 0;
}

.welcome-card a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.welcome-card a:hover {
    text-decoration: underline;
}

/* Setup Sections */
.setup-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.setup-checklist {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.checklist-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s;
    cursor: pointer;
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item:hover {
    background: var(--bg-light);
}

.checkbox-wrapper {
    position: relative;
    margin-right: 15px;
}

.checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    display: block;
    transition: all 0.2s;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checklist-item label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.checklist-text {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 400;
}

.chevron-right {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
    stroke-width: 2;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-blue);
    stroke-width: 2;
}

/* ── Buttons ── */
.btn-primary {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(76, 111, 255, 0.3);
}

.btn-primary:hover {
    background: #3d56d9;
    box-shadow: 0 4px 12px rgba(76, 111, 255, 0.35);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(76, 111, 255, 0.3);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
}

.btn-create {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(76, 111, 255, 0.3);
}

.btn-create:hover {
    background: #3d56d9;
    box-shadow: 0 4px 12px rgba(76, 111, 255, 0.35);
    transform: translateY(-1px);
}

.btn-create:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(76, 111, 255, 0.3);
}

/* Table action buttons */
.actions-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-edit {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-edit:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.btn-view {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    background: #eff6ff;
    color: #2563eb;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-view:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.1);
}

.btn-delete {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #fecaca;
    border-radius: 6px;
    background: #fff5f5;
    color: #dc2626;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}

.btn-delete:hover {
    background: #fef2f2;
    border-color: #f87171;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.1);
}

.btn-pay {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    background: #f0fdf4;
    color: #16a34a;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-pay:hover {
    background: #dcfce7;
    border-color: #86efac;
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.12);
}

/* Misc table helpers */
.data-table-wrapper {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.empty-row {
    text-align: center;
    padding: 40px 20px !important;
    color: var(--text-secondary);
    font-size: 14px;
}

.filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

/* Filters Bar */
.filters-bar {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    color: var(--text-dark);
}

.filter-btn:hover {
    background: var(--bg-light);
}

.filter-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.search-filter {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.search-input {
    padding: 7px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    width: 220px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: var(--primary-blue);
}

.search-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    padding: 2px 4px;
}

.search-clear:hover {
    color: #374151;
}

.search-box {
    flex: 1;
    max-width: 300px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 8px 12px 8px 35px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
}

.search-box::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat center;
}

.actions-dropdown {
    margin-left: auto;
}

/* Data Table */
.data-table {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--bg-light);
    border-bottom: 1px solid #e5e7eb;
}

thead th {
    padding: 12px 20px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s;
}

tbody tr:last-child {
    border-bottom: none;
}

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

tbody td {
    padding: 16px 20px;
    font-size: 14px;
    color: var(--text-dark);
}

.no-data {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 15px;
}

.table-footer {
    padding: 15px 20px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-light);
}

/* Hamburger button – hidden on desktop */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.2s;
    flex-shrink: 0;
}
.hamburger-btn:hover {
    background: var(--bg-light);
}
.hamburger-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-dark);
}

/* Sidebar overlay – hidden on desktop */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
}
.sidebar-overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }

    .page-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar {
        position: fixed;
        left: -240px;
        top: 0;
        width: 240px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s;
    }

    .sidebar.open {
        left: 0;
    }

    .main-content {
        width: 100%;
    }

    .top-bar {
        justify-content: flex-start;
    }

    .top-bar-actions {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        gap: 8px;
    }

    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: none;
    }
}

/* ========== Dashboard Styles ========== */

/* Period Selector */
.header-period {
    display: flex;
    align-items: center;
}

.period-select {
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    background: white;
    cursor: pointer;
}

/* Summary Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.dash-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: box-shadow 0.2s;
}

.dash-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.dash-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-card-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

.revenue-icon { background: #eef2ff; }
.revenue-icon svg { stroke: #4c6fff; }
.expense-icon { background: #fef2f2; }
.expense-icon svg { stroke: #ef4444; }
.profit-icon { background: #f0fdf4; }
.profit-icon svg { stroke: #22c55e; }
.outstanding-icon { background: #fff7ed; }
.outstanding-icon svg { stroke: #f97316; }

.dash-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-card-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.dash-card-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

.dash-card-change {
    font-size: 12px;
    font-weight: 500;
}

.dash-card-change.positive { color: #22c55e; }
.dash-card-change.negative { color: #ef4444; }
.dash-card-change.neutral { color: var(--text-secondary); }

/* Charts Row */
.dashboard-charts {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.chart-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.chart-legend {
    display: flex;
    gap: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.revenue-dot { background: #4c6fff; }
.expense-dot { background: #ef4444; }

/* Bar Chart */
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    height: 220px;
    padding: 10px 0;
}

.bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.bar-stack {
    flex: 1;
    width: 100%;
    display: flex;
    gap: 6px;
    align-items: flex-end;
    justify-content: center;
}

.bar {
    width: 28px;
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
    min-height: 4px;
}

.revenue-bar { background: #4c6fff; }
.expense-bar { background: #ef4444; }

.bar-label {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Donut Chart */
.donut-chart-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.donut-chart {
    position: relative;
    width: 180px;
    height: 180px;
}

.donut-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.donut-segment {
    fill: none;
    stroke-width: 3.5;
    stroke-linecap: round;
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.donut-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.donut-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.donut-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-dark);
}

.donut-legend-item strong {
    margin-left: auto;
    color: var(--text-secondary);
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Dashboard Tables Row */
.dashboard-tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dash-table-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.dash-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
}

.dash-table-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.view-all-link {
    font-size: 13px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.view-all-link:hover {
    text-decoration: underline;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
}

.dash-table thead {
    background: var(--bg-light);
}

.dash-table th {
    padding: 10px 22px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-table td {
    padding: 14px 22px;
    font-size: 14px;
    color: var(--text-dark);
    border-bottom: 1px solid #f3f4f6;
}

.dash-table tbody tr:last-child td {
    border-bottom: none;
}

.dash-table tbody tr:hover {
    background: var(--bg-light);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-paid {
    background: #f0fdf4;
    color: #16a34a;
}

.status-pending {
    background: #fff7ed;
    color: #ea580c;
}

.status-overdue {
    background: #fef2f2;
    color: #dc2626;
}

.status-partial {
    background: #eff6ff;
    color: #2563eb;
}

.status-draft {
    background: #f3f4f6;
    color: #6b7280;
}

/* Dashboard Responsive */
@media (max-width: 1200px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
    .dashboard-tables {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
}
