/* ============================================================
   QBClone - QuickBooks Desktop-inspired theme
   ============================================================ */

:root {
    --qb-navy: #1B2A4A;
    --qb-navy-light: #2C4068;
    --qb-blue: #336699;
    --qb-blue-light: #4A90D9;
    --qb-green: #2E7D32;
    --qb-green-light: #4CAF50;
    --qb-amber: #E65100;
    --qb-amber-light: #FF8F00;
    --qb-teal: #00695C;
    --qb-teal-light: #00897B;
    --qb-purple: #5E35B1;
    --qb-red: #C62828;
    --qb-gray-100: #F5F5F5;
    --qb-gray-200: #EEEEEE;
    --qb-gray-300: #E0E0E0;
    --qb-gray-400: #BDBDBD;
    --qb-gray-500: #9E9E9E;
    --qb-gray-600: #757575;
    --qb-gray-700: #616161;
    --qb-white: #FFFFFF;
    --qb-text: #212121;
    --qb-text-light: #757575;
    --qb-border: #D0D0D0;
    --qb-shadow: rgba(0, 0, 0, 0.12);
}

/* -- Reset & Base -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    color: var(--qb-text);
    background: var(--qb-gray-200);
    line-height: 1.4;
}

a { color: var(--qb-blue); text-decoration: none; }
a:hover { color: var(--qb-blue-light); text-decoration: underline; }

/* ============================================================
   Title Bar
   ============================================================ */

.qb-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, var(--qb-navy-light) 0%, var(--qb-navy) 100%);
    color: white;
    padding: 6px 16px;
    height: 36px;
    user-select: none;
}

.qb-titlebar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qb-titlebar-left i { font-size: 18px; }

.qb-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.qb-titlebar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.qb-user {
    font-size: 12px;
    opacity: 0.9;
}

.qb-titlebar-link {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    text-decoration: none;
}
.qb-titlebar-link:hover {
    color: white;
    text-decoration: none;
}

/* ============================================================
   Menu Bar
   ============================================================ */

.qb-menubar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--qb-gray-100);
    border-bottom: 1px solid var(--qb-border);
    padding: 0 8px;
    height: 32px;
    box-shadow: 0 1px 2px var(--qb-shadow);
}

.qb-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.qb-menu-item {
    position: relative;
}

.qb-menu-item > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    color: var(--qb-text);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.15s;
}

.qb-menu-item > a:hover {
    background: var(--qb-gray-300);
    text-decoration: none;
}

.qb-menu-item > a .bi-chevron-down { font-size: 9px; opacity: 0.5; }

/* Dropdown */
.qb-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--qb-white);
    border: 1px solid var(--qb-border);
    border-radius: 4px;
    box-shadow: 0 4px 12px var(--qb-shadow);
    list-style: none;
    padding: 4px 0;
    z-index: 1000;
}

.qb-has-dropdown:hover .qb-dropdown { display: block; }

.qb-dropdown li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    color: var(--qb-text);
    font-size: 12px;
    text-decoration: none;
    transition: background 0.1s;
}

.qb-dropdown li a:hover {
    background: var(--qb-blue);
    color: white;
    text-decoration: none;
}

.qb-dropdown-divider {
    height: 1px;
    background: var(--qb-gray-300);
    margin: 4px 0;
}

/* Store Switcher (title bar) */
.qb-store-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #ccc;
    margin-right: 8px;
    padding: 2px 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.qb-store-switcher select {
    font-size: 12px;
    padding: 3px 8px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 3px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    min-width: 160px;
}

.qb-store-switcher select option {
    background: #fff;
    color: #333;
}

/* ============================================================
   Main Content
   ============================================================ */

.qb-main {
    padding: 16px;
    min-height: calc(100vh - 68px);
}

/* ============================================================
   Home Page - QB Desktop Workflow Icons
   ============================================================ */

.qb-home {
    max-width: 960px;
    margin: 0 auto;
}

.qb-home-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.qb-home-section {
    background: var(--qb-white);
    border-radius: 6px;
    border: 1px solid var(--qb-border);
    overflow: hidden;
    box-shadow: 0 1px 3px var(--qb-shadow);
}

