@font-face {
  font-family: Montserrat;
  src: url("/fonts/montserrat-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("/fonts/montserrat-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("/fonts/montserrat-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("/fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0b1b4b;
  --navy-800: #081433;
  --navy-700: #16306e;
  --navy-500: #3d5a99;
  --navy-300: #7e93c4;
  --navy-100: #e7edf7;
  --lime: #c4e000;
  --lime-600: #aec800;
  --lime-100: #f4f8cc;
  --paper: #f4f6fa;
  --line: #e3e8f2;
  --muted: #5c6b8a;
  --card: #fff;
  --ink: #0b1b4b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 27, 75, 0.06);
  --sidebar-w: 17.5rem;
  --sidebar-w-collapsed: 4.75rem;
  --header-h: 4.25rem;
  --stripe: 4px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Poppins, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.45;
}
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
a { color: var(--navy); text-underline-offset: 3px; }
img { max-width: 100%; }

.ico { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }

.lime-stripe {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--stripe);
  background: var(--lime);
  z-index: 60;
}

/* Login */
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px 48px;
  background:
    radial-gradient(circle at 70% 0%, rgba(196, 224, 0, 0.16), transparent 32%),
    linear-gradient(180deg, #081433 0%, #0b1b4b 55%, #102456 100%);
  color: white;
}
.login-inner { width: min(440px, 100%); text-align: center; }
.login-logo { height: auto; width: auto; max-height: 84px; max-width: min(280px, 100%); object-fit: contain; margin: 0 auto 14px; display: block; }
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
}
.login h1 {
  margin: 8px 0 18px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.login-card {
  background: white;
  color: var(--navy);
  text-align: left;
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 18px 44px rgba(8, 20, 51, 0.28);
}
.login-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.login .lead { color: var(--muted); font-size: 13px; margin-bottom: 14px; font-weight: 400; }
.login-card .btn { width: 100%; height: 44px; margin-top: 4px; }
.login-card a { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; }
.login-foot {
  position: fixed; left: 0; right: 0; bottom: 0; height: 4px; background: var(--lime);
}

/* Shell */
.sidebar {
  position: fixed;
  top: var(--stripe);
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  z-index: 40;
  display: flex;
  flex-direction: column;
  color: white;
  background: linear-gradient(180deg, #081433 0%, #0b1b4b 42%, #102456 100%);
  box-shadow: 8px 0 30px rgba(11, 27, 75, 0.18);
}
.brand-block {
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.brand-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.logo-full { height: 44px; width: auto; max-width: none; object-fit: contain; flex-shrink: 0; }
.logo-mark { display: none; width: 36px; height: 36px; object-fit: contain; background: white; border-radius: 999px; }
.app-name {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--lime);
}
.app-name span { display: block; }
/* Wordmark styled after the CTI GROUP logo: heavy wide CTI, lighter stacked words */
.pm-lockup, .login h1.pm-lockup {
  font-family: Montserrat, Poppins, Arial, sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 6px auto 20px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
}
.pm-lockup .pm-cti {
  font-weight: 800;
  font-size: 46px;
  letter-spacing: 0.01em;
  color: #fff;
  padding-right: 12px;
  border-right: 2px solid var(--lime);
}
.pm-lockup .pm-words { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; }
.pm-lockup .pm-w1 { font-weight: 600; font-size: 17px; letter-spacing: 0.06em; color: var(--lime); }
.pm-lockup .pm-w2 { font-weight: 400; font-size: 15px; letter-spacing: 0.08em; color: #a7b0c4; }
.app-name.pm-lockup { display: flex; margin: 12px 0 0; gap: 8px; }
.pm-sm .pm-cti { font-size: 22px; padding-right: 8px; border-right-width: 2px; }
.pm-sm .pm-w1 { font-size: 10px; }
.pm-sm .pm-w2 { font-size: 9px; }
.app-name.pm-lockup span { display: inline; }
.app-name.pm-lockup .pm-words { display: flex; }
.icon-btn {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); color: white; }
.icon-btn .ico { width: 16px; height: 16px; }
body.nav-compact .icon-btn .chev { transform: rotate(180deg); }

.nav-scroll { flex: 1; overflow: auto; padding: 14px 10px 12px; }
.nav-label {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 10px 6px;
  cursor: pointer;
}
.nav-label .ico { width: 12px; height: 12px; }
.nav-group + .nav-group { margin-top: 8px; }
.nav-links { display: grid; gap: 2px; }
.nav-links[hidden] { display: none; }
.nav-top { margin-bottom: 6px; }
.nav-label .ico { transition: transform 160ms ease; transform: rotate(-90deg); }
.nav-group.collapsed .nav-label .ico { transform: rotate(180deg); }
.nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border-radius: 12px;
  padding: 8px 10px;
}
.nav-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}
.nav-links a.active .nav-badge { background: var(--navy); color: var(--lime); }
.nav-badge.attention { background: #102456; color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); }
.nav-links a:hover { background: rgba(255, 255, 255, 0.08); color: white; text-decoration: none; }
.nav-links a.active {
  background: var(--lime);
  color: var(--navy);
  font-weight: 600;
}
.nav-links a .ico { width: 16px; height: 16px; }

.side-user {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
}
.side-account {
  width: 100%;
  border: 0;
  background: transparent;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
  padding: 4px;
}
.side-account:hover { background: rgba(255, 255, 255, 0.08); }
.side-account > .ico { margin-left: auto; width: 14px; height: 14px; opacity: 0.7; }
.user-anchor { position: relative; flex: 0 0 auto; }
.menu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 50;
  min-width: 196px;
  padding: 6px;
  display: grid;
  gap: 2px;
  background: white;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(11, 27, 75, 0.16);
}
.menu-pop[hidden] { display: none; }
.side-user .menu-pop { top: auto; bottom: calc(100% + 8px); left: 12px; right: 12px; }
.menu-pop a, .menu-pop button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  text-decoration: none;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.menu-pop a:hover, .menu-pop button:hover { background: var(--lime-100); text-decoration: none; }
.menu-pop a.active { background: var(--navy); color: var(--lime); }
.hero .tabs a { background: rgba(255, 255, 255, 0.12); color: white; border-color: transparent; }
.hero .tabs a.active { background: var(--lime); color: var(--navy); }
.side-user .who { min-width: 0; flex: 1; }
.side-user .who strong, .side-user .who span { display: block; }
.side-user .who strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .who span { font-size: 11px; color: rgba(255, 255, 255, 0.55); }
.side-user .salir {
  border: 0;
  background: transparent;
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  border-radius: 8px;
  padding: 6px 8px;
}
.side-user .salir:hover { background: rgba(255, 255, 255, 0.1); }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}
.avatar.lime { background: var(--lime); color: var(--navy); }
.avatar.soft { background: var(--navy-100); color: var(--navy); }

