/**
 * Amazon Bookkeeping Module - Unified Theme
 * Consistent Amazon Seller Central style across ALL bookkeeping screens
 *
 * Class prefix: .amz-bk-*
 * Colors: Amazon Navy (#232f3e) + Orange (#ff9900)
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --bk-navy: #232f3e;
    --bk-navy-dark: #131921;
    --bk-navy-light: #37475a;
    --bk-orange: #ff9900;
    --bk-orange-dark: #e88b00;
    --bk-orange-end: #ff6138;
    --bk-bg: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
    --bk-white: #ffffff;
    --bk-gray-50: #f7f8fa;
    --bk-gray-100: #f3f4f6;
    --bk-gray-200: #e3e6e6;
    --bk-gray-300: #d5d9d9;
    --bk-gray-500: #565959;
    --bk-gray-600: #6b7280;
    --bk-gray-700: #4b5563;
    --bk-text: #0f1111;
    --bk-text-light: #a8b4c1;
    --bk-green: #10b981;
    --bk-green-dark: #059669;
    --bk-red: #ef4444;
    --bk-red-dark: #dc2626;
    --bk-blue: #3b82f6;
    --bk-blue-dark: #2563eb;
    --bk-purple: #8b5cf6;
    --bk-amber: #f59e0b;
    --bk-indigo: #6366f1;
    --bk-teal: #0891b2;
    --bk-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --bk-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
    --bk-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
    --bk-radius: 8px;
    --bk-radius-lg: 12px;
    --bk-font: 'Amazon Ember', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --bk-font-mono: 'Amazon Ember Display', 'SF Mono', Monaco, monospace;
    --bk-transition: all 0.2s ease;
}

/* ============================================
   1. PAGE WRAPPER
   ============================================ */
.amz-bk-page {
    background: var(--bk-bg);
    min-height: 100vh;
    padding: 20px;
    font-family: var(--bk-font);
}

@media (max-width: 768px) {
    .amz-bk-page { padding: 15px; }
}

/* ============================================
   2. PAGE HEADER BANNER
   ============================================ */
.amz-bk-header {
    background: linear-gradient(135deg, var(--bk-navy) 0%, var(--bk-navy-dark) 100%);
    border-radius: var(--bk-radius);
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: var(--bk-shadow-md);
    position: relative;
    overflow: visible;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.amz-bk-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bk-orange) 0%, var(--bk-orange-end) 100%);
}

.amz-bk-header-content h1,
.amz-bk-header h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--bk-white);
}

.amz-bk-header-content h1 i,
.amz-bk-header h1 i {
    font-size: 22px;
    color: var(--bk-white);
}

.amz-bk-header .subtitle,
.amz-bk-header-content .subtitle {
    font-size: 13px;
    color: var(--bk-text-light);
    margin: 0;
}

.amz-bk-header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 100;
}

@media (max-width: 768px) {
    .amz-bk-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .amz-bk-header-actions {
        justify-content: center;
        width: 100%;
    }
}

/* ============================================
   3. BUTTONS
   ============================================ */

/* Primary orange button */
.amz-bk-btn-primary {
    background: linear-gradient(135deg, var(--bk-orange) 0%, var(--bk-orange-end) 100%);
    color: var(--bk-white) !important;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--bk-transition);
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
    cursor: pointer;
}

.amz-bk-btn-primary i { color: var(--bk-white) !important; }

.amz-bk-btn-primary:hover {
    background: linear-gradient(135deg, var(--bk-orange-dark) 0%, #e85a20 100%);
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.4);
    color: var(--bk-white) !important;
}

/* Secondary / Back button */
.amz-bk-btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--bk-text) !important;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--bk-transition);
    cursor: pointer;
}

.amz-bk-btn-secondary:hover {
    background: var(--bk-white);
    color: var(--bk-text) !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Success button (Post, Approve) */
.amz-bk-btn-success {
    background: linear-gradient(135deg, var(--bk-green) 0%, var(--bk-green-dark) 100%);
    color: var(--bk-white) !important;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--bk-transition);
    cursor: pointer;
}

.amz-bk-btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    color: var(--bk-white) !important;
}

/* Danger button */
.amz-bk-btn-danger {
    background: linear-gradient(135deg, var(--bk-red) 0%, var(--bk-red-dark) 100%);
    color: var(--bk-white) !important;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--bk-transition);
    cursor: pointer;
}

.amz-bk-btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    color: var(--bk-white) !important;
}

/* Outline / Ghost button */
.amz-bk-btn-outline {
    background: var(--bk-white);
    color: var(--bk-text);
    border: 1px solid var(--bk-gray-200);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--bk-transition);
    cursor: pointer;
}

.amz-bk-btn-outline:hover {
    border-color: var(--bk-orange);
    color: var(--bk-orange);
    background: #fff8ee;
}

/* Header dropdown buttons */
.amz-bk-header-actions .btn,
.amz-bk-header-actions .amz-bk-btn-primary {
    border-radius: 6px;
    font-weight: 600;
    padding: 8px 16px;
    font-size: 13px;
    border: none;
    transition: var(--bk-transition);
}

