/* PriceQuery v4.0 - stable table geometry on desktop and mobile */
.panel{overflow:auto;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable;overscroll-behavior:contain;touch-action:pan-x pan-y}
.table{table-layout:auto;border-collapse:separate;border-spacing:0}
.table th,.table td{overflow-wrap:normal!important;word-break:normal!important;hyphens:none;line-height:1.35;vertical-align:top}
.table thead th{position:sticky;top:0;z-index:4;background:#f8faf9;border-bottom:1px solid var(--line)}
.table tbody tr:last-child td{border-bottom:0}
.table th:first-child,.table td:first-child{position:sticky;left:0;background:#fff;z-index:2;box-shadow:1px 0 0 #eef2ef}
.table thead th:first-child{z-index:6;background:#f8faf9}

/* Odoo purchase history */
#odooView .desktopTable{display:block!important;overflow:auto;max-height:72vh}
#odooView .table{min-width:1180px;width:100%}
#odooView .table th:nth-child(1){width:92px;min-width:92px}
#odooView .table th:nth-child(2){width:145px;min-width:145px}
#odooView .table th:nth-child(3){width:280px;min-width:280px}
#odooView .table th:nth-child(4){width:190px;min-width:190px}
#odooView .table th:nth-child(5){width:92px;min-width:92px}
#odooView .table th:nth-child(6){width:85px;min-width:85px}
#odooView .table th:nth-child(7){width:155px;min-width:155px}
#odooView .table th:nth-child(8){width:155px;min-width:155px}
#odooView .table th:nth-child(9){width:95px;min-width:95px}
#odooView .table td:nth-child(1),#odooView .table td:nth-child(5),#odooView .table td:nth-child(6),#odooView .table td:nth-child(7),#odooView .table td:nth-child(8),#odooView .table td:nth-child(9){white-space:nowrap}
#odooView .table td:nth-child(3),#odooView .table td:nth-child(4){white-space:normal}
#odooView .sourceTag{max-width:130px;white-space:normal;line-height:1.25;text-align:left}

/* Presupuestos v4 */
#quotesView .quotesTablePanel{display:block!important;overflow:auto;max-height:72vh}
#quotesView .quotesTable{min-width:2000px;width:100%}
#quotesView .quotesTable th:nth-child(1){width:46px;min-width:46px;max-width:46px;text-align:center}
#quotesView .quotesTable th:nth-child(2){width:92px;min-width:92px}
#quotesView .quotesTable th:nth-child(3){width:360px;min-width:360px}
#quotesView .quotesTable th:nth-child(4){width:160px;min-width:160px}
#quotesView .quotesTable th:nth-child(5){width:190px;min-width:190px}
#quotesView .quotesTable th:nth-child(6){width:220px;min-width:220px}
#quotesView .quotesTable th:nth-child(7){width:190px;min-width:190px}
#quotesView .quotesTable th:nth-child(8){width:90px;min-width:90px}
#quotesView .quotesTable th:nth-child(9){width:90px;min-width:90px}
#quotesView .quotesTable th:nth-child(10){width:175px;min-width:175px}
#quotesView .quotesTable th:nth-child(11){width:180px;min-width:180px}
#quotesView .quotesTable th:nth-child(12){width:105px;min-width:105px}
#quotesView .quotesTable th:nth-child(13){width:95px;min-width:95px}
#quotesView .quotesTable td:nth-child(1){text-align:center;white-space:nowrap}
#quotesView .quotesTable td:nth-child(2),#quotesView .quotesTable td:nth-child(8),#quotesView .quotesTable td:nth-child(9),#quotesView .quotesTable td:nth-child(10),#quotesView .quotesTable td:nth-child(11),#quotesView .quotesTable td:nth-child(12),#quotesView .quotesTable td:nth-child(13){white-space:nowrap}
#quotesView .quotesTable td:nth-child(3),#quotesView .quotesTable td:nth-child(5),#quotesView .quotesTable td:nth-child(6),#quotesView .quotesTable td:nth-child(7){white-space:normal}
#quotesView .quotesTable th:nth-child(2),#quotesView .quotesTable td:nth-child(2){position:sticky;left:46px;z-index:3;background:#fff;box-shadow:1px 0 0 #eef2ef}
#quotesView .quotesTable thead th:nth-child(2){z-index:6;background:#f8faf9}

@media(max-width:720px){
  .app{padding:10px}
  .top{gap:8px;align-items:flex-start}
  .brand{font-size:18px;max-width:205px;line-height:1.08}
  .versionBadge{font-size:10px;padding:5px 8px;align-self:flex-start}
  .top .btn{padding:9px 11px;font-size:13px;border-radius:10px}
  .table th,.table td{padding:9px 10px;font-size:11px}
  .table thead th{font-size:9px;letter-spacing:.02em}
  #odooView .desktopTable,#quotesView .quotesTablePanel{max-height:68vh;border-radius:12px}
  #odooView .table{min-width:1160px}
  #quotesView .quotesTable{min-width:1940px}
  #odooMobileCards,#quoteMobileCards{display:none!important}
}
