/* Gestão de Locações, só consulta (js/locacoes.js). Herda graficos.css, tema.css e os cartões de número do bi.css. */

#screen-locacoes { min-height: 100%; }
.lc .gx-conteudo { container-name: lc; container-type: inline-size; }
.lc-dados { font-size: 12.5px; color: var(--mut); align-self: center; }
.lc-filtro-topo { font-size: 12.5px; padding-top: 10px; }

/* tons das situações (os do desktop) */
.lc-ok { --tb: var(--ok-bg); --tf: var(--ok-fg); } .lc-warn { --tb: var(--warn-bg); --tf: var(--warn-fg); }
.lc-err { --tb: var(--err-bg); --tf: var(--err-fg); } .lc-info { --tb: var(--info-bg); --tf: var(--info-fg); }
.lc-hold { --tb: var(--p2); --tf: var(--mu); } .lc-soft { --tb: rgba(var(--lm), .13); --tf: var(--ac); } .lc-mut { --tb: var(--p2); --tf: var(--dim); }

/* indicadores */
.lc-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.lc-kpis.quatro { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lc-kpi { flex-direction: row; align-items: flex-start; gap: 12px; min-width: 0; }
.lc-kpi-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lc-kpi-t small { font-size: 11.5px; color: var(--mut); line-height: 1.4; }
.lc-kpi .bi-kpi-val { font-size: 23px; }
.lc-ic { width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--tb); color: var(--tf); }
.lc-ic svg { width: 18px; height: 18px; }
.gx-info { color: var(--info-fg); }
@container lc (max-width: 1100px) { .lc-kpis, .lc-kpis.quatro { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container lc (max-width: 460px) { .lc-kpis, .lc-kpis.quatro { grid-template-columns: 1fr; } }

.lc-2col { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@container lc (max-width: 1000px) { .lc-2col { grid-template-columns: minmax(0, 1fr); } }
.lc-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* vigências (Gantt) */
.lc-gantt { font-size: 12px; }
.lc-g-cab, .lc-g-linha { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 8px; align-items: center; }
.lc-g-cab { height: 20px; }
.lc-g-mes { position: absolute; top: 2px; padding-left: 4px; font-size: 10.5px; font-weight: 700; color: var(--dim); white-space: nowrap; }
.lc-g-linha { width: 100%; border: 0; border-top: 1px solid var(--ln); background: transparent; padding: 0; cursor: pointer; font: inherit; color: var(--txt); text-align: left; height: 38px; }
.lc-g-linha:hover { background: var(--p1); }
.lc-g-rot { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mut); }
.lc-g-rot b { color: var(--txt); }
.lc-g-trilho { position: relative; display: block; height: 100%; }
.lc-g-lin { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ln); }
.lc-g-hoje { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--err-fg); z-index: 2; }
.lc-g-barra { position: absolute; top: 8px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: flex-end; overflow: hidden; z-index: 1; container: lcbarra / inline-size; }
.lc-g-barra em { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 0 8px; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@container lcbarra (max-width: 100px) { .lc-g-barra em { display: none; } }   /* barra curta (celular): a data fica no title da linha */
.lc-g-def { position: absolute; left: 8px; top: 11px; font-size: 11px; font-weight: 700; color: var(--info-fg); z-index: 1; }
.lc-b-ok { background: var(--ac); color: var(--surf); } .lc-b-warn { background: var(--amb); color: #2B1F00; } .lc-b-err { background: var(--rdt); color: var(--surf); }
.lc-b-info { background: var(--blut); color: var(--surf); } .lc-b-hold { background: var(--mu); color: var(--surf); }
@container lc (max-width: 640px) {
  .lc-g-cab { grid-template-columns: minmax(0, 1fr); } .lc-g-cab > span:first-child { display: none; }
  .lc-g-linha { grid-template-columns: minmax(0, 1fr); height: auto; padding: 4px 0; gap: 0; } .lc-g-trilho { height: 32px; }
  .lc-g-barra { top: 5px; } .lc-g-def { top: 8px; } .lc-g-mes:nth-child(even) { display: none; }
}

/* listas (atenção, atividade, histórico, comentários, documentos) */
.lc-lista { list-style: none; margin: 0; padding: 0; }
.lc-at { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--ln); }
.lc-at > div { min-width: 0; }
.lc-at b { font-size: 13px; }
.lc-at p { margin: 2px 0 8px; font-size: 12px; color: var(--mut); }
.lc-at-n { width: 44px; height: 44px; border-radius: 11px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--tb); color: var(--tf); line-height: 1.1; }
.lc-at-n b { font-size: 16px; font-weight: 800; } .lc-at-n small { font-size: 9px; font-weight: 700; }
.lc-mini.btn { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 9px; }
.lc-ev { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--ln); font-size: 12.5px; }
.lc-ev > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; align-items: flex-start; }
.lc-ev small { font-size: 11px; color: var(--dim); }
.lc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tf); margin-top: 5px; flex: none; }
.lc-link { border: 0; background: none; padding: 0; font: inherit; color: var(--txt); text-align: left; cursor: pointer; }
.lc-link:hover { color: var(--ac); }
.lc-faixa { border-radius: 12px; padding: 10px 13px; font-size: 12.5px; font-weight: 600; background: var(--tb); color: var(--tf); margin-top: 10px; }