.amz-bk-header-actions .btn-group { position: relative; }
.amz-bk-header-actions .dropdown-menu {
    z-index: 1050 !important;
    min-width: 200px;
    border-radius: var(--bk-radius);
    box-shadow: var(--bk-shadow-lg);
    border: 1px solid var(--bk-gray-200);
    padding: 6px;
}

.amz-bk-header-actions .dropdown-menu a {
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--bk-transition);
    color: var(--bk-text);
}

.amz-bk-header-actions .dropdown-menu a:hover {
    background: var(--bk-gray-50);
}

.amz-bk-header-actions .dropdown-menu a i {
    width: 16px;
    margin-right: 8px;
}

/* Disabled state */
.amz-bk-btn-primary:disabled,
.amz-bk-btn-success:disabled,
.amz-bk-btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ============================================
   4. ACCENT BANNER (financial summary strip)
   ============================================ */
.amz-bk-accent-banner {
    background: linear-gradient(135deg, var(--bk-orange) 0%, var(--bk-orange-end) 100%);
    border-radius: var(--bk-radius);
    padding: 20px 24px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.2);
}

.amz-bk-accent-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.amz-bk-accent-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--bk-radius);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--bk-white);
}

.amz-bk-accent-info { color: var(--bk-white); }

.amz-bk-accent-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 2px;
    font-weight: 500;
}

.amz-bk-accent-value {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--bk-font-mono);
}

.amz-bk-accent-stats {
    display: flex;
    gap: 24px;
}

.amz-bk-accent-stat {
    text-align: center;
    color: var(--bk-white);
    padding: 0 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.amz-bk-accent-stat:first-child { border-left: none; }

.amz-bk-accent-stat-value {
    font-size: 16px;
    font-weight: 700;
    font-family: var(--bk-font-mono);
}

.amz-bk-accent-stat-label {
    font-size: 11px;
    opacity: 0.9;
    margin-top: 2px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .amz-bk-accent-banner {
        flex-direction: column;
        text-align: center;
    }
    .amz-bk-accent-stats {
        flex-direction: column;
        gap: 12px;
    }
    .amz-bk-accent-stat {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding: 12px 0 0;
    }
    .amz-bk-accent-stat:first-child {
        border-top: none;
        padding-top: 0;
    }
}

/* ============================================
   5. STAT CARDS GRID
   ============================================ */
.amz-bk-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.amz-bk-stats.cols-2 { grid-template-columns: repeat(2, 1fr); }
.amz-bk-stats.cols-3 { grid-template-columns: repeat(3, 1fr); }
.amz-bk-stats.cols-5 { grid-template-columns: repeat(5, 1fr); }
.amz-bk-stats.cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1200px) {
    .amz-bk-stats { grid-template-columns: repeat(2, 1fr); }
    .amz-bk-stats.cols-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .amz-bk-stats.cols-6 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .amz-bk-stats,
    .amz-bk-stats.cols-2,
    .amz-bk-stats.cols-3,
    .amz-bk-stats.cols-5,
    .amz-bk-stats.cols-6 { grid-template-columns: 1fr; }
}

.amz-bk-stat-card {
    background: var(--bk-white);
    border-radius: var(--bk-radius);
    padding: 20px;
    box-shadow: var(--bk-shadow-sm);
    border: 1px solid var(--bk-gray-200);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--bk-transition);
    position: relative;
    overflow: hidden;
}

.amz-bk-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--bk-gray-200);
    transition: var(--bk-transition);
}

.amz-bk-stat-card:hover {
    box-shadow: var(--bk-shadow-lg);
    transform: translateY(-2px);
}

/* Stat card color variants */
.amz-bk-stat-card.assets::before,
.amz-bk-stat-card.success::before,
.amz-bk-stat-card.paid::before { background: var(--bk-green); }
.amz-bk-stat-card.liabilities::before,
.amz-bk-stat-card.total::before,
.amz-bk-stat-card.danger::before { background: var(--bk-red); }
.amz-bk-stat-card.equity::before,
.amz-bk-stat-card.info::before { background: var(--bk-blue); }
.amz-bk-stat-card.revenue::before,
.amz-bk-stat-card.income::before { background: var(--bk-purple); }
.amz-bk-stat-card.expense::before,
.amz-bk-stat-card.overdue::before,
.amz-bk-stat-card.warning::before { background: var(--bk-amber); }
.amz-bk-stat-card.cogs::before { background: var(--bk-indigo); }
.amz-bk-stat-card.pending::before { background: var(--bk-orange); }
.amz-bk-stat-card.active::before { background: var(--bk-teal); }

