/* =========================================================
   Water Needs — Painel administrativo
   ========================================================= */
:root {
  --navy-950: #041431;
  --navy-900: #061D45;
  --navy: #0A2E63;
  --blue: #1A9BE6;
  --blue-400: #4FC3F7;
  --sky-100: #E8F5FD;
  --sky-50: #F4FAFE;
  --teal: #2BD9A6;
  --critica: #FF4D5E;
  --alta: #FF9F1C;
  --moderada: #F5C518;
  --ink: #0B1B33;
  --muted: #64748B;
  --line: #E3EAF3;
  --bg: #F3F6FB;
  --card: #fff;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(10, 46, 99, .06), 0 0 0 1px var(--line);
  --shadow: 0 12px 32px -14px rgba(10, 46, 99, .28);
  --shadow-lg: 0 30px 60px -20px rgba(4, 20, 49, .45);
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --ease: cubic-bezier(.22, .9, .3, 1);
  --sidebar: 248px;

  --st-verificacao: #1A9BE6;
  --st-validado: #7C5CFF;
  --st-aprovado: #FF9F1C;
  --st-transporte: #00B3C7;
  --st-entregue: #2BD9A6;
  --st-recusado: #94A3B8;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; letter-spacing: -.01em; line-height: 1.2; }
button { font: inherit; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 0; font-family: var(--font-head); font-weight: 600; font-size: .88rem; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s, background .2s; position: relative; text-decoration: none; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn--primary { background: linear-gradient(135deg, var(--blue), #127FD0); color: #fff; box-shadow: 0 8px 20px -10px rgba(26,155,230,.9); }
.btn--ghost { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--blue); }
.btn--danger { background: #E5484D; color: #fff; }
.btn--sm { padding: 7px 12px; font-size: .8rem; border-radius: 10px; }
.btn--block { width: 100%; padding: 13px; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; border: 0; background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); transition: background .2s, transform .2s; }
.icon-btn:hover { background: var(--sky-50); }
.icon-btn.is-spinning svg { animation: spin .8s linear infinite; }
.link { color: var(--blue); font-weight: 700; font-size: .8rem; text-decoration: none; white-space: nowrap; }
.link:hover { text-decoration: underline; }

/* ---------- campos ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: .78rem; font-weight: 700; color: var(--navy); }
.field > span small { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea, .select {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: .9rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26,155,230,.14); }
.select { width: auto; padding: 8px 32px 8px 12px; font-weight: 600; font-size: .82rem; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; cursor: pointer; }
.form-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(229,72,77,.08); color: #C9353A; font-weight: 600; font-size: .84rem; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- login ---------- */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden; background: radial-gradient(900px 500px at 80% 0%, rgba(26,155,230,.35), transparent 60%), var(--navy-950); }
.login__bg span { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); left: 50%; top: 50%; transform: translate(-50%,-50%); animation: breathe 8s ease-in-out infinite; }
.login__bg span:nth-child(1) { width: 520px; height: 520px; }
.login__bg span:nth-child(2) { width: 760px; height: 760px; animation-delay: -2s; }
.login__bg span:nth-child(3) { width: 1000px; height: 1000px; animation-delay: -4s; }
@keyframes breathe { 50% { transform: translate(-50%,-50%) scale(1.06); opacity: .6; } }
.login__card { position: relative; width: min(400px, 100%); background: #fff; border-radius: 24px; padding: 34px 30px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 16px; animation: rise .5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.login__logo { height: 46px; width: auto; align-self: flex-start; }
.login__card h1 { font-size: 1.4rem; color: var(--navy); margin-top: 6px; }
.login__card > p { margin: -10px 0 4px; color: var(--muted); }
.pw { position: relative; }
.pw input { padding-right: 44px; }
.pw__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); padding: 6px; border-radius: 8px; }
.login__back { text-align: center; font-size: .82rem; color: var(--muted); text-decoration: none; }
.login__back:hover { color: var(--blue); }

