/* ===================== Tema (identidad 2F) ===================== */
:root {
  /* Paleta basada en la marca: azul marino, coral, azul brillante, celeste */
  --navy: #16294d;
  --coral: #ee6b54;
  --blue: #4d8ff0;
  --sky: #cfe6f7;

  --bg: #16294d;              /* azul marino */
  --bg-soft: #1e3460;
  --surface: #ffffff;
  --surface-2: #eef5fc;       /* celeste muy suave */
  --ink: #16294d;             /* texto principal = navy */
  --ink-soft: #4a5878;
  --muted: #8b97b3;
  --line: #dde8f3;
  --brand: #4d8ff0;           /* azul brillante */
  --brand-soft: #e2eefd;
  --accent: #ee6b54;          /* coral */
  --accent-soft: #fde9e5;
  --ok: #16a34a;
  --ok-soft: #e6f7ee;
  --warn: #d97706;
  --warn-soft: #fdf2e2;
  --danger: #dc2626;
  --danger-soft: #fdeaea;
  --info: #4d8ff0;
  --info-soft: #e2eefd;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(22, 41, 77, 0.10);
  --shadow-sm: 0 2px 10px rgba(22, 41, 77, 0.07);

  --font-head: "Lato", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  font-family: var(--font-body);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--surface-2);
  color: var(--ink);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  font-family: var(--font-body);
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 900; letter-spacing: -.2px; }

[hidden] { display: none !important; }

/* ===================== Login ===================== */
.login-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  background:
    radial-gradient(1100px 600px at 8% -10%, #244a86 0%, transparent 60%),
    radial-gradient(900px 500px at 112% 115%, #7a3a32 0%, transparent 55%),
    var(--navy);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.login-brand h1 { font-size: 20px; }
.login-brand p { color: var(--muted); font-size: 13px; }

.logo-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.logo-badge.sm { width: 36px; height: 36px; font-size: 15px; border-radius: 10px; }

.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.login-form input {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.login-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.login-error { color: var(--danger); font-size: 13px; text-align: center; }

/* Segmented control (login cliente/equipo) */
.seg {
  display: flex;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
}
.seg-btn {
  flex: 1;
  border: none;
  background: none;
  padding: 9px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.seg-btn.active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }

.login-demo {
  margin-top: 24px;
  border-top: 1px dashed var(--line);
  padding-top: 18px;
}
.login-demo-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  margin-bottom: 10px;
}
.demo-accounts { display: flex; flex-direction: column; gap: 8px; }
.demo-account {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color .15s, transform .1s;
  text-align: left;
}
.demo-account:hover { border-color: var(--brand); transform: translateY(-1px); }
.demo-account .da-name { font-weight: 600; font-size: 13px; }
.demo-account .da-cred { font-size: 12px; color: var(--muted); }
.demo-account .da-go { font-size: 12px; color: var(--brand); font-weight: 700; }

.login-foot { color: rgba(255,255,255,.5); font-size: 12px; }

/* ===================== Layout app ===================== */
.app {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--bg);
  color: #cfd2e6;
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #fff;
  padding: 6px 8px 18px;
}
.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: #b9bdd6;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: var(--brand); color: #fff; }
.nav-item .nav-ico { font-size: 17px; width: 20px; text-align: center; }
.nav-item .nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 7px;
}
.nav-item.active .nav-badge { background: rgba(255,255,255,.25); }
.sidebar-foot { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }

/* ===================== Topbar ===================== */
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.topbar-client { display: flex; align-items: center; gap: 14px; }
.client-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}
.client-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; padding: 4px; }
.topbar-client h2 { font-size: 17px; }
.muted { color: var(--muted); font-size: 13px; }

.topbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.alert-pill {
  background: var(--warn-soft);
  color: var(--warn);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
}
.client-switch {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  background: var(--surface);
  cursor: pointer;
  outline: none;
}
.client-switch:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.member-badge {
  display: flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff;
  border-radius: 999px; padding: 6px 14px 6px 6px;
  font-size: 13px; font-weight: 700;
}
.member-badge .member-ava {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid; place-items: center; font-size: 11px;
}