.workspace { margin-left: var(--sidebar-w); min-height: 100vh; min-width: 0; }
.topbar {
  position: sticky;
  top: var(--stripe);
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(11, 27, 75, 0.04);
  backdrop-filter: blur(10px);
}
.top-logo { display: none; flex: 0 0 auto; align-items: center; height: 30px; line-height: 0; }
.top-logo img { height: 30px; width: auto; max-width: none; object-fit: contain; flex-shrink: 0; display: block; }
.search {
  position: relative;
  flex: 1;
  min-width: 0;
}
.search .ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.search input {
  height: 40px;
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0 14px 0 36px;
  outline: none;
}
.search input:focus { border-color: var(--navy); background: white; box-shadow: 0 0 0 3px rgba(196, 224, 0, 0.45); }
.site-select, .chip {
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 1px 2px rgba(11, 27, 75, 0.04);
}
.site-select { padding: 0 28px 0 12px; max-width: 220px; width: auto; flex: 0 1 220px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  cursor: pointer;
  text-align: left;
}
.chip:hover { border-color: rgba(11, 27, 75, 0.25); transform: translateY(-1px); }
.chip b, .chip small { display: block; line-height: 1.15; }
.chip b { font-size: 13px; }
.chip small { font-size: 11px; color: var(--muted); font-weight: 500; }
.bell {
  position: relative;
  border: 1px solid var(--line);
  background: white;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--navy);
}
.bell .count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--lime);
  color: var(--navy);
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  padding: 1px 4px;
}
.avisos {
  position: absolute;
  right: 16px;
  top: calc(var(--header-h) + 8px);
  width: min(360px, 92vw);
  z-index: 30;
  padding: 8px;
}
.avisos button.quiet { width: 100%; text-align: left; }
.menu-btn, .search-toggle, .search-close { display: none; }
.scrim { display: none; }

.main { padding: 0 0 40px; min-width: 0; }
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 28px 8px;
}

