/* Cabeçalho e controles gerenciais da página de relatórios. */
.report-head {
    display: grid !important;
    grid-template-columns: minmax(320px, .72fr) minmax(680px, 1.28fr) !important;
    align-items: center !important;
    gap: clamp(32px, 5vw, 78px) !important;
    margin-bottom: 30px !important;
}

.report-head-copy { min-width: 0; }
.report-head-copy h1 {
    margin: 7px 0 9px !important;
    background: linear-gradient(120deg, #10283c 5%, #075f88 55%, #11a8a1 100%) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    font-size: clamp(36px, 4vw, 48px) !important;
    letter-spacing: -.06em !important;
}

.report-head-copy .muted { max-width: 590px; font-size: 14px; }

.report-tools {
    display: grid !important;
    gap: 15px !important;
    justify-items: stretch !important;
    width: 100% !important;
    padding: 20px !important;
    border: 1px solid #dfe9ee !important;
    border-radius: 21px !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(248, 252, 253, .98)) !important;
    box-shadow: 0 14px 38px rgba(14, 55, 76, .075) !important;
}

.report-head .report-filter {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: end !important;
    gap: 13px !important;
    width: 100% !important;
}

.report-filter-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(145px, 1fr));
    gap: 12px;
    min-width: 0;
}

.report-filter-fields label {
    position: relative;
    display: grid;
    gap: 4px;
    min-width: 0;
    min-height: 72px;
    padding: 10px 12px 8px;
    border: 1px solid #dce9ee;
    border-radius: 15px;
    background: linear-gradient(145deg, #fff, #f8fbfc);
    box-shadow: 0 5px 14px rgba(20, 57, 77, .035);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.report-filter-fields label:hover { border-color: #afd0da; transform: translateY(-1px); }
.report-filter-fields label:focus-within { border-color: #07839c; box-shadow: 0 0 0 3px rgba(7, 131, 156, .1), 0 8px 18px rgba(20, 57, 77, .06); }
.report-filter-fields label.is-disabled { background: #f5f8f9; opacity: .68; transform: none; }
.report-filter-fields label > span {
    color: #477084;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.report-filter-fields select,
.report-filter-fields input[type="date"] {
    width: 100%;
    min-width: 0;
    min-height: 35px;
    padding: 5px 30px 5px 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    background-color: transparent;
    color: #163248;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    box-shadow: none;
}

.report-filter-fields input[type="date"] { padding-right: 2px; color-scheme: light; }
.report-filter-fields select:hover,
.report-filter-fields select:focus,
.report-filter-fields input[type="date"]:hover,
.report-filter-fields input[type="date"]:focus { border: 0; box-shadow: none; }
.report-filter-fields label > small { color: #8a9ca6; font-size: 8px; font-weight: 700; }

.report-filter-actions {
    display: grid;
    align-content: end;
    justify-items: stretch;
    gap: 6px;
    min-width: 170px;
}

.report-apply-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 72px !important;
    padding: 11px 17px !important;
    border: 1px solid rgba(255, 255, 255, .2) !important;
    border-radius: 13px !important;
    background: linear-gradient(120deg, #075f88, #0788a1 62%, #0a9f9b) !important;
    color: #fff !important;
    box-shadow: 0 9px 22px rgba(3, 93, 136, .18) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    white-space: nowrap;
}

.report-apply-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.report-apply-button:hover { box-shadow: 0 13px 26px rgba(3, 93, 136, .25) !important; transform: translateY(-1px); }
.report-filter-actions .report-filter-clear { grid-column: auto !important; justify-self: center !important; color: #768b98; font-size: 9px; }
.report-filter-actions .report-filter-clear:hover { color: #075f88; }

.report-export-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid #e8eef1;
}

.report-export-copy { display: grid; gap: 3px; min-width: 150px; }
.report-export-copy > span { color: #315064; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.report-export-copy > small { color: #8a9aa4; font-size: 8px; }

.report-exports--modern { display: flex !important; gap: 8px !important; flex-wrap: wrap; justify-content: flex-end; }
.report-exports--modern .report-export-button {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 126px;
    min-height: 46px;
    padding: 6px 10px 6px 7px !important;
    border: 1px solid #dce7ec !important;
    border-radius: 13px !important;
    background: #fff !important;
    color: #23475d !important;
    box-shadow: 0 5px 14px rgba(20, 57, 77, .045);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease !important;
}

.report-export-button > span:last-child { display: grid; gap: 2px; text-align: left; }
.report-export-button b { color: #17384d; font-size: 10px; line-height: 1; }
.report-export-button small { color: #8a9aa4; font-size: 7px; font-weight: 700; white-space: nowrap; }
.report-export-icon {
    display: grid;
    flex: 0 0 32px;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.report-export-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.report-export-button--csv .report-export-icon { background: #eaf7fb; color: #08789a; }
.report-export-button--excel .report-export-icon { background: #e9f8f1; color: #12845f; }
.report-export-button--pdf .report-export-icon { background: #fff0f2; color: #c23a50; }
.report-exports--modern .report-export-button:hover { border-color: #9dc7d4 !important; background: #fff !important; box-shadow: 0 10px 22px rgba(20, 75, 99, .1); transform: translateY(-2px); }

@media (max-width: 1240px) {
    .report-head { grid-template-columns: 1fr !important; gap: 22px !important; }
    .report-head-copy .muted { max-width: none; }
}

@media (max-width: 820px) {
    .report-head .report-filter { grid-template-columns: 1fr !important; }
    .report-filter-actions { grid-template-columns: minmax(150px, 1fr) auto; align-items: center; }
    .report-apply-button { min-height: 52px !important; }
    .report-filter-actions .report-filter-clear { justify-self: start !important; }
    .report-export-bar { align-items: flex-start; flex-direction: column; }
    .report-exports--modern { width: 100%; justify-content: flex-start; }
}

@media (max-width: 620px) {
    .report-tools { padding: 14px !important; border-radius: 17px !important; }
    .report-filter-fields { grid-template-columns: 1fr; }
    .report-filter-actions { grid-template-columns: 1fr; }
    .report-exports--modern { display: grid !important; grid-template-columns: 1fr; }
    .report-exports--modern .report-export-button { width: 100%; }
}