.amz-bk-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--bk-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* Stat icon color variants */
.amz-bk-stat-card.assets .amz-bk-stat-icon,
.amz-bk-stat-card.success .amz-bk-stat-icon,
.amz-bk-stat-card.paid .amz-bk-stat-icon { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: var(--bk-green-dark); }
.amz-bk-stat-card.liabilities .amz-bk-stat-icon,
.amz-bk-stat-card.total .amz-bk-stat-icon,
.amz-bk-stat-card.danger .amz-bk-stat-icon { background: linear-gradient(135deg, #fee2e2, #fecaca); color: var(--bk-red-dark); }
.amz-bk-stat-card.equity .amz-bk-stat-icon,
.amz-bk-stat-card.info .amz-bk-stat-icon { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: var(--bk-blue-dark); }
.amz-bk-stat-card.revenue .amz-bk-stat-icon,
.amz-bk-stat-card.income .amz-bk-stat-icon { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #7c3aed; }
.amz-bk-stat-card.expense .amz-bk-stat-icon,
.amz-bk-stat-card.overdue .amz-bk-stat-icon,
.amz-bk-stat-card.warning .amz-bk-stat-icon { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }
.amz-bk-stat-card.cogs .amz-bk-stat-icon { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: var(--bk-indigo); }
.amz-bk-stat-card.pending .amz-bk-stat-icon { background: linear-gradient(135deg, #fff3e0, #ffe0b2); color: var(--bk-orange); }
.amz-bk-stat-card.active .amz-bk-stat-icon { background: linear-gradient(135deg, #e0f7fa, #b2ebf2); color: var(--bk-teal); }

.amz-bk-stat-info { flex: 1; min-width: 0; }

.amz-bk-stat-value {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2px;
    font-family: var(--bk-font-mono);
    color: var(--bk-text);
}

/* Color-coded stat values */
.amz-bk-stat-card.total .amz-bk-stat-value,
.amz-bk-stat-card.danger .amz-bk-stat-value { color: var(--bk-red); }
.amz-bk-stat-card.overdue .amz-bk-stat-value,
.amz-bk-stat-card.warning .amz-bk-stat-value { color: var(--bk-amber); }
.amz-bk-stat-card.paid .amz-bk-stat-value,
.amz-bk-stat-card.success .amz-bk-stat-value { color: var(--bk-green); }
.amz-bk-stat-card.active .amz-bk-stat-value,
.amz-bk-stat-card.info .amz-bk-stat-value { color: var(--bk-teal); }

.amz-bk-stat-label {
    font-size: 12px;
    color: var(--bk-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}

/* Stat card with balance sub-line */
.amz-bk-stat-balance {
    font-size: 13px;
    font-weight: 700;
    font-family: var(--bk-font-mono);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--bk-gray-200);
    color: var(--bk-text);
}

/* ============================================
   6. QUICK ACTIONS GRID
   ============================================ */
.amz-bk-quick-actions {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 1400px) { .amz-bk-quick-actions { grid-template-columns: repeat(4, 1fr) !important; } }
@media (max-width: 992px)  { .amz-bk-quick-actions { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 768px)  { .amz-bk-quick-actions { grid-template-columns: repeat(2, 1fr) !important; } }

.amz-bk-quick-action {
    background: var(--bk-white);
    border-radius: var(--bk-radius);
    padding: 16px;
    text-align: center;
    text-decoration: none !important;
    box-shadow: var(--bk-shadow-sm);
    border: 1px solid var(--bk-gray-200);
    transition: var(--bk-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.amz-bk-quick-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--bk-gray-200);
    transition: var(--bk-transition);
}

.amz-bk-quick-action:hover {
    box-shadow: var(--bk-shadow-lg);
    transform: translateY(-2px);
    text-decoration: none !important;
    border-color: var(--bk-orange);
}

.amz-bk-quick-action:hover::before { background: var(--bk-orange); }

.amz-bk-quick-action-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--bk-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--bk-gray-50), var(--bk-gray-200));
    color: var(--bk-text);
    transition: var(--bk-transition);
}

.amz-bk-quick-action:hover .amz-bk-quick-action-icon {
    background: linear-gradient(135deg, var(--bk-orange) 0%, var(--bk-orange-end) 100%);
    color: var(--bk-white);
}

.amz-bk-quick-action-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--bk-text);
    text-align: center;
    line-height: 1.3;
}

/* ============================================
   7. SECTION CARDS
   ============================================ */
.amz-bk-section {
    background: var(--bk-white);
    border-radius: var(--bk-radius);
    box-shadow: var(--bk-shadow-sm);
    border: 1px solid var(--bk-gray-200);
    margin-bottom: 20px;
    overflow: hidden;
}

.amz-bk-section-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--bk-gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bk-gray-50);
}

.amz-bk-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--bk-text);
    margin: 0;
}

.amz-bk-section-title i {
    color: var(--bk-orange);
    font-size: 16px;
}

.amz-bk-section-action {
    color: #007185;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.amz-bk-section-action:hover {
    color: #c7511f;
    text-decoration: underline;
}

.amz-bk-section-body {
    padding: 20px;
}

.amz-bk-section-body.no-padding { padding: 0; }

/* ============================================
   8. DATA TABLES
   ============================================ */
.amz-bk-table {
    width: 100%;
    border-collapse: collapse;
}

