﻿* {
    box-sizing: border-box;
}

:root {
    --bg: #f4f6fb;
    --bg-accent: #e6ebf8;
    --card: #ffffff;
    --text: #18243c;
    --muted: #67758f;
    --line: #d6ddeb;
    --primary: #1f4ea3;
    --primary-dark: #18397a;
    --primary-soft: #e7efff;
    --warning: #b97712;
    --warning-soft: #fff4dd;
    --teal: #0f766e;
    --teal-soft: #ddf6f1;
    --success: #0d6b43;
    --success-soft: #def5e7;
    --secondary: #cf2133;
    --secondary-dark: #a81828;
    --neutral: #eef2f8;
    --neutral-text: #334155;
    --danger: #b42318;
    --danger-soft: #fde7e4;
    --shadow: 0 18px 40px rgba(24, 36, 60, 0.09);
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #eef2fb 0%, #f8fafc 100%);
    color: var(--text);
}

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.portal-body {
    background:
        linear-gradient(180deg, #eef2fb 0%, #f8fafc 100%);
}

.portal-shell {
    width: 100%;
    max-width: 760px;
}

.portal-login-shell {
    width: 100%;
    max-width: 520px;
}

.portal-login-card {
    width: 100%;
    padding: 32px;
    background: var(--card);
    border: 1px solid rgba(214, 221, 235, 0.95);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.portal-login-brand {
    margin-bottom: 22px;
    text-align: center;
}

.portal-login-logo {
    display: block;
    width: min(275px, 76vw);
    max-height: 106px;
    object-fit: contain;
    height: auto;
    margin: 0 auto 14px;
}

.portal-login-brand h1 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.1;
    color: #11284f;
}

.portal-login-brand p {
    margin: 0 auto;
    max-width: 400px;
    color: var(--muted);
    line-height: 1.45;
}

.portal-login-form {
    display: grid;
    gap: 14px;
}

.portal-card {
    width: 100%;
    padding: 30px;
    background: var(--card);
    border: 1px solid rgba(214, 221, 235, 0.95);
    border-radius: 24px;
    box-shadow: var(--shadow);
    text-align: center;
}

.portal-logo {
    display: block;
    width: min(280px, 78vw);
    height: auto;
    margin: 0 auto 18px;
}

.portal-card h1 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.1;
    color: #11284f;
}

