.b04-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.b04-toolbar .spacer{flex:1}.b04-toolbar input,.b04-toolbar select,.b04-form input,.b04-form select,.b04-form textarea{min-height:40px;border:1px solid #cbd5e1;border-radius:8px;padding:8px 10px;background:var(--surface,#fff);color:inherit}.b04-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.b04-form label{display:flex;flex-direction:column;gap:5px;font-weight:700;font-size:13px}.b04-form label.full{grid-column:1/-1}.b04-form textarea{min-height:95px;resize:vertical}.b04-actions{display:flex;gap:8px;justify-content:flex-end;grid-column:1/-1;margin-top:8px}.b04-modal{position:fixed;inset:0;z-index:3000;background:rgba(15,23,42,.62);display:flex;align-items:center;justify-content:center;padding:20px}.b04-modal-card{width:min(920px,96vw);max-height:92vh;overflow:auto;background:var(--surface,#fff);border-radius:14px;box-shadow:0 24px 70px rgba(0,0,0,.3)}.b04-modal-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #dbe3ef;background:inherit}.b04-modal-body{padding:20px}.b04-close{border:0;background:transparent;font-size:25px;cursor:pointer;color:inherit}.b04-status{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800;background:#e2e8f0}.b04-status.ok{background:#dcfce7;color:#166534}.b04-status.warn{background:#fef3c7;color:#92400e}.b04-status.bad{background:#fee2e2;color:#991b1b}.b04-message{padding:11px 13px;border-radius:8px;margin:10px 0;background:#e8f1ff;color:#174ea6;font-weight:700}.b04-message.error{background:#fee2e2;color:#991b1b}.b04-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.b04-tabs button{border:1px solid #cbd5e1;background:transparent;border-radius:8px;padding:8px 12px;cursor:pointer;font-weight:700}.b04-tabs button.active{background:#174ea6;color:white;border-color:#174ea6}.b04-kpi{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:15px}.b04-kpi article{background:var(--surface,#fff);border:1px solid #dbe3ef;border-radius:12px;padding:14px}.b04-kpi small{display:block;font-weight:800;color:#64748b}.b04-kpi strong{display:block;font-size:24px;margin-top:6px}.b04-help{font-size:12px;color:#64748b;line-height:1.45}.b04-secret{font-family:monospace}.b04-inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.b04-table-actions{display:flex;gap:6px;flex-wrap:wrap}.b04-table-actions .btn{padding:6px 9px;font-size:12px}.b04-empty{padding:34px;text-align:center;color:#64748b}.b04-file{padding:12px;border:1px dashed #94a3b8;border-radius:9px}.b04-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.b04-pre{white-space:pre-wrap;word-break:break-word;background:#0f172a;color:#e2e8f0;border-radius:9px;padding:13px;max-height:280px;overflow:auto}.b04-link{color:#2563eb;font-weight:700}.b04-danger{color:#b91c1c}.b04-muted{color:#64748b}.b04-check{display:flex!important;flex-direction:row!important;align-items:center;gap:8px!important}.b04-check input{min-height:auto!important}.b04-pagination{display:flex;justify-content:space-between;align-items:center;margin-top:12px}.b04-summary-line{display:flex;gap:18px;flex-wrap:wrap;padding:10px 0}.b04-summary-line b{font-size:17px}.b04-alert{padding:12px;border-left:4px solid #f59e0b;background:#fffbeb;margin-bottom:15px}.b04-auth-mode{font-size:12px;line-height:1.35;color:#475569}.b04-money{font-variant-numeric:tabular-nums}.b04-loading{opacity:.6;pointer-events:none}@media(max-width:900px){.b04-form,.b04-grid{grid-template-columns:1fr}.b04-kpi{grid-template-columns:repeat(2,minmax(0,1fr))}.b04-form label.full{grid-column:auto}}@media(max-width:520px){.b04-kpi{grid-template-columns:1fr}.b04-modal{padding:4px}.b04-modal-card{width:100%;max-height:98vh}}

/* Build 04A: high-contrast management forms across every theme. */
.b04-modal-card,
.b04-modal-head,
.b04-modal-body{
  background:var(--theme-surface,#17315c)!important;
  color:var(--theme-text,#edf5ff)!important;
}
.b04-modal-card{border:1px solid var(--theme-line,#315386)}
.b04-modal-head{border-bottom-color:var(--theme-line,#315386)!important}
.b04-form label,
.b04-toolbar label{
  color:var(--theme-text,#edf5ff)!important;
  font-size:14px;
  line-height:1.35;
}
.b04-toolbar input,
.b04-toolbar select,
.b04-form input,
.b04-form select,
.b04-form textarea,
.b04-file{
  background:var(--theme-input,#122b53)!important;
  color:var(--theme-text,#edf5ff)!important;
  border-color:var(--theme-line,#315386)!important;
  opacity:1!important;
}
.b04-form input,
.b04-form select,
.b04-form textarea{
  width:100%;
  font-size:14px;
  font-weight:600;
  box-sizing:border-box;
}
.b04-form input::placeholder,
.b04-form textarea::placeholder,
.b04-toolbar input::placeholder{
  color:var(--theme-muted,#a9bad4)!important;
  opacity:1;
}
.b04-form select option,
.b04-toolbar select option{
  background:var(--theme-surface,#17315c);
  color:var(--theme-text,#edf5ff);
}
.b04-form input[readonly],
.b04-form input:disabled,
.b04-form select:disabled{
  background:var(--theme-surface2,#1d3c70)!important;
  color:var(--theme-muted,#a9bad4)!important;
}
.b04-auth-mode,
.b04-help,
.b04-muted{
  color:var(--theme-muted,#a9bad4)!important;
}
[data-theme="noc-light"] .b04-modal-card,
[data-theme="noc-light"] .b04-modal-head,
[data-theme="noc-light"] .b04-modal-body{
  background:#fff!important;
  color:#172033!important;
}
[data-theme="noc-light"] .b04-form input,
[data-theme="noc-light"] .b04-form select,
[data-theme="noc-light"] .b04-form textarea,
[data-theme="noc-light"] .b04-toolbar input,
[data-theme="noc-light"] .b04-toolbar select{
  background:#f7f9fc!important;
  color:#172033!important;
  border-color:#b9c6d8!important;
}

/* Build 04B: complete CDR filter workspace and smart form sections. */
.cdr-filter-panel{margin-bottom:14px}.cdr-filter-grid{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:10px}.cdr-filter-grid label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:800}.cdr-filter-grid input,.cdr-filter-grid select{min-height:40px;border:1px solid var(--theme-line,#315386);border-radius:8px;padding:8px 10px;background:var(--theme-input,#122b53);color:var(--theme-text,#edf5ff)}.cdr-search-field{grid-column:span 2}.cdr-filter-actions{grid-column:1/-1;display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.cdr-summary{display:flex;gap:18px;flex-wrap:wrap;padding:12px 14px;margin-bottom:12px;border:1px solid var(--theme-line,#315386);border-radius:10px;background:var(--theme-surface,#17315c);color:var(--theme-text,#edf5ff)}.b04-form-section{padding:10px 12px;border:1px solid var(--theme-line,#315386);border-radius:9px;background:var(--theme-surface2,#1d3c70)}.b04-form-section h3{margin:0 0 4px;font-size:15px}.b04-form-section p{margin:0;color:var(--theme-muted,#a9bad4);font-size:12px}.b04-smart-form [hidden]{display:none!important}[data-theme="noc-light"] .cdr-filter-grid input,[data-theme="noc-light"] .cdr-filter-grid select,[data-theme="noc-light"] .cdr-summary{background:#f7f9fc;color:#172033;border-color:#b9c6d8}[data-theme="noc-light"] .b04-form-section{background:#f5f8fc;color:#172033;border-color:#b9c6d8}@media(max-width:1150px){.cdr-filter-grid{grid-template-columns:repeat(3,minmax(150px,1fr))}}@media(max-width:700px){.cdr-filter-grid{grid-template-columns:1fr}.cdr-search-field{grid-column:auto}}
.b04-rate-assignment{padding:10px 14px;background:var(--theme-surface2,#1d3c70);color:var(--theme-text,#edf5ff);border-top:1px solid var(--theme-line,#315386);border-bottom:1px solid var(--theme-line,#315386);font-size:12px}[data-theme="noc-light"] .b04-rate-assignment{background:#f5f8fc;color:#172033;border-color:#b9c6d8}

/* Build 04D live peer editor */
.b04-live-box{padding:12px 14px;border:1px solid var(--line,#d5dfeb);border-radius:10px;background:rgba(15,71,116,.06);display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.b04-peer-error{display:block;color:#b42318;font-weight:700;max-width:460px;white-space:normal}
.b04-form code,.b04-alert code{background:rgba(15,71,116,.09);padding:2px 5px;border-radius:4px}
.b04-smart-form [hidden]{display:none!important}

/* 04H11F shared-route editor */
.b04-field-title{display:block;margin:0 0 7px;font-size:12px;font-weight:800;color:var(--theme-muted,#a9bad4)}
.b04-route-gateway-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px;padding:10px;border:1px solid var(--theme-line,#315386);border-radius:9px;background:var(--theme-input,#122b53);max-height:230px;overflow:auto}
.b04-route-gateway-option{display:flex!important;flex-direction:row!important;align-items:center;gap:9px;padding:9px;border:1px solid var(--theme-line,#315386);border-radius:8px;background:var(--theme-surface,#17315c);cursor:pointer}
.b04-route-gateway-option input{width:auto!important;margin:0!important}.b04-route-gateway-option span{display:flex;flex-direction:column;gap:2px}.b04-route-gateway-option small{color:var(--theme-muted,#a9bad4)}
[data-theme="noc-light"] .b04-route-gateway-list{background:#f7f9fc;color:#172033;border-color:#b9c6d8}[data-theme="noc-light"] .b04-route-gateway-option{background:#fff;color:#172033;border-color:#cbd5e1}
.b04-route-gateway-group{grid-column:1/-1;border:1px solid var(--theme-line,#315386);border-radius:9px;background:var(--theme-surface,#17315c);overflow:hidden}
.b04-route-gateway-group>summary{list-style:none;cursor:pointer}.b04-route-gateway-group>summary::-webkit-details-marker{display:none}
.b04-route-parent-option{border:0!important;border-radius:0!important;background:transparent!important}
.b04-route-line-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:7px;padding:9px;border-top:1px solid var(--theme-line,#315386);max-height:260px;overflow:auto}
.b04-route-line-option{padding:7px!important}.b04-route-chip{display:inline-block;margin:2px 4px 2px 0;padding:4px 7px;border:1px solid var(--theme-line,#315386);border-radius:999px;background:var(--theme-surface,#17315c);white-space:nowrap}
[data-theme="noc-light"] .b04-route-gateway-group,[data-theme="noc-light"] .b04-route-chip{background:#fff;color:#172033;border-color:#cbd5e1}