/* Pestañas (Contenidos) */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 9px 16px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s;
}
.tab:hover { border-color: var(--brand); color: var(--brand); }
.tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.tab .tab-count {
  font-size: 11px;
  background: var(--surface-2);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 4px;
}
.tab.active .tab-count { background: rgba(255,255,255,.25); color: #fff; }

/* Columnas reservadas (Notas Flor) */
.th-lock { color: var(--accent) !important; }
.td-lock { background: var(--accent-soft); color: var(--ink-soft); font-size: 13px; }

/* Campos inline en formularios */
.inline-field { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.mini-select {
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px;
  background: var(--surface); outline: none; cursor: pointer;
}
.mini-select:focus { border-color: var(--brand); }

/* Enlace de material */
.mat-link { color: var(--brand); font-weight: 700; text-decoration: none; white-space: nowrap; }
.mat-link:hover { text-decoration: underline; }
.row-actions { white-space: nowrap; display: flex; gap: 6px; }
.tabs-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tabs-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.row-publicada { opacity: .55; }

/* Modal */
.modal-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(22,41,77,.5); backdrop-filter: blur(2px); }
.modal-card {
  position: relative; background: var(--surface); border-radius: var(--radius);
  width: 100%; max-width: 480px; max-height: 88vh; display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 17px; }
.modal-x { border: none; background: var(--surface-2); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--ink-soft); }
.modal-x:hover { background: var(--line); }
.modal-body { padding: 20px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); }
.edit-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.edit-field input, .edit-field textarea, .edit-field select {
  font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; outline: none; width: 100%;
}
.edit-field textarea { min-height: 70px; resize: vertical; }
.edit-field input:focus, .edit-field textarea:focus, .edit-field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* Info del cliente */
.info-line { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.info-line:last-child { border-bottom: none; }
.info-line .info-k { width: 90px; flex-shrink: 0; color: var(--muted); font-weight: 700; font-size: 13px; }
.info-line a { color: var(--brand); text-decoration: none; }
.info-line a:hover { text-decoration: underline; }
.info-text { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.info-ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.info-ul li { font-size: 14px; padding-left: 22px; position: relative; }
.info-ul li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.info-ul.restric li::before { content: "✕"; color: var(--danger); }
.redes { display: flex; flex-direction: column; gap: 8px; }
.rede { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); transition: border-color .15s; }
.rede:hover { border-color: var(--brand); }
.rede-net { font-weight: 800; font-size: 13px; width: 78px; flex-shrink: 0; font-family: var(--font-head); }
.rede-handle { color: var(--ink-soft); font-size: 13px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rede-go { color: var(--brand); font-weight: 800; }
.persona { background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px; }
.persona-name { font-weight: 800; font-size: 14px; margin-bottom: 4px; }
.persona-desc { font-size: 13px; color: var(--ink-soft); }
.mat-list { display: flex; flex-direction: column; gap: 8px; }
.mat-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-size: 14px; transition: border-color .15s; }
.mat-row:hover { border-color: var(--brand); }
.reuniones { display: flex; flex-direction: column; gap: 12px; }
.reunion { border-left: 3px solid var(--brand); padding: 4px 0 4px 14px; }
.reunion-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 3px; }
.reunion-title { font-weight: 800; font-size: 14px; }
.reunion p { font-size: 13.5px; color: var(--ink-soft); }

