/* Roobert Font - Optimized WOFF2 with Latin subset */
@font-face {
    font-family: 'Roobert';
    src: url('../fonts/woff2/Roobert-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roobert';
    src: url('../fonts/woff2/Roobert-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roobert';
    src: url('../fonts/woff2/Roobert-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roobert';
    src: url('../fonts/woff2/Roobert-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-primary: #0B33C9;
    --color-primary-dark: #0A1F29;
    --color-primary-rgb: 11, 51, 201;
    --color-text: #1a1a2e;
    --color-text-light: #666;
    --color-background: #f5f7fa;
    --color-success: #22c55e;
    --color-success-light: #dcfce7;
    --color-accent: #f97316;
    --color-accent-light: #ffedd5;
    --color-border: #e5e7eb;
    --font-family: 'Roobert', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
}

body {
    font-family: var(--font-family);
    background: var(--color-background);
    min-height: 100vh;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1rem;
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(var(--color-primary-rgb), 0.08);
    color: var(--color-primary);
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--color-text-light);
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active {
    background: rgba(var(--color-primary-rgb), 0.08);
    color: var(--color-primary);
}

.nav-dropdown-trigger svg:first-child {
    opacity: 0.7;
}

.nav-dropdown-trigger:hover svg:first-child,
.nav-dropdown-trigger.active svg:first-child {
    opacity: 1;
}

.dropdown-chevron {
    transition: transform 0.2s ease;
    opacity: 0.5;
}

.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown.open .dropdown-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.08);
    min-width: 280px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: var(--color-background);
    margin-bottom: 4px;
}

.dropdown-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dropdown-header-icon.receivable {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.dropdown-header-icon.payable {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.dropdown-header-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}

.dropdown-header-subtitle {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 2px;
}

.dropdown-divider {
    height: 1px;
    background: var(--color-border);
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background: var(--color-background);
}

.dropdown-item.active {
    background: rgba(var(--color-primary-rgb), 0.08);
}

.dropdown-item.active .dropdown-item-title {
    color: var(--color-primary);
}

.dropdown-item svg {
    color: var(--color-text-light);
    flex-shrink: 0;
}

.dropdown-item:hover svg,
.dropdown-item.active svg {
    color: var(--color-primary);
}

.dropdown-item-content {
    flex: 1;
    min-width: 0;
}

.dropdown-item-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}

.dropdown-item-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 2px;
}

.dropdown-item-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    flex-shrink: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-btn:hover {
    opacity: 0.9;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-block {
    width: 100%;
    margin-bottom: 8px;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: #f3f4f6;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-accent {
    background: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-primary);
}

.btn-accent:hover {
    background: rgba(var(--color-primary-rgb), 0.15);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-outline:hover {
    background: rgba(var(--color-primary-rgb), 0.05);
}

/* Stats Bar */
.stats-bar {
    padding: 20px 0 0;
    display: flex;
    gap: 12px;
    align-items: stretch;
    background: var(--color-background);
}

.new-invoice-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 24px;
    background: white;
    border: 2px dashed var(--color-border);
    border-radius: 8px 8px 0 0;
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    min-width: 140px;
}

.new-invoice-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.02);
}

.new-invoice-btn-disabled {
    background: #f3f4f6;
    color: #999;
    border-color: #e5e7eb;
    cursor: pointer;
}

.new-invoice-btn-disabled:hover {
    background: #f3f4f6;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.stats-tabs {
    display: flex;
    gap: 0;
    flex: 1;
}

.stat-tab {
    flex: 1;
    background: white;
    border: 1px solid var(--color-border);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    position: relative;
    margin-left: -1px;
    text-decoration: none;
    display: block;
    color: inherit;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    box-sizing: border-box;
}

.stat-tab:first-child {
    margin-left: 0;
}

.stat-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.2s ease;
}

.stat-tab.active::after {
    background: var(--color-primary);
}

.stat-tab.active {
    background: white;
    z-index: 1;
}

.stat-tab:not(.active) {
    background: #f9fafb;
}

.stat-tab:hover:not(.active) {
    background: #f3f4f6;
}

