:root {
    --sg-primary: #2852A3;
    --sg-primary-mid: #22488a;
    --sg-primary-dark: #132c4f;
    --sg-primary-titles: #17305c;
    --sg-sidebar-start: #052767;
    --sg-sidebar-end: #0a4fb3;
    --sg-success: #198754;
    --sg-danger: #dc3545;
    --sg-radius-md: 10px;
    --sg-radius-lg: 20px;
    --sg-radius-pill: 50px;
    --sg-transition: 0.3s ease;
    --sg-background: #f7f8fc;

    /* Paleta padrão para gráficos */
    --chart-1: #2563eb; /* azul        */
    --chart-2: #b31b1b; /* vermelho    */
    --chart-3: #f59e0b; /* âmbar       */
    --chart-4: #64748b; /* ardósia     */
    --chart-5: #059669; /* esmeralda   */
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}



h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: none;
}

.invalid {
    outline: none;
}

.form-control.valid, .form-control.invalid,
.form-select.valid, .form-select.invalid {
    background-image: none;
    padding-right: 0.75rem;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sg-primary-dark);
}

/* Layout de páginas — reutilizável em CadastroLayout e ListarLayout */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 0.7rem;
    padding-top: 0.8rem;
}

.page-subtitle {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0.15rem 0 0;
}

.page-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.page-search {
    width: 280px;
}

.page-search .input-group-text {
    border-right: none;
    border-radius: var(--sg-radius-md) 0 0 var(--sg-radius-md);
}

.page-search .form-control {
    border-left: none;
    border-radius: 0 var(--sg-radius-md) var(--sg-radius-md) 0;
}

.page-search .form-control:focus {
    border-color: #dee2e6;
    box-shadow: none;
}

.page-toolbar .btn {
    border-radius: var(--sg-radius-md);
    padding-left: 1.1rem;
    padding-right: 1.1rem;
}

.btn-filter {
    background: #fff;
    border: 1px solid #dee2e6;
    color: #6c757d;
    padding: 0.375rem 0.65rem;
}

.btn-filter:hover {
    background: #f0f2f5;
    color: #495057;
}

.btn-filter.active {
    color: var(--sg-primary);
    border-color: var(--sg-primary);
}

/* Dropdown de filtro */
.filter-wrapper {
    position: relative;
}

.filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
}

.filter-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: var(--sg-radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.25rem;
    min-width: 240px;
    z-index: 1000;
}

.filter-group {
    margin-bottom: 0.875rem;
}

.filter-group:last-of-type {
    margin-bottom: 0;
}

.filter-group-title {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.875rem;
    padding-top: 0.75rem;
    border-top: 1px solid #dee2e6;
}

.page-body {
    padding: 0 0 0 0;
}

.page-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0 0px 0;
}

/* Label de tipo acima do nome do objeto em edição */
.cadastro-tipo-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
    margin-bottom: 0.1rem;
}

/* Cores de ícone usando paleta do sistema */
.sg-icon-primary { color: var(--sg-primary); }
.sg-icon-secondary { color: var(--sg-primary-mid); }
.sg-icon-success { color: var(--sg-success); }
.sg-icon-danger { color: var(--sg-danger); }

/* Cards de resumo */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: var(--sg-radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.summary-card-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.summary-card-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.2rem;
}

.summary-card-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sg-primary-dark);
    line-height: 1;
}

.summary-card-clickable {
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}
    .summary-card-clickable:hover {
        border-color: var(--sg-primary);
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
}


.status-ativo {
    color: #198754;
    background-color: #d1e7dd;
}

.status-inativo {
    color: #dc3545;
    background-color: #f8d7da;
}

.status-pendente {
    color: #856404;
    background-color: #fff3cd;
}

/* Listra de status vertical na tabela */
.status-stripe {
    width: 4px;
    padding: 0 !important;
}