.portal-subtitle {
    max-width: 520px;
    margin: 0 auto 22px;
    color: var(--muted);
    line-height: 1.45;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.portal-option {
    min-height: 86px;
    padding: 16px;
    border: 1px solid #d4deef;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
    color: #163771;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(24, 57, 122, 0.08);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.portal-option:hover,
.portal-option-active {
    transform: translateY(-1px);
    border-color: #94b3e9;
    box-shadow: 0 14px 28px rgba(31, 78, 163, 0.14);
}

.logo-venancio-login {
    width: 150px;
    border-radius: 0;
    box-shadow: none;
}

.logo-venancio-topo {
    width: 112px;
    max-height: 54px;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    background: #ffffff;
}

.logo-aa-pequena.logo-venancio-topo {
    width: 102px;
    max-height: 48px;
}

.acoes-topo .botao span[aria-hidden="true"],
.filtros-acoes .botao span[aria-hidden="true"],
.link-acao span[aria-hidden="true"],
.botao-link-excluir span[aria-hidden="true"] {
    font-size: 13px;
    line-height: 1;
}

.link-portal {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.link-portal:hover {
    text-decoration: underline;
}

.endereco-mobile {
    display: none;
}

.login-shell {
    width: 100%;
    max-width: 980px;
}

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 20px 18px 36px;
}

.container-form {
    max-width: 860px;
}

.hero-card,
.filtros-card,
.tabela-card,
.form-card,
.login-card {
    background: var(--card);
    border: 1px solid rgba(214, 221, 235, 0.95);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.hero-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 12px;
    padding: 12px 16px;
    background:
        linear-gradient(90deg, rgba(24, 57, 122, 0.05) 0, rgba(24, 57, 122, 0.05) 6px, transparent 6px),
        linear-gradient(135deg, #ffffff 0%, #f5f8ff 100%);
}

.hero-brand,
.pagina-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo-aa {
    width: 62px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(24, 57, 122, 0.1);
}

.logo-aa-pequena {
    width: 58px;
}

.logo-aa-login {
    width: 86px;
    margin-bottom: 10px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: linear-gradient(180deg, #edf3ff 0%, #dfeaff 100%);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid #d3e0fb;
}

.hero-card h1,
.topo h1,
.login-card h1 {
    margin: 0 0 4px;
    font-size: 20px;
    line-height: 1.1;
    color: #11284f;
}

.login-form-panel h2 {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.1;
}

.hero-card p,
.topo p,
.login-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.hero-subtitle {
    font-size: 13px;
    color: #60708c;
}

.topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.topo-pagina {
    padding: 0 4px;
}

.acoes-topo {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.filtros-card {
    display: grid;
    grid-template-columns: minmax(170px, 0.95fr) minmax(170px, 0.95fr) minmax(250px, 1.45fr) minmax(160px, 0.9fr) auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 16px;
    padding: 10px 12px;
}

.filtros-card-grid {
    display: grid !important;
    grid-template-columns: minmax(170px, 0.95fr) minmax(170px, 0.95fr) minmax(250px, 1.45fr) minmax(160px, 0.9fr) auto !important;
    align-items: end;
}

.filtros-card-grid .campo-filtro {
    min-width: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.dashboard-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(214, 221, 235, 0.95);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 12px 14px;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #b8c8e8;
}

.dashboard-grid a:nth-child(1)::before {
    background: var(--primary);
}

.dashboard-grid a:nth-child(2)::before {
    background: #6d59d8;
}

.dashboard-grid a:nth-child(3)::before {
    background: var(--teal);
}

.dashboard-grid a:nth-child(4)::before {
    background: var(--warning);
}

.dashboard-grid a:nth-child(5)::before {
    background: var(--success);
}

.dashboard-grid a:nth-child(1) {
    background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
}

.dashboard-grid a:nth-child(2) {
    background: linear-gradient(135deg, #ffffff 0%, #f6f2ff 100%);
}

.dashboard-grid a:nth-child(3) {
    background: linear-gradient(135deg, #ffffff 0%, #f0fcf9 100%);
}

.dashboard-grid a:nth-child(4) {
    background: linear-gradient(135deg, #ffffff 0%, #fff8ec 100%);
}

.dashboard-grid a:nth-child(5) {
    background: linear-gradient(135deg, #ffffff 0%, #f2fbf5 100%);
}

.dashboard-card-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.dashboard-card-link:hover {
    transform: translateY(-2px);
    border-color: #bed0ee;
    box-shadow: 0 16px 24px rgba(24, 57, 122, 0.12);
}

.dashboard-card-ativo {
    border-color: #97b6ef;
    box-shadow: 0 16px 24px rgba(31, 78, 163, 0.14);
}

.dashboard-label {
    display: block;
    font-size: 11px;
    color: #62738f;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.dashboard-main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}

.dashboard-card strong {
    display: block;
    font-size: 22px;
    line-height: 1;
    color: #163771;
}

.dashboard-value {
    font-size: 12px;
    font-weight: 700;
    color: #506481;
    text-align: right;
}

.campo-filtro label,
label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--text);
}

.campo-filtro label {
    margin-bottom: 5px;
    font-size: 11px;
}

.filtros-acoes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.grid-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 1120px;
}

th,
td {
    padding: 8px 8px;
    border-bottom: 1px solid #e7edf7;
    border-right: 1px solid #edf2f8;
    vertical-align: middle;
    text-align: left;
}

th:last-child,
td:last-child {
    border-right: 0;
}

th {
    background: linear-gradient(180deg, #f7faff 0%, #eef3fb 100%);
    color: #415474;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #dce5f2;
    box-shadow: inset 0 -1px 0 #dce5f2;
}

.th-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.16s ease;
}

.th-link:hover {
    color: var(--primary);
}

tbody tr:hover {
    background: #fbfcff;
}

tbody tr:nth-child(even) {
    background: #f8fbff;
}

tbody tr:nth-child(even):hover {
    background: #f3f7ff;
}

td {
    font-size: 12px;
    overflow-wrap: break-word;
    line-height: 1.25;
}

.numero-orcamento {
    color: var(--primary-dark);
}

.numero-principal {
    display: block;
    font-weight: 700;
    line-height: 1.1;
}

.numero-revisao {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #edf2ff;
    color: #4859a8;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.vazio {
    text-align: center;
    color: var(--muted);
    padding: 28px;
}

.botao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 11px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #2b60c0 0%, var(--primary) 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 10px 24px rgba(31, 78, 163, 0.18);
    white-space: nowrap;
}

.botao:hover,
.botao-link-excluir:hover,
.link-acao:hover {
    transform: translateY(-1px);
}

.botao-secundario {
    background: linear-gradient(180deg, #e14253 0%, var(--secondary) 100%);
    box-shadow: 0 10px 24px rgba(207, 33, 51, 0.18);
}

.botao-neutro,
.botao-claro {
    background: linear-gradient(180deg, #2b60c0 0%, var(--primary) 100%);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(31, 78, 163, 0.18);
    border: 0;
}

.botao-pdf {
    background: linear-gradient(180deg, #2b60c0 0%, var(--primary) 100%);
    box-shadow: 0 10px 24px rgba(31, 78, 163, 0.18);
}

.form-card {
    padding: 26px;
}

.form-card label {
    font-weight: 600;
}

.label-suave {
    font-weight: 500 !important;
}

.form-card textarea,
.form-card input,
.form-card select {
    font-weight: 400;
}

.login-card {
    width: 100%;
    max-width: 980px;
    padding: 0;
    overflow: hidden;
}

.login-card-aa {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 420px);
    text-align: left;
}

.login-card-aa form {
    text-align: left;
}

.login-brand-panel {
    padding: 34px 34px 30px;
    background:
        radial-gradient(circle at top left, rgba(43, 96, 192, 0.16), transparent 38%),
        linear-gradient(160deg, #f7faff 0%, #eef3fb 100%);
    border-right: 1px solid rgba(214, 221, 235, 0.9);
}

.login-form-panel {
    padding: 34px 34px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-header {
    margin-bottom: 18px;
}

.login-subtitle {
    max-width: 460px;
    font-size: 15px;
}

.login-note {
    margin-top: 14px;
    font-size: 13px;
    color: var(--muted);
}

.login-feature-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.login-feature-item {
    padding: 14px 16px;
    border: 1px solid rgba(214, 221, 235, 0.92);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 10px 24px rgba(24, 57, 122, 0.05);
}

.login-feature-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--primary-dark);
}

.login-feature-item span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.botao-login {
    width: 100%;
    min-height: 42px;
    margin-top: 4px;
    font-size: 13px;
}

input,
textarea,
select {
    width: 100%;
    margin-top: 8px;
    padding: 8px 11px;
    border: 1px solid #cfdaea;
    border-radius: 14px;
    font: inherit;
    background: #fcfdff;
}

.filtros-card input,
.filtros-card select {
    margin-top: 6px;
    min-height: 36px;
    padding: 7px 10px;
    font-size: 11px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #8dadf0;
    box-shadow: 0 0 0 4px rgba(43, 96, 192, 0.12);
}

textarea {
    resize: vertical;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.status-prazo {
    background: #dff6e5;
    color: #166534;
}

.status-hoje {
    background: #fff1c2;
    color: #8a6116;
}

.status-vencido {
    background: #fde2e2;
    color: #a12d1f;
}

.status-enviado {
    background: #e3efff;
    color: #1f5da8;
}

.status-nao-orcado {
    background: #fde7e4;
    color: #a83a2e;
}

.status-orcando {
    background: #eef1ff;
    color: #5545b5;
}

.status-iniciar {
    background: #fff1dc;
    color: #9a5c00;
}

.status-andamento {
    background: #dff7f1;
    color: #0f766e;
}

.status-executado {
    background: #dff5e8;
    color: #0d6b43;
}

.alerta {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
}

.alerta-erro {
    background: #fee2e2;
    color: #991b1b;
}

.alerta-sucesso {
    background: #dcfce7;
    color: #166534;
}

.usuario-logado {
    padding: 7px 9px;
    border-radius: 12px;
    background: linear-gradient(180deg, #eff4fd 0%, #e5edf9 100%);
    color: #36507f;
    border: 1px solid #dce5f3;
    font-size: 11px;
    font-weight: 700;
}

.usuario-modo-leitura {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 12px;
    background: #fff3d8;
    color: #8a5a00;
    border: 1px solid #f3d59b;
    font-size: 11px;
    font-weight: 700;
}

.acoes-linha {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.acoes-linha form {
    margin: 0;
    flex: 0 0 auto;
}

.link-acao,
.botao-link-excluir {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 5px 8px;
    border-radius: 12px;
    border: 1px solid #dae3f1;
    background: #f7f9fd;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    font: inherit;
    white-space: nowrap;
}

.acao-icone {
    width: 32px;
    min-width: 32px;
    padding: 0;
}

.acao-icone span[aria-hidden="true"] {
    font-size: 13px;
    line-height: 1;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.botao-link-excluir {
    color: var(--danger);
    background: var(--danger-soft);
    border-color: #f3c5bf;
}

th:first-child,
td:first-child {
    width: 52px;
    min-width: 52px;
}

th:nth-child(2),
td:nth-child(2) {
    width: 82px;
}

th:nth-child(3),
td:nth-child(3) {
    width: 108px;
}

th:nth-child(4),
td:nth-child(4) {
    width: 230px;
}

th:nth-child(5),
td:nth-child(5) {
    width: 82px;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
}

th:nth-child(6),
td:nth-child(6) {
    width: 118px;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
}

th:nth-child(7),
td:nth-child(7) {
    width: 92px;
}

th:nth-child(8),
td:nth-child(8) {
    width: 130px;
}

th:nth-child(9),
td:nth-child(9) {
    width: 120px;
    min-width: 118px;
}

td:nth-child(3),
td:nth-child(5),
td:nth-child(6) {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
}

.link-anexos {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 10px;
}

.link-anexos-icone {
    font-size: 12px;
}

.form-card-compact {
    margin-bottom: 18px;
}

.grid-form-anexo {
    margin-bottom: 0;
}

.documentos-upload-acoes {
    align-items: end;
}

.botao-upload-documento {
    min-width: 104px;
    align-self: end;
}

.form-hint {
    margin: -4px 0 18px;
    font-size: 12px;
    color: var(--muted);
}

.anexo-card {
    padding: 18px;
}

.anexo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.anexo-header h2 {
    margin: 0;
    font-size: 18px;
}

.anexo-total {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.anexo-table {
    min-width: 720px;
}

.anexo-table th:nth-child(1),
.anexo-table td:nth-child(1) {
    width: 92px;
}

.anexo-table th:nth-child(2),
.anexo-table td:nth-child(2) {
    width: 92px;
}

.anexo-table th:nth-child(3),
.anexo-table td:nth-child(3) {
    width: 170px;
}

.anexo-table th,
.anexo-table td {
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 12px;
}

.anexo-table th:nth-child(4),
.anexo-table td:nth-child(4) {
    width: 210px;
    white-space: normal;
}

.anexo-table th:last-child,
.anexo-table td:last-child {
    width: 155px;
    min-width: 155px;
}

.anexo-table .arquivo-nome {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.25;
}

.anexo-table .texto-limitado {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.25;
    max-height: 32px;
    overflow: hidden;
}

.anexo-table .data-documento {
    width: 86px;
    min-width: 86px;
    white-space: normal;
    line-height: 1.25;
}

.anexo-table th:last-child,
.anexo-table td:last-child {
    width: 170px;
    min-width: 170px;
}

.pdf-body {
    background: #ffffff;
}

.pdf-wrap {
    padding: 20px;
}

.pdf-header {
    margin-bottom: 16px;
}

.pdf-header .hero-brand {
    align-items: flex-start;
}

.pdf-header h1 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.05;
    color: #11284f;
}

.pdf-header p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #42536f;
}

.pdf-table {
    width: 100%;
    min-width: 0;
    table-layout: auto;
}

.pdf-table th,
.pdf-table td {
    padding: 9px 10px;
    font-size: 11px;
    line-height: 1.3;
    vertical-align: top;
    word-break: normal;
    overflow-wrap: anywhere;
}

.pdf-table th {
    white-space: nowrap;
}

.pdf-table th:nth-child(1),
.pdf-table td:nth-child(1) {
    width: 72px;
    min-width: 72px;
    white-space: nowrap;
}

.pdf-table th:nth-child(2),
.pdf-table td:nth-child(2) {
    width: 150px;
}

.pdf-table th:nth-child(3),
.pdf-table td:nth-child(3) {
    width: auto;
    min-width: 320px;
}

.pdf-table th:nth-child(4),
.pdf-table td:nth-child(4) {
    width: 110px;
    min-width: 110px;
    white-space: nowrap;
}

.pdf-table th:nth-child(5),
.pdf-table td:nth-child(5) {
    width: 145px;
    min-width: 145px;
    white-space: nowrap;
}

.pdf-table th:nth-child(6),
.pdf-table td:nth-child(6) {
    width: 120px;
    min-width: 120px;
    white-space: nowrap;
}

.pdf-table td:nth-child(3) {
    white-space: normal;
    overflow-wrap: break-word;
}

.tabela-card {
    overflow-x: auto;
}

.tabela-card thead th:first-child {
    border-top-left-radius: 20px;
}

.tabela-card thead th:last-child {
    border-top-right-radius: 20px;
}

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filtros-card {
        grid-template-columns: 1fr 1fr;
    }

    .filtros-acoes {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .usuario-logado-mobile-hide,
    .botao-excel-mobile-hide {
        display: none !important;
    }

    .acoes-topo {
        width: 100%;
        gap: 8px;
    }

    .botao-mobile-icone {
        width: 42px;
        min-width: 42px;
        height: 40px;
        min-height: 40px;
        padding: 0;
        border-radius: 12px;
    }

    .botao-mobile-icone .botao-texto {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .botao-mobile-icone span[aria-hidden="true"] {
        font-size: 16px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .dashboard-grid a:nth-child(1),
    .dashboard-grid a:nth-child(5) {
        display: none;
    }

    .dashboard-card {
        min-height: 74px;
        padding: 10px 9px;
    }

    .dashboard-main {
        align-items: center;
        justify-content: center;
        margin-top: 8px;
    }

    .dashboard-card strong {
        font-size: 22px;
    }

    .dashboard-value {
        display: none;
    }

    .dashboard-label {
        min-height: 28px;
        text-align: center;
        font-size: 10px;
        line-height: 1.2;
    }

    .orcamentos-table {
        min-width: 650px;
    }

    .orcamentos-table th:nth-child(2),
    .orcamentos-table td:nth-child(2) {
        width: 145px;
    }

    .orcamentos-table th:nth-child(3),
    .orcamentos-table td:nth-child(3),
    .orcamentos-table th:nth-child(5),
    .orcamentos-table td:nth-child(5),
    .orcamentos-table th:nth-child(8),
    .orcamentos-table td:nth-child(8) {
        display: none;
    }

    .orcamentos-table th:nth-child(4),
    .orcamentos-table td:nth-child(4) {
        width: 250px;
    }

    .orcamentos-table th:nth-child(7),
    .orcamentos-table td:nth-child(7) {
        width: 96px;
    }

    .orcamentos-table th:nth-child(9),
    .orcamentos-table td:nth-child(9) {
        width: 112px;
        min-width: 112px;
    }

    .endereco-mobile {
        display: block;
        margin-top: 4px;
        color: var(--muted);
        font-size: 11px;
        line-height: 1.25;
    }

    .portal-login-card {
        padding: 26px 20px;
        border-radius: 20px;
    }

    .portal-login-brand h1 {
        font-size: 24px;
    }

    .portal-login-logo {
        width: min(235px, 72vw);
        max-height: 92px;
    }

    .portal-card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .portal-card h1 {
        font-size: 24px;
    }

    .portal-grid {
        grid-template-columns: 1fr;
    }

    .portal-option {
        min-height: 72px;
    }

    .hero-card,
    .topo,
    .topo-form,
    .hero-brand,
    .pagina-brand {
        flex-direction: column;
        align-items: flex-start;
    }

    .acoes-topo {
        justify-content: flex-start;
    }

    .filtros-card,
    .grid-form {
        grid-template-columns: 1fr;
    }

    .filtros-card,
    .filtros-card-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 14px !important;
        border-radius: 18px;
    }

    .filtros-card .campo-filtro,
    .filtros-card-grid .campo-filtro,
    .filtros-card .campo-maior,
    .filtros-card-grid .campo-maior {
        min-width: 0;
        width: 100%;
    }

    .filtros-card input,
    .filtros-card select {
        min-height: 42px;
        font-size: 13px;
    }

    .filtros-acoes {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .filtros-acoes .botao {
        width: 100%;
    }

    .login-card-aa {
        grid-template-columns: 1fr;
    }

    .login-brand-panel,
    .login-form-panel {
        padding: 24px 22px;
    }

    .login-brand-panel {
        border-right: 0;
        border-bottom: 1px solid rgba(214, 221, 235, 0.9);
    }

    .login-form-panel h2 {
        font-size: 24px;
    }
}

@media print {
    .pdf-body {
        background: #ffffff;
    }

    .pdf-wrap {
        padding: 0;
    }

    .pdf-table {
        table-layout: fixed;
    }
}