.qb-section-header {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qb-header-vendors  { background: linear-gradient(135deg, var(--qb-amber) 0%, var(--qb-amber-light) 100%); }
.qb-header-customers { background: linear-gradient(135deg, var(--qb-green) 0%, var(--qb-green-light) 100%); }
.qb-header-company   { background: linear-gradient(135deg, var(--qb-purple) 0%, #7E57C2 100%); }
.qb-header-banking   { background: linear-gradient(135deg, var(--qb-teal) 0%, var(--qb-teal-light) 100%); }

.qb-section-body {
    padding: 20px 16px;
}

.qb-workflow-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.qb-workflow-arrow {
    color: var(--qb-gray-400);
    font-size: 16px;
}

.qb-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--qb-text);
    transition: background 0.15s, transform 0.1s;
    min-width: 80px;
    text-align: center;
}

.qb-icon-btn:hover {
    background: var(--qb-gray-100);
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--qb-text);
}

.qb-icon-btn span {
    font-size: 11px;
    line-height: 1.3;
    font-weight: 500;
}

.qb-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 2px 4px var(--qb-shadow);
}

.qb-icon-circle.vendors  { background: linear-gradient(135deg, var(--qb-amber) 0%, var(--qb-amber-light) 100%); }
.qb-icon-circle.customers { background: linear-gradient(135deg, var(--qb-green) 0%, var(--qb-green-light) 100%); }
.qb-icon-circle.company   { background: linear-gradient(135deg, var(--qb-purple) 0%, #7E57C2 100%); }
.qb-icon-circle.banking   { background: linear-gradient(135deg, var(--qb-teal) 0%, var(--qb-teal-light) 100%); }

/* No Store Selected */
.qb-no-store {
    text-align: center;
    padding: 80px 20px;
    color: var(--qb-text-light);
}
.qb-no-store i { font-size: 64px; margin-bottom: 16px; display: block; }
.qb-no-store h2 { font-size: 20px; margin-bottom: 8px; color: var(--qb-text); }
.qb-no-store p { margin-bottom: 20px; }

/* ============================================================
   Placeholder Pages
   ============================================================ */

.qb-placeholder {
    max-width: 800px;
    margin: 0 auto;
}

.qb-placeholder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.qb-placeholder-header h2 { font-size: 18px; }

.qb-placeholder-body {
    background: var(--qb-white);
    border: 1px solid var(--qb-border);
    border-radius: 6px;
    padding: 60px 20px;
    text-align: center;
    color: var(--qb-text-light);
}

.qb-placeholder-body i { font-size: 48px; display: block; margin-bottom: 12px; color: var(--qb-amber); }

/* ============================================================
   Admin Pages
   ============================================================ */

.qb-admin-page { max-width: 960px; margin: 0 auto; }

.qb-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.qb-admin-header h2 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   Cards
   ============================================================ */

.qb-card {
    background: var(--qb-white);
    border: 1px solid var(--qb-border);
    border-radius: 6px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px var(--qb-shadow);
}

.qb-card-header {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    background: var(--qb-gray-100);
    border-bottom: 1px solid var(--qb-border);
    border-radius: 6px 6px 0 0;
}

.qb-card-body { padding: 16px; }

/* ============================================================
   Tables
   ============================================================ */

.qb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.qb-table th {
    text-align: left;
    padding: 8px 12px;
    background: var(--qb-gray-100);
    border-bottom: 2px solid var(--qb-border);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--qb-text-light);
}

.qb-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--qb-gray-200);
}

.qb-table tbody tr:hover { background: var(--qb-gray-100); }

/* ============================================================
   Forms
   ============================================================ */

.qb-form-group {
    margin-bottom: 12px;
}

.qb-form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--qb-text-light);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.qb-form-group input[type="text"],
.qb-form-group input[type="email"],
.qb-form-group input[type="password"],
.qb-form-group select {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--qb-border);
    border-radius: 3px;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.15s;
}

.qb-form-group input:focus,
.qb-form-group select:focus {
    outline: none;
    border-color: var(--qb-blue);
    box-shadow: 0 0 0 2px rgba(51, 102, 153, 0.15);
}

.qb-form-inline {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.qb-form-inline .qb-form-group { margin-bottom: 0; }

.qb-form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.qb-form-row .qb-form-group { flex: 1; min-width: 180px; }

.qb-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 4px;
}

.qb-checkbox input[type="checkbox"] { cursor: pointer; }