.amz-bk-table thead th {
    background: var(--bk-gray-50);
    color: var(--bk-text);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--bk-gray-200);
    white-space: nowrap;
}

.amz-bk-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--bk-gray-50);
    font-size: 14px;
    color: var(--bk-text);
    vertical-align: middle;
}

.amz-bk-table tbody tr {
    transition: background 0.15s ease;
}

.amz-bk-table tbody tr:hover {
    background: var(--bk-gray-50);
}

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

.amz-bk-table tbody tr.sub-row {
    background: #fafafa;
}

.amz-bk-table tbody tr.sub-row:hover {
    background: var(--bk-gray-100);
}

/* Table amount cells */
.amz-bk-amount {
    font-family: var(--bk-font-mono);
    font-weight: 700;
    letter-spacing: 0.2px;
}

.amz-bk-amount.debit,
.amz-bk-amount.positive { color: var(--bk-green); }
.amz-bk-amount.credit,
.amz-bk-amount.negative { color: var(--bk-red); }
.amz-bk-amount.neutral { color: var(--bk-text); }

/* Responsive table wrapper */
@media (max-width: 768px) {
    .amz-bk-table-responsive {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .amz-bk-table thead th,
    .amz-bk-table tbody td {
        padding: 10px 12px;
        white-space: nowrap;
    }
}

/* ============================================
   9. FILTER SECTION
   ============================================ */
.amz-bk-filters {
    background: var(--bk-white);
    border-radius: var(--bk-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--bk-shadow-sm);
    border: 1px solid var(--bk-gray-200);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    align-items: end;
    position: relative;
}

.amz-bk-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--bk-orange) 0%, var(--bk-orange-end) 100%);
}

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

.amz-bk-filters .form-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--bk-gray-500);
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.amz-bk-filters .form-group label i {
    font-size: 12px;
    color: var(--bk-orange);
}

.amz-bk-filters .form-control,
.amz-bk-filters .form-select {
    border-radius: 6px;
    border: 1px solid var(--bk-gray-200);
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--bk-text) !important;
    background-color: var(--bk-white) !important;
    width: 100%;
    transition: var(--bk-transition);
}

.amz-bk-filters .form-control:hover,
.amz-bk-filters .form-select:hover {
    border-color: var(--bk-gray-300);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.amz-bk-filters .form-control:focus,
.amz-bk-filters .form-select:focus {
    border-color: var(--bk-orange);
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.2);
    outline: none;
}

