/* Pochote — panel del equipo */
:root {
  --ink: #13212e; --ink-2: #263646; --ink-3: #3a4c5c;
  --bg: #f2f4f3; --panel: #ffffff; --line: #dde3e6; --line-2: #eaeef0;
  --text: #13212e; --muted: #5f6d79; --faint: #8b97a1;
  --sea: #1e4f8f; --sea-2: #2f66ad; --sea-soft: #e3ecf7;
  --corteza: #f2c12e; --corteza-soft: #fdf3d2;
  --ok: #3f6a2c; --ok-soft: #e4efdc; --warn: #8a6200; --warn-soft: #fbf0cf; --bad: #a3261b; --bad-soft: #f6e2df;
  --c-web: #1e4f8f; --c-app: #4f7fc0; --c-admin: #93b0d6; --c-airbnb: #d0643f; --c-booking_com: #2f6d6a; --c-vrbo: #b08a2e; --c-expedia: #6b7a8a; --c-other: #a9b3bb;
  --side-w: 232px;
  --r: 6px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 "Archivo", system-ui, sans-serif; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
[x-cloak] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--sea); }
:focus-visible { outline: 3px solid var(--corteza); outline-offset: 1px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mono-code { font-feature-settings: "tnum"; letter-spacing: .02em; }

/* Estructura */
.shell { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #c9d3db; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 22px; color: #fff; text-decoration: none; }
.side .brand svg { width: 24px; height: 24px; }
.side .brand b { font-stretch: 125%; font-weight: 820; font-size: 20px; letter-spacing: -0.02em; }
.side .group { padding: 6px 0 10px; }
.side .group > span { display: block; padding: 6px 20px 6px; font-size: 12px; color: #7f8f9c; font-weight: 600; }
.side button.item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 20px; background: none; border: 0; color: #c9d3db; cursor: pointer; text-align: left; font-size: 14.5px; position: relative; }
.side button.item svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; opacity: .85; }
.side button.item:hover { color: #fff; background: rgba(255,255,255,.04); }
.side button.item.on { color: #fff; background: var(--ink-2); font-weight: 600; }
.side button.item.on::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; background: var(--corteza); }
.side .badge { margin-left: auto; background: var(--corteza); color: var(--ink); font-size: 11.5px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; }
.side .badge.alert { background: #e0574a; color: #fff; }
.side .me { margin-top: auto; padding: 16px 20px; border-top: 1px solid var(--ink-2); font-size: 13px; display: flex; align-items: center; gap: 10px; }
.side .me .av { width: 30px; height: 30px; border-radius: 50%; background: var(--ink-3); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.side .me button { margin-left: auto; background: none; border: 1px solid var(--ink-3); color: #c9d3db; border-radius: 4px; padding: 3px 8px; cursor: pointer; font-size: 12px; }
.side .me button:hover { color: #fff; border-color: #6d7f8e; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(242,244,243,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.topbar .in { display: flex; align-items: center; gap: 14px; padding: 12px 28px; min-height: 64px; }
.topbar h1 { margin: 0; font-size: 22px; font-stretch: 116%; font-weight: 760; letter-spacing: -0.01em; }
.topbar .sub { color: var(--muted); font-size: 13px; }
.topbar .tools { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search { position: relative; }
.search input { width: 260px; padding-left: 32px; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; stroke: var(--faint); fill: none; stroke-width: 2; }
.content { padding: 24px 28px 64px; max-width: 1560px; width: 100%; }

/* Controles */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-weight: 560; font-size: 13.5px; white-space: nowrap; text-decoration: none; color: var(--text); }
.btn:hover { border-color: #b9c4cb; }
.btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.btn.primary { background: var(--sea); border-color: var(--sea); color: #fff; }
.btn.primary:hover { background: #18427a; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.danger { color: var(--bad); }
.btn.danger.solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(19,33,46,.06); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.icon { width: 34px; padding: 0; justify-content: center; }
.btn:disabled { opacity: .5; cursor: default; }
input.f, select.f, textarea.f { height: 34px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 0 10px; font-size: 13.5px; min-width: 0; }
textarea.f { height: auto; padding: 8px 10px; min-height: 84px; resize: vertical; width: 100%; }
input.f:focus, select.f:focus, textarea.f:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(30,79,143,.15); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 2px; }
.seg button { border: 0; background: none; padding: 0 11px; height: 28px; border-radius: 4px; cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 560; }
.seg button.on { background: var(--ink); color: #fff; }

/* Paneles */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: 1 / -1; }
@media (max-width: 1200px) { .c3 { grid-column: span 6; } .c4, .c5, .c7, .c8 { grid-column: 1 / -1; } .c6 { grid-column: 1 / -1; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.panel > header { display: flex; align-items: center; gap: 10px; padding: 14px 18px 12px; }
.panel > header h2 { margin: 0; font-size: 15px; font-weight: 680; }
.panel > header .hint { color: var(--muted); font-size: 12.5px; }
.panel > header .act { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.panel .body { padding: 4px 18px 18px; }
.panel .flush { padding: 0; }
.chart { width: 100%; height: 300px; }

/* Banda de hoy */
.todayband { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 16px; }
.todayband button { background: none; border: 0; border-left: 1px solid var(--line-2); padding: 14px 18px; text-align: left; cursor: pointer; }
.todayband button:first-child { border-left: 0; }
.todayband button:hover { background: #f8faf9; }
.todayband b { display: block; font-size: 26px; font-stretch: 112%; font-weight: 720; line-height: 1.15; }
.todayband span { color: var(--muted); font-size: 12.5px; }
.todayband .alert b { color: var(--bad); }
.todayband .day { background: var(--ink); color: #fff; border-radius: var(--r) 0 0 var(--r); cursor: default; }
.todayband .day:hover { background: var(--ink); }
.todayband .day b { font-size: 18px; } .todayband .day span { color: #aab7c2; }
@media (max-width: 1100px) { .todayband { grid-template-columns: repeat(4, 1fr); } }

/* Indicadores */
.kpi { padding: 16px 18px 6px; position: relative; overflow: hidden; }
.kpi .l { color: var(--muted); font-size: 13px; font-weight: 560; }
.kpi .v { font-size: 30px; font-stretch: 112%; font-weight: 720; letter-spacing: -0.01em; margin-top: 4px; line-height: 1.1; }
.kpi .d { font-size: 12.5px; margin-top: 4px; color: var(--muted); }
.kpi .d b { font-weight: 650; }
.up { color: var(--ok); } .down { color: var(--bad); }
.kpi .spark { height: 48px; margin: 6px -18px 0; }
.kpi.small .v { font-size: 22px; }

/* Mapa de ocupación hacia adelante */
.heat { display: grid; grid-template-columns: 200px 1fr 120px; align-items: center; }
.heat .h-name { padding: 4px 12px 4px 18px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 1px solid var(--line-2); height: 30px; display: flex; align-items: center; gap: 6px; }
.heat .h-name small { color: var(--faint); }
.heat .h-row { display: grid; grid-template-columns: repeat(90, 1fr); gap: 1px; height: 30px; align-items: center; border-top: 1px solid var(--line-2); padding: 0 2px; }
.heat .h-row i { height: 18px; background: #e9eef1; border-radius: 1px; }
.heat .h-row i.b { background: var(--sea); }
.heat .h-row i.o { background: repeating-linear-gradient(-45deg, #d9b54a 0 3px, #f1dc98 3px 6px); }
.heat .h-row i.w { box-shadow: inset 0 -3px 0 rgba(19,33,46,.08); }
.heat .h-occ { border-top: 1px solid var(--line-2); height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 18px 0 12px; font-size: 13px; }
.heat .h-occ .bar { flex: 1; height: 6px; background: #e9eef1; border-radius: 3px; overflow: hidden; }
.heat .h-occ .bar i { display: block; height: 100%; background: var(--sea); }
.heat .h-head { display: grid; grid-template-columns: repeat(90, 1fr); font-size: 11.5px; color: var(--muted); padding: 0 2px 6px; }
.heat .h-head span { grid-row: 1; white-space: nowrap; border-left: 1px solid var(--line); padding-left: 4px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* Tablas */
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.t th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--line); background: #fafbfb; position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.t td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr.click { cursor: pointer; }
.t tbody tr.click:hover td { background: #f7f9fa; }
.t th:first-child, .t td:first-child { padding-left: 18px; }
.t th:last-child, .t td:last-child { padding-right: 18px; }
.t .r { text-align: right; }
.t .strong { font-weight: 600; }
.t .sub { font-size: 12px; color: var(--muted); }
.t tfoot td { font-weight: 700; border-top: 1px solid var(--line); background: #fafbfb; }
.thumb { width: 44px; height: 32px; border-radius: 3px; object-fit: cover; background: #e3e8eb; display: block; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 9px 2px 8px; border-radius: 999px; background: #edf0f2; color: var(--ink-3); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--sea-soft); color: var(--sea); }
.pill.plain::before { display: none; }
.ch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.ch i { width: 8px; height: 8px; border-radius: 2px; flex: none; }

.meter { height: 6px; background: #e9eef1; border-radius: 3px; position: relative; min-width: 80px; }
.meter > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--sea); }
.meter > b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--bad); }

.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .grow { flex: 1; }
.stack > * + * { margin-top: 16px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* Calendario de ocupación */
.tape-wrap { overflow: auto; max-height: calc(100vh - 190px); border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.tape { display: grid; position: relative; min-width: max-content; }
.tape .corner, .tape .ph { position: sticky; left: 0; background: var(--panel); z-index: 4; border-right: 1px solid var(--line); }
.tape .corner { top: 0; z-index: 6; display: flex; align-items: flex-end; padding: 0 14px 8px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.tape .dh { position: sticky; top: 0; z-index: 3; background: var(--panel); border-bottom: 1px solid var(--line); text-align: center; font-size: 11.5px; color: var(--muted); padding: 4px 0 6px; border-left: 1px solid var(--line-2); }
.tape .dh b { display: block; font-size: 14px; color: var(--text); font-weight: 650; }
.tape .dh.we { background: #f7f8f6; }
.tape .dh.today { background: var(--ink); color: #aab7c2; }
.tape .dh.today b { color: #fff; }
.tape .dh .mo { font-weight: 700; color: var(--sea); }
.tape .ph { display: flex; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid var(--line-2); height: 54px; }
.tape .ph img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; background: #e3e8eb; flex: none; }
.tape .ph b { display: block; font-size: 13.5px; font-weight: 640; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.tape .ph span { font-size: 12px; color: var(--muted); }
.tape .cell { border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); height: 54px; cursor: crosshair; position: relative; }
.tape .cell.we { background: #fafbf9; }
.tape .cell.today { background: rgba(242,193,46,.10); }
.tape .cell.sel { background: rgba(30,79,143,.14); }
.tape .cell:hover { background: rgba(30,79,143,.06); }
.tape .bar { position: absolute; height: 34px; margin-top: 10px; border-radius: 5px; color: #fff; font-size: 12.5px; padding: 3px 9px; overflow: hidden; white-space: nowrap; cursor: pointer; z-index: 2; line-height: 1.25; box-shadow: 0 0 0 1px rgba(255,255,255,.7); }
.tape .bar small { display: block; font-size: 11px; opacity: .85; }
.tape .bar:hover { filter: brightness(1.08); z-index: 3; }
.tape .bar.owner { background: repeating-linear-gradient(-45deg, #e9cf7c 0 6px, #f4e3a9 6px 12px); color: #5c4700; }
.tape .bar.manual { background: repeating-linear-gradient(-45deg, #c3ccd3 0 6px, #dde3e7 6px 12px); color: var(--ink-3); }
.tape .bar.hold { background: #fff; color: var(--sea); border: 1.5px dashed var(--sea); box-shadow: none; }
.tape .bar.pending { opacity: .65; }
.tape .bar .off { display: inline-block; background: var(--corteza); color: var(--ink); font-size: 10px; font-weight: 700; padding: 0 4px; border-radius: 2px; margin-right: 4px; }
.tape .clean { position: absolute; bottom: 3px; width: 8px; height: 8px; border-radius: 50%; z-index: 3; border: 1.5px solid #fff; }
.tape .clean.unassigned { background: var(--bad); } .tape .clean.assigned, .tape .clean.in_progress { background: var(--corteza); } .tape .clean.done { background: var(--ok); }
.tape .nowline { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--corteza); z-index: 2; pointer-events: none; }

/* Limpieza: tablero semanal */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.week .col { background: #eef1f0; border-radius: var(--r); padding: 8px; min-height: 240px; }
.week .col.is-today { background: #fbf3d6; }
.week .col h3 { margin: 2px 4px 8px; font-size: 13px; font-weight: 700; display: flex; justify-content: space-between; }
.week .col h3 span { color: var(--muted); font-weight: 500; }
.task { background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 9px 10px; margin-bottom: 8px; cursor: pointer; border-left: 3px solid var(--line); }
.task.unassigned { border-left-color: var(--bad); }
.task.assigned { border-left-color: var(--corteza); }
.task.in_progress { border-left-color: var(--sea); }
.task.done { border-left-color: var(--ok); opacity: .8; }
.task b { display: block; font-size: 13px; }
.task .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.task .who { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; }
.task .who .av { width: 20px; height: 20px; border-radius: 50%; background: var(--sea-soft); color: var(--sea); font-weight: 700; font-size: 10px; display: grid; place-items: center; }
.task .prog { height: 3px; background: #e9eef1; border-radius: 2px; margin-top: 8px; overflow: hidden; }
.task .prog i { display: block; height: 100%; background: var(--ok); }
@media (max-width: 1200px) { .week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Kanban de leads */
.kanban { display: grid; grid-template-columns: repeat(6, minmax(190px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.lane { background: #eef1f0; border-radius: var(--r); padding: 10px; min-height: 360px; }
.lane.drop { background: var(--sea-soft); outline: 2px dashed var(--sea); }
.lane h3 { font-size: 13px; margin: 0 2px 10px; display: flex; justify-content: space-between; }
.lane h3 span { color: var(--muted); font-weight: 500; }
.lead { background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 10px 11px; margin-bottom: 8px; cursor: grab; }
.lead:active { cursor: grabbing; }
.lead b { display: block; font-size: 13.5px; }
.lead .meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.lead .tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.lead .tags span { font-size: 11px; background: #eef1f3; border-radius: 3px; padding: 1px 6px; color: var(--ink-3); }

/* Bandeja de ofertas */
.inbox { display: grid; grid-template-columns: 420px 1fr; gap: 16px; align-items: start; }
.inbox .list { max-height: calc(100vh - 180px); overflow-y: auto; }
.offer-row { padding: 12px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.offer-row:hover { background: #f7f9fa; }
.offer-row.on { background: var(--sea-soft); box-shadow: inset 3px 0 0 var(--sea); }
.offer-row b { font-size: 13.5px; }
.offer-row .meta { font-size: 12px; color: var(--muted); }
.offer-row .amt { text-align: right; font-weight: 700; }
.offer-row .meter { grid-column: 1 / -1; margin-top: 6px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 16px 28px; font-size: 13.5px; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 2px solid var(--muted); }
.timeline li.guest::before { border-color: var(--corteza); background: var(--corteza); }
.timeline li.admin::before { border-color: var(--sea); background: var(--sea); }
.timeline li.system::before { border-color: var(--faint); }
.timeline .when { font-size: 12px; color: var(--muted); }
.compare { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r); }
.compare div { padding: 12px 14px; border-left: 1px solid var(--line-2); }
.compare div:first-child { border-left: 0; }
.compare span { font-size: 12px; color: var(--muted); display: block; }
.compare b { font-size: 20px; font-stretch: 110%; }
@media (max-width: 1100px) { .inbox { grid-template-columns: 1fr; } }

/* Cajón lateral */
.scrim { position: fixed; inset: 0; background: rgba(19,33,46,.32); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--panel); z-index: 41; display: flex; flex-direction: column; box-shadow: -18px 0 40px rgba(19,33,46,.12); }
.drawer.wide { width: min(820px, 100vw); }
.drawer header { padding: 18px 22px 14px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.drawer header h2 { margin: 0; font-size: 20px; font-stretch: 112%; font-weight: 740; }
.drawer header .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.drawer header .x { margin-left: auto; }
.drawer .dbody { padding: 18px 22px 28px; overflow-y: auto; flex: 1; }
.drawer .dbody h3 { font-size: 13px; color: var(--muted); font-weight: 650; margin: 22px 0 10px; }
.drawer .dbody h3:first-child { margin-top: 0; }
.drawer footer { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; background: #fafbfb; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: -4px -22px 18px; padding: 0 22px; }
.tabs button { border: 0; background: none; padding: 10px 12px; cursor: pointer; color: var(--muted); font-weight: 560; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--text); border-bottom-color: var(--ink); }
.cover { width: 100%; aspect-ratio: 16/7; object-fit: cover; border-radius: 4px; background: #e3e8eb; margin-bottom: 16px; }
.money-rows .row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.money-rows .row.total { font-weight: 720; font-size: 15px; border-bottom: 0; border-top: 1.5px solid var(--ink); }

/* Ventana modal */
.modal-scrim { position: fixed; inset: 0; background: rgba(19,33,46,.42); z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal { background: var(--panel); border-radius: 8px; width: min(480px, 100%); box-shadow: 0 24px 60px rgba(19,33,46,.28); overflow: hidden; }
.modal.wide { width: min(680px, 100%); }
.modal header { padding: 20px 22px 4px; }
.modal header h2 { margin: 0; font-size: 18px; font-stretch: 110%; font-weight: 720; }
.modal header p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.modal .mbody { padding: 14px 22px 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.modal .fld { grid-column: 1 / -1; }
.modal .fld.half { grid-column: span 1; }
.modal label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 5px; }
.modal .fld input.f, .modal .fld select.f { width: 100%; height: 38px; }
.modal .fld .h { font-size: 12px; color: var(--muted); margin-top: 4px; }
.modal .money { position: relative; }
.modal .money span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.modal .money input { padding-left: 22px; }
.modal .chk { display: flex; gap: 8px; align-items: center; font-weight: 500; font-size: 13.5px; }
.modal footer { padding: 16px 22px 18px; display: flex; justify-content: flex-end; gap: 8px; }
.modal .err { grid-column: 1 / -1; color: var(--bad); font-size: 13px; background: var(--bad-soft); padding: 8px 10px; border-radius: 4px; }

/* Avisos */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 11px 14px 11px 16px; border-radius: 6px; min-width: 260px; max-width: 420px; font-size: 13.5px; box-shadow: 0 12px 30px rgba(19,33,46,.25); border-left: 4px solid var(--ok); display: flex; gap: 10px; align-items: flex-start; }
.toast.bad { border-left-color: #e0574a; }
.toast.info { border-left-color: var(--corteza); }
.toast button { margin-left: auto; background: none; border: 0; color: #aab7c2; cursor: pointer; font-size: 16px; line-height: 1; }

/* Entrada */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login .art { background: var(--ink); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login .art h1 { font-size: 40px; font-stretch: 116%; font-weight: 760; line-height: 1.08; margin: 0; max-width: 12em; letter-spacing: -0.015em; }
.login .art p { color: #aab7c2; max-width: 30em; }
.login .art .tagmark { position: absolute; right: -60px; bottom: -40px; width: 360px; opacity: .12; }
.login .form { display: grid; place-items: center; padding: 40px; }
.login form { width: min(360px, 100%); }
.login form h2 { margin: 0 0 6px; font-size: 24px; font-stretch: 112%; }
.login form label { display: block; font-size: 12.5px; font-weight: 600; margin: 16px 0 5px; }
.login form input { width: 100%; height: 42px; }
.login form .btn { width: 100%; height: 44px; justify-content: center; margin-top: 22px; font-size: 15px; }
@media (max-width: 900px) { .login { grid-template-columns: 1fr; } .login .art { display: none; } }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; overflow-x: auto; }
  .side .group > span, .side .me { display: none; }
  .side .group { display: flex; padding: 0; }
  .side button.item { white-space: nowrap; }
  .topbar .in, .content { padding-left: 16px; padding-right: 16px; }
  .search input { width: 180px; }
}