.qb-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ============================================================
   Buttons
   ============================================================ */

.qb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    text-decoration: none;
}

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

.qb-btn-primary {
    background: var(--qb-blue);
    color: white;
    border-color: var(--qb-blue);
}
.qb-btn-primary:hover {
    background: var(--qb-navy-light);
    border-color: var(--qb-navy-light);
    color: white;
}

.qb-btn-secondary {
    background: var(--qb-white);
    color: var(--qb-text);
    border-color: var(--qb-border);
}
.qb-btn-secondary:hover {
    background: var(--qb-gray-100);
    color: var(--qb-text);
}

.qb-btn-small { padding: 4px 10px; font-size: 11px; }
.qb-btn-full { width: 100%; justify-content: center; }

/* ============================================================
   Badges
   ============================================================ */

.qb-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    margin-right: 4px;
}

.qb-badge-success { background: #E8F5E9; color: var(--qb-green); }
.qb-badge-info    { background: #E3F2FD; color: var(--qb-blue); }
.qb-badge-muted   { background: var(--qb-gray-200); color: var(--qb-gray-600); }

.qb-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--qb-gray-100);
    border: 1px solid var(--qb-border);
    border-radius: 4px;
    font-size: 12px;
    color: var(--qb-text-light);
}

.qb-muted { color: var(--qb-text-light); font-style: italic; }

/* ============================================================
   Flash Messages
   ============================================================ */

.qb-flash-container {
    padding: 8px 16px;
}

.qb-flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 6px;
}

.qb-flash-success { background: #E8F5E9; color: var(--qb-green); border: 1px solid #C8E6C9; }
.qb-flash-error   { background: #FFEBEE; color: var(--qb-red); border: 1px solid #FFCDD2; }
.qb-flash-info    { background: #E3F2FD; color: var(--qb-blue); border: 1px solid #BBDEFB; }

.qb-flash-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.6;
    color: inherit;
}
.qb-flash-close:hover { opacity: 1; }

/* ============================================================
   Login Page
   ============================================================ */

.qb-login-body {
    background: linear-gradient(135deg, var(--qb-navy) 0%, var(--qb-navy-light) 50%, var(--qb-blue) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qb-login-card {
    background: var(--qb-white);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 40px 36px;
    width: 380px;
    max-width: 90vw;
}

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

.qb-login-header i {
    font-size: 42px;
    color: var(--qb-navy);
    display: block;
    margin-bottom: 8px;
}

.qb-login-header h1 {
    font-size: 24px;
    color: var(--qb-navy);
    margin-bottom: 4px;
}

.qb-login-header p {
    font-size: 13px;
    color: var(--qb-text-light);
}

.qb-login-card .qb-form-group { margin-bottom: 16px; }

.qb-login-card .qb-btn {
    margin-top: 8px;
    padding: 10px;
    font-size: 14px;
}

/* ============================================================
   Responsive
   ============================================================ */

/* ============================================================
   Chart of Accounts
   ============================================================ */

.qb-coa-page { max-width: 1060px; margin: 0 auto; }

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

.qb-coa-header h2 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qb-coa-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qb-coa-table td:first-child { padding-left: 8px; }

.qb-coa-indent {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.qb-coa-type-icon { font-size: 13px; color: var(--qb-blue); opacity: 0.7; }

.qb-coa-name { font-weight: 500; }

.qb-row-inactive { opacity: 0.5; }

.qb-coa-row-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s;
}

.qb-coa-table tbody tr:hover .qb-coa-row-actions { opacity: 1; }

.text-right { text-align: right; }

.qb-negative { color: var(--qb-red); }

.qb-coa-summary {
    text-align: right;
    font-size: 11px;
    color: var(--qb-text-light);
    margin-top: 8px;
}

/* ============================================================
   Entity Centers (Vendor, Customer)
   ============================================================ */

.qb-center-page { max-width: 1100px; margin: 0 auto; }

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

.qb-center-header h2 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qb-center-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qb-search-form {
    display: flex;
    gap: 4px;
}

.qb-search-input {
    padding: 5px 10px;
    border: 1px solid var(--qb-border);
    border-radius: 3px;
    font-size: 12px;
    width: 200px;
    font-family: inherit;
}

.qb-search-input:focus {
    outline: none;
    border-color: var(--qb-blue);
    box-shadow: 0 0 0 2px rgba(51, 102, 153, 0.15);
}

.qb-center-table td:first-child { font-weight: 500; }

.qb-entity-name { font-weight: 600; }

.qb-clickable-row { cursor: pointer; }
.qb-clickable-row:hover { background: #EBF5FB !important; }

.qb-center-summary {
    text-align: right;
    font-size: 11px;
    color: var(--qb-text-light);
    margin-top: 8px;
}

.qb-truncate {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   Detail Pages (Vendor/Customer Detail)
   ============================================================ */

.qb-detail-page { max-width: 1100px; margin: 0 auto; }

.qb-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.qb-detail-header h2 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.qb-back-link {
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.qb-detail-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 16px;
}

.qb-info-grid { display: flex; flex-direction: column; gap: 10px; }

.qb-info-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qb-info-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--qb-text-light);
}

@media (max-width: 768px) {
    .qb-detail-grid { grid-template-columns: 1fr; }
    .qb-center-header { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Modal
   ============================================================ */

.qb-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.qb-modal {
    background: var(--qb-white);
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    width: 480px;
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
}

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

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

.qb-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--qb-text-light);
    line-height: 1;
}
.qb-modal-close:hover { color: var(--qb-text); }

.qb-modal-body { padding: 20px; }

.qb-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--qb-border);
    background: var(--qb-gray-100);
    border-radius: 0 0 8px 8px;
}

/* ============================================================
   Transaction List & Detail
   ============================================================ */

.qb-txn-page {
    max-width: 1200px;
}

.qb-txn-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.qb-txn-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--qb-navy);
}

