/* =========================
   DESIGN TOKENS (VARIÁVEIS)
========================= */
:root {
    --background: 0 0% 100%;
    --card: 0 0% 100%;
    --text: 222 47% 11%;
    --ring: 220 60% 25%;
    --border: 220 13% 91%;
    --input: 220 13% 91%;
}

.dark {
    --background: 222 47% 11%;
    --card: 222 47% 15%;
    --text: 0 0% 100%;
    --border: 222 30% 25%;
    --input: 222 30% 25%;
}

/* =========================
   BASE
========================= */
body {
    background-color: hsl(var(--background));
    color: hsl(var(--text));
}

/* =========================
   CARD BASE
========================= */
.bg-card {
    background-color: hsl(var(--card));
    border-radius: 12px;
}

/* =========================
   LABEL
========================= */
.form-field-label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 600;
    color: hsl(var(--text));
}

/* =========================
   INPUT
========================= */
.input-default {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    border-width: 1px;
    color: hsl(var(--text));
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: #ebeef3b8 !important;
}

/* remove comportamento padrão */
.input-default:focus {
    outline: none;
}

/* foco moderno */
.input-default:focus-visible {
    background-color: hsl(var(--background));
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.25);
}

/* erro */
.input-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
}

/* =========================
   ANIMAÇÕES
========================= */
.card-animate {
    animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bg-success-10 {
    background-color: #22c55e1a; 
}

.border-success-30 {
    border: 1px solid #22c55e4d; 
}

.card-configEstipulante {
    width: 100%;
    max-width: 700px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: hsl(var(--card));
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.4s ease;
    transition: all 0.2s ease;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.cards-expansive {
    display: flex;
    gap: 12px;
    height: 410px;
}

.card-expansive {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.45s ease-in-out;
}

.card-expansive img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease-in-out;
}

.card-expansive:hover img {
    transform: scale(1.05);
}

.card-expansive .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.card-expansive .title {
    position: absolute;
    bottom: 16px;
    left: 16px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.cards-expansive:hover .card-expansive {
    flex: 0.8;
}

.cards-expansive .card-expansive:hover {
    flex: 2.4;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .cards-expansive {
        flex-direction: column;
        height: auto;
    }

    .card-expansive {
        height: 180px;
    }
}

/* =========================
   modal
========================= */
.modal-backdrop-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

/* CONTAINER DO MODAL */
.modal-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

/* CAIXA DO MODAL */
.modal-content-custom {
    background-color: #fff;
    width: 380px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,.5);
    border: 1px solid #ccc;
    overflow: hidden;
}

/* HEADER */
.modal-header-custom {
    padding: 12px 16px;
    position: relative;
    text-align: center;
    font-weight: bold;
}

/* BOTÃO FECHAR */
.modal-close-custom {
    position: absolute;
    right: 12px;
    top: 8px;
    font-size: 20px;
    color: #999;
    cursor: pointer;
}

.modal-close-custom:hover {
    color: #000;
}

/* BODY */
.modal-body-custom {
    padding: 16px;
}

/* FOOTER */
.modal-footer-custom {
    /*border-top: 1px solid #e5e5e5;*/
    padding: 12px;
    text-align: center;
}

/* INPUTS */
.modal-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    margin-top: 5px;
    margin-bottom: 15px;
}

/* BOTÕES */
.modal-btn {
    background-color: #0b1bb3;
    color: #fff;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
}

.modal-btn:hover {
    background-color: #08148a;
}

/* ESCONDER */
.hidden {
    display: none;
}

/* =========================
   DROPDOWN (SELECT)
========================= */
.select-default {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid hsl(var(--border));
    color: #1f2937 !important;
    font-size: 14px;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236b7280' viewBox='0 0 20 20'%3E%3Cpath d='M5.25 7.5l4.75 5 4.75-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    background-color: #ebeef3b8 !important;
}

/* efeito ao clicar */
.select-default:focus {
    outline: none;
    border-color: #4b69af;
    box-shadow: 0 0 0 3px rgba(75, 105, 175, 0.2);
    transform: scale(1.01);
}

.select-default:focus-visible {
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.25);
}

/* erro */
.select-default-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
}

.card-configEstipulante:hover {
    transform: translateY(-2px);
}

.select-defaultCoberturas {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--text));
    font-size: 14px;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236b7280' viewBox='0 0 20 20'%3E%3Cpath d='M5.25 7.5l4.75 5 4.75-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    background-color: #ebeef3b8 !important;
}