.stat-tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

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

.stat-tab:not(.active) .stat-tab-label {
    color: var(--color-text-light);
}

.stat-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.stat-badge.positive {
    background: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-primary);
}

.stat-badge.neutral {
    background: #f3f4f6;
    color: var(--color-text-light);
}

.stat-tab-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2px;
}

.stat-tab-count {
    font-size: 0.8rem;
    color: var(--color-primary);
}

.stat-tab:not(.active) .stat-tab-count {
    color: var(--color-text-light);
}

/* App Container */
.app-container {
    display: flex;
    padding: 0 32px 32px;
    gap: 24px;
    margin-top: 64px;
    align-items: flex-start;
}

.main-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    background: white;
    border-radius: 0 0 8px 8px;
    min-height: 400px;
    border: 1px solid var(--color-border);
    border-top: none;
    overflow: visible;
}

/* For pages with non-tab stats, restore top border */
.main-content.with-border {
    border-top: 1px solid var(--color-border);
    border-radius: 8px;
}

/* Invoice Toolbar */
.invoice-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    background: white;
}

.search-box {
    position: relative;
    width: 280px;
}

.search-input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.9rem;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    opacity: 0.5;
}

.toolbar-actions {
    display: flex;
    gap: 12px;
}

.toolbar-actions form {
    display: inline-block;
}

.bulk-actions-select,
.sort-select {
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    min-width: 150px;
}

.bulk-actions-select:focus,
.sort-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Invoice List Wrapper - for animations */
.invoice-list-wrapper {
    position: relative;
}

.invoice-list-wrapper .invoice-list {
    transition: opacity 0.2s ease;
}

.invoice-list-wrapper.transitioning .invoice-list {
    opacity: 0;
}

/* Right Panel */
.right-panel {
    width: 320px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--color-border);
    height: fit-content;
    margin-top: 20px;
}

.panel-section {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.panel-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.panel-label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 6px;
}

.panel-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--color-text);
    background: white;
    cursor: pointer;
}

.panel-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Toggle Switch */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.toggle-row span {
    font-size: 0.9rem;
    color: var(--color-text);
}

.toggle {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle input:checked + .toggle-slider {
    background-color: var(--color-primary);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.toggle input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-row.disabled {
    opacity: 0.6;
}

/* Button disabled state */
.btn.disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Pro badge small */
.pro-badge-small {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    padding: 2px 6px;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 3px;
    letter-spacing: 0.5px;
    margin-left: 8px;
    vertical-align: middle;
}

.section-title {
    display: flex;
    align-items: center;
}

/* Button with icon */
.btn svg {
    flex-shrink: 0;
}

.btn-accent.btn-block,
.btn-secondary.btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Progress Bar */
.progress-section {
    padding: 4px 0;
}

.progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), #ef4444);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.progress-text span {
    color: var(--color-primary);
    font-weight: 500;
}

.progress-text a {
    color: #ef4444;
    text-decoration: none;
    font-weight: 600;
}

.progress-text a:hover {
    text-decoration: underline;
}

/* Button danger */
.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Invoice List */
.invoice-list {
    padding: 0;
}

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

.invoices-table th,
.invoices-table td {
    padding: 14px 16px;
    text-align: left;
}

.invoices-table thead tr {
    background: var(--color-primary);
}

.invoices-table th {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    text-transform: capitalize;
    letter-spacing: 0;
}

.invoices-table th:first-child {
    width: 50px;
}

.invoices-table tbody tr {
    border-bottom: 1px solid var(--color-border);
    transition: background 0.15s ease;
}

.invoices-table tbody tr:hover {
    background: #f9fafb;
}

.invoices-table td {
    font-size: 0.9rem;
    color: var(--color-text);
}

.invoices-table td a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
}

.invoices-table td a:hover {
    color: var(--color-primary);
}

.client-link {
    color: var(--color-text-light) !important;
    font-weight: 400 !important;
}

.client-link:hover {
    color: var(--color-primary) !important;
    text-decoration: underline;
}

/* Checkbox styling */
.select-all-checkbox,
.row-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

