:root {
  --bg: #f4f6f9; --panel: #ffffff; --ink: #18212f; --muted: #667085; --line: #e3e7ee;
  --brand: #1d5fd1; --brand-ink: #ffffff; --brand-soft: #e8f0fd;
  --side: #0f1b2d; --side-ink: #c7d2e3; --side-on: #ffffff; --side-hover: #1a2840; --side-line: #22314a; --side-title: #ffffff;
  --green: #127a46; --green-bg: #e3f5ea; --blue: #1d5fd1; --blue-bg: #e6eefc;
  --amber: #9a5b00; --amber-bg: #fdf1dc; --red: #b42318; --red-bg: #fde7e5; --gray: #4b5565; --gray-bg: #eef0f3;
  --radius: 10px; --shadow: 0 1px 2px rgba(16, 24, 40, .06);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e141d; --panel: #161e2a; --ink: #e5e9f0; --muted: #94a0b4; --line: #263142;
    --brand: #5b93f0; --brand-soft: #1b2a44; --side: #0a0f17; --side-ink: #a9b5c8; --side-hover: #1a2840; --side-line: #22314a; --side-title: #ffffff;
    --green: #5fd39a; --green-bg: #12321f; --blue: #8ab4ff; --blue-bg: #17284a;
    --amber: #f2b45a; --amber-bg: #3a2a10; --red: #ff8a80; --red-bg: #3d1614; --gray: #b2bccb; --gray-bg: #232c3a;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 14.5px; line-height: 1.45; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { margin: 0; }
h2 { font-size: 15px; font-weight: 650; margin-bottom: 12px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.txt-red { color: var(--red); }
.i { width: 18px; height: 18px; flex: none; } .i.lg { width: 26px; height: 26px; } .i.xl { width: 34px; height: 34px; }

/* Estrutura */
.shell { display: flex; min-height: 100vh; }
.side { width: 248px; background: var(--side); border-right: 1px solid var(--side-line); color: var(--side-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 16px 12px; overflow-y: auto; }
.brand { display: flex; gap: 10px; align-items: center; padding: 4px 6px 16px; }
.brand strong { display: block; color: var(--side-title); font-size: 15px; } .brand small { color: var(--side-ink); font-size: 12px; }
.login-card .brand strong { color: var(--ink); } .login-card .brand small { color: var(--muted); }
.logo { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.company { padding: 0 6px 14px; }
.company label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.company select { width: 100%; background: var(--side-hover); color: var(--side-title); border: 1px solid var(--side-line); border-radius: 8px; padding: 7px 8px; }
.side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side nav a, .side nav .soon { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--side-ink); }
.side nav a:hover { background: var(--side-hover); text-decoration: none; color: var(--side-title); }
.side nav a.on { background: var(--brand); color: #fff; }
.side nav .soon { opacity: .45; cursor: default; }
.nav-sec { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 14px 10px 4px; opacity: .6; }
.me { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--side-line); padding: 12px 6px 0; margin-top: 12px; }
.me-name { flex: 1; min-width: 0; color: var(--side-title); } .me-name small { display: block; color: var(--side-ink); font-size: 12px; }
.me .icon-btn { color: var(--side-ink); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 10px; padding: 18px 28px 6px; }
.top h1 { font-size: 21px; font-weight: 650; }
.menu-btn { display: none; }
.content { padding: 12px 28px 40px; display: flex; flex-direction: column; gap: 16px; width: 100%; min-width: 0; }

/* Componentes */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; } .card.narrow { max-width: 520px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--red); } .btn.danger:hover { border-color: var(--red); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.full { width: 100%; justify-content: center; padding: 10px; }
.icon-btn { background: none; border: 0; padding: 6px; border-radius: 8px; color: var(--muted); cursor: pointer; display: inline-flex; }
.icon-btn:hover { background: var(--gray-bg); color: var(--ink); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.b-green { background: var(--green-bg); color: var(--green); } .b-blue { background: var(--blue-bg); color: var(--blue); }
.b-amber { background: var(--amber-bg); color: var(--amber); } .b-red { background: var(--red-bg); color: var(--red); }
.b-gray { background: var(--gray-bg); color: var(--gray); }
.tag { font-family: ui-monospace, Consolas, monospace; font-weight: 600; font-size: 13px; white-space: nowrap; }
.eq-cell strong { white-space: nowrap; }
.tag.sm { display: inline-block; font-size: 12px; background: var(--brand-soft); padding: 1px 6px; border-radius: 5px; margin: 1px 0; }
.flash { padding: 10px 14px; border-radius: 8px; border: 1px solid; }
.f-ok { background: var(--green-bg); color: var(--green); border-color: transparent; }
.f-error { background: var(--red-bg); color: var(--red); border-color: transparent; }
.f-warn { background: var(--amber-bg); color: var(--amber); border-color: transparent; }
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); width: fit-content; }

/* Formulários */
input, select, textarea { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.fld { display: flex; flex-direction: column; gap: 4px; }
.fld label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.fld.wide { grid-column: 1 / -1; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px 14px; margin-bottom: 18px; }
.form h2 { margin-top: 4px; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 8px; }
.form-actions .left { margin-right: auto; }
.upper { text-transform: uppercase; }
.check { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; cursor: pointer; }
.cat-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cat-opt input { position: absolute; opacity: 0; }
.cat-opt span { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.cat-opt input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.cat-opt input:focus-visible + span { outline: 2px solid var(--brand); }
.emp-list { border: 1px solid var(--line); border-radius: 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; padding: 10px 12px; margin: 12px 0; }
.emp-list legend { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 0 4px; }
dialog { border: 0; border-radius: 12px; padding: 22px; width: min(680px, calc(100vw - 32px)); background: var(--panel); color: var(--ink); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(10, 16, 28, .5); }

/* Lista / tabela */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.toolbar p { margin: 0; }
.filters, .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.search { display: flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; color: var(--muted); }
.search input { border: 0; padding: 8px 0; width: 260px; outline: none; background: transparent; }
.bulkbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--brand-soft); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; position: sticky; top: 6px; z-index: 5; }
.bulkbar > span { margin-right: 6px; }
.table-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 16px; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); }
.sort a { margin-left: 8px; color: var(--muted); } .sort a.on { color: var(--brand); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 10px 14px; background: var(--bg); white-space: nowrap; }
.tbl td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:hover { background: var(--bg); }
.tbl tr.hl { background: var(--brand-soft); }
.tbl.small td { font-size: 13px; }
.tbl .chk { width: 36px; padding-right: 0; }
.tbl .empty { text-align: center; color: var(--muted); padding: 34px; }
.tbl .det { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--muted); max-width: 420px; word-break: break-word; }
.row-act { text-align: right; width: 40px; }
.eq-cell { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.eq-cell:hover { text-decoration: none; } .eq-cell:hover strong { color: var(--brand); }
.eq-cell .i { color: var(--muted); }
.eq-cell small { display: block; color: var(--muted); font-size: 12.5px; }
.pager { display: flex; gap: 8px; justify-content: center; }

/* Painel */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi span { color: var(--muted); font-size: 13px; } .kpi strong { display: block; font-size: 26px; font-weight: 700; margin-top: 2px; }
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.cat { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--ink); }
.cat:hover { border-color: var(--brand); text-decoration: none; }
.cat .i { color: var(--brand); }
.cat strong { font-size: 20px; margin-right: 6px; } .cat small { display: block; color: var(--muted); font-size: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alerts, .timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.alerts li { display: flex; gap: 8px; align-items: flex-start; } .alerts .i { color: var(--amber); margin-top: 1px; }
.timeline li { border-left: 3px solid var(--line); padding: 2px 0 2px 12px; }
.timeline li small { display: block; color: var(--muted); font-size: 12px; }
.timeline .t-entrega { border-color: var(--green); } .timeline .t-devolucao { border-color: var(--amber); }
.timeline .t-manutencao { border-color: var(--red); } .timeline .t-cadastro { border-color: var(--blue); }

/* Detalhe */
.detail-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.dh-icon { width: 60px; height: 60px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.dh-main { flex: 1; min-width: 200px; } .dh-main p { margin: 2px 0 0; }
.dh-title { display: flex; gap: 10px; align-items: center; } .dh-title h2 { margin: 0; font-size: 20px; font-family: ui-monospace, Consolas, monospace; }
.dh-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.holder { display: flex; flex-direction: column; padding: 10px 12px; background: var(--bg); border-radius: 8px; margin-bottom: 14px; }
.inline-form { display: grid; gap: 10px; } .inline-form.sep { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.inline-form .btn { justify-self: start; }
.specs-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; }
.specs-list dt { font-size: 12px; color: var(--muted); } .specs-list dd { margin: 0; font-weight: 550; }
.obs { background: var(--bg); padding: 10px 12px; border-radius: 8px; margin: 14px 0 0; }
.mt { margin-top: 18px; }
.th-sort { color: inherit; } .th-sort:hover { color: var(--brand); text-decoration: none; } .th-sort.on { color: var(--brand); }
.login-logo { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.login-logo img { width: 220px; max-width: 100%; }
.login-logo small { color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-size: 11.5px; }
.login-card { --panel: #fff; --ink: #18212f; --muted: #667085; --line: #e3e7ee; --bg: #f4f6f9; background: #fff; color: var(--ink); }
.login-card input { background: #fff; color: #18212f; }
.brand-logo {padding: 2px 4px 14px; display: flex; flex-direction: column; gap: 6px; }
.brand-logo small { color: var(--side-ink); font-size: 12px; padding-left: 2px; }
.logo-chip { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; overflow: hidden; flex: none; }
/* logos transparentes, sempre com as cores originais */
.logo-chip img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-chip.lg { width: 100%; height: 64px; padding: 4px 2px; justify-content: flex-start; }
.logo-chip.sm { width: 72px; height: 36px; }
.logo-chip.initials { font-weight: 700; color: var(--brand); font-size: 14px; }
.emp-cell { display: flex; gap: 10px; align-items: center; }
.sep-top { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
a.kpi.link { color: var(--ink); } a.kpi.link:hover { border-color: var(--brand); text-decoration: none; }
.block { display: block; }
.num { text-align: right; white-space: nowrap; }
.txt-green { color: var(--green); }
.btn.sm { padding: 4px 10px; font-size: 13px; }
form.inline { display: inline; }
.dh-title h2.plain { font-family: inherit; }
.month-nav { display: flex; align-items: center; gap: 10px; }
.month-nav strong { font-size: 16px; min-width: 170px; text-align: center; }
.files { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; }
.files li { display: flex; align-items: center; gap: 8px; }
.files form { margin-left: auto; }
input[type=file] { padding: 6px; }
.acc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.acc-list li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.acc-list .i { color: var(--muted); }
.note-form { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; } .note-form input { flex: 1; min-width: 200px; }

/* Login */
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: linear-gradient(160deg, #0f1b2d, #1d3b6e); }
.login-card { width: min(380px, 100%); background: var(--panel); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.login-card .brand { padding: 0; } .login-card p { margin: 0; }

.otp { font-size: 22px; letter-spacing: .3em; text-align: center; font-family: ui-monospace, Consolas, monospace; }
.qr { background: #fff; padding: 10px; width: fit-content; border-radius: 8px; margin: 10px 0; }
.steps { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.secret { font-family: ui-monospace, Consolas, monospace; background: var(--bg); padding: 2px 6px; border-radius: 4px; user-select: all; word-break: break-all; }
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; font-family: ui-monospace, Consolas, monospace; font-size: 15px; }
.codes li { background: var(--bg); padding: 6px 10px; border-radius: 6px; text-align: center; }
.more summary { cursor: pointer; color: var(--brand); margin: 6px 0 12px; }
.card.narrow + .card.narrow { margin-top: 0; }

/* Termo (impressão) */
.doc { background: var(--gray-bg); }
.doc-bar { padding: 14px; display: flex; gap: 8px; justify-content: center; }
.paper { background: #fff; color: #111; width: min(210mm, 100%); margin: 0 auto 30px; padding: 22mm 20mm; font-size: 13.5px; line-height: 1.6; }
.paper h1 { font-size: 18px; text-align: center; margin-bottom: 18px; }
.doc-tbl { width: 100%; border-collapse: collapse; margin: 12px 0; }
.doc-tbl th, .doc-tbl td { border: 1px solid #bbb; padding: 5px 8px; text-align: left; font-size: 12.5px; }
.doc-tbl th { background: #f3f3f3; width: 18%; }
.doc-date { text-align: right; margin-top: 24px; }
.signs { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 60px; text-align: center; }
.signs span { display: block; border-top: 1px solid #333; margin-bottom: 4px; }
.signs small { display: block; color: #555; }
@media print { .noprint { display: none; } .doc { background: #fff; } .paper { padding: 0; margin: 0; width: auto; } }

/* Responsivo */
@media (max-width: 900px) {
  .grid2 { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 30; left: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.4); }
  .side.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .top { padding: 14px 16px 4px; }
  .content { padding: 10px 16px 32px; }
  .hide-sm { display: none; }
  .search input { width: 100%; } .search { flex: 1; min-width: 180px; }
  .specs-list { grid-template-columns: 1fr; }
}
.w-full { width: 100%; }
.w-money { width: 110px; text-align: right; }
tr.dim td { opacity: .55; }

/* Telas grandes: aproveita a largura toda */
@media (min-width: 1600px) {
  .kpis { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .grid2 { grid-template-columns: 1fr 1fr; gap: 20px; }
  .content { padding: 16px 36px 48px; }
}

/* Celular */
.backdrop { display: none; }
@media (max-width: 900px) {
  .top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 12px; }
  .top h1 { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .side.open + .backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 25; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .filters, .actions { width: 100%; }
  .filters select, .filters .btn { flex: 1 1 140px; }
  .actions .btn, .actions form { flex: 1 1 auto; justify-content: center; }
  .actions form .btn { width: 100%; justify-content: center; }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kpi strong { font-size: 21px; }
  .cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat { padding: 12px; } .cat .i.lg { width: 22px; height: 22px; }
  .card { padding: 14px; }
  .tbl th, .tbl td { padding: 9px 10px; }
  .table-meta { flex-direction: column; }
  .detail-head { align-items: flex-start; }
  .dh-actions { width: 100%; } .dh-actions .btn { flex: 1 1 auto; justify-content: center; }
  .month-nav { justify-content: space-between; width: 100%; } .month-nav strong { min-width: 0; }
  .bulkbar { top: 58px; }
  dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; padding: 18px 16px; }
  .form-actions { flex-wrap: wrap; } .form-actions .btn { flex: 1 1 auto; justify-content: center; }
  .form-actions .left { margin-right: 0; flex-basis: 100%; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr; }
  .note-form { flex-direction: column; } .note-form input { min-width: 0; }
  .signs { grid-template-columns: 1fr; gap: 30px; }
}
input, select, textarea { font-size: 16px; } /* evita zoom automático no iPhone */
@media (min-width: 901px) { input, select, textarea { font-size: inherit; } }

/* Listas compactas (equipamentos e colaboradores): uma linha por item */
.tbl.compact th { padding: 7px 10px; }
.tbl.compact td { padding: 5px 10px; font-size: 13.5px; line-height: 1.3; }
.tbl.compact .eq-cell { gap: 8px; }
.tbl.compact .eq-cell .i { width: 16px; height: 16px; }
.tbl.compact .one-line { display: flex; gap: 8px; align-items: baseline; white-space: nowrap; }
.tbl.compact .one-line small { display: inline; font-size: 12.5px; }
.tbl.compact .badge { padding: 1px 7px; font-size: 11.5px; }
.tbl.compact .email-inline { margin-left: 6px; }
.tbl.compact .tag.sm { margin: 0; }
.tbl.compact .chk input { width: 15px; height: 15px; }
@media (max-width: 900px) {
  .tbl.compact .one-line { flex-direction: column; gap: 0; white-space: normal; }
  .tbl.compact .email-inline { display: block; margin-left: 0; }
}
@media (max-width: 600px) {
  .hide-xs { display: none; }
  .tbl.compact td { white-space: nowrap; }
  .sort { display: none; }
}
.alerts li.alert-strong .i { color: var(--red); }
.sync-bar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-bottom: -6px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.btn.ms { justify-content: center; gap: 10px; padding: 10px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* ===== Fase 1 (dez/2026): busca única, ficha do colaborador, assistente de troca ===== */
a.plain { color: inherit; } a.plain:hover { color: var(--brand); text-decoration: none; }
.specs-list .wide { grid-column: 1 / -1; }

/* Busca no cabeçalho */
.gsearch { position: relative; margin-left: auto; display: flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; color: var(--muted); width: min(420px, 45vw); }
.gsearch:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.gsearch input { border: 0; outline: none; background: transparent; padding: 8px 0; flex: 1; min-width: 0; }
.gsearch kbd { font: 600 11px ui-monospace, Consolas, monospace; border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: var(--muted); }
.gs-res { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.18); z-index: 40; padding: 6px; max-height: 70vh; overflow: auto; }
.gs-res a { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink); }
.gs-res a:hover, .gs-res a.on { background: var(--brand-soft); text-decoration: none; }
.gs-res .gs-t { grid-row: span 2; align-self: center; font-size: 11px; color: var(--muted); min-width: 74px; }
.gs-res small { color: var(--muted); font-size: 12px; }
.gs-res .gs-all { display: block; text-align: center; color: var(--brand); font-size: 13px; border-top: 1px solid var(--line); border-radius: 0; margin-top: 4px; }
.gs-none { padding: 10px; color: var(--muted); }

/* Ficha do colaborador */
.person-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 700; flex: none; }
.ph-main { flex: 1; min-width: 220px; } .ph-main h2 { font-size: 20px; margin: 0; } .ph-main p { margin: 2px 0 0; }
.ph-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.station { border: 1px solid var(--line); border-radius: 10px; padding: 6px; margin-bottom: 10px; }
.station-acc { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; padding: 4px 0 0 40px; }
.station-acc.solo { padding-left: 0; }
.it { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--ink); }
.it:hover { background: var(--bg); text-decoration: none; }
.it.it-pc { background: var(--bg); }
.it-ic { width: 36px; height: 36px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.it.it-pc .it-ic { width: 46px; height: 46px; }
.it-tx { display: flex; flex-direction: column; min-width: 0; } .it-tx strong { font-size: 14px; }
.it-l1 { display: flex; gap: 6px; align-items: center; } .it-l1 .badge { padding: 0 7px; font-size: 11px; }
.timeline .t-troca { border-color: var(--brand); }
.tl-it { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: 13.5px; }

/* Assistente de movimentação */
.mv h2 { display: flex; align-items: center; gap: 10px; }
.step { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-grid; place-items: center; font-size: 13px; flex: none; }
.mv-list { display: flex; flex-direction: column; gap: 8px; }
.mv-station { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mv-item { display: flex; gap: 10px; align-items: center; padding: 9px 12px; }
.mv-item + .mv-item { border-top: 1px dashed var(--line); }
.mv-item.acc { padding-left: 38px; }
.mv-item .i { color: var(--muted); }
.mv-item.sai { background: var(--red-bg); } .mv-item.sai .mv-info span { text-decoration: line-through; opacity: .8; }
.mv-info { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.mv-info small { flex-basis: 100%; }
.mv-dest { width: 210px; }
.mv-quick { display: flex; gap: 8px; margin-top: 10px; }
.mv-filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.mv-filter .search { flex: 1; min-width: 220px; } .mv-filter .search input { width: 100%; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 99px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.chip b { color: var(--muted); font-weight: 600; margin-left: 2px; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; } .chip.on b { color: #fff; opacity: .8; }
.stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; max-height: 520px; overflow: auto; padding: 2px; }
.stock-card { position: relative; display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 10px 38px; cursor: pointer; background: var(--panel); }
.stock-card:hover { border-color: var(--brand); }
.stock-card input { position: absolute; left: 12px; top: 13px; width: 17px; height: 17px; }
.stock-card.on { border-color: var(--green); background: var(--green-bg); }
.sc-top { display: flex; gap: 6px; align-items: center; color: var(--muted); }
.stock-card small { font-size: 12px; }
.mv-resumo { border-color: var(--brand); }
#mvResumo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#mvResumo.muted { display: block; }
.rs { border-radius: 8px; padding: 8px 12px; } .rs ul { margin: 4px 0 0; padding-left: 18px; }
.rs-sai { background: var(--red-bg); color: var(--red); } .rs-entra { background: var(--green-bg); color: var(--green); }

@media (max-width: 900px) {
  .gsearch { width: auto; flex: 1; } .gsearch kbd { display: none; }
  .top { flex-wrap: nowrap; } .top h1 { max-width: 40vw; }
  .station-acc { padding-left: 0; }
  .mv-item { flex-wrap: wrap; } .mv-item.acc { padding-left: 12px; } .mv-dest { width: 100%; }
  #mvResumo { grid-template-columns: 1fr; }
  .mv-resumo { position: static; }
}
@media (max-width: 600px) { .top h1 { display: none; } }
/* Painel: atalhos, atenção agrupada, estoque */
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.qa { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.qa:hover { border-color: var(--brand); text-decoration: none; } .qa .i { color: var(--brand); }
.qa strong { display: block; } .qa small { color: var(--muted); font-size: 12px; }
.att { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.att summary { cursor: pointer; padding: 10px 12px; font-weight: 600; list-style: none; display: flex; gap: 8px; align-items: center; }
.att summary::-webkit-details-marker { display: none; }
.att summary::after { content: '▸'; margin-left: auto; color: var(--muted); transition: transform .15s; }
.att[open] summary::after { transform: rotate(90deg); }
.att .alerts { padding: 0 12px 12px; gap: 6px; font-size: 13.5px; }
.att-red { border-color: var(--red-bg); } .att-red summary { color: var(--red); }
.stock-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 6px; }
.pq-list { display: flex; flex-direction: column; max-height: 55vh; overflow: auto; margin: 10px 0; }
.pq-list a { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 8px; color: var(--ink); }
.pq-list a:hover { background: var(--brand-soft); text-decoration: none; }
@media (max-width: 900px) { .stock-mini { grid-template-columns: 1fr; } .quick { grid-template-columns: 1fr 1fr; } }
.att .alerts li { display: block; }
.kpi strong { white-space: nowrap; font-size: clamp(19px, 1.9vw, 26px); }
.tag.sm.ic { display: inline-flex; align-items: center; gap: 4px; } .tag.sm.ic .i { width: 13px; height: 13px; }
.timeline .t-transferencia { border-color: var(--brand); }
/* Lista de equipamentos: chips de filtro, estações, paginação */
.chips a.chip { text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.chip-sep { width: 1px; background: var(--line); margin: 0 4px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 2px; gap: 2px; }
.seg .chip { border: 0; }
.acc-chips { display: inline-flex; gap: 4px; margin-left: 10px; vertical-align: middle; }
.acc-chips a { display: inline-flex; gap: 3px; align-items: center; font-size: 11.5px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }
.acc-chips a:hover { color: var(--brand); border-color: var(--brand); text-decoration: none; }
.acc-chips a.diverge { color: var(--amber); border-color: var(--amber); }
.acc-chips .i { width: 13px; height: 13px; }
.tbl.compact .eq-cell { display: inline-flex; }
.pager { flex-wrap: wrap; }
.tbl td.nowrap a.plain { white-space: nowrap; }
/* Termo digital */
.sig-page { padding: 12px 0 40px; }
.sign-form { display: flex; flex-direction: column; gap: 14px; }
.sig-pad { width: 100%; height: 180px; border: 2px dashed #9aa4b5; border-radius: 10px; background: #fff; touch-action: none; }
.sign-ok { max-width: 210mm; margin: 0 auto 12px; background: var(--green-bg); color: var(--green); padding: 12px 16px; border-radius: 10px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.signs .sig { display: block; max-height: 70px; margin: -60px auto 4px; }
.sig-info { margin-top: 24px; font-size: 11px; color: #555; border-top: 1px solid #ddd; padding-top: 8px; }
@media (max-width: 600px) { .paper { padding: 18px 16px; font-size: 13px; } }
@media (max-width: 600px) { .doc-tbl { table-layout: fixed; } .doc-tbl th, .doc-tbl td { word-break: break-word; font-size: 11.5px; padding: 4px 5px; } }
/* Atendimentos */
.atend-btn span { display: inline; } .atend-btn { margin-left: auto; }
.atend-btn + .gsearch { margin-left: 0; }
.timer-pill { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; background: var(--blue-bg); color: var(--blue); border-radius: 99px; padding: 5px 12px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.timer-pill + .atend-btn { margin-left: 0; }
.timer-pill:hover { text-decoration: none; filter: brightness(.97); }
.clock { font-variant-numeric: tabular-nums; }
.running { border-color: var(--blue); }
.run-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 6px 0; }
.run-row .clock { font: 700 18px ui-monospace, Consolas, monospace; color: var(--blue); min-width: 70px; }
.run-row .btn { margin-left: auto; }
@media (max-width: 900px) { .atend-btn span, .timer-pill .tp-t { display: none; } }
/* Cofre */
.vault-lock { text-align: center; margin: 30px auto; display: flex; flex-direction: column; gap: 10px; }
.vault-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 auto; }
.senha-vis { -webkit-text-security: disc; }
.pw { font-family: ui-monospace, Consolas, monospace; }
.notes-row pre { margin: 0; white-space: pre-wrap; }
/* Relatório mensal */
.report h2 { font-size: 15px; margin: 22px 0 8px; border-bottom: 2px solid #1d5fd1; padding-bottom: 4px; color: #0f1b2d; }
.rp-head { display: flex; gap: 14px; align-items: center; border-bottom: 1px solid #ddd; padding-bottom: 12px; }
.rp-head h1 { text-align: left; margin: 0; font-size: 20px; } .rp-head p { margin: 2px 0 0; color: #555; }
.rp-head > div { flex: 1; } .rp-diale { height: 34px; }
.rp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.rp-kpis div { border: 1px solid #ddd; border-radius: 8px; padding: 10px; text-align: center; }
.rp-kpis b { display: block; font-size: 22px; color: #1d5fd1; } .rp-kpis span { font-size: 11px; color: #555; }
.rp-tbl th { width: auto; } .rp-tbl td.num, .rp-tbl th.num { text-align: right; }
.rp-att { padding-left: 18px; }
@media print { .report h2 { break-after: avoid; } .rp-tbl tr { break-inside: avoid; } }