.hero {
  position: relative;
  overflow: hidden;
  margin: -22px -28px 22px;
  padding: 28px 28px 22px;
  color: white;
  background: linear-gradient(128deg, #081433 0%, #0b1b4b 46%, #16306e 100%);
}
.hero .glow {
  position: absolute;
  right: -40px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(196, 224, 0, 0.16);
  filter: blur(8px);
  pointer-events: none;
}
.hero h1 {
  position: relative;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 6px;
}
.hero-lead { position: relative; margin-top: 6px; color: rgba(255, 255, 255, 0.72); font-size: 14px; max-width: 640px; }
.filters {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-top: 16px;
}
.filters label { color: rgba(255, 255, 255, 0.72); font-size: 12px; font-weight: 600; }
.filters input, .filters select {
  background: white;
  color: var(--navy);
  height: 40px;
  border-radius: 10px;
  min-width: 0;
  width: 11.5rem;
  max-width: 100%;
}
.filters input[type="date"]::-webkit-date-and-time-value { text-align: left; min-width: 0; }
.filters input[type="date"]::-webkit-datetime-edit { padding: 0; min-width: 0; }
.hero-kpis, .kpi-board {
  position: relative;
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.kpi-board { margin-top: 0; margin-bottom: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.kpi-board .hero-kpi {
  background: white;
  color: var(--navy);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.kpi-board .k-value { color: var(--navy); }
.kpi-board .k-hint { color: var(--muted); }
.topbar .icon-btn { color: var(--navy); background: white; border: 1px solid var(--line); }
.hero-kpi {
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--line);
  color: var(--navy);
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 14px 14px 12px;
  width: 100%;
}
.hero .hero-kpi,
.kpi-board .hero-kpi {
  background: #fff;
  color: var(--navy);
}
.hero-kpi:hover { background: #fff; border-color: var(--lime); transform: translateY(-2px); }
.hero-kpi-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.k-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}
.k-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--navy);
  display: grid;
  place-items: center;
}
.k-value { display: block; margin-top: 8px; font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: var(--navy); }
.k-hint { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }

.page-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.page-head h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; }
.muted, .note { color: var(--muted); }
.note { font-size: 13px; }
.catalog-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; }
.catalog-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.code-ro {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: var(--navy-100);
  border-radius: 999px;
  padding: 2px 8px;
  flex: 0 0 auto;
}

.grid { display: grid; gap: 12px; }
.grid > * { min-width: 0; }
.grid.two { grid-template-columns: 1.2fr 0.8fr; }
.grid.cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card, .kpi {
  background:
    linear-gradient(180deg, rgba(11, 27, 75, 0.035), transparent 46%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 18px 40px rgba(11, 27, 75, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.card h2 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { border-color: rgba(11, 27, 75, 0.2); transform: translateY(-2px); text-decoration: none; }

.btn, button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--lime);
  color: var(--navy);
  border: 0;
  border-radius: 10px;
  min-height: 40px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--lime-600); text-decoration: none; }
.btn.navy { background: var(--navy); color: white; }
.btn.navy:hover { background: var(--navy-700); }
.btn.quiet, a.btn.quiet {
  background: white;
  color: var(--navy);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(11, 27, 75, 0.04);
}
.btn.quiet:hover { background: var(--paper); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
input, select, textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: white;
  width: 100%;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 27, 75, 0.12);
}
textarea { min-height: 84px; resize: vertical; }
.field { display: grid; gap: 6px; min-width: 0; font-size: 13px; font-weight: 600; }
.secret { position: relative; display: block; min-width: 0; }
.secret input {
  padding-right: 46px;
  font-size: 16px;
}
.secret-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  display: grid;
  place-items: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.secret-toggle:hover, .secret-toggle:focus-visible {
  background: var(--lime);
  color: var(--navy);
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}
.secret-toggle[aria-pressed="true"] { background: var(--navy); color: var(--lime); }
.secret-toggle .ico { width: 18px; height: 18px; }
.secret-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.secret-actions .btn { width: auto; }
.form { display: grid; gap: 12px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }

.error, .ok { padding: 10px 12px; border-radius: 12px; font-size: 14px; }
.error { background: var(--navy-100); color: var(--navy); border-left: 4px solid var(--navy); }
.ok { background: var(--lime-100); color: var(--navy); border-left: 4px solid var(--lime); }