/* Equipo y accesos */
.team-head { display: flex; align-items: center; gap: 12px; }
.team-ava {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.team-sub { font-size: 13px; font-weight: 700; color: var(--ink-soft); margin: 16px 0 10px; }
.toggle-chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  border-radius: 999px; padding: 8px 14px;
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .15s;
}
.toggle-chip:hover { border-color: var(--brand); color: var(--brand); }
.toggle-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Toast */
.toast-wrap {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  display: flex; flex-direction: column; gap: 10px; max-width: 360px;
}
.toast {
  background: var(--navy); color: #fff;
  border-radius: var(--radius-sm); padding: 14px 18px;
  font-size: 13.5px; line-height: 1.4;
  box-shadow: 0 12px 30px rgba(22,41,77,.35);
  opacity: 0; transform: translateY(12px);
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast b { color: var(--sky); }

/* ===================== Content ===================== */
.content { padding: 28px; display: flex; flex-direction: column; gap: 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head h3 { font-size: 18px; }
.section-head .muted { font-size: 13px; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.card-title { font-size: 13px; color: var(--ink-soft); font-weight: 600; margin-bottom: 12px; }

/* KPI */
.kpi { display: flex; flex-direction: column; gap: 6px; }
.kpi .kpi-val { font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.kpi .kpi-label { color: var(--muted); font-size: 13px; }
.kpi .kpi-trend { font-size: 12px; font-weight: 700; }
.trend-up { color: var(--ok); }
.trend-down { color: var(--danger); }

/* Badges / chips */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.brand { background: var(--brand-soft); color: var(--brand); }
.badge.neutral { background: var(--surface-2); color: var(--ink-soft); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Progress / pasos */
.steps { display: flex; flex-direction: column; gap: 18px; }
.step-row { display: flex; flex-direction: column; gap: 8px; }
.step-row-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.step-row-head .name { font-weight: 600; font-size: 14px; }
.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 999px; }
.stepper { display: flex; gap: 6px; flex-wrap: wrap; }
.stepper .stp {
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); font-weight: 600;
}
.stepper .stp.done { background: var(--ok-soft); color: var(--ok); }
.stepper .stp.current { background: var(--brand); color: #fff; }

/* Listas */
.list { display: flex; flex-direction: column; }
.list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.list-item:last-child { border-bottom: none; }
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-title { font-weight: 600; font-size: 14px; }
.list-item .li-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.li-date {
  width: 56px; flex-shrink: 0; text-align: center;
  background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 4px;
}
.li-date .d { font-size: 18px; font-weight: 800; line-height: 1; }
.li-date .m { font-size: 11px; text-transform: uppercase; color: var(--muted); }

/* Tabla planilla (Contenidos) */
.plan-scroll { width: 100%; overflow-x: auto; }
.plan-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.plan-table thead th {
  text-align: left; font-family: var(--font-head); font-weight: 700;
  font-size: 11px; text-transform: uppercase; letter-spacing: .6px;
  color: var(--muted); padding: 14px 18px; background: var(--surface-2);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.plan-table tbody td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.plan-table tbody tr:last-child td { border-bottom: none; }
.plan-table tbody tr:hover { background: var(--surface-2); }
.pt-tema { font-weight: 700; color: var(--ink); }
.pt-red { color: var(--ink-soft); white-space: nowrap; }
.pt-fecha { color: var(--ink-soft); white-space: nowrap; font-weight: 600; }
.pt-empty { color: var(--muted); }
.chip {
  display: inline-block; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand); white-space: nowrap;
}

/* Aprobaciones */
.approve-card { display: flex; flex-direction: column; gap: 14px; }
.approve-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface);
}
.approve-thumb {
  width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 22px;
  background: var(--brand-soft);
}
.approve-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Pagos */
.pay-summary { display: flex; gap: 16px; flex-wrap: wrap; }
.pay-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pay-row:last-child { border-bottom: none; }
.pay-amount { font-weight: 800; font-size: 15px; }

/* Marca */
.brand-assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.asset {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px; text-align: center; background: var(--surface);
  display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.asset .asset-ico { font-size: 26px; }
.asset .asset-name { font-size: 13px; font-weight: 600; }
.color-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 38px; height: 38px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }

/* Pedidos */
.request-form { display: flex; flex-direction: column; gap: 10px; }
.request-form textarea {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px;
  font-family: inherit; font-size: 14px; resize: vertical; min-height: 90px; outline: none;
}
.request-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.thread { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.msg { display: flex; gap: 12px; }
.msg .avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff;
}
.msg.them .avatar { background: var(--brand); }
.msg.us .avatar { background: var(--accent); }
.msg-body { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 14px; flex: 1; }
.msg-body .msg-meta { font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.msg-body p { font-size: 14px; }

/* Botones */
.btn {
  border: none; border-radius: var(--radius-sm); padding: 10px 16px;
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: transform .1s, opacity .15s, background .15s; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { opacity: .92; }
.btn-ghost { background: rgba(255,255,255,.08); color: #cfd2e6; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-soft { background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line); }
.btn-soft:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 8px 12px; font-size: 13px; }

.empty { color: var(--muted); font-size: 14px; text-align: center; padding: 24px 0; }

/* Responsive */
@media (max-width: 880px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: static; height: auto; flex-direction: row; flex-wrap: wrap;
    align-items: center; padding: 12px;
  }
  .nav { flex-direction: row; flex-wrap: wrap; flex: 1 1 100%; order: 3; }
  .sidebar-foot { padding-top: 0; border: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .content { padding: 18px; }
  .approve-row { flex-wrap: wrap; }
}
