.orcamentos-module,
.orcamentos-module * {
    box-sizing: border-box;
}

.orcamentos-module {
    --orc-green: #23d77b;
    --orc-green-soft: rgba(35, 215, 123, 0.1);
    --orc-panel: #0d141e;
    --orc-panel-soft: #111923;
    --orc-line: rgba(148, 163, 184, 0.16);
    --orc-muted: #8fa0b5;
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
    padding-bottom: 28px;
}

.orcamentos-module .orc-page-header {
    display: block !important;
    margin-bottom: 18px !important;
}

.orcamentos-module .orc-page-header > h1 {
    margin: 0 0 14px !important;
    color: #f8fafc;
    font-size: clamp(22px, 2.1vw, 30px) !important;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.orcamentos-module .orc-action-center {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--orc-line);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012));
}

.orcamentos-module .btn-modern-outline,
.orcamentos-module .btn-modern-primary,
.orcamentos-module .btn-modern-success,
.orcamentos-module .btn-success {
    min-height: 40px;
    height: 40px !important;
    padding: 0 14px !important;
    border-radius: 9px !important;
    font-size: 12px !important;
    line-height: 1;
    white-space: nowrap;
}

.orcamentos-module .orc-action-center > button {
    flex: 1 1 145px;
}

.orcamentos-module .orc-action-center > button:last-of-type {
    border-color: rgba(35, 215, 123, 0.34) !important;
}

.orcamentos-module .orc-supplier-destinations {
    display: grid !important;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
    align-items: center !important;
    gap: 10px 16px !important;
    flex: 1 0 100%;
    width: 100%;
    margin-top: 3px;
    padding-top: 11px;
    border-top: 1px solid var(--orc-line);
}

.orcamentos-module .orc-supplier-checks,
.orcamentos-module .orc-supplier-send {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0;
}

.orcamentos-module .orc-supplier-checks label {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    color: #a9b7c8 !important;
    font-size: 11px !important;
    white-space: nowrap;
}

.orcamentos-module .orc-supplier-checks input[type="text"],
.orcamentos-module .orc-supplier-send input {
    flex: 1;
    min-width: 110px;
    width: auto !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 10px !important;
}

.orcamentos-module .orc-supplier-send {
    justify-content: flex-end;
}

.orcamentos-module .calculator-container,
.orcamentos-module .list-container,
.orcamentos-module .whatsapp-queue-container {
    border: 1px solid var(--orc-line) !important;
    border-radius: 16px !important;
    background: linear-gradient(145deg, rgba(17, 25, 35, 0.96), rgba(8, 13, 20, 0.98)) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.orcamentos-module .calculator-container {
    margin-bottom: 16px;
    padding: 18px !important;
}

.orcamentos-module .orc-calculator-heading {
    margin-bottom: 16px !important;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--orc-line);
}

.orcamentos-module .orc-calculator-heading h3,
.orcamentos-module .orc-list-heading h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 15px;
}

.orcamentos-module .product-tabs {
    flex: 0 0 auto;
    padding: 3px !important;
    border: 1px solid var(--orc-line) !important;
    background: rgba(0, 0, 0, 0.2) !important;
}

.orcamentos-module .product-tabs button {
    min-height: 32px;
    height: 32px !important;
    padding-inline: 14px !important;
}

.orcamentos-module #orcamento-opcoes-container {
    margin: 0 0 15px !important;
}

.orcamentos-module .calc-grid {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    align-items: end;
    gap: 12px !important;
    margin-bottom: 14px;
}

.orcamentos-module .calc-grid > .input-group {
    min-width: 0;
    margin: 0 !important;
}

.orcamentos-module .calc-grid #group-modelo {
    grid-column: span 6 !important;
}

.orcamentos-module .calc-grid #group-custo,
.orcamentos-module .calc-grid #group-desc-forn,
.orcamentos-module .calc-grid #group-frete,
.orcamentos-module .calc-grid #group-mao-obra {
    grid-column: span 3 !important;
}

.orcamentos-module .calc-grid .result-group {
    grid-column: 1 / -1 !important;
    margin: 3px 0 0;
    padding: 13px !important;
    border: 1px solid rgba(35, 215, 123, 0.34) !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(35, 215, 123, 0.1), rgba(35, 215, 123, 0.03)) !important;
}

.orcamentos-module .input-group label,
.orcamentos-module .result-group > label {
    display: block;
    margin-bottom: 6px;
    color: #aab7c7;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.025em;
}

.orcamentos-module .input-modern,
.orcamentos-module .price-badge {
    min-width: 0;
    height: 40px;
    border: 1px solid var(--orc-line) !important;
    border-radius: 9px !important;
    background: rgba(4, 9, 15, 0.68) !important;
    color: #eef3f8 !important;
    outline: 0;
}