.table-scroll, .main table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.main { }
.page table { display: table; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--lime);
  background: var(--navy);
}
tbody tr:nth-child(even) { background: rgba(244, 246, 250, 0.8); }
tr.click { cursor: pointer; }
tr.click:hover { background: rgba(244, 248, 204, 0.7); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 3px 10px 3px 8px;
  font-size: 12px;
  font-weight: 600;
  background: var(--navy-100);
  color: var(--navy);
  text-transform: capitalize;
}
.pill .ico { width: 12px; height: 12px; }
.pill.attention { background: var(--navy); color: var(--lime); }
.pill.soon { background: var(--lime-100); color: var(--navy); }
.pill.calm { background: var(--navy-100); color: var(--navy); }

.empty {
  background: white;
  border: 1px dashed rgba(11, 27, 75, 0.15);
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-align: center;
  padding: 48px 20px;
}
.empty .k-ico {
  margin: 0 auto 12px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--navy-100);
  color: var(--navy);
}
.empty .k-ico .ico { width: 22px; height: 22px; }
.empty h2 { font-size: 16px; font-weight: 700; }
.empty p { margin: 6px auto 0; max-width: 420px; color: var(--muted); font-size: 14px; }
.empty .btn { margin-top: 14px; }

.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
  overflow: auto;
  padding-bottom: 8px;
}
.col {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  min-height: 280px;
  box-shadow: var(--shadow);
}
.col.over { background: var(--lime-100); }
.col h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.col h3 .count {
  background: var(--lime);
  color: var(--navy);
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
  font-size: 12px;
  padding: 1px 6px;
}
.card-task {
  position: relative;
  background: white;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: grab;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(11, 27, 75, 0.05);
}
.card-task:hover { border-color: var(--lime); }

.gantt {
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.gantt-scale, .gantt-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 40px;
  border-bottom: 1px solid var(--line);
}
.gantt-scale { background: var(--navy); color: var(--lime); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.gantt-name { padding: 10px 12px; font-size: 13px; font-weight: 600; }
.gantt-track { position: relative; height: 44px; background: repeating-linear-gradient(90deg, transparent, transparent calc(14.28% - 1px), var(--navy-100) calc(14.28% - 1px), var(--navy-100) 14.28%); }
.bar {
  position: absolute;
  top: 12px;
  height: 16px;
  border-radius: 8px;
  background: var(--navy);
}
.bar.crit { background: var(--lime); box-shadow: inset 0 0 0 2px var(--navy); }
.bar.hito { width: 12px !important; height: 12px; transform: rotate(45deg); top: 14px; border-radius: 2px; }
.base { position: absolute; top: 32px; height: 4px; background: var(--navy-300); border-radius: 4px; }

.tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs a {
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 600;
  font-size: 13px;
  text-transform: capitalize;
}
.tabs a.active { background: var(--navy); color: var(--lime); }
.tabs a:hover { text-decoration: none; }
.stack { display: grid; gap: 8px; margin: 10px 0 12px; }
.pend-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--paper); color: inherit; text-decoration: none; }
.pend-row:hover { background: var(--lime-100); text-decoration: none; }
.pend-row > span { color: var(--muted); font-size: 13px; }

