.management-board .mb-monthly-open { min-width:145px; background:#173d2b; border-color:#78ad83; color:#edf7ec; }
@media(min-width:1251px) { .management-board .mb-filters { grid-template-columns:minmax(160px,1.3fr) minmax(115px,.8fr) repeat(2,minmax(105px,.7fr)) minmax(180px,1fr) auto; } }
.management-board .mb-month-filter input { color-scheme:dark; }
.management-board .mb-card-monthly { display:grid; gap:5px; margin:10px 0; padding:9px 11px; border:1px solid #82aa8e70; border-radius:9px; background:#102d20; color:#e2ede4; font-size:11px; line-height:1.4; overflow-wrap:anywhere; }
.management-board .mb-card-monthly strong { color:#aee0b9; font-size:11px; }
.management-board .mb-card-monthly[data-monthly-status="pending"],.management-board .mb-card-monthly[data-monthly-status="no_source"],.management-board .mb-card-monthly[data-monthly-status="not_applicable"] { border-color:#9fae9b88; background:#1d3026; }
.management-board .mb-card-monthly[data-monthly-status="pending"] strong,.management-board .mb-card-monthly[data-monthly-status="no_source"] strong,.management-board .mb-card-monthly[data-monthly-status="not_applicable"] strong { color:#d3ddd0; }
.management-board .mb-card-monthly[data-monthly-status="partial"],.management-board .mb-card-monthly[data-monthly-status="reconstructed"] { border-color:#d0bc7a88; }
.management-board .mb-card-monthly[data-monthly-status="partial"] strong,.management-board .mb-card-monthly[data-monthly-status="reconstructed"] strong { color:#ead99d; }
.management-board .mb-card-monthly .mb-monthly-incomplete,.mb-monthly-explain .mb-monthly-incomplete { display:block; padding:7px 9px; border:1px solid #c7a763; border-radius:7px; background:#3a321f; color:#ffe8a8; font-weight:800; }
.mb-monthly-table td button[data-incomplete="true"] { border-color:#c7a763; }
.mb-claims-monthly-wrap { min-width:0; }
.mb-claims-monthly-wrap .claims-card { height:auto; }
@media(max-width:720px) { .management-board .mb-month-filter { grid-column:1/-1; } }
@media(max-width:520px) { .management-board .mb-monthly-open { grid-column:1/-1; } }
:root body:not([data-view="login"]) #app .mb-card-monthly { color:#294232; background:#f1f6f1; border-color:#afc9b4; }
:root body:not([data-view="login"]) #app .mb-card-monthly strong { color:#28633d; }
:root body:not([data-view="login"]) #app .mb-monthly-incomplete { color:#684700; background:#fff3d4; border-color:#b69646; }
.mb-monthly-dialog { width:min(1500px,calc(100vw - 28px)); max-width:none; max-height:calc(100dvh - 28px); padding:0; border:1px solid #5b8a68; border-radius:18px; background:#0c2119; color:#eef5ef; box-shadow:0 28px 90px #000a; color-scheme:dark; }
.mb-monthly-dialog::backdrop { background:#020b08c9; }
.mb-monthly-dialog * { box-sizing:border-box; }
.mb-monthly-dialog :is(button,input,select) { font:inherit; }
.mb-monthly-dialog button { cursor:pointer; }
.mb-monthly-dialog :is(button,input,select):focus-visible,.mb-monthly-scroll:focus-visible,.mb-monthly-lines-scroll:focus-visible { outline:2px solid #e6c477; outline-offset:2px; }
.mb-monthly-header { position:sticky; top:0; z-index:4; display:flex; align-items:start; justify-content:space-between; gap:20px; padding:21px 25px; border-bottom:1px solid #aacbb833; background:#10281f; }
.mb-monthly-header h2 { margin:6px 0 3px; font:600 clamp(21px,2.2vw,28px) 'Space Grotesk',sans-serif; }
.mb-monthly-header p { margin:0; color:#b6c9bd; font-size:12px; }
.mb-monthly-close { flex:none; width:38px; height:38px; border:1px solid #82aa8e; border-radius:9px; background:#183c2a; color:#fff; font-size:25px!important; line-height:1; }
#mbMonthlyContent { padding:20px 25px 25px; }
.mb-daily-content { padding:20px 25px 25px; }
.mb-daily-controls { display:flex; align-items:end; flex-wrap:wrap; gap:12px; }
.mb-daily-controls label { display:grid; gap:5px; color:#bdd1c1; font-size:12px; }
.mb-daily-controls input,.mb-daily-controls button { min-height:40px; padding:8px 12px; border:1px solid #79a888; border-radius:8px; background:#173d2b; color:#f1f7f0; }
.mb-daily-controls button:disabled { opacity:.55; cursor:default; }
.mb-daily-coverage { margin:18px 0 6px; color:#e7f2e8; }
.mb-daily-coverage strong { text-transform:capitalize; color:#e6c477; }
.mb-daily-note { margin:0 0 16px; color:#bbd0c0; font-size:12px; line-height:1.5; }
.mb-daily-list { display:grid; gap:8px; }
.mb-daily-day { border:1px solid #527d60; border-radius:9px; background:#102b1f; }
.mb-daily-day summary { display:flex; justify-content:space-between; gap:12px; padding:13px 15px; cursor:pointer; text-transform:capitalize; }
.mb-daily-day summary strong { color:#e6c477; white-space:nowrap; }
.mb-daily-day>p { margin:0; padding:0 15px 12px; color:#bfd0c2; font-size:12px; }
.mb-daily-table-wrap { max-width:100%; overflow:auto; border-top:1px solid #527d60; }
.mb-daily-table-wrap:focus-visible { outline:2px solid #e6c477; outline-offset:2px; }
.mb-daily-table-wrap table { width:100%; min-width:700px; border-collapse:collapse; font-size:12px; }
.mb-daily-table-wrap :is(th,td) { padding:9px 12px; border-bottom:1px solid #385744; text-align:left; }
.mb-daily-table-wrap thead th { background:#214531; }
.mb-daily-table-wrap tbody th { font-weight:600; }
@media(max-width:720px) { .mb-daily-content { padding:14px; } .mb-daily-day summary { flex-wrap:wrap; } }
.mb-monthly-controls { display:flex; align-items:end; flex-wrap:wrap; gap:10px; margin-bottom:10px; }
.mb-monthly-controls label { display:grid; gap:5px; min-width:200px; color:#b6c9bd; font-size:11px; }
.mb-monthly-controls input,.mb-monthly-controls select { min-height:40px; padding:8px 10px; border:1px solid #6e9b7c; border-radius:8px; background:#102f20; color:#f1f7f0; }
.mb-monthly-controls input::placeholder { color:#adc7b3; opacity:1; }
.mb-monthly-controls input { min-width:260px; }
.mb-monthly-controls button,.mb-monthly-focus-head>button,.mb-monthly-pages button { min-height:40px; padding:8px 13px; border:1px solid #79a888; border-radius:8px; background:#173d2b; color:#f1f7f0; }
.mb-monthly-count { margin:10px 0 13px; color:#d4e2d6; font-size:12px; }
.mb-monthly-scroll-hint { display:none; margin:0 0 9px; color:#c1d6c7; font-size:11px; }
.mb-monthly-scroll { max-height:57vh; overflow:auto; border:1px solid #5c8067; border-radius:10px; scrollbar-color:#6b9377 #0b2118; }
.mb-monthly-table { width:100%; min-width:1450px; border-collapse:separate; border-spacing:0; table-layout:fixed; font-size:12px; }
.mb-monthly-table th,.mb-monthly-table td { border-right:1px solid #375544; border-bottom:1px solid #375544; }
.mb-monthly-table thead th { position:sticky; top:0; z-index:2; padding:11px 5px; background:#1c402c; color:#ecf4e9; text-align:center; text-transform:capitalize; }
.mb-monthly-table thead th:first-child { left:0; z-index:3; width:220px; text-align:left; padding-left:14px; }
.mb-monthly-table thead small { display:block; margin-top:4px; color:#bed0c1; font-size:9px; font-weight:400; text-transform:none; }
.mb-monthly-table tbody th { position:sticky; left:0; z-index:1; padding:0; background:#102b1f; text-align:left; }
.mb-monthly-table tbody tr:nth-child(even) th { background:#143324; }
.mb-monthly-table tbody tr:nth-child(even) td { background:#10261d; }
.mb-monthly-metric { display:block; width:100%; min-height:57px; padding:9px 12px; border:0; background:transparent; color:#f1f7f0; text-align:left; font-weight:700!important; }
.mb-monthly-metric small { display:block; margin-top:3px; color:#a9c0af; font-size:9px; font-weight:400; }
.mb-monthly-table td { padding:3px; background:#0d231a; }
.mb-monthly-table td button { display:grid; align-content:center; gap:3px; width:100%; min-height:50px; padding:5px 3px; border:1px solid transparent; border-radius:5px; background:transparent; color:#e7f3e8; text-align:center; }
.mb-monthly-table td button:hover { border-color:#88bf90; background:#244b31; }
.mb-monthly-table td b { font-size:11px; font-weight:700; overflow-wrap:anywhere; }
.mb-monthly-table td small { color:#bcd2c0; font-size:9px; }
.mb-monthly-table td button[data-status="reconciled"] { box-shadow:inset 0 2px #67b982; }
.mb-monthly-table td button[data-status="reconstructed"] { box-shadow:inset 0 2px #b5ce89; }
.mb-monthly-table td button[data-status="published"],.mb-monthly-table td button[data-status="partial"] { box-shadow:inset 0 2px #d4bb80; }
.mb-monthly-table td button[data-status="pending"],.mb-monthly-table td button[data-status="no_source"] { color:#c2cec4; }
.mb-monthly-table td button[data-status="future"] { opacity:.62; }
.mb-monthly-loading,.mb-monthly-empty { padding:22px; border:1px solid #5c8067; border-radius:10px; color:#cbdccd; background:#102b1f; }
.mb-monthly-error { padding:20px; border:1px solid #b7756b; border-radius:10px; background:#3c211d; color:#fff0ec; }
.mb-monthly-error p { margin:7px 0 12px; }
.mb-monthly-error button { padding:9px 13px; border:1px solid #e4ad9e; border-radius:7px; background:#522c24; color:#fff; }
.mb-monthly-focus-head { display:flex; align-items:start; gap:18px; margin-bottom:17px; }
.mb-monthly-focus-head>div { min-width:0; }
.mb-monthly-focus-head h3 { margin:6px 0 4px; font:600 clamp(18px,2vw,25px) 'Space Grotesk',sans-serif; }
.mb-monthly-focus-head p { margin:0; color:#b6c9bd; font-size:11px; overflow-wrap:anywhere; }
.mb-monthly-months { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:5px; margin:0 0 15px; }
.mb-monthly-months button { min-height:57px; padding:7px 3px; border:1px solid #5e8569; border-radius:7px; background:#123121; color:#d6e5d9; text-align:center; text-transform:capitalize; }
.mb-monthly-months button[aria-pressed="true"] { border-color:#e6c477; background:#3b4b29; color:#fff4d3; }
.mb-monthly-months small { display:block; margin-top:5px; font-size:9px; line-height:1.2; text-transform:none; overflow-wrap:anywhere; }
.mb-monthly-reading { display:grid; grid-template-columns:minmax(180px,.8fr) minmax(0,1.4fr); gap:20px; padding:20px; border:1px solid #548367; border-radius:12px; background:#112f22; }
.mb-monthly-reading h4 { margin:10px 0 4px; font:600 20px 'Space Grotesk',sans-serif; text-transform:capitalize; }
.mb-monthly-state { display:inline-flex; padding:5px 9px; border:1px solid #a0c5a6; border-radius:30px; color:#cdebd3; font-size:11px; }
.mb-monthly-reading[data-status="pending"] .mb-monthly-state,.mb-monthly-reading[data-status="no_source"] .mb-monthly-state { border-color:#aab6a8; color:#d2d9ce; }
.mb-monthly-value { display:block; margin-top:9px; font:650 clamp(22px,2.4vw,34px) 'Space Grotesk',sans-serif; color:#e6c477; overflow-wrap:anywhere; }
.mb-monthly-explain p { margin:0 0 10px; color:#e0ebe2; line-height:1.5; }
.mb-monthly-explain dl { display:grid; gap:8px; margin:14px 0; }
.mb-monthly-explain dl div { display:grid; grid-template-columns:105px minmax(0,1fr); gap:8px; padding-top:8px; border-top:1px solid #4b7158; }
.mb-monthly-explain dt { color:#b3cbb9; }
.mb-monthly-explain dd { margin:0; overflow-wrap:anywhere; }
.mb-monthly-explain .mb-button { margin:5px 8px 5px 0; }
.mb-monthly-revision { padding:10px 0; border-top:1px solid #4b7158; }
.mb-monthly-revision summary { cursor:pointer; color:#e6c477; }
.mb-monthly-revision p { margin:8px 0 0; }
.mb-monthly-no-detail { margin-top:12px!important; color:#b3cbb9!important; }
.mb-monthly-lines { margin-top:17px; }
.mb-monthly-lines-head,.mb-monthly-pages { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:10px 0; }
.mb-monthly-lines-head h4 { margin:0; font-size:16px; }
.mb-monthly-lines-scroll { max-height:38vh; overflow:auto; border:1px solid #5c8067; border-radius:8px; }
.mb-monthly-lines table { width:100%; border-collapse:collapse; min-width:650px; font-size:11px; }
.mb-monthly-lines :is(th,td) { padding:9px 10px; border-bottom:1px solid #385744; text-align:left; white-space:nowrap; }
.mb-monthly-lines th { position:sticky; top:0; background:#214531; }
.mb-monthly-lines pre { max-height:40vh; overflow:auto; padding:12px; border:1px solid #5c8067; border-radius:8px; white-space:pre-wrap; overflow-wrap:anywhere; }
.mb-monthly-source-result { padding:15px; border:1px solid #5c8067; border-radius:9px; background:#123322; }
.mb-monthly-source-result h4 { margin:0 0 8px; }
.mb-monthly-source-result strong { display:block; font:650 26px 'Space Grotesk',sans-serif; color:#e6c477; }
.mb-monthly-source-result p { margin:7px 0 0; color:#d1e3d4; }
.mb-monthly-pages button:disabled { opacity:.45; cursor:default; }
/* El tema ejecutivo global aplica tablas claras; esta matriz conserva el tema oscuro del tablero. */
:root body:not([data-view="login"]) #app .mb-monthly-table { color:#eef5ef; background-color:#0d231a; }
:root body:not([data-view="login"]) #app .mb-monthly-controls :is(input,select) { color:#f1f7f0; background-color:#102f20; border-color:#6e9b7c; }
:root body:not([data-view="login"]) #app .mb-monthly-table thead th { color:#ecf4e9; background-color:#1c402c; border-color:#375544; }
:root body:not([data-view="login"]) #app .mb-monthly-table tbody th { color:#f1f7f0; background-color:#102b1f; border-color:#375544; }
:root body:not([data-view="login"]) #app .mb-monthly-table tbody tr:nth-child(even) th { background-color:#143324; }
:root body:not([data-view="login"]) #app .mb-monthly-table tbody td,
:root body:not([data-view="login"]) #app .mb-monthly-table tbody tr:nth-child(even) td,
:root body:not([data-view="login"]) #app .mb-monthly-table tbody tr:hover td { color:#e7f3e8; background-color:#0d231a; border-color:#375544; }
:root body:not([data-view="login"]) #app .mb-monthly-dialog .mb-monthly-lines table { color:#eef5ef; background-color:#0d231a; }
:root body:not([data-view="login"]) #app .mb-monthly-dialog .mb-monthly-lines th { color:#eef5ef; background-color:#214531; border-color:#385744; }
:root body:not([data-view="login"]) #app .mb-monthly-dialog .mb-monthly-lines td { color:#eef5ef; background-color:#0d231a; border-color:#385744; }
@media(max-width:1100px) {
  .mb-monthly-months { grid-template-columns:repeat(6,minmax(0,1fr)); }
}
@media(max-width:650px) {
  .mb-monthly-dialog { width:calc(100vw - 12px); max-height:calc(100dvh - 12px); border-radius:12px; }
  .mb-monthly-header { padding:15px; }
  #mbMonthlyContent { padding:14px; }
  .mb-monthly-controls { display:grid; grid-template-columns:1fr 1fr; }
  .mb-monthly-controls label:first-child,.mb-monthly-controls button { grid-column:1/-1; }
  .mb-monthly-controls label,.mb-monthly-controls input { min-width:0; width:100%; }
  .mb-monthly-scroll { max-height:55vh; }
  .mb-monthly-scroll-hint { display:block; }
  .mb-monthly-focus-head { display:grid; gap:12px; }
  .mb-monthly-months { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .mb-monthly-reading { grid-template-columns:1fr; gap:14px; padding:15px; }
  .mb-monthly-explain dl div { grid-template-columns:90px minmax(0,1fr); }
}
@media(prefers-reduced-motion:reduce) { .mb-monthly-dialog * { scroll-behavior:auto!important; transition:none!important; } }