.amz-bk-filter-clear {
    background: linear-gradient(135deg, var(--bk-orange) 0%, var(--bk-orange-end) 100%);
    color: var(--bk-white);
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--bk-transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.amz-bk-filter-clear:hover {
    background: linear-gradient(135deg, var(--bk-orange-end) 0%, #ff4500 100%);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .amz-bk-filters {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   10. STATUS BADGES
   ============================================ */
.amz-bk-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.amz-bk-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.amz-bk-badge.posted,
.amz-bk-badge.active,
.amz-bk-badge.approved,
.amz-bk-badge.completed,
.amz-bk-badge.paid { background: #d1fae5; color: var(--bk-green-dark); }

.amz-bk-badge.draft,
.amz-bk-badge.inactive { background: var(--bk-gray-100); color: var(--bk-gray-600); }

.amz-bk-badge.pending,
.amz-bk-badge.partial { background: #fff3e0; color: var(--bk-orange); }

.amz-bk-badge.voided,
.amz-bk-badge.cancelled,
.amz-bk-badge.overdue,
.amz-bk-badge.rejected { background: #fee2e2; color: var(--bk-red-dark); }

.amz-bk-badge.reconciled,
.amz-bk-badge.processing { background: #e0f7fa; color: var(--bk-teal); }

/* Simple type badge (no dot) */
.amz-bk-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--bk-gray-100);
    color: var(--bk-text);
    border: 1px solid var(--bk-gray-200);
}

/* ============================================
   11. ACTION BUTTONS (inline table actions)
   ============================================ */
.amz-bk-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.amz-bk-action-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none !important;
    transition: var(--bk-transition);
    border: none;
    cursor: pointer;
}

.amz-bk-action-btn.view {
    background: linear-gradient(135deg, var(--bk-gray-100), #e5e7eb);
    color: var(--bk-navy);
}
.amz-bk-action-btn.view:hover {
    background: linear-gradient(135deg, var(--bk-orange) 0%, var(--bk-orange-end) 100%);
    color: var(--bk-white);
}

.amz-bk-action-btn.edit {
    background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
    color: var(--bk-teal);
}
.amz-bk-action-btn.edit:hover {
    background: linear-gradient(135deg, var(--bk-teal), #0288d1);
    color: var(--bk-white);
}

.amz-bk-action-btn.delete {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: var(--bk-red-dark);
}
.amz-bk-action-btn.delete:hover {
    background: linear-gradient(135deg, var(--bk-red), var(--bk-red-dark));
    color: var(--bk-white);
}

.amz-bk-action-btn.pay {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: var(--bk-green-dark);
}
.amz-bk-action-btn.pay:hover {
    background: linear-gradient(135deg, var(--bk-green), var(--bk-green-dark));
    color: var(--bk-white);
}

.amz-bk-action-btn.print {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #7c3aed;
}
.amz-bk-action-btn.print:hover {
    background: linear-gradient(135deg, var(--bk-purple), #7c3aed);
    color: var(--bk-white);
}

/* Dropdown action button */
.amz-bk-actions-dropdown .btn {
    background: var(--bk-gray-50);
    color: var(--bk-text);
    border: 1px solid var(--bk-gray-200);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    transition: var(--bk-transition);
}

.amz-bk-actions-dropdown .btn:hover {
    background: var(--bk-gray-200);
    border-color: var(--bk-gray-300);
}

.amz-bk-actions-dropdown .dropdown-menu {
    border-radius: var(--bk-radius);
    box-shadow: var(--bk-shadow-lg);
    border: 1px solid var(--bk-gray-200);
    padding: 6px;
    background: var(--bk-white);
}

.amz-bk-actions-dropdown .dropdown-menu a {
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--bk-transition);
    color: var(--bk-text);
}

.amz-bk-actions-dropdown .dropdown-menu a:hover {
    background: var(--bk-gray-50);
}

.amz-bk-actions-dropdown .dropdown-menu a i {
    width: 16px;
    margin-right: 8px;
}

/* ============================================
   12. FORM CARD (create/edit forms)
   ============================================ */
.amz-bk-form-card {
    background: var(--bk-white);
    border-radius: var(--bk-radius);
    box-shadow: var(--bk-shadow-sm);
    border: 1px solid var(--bk-gray-200);
    overflow: hidden;
    margin-bottom: 20px;
}

.amz-bk-form-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--bk-gray-200);
    background: var(--bk-gray-50);
    display: flex;
    align-items: center;
    gap: 10px;
}

.amz-bk-form-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--bk-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.amz-bk-form-card-title i {
    color: var(--bk-orange);
}

.amz-bk-form-card-body {
    padding: 24px;
}

/* Form styling within cards */
.amz-bk-form-card-body .form-group {
    margin-bottom: 20px;
}

.amz-bk-form-label,
.amz-bk-form-card-body label {
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

.amz-bk-form-card-body .form-control {
    padding: 10px 14px;
    border: 1px solid var(--bk-gray-200);
    border-radius: 6px;
    font-size: 14px;
    transition: var(--bk-transition);
    width: 100%;
    color: var(--bk-text);
}

.amz-bk-form-card-body .form-control:focus {
    border-color: var(--bk-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

.amz-bk-form-card-body textarea.form-control {
    resize: vertical;
    min-height: 60px;
}

/* ============================================
   13. LINES TABLE (journal entries, items)
   ============================================ */
.amz-bk-lines-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.amz-bk-lines-table thead th {
    background: linear-gradient(135deg, var(--bk-navy) 0%, var(--bk-navy-light) 100%);
    color: var(--bk-white);
    font-size: 12px;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.amz-bk-lines-table tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--bk-gray-50);
}

.amz-bk-lines-table tbody td .form-control {
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid var(--bk-gray-200);
    border-radius: 6px;
}

.amz-bk-lines-table tbody td .form-control:focus {
    border-color: var(--bk-orange);
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.15);
    outline: none;
}

.amz-bk-lines-table tfoot td {
    padding: 12px 16px;
    background: var(--bk-gray-50);
    font-weight: 700;
}

/* Add/Remove line buttons */
.amz-bk-btn-add-line {
    background: var(--bk-green);
    color: var(--bk-white);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--bk-transition);
}

.amz-bk-btn-add-line:hover { background: var(--bk-green-dark); }

.amz-bk-btn-remove-line {
    background: #fee2e2;
    color: var(--bk-red-dark);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--bk-transition);
}

.amz-bk-btn-remove-line:hover { background: var(--bk-red-dark); color: var(--bk-white); }

/* ============================================
   14. BALANCE INFO BAR
   ============================================ */
.amz-bk-balance-bar {
    background: var(--bk-gray-50);
    border-radius: var(--bk-radius);
    padding: 16px 20px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--bk-gray-200);
}

.amz-bk-balance-bar.balanced {
    background: #d1fae5;
    border-color: #a7f3d0;
}

.amz-bk-balance-bar.unbalanced {
    background: #fee2e2;
    border-color: #fecaca;
}

.amz-bk-balance-label {
    font-weight: 600;
    color: var(--bk-gray-600);
    font-size: 14px;
}

.amz-bk-balance-value {
    font-size: 20px;
    font-weight: 700;
    font-family: var(--bk-font-mono);
}

.amz-bk-balance-bar.balanced .amz-bk-balance-value { color: var(--bk-green-dark); }
.amz-bk-balance-bar.unbalanced .amz-bk-balance-value { color: var(--bk-red-dark); }

/* ============================================
   15. ACCOUNT LIST (dashboard-style rows)
   ============================================ */
.amz-bk-account-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.amz-bk-account-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bk-gray-50);
    border-radius: 6px;
    transition: var(--bk-transition);
    border: 1px solid transparent;
}

