/* Partes de trabajo MR — app de campo para técnicos */
:root {
  --ink: #17262b;
  --ink-2: #4a5b61;
  --ink-3: #7d8c91;
  --paper: #f3f6f5;
  --sheet: #ffffff;
  --line: #dde4e3;
  --brand: #14a6a6;
  --brand-ink: #0b6e70;
  --brand-wash: #e3f4f3;
  --amber: #e89b0c;
  --amber-wash: #fdf3dc;
  --green: #2a8f63;
  --green-wash: #e2f3ea;
  --red: #c93c3c;
  --red-wash: #fbe7e6;
  --violet: #7a5bc4;
  --violet-wash: #efeafa;
  --radius-s: 6px;
  --radius-m: 12px;
  --bar-h: 76px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Barra superior ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: var(--ink); color: #fff;
}
.top .mark {
  font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em;
  font-size: 20px; color: var(--brand); text-decoration: none;
}
.top .title { flex: 1; font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .icon-btn { color: #fff; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border: 0; background: transparent; border-radius: 50%; cursor: pointer;
}
.icon-btn svg { width: 24px; height: 24px; }

main { max-width: 720px; margin: 0 auto; padding: 16px 16px calc(var(--bar-h) + 32px + env(safe-area-inset-bottom)); }

/* ---------- Tipografía ---------- */
h1 { font-size: 26px; line-height: 1.15; font-weight: 800; font-stretch: 110%; letter-spacing: -0.015em; margin: 8px 0 16px; }
h2 { font-size: 18px; line-height: 1.25; font-weight: 700; margin: 0 0 10px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; color: var(--ink-3); }

/* ---------- Secciones del formulario ---------- */
.section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }
.section > h2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password],
input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 12px;
  border: 1.5px solid var(--line); border-radius: var(--radius-s);
  background: var(--sheet); font-size: 16px;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-wash); }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.row { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.row3 { display: grid; gap: 10px; grid-template-columns: 1fr 1fr 5.2em; }
.row3 input { padding-left: 10px; padding-right: 8px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: var(--radius-s);
  border: 1.5px solid var(--ink); background: var(--sheet); color: var(--ink);
  font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none;
}
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:active { background: var(--brand-ink); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--brand-ink); padding: 0 8px; }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 20px; height: 20px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Barra de acción fija abajo, al alcance del pulgar */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.actionbar .inner { max-width: 720px; margin: 0 auto; display: flex; gap: 10px; }
.actionbar .btn { flex: 1; }

/* ---------- Chips (plantillas y filtros) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: var(--sheet); border-radius: 999px;
  padding: 9px 14px; font-size: 15px; font-weight: 600; cursor: pointer; min-height: 42px;
}
.chip[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .count { display: inline-block; margin-left: 6px; background: var(--amber); color: var(--ink); border-radius: 999px; padding: 0 7px; font-size: 13px; }

/* ---------- Interruptores ---------- */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { flex: none; width: 50px; height: 30px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(23,38,43,.3); transition: transform .15s; }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Lista de comprobación */
.checks { display: grid; gap: 2px; }
.check {
  display: flex; align-items: center; gap: 12px; padding: 10px 4px; cursor: pointer;
  border-bottom: 1px dashed var(--line);
}
.check input { width: 24px; height: 24px; accent-color: var(--brand); flex: none; }

/* ---------- Filas repetibles (materiales, equipos) ---------- */
.lines { display: grid; gap: 10px; }
.line { position: relative; padding: 12px 48px 2px 12px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-s); }
.line .remove { position: absolute; top: 4px; right: 2px; color: var(--ink-3); }
.line label.field { margin-bottom: 10px; }

