.fb-app-modal { background: #eef1f6; border: 0; }
.fb-app { display: grid; grid-template-columns: 230px 1fr; height: 100vh; }
.fb-app-side { background: #fff; border-right: 1px solid #e6ebf2; overflow: auto; padding: .75rem .65rem 1.5rem; }
.fb-app-brand { padding: .4rem .45rem 1rem; }
.fb-app-brand img { height: 36px; width: auto; }
.fb-app-label { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; margin: .85rem .45rem .25rem; font-weight: 700; }
.fb-app-link { display: block; width: 100%; text-align: left; border: 0; background: transparent; border-radius: 10px; padding: .45rem .65rem; color: #334155; font-weight: 600; font-size: .86rem; }
.fb-app-link.active { background: #162D4F; color: #fff; }
.fb-app-main { display: flex; flex-direction: column; min-width: 0; }
.fb-app-top { display: flex; align-items: center; gap: 1rem; background: #fff; border-bottom: 1px solid #e6ebf2; padding: .7rem 1rem; }
.fb-crumb { background: #fff; border: 1px solid #e6ebf2; border-radius: 12px; padding: .45rem .8rem; font-weight: 700; color: #162D4F; }
.fb-highlight-bar { margin: .65rem 1rem 0; background: #fff7f2; border-left: 4px solid #E66224; border-radius: 10px; padding: .65rem .85rem; color: #7c2d12; font-size: .86rem; font-weight: 600; }
.fb-highlight-bar.is-flash { animation: fbRise .35s ease; }
.fb-filter { background: #fff; border: 1px solid #e6ebf2; border-radius: 12px; padding: .7rem .9rem; margin-bottom: .75rem; display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: #162D4F; }
.fb-actions { display: flex; gap: .35rem; flex-wrap: wrap; }
.fb-actions.col { flex-direction: column; align-items: flex-start; }
.fb-act { border: 0; border-radius: 6px; color: #fff; font-size: .72rem; font-weight: 700; padding: .28rem .45rem; }
.fb-act.navy { background: #162D4F; }
.fb-act.orange { background: #E66224; }
.fb-act.red { background: #dc3545; }
.fb-act.teal { background: #0d9488; }
.fb-app-user { margin-left: auto; text-align: right; line-height: 1.15; }
.fb-app-user strong, .fb-app-user small { display: block; }
.fb-app-user small { color: #64748b; }
.fb-app-body { position: relative; flex: 1; overflow: auto; padding: 1rem; }
.fb-view { display: none; }
.fb-view.is-on { display: block; }
.fb-view-in { animation: fbRise .35s ease; }
.fb-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-bottom: 1rem; }
.fb-kpi, .fb-panel, .fb-card-preview, .fb-bank-grid article, .fb-line-grid article { background: #fff; border: 1px solid #e6ebf2; border-radius: 14px; }
.fb-kpi { text-align: left; padding: 1rem; }
.fb-kpi span, .fb-kpi small { display: block; color: #64748b; font-size: .78rem; }
.fb-kpi strong { font-size: 1.7rem; color: #162D4F; }
.fb-panel { padding: 1rem; }
.fb-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.fb-panel h3, .fb-panel-head h3 { font-size: 1.05rem; color: #162D4F; margin: 0 0 .75rem; }
.fb-panel-head h3 { margin: 0; }
.fb-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.fb-table th, .fb-table td { padding: .55rem .4rem; border-bottom: 1px solid #eef2f6; text-align: left; }
.fb-table th { color: #64748b; font-weight: 600; }
.fb-pill { background: #e8eef8; color: #162D4F; border-radius: 999px; padding: .1rem .5rem; font-size: .75rem; font-weight: 700; }
.fb-pill.ok { background: #dcfce7; color: #166534; }
.fb-pill.warn { background: #ffedd5; color: #9a3412; }
.fb-mini { background: #162D4F; color: #fff; border: 0; border-radius: 8px; padding: .4rem .7rem; font-weight: 700; font-size: .8rem; }
.fb-search, .fb-app label { display: block; font-size: .78rem; color: #64748b; margin-bottom: .2rem; }
.fb-search { width: 100%; border: 1px solid #e6ebf2; border-radius: 10px; padding: .45rem .7rem; margin-bottom: .75rem; }
.fb-card-preview { padding: 1rem; }
.fb-card-preview.is-added { box-shadow: inset 0 0 0 2px #E66224; }
.fb-track-detail, .fb-row-toggle { width: 100%; text-align: left; }
.fb-row-toggle { border: 1px solid #e6ebf2; background: #f8fafc; border-radius: 10px; padding: .6rem .75rem; font-weight: 700; color: #162D4F; }
.fb-track-detail { padding: .75rem; }
.fb-split { display: grid; grid-template-columns: 180px 1fr; gap: .75rem; }
.fb-subnav { display: flex; flex-direction: column; gap: .35rem; }
.fb-subnav button { border: 0; background: #fff; border-radius: 10px; padding: .5rem .7rem; text-align: left; font-weight: 700; color: #162D4F; }
.fb-subnav button.active { background: #5b4dff; color: #fff; }
.fb-bank-grid, .fb-line-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.fb-bank-grid article, .fb-line-grid article { padding: 1rem; }
.fb-line-grid { grid-template-columns: repeat(4, 1fr); }
.fb-line-grid article { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: #162D4F; }
.fb-line-grid button, .fb-status { border: 0; background: #eef2f6; border-radius: 8px; padding: .25rem .5rem; font-size: .75rem; font-weight: 700; }
.fb-status.is-off { background: #fee2e2; color: #991b1b; }
.fb-bank-grid article.is-new { animation: fbRise .35s ease; }
.fb-app-toast { position: absolute; right: 1rem; bottom: 1rem; background: #162D4F; color: #fff; border-radius: 12px; padding: .7rem 1rem; box-shadow: 0 10px 30px rgba(22,45,79,.25); max-width: 320px; }
.fb-toast-inline { color: #166534; font-size: .85rem; margin: .5rem 0 0; }
@media (max-width: 991.98px) {
    .fb-app { grid-template-columns: 1fr; height: 100vh; }
    .fb-app-side { display: flex; gap: .35rem; overflow-x: auto; padding: .5rem; }
    .fb-app-brand, .fb-app-label { display: none; }
    .fb-app-link { width: auto; white-space: nowrap; }
    .fb-kpi-grid, .fb-line-grid, .fb-split, .fb-bank-grid { grid-template-columns: 1fr 1fr; }
}
@keyframes fbRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
