﻿@charset "utf-8";
/* CSS Document */
:root {
    --primary: #5646fb;
    --secondary: #7b88fb;
    --primary-soft: #e3e1f8;
    --primary-hover: #6900ff;
    --bg-soft: #e3e1f8;
    --bg-light: rgba(227,225,248,.5);
    --bg: #ffffff;
    --text-main: #585c82;
    --text-muted: #abadc0;
    --border-soft: #e3e1f8;
    --border-second: #7b88fb;
    --radius-lg: 64px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

html, body, form {
    height: 100%;
}

body {
    min-height: 100vh;
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background: linear-gradient(0deg,rgba(255, 255, 255, 1) 0%, rgba(227, 225, 248, 1) 50%);
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}

a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-hover);
}

.btn-check:checked + .btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check) + .btn:active {
    color: var(--primary-hover);
    background-color: var(--bg);
    border-color: var(--primary-hove);
}

i.bi {
    color: var(--secondary);
}

.close i.bi {
    color: var(--primary);
}

.close:hover i.bi {
    color: var(--primary-hover);
}

.tooltip-simulacao {
    --bs-tooltip-bg: #ffffff;
    --bs-tooltip-color: var(--text-main);
    --bs-tooltip-max-width: 300px;
}

.tooltip-simulacao .tooltip-inner {
    border-radius: var(--radius-md) !important;
    text-align: left !important;
    padding: 1rem !important;
    border: 1px solid var(--border-soft);
    box-shadow: 0 2px 8px rgba(137, 155, 211, 0.7);
    font-size: 0.9rem;
}

.tooltip-card {
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-soft);
    padding: 16px 18px;
    background: #ffffff;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.tooltip {
    pointer-events: auto;
}

.app-wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: url("Images/bg-simulador.jpg") no-repeat fixed center top;
    background-size: cover;
}

main {
    position: relative;
    flex: 1; /* pushes footer to the bottom */
}

.app-header {
    background-color: rgba(255,255,255,0.80);
    padding-bottom: 8px;
    padding-top: 32px;
    margin-bottom: 24px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.brand-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding-bottom: 16px;
}
.brand-logos .brand-main {
    height: 120px;
    overflow: hidden;
    width: 100%;
    text-align: center;
    margin-right: -151px;
}
.brand-logos .brand-main img {
    height: 100%;
    width: auto;
}

.brand-logos .brand-secondary {
    margin-left: auto;
    width: fit-content;
}
.brand-logos .brand-secondary img {
    height: 32px;
    width: auto;
    display: block;
}


.divider {
    width: 100%;
    height: 2px;
    background-color: var(--border-soft);
    border: 0;
    opacity: 1;
}


.app-title {
    margin-top: 16px;
    font-size: 2rem;
    text-align: center;
    color: var(--primary);
    font-weight: 300;
}

.app-title b {
    font-weight: 400;
}

.app-title span {
    color: var(--text-main);
}

.page-card,
.page-layer {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 18px 40px rgba(62, 73, 197, 0.08);
    backdrop-filter: blur(10px);
}

.page-layer {
    padding: 1rem .5rem;
}

.page-layer .inside {
    padding-left: 1rem;
    padding-right: 1rem;
}

a.page-card {
    color: white;
    background: -webkit-linear-gradient(bottom left, rgba(138, 127, 249, 1) 0%, rgba(93, 79, 250, 1) 100%);
    background: -o-linear-gradient(bottom left, rgba(138, 127, 249, 1) 0%, rgba(93, 79, 250, 1) 100%);
    background: linear-gradient(to top right, rgba(138, 127, 249, 1) 0%, rgba(93, 79, 250, 1) 100%);
    padding-left: 2rem;
    padding-right: 2rem;
    margin-bottom: 2rem;
}

a.page-card .icon-btn {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-soft);
    color: white;
    padding: 1rem;
    min-width: 116px;
    aspect-ratio: 1/1;
    margin: 1rem auto;
}

a.page-card .icon-btn img {
    filter: invert(100%) sepia(0%) saturate(7432%) hue-rotate(165deg) brightness(122%) contrast(114%);
}

a.page-card:hover {
    border: 1px solid var(--primary-hover);
}

a.page-card:hover .icon-btn {
    background-color: var(--primary-hover);
    box-shadow: 0 1px 20px rgba(105, 0, 255, 0.8);
}

a.page-card:hover h2,
a.page-card.btn:hover {
    color: white;
}

a.page-card h2 {
    padding-bottom: .5rem;
    padding-top: .5rem;
    text-align: center;
}

