.bsc{max-width:1700px;margin:auto}.bsc-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.bsc-heading h1{font-size:30px;margin:8px 0}.bsc-heading p,.bsc-card p{color:#97a8bc;margin:6px 0}.bsc-filters{display:flex;gap:16px;align-items:end;flex-wrap:wrap;padding:20px;border:1px solid #24374e;border-radius:16px;background:#0e1a28}.bsc-filters label,.bsc-form label{display:flex;flex-direction:column;gap:8px;font-size:13px;color:#b9c6d6}.bsc input,.bsc select,.bsc-dialog input,.bsc-dialog select{background:#091422;color:#e7edf5;border:1px solid #35475e;border-radius:8px;padding:10px;font:inherit;min-height:42px;max-width:100%;color-scheme:dark}.bsc-filters [name=owner]{min-width:230px}.bsc-scope,.bsc-footnote{font-size:12px;color:#9baabe;line-height:1.7;margin:15px 0 24px}.bsc-perspectives{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.bsc-perspective{position:relative;background:#0e1a28;border:1px solid #263950;border-top:3px solid var(--accent);border-radius:14px;padding:24px 20px}.bsc-color-0{--accent:#edbd36}.bsc-color-1{--accent:#529bff}.bsc-color-2{--accent:#48c77c}.bsc-color-3{--accent:#b184f5}.bsc-index{color:var(--accent);font-size:12px;letter-spacing:2px}.bsc-perspective h2{font-size:15px;min-height:38px;margin:14px 0}.bsc-perspective strong{font-size:32px}.bsc-perspective p{font-size:12px;color:#b8c5d6;margin:10px 0}.bsc-perspective small{color:#91a2b8}.bsc-card{padding:0;overflow:hidden;margin-bottom:24px}.bsc-card .card-head{padding:20px;gap:12px;flex-wrap:wrap}.bsc-card h2{font-size:17px;margin:0}.bsc-table{min-width:950px}.bsc-table td{vertical-align:top;padding:20px 16px}.bsc-table td:first-child{max-width:290px}.bsc-table strong,.bsc-table small,.bsc-evidence small{display:block}.bsc-table small,.bsc-evidence small{color:#95a7bf;font-size:11px;margin:6px 0;overflow-wrap:anywhere}.bsc-table td p{font-size:12px;line-height:1.5}.bsc-actual{font-weight:700;white-space:nowrap}.bsc-row-actions{display:grid;gap:8px}.bsc-status{display:inline-block;border-radius:7px;padding:6px 9px;font-size:11px;white-space:nowrap;border:1px solid currentColor}.bsc-status.good{color:#6fe49a;background:#102c24}.bsc-status.warning{color:#f7ce64;background:#302918}.bsc-status.danger{color:#ff9b9b;background:#321d25}.bsc-status.neutral{color:#acb9ca;background:#172231}.bsc progress{display:block;width:120px;height:5px;margin:12px 0;accent-color:#e8ba3b}.bsc-actions{padding:0 20px 20px}.bsc-action{display:flex;align-items:center;gap:20px;border-top:1px solid #26374a;padding:18px 0}.bsc-action>div{flex:1}.bsc-action small{color:#9baabe}.bsc-dialog{background:#0e1a28;color:#edf2f9;border:1px solid #354860;border-radius:16px;padding:24px;width:min(780px,calc(100vw - 32px));max-height:90vh;overflow:auto}.bsc-dialog::backdrop{background:#000a}.bsc-dialog header{display:flex;align-items:center;justify-content:space-between;gap:14px}.bsc-dialog h2{font-size:22px}.bsc-dialog p{font-size:13px;line-height:1.7;color:#b6c4d6}.bsc-dialog footer{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:20px}.bsc-form{display:grid;gap:17px}.bsc-form small{color:#a3b3c7}.bsc [role=alert],.bsc-dialog [role=alert]{color:#ffaaaa}.bsc button:focus-visible,.bsc-dialog button:focus-visible{outline:2px solid #f5c840;outline-offset:3px}.bsc button:disabled{opacity:.5;cursor:not-allowed}.bsc-evidence{margin-top:18px}.nav-item[title*="Etapa"]{min-height:54px;height:auto;white-space:normal;text-align:left}
@media(max-width:1100px){.bsc-perspectives{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.bsc-heading{align-items:start}.bsc-heading h1{font-size:24px}.bsc-heading button{font-size:11px;padding:10px}.bsc-filters{padding:14px}.bsc-filters label{width:100%}.bsc-filters input,.bsc-filters select{width:100%;min-width:0!important}.bsc-perspectives{gap:10px}.bsc-perspective{padding:15px 12px}.bsc-perspective h2{font-size:13px;min-height:40px}.bsc-action{align-items:start;flex-wrap:wrap}.bsc-action>div{flex-basis:100%}.bsc-dialog{padding:18px}.bsc-dialog h2{font-size:19px}}

.bsc-initiative{border-top:1px solid #26374a;padding-bottom:22px}.bsc-initiative>.bsc-action{border-top:0}.bsc-subtask-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 16px;background:#111f30;border-radius:9px}.bsc-subtask-heading p,.bsc-subtask-note{font-size:12px;color:#a6b6c9;line-height:1.6}.bsc-subtasks{padding-left:20px}.bsc-subtask{display:flex;align-items:center;gap:16px;border-left:2px solid #33475e;border-bottom:1px solid #223247;padding:15px}.bsc-subtask>div{flex:1;min-width:0;overflow-wrap:anywhere}.bsc-subtask small{display:block;color:#9baabe;margin-top:6px}.bsc-subtask-warning{color:#ffce70;font-size:12px}.bsc-subtask-note{margin:12px 16px}.bsc-subtask-heading progress{width:180px}@media(max-width:600px){.bsc-subtask{flex-wrap:wrap;gap:10px}.bsc-subtask>div{flex-basis:100%}.bsc-subtasks{padding-left:8px}.bsc-subtask-heading{align-items:start;flex-wrap:wrap}}

.bsc textarea,.bsc-dialog textarea{background:#091422;color:#e7edf5;border:1px solid #35475e;border-radius:8px;padding:10px;font:inherit;width:100%;resize:vertical}.bsc-review-body{padding:0 20px 24px}.bsc-review-body p{white-space:pre-wrap;overflow-wrap:anywhere}.bsc-history-entry{border-top:1px solid #35475e;padding:16px 0}.bsc-history-entry pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.bsc .data-table th small{display:block;font-weight:400;margin-top:5px}.bsc-form textarea:focus-visible,.bsc input:focus-visible,.bsc select:focus-visible{outline:2px solid #f5c840;outline-offset:2px}

/* Balanced scorecard follows the shared dark blue CRM palette. */
.bsc-filters,.bsc-perspective,.bsc-dialog{background:var(--crm-paper,#0d1729);color:var(--crm-ink,#f6f7fb);border-color:var(--crm-line,#22314b)}
.bsc-perspective{border-top-color:var(--accent)}
.bsc-color-0{--accent:#f3c84b}.bsc-color-1{--accent:#5ba7ff}.bsc-color-2{--accent:#54d39a}.bsc-color-3{--accent:#a58cff}
.bsc-heading p,.bsc-card p,.bsc-filters label,.bsc-form label,.bsc-scope,.bsc-footnote,.bsc-perspective p,.bsc-perspective small,
.bsc-table small,.bsc-evidence small,.bsc-action small,.bsc-dialog p,.bsc-form small,.bsc-subtask-heading p,.bsc-subtask-note,.bsc-subtask small{color:var(--crm-muted,#8e9bb0)}
.bsc input,.bsc select,.bsc textarea,.bsc-dialog input,.bsc-dialog select,.bsc-dialog textarea{background:var(--crm-paper,#0d1729);color:var(--crm-ink,#f6f7fb);border-color:var(--crm-control,#7085a1);color-scheme:dark}
.bsc-status.good{color:#54d39a;background:var(--crm-success-surface)}.bsc-status.warning{color:#f3c84b;background:var(--crm-gold-surface)}
.bsc-status.danger{color:#ff6b76;background:var(--crm-danger-surface)}.bsc-status.neutral{color:#8e9bb0;background:#111d32}
.bsc-action,.bsc-initiative,.bsc-subtask,.bsc-history-entry{border-color:var(--crm-line,#22314b)}
.bsc-subtask-heading{background:var(--crm-soft,#111d32)}
.bsc-subtask-warning{color:var(--crm-warning,#ffaf57)}
.bsc [role=alert],.bsc-dialog [role=alert]{color:var(--crm-danger,#ff6b76)}
.bsc button:focus-visible,.bsc-dialog button:focus-visible,.bsc-form textarea:focus-visible,.bsc input:focus-visible,.bsc select:focus-visible{outline:3px solid var(--crm-focus,#5ba7ff);outline-offset:3px}
.bsc progress{accent-color:var(--crm-info,#5ba7ff)}