/* Actions menu button */
.actions-menu-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.actions-menu-btn:hover {
    background: #f3f4f6;
    color: var(--color-text);
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-draft {
    background: #f3f4f6;
    color: var(--color-text-light);
}

.status-pending {
    background: #fef3c7;
    color: #d97706;
}

.status-paid {
    background: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-primary);
}

.status-overdue {
    background: #fee2e2;
    color: #ef4444;
}

.actions-cell {
    text-align: center;
    position: relative;
}

/* Actions Dropdown */
.actions-dropdown {
    position: relative;
    display: inline-block;
}

.actions-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    z-index: 100;
    padding: 8px 0;
}

.actions-dropdown.open .actions-menu {
    display: block;
}

.actions-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s ease;
}

.actions-menu-item:hover {
    background: #f3f4f6;
}

.actions-menu-item.active {
    background: rgba(var(--color-primary-rgb), 0.05);
    color: var(--color-primary);
}

.actions-menu-item.danger {
    color: #ef4444;
}

.actions-menu-item.danger:hover {
    background: #fef2f2;
}

.actions-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.actions-menu-divider {
    height: 1px;
    background: var(--color-border);
    margin: 8px 0;
}

.actions-menu-label {
    padding: 6px 16px;
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Status dots for menu */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.draft {
    background: #9ca3af;
}

.status-dot.pending {
    background: #f59e0b;
}

.status-dot.paid {
    background: var(--color-primary);
}

.status-dot.overdue {
    background: #ef4444;
}

.action-link {
    font-size: 0.85rem;
    color: var(--color-primary);
    text-decoration: none;
}

.action-link:hover {
    text-decoration: underline;
}

.action-link.danger {
    color: #ef4444;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--color-text-light);
    margin-bottom: 24px;
}

/* Invoice Form */
.invoice-form-container {
    padding: 24px;
}

.invoice-header-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.invoice-header-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ef4444;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.close-btn:hover {
    background: #fee2e2;
}

/* Logo Upload Area */
.logo-upload-wrapper {
    position: relative;
    display: inline-block;
}

.logo-upload-area {
    position: relative;
    width: 120px;
    height: 120px;
    border: 2px dashed var(--color-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: visible;
    background: #f9fafb;
}

.logo-upload-area:hover {
    border-color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.02);
}

.logo-placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--color-text-light);
}

.logo-upload-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-primary);
}

.logo-upload-text {
    font-size: 0.75rem;
    text-align: center;
}

.logo-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-input {
    display: none;
}

.logo-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: none;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.logo-remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Document Title Input */
.document-title-input {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    padding: 16px 20px !important;
    border: 2px dashed var(--color-border) !important;
    border-radius: 8px !important;
    background: #f9fafb !important;
    text-align: right;
    color: var(--color-text);
    width: 100%;
    transition: all 0.2s ease;
}

.document-title-input:focus {
    border-color: var(--color-primary) !important;
    background: white !important;
    outline: none;
}