/* ---------- layout ---------- */
.app { display: flex; min-height: 100%; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: #fff; padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; z-index: 40; transition: transform .35s var(--ease); }
.sidebar__brand { padding: 4px 10px 22px; }
.sidebar__brand img { height: 40px; width: auto; }
.sidebar__label { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.4); padding: 14px 12px 6px; }
.sidebar__nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar__nav a, .sidebar__foot a, .sidebar__foot button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; font-weight: 600; color: rgba(255,255,255,.72); border: 0; background: none; width: 100%; text-align: left; transition: background .2s, color .2s; position: relative; }
.sidebar__nav a:hover, .sidebar__foot a:hover, .sidebar__foot button:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar__nav a.is-active { background: rgba(26,155,230,.18); color: #fff; }
.sidebar__nav a.is-active::before { content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue-400); }
.nav-badge { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--blue); color: #fff; font-size: .7rem; font-weight: 800; text-align: center; }
.nav-badge--soft { background: rgba(255,255,255,.14); }
.sidebar__sub { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 4px 22px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.1); }
.sidebar__nav .sidebar__sub a { padding: 7px 10px; font-size: .82rem; font-weight: 600; border-radius: 10px; color: rgba(255,255,255,.6); }
.sidebar__nav .sidebar__sub a svg { width: 15px; height: 15px; }
.sidebar__nav .sidebar__sub a.is-active { background: rgba(26,155,230,.14); color: #fff; }
.sidebar__nav .sidebar__sub a.is-active::before { display: none; }
.sidebar__nav a.is-parent { color: #fff; }
.offer { cursor: pointer; transition: box-shadow .2s, transform .2s; }
.offer:hover { box-shadow: var(--shadow), 0 0 0 1px var(--line); transform: translateY(-2px); }
.offer__meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: .76rem; color: var(--muted); font-weight: 600; }
.kanban--offers { --cols: 4; }
.card__kind { font-size: .68rem; font-weight: 800; color: var(--u); text-transform: uppercase; letter-spacing: .04em; }
.sidebar__foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.sidebar-scrim { display: none; }

.main { flex: 1; margin-left: var(--sidebar); min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 14px 28px; background: rgba(243,246,251,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar__menu { display: none; }
.topbar__title h1 { font-size: 1.25rem; color: var(--navy); }
.topbar__title span { font-size: .8rem; color: var(--muted); }
.search { margin-left: auto; position: relative; display: flex; align-items: center; width: min(380px, 34vw); }
.search svg { position: absolute; left: 12px; color: var(--muted); }
.search input { width: 100%; padding: 10px 40px 10px 38px; border-radius: 12px; border: 0; background: #fff; box-shadow: var(--shadow-sm); font-size: .86rem; }
.search input:focus { outline: 0; box-shadow: 0 0 0 2px var(--blue); }
.search kbd { position: absolute; right: 10px; font: 600 .7rem var(--font-body); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; background: var(--sky-50); }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; font-weight: 800; font-size: .8rem; font-family: var(--font-head); }
.menu { position: relative; }
.menu__pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); padding: 6px; z-index: 50; animation: pop .2s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.menu__pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: none; border-radius: 10px; font-weight: 600; text-align: left; }
.menu__pop button:hover { background: var(--sky-50); }
.menu__pop button.danger { color: #C9353A; }

.content { padding: 24px 28px 48px; }
.view { animation: fadeUp .4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

/* ---------- painéis ---------- */
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px; min-width: 0; }
.panel--flush { padding: 0; overflow: hidden; }
.panel--flush .panel__head { padding: 20px 20px 0; }
.panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.panel__head h2 { font-size: 1rem; color: var(--navy); }
.panel__head span { font-size: .78rem; color: var(--muted); }
.grid { display: grid; gap: 18px; margin-top: 18px; }
.grid--2-1 { grid-template-columns: 2fr 1fr; }
.grid--1-1 { grid-template-columns: 1fr 1fr; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.kpi { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px 18px; position: relative; overflow: hidden; animation: fadeUp .5s var(--ease) backwards; }
.kpi:nth-child(2) { animation-delay: .05s; } .kpi:nth-child(3) { animation-delay: .1s; } .kpi:nth-child(4) { animation-delay: .15s; } .kpi:nth-child(5) { animation-delay: .2s; } .kpi:nth-child(6) { animation-delay: .25s; }
.kpi__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--blue)) 14%, #fff); color: var(--c, var(--blue)); margin-bottom: 12px; }
.kpi__label { font-size: .76rem; font-weight: 700; color: var(--muted); }
.kpi__value { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--navy); line-height: 1.15; }
.kpi__value small { font-size: .8rem; color: var(--muted); font-weight: 600; }
.kpi__foot { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.kpi::after { content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: color-mix(in srgb, var(--c, var(--blue)) 8%, transparent); }

/* gráfico de barras */
.chart { height: 220px; position: relative; }
.chart svg { width: 100%; height: 100%; overflow: visible; stroke: none; }
.chart .bar { transition: opacity .2s; transform-origin: bottom; animation: grow .7s var(--ease) backwards; }
.chart .bar:hover { opacity: .75; }
@keyframes grow { from { transform: scaleY(0); } }
.chart .axis { font-size: 10px; fill: var(--muted); font-family: var(--font-body); }
.chart .gridline { stroke: var(--line); stroke-dasharray: 3 4; }
.chart-tip { position: absolute; pointer-events: none; background: var(--navy); color: #fff; font-size: .74rem; font-weight: 700; padding: 6px 9px; border-radius: 8px; transform: translate(-50%, -110%); white-space: nowrap; opacity: 0; transition: opacity .15s; }
.legend-inline { display: flex; gap: 12px; font-size: .74rem; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.legend-inline span { display: inline-flex; align-items: center; gap: 6px; }

/* donut */
.donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.donut { width: 170px; height: 170px; position: relative; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); stroke: none; }
.donut circle { fill: none; stroke-width: 18; transition: stroke-dasharray .9s var(--ease); }
.donut__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut__center strong { font-family: var(--font-head); font-size: 1.8rem; color: var(--navy); line-height: 1; }
.donut__center span { font-size: .72rem; color: var(--muted); font-weight: 600; }
.donut-legend { width: 100%; display: grid; gap: 8px; }
.donut-legend div { display: flex; align-items: center; gap: 10px; font-size: .84rem; font-weight: 600; }
.donut-legend b { margin-left: auto; font-family: var(--font-head); color: var(--navy); }

/* funil */
.funnel { display: grid; gap: 12px; }
.funnel__row { display: grid; grid-template-columns: 150px 1fr 44px; gap: 12px; align-items: center; font-size: .84rem; font-weight: 600; cursor: pointer; }
.funnel__track { height: 12px; border-radius: 999px; background: var(--sky-50); overflow: hidden; }
.funnel__fill { height: 100%; border-radius: 999px; background: var(--c); width: 0; transition: width 1s var(--ease); }
.funnel__row b { text-align: right; font-family: var(--font-head); color: var(--navy); }
.funnel__row:hover .funnel__track { box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 30%, transparent); }

.mini-map { height: 290px; margin-top: 0; z-index: 0; }
.leaflet-container { font-family: var(--font-body); }
.map-pin { width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent); }
.leaflet-popup-content { margin: 10px 12px; font-size: .82rem; }
.leaflet-popup-content b { font-family: var(--font-head); color: var(--navy); }
.leaflet-popup-content a { color: var(--blue); font-weight: 700; cursor: pointer; }