/* lista de locações */
.lc-segs { align-self: flex-start; }
.lc-filtros { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@container lc (max-width: 1000px) { .lc-filtros { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container lc (max-width: 560px) { .lc-filtros { grid-template-columns: minmax(0, 1fr); } }
.lc-conta { margin: 0; font-size: 13.5px; }
.lc-conta small { display: block; font-size: 11.5px; color: var(--dim); }
.lc-tab-card { padding: 6px 10px 0; }
.lc-tab th { color: var(--blue); }
.lc-tab thead th { color: var(--dim); }
.gx-tab td.forte, .gx-tab th.forte { font-weight: 800; }
.gx-tab .mono { font-family: var(--mono); }
.gx-tab .gx-chip { font-size: 11px; }
.lc-rodape { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 12px 6px; font-size: 12.5px; color: var(--mut); }
@container lc (max-width: 760px) {
  .lc-tab thead { display: none; }
  .lc-tab tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 10px 0; border-bottom: 1px solid var(--ln); }
  .lc-tab th, .lc-tab td { border: 0; padding: 1px 4px; text-align: left; white-space: normal; }
  .lc-tab td { display: flex; gap: 6px; grid-column: 1 / -1; }
  .lc-tab td::before { content: attr(data-l); color: var(--dim); font-size: 11px; font-weight: 700; min-width: 96px; }
  .lc-tab th { grid-column: 1; grid-row: 1; font-size: 13.5px; }
  .lc-tab td[data-l="Status"] { grid-column: 2; grid-row: 1; justify-content: flex-end; } .lc-tab td[data-l="Status"]::before { display: none; }
  .lc-tab td.quebra { min-width: 0; }
}

/* parque */
.lc-parque { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@container lc (max-width: 1100px) { .lc-parque { grid-template-columns: minmax(0, 1fr); } }
.lc-parque #lc-segun { margin-bottom: 10px; }
.lc-rolar { max-height: 640px; overflow: auto; }
.lc-sub { display: block; font-size: 11px; color: var(--dim); }
.lc-rot { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.lc-serie { font-size: 19px !important; margin-top: 3px; }
.lc-minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.lc-mini-c { background: var(--ro); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.lc-mini-c small { font-size: 11px; font-weight: 600; color: var(--mut); } .lc-mini-c b { font-size: 20px; font-weight: 800; }
.lc-h3 { font-size: 12.5px; font-weight: 800; margin: 18px 0 8px; }
.lc-tl { position: relative; height: 30px; border: 1px solid var(--ln); border-radius: 8px; overflow: hidden;
  background: repeating-linear-gradient(135deg, transparent 0 6px, var(--p2) 6px 8px); }
.lc-tl span { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; overflow: hidden; border-radius: 3px; }
.lc-tl em { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 0 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-tl-marcas { position: relative; height: 18px; margin-top: 3px; }
.lc-tl-marcas span { position: absolute; transform: translateX(-50%); font-size: 10.5px; font-weight: 600; color: var(--dim); white-space: nowrap; }
.lc-tl-marcas span.ini { transform: none; } .lc-tl-marcas span.fim { transform: translateX(-100%); }

/* relatórios */
.lc-rel { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); align-items: start; }
@container lc (max-width: 900px) { .lc-rel { grid-template-columns: minmax(0, 1fr); } }
.lc-rel-dir { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.lc-rel-dir > .card { margin-top: 0; }
.lc-cat { display: flex; flex-direction: column; gap: 4px; padding: 14px 12px; }
.lc-cat-i { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; border: 1px solid transparent; background: transparent; border-radius: 12px; padding: 9px 10px; cursor: pointer; font: inherit; color: var(--txt); }
.lc-cat-i > span { width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--p2); color: var(--mut); font-size: 12px; font-weight: 800; }
.lc-cat-i > div { display: flex; flex-direction: column; min-width: 0; } .lc-cat-i b { font-size: 13px; } .lc-cat-i small { font-size: 11.5px; color: var(--mut); }
.lc-cat-i:hover { background: var(--p1); }
.lc-cat-i.on { background: rgba(var(--lm), .12); border-color: rgba(var(--lm), .35); }
.lc-cat-i.on > span { background: var(--ac); color: var(--surf); }
.lc-ctls { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.lc-seg-ctl .gx-seg { align-self: flex-start; }
.lc-pers { max-width: 140px; }
.lc-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.lc-check { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; cursor: pointer; }
.lc-check input { accent-color: var(--ac); width: 15px; height: 15px; }
.lc-check input:disabled { cursor: default; }
#lc-rel-prev { transition: opacity .15s; }
#lc-rel-prev.recarregando { opacity: .5; }
.lc-prev-cab { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 2px solid var(--ac); }
.lc-prev-cab h2 { font-size: 20px; font-weight: 800; margin-top: 3px; } .lc-prev-cab p { margin: 0; font-size: 12.5px; color: var(--mut); }
.lc-prev-cab > div:first-child { flex: 1 1 260px; min-width: 0; }
.lc-prev-dir { display: flex; flex-direction: column; align-items: flex-end; text-align: right; margin-left: auto; font-size: 12px; color: var(--mut); }
.lc-prev-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.lc-prev-kpis > div { background: var(--ro); border-radius: 11px; padding: 9px 13px; display: flex; flex-direction: column; }
.lc-prev-kpis small { font-size: 11px; font-weight: 600; color: var(--mut); } .lc-prev-kpis b { font-size: 21px; font-weight: 800; }
.lc-prev-kpis > div.err { background: var(--err-bg); } .lc-prev-kpis > div.err small, .lc-prev-kpis > div.err b { color: var(--err-fg); }
.lc-t-ac { color: var(--ac); } .lc-t-blue { color: var(--blue); } .lc-t-mut { color: var(--mut); } .lc-t-err { color: var(--err-fg); }
.lc-t-warn { color: var(--warn-fg); } .lc-t-info { color: var(--info-fg); } .lc-t-ok { color: var(--ok-fg); } .lc-t-dim { color: var(--dim); }
.lc-rel-tab td.quebra { min-width: 110px; }
.lc-rel-tab tr.lc-grupo th { background: var(--ro); text-align: left; }
.lc-grupo th { white-space: normal !important; } .lc-grupo th span { font-weight: 800; margin-right: 12px; } .lc-grupo th small { font-size: 11.5px; color: var(--mut); text-transform: none; }
.lc-rel-tab tr.lc-grupo.err th { background: var(--err-bg); color: var(--err-fg); } .lc-rel-tab tr.lc-grupo.err th small { color: var(--err-fg); }
.lc-rel-tab tr.total td { text-align: right; white-space: normal; }
.lc-barras { display: grid; grid-template-columns: minmax(90px, 140px) minmax(0, 1fr) auto; gap: 7px 12px; align-items: center; font-size: 12px; }
.lc-barras > span { color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-barra { height: 14px; border-radius: 5px; background: var(--p2); overflow: hidden; }
.lc-barra i { display: block; height: 100%; border-radius: 5px; background: var(--ac); }
.lc-barra i.err { background: var(--err-fg); } .lc-barra i.hold { background: var(--dim); }
.lc-barras b { font-weight: 800; text-align: right; white-space: nowrap; }

/* detalhe */
#lc-det .modal { height: 88vh; }
#lc-det-t { display: flex; align-items: center; gap: 12px; }
#lc-det .modal-foot { justify-content: space-between; align-items: center; }
#lc-det .modal-foot small { font-size: 11.5px; color: var(--dim); }
#lc-det .modal-foot .btn { flex: 0 0 auto; }
@media (max-width: 560px) {   /* celular: o título em largura cheia, a situação na linha de baixo e os valores sem quebrar */
  #lc-det .modal { height: 94vh; } #lc-det .modal-head { flex-wrap: wrap; row-gap: 8px; padding: 14px 16px; }
  #lc-det-t { font-size: 15px !important; } #lc-det .modal-x { order: 2; } #lc-det-chip { order: 3; flex-basis: 100%; padding-left: 52px; }
  .lc-res > b { font-size: 17px !important; white-space: nowrap; }
}
#lc-det-corpo { display: flex; flex-direction: column; gap: 14px; }
.lc-faixa-res { display: grid; grid-template-columns: 2.2fr 1fr 1fr .8fr; gap: 12px; }
.lc-res { background: var(--ro); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lc-res small { font-size: 11px; font-weight: 700; color: var(--mut); } .lc-res b { font-size: 19px; font-weight: 800; } .lc-res span { font-size: 11px; color: var(--mut); }
.lc-res.vig > div:first-child, .lc-res.vig > div:last-child { display: flex; justify-content: space-between; gap: 8px; }
.lc-res.vig b { font-size: 15px; } .lc-res.vig .gx-med { margin-top: 6px; }
.lc-b-med i { background: var(--tf); }
@media (max-width: 820px) { .lc-faixa-res { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lc-res.vig { grid-column: 1 / -1; } }
.lc-det-abas { align-self: flex-start; }
.lc-campos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 14px; }
.lc-campo { grid-column: span var(--span, 1); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lc-campo > small { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.lc-campo > div { background: var(--ro); border-radius: 10px; padding: 8px 11px; font-size: 13px; min-height: 36px; overflow-wrap: anywhere; }
@media (max-width: 820px) { .lc-campos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lc-campo { grid-column: span min(var(--span, 1), 2); } }
.lc-marcas { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; }
.lc-2obs { display: grid; grid-template-columns: minmax(0, 16fr) minmax(0, 14fr); gap: 14px; margin-top: 12px; align-items: stretch; }
@media (max-width: 820px) { .lc-2obs { grid-template-columns: minmax(0, 1fr); } }
.lc-obs { white-space: pre-wrap; flex: 1; }
.lc-2obs .lc-campo { grid-column: auto; }
.lc-origem { margin: 0; display: flex; flex-direction: column; gap: 5px; font-weight: 500; }
.lc-origem b { font-size: 10.5px; letter-spacing: .08em; }
.lc-vigs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.lc-vig { border: 1px solid var(--ln); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--mut); }
.lc-vig.on { border-color: var(--ac); background: rgba(var(--lm), .08); }
.lc-vig > div { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.lc-vig > b { font-size: 16px; color: var(--txt); }
.lc-hd { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; }
@media (max-width: 820px) { .lc-hd { grid-template-columns: minmax(0, 1fr); } }
.lc-doc { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; border: 1px solid var(--ln); border-radius: 11px; background: transparent; padding: 9px 12px; margin-bottom: 8px; cursor: pointer; font: inherit; color: var(--txt); }
.lc-doc:hover { background: var(--p1); }
.lc-doc > span { width: 32px; height: 32px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--err-bg); color: var(--err-fg); font-size: 10px; font-weight: 800; }
.lc-doc > div { display: flex; flex-direction: column; min-width: 0; } .lc-doc b { font-size: 12.5px; overflow-wrap: anywhere; } .lc-doc small { font-size: 11px; color: var(--dim); }
.lc-coment { background: var(--ro); border-radius: 11px; padding: 10px 14px; margin-bottom: 8px; }
.lc-coment small { font-size: 11.5px; font-weight: 700; color: var(--mut); } .lc-coment p { margin: 2px 0 0; font-size: 13px; white-space: pre-wrap; }