.document-title-input::placeholder {
    color: #9ca3af;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-grid-header {
    align-items: start;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-column-right {
    align-items: flex-end;
}

.form-column-right .form-group {
    width: 100%;
    max-width: 280px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.compact {
    gap: 0;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Input with label inside */
.input-with-label {
    position: relative;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #f9fafb;
    padding: 6px 12px 8px;
    transition: border-color 0.2s, background 0.2s;
}

.input-with-label:focus-within {
    border-color: var(--color-primary);
    background: white;
}

.input-with-label .input-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.input-with-label .form-input,
.input-with-label .form-select {
    border: none;
    background: transparent;
    padding: 0;
    width: 100%;
    font-size: 0.9rem;
    color: var(--color-text);
}

.input-with-label .form-input:focus,
.input-with-label .form-select:focus {
    outline: none;
    border: none;
    background: transparent;
}

.input-with-label textarea.form-input {
    min-height: 40px;
    resize: vertical;
}

.section-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.form-input,
.form-select {
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--color-text);
    background: #f9fafb;
    transition: border-color 0.2s, background 0.2s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
}

.form-input::placeholder {
    color: #9ca3af;
}

textarea.form-input {
    resize: vertical;
    min-height: 60px;
}

/* Items Section */
.items-section {
    margin-bottom: 24px;
}

.items-table {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.items-header {
    display: grid;
    grid-template-columns: 2fr 100px 100px 120px 40px;
    gap: 12px;
    padding: 12px 16px;
    background: var(--color-primary);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.item-row {
    display: grid;
    grid-template-columns: 2fr 100px 100px 120px 40px;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    align-items: center;
}

.item-row:last-of-type {
    border-bottom: none;
}

.item-col-desc .form-input,
.item-col-qty .form-input,
.item-col-rate .form-input {
    width: 100%;
    padding: 8px 10px;
}

.item-amount {
    font-weight: 500;
    color: var(--color-text);
}

.remove-item-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
}

.remove-item-btn:hover {
    color: #dc2626;
}

.add-item-btn {
    display: inline-block;
    margin: 16px;
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.add-item-btn:hover {
    background: rgba(var(--color-primary-rgb), 0.05);
}

/* Form Bottom */
.form-bottom {
    margin-top: 24px;
}

.char-count {
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-align: right;
    margin-top: 4px;
}

/* Totals Box */
.totals-box {
    background: #f9fafb;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.total-row:last-child {
    border-bottom: none;
}

.total-row span {
    font-size: 0.9rem;
    color: var(--color-text);
}

.total-row a {
    font-size: 0.9rem;
    color: var(--color-primary);
    text-decoration: none;
}

.total-row a:hover {
    text-decoration: underline;
}

.total-main span {
    font-weight: 600;
}

.balance-due span {
    color: var(--color-primary);
    font-weight: 600;
}

.tax-row,
.discount-row,
.shipping-row,
.amount-paid-row {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.tax-input-group,
.calc-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.tax-input-group label,
.calc-input-group label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    min-width: 80px;
}

.tax-input-group .form-input,
.calc-input-group .form-input {
    width: 100px;
    padding: 8px 10px;
}

.tax-type-toggle,
.calc-type-toggle {
    flex-shrink: 0;
}

.add-link {
    font-size: 0.9rem;
    color: var(--color-primary);
    text-decoration: none;
}

.add-link:hover {
    text-decoration: underline;
}

.form-select-small {
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.85rem;
    background: white;
}

/* Delete Confirmation */
.delete-confirm-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 64px;
}

.delete-confirm-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.delete-confirm-box h2 {
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 16px;
}

.delete-confirm-box p {
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.delete-confirm-box .warning-text {
    color: #ef4444;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.delete-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.delete-actions .btn {
    min-width: 120px;
}

/* Page Header */
.page-header {
    margin-top: 64px;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
}

/* Full Width Main Content */
.main-content.full-width {
    max-width: 100%;
}

/* Client List */
.client-list {
    padding: 20px;
}

/* Client Form */
.client-form-container {
    max-width: 500px;
    padding: 32px;
}

.client-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

.client-invoices {
    margin-top: 32px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 8px;
}

.client-invoices h3 {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 16px;
}

/* Datalist styling hint */
#client-name-input {
    position: relative;
}

/* Text decoration none for links that look like buttons */
a.btn {
    text-decoration: none;
}

/* Form Errors */
.form-errors {
    background: #fee2e2;
    border: 1px solid #ef4444;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    color: #dc2626;
}

.form-errors strong {
    display: block;
    margin-bottom: 8px;
}

.form-errors ul {
    margin: 0;
    padding-left: 20px;
}

.form-errors li {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

/* Analytics Panel */
.analytics-panel {
    width: 320px;
}

.analytics-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
}

/* Period Selector */
.period-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.period-btn {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: white;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.period-btn:hover {
    border-color: var(--color-text-light);
}

.period-btn.active {
    background: #f3f4f6;
    border-color: var(--color-border);
}

.period-vs {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 500;
}

/* Payments Bar */
.payments-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: #e5e7eb;
    margin-bottom: 16px;
}

.payments-bar-segment {
    height: 100%;
    transition: width 0.3s ease;
}

.payments-bar-segment.paid {
    background: var(--color-primary);
}

.payments-bar-segment.pending {
    background: #f59e0b;
}

.payments-bar-segment.overdue {
    background: #ef4444;
}

.payments-bar-segment.empty {
    width: 100%;
    background: #e5e7eb;
}

/* Payments Legend */
.payments-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

.legend-color.paid {
    background: var(--color-primary);
}

.legend-color.pending {
    background: #f59e0b;
}

.legend-color.overdue {
    background: #ef4444;
}

.legend-label {
    font-size: 0.9rem;
    color: var(--color-text);
    flex: 1;
}

.legend-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}

/* Gross Volume Section */
.gross-volume-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.gross-volume-label {
    font-size: 0.9rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 4px;
}

.info-icon {
    font-size: 0.85rem;
    color: var(--color-text-light);
    cursor: help;
}

.gross-volume-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.gross-volume-comparison {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

/* Volume Tabs */
.volume-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.volume-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: white;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-tab:first-child {
    border-right: 1px solid var(--color-border);
}

.volume-tab:hover {
    background: #f9fafb;
}

.volume-tab.active {
    background: var(--color-primary);
    color: white;
}

/* Volume Chart */
.volume-chart {
    position: relative;
    padding-left: 35px;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--color-text-light);
    text-align: right;
    padding-right: 8px;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 20px;
    width: 30px;
}

.chart-area {
    height: 120px;
    border-bottom: 1px solid var(--color-border);
}

.chart-svg {
    width: 100%;
    height: 100%;
}

.chart-x-axis {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--color-text-light);
    padding-top: 4px;
}

/* Total Invoices Section */
.total-invoices-count {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
}

.total-invoices-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.currency-total {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: var(--color-background);
    border-radius: 8px;
}

.currency-symbol {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    width: 20px;
}

.currency-amount {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.no-invoices-text {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Authentication Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    background: var(--color-background);
}

.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form .form-group {
    gap: 4px;
}

.auth-form .input-with-label {
    padding: 10px 14px 12px;
}

.auth-form .input-with-label .input-label {
    font-size: 0.7rem;
    margin-bottom: 4px;
}

.auth-form .input-with-label .form-input {
    font-size: 1rem;
}

.auth-submit {
    margin-top: 8px;
    padding: 14px 20px;
    font-size: 1rem;
}

.auth-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.auth-errors p {
    color: #dc2626;
    font-size: 0.9rem;
    margin: 0;
}

.field-error {
    display: block;
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 4px;
}

.input-with-label.has-error {
    border-color: #ef4444;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.auth-footer p {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* User menu in navbar */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-greeting {
    font-size: 0.9rem;
    color: var(--color-text);
}

.user-greeting strong {
    font-weight: 600;
}

.btn-logout {
    background: transparent;
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-logout:hover {
    background: #f3f4f6;
    color: var(--color-text);
}

.btn-upgrade {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-upgrade:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.btn-upgrade svg {
    flex-shrink: 0;
    color: #f59e0b;
}

.pro-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Messages/Notifications */
.messages-container {
    position: fixed;
    top: 80px;
    right: 32px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInMessage 0.3s ease-out;
}

@keyframes slideInMessage {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.message-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.message-warning {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

.message-info {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.message-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    padding: 0;
    line-height: 1;
}

.message-close:hover {
    opacity: 1;
}

/* Settings Icon in Navbar */
.settings-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--color-text-light);
    transition: all 0.2s ease;
}

.settings-icon-btn:hover,
.settings-icon-btn.active {
    background: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-primary);
}

/* Settings Page */
.settings-page {
    min-height: 100vh;
    padding-top: 64px;
    background: var(--color-background);
}

.settings-header {
    padding: 24px 32px;
    background: white;
    border-bottom: 1px solid var(--color-border);
}

.settings-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.settings-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
    gap: 32px;
}

/* Settings Sidebar */
.settings-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    padding: 8px;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.settings-nav-item:hover {
    background: #f9fafb;
}

.settings-nav-item.active {
    background: rgba(var(--color-primary-rgb), 0.05);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
}

.settings-nav-item svg {
    flex-shrink: 0;
}

.settings-nav-item .external-icon {
    margin-left: auto;
    opacity: 0.5;
}

/* Settings Content */
.settings-content {
    flex: 1;
    min-width: 0;
}

.settings-section {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    padding: 32px;
}

.settings-section-header {
    margin-bottom: 24px;
}

.settings-section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.settings-section-header p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Plan Badge */
.settings-plan {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.plan-label {
    font-size: 0.95rem;
    color: var(--color-text);
}

.plan-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #374151;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.upgrade-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.upgrade-link:hover {
    text-decoration: underline;
}

.upgrade-link svg {
    color: #f59e0b;
}

/* Settings Form */
.settings-form {
    margin-bottom: 0;
}

.settings-field-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.settings-input-large {
    flex: 1;
    max-width: 500px;
}

.settings-input-large.readonly {
    opacity: 0.7;
}

.settings-input-large.readonly .form-input {
    cursor: not-allowed;
    background: #f3f4f6;
}

.settings-divider {
    height: 1px;
    background: var(--color-border);
    margin: 32px 0;
}

/* Settings Subsection */
.settings-subsection h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.settings-description {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 16px;
    max-width: 600px;
}

/* Danger Zone */
.danger-zone .danger-title {
    color: #dc2626;
}

.danger-input {
    border-color: #fecaca;
}

.danger-input:focus-within {
    border-color: #ef4444;
}

.btn-danger-muted {
    background: #fecaca;
    color: #991b1b;
    border: none;
}

.btn-danger-muted:hover {
    background: #fca5a5;
}

/* Coming Soon */
.coming-soon {
    color: var(--color-text-light);
    font-style: italic;
    padding: 40px 0;
    text-align: center;
}

/* Settings Form Groups */
.settings-form-group {
    margin-bottom: 20px;
}

.settings-form-group .input-with-label {
    max-width: 500px;
}

.field-hint {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 6px;
    max-width: 500px;
}

.settings-form-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.settings-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
}

.settings-logo-area {
    width: 100px;
    height: 100px;
}

/* Settings Two-Column Layout */
.settings-two-column {
    display: flex;
    gap: 48px;
}

.settings-column-left {
    flex: 1;
    max-width: 400px;
}

.settings-column-right {
    width: 200px;
    flex-shrink: 0;
}

.settings-column-left .settings-form-group {
    margin-bottom: 16px;
}

.settings-column-left .settings-form-group .input-with-label {
    max-width: 100%;
}

.settings-column-right .settings-form-group {
    margin-bottom: 20px;
}

.settings-column-right .input-with-label {
    max-width: 100%;
}

@media (max-width: 768px) {
    .settings-two-column {
        flex-direction: column;
        gap: 24px;
    }

    .settings-column-left,
    .settings-column-right {
        max-width: 100%;
        width: 100%;
    }
}

/* Subscription Cards */
.subscription-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 700px;
}