.amz-bk-account-item:hover {
    background: var(--bk-gray-200);
    border-color: var(--bk-gray-300);
}

.amz-bk-account-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--bk-white), var(--bk-gray-50));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bk-orange);
    font-size: 16px;
    flex-shrink: 0;
    border: 1px solid var(--bk-gray-200);
}

.amz-bk-account-info { flex: 1; min-width: 0; }
.amz-bk-account-name { font-weight: 600; color: var(--bk-text); margin-bottom: 2px; font-size: 14px; }
.amz-bk-account-type { font-size: 12px; color: var(--bk-gray-500); }

.amz-bk-account-balance {
    font-size: 16px;
    font-weight: 700;
    font-family: var(--bk-font-mono);
    color: var(--bk-text);
    white-space: nowrap;
}

/* ============================================
   16. EMPTY STATE
   ============================================ */
.amz-bk-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--bk-gray-500);
}

.amz-bk-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--bk-orange);
    margin: 0 auto 16px;
}

.amz-bk-empty i {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
    color: var(--bk-text-light);
}

.amz-bk-empty h4 {
    color: var(--bk-text);
    margin-bottom: 8px;
    font-size: 18px;
}

.amz-bk-empty p {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--bk-gray-500);
}

/* ============================================
   17. PROGRESS BAR
   ============================================ */
.amz-bk-progress {
    background: var(--bk-gray-200);
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.amz-bk-progress-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--bk-green), var(--bk-green-dark));
    transition: width 0.3s ease;
}

.amz-bk-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--bk-gray-500);
}

/* ============================================
   18. INFO ROWS (key-value display)
   ============================================ */
.amz-bk-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--bk-gray-50);
}

.amz-bk-info-row:last-child { border-bottom: none; }

.amz-bk-info-label {
    font-size: 14px;
    color: var(--bk-gray-500);
    font-weight: 500;
}

.amz-bk-info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--bk-text);
}

.amz-bk-info-value.mono {
    font-family: var(--bk-font-mono);
}

/* ============================================
   19. TYPE SELECTOR GRID (create forms)
   ============================================ */
.amz-bk-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .amz-bk-type-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .amz-bk-type-grid { grid-template-columns: 1fr; }
}

.amz-bk-type-card {
    background: var(--bk-white);
    border: 2px solid var(--bk-gray-200);
    border-radius: var(--bk-radius);
    padding: 16px;
    cursor: pointer;
    transition: var(--bk-transition);
    text-align: center;
    position: relative;
}

.amz-bk-type-card:hover {
    border-color: var(--bk-orange);
    background: #fff8ee;
}

.amz-bk-type-card.selected {
    border-color: var(--bk-orange);
    background: #fff8ee;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.15);
}

.amz-bk-type-card.selected::after {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 8px;
    color: var(--bk-orange);
    font-size: 16px;
}

.amz-bk-type-card input[type="radio"] { display: none; }

.amz-bk-type-card-icon {
    font-size: 24px;
    color: var(--bk-orange);
    margin-bottom: 8px;
}

.amz-bk-type-card-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--bk-text);
}

/* ============================================
   20. COLLAPSIBLE SECTION (COA account groups)
   ============================================ */
.amz-bk-collapse-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}

.amz-bk-collapse-header:hover { background: var(--bk-gray-50); }

.amz-bk-collapse-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--bk-gray-200);
}

/* Collapse header color variants */
.amz-bk-collapse-header.asset::before { background: var(--bk-green); }
.amz-bk-collapse-header.liability::before { background: var(--bk-red); }
.amz-bk-collapse-header.equity::before { background: var(--bk-blue); }
.amz-bk-collapse-header.income::before { background: var(--bk-purple); }
.amz-bk-collapse-header.expense::before { background: var(--bk-amber); }
.amz-bk-collapse-header.cogs::before { background: var(--bk-indigo); }

.amz-bk-collapse-header.asset .amz-bk-section-title i { color: var(--bk-green); }
.amz-bk-collapse-header.liability .amz-bk-section-title i { color: var(--bk-red); }
.amz-bk-collapse-header.equity .amz-bk-section-title i { color: var(--bk-blue); }
.amz-bk-collapse-header.income .amz-bk-section-title i { color: var(--bk-purple); }
.amz-bk-collapse-header.expense .amz-bk-section-title i { color: var(--bk-amber); }
.amz-bk-collapse-header.cogs .amz-bk-section-title i { color: var(--bk-indigo); }

.amz-bk-collapse-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.amz-bk-collapse-total {
    font-size: 16px;
    font-weight: 700;
    font-family: var(--bk-font-mono);
    color: var(--bk-text);
}

.amz-bk-toggle-icon {
    color: var(--bk-gray-600);
    transition: transform 0.3s ease;
}

.amz-bk-collapse-header.collapsed .amz-bk-toggle-icon {
    transform: rotate(-90deg);
}

.amz-bk-count-badge {
    background: var(--bk-gray-50);
    color: var(--bk-text);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid var(--bk-gray-200);
}