.qb-txn-count {
    font-size: 13px;
    color: var(--qb-text-light);
    margin-left: 12px;
}

.qb-txn-filters {
    margin-bottom: 16px;
}

.qb-filter-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.qb-filter-form .qb-form-group {
    margin-bottom: 0;
}

.qb-filter-form .qb-form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--qb-text-light);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.qb-filter-form input,
.qb-filter-form select {
    padding: 6px 10px;
    border: 1px solid var(--qb-border);
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
}

.qb-filter-form input[type="text"] {
    width: 200px;
}

.qb-filter-form input[type="date"] {
    width: 150px;
}

.qb-txn-table {
    font-size: 13px;
}

.qb-nowrap {
    white-space: nowrap;
}

.qb-truncate-col {
    width: 30%;
}

.qb-truncate {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qb-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.qb-page-info {
    font-size: 13px;
    color: var(--qb-text-light);
}

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

.qb-detail-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--qb-text-light);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.qb-detail-field span {
    font-size: 14px;
    color: var(--qb-text);
}

.qb-detail-amount {
    font-weight: 600;
    font-size: 16px !important;
    color: var(--qb-navy) !important;
}

.qb-detail-full {
    grid-column: 1 / -1;
}

.qb-card-header {
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    color: var(--qb-navy);
    border-bottom: 1px solid var(--qb-border);
    background: var(--qb-gray-100);
}

/* Stats grid on home page */
.qb-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.qb-stat-card {
    text-align: center;
    padding: 16px 8px;
    background: var(--qb-gray-100);
    border-radius: 6px;
    border: 1px solid var(--qb-border);
}

.qb-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--qb-navy);
    line-height: 1.2;
}