.subscription-card {
    position: relative;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
}

.subscription-card.current {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary);
}

.subscription-card.pro {
    border-color: #f59e0b;
}

.subscription-card.pro.current {
    border-color: #f59e0b;
    box-shadow: 0 0 0 1px #f59e0b;
}

.subscription-card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
}

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

.subscription-card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.subscription-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
}

.price-period {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.subscription-features {
    list-style: none;
    margin-bottom: 24px;
}

.subscription-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--color-text);
}

.subscription-features li svg {
    flex-shrink: 0;
    color: var(--color-success);
}

.subscription-features li.disabled {
    color: var(--color-text-light);
}

.subscription-features li.disabled svg {
    color: #d1d5db;
}

.subscription-card-footer {
    margin-top: auto;
}

.current-plan-badge {
    display: block;
    text-align: center;
    padding: 10px 16px;
    background: #f3f4f6;
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
}

.current-plan-badge.pro {
    background: linear-gradient(135deg, #fef3c7 0%, #ffedd5 100%);
    color: #92400e;
}

.pro-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-success);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.premium-since {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.plan-badge.pro {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
}

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

/* ==========================================================================
   Clients Page Styles
   ========================================================================== */

.clients-page {
    padding: 84px 32px 32px;
    max-width: 1400px;
    margin: 0 auto;
}

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

.clients-header-left {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.clients-header-left h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.clients-count {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.clients-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.clients-header-right .search-box {
    position: relative;
}

.clients-header-right .search-input {
    padding-left: 36px;
    width: 240px;
}

.search-icon-svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
    pointer-events: none;
}

.clients-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 24px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.client-card {
    display: block;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.client-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.15);
    transform: translateY(-2px);
}

.client-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.client-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-primary), #4f7df3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.client-avatar.large {
    width: 64px;
    height: 64px;
    font-size: 1.25rem;
    border-radius: 14px;
}

