.browser-header{display:flex;align-items:center;gap:24px;padding:18px max(24px,calc((100vw - 1100px)/2));background:#fff;border-bottom:1px solid #dde3e9}.browser-header>a{font-size:23px;font-weight:700;color:#1d2939;text-decoration:none;white-space:nowrap}.browser-header>a span{color:#0076b9}.browser-header>span{flex:1}.browser-header form{margin:0}.browser-content{max-width:1100px;margin:36px auto;padding:0 24px}.browser-content .panel{margin-top:24px;padding:28px;background:#fff;border-radius:18px}.browser-content h1{font-size:30px}.browser-confirmed{color:#20744b;font-weight:700}.browser-table{overflow:auto}.browser-table table{width:100%;border-collapse:collapse}.browser-table td,.browser-table th{text-align:left;padding:14px 12px;border-bottom:1px solid #e4e9ee;white-space:nowrap}.browser-table form{margin:0}.browser-current{display:block;font-size:12px;color:#20744b}.browser-all{margin-top:22px}.auth-page .remember-browser{display:flex;align-items:flex-start;gap:9px;margin:18px 0;font-weight:400;line-height:1.4}.auth-page .remember-browser input[type=checkbox]{width:18px;height:18px;flex:none;margin:2px 0 0;padding:0}@media(max-width:680px){.browser-header{flex-wrap:wrap;gap:12px;padding:16px}.browser-header>span{font-size:13px}.browser-content{padding:0 16px;margin-top:24px}.browser-content .panel{padding:20px}.browser-content .button{white-space:normal}}
/* Inicio: selector directo de periodos; asset ordinario ya autorizado por la lista estática. */
.home-dashboard .dash-period{z-index:10}
.home-dashboard .dash-period>summary{min-height:32px;padding:4px 3px;font-size:16px;line-height:24px}
.home-dashboard .dash-period-menu{position:absolute;top:100%;right:0;display:block;width:264px;max-height:min(664px,calc(100vh - 140px));overflow-y:auto;padding:8px 0;background:#fff;border:0;border-radius:16px;box-shadow:0 10px 24px #1b2e4530;scrollbar-width:thin}
.home-dashboard .dash-period-menu a{display:flex;align-items:center;gap:16px;min-height:36px;padding:6px 16px;color:#40464d;font-size:16px;line-height:24px;white-space:nowrap;text-decoration:none}
.home-dashboard .dash-period-menu a:hover,.home-dashboard .dash-period-menu a:focus-visible,.home-dashboard .dash-period-menu a[aria-current="page"]{background:#edf5fc;color:#303840}
.home-dashboard .dash-period-menu a:focus-visible{outline:2px solid #268dde;outline-offset:-2px}
.home-dashboard .dash-period-menu svg{flex:none;width:20px;height:20px;fill:none;stroke:#858c94;stroke-width:1.6}
.home-dashboard .dash-period-menu a[aria-current="page"] svg{stroke:#4b83ad}
@media(max-width:480px){.home-dashboard .dash-period-menu{right:0;max-width:min(264px,calc(100vw - 38px))}}
/* Pies comunes del resumen: las explicaciones se consultan al abrir el detalle. */
.home-dashboard .dash-card-grid>.dash-card{display:flex;flex-direction:column}
.home-dashboard .dash-card-detail{margin: auto -24px -24px;padding-top:12px}
.home-dashboard .dash-card-detail>summary{display:flex;justify-content:flex-end;align-items:center;min-height:52px;padding:14px 24px;border-top:1px solid #e5e9ed;color:#1686d9;font-size:14px;font-weight:500;line-height:24px;list-style:none;cursor:pointer}
.home-dashboard .dash-card-detail>summary::-webkit-details-marker{display:none}
.home-dashboard .dash-card-detail>summary:hover{background:#f7fbff}
.home-dashboard .dash-card-detail>summary:focus-visible{outline:2px solid #268dde;outline-offset:-4px;border-radius:8px}
.home-dashboard .dash-card-detail[open]>summary{color:#006eb6}
.home-dashboard .dash-card-detail-content{padding:0 24px 24px;color:#697887;font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.home-dashboard .dash-card-detail-content p{margin:0 0 14px}
.home-dashboard .dash-card-detail-content h3{margin:18px 0 8px;font-size:13px;color:#40464d}
.home-dashboard .dash-card-detail-content ul:not(.dash-legend){padding-left:18px}
.home-dashboard .dash-card-detail-content .dash-legend{margin:0 0 16px}
.home-dashboard .dash-card-detail-content .full-legend span{white-space:normal;overflow:visible}
.home-dashboard .dash-card-detail-content a.dash-detail-link,.home-dashboard .dash-card-detail-content a.dash-text-link{display:block;margin-top:12px;font-size:12px}
.home-dashboard .dash-card-grid>.dash-card>.dash-tax-status{align-self:flex-start}
.home-dashboard .dash-month-sort{display:inline-flex;align-items:center;gap:6px;color:inherit;text-decoration:none;white-space:nowrap}
.home-dashboard .dash-month-sort:hover{color:#0076b9}
.home-dashboard .dash-month-sort:focus-visible{outline:2px solid #268dde;outline-offset:4px;border-radius:3px}

.home-dashboard .tax-preview .dash-card-heading{margin-bottom:8px}
.home-dashboard .tax-preview .tax-compare-row{margin:8px 0 14px}

.series-visibility-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:16px 0;color:#71838d;font-size:14px}
.series-visibility-button{border:0;background:none;color:#0076bb;padding:8px;cursor:pointer;font:inherit;font-size:14px;white-space:nowrap}
.series-visibility-button:hover{text-decoration:underline}.series-visibility-button:focus-visible{outline:2px solid #0076bb;outline-offset:2px;border-radius:4px}
.settings-form tr[hidden]{display:none!important}.series-visibility-cell{width:1%;white-space:nowrap}

/* Distribuciones: desglose con barras y cierre en el pie de la tarjeta. */
.home-dashboard .distribution-card{align-self:stretch;overflow:hidden}
.home-dashboard .distribution-card .dash-card-detail[open]{position:relative;flex:1;margin-top:0;padding-bottom:54px}
.home-dashboard .distribution-card .dash-card-detail[open]>summary{position:absolute;bottom:0;left:0;right:0}
.home-dashboard .distribution-card .dash-card-detail-content{padding-top:2px;padding-bottom:20px}
.home-dashboard .distribution-card .distribution-legend{margin-bottom:12px}
.home-dashboard .distribution-legend li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;align-items:start;padding:10px 0;font-size:12px;line-height:1.4}
.home-dashboard .distribution-legend li>span{color:#40464d;font-weight:600;white-space:normal;overflow-wrap:anywhere}
.home-dashboard .distribution-legend strong{font-size:12px;font-weight:400;color:#858c96;font-variant-numeric:tabular-nums}
.home-dashboard .distribution-bar{grid-column:1/-1;display:block;width:100%;height:7px;overflow:hidden;border-radius:4px}
.home-dashboard .distribution-track{fill:#edf0f4}
.home-dashboard .distribution-fill{stroke:none}
.home-dashboard .expenses .distribution-fill.segment-0{fill:#79bfff}
.home-dashboard .expenses .distribution-fill.segment-1{fill:#9ccfff}
.home-dashboard .expenses .distribution-fill.segment-2{fill:#b4dcff}
.home-dashboard .expenses .distribution-fill.segment-3{fill:#cde7ff}
.home-dashboard .expenses .distribution-fill.segment-4{fill:#dfedfc}
.home-dashboard .expenses .distribution-fill.segment-5{fill:#eff7ff}
.home-dashboard .income .distribution-fill.segment-0{fill:#67d5a3}
.home-dashboard .income .distribution-fill.segment-1{fill:#8cdfb9}
.home-dashboard .income .distribution-fill.segment-2{fill:#ace9cd}
.home-dashboard .income .distribution-fill.segment-3{fill:#c4efde}
.home-dashboard .income .distribution-fill.segment-4{fill:#d9f5e9}
.home-dashboard .income .distribution-fill.segment-5{fill:#effaf5}
.home-dashboard .distribution-fill.negative{fill:#e67c86}

/* Avisos compactos junto al título: no añaden filas entre gráfico y desglose. */
.home-dashboard .dash-card-heading{justify-content:flex-start;min-height:34px}
.home-dashboard .dash-card-heading>h2{flex:none}
.home-dashboard .dash-card-heading>.dash-card-open{flex:none;margin-left:auto}
.home-dashboard .dash-card-heading>.dash-heading-note{flex:0 1 auto;min-width:0;margin:0;padding:4px 6px;font-size:10px;line-height:13px;overflow-wrap:anywhere}