.mast {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 16px 40px rgba(11, 27, 75, 0.08);
  margin-bottom: 16px;
}
.mast-top {
  background: linear-gradient(120deg, #0b1b4b, #16306e);
  color: white;
  padding: 18px 18px 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.mast-top h1 { font-size: 26px; font-weight: 700; }
.mast-top p { color: rgba(255, 255, 255, 0.75); margin-top: 4px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts div { padding: 14px 16px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.facts dt { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 700; }

.bars { display: grid; gap: 8px; }
.barline {
  display: grid;
  grid-template-columns: minmax(100px, 160px) 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 4px 0;
  cursor: pointer;
  color: inherit;
}
.barline i { display: block; height: 8px; background: var(--navy); border-radius: 99px; }
.barline:hover i { background: var(--lime-600); }
.split { display: grid; grid-template-columns: 1fr 320px; gap: 16px; }
.drawer { display: grid; gap: 12px; }
canvas.firma {
  border: 1px dashed var(--navy-300);
  border-radius: 12px;
  background: white;
  touch-action: none;
  width: 100%;
  max-width: 480px;
}
ul.plain { margin: 8px 0 0; padding-left: 18px; }
ul.plain li { margin: 4px 0; }

body.nav-compact .sidebar { width: var(--sidebar-w-collapsed); }
body.nav-compact .workspace { margin-left: var(--sidebar-w-collapsed); }
body.nav-compact .logo-full, body.nav-compact .app-name, body.nav-compact .nav-label,
body.nav-compact .nav-links a span:not(.nav-badge), body.nav-compact .side-user .who, body.nav-compact .side-account > .ico { display: none; }
body.nav-compact .nav-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  min-width: 8px;
  height: 8px;
  padding: 0;
  overflow: hidden;
  font-size: 0;
}
body.nav-compact .logo-mark { display: block; }
body.nav-compact .brand-block { padding: 14px 10px; }
body.nav-compact .nav-links a { justify-content: center; padding: 10px; }
body.nav-compact .side-user { padding: 10px 6px; }
body.nav-compact .side-account { justify-content: center; padding: 6px; }

@media (max-width: 1100px) {
  .hero-kpis, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.weeks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.weeks .barline { grid-template-columns: 1fr; }

@media (max-width: 900px) {
  .menu-btn, .search-toggle { display: grid; }
  .sidebar { transform: translateX(-105%); transition: transform 180ms ease; }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(11, 27, 75, 0.55); z-index: 35; border: 0; }
  .workspace, body.nav-compact .workspace { margin-left: 0; }
  .topbar { gap: 6px; padding: 0 10px; }
  .topbar .menu-btn, .topbar .search-toggle, .topbar .bell, .topbar .chip {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
  }
  .top-logo { display: flex; }
  .search.desk, .chip-copy { display: none; }
  .site-select {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    max-width: none;
    font-size: 13px;
    padding-inline: 10px 26px;
  }
  body.search-open .search.desk { display: flex; flex: 1 1 auto; min-width: 0; }
  body.search-open .search.desk input { padding-right: 40px; }
  body.search-open .top-logo, body.search-open .search-toggle, body.search-open .site-select { display: none; }
  .search-close { display: grid; position: absolute; right: 4px; top: 2px; width: 32px; height: 32px; }
  .grid.two, .split, .hero-kpis, .facts { grid-template-columns: 1fr; }
  .page { padding: 16px 14px 32px; }
  .hero { margin: -16px -14px 16px; padding: 22px 16px 16px; }
  .kanban { grid-template-columns: 1fr; }
  .gantt-scale, .gantt-row { grid-template-columns: 132px minmax(220px, 1fr); min-width: 520px; }
  .gantt-name { overflow-wrap: anywhere; }
  .weeks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row > input[type="file"] { min-width: 0; flex: 1 1 140px; }
  .card, .form, .note, .muted, p, .page-head { overflow-wrap: anywhere; }
  .filterbar, .pager, .page-head { flex-wrap: wrap; }
  .k-foot { min-width: 0; }
  .spark { max-width: 46%; }
}
.crumb { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.crumb a { color: var(--navy-500); font-weight: 600; text-decoration: none; }
.head-title { display: flex; align-items: center; gap: 10px; }
.head-title .k-ico { width: 40px; height: 40px; border-radius: 12px; }
.page-head h1 { font-size: 1.85rem; }
.k-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 8px; min-height: 32px; }
.spark { width: 96px; height: 32px; display: block; }
.k-delta { display: grid; justify-items: end; gap: 2px; }
.delta-note { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.delta { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.delta.up { background: var(--lime); color: var(--navy); }
.delta.down { background: var(--navy); color: var(--lime); }
.delta.flat { background: var(--navy-100); color: var(--navy); }

.chart-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 12px; margin-top: 14px; }
.chart-card h2 { margin: 0; }
.chart-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.chart-hit { display: block; width: 100%; border: 0; background: transparent; padding: 0; cursor: pointer; }
.linechart { width: 100%; height: auto; display: block; }
.vbars { display: flex; align-items: flex-end; gap: 8px; min-height: 180px; overflow: auto; padding-top: 8px; }
.vbar { flex: 1 0 64px; border: 0; background: transparent; display: grid; justify-items: center; gap: 4px; cursor: pointer; color: inherit; padding: 0; min-width: 64px; }
.vbar-col { height: 140px; width: 28px; display: flex; align-items: flex-end; background: var(--navy-100); border-radius: 10px; overflow: hidden; }
.vbar i { display: block; width: 100%; background: linear-gradient(180deg, var(--lime), var(--navy)); border-radius: 10px 10px 0 0; transition: height 240ms ease; }
.vbar b { font-size: 13px; }
.vbar span { font-size: 11px; color: var(--muted); text-align: center; max-width: 88px; }
.vbar:hover i { filter: saturate(1.1); }
.donut-wrap { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.donut { width: 160px; height: 160px; flex: 0 0 auto; }
.legend-list { display: grid; gap: 6px; flex: 1; min-width: 160px; }
.legend { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; border: 0; background: transparent; text-align: left; padding: 6px 4px; border-radius: 8px; cursor: pointer; color: inherit; font-weight: 600; }
.legend i { width: 12px; height: 12px; border-radius: 4px; }
.legend:hover { background: var(--lime-100); }
.ring { display: grid; justify-items: center; gap: 6px; }
.ring svg { width: 148px; height: 148px; }
.ring span { font-size: 13px; color: var(--muted); text-align: center; }

.table-card { background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.filterbar { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff, #f7f9fc); }
.filter-label { display: flex; align-items: center; gap: 8px; font-weight: 500; flex: 1; }
.filter-label input { border: 0; background: transparent; padding: 6px 0; box-shadow: none; }
.table-scroll { max-height: 540px; max-width: 100%; overflow: auto; }
.table-scroll > table { width: max-content; min-width: 100%; }
.table-card table { border: 0; border-radius: 0; box-shadow: none; }
.table-scroll thead th { position: sticky; top: 0; z-index: 1; }
.pager { display: flex; justify-content: flex-end; gap: 8px; align-items: center; padding: 10px 12px; font-size: 13px; }
tr[hidden] { display: none; }
.who-cell { display: flex; align-items: center; gap: 8px; }
.avatar, .avatars .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--navy); color: var(--lime);
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
}
.avatars { display: inline-flex; }
.avatars .avatar + .avatar { margin-left: -8px; box-shadow: 0 0 0 2px white; }
.avatar.lead { box-shadow: 0 0 0 2px var(--lime); }
.team-card { margin-bottom: 12px; }
.team-list { display: grid; gap: 8px; margin: 8px 0 12px; }
.team-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.team-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.team-add label { min-width: 160px; flex: 1; }
.quick-add { margin-bottom: 12px; }
.bulk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 12px 0; }
.bulk-bar label { min-width: 200px; flex: 1; }
.assign-wrap { position: relative; margin-left: auto; }
.assign-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 6;
  width: min(240px, 72vw);
  background: white;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 14px 32px rgba(11, 27, 75, 0.16);
  display: grid;
  gap: 6px;
  text-align: left;
}
.assign-pop[hidden] { display: none !important; }
.assign-pop .check { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; }
.avatar-btn { border: 0; background: transparent; padding: 0; cursor: pointer; }
.inline-member { margin-top: 8px; }
.inline-member summary { cursor: pointer; font-weight: 700; }
.gantt-name .avatars { margin-left: 8px; vertical-align: middle; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

.empty-art { width: min(280px, 100%); height: auto; margin: 0 auto 8px; display: block; }
.field { gap: 6px; }
.field-label { font-size: 13px; font-weight: 600; }
.hint { font-size: 12px; font-weight: 500; color: var(--muted); }
.form fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 10px; background: rgba(255,255,255,.72); }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--navy-100); width: fit-content; }
.seg label { position: relative; margin: 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-block; min-width: 5.5rem; text-align: center; padding: 8px 16px; border-radius: 999px; font-weight: 700; color: var(--navy); }
.seg input:checked + span { background: var(--navy); color: var(--lime); }
.seg input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.target-panel[hidden] { display: none !important; }
[data-espera][hidden] { display: none !important; }
label.is-invalid input, label.is-invalid select, label.is-invalid textarea {
  background: var(--navy-100);
  box-shadow: inset 0 0 0 2px var(--navy);
}
.field-error { display: block; margin-top: 4px; color: var(--navy); font-weight: 700; }
.photo-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.file-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; }
.file-native {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: pointer; font-size: 0;
}
.form legend { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy-500); padding: 0 6px; }
.form-head h2 { margin-bottom: 2px; }
.was-validated input:invalid, .was-validated select:invalid, .was-validated textarea:invalid {
  border-color: var(--navy);
  background: var(--navy-100);
}
.was-validated :invalid + .hint::before { content: "Revisa este campo. "; font-weight: 700; color: var(--navy); }