.client-info {
    flex: 1;
    min-width: 0;
}

.client-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-email {
    font-size: 0.85rem;
    color: var(--color-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-card-stats {
    display: flex;
    gap: 24px;
    padding: 14px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 14px;
}

.client-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.client-stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.client-stat-label {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.client-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.client-card-action {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary);
}

.client-card-footer svg {
    color: var(--color-primary);
}

/* Empty state card */
.empty-state-card {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: var(--color-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--color-text-light);
}

.empty-state-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.empty-state-card p {
    color: var(--color-text-light);
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Client Detail Page Styles
   ========================================================================== */

.client-detail-page {
    padding: 84px 32px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.client-detail-header {
    margin-bottom: 24px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--color-primary);
}

.client-detail-container {
    display: flex;
    gap: 24px;
}

.client-detail-main {
    flex: 1;
    min-width: 0;
}

.client-detail-sidebar {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.client-profile-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 20px;
}

.client-profile-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.client-profile-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 4px 0;
}

.client-profile-email {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin: 0;
}

.client-profile-meta {
    display: flex;
    gap: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.meta-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}

.client-form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 24px;
}

.client-form-card h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 20px 0;
}

.client-form .form-group {
    margin-bottom: 16px;
}

.client-form .form-input,
.client-form textarea {
    width: 100%;
}

