/* cards/branch_warehouse_card/style.css */
.card-footer-custom .tda-pill-btn, .card-footer-custom .kpi-pill-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    height: auto !important;
    margin: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}
.card-footer-custom .tda-pill-btn {
    background: rgba(124, 58, 237, 0.05) !important;
    color: #7c3aed !important;
    border: 1px solid rgba(124, 58, 237, 0.2) !important;
}
.card-footer-custom .tda-pill-btn:hover {
    background: #7c3aed !important;
    color: #ffffff !important;
    border-color: #7c3aed !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px rgba(124, 58, 237, 0.2) !important;
}
.card-footer-custom .kpi-pill-btn {
    background: rgba(16, 185, 129, 0.05) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
}
.card-footer-custom .kpi-pill-btn:hover {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2) !important;
}
.card-footer-custom i {
    font-size: 0.75rem !important;
    margin: 0 !important;
}
.modal-custom {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', 'Prompt', sans-serif;
}
.modal-content-custom {
    background: white;
    width: 95%;
    max-width: 1400px;
    max-height: 90vh;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-header-custom {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-body-custom {
    flex: 1;
    overflow-y: auto;
    background: #f8fafc;
}
.modal-footer-custom {
    background: white;
    padding: 15px 30px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.close-modal-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}
.modal-btn {
    padding: 10px 22px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}
.modal-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}
.modal-btn-info {
    background: #f1f5f9;
    color: #475569;
}
.section-divider {
    border-left: 4px solid #8b5cf6;
    padding-left: 10px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.sales-stock-table-container {
    margin-top: 25px;
    background: white;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.sales-stock-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.72rem;
}
.sales-stock-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 800;
    padding: 12px 10px;
    text-align: center;
    border: 1px solid #cbd5e1;
    white-space: nowrap;
    font-size: 0.65rem;
    letter-spacing: 0.3px;
}
.sales-stock-table td {
    padding: 10px 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
    white-space: nowrap;
}
.sales-stock-table tr:hover {
    background: #f8fafc !important;
}
.th-spicy { background: rgba(239, 68, 68, 0.08) !important; color: #b91c1c !important; border-bottom: 2px solid rgba(239, 68, 68, 0.3) !important; }
.th-original { background: rgba(59, 130, 246, 0.08) !important; color: #0369a1 !important; border-bottom: 2px solid rgba(59, 130, 246, 0.3) !important; }
.th-cantonese { background: rgba(16, 185, 129, 0.08) !important; color: #15803d !important; border-bottom: 2px solid rgba(16, 185, 129, 0.3) !important; }
.th-beancurd { background: rgba(245, 158, 11, 0.08) !important; color: #9a3412 !important; border-bottom: 2px solid rgba(245, 158, 11, 0.3) !important; }
.th-garlic { background: rgba(139, 92, 246, 0.08) !important; color: #7c3aed !important; border-bottom: 2px solid rgba(139, 92, 246, 0.3) !important; }

.td-spicy { background: rgba(239, 68, 68, 0.015); }
.td-original { background: rgba(59, 130, 246, 0.015); }
.td-cantonese { background: rgba(16, 185, 129, 0.015); }
.td-beancurd { background: rgba(245, 158, 11, 0.015); }
.td-garlic { background: rgba(139, 92, 246, 0.015); }

.badge-payment {
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.65rem;
}
.bg-vansale { background: #e0e7ff; color: #4338ca; }
.bg-branch { background: #dcfce7; color: #15803d; }
.bg-wh03 { background: #fef9c3; color: #854d0e; }
.bg-supervisor { background: #ffedd5; color: #9a3412; }
.status-badge-custom {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    border: 1px solid rgba(0,0,0,0.05);
}
.status-low { background: #fee2e2; color: #dc2626; border-color: rgba(220, 38, 38, 0.2); }
.status-normal { background: #dcfce7; color: #15803d; border-color: rgba(21, 128, 61, 0.2); }
.status-high { background: #ffedd5; color: #9a3412; border-color: rgba(154, 52, 18, 0.2); }
.col-highlight-amber { background: rgba(245, 158, 11, 0.05); font-weight: 800; color: #d97706; }
.col-highlight-blue { background: rgba(59, 130, 246, 0.05); font-weight: 800; color: #2563eb; }
