/* ===== Consulta Preços — visual copiado do Ciss ===== */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: #f7f7f7; color: #000;
  font: 11px Tahoma, "DejaVu Sans Condensed", Verdana, sans-serif;
  overflow: auto; min-width: 1000px;
}
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
u { text-decoration: underline; }

/* ---------- ícones ---------- */
.ico-ciss {
  display: inline-block; width: 16px; height: 16px; vertical-align: -3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%2329a8e0'/%3E%3Cstop offset='1' stop-color='%2333c49a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='1' y='1' width='14' height='14' rx='5' fill='none' stroke='url(%23g)' stroke-width='1.3'/%3E%3Cpath d='M6 4.6v6.8L11 8z' fill='none' stroke='%232a86c8' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/16px;
}
.ico-lupa {
  display: inline-block; width: 11px; height: 11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11'%3E%3Ccircle cx='4.3' cy='4.3' r='3.1' fill='none' stroke='%23222' stroke-width='1.6'/%3E%3Cpath d='M6.6 6.6L10 10' stroke='%23222' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/11px;
}

/* ---------- abas ---------- */
.tabs {
  height: 30px; background: #f7fbf7; position: relative; display: flex;
  border-bottom: 1px solid #6b6b6b; box-shadow: inset 0 -3px 0 #a5d2ff;
  font: 12px "Segoe UI", "Noto Sans", Tahoma, sans-serif; color: #333;
}
.tab { height: 27px; display: flex; align-items: center; padding: 0 6px 0 3px; gap: 9px; }
.tab-home { width: 65px; justify-content: space-between; }
.tab-active { background: #a5d2ff; padding: 0 6px 0 9px; gap: 10px; }
.tab-active .ico-ciss { margin-right: -2px; }
.tab-x { font-size: 13px; color: #444; cursor: pointer; padding: 0 3px; }
.tab-x:hover { color: #c00; }
.tabs-arrow { position: absolute; right: 6px; top: 8px; font-size: 10px; color: #333; }

/* ---------- tela principal ---------- */
.cp { position: relative; padding: 0 0 0 2px; width: 1000px; }
.cp-top {
  margin-top: 7px; height: 36px; width: 993px; border: 1px solid #dee2de;
  position: relative;
}
.cp-loc-lbl { position: absolute; left: 17px; top: 9px; font-weight: bold; }
.cp-loc {
  position: absolute; left: 73px; top: 9px; width: 71px; height: 18px;
  border: 1px solid #7a9cd3; background: #fff; padding: 0 2px; outline: none;
}
.cp-loc:focus { border-color: #3c7fd5; }
.lupa {
  position: absolute; left: 146px; top: 9px; width: 18px; height: 18px; padding: 0;
  border: 1px solid #b4b4b4; background: #f0f0f0; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.lupa:hover { background: #e5f1fb; border-color: #3c7fd5; }
.cp-chk {
  position: absolute; left: 436px; top: 9px; display: flex; align-items: center;
  font-weight: bold; color: #10107b; cursor: pointer;
}
.cp-chk input { margin: 0 2px 0 0; width: 13px; height: 13px; }

.cp-box {
  position: relative; margin: 4px 0 0; padding: 0; width: 993px; height: 500px;
  border: 1px solid #dee2de; min-width: 0;
}
.cp-box legend {
  font: 16px Arial, "Liberation Sans", Helvetica, sans-serif; color: #000080;
  padding: 0 1px; margin-left: 11px;
}
.f {
  position: absolute; display: flex; align-items: baseline; white-space: nowrap;
  font-family: Arial, "Liberation Sans", Helvetica, sans-serif; font-size: 30.5px; line-height: 34px;
}
.f .lbl { font-weight: bold; flex: none; }
.f .val { font-weight: normal; }
.f .val.sm { font-size: 29px; position: relative; top: -3px; }
.f .val.preco { color: #f00; font-weight: bold; font-size: 47px; line-height: 34px; }

.l1, .l2, .l3, .l4, .l5 { left: 16px; }
.l1 .lbl, .l2 .lbl, .l3 .lbl, .l4 .lbl, .l5 .lbl { min-width: 289px; }
.r3, .r4, .r5 { left: 613px; }
.r3 .lbl, .r4 .lbl, .r5 .lbl { min-width: 219px; }
.p1, .p2, .p3 { left: 278px; }
.p1 .lbl, .p2 .lbl, .p3 .lbl { min-width: 314px; }
.l1 { top: 0; } .l2 { top: 41px; }
.l3 { top: 136px; } .r3 { top: 133px; }
.l4 { top: 184px; } .r4 { top: 188px; }
.l5 { top: 251px; } .r5 { top: 249px; }
.p1 { top: 337px; } .p2 { top: 377px; } .p3 { top: 432px; }
.l1 .val, .l2 .val { padding-left: 2px; }

.sep {
  position: absolute; left: 1px; right: 3px; top: 314px; height: 3px;
  border-top: 1px dashed #000; border-bottom: 1px dashed #000;
}
.msg-main { position: absolute; left: 600px; top: 18px; color: #c00; font-weight: bold; }

.statusbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 13px; padding: 1px 0 0 0;
  border-top: 2px solid #a5a5a5; background: #f7f7f7; font-size: 10px; white-space: pre; overflow: hidden;
  font-family: Tahoma, "DejaVu Sans Condensed", sans-serif;
}

/* ---------- janelas ---------- */
.overlay { position: fixed; inset: 0; z-index: 10; display: flex; align-items: flex-start; justify-content: center; }
.overlay.dim { background: rgba(0,0,0,0); justify-content: flex-start; overflow: auto; }
.win {
  background: #f7f7f7; border: 1px solid #8c8c8c; box-shadow: 0 6px 22px rgba(0,0,0,.28);
  position: relative;
}
.win-title {
  height: 30px; background: #fff; display: flex; align-items: center; gap: 7px; padding-left: 9px;
  font: 12px "Segoe UI", "Noto Sans", Tahoma, sans-serif; user-select: none;
}
.win-title .ico-lupa { width: 13px; height: 13px; background-size: 13px; }
.win-x {
  position: absolute; right: 0; top: 0; width: 34px; height: 30px; border: 0; background: transparent;
  font-size: 14px; cursor: pointer;
}
.win-x:hover { background: #e81123; color: #fff; }

.btn {
  height: 20px; padding: 0 8px; background: #e7e7e7; border: 1px solid #adadad; cursor: pointer; white-space: nowrap;
}
.btn:hover:not(:disabled) { background: #e5f1fb; border-color: #0078d7; }
.btn:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }
.btn:disabled { background: #ced2ce; color: #848484; border-color: #c4c4c4; cursor: default; }

/* ---------- login ---------- */
#login { background: #f7f7f7; align-items: center; z-index: 20; }
.login-win { width: 400px; }
.login-body { padding: 16px 18px 14px; }
.login-row { display: flex; align-items: center; margin-bottom: 9px; }
.login-row label { width: 60px; font-weight: bold; }
.login-row input, .login-row select { flex: 1; min-width: 0; height: 21px; border: 1px solid #7a9cd3; padding: 0 4px; background: #fff; outline: none; }
.login-row input:focus { border-color: #3c7fd5; }
.login-erro { color: #c00; min-height: 14px; margin: 2px 0 6px 60px; }
.login-btns { text-align: right; }
.login-btns .btn { width: 86px; height: 23px; }

/* ---------- Localizar Produtos e Derivados ---------- */
.lp { width: 809px; height: 578px; margin-top: 78px; margin-left: 560px; }
.lp .a { position: absolute; }
.lp-filtros {
  position: absolute; left: 15px; top: 34px; width: 789px; height: 76px; border: 1px solid #e3e3e3;
}
.lp-filtros, .lp-filtros * { line-height: 14px; }
.lp-filtros label { white-space: nowrap; }
.lp-filtros input[type=checkbox] { margin: 0 3px 0 0; width: 13px; height: 13px; vertical-align: -2px; }
.lp-filtros select, .lp-texto { height: 18px; border: 1px solid #a8a8a8; background: #fff; padding: 0 1px; }
.lp-l1 { left: 15px; top: 10px; }
.lp-texto { left: 87px; top: 8px; width: 197px; border-color: #7a7a7a; outline: none; }
.lp-texto:focus { border-color: #3c7fd5; }
.lp-l2 { left: 291px; top: 11px; }
.lp-campo, .lp-modo { left: 376px; width: 173px; }
.lp-campo { top: 8px; } .lp-modo { top: 30px; }
.lp-l3 { left: 580px; top: 11px; }
.lp-filtrar, .lp-tipo { left: 629px; width: 135px; }
.lp-filtrar { top: 8px; } .lp-tipo { top: 30px; }
.lp-c1 { left: 87px; top: 32px; }
.lp-l4 { left: 314px; top: 33px; }
.lp-l5 { left: 557px; top: 33px; }
.lp-c2 { left: 87px; top: 55px; }
.lp-secao { left: 376px; top: 51px; width: 173px; height: 21px; }
.lp-secao:disabled { background: #e7e7e7; color: #000; border-color: #adadad; }

/* grades */
.grid { background: #fff; border: 1px solid #828282; overflow: auto; position: absolute; }
.grid table { border-collapse: collapse; table-layout: fixed; width: max-content; }
.grid th {
  background: #6384a5; color: #000; font-weight: bold; text-align: center; vertical-align: top;
  border-right: 1px solid #fff; border-bottom: 2px solid #fff; padding: 1px 1px 0; white-space: nowrap;
  position: sticky; top: 0; z-index: 1; overflow: hidden; line-height: 14px; font-size: 11px;
}
.grid td {
  height: 15px; padding: 0 1px; white-space: nowrap; overflow: hidden; text-overflow: clip;
  border-right: 1px solid #fff; border-bottom: 1px solid #fff; font-size: 11px; line-height: 14px;
}
.lp-grid { left: 17px; top: 114px; width: 784px; height: 194px; }
.lp-grid th { height: 34px; }
.lp-grid tbody tr { cursor: default; }
.lp-grid tbody td { border: 1px solid #fff; border-width: 0 1px 1px 0; background: #fff; }
.lp-grid tbody tr.sel td { background: #b5b9ce; border-top: 1px solid #292973; border-bottom: 1px solid #292973; }
.lp-grid tbody tr.sel td:first-child { border-left: 1px solid #292973; }
.lp-grid tbody tr.vazio td { background: #b5b9ce; }
.lp-grid td.flag { text-align: center; font-weight: bold; color: #10107b; }
.num { text-align: right; }
.tc { text-align: center; }
.lp-grid:focus { outline: none; }

col.w22 { width: 22px; } col.w24 { width: 24px; } col.w36 { width: 36px; } col.w40 { width: 40px; }
col.w46 { width: 46px; } col.w48 { width: 48px; } col.w54 { width: 54px; } col.w60 { width: 60px; }
col.w64 { width: 64px; } col.w70 { width: 70px; } col.w76 { width: 76px; } col.w80 { width: 80px; }
col.w86 { width: 86px; } col.w118 { width: 118px; } col.w128 { width: 128px; } col.w318 { width: 318px; }

.lp-botoes { position: absolute; left: 17px; top: 313px; width: 768px; display: flex; gap: 4px; }
.lp-botoes .btn { height: 20px; padding: 0 3px; }
.lp-botoes .flex { flex: 1; }
.lp-botoes .b-sel { width: 80px; }
.lp-botoes .b-sel + .b-sel { margin-left: 2px; }

.grp { position: absolute; margin: 0; padding: 0; border: 1px solid #e3e3e3; min-width: 0; }
.grp legend { color: #310084; font-weight: bold; padding: 0 1px; margin-left: 3px; font-size: 11px; }
.g-saldo { left: 15px; top: 335px; width: 378px; height: 204px; }
.saldo-grid { left: 3px; top: 6px; width: 368px; height: 181px; }
.saldo-grid tbody tr.e0 td { background: #b5b9ce; }
.saldo-grid tbody tr.e1 td { background: #d6e7f7; }
.saldo-grid tbody tr.sub td { background: #6384a5; font-weight: bold; }
.saldo-grid tbody tr.tot td { background: #6384a5; font-weight: bold; }

.g-custo { left: 397px; top: 335px; width: 193px; height: 141px; }
.g-custo::after { content: ""; position: absolute; left: 3px; right: 3px; top: 14px; bottom: 3px; border: 1px solid #a0a0a0; border-right-color: #fff; border-bottom-color: #fff; pointer-events: none; }
.custo { display: flex; align-items: center; justify-content: flex-end; padding-right: 6px; height: 22px; margin-top: 1px; }
.g-custo .custo:first-of-type { margin-top: 10px; }
.custo label { font-weight: bold; margin-right: 5px; }
.custo input { width: 82px; height: 19px; border: 1px solid #a8a8a8; background: #f7f7f7; text-align: right; padding: 0 2px; }
.g-prev { left: 397px; top: 479px; width: 193px; height: 55px; }
.prev { display: flex; height: 18px; align-items: center; }
.prev span:first-child { width: 80px; text-align: right; margin-right: 32px; }
.prev:first-of-type { margin-top: 2px; }

.g-compras { left: 597px; top: 335px; width: 205px; height: 196px; }
.cp-sel { position: absolute; left: 4px; top: 4px; display: flex; gap: 6px; }
.cp-sel select { width: 165px; height: 19px; background: #fff; border: 1px solid #a8a8a8; }
.cp-sel select:disabled { color: #000; }
.cp-sel .info { width: 20px; padding: 0; font-weight: bold; font-family: Georgia, serif; }
.cp-sel .info:disabled { background: #e7e7e7; color: #10107b; }
.compras-grid { left: 4px; top: 27px; width: 194px; height: 150px; }

.lp-dicas { position: absolute; left: 15px; top: 543px; color: #0063ce; line-height: 17px; }
.lp-desc { position: absolute; left: 614px; top: 557px; }
.lp-desc-in {
  position: absolute; left: 725px; top: 553px; width: 78px; height: 20px; text-align: right;
  border: 1px solid #a8a8a8; background: #fff; padding: 0 2px;
}