select.select-defaultCoberturas option,
.colCobertura select option {
    color: #1f2937 !important; /* Cor do texto padrão (cinza escuro/preto) */
}

select.select-defaultCoberturas option[value="PCE:"],
select.select-defaultCoberturas option[value=""],
select.select-defaultCoberturas option[value="0"] {
    color: gray !important;
}
/* =========================
  menu sup. direito 
========================= */

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background-color: #ffffff;
    color: #1f2937;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    min-width: 280px;
    z-index: 9999;
}

.dropdown-menu.show {
    display: block;
}

.layout {
    display: flex;
}

.icon-open,
.icon-close {
    width: 18px;
    height: 18px;
}

/* padrão: submenu fechado */
.menu + .submenu {
    display: none;
}

/* quando abrir */
.menu.open + .submenu {
    display: flex;
    flex-direction: column;
}

/* ícones padrão */
.icon-close {
    display: none;
}

/* quando aberto */
.menu.open .icon-open {
    display: none;
}

.menu.open .icon-close {
    display: inline-block;
}

/* =========================
  LABEL /INPUT / TEXTBOX 
========================= */

.form-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 4px;
    display: block;
}

.input {
    width: 100%;
    height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    background: #fff;
    transition: 0.2s;
}

.input:focus {
    outline: none;
    border-color: #4b69af;
    box-shadow: 0 0 0 2px rgba(75, 105, 175, 0.2);
}

/* =========================
  BOTOES
========================= */
.btn {
    height: 40px;
    padding: 0 16px;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: 0.2s;
    cursor: pointer;
}

.btn-primary {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 8px;
    background-color: #22c55e;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #13db5c;
    transform: translateY(-1px);
}

.btn-block {
    width: 130px;
    height: 46px;
    border: none;
    border-radius: 8px;
    background-color: hsl(352.25deg 5.67% 69.62% / 90%);
    font-weight: 600;
    transition: all 0.2s ease;
    pointer-events: none !important;
    opacity: 0.6;
}

/* =========================
  BOTOES MODAL
========================= */
.btn-ModalOk {
    background: #16a34a;
    color: white;
    height: 30px;
    width: 20%;
}

.btn-ModalOk:hover {
    background: #15803d;
}

.btn-ModalCancelar {
    background: #ef4444;
    color: white;
    height: 30px;
    width: 50%;
}

.btn-ModalCancelar:hover {
    background: #802215;
}

/* =========================
  area ofertas
========================= */
/*seleionada*/
.btn-contratar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    padding: 8px 16px;
    /*    margin-top: auto;*/
    border-radius: 6px;
    background-color: #07a53f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.2s;

    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M9 18l6-6-6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: calc(100% - 86px) center; /* Posiciona a seta próximo à borda direita */
    padding-right: 36px; /* Cria um espaço para o texto não encostar na seta */

}

.btn-contratarTab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    margin-top: auto;
    border-radius: 6px;
    background-color: #07a53f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.2s;
}

/* HOVER */
.btn-contratar:hover,
.btn-contratarTab:hover {
    background-color: #13db5c;
}

/* nao seleionada*/
.btn-contratar-off {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    padding: 8px 16px;
    margin-top: auto;
    border-radius: 6px;
    background-color: #eaeaea;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: not-allowed;
    transition: 0.2s;
}

.btn-contratarTab-off {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    margin-top: auto;
    border-radius: 6px;
    background-color: #eaeaea;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: not-allowed;
    transition: 0.2s;
}

/* HOVER */
.btn-contratar-off:hover,
.btn-contratarTab-off:hover {
    background-color: #a4abb8b5;
}

/* FOCO */
.btn-contratar:focus,
.btn-contratarTab:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
}

/* DESABILITADO */
.btn-contratar:disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* SVG dentro do botão */
.btn-contratar svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    pointer-events: none;
}

/* FOCO */
.btn-contratar-off:focus,
.btn-contratarTab-off:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.3);
}

/* DESABILITADO */
.btn-contratar-off:disabled,
.btn-contratarTab-off:disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* SVG dentro */
.btn-contratar-off svg,
.btn-contratarTab-off svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    pointer-events: none;
}
/*    fim ofertas*/


/* =========================
  SWITCH
========================= */

.switch {
    position: relative;
    width: 70px;
    height: 32px;
    background: #e5e7eb;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.2s;
}

.switch-text {
    position: absolute;
    right: 8px;
    top: 8px;
    font-size: 11px;
    font-weight: bold;
    color: #6b7280;
}

