* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #2a2a2a #0f0f0f;
}

*::-webkit-scrollbar {
    width: 4px;
}
*::-webkit-scrollbar-track {
    background: #0f0f0f;
}
*::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 4px;
}
*::-webkit-scrollbar-thumb:hover {
    background: #c24a24;
}

body {
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    background: #111;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── TOPBAR ── */
.orc-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 44px;
    border-bottom: 1px solid #1a1a1a;
    background: #0f0f0f;
    position: sticky;
    top: 0;
    z-index: 100;
}

.orc-topbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.orc-back-btn {
    align-items: center;
    background: transparent;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    color: #888;
    cursor: pointer;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    padding: 0;
    transition:
        border-color 0.2s,
        color 0.2s;
    width: 36px;
}

.orc-back-btn:hover {
    border-color: #555;
    color: #ddd;
}

.orc-back-btn svg {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 18px;
}

.orc-logo {
    font-family: "Manrope", sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #fff;
    text-transform: uppercase;
}

.orc-topbar-sep {
    color: #2a2a2a;
    font-size: 19px;
}

.orc-topbar-label {
    font-size: 14px;
    color: #555;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orc-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    justify-content: flex-end;
}

.orc-dashboard-topbar {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
}

.orc-dashboard-logo {
    display: block;
    grid-column: 2;
    height: 52px;
    justify-self: center;
    max-width: min(220px, 52vw);
    object-fit: contain;
    width: auto;
}

.orc-logo-topbar {
    position: sticky;
}

.orc-header-logo {
    display: block;
    height: 52px;
    left: 50%;
    max-width: min(220px, 52vw);
    object-fit: contain;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
}

.orc-dashboard-refresh {
    align-items: center;
    background: transparent;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    color: #888;
    cursor: pointer;
    display: none;
    height: 36px;
    justify-content: center;
    padding: 0;
    transition:
        border-color 0.2s,
        color 0.2s;
    width: 36px;
}

.orc-dashboard-refresh:hover {
    border-color: #555;
    color: #ddd;
}

.orc-dashboard-refresh svg {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 18px;
}

.orc-config-icon-link svg {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 18px;
}

/* ── BOTÕES ── */
.orc-btn-primary {
    background: #c24a24;
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 4px;
    font-size: 14px;
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.orc-btn-primary:hover {
    background: #9f351a;
}

.orc-btn-outline {
    background: transparent;
    color: #888;
    border: 1px solid #2a2a2a;
    padding: 11px 22px;
    border-radius: 4px;
    font-size: 14px;
    font-family: "Manrope", sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition:
        border-color 0.2s,
        color 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.orc-btn-outline:hover {
    border-color: #555;
    color: #ccc;
}

.orc-btn-outline.full,
.orc-btn-primary.full {
    width: 100%;
    text-align: center;
}

/* ── LAYOUT ── */
.orc-layout {
    display: grid;
    grid-template-columns: 60fr 40fr;
    gap: 26px;
    padding: 30px 44px;
    align-items: start;
    flex: 1;
}

/* ── COLUNA ESQUERDA ── */
.orc-col-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ── COLUNA DIREITA ── */
.orc-col-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 80px;
}

/* ── CARD BASE ── */
.orc-card {
    background: #0f0f0f;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    padding: 26px;
}

.orc-card-title {
    font-family: "Manrope", sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin-bottom: 20px;
}

/* ── ACCORDION ── */
.orc-accordion-section {
    padding: 0;
    overflow: hidden;
}

.orc-accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    padding: 22px 26px;
    text-align: left;
}

.orc-accordion-trigger .orc-card-title {
    margin-bottom: 0;
}

.orc-accordion-icon {
    color: #c24a24;
    font-size: 21px;
    line-height: 1;
    transition: transform 0.2s;
}

.orc-accordion-section.open .orc-accordion-icon {
    transform: rotate(45deg);
}

.orc-accordion-panel {
    display: none;
    padding: 0 26px 26px;
}

.orc-accordion-section.open .orc-accordion-panel {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ── GRIDS ── */
.orc-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.orc-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 22px;
}

/* ── FIELDS ── */
.orc-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.orc-field label {
    font-size: 11.5px;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.orc-field input[type="text"],
.orc-field input[type="email"],
.orc-field input[type="number"],
.orc-field input[type="date"],
.orc-field input[type="search"],
.orc-field textarea,
.orc-field select {
    background: #141414;
    border: 1px solid #222;
    border-radius: 4px;
    color: #ddd;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    min-height: 46px;
    padding: 13px 15px;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.orc-field textarea {
    resize: vertical;
    min-height: 82px;
    line-height: 1.55;
}

.orc-field input[readonly] {
    color: #666;
}

.orc-field input:focus,
.orc-field textarea:focus,
.orc-field select:focus {
    border-color: #c24a24;
}

.orc-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* ── STEPPER ── */
.orc-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    background: #141414;
    border: 1px solid #222;
    border-radius: 4px;
    width: fit-content;
    overflow: hidden;
}

.stepper-btn {
    background: transparent;
    border: none;
    color: #666;
    font-size: 19px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition:
        background 0.15s,
        color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.stepper-btn:hover {
    background: #1e1e1e;
    color: #c24a24;
}

.stepper-btn.sm {
    width: 32px;
    height: 32px;
    font-size: 16px;
}

.stepper-val {
    min-width: 40px;
    text-align: center;
    font-size: 15px;
    color: #ddd;
    font-weight: 500;
    user-select: none;
}

/* ── MATERIAL GRID ── */
.orc-material-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.orc-material-option input[type="radio"] {
    display: none;
}

.orc-material-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #141414;
    border: 1px solid #222;
    border-radius: 4px;
    padding: 16px 18px;
    cursor: pointer;
    transition:
        border-color 0.2s,
        background 0.2s;
}

.orc-material-option input:checked + .orc-material-card {
    border-color: #c24a24;
    background: rgba(194, 74, 36, 0.08);
}

.orc-material-card:hover {
    border-color: #333;
}

.orc-material-name {
    font-size: 14px;
    font-weight: 500;
    color: #ddd;
}

.orc-material-desc {
    font-size: 12px;
    color: #444;
}

.orc-material-price {
    font-size: 13px;
    color: #c24a24;
    margin-top: 4px;
    font-weight: 500;
}

/* ── CHECKBOXES ── */
.orc-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.orc-check {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #888;
    transition: color 0.2s;
}

.orc-check:hover {
    color: #ccc;
}

.orc-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #c24a24;
    cursor: pointer;
    flex-shrink: 0;
}

.orc-check em {
    font-style: normal;
    color: #555;
    font-size: 12px;
}

.orc-check-qty {
    display: none;
    align-items: center;
    margin-left: 4px;
}

.orc-check-qty.visible {
    display: flex;
}

.orc-check-qty .orc-stepper {
    background: transparent;
    border: none;
}

/* ── PREVIEW PLACEHOLDER ── */
.orc-preview-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.orc-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0.35;
}

.orc-preview-placeholder svg {
    width: 52px;
    height: 52px;
}

.orc-preview-placeholder p {
    font-size: 15px;
    color: #aaa;
}

.orc-preview-placeholder span {
    font-size: 12px;
    color: #555;
}

/* ── RESUMO / ORÇAMENTO ── */
.orc-resumo-card {
}

.orc-resumo-linhas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.orc-resumo-linha {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #555;
}

.orc-resumo-linha span:last-child {
    color: #888;
    font-variant-numeric: tabular-nums;
}

.orc-resumo-divider {
    height: 1px;
    background: #1a1a1a;
    margin: 18px 0;
}

