/* ==========================================================================
   COTA FÃCIL â€” ESTILO COMPACTO EM LINHAS (GIMBA CORPORATE)
   ========================================================================== */

.CotaFacilWrapper { font-family: var(--font-family, "Montserrat", sans-serif); margin: 0 auto; padding: 15px 25px 50px; color: var(--cinza-escuro, #4E5458); width: 95%; max-width: 1824px; }

/* CabeÃ§alho Oficial Gimba Flat (Sem caixa cinza, com barra vertical vermelha ao lado do tÃ­tulo) */
.TopPageHeaderFlat { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; padding: 10px 0 24px 0; margin-bottom: 24px; border-bottom: 1px solid #F1F5F9; background: transparent; flex-direction: column; }

.HeaderFlatLeftBox { display: flex; flex-direction: column; }

.BreadcrumbFlat { font-size: 13px; color: #64748B; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-weight: 500; }

    .BreadcrumbFlat .bi-chevron-right { font-size: 9px; color: #94A3B8; }

    .BreadcrumbFlat .active-red { color: var(--vermelho, #D22630); font-weight: 600; }

.TitleFlatWithBar { font-size: 24px; font-weight: 700; color: #1E293B; margin: 0 0 6px 0; display: flex; align-items: center; gap: 10px; line-height: 1.2; }

.RedVerticalBar { display: inline-block; width: 4px; height: 24px; background-color: var(--vermelho, #D22630); border-radius: 2px; }

.SubtitleFlat { font-size: 13px; color: #64748B; margin: 0; padding-left: 14px; font-weight: 400; line-height: 1.4; }

.HeaderFlatRightBox { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.BtnUploadFlatRed { background: var(--vermelho, #D22630); color: #ffffff; border: none; padding: 11px 22px; border-radius: 6px; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all 200ms; box-shadow: 0 4px 10px rgba(210, 38, 48, 0.15); }

    .BtnUploadFlatRed:hover { background: #B81D26; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(210, 38, 48, 0.25); }

.BtnSampleCompact { background: #FFFBEB; color: #D97706; border: 1px solid #F59E0B; padding: 9px 15px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background 200ms; }

    .BtnSampleCompact:hover { background: #FEF3C7; }

.UploadStatusLine { font-size: 13px; color: #15803D; font-weight: 600; background: #DCFCE7; padding: 6px 12px; border-radius: 6px; display: none; align-items: center; gap: 6px; }

    .UploadStatusLine.active { display: inline-flex; }

/* ==========================================================================
   LAYOUT DO WORKSPACE EM DUAS COLUNAS
   ========================================================================== */
.CotaFacilWorkspace { display: none; grid-template-columns: minmax(0, 1fr) 680px; gap: 24px; align-items: start; }

@media (max-width: 1100px) {
    .CotaFacilWorkspace { grid-template-columns: 1fr; }
}

.LeftColumn { background: transparent; border: none; border-radius: 0; overflow: visible; }

.LeftHeaderLine { background: transparent; border: none; padding: 12px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }

    .LeftHeaderLine h3 { font-size: 16px; font-weight: 700; color: #333333; margin: 0; display: flex; align-items: center; gap: 8px; }

.FilterButtonsBox { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.BtnAddAllInline { background: var(--verde, #27AE60); color: #ffffff; border: none; height: 34px; padding: 0 14px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: all 150ms; box-shadow: 0 2px 5px rgba(39, 174, 96, 0.2); }

    .BtnAddAllInline:hover { background: #219653; transform: translateY(-1px); }

    .BtnAddAllInline:disabled { background: #CBD5E1; cursor: not-allowed; box-shadow: none; transform: none; }

.FilterBtnLine { background: #ffffff; border: 1px solid #CBD5E1; color: #475569; height: 34px; padding: 0 14px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all 150ms; }

    .FilterBtnLine.active,
    .FilterBtnLine:hover { background: var(--cinza-escuro, #4E5458); color: #ffffff; border-color: var(--cinza-escuro, #4E5458); }

/* LISTA DE PRODUTOS EM CARDS (PADRÃƒO PRINT GIMBA image_1.png) */
.ProductRowsContainer { max-height: 720px; overflow-y: auto; padding: 4px 2px; margin: 30px 0 0 0; }

/* Cada Linha / Card Horizontal de Produto */
.ProductRow { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: #ffffff; border-bottom: 1px solid #E2E8F0; margin-bottom: 12px; gap: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03); transition: all 150ms; }

    .ProductRow:hover { border-color: #CBD5E1; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); }

    .ProductRow.is-added { background: #FAFCFA; border-color: #A7F3D0; }

    .ProductRow.is-unavailable { background: #FFFEFA; border-color: #FDE68A; }

/* Coluna da Foto e Nome do Produto (Esquerda do Item) */
.RowItemLeft { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }

.RowThumb { width: 90px; height: 90px; object-fit: contain; border: none; background: transparent; flex-shrink: 0; }

.RowThumbNotFound { width: 90px; height: 90px; background: #F8FAFC; border: 1px dashed #CBD5E1; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #94A3B8; font-size: 26px; flex-shrink: 0; }

.RowTitleBox { flex: 1; min-width: 0; }

.RowEncontradoTitle { font-size: 14px; font-weight: 700; color: #0F172A; margin-bottom: 3px; line-height: 1.35; }

    .RowEncontradoTitle.unavail { color: #DC2626; font-weight: 600; }

.RowSolicitadoSub { font-size: 11.5px; font-weight: 500; color: #64748B; padding-bottom: 3px; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; border-bottom: 1px dashed #cfcfcf; }

    .RowSolicitadoSub span { font-weight: 600; color: #64748B; margin-right: 4px; }

    .RowSolicitadoSub strong { font-weight: 700; color: #334155; }

.RowStatusText { font-size: 11px; font-weight: 600; margin-top: 2px; }

    .RowStatusText.available { color: #15803D; }

    .RowStatusText.unavailable { color: #B45309; }

.BadgeUnavailStatus { font-size: 12px; font-weight: 700; color: #94A3B8; background: #F8FAFC; padding: 5px 12px; border-radius: 6px; border: 1px solid #E2E8F0; display: inline-flex; align-items: center; gap: 6px; }

/* Coluna do PreÃ§o, Qtd e BotÃ£o em Linha (Direita do Item) */
.RowItemRight { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.RowPriceBox { text-align: right; min-width: 95px; }

.RowPriceValue { font-size: 15px; font-weight: 800; color: #1E293B; display: block; }

.RowPriceUnitLabel { display: block; font-size: 10px; font-weight: 500; color: #94A3B8; margin-top: 1px; }

.RowPricePix { font-size: 10px; color: #15803D; font-weight: 600; }

.RowQtyBox { display: flex; align-items: center; border: 1px solid #CBD5E1; border-radius: 4px; height: 30px; }

.RowQtyBtn { background: #F8FAFC; border: none; width: 26px; height: 100%; font-weight: 700; color: #334155; cursor: pointer; }

.RowQtyInput { width: 36px; height: 100%; border: none; border-left: 1px solid #CBD5E1; border-right: 1px solid #CBD5E1; text-align: center; font-size: 12px; font-weight: 700; color: #1E293B; }

.BtnRowAction { background: var(--verde, #27AE60); color: #ffffff; border: none; padding: 0 12px; height: 30px; border-radius: 4px; font-size: 12px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; transition: background 150ms; }

    .BtnRowAction:hover { background: #219653; }

    .BtnRowAction.is-added { background: #10B981; }

.BtnRowSimilar { background: #F59E0B; color: #ffffff; border: none; padding: 0 12px; height: 30px; border-radius: 4px; font-size: 12px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; transition: background 150ms; }

    .BtnRowSimilar:hover { background: #D97706; }

/* Gaveta Sanfona de Semelhantes Em Linha (Expande abaixo do item) */
.SimilarInlineDrawer { background: #FEF3C7; border-bottom: 1px solid #FCD34D; padding: 10px 18px 12px 50px; display: none; }

    .SimilarInlineDrawer.open { display: block; }

.SimilarDrawerTitle { font-size: 11px; font-weight: 700; color: #92400E; margin-bottom: 8px; }

.SimilarInlineList { display: flex; flex-direction: column; gap: 8px; }

.SimilarInlineRow { display: flex; align-items: center; justify-content: space-between; background: #ffffff; border: 1px solid #FCD34D; border-radius: 4px; padding: 6px 12px; gap: 10px; }

    .SimilarInlineRow img { width: 34px; height: 34px; object-fit: contain; }

.SimilarInlineTitle { font-size: 12px; font-weight: 700; color: #1E293B; flex: 1; }

.SimilarInlinePrice { font-size: 13px; font-weight: 800; color: #1E293B; margin-right: 10px; }

.BtnChooseSimilarLine { background: #D97706; color: #ffffff; border: none; padding: 5px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; cursor: pointer; }

    .BtnChooseSimilarLine:hover { background: #B45309; }

/* ==========================================================================
   COLUNA DA DIREITA: RESUMO DO PEDIDO (ESTILO IDÃŠNTICO AO PRINT GIMBA image_1.png)
   ========================================================================== */
.RightColumn { background: #ffffff; border: 1px solid #E2E8F0; border-radius: 8px; position: sticky; top: 90px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04); }

.RightHeaderLine { background: #ffffff; color: #333333; padding: 20px 20px 10px 20px; display: flex; align-items: center; justify-content: space-between; }

    .RightHeaderLine h3 { font-size: 16px; font-weight: 700; color: #333333; margin: 0; letter-spacing: -0.2px; }

.RightRowsContainer { max-height: 500px; overflow-y: auto; padding: 10px 20px; display: flex; flex-direction: column; gap: 10px; }

.RightRowItem { border: none; border-bottom: 1px solid #E2E8F0; background: transparent; padding: 16px 4px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }

.RightRowLeft { display: flex; align-items: flex-start; gap: 14px; flex: 1; min-width: 0; }

    .RightRowLeft img { width: 54px; height: 54px; object-fit: contain; background: #ffffff; border: 1px solid #E2E8F0; border-radius: 6px; padding: 2px; flex-shrink: 0; }

.RightRowInfo { flex: 1; min-width: 0; }

.RightRowTitle { font-size: 14px; font-weight: 700; color: #1E293B; margin: 0 0 6px 0; line-height: 1.4; height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* BotÃ£o mÃ­cone premium para alternar Mais Dados no resumo do pedido */
.BtnMicroMoreData { background: linear-gradient(135deg, #ffffff 0%, #F8FAFC 100%); border: 1px solid #CBD5E1; color: #334155; font-size: 11px; font-weight: 700; cursor: pointer; padding: 4px 10px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); transition: all 150ms ease; letter-spacing: -0.1px; outline: none; }

    .BtnMicroMoreData i { color: var(--vermelho, #D22630); font-size: 11px; transition: transform 200ms ease; }

    .BtnMicroMoreData:hover { background: #ffffff; border-color: var(--vermelho, #D22630); color: var(--vermelho, #D22630); box-shadow: 0 2px 6px rgba(210, 38, 48, 0.12); transform: translateY(-1px); }

.RightRowMoreDetails { display: none; flex-direction: column; gap: 6px; background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%); border: 1px solid #CBD5E1; border-left: 3px solid var(--vermelho, #D22630); border-radius: 6px; padding: 8px 12px; margin-top: 8px; font-size: 11px; color: #334155; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); animation: fadeInSlideDown 180ms ease-out; }

@keyframes fadeInSlideDown {
    from { opacity: 0; transform: translateY(-4px); }

    to { opacity: 1; transform: translateY(0); }
}

.MoreDetailRow { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

    .MoreDetailRow strong { color: #1E293B; font-weight: 600; }

.RightRowPriceColumn { display: flex; flex-direction: column; align-items: flex-end; min-width: 115px; }

.RightRowUnitPrice { font-size: 11px; color: #64748B; font-weight: 500; margin-bottom: 2px; text-align: right; }

.RightRowRight { display: flex; align-items: flex-start; gap: 18px; flex-shrink: 0; padding-top: 4px; }

/* ExibiÃ§Ã£o Demonstrativa de Quantidade no Resumo do Pedido (Sem ediÃ§Ã£o / Sem botÃµes -/+) */
.RightRowQtyBadge { background: #F8FAFC; border: 1px solid #CBD5E1; border-radius: 6px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: #334155; white-space: nowrap; text-align: center; min-width: 55px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02); }

.RightRowPriceTotal { font-size: 15px; font-weight: 800; color: #1E293B; text-align: right; }

.BtnTrashRight { background: transparent; border: none; color: #94A3B8; font-size: 16px; cursor: pointer; padding: 6px; border-radius: 6px; transition: all 150ms; }

    .BtnTrashRight:hover { background: #FEE2E2; color: var(--vermelho, #D22630); }

.SubstituidoTagLine { font-size: 9px; background: #FEF3C7; color: #92400E; font-weight: 700; padding: 1px 4px; border-radius: 2px; display: inline-block; }

/* RodapÃ© financeiro da direita (Resumo do pedido) */
.RightFooterLine { background: #ffffff; padding: 10px 20px 20px 20px; }

.SumRow { display: flex; justify-content: space-between; font-size: 13px; color: #666666; margin-bottom: 8px; }

    .SumRow.pix { color: #15803D; font-weight: 600; }

.DividerSummary { border-top: 1px solid #E2E8F0; margin: 14px 0; }

.SumRow.total { font-size: 16px; font-weight: 800; color: #333333; margin-bottom: 20px; }

.ActionBtnsGroup { display: flex; flex-direction: column; gap: 10px; }

/* BotÃ£o Principal Fechar Pedido / Gravar */
.BtnSaveAction { background: var(--vermelho, #D22630); color: #ffffff; border: none; padding: 14px; border-radius: 6px; font-size: 15px; font-weight: 700; cursor: pointer; width: 100%; text-align: center; transition: background 150ms; }

.ActionBtnsGroup { display: flex; flex-direction: row; gap: 10px; width: 100%; }

.BtnSaveQuoteFull,
.BtnSendCartFull { flex: 1; min-width: 0; color: #ffffff; border: none; font-size: 14px; font-weight: 700; padding: 14px 10px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 150ms; }

.BtnSaveQuoteFull { background: var(--vermelho, #D22630); box-shadow: 0 4px 10px rgba(210, 38, 48, 0.2); }

.BtnSendCartFull { background: var(--verde, #27AE60); box-shadow: 0 4px 10px rgba(39, 174, 96, 0.2); }

    .BtnSaveQuoteFull i,
    .BtnSendCartFull i { font-size: 17px; }

.BtnSaveAction:hover,
.BtnSaveQuoteFull:hover { background: #B81D26 !important; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(210, 38, 48, 0.3) !important; }

.BtnSendCartFull:hover { background: #219653 !important; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(39, 174, 96, 0.3) !important; }

/* BotÃµes SecundÃ¡rios Salvar CotaÃ§Ã£o / Negociar lado a lado */
.SecondaryBtnsRow { display: flex; gap: 10px; width: 100%; }

.BtnCartAction,
.BtnNegociarAction { background: #ffffff; color: var(--vermelho, #D22630); border: 1px solid var(--vermelho, #D22630); padding: 10px; border-radius: 6px; font-size: 13px; font-weight: 700; cursor: pointer; flex: 1; text-align: center; transition: all 150ms; }

    .BtnCartAction:hover,
    .BtnNegociarAction:hover { background: #FFF5F5; }

.EmptyStateLine { text-align: center; padding: 35px 15px; color: #64748B; }

/* Modal de Sucesso */
.ModalOverlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.65); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 10000; }

    .ModalOverlay.active { display: flex; }

/* Modal Oficial Flat Corporate ADM (Sem Ã­cone de carrinho, com barra vertical no tÃ­tulo) */
.ModalCardFlat { background: #ffffff; border: 1px solid #E2E8F0; border-radius: 12px; width: 90%; max-width: 520px; box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25); overflow: hidden; font-family: var(--font-family, "Montserrat", sans-serif); animation: modalFadeIn 250ms ease-out; }

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }

    to { opacity: 1; transform: scale(1) translateY(0); }
}

.ModalFlatHeader { background: #F8FAFC; border-bottom: 1px solid #F1F5F9; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; }

.ModalHeaderTitleBox { display: flex; align-items: center; gap: 12px; }

    .ModalHeaderTitleBox h3 { font-size: 19px; font-weight: 700; color: #1E293B; margin: 0; }

.BtnCloseModal { background: transparent; border: none; color: #94A3B8; font-size: 18px; cursor: pointer; padding: 4px; transition: color 150ms; }

    .BtnCloseModal:hover { color: var(--vermelho, #D22630); }

.ModalFlatBody { padding: 24px; text-align: left; }

#ModalDescEl { font-size: 14px; color: #475569; line-height: 1.55; margin: 0 0 20px 0; }

.ModalSummaryBox { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 8px; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }

.ModalSummaryRow { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }

.ModalSummaryLabel { color: #64748B; font-weight: 500; }

.ModalSummaryValue { color: #1E293B; font-weight: 700; font-family: monospace; font-size: 14px; }

    .ModalSummaryValue.red { color: var(--vermelho, #D22630); font-size: 16px; font-family: var(--font-family, "Montserrat", sans-serif); }

.BadgeStatusModal { background: #DCFCE7; color: #15803D; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 4px; display: inline-flex; align-items: center; gap: 6px; }

.ModalFlatFooter { background: #F8FAFC; border-top: 1px solid #F1F5F9; padding: 16px 24px; display: flex; justify-content: flex-end; gap: 12px; }

.BtnCancelModal { background: #ffffff; border: 1px solid #CBD5E1; color: #475569; padding: 11px 22px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 150ms; }

    .BtnCancelModal:hover { background: #F1F5F9; color: #1E293B; }

.LinhaChamadaCota { margin: 1em auto; background: var(--branco); display: flex; align-items: center; justify-content: space-between; padding: 15px 0; width: 100%; }

/* Card Explicativo do Cota FÃ¡cil */
.CardExplicativoCota { background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%); border-radius: 8px; padding: 18px 22px; margin-bottom: 44px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03); transition: all 200ms ease; }

.CardExplicativoHeader { display: flex; justify-content: space-between; align-items: center; }

.CardExplicativoTitle { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: #1E293B; cursor: pointer; user-select: none; transition: color 150ms ease; }

    .CardExplicativoTitle:hover { color: var(--vermelho, #D22630); }

    .CardExplicativoTitle i { color: var(--vermelho, #D22630); font-size: 25px; transition: transform 150ms ease; }

    .CardExplicativoTitle:hover i { transform: scale(1.1); }

.CardExplicativoActions button { height: 40px; padding: 0 18px; font-size: 13px; font-weight: 700; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

.BtnToggleExplicativo { background: rgba(210, 38, 48, 0.06); border: 1px solid rgba(210, 38, 48, 0.18); color: var(--vermelho, #D22630); cursor: pointer; transition: all 150ms; height: 32px; padding: 0 12px; font-size: 13px; font-weight: 600; margin-left: 8px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

    .CardExplicativoTitle:hover .BtnToggleExplicativo,
    .BtnToggleExplicativo:hover { background: rgba(210, 38, 48, 0.14); border-color: rgba(210, 38, 48, 0.35); color: #B81D26; }

.CardExplicativoSteps { display: none; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 16px 0 0 0; }

.ExplicativoStepBox { background: #ffffff; border: 1px solid #E2E8F0; border-radius: 6px; padding: 14px; display: flex; align-items: flex-start; gap: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02); transition: transform 150ms, box-shadow 150ms; }

    .ExplicativoStepBox:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06); border-color: #CBD5E1; }

.StepNumberBadge { background: #FEE2E2; color: var(--vermelho, #D22630); font-size: 13px; font-weight: 800; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.StepContent strong { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #1E293B; margin-bottom: 4px; }

    .StepContent strong i { color: #64748B; }

.StepContent p { font-size: 12px; color: #64748B; margin: 0; line-height: 1.4; }

/* ==========================================================================
   REGRAS EXTRAÃDAS DO HTML (SUBSTITUIÃ‡ÃƒO DE ESTILOS INLINE)
   ========================================================================== */
.CardExplicativoActions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.LeftHeaderLine h3 i { color: var(--vermelho, #D22630); }

#CounterTotal { font-size: 12px; font-weight: normal; color: #64748B; }

.FilterButtonsBox { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.EmptyStateLine i.bi-table { font-size: 32px; color: #CBD5E1; display: block; margin-bottom: 8px; }

.EmptyStateActionBox { margin-top: 16px; }

    .EmptyStateActionBox .BtnSampleCompact { padding: 10px 20px; font-size: 13px; }

.BtnClearAction { font-size: 12px; color: #888888; text-decoration: underline; font-weight: normal; margin: 0; }

    .BtnClearAction:hover { color: var(--vermelho, #D22630); }

#QuoteItemsList .EmptyStateLine { padding: 30px 10px; }

    #QuoteItemsList .EmptyStateLine p { font-size: 13px; margin: 0; color: #666666; }

.SumRow.total { padding-top: 4px; border-top: none; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; }

    .SumRow.total span { font-size: 15px; font-weight: 700; color: #1E293B; }

    .SumRow.total strong { font-size: 19px; color: #1E293B; font-weight: 800; }

/* ==========================================================================
   RESPONSIVIDADE E BREAKPOINTS (MEDIA QUERIES)
   ========================================================================== */

/* 1. TELAS GRANDES / NOTEBOOKS ACESSÃVEIS (atÃ© 1280px) */
@media (max-width: 1280px) {
    .CotaFacilWorkspace { grid-template-columns: minmax(0, 1fr) 520px; gap: 20px; }

    .RowThumb { width: 80px; height: 80px; }
}

/* 2. TABLETS E NOTEBOOKS MENORES (atÃ© 1024px) */
@media (max-width: 1024px) {
    .CotaFacilWorkspace { grid-template-columns: 1fr; /* Muda para 1 coluna inteira: lista em cima, resumo embaixo */ gap: 32px; }

    .RightColumn { width: 100%; max-width: 100%; position: static; margin-top: 16px; }

    .ProductRowsContainer { max-height: none; /* Em tela de 1 coluna, deixa a lista expandir sem rolagem interna espremida */ }
}

/* 3. TABLETS PORTRAITS E SMARTPHONES GRANDES (atÃ© 768px) */
@media (max-width: 768px) {
    .CardExplicativoHeader { flex-direction: column; align-items: flex-start; gap: 14px; }

    .CardExplicativoActions { width: 100%; }

        .CardExplicativoActions button { width: 100%; }

    .LeftHeaderLine { flex-direction: column; align-items: flex-start; gap: 12px; }

    .FilterButtonsBox { width: 100%; justify-content: flex-start; }

    /* Linhas de Produtos - Vira Card Compacto Vertical no Mobile */
    .ProductRow { flex-direction: column; align-items: stretch; gap: 14px; padding: 14px; }

    .RowItemLeft { width: 100%; gap: 12px; }

    .RowItemRight { width: 100%; justify-content: space-between; border-top: 1px dashed #E2E8F0; padding-top: 12px; }

    .RowPriceBox { text-align: left; }
}

/* 4. SMARTPHONES PEQUENOS (atÃ© 576px) */
@media (max-width: 576px) {
    .ActionBtnsGroup { flex-direction: column; gap: 10px; }

    .BtnSaveQuoteFull,
    .BtnSendCartFull { width: 100%; }

    .RowThumb { width: 50px; height: 50px; }

    .RowTitle { font-size: 13px; }

    .RightHeaderLine { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ==========================================================================
   ESTILOS DO HISTÃ“RICO DE ARQUIVOS E PLANILHAS PROCESSADAS
   ========================================================================== */
.CardExplicativoActions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.BtnHistoryFlat { background: #ffffff; color: #334155; border: 1px solid #CBD5E1; padding: 11px 18px; border-radius: 6px; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all 200ms ease; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); }

    .BtnHistoryFlat:hover { background: #F8FAFC; border-color: #94A3B8; color: #0F172A; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06); }

.BadgeHistoryCount { background: #E2E8F0; color: #334155; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 12px; margin-left: 2px; }

.ModalLarge { max-width: 780px !important; width: 92% !important; }

.HistoryCardItem { background: #ffffff; border: 1px solid #E2E8F0; border-radius: 8px; padding: 16px; margin-bottom: 12px; transition: all 180ms ease; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02); }

    .HistoryCardItem:hover { border-color: #CBD5E1; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); }

.HistoryCardHeader { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 10px; }

.HistoryTitleBox { display: flex; align-items: center; gap: 12px; }

.HistoryIcon { font-size: 24px; color: var(--vermelho, #D22630); }

.HistoryFileName { font-size: 15px; color: #1E293B; display: block; font-weight: 700; }

.HistoryDateText { font-size: 11px; color: #64748B; display: flex; align-items: center; gap: 4px; margin-top: 2px; }

.HistoryMetricsGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; background: #F8FAFC; padding: 12px; border-radius: 6px; border: 1px solid #F1F5F9; }

@media (max-width: 600px) {
    .HistoryMetricsGrid { grid-template-columns: repeat(2, 1fr); }
}

.MetricBox { display: flex; flex-direction: column; align-items: center; text-align: center; }

.MetricLabel { font-size: 11px; color: #64748B; font-weight: 600; margin-bottom: 4px; }

.MetricVal { font-size: 16px; font-weight: 800; }

    .MetricVal.total { color: #334155; }
    .MetricVal.found { color: #15803D; }
    .MetricVal.unavail { color: #D97706; }
    .MetricVal.selected { color: var(--vermelho, #D22630); }

.BtnClearHistory { background: transparent; border: 1px solid #CBD5E1; color: #64748B; padding: 8px 14px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all 150ms; }

    .BtnClearHistory:hover { background: #FEE2E2; border-color: #FCA5A5; color: #DC2626; }

/* ==========================================================================
   CARD DE RESUMO DA PLANILHA PROCESSADA E COMPARAÃ‡ÃƒO DE PRODUTOS
   ========================================================================== */
.FileSummaryHeaderCard { background: #ffffff; border: 1px solid #E2E8F0; border-radius: 8px; padding: 14px 18px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; gap: 20px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02); }

@media (max-width: 900px) {
    .FileSummaryHeaderCard { flex-direction: column; align-items: flex-start; }
}

.FileSummaryMainInfo { display: flex; align-items: center; gap: 12px; }

.FileSummaryIcon { font-size: 26px; color: #64748B; }

.FileSummaryTitle { margin: 0; font-size: 14px; font-weight: 600; color: #475569; }

    .FileSummaryTitle span { color: #0F172A; font-weight: 700; }

.FileSummarySub { font-size: 12px; color: #94A3B8; }

.FileSummaryBadges { display: flex; align-items: center; gap: 10px; }

.SummaryBadgeBox { background: #F8FAFC; border: 1px solid #E2E8F0; padding: 6px 14px; border-radius: 6px; text-align: center; min-width: 110px; }

.BadgeNumber { display: block; font-size: 16px; font-weight: 800; color: #1E293B; line-height: 1.1; }

.BadgeLabel { font-size: 11px; color: #64748B; font-weight: 600; }

/* BOTÃƒO E GAVETA DE 'MAIS DADOS' DO PRODUTO GIMBA (ESTILO IDENTICO AO PRINT) */
.BtnToggleFileText { background: #F8FAFC; border: 1px solid #CBD5E1; color: #334155; font-size: 11px; font-weight: 700; cursor: pointer; padding: 4px 10px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; transition: all 180ms ease; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02); }

    .BtnToggleFileText:hover { background: #F1F5F9; border-color: #94A3B8; color: var(--vermelho, #D22630); }

    .BtnToggleFileText i { font-size: 10px; color: var(--vermelho, #D22630); transition: transform 180ms ease; }

    .BtnToggleFileText.active { background: #FEF2F2; border-color: #FCA5A5; color: var(--vermelho, #D22630); }

.FileTextDrawer { display: none; flex-direction: column; gap: 6px; background: #F8FAFC; border: 1px solid #E2E8F0; border-left: 3px solid var(--vermelho, #D22630); border-radius: 6px; padding: 10px 14px; margin-top: 8px; width: 280px; max-width: 100%; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03); animation: fadeInSlideDown 150ms ease-out; }

.FileTextDetailRow { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 12px; }

.DetailLabel { color: #475569; font-weight: 500; }

.DetailVal { color: #1E293B; font-weight: 700; }