/* BASE */
.switch-toggle {
    position: relative;
    width: 4.5rem;
    height: 32px;
    border-radius: 999px;
    background: #e5e7eb;
    transition: 0.2s;
    flex-shrink: 0;
    cursor: pointer;
}

/* bolinha */
.switch-circle {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: 0.2s;
}

/* texto */
.switch-label {
    position: absolute;
    top: 8px;
    right: 6px;
    font-size: 11px;
    font-weight: bold;
    color: #6b7280;
    transition: 0.2s;
}

/* ===== ATIVO (SIM) ===== */
.switch-toggle.active {
    background: #22c55e;
}

.switch-toggle.active .switch-circle {
    left: 67px;
    transform: translateX(-100%);
}

.switch-toggle.active .switch-label {
    left: 6px;
    right: auto;
    color: white;
}

/* ===== ERRO ===== */
.input-error {
    border: 1px solid #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.msg-error {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 4px;
    display: block;
}

/* ===== CARD ===== */
.card {
    background: white;
    border-radius: 0.75rem;
    padding: 24px;
    border: 1px solid #e5e7eb;
}

/* ===== TÍTULO DA SEÇÃO ===== */
.section-label {
    background: #4b69af;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ========================================
   COMPONENTE: BOTÕES default navegação paginas
======================================== */
.btn-defaultClean {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 32px;
    border-radius: 6px;
    border: 1px solid #d0d6db;
    background-color: #f0f2f6;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.2s;
    border-width: 1px;
}

.btn-defaultClean:hover {
    background-color: hsla(220.98deg 67.46% 82.58% / 30%);
}

.btn-defaultClean:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(75, 105, 175, 0.3);
}

.btn-defaultClean:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.btn-defaultProximo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 40px;
    border-radius: 8px;
    background-color: hsl(140deg 50% 45% / 90%); 
    color: white;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.2s;
}

.btn-defaultProximo:hover {
    background-color: #13db5c;
}

.btn-defaultProximo:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(75, 105, 175, 0.3);
}

.btn-defaultProximo:disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ========================================
   COMPONENTE: BOTÕES status cotacao
======================================== */

    /*verde claro*/
    .btn-calculadoOk {
        display: inline-flex;
        align-items: center;
        padding: 2px 10px;
        border-radius: 9999px;
        font-size: 12px;
        font-weight: 600;
        border: 1px solid transparent;
        background-color: #56d34c;
        color: #ffffff;
        transition: 0.2s;
        cursor: default;
    }

    .btn-calculadoOk:hover {
        background-color: #5ae74e;
    }

    /*vermelho*/
    .btn-calculadoPropostaErro {
        display: inline-flex;
        align-items: center;
        padding: 2px 10px;
        border-radius: 9999px;
        font-size: 12px;
        font-weight: 600;
        border: 1px solid transparent;
        background-color: #ef4444;
        color: #ffffff;
        transition: 0.2s;
        cursor: default;
        width: 80px;
    }

    .btn-calculadoPropostaErro:hover {
            background-color: #f65944;
        }

    /*amarelo */
    .btn-calculadoMaisVeiculo {
        display: inline-flex;
        align-items: center;
        padding: 2px 10px;
        border-radius: 9999px;
        font-size: 12px;
        font-weight: 600;
        border: 1px solid transparent;
        background-color: #FFBF00;
        color: #ffffff;
        transition: 0.2s;
        cursor: default;
    }

    .btn-calculadoMaisVeiculo:hover {
        background-color: #ffd400;
    }

    /*verde escuro*/
    .btn-efetivado {
        display: inline-flex;
        align-items: center;
        padding: 2px 10px;
        border-radius: 9999px;
        font-size: 12px;
        font-weight: 600;
        border: 1px solid transparent;
        background-color: #07a53f;
        color: #ffffff;
        transition: 0.2s;
        cursor: default;
        width: 80px;
    }

    .btn-efetivado:hover {
        background-color: #13db5c;
    }

    /*amarelo*/
    .btn-erroReativadoEfetivacao {
        display: inline-flex;
        align-items: center;
        padding: 2px 10px;
        border-radius: 9999px;
        font-size: 12px;
        font-weight: 600;
        border: 1px solid transparent;
        background-color: #FFBF00;
        color: #ffffff;
        transition: 0.2s;
        cursor: default;
        width: 80px;
    }

    .btn-erroReativadoEfetivacao:hover {
        background-color: #ffd400;
    }

    /*amarelo*/
    .btn-naoExportadoNaoProposta {
        display: inline-flex;
        align-items: center;
        padding: 2px 10px;
        border-radius: 9999px;
        font-size: 12px;
        font-weight: 600;
        border: 1px solid transparent;
        background-color: #FFBF00;
        color: #ffffff;
        transition: 0.2s;
        cursor: default;
    }

    .btn-erroExportacao:hover {
        background-color: #ffd400;
    }

    /*Cinza*/
    .btn-cancelado {
        display: inline-flex;
        align-items: center;
        padding: 2px 10px;
        border-radius: 9999px;
        font-size: 12px;
        font-weight: 600;
        border: 1px solid transparent;
        background-color: #485468ff;
        color: #ffffff;
        transition: 0.2s;
        cursor: default;
    }

    .btn-cancelado:hover {
        background-color: #687487ff;
    }