/* ============================================
   21. ACCOUNT CODE BADGE
   ============================================ */
.amz-bk-code {
    font-family: var(--bk-font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--bk-gray-500);
    background: var(--bk-gray-50);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    letter-spacing: 0.3px;
    border: 1px solid var(--bk-gray-200);
}

/* ============================================
   22. GRID LAYOUTS
   ============================================ */
.amz-bk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.amz-bk-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.amz-bk-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1200px) {
    .amz-bk-grid { grid-template-columns: 1fr 1fr; }
    .amz-bk-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .amz-bk-grid,
    .amz-bk-grid.cols-2,
    .amz-bk-grid.cols-4 { grid-template-columns: 1fr; }
}

/* Two-column form layout with sidebar */
.amz-bk-layout-main { grid-column: span 2; }
.amz-bk-layout-sidebar { grid-column: span 1; }

@media (max-width: 992px) {
    .amz-bk-layout-main,
    .amz-bk-layout-sidebar { grid-column: span 1; }
    .amz-bk-grid.cols-2 { grid-template-columns: 1fr; }
}

/* ============================================
   23. DATATABLES INTEGRATION
   ============================================ */
.amz-bk-section .dataTables_wrapper { padding: 0; }

.amz-bk-section .dataTables_wrapper .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--bk-white);
    border-bottom: 1px solid var(--bk-gray-200);
    flex-wrap: wrap;
    gap: 16px;
}

.amz-bk-section .dataTables_wrapper .dataTables_length label,
.amz-bk-section .dataTables_wrapper .dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    color: var(--bk-gray-500);
    font-weight: 500;
}

.amz-bk-section .dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--bk-gray-200);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--bk-text);
    background: var(--bk-white);
    min-width: 70px;
    cursor: pointer;
}

.amz-bk-section .dataTables_wrapper .dataTables_filter input {
    border: 1px solid var(--bk-gray-200);
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    width: 220px;
    transition: var(--bk-transition);
}

.amz-bk-section .dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--bk-orange);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.2);
}

.amz-bk-section .dataTables_wrapper .bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--bk-gray-50);
    border-top: 1px solid var(--bk-gray-200);
    flex-wrap: wrap;
    gap: 12px;
}

.amz-bk-section .dataTables_wrapper .dataTables_info {
    font-size: 13px;
    color: var(--bk-gray-500);
    font-weight: 500;
}

/* DT Export Buttons */
.amz-bk-section .dt-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.amz-bk-section .dt-buttons .dt-button {
    background: var(--bk-white) !important;
    border: 1px solid var(--bk-gray-200) !important;
    border-radius: 6px !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: var(--bk-gray-500) !important;
    cursor: pointer;
    transition: var(--bk-transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.amz-bk-section .dt-buttons .dt-button:hover {
    background: var(--bk-gray-50) !important;
    border-color: var(--bk-orange) !important;
    color: var(--bk-orange) !important;
}

/* ============================================
   24. TRANSFER VISUALIZATION
   ============================================ */
.amz-bk-transfer-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 24px;
    margin-bottom: 20px;
}

.amz-bk-transfer-box {
    background: var(--bk-white);
    border: 2px solid var(--bk-gray-200);
    border-radius: var(--bk-radius-lg);
    padding: 20px;
    text-align: center;
    min-width: 200px;
    transition: var(--bk-transition);
}

.amz-bk-transfer-box.active {
    border-color: var(--bk-orange);
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

.amz-bk-transfer-arrow {
    font-size: 24px;
    color: var(--bk-orange);
}

@media (max-width: 576px) {
    .amz-bk-transfer-visual { flex-direction: column; }
    .amz-bk-transfer-arrow { transform: rotate(90deg); }
}

/* ============================================
   25. STICKY SIDEBAR
   ============================================ */
.amz-bk-sticky {
    position: sticky;
    top: 20px;
}

/* ============================================
   26. ANIMATIONS
   ============================================ */
@keyframes amzBkFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.amz-bk-stat-card,
.amz-bk-quick-action,
.amz-bk-section,
.amz-bk-form-card {
    animation: amzBkFadeIn 0.3s ease forwards;
}

/* ============================================
   27. PRINT STYLES
   ============================================ */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .amz-bk-page {
        min-height: 0 !important;
        padding: 0 !important;
        background: var(--bk-white) !important;
    }
    .amz-bk-header,
    .amz-bk-stats,
    .amz-bk-quick-actions,
    .amz-bk-filters,
    .amz-bk-section-header,
    .amz-bk-actions,
    .amz-bk-action-btn,
    .amz-bk-btn-primary,
    .amz-bk-btn-secondary,
    .amz-bk-btn-success,
    .amz-bk-btn-danger,
    .dt-buttons,
    .dataTables_length,
    .dataTables_filter,
    .dataTables_paginate,
    .dataTables_info {
        display: none !important;
    }
    .amz-bk-section {
        box-shadow: none !important;
        border: none !important;
    }
    .amz-bk-table { page-break-inside: auto !important; }
    .amz-bk-table tr { page-break-inside: avoid !important; }
    .amz-bk-table thead { display: table-header-group !important; }
}

/* ============================================
   28. SUMMARY INFO CARD (show pages)
   ============================================ */
.amz-bk-summary-card {
    background: var(--bk-white);
    border-radius: var(--bk-radius);
    box-shadow: var(--bk-shadow-sm);
    border: 1px solid var(--bk-gray-200);
    overflow: hidden;
    margin-bottom: 20px;
}

.amz-bk-summary-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--bk-navy) 0%, var(--bk-navy-light) 100%);
    color: var(--bk-white);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--bk-orange);
}