/* ---------- Cliente ---------- */
.picker { position: relative; }
.results { margin-top: 6px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--sheet); max-height: 300px; overflow: auto; }
.results button { display: block; width: 100%; text-align: left; padding: 12px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; }
.results button:last-child { border-bottom: 0; }
.results button:hover, .results button:focus-visible { background: var(--brand-wash); }
.client-card { padding: 12px 14px; border-left: 4px solid var(--brand); background: var(--sheet); border-radius: 0 var(--radius-s) var(--radius-s) 0; display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.client-card strong { display: block; font-size: 17px; }

/* ---------- Fotos ---------- */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.photo { position: relative; aspect-ratio: 1; border-radius: var(--radius-s); overflow: hidden; background: var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo button { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(23,38,43,.75); color: #fff; cursor: pointer; display: grid; place-items: center; }
.photo-add { aspect-ratio: 1; border: 2px dashed var(--line); border-radius: var(--radius-s); display: grid; place-items: center; text-align: center; color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; background: var(--sheet); }
.photo-add svg { width: 28px; height: 28px; display: block; margin: 0 auto 4px; }

/* ---------- Lista de partes ---------- */
.list { display: grid; gap: 0; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.item {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 13px 14px 13px 16px;
  text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); position: relative;
}
.item:last-child { border-bottom: 0; }
.item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--state, var(--line)); }
.item .num { font-weight: 800; font-stretch: 108%; }
.item .who { grid-column: 1 / -1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .meta { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-2); }
.item .state { grid-row: 1; grid-column: 2; justify-self: end; }
.s-pend { --state: var(--amber); }
.s-fact { --state: var(--green); }
.s-sin { --state: #b5c0c2; }
.s-err { --state: var(--red); }
.s-cola { --state: var(--brand); }

.tag { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tag.pend { background: var(--amber-wash); color: #8a5a00; }
.tag.fact { background: var(--green-wash); color: var(--green); }
.tag.sin { background: #eef1f2; color: var(--ink-2); }
.tag.err { background: var(--red-wash); color: var(--red); }
.tag.cola { background: var(--brand-wash); color: var(--brand-ink); }

.empty { text-align: center; padding: 40px 16px; color: var(--ink-2); }
.empty p { margin: 0 0 16px; }

/* Aviso en lista */
.notice { padding: 12px 14px; border-radius: var(--radius-s); margin: 0 0 14px; font-size: 15px; }
.notice.info { background: var(--brand-wash); }
.notice.warn { background: var(--amber-wash); }
.notice.error { background: var(--red-wash); color: #7e1f1f; }
.notice.ok { background: var(--green-wash); }

/* ---------- Pantalla de firma: el albarán ---------- */
.slip {
  background: var(--sheet); border-radius: 4px; padding: 20px 18px 18px;
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(23,38,43,.35);
  position: relative;
}
.slip::after { /* borde dentado inferior, como un parte arrancado del talonario */
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px;
  background: radial-gradient(circle at 6px -2px, transparent 6px, var(--sheet) 6.5px) 0 0 / 12px 8px repeat-x;
}
.slip .head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 12px; }
.slip .head .no { font-weight: 800; font-stretch: 115%; font-size: 22px; letter-spacing: -0.02em; }
.slip dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 12px; font-size: 15px; }
.slip dt { color: var(--ink-3); }
.slip dd { margin: 0; font-weight: 600; }
.slip .work { white-space: pre-line; font-size: 15px; margin: 0 0 12px; }
.slip ul { margin: 0 0 12px; padding-left: 20px; font-size: 15px; }

.sign-area { margin-top: 22px; }
.pad-wrap { position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-s); touch-action: none; }
.pad-wrap canvas { display: block; width: 100%; height: 220px; touch-action: none; cursor: crosshair; }
.pad-wrap .baseline { position: absolute; left: 22px; right: 22px; bottom: 46px; border-bottom: 1.5px dashed var(--ink-3); pointer-events: none; }
.pad-wrap .x { position: absolute; left: 22px; bottom: 50px; font-weight: 800; color: var(--ink-3); pointer-events: none; font-size: 20px; }
.pad-wrap .hint { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-size: 13px; color: var(--ink-3); pointer-events: none; }
.pad-wrap.signed .hint { visibility: hidden; }

/* ---------- Resultado ---------- */
.result-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.result-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--sheet); border-radius: var(--radius-s); border: 1px solid var(--line); }
.result-list .ico { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; }
.ico.ok { background: var(--green); }
.ico.err { background: var(--red); }
.ico.off { background: #b5c0c2; }
.ico.wait { background: var(--brand); }

.big-no { font-size: 40px; font-weight: 800; font-stretch: 118%; letter-spacing: -0.03em; line-height: 1; margin: 6px 0 4px; }

/* ---------- Detalle ---------- */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--ink-3); font-size: 14px; }
.kv dd { margin: 0; }
table.simple { width: 100%; border-collapse: collapse; font-size: 15px; }
table.simple th { text-align: left; font-size: 13px; color: var(--ink-3); font-weight: 600; padding: 4px 8px 4px 0; }
table.simple td { padding: 8px 8px 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
table.simple .r { text-align: right; }

/* ---------- Menú lateral ---------- */
.drawer-bg { position: fixed; inset: 0; background: rgba(23,38,43,.45); z-index: 40; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: min(300px, 84vw); z-index: 41;
  background: var(--sheet); padding: calc(18px + env(safe-area-inset-top)) 0 18px; display: flex; flex-direction: column;
}
.drawer .me { padding: 0 20px 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.drawer a, .drawer button.link { display: flex; align-items: center; gap: 14px; padding: 14px 20px; color: var(--ink); text-decoration: none; font-weight: 600; border: 0; background: none; width: 100%; text-align: left; cursor: pointer; font-size: 16px; }
.drawer a[aria-current=page] { background: var(--brand-wash); color: var(--brand-ink); }
.drawer svg { width: 22px; height: 22px; color: var(--ink-3); }

/* Hoja inferior (nuevo cliente, usuario) */
.sheet-bg { position: fixed; inset: 0; background: rgba(23,38,43,.45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--paper); width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; border-radius: 16px 16px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
.sheet h2 { font-size: 20px; }
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: 16px; } }

/* Aviso flotante */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--bar-h) + 20px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; z-index: 60; font-weight: 600;
  max-width: calc(100vw - 32px); box-shadow: 0 8px 24px -10px rgba(23,38,43,.5);
}
.toast.err { background: var(--red); }