.qb-stat-label {
    font-size: 12px;
    color: var(--qb-text-light);
    margin-top: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

/* ============================================================
   Reports
   ============================================================ */

.qb-report-page {
    max-width: 1000px;
}

.qb-report-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.qb-report-header {
    text-align: center;
    margin-bottom: 20px;
}

.qb-report-company {
    font-size: 16px;
    font-weight: 700;
    color: var(--qb-navy);
    text-transform: uppercase;
}

.qb-report-header h2 {
    margin: 4px 0;
    font-size: 20px;
    color: var(--qb-navy);
}

.qb-report-subtitle {
    font-size: 13px;
    color: var(--qb-text-light);
}

.qb-report-body {
    background: #fff;
    border: 1px solid var(--qb-border);
    border-radius: 6px;
    overflow: hidden;
}

.qb-report-table {
    font-size: 13px;
    margin: 0;
}

.qb-report-table th,
.qb-report-table td {
    padding: 6px 12px;
}

.qb-report-section-header th {
    background: var(--qb-navy);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 12px;
}

.qb-report-group-header th {
    background: var(--qb-gray-200);
    font-weight: 600;
    font-size: 13px;
    color: var(--qb-text);
    padding: 8px 12px;
}

.qb-report-indent {
    padding-left: 28px !important;
}

.qb-report-subtotal td {
    font-weight: 600;
    border-top: 1px solid var(--qb-border);
    padding-top: 6px;
}

.qb-report-total td {
    font-weight: 700;
    border-top: 2px solid var(--qb-gray-300);
    background: var(--qb-gray-100);
    padding: 8px 12px;
}

.qb-report-grand-total td {
    font-weight: 700;
    font-size: 14px;
    border-top: 3px double var(--qb-navy);
    background: var(--qb-gray-200);
    padding: 10px 12px;
    color: var(--qb-navy);
}

.qb-report-group-row td {
    font-weight: 600;
    background: var(--qb-gray-100);
}

.qb-report-detail-row td {
    color: var(--qb-text-light);
    font-size: 12px;
}

/* ============================================================
   Account Register
   ============================================================ */

.qb-register-page {
    max-width: 1200px;
}

.qb-register-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.qb-register-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--qb-navy);
}

.qb-register-balance {
    font-size: 14px;
    color: var(--qb-text-light);
    margin-top: 4px;
}

.qb-register-balance strong {
    color: var(--qb-navy);
    font-size: 18px;
}

.qb-register-count {
    padding: 8px 16px;
    font-size: 12px;
    color: var(--qb-text-light);
    border-bottom: 1px solid var(--qb-border);
    background: var(--qb-gray-100);
}

.qb-register-table {
    font-size: 13px;
}

.qb-register-table th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.qb-reg-date { width: 90px; }
.qb-reg-type { width: 50px; }
.qb-reg-ref { width: 80px; }
.qb-reg-amt { width: 100px; }
.qb-reg-bal { width: 110px; }

.qb-reg-type-badge {
    display: inline-block;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
    background: var(--qb-gray-200);
    color: var(--qb-text-light);
    text-transform: uppercase;
}

.qb-reg-payee-name {
    font-weight: 500;
}

.qb-reg-memo {
    font-size: 11px;
    color: var(--qb-text-light);
    margin-top: 1px;
}

.qb-reg-balance {
    font-weight: 600;
    color: var(--qb-navy);
}

/* ============================================================
   Company Snapshot
   ============================================================ */

.qb-snapshot {
    max-width: 1200px;
}

.qb-snap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.qb-snap-card {
    min-height: 0;
}

.qb-snap-wide {
    grid-column: span 3;
}

.qb-snap-table {
    font-size: 13px;
}

.qb-snap-table th,
.qb-snap-table td {
    padding: 8px 16px;
}

.qb-snap-ap {
    text-align: center;
    padding: 24px 16px;
}

.qb-snap-big-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--qb-navy);
    line-height: 1.1;
}

.qb-snap-subtitle {
    font-size: 13px;
    color: var(--qb-text-light);
    margin-top: 4px;
}

/* Bar chart */
.qb-chart-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 180px;
    padding: 10px 0;
}

.qb-chart-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.qb-chart-bars {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 150px;
}

.qb-chart-bar {
    width: 28px;
    border-radius: 3px 3px 0 0;
    min-height: 2px;
    cursor: default;
    transition: opacity 0.2s;
}

.qb-chart-bar:hover {
    opacity: 0.8;
}

.qb-bar-income {
    background: var(--qb-green);
}

.qb-bar-expense {
    background: var(--qb-red);
}

.qb-chart-label {
    font-size: 11px;
    color: var(--qb-text-light);
    margin-top: 6px;
    text-align: center;
}

.qb-chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--qb-text-light);
}

.qb-legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 4px;
}

/* Print styles */
@media print {
    .qb-titlebar, .qb-menubar, .qb-report-toolbar, .qb-txn-filters,
    .qb-flash-container { display: none !important; }
    .qb-main { padding: 0 !important; }
    .qb-report-page { max-width: 100%; }
    .qb-report-body { border: none; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
    .qb-home-row { grid-template-columns: 1fr; }
    .qb-form-inline { flex-direction: column; align-items: stretch; }
    .qb-form-row { flex-direction: column; }
    .qb-menubar { overflow-x: auto; }
}