/* ========================================
   COMPONENTE: tool pagamento
======================================== */

.tooltip-container {
    position: relative;
    z-index: 1;
}

.tooltip-box {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    min-width: 200px !important;
    display: none;
    font-size: 12px;
    max-width: 350px;
    white-space: normal;
    word-break: break-word;
    left: 0;
}

.tooltip-box::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.tooltip-container:hover .tooltip-box {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.tooltip-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.tooltip-item {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
}

td {
    position: relative;
    overflow: visible !important;
}

.tooltip-container:hover .tooltip-box {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-2px);
}

.tooltip-container:hover {
    z-index: 9999;
}
/* ========================================
   COMPONENTE: 
======================================== */

.spanErro {
    color: #ef4444 !important;
    font-size: .85rem;
    margin-top: 4px;
}

.space-fix > * + * {
    margin-top: 20.5rem;
}
/* ========================================
 MODAL AGENDAMENTO
======================================== */

#mdlAgendamento input[disabled],
#mdlAgendamento select[disabled],
#mdlAgendamento textarea[disabled],
#mdlAgendamento .aspNetDisabled {
    background-color: transparent;
    box-shadow: none !important;
    color: #333333 !important;
    padding-right: 0 !important;
    opacity: 1 !important;
}

.grid-inativo {
    border: 1px solid;
    cursor: not-allowed !important;
    opacity: 1;
    padding: 6px 12px !important;
    font-size: 14px;
    line-height: 1.42857143;
    color: #333333 !important;
    background: #eee !important;
}

.tabela-topo-espacamento {
    position: relative;
    padding: 15px;
}

.labelAgendamento {
    background: transparent;
    border: 0;
    width: 80%;
    border-bottom: 1px solid gray;
    font-size: 16px;
}

.headerAgendamento {
    background-color: #0000AE !important;
    color: #fff;
    font-size: 18px;
    border-radius: 8px
}
 
.modalAgendamento-body {
    width: 95%;
    max-width: 1400px;
    min-height: 90vh;
    background: #fff;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 15px rgba(0,0,0,.2), 0 4px 6px rgba(0,0,0,.1);
    background: white;
    border-radius: 8px;
}

.modalAgendamento {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.4);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding-top: 24px;
    padding: 6px 12px;
}

.botaoModal {
    color: white;
    background-color: #0000AE;
    padding: 6px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.botaoModal:hover {
    background-color: #3f3ff0;
    border-color: #121b71;
}

/* ========================================
 FIM MODAL AGENDAMENTO
======================================== */

/* ========================================
  MODAL VEICULO
======================================== */

.modalVeiculo {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .4);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding-top: 24px;
    padding: 6px 12px;
}

.modalVeiculo-body {
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 15px rgba(0,0,0,.2), 0 4px 6px rgba(0,0,0,.1);
    background: white;
    border-radius: 8px;
    max-width: 60%;
}

/* ========================================
  MODAL defaul - custon
======================================== */

/*deixa modal nobr topo*/
.modal-topoDefault {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .4);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding-top: 24px;
    padding: 6px 12px; /* opcional */
}

.modal-bodyDefault {
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 15px rgba(0,0,0,.2), 0 4px 6px rgba(0,0,0,.1);
    background: white;
    border-radius: 8px;
    max-width: 60%;
}

.modal-container {
    width: 95%;
    max-width: 650px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.20);
}

.modal-header-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title-custom {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6b7280;
}

.modal-close-btn:hover {
    color: #111827;
}

.modal-body-custom {
    padding: 22px;
}

.modal-footer-custom {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 18px 22px;
    border-top: 1px solid #e5e7eb;
}

.label-form {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
}

.input-form {
    width: 100%;
    height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0 12px;
    outline: none;
    transition: 0.2s;
}

