/* Rechnungstool - Admin Styles */

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #6b7280;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;

    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --text-color: #1f2937;
    --text-muted: #6b7280;

    --sidebar-width: 250px;
    --header-height: 60px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --radius: 8px;
    --radius-sm: 4px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

a:hover {
    text-decoration: underline;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 5px;
}

.login-header p {
    color: var(--text-muted);
}

.back-home-btn {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.2s;
}

.back-home-btn:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.login-form .form-group {
    margin-bottom: 20px;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group input[type="date"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.form-group select {
    padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    font-family: inherit;
}

.btn:hover {
    text-decoration: none;
}

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

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

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

.btn-secondary:hover {
    background-color: #5b6370;
}

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

.btn-success:hover {
    background-color: #059669;
}

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

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

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

.btn-outline:hover {
    background-color: var(--bg-color);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    padding: 8px;
    min-width: 36px;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

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

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: #6c757d;
    color: #e5e7eb;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #5a6268;
}

.sidebar-nav {
    padding: 16px 0;
}

.nav-item {
    display: block;
    padding: 12px 20px;
    color: #d1d5db;
    transition: all 0.15s;
}

.nav-item:hover {
    background-color: #5a6268;
    color: white;
    text-decoration: none;
}

.nav-item.active {
    background-color: #8ecae6;
    color: #1f2937;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    vertical-align: middle;
}

.nav-divider {
    height: 1px;
    background-color: #5a6268;
    margin: 16px 0;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* Header */
.header {
    height: var(--header-height);
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
}

/* Page Content */
.page-content {
    padding: 24px;
}

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

.page-header h1 {
    font-size: 24px;
    font-weight: 600;
}

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

/* Cards */
.card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

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

.card-header h2 {
    font-size: 16px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background-color: #f9fafb;
}

/* Dashboard Stats */
.stats-row {
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.stat-box {
    background: rgba(142, 202, 230, 0.25);
    border: 1px solid rgba(142, 202, 230, 0.3);
    border-radius: 6px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 88px;
}

.stat-box.stat-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.stat-box.stat-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.stat-icon {
    color: #1f2937;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    color: #1f2937;
}

.stat-value.text-danger {
    color: var(--danger-color);
}

/* Tables */
.table-container {
    overflow-x: auto;
}

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

table th,
table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background-color: #f9fafb;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
}

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

table .actions {
    display: flex;
    gap: 8px;
}

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

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-secondary {
    background-color: #e5e7eb;
    color: #4b5563;
}

.badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.tab {
    padding: 12px 20px;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.15s;
}

.tab:hover {
    color: var(--text-color);
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Search & Filter */
.filter-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: #6b7280;
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
    border-color: #8ecae6;
    box-shadow: 0 0 0 3px rgba(142, 202, 230, 0.2);
}

.search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 20px;
    height: 20px;
}

.filter-select {
    min-width: 150px;
    padding: 10px 32px 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    color: #6b7280;
    background-color: var(--card-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #8ecae6;
    box-shadow: 0 0 0 3px rgba(142, 202, 230, 0.2);
}

/* Action Buttons Row */
.actions-row {
    display: flex;
    gap: 6px;
    align-items: stretch;
}

.actions-row .btn {
    height: 32px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.actions-row form {
    display: inline-flex;
}

.btn-info {
    background-color: #8ecae6;
    color: #1f2937;
    border: 1px solid #8ecae6;
}

.btn-info:hover {
    background-color: #71b8d9;
    border-color: #71b8d9;
}

/* 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: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-muted);
    font-size: 24px;
    line-height: 1;
}

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

.modal-body {
    padding: 20px;
}

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

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-color);
}

.pagination a:hover {
    background-color: var(--bg-color);
    text-decoration: none;
}

.pagination .current {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

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

/* Invoice specific */
.invoice-total-row {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    padding: 12px 16px;
    font-size: 15px;
}

.invoice-total-row.grand-total {
    font-size: 18px;
    font-weight: 700;
    border-top: 2px solid var(--text-color);
}

.invoice-items-table input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
}

.invoice-items-table input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.invoice-items-table select {
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background-color: white;
}

.invoice-items-table .col-pos { width: 50px; }
.invoice-items-table .col-desc { }
.invoice-items-table .col-qty { width: 80px; }
.invoice-items-table .col-unit { width: 80px; }
.invoice-items-table .col-price { width: 110px; }
.invoice-items-table .col-tax { width: 90px; }
.invoice-items-table .col-total { width: 110px; }
.invoice-items-table .col-actions { width: 50px; }

.remove-row-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--danger-color);
    padding: 4px;
    border-radius: 4px;
}

.remove-row-btn:hover {
    background-color: #fee2e2;
}

/* Invoice view / print - A4 proportions (210mm x 297mm) */
.invoice-document {
    background: white;
    width: 210mm;
    min-height: 297mm;
    padding: 20mm 20mm 30mm 20mm;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    font-size: 12px;
    line-height: 1.5;
    position: relative;
}

.invoice-logo {
    text-align: center;
    height: 30mm;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.invoice-logo img {
    max-width: 180px;
    max-height: 20mm;
}

.invoice-qr-code {
    position: absolute;
    top: 53mm;
    right: 20mm;
    text-align: center;
    width: 25mm;
}

.invoice-qr-code img {
    width: 25mm;
    height: 25mm;
    display: block;
}

.invoice-qr-code span {
    display: block;
    font-size: 6pt;
    color: #6b7280;
    margin-top: 2px;
    line-height: 1.3;
}

.invoice-sender-line {
    font-size: 6pt;
    color: #6b7280;
    max-width: 45%;
    margin-bottom: 3px;
    margin-left: 2mm;
    line-height: 1.3;
    white-space: nowrap;
}

.invoice-client-address {
    margin-bottom: 40px;
    margin-left: 2mm;
    font-size: 13px;
    line-height: 1.7;
    max-width: 50%;
}

.invoice-title-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 30px;
    padding-bottom: 8px;
}

.invoice-title-number {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.invoice-title-date {
    font-size: 13px;
    color: var(--text-color);
}

.invoice-items-section {
    margin-bottom: 10px;
}

.invoice-items-section table th {
    background-color: transparent;
    color: var(--text-color);
    text-transform: none;
    font-size: 12px;
    font-weight: 600;
    border-bottom: 2px solid var(--text-color);
    border-top: 1px solid var(--text-color);
    padding: 8px 10px;
}

.invoice-items-section table td {
    padding: 10px 10px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
    font-size: 12px;
}

.invoice-totals {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.invoice-totals table {
    width: 300px;
}

.invoice-totals table td {
    padding: 6px 12px;
    border: none;
    font-size: 12px;
}

.invoice-totals table tr:last-child {
    font-weight: 700;
    font-size: 14px;
    border-top: 2px solid var(--text-color);
}

.invoice-payment-terms {
    margin-bottom: 20px;
    font-size: 12px;
    font-style: italic;
}

.invoice-closing {
    margin-bottom: 20px;
    font-size: 12px;
    line-height: 1.8;
}

.invoice-notes {
    margin-bottom: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

.invoice-page-footer {
    position: absolute;
    bottom: 15mm;
    left: 20mm;
    right: 20mm;
    display: grid;
    grid-template-columns: auto auto auto auto;
    justify-content: space-between;
    gap: 0;
    font-size: 6.5pt;
    color: #6b7280;
    border-top: 1px solid #d1d5db;
    padding-top: 8px;
    line-height: 1.5;
}

.invoice-footer-col {
    white-space: nowrap;
}

/* Client autocomplete */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.autocomplete-results.active {
    display: block;
}

.autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
}

.autocomplete-item:hover {
    background-color: #f9fafb;
}

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

.autocomplete-item .company {
    font-weight: 500;
}

.autocomplete-item .name {
    font-size: 13px;
    color: var(--text-muted);
}

/* Period Selector */
.period-selector {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px;
    border-radius: 8px;
}

.period-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.period-btn:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.5);
}

.period-btn.active {
    background: #8ecae6;
    color: #1f2937;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Payment progress */
.payment-progress {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 4px;
}

.payment-progress-bar {
    height: 100%;
    background: var(--success-color);
    border-radius: 4px;
    transition: width 0.3s;
}

/* Utility Classes */
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }

.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }

/* Print Styles */
@media print {
    .sidebar, .header, .page-header-actions, .btn, .no-print, .card.mt-4 {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .page-content {
        padding: 0 !important;
    }

    .invoice-document {
        box-shadow: none;
        border-radius: 0;
        width: 100%;
        min-height: auto;
        padding: 0;
        margin: 0;
    }

    .invoice-page-footer {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 40px;
    }

    .invoice-qr-code {
        top: 0;
        right: 0;
    }

    body {
        background: white;
    }

    @page {
        size: A4;
        margin: 15mm;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .filter-bar {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .invoice-page-footer {
        grid-template-columns: 1fr 1fr;
    }
}