.orcamentos-module .input-modern:focus,
.orcamentos-module .price-badge:focus {
    border-color: var(--orc-green) !important;
    box-shadow: 0 0 0 3px rgba(35, 215, 123, 0.1);
}

.orcamentos-module #calc-resultado {
    height: 50px;
    padding: 0 15px 0 52px !important;
    border-color: var(--orc-green) !important;
    background: rgba(3, 31, 19, 0.64) !important;
    color: var(--orc-green) !important;
    font-size: 21px !important;
}

.orcamentos-module .orc-quick-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px !important;
    margin-bottom: 14px !important;
}

.orcamentos-module .orc-quick-actions > button {
    width: 100%;
}

.orcamentos-module .calc-footer {
    min-height: 40px;
    padding-top: 13px;
    border-top: 1px solid var(--orc-line);
}

.orcamentos-module .orc-save-actions {
    align-items: center;
}

.orcamentos-module .orc-save-actions .orc-primary-save {
    min-width: 170px;
    border: 1px solid var(--orc-green) !important;
    background: var(--orc-green) !important;
    color: #03130b !important;
    font-weight: 900 !important;
    box-shadow: 0 8px 20px rgba(35, 215, 123, 0.16);
    cursor: pointer;
    transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.orcamentos-module .orc-save-actions .orc-primary-save:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
    box-shadow: 0 11px 24px rgba(35, 215, 123, 0.22);
}

.orcamentos-module .list-container {
    padding: 18px !important;
}

.orcamentos-module .orc-list-heading {
    gap: 15px;
    margin-bottom: 14px !important;
}

.orcamentos-module .orc-list-tools {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.orcamentos-module .orc-list-tools #search-orcamentos {
    width: 260px !important;
    margin: 0 !important;
}

.orcamentos-module .table-responsive {
    overflow-x: auto;
    border: 1px solid var(--orc-line);
    border-radius: 11px;
}

.orcamentos-module .modern-table {
    min-width: 790px;
    border-collapse: separate;
    border-spacing: 0;
}

.orcamentos-module .modern-table thead th {
    height: 42px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.035);
    color: #8fa0b5;
    font-size: 9px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.orcamentos-module .modern-table tbody td {
    height: 50px;
    padding: 8px 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 11px;
    vertical-align: middle;
}

.orcamentos-module .modern-table tbody tr:hover {
    background: rgba(35, 215, 123, 0.035);
}

.orcamentos-module .table-responsive > div:last-child {
    margin: 0 !important;
    padding: 10px;
    border-top: 1px solid var(--orc-line);
}

.orcamentos-module .table-responsive > div:last-child button {
    width: 100%;
}

@media (max-width: 1080px) {
    .orcamentos-module .orc-action-center > button {
        flex-basis: 170px;
    }

    .orcamentos-module .orc-supplier-destinations {
        grid-template-columns: 1fr;
    }

    .orcamentos-module .orc-supplier-send {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .orcamentos-module .orc-action-center {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .orcamentos-module .orc-action-center > button {
        width: 100%;
        min-width: 0;
    }

    .orcamentos-module .orc-supplier-destinations {
        grid-column: 1 / -1;
    }

    .orcamentos-module .orc-supplier-checks {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .orcamentos-module .orc-supplier-send {
        flex-wrap: wrap;
    }

    .orcamentos-module .orc-supplier-send input {
        flex-basis: 100%;
    }

    .orcamentos-module .calc-grid #group-modelo,
    .orcamentos-module .calc-grid #group-custo,
    .orcamentos-module .calc-grid #group-desc-forn,
    .orcamentos-module .calc-grid #group-frete,
    .orcamentos-module .calc-grid #group-mao-obra {
        grid-column: span 6 !important;
    }

    .orcamentos-module .orc-list-heading {
        align-items: stretch !important;
        flex-direction: column;
    }

    .orcamentos-module .orc-list-tools,
    .orcamentos-module .orc-list-tools .search-box,
    .orcamentos-module .orc-list-tools #search-orcamentos {
        width: 100% !important;
    }
}

@media (max-width: 500px) {
    .orcamentos-module .orc-action-center,
    .orcamentos-module .orc-quick-actions {
        grid-template-columns: 1fr;
    }

    .orcamentos-module .orc-supplier-destinations {
        grid-column: 1;
    }

    .orcamentos-module .calc-grid #group-modelo,
    .orcamentos-module .calc-grid #group-custo,
    .orcamentos-module .calc-grid #group-desc-forn,
    .orcamentos-module .calc-grid #group-frete,
    .orcamentos-module .calc-grid #group-mao-obra {
        grid-column: 1 / -1 !important;
    }

    .orcamentos-module .orc-calculator-heading {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 10px;
    }

    .orcamentos-module .product-tabs,
    .orcamentos-module .product-tabs button,
    .orcamentos-module .orc-save-actions,
    .orcamentos-module .orc-save-actions button {
        width: 100%;
    }
}
