
/* CPB_PLANEAMENTO_V13
   Uniformização dos botões de planeamento
*/

/* Botões no cabeçalho do formulário */
.cpb-block-v2 a[href*="bloqueios/"],
.cpb-block-v2 a[href*="agenda/"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 17px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
    transition:
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

/* Consultar / gerir indisponibilidades */
.cpb-block-v2 a[href*="bloqueios/"] {
    color: #0756a3 !important;
    background: #eaf3ff !important;
    border: 1px solid #a8cff8 !important;
}

.cpb-block-v2 a[href*="bloqueios/"]:hover {
    background: #dbeafe !important;
    border-color: #75b2f0 !important;
    box-shadow: 0 3px 12px rgba(7,86,163,.10);
}

/* Voltar à agenda */
.cpb-block-v2 a[href*="agenda/"] {
    color: #28455f !important;
    background: #fff !important;
    border: 1px solid #d7e3ef !important;
}

.cpb-block-v2 a[href*="agenda/"]:hover {
    background: #f1f6fb !important;
    border-color: #a9bfd5 !important;
}

/* Acessibilidade */
.cpb-block-v2 a[href*="bloqueios/"]:focus-visible,
.cpb-block-v2 a[href*="agenda/"]:focus-visible {
    outline: 3px solid #75aef0;
    outline-offset: 3px;
}

/* Telemóvel */
@media (max-width: 700px) {
    .cpb-block-v2 a[href*="bloqueios/"],
    .cpb-block-v2 a[href*="agenda/"] {
        min-height: 46px;
        padding: 11px 14px;
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .cpb-block-v2 a[href*="bloqueios/"],
    .cpb-block-v2 a[href*="agenda/"] {
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }
}