.stepper { list-style: none; display: flex; gap: 0; margin: 0 0 14px; padding: 0; }
.stepper li { flex: 1; text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); position: relative; padding-top: 28px; text-transform: capitalize; }
.stepper li span { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--navy-100); color: var(--navy); display: grid; place-items: center; font-size: 11px; }
.stepper li.done span, .stepper li.now span { background: var(--navy); color: var(--lime); }
.stepper li.now { color: var(--navy); }
.stepper li::before { content: ""; position: absolute; top: 10px; left: 0; right: 50%; height: 2px; background: var(--line); }
.stepper li::after { content: ""; position: absolute; top: 10px; left: 50%; right: 0; height: 2px; background: var(--line); }
.stepper li:first-child::before, .stepper li:last-child::after { display: none; }
.stepper li.done::before, .stepper li.done::after, .stepper li.now::before { background: var(--lime); }
.check-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.checks { display: grid; gap: 8px; }

.asset-hero { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: center; }
.photo-frame { background: linear-gradient(160deg, #0b1b4b, #16306e); border-radius: 16px; min-height: 180px; display: grid; place-items: center; overflow: hidden; color: var(--lime); }
.photo-frame img { width: 100%; height: 180px; object-fit: cover; }
.timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; }
.timeline .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--lime); border: 2px solid var(--navy); margin-top: 4px; position: relative; }
.timeline li:not(:last-child) .dot::after { content: ""; position: absolute; top: 12px; left: 4px; width: 2px; height: calc(100% + 8px); background: var(--navy-100); }
.timeline .tl-body { padding-bottom: 14px; }

