/**
 * Calendário de Feriados e Calculadora de Dias Úteis — estilos pontuais.
 */

.fdu-mode-card:has(:checked) {
    border-color: #2563eb;
    background: #eff6ff;
}

.fdu-cal-day {
    min-height: 2.5rem;
    min-width: 2.5rem;
}

.fdu-cal-day[aria-current="date"] {
    outline: 2px solid #1d4ed8;
    outline-offset: 1px;
}

.fdu-mark {
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
}

.fdu-day-sat { background-image: repeating-linear-gradient(-45deg, transparent, transparent 4px, rgba(148, 163, 184, 0.18) 4px, rgba(148, 163, 184, 0.18) 5px); }
.fdu-day-sun { background-image: repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(148, 163, 184, 0.22) 4px, rgba(148, 163, 184, 0.22) 5px); }
.fdu-day-nat { box-shadow: inset 0 -3px 0 #dc2626; }
.fdu-day-loc { box-shadow: inset 0 -3px 0 #7c3aed; }
.fdu-day-opt { box-shadow: inset 0 -3px 0 #d97706; }
.fdu-day-adm { box-shadow: inset 0 -3px 0 #0f766e; }
.fdu-day-custom { box-shadow: inset 3px 0 0 #0369a1; }
.fdu-day-range { background-color: #dbeafe; }
.fdu-day-result { outline: 2px dashed #047857; outline-offset: -2px; }

@media (prefers-reduced-motion: reduce) {
    .fdu-mode-card,
    .fdu-cal-day {
        transition: none;
    }
}

.fdu-skip-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fdu-skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fdu-skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    overflow: visible;
    white-space: normal;
    display: inline-block;
    padding: 0.5rem 0.75rem;
    background: #1e3a8a;
    color: #fff;
    border-radius: 0.5rem;
    font-weight: 600;
    z-index: 50;
}

@media print {
    .fdu-calendar-wrap,
    .fdu-legend,
    .fdu-skip-links,
    .fdu-skip-link,
    noscript {
        display: none !important;
    }

    #print-report {
        max-width: 100%;
    }

    #print-report h1,
    #print-report .fdu-print-primary {
        page-break-after: avoid;
        break-after: avoid;
    }

    #print-report ul {
        max-width: 100%;
    }
}