.input-form:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}

.textarea-form {
    min-height: 110px;
    padding-top: 10px;
    resize: none;
}

.btn-primary-custom {
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary-custom:hover {
    background: #1d4ed8;
}

.btn-secondary-custom {
    background: #e5e7eb;
    color: #111827;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-secondary-custom:hover {
    background: #d1d5db;
}

.text-warning-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #b45309;
}

select.input-form {
    height: 42px;
    background: #fff;
}

.modal-body .form-control {
    border-radius: 4px;
}

.modal-footer {
    padding: 15px;
    text-align: center;
}

.mb-3 {
    margin-bottom: 15px;
}

/* ========================================
  Botão 
======================================== */

.botaoAzul {
    color: white;
    background-color: #00388c; /*#292972;*/
    padding: 6px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .botaoAzul:hover {
        background-color: #0a50b9;
        border-color: #121b71;
    }

.linkPagto {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1919df;
}

.linkPagto:hover {
    cursor: pointer;
    color: #4b69af;
}

.btn-consulta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    height: 2.5rem;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
    background-color: hsl(220 60% 25%);
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background-color 150ms ease-in-out, opacity 150ms ease-in-out;
}

.btn-consulta:hover {
    background-color: hsl(220 60% 32%);
}

.btn-consulta:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.btn-consulta:focus-visible {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #0f172a;
}

.btn-consulta svg {
    pointer-events: none;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.tabelaCoberturas {
    display: inline-block;
    width: 110px;
    text-align: left;
}

/* ========================================
  TABELA DE COBERTURAS
======================================== */

.topoCoberturas {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.75rem; 
    align-items: center; 
    padding: 0.75rem; 
    border-radius: 0.5rem;
    border: 1px solid var(--border, #e5e7eb); 
    background-color: var(--background, #ffffff); 
}

/* Responsivo para telas médias (md: >= 768px) */
@media (min-width: 768px) {
    .topoCoberturas {
        grid-template-columns: repeat(12, minmax(0, 1fr)); 
        gap: 1rem;
    }

 /* ========================================
  alinhamento colunas DE COBERTURAS coluna topo
======================================== */

    /* Equivale a col-span-4 */
    .col-span-4 {
        grid-column: span 4 / span 4;
    }

    /* Equivale a col-span-5 */
    .col-span-5 {
        grid-column: span 5 / span 5;
    }

    /* Equivale a col-span-3 */
    .col-span-3 {
        grid-column: span 3 / span 3;
    }

    /* Equivale a text-right */
    .text-right {
        text-align: right;
    }
}

/* Espaçamento entre cartões (space-y-2) */
.space-y-2 > * + * {
    margin-top: 0.5rem;
}

/* ==========================================
   1. DIV PRINCIPAL (CARD CONTAINER)
   ========================================== */
.divPrincipalCob {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.75rem; 
    align-items: center;
    padding: 0.75rem 1rem; 
    border-radius: 0.5rem; 
    border: 1px solid #e5e7eb; /* Borda cinza suave */
    background-color: #f9fafb; /* Fundo cinza bem claro igual à imagem */
    display: grid;
    align-items: start;
}

@media (min-width: 768px) {
    .divPrincipalCob {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 1rem; /* 16px */
    }
}

/* ==========================================
   2. ELEMENTOS INTERNOS
   ========================================== */
/* DIV 1 - Texto (Descrição) */
.colDescCobertura-texto {
    font-size: 0.8rem; 
    line-height: 1.25rem; 
    font-weight: 500; 
    color: #1f2937; /* Cinza escuro */
}

/* Força a cor cinza quando a classe text-muted-foreground for adicionada */
.colDescCobertura-texto.text-muted-foreground {
    color: #9ca3af !important; /* Cor cinza/desabilitado */
}

.colDescCobertura-texto {
    font-size: 0.875rem; 
    color: #1f2937; 
}

/* DIV 2 - Estilo do Select (Limite máximo) */
.colCobertura {
    width: 100%;
}

/* DIV 3 - Valor Franquia */
.colFraquiaCobertura {
    font-size: 0.875rem; 
    color: #6b7280; 
}

/* ==========================================
   3. COLUNAS NO DESKTOP (>= 768px)
   ========================================== */
@media (min-width: 768px) {
    .colDescCobertura {
        grid-column: span 4 / span 4;
    }

    .colCobertura {
        grid-column: span 5 / span 5;
    }

    .colFraquiaCobertura {
        grid-column: span 3 / span 3;
        text-align: right;
    }
}
