/* NETSOLSA One 1.68.26 · Listados de ventas */
.one-sales-table{width:100%;table-layout:auto;border-collapse:collapse;font-size:12px}
.one-sales-table th,.one-sales-table td{padding:8px 9px!important;vertical-align:middle;overflow-wrap:normal}
.one-sales-table thead th{background:#edf3fa}
.one-sales-table td.num,.one-sales-table th.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.one-sales-table td b{font-weight:700}
.one-sales-table tbody tr:nth-child(even){background:rgba(25,75,125,.025)}
.one-status,.one-mail-indicator{display:inline-block;padding:4px 7px;border-radius:6px;font-weight:700;font-size:11px;white-space:nowrap}
.one-status-draft{background:#edf0f4;color:#566273}.one-status-sent{background:#e1efff;color:#155ca9}.one-status-accepted{background:#e0f5e9;color:#176c3d}.one-status-invoiced{background:#efe6ff;color:#6535a0}.one-status-cancelled{background:#f1e9e9;color:#87434a}.one-status-rejected{background:#ffe2df;color:#a52f29}
.one-mail-indicator.is-sent{background:#e1f6e9;color:#176b3a}.one-mail-indicator.is-unsent{background:#edf0f4;color:#596777}
.one-mail-detail{position:relative}.one-mail-detail summary{cursor:pointer;list-style:none}.one-mail-detail summary::-webkit-details-marker{display:none}
.one-mail-popover{display:none;position:absolute;right:0;top:100%;z-index:25;width:270px;max-width:80vw;padding:12px;background:#fff;border:1px solid #cbd8e7;border-radius:9px;box-shadow:0 8px 24px #17345930;color:#25374d;white-space:normal}
.one-mail-detail[open] .one-mail-popover{display:grid;gap:5px}.one-mail-popover small{display:block;line-height:1.45}
.one-sales-table-wrap,.portal-invoice-scroll{overflow-x:auto;overflow-y:visible}
@media(max-width:1250px){.one-sales-table{min-width:1080px}}

/* v1.68.27: restaurar flujo de filtros y evitar que la tabla invada su espacio */
.sales-quotation-filters{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;position:static!important;float:none!important;clear:both!important;width:100%!important;height:auto!important;min-height:0!important;margin:12px 0 18px!important;align-items:end;gap:10px}
.sales-quotation-filters>label{display:flex!important;flex-direction:column;min-width:0}
.sales-quotation-filters input,.sales-quotation-filters select{width:100%;min-width:0}
.sales-quotation-filters .filter-actions{display:flex;gap:8px;align-items:end}
.one-sales-table-wrap{display:block!important;clear:both!important;width:100%;height:auto!important;overflow-x:auto;overflow-y:visible}
.one-sales-table{min-width:1100px!important;width:100%!important;table-layout:auto!important}
.one-sales-table th,.one-sales-table td{padding:9px 8px!important;white-space:normal;vertical-align:middle}
.one-sales-table td.num,.one-sales-table th.num{white-space:nowrap}
.one-quotation-table td:nth-child(3){min-width:165px;max-width:280px}
.one-quotation-table td:nth-child(5),.one-invoice-table td:nth-child(9),.one-invoice-table td:nth-child(10){white-space:nowrap}
.one-status{display:inline-block!important;border-radius:7px!important;padding:4px 8px!important;font-weight:700!important}
.one-status-draft{background:#edf0f4!important;color:#566273!important}.one-status-sent{background:#e1efff!important;color:#155ca9!important}.one-status-accepted{background:#e0f5e9!important;color:#176c3d!important}.one-status-invoiced{background:#efe6ff!important;color:#6535a0!important}.one-status-cancelled{background:#f1e9e9!important;color:#87434a!important}.one-status-rejected{background:#ffe2df!important;color:#a52f29!important}
.one-invoice-table .state-abierto{background:#e4efff!important;color:#125ba1!important}.one-invoice-table .state-pagado{background:#def5e7!important;color:#176b3d!important}.one-invoice-table .state-cancelado{background:#ffe1e1!important;color:#922d2d!important}
.one-invoice-table .sri-autorizado{background:#dff6e9!important;color:#176b3d!important}.one-invoice-table .sri-rechazado{background:#ffe1e1!important;color:#922d2d!important}.one-invoice-table .sri-pendiente{background:#fff1d5!important;color:#835a0d!important}
.portal-invoice-toolbar .portal-environment-filter{display:flex;flex-wrap:wrap;align-items:end;gap:10px}
@media(max-width:900px){.sales-quotation-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:520px){.sales-quotation-filters{grid-template-columns:1fr!important}}

/* v1.68.28: mejoras seguras de lectura y filtros */
.one-advanced-filters{display:block;clear:both;margin:12px 0;border:1px solid #d8e3f1;border-radius:12px;padding:9px 12px;background:#f7faff}
.one-advanced-filters>summary{cursor:pointer;font-weight:700;color:#215394}
.one-advanced-filters .sales-quotation-filters{position:static!important;float:none!important;transform:none!important;margin-top:12px!important;min-height:0!important}
.one-list-toolbar{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin:12px 0}
.one-list-toolbar label{display:flex;align-items:center;gap:7px}
.one-list-toolbar select{width:auto;min-width:110px}
.one-quotation-table [hidden],.one-invoice-table [hidden]{display:none!important}
.one-quotation-table[data-density="compact"] td{padding:5px 7px!important}
.one-quotation-table[data-density="comfortable"] td{padding:15px 9px!important}
.one-status-badge{display:inline-block!important;padding:4px 9px!important;border-radius:20px!important;font-size:11px!important;font-weight:800!important;letter-spacing:.02em}
.one-state-draft{background:#edf0f4!important;color:#46566b!important}
.one-state-sent{background:#e1f0ff!important;color:#1258a2!important}
.one-state-approved{background:#ddf7e7!important;color:#126b3e!important}
.one-state-invoiced{background:#eee4ff!important;color:#6534a6!important}
.one-state-cancelled,.one-state-rejected{background:#ffe3e4!important;color:#a22230!important}
.one-table-summary{padding:12px;text-align:right;font-weight:750;background:#f4f8fd;border-radius:0 0 10px 10px}
.one-due-badge{display:block;width:max-content;margin-top:4px;padding:3px 7px;border-radius:12px;font-size:10px;font-weight:750}
.one-due-badge.late{background:#ffe1e1;color:#a21d2a}.one-due-badge.soon{background:#fff1cc;color:#8b5600}.one-due-badge.ok{background:#dff7e8;color:#176a3e}
.one-outstanding{font-weight:800!important;color:#a14b0c!important}
.one-invoice-quick-filters{display:flex;gap:8px;margin:10px 0;flex-wrap:wrap}
.one-invoice-quick-filters button{border:1px solid #c6d8ed;border-radius:18px;padding:6px 12px;background:#fff;color:#1e518b;cursor:pointer}
.one-invoice-quick-filters button.active{background:#1e6dcc;color:white}
@media(max-width:767px){.one-sales-table-wrap,.portal-invoice-scroll{overflow-x:auto!important}.one-sales-table{min-width:960px!important}}

/* v1.68.30: restore badges, email indicators, readable actions */
.one-quotation-table .one-status{border-radius:999px!important;padding:5px 10px!important;font-weight:800!important;font-size:11px!important;display:inline-block!important;white-space:nowrap}
.one-quotation-table .one-status-draft{background:#e9edf2!important;color:#485566!important}
.one-quotation-table .one-status-sent{background:#dcecff!important;color:#1558a0!important}
.one-quotation-table .one-status-accepted{background:#d9f5e3!important;color:#116739!important}
.one-quotation-table .one-status-invoiced{background:#eee2ff!important;color:#6331a1!important}
.one-quotation-table .one-status-cancelled{background:#ffe2e5!important;color:#a22132!important}
.one-sales-table .one-mail-indicator{display:inline-flex!important;align-items:center;gap:5px;border-radius:999px!important;padding:5px 9px!important;font-weight:750!important;white-space:nowrap}
.one-sales-table .one-mail-indicator.is-sent{background:#dcf7e5!important;color:#116a3b!important}
.one-sales-table .one-mail-indicator.is-unsent{background:#edf0f4!important;color:#4e5b6d!important}
.one-invoice-table th,.one-invoice-table td{padding:8px 9px!important}
.one-invoice-table th:nth-child(5),.one-invoice-table td:nth-child(5){min-width:105px}
.one-quotation-table .row-actions-menu{position:relative}
.one-quotation-table .row-actions-menu>summary{cursor:pointer;white-space:nowrap}
.one-quotation-table .row-actions-menu[open]{z-index:30}
.one-quotation-table .row-actions-menu>div{z-index:40}
.one-quotation-table .one-mail-detail[open]{z-index:50}

/* v1.68.31: table geometry, explicit invoice mail, compact toolbar */
.one-sales-table-wrap,.portal-invoice-scroll{max-width:100%;overflow-x:auto!important}
.one-sales-table{table-layout:fixed!important;min-width:0!important;width:100%!important}
.one-sales-table th,.one-sales-table td{padding:7px 8px!important;vertical-align:middle!important;overflow-wrap:break-word!important}
.one-quotation-table th:nth-child(1){width:8%}.one-quotation-table th:nth-child(2){width:9%}.one-quotation-table th:nth-child(3){width:16%}.one-quotation-table th:nth-child(4){width:11%}.one-quotation-table th:nth-child(5){width:9%}.one-quotation-table th:nth-child(6){width:10%}.one-quotation-table th:nth-child(7){width:9%}.one-quotation-table th:nth-child(8){width:8%}.one-quotation-table th:nth-child(9){width:7%}.one-quotation-table th:nth-child(10){width:8%}.one-quotation-table th:nth-child(11){width:5%}
.one-quotation-table td:nth-child(3){min-width:0!important;max-width:none!important}
.one-invoice-table th:nth-child(1){width:18%}.one-invoice-table th:nth-child(2){width:9%}.one-invoice-table th:nth-child(3){width:9%}.one-invoice-table th:nth-child(4){width:12%}.one-invoice-table th:nth-child(5){width:9%}.one-invoice-table th:nth-child(6){width:9%}.one-invoice-table th:nth-child(7){width:7%}.one-invoice-table th:nth-child(8){width:8%}.one-invoice-table th:nth-child(9){width:6%}.one-invoice-table th:nth-child(10){width:6%}.one-invoice-table th:nth-child(11){width:7%}
.one-invoice-table .one-mail-cell{white-space:nowrap!important;overflow:visible!important}
.one-list-toolbar{display:flex!important;flex-direction:row!important;align-items:center!important;gap:18px!important;padding:8px 0!important;margin:6px 0 12px!important}
.one-list-toolbar label{display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;margin:0!important;width:auto!important;white-space:nowrap!important}
.one-list-toolbar .one-density{width:125px!important;min-width:0!important;max-width:125px!important;margin:0!important}
.one-list-toolbar .one-show-extra{width:17px!important;height:17px!important;min-width:17px!important;margin:0!important;flex:none!important}
.one-quotation-table[data-density="compact"] td{padding:4px 6px!important}
.one-quotation-table[data-density="normal"] td{padding:7px 8px!important}
.one-quotation-table[data-density="comfortable"] td{padding:11px 8px!important}
@media(max-width:1200px){.one-sales-table{min-width:1050px!important}}
@media(max-width:700px){.one-list-toolbar{flex-wrap:wrap!important}.one-sales-table{min-width:1050px!important}}

/* v1.68.32: working list controls and compact layout */
.quotation-list-panel .one-quotation-table{table-layout:fixed!important;width:100%!important;min-width:0!important}
.quotation-list-panel .one-quotation-table th:nth-child(1){width:8%}.quotation-list-panel .one-quotation-table th:nth-child(2){width:10%}.quotation-list-panel .one-quotation-table th:nth-child(3){width:20%}.quotation-list-panel .one-quotation-table th:nth-child(4){width:10%}.quotation-list-panel .one-quotation-table th:nth-child(5){width:9%}.quotation-list-panel .one-quotation-table th:nth-child(6){width:9%}.quotation-list-panel .one-quotation-table th:nth-child(7){width:8%}.quotation-list-panel .one-quotation-table th:nth-child(8){width:7%}.quotation-list-panel .one-quotation-table th:nth-child(9){width:7%}.quotation-list-panel .one-quotation-table th:nth-child(10){width:8%}.quotation-list-panel .one-quotation-table th:nth-child(11){width:4%}
.quotation-list-panel .one-quotation-table th,.quotation-list-panel .one-quotation-table td{overflow-wrap:anywhere!important}
.quotation-list-panel .one-quotation-table [hidden]{display:none!important}
.quotation-list-panel .one-quotation-table[data-density="compact"] td{padding:4px 6px!important;font-size:11px!important;line-height:1.2!important}
.quotation-list-panel .one-quotation-table[data-density="normal"] td{padding:8px 7px!important;line-height:1.35!important}
.quotation-list-panel .one-quotation-table[data-density="comfortable"] td{padding:10px 8px!important;line-height:1.4!important}
.quotation-list-panel .one-quotation-table .one-status-rejected{background:#ffe0df!important;color:#a32926!important}
.quotation-list-panel .one-quotation-table .row-actions-menu>summary{font-weight:800;min-width:28px;cursor:pointer}
.quotation-list-panel .one-quotation-table .row-actions-menu[open]>div{min-width:190px;right:0;left:auto}
.quotation-list-panel .sales-quotation-filters{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.quotation-list-panel .sales-quotation-filters .one-quotation-search{grid-column:1/-1!important}
.quotation-list-panel .one-list-toolbar{display:flex!important;align-items:center!important;gap:18px!important;flex-wrap:wrap!important}
.quotation-list-panel .one-list-toolbar .one-density{width:125px!important}
.quotation-list-panel .one-list-toolbar .one-show-extra{width:17px!important;height:17px!important;flex:none!important}
.one-filter-chips{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0}
.one-filter-chip{padding:5px 9px;border-radius:14px;background:#e6f0ff;color:#19538e;font-size:12px;text-decoration:none;font-weight:650}
.one-quotation-totals{display:flex;justify-content:space-between;gap:12px;align-items:center;background:#f1f6fd;border-top:1px solid #d9e4f0;padding:12px 16px;font-size:13px}
.one-quotation-counts{font-size:12px;color:#637b99}
@media(max-width:1100px){.quotation-list-panel .one-quotation-table{min-width:920px!important}}
@media(max-width:720px){.quotation-list-panel .sales-quotation-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}.one-quotation-totals{flex-wrap:wrap}}

/* v1.68.33: correo operativo siempre visible; tabla sin columnas estiradas */
.quotation-list-panel .one-sales-table-wrap{width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:visible!important}
.quotation-list-panel .one-quotation-table{table-layout:fixed!important;width:100%!important;max-width:1280px!important;min-width:940px!important;margin:0!important}
.quotation-list-panel .one-quotation-table th:nth-child(1){width:8%!important}
.quotation-list-panel .one-quotation-table th:nth-child(2){width:9%!important}
.quotation-list-panel .one-quotation-table th:nth-child(3){width:19%!important}
.quotation-list-panel .one-quotation-table th:nth-child(4){width:10%!important}
.quotation-list-panel .one-quotation-table th:nth-child(5){width:10%!important}
.quotation-list-panel .one-quotation-table th:nth-child(6){width:12%!important}
.quotation-list-panel .one-quotation-table th:nth-child(7){width:9%!important}
.quotation-list-panel .one-quotation-table th:nth-child(8){width:8%!important}
.quotation-list-panel .one-quotation-table th:nth-child(9){width:7%!important}
.quotation-list-panel .one-quotation-table th:nth-child(10){width:9%!important}
.quotation-list-panel .one-quotation-table th:nth-child(11){width:5%!important}
.quotation-list-panel .one-quotation-table td:nth-child(6){white-space:nowrap!important}
.quotation-list-panel .one-quotation-table td:last-child,.quotation-list-panel .one-quotation-table th:last-child{text-align:center!important}
.quotation-list-panel .one-quotation-table .row-actions-menu>summary{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:30px!important;height:28px!important;padding:2px!important}
.quotation-list-panel .one-quotation-table .row-actions-menu>div{background:#fff!important;box-shadow:0 6px 22px #0c30502e!important}

/* v1.68.34: fluid full-width quotation table. Overrides v1.68.33 1280px cap. */
.quotation-list-panel .one-sales-table-wrap{width:100%!important;max-width:none!important;overflow-x:auto!important}
.quotation-list-panel .one-quotation-table{width:100%!important;max-width:none!important;min-width:900px!important;table-layout:fixed!important;margin:0!important}
/* All visible columns share the available width; customer gets more room. */
.quotation-list-panel .one-quotation-table th:nth-child(1){width:8%!important}
.quotation-list-panel .one-quotation-table th:nth-child(2){width:10%!important}
.quotation-list-panel .one-quotation-table th:nth-child(3){width:23%!important}
.quotation-list-panel .one-quotation-table th:nth-child(4){width:10%!important}
.quotation-list-panel .one-quotation-table th:nth-child(5){width:10%!important}
.quotation-list-panel .one-quotation-table th:nth-child(6){width:12%!important}
.quotation-list-panel .one-quotation-table th:nth-child(7){width:9%!important}
.quotation-list-panel .one-quotation-table th:nth-child(8){width:8%!important}
.quotation-list-panel .one-quotation-table th:nth-child(9){width:8%!important}
.quotation-list-panel .one-quotation-table th:nth-child(10){width:10%!important}
.quotation-list-panel .one-quotation-table th:nth-child(11){width:6%!important}
.quotation-list-panel .one-quotation-table td:nth-child(10),.quotation-list-panel .one-quotation-table th:nth-child(10){text-align:right!important}
.quotation-list-panel .one-quotation-table td:nth-child(11),.quotation-list-panel .one-quotation-table th:nth-child(11){text-align:center!important}