.orc-resumo-head {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.orc-resumo-head .orc-card-title {
    margin-bottom: 0;
}

.orc-drawer-close,
.orc-budget-drawer-tab,
.orc-budget-drawer-overlay {
    display: none;
}

.orc-drawer-close {
    align-items: center;
    background: transparent;
    border: 0;
    color: #777;
    cursor: pointer;
    height: 36px;
    justify-content: center;
    padding: 0;
    width: 36px;
}

.orc-drawer-close:hover {
    color: #ddd;
}

.orc-drawer-close svg {
    fill: none;
    height: 20px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
    width: 20px;
}

.orc-custo-bloco {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.orc-custo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.orc-custo-label {
    font-size: 13px;
    color: #666;
}

.orc-custo-val {
    font-size: 18px;
    font-weight: 600;
    color: #ccc;
    font-variant-numeric: tabular-nums;
}

.orc-margem-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.orc-margem-label {
    font-size: 11.5px;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.orc-margem-controle {
    display: flex;
    align-items: center;
    gap: 14px;
}

.orc-margem-controle input[type="range"] {
    flex: 1;
    accent-color: #c24a24;
    cursor: pointer;
    height: 4px;
}

#margemVal {
    font-size: 13px;
    color: #c24a24;
    font-weight: 500;
    min-width: 36px;
    text-align: right;
}

.orc-venda-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(194, 74, 36, 0.08);
    border: 1px solid rgba(194, 74, 36, 0.34);
    border-radius: 4px;
    padding: 16px 18px;
    margin-top: 4px;
}

.orc-venda-label {
    font-size: 13px;
    color: #888;
}

.orc-venda-val {
    font-size: 25px;
    font-weight: 800;
    color: #c24a24;
    font-variant-numeric: tabular-nums;
}

.orc-resumo-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
}

.orc-status-msg {
    min-height: 20px;
    margin-top: 14px;
    color: #8c8c8c;
    font-size: 13px;
    line-height: 1.4;
}

.orc-status-msg.success {
    color: #75b66a;
}

.orc-status-msg.error {
    color: #d36a52;
}

.orc-save-overlay {
    align-items: center;
    background: rgba(0, 0, 0, 0.58);
    display: flex;
    inset: 0;
    justify-content: center;
    position: fixed;
    z-index: 999;
}

.orc-save-overlay[hidden] {
    display: none;
}

.orc-save-toast {
    align-items: center;
    background: #111;
    border: 1px solid rgba(194, 74, 36, 0.45);
    border-radius: 6px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 260px;
    padding: 28px;
    transform: translateY(8px);
}

.orc-save-overlay.visible .orc-save-toast {
    animation: orc-save-pop 0.32s ease forwards;
}

.orc-save-check {
    align-items: center;
    background: #75b66a;
    border-radius: 999px;
    color: #0f0f0f;
    display: inline-flex;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.orc-save-check svg {
    fill: none;
    height: 32px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.8;
    width: 32px;
}

.orc-save-toast strong {
    font-size: 18px;
    font-weight: 800;
}

@keyframes orc-save-pop {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.orc-print-sheet {
    display: none;
}

/* ── LISTA DE ORÇAMENTOS ── */
.orc-lista-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.orc-list-title-row {
    align-items: center;
    display: flex;
    gap: 12px;
}

.orc-list-title-row .orc-card-title {
    margin-bottom: 0;
}

.orc-badge {
    border: 1px solid rgba(194, 74, 36, 0.4);
    border-radius: 999px;
    color: #c24a24;
    font-size: 11px;
    letter-spacing: 0.6px;
    padding: 5px 9px;
    text-transform: uppercase;
    white-space: nowrap;
}

.orc-badge.muted {
    border-color: #343434;
    color: #777;
}

.orc-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 360px;
    overflow: auto;
}

.orc-lista-empty {
    border: 1px dashed #242424;
    border-radius: 4px;
    color: #555;
    font-size: 13px;
    line-height: 1.45;
    padding: 16px;
}

.orc-lista-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px 14px;
    width: 100%;
    background: #141414;
    border: 1px solid #222;
    border-radius: 4px;
    color: inherit;
    cursor: pointer;
    padding: 14px;
    text-align: left;
    transition:
        border-color 0.2s,
        background 0.2s;
}

.orc-lista-item:hover,
.orc-lista-item.active {
    border-color: #c24a24;
    background: rgba(194, 74, 36, 0.08);
}

.orc-lista-title {
    color: #ddd;
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.orc-lista-value {
    color: #c24a24;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    text-align: right;
}

.orc-lista-meta,
.orc-lista-date {
    color: #555;
    font-size: 12px;
    line-height: 1.4;
}

.orc-lista-date {
    text-align: right;
}

.orc-lista-actions {
    margin-top: 12px;
}

/* ── PÁGINA DE LISTAGEM ── */
.orc-list-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px 44px;
}

.orc-list-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px auto;
    gap: 14px;
}

.orc-list-toolbar .orc-field {
    gap: 0;
}

.orc-list-new-btn {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
}

.orc-list-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.orc-list-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 130px 140px 140px 142px;
    gap: 14px;
    align-items: center;
    background: #0f0f0f;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    padding: 16px;
}

