.dashboard-critical-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.dashboard-critical-card{min-width:0;min-height:194px;display:flex;flex-direction:column;padding:17px;border:1px solid #e1e7ef;border-radius:16px;background:#fff;color:#14213d;text-align:left;cursor:pointer;box-shadow:0 8px 24px rgba(20,35,65,.045);transition:transform .18s,border-color .18s,box-shadow .18s}
.dashboard-critical-card:hover{transform:translateY(-2px);border-color:#b8c8df;box-shadow:0 13px 28px rgba(20,35,65,.09)}
.dashboard-critical-card>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}
.dashboard-card-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#f0f3f7;color:#718096}.dashboard-card-icon svg{width:19px;height:19px}
.dashboard-critical-card>.status-dot{margin:0}.dashboard-critical-card>small{min-height:22px;color:#7b8799;font-size:8px;font-weight:850;letter-spacing:.09em}.dashboard-critical-card h3{margin:4px 0 7px;font-size:17px}.dashboard-critical-card p{display:-webkit-box;min-height:35px;overflow:hidden;margin:0;color:#667386;font-size:10px;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:2}.dashboard-critical-card p.critical-reason{color:#b72b33;font-weight:700}
.dashboard-critical-card>footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:13px;border-top:1px solid #edf0f4;color:#8792a3;font-size:9px}.dashboard-critical-card>footer svg{width:14px;height:14px}
.dashboard-critical-card.good h3{color:#168348}.dashboard-critical-card.good .dashboard-card-icon{background:#e7f7ed;color:#15934b}.dashboard-critical-card.warning h3{color:#a86500}.dashboard-critical-card.warning .dashboard-card-icon{background:#fff4df;color:#db8a0d}.dashboard-critical-card.danger h3{color:#cf2831}.dashboard-critical-card.danger .dashboard-card-icon{background:#ffe9ea;color:#d92e37}
.dashboard-document-indicator{padding:0;overflow:hidden;cursor:pointer}.document-indicator-main{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;align-items:center;padding:14px 14px 8px}.document-status-ring{--document-tone:#8b98ab;position:relative;width:68px;height:68px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--document-tone) 0 72%,#e9edf3 72%)}.document-status-ring:before{content:"";position:absolute;inset:5px;border-radius:50%;background:#fff}.document-status-ring span{position:relative;width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:#f3f5f8;color:var(--document-tone)}.document-status-ring svg{width:27px;height:27px}.dashboard-document-indicator.good .document-status-ring{--document-tone:#35ae7b}.dashboard-document-indicator.warning .document-status-ring{--document-tone:#e99a1c}.dashboard-document-indicator.danger .document-status-ring{--document-tone:#e53b43}.dashboard-document-indicator.csf.good .document-status-ring{--document-tone:#2866b5}.document-indicator-copy{min-width:0}.document-indicator-copy>small{display:block;color:#70809a;font-size:7px;font-weight:850;letter-spacing:.07em;line-height:1.35}.document-indicator-copy h3{overflow:hidden;margin:6px 0 8px;font-size:17px;white-space:nowrap;text-overflow:ellipsis}.document-indicator-copy em{width:max-content;max-width:100%;display:flex;align-items:center;gap:5px;padding:5px 7px;border-radius:9px;background:#eef1f5;color:#52627d;font-size:7.5px;font-style:normal;font-weight:800}.document-indicator-copy em svg{width:12px;height:12px}.dashboard-document-indicator.good .document-indicator-copy em{background:#e6f7ed;color:#168348}.dashboard-document-indicator.warning .document-indicator-copy em{background:#fff2dc;color:#a86500}.dashboard-document-indicator.danger .document-indicator-copy em{background:#ffe8e9;color:#cf2831}.dashboard-document-indicator>p{min-height:39px;margin:0;padding:6px 15px 11px;color:#58677e;font-size:9px;line-height:1.5;-webkit-line-clamp:2}.dashboard-document-indicator>footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;padding:10px 13px;border-top:1px solid #e8edf3;background:#fbfcfd}.dashboard-document-indicator>footer>span{display:flex;align-items:center;gap:7px;min-width:0}.dashboard-document-indicator>footer>span>svg{width:14px;height:14px;color:#546989}.dashboard-document-indicator>footer>span>span{display:grid;gap:2px}.dashboard-document-indicator>footer small{color:#8793a5;font-size:6px;font-weight:850;letter-spacing:.06em}.dashboard-document-indicator>footer b{overflow:hidden;color:#1c2b47;font-size:8px;white-space:nowrap;text-overflow:ellipsis}.dashboard-document-indicator>footer strong{display:flex;align-items:center;gap:4px;padding:7px 8px;border:1px solid #dce3ed;border-radius:8px;background:#fff;color:#17345f;font-size:7.5px;white-space:nowrap}.dashboard-document-indicator>footer strong svg{width:12px;height:12px}
.dashboard-certificate-indicator{padding:0;overflow:hidden}.dashboard-certificate-indicator>header{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;margin:0;padding:13px 14px;border-bottom:1px solid #e4eaf1;background:linear-gradient(110deg,#f1fbf5,#fff)}.dashboard-certificate-indicator>header>div{min-width:0}.dashboard-certificate-indicator>header small{display:block;color:#75849a;font-size:7px;font-weight:850;letter-spacing:.08em}.dashboard-certificate-indicator>header h3{overflow:hidden;margin:3px 0 0;color:#14213d!important;font-size:13px;white-space:nowrap;text-overflow:ellipsis}.dashboard-certificate-indicator>header em{padding:5px 7px;border-radius:20px;background:#e2f6e9;color:#168348;font-size:7px;font-style:normal;font-weight:850;white-space:nowrap}.dashboard-certificate-indicator.warning>header{background:linear-gradient(110deg,#fff8eb,#fff)}.dashboard-certificate-indicator.warning>header em{background:#fff0d4;color:#a86500}.dashboard-certificate-indicator.danger>header{background:linear-gradient(110deg,#fff2f2,#fff)}.dashboard-certificate-indicator.danger>header em{background:#ffe2e3;color:#cf2831}.dashboard-certificate-indicator.neutral>header{background:linear-gradient(110deg,#f4f6f9,#fff)}.dashboard-certificate-indicator.neutral>header em{background:#edf0f4;color:#687386}
.certificate-compact-body{display:grid;grid-template-columns:62px minmax(0,1fr);gap:12px;align-items:center;padding:12px 14px}.certificate-days-ring{--ring-color:#18a653;position:relative;width:58px;height:58px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--ring-color) calc(var(--certificate-progress)*1%),#e8edf3 0)}.certificate-days-ring:before{content:"";position:absolute;inset:6px;border-radius:50%;background:#fff}.certificate-days-ring span{position:relative;display:grid;text-align:center}.certificate-days-ring b{font-size:15px;line-height:1}.certificate-days-ring small{margin-top:2px;color:#7b8798;font-size:6px;font-weight:850}.dashboard-certificate-indicator.warning .certificate-days-ring{--ring-color:#ef9b15}.dashboard-certificate-indicator.danger .certificate-days-ring{--ring-color:#df3038}.dashboard-certificate-indicator.neutral .certificate-days-ring{--ring-color:#98a3b2}.certificate-compact-body dl{min-width:0;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}.certificate-compact-body dl div{min-width:0}.certificate-compact-body dt{color:#8190a5;font-size:6px;font-weight:850;letter-spacing:.06em}.certificate-compact-body dd{overflow:hidden;margin:3px 0 0;color:#1c2b47;font-size:7.5px;font-weight:750;white-space:nowrap;text-overflow:ellipsis}.dashboard-certificate-indicator>footer{margin:0;padding:9px 14px;background:#fafbfd}
html[data-theme="dark"] .dashboard-certificate-indicator>header,html[data-theme="dark"] .dashboard-certificate-indicator>footer{background:#1d2634;border-color:#303949}html[data-theme="dark"] .dashboard-certificate-indicator>header h3,html[data-theme="dark"] .certificate-compact-body dd{color:#edf2fb!important}html[data-theme="dark"] .certificate-days-ring:before{background:#1a2230}
.dashboard-declarations-section{margin-top:7px;padding:20px;border:1px solid #e1e7ef;border-radius:17px;background:#fff;box-shadow:0 8px 24px rgba(20,35,65,.04)}.dashboard-declarations-section>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.dashboard-declarations-section>header small,.dashboard-quick-header small,.dashboard-recent-activity>header small{color:#1768df;font-size:8px;font-weight:850;letter-spacing:.12em}.dashboard-declarations-section>header h2,.dashboard-quick-header h2,.dashboard-recent-activity>header h2{margin:3px 0 0;color:#14213d;font-size:17px}.dashboard-declarations-section>header p,.dashboard-quick-header p{margin:4px 0 0;color:#7b8798;font-size:10px}.dashboard-declarations-section>header button{display:flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #dbe3ed;border-radius:9px;background:#fff;color:#174d95;font-size:9px;font-weight:800;cursor:pointer}.dashboard-declarations-section>header button svg{width:14px}
.dashboard-declarations-layout{display:grid;grid-template-columns:2fr 1fr;gap:12px}.dashboard-calendar-card{padding:13px;border:1px solid #e5eaf1;border-radius:13px;background:#fafbfd}.dashboard-declaration-calendar{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.dashboard-declaration-month{min-height:48px;display:flex;align-items:center;justify-content:space-between;padding:9px;border:1px solid #e2e7ee;border-radius:9px;background:#fff}.dashboard-declaration-month b{font-size:10px}.dashboard-declaration-month i{font-size:12px;font-style:normal;font-weight:850;color:#98a2b2}.dashboard-declaration-month.presented{border-color:#a8dfbd;background:#eefaf2;color:#168348}.dashboard-declaration-month.presented i{color:#168348}.dashboard-declaration-month.missing{border-color:#f1b7ba;background:#fff5f5;color:#ca2932}.dashboard-declaration-month.missing i{color:#ca2932}.dashboard-declaration-month.current{border-color:#efcb8e;background:#fff9ed;color:#b56d00}.dashboard-declaration-month.current i{color:#da8a11}.dashboard-declaration-month.future{opacity:.55}.dashboard-calendar-card>footer{display:flex;gap:15px;margin-top:11px;color:#7d8899;font-size:8px}.dashboard-calendar-card>footer span{display:flex;align-items:center;gap:5px}.dashboard-calendar-card>footer i{width:7px;height:7px;border-radius:3px}.dashboard-calendar-card>footer .presented{background:#24a655}.dashboard-calendar-card>footer .missing{background:#df3942}.dashboard-calendar-card>footer .current{background:#e79720}
.dashboard-declaration-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.dashboard-declaration-kpis article{min-width:0;display:flex;align-items:center;flex-direction:column;padding:11px 8px;border:1px solid #e5eaf1;border-radius:11px;background:#fff;text-align:center}.declaration-kpi-icon{width:34px;height:34px;display:grid;place-items:center;margin-bottom:9px;border-radius:50%;background:#edf3ff;color:#2868db;font-style:normal}.declaration-kpi-icon svg{width:17px;height:17px}.dashboard-declaration-kpis .good .declaration-kpi-icon{background:#e7f8ef;color:#169757}.dashboard-declaration-kpis .danger .declaration-kpi-icon{background:#fff0f1;color:#df3038}.dashboard-declaration-kpis .progress .declaration-kpi-icon{background:#edf3ff;color:#2868db}.dashboard-declaration-kpis small{min-height:17px;color:#6f7f97;font-size:6.5px;font-weight:850;letter-spacing:.06em}.dashboard-declaration-kpis b{margin:5px 0 4px;color:#31537e;font-size:20px}.dashboard-declaration-kpis span{margin-top:auto;color:#8792a3;font-size:7px;line-height:1.35}.dashboard-declaration-kpis .good b{color:#168f50}.dashboard-declaration-kpis .danger b{color:#df3038}
.dashboard-quick-header{display:flex;align-items:end;justify-content:space-between;margin:27px 0 12px;padding:0 2px}.dashboard-tool-groups{margin-top:0!important}.dashboard-recent-activity{margin:26px 0 8px}.dashboard-recent-activity>header{margin-bottom:11px}.dashboard-recent-activity>div{overflow:hidden;border:1px solid #e1e7ef;border-radius:15px;background:#fff}.dashboard-recent-activity button{width:100%;display:grid;grid-template-columns:9px minmax(0,1fr) 16px;gap:11px;align-items:center;padding:12px 15px;border:0;border-bottom:1px solid #edf0f4;background:#fff;color:#14213d;text-align:left;cursor:pointer}.dashboard-recent-activity button:last-child{border-bottom:0}.dashboard-recent-activity button:hover{background:#f8faff}.dashboard-recent-activity button>div{display:grid;gap:3px}.dashboard-recent-activity button b{font-size:10px}.dashboard-recent-activity button small{color:#8792a3;font-size:8px}.dashboard-recent-activity button>svg{width:14px;color:#8b96a6}.activity-mark{width:8px;height:8px;border-radius:50%;background:#97a2b1}.activity-mark.good{background:#18a653}.activity-mark.warning{background:#ef9b15}.activity-mark.danger{background:#df3038}.dashboard-activity-empty{margin:0;padding:18px;color:#7b8798;font-size:10px}
.dashboard-tool-group--certificates,.dashboard-tool-group--general{display:none!important}
/* Escala visual común para los cuatro indicadores principales. */
.dashboard-critical-grid .document-status-ring,.dashboard-critical-grid .certificate-days-ring{width:68px;height:68px}
.dashboard-critical-grid .document-status-ring svg,.dashboard-critical-grid .dashboard-card-icon svg{width:24px;height:24px;stroke-width:2}
.dashboard-critical-grid .dashboard-card-icon{width:44px;height:44px;border-radius:13px}
.dashboard-critical-grid .dashboard-certificate-indicator>header{grid-template-columns:44px minmax(0,1fr) auto;padding:10px 14px}
.dashboard-critical-grid .certificate-compact-body{grid-template-columns:72px minmax(0,1fr);padding-block:7px}
.dashboard-critical-grid .certificate-days-ring b{font-size:17px}
.dashboard-critical-grid .certificate-days-ring small{font-size:6.5px}
.dashboard-critical-grid .document-indicator-main{grid-template-columns:72px minmax(0,1fr)}
/* Legibilidad: contraste AA aproximado y escala compacta sin texto diminuto. */
.dashboard-operational-summary>header small,.dashboard-declarations-section>header small,.dashboard-quick-header small,.dashboard-recent-activity>header small{color:#145fc4;font-size:9px}
.dashboard-operational-summary>header>span,.dashboard-declarations-section>header p,.dashboard-quick-header p{color:#59687d;font-size:11px}
.document-indicator-copy>small,.dashboard-certificate-indicator>header small{color:#52637c;font-size:8.5px;line-height:1.4}
.document-indicator-copy h3{font-size:18px}
.document-indicator-copy em{font-size:9px}
.document-indicator-copy em svg{width:14px;height:14px}
.dashboard-document-indicator>p{color:#34445c;font-size:10.5px;line-height:1.5}
.dashboard-document-indicator>footer small{color:#5f7088;font-size:7.5px}
.dashboard-document-indicator>footer b{color:#172742;font-size:9.5px}
.dashboard-document-indicator>footer strong{color:#15345f;font-size:9px}
.dashboard-certificate-indicator>header h3{font-size:14px}
.dashboard-certificate-indicator>header em{font-size:8.5px}
.certificate-compact-body dt{color:#5f7087;font-size:7.5px}
.certificate-compact-body dd{color:#172742;font-size:9px}
.dashboard-certificate-indicator>footer{color:#5b6b81;font-size:9px}
.dashboard-declaration-kpis small{color:#52637a;font-size:8px;line-height:1.35}
.dashboard-declaration-kpis b{font-size:22px}
.dashboard-declaration-kpis span{color:#5f6f84;font-size:8.5px}
.dashboard-declaration-month b{color:#24344e;font-size:11px}
.dashboard-calendar-card>footer{color:#58687e;font-size:9px}
.dashboard-recent-activity button b{color:#1c2b45;font-size:11px}
.dashboard-recent-activity button small{color:#65758b;font-size:9px}
.dashboard-activity-empty{color:#59697f;font-size:10.5px}
/* Iconografía de accesos directos: tamaño óptico y color por función. */
#dashGrid .action-card .action-icon{width:44px;height:44px;border-radius:13px;margin-bottom:10px;background:var(--access-soft,#eaf2ff);color:var(--access-accent,#1768df);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--access-accent,#1768df) 7%,transparent)}
#dashGrid .action-card .action-icon svg{width:23px;height:23px;stroke-width:1.9}
#dashGrid .action-card .action-go{width:30px;height:30px;background:#f6f8fb;color:#687a92;opacity:1}
#dashGrid .action-card .action-go svg{width:14px;height:14px;stroke-width:2}
#dashGrid .action-card:hover .action-go{background:var(--access-soft,#eaf2ff);color:var(--access-accent,#1768df)}
#dashGrid .action-card[data-operation="fiscal"]{--access-accent:#2459b8;--access-soft:#eaf1ff}
#dashGrid .action-card[data-operation="mailbox"]{--access-accent:#6a4bc3;--access-soft:#f0edff}
#dashGrid .action-card[data-operation="invoices"]{--access-accent:#087f73;--access-soft:#e7f7f4}
#dashGrid .action-card[data-operation="workingPaper"]{--access-accent:#b66a09;--access-soft:#fff3df}
#dashGrid .action-card[data-operation="presentationDeclarations"]{--access-accent:#168348;--access-soft:#e7f7ed}
#dashGrid .action-card[data-operation="cruceXml"]{--access-accent:#1768df;--access-soft:#eaf2ff}
#dashGrid .action-card[data-operation="billing"]{--access-accent:#bd3b62;--access-soft:#ffebf1}
#dashGrid .action-card[data-operation="declarations"]{--access-accent:#168348;--access-soft:#e7f7ed}
html[data-theme="dark"] .dashboard-critical-card,html[data-theme="dark"] .dashboard-declarations-section,html[data-theme="dark"] .dashboard-calendar-card,html[data-theme="dark"] .dashboard-declaration-kpis article,html[data-theme="dark"] .dashboard-recent-activity>div,html[data-theme="dark"] .dashboard-recent-activity button{border-color:#303949;background:#1a2230;color:#edf2fb}html[data-theme="dark"] .dashboard-declaration-month{border-color:#3a4556;background:#202a38}html[data-theme="dark"] .dashboard-declarations-section h2,html[data-theme="dark"] .dashboard-quick-header h2,html[data-theme="dark"] .dashboard-recent-activity h2{color:#edf2fb}
html[data-theme="dark"] .document-status-ring:before,html[data-theme="dark"] .document-status-ring span{background:#1a2230}html[data-theme="dark"] .dashboard-document-indicator>footer{background:#1d2634;border-color:#303949}html[data-theme="dark"] .dashboard-document-indicator>footer b{color:#edf2fb}
html[data-theme="dark"] .document-indicator-copy>small,html[data-theme="dark"] .dashboard-certificate-indicator>header small,html[data-theme="dark"] .certificate-compact-body dt,html[data-theme="dark"] .dashboard-declaration-kpis small{color:#b7c2d2}html[data-theme="dark"] .dashboard-document-indicator>p,html[data-theme="dark"] .certificate-compact-body dd,html[data-theme="dark"] .dashboard-declaration-month b,html[data-theme="dark"] .dashboard-recent-activity button b{color:#edf2fb}html[data-theme="dark"] .dashboard-declaration-kpis span,html[data-theme="dark"] .dashboard-recent-activity button small,html[data-theme="dark"] .dashboard-calendar-card>footer{color:#b1bdcd}
@media(max-width:1100px){.dashboard-critical-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-declarations-layout{grid-template-columns:1fr}.dashboard-declaration-calendar{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:650px){.dashboard-critical-grid{grid-template-columns:1fr}.dashboard-critical-card{min-height:172px}.dashboard-declarations-section{padding:15px}.dashboard-declarations-section>header{flex-direction:column}.dashboard-declaration-calendar{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-declaration-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-calendar-card>footer{flex-wrap:wrap}}
@media(max-width:420px){.dashboard-declaration-calendar{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-declaration-kpis{grid-template-columns:1fr}.dashboard-declaration-kpis article{min-height:84px}}
