/* BREAKER_PANELS_FE_V1 */
.bp-search-card{padding:18px;margin-bottom:16px}
.bp-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}
.bp-search-input{font-size:18px!important;font-weight:700;text-transform:uppercase;border-width:2px!important}
.bp-hint{font-size:12px;color:var(--text3);margin-top:7px}
.bp-divider{display:flex;align-items:center;gap:12px;margin:18px 0 14px;color:var(--text3);font-size:11px;font-weight:700;letter-spacing:.08em}
.bp-divider:before,.bp-divider:after{content:"";height:1px;background:var(--border);flex:1}
.bp-browse{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(180px,.6fr) auto;gap:10px;align-items:end}
.bp-results{display:grid;gap:8px;margin-top:14px}
.bp-result{display:grid;grid-template-columns:minmax(115px,.3fr) minmax(230px,1fr) auto;gap:14px;align-items:center;border:1px solid var(--border);border-left:5px solid var(--accent);border-radius:8px;padding:11px 12px;background:var(--surface2);cursor:pointer}
.bp-result:hover{border-color:var(--accent)}
.bp-result-number{font-size:19px;font-weight:800;color:var(--text)}
.bp-result-path{font-weight:650;color:var(--text2)}
.bp-result-meta{font-size:12px;color:var(--text3);margin-top:3px}
.bp-warning{margin:12px 0 0;padding:10px 12px;border-left:4px solid #d59815;border-radius:4px;background:rgba(213,152,21,.12);color:#f0c96c;font-size:13px}
.bp-summary{display:grid;grid-template-columns:minmax(220px,1.4fr) repeat(5,minmax(90px,.5fr));gap:16px;padding:18px;background:linear-gradient(135deg,rgba(28,137,234,.13),transparent);border-bottom:1px solid var(--border)}
.bp-panel-number{font-size:28px;font-weight:800;color:var(--text);letter-spacing:-.02em}
.bp-panel-path{font-size:13px;color:var(--text2);margin-top:5px}
.bp-record-id{font:12px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--accent);margin-top:5px}
.bp-summary-label{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--text3);font-weight:750}
.bp-summary-value{font-weight:700;color:var(--text);margin-top:5px}
.bp-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-bottom:1px solid var(--border)}
.bp-actions{display:flex;gap:8px;flex-wrap:wrap}
.bp-schedule-wrap{padding:18px;overflow-x:auto}
.bp-enclosure{min-width:820px;border:7px solid #44505a;border-radius:7px;padding:12px;background:#dfe4e8;box-shadow:inset 0 0 0 2px #aeb8bf;color:#17212b}
.bp-schedule-head,.bp-circuit-row{display:grid;grid-template-columns:64px 78px minmax(190px,1fr) 64px 78px minmax(190px,1fr);gap:4px}
.bp-schedule-head{padding-bottom:7px;font-size:10px;font-weight:800;text-align:center;text-transform:uppercase;letter-spacing:.04em}
.bp-circuit-row{min-height:42px;margin-bottom:4px}
.bp-cell{display:flex;align-items:center;min-width:0;border:1px solid #a9b3ba;background:#fff;padding:6px 8px;font-size:12px}
.bp-circuit-no{justify-content:center;background:#303a43;color:#fff;font-size:14px;font-weight:800}
.bp-breaker{justify-content:center;background:#f3f5f6;font-weight:800}
.bp-description{flex-direction:column;align-items:flex-start;justify-content:center}
.bp-description strong,.bp-description span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bp-description span{color:#65727c}
.bp-critical{border-left:4px solid #bd3030}
.bp-spare strong{font-style:italic;color:#7a858d}
.bp-room-assets{padding:18px;border-top:1px solid var(--border)}
.bp-room-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.bp-room-head h3{margin:0;font-size:19px}
.bp-room-head p{margin:4px 0 0;color:var(--text3);font-size:12px}
.bp-count{padding:5px 10px;border-radius:999px;background:rgba(28,137,234,.12);color:var(--accent);font-size:12px;font-weight:750}
.bp-selected-asset{background:rgba(28,137,234,.10)}
.bp-editor-table{width:100%;border-collapse:collapse;min-width:760px}
.bp-editor-table th,.bp-editor-table td{padding:6px;border-bottom:1px solid var(--border);text-align:left;font-size:12px}
.bp-editor-table input,.bp-editor-table select{min-width:0;width:100%}
.bp-modal-wide .modal{width:min(1050px,96vw);max-width:1050px}
@media(max-width:1000px){.bp-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.bp-identity{grid-column:1/-1}}
@media(max-width:720px){.bp-search-row,.bp-browse,.bp-result{grid-template-columns:1fr}.bp-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.bp-toolbar,.bp-room-head{align-items:stretch;flex-direction:column}.bp-actions .btn{flex:1}}
@media print{.bp-search-card,.bp-actions,.sidebar,.topbar{display:none!important}.bp-schedule-wrap{padding:8px 0}.bp-enclosure{min-width:0}.bp-room-assets{break-before:page}}
/* BREAKER_CIRCUIT_STATUS_V1 — append to /app/static/css/breaker_panels_v1.css
   Colours sit on .bp-description, which is a flex box holding <strong> and
   <span>, so both children are given an explicit colour where the background
   is dark. Existing .bp-critical (red left border) still layers on top. */

.bp-st-active        {background:#1f7a35;border-color:#155c27}
.bp-st-active strong,
.bp-st-active span   {color:#fff}

.bp-st-spare         {background:#fff;border-color:#8f9aa2}
.bp-st-spare strong,
.bp-st-spare span    {color:#111}

.bp-st-space         {background:#111;border-color:#000}
.bp-st-space strong,
.bp-st-space span    {color:#fff}

.bp-st-oos           {background:#e07b18;border-color:#a85c06}
.bp-st-oos strong,
.bp-st-oos span      {color:#1a1204}

.bp-st-loto          {background:#c62828;border-color:#8e1c1c}
.bp-st-loto strong   {color:#0d0000;font-weight:800;letter-spacing:.02em}
.bp-st-loto span     {color:#1a0505}

.bp-st-unknown       {background:#e6e9eb;border-color:#c2cace}
.bp-st-unknown strong{color:#5b666e;font-style:italic}
.bp-st-unknown span  {color:#7a858d}

.bp-clickable{cursor:pointer}
.bp-clickable:hover,
.bp-clickable:focus-visible{outline:2px solid #2f6fed;outline-offset:-2px}

/* Legend under the schedule */
.bp-legend{display:flex;flex-wrap:wrap;gap:10px 16px;margin:10px 2px 0;font-size:11px;color:var(--text2)}
.bp-legend-item{display:inline-flex;align-items:center;gap:6px}
.bp-legend-item i{width:14px;height:14px;border:1px solid #8f9aa2;display:inline-block}

/* Circuit modal */
.bp-circuit-head{font-size:14px;margin-bottom:10px}
.bp-circuit-sub{font-size:12px;color:var(--text3);margin-top:2px}
.bp-swatches{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;margin:12px 0}
.bp-swatch{border:1px solid #8f9aa2;padding:10px 8px;font-size:12px;font-weight:700;cursor:pointer;text-align:center}
.bp-swatch-on{box-shadow:inset 0 0 0 2px #2f6fed}
.bp-loto-note{border-left:4px solid #c62828;background:#fdeaea;color:#5b1414;padding:8px 10px;font-size:12px;margin-bottom:10px}
.bp-loto-note div{margin-top:4px;font-weight:400}
.bp-circuit-warn{font-size:11px;color:var(--text3);margin:10px 0 0;line-height:1.45}

@media print{
  .bp-clickable{outline:none}
  .bp-legend{color:#000}
}

/* BREAKER_PANEL_COMPACT_V1 — panel-schedule proportions */
.bp-schedule-wrap{max-width:960px}
.bp-schedule-head,.bp-circuit-row{
  grid-template-columns:38px 50px minmax(0,1fr) 38px 50px minmax(0,1fr);
  gap:2px}
.bp-circuit-row{min-height:32px;margin-bottom:2px}
.bp-cell{padding:3px 6px;font-size:11px}
.bp-description{flex-direction:column;align-items:flex-start;justify-content:center;line-height:1.25}
.bp-description strong{font-size:11px;font-weight:700}
.bp-description span{font-size:10px;opacity:.85}
.bp-circuit-no{justify-content:center;font-weight:700}

/* BREAKER_PANEL_COMPACT_V2 */
.bp-schedule-head,.bp-circuit-row{grid-template-columns:44px 62px minmax(0,1fr) 44px 62px minmax(0,1fr)}
.bp-schedule-head{font-size:9px;letter-spacing:.02em;overflow:hidden}
.bp-schedule-head>div{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:0 4px}