.amz-bk-summary-header i { color: var(--bk-orange); }

.amz-bk-summary-body {
    padding: 20px;
}

/* ============================================
   29. SYSTEM / INACTIVE BADGES
   ============================================ */
.amz-bk-system-badge {
    background: #e3f2fd;
    color: #1976d2;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    border: 1px solid #bbdefb;
}

.amz-bk-inactive-badge {
    background: var(--bk-gray-100);
    color: var(--bk-gray-600);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    border: 1px solid var(--bk-gray-200);
}

/* ============================================
   30. FORM ACTIONS BAR
   ============================================ */
.amz-bk-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px 0;
}

@media (max-width: 576px) {
    .amz-bk-form-actions {
        flex-direction: column;
    }
    .amz-bk-form-actions .amz-bk-btn-primary,
    .amz-bk-form-actions .amz-bk-btn-secondary,
    .amz-bk-form-actions .amz-bk-btn-success {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   31. SELECT2 INTEGRATION
   ============================================ */
.amz-bk-form-card-body .select2-container--default .select2-selection--single {
    border: 1px solid var(--bk-gray-200);
    border-radius: 6px;
    height: 40px;
    padding: 4px 8px;
}

.amz-bk-form-card-body .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px;
    color: var(--bk-text);
}

.amz-bk-form-card-body .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
}

.amz-bk-form-card-body .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--bk-orange);
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.15);
}

/* ============================================
   32. TABS (settings, tabbed pages)
   ============================================ */
.amz-bk-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--bk-gray-200);
    margin-bottom: 20px;
}

.amz-bk-tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bk-gray-500);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--bk-transition);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.amz-bk-tab:hover {
    color: var(--bk-text);
    border-bottom-color: var(--bk-gray-300);
}

.amz-bk-tab.active {
    color: var(--bk-orange);
    border-bottom-color: var(--bk-orange);
}

/* ============================================
   33. REPORT-SPECIFIC STYLES
   ============================================ */
.amz-bk-report-total-row td {
    font-weight: 700 !important;
    background: var(--bk-gray-50) !important;
    border-top: 2px solid var(--bk-gray-200) !important;
    font-size: 15px !important;
}

.amz-bk-report-group-header td {
    font-weight: 700;
    background: var(--bk-gray-50);
    color: var(--bk-text);
    font-size: 14px;
    border-bottom: 1px solid var(--bk-gray-200);
}

.amz-bk-report-subrow td {
    padding-left: 32px !important;
    color: var(--bk-gray-700);
}

/* ============================================
   34. NO RESULTS STATE
   ============================================ */
.amz-bk-no-results {
    text-align: center;
    padding: 48px 20px;
    background: var(--bk-white);
    border-radius: var(--bk-radius);
    box-shadow: var(--bk-shadow-sm);
    border: 1px solid var(--bk-gray-200);
    display: none;
}

.amz-bk-no-results.show { display: block; }

.amz-bk-no-results i {
    font-size: 48px;
    color: var(--bk-text-light);
    margin-bottom: 16px;
}

.amz-bk-no-results h4 {
    color: var(--bk-text);
    font-size: 18px;
    margin-bottom: 8px;
}

.amz-bk-no-results p {
    color: var(--bk-gray-500);
    margin-bottom: 16px;
}

/* ============================================
   35. UTILITY CLASSES
   ============================================ */
.amz-bk-text-right { text-align: right; }
.amz-bk-text-center { text-align: center; }
.amz-bk-text-muted { color: var(--bk-gray-500); }
.amz-bk-text-success { color: var(--bk-green) !important; }
.amz-bk-text-danger { color: var(--bk-red) !important; }
.amz-bk-text-warning { color: var(--bk-amber) !important; }
.amz-bk-text-info { color: var(--bk-teal) !important; }
.amz-bk-font-mono { font-family: var(--bk-font-mono); }
.amz-bk-fw-bold { font-weight: 700; }
.amz-bk-mb-0 { margin-bottom: 0 !important; }
.amz-bk-mt-16 { margin-top: 16px; }
.amz-bk-gap-12 { gap: 12px; }
.amz-bk-flex { display: flex; }
.amz-bk-flex-between { display: flex; justify-content: space-between; align-items: center; }
.amz-bk-flex-center { display: flex; align-items: center; }
.amz-bk-flex-gap { display: flex; gap: 12px; }
.amz-bk-flex-wrap { flex-wrap: wrap; }