a.page-card h2.h1 {
    font-weight: 200;
}

.equal-buttons .col-md-6 {
    display: flex;
}

.equal-buttons .btn.page-card {
    display: flex;
    flex-direction: column;
    flex: 1; /* Makes both buttons match height */
    text-align: left; /* Optional */
}

.footer-note {
    font-size: 0.78rem;
    color: var(--text-main);
    text-align: center;
    margin-top: auto;
    padding: 20px 0;
}

.link-list {
    text-align: center;
}

.link-list a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.link-list a:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

.btn-primary-soft {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 1rem;
    max-width: 300px;
}

.btn-primary-soft:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
}

.btn-ghost-soft {
    background: var(--primary-soft);
    border-color: var(--border-second);
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 0.04em;
    font-size: 1rem;
    max-width: 300px;
}

.btn-ghost-soft:hover {
    background: var(--primary-soft);
    color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border-color: var(--border-soft);
    padding-inline: 18px;
    min-height: 32px;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.15rem rgba(77, 96, 251, 0.18);
}

input[type="text"][readonly]:focus,
input[type="number"][readonly]:focus {
    box-shadow: none !important;
}

.chip-toggle-group .btn {
    border-radius: 999px;
    text-transform: none;
    font-size: 0.9rem;
    padding: 0.4rem 0.9rem;
}

.chip-toggle-group .btn-outline-primary {
    border-color: var(--border-soft);
    color: var(--text-main);
    background: #fff;
}

.chip-toggle-group .btn-outline-primary.active,
.chip-toggle-group .btn-outline-primary:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
}

.section-label {
    font-size: 1.25rem;
    color: var(--text-main);
    text-align: center;
    font-weight: 500;
}

.hint-text {
    font-size: 1rem;
    color: white;
    text-align: left;
    margin-top: 1rem;
}

.page {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
}

.tax-table-head {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.tax-row-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.tax-row-label .info-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--primary);
    background: #fff;
}

.small-input {
    max-width: 120px;
    margin-left: auto;
}

.result-total-box {
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 16px 18px;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    min-width: 220px;
}

.result-total-box span:first-child {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.9;
}

.result-total-box span:last-child {
    font-size: 1.4rem;
    font-weight: 700;
}

.table-simulated th {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-soft) !important;
}