.client-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

/* Sidebar cards */
.client-stats-card,
.client-actions-card,
.client-invoices-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

.client-stats-card h3,
.client-actions-card h3,
.client-invoices-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 16px 0;
}

.client-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.client-stats-item {
    text-align: center;
    padding: 12px;
    background: var(--color-background);
    border-radius: 8px;
}

.client-stats-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.client-stats-label {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-danger-outline {
    background: transparent;
    border: 1px solid #dc2626;
    color: #dc2626;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-danger-outline:hover {
    background: #dc2626;
    color: white;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.85rem;
}

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

.card-header h3 {
    margin: 0;
}

.invoice-count {
    background: var(--color-background);
    color: var(--color-text-light);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
}

.invoice-list-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.invoice-item-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--color-background);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.invoice-item-compact:hover {
    background: #e8ecf0;
}

.invoice-item-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.invoice-number {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
}

.invoice-date {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.invoice-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.invoice-amount {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
}

.status-badge.small {
    font-size: 0.7rem;
    padding: 2px 8px;
}

.client-invoices-card.empty {
    padding: 0;
}

.empty-invoices {
    text-align: center;
    padding: 32px 20px;
    color: var(--color-text-light);
}

.empty-invoices svg {
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-invoices p {
    margin: 0 0 16px 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .client-detail-container {
        flex-direction: column;
    }

    .client-detail-sidebar {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .clients-page,
    .client-detail-page {
        padding: 74px 16px 16px;
    }

    .clients-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .clients-header-right {
        flex-direction: column;
    }

    .clients-header-right .search-input {
        width: 100%;
    }

    .clients-grid {
        grid-template-columns: 1fr;
    }

    .client-profile-meta {
        flex-direction: column;
        gap: 12px;
    }
}

/* Delete Confirmation Card */
.delete-confirm-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 40px;
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.delete-icon {
    width: 64px;
    height: 64px;
    background: #fef2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #dc2626;
}

.delete-confirm-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 24px 0;
}

.client-to-delete {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: var(--color-background);
    border-radius: 10px;
    margin-bottom: 20px;
}

.client-delete-name {
    font-weight: 600;
    color: var(--color-text);
}

.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: left;
}

.warning-box svg {
    color: #d97706;
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-box span {
    font-size: 0.9rem;
    color: #92400e;
    line-height: 1.4;
}

.delete-message {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin: 0 0 24px 0;
}

.delete-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-danger {
    background: #dc2626;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

.site-footer {
    background: white;
    border-top: 1px solid var(--color-border);
    margin-top: 60px;
    padding: 48px 32px 24px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    margin-bottom: 12px;
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column a {
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 32px;
    }

    .footer-column {
        min-width: 140px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.2s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--color-background);
    color: var(--color-text);
}

.modal-body {
    padding: 24px;
}

.modal-description {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--color-border);
    background: var(--color-background);
    border-radius: 0 0 12px 12px;
}

/* Reminder Method Selector */
.reminder-method-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.method-option {
    flex: 1;
    cursor: pointer;
}

.method-option input {
    display: none;
}

.method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    border: 2px solid var(--color-border);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.method-card svg {
    color: var(--color-text-light);
    transition: color 0.2s ease;
}

.method-card span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}

.method-option input:checked + .method-card {
    border-color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.05);
}