/* Pantallas de acceso */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--ink); }
.auth .box { width: 100%; max-width: 380px; background: var(--paper); border-radius: var(--radius-m); padding: 28px 22px; }
.auth .brand { font-weight: 800; font-stretch: 118%; font-size: 34px; letter-spacing: -0.03em; color: var(--brand-ink); line-height: 1; }
.auth .brand small { display: block; font-size: 15px; font-weight: 600; font-stretch: 100%; letter-spacing: 0; color: var(--ink-2); margin-top: 6px; }

.spinner { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn:not(.primary) .spinner { border-color: var(--line); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.loading { padding: 60px 0; display: grid; place-items: center; }
.loading .spinner { border-color: var(--line); border-top-color: var(--brand); width: 32px; height: 32px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (max-width: 380px) {
  .row, .row3 { grid-template-columns: 1fr; }
}

/* ---------- Agenda ---------- */
.ag-head { display: flex; align-items: center; gap: 4px; margin: 0 -8px 8px; }
.ag-month { flex: 1; font-weight: 800; font-stretch: 110%; font-size: 20px; letter-spacing: -0.01em; padding-left: 4px; }
.ag-head .icon-btn { color: var(--ink); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.day {
  border: 1.5px solid var(--line); background: var(--sheet); color: var(--ink); border-radius: var(--radius-s);
  padding: 6px 0 7px; text-align: center; cursor: pointer; min-height: 64px; display: grid; gap: 1px; justify-items: center;
}
.day .dw { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.day .dn { font-size: 19px; font-weight: 800; line-height: 1.15; }
.day.today .dn { color: var(--brand-ink); }
.day[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #fff; }
.day[aria-pressed=true] .dw { color: #b9c6c8; }
.day[aria-pressed=true].today .dn { color: #fff; }
.day .dots { display: flex; gap: 3px; height: 7px; align-items: center; }
.dot { width: 6px; height: 6px; border-radius: 50%; }
.dot.pend { background: var(--amber); }
.dot.cola { background: var(--brand); }
.dot.fact { background: var(--green); }
.dot-more { font-size: 10px; font-weight: 800; line-height: 1; }
.item.as-btn { border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; width: 100%; cursor: pointer; font: inherit; color: inherit; }
.item.as-btn:last-child { border-bottom: 0; }
.item .desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-3); }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: var(--sheet); }
.seg3 button { border: 0; border-right: 1px solid var(--line); background: none; min-height: 46px; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.seg3 button:last-child { border-right: 0; }
.seg3 [data-e=pendiente][aria-pressed=true] { background: var(--amber-wash); color: #8a5a00; box-shadow: inset 0 -3px 0 var(--amber); }
.seg3 [data-e=tecnico][aria-pressed=true] { background: var(--brand-wash); color: var(--brand-ink); box-shadow: inset 0 -3px 0 var(--brand); }
.seg3 [data-e=finalizado][aria-pressed=true], .seg4 [data-e=finalizado][aria-pressed=true] { background: var(--green-wash); color: var(--green); box-shadow: inset 0 -3px 0 var(--green); }

/* ---------- Tablero de trabajos ---------- */
main.wide { max-width: 1240px; }
.tag.mant { background: var(--violet-wash); color: var(--violet); }
.dot.mant { background: var(--violet); }
.s-mant { --state: var(--violet); }
.row3m { display: grid; gap: 10px; grid-template-columns: 5.2em 1fr 1fr; }
.row3m input { padding-left: 10px; padding-right: 8px; }
.seg4 { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: var(--sheet); }
.seg4 button { border: 0; border-right: 1px solid var(--line); background: none; min-height: 46px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--ink-2); padding: 0 4px; }
.seg4 button:last-child { border-right: 0; }
.seg4 button:disabled { color: var(--ink-3); cursor: not-allowed; opacity: .6; }
.seg4 [data-e=pendiente][aria-pressed=true] { background: var(--amber-wash); color: #8a5a00; box-shadow: inset 0 -3px 0 var(--amber); }
.seg4 [data-e=realizado][aria-pressed=true] { background: var(--brand-wash); color: var(--brand-ink); box-shadow: inset 0 -3px 0 var(--brand); }
.seg4 [data-e=mantenimiento][aria-pressed=true] { background: var(--violet-wash); color: var(--violet); box-shadow: inset 0 -3px 0 var(--violet); }
.seg4 [data-e=finalizado][aria-pressed=true] { background: var(--green-wash); color: var(--green); box-shadow: inset 0 -3px 0 var(--green); }
.tabs2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #e6ecea; padding: 4px; border-radius: 10px; margin: 0 0 14px; max-width: 420px; }
.tabs2 a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border-radius: 7px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.tabs2 a svg { width: 18px; height: 18px; }
.tabs2 a[aria-selected=true] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 3px rgba(23,38,43,.15); }
.board-tools { display: flex; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.board-tools input { flex: 1 1 220px; }
.board-tools select { flex: 0 1 220px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 84vw); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding: 0 16px; }
@media (min-width: 900px) { .board { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; } }
.board .loading { grid-column: 1 / -1; }
.col { background: #e9efed; border-radius: var(--radius-m); padding: 10px; scroll-snap-align: start; border-top: 4px solid var(--state, var(--line)); min-height: 200px; display: flex; flex-direction: column; transition: box-shadow .15s, background .15s; }
.col.over { background: var(--brand-wash); box-shadow: inset 0 0 0 2px var(--brand); }
.col header h2 { font-size: 15px; margin: 2px 2px 0; display: flex; align-items: center; gap: 8px; }
.col header .n { background: var(--sheet); border-radius: 99px; font-size: 12px; padding: 1px 8px; color: var(--ink-2); }
.col header p { margin: 2px 2px 10px; }
.cards { display: grid; gap: 8px; align-content: start; }
.card { display: grid; gap: 4px; text-align: left; font: inherit; color: inherit; background: var(--sheet); border: 1px solid var(--line); border-left: 3px solid var(--state, var(--line)); border-radius: 8px; padding: 10px 11px; cursor: pointer; }
.card:hover { border-color: #c4d0ce; box-shadow: 0 2px 8px -4px rgba(23,38,43,.35); }
.card.dragging { opacity: .45; }
.card strong { font-size: 15px; line-height: 1.25; }
.card .c-top { display: flex; gap: 6px; flex-wrap: wrap; }
.card .c-desc { font-size: 13px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .c-foot { display: flex; gap: 10px; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.pill { font-size: 12px; font-weight: 700; background: #eef2f1; color: var(--ink-2); border-radius: 99px; padding: 2px 8px; }
.pill.late { background: var(--red-wash); color: var(--red); }
.pill.p { background: var(--brand-wash); color: var(--brand-ink); }
.empty-col { text-align: center; padding: 18px 0; margin: 0; }
.notas { display: grid; gap: 8px; margin-bottom: 8px; }
.nota { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 10px; font-size: 14px; }
.nota-add { display: flex; gap: 8px; align-items: stretch; }
.nota-add textarea { flex: 1; min-height: 46px; }
.ok-txt { color: #0f7a5c; }
.err-txt { color: #b42318; }