.orc-list-row.header {
    color: #555;
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.orc-list-row:not(.header) {
    color: #aaa;
}

.orc-list-main {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.orc-list-title {
    color: #eee;
    font-size: 15px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.orc-list-subtitle {
    color: #555;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.orc-list-meta {
    align-items: center;
    display: flex;
    min-width: 0;
}

.orc-status-pill {
    border: 1px solid #2a2a2a;
    border-radius: 999px;
    color: #aaa;
    display: inline-flex;
    font-size: 12px;
    justify-content: center;
    padding: 6px 10px;
    text-transform: uppercase;
    width: fit-content;
}

.orc-status-pill.rascunho {
    border-color: #555;
    color: #aaa;
}

.orc-status-pill.enviado {
    border-color: #346a96;
    color: #68a9d8;
}

.orc-status-pill.em_producao,
.orc-status-pill.entregue {
    border-color: #346a96;
    color: #68a9d8;
}

.orc-list-money {
    color: #c24a24;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.orc-list-actions-row {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.orc-icon-btn {
    align-items: center;
    background: transparent;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    color: #888;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
    text-decoration: none;
    transition:
        border-color 0.2s,
        color 0.2s,
        background 0.2s;
    width: 40px;
}

.orc-icon-btn:hover {
    background: rgba(194, 74, 36, 0.08);
    border-color: #c24a24;
    color: #ddd;
}

.orc-icon-btn:disabled {
    cursor: progress;
    opacity: 0.55;
}

.orc-icon-btn svg {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 18px;
}

.orc-item-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.orc-item-section {
    background: #111;
    border: 1px solid #1d1d1d;
    border-radius: 4px;
    padding: 22px;
}

.orc-item-section h3 {
    color: #ddd;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.orc-item-add {
    align-items: end;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(118px, 132px) auto;
    gap: 16px;
    margin-top: 20px;
}

.orc-item-add.delivery {
    align-items: end;
    grid-template-columns: minmax(0, 1fr) auto;
}

.orc-delivery-installation {
    min-height: 46px;
    padding-bottom: 1px;
}

.orc-budget-lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.orc-budget-line {
    align-items: center;
    background: #141414;
    border: 1px solid #222;
    border-radius: 4px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px auto auto;
    gap: 10px;
    padding: 12px;
}

.orc-budget-line strong,
.orc-budget-line span {
    display: block;
}

.orc-budget-line strong {
    color: #ddd;
    font-size: 13px;
}

.orc-budget-line span {
    color: #666;
    font-size: 12px;
}

.orc-budget-line > span {
    color: #c24a24;
    font-size: 13px;
    font-weight: 600;
    text-align: right;
}

.orc-qty-control {
    align-items: stretch;
    background: #101010;
    border: 1px solid #242424;
    border-radius: 4px;
    display: grid;
    grid-template-columns: 34px minmax(42px, 1fr) 34px;
    min-height: 42px;
    overflow: hidden;
}

.orc-qty-control button {
    align-items: center;
    background: #151515;
    border: 0;
    color: #777;
    cursor: pointer;
    display: flex;
    font-family: "Manrope", sans-serif;
    font-size: 17px;
    font-weight: 800;
    justify-content: center;
    line-height: 1;
    transition:
        background 0.15s,
        color 0.15s;
}

.orc-qty-control button:first-child {
    border-right: 1px solid #242424;
}

.orc-qty-control button:last-child {
    border-left: 1px solid #242424;
}

.orc-qty-control button:hover {
    background: rgba(194, 74, 36, 0.12);
    color: #c24a24;
}

.orc-qty-control input {
    background: transparent;
    border: 0;
    color: #ddd;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 600;
    min-width: 0;
    outline: none;
    padding: 0 8px;
    text-align: center;
}

.orc-home-page,
.orc-login-page,
.orc-config-page {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 52px 44px;
}

.orc-home-page,
.orc-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orc-home-page {
    flex-direction: column;
    gap: 34px;
}

.orc-home-logo {
    background-image: url("/assets/internal-home/logo.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 92px;
    width: min(260px, 72vw);
}

.orc-home-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
}

.orc-home-card {
    background-color: #0f0f0f;
    background-position: center;
    background-size: cover;
    color: inherit;
    min-height: 300px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    transition:
        border-color 0.2s,
        transform 0.2s;
}

.orc-home-card.budgets {
    background-image: url("/assets/internal-home/orcamentos.jpg");
}

.orc-home-card.dashboard {
    background-image: url("/assets/internal-home/dashboard.jpg");
}

.orc-home-card.leads {
    background-image: url("/assets/internal-home/orcamentos.jpg");
}

.orc-home-card.admin {
    background-image: url("/assets/internal-home/admin.jpg");
}

.orc-home-card::after {
    background:
        linear-gradient(180deg, rgba(10, 10, 10, 0.30), rgba(10, 10, 10, 0.30)),
        rgba(10, 10, 10, 0.38);
    content: "";
    inset: 0;
    position: absolute;
    z-index: 0;
}

.orc-home-card:not(.disabled):hover {
    border-color: #c24a24;
    transform: translateY(-2px);
}

.orc-home-card-kicker,
.orc-home-card-title {
    display: block;
    position: relative;
    z-index: 1;
}

.orc-home-card-kicker {
    color: #666;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.orc-home-card-title {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}

.orc-home-card.disabled {
    cursor: not-allowed;
    filter: saturate(0.25);
    opacity: 0.46;
}

.orc-home-card.disabled::before {
    background: rgba(10, 10, 10, 0.38);
    content: "";
    inset: 0;
    position: absolute;
    z-index: 2;
}

.orc-home-card-overlay {
    align-items: center;
    background: rgba(20, 20, 20, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #eee;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    inset: auto 18px 18px auto;
    padding: 7px 10px;
    position: absolute;
    text-transform: uppercase;
    z-index: 3;
}

.orc-login-card {
    width: min(460px, 100%);
}

.orc-login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.orc-login-form input[type="password"] {
    background: #141414;
    border: 1px solid #222;
    border-radius: 4px;
    color: #ddd;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    min-height: 44px;
    padding: 11px 14px;
    outline: none;
}

.orc-config-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.orc-config-section {
    border: 1px solid #1d1d1d;
    border-radius: 4px;
    background: #111;
    min-width: 0;
    overflow: hidden;
}

.orc-config-trigger {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    padding: 20px 22px;
    text-align: left;
    width: 100%;
}

.orc-config-trigger .orc-card-title {
    margin-bottom: 0;
}

.orc-config-section.open .orc-accordion-icon {
    transform: rotate(45deg);
}

.orc-config-panel {
    display: none;
    padding: 0 22px 22px;
}

.orc-config-section.open .orc-config-panel {
    display: block;
}

.orc-config-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.orc-config-input-wrap {
    align-items: center;
    background: #141414;
    border: 1px solid #222;
    border-radius: 4px;
    display: grid;
    gap: 8px;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 46px;
    padding: 0 14px;
    transition: border-color 0.2s;
}

.orc-config-input-wrap.percent {
    grid-template-columns: minmax(0, 1fr) auto;
}

.orc-config-input-wrap:focus-within {
    border-color: #c24a24;
}

.orc-config-unit {
    color: #666;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.orc-config-input-wrap input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
    background: transparent;
    border: 0;
    color: #ddd;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    min-height: 44px;
    min-width: 0;
    outline: none;
    padding: 0;
    width: 100%;
}

.orc-config-input-wrap input[type="number"]::-webkit-inner-spin-button,
.orc-config-input-wrap input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.orc-config-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ── DASHBOARD DE MÍDIA ── */
.orc-dashboard-shell {
    align-items: start;
    display: grid;
    flex: 1;
    gap: 24px;
    grid-template-columns: 220px minmax(0, 1fr);
    padding: 22px 44px 30px;
}

.orc-dashboard-sidebar {
    position: sticky;
    top: 90px;
}

.orc-new-analysis-shell {
    grid-template-columns: minmax(0, 980px);
    justify-content: center;
}

.orc-dashboard-page {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.orc-dashboard-head {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-bottom: 8px;
}

.orc-dashboard-title-block .orc-card-title,
.orc-dashboard-grid .orc-card-title,
.orc-analysis-note .orc-card-title {
    margin-bottom: 0;
}

.orc-dashboard-title-block .orc-card-title {
    font-size: 22px;
}

.orc-dashboard-lead {
    color: #969696;
    font-size: 14px;
    margin-top: 6px;
    max-width: 720px;
}

.orc-dashboard-filters {
    align-items: end;
    background: rgba(15, 15, 15, 0.78);
    border: 1px solid #1c1c1c;
    border-radius: 4px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(190px, 1fr) minmax(190px, 1fr) auto;
    min-width: min(520px, 100%);
    padding: 12px;
}

.orc-dashboard-filters .orc-btn-primary {
    background: #a43d20;
    min-height: 42px;
    padding-left: 18px;
    padding-right: 18px;
}

.orc-dashboard-filters .orc-btn-primary:hover {
    background: #c24a24;
}

.orc-dashboard-mobile-select,
.orc-dashboard-mobile-range {
    display: none;
}

.orc-date-range-trigger {
    align-items: center;
    background: #141414;
    border: 1px solid #242424;
    border-radius: 4px;
    color: #e8e8e8;
    cursor: pointer;
    display: flex;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 14px 0 18px;
    text-align: left;
    width: 100%;
}

.orc-date-range-trigger svg {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 18px;
}

.orc-date-range-popover {
    display: none;
}

.orc-dashboard-page.analysis-active .orc-dashboard-head {
    display: none;
}

.orc-dashboard-page.analysis-active .orc-dashboard-filters {
    display: none;
}

.orc-dashboard-page.analysis-active > .orc-status-msg {
    display: none;
}

.orc-dashboard-tabs {
    background: #0f0f0f;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.orc-dashboard-tabs button {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #8b8b8b;
    cursor: pointer;
    display: flex;
    gap: 10px;
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 800;
    min-height: 42px;
    padding: 11px 12px;
    text-align: left;
    text-transform: uppercase;
    transition:
        background 0.2s,
        border-color 0.2s,
        color 0.2s;
}

.orc-dashboard-tabs button span {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #777;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 10px;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.orc-dashboard-tabs button span svg {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 18px;
}

.orc-dashboard-tabs button span svg path:first-child:last-child,
.orc-dashboard-tabs button[data-tab="google_ads"] span svg path {
    fill: currentColor;
    stroke: none;
}

.orc-dashboard-tabs button[data-tab="meta_ads"] span svg {
    height: 19px;
    width: 19px;
}

.orc-dashboard-tabs button:hover,
.orc-dashboard-tabs button.active {
    background: rgba(194, 74, 36, 0.06);
    border-color: rgba(194, 74, 36, 0.5);
    color: #c24a24;
}

.orc-dashboard-tabs button:hover span,
.orc-dashboard-tabs button.active span {
    color: #d85d36;
}

.orc-dashboard-panel {
    display: none;
    flex-direction: column;
    gap: 14px;
}

.orc-dashboard-panel.active {
    display: flex;
}

.orc-dashboard-meta-row {
    align-items: center;
    color: #777;
    display: flex;
    font-size: 12px;
    gap: 16px;
    justify-content: space-between;
    line-height: 1.4;
    margin-top: -2px;
}

.orc-dashboard-period,
.orc-dashboard-updated {
    align-items: center;
    display: inline-flex;
    min-width: 0;
    white-space: nowrap;
}

.orc-dashboard-updated {
    gap: 6px;
}

.orc-dashboard-updated svg {
    fill: none;
    flex: 0 0 auto;
    height: 14px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 14px;
}

.orc-meta-mobile {
    display: none;
}

.orc-dashboard-alert {
    align-items: flex-start;
    background: rgba(194, 74, 36, 0.08);
    border: 1px solid rgba(194, 74, 36, 0.28);
    border-radius: 4px;
    color: #d9a08e;
    display: flex;
    gap: 12px;
    padding: 12px 14px;
}

.orc-alert-icon {
    align-items: center;
    background: rgba(194, 74, 36, 0.16);
    border: 1px solid rgba(194, 74, 36, 0.42);
    border-radius: 50%;
    color: #e06d45;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
    height: 22px;
    justify-content: center;
    width: 22px;
}

.orc-dashboard-alert strong {
    color: #f1c0b0;
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

.orc-dashboard-alert p {
    color: #b98675;
    font-size: 12.5px;
    line-height: 1.45;
}

.orc-dashboard-metrics {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
}

.orc-metric-card {
    background: #0f0f0f;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 116px;
    padding: 16px;
}

.orc-metric-card.emphasis {
    background: linear-gradient(180deg, rgba(194, 74, 36, 0.08), rgba(194, 74, 36, 0.035));
    border-color: rgba(194, 74, 36, 0.36);
}

.orc-metric-label {
    color: #767676;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.orc-metric-card strong {
    color: #f4f4f4;
    font-size: 25px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.orc-metric-card.emphasis strong {
    color: #d85d36;
}

.orc-metric-delta {
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.orc-metric-delta.good {
    color: #75b66a;
}

.orc-metric-delta.bad {
    color: #d36a52;
}

.orc-metric-delta.muted {
    color: #555;
}

.orc-dashboard-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

.orc-dashboard-page > .orc-status-msg {
    color: #858585;
    margin-top: 0;
    min-height: 16px;
}

.orc-dashboard-grid.analysis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.orc-dashboard-insight {
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 18px;
}

.orc-dashboard-insight-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.orc-dashboard-insight-list p {
    color: #b3b3b3;
    display: grid;
    font-size: 14px;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr);
    line-height: 1.55;
}

.orc-dashboard-insight-list p span {
    background: #c24a24;
    border-radius: 50%;
    height: 5px;
    margin-top: 9px;
    width: 5px;
}

.orc-dashboard-funnel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 22px;
}

.orc-funnel-head {
    align-items: center;
    color: #838383;
    display: flex;
    font-size: 13px;
    justify-content: space-between;
    margin-bottom: 8px;
}

.orc-funnel-head strong {
    color: #c7c7c7;
    font-variant-numeric: tabular-nums;
}

.orc-funnel-bar {
    background: #1b1b1b;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.orc-funnel-bar span {
    background: linear-gradient(90deg, #c24a24, #d85d36);
    border-radius: inherit;
    display: block;
    height: 100%;
}

.orc-campaign-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
}

.orc-campaign-row {
    align-items: center;
    background: #121212;
    border: 1px solid #202020;
    border-radius: 4px;
    color: #b5b5b5;
    display: grid;
    font-size: 13px;
    gap: 12px;
    grid-template-columns: minmax(150px, 1.25fr) 110px 100px 80px 70px 70px;
    padding: 13px 12px;
}

.orc-campaign-row.header {
    background: transparent;
    border-color: transparent;
    color: #777;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.7px;
    padding-bottom: 0;
    padding-top: 0;
    text-transform: uppercase;
}

.orc-campaign-row span:nth-child(n + 3) {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.orc-analysis-actions {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.orc-analysis-actions span,
.orc-analysis-comment {
    background: #141414;
    border: 1px solid #222;
    border-radius: 4px;
    color: #888;
    font-size: 13px;
    line-height: 1.5;
    padding: 14px;
}

.orc-analysis-comments {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
    max-height: 430px;
    overflow: auto;
}

.orc-analysis-comment {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.orc-analysis-comment span {
    color: #555;
    font-size: 12px;
}

.orc-analysis-comment strong {
    color: #ddd;
    font-size: 14px;
}

.orc-analysis-comment p {
    color: #888;
    font-size: 13px;
}

.orc-analysis-feed-shell {
    display: grid;
    gap: 16px;
    width: 100%;
}

.orc-analysis-composer {
    background: #101010;
}

.orc-analysis-composer .orc-lista-head {
    align-items: flex-start;
}

.orc-analysis-composer .orc-lista-head p {
    color: #777;
    font-size: 13px;
    line-height: 1.45;
    margin-top: 6px;
}

.orc-analysis-composer-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1.85fr) minmax(260px, 1fr);
}

.orc-analysis-feed {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.orc-analysis-empty-state {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 220px;
    text-align: center;
    width: 100%;
}

.orc-analysis-post {
    background: #0f0f0f;
    border: 1px solid #1d1d1d;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 26px;
}

.orc-analysis-post.manual {
    border-color: rgba(194, 74, 36, 0.32);
}

.orc-analysis-post-head {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr);
}

.orc-analysis-avatar {
    align-items: center;
    background: rgba(194, 74, 36, 0.12);
    border: 1px solid rgba(194, 74, 36, 0.36);
    border-radius: 50%;
    color: #d85d36;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.orc-analysis-post-head h3 {
    color: #f0f0f0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}

.orc-analysis-post-head p {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 4px;
}

.orc-analysis-post-body p {
    color: #b8b8b8;
    font-size: 15px;
    line-height: 1.7;
}

.orc-analysis-post-content {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1.85fr) minmax(260px, 1fr);
}

.orc-analysis-post-main,
.orc-analysis-post-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.orc-analysis-post-aside {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid #1c1c1c;
    border-radius: 4px;
    padding: 16px;
}

.orc-analysis-post-section {
    border-top: 1px solid #1c1c1c;
    display: grid;
    gap: 12px;
    padding-top: 16px;
}

.orc-analysis-post-section > strong {
    color: #eee;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.orc-analysis-post-aside > strong {
    color: #eee;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.7px;
    line-height: 1.35;
    text-transform: uppercase;
}

.orc-analysis-action-feed {
    display: grid;
    gap: 10px;
}

.orc-analysis-action-feed span {
    align-items: start;
    color: #9a9a9a;
    display: grid;
    font-size: 13px;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr);
    line-height: 1.5;
}

.orc-analysis-action-feed span::before {
    background: #c24a24;
    border-radius: 50%;
    content: "";
    height: 6px;
    margin-top: 7px;
    width: 6px;
}

.orc-analysis-action-feed span.empty {
    color: #5f5f5f;
}

.orc-analysis-action-feed span.empty::before {
    background: #333;
}

.orc-analysis-feedback-list {
    display: grid;
    gap: 12px;
}

.orc-analysis-feedback {
    display: grid;
    gap: 5px;
}

.orc-analysis-feedback span,
.orc-analysis-empty-feedback {
    color: #5f5f5f;
    font-size: 12px;
}

.orc-analysis-feedback strong {
    color: #d0d0d0;
    font-size: 13px;
    line-height: 1.35;
}

.orc-analysis-feedback p {
    color: #898989;
    font-size: 13px;
    line-height: 1.55;
}

/* ── LEADS WHATSAPP ── */
.orc-leads-filters {
    grid-template-columns: minmax(140px, 0.9fr) minmax(140px, 0.9fr) minmax(140px, 0.8fr) minmax(220px, 1.2fr) auto;
}

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

.orc-whatsapp-panel {
    min-width: 0;
}

.orc-whatsapp-panel .orc-lista-head,
.orc-whatsapp-recent .orc-lista-head {
    margin-bottom: 14px;
}

.orc-whatsapp-panel .orc-card-title,
.orc-whatsapp-recent .orc-card-title {
    font-size: 15px;
}

.orc-lista-empty.compact {
    min-height: 90px;
    padding: 24px;
}

.orc-leads-daily {
    align-items: end;
    display: grid;
    gap: 8px;
    grid-auto-flow: column;
    grid-auto-columns: minmax(18px, 1fr);
    min-height: 190px;
    overflow-x: auto;
    padding: 8px 2px 0;
}

.orc-leads-day {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-rows: minmax(120px, 1fr) auto;
    height: 100%;
    min-width: 18px;
}

.orc-leads-day span {
    align-self: end;
    background: linear-gradient(180deg, #d85d36, #963318);
    border-radius: 3px 3px 0 0;
    display: block;
    justify-self: center;
    min-height: 6px;
    width: 100%;
}

.orc-leads-day small {
    color: #666;
    font-size: 10px;
    transform: rotate(-45deg);
    transform-origin: center top;
    white-space: nowrap;
}

.orc-leads-bars {
    display: grid;
    gap: 12px;
}

.orc-leads-bar-row {
    display: grid;
    gap: 8px;
}

.orc-leads-bar-row div {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-width: 0;
}

.orc-leads-bar-row strong {
    color: #d8d8d8;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orc-leads-bar-row span {
    color: #777;
    flex: 0 0 auto;
    font-size: 12px;
}

.orc-leads-bar-row em {
    background: #1b1b1b;
    border-radius: 999px;
    display: block;
    height: 7px;
    overflow: hidden;
}

.orc-leads-bar-row i {
    background: #c24a24;
    border-radius: inherit;
    display: block;
    height: 100%;
}

.orc-leads-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.orc-leads-tags span {
    align-items: center;
    background: #141414;
    border: 1px solid #242424;
    border-radius: 4px;
    color: #aaa;
    display: inline-flex;
    font-size: 12px;
    gap: 7px;
    min-height: 32px;
    padding: 6px 10px;
}

.orc-leads-tags b {
    color: #d85d36;
    font-variant-numeric: tabular-nums;
}

.orc-whatsapp-recent {
    overflow: hidden;
}

.orc-whatsapp-table {
    display: grid;
    gap: 8px;
    overflow-x: auto;
}

.orc-whatsapp-row {
    align-items: center;
    background: #121212;
    border: 1px solid #202020;
    border-radius: 4px;
    color: #aaa;
    display: grid;
    font-size: 12.5px;
    gap: 12px;
    grid-template-columns: 116px 76px 84px minmax(130px, 1fr) minmax(130px, 1fr) 96px minmax(110px, 0.8fr) 118px;
    min-width: 940px;
    padding: 12px;
}

.orc-whatsapp-row.header {
    background: transparent;
    border-color: transparent;
    color: #777;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.7px;
    padding-bottom: 0;
    padding-top: 0;
    text-transform: uppercase;
}

.orc-whatsapp-row strong,
.orc-whatsapp-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orc-whatsapp-row strong {
    color: #ededed;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 1100px) {
    .orc-whatsapp-leads-shell {
        align-items: stretch;
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .orc-whatsapp-leads-shell .orc-dashboard-sidebar {
        position: static;
        width: 100%;
    }

    .orc-whatsapp-leads-shell .orc-dashboard-tabs {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        width: 100%;
    }

    .orc-whatsapp-leads-shell .orc-dashboard-tabs button {
        flex: 0 0 auto;
        min-width: 190px;
    }

    .orc-whatsapp-leads-page .orc-dashboard-head {
        grid-template-columns: 1fr;
    }

    .orc-whatsapp-leads-page .orc-dashboard-title-block {
        display: block;
    }

    .orc-whatsapp-leads-page .orc-dashboard-lead {
        max-width: 640px;
    }

    .orc-leads-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
        width: 100%;
    }

    .orc-leads-filters .orc-btn-primary {
        grid-column: 1 / -1;
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 760px) {
    .orc-whatsapp-leads-shell {
        padding: 16px;
    }

    .orc-whatsapp-leads-shell .orc-dashboard-tabs button {
        min-width: 0;
        width: 100%;
    }

    .orc-leads-filters {
        grid-template-columns: 1fr;
    }

    .orc-dashboard-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .orc-whatsapp-grid {
        grid-template-columns: 1fr;
    }

    .orc-leads-daily {
        min-height: 170px;
    }
}

@media (max-width: 480px) {
    .orc-dashboard-metrics {
        grid-template-columns: 1fr;
    }

    .orc-dashboard-meta-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .orc-leads-bar-row div {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
}

/* ══════════════════════════════════════
   RESPONSIVIDADE
══════════════════════════════════════ */

/* ── Tablet (≤ 900px): layout começa a apertar ── */
@media (max-width: 900px) {
    .orc-topbar {
        padding: 18px 26px;
    }

    .orc-topbar-actions {
        flex: 1 1 auto;
    }

    .orc-layout {
        grid-template-columns: 1fr;
        padding: 22px 26px;
    }

    .orc-col-right {
        position: static;
    }

    .orc-list-toolbar,
    .orc-list-row,
    .orc-dashboard-head,
    .orc-dashboard-grid,
    .orc-dashboard-grid.analysis {
        grid-template-columns: 1fr;
    }

    .orc-dashboard-shell {
        gap: 18px;
        grid-template-columns: 180px minmax(0, 1fr);
        padding: 20px 26px;
    }

    .orc-config-grid,
    .orc-config-fields,
    .orc-item-sections,
    .orc-item-add,
    .orc-budget-line,
    .orc-dashboard-filters {
        grid-template-columns: 1fr;
    }

    .orc-dashboard-head {
        align-items: start;
    }

    .orc-analysis-feed-shell {
        max-width: none;
    }

    .orc-analysis-composer-grid,
    .orc-analysis-post-content {
        grid-template-columns: 1fr;
    }

    .orc-analysis-post {
        padding: 18px;
    }

    .orc-analysis-post-head {
        align-items: flex-start;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .orc-analysis-post-head .orc-badge {
        grid-column: 2;
        justify-self: start;
    }

    .orc-campaign-row {
        grid-template-columns: minmax(0, 1fr) repeat(3, minmax(64px, auto));
    }

    .orc-campaign-row span:nth-child(2) {
        display: none;
    }

    .orc-campaign-row span:nth-child(6) {
        display: none;
    }

    .orc-list-row.header {
        display: none;
    }

    .orc-list-row:not(.header) {
        align-items: stretch;
        gap: 14px;
        padding: 18px;
    }

    .orc-list-row:not(.header) > [data-label] {
        align-items: start;
        display: grid;
        gap: 6px 14px;
        grid-template-columns: minmax(76px, 0.32fr) minmax(0, 1fr);
    }

    .orc-list-row:not(.header) > [data-label]::before {
        color: #555;
        content: attr(data-label);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.7px;
        padding-top: 2px;
        text-transform: uppercase;
    }

    .orc-list-row:not(.header) > [data-label] > * {
        grid-column: 2;
    }

    .orc-list-main {
        gap: 4px;
    }

    .orc-list-meta {
        justify-items: start;
    }

    .orc-list-actions-row {
        border-top: 1px solid #1f1f1f;
        justify-content: flex-start;
        padding-top: 14px;
    }

    .orc-item-add .orc-btn-outline,
    .orc-budget-line > .orc-btn-outline {
        width: 100%;
    }

    .orc-budget-line {
        align-items: stretch;
    }

    .orc-budget-line > span {
        text-align: left;
    }

    .orc-qty-control {
        max-width: 190px;
        width: 100%;
    }

    .orc-campaign-row.header {
        display: none;
    }

    /* Esconde o preview placeholder — no mobile não faz sentido */
    .orc-preview-card {
        display: none;
    }

    /* Orçamento sobe para logo após a calculadora */
    .orc-col-right {
        order: 2;
    }
    .orc-col-left {
        order: 1;
    }
}

/* ── Mobile (≤ 600px) ── */
@media (max-width: 600px) {
    .orc-topbar {
        align-items: center;
        flex-wrap: nowrap;
        padding: 14px 16px;
    }

    .orc-topbar-brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .orc-logo {
        font-size: 18px;
        min-width: 0;
    }

    .orc-dashboard-refresh {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .orc-topbar-label {
        display: none;
    }

    .orc-topbar-sep {
        display: none;
    }

    .orc-layout {
        padding: 16px 16px 98px;
        gap: 18px;
    }

    .orc-card {
        padding: 18px;
    }

    .orc-accordion-section {
        padding: 0;
    }

    .orc-accordion-trigger {
        padding: 20px;
    }

    .orc-accordion-panel {
        padding: 0 20px 20px;
    }

    .orc-list-page {
        padding: 16px 16px 98px;
    }

    .orc-lista-head,
    .orc-resumo-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .orc-list-page .orc-lista-head {
        margin-bottom: 14px;
    }

    .orc-list-page .orc-list-title-row {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .orc-list-page .orc-card-title {
        font-size: 15px;
        margin-bottom: 0;
    }

    .orc-list-page .orc-badge {
        font-size: 10px;
        letter-spacing: 0.4px;
        padding: 4px 8px;
    }

    .orc-dashboard-shell {
        align-items: stretch;
        display: flex;
        flex-direction: column;
        padding: 16px;
    }

    .orc-dashboard-page,
    .orc-dashboard-panel.active,
    .orc-analysis-feed-shell,
    .orc-analysis-feed {
        width: 100%;
    }

    .orc-dashboard-sidebar {
        position: static;
        width: 100%;
    }

    .orc-dashboard-mobile-select {
        display: block;
    }

    .orc-dashboard-mobile-select label {
        color: #555;
        display: block;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.7px;
        margin-bottom: 8px;
        text-transform: uppercase;
    }

    .orc-dashboard-mobile-select select {
        appearance: none;
        background-color: #101010;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
        background-position: right 16px center;
        background-repeat: no-repeat;
        border: 1px solid #252525;
        border-radius: 4px;
        color: #e5e5e5;
        font-family: "Manrope", sans-serif;
        font-size: 14px;
        font-weight: 800;
        min-height: 48px;
        padding: 0 42px 0 16px;
        text-transform: uppercase;
        width: 100%;
    }

    .orc-dashboard-tabs {
        display: none;
    }

    .orc-dashboard-head {
        gap: 18px;
    }

    .orc-dashboard-title-block {
        display: none;
    }

    .orc-dashboard-filters {
        align-items: stretch;
        gap: 14px;
        justify-items: stretch;
        min-width: 0;
        position: relative;
        width: 100%;
    }

    .orc-dashboard-filters .orc-btn-primary {
        display: none;
    }

    .orc-dashboard-mobile-range {
        display: block;
        order: 1;
        width: 100%;
    }

    .orc-dashboard-date-field {
        display: none;
        order: 2;
        width: 100%;
    }

    .orc-dashboard-filters.range-open .orc-dashboard-date-field {
        align-items: center;
        display: grid;
        gap: 10px;
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .orc-dashboard-filters.range-open .orc-dashboard-date-field label {
        margin: 0;
    }

    .orc-dashboard-filters.range-open .orc-dashboard-date-field input {
        box-sizing: border-box;
        min-width: 0;
        text-align: center;
        width: 100%;
    }

    .orc-dashboard-meta-row {
        font-size: 11.5px;
        gap: 10px;
        width: 100%;
    }

    .orc-dashboard-period {
        flex: 1 1 auto;
    }

    .orc-dashboard-updated {
        flex: 0 0 auto;
    }

    .orc-meta-desktop {
        display: none;
    }

    .orc-meta-mobile {
        display: inline;
    }

    .orc-campaign-table {
        gap: 10px;
        margin-top: 14px;
    }

    .orc-campaign-row.header {
        display: none;
    }

    .orc-campaign-row {
        align-items: stretch;
        gap: 10px 12px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 14px;
    }

    .orc-campaign-row .orc-list-title {
        grid-column: 1 / -1;
        line-height: 1.35;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .orc-campaign-row .orc-status-pill {
        grid-column: 1 / -1;
        justify-self: start;
        max-width: 100%;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .orc-campaign-row span:nth-child(n + 3) {
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
        text-align: left;
    }

    .orc-campaign-row span:nth-child(n + 3)::before {
        color: #666;
        content: attr(data-label);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    .orc-dashboard-title-block .orc-card-title {
        font-size: 19px;
    }

    .orc-home-page,
    .orc-login-page,
    .orc-config-page {
        padding: 16px;
    }

    .orc-config-page {
        padding-bottom: 116px;
    }

    .orc-home-grid {
        grid-template-columns: 1fr;
    }

    .orc-home-logo {
        height: 76px;
        width: min(220px, 76vw);
    }

    .orc-home-card {
        min-height: 200px;
    }

    .orc-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .orc-topbar-brand {
        width: 100%;
    }

    .orc-logo {
        font-size: 17px;
    }

    .orc-topbar-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .orc-topbar-actions .orc-btn-outline,
    .orc-topbar-actions .orc-btn-primary {
        min-height: 44px;
        width: 100%;
    }

    .orc-dashboard-topbar {
        align-items: center;
        display: grid;
        flex-direction: unset;
        gap: 0;
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        justify-content: initial;
    }

    .orc-dashboard-logo {
        height: 42px;
        max-width: min(180px, 48vw);
    }

    .orc-logo-topbar {
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
        min-height: 65px;
    }

    .orc-logo-topbar .orc-header-logo {
        height: 42px;
        max-width: min(180px, 48vw);
    }

    .orc-logo-topbar .orc-topbar-actions {
        margin-left: auto;
    }

    .orc-mobile-bottom-actions .orc-topbar-actions {
        background: rgba(15, 15, 15, 0.96);
        border-top: 1px solid #1f1f1f;
        bottom: 0;
        box-shadow: 0 -16px 36px rgba(0, 0, 0, 0.4);
        display: grid;
        gap: 10px;
        grid-template-columns: 1fr;
        left: 0;
        margin: 0 auto;
        max-width: 560px;
        padding: 12px 16px 14px;
        position: fixed;
        right: 0;
        width: 100%;
        z-index: 120;
    }

    .orc-mobile-bottom-actions .orc-topbar-actions .orc-btn-outline,
    .orc-mobile-bottom-actions .orc-topbar-actions .orc-btn-primary {
        min-height: 48px;
    }

    .orc-mobile-bottom-actions .orc-topbar-actions .orc-btn-primary {
        order: 2;
    }

    .orc-mobile-bottom-actions .orc-topbar-actions .orc-btn-outline {
        order: 1;
    }

    body.orc-budget-drawer-open {
        overflow: hidden;
    }

    .orc-budget-drawer-tab {
        align-items: center;
        background: #c24a24;
        border: 0;
        border-radius: 4px 0 0 4px;
        bottom: 116px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
        color: #fff;
        cursor: pointer;
        display: inline-flex;
        font-family: "Manrope", sans-serif;
        font-size: 14px;
        font-weight: 800;
        height: 54px;
        justify-content: center;
        padding: 0;
        position: fixed;
        right: 0;
        width: 42px;
        z-index: 105;
    }

    .orc-budget-drawer-tab span {
        transform: rotate(-90deg);
    }

    .orc-budget-drawer-overlay {
        background: rgba(0, 0, 0, 0.58);
        inset: 0;
        position: fixed;
        z-index: 130;
    }

    .orc-budget-drawer-overlay:not([hidden]) {
        display: block;
    }

    .orc-col-right {
        bottom: 0;
        display: block;
        gap: 0;
        max-width: 390px;
        position: fixed;
        right: 0;
        top: 0;
        transform: translateX(100%);
        transition: transform 0.24s ease;
        width: min(390px, 88vw);
        z-index: 140;
    }

    body.orc-budget-drawer-open .orc-col-right {
        transform: translateX(0);
    }

    .orc-col-right .orc-resumo-card {
        border-bottom: 0;
        border-radius: 4px 0 0 4px;
        border-right: 0;
        border-top: 0;
        height: 100%;
        overflow: auto;
        padding: 20px;
    }

    .orc-drawer-close {
        display: inline-flex;
        order: 2;
    }

    .orc-resumo-head {
        align-items: center;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .orc-resumo-head .orc-card-title {
        grid-column: 1;
    }

    .orc-resumo-head .orc-status-pill {
        grid-column: 1 / -1;
        order: 3;
    }

    .orc-list-topbar {
        align-items: center;
        flex-direction: row;
        gap: 12px;
    }

    .orc-list-topbar .orc-topbar-brand {
        flex: 1 1 auto;
        width: auto;
    }

    .orc-list-topbar .orc-logo {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .orc-list-topbar .orc-topbar-actions {
        display: flex;
        flex: 0 0 auto;
        width: auto;
    }

    .orc-topbar-dashboard-link {
        display: none;
    }

    .orc-config-icon-link {
        background: transparent;
        border: 0;
        color: #777;
        height: 38px;
        padding: 0;
        transition: color 0.2s;
        width: 38px;
    }

    .orc-config-icon-link:hover {
        background: transparent;
        color: #ddd;
    }

    .orc-config-icon-link span {
        display: none;
    }

    /* Grids viram coluna única */
    .orc-grid-2,
    .orc-grid-3 {
        grid-template-columns: 1fr;
    }

    /* Material mantém 2 colunas — cabe bem */
    .orc-material-grid {
        grid-template-columns: 1fr 1fr;
    }

    .orc-list-toolbar {
        gap: 10px;
        grid-template-columns: 1fr;
    }

    .orc-list-toolbar .orc-field:first-child {
        min-width: 0;
    }

    .orc-list-toolbar .orc-field:first-child input {
        padding-left: 14px;
        padding-right: 14px;
    }

    .orc-status-filter-field {
        display: flex;
    }

    .orc-list-new-btn {
        border-radius: 999px;
        bottom: 18px;
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.48);
        left: 50%;
        min-height: 48px;
        padding: 0 26px;
        position: fixed;
        transform: translateX(-50%);
        width: min(260px, calc(100vw - 40px));
        z-index: 90;
    }

    .orc-list-row:not(.header) {
        padding: 15px;
    }

    .orc-list-row:not(.header) > [data-label] {
        grid-template-columns: 1fr;
    }

    .orc-list-row:not(.header) > [data-label]::before {
        padding-top: 0;
    }

    .orc-list-row:not(.header) > [data-label] > * {
        grid-column: 1;
    }

    .orc-list-actions-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .orc-icon-btn {
        width: 100%;
    }

    .orc-item-section {
        padding: 18px;
    }

    .orc-item-add {
        gap: 14px;
    }

    .orc-budget-line {
        gap: 12px;
    }

    .orc-budget-line > .orc-qty-control {
        max-width: none;
    }

    .orc-venda-row,
    .orc-custo-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    /* Valor de venda em destaque maior */
    .orc-venda-val {
        font-size: 22px;
    }
}

@media (max-width: 900px) {
    .orc-whatsapp-grid {
        grid-template-columns: 1fr;
    }

    .orc-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .orc-whatsapp-leads-shell {
        padding-bottom: 28px;
    }

    .orc-whatsapp-leads-page .orc-dashboard-title-block {
        display: block;
    }

    .orc-leads-filters .orc-dashboard-date-field {
        display: block;
    }

    .orc-leads-filters .orc-dashboard-mobile-range {
        display: none;
    }

    .orc-leads-filters .orc-btn-primary {
        display: inline-flex;
        justify-content: center;
        width: 100%;
    }

    .orc-whatsapp-row,
    .orc-whatsapp-row.header {
        min-width: 0;
    }

    .orc-whatsapp-row.header {
        display: none;
    }

    .orc-whatsapp-row {
        align-items: stretch;
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .orc-whatsapp-row > [data-label] {
        display: grid;
        gap: 5px;
        grid-template-columns: minmax(84px, 0.34fr) minmax(0, 1fr);
        white-space: normal;
    }

    .orc-whatsapp-row > [data-label]::before {
        color: #555;
        content: attr(data-label);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.7px;
        text-transform: uppercase;
    }

    .orc-home-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Mobile pequeno (≤ 380px) ── */
@media (max-width: 380px) {
    .orc-material-grid {
        grid-template-columns: 1fr;
    }

    .orc-venda-val {
        font-size: 20px;
    }
}

@media print {
    @page {
        margin: 12mm;
        size: A4;
    }

    body.printing-budget {
        background: #fff;
        color: #111;
        display: block;
    }

    body.printing-budget > *:not(.orc-print-sheet) {
        display: none !important;
    }

    body.printing-budget .orc-print-sheet {
        display: block;
        font-family: Arial, sans-serif;
    }

    .orc-print-page {
        color: #111;
        font-size: 11px;
        line-height: 1.35;
    }

    .orc-print-page header {
        align-items: center;
        border-bottom: 2px solid #111;
        display: flex;
        justify-content: space-between;
        padding-bottom: 8px;
    }

    .orc-print-page header strong {
        font-size: 17px;
        text-transform: uppercase;
    }

    .orc-print-page h1 {
        font-size: 24px;
        margin: 18px 0 12px;
        text-transform: uppercase;
    }

    .orc-print-meta,
    .orc-print-totals {
        display: grid;
        gap: 6px 16px;
        grid-template-columns: repeat(2, 1fr);
        margin: 0 0 14px;
    }

    .orc-print-meta p,
    .orc-print-totals p {
        margin: 0;
    }

    .orc-print-meta span,
    .orc-print-totals span {
        color: #555;
        display: block;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.4px;
        text-transform: uppercase;
    }

    .orc-print-description {
        border: 1px solid #ddd;
        margin: 0 0 14px;
        padding: 8px;
    }

    .orc-print-page table {
        border-collapse: collapse;
        margin: 0 0 14px;
        width: 100%;
    }

    .orc-print-page th,
    .orc-print-page td {
        border-bottom: 1px solid #ddd;
        padding: 7px 6px;
        text-align: left;
    }

    .orc-print-page th {
        color: #555;
        font-size: 9px;
        letter-spacing: 0.4px;
        text-transform: uppercase;
    }

    .orc-print-totals {
        border-top: 2px solid #111;
        padding-top: 10px;
    }

    .orc-print-totals .sale {
        font-size: 17px;
        font-weight: 800;
        grid-column: 1 / -1;
        text-align: right;
    }
}

/* ── CONFIG: RÓTULO + PREÇO + EXCLUIR ── */
.orc-config-trigger-tail {
    align-items: center;
    display: inline-flex;
    gap: 10px;
}

.orc-config-row {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 160px) auto;
}

.orc-config-row.orc-config-row-simple {
    grid-template-columns: minmax(0, 1fr) minmax(140px, 200px);
}

.orc-config-row > span,
.orc-config-row > .orc-config-row-label {
    min-width: 0;
}

.orc-config-row-label input[type="text"] {
    background: #141414;
    border: 1px solid #222;
    border-radius: 4px;
    color: #ddd;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    min-height: 44px;
    padding: 0 12px;
    width: 100%;
}

.orc-config-row-label input[type="text"]:focus {
    border-color: #c24a24;
    outline: none;
}

.orc-config-row-delete {
    align-items: center;
    border-color: #3a2222;
    color: #c26a4a;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    min-width: 44px;
    padding: 0;
}

.orc-config-row-delete:hover {
    border-color: #c24a24;
    color: #fff;
}

.orc-config-row-delete svg {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 18px;
}

.orc-config-empty {
    color: #555;
    font-size: 13px;
    margin: 4px 0;
}

.orc-config-add {
    align-items: center;
    border-top: 1px dashed #242424;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 160px) auto;
    margin-top: 18px;
    padding-top: 18px;
}

.orc-config-add input[type="text"] {
    background: #141414;
    border: 1px solid #222;
    border-radius: 4px;
    color: #ddd;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    min-height: 44px;
    padding: 0 12px;
    width: 100%;
}

.orc-config-add input[type="text"]:focus,
.orc-config-add .orc-config-input-wrap:focus-within {
    border-color: #c24a24;
    outline: none;
}

/* ── BUDGET LINE FORA DE LINHA ── */
.orc-budget-line--out .orc-fora-linha {
    color: #c24a24;
}

/* ── MODAL DE CONFIRMAÇÃO ── */
.orc-modal {
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #fff;
    margin: auto;
    max-width: min(440px, calc(100vw - 32px));
    padding: 0;
    width: 100%;
}

.orc-modal::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.orc-modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px 26px 24px;
}

.orc-modal-title {
    font-size: 18px;
    font-weight: 800;
}

.orc-modal-text {
    color: #bdbdbd;
    font-size: 14px;
    line-height: 1.55;
}

.orc-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 6px;
}

.orc-modal-close {
    background: transparent;
    border: 0;
    color: #777;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 10px;
}

.orc-modal-close:hover {
    color: #fff;
}

.orc-modal-close svg {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
    width: 18px;
}

.orc-btn-danger {
    background: #c24a24;
    border: 1px solid #c24a24;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 10px 18px;
    text-transform: uppercase;
    transition: filter 0.2s;
}

.orc-btn-danger:hover {
    filter: brightness(1.1);
}

/* ── MODAL DE ENVIO POR E-MAIL ── */
.orc-email-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 32px;
}

.orc-email-overlay[hidden] {
    display: none;
}

.orc-email-modal {
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    width: min(780px, 100%);
    max-height: min(90vh, 760px);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.orc-email-close {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 10;
    background: transparent;
    border: 0;
    color: #777;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: color 0.2s;
}

.orc-email-close:hover {
    color: #fff;
}

.orc-email-close svg {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 18px;
}

.orc-email-screen {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.orc-email-heading {
    font-size: 14px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Editor do e-mail — visual tipo envelope */
.orc-email-editor-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.orc-email-envelope {
    padding: 20px 24px 14px;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.orc-email-field-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.orc-email-field-label {
    color: #555;
    font-weight: 700;
    min-width: 68px;
    text-align: right;
    flex-shrink: 0;
}

.orc-email-field-value {
    color: #aaa;
}

.orc-email-field-input {
    flex: 1;
    background: #0f0f0f;
    border: 1px solid #222;
    border-radius: 3px;
    color: #ddd;
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    padding: 5px 10px;
    outline: none;
    transition: border-color 0.2s;
}

.orc-email-field-input:focus {
    border-color: #c24a24;
}

/* Corpo da mensagem */
.orc-email-message {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 16px 24px 12px;
    gap: 16px;
}

.orc-email-message textarea {
    flex: 0 0 auto;
    min-height: 130px;
    max-height: 220px;
    background: #0f0f0f;
    border: 1px solid #222;
    border-radius: 4px;
    color: #ddd;
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    line-height: 1.65;
    padding: 14px 16px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}

.orc-email-message textarea:focus {
    border-color: #c24a24;
}

/* Tabela do orçamento dentro do e-mail */
.orc-email-budget {
    background: #0c0c0c;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.orc-email-budget-header {
    background: #1a1a1a;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.orc-email-budget-header svg {
    fill: none;
    height: 16px;
    stroke: #c24a24;
    stroke-width: 2;
    width: 16px;
}

.orc-email-budget-title {
    font-size: 12px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.orc-email-budget-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.orc-email-budget-table thead th {
    padding: 8px 16px 6px;
    border-bottom: 1px solid #1a1a1a;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.orc-email-budget-table thead th:last-child,
.orc-email-budget-table thead th:nth-child(3) {
    text-align: right;
}

.orc-email-budget-table tbody td {
    padding: 7px 16px;
    color: #bbb;
    border-bottom: 1px solid #0f0f0f;
}

.orc-email-budget-table tbody td:last-child,
.orc-email-budget-table tbody td:nth-child(3) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.orc-email-budget-table tbody tr:last-child td {
    border-bottom: 0;
}

.orc-email-budget-totals {
    padding: 10px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid #1a1a1a;
}

.orc-email-budget-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.orc-email-budget-total-row .orc-email-budget-total-val {
    color: #ccc;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.orc-email-budget-total-row.sale {
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid #1a1a1a;
    font-size: 13px;
    color: #ddd;
}

.orc-email-budget-total-row.sale .orc-email-budget-total-val {
    color: #c24a24;
    font-size: 14px;
}

/* Actions */
.orc-email-screen-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid #1a1a1a;
}

/* Tela de configuração — preview */
.orc-email-config-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.orc-email-config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.orc-email-config-preview {
    background: #0f0f0f;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    padding: 16px 20px;
    font-size: 13px;
    line-height: 1.65;
    color: #bbb;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.orc-email-send-type {
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 12px 16px;
    display: flex;
    gap: 24px;
}

.orc-email-send-type legend {
    color: #888;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
    padding: 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.orc-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #ccc;
}

.orc-radio-label input[type="radio"] {
    accent-color: #c24a24;
}

.orc-email-schedule {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.orc-email-config-form .orc-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #ccc;
}

.orc-email-config-form .orc-check input[type="checkbox"] {
    accent-color: #c24a24;
    width: 16px;
    height: 16px;
}

.orc-email-budget-empty {
    color: #444;
    font-size: 12px;
    padding: 14px 16px;
    text-align: center;
}

@media (max-width: 700px) {
    .orc-email-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .orc-email-modal {
        max-height: 92vh;
        border-radius: 12px 12px 0 0;
        width: 100%;
    }

    .orc-email-envelope {
        padding: 16px 16px 12px;
    }

    .orc-email-message {
        padding: 12px 16px;
    }

    .orc-email-message textarea {
        min-height: 100px;
        max-height: 160px;
    }

    .orc-email-budget-table thead th,
    .orc-email-budget-table tbody td {
        padding-left: 10px;
        padding-right: 10px;
    }

    .orc-email-config-grid {
        grid-template-columns: 1fr;
    }

    .orc-email-schedule {
        grid-template-columns: 1fr;
    }

    .orc-email-send-type {
        flex-wrap: wrap;
        gap: 12px;
    }

    .orc-email-config-form {
        padding: 16px;
    }

    .orc-email-screen-actions {
        padding: 12px 16px;
    }
}
