/* Placeholder: app-specific overrides live here */
.btn-primary:hover{opacity:1;color:#fff}

.timeline { position: relative; padding: 0; list-style: none; }
.timeline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 1rem; width: 2px; background: var(--divider); }
.timeline-item { position: relative; padding-left: 3rem; margin-bottom: 1.5rem; }
.timeline-marker { position: absolute; left: 0.25rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--bg-primary); border: 2px solid var(--primary-main); }
.timeline-content { padding: 1rem; border-radius: var(--radius-md); background: var(--grey-100); }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-disabled); }
.empty-state i { font-size: 3rem; margin-bottom: 0.75rem; display: block; opacity: 0.4; }
.empty-state h5 { color: var(--text-secondary); }

.drop-zone { border: 2px dashed var(--border); border-radius: var(--radius-md); padding: 2rem; text-align: center; cursor: pointer; transition: all 0.2s; }
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--primary-main); background: rgba(0, 167, 111, 0.04); }
.drop-zone i { font-size: 2rem; color: var(--text-disabled); }

.loading-overlay { position: fixed; inset: 0; background: rgba(255,255,255,0.8); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.spinner { width: 2rem; height: 2rem; border: 3px solid var(--grey-200); border-top-color: var(--primary-main); border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.number-input { text-align: right; }
.calc-input { text-align: right; font-weight: 600; }

.page-title { padding: 1rem 0; }
.card.stat-card { border: none; transition: transform 0.2s, box-shadow 0.2s; overflow: hidden; }
.card.stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.10); }
.stat-card .stat-icon-wrap { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 1rem; }
.stat-card .stat-icon-wrap i { color: #fff; }
.stat-card .stat-icon-wrap.bg-success { background: linear-gradient(135deg, #00A76F, #22C55E); }
.stat-card .stat-icon-wrap.bg-primary { background: linear-gradient(135deg, #006C9C, #00B8D9); }
.stat-card .stat-icon-wrap.bg-info { background: linear-gradient(135deg, #003768, #006C9C); }
.stat-card .stat-icon-wrap.bg-warning { background: linear-gradient(135deg, #B76E00, #FFAB00); }
.stat-card .stat-icon-wrap.bg-danger { background: linear-gradient(135deg, #B71D18, #FF5630); }
.stat-card .stat-icon-wrap.bg-secondary { background: linear-gradient(135deg, #637381, #919EAB); }
.stat-card .stat-icon-wrap.bg-orange { background: linear-gradient(135deg, #B73E00, #FF6B35); }
.stat-card .stat-icon-wrap.bg-teal { background: linear-gradient(135deg, #0D5E5C, #14B8A6); }
/* Standalone stat-icon-wrap (categories, brands, units list views) */
.stat-icon-wrap { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.stat-icon-wrap i { color: #fff; font-size: 1.25rem; }
.stat-icon-wrap.bg-primary { background: linear-gradient(135deg, #006C9C, #00B8D9); }
.stat-icon-wrap.bg-success { background: linear-gradient(135deg, #00A76F, #22C55E); }
.stat-icon-wrap.bg-info { background: linear-gradient(135deg, #003768, #006C9C); }
.stat-icon-wrap.bg-warning { background: linear-gradient(135deg, #B76E00, #FFAB00); }
.stat-icon-wrap.bg-danger { background: linear-gradient(135deg, #B71D18, #FF5630); }
.stat-icon-wrap.bg-secondary { background: linear-gradient(135deg, #637381, #919EAB); }
.stat-icon-wrap.bg-orange { background: linear-gradient(135deg, #B73E00, #FF6B35); }
.stat-icon-wrap.bg-teal { background: linear-gradient(135deg, #0D5E5C, #14B8A6); }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; line-height: 1.2; color: var(--text-primary); }
.stat-card .stat-label { font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.25rem; }
.stat-card.stat-success { background: linear-gradient(135deg, rgba(0,167,111,0.04), rgba(34,197,94,0.08)); }
.stat-card.stat-primary { background: linear-gradient(135deg, rgba(0,108,156,0.04), rgba(0,184,217,0.08)); }
.stat-card.stat-info { background: linear-gradient(135deg, rgba(0,55,104,0.04), rgba(0,108,156,0.08)); }
.stat-card.stat-warning { background: linear-gradient(135deg, rgba(183,110,0,0.04), rgba(255,171,0,0.08)); }
.stat-card.stat-error { background: linear-gradient(135deg, rgba(183,29,24,0.04), rgba(255,86,48,0.08)); }
.stat-card.stat-secondary { background: linear-gradient(135deg, rgba(99,115,129,0.04), rgba(145,158,171,0.08)); }
.stat-card.stat-orange { background: linear-gradient(135deg, rgba(183,62,0,0.04), rgba(255,107,53,0.08)); }
.stat-card.stat-teal { background: linear-gradient(135deg, rgba(13,94,92,0.04), rgba(20,184,166,0.08)); }

/* Invoice Items Table */
.invoice-items-table { font-size: 0.925rem; }
.invoice-items-table thead th { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); padding: 0.75rem 0.625rem; background: var(--grey-100); border-bottom: 2px solid var(--border); }
.invoice-items-table tbody td { padding: 0.7rem 0.625rem; vertical-align: middle; border-bottom: 1px solid var(--divider); }
.invoice-items-table tbody tr:hover { background: rgba(0,167,111,0.03); }
.invoice-items-table .product-name { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); }
.invoice-items-table .product-sku { font-size: 0.775rem; color: var(--text-disabled); }
.invoice-items-table .product-desc { font-size: 0.8rem; color: var(--text-secondary); }
.invoice-items-table .text-end { font-weight: 500; }
.invoice-items-table .gst-detail { font-size: 0.775rem; line-height: 1.5; }
.invoice-items-table .amount-col { font-weight: 700; color: var(--text-primary); }
.invoice-items-table .discount-col { color: var(--success-main); }
.invoice-items-table .rate-col, .invoice-items-table .qty-col { color: var(--text-primary); }

/* Invoice View Page */
.invoice-view-card .card-header { padding: 1rem 1.25rem; }
.invoice-view-card .card-header h5 { font-size: 1rem; font-weight: 600; }
.invoice-view-card .card-body { padding: 1.25rem; }

/* Sales List Table */
.sales-list-table { font-size: 0.9rem; }
.sales-list-table thead th { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-secondary); padding: 0.7rem 0.6rem; background: var(--grey-100); border-bottom: 2px solid var(--border); }
.sales-list-table tbody td { padding: 0.65rem 0.6rem; vertical-align: middle; }
.sales-list-table tbody tr:hover { background: rgba(0,167,111,0.03); }
.sales-list-table .badge { font-size: 0.775rem; padding: 0.3em 0.6em; }
.sales-list-table .invoice-link { font-weight: 600; color: var(--primary-main); text-decoration: none; }
.sales-list-table .invoice-link:hover { text-decoration: underline; }

/* Action Buttons */
.action-btns .btn { padding: 0.25rem 0.45rem; font-size: 0.8rem; border-width: 1.5px; }
.action-btns .btn-outline-primary { border-color: var(--primary-main); color: var(--primary-main); }
.action-btns .btn-outline-primary:hover { background: var(--primary-main); color: #fff; }
.action-btns .btn-outline-warning { border-color: #ed6c02; color: #ed6c02; }
.action-btns .btn-outline-warning:hover { background: #ed6c02; color: #fff; }
.action-btns .btn-outline-secondary { border-color: var(--text-secondary); color: var(--text-secondary); }
.action-btns .btn-outline-secondary:hover { background: var(--text-secondary); color: #fff; }
.action-btns .btn-outline-danger { border-color: var(--error-main); color: var(--error-main); }
.action-btns .btn-outline-danger:hover { background: var(--error-main); color: #fff; }

.fab { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); }

.chart-card .card-header { border-bottom: 0; padding-bottom: 0; }
.chart-card .card-header h5 { font-weight: 600; font-size: 1rem; }
.chart-card .card-body { padding-top: 0.5rem; }
.chart-container { position: relative; width: 100%; min-height: 300px; }
.chart-container-sm { position: relative; width: 100%; min-height: 260px; }

@media (max-width: 768px) {
    .chart-container, .chart-container-sm { min-height: 220px; }
}

@media print {
    .sidebar, .app-header, .app-footer, .sidebar-overlay { display: none !important; }
    .app-main { margin-left: 0 !important; padding: 0; }
    .card { box-shadow: none; border: 1px solid #ddd; }
}

@media (max-width: 768px) {
    .stat-card .stat-value { font-size: 1.25rem; }
}

/* Report & Register Tables */
.table-report { font-size: 0.8rem; }
.table-report thead th { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-secondary); padding: 0.5rem 0.5rem; background: var(--grey-100); border-bottom: 2px solid var(--border); white-space: nowrap; }
.table-report tbody td { padding: 0.35rem 0.5rem; vertical-align: middle; white-space: nowrap; }
.table-report tbody tr:hover { background: rgba(0, 167, 111, 0.03); }
.table-report tfoot td { padding: 0.4rem 0.5rem; font-size: 0.8rem; }
.table-report .badge { font-size: 0.7rem; padding: 0.2rem 0.45rem; }
.table-report .fw-bold { font-weight: 700; }
.table-report td.text-end, .table-report th.text-end { padding-right: 0.75rem; }
.dataTables_wrapper .table-report { margin-top: 0 !important; }
.dataTables_wrapper .dataTables_length { padding-top: 0.5rem; }
.dataTables_wrapper .dataTables_filter { padding-top: 0.5rem; }
.dataTables_wrapper .dataTables_filter input { font-size: 0.8rem; padding: 0.25rem 0.5rem; }
.dataTables_wrapper .dataTables_info { font-size: 0.75rem; padding-top: 0.5rem; }
.dataTables_wrapper .dataTables_paginate { font-size: 0.75rem; padding-top: 0.5rem; }
.dataTables_wrapper .dataTables_paginate .paginate_button { padding: 0.2rem 0.5rem; }

/* GST Section - tab badges, compact nav */
.gst-tab .nav-link { font-size: 0.8rem; padding: 0.4rem 0.75rem; }
.gst-tab .nav-link .badge { font-size: 0.7rem; }
.gst-summary-card .card-body { padding: 1rem; }
.gst-summary-card h6 { font-size: 0.75rem; margin-bottom: 0.25rem; }
.gst-summary-card h3, .gst-summary-card h4 { font-size: 1.1rem; }
.gst-filter .form-label { font-size: 0.8rem; margin-bottom: 0.25rem; }
.gst-filter .form-control, .gst-filter .form-select { font-size: 0.8rem; padding: 0.3rem 0.5rem; }