/* listas */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; cursor: pointer; transition: background .2s; }
.row:hover { background: var(--sky-50); }
.row__date { width: 44px; text-align: center; flex-shrink: 0; border-radius: 10px; background: var(--sky-100); padding: 4px 0; }
.row__date b { display: block; font-family: var(--font-head); font-size: 1rem; color: var(--navy); line-height: 1.1; }
.row__date small { font-size: .62rem; text-transform: uppercase; font-weight: 800; color: var(--blue); }
.row__main { flex: 1; min-width: 0; }
.row__main strong { display: block; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__main span { font-size: .76rem; color: var(--muted); }
.empty-row { padding: 22px; text-align: center; color: var(--muted); font-size: .84rem; }

/* tags */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: .7rem; font-weight: 800; white-space: nowrap; background: color-mix(in srgb, var(--c) 14%, #fff); color: color-mix(in srgb, var(--c) 75%, #000); }
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.tag--critica { --c: var(--critica); } .tag--alta { --c: var(--alta); } .tag--moderada { --c: var(--moderada); }
.tag--verificacao { --c: var(--st-verificacao); } .tag--validado { --c: var(--st-validado); } .tag--aprovado { --c: var(--st-aprovado); }
.tag--transporte { --c: var(--st-transporte); } .tag--entregue { --c: var(--st-entregue); } .tag--recusado { --c: var(--st-recusado); }
.tag--demo { --c: #94A3B8; text-transform: uppercase; letter-spacing: .04em; font-size: .6rem; }
.tag--demo::before { display: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--c); }
.dot--critica { --c: var(--critica); } .dot--alta { --c: var(--alta); } .dot--moderada { --c: var(--moderada); }

/* ---------- toolbar ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar__right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; border: 0; background: #fff; box-shadow: var(--shadow-sm); font-weight: 700; font-size: .8rem; color: var(--muted); transition: all .2s; }
.chip:hover { color: var(--navy); }
.chip.is-active { background: var(--navy); color: #fff; box-shadow: none; }
.chip em { font-style: normal; opacity: .6; font-weight: 800; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .82rem; color: var(--muted); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { width: 36px; height: 20px; border-radius: 999px; background: #CBD5E1; position: relative; transition: background .2s; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.hint-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; margin: -4px 0 14px; }

/* ---------- tabela ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 900px; }
.table th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; padding: 12px 16px; background: var(--sky-50); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .86rem; vertical-align: middle; }
.table tbody tr { cursor: pointer; transition: background .15s; animation: fadeUp .35s var(--ease) backwards; }
.table tbody tr:hover { background: var(--sky-50); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.cell-id { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: .8rem; }
.cell-id small { display: block; font-family: var(--font-body); color: var(--muted); font-weight: 600; font-size: .72rem; }
.cell-place strong { display: block; max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-place span { color: var(--muted); font-size: .76rem; }
.who { display: inline-flex; align-items: center; gap: 8px; }
.who i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--sky-100); color: var(--navy); font-style: normal; font-size: .66rem; font-weight: 800; }
.dim { color: #A3B1C6; }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 40px; height: 40px; color: var(--blue); margin-bottom: 10px; }
.empty h3 { color: var(--navy); font-size: 1rem; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

/* ---------- kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(210px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.col { background: #E9EFF7; border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; min-height: 420px; transition: background .2s, box-shadow .2s; }
.col.is-over { background: color-mix(in srgb, var(--c) 12%, #fff); box-shadow: inset 0 0 0 2px var(--c); }
.col__head { display: flex; align-items: center; gap: 8px; padding: 6px 6px 12px; }
.col__head h3 { font-size: .86rem; color: var(--navy); }
.col__head i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }
.col__count { margin-left: auto; font-size: .72rem; font-weight: 800; color: var(--muted); background: #fff; padding: 2px 8px; border-radius: 999px; }
.col__sum { font-size: .72rem; color: var(--muted); padding: 0 6px 10px; margin-top: -6px; }
.col__list { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 60px; }
.col__empty { border: 2px dashed #CBD7E6; border-radius: 12px; padding: 18px; text-align: center; color: #94A3B8; font-size: .78rem; font-weight: 600; }

.card { background: #fff; border-radius: 12px; padding: 12px 12px 12px 15px; box-shadow: 0 1px 2px rgba(10,46,99,.08); position: relative; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; transition: box-shadow .2s, transform .2s, opacity .2s; }
.card::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--u); }
.card:hover { box-shadow: 0 8px 18px -8px rgba(10,46,99,.3); transform: translateY(-1px); }
.card.is-dragging-src { opacity: .35; }
.card__top { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 6px; }
.card__id { font-size: .68rem; font-weight: 800; color: var(--muted); font-family: var(--font-head); }
.card h4 { margin: 0 0 2px; font-size: .9rem; font-family: var(--font-head); color: var(--navy); line-height: 1.25; }
.card__place { font-size: .76rem; color: var(--muted); }
.card__meta { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: .74rem; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.card__meta svg { width: 13px; height: 13px; }
.card__meta .who { margin-left: auto; }
.card__meta .who i { width: 22px; height: 22px; font-size: .6rem; }
.card__date.is-late { color: #C9353A; }

.drag-ghost { position: fixed; z-index: 200; pointer-events: none; width: var(--w); transform: rotate(2.5deg) scale(1.03); box-shadow: 0 24px 40px -12px rgba(4,20,49,.45) !important; opacity: .96; transition: none !important; }

/* ---------- calendário ---------- */
.cal-layout { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.cal__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cal__nav { display: flex; align-items: center; gap: 12px; }
.cal__nav h2 { font-size: 1.1rem; color: var(--navy); min-width: 170px; text-align: center; }
.cal__weekdays { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--sky-50); border-bottom: 1px solid var(--line); }
.cal__weekdays span { padding: 8px 10px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.day { min-height: 116px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; transition: background .15s, box-shadow .15s; min-width: 0; }
.day:nth-child(7n) { border-right: 0; }
.day:hover { background: var(--sky-50); }
.day.is-out { background: #FAFBFD; }
.day.is-out .day__n { color: #B8C4D4; }
.day.is-selected { box-shadow: inset 0 0 0 2px var(--blue); }
.day.is-over { background: var(--sky-100); box-shadow: inset 0 0 0 2px var(--blue); }
.day__n { font-size: .78rem; font-weight: 800; color: var(--navy); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; }
.day.is-today .day__n { background: var(--blue); color: #fff; }
.ev { display: flex; align-items: center; gap: 6px; padding: 3px 7px; border-radius: 7px; font-size: .7rem; font-weight: 700; background: color-mix(in srgb, var(--u) 13%, #fff); color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: grab; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; border-left: 3px solid var(--u); }
.ev.is-done { opacity: .55; text-decoration: line-through; }
.ev:hover { background: color-mix(in srgb, var(--u) 22%, #fff); }
.ev-more { font-size: .68rem; font-weight: 800; color: var(--blue); padding: 0 4px; }
.cal-side { display: grid; gap: 18px; position: sticky; top: 90px; }
.unscheduled.is-over { box-shadow: inset 0 0 0 2px var(--blue), var(--shadow-sm); background: var(--sky-50); }
.count-pill { font-size: .72rem; font-weight: 800; background: var(--sky-100); color: var(--navy); padding: 2px 9px; border-radius: 999px; }
.drag-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-height: 420px; overflow-y: auto; }
.drag-list .card { padding: 10px 10px 10px 14px; }

/* ---------- ofertas ---------- */
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.offer { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px; display: flex; flex-direction: column; gap: 8px; animation: fadeUp .4s var(--ease) backwards; }
.offer__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.offer__kind { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); }
.offer h3 { font-size: 1rem; color: var(--navy); }
.offer p { margin: 0; color: var(--muted); font-size: .84rem; }
.offer__contact { font-weight: 700; font-size: .84rem; color: var(--navy); word-break: break-all; }
.offer .select { margin-top: auto; align-self: flex-start; }

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(4,20,49,.4); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: #fff; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .4s var(--ease); }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.drawer__id { font-family: var(--font-head); font-weight: 700; font-size: .78rem; color: var(--blue); }
.drawer__head h2 { font-size: 1.35rem; color: var(--navy); margin: 2px 0; }
.drawer__place { color: var(--muted); font-size: .86rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 20px 24px 40px; display: flex; flex-direction: column; gap: 22px; }
.d-section h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: var(--font-body); font-weight: 800; margin-bottom: 10px; }
.d-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.step { border: 0; background: none; padding: 0; text-align: center; font-size: .66rem; font-weight: 700; color: #94A3B8; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.step i { width: 100%; height: 6px; border-radius: 999px; background: #E2E8F0; transition: background .3s; }
.step.is-done i { background: var(--c, var(--blue)); }
.step.is-done { color: var(--navy); }
.step.is-current { color: var(--c); }
.step.is-current i { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.step:hover i { background: color-mix(in srgb, var(--c, var(--blue)) 60%, #E2E8F0); }
.status-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.d-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.d-grid .field input, .d-grid .field select { padding: 9px 11px; }
.saving { font-size: .72rem; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; min-height: 18px; }
.saving.is-ok { color: #0B8A66; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fact { background: var(--sky-50); border-radius: 12px; padding: 10px 12px; }
.fact dt { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.fact dd { margin: 2px 0 0; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: .95rem; }
.d-desc { margin: 0; color: #334155; white-space: pre-wrap; }
.d-photos { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.d-photos img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; cursor: zoom-in; }
.contact-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.contact-card .who i { width: 40px; height: 40px; font-size: .8rem; border-radius: 12px; }
.contact-card__main { flex: 1; min-width: 0; }
.contact-card__main strong { display: block; }
.contact-card__main span { font-size: .78rem; color: var(--muted); word-break: break-all; }
.contact-actions { display: flex; gap: 6px; }
.loc-links { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

.notes { display: grid; gap: 10px; }
.note { background: var(--sky-50); border-radius: 12px; padding: 10px 12px; }
.note header { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.note p { margin: 0; white-space: pre-wrap; }
.note-form { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.note-form textarea { flex: 1; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); resize: vertical; min-height: 44px; }
.note-form textarea:focus { outline: 0; border-color: var(--blue); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 14px; font-size: .82rem; }
.timeline li::before { content: ''; position: absolute; left: -18px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--c, #CBD5E1); }
.timeline time { display: block; font-size: .72rem; color: var(--muted); }
.danger-zone { border-top: 1px solid var(--line); padding-top: 18px; }
.btn-text-danger { border: 0; background: none; color: #C9353A; font-weight: 700; font-size: .82rem; display: inline-flex; gap: 6px; align-items: center; padding: 0; }

/* ---------- modais ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.modal__scrim { position: absolute; inset: 0; background: rgba(4,20,49,.5); backdrop-filter: blur(4px); animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal__card { position: relative; width: min(620px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 20px; padding: 24px; box-shadow: var(--shadow-lg); animation: rise .3s var(--ease); display: flex; flex-direction: column; gap: 14px; }
.modal__card--sm { width: min(420px, 100%); }
.modal__card h2 { font-size: 1.2rem; color: var(--navy); }
.modal__card .muted { margin: 0; }
.modal__head { display: flex; justify-content: space-between; align-items: center; }
.modal__head .icon-btn { box-shadow: none; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.coords-row { display: flex; gap: 8px; }
.coords-row input { min-width: 0; }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .86rem; display: flex; align-items: center; gap: 10px; animation: toastIn .35s var(--ease); max-width: 360px; }
.toast.is-error { background: #C9353A; }
.toast.is-out { opacity: 0; transform: translateY(8px); transition: all .3s; }
.toast button { border: 0; background: rgba(255,255,255,.15); color: #fff; border-radius: 8px; padding: 4px 10px; font-weight: 700; font-size: .78rem; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }

/* ---------- skeleton ---------- */
.skeleton { background: linear-gradient(90deg, #EEF2F8 25%, #F7F9FC 50%, #EEF2F8 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- responsivo ---------- */
@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1080px) {
  .grid--2-1, .grid--1-1 { grid-template-columns: 1fr; }
  .cal-layout { grid-template-columns: 1fr; }
  .cal-side { position: static; grid-template-columns: 1fr 1fr; }
  .search { width: 240px; }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); }
  .app.is-menu .sidebar { transform: none; }
  .app.is-menu .sidebar-scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(4,20,49,.4); }
  .main { margin-left: 0; }
  .topbar { padding: 12px 16px; gap: 10px; flex-wrap: wrap; }
  .topbar__menu { display: grid; }
  .topbar__title span { display: none; }
  .search { order: 5; width: 100%; margin-left: 0; }
  .topbar__actions { margin-left: auto; }
  #newBtn span { display: none; }
  #newBtn { padding: 10px; }
  .content { padding: 16px 16px 40px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .cal-side { grid-template-columns: 1fr; }
  .day { min-height: 74px; padding: 4px; }
  .ev { font-size: 0; padding: 0; height: 6px; border-left: 0; background: var(--u); border-radius: 4px; }
  .ev-more { font-size: .6rem; }
  .funnel__row { grid-template-columns: 110px 1fr 34px; font-size: .78rem; }
}
@media (max-width: 560px) {
  .avatar { display: none; }
  .facts, .d-grid, .form-grid { grid-template-columns: 1fr 1fr; }
  .facts .fact:last-child { grid-column: 1 / -1; }
  .drawer__head, .drawer__body { padding-left: 18px; padding-right: 18px; }
  .kanban { grid-template-columns: repeat(var(--cols, 5), 82vw); scroll-snap-type: x mandatory; }
  .col { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.mini-map .leaflet-tile-pane { filter: saturate(.55) brightness(1.04); }

/* =========================================================
   Login Google, menu do usuário, usuários e log
   ========================================================= */
.google-slot { min-height: 44px; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
#googleBtn { display: flex; justify-content: center; min-height: 44px; }
#googleBtn:empty { min-height: 0; }
.google-slot:has(#googleBtn:empty) { min-height: 0; }
.login__hint { font-size: .78rem; color: var(--muted); margin: 0; text-align: center; }
.dev-login { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: #FFF8E6; border: 1px dashed #F5C518; }
.dev-login__tag { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #8A6A00; }
.row-inline { display: flex; gap: 8px; }
.row-inline input { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); }
.emergency { border-top: 1px solid var(--line); padding-top: 12px; }
.emergency summary { cursor: pointer; font-size: .8rem; font-weight: 700; color: var(--muted); list-style: none; display: flex; align-items: center; gap: 6px; }
.emergency summary::-webkit-details-marker { display: none; }
.emergency summary::before { content: '›'; font-size: 1.1rem; transition: transform .2s; }
.emergency[open] summary::before { transform: rotate(90deg); }
.emergency form { display: grid; gap: 12px; margin-top: 12px; }

button.avatar { border: 0; cursor: pointer; padding: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 46px; height: 46px; border-radius: 14px; font-size: .95rem; flex-shrink: 0; }
.user-pop { min-width: 270px; padding: 10px; }
.user-pop__head { display: flex; gap: 12px; align-items: center; padding: 6px 6px 10px; }
.user-pop__head strong { display: block; color: var(--navy); font-family: var(--font-head); }
.user-pop__head span { font-size: .78rem; color: var(--muted); word-break: break-all; }
.user-pop__meta { display: flex; align-items: center; gap: 8px; padding: 0 6px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: .74rem; flex-wrap: wrap; }

.role-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .7rem; font-weight: 800; background: color-mix(in srgb, var(--c, #1A9BE6) 14%, #fff); color: color-mix(in srgb, var(--c, #1A9BE6) 80%, #000); white-space: nowrap; }
.role-badge--administrator { --c: #7C5CFF; } .role-badge--coordenador { --c: #1A9BE6; }
.role-badge--operador { --c: #00A88E; } .role-badge--visualizador { --c: #64748B; }
.master-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; background: linear-gradient(135deg, #FFD23F, #FF9F1C); color: #5A3B00; }

.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.role-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px; position: relative; overflow: hidden; }
.role-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c); }
.role-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.role-card h3 { font-size: .95rem; color: var(--navy); }
.role-card__level { font-size: .66rem; font-weight: 800; color: var(--muted); letter-spacing: .06em; }
.role-card__count { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--navy); }
.role-card ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 3px; font-size: .74rem; color: var(--muted); }
.role-card li::before { content: '✓ '; color: var(--c); font-weight: 800; }
.role-card li.no { opacity: .45; text-decoration: line-through; }
.role-card li.no::before { content: '– '; }

.user-cell { display: flex; align-items: center; gap: 12px; }
.user-cell .avatar { width: 36px; height: 36px; font-size: .72rem; border-radius: 11px; flex-shrink: 0; }
.user-cell strong { display: flex; align-items: center; gap: 6px; }
.user-cell span { font-size: .76rem; color: var(--muted); }
.table .select { padding: 6px 28px 6px 10px; font-size: .78rem; }
.pending { font-size: .72rem; font-weight: 700; color: #B86500; background: #FFF4E0; padding: 2px 8px; border-radius: 999px; }
.row-actions { display: flex; justify-content: flex-end; }
.icon-btn--danger { color: #C9353A; box-shadow: none; background: transparent; }
.icon-btn--danger:hover { background: rgba(229,72,77,.08); }
.table tbody tr.no-hover { cursor: default; }
.table tbody tr.no-hover:hover { background: transparent; }

.role-pick { display: grid; gap: 8px; }
.role-pick label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; }
.role-pick input { margin-top: 3px; accent-color: var(--blue); }
.role-pick label:has(input:checked) { border-color: var(--blue); background: var(--sky-50); }
.role-pick b { display: block; color: var(--navy); font-size: .86rem; }
.role-pick small { color: var(--muted); font-size: .74rem; }

.kpis--3 { grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; }
.table--log { min-width: 1000px; }
.table--log td { font-size: .82rem; }
.ev-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: color-mix(in srgb, var(--c) 14%, #fff); color: color-mix(in srgb, var(--c) 78%, #000); }
.log-when b { display: block; font-weight: 700; }
.log-when span, .log-origin span, .log-device span { display: block; font-size: .72rem; color: var(--muted); }
.method { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.method--password { color: #B86500; }
tr.is-denied td { background: rgba(255,77,94,.04); }
.storage-info { text-align: center; font-size: .74rem; color: var(--muted); margin: 14px 0 0; }
.storage-info b { color: var(--navy); }
.load-more { display: flex; justify-content: center; margin-top: 14px; }
.readonly-note { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--sky-50); color: var(--muted); font-size: .8rem; font-weight: 600; }

@media (max-width: 1080px) { .roles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .roles, .kpis--3 { grid-template-columns: 1fr; } }

/* ---------- solicitação de cadastro ---------- */
.ts-slot:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.request-cta { display: grid; gap: 8px; text-align: center; padding-top: 4px; }
.request-cta > span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.login__card--wide { width: min(560px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; }
.login__backlink { align-self: flex-start; border: 0; background: none; padding: 0; font-weight: 700; font-size: .8rem; color: var(--blue); }
.login__card .form-grid { gap: 12px; }
.verified { font-style: normal; font-size: .7rem; font-weight: 800; color: #0B8A66; background: rgba(43,217,166,.14); padding: 1px 8px; border-radius: 999px; margin-left: 6px; }
.field input[readonly] { background: var(--sky-50); color: var(--muted); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; accent-color: var(--blue); margin-top: 1px; flex-shrink: 0; }
.done-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal), #12B886); color: #fff; animation: rise .5s var(--ease); }
.done-icon svg { width: 32px; height: 32px; stroke-width: 3; }
.nav-badge--warn { background: #FF9F1C; }

/* ---------- pedidos de acesso ---------- */
.access-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.access-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px; display: flex; flex-direction: column; gap: 12px; animation: fadeUp .4s var(--ease) backwards; position: relative; }
.access-card.is-pending::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0; background: #FF9F1C; }
.access-card__head { display: flex; gap: 12px; align-items: center; }
.access-card__head .avatar { width: 42px; height: 42px; border-radius: 13px; font-size: .8rem; flex-shrink: 0; }
.access-card__head div { flex: 1; min-width: 0; }
.access-card__head strong { display: block; font-family: var(--font-head); color: var(--navy); }
.access-card__head span { font-size: .78rem; color: var(--muted); word-break: break-all; }
.access-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.access-meta div { background: var(--sky-50); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.access-meta dt { font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.access-meta dd { margin: 2px 0 0; font-weight: 700; font-size: .84rem; color: var(--navy); word-break: break-word; }
.access-msg { margin: 0; font-size: .84rem; color: #334155; background: #FAFBFD; border-left: 3px solid var(--line); padding: 8px 10px; border-radius: 0 8px 8px 0; white-space: pre-wrap; }
.access-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.access-actions .select { flex: 1; min-width: 150px; }
.reject-box { display: grid; gap: 8px; width: 100%; }
.reject-box textarea { padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); resize: vertical; font-size: .84rem; }
.reject-box div { display: flex; gap: 8px; justify-content: flex-end; }
.access-result { font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.status-pill { font-size: .68rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.status-pill--pendente { background: #FFF4E0; color: #B86500; }
.status-pill--aprovado { background: rgba(43,217,166,.16); color: #0B8A66; }
.status-pill--recusado { background: rgba(229,72,77,.1); color: #C9353A; }
