/* ── FBR Items Table ── */
[data-fieldname="items"] .grid-row td,
[data-fieldname="items"] .grid-heading-row th {
    font-size: 11px !important;
    padding: 3px 5px !important;
}
[data-fieldname="items"] .grid-body { overflow-x: auto !important; }
[data-fieldname="items"] .form-grid { min-width: 900px; }

/* ── FBR Invoice Number ── */
[data-fieldname="fbr_invoice_number_display"] .control-value {
    font-family: monospace !important; font-size: 14px !important;
    font-weight: 700 !important; color: #1f518e !important;
}
[data-fieldname="system_invoice_number"] .control-value {
    font-family: monospace !important; font-size: 13px !important;
    font-weight: 600 !important; color: #1f518e !important;
}

/* ── FBR Success Banner ── */
.fbr-success-banner {
    background: linear-gradient(135deg,#e4edf8,#f0f7ff);
    border: 1px solid #2b86bf; border-radius: 4px;
    padding: 8px 14px; color: #1f518e; font-weight: 600;
    display: flex; align-items: center; gap: 10px; font-size: 12px;
}
.fbr-success-banner .fbr-inv-no {
    font-size: 14px; font-family: monospace; color: #1f518e;
}

/* ── FBR Error Display ── */
.fbr-errors-wrap {
    background: #fff3f3; border: 1px solid #f5c6cb;
    border-radius: 4px; padding: 10px 14px;
}
.fbr-err-row { display: flex; gap: 8px; margin: 4px 0; font-size: 12px; align-items: flex-start; }
.fbr-err-code {
    background: linear-gradient(135deg,#1f518e,#2b86bf);
    color: white; padding: 1px 7px; border-radius: 3px;
    font-weight: bold; font-size: 11px; flex-shrink: 0; font-family: monospace;
}

/* ── FBR Topbar Badge ── */
#fbr-topbar-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 20px; font-size: 11px;
    font-weight: 600; white-space: nowrap;
    background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.35); color: #fff;
}
#fbr-topbar-badge .fbr-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #ffc107;
}
#fbr-topbar-badge.production .fbr-dot { background: #28a745; }

/* ── Customer Status Pills ── */
.fbr-status-active {
    color: #155724; background: #d4edda;
    padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600;
}
.fbr-status-inactive {
    color: #721c24; background: #f8d7da;
    padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600;
}

/* ── Items table dropdown — allow overflow so dropdowns show above grid ── */
.form-grid .grid-body .rows {
    overflow: visible !important;
}
.form-grid .grid-row td.col {
    overflow: visible !important;
}

/* ── Form labels navy blue — labels only, not values or buttons ── */
.frappe-control .control-label,
.form-column .control-label,
.form-section .section-head,
.section-head {
    color: #1f518e !important;
}

/* ── List row hover — only the row background ── */
.list-row-container:hover .list-row {
    background: #e8f4ff !important;
}
.list-row-container:hover .list-row .level-item,
.list-row-container:hover .list-row span:not(.indicator-pill):not(.badge) {
    background: transparent !important;
}