.method-option input:checked + .method-card svg {
    color: var(--color-primary);
}

.method-option:hover .method-card {
    border-color: var(--color-primary);
}

/* Reminder Timing */
.reminder-timing {
    margin-top: 24px;
}

.reminder-timing h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
}

.timing-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.timing-option:last-child {
    border-bottom: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-text);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

.days-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.days-input input {
    width: 60px;
    text-align: center;
    padding: 6px 10px;
}

.days-input span {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Current Reminder Status */
.current-reminder-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 16px;
    background: var(--color-success-light);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--color-text);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-light);
}

.status-dot.active {
    background: var(--color-success);
}

/* Reminder Badge */
.reminder-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--color-success);
    color: white;
    border-radius: 4px;
    margin-left: 8px;
}

/* Modal responsive */
@media (max-width: 540px) {
    .modal {
        max-width: 100%;
        margin: 10px;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }

    .reminder-method-selector {
        flex-direction: column;
    }
}

/* =============================================================================
   BREADCRUMB NAVIGATION
   ============================================================================= */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb span:last-child {
    color: var(--color-text);
    font-weight: 500;
}

.breadcrumb-sep {
    color: var(--color-border);
    font-weight: 400;
}

/* =============================================================================
   BILLS / ACCOUNTS PAYABLE STYLES
   ============================================================================= */

/* AI Badge */
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

.ai-badge svg {
    flex-shrink: 0;
}

/* AI Notice */
.ai-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--color-text);
}

.ai-notice svg {
    color: #8b5cf6;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

/* Bills action buttons */
.bills-action-buttons {
    display: flex;
    gap: 10px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: white;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-background);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* AI Upload Button */
.btn-ai {
    gap: 6px;
}

.btn-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    border-radius: 8px;
    margin-left: 4px;
}

.btn-ai-badge svg {
    flex-shrink: 0;
}

.btn-ai:hover .btn-ai-badge {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 40px;
}

.empty-state-icon {
    margin-bottom: 24px;
    color: var(--color-text-light);
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.empty-state-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Analytics panel styles for bills */
.analytics-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.analytics-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.analytics-stat:last-child {
    border-bottom: none;
}

.analytics-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.analytics-value {
    font-size: 1rem;
    font-weight: 600;
}

.analytics-value.pending {
    color: var(--color-warning);
}

.analytics-value.overdue {
    color: var(--color-danger);
}

.analytics-value.paid {
    color: var(--color-success);
}

/* Quick actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--color-background);
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    background: rgba(var(--color-primary-rgb), 0.08);
    color: var(--color-primary);
}

.quick-action-btn svg {
    color: var(--color-text-light);
}

.quick-action-btn:hover svg {
    color: var(--color-primary);
}

/* Original file preview */
.original-file-preview {
    margin-top: 12px;
}
