:root{--cp-fs-lede:1rem;--cp-lh-lede:1.6;--cp-fs-h2:1.375rem;--cp-fw-h2:800;--cp-lh-h2:1.45;--cp-ls-h2:-.015em;--cp-lh-p:1.5;--cp-fs-menu:.95rem;--cp-fw-menu:500;--cp-fs-menu-item:.9rem;--cp-lh-menu-item:1.25;--cp-lh-rodape:1.4}
@layer legado{
html body .cal-year-hero .cal-year-hero__lede.cal-year-hero__lede{font-size:var(--cp-fs-lede)!important;line-height:var(--cp-lh-lede)!important}
html body main#main .article-content h2:not(.oc-d1__t),html body main#main h2.cal-section-title{font-size:var(--cp-fs-h2)!important;font-weight:var(--cp-fw-h2)!important;line-height:var(--cp-lh-h2)!important;letter-spacing:var(--cp-ls-h2)!important}
html body main#main .article-content p{line-height:var(--cp-lh-p)!important}
html body .header-category-link.header-category-link{font-size:var(--cp-fs-menu)!important;font-weight:var(--cp-fw-menu)!important}
html body .dropdown-item.dropdown-item{font-size:var(--cp-fs-menu-item)!important;line-height:var(--cp-lh-menu-item)!important}
html body .site-footer .footer-link{line-height:var(--cp-lh-rodape)!important}
}
@layer legado{
html body.cal-year-wide main#main .container.container.container.article-wrapper,html body.cal-year-wide main#main .container.container.container.serp-wrapper{padding-left:16px!important;padding-right:16px!important}
html body.cal-year-wide main#main .container.container.container.article-wrapper > :not(.result-area-refactored),html body.cal-year-wide main#main .container.container.container.serp-wrapper > :not(.result-area-refactored){padding-left:0!important;padding-right:0!important}
html body main#main .cdp-tool-shift:has(.cdp-n2--ano) > .cdp-tool-body > .container.container.container.article-wrapper > .article-content,html body main#main .cdp-tool-shift:has(.cdp-n2--ano) > .cdp-tool-body > .container.container.container.serp-wrapper.no-print > .article-content{padding-left:16px!important;padding-right:16px!important}
@media screen{
html body main#main h2:not(.oc-d1__t):not(.result-area-title-refactored):not(.cdp-cabeca-titulo):not(#tef-form-titulo){color:#1d1d1f!important}
html body.dark-mode main#main h2:not(.oc-d1__t):not(.result-area-title-refactored):not(.cdp-cabeca-titulo):not(#tef-form-titulo){color:#f5f5f7!important}
}
}
.fr-opcoes>summary{cursor:pointer;display:inline-flex;align-items:center;gap:6px;font-weight:500;font-size:.88rem;list-style:none;user-select:none}
.fr-opcoes>summary::-webkit-details-marker{display:none}
.fr-opcoes .include-options-plus{color:var(--primary-color);font-weight:700;line-height:1}
.fr-opcoes[open]>summary{margin-bottom:8px}
.pdu-opcoes{margin:12px 0}
.du-opcoes__rot{display:block;margin-bottom:6px;font-size:.9rem;font-weight:600}
.nds-date-form{max-width:360px}
html body .fr-regiao-campo .cp-seg,html body .pdu-regiao,html body .tef-fset .fr-seg--radio,html body .tt-onde .fr-seg--radio{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));box-sizing:border-box;width:100%;max-width:min(520px,100%)}
html body .pdu-regiao>button{padding:4px 8px!important;line-height:1.2;white-space:normal!important;min-height:44px}
.fr-cartao{margin:16px 0;background:var(--card-bg,#fff);border:1px solid var(--border-color,#d2d2d7);border-radius:12px;overflow:hidden}
.fr-cartao__cabeca{background:#0b1d38;padding:14px 20px}
.fr-cartao__titulo{margin:0;color:#fff;font-size:1.25rem;font-weight:700;line-height:1.25}
.fr-cartao__corpo{padding:16px 20px}
body.dark-mode .fr-cartao{background:#101a2c}
@media screen{
html body .tef-ferramenta h2#tef-form-titulo{margin:0!important;padding:14px 20px!important;background:#0b1d38;color:#fff!important;font-size:1.25rem;line-height:1.25;border:0;border-radius:12px 12px 0 0}
html body .tef-ferramenta .tef-form{box-sizing:border-box;margin:0 0 16px;background:var(--card-bg,#fff);border:1px solid var(--border-color,#d2d2d7);border-top:0;border-radius:0 0 12px 12px;padding:20px}
html body .tef-campo label.tef-cx{display:flex;align-items:center}
html body.dark-mode .tef-ferramenta .tef-form{background:#101a2c}
html body .cal-year-hero__title{font-size:clamp(1.55rem,3vw + .8rem,2.8rem)}
html body .cal-year-hero__lede{font-size:clamp(.94rem,.23vw + .884rem,1.08rem)}
}
body.tool-trabalho-por-turnos .tt-fita__passo,body.tool-trabalho-por-turnos .tt-fita__passo *{white-space:nowrap}
.cp-pers-painel:has(#plano-concelho option[value=""]:checked) .pontes-plano__opcao{display:none}
.btn-preset{color:var(--text-color,#1d1d1f)!important;opacity:1!important}
body.dark-mode .btn-preset{color:#f5f5f7!important}
html body .cp-pers-painel{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);box-sizing:border-box;width:min(520px,calc(100vw - 32px));max-height:calc(100vh - 64px);overflow:auto;z-index:10001;background:#fff;color:#1d1d1f;border-radius:14px;padding:16px;box-shadow:0 14px 30px rgba(15,23,42,.25);display:flex;flex-direction:column;gap:12px}
html body .cp-pers-painel[hidden]{display:none}
html body .cp-pers-fundo{position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,.45);border:0;padding:0}
html body .cp-pers-fundo[hidden]{display:none}
.cp-pers-topo{display:flex;align-items:center;justify-content:space-between}
.cp-pers-titulo{margin:0;font-weight:700;font-size:1.05rem}
.cp-pers-topo .du-nav-advanced-close-top{background:none;border:0;font-size:1.5rem;line-height:1;cursor:pointer;color:inherit;padding:4px 8px}
body.dark-mode .cp-pers-painel{background:#16233a;color:#f5f5f7}
.cp-pers-painel .tt-onde__valores{display:none}
html body .du-opcoes .du-nav-advanced-panel{left:auto;right:0;width:min(360px,92vw)}
@media (min-width:769px){html body .cp-pers-fundo{background:transparent}}
@media (max-width:768px){
html body .du-opcoes .du-nav-advanced-panel{position:fixed!important;top:50%!important;transform:translateY(-50%)!important;left:16px!important;right:16px!important;width:auto!important;z-index:10050!important}
html body .du-opcoes .du-nav-advanced-backdrop:not([hidden]){display:block!important;position:fixed;inset:0;z-index:10049;background:rgba(0,0,0,.45);border:0;padding:0}
}
.cp-pers-painel .tt-linha{display:flex;flex-direction:column;gap:12px}
.cp-pers-painel>*{flex:none}
.cp-pers-painel .tt-linha>*{width:100%;max-width:none;box-sizing:border-box}
.cp-pers-painel .tt-ctl{width:100%;box-sizing:border-box}
html body .du-opcoes .du-nav-advanced-modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.du-nav-advanced-modal-title{margin:0;font-weight:700;font-size:1.05rem}
html body .du-opcoes .du-nav-advanced-close-top{background:none;border:0;font-size:1.5rem;line-height:1;cursor:pointer;color:inherit;padding:4px 8px}
html body .du-opcoes .cp-seg{display:grid!important;box-sizing:border-box;width:100%;grid-template-columns:1.6fr 1fr 1fr}
html body .du-opcoes .cp-seg>button{padding:4px 8px!important;line-height:1.2;white-space:nowrap!important;min-height:44px}
.tt-meses__ligacao,.tt-meses__ligacao:visited{color:var(--primary-color,#0059b3)}
body.dark-mode .tt-meses__ligacao,body.dark-mode .tt-meses__ligacao:visited{color:#8ab4f8}
@media (max-width:559px){
}
html body .du-opcoes .du-nav-advanced-panel{padding:16px;box-sizing:border-box}
html body .du-opcoes .du-nav-advanced-modal-body{padding:0 0 4px}
html body .du-opcoes .du-nav-advanced-modal-head{border:0;padding:0}
.cp-barra-cal{margin:12px 0}