.table-simulated td {
    font-size: 0.88rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.badge-soft {
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.78rem;
    padding: 0.3rem 0.7rem;
    font-weight: 500;
}

button.close {
    padding: 0;
    border: 0;
    width: 24px;
    height: 24px;
    color: var(--primary);
    background-color: transparent;
}

button.close i,
i.bi-question-circle {
    font-size: 24px;
    line-height: 24px;
    height: 24px;
}

button.close:hover {
    color: var(--primary-hover);
}

.input-group-text {
    color: var(--secondary);
    border-color: var(--secondary);
    font-size: 1.5rem;
}

.form-control, .form-select {
    border-color: var(--secondary);
}

input::placeholder {
    color: var(--text-muted) !important;
}

.option-label {
    color: var(--text-main);
}

.switch-label {
    color: var(--text-main);
}

.switch-content {
    background-color: var(--bg-light);
    width: fit-content;
    border-radius: var(--radius-md);
    color: var(--primary);
    padding: 3px .5rem;
}

.form-check {
    background-color: var(--bg-light);
    padding: 3px 15px 3px 33px;
    border-radius: var(--radius-md);
    color: var(--primary);
    margin: 0;
}

.form-check:hover {
    color: var(--primary-hover);
}

.form-check-input {
    border: 2px solid var(--secondary);
    background-color: transparent;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:hover {
    border-color: var(--primary-hover);
}

.form-check-label,
.switch-label {
    color: var(--primary);
    font-size: 0.9rem;
    padding-left: .25rem;
    padding-right: .25rem;
}

.form-switch {
    padding-left: .5em;
    padding-right: .5rem;
}

.form-switch .form-check-input {
    width: 2.2em;
    height: 1.1em;
    margin-left: 0;
    border: 2px solid var(--secondary);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3ccircle cx='8' cy='8' r='5' fill='%237b88fb'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3ccircle cx='8' cy='8' r='5' fill='%23ffffff'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:hover {
    border-color: var(--primary-hover);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3ccircle cx='8' cy='8' r='5' fill='%236900ff'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:checked:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3ccircle cx='8' cy='8' r='5' fill='%23ffffff'/%3e%3c/svg%3e");
}
/* Accordion */
.accordion-btn-clean {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 0 1rem 0 !important;
}

.accordion-btn-clean::after {
    display: none !important; /* remove seta default */
}

.accordion-collapse {
    border-top: 2px solid var(--border-soft);
}

.collapsed.accordion-btn-clean {
    padding-bottom: 0 !important;
}

.accordion-item {
    color: var(--text-main);
    background-color: transparent;
    border: 0;
}

.acc-title {
    font-weight: 400;
    color: var(--secondary);
    font-size: 1.35rem;
}

.acc-arrow {
    color: #4D60FB;
    transition: transform .2s ease;
}

.accordion-button:not(.collapsed) .acc-arrow {
    transform: rotate(180deg);
}

.tax-grid {
    display: grid;
    grid-template-columns: 1fr 110px 110px 110px;
    align-items: center;
}

.tax-grid-head {
    padding: .5rem 0;
    border-bottom: 2px solid var(--border-soft);
    gap: .5rem;
}

.tax-grid-row {
    padding: .5rem 0;
    border-bottom: 2px solid var(--border-soft);
    gap: .5rem;
}

.tax-grid-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.tax-cell {
    font-size: .9rem;
    line-height: 1rem;
}

.tax-area-title {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-main);
}

.tax-row-label {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    color: rgba(34,43,69,.75);
    line-height: 1.5em;
}

.tax-row-label span {
    font-size: 1.125rem;
}

.pill-input {
    border-radius: 999px !important;
    background: var(--bg-light) !important;
    border: 0 !important;
    text-align: center;
    height: 32px;
    font-weight: 500;
    color: var(--primary);
    padding: 2px 0 2px 10px;
}

.pill-input:focus:not([readonly]) {
    box-shadow: 0 0 0 .15rem var(--border-second) !important;
    border-color: var(--border-second) !important;
}

.tax-grid-row .tax-cell:last-child .pill-input {
    background: var(--bg-soft) !important;
}
.obg-grid {
    display: grid;
    grid-template-columns: 1fr 110px; /* label grande + input à direita */
    align-items: center;
}

.obg-grid-row {
    padding: .5rem 0;
    border-bottom: 2px solid var(--border-soft);
    gap: .5rem;
}

.obg-grid-row:last-child {
    border-bottom: 0;
}

.obg-cell {
    font-size: .9rem;
    line-height: 1rem;
}

.obg-cell-input {
    display: flex;
    justify-content: flex-end;
}

/* Responsive: stack on small screens */
@media (max-width: 767.98px) {
    .tax-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tax-grid-head .tax-cell:not(.tax-area-title) {
        display: none;
    }
}

@media (min-width: 992px) {
    .app-wrapper {
        padding-inline: 60px;
    }
}

@media (max-width: 767.98px) {

    .tax-grid {
        grid-template-columns: 1fr;
        row-gap: 12px;
    }

    .tax-grid-head {
        display: none;
    }

    /* Só as cells que têm input viram "label à esquerda + input à direita" */
    .tax-grid-row .tax-cell[data-label]{
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 0;
    }

    .tax-grid-row .tax-cell[data-label]::before {
        content: attr(data-label);
        font-size: 0.85rem;
        color: rgba(34,43,69,.65);
        line-height: 1.2;
        flex: 1;
    }

    .tax-grid-row .tax-cell[data-label] .pill-input {
        width: 120px;
        flex: 0 0 auto;
    }

    .tax-grid-row.switch-lot {
        grid-template-columns: auto;
    }
    .tax-grid-row.switch-lot .tax-cell[data-label]::before {
        content: '';
        font-size: 0.85rem;
        color: rgba(34,43,69,.65);
        line-height: 1.2;
        flex: 1;
    }
    
}

.modal-loading {
    display: none;
    position: fixed;
    z-index: 10000000;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba( 255, 255, 255, .8 ) url('../assets/images/loading.gif') 50% 50% no-repeat;
}

/* When the body has the loading class, we turn
           the scrollbar off with overflow:hidden */
body.loading {
    overflow: hidden;
}

/* Anytime the body has the loading class, our
modal element will be visible */
body.loading .modal-loading {
    display: block;
}

.bg-layer {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: none;
    z-index: 900;
}
.nav-wrapper {
    /*padding-left: 50px;*/
}

.error-message {
    font-size: 1rem;
    background-color: white;
    border-radius: var(--radius-md);
    padding: .5rem 1rem;
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
    gap: 5px;
    -webkit-align-items: inherit;
    align-items: inherit;
    -webkit-justify-content: inherit;
    justify-content: inherit;
}

.error-message .error-message-icon{
    width:24px;
}
.error-message .error-message-text {
    display: flex;
    align-items: end;
}