.stripe-ativo    { background-color: #37ad51 !important; }
.stripe-inativo  { background-color: #db4e35 !important; }
.stripe-pendente { background-color: #f7cd4a !important; }

tbody tr:last-child .status-stripe {
    border-bottom-left-radius: var(--sg-radius-md);
}

/* Dropdown de status inline na tabela */
.status-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.status-badge {
    cursor: pointer;
    border: none;
    user-select: none;
}

.status-dropdown {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: var(--sg-radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 0.4rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: max-content;
}

.status-dropdown-item {
    border: none;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: filter var(--sg-transition);
}

.status-dropdown-item:hover {
    filter: brightness(0.92);
}

/* Paginação */
.page-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.pagination-info {
    font-size: 0.78rem;
    color: #6c757d;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.page-btn {
    width: 32px;
    height: 32px;
    border: 1px solid transparent;
    background: none;
    border-radius: var(--sg-radius-md);
    font-size: 0.875rem;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--sg-transition);
    padding: 0;
    line-height: 1;
}

.page-btn:hover:not(:disabled):not(.active) {
    background: #f0f2f5;
}

.page-btn.active {
    background-color: var(--sg-primary);
    color: #fff;
    font-weight: 600;
}

.page-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.page-ellipsis {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.875rem;
}

/* Tabela de listagem */
.list-table thead tr {
    background: #f9fafb;
}

.list-table th {
    font-size: 0.78rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb !important;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    white-space: normal;
}

.list-table td {
    font-size: 0.875rem;
    vertical-align: middle;
    color: #374151;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    white-space: normal;
}

    .list-table td:hover {
        cursor: pointer;
    }

.list-table tbody tr {
    cursor: pointer;
}

.list-table tbody tr:hover {
    background-color: #f5f7ff;
}

/* Seções de formulário — reutilizável em páginas de cadastro */
.form-section {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: var(--sg-radius-md);
    margin-bottom: 1.25rem;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--sg-primary-dark);
}

.form-section-header i {
    color: var(--sg-primary);
    font-size: 1rem;
}

.form-section-body {
    padding: 1.25rem;
}

h5 {
    color: var(--sg-primary-titles) !important;
}

h4 {
    color: var(--sg-primary-titles) !important;
}

h3 {
    color: var(--sg-primary-titles) !important;
}

/* SelectInput — custom select sem nativo */
.custom-select-wrapper {
    position: relative;
}

.custom-select-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.custom-select-btn:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
    outline: 0;
}

.custom-select-placeholder span {
    color: #6c757d;
}

.custom-select-chevron {
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
    color: #6c757d;
}

.custom-select-chevron.rotated {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: var(--sg-radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 220px;
    overflow-y: auto;
    padding: 0.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.custom-select-item {
    background: none;
    border: none;
    text-align: left;
    padding: 0.45rem 0.75rem;
    border-radius: calc(var(--sg-radius-md) - 2px);
    font-size: 0.875rem;
    color: #212529;
    cursor: pointer;
    transition: background var(--sg-transition);
}

.custom-select-item:hover {
    background: #f0f2f5;
}

.custom-select-item.active {
    background: #e8edf8;
    color: var(--sg-primary);
    font-weight: 500;
}

/* SearchSelectInput */
.search-select-wrapper {
    position: relative;
}

.search-select-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-select-input-wrapper .form-control {
    width: 100%;
}

.search-select-input-wrapper .form-control.search-select-has-clear {
    padding-right: 2rem;
}

.search-select-clear {
    position: absolute;
    right: 0.4rem;
    background: none;
    border: none;
    padding: 0 0.2rem;
    color: #6c757d;
    cursor: pointer;
    line-height: 1;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.search-select-clear:hover {
    color: #212529;
}

.search-select-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: var(--sg-radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 220px;
    overflow-y: auto;
    padding: 0.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.search-select-dropdown--up {
    top: auto;
    bottom: calc(100% + 2px);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
}

.search-select-item {
    background: none;
    border: none;
    text-align: left;
    padding: 0.45rem 0.75rem;
    border-radius: calc(var(--sg-radius-md) - 2px);
    font-size: 0.875rem;
    color: #212529;
    cursor: pointer;
    transition: background var(--sg-transition);
}

.search-select-item:hover {
    background: #f0f2f5;
}

.search-select-vazio {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #6c757d;
}

/* ── ssm shared styles (EmailListInput + SearchSelectMultiInput) ── */
.ssm-div {
    margin-bottom: 0.7rem;
}

.ssm-row {
    display: flex;
    gap: 0.4rem;
    align-items: flex-start;
}

.ssm-input-wrapper {
    flex: 1;
    min-width: 0;
}

.ssm-add-btn {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--sg-primary);
    color: #fff;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color var(--sg-transition);
    padding: 0;
}

.ssm-add-btn:hover:not(:disabled) {
    background-color: var(--sg-primary-mid);
}

.ssm-add-btn:disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
}

.ssm-erro {
    font-size: 0.82rem;
    color: var(--bs-danger, #dc3545);
    margin-top: 0.25rem;
}

.ssm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.ssm-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.5rem 0.25rem 0.65rem;
    background-color: #e8edf8;
    color: var(--sg-primary-dark);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.ssm-tag-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    background: none;
    color: var(--sg-primary);
    border-radius: 50%;
    font-size: 0.85rem;
    cursor: pointer;
    line-height: 1;
    transition: background-color var(--sg-transition), color var(--sg-transition);
}

.ssm-tag-remove:hover {
    background-color: var(--sg-primary);
    color: #fff;
}

/* Divisor decorativo (sidebar e páginas de autenticação) */
.menu-divider {
    height: 2px;
    width: 75%;
    background: linear-gradient(90deg, transparent, rgba(0, 140, 255, 0.6), transparent);
    margin: 10px auto;
}

/* Botão de voltar nas páginas de autenticação */
.back-button {
    position: absolute;
    top: 25px;
    left: 25px;
    font-size: 35px;
    cursor: pointer;
    color: var(--sg-primary);
    font-weight: bold;
    transition: var(--sg-transition);
    text-decoration: none;
}

    .back-button:hover {
        transform: translateX(-3px);
        text-decoration: none;
    }

/* Modal de confirmação — usa <dialog> nativo para garantir renderização no top layer */
.confirmacao-dialog {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    padding: 1.5rem;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.confirmacao-dialog::backdrop {
    background: rgba(0, 0, 0, 0.45);
}

.confirmacao-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.confirmacao-icon {
    font-size: 1.25rem;
    color: var(--sg-primary);
}

.confirmacao-titulo {
    font-size: 1rem;
    font-weight: 600;
    color: var(--sg-dark, #1a1a2e);
}

.confirmacao-body {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.confirmacao-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Modal de aviso / erro */
.aviso-dialog {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    padding: 1.5rem;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.aviso-dialog::backdrop {
    background: rgba(0, 0, 0, 0.45);
}

.aviso-icon {
    font-size: 1.25rem;
}

.aviso-icon--aviso { color: #f59e0b; }
.aviso-icon--erro  { color: #ef4444; }

/* Modal de sucesso */
.sucesso-dialog {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    padding: 1.5rem;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sucesso-dialog::backdrop {
    background: rgba(0, 0, 0, 0.45);
}

.sucesso-icon {
    font-size: 1.25rem;
    color: #22c55e;
}

/* Modal de pagamento de técnico */
.pagamento-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1055;
    animation: sgFadeIn 0.15s ease;
}

.pagamento-dialog {
    background: #fff;
    border: none;
    border-radius: var(--sg-radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    max-width: 480px;
    width: 90%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: sgSlideUp 0.2s ease;
}

.pagamento-dialog-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--sg-sidebar-start), var(--sg-sidebar-end));
}

.pagamento-dialog-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    flex-shrink: 0;
}

.pagamento-dialog-titulo {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.pagamento-dialog-subtitulo {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 0.1rem;
}

.pagamento-dialog-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
}

.pagamento-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
    background: var(--sg-background);
    border-radius: var(--sg-radius-md);
    padding: 1rem 1.25rem;
    border: 1px solid #e8ecf2;
}

.pagamento-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pagamento-info-label {
    font-size: 0.68rem;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pagamento-info-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--sg-primary-dark);
}

.pagamento-valor-destaque {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sg-success);
}

.pagamento-campo-empresa {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pagamento-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #f0f2f5;
    background: #fafbfc;
}

.pagamento-btn-pix {
    background-color: var(--sg-primary);
    color: #fff;
    border: none;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    border-radius: var(--sg-radius-md);
}

.pagamento-btn-pix:hover:not(:disabled) {
    background-color: var(--sg-primary-mid);
    color: #fff;
}

.pagamento-btn-pix:disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
}

@keyframes sgFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes sgSlideUp {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Mapa de Localização */
#sgtrack-loc-map {
    width: 100%;
    height: 600px;
}

/* ═══════════════════════════════════════════════════════
   Relatório — estilos reutilizáveis entre páginas de
   relatório/rastreamento (filtros, abas, chips, botões)
   ═══════════════════════════════════════════════════════ */

/* ── Barra de filtros ────────────────────────────────── */

.filtro-campo {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.filtro-campo-label,
.filtro-campo .form-label {
    font-size: 0.72rem;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
    margin-bottom: 0.18rem;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator { display: none; }
input[type="datetime-local"] { appearance: none; -webkit-appearance: none; }

.filtro-campo-input {
    height: calc(2.25rem + 2px);
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #374151;
    background: white;
    outline: none;
    transition: border-color 0.15s;
}

    .filtro-campo-input:focus {
        border-color: var(--sg-primary, #2852A3);
        box-shadow: 0 0 0 2px rgba(40,82,163,0.12);
    }

.btn-selecionar-veiculo {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: calc(2.25rem + 2px);
    padding: 0 0.85rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
    color: #374151;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

    .btn-selecionar-veiculo:hover {
        border-color: var(--sg-primary, #2852A3);
        color: var(--sg-primary, #2852A3);
    }


.btn-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: calc(1.5em + 0.5rem + 2px);
    border: none;
    border-radius: 6px;
    background: #dc2626;
    color: white;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background 0.15s;
}

    .btn-pdf:hover {
        background: #b91c1c;
    }

/* ── Abas ────────────────────────────────────────────── */

.relatorio-abas {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1rem;
}

.relatorio-aba {
    padding: 0.5rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

    .relatorio-aba:hover {
        color: var(--sg-primary, #2852A3);
    }

    .relatorio-aba.ativa {
        color: var(--sg-primary, #2852A3);
        border-bottom-color: var(--sg-primary, #2852A3);
        font-weight: 600;
    }

/* ── Chips de veículos selecionados ──────────────────── */

.veiculos-selecionados {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
    font-size: 0.875rem;
    color: #374151;
}

.veiculo-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.65rem;
    background: #eff3fb;
    border: 1px solid #c7d7f0;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--sg-primary, #2852A3);
}

/* ── Badge ignição ON/OFF (global) ───────────────── */
.traj-ignicao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
}

.traj-ignicao.on  { background: #22c55e; }
.traj-ignicao.off { background: #ef4444; }

/* ── Campos levemente compactos — todas as páginas exceto login ─── */
/* Seletor "main" está presente apenas no MainLayout                 */

main .form-label {
    font-size: 0.825rem;
    margin-bottom: 0.2rem;
}

main .form-control,
main .form-select {
    font-size: 0.925rem;
    padding: 0.32rem 0.68rem;
    min-height: unset;
}

main textarea.form-control {
    padding: 0.34rem 0.68rem;
}

main .input-group-text {
    font-size: 0.925rem;
    padding: 0.32rem 0.68rem;
}

main .custom-select-btn {
    font-size: 0.925rem;
    padding: 0.32rem 0.68rem;
    line-height: 1.5;
}

main .search-select-wrapper input.form-control {
    font-size: 0.925rem;
    padding: 0.32rem 0.68rem;
}

main .form-check-label {
    font-size: 0.925rem;
}

/* ── Botões compactos — mesma altura/fonte dos campos ─── */

main .btn {
    font-size: 0.925rem;
    padding: 0.32rem 0.8rem;
}

main .btn-sm {
    font-size: 0.855rem;
    padding: 0.22rem 0.6rem;
}

main .btn-filter {
    font-size: 0.925rem;
    padding: 0.32rem 0.65rem;
}


main .sg-btn {
    font-size: 0.925rem;
    padding: 0.32rem 0.8rem;
}