.card-task .task-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.task-progress { height: 6px; background: var(--navy-100); border-radius: 99px; margin: 10px 0 8px; overflow: hidden; }
.task-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), var(--lime)); border-radius: 99px; }
.task-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.due { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; background: var(--navy-100); color: var(--navy); }
.due.late { background: var(--navy); color: var(--lime); }
.due.soon { background: var(--lime-100); }

.gantt-track { position: relative; }
.today-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--lime); box-shadow: 0 0 0 1px var(--navy); z-index: 2; pointer-events: none; }
.today-flag { position: absolute; top: -2px; transform: translateX(-50%); background: var(--lime); color: var(--navy); font-size: 10px; font-weight: 700; border-radius: 999px; padding: 1px 6px; z-index: 3; }
.bar { height: 18px; top: 12px; background: linear-gradient(90deg, #16306e, #0b1b4b); box-shadow: 0 6px 14px rgba(11, 27, 75, 0.18); }
.bar.crit { background: linear-gradient(90deg, #e7f58a, #c4e000); }

.skel-grid { display: grid; gap: 12px; }
.skel { height: 92px; border-radius: 16px; background: linear-gradient(90deg, #e7edf7 0%, #f4f8cc 45%, #e7edf7 100%); background-size: 200% 100%; animation: shimmer 1.2s ease infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.toast {
  position: fixed; right: 16px; bottom: 16px; z-index: 80;
  background: var(--navy); color: white; border-radius: 12px;
  padding: 12px 14px; box-shadow: 0 16px 40px rgba(11, 27, 75, 0.28);
  transform: translateY(12px); opacity: 0; transition: 180ms ease;
  max-width: min(360px, calc(100vw - 32px)); font-weight: 600;
}
.toast.ok { box-shadow: inset 4px 0 0 var(--lime), 0 16px 40px rgba(11, 27, 75, 0.28); }
.toast.attention { box-shadow: inset 4px 0 0 var(--lime), 0 16px 40px rgba(11, 27, 75, 0.28); }
.toast.show { transform: none; opacity: 1; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.gallery img { width: 100%; height: 96px; object-fit: cover; display: block; }

@media (max-width: 720px) {
  .filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px 8px;
    align-items: end;
  }
  .filters label { min-width: 0; }
  .filters input, .filters select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    -webkit-appearance: none;
    appearance: none;
  }
  .filters .btn { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 900px) {
  .chart-grid, .asset-hero { grid-template-columns: 1fr; }
  .stepper { flex-direction: column; gap: 8px; }
  .stepper li { text-align: left; padding: 0 0 0 32px; }
  .stepper li span { left: 0; transform: none; }
  .stepper li::before, .stepper li::after { display: none; }
  .head-title h1 { font-size: 1.45rem; }
  .vbars { min-height: 150px; }
}

.cal-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; min-width: 0; }
.cal-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.cal-label { color: var(--navy); font-size: 1.15rem; }
.cal-views { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--navy-100); }
.cal-views button { border: 0; background: transparent; color: var(--navy); font: inherit; font-weight: 700; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.cal-views button.on { background: var(--navy); color: var(--lime); }
.cal-filters { margin-bottom: 12px; min-width: 0; }
.cal-filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cal-filter-grid label { min-width: 0; color: var(--navy); font-size: 12px; font-weight: 600; }
.cal-filter-grid select { width: 100%; min-width: 0; max-width: 100%; background: white; color: var(--navy); }
.cal-filters .btn { margin-top: 10px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0 0 12px; }
.cal-legend .ico { width: 14px; height: 14px; }
.cal-board { min-width: 0; overflow-x: clip; }
.cal-dows, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 4px 6px; }
.cal-cell { min-width: 0; min-height: 108px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: white; cursor: pointer; }
.cal-cell.is-out { background: #f7f8fb; }
.cal-cell.is-out .cal-num { color: var(--navy-300); }
.cal-cell.is-today { box-shadow: inset 0 0 0 2px var(--lime); background: #fbfce8; }
.cal-cell.is-drop { box-shadow: inset 0 0 0 2px var(--navy); background: var(--lime-100); }
.cal-num { display: block; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.cal-dow-inline { display: none; margin-right: 6px; text-transform: capitalize; }
.cal-chips { display: grid; gap: 4px; min-width: 0; }
.cal-chip { display: flex; align-items: center; gap: 4px; width: 100%; max-width: 100%; min-width: 0; overflow: hidden; border: 0; border-radius: 8px; padding: 3px 6px; font: inherit; font-size: 12px; font-weight: 700; line-height: 1.2; text-align: left; cursor: pointer; }
.cal-chip .ico { width: 12px; height: 12px; }
.cal-folio, .cal-target { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cal-folio { flex: 0 1 auto; max-width: 48%; }
.cal-target { flex: 1 1 auto; font-weight: 500; }
.cal-chip.soon { background: var(--lime-100); color: var(--navy); }
.cal-chip.calm { background: var(--navy-100); color: var(--navy); }
.cal-chip.attention { background: var(--navy); color: var(--lime); }
.cal-chip.is-plan { background: #f7f9e4; color: var(--navy-700); border: 1px dashed var(--navy-300); }
.cal-chip[data-order] { touch-action: none; }
.cal-chip.is-dragging { opacity: 0.45; }
.cal-more { justify-self: start; border: 0; background: var(--navy); color: var(--lime); font: inherit; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; cursor: pointer; }
.agenda { display: grid; gap: 12px; min-width: 0; overflow-x: clip; }
.agenda-day { min-width: 0; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.agenda-day.is-today { box-shadow: inset 4px 0 0 var(--lime); }
.agenda-date { display: block; width: 100%; border: 0; background: transparent; color: var(--navy); font: inherit; font-weight: 700; text-align: left; padding: 0 0 8px; cursor: pointer; text-transform: capitalize; }
.agenda-items { display: grid; gap: 8px; min-width: 0; }
.agenda .cal-chip { padding: 8px 10px; font-size: 14px; }

@media (max-width: 720px) {
  .cal-filter-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cal-filters .btn, .cal-nav .btn { width: auto; }
  .cal-filters .btn { width: 100%; }
  .cal-views { width: 100%; }
  .cal-views button { flex: 1; }
  .cal-week .cal-dows { display: none; }
  .cal-week .cal-grid { grid-template-columns: minmax(0, 1fr); }
  .cal-week .cal-dow-inline { display: inline; }
  .cal-week .cal-cell { min-height: 0; }
  .cal-month .cal-cell { min-height: 72px; padding: 3px; }
  .cal-month .cal-target { display: none; }
  .cal-month .cal-folio { max-width: 100%; }
  .cal-month .cal-chip { font-size: 10px; padding: 2px 3px; }
}

@media (max-width: 720px) {
  .main table.report-cards {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .main table.report-cards thead { display: none; }
  .main table.report-cards tbody { display: grid; gap: 10px; }
  .main table.report-cards tr {
    display: block;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: var(--shadow);
  }
  .main table.report-cards td {
    display: grid;
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    width: auto;
    padding: 6px 0;
    border: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .main table.report-cards td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .main table.report-cards tbody tr:nth-child(even) { background: white; }
}

@media print {
  .lime-stripe, .sidebar, .topbar, .scrim, .no-print { display: none !important; }
  .workspace { margin: 0 !important; }
  body { background: white; }
  .hero { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
