/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* ===== Design tokens: tonos tierra / pasteles =====
   Para cambiar colores y estilo de la plataforma, editar solo las variables de :root.
   El resto del CSS usa estas variables (--accent, --bg, --accent-soft, etc.). */
:root {
  /* Base */
  --bg: #F8F5F0;
  --panel: #ffffff;
  --panel2: #fbfaf7;
  --text: #2C2C2C;
  --muted: rgba(44, 44, 44, 0.65);
  --muted2: rgba(44, 44, 44, 0.45);
  --line: rgba(44, 44, 44, 0.10);
  /* Acento principal: verde tierra */
  --accent: #587365;
  --accent2: #7a9b8a;
  --accent-on: #ffffff;
  --accent-dark: #3d5147;
  /* Variantes de acento (fondos y bordes) */
  --accent-soft: rgba(88, 115, 101, 0.12);
  --accent-soft-hover: rgba(88, 115, 101, 0.18);
  --accent-soft-active: rgba(88, 115, 101, 0.22);
  --accent-border: rgba(88, 115, 101, 0.25);
  --accent-border-strong: rgba(88, 115, 101, 0.38);
  --accent-border-focus: rgba(88, 115, 101, 0.55);
  --accent-shadow: rgba(88, 115, 101, 0.18);
  --focus: rgba(88, 115, 101, 0.35);
  /* Tonos tierra para cards y chips */
  --earth-beige: #E6DBCB;
  --earth-taupe: #DDCAB8;
  /* Semánticos (coherentes con la paleta) */
  --danger: #b85c4a;
  --ok: #5a8f6e;
  --shadow: 0 14px 40px rgba(44, 44, 44, 0.08);
  --shadow2: 0 8px 18px rgba(44, 44, 44, 0.06);
  /* Gradientes derivados (opcional: sobrescribir para otro estilo) */
  --accent-gradient: linear-gradient(135deg, var(--accent), var(--accent2));
  --accent-soft-gradient: linear-gradient(135deg, var(--accent-soft), rgba(122, 155, 138, 0.08));
}

* { box-sizing: border-box; }

html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  letter-spacing: 0.1px;
}

a { color: inherit; text-decoration: none; }

.appShell {
  display: grid;
  grid-template-columns: 88px 1fr;
  min-height: 100vh;
}

.sidebar {
  padding: 22px 18px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100vh;
}

/* Slim sidebar: narrow width, icon + label per item; scrollable middle */
.sidebar--slim {
  padding: 16px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  min-height: 0;
}

.sidebar--slim .sidebar__scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  padding: 8px 0 12px;
  -webkit-overflow-scrolling: touch;
}

.sidebar--slim .sidebar__brand {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: 8px;
  padding: 0 0 14px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
  align-items: center;
  justify-content: flex-start;
}

.sidebar__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: "Fraunces", serif;
  font-weight: 700;
  color: var(--accent-on);
  background: var(--accent-gradient);
  box-shadow: 0 10px 24px var(--accent-border);
}

.sidebar--slim .sidebar__mark {
  width: 36px;
  height: 36px;
  font-size: 18px;
  border-radius: 10px;
}

/* Logo en sidebar: mismo recorte redondeado que la "K", sin círculo */
.sidebar__mark--logo {
  overflow: hidden;
  padding: 0;
  background: var(--panel);
  border-radius: 10px;
}
.sidebar--slim .sidebar__brand .sidebar__mark--logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.sidebar__mark--logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.sidebar__name {
  font-family: "Fraunces", serif;
  font-size: 18px;
  letter-spacing: 0.3px;
}
.sidebar__tag {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

.sidebar__nav { display: grid; gap: 6px; }

.sidebar--slim .sidebar__nav {
  width: 100%;
  gap: 4px;
  padding: 0 8px;
}

.navLink {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}
.navLink:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
  color: var(--text);
}
.navLink.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-border-strong);
  color: var(--text);
}

/* Slim nav: icon above label, centered */
.navLink--slim {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: 12px;
  text-align: center;
}
.navLink--slim .navLink__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.navLink--slim .navLink__icon svg {
  display: block;
}
.navLink--slim .navLink__label {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 500;
  max-width: 100%;
  word-break: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.navLink--slim.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-border-strong);
  color: var(--text);
}
.navLink--slim.is-active .navLink__icon {
  color: var(--text);
}

.sidebar__section { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.sidebar--slim .sidebar__section {
  width: 100%;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sidebar__sectionTitle { font-size: 12px; color: var(--muted2); text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 10px 10px; }
.sidebar--slim .sidebar__section .sidebar__nav {
  padding: 0 8px;
}

.sidebar__footer {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.sidebar--slim .sidebar__footer {
  flex-shrink: 0;
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  margin-top: auto;
  padding: 12px 8px 14px;
  border-top: 1px solid var(--line);
}
.sidebar--slim .sidebar__footer .navLink--footer {
  width: 100%;
  box-sizing: border-box;
}
.sidebar__userName { font-weight: 600; }
.sidebar__userRole { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Slim footer: avatar + stacked name/role, no overlap */
.sidebar--slim .sidebar__user {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.sidebar__userAvatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-on);
  background: var(--accent-soft-gradient);
  border: 1px solid var(--accent-border);
  flex-shrink: 0;
}
.sidebar__userInfo {
  min-width: 0;
  width: 100%;
  text-align: center;
  line-height: 1.25;
}
.sidebar--slim .sidebar__userName {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar--slim .sidebar__userRole {
  font-size: 10px;
  margin-top: 2px;
  color: var(--muted2);
}

.sidebar__closeBtn {
  display: none;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  color: var(--text);
  flex: 0 0 auto;
}
.sidebar__closeBtn:focus {
  box-shadow: 0 0 0 4px var(--focus);
  border-color: var(--accent-border-focus);
  outline: none;
}

.sidebarOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.42);
  backdrop-filter: blur(6px);
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.sidebarOverlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.appMain {
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.62);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar__left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar__crumb { min-width: 0; }
.topbar__crumbTitle {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Breadcrumb path in header */
.topbar__path {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 4px;
  min-width: 0;
  font-size: 15px;
}
.topbar__pathSep {
  color: var(--muted2);
  user-select: none;
  font-weight: 500;
}
.topbar__pathLink {
  color: var(--muted);
  border-radius: 6px;
  padding: 2px 6px;
  margin: -2px -6px;
  transition: color 120ms ease, background 120ms ease;
}
.topbar__pathLink:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}
.topbar__pathCurrent {
  font-family: "Fraunces", serif;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.topbar__right { display: flex; gap: 10px; align-items: center; }

.topbar__menuBtn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  cursor: pointer;
  flex: 0 0 auto;
}
.topbar__menuBtn:focus {
  box-shadow: 0 0 0 4px var(--focus);
  border-color: var(--accent-border-focus);
  outline: none;
}

.pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  cursor: pointer;
}
.pill__badge {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  font-size: 12px;
  color: var(--accent-on);
  background: var(--accent-gradient);
}
.pill--ghost {
  background: transparent;
}

.appContent {
  flex: 1;
  padding: 22px 24px 34px;
}

/* Shared footer (Leaf copyright) — app, landing, auth */
.appFooter {
  margin-top: auto;
  flex-shrink: 0;
  padding: 24px 24px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.appFooter__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.appFooter__icon {
  flex-shrink: 0;
  opacity: 0.7;
}

.appFooter__copy {
  font-size: 13px;
  color: var(--muted);
}

/* Footer en publicShell (landing/pricing) — body flex para anclar footer al fondo */
body.is-public {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.is-public .publicShell {
  flex: 1;
}

.publicShell + .appFooter {
  flex-shrink: 0;
  padding: 24px 24px;
}

.publicShell + .appFooter .appFooter__inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Footer en authShell */
body.is-auth {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.is-auth .authShell {
  flex: 1;
}

.authShell + .appFooter {
  flex-shrink: 0;
  padding: 20px 24px;
  text-align: center;
}

.authShell {
  max-width: 520px;
  margin: 48px auto;
  padding: 24px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

/* ===== Auth screens (Devise) ===== */
.authLayout { display: grid; gap: 14px; }

.authBrand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.authBrand__mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.authBrand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.authBrand__name {
  font-family: "Fraunces", serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.1;
}
.authBrand__tagline {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.authHead__title {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.2px;
}
.authHead__subtitle { margin-top: 6px; line-height: 1.45; }

.authForm { display: grid; gap: 12px; }
.authForm__field { display: grid; gap: 6px; }
.authHint { font-size: 12px; margin-top: 4px; }

.authForm__checkRow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.55);
}
.authCheck {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.authCheck__label { margin: 0; font-weight: 600; color: var(--text); }

.authActions { margin-top: 2px; }
.btn--block { width: 100%; }

.authHelp {
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.authHelp__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.authLink {
  color: var(--muted);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.authLink:hover { color: var(--text); }

.publicShell {
  max-width: 1080px;
  margin: 22px auto 64px;
  padding: 0 18px;
}

.publicHeader {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(248, 245, 240, 0.82);
  border-bottom: 1px solid var(--line);
}
.publicHeader__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.publicBrand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.publicBrand__mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: "Fraunces", serif;
  font-weight: 700;
  color: var(--accent-on);
  background: var(--accent-gradient);
  box-shadow: 0 10px 24px var(--accent-soft-hover);
}
.publicBrand__logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.publicBrand__name {
  font-family: "Fraunces", serif;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.publicHeader__nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.publicNavLink {
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid transparent;
}
.publicNavLink:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.05);
  color: var(--text);
}
.publicNavLink.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--text);
}
.publicCta { padding: 10px 14px; }

.hero {
  padding: 26px 0 10px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: center;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.10);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.hero__title {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 52px;
  line-height: 1.02;
  margin: 14px 0 0;
}
.hero__titleAccent {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
}
.hero__cta {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero__micro {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hero__pill {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
  font-size: 12px;
}

.hero__frame {
  position: relative;
  min-height: 320px;
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero__frame .heroCard {
  position: absolute;
  left: 18px;
  right: 18px;
  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow2);
}
.hero__frame .heroCard--top { top: 16px; transform: rotate(-1.2deg); }
.hero__frame .heroCard--mid { top: 124px; transform: rotate(0.8deg); }
.hero__frame .heroCard--bot { top: 232px; transform: rotate(-0.6deg); }
.hero__frame .heroCard__title { font-weight: 700; }
.hero__frame .heroCard__row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.hero__frame .heroCard__dot { width: 10px; height: 10px; border-radius: 999px; }
.hero__frame .heroCard__dot--amber { background: var(--accent); }
.hero__frame .heroCard__dot--green { background: var(--ok); }
.hero__frame .heroCard__dot--violet { background: var(--earth-taupe); }
.hero__frame .heroCard__line { height: 10px; flex: 1; border-radius: 999px; background: rgba(0, 0, 0, 0.08); }
.hero__frame .heroCard__meta { margin-top: 10px; color: var(--muted); font-size: 13px; }

.section {
  padding: 28px 0 0;
}
.section__head {
  margin-bottom: 12px;
}
.section__kicker {
  font-size: 12px;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.section__title {
  font-family: "Fraunces", serif;
  font-size: 30px;
  margin: 8px 0 0;
}
.section__lead {
  margin: 8px 0 0;
  color: var(--muted);
}

.feature {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow2);
}
.feature__title {
  font-family: "Fraunces", serif;
  font-weight: 700;
}
.feature__text {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.publicFooter {
  margin-top: 40px;
  padding: 18px 0 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.publicFooter__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.publicFooter__links { display: flex; gap: 10px; }

.localeToggle {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.65);
}
.localeToggle--inline {
  background: rgba(255, 255, 255, 0.50);
}
.localeToggle__btn {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}
.localeToggle__btn.is-active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--text);
}

.flash {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
}
.flash--notice {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
}
.flash--alert {
  border-color: rgba(239, 68, 68, 0.30);
  background: rgba(239, 68, 68, 0.08);
}

.card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow2);
}

/* Invoices filters: compact single row on large screens */
.invoices-filters-card {
  margin-bottom: 18px;
}
.invoices-filters {
  width: 100%;
}
.invoices-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 16px;
}
.invoices-filters__label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 4px;
  flex-shrink: 0;
  padding-bottom: 10px;
}
.invoices-filters__date-group {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 12px;
}
.invoices-filters__quick {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  padding-bottom: 2px;
}
.invoices-filters__quick-btn {
  padding: 8px 12px;
  font-size: 13px;
}
.invoices-filters__quick-btn--active {
  border-color: var(--accent-border-strong);
  background: var(--accent-soft-gradient);
  font-weight: 600;
}
.invoices-filters__quick-btn--active:hover {
  opacity: 0.95;
}
.invoices-filters__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.invoices-filters__field-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.invoices-filters__input {
  padding: 8px 10px;
  font-size: 14px;
  border-radius: 12px;
  min-width: 120px;
  width: 100%;
  max-width: 180px;
}
.invoices-filters__input--date {
  max-width: 142px;
}
.invoices-filters__input--wide {
  max-width: 200px;
}
.invoices-filters__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  padding-bottom: 2px;
}
.invoices-filters__actions .btn {
  padding: 8px 14px;
  font-size: 13px;
}
@media (max-width: 900px) {
  .invoices-filters__row {
    gap: 12px;
  }
  .invoices-filters__label {
    width: 100%;
    padding-bottom: 0;
  }
  .invoices-filters__input,
  .invoices-filters__input--date,
  .invoices-filters__input--wide {
    max-width: none;
  }
}

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

/* --- Utilities (used to replace inline styles) --- */
.text-serif-lg { font-family: "Fraunces", serif; font-size: 34px; }
.text-serif-md { font-family: "Fraunces", serif; font-size: 18px; }
.text-serif-sm { font-family: "Fraunces", serif; font-size: 28px; }
.text-bold { font-weight: 600; }
.text-bold-700 { font-weight: 700; }

.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.flex-between--start { align-items: flex-start; }
.stack { display: grid; gap: 10px; }
.min-w-0 { min-width: 0; }
.nowrap { white-space: nowrap; }

.spacer { height: 14px; }
.spacer--sm { height: 10px; }
.spacer--md { height: 14px; }
.spacer--lg { height: 18px; }

.listItem {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.50);
}

.listItem--link {
  display: block;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.listItem--link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 6px 16px rgba(25, 18, 9, 0.08);
}

.filters { margin-top: 12px; }
.filters__summary {
  display: none;
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.60);
}
.filters__summary::-webkit-details-marker { display: none; }
.filters__summaryRow { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.filters__summaryTitle { font-weight: 700; }
.filtersActions { display: flex; gap: 10px; flex-wrap: wrap; }

.label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="datetime-local"], select, textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  outline: none;
}
/* Evitar icono de calendario roto en inputs date (glifo faltante en algunas fuentes) */
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.7;
  cursor: pointer;
}
input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

/* Formulario "Enviar reporte ahora" en una fila en pantallas grandes */
.report-send-box {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.report-send-box__title {
  font-weight: 600;
  margin-bottom: 10px;
}
.report-send-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.report-send-form__field {
  flex: 0 0 auto;
}
.report-send-form__label {
  display: block;
  margin-bottom: 4px;
}
.report-send-form__field--period {
  width: 140px;
}
.report-send-form__field--date {
  width: 150px;
}
.report-send-form__submit {
  flex: 0 0 auto;
}

textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 4px var(--focus);
  border-color: var(--accent-border-focus);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.70);
  color: var(--text);
  cursor: pointer;
}
.btn--primary {
  border-color: var(--accent-border-strong);
  background: var(--accent-soft-gradient);
}
.btn--danger {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.10);
}

.muted { color: var(--muted); }

/* Task form: recurrence and deadline hierarchy */
.task-form-recurrence {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel2);
}
.task-form-recurrence__heading {
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.task-form-recurrence__type {
  max-width: 200px;
}
.task-form-recurrence__type .label { margin-bottom: 6px; }
.task-form-recurrence__checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 8px;
}
.task-form-recurrence__checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
}
.task-form-recurrence__hint {
  font-size: 12px;
  margin-top: 8px;
}
.task-form-deadline__input { max-width: 280px; }
.task-form-deadline__hint,
.task-form-deadline__hint-daily {
  font-size: 12px;
  margin-top: 6px;
}
.task-form-deadline__hint-daily { margin-top: 4px; }

/* Assignee picker: dual-panel (available | selected) */
.assignee-picker__panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.assignee-picker__panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel2);
  overflow: hidden;
}
.assignee-picker__panel-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.assignee-picker__list {
  min-height: 120px;
  max-height: 200px;
  overflow-y: auto;
  padding: 8px;
}
.assignee-picker__item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-align: left;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.assignee-picker__item:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--focus);
}
.assignee-picker__item--available {
  background: rgba(255, 255, 255, 0.7);
}
.assignee-picker__item--available:hover {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}
.assignee-picker__item--selected {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}
.assignee-picker__item--selected:hover {
  background: var(--accent-soft-active);
  border-color: var(--accent-border-strong);
}
.assignee-picker__role {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 600px) {
  .assignee-picker__panels {
    grid-template-columns: 1fr;
  }
}

.mentionsMenu {
  max-width: 520px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.mentionsMenu__item {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  cursor: pointer;
}
.mentionsMenu__item:hover {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

/* Tablet landscape / small desktop */
@media (max-width: 1024px) {
  .appShell { grid-template-columns: 1fr; }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    width: min(320px, 86vw);
    z-index: 40;
    transform: translateX(-105%);
    transition: transform 220ms ease;
    box-shadow: var(--shadow);
  }
  .sidebar--slim {
    width: 88px;
  }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar__footer { position: relative; left: 0; right: 0; bottom: 0; margin-top: 18px; }
  .sidebar--slim .sidebar__footer { position: static; margin-top: auto; }

  .sidebarOverlay { display: block; }
  .topbar__menuBtn { display: inline-flex; }
  .sidebar__closeBtn { display: inline-flex; }
  .sidebar--slim .sidebar__closeBtn {
    position: absolute;
    top: 12px;
    right: 12px;
  }
  .sidebar--slim .sidebar__brand {
    padding-top: 36px;
  }

  body.is-drawerOpen { overflow: hidden; }

  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablet portrait */
@media (max-width: 768px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .topbar { padding: 14px 16px; }
  .appContent { padding: 16px; }

  .filters__summary { display: block; }
}

/* Mobile */
@media (max-width: 480px) {
  .appContent { padding: 12px; }
  .card { padding: 12px; }
  .topbar__crumbTitle { font-size: 16px; }
  .topbar__path { font-size: 14px; }
  .topbar__pathCurrent { max-width: 160px; }
  .pill { padding: 9px 10px; gap: 8px; }
  .topbar__right { gap: 8px; }
  .text-serif-lg { font-size: 30px; }
  .filtersActions { flex-direction: column; }
  .filtersActions .btn { width: 100%; }
}

/* Public landing responsive tweaks */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 40px; }
}

/* ===== Notification Bell Button ===== */
.notifBtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  transition: background 120ms ease, transform 120ms ease;
  appearance: none;
  padding: 0;
  cursor: pointer;
}

/* ===== In-app toast notifications ===== */
.toastContainer {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 60;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 28px));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 12px 12px 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(10px);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 200ms ease, opacity 200ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.toast.is-leaving {
  transform: translateY(-8px);
  opacity: 0;
}

.toast__link {
  color: inherit;
  text-decoration: none;
  display: grid;
  gap: 4px;
}

.toast__title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
}

.toast__body {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.toast__close {
  border: 0;
  background: rgba(0, 0, 0, 0.04);
  color: var(--muted);
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.toast__close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text);
}
.notifBtn:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}
.notifBtn__icon {
  width: 20px;
  height: 20px;
}
.notifBtn__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-on);
  background: var(--accent-gradient);
  box-shadow: 0 2px 8px var(--accent-border-strong);
}

/* ===== Header Notifications Dropdown ===== */
.notifDropdown {
  position: relative;
}

.notifDropdown__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, calc(100vw - 28px));
  z-index: 55;
}

.notifPanel {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.notifPanel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.notifPanel__title {
  font-family: "Fraunces", serif;
  font-size: 16px;
  font-weight: 700;
}

.notifPanel__headActions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.notifPanel__loading {
  padding: 10px 12px;
}

.notifPanel__empty {
  padding: 10px 12px;
}

.notifPanel__list {
  display: grid;
  gap: 8px;
}

.notifRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.70);
}

.notifRow.is-unread {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.notifRow__link {
  display: block;
  min-width: 0;
}

.notifRow__title {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
}

.notifRow__body {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

.notifRow__meta {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted2);
}

.notifRow__actions {
  display: flex;
  align-items: flex-start;
}

/* ===== Notifications page layout ===== */
.notificationsLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 14px;
  align-items: start;
}

.notificationsList {
  display: grid;
  gap: 10px;
}

.notificationItem {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.55);
}

.notificationItem.is-unread {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.notificationItem__title {
  font-weight: 700;
}

.notificationItem__linkBlock {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.notificationItem__linkBlock:hover {
  color: inherit;
}
.notificationItem__linkBlock:hover .notificationItem__title {
  text-decoration: underline;
}

.notificationItem__link:hover {
  text-decoration: underline;
}

.notificationItem__meta {
  font-size: 12px;
  margin-top: 6px;
}

.notificationsSetting {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.55);
}

/* Disclosure (collapsible settings) */
.disclosure {
  border-radius: 16px;
}

.disclosure__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.disclosure__summary::-webkit-details-marker {
  display: none;
}

.disclosure__chev {
  color: var(--muted);
  transition: transform 150ms ease;
  margin-top: 4px;
}

.disclosure[open] .disclosure__chev {
  transform: rotate(180deg);
}

.disclosure__content {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Pagination (Pagy) */
.pagination {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.pagination .pagy,
.pagination .pagy-nav,
.pagination .pagy_nav {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.70);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.pagination a:hover {
  background: rgba(255, 255, 255, 0.92);
}

.pagination a[aria-current="page"] {
  border-color: var(--accent-border-strong);
  background: var(--accent-soft);
}

.pagination a[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.pagination a[aria-current="page"] {
  opacity: 1;
}

.pagination a[role="separator"] {
  opacity: 0.6;
  pointer-events: none;
  min-width: 24px;
}

@media (max-width: 1024px) {
  .notificationsLayout {
    grid-template-columns: 1fr;
  }

  .notifDropdown__panel {
    right: -6px;
  }
}

/* ===== Workflow Steps (Task Show) ===== */
.workflowSteps {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 16px 0;
  overflow-x: auto;
}
.workflowStep {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.workflowStep__indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.06);
  color: var(--muted);
  border: 2px solid transparent;
  transition: all 180ms ease;
}
.workflowStep.is-active .workflowStep__indicator {
  background: var(--accent-soft-gradient);
  border-color: var(--accent);
  color: var(--text);
}
.workflowStep.is-done .workflowStep__indicator {
  background: rgba(34, 197, 94, 0.15);
  border-color: var(--ok);
  color: var(--ok);
}
.workflowStep.is-rejected .workflowStep__indicator {
  background: rgba(239, 68, 68, 0.12);
  border-color: var(--danger);
  color: var(--danger);
}
.workflowStep__label {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}
.workflowStep.is-active .workflowStep__label {
  color: var(--text);
  font-weight: 600;
}
.workflowStep__connector {
  width: 32px;
  height: 2px;
  background: rgba(0, 0, 0, 0.10);
  flex: 0 0 auto;
  margin: 0 4px;
  margin-bottom: 20px;
}
.workflowStep__connector.is-done {
  background: var(--ok);
}

.workflowAlert {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
}
.workflowAlert--rejected {
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--danger);
}
.workflowAlert--overdue {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}
.workflowAlert--cancelled {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.10);
  color: var(--muted);
}
.workflowAlert--submitted {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-dark);
}

.workflowActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.workflowWaiting {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--muted);
}
.workflowWaiting--success {
  background: rgba(34, 197, 94, 0.10);
  color: var(--ok);
}
.workflowWaiting__icon {
  font-size: 18px;
}

.workflowForm__row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.workflowForm__field {
  flex: 1;
  min-width: 140px;
}
.workflowForm__action {
  flex: 0 0 auto;
}

.workflowReview {
  padding: 14px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}
.workflowReview__title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}
.workflowReview__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.workflowReview__reject {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 200px;
}
.workflowReview__input {
  flex: 1;
}

/* ===== Tasks Header & Filters Bar ===== */
.tasksHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.tasksHeader__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.tasksHeader__count {
  font-size: 14px;
}

.filtersBar {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 10px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(25, 18, 9, 0.04);
}

/* ===== Tasks Tabs ===== */
.tasksTabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.tasksTab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  transition: background 120ms ease, transform 120ms ease, border-color 120ms ease;
}
.tasksTab:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
  color: var(--text);
}
.tasksTab.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-border-strong);
  color: var(--text);
}
.tasksTab__count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--accent-on);
  background: var(--accent-gradient);
}

/* ===== Settings Tabs ===== */
.settingsTabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.settingsTab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  transition: background 120ms ease, transform 120ms ease, border-color 120ms ease;
}
.settingsTab:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
  color: var(--text);
}
.settingsTab.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-border-strong);
  color: var(--text);
}

/* Logo en círculo solo en la vista de Ajustes */
.settings-org-logo-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--panel2);
  border: 1px solid var(--line);
}
.settings-org-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.settings-org-logo-circle--readonly {
  width: 72px;
  height: 72px;
}

/* ===== Timeline Day Headers ===== */
.tasksDayHeader {
  margin-top: 10px;
  margin-bottom: 6px;
}

/* Al hacer scroll a #tasks-group-today / #tasks-group-tomorrow, dejar espacio para el header fijo */
[id^="tasks-group-"] {
  scroll-margin-top: 88px;
}

.tasksDayHeader:first-child {
  margin-top: 0;
}
.tasksDayHeader__title {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.tasksDayHeader__rel {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}
.filtersBar__form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.filtersBar__search {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 280px;
}
.filtersBar__searchIcon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.filtersBar__searchInput {
  padding-left: 36px !important;
  border-radius: 10px !important;
}
.filtersBar__selects {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 2;
}
.filterSelect {
  padding: 9px 10px !important;
  border-radius: 10px !important;
  font-size: 13px;
  min-width: 0;
  width: auto;
  flex: 1;
  min-width: 90px;
  max-width: 140px;
}
.filtersBar__actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

/* ===== Task Cards List ===== */
.tasksList {
  display: grid;
  gap: 8px;
}
.tasksList__empty {
  text-align: center;
  padding: 48px 20px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
}
.tasksList__emptyIcon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.5;
}

.taskCard {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
  text-decoration: none;
  color: inherit;
}
.taskCard:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(25, 18, 9, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
}
.taskCard.is-urgent {
  border-left: 3px solid var(--danger);
}
.taskCard.is-high {
  border-left: 3px solid var(--accent);
}

.taskCard__main {
  flex: 1;
  min-width: 0;
}
.taskCard__header {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 4px;
}
.taskCard__status {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.taskCard__status.is-pending { background: rgba(0, 0, 0, 0.06); color: var(--muted); }
.taskCard__status.is-progress { background: var(--accent-soft); color: var(--accent-dark); }
.taskCard__status.is-submitted { background: var(--accent-soft); color: var(--accent-dark); }
.taskCard__status.is-approved { background: rgba(34, 197, 94, 0.15); color: #15803d; }
.taskCard__status.is-rejected { background: rgba(239, 68, 68, 0.12); color: var(--danger); }
.taskCard__status.is-overdue { background: rgba(239, 68, 68, 0.12); color: var(--danger); }
.taskCard__status.is-cancelled { background: rgba(0, 0, 0, 0.06); color: var(--muted2); }

.taskCard__priority {
  display: inline-flex;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.taskCard__priority.is-urgent { background: rgba(239, 68, 68, 0.12); color: var(--danger); }
.taskCard__priority.is-high { background: var(--accent-soft); color: var(--accent-dark); }

.taskCard__title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.taskCard__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.taskCard__client {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.taskCard__deadline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.taskCard__deadline.is-overdue {
  color: var(--danger);
}

.taskCard__assignees {
  display: flex;
  flex: 0 0 auto;
}
.taskCard__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid rgba(255, 255, 255, 0.90);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
  margin-left: -8px;
  position: relative;
}
.taskCard__avatar:first-child {
  margin-left: 0;
}
.taskCard__avatarMore {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.90);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  margin-left: -8px;
}

/* Index list cards: whole row/card is clickable (same pattern as taskCard) */
.indexCard {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
  text-decoration: none;
  color: inherit;
}
.indexCard:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(25, 18, 9, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}
.indexCard__main {
  flex: 1;
  min-width: 0;
}
.indexCard__title {
  font-weight: 700;
}
.indexCard__meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.indexCard__actions {
  flex-shrink: 0;
}
.indexCard__actions:focus-within,
.indexCard__actions * {
  position: relative;
  z-index: 1;
}
.indexCard .btn {
  pointer-events: auto;
}

/* Button variants */
.btn--lg {
  padding: 13px 18px;
  font-size: 15px;
}
.btn--sm {
  padding: 8px 12px;
  font-size: 13px;
}
.btn--success {
  border-color: rgba(34, 197, 94, 0.40);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.20), rgba(74, 222, 128, 0.12));
  color: #15803d;
}
.btn svg {
  flex-shrink: 0;
}
.btn span {
  white-space: nowrap;
}
.btn--primary {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

/* ===== Responsive adjustments for new components ===== */
@media (max-width: 768px) {
  .filtersBar__form {
    flex-direction: column;
    align-items: stretch;
  }
  .filtersBar__search {
    max-width: none;
  }
  .filtersBar__selects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .filterSelect {
    max-width: none;
  }
  .filterSelect--hide-mobile {
    display: none;
  }
  .filtersBar__actions {
    justify-content: stretch;
  }
  .filtersBar__actions .btn {
    flex: 1;
  }
  
  .taskCard {
    flex-direction: column;
    align-items: flex-start;
  }
  .taskCard__assignees {
    margin-top: 8px;
  }
  
  .workflowSteps {
    padding: 12px 0;
  }
  .workflowStep__connector {
    width: 20px;
  }
  
  .workflowForm__row {
    flex-direction: column;
  }
  .workflowForm__field {
    width: 100%;
  }
  
  .workflowReview__actions {
    flex-direction: column;
  }
  .workflowReview__reject {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .tasksHeader {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .tasksHeader__title {
    flex-direction: column;
    gap: 2px;
  }
  
  .filtersBar__selects {
    grid-template-columns: 1fr;
  }
  
  .taskCard__title {
    white-space: normal;
  }
}

/* ===== LANDING PAGE - Modern Sections ===== */
.landingSection {
  padding: 80px 0;
  position: relative;
}

.landingContainer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Section */
.landingSection--hero {
  padding: 60px 0 100px;
  background: var(--bg);
}

.landingSection--hero .landingContainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.heroContent__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 20px;
}

.heroContent__badgeDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gradient);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.heroContent__title {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.05;
  margin: 0 0 20px;
  color: var(--text);
}

.heroContent__titleAccent {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.heroContent__lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 520px;
}

.heroContent__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.heroContent__pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.heroContent__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 13px;
  color: var(--muted);
}

.heroContent__pill svg {
  color: var(--accent);
}

/* Hero Visual */
.heroVisual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.heroVisual__frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  min-height: auto;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fdfcfb 0%, var(--panel2) 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 60px rgba(25, 18, 9, 0.12);
  overflow: visible;
}

.heroCard {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(25, 18, 9, 0.08);
  margin-bottom: 16px;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.heroCard:last-child {
  margin-bottom: 0;
}

.heroCard--1 { transform: rotate(-0.8deg); }
.heroCard--2 { transform: rotate(0.5deg); }
.heroCard--3 { transform: rotate(-0.3deg); }

.heroCard:hover {
  transform: translateY(-2px) rotate(0deg);
  box-shadow: 0 8px 24px rgba(25, 18, 9, 0.12);
}

.heroCard__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.heroCard__icon--amber {
  background: var(--accent-soft-gradient);
  color: var(--accent-dark);
}

.heroCard__icon--green {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.20), rgba(74, 222, 128, 0.15));
  color: #15803d;
}

.heroCard__icon--violet {
  background: linear-gradient(135deg, var(--earth-taupe), var(--earth-beige));
  color: var(--accent-dark);
}

.heroCard__content {
  flex: 1;
  min-width: 0;
}

.heroCard__title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  line-height: 1.3;
  color: var(--text);
}

.heroCard__meta {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.heroCard__status {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  white-space: nowrap;
}

.heroCard__status--amber {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.heroCard__status--green {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

.heroCard__status--violet {
  background: var(--earth-taupe);
  color: var(--accent-dark);
}

/* Features Overview (Flowblox-style 3-column) */
.landingSection--featuresOverview {
  padding: 60px 0 80px;
  background: var(--bg);
}
.featuresOverviewGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.featureOverviewCard {
  padding: 32px 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(25, 18, 9, 0.05);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.featureOverviewCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(25, 18, 9, 0.10);
}
.featureOverviewCard--accent {
  background: linear-gradient(135deg, var(--earth-beige) 0%, var(--earth-taupe) 100%);
  border-color: rgba(0, 0, 0, 0.08);
}
.featureOverviewCard--dark {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  border: none;
  color: var(--accent-on);
}
.featureOverviewCard--dark .featureOverviewCard__title,
.featureOverviewCard--dark .featureOverviewCard__text {
  color: inherit;
}
.featureOverviewCard--dark .featureOverviewCard__text {
  opacity: 0.9;
}
.featureOverviewCard--dark .featureOverviewCard__icon {
  background: rgba(255, 255, 255, 0.2);
  color: var(--accent-on);
}
.featureOverviewCard__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft-gradient);
  color: var(--accent);
  margin-bottom: 20px;
}
.featureOverviewCard__title {
  font-family: "Fraunces", serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--text);
}
.featureOverviewCard__text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* Features Section */
.landingSection--features {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.50), rgba(247, 244, 238, 0.80));
}

.sectionHeader {
  margin-bottom: 48px;
  max-width: 600px;
}

.sectionHeader--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.sectionHeader__kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
}

.sectionHeader__title {
  font-family: "Fraunces", serif;
  font-size: 40px;
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.15;
}

.sectionHeader__lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

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

.featureCard {
  padding: 28px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(25, 18, 9, 0.05);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.featureCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(25, 18, 9, 0.10);
}

.featureCard__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft-gradient);
  color: var(--accent);
  margin-bottom: 18px;
}

.featureCard__title {
  font-family: "Fraunces", serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
}

.featureCard__text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* Feature card variants (Flowblox-style varied backgrounds) */
.featureCard--earth {
  background: linear-gradient(135deg, var(--earth-beige) 0%, var(--earth-taupe) 100%);
  border-color: rgba(0, 0, 0, 0.08);
}
.featureCard--accent {
  background: linear-gradient(135deg, var(--earth-beige) 0%, var(--earth-taupe) 100%);
  border-color: rgba(0, 0, 0, 0.08);
}
.featureCard--dark {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  border: none;
  color: var(--accent-on);
}
.featureCard--dark .featureCard__title,
.featureCard--dark .featureCard__text {
  color: inherit;
}
.featureCard--dark .featureCard__text {
  opacity: 0.9;
}
.featureCard--dark .featureCard__icon {
  background: rgba(255, 255, 255, 0.2);
  color: var(--accent-on);
}
.featuresGrid--detailed {
  grid-template-columns: repeat(4, 1fr);
}

/* Pricing Section */
.landingSection--pricing {
  background: var(--panel2);
}

.pricingGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.pricingCard {
  position: relative;
  padding: 32px 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(25, 18, 9, 0.06);
  text-align: center;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.pricingCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(25, 18, 9, 0.12);
}

.pricingCard--featured {
  border-color: var(--accent-border-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), var(--accent-soft));
  box-shadow: 0 8px 32px var(--accent-soft);
}

.pricingCard__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: var(--accent-on);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricingCard__name {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--muted);
  margin-bottom: 8px;
}

.pricingCard__price {
  font-family: "Fraunces", serif;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricingCard__period {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.pricingCard__trial {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* CTA Section */
.landingSection--cta {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, var(--accent-soft));
}

.ctaBlock {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.ctaBlock__title {
  font-family: "Fraunces", serif;
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.2;
}

.ctaBlock__lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 28px;
}

.ctaBlock__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* Landing Footer */
.landingFooter {
  padding: 32px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.landingFooter__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.landingFooter__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landingFooter__mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-on);
  background: var(--accent-gradient);
}
.landingFooter__logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.landingFooter__name {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 16px;
}

.landingFooter__copy {
  font-size: 14px;
  color: var(--muted);
}

.landingFooter__links {
  display: flex;
  gap: 20px;
}

.landingFooter__link {
  font-size: 14px;
  color: var(--muted);
  transition: color 150ms ease;
}

.landingFooter__link:hover {
  color: var(--text);
}

/* Landing Responsive */
@media (max-width: 1024px) {
  .landingSection--hero .landingContainer {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .heroContent__title {
    font-size: 44px;
  }
  
  .heroVisual__frame {
    max-width: 480px;
    margin: 0 auto;
  }
  
  .featuresOverviewGrid {
    grid-template-columns: 1fr;
  }
  
  .featuresGrid,
  .featuresGrid--detailed {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .landingSection {
    padding: 60px 0;
  }
  
  .heroContent__title {
    font-size: 36px;
  }
  
  .heroContent__lead {
    font-size: 16px;
  }
  
  .sectionHeader__title {
    font-size: 32px;
  }
  
  .featuresOverviewGrid {
    grid-template-columns: 1fr;
  }
  
  .featuresGrid,
  .featuresGrid--detailed,
  .pricingGrid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .pricingCard--featured {
    order: -1;
  }
  
  .ctaBlock__title {
    font-size: 28px;
  }
  
  .landingFooter__inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .landingSection {
    padding: 48px 0;
  }
  
  .heroContent__title {
    font-size: 30px;
  }
  
  .heroContent__cta {
    flex-direction: column;
  }
  
  .heroContent__cta .btn {
    width: 100%;
  }
  
  .heroVisual__frame {
    padding: 20px;
  }
  
  .heroCard {
    padding: 14px 16px;
  }
  
  .heroCard__title {
    font-size: 14px;
  }
  
  .heroCard__status {
    font-size: 10px;
    padding: 4px 10px;
  }
}

/* ===== DASHBOARD - Compact Top Bar ===== */
.dashboardTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft);
}

.dashboardTop__hero {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
}

.dashboardTop__greeting {
  font-weight: 600;
  color: var(--text);
}

.dashboardTop__divider {
  color: var(--muted2);
}

.dashboardTop__title {
  font-family: "Fraunces", serif;
  font-weight: 600;
  color: var(--text);
}

.dashboardTop__subtitle {
  color: var(--muted);
}

.dashboardTop__metrics {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboardMetric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.dashboardMetric__value {
  font-family: "Fraunces", serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.dashboardMetric__label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.dashboardMetric--alert .dashboardMetric__value {
  color: var(--danger);
}

.dashboardMetric--urgent {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
}

.dashboardMetric--urgent .dashboardMetric__value {
  color: var(--danger);
}

.dashboardMetric--urgent:hover {
  background: rgba(239, 68, 68, 0.15);
}

@media (max-width: 768px) {
  .dashboardTop {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .dashboardTop__hero {
    justify-content: center;
  }

  .dashboardTop__metrics {
    justify-content: center;
  }

  .dashboardMetric {
    align-items: center;
  }
}

.dashboardAlert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.20);
}

.dashboardAlert__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  flex-shrink: 0;
}

.dashboardAlert__content {
  flex: 1;
}

.dashboardAlert__title {
  font-weight: 600;
  font-size: 14px;
  color: var(--danger);
  margin-bottom: 2px;
}

.dashboardAlert__text {
  font-size: 13px;
  color: var(--muted);
}

.dashboardAlert__action {
  flex-shrink: 0;
}

.taskGroup {
  margin-bottom: 24px;
}

.taskGroup:last-child {
  margin-bottom: 0;
}

.taskGroup__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 4px;
}

.taskGroup__title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.taskGroup__label {
  font-family: "Fraunces", serif;
  font-size: 18px;
  font-weight: 600;
}

.taskGroup__count {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.taskGroup__count--urgent {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}

.taskGroup__count--today {
  background: var(--accent-soft-gradient);
  color: var(--accent-dark);
}

.taskGroup__toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.60);
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}

.taskGroup__toggle:hover {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
}

.taskGroup__list {
  display: grid;
  gap: 10px;
}

.taskGroup__empty {
  padding: 32px 20px;
  text-align: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.50);
  border: 1px dashed rgba(0, 0, 0, 0.10);
}

.taskGroup__emptyIcon {
  font-size: 28px;
  margin-bottom: 8px;
  opacity: 0.4;
}

.taskGroup__emptyText {
  font-size: 14px;
  color: var(--muted);
}

/* ===== DASHBOARD LEAF (resumen limpio) ===== */
.dashboardLeaf {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.dashboardLeaf__header {
  margin-bottom: 28px;
}

.dashboardLeaf__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.dashboardLeaf__logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.dashboardLeaf__appName {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.dashboardLeaf__title {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text);
}

.dashboardLeaf__subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

.dashboardLeaf__summary {
  padding: 18px 22px;
  background: var(--panel);
  border-radius: 16px;
  border: 1px solid var(--line);
  margin-bottom: 24px;
}

.dashboardLeaf__statusRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.dashboardLeaf__status {
  font-size: 0.9rem;
  font-weight: 600;
}

.dashboardLeaf__newTaskBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-on);
  background: var(--accent-gradient);
  border-radius: 10px;
  flex-shrink: 0;
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.dashboardLeaf__newTaskBtn:hover {
  opacity: 0.95;
  box-shadow: 0 4px 12px var(--accent-shadow);
}

.dashboardLeaf__status--ok {
  color: var(--ok);
}

.dashboardLeaf__status--soon {
  color: var(--accent);
}

.dashboardLeaf__status--alert {
  color: var(--danger);
}

.dashboardLeaf__kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 16px;
}

.dashboardLeaf__kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dashboardLeaf__kpiValue {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.dashboardLeaf__kpi--accent .dashboardLeaf__kpiValue {
  font-size: 1rem;
  color: var(--accent);
}

.dashboardLeaf__kpiLabel {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.dashboardLeaf__sectionTitle {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 14px;
}

.dashboardLeaf__attention {
  margin-bottom: 28px;
}

.dashboardLeaf__attention--empty {
  padding: 24px;
  background: var(--panel);
  border-radius: 16px;
  border: 1px solid var(--line);
  margin-bottom: 28px;
}

.dashboardLeaf__allCaughtUp {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ok);
  font-weight: 600;
  text-align: center;
}

.dashboardLeaf__tasksGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.dashboardLeaf__taskBlock {
  padding: 16px 18px;
  background: var(--panel);
  border-radius: 14px;
  border: 1px solid var(--line);
}

.dashboardLeaf__taskBlockHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.dashboardLeaf__taskBlockLabel {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboardLeaf__taskBlockLabel--overdue { color: var(--danger); }
.dashboardLeaf__taskBlockLabel--today { color: var(--accent); }
.dashboardLeaf__taskBlockLabel--tomorrow { color: var(--muted2); }

.dashboardLeaf__taskBlockLink {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
}

.dashboardLeaf__taskBlockLink:hover { color: var(--accent-dark); }

.dashboardLeaf__taskList {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dashboardLeaf__taskItem {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 4px;
  transition: background 0.15s ease;
}

.dashboardLeaf__taskItem:hover {
  background: var(--accent-soft);
}

.dashboardLeaf__taskItem--overdue {
  border-left: 3px solid var(--danger);
  background: rgba(184, 92, 74, 0.06);
}

.dashboardLeaf__taskItem--overdue:hover {
  background: rgba(184, 92, 74, 0.1);
}

.dashboardLeaf__taskItem--today {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}

.dashboardLeaf__taskItem--today:hover {
  background: var(--accent-soft-hover);
}

.dashboardLeaf__taskItem--tomorrow {
  border-left: 3px solid var(--line);
}

.dashboardLeaf__taskTitle {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.dashboardLeaf__taskMeta {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.dashboardLeaf__alerts {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.dashboardLeaf__alertsList {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboardLeaf__alertItem {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.dashboardLeaf__alertItem:hover {
  background: var(--accent-soft);
}

.dashboardLeaf__alertItem--overdue {
  border-left: 3px solid var(--danger);
  background: rgba(184, 92, 74, 0.08);
}

.dashboardLeaf__alertItem--rejected {
  border-left: 3px solid #d97706;
  background: rgba(217, 119, 6, 0.08);
}

.dashboardLeaf__alertItem--submitted {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}

.dashboardLeaf__alertItem--draft_invoices {
  border-left: 3px solid var(--earth-taupe);
  background: rgba(221, 202, 184, 0.15);
}

.dashboardLeaf__alertCount {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1rem;
}

@media (max-width: 600px) {
  .dashboardLeaf {
    padding: 0 16px 32px;
  }
  .dashboardLeaf__statusRow {
    flex-direction: column;
    align-items: stretch;
  }
  .dashboardLeaf__newTaskBtn {
    justify-content: center;
  }
}

/* ===== DASHBOARD PANEL (admin/manager overview) ===== */
.dashboardPanel {
  max-width: 1000px;
}

/* Full-width two-column layout: content + chart */
.dashboardPanel--fullWidth {
  max-width: none;
  width: 100%;
}

.dashboardPanel__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.dashboardPanel__main--withChart {
  grid-template-columns: 1fr minmax(340px, 420px);
  gap: 28px;
  align-items: start;
}

.dashboardPanel__content {
  min-width: 0;
}

/* Sidebar derecha: efectividad, tareas de hoy, alertas, top performers */
.dashboardPanel__sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.dashboardPanel__sidebarBlock {
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
}

.dashboardPanel__sidebarBlock .dashboardPanel__blockTitle {
  margin-bottom: 14px;
}

.dashboardPanel__sidebarBlock .dashboardPanel__effectiveness {
  margin-top: 0;
}

/* Secciones sin tarjeta: solo título + contenido, separador sutil */
.dashboardPanel__sidebarBlock--flat {
  padding: 0 0 20px 0;
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.dashboardPanel__sidebarBlock--flat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dashboardSidebar__alerts.dashboardPanel__sidebarBlock--flat {
  padding-bottom: 24px;
}

.dashboardPanel__sidebarBlock--flat .dashboardPanel__blockTitle {
  margin-bottom: 12px;
}

/* Tareas de hoy en sidebar: más compacto */
.dashboardToday--sidebar {
  margin-bottom: 0;
}

.dashboardToday--sidebar .dashboardToday__header {
  margin-bottom: 12px;
}

.dashboardToday--sidebar .dashboardToday__card {
  padding: 16px 18px;
}

.dashboardToday--sidebar .dashboardToday__empty {
  padding: 20px 16px;
}

.dashboardToday--sidebar .dashboardToday__emptyIcon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

/* Tareas de hoy sin tarjeta: contenido directo bajo el título */
.dashboardToday--flat .dashboardToday__header {
  margin-bottom: 14px;
}

.dashboardToday--flat .dashboardToday__list {
  gap: 10px;
}

.dashboardToday--flat .dashboardToday__list--cards {
  gap: 12px;
}

/* Tarjeta de tarea (estilo pill, título + subtítulo + estado) */
.dashboardToday__cardItem {
  list-style: none;
  margin: 0;
}

.dashboardToday__taskCard {
  display: block;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(25, 18, 9, 0.06);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  position: relative;
}

.dashboardToday__taskCard:hover {
  box-shadow: 0 6px 20px rgba(25, 18, 9, 0.08);
  border-color: var(--accent-border);
  transform: translateY(-1px);
}

.dashboardToday__taskCardTitle {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 4px;
  padding-right: 80px;
}

.dashboardToday__taskCardMeta {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.dashboardToday__taskCardStatus {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted2);
}

.dashboardToday--flat .dashboardToday__taskRow {
  padding: 8px 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}

.dashboardToday--flat .dashboardToday__taskRow:last-child {
  border-bottom: none;
}

.dashboardToday--flat .dashboardToday__taskRow:hover {
  background: transparent;
}

.dashboardToday--flat .dashboardToday__empty {
  padding: 18px 0;
}

.dashboardToday--flat .dashboardToday__emptyIcon {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
}

/* Alertas sin tarjeta: filas con borde izquierdo, sin caja */
.dashboardPanel__alertsGrid--flat {
  flex-direction: column;
  gap: 0;
}

.dashboardPanel__alertsGrid--flat .dashboardPanel__alertCard {
  min-width: 0;
  width: 100%;
}

.dashboardPanel__alertCard--flat {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  min-width: 0;
}

.dashboardPanel__alertCard--flat:hover {
  transform: none;
  box-shadow: none;
  background: var(--accent-soft);
}

.dashboardPanel__alertCard--flat .dashboardPanel__alertCardValue {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.dashboardPanel__alertCard--flat .dashboardPanel__alertCardLabel {
  flex: 1;
  text-transform: none;
  font-size: 0.8rem;
  font-weight: 500;
}

.dashboardPanel__alertCard--flat .dashboardPanel__alertCardAction {
  margin-top: 0;
  font-size: 0.8rem;
}

.dashboardPanel__alertCard--flat.dashboardPanel__alertCard--overdue {
  border-left: 3px solid var(--danger);
  padding-left: 12px;
}

.dashboardPanel__alertCard--flat.dashboardPanel__alertCard--rejected {
  border-left: 3px solid #d97706;
  padding-left: 12px;
}

.dashboardPanel__alertCard--flat.dashboardPanel__alertCard--submitted {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

.dashboardPanel__alertCard--flat.dashboardPanel__alertCard--draft_invoices {
  border-left: 3px solid var(--earth-taupe);
  padding-left: 12px;
}

.dashboardPanel__alertCard--flat.dashboardPanel__alertCard--reports_no_emails {
  border-left: 3px solid #eab308;
  padding-left: 12px;
}

.dashboardPanel__alertCard--flat:last-child {
  border-bottom: none;
}

/* Alertas en sidebar: en columna cuando hay poco espacio */
.dashboardPanel__alertsGrid--vertical {
  flex-direction: column;
  gap: 10px;
}

.dashboardPanel__alertsGrid--vertical .dashboardPanel__alertCard {
  min-width: 0;
  width: 100%;
}

/* Compatibilidad: .dashboardPanel__chart (por si se usa en otro lugar) */
.dashboardPanel__chart {
  position: sticky;
  top: 24px;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
}

@media (max-width: 1024px) {
  .dashboardPanel__main {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .dashboardPanel__sidebar {
    position: static;
  }
}

/* Hero: greeting with brand gradient and hierarchy */
.dashboardPanel__hero {
  margin-bottom: 28px;
  padding: 24px 28px;
  border-radius: 20px;
  background: var(--accent-soft-gradient);
  border: 1px solid var(--accent-border);
}

.dashboardPanel__heroTitle {
  font-family: var(--font-serif, "Fraunces", serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.dashboardPanel__heroSubtitle {
  font-size: 0.95rem;
  margin: 0;
  color: var(--muted);
}

/* ===== DASHBOARD ATTENTION (what needs your attention first) ===== */
.dashboardAttention {
  margin-bottom: 32px;
  padding: 24px 28px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
}

.dashboardAttention__title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin: 0 0 4px 0;
}

.dashboardAttention__subtitle {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 20px 0;
}

.dashboardAttention__empty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.dashboardAttention__emptyIcon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ok);
  opacity: 0.4;
}

.dashboardAttention__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.dashboardAttention__block {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.dashboardAttention__block:first-of-type {
  border-top: none;
  padding-top: 0;
}

@media (min-width: 768px) {
  .dashboardAttention__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .dashboardAttention__block {
    border-top: none;
    padding-top: 0;
    border-left: 1px solid var(--line);
    padding-left: 20px;
  }
  .dashboardAttention__block:first-child {
    border-left: none;
    padding-left: 0;
  }
}

.dashboardAttention__blockHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dashboardAttention__blockLabel {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted2);
}

.dashboardAttention__block--overdue .dashboardAttention__blockLabel { color: var(--danger); }
.dashboardAttention__block--today .dashboardAttention__blockLabel { color: var(--accent); }
.dashboardAttention__block--tomorrow .dashboardAttention__blockLabel { color: var(--muted2); }

.dashboardAttention__blockLink {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.dashboardAttention__blockLink:hover { color: var(--text); }

.dashboardAttention__taskList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dashboardAttention__taskRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.dashboardAttention__taskRow:hover {
  background: var(--accent-soft);
  box-shadow: 0 2px 8px rgba(25, 18, 9, 0.06);
}

.dashboardAttention__taskRow--overdue {
  border-left: 3px solid var(--danger);
  background: rgba(239, 68, 68, 0.05);
}
.dashboardAttention__taskRow--overdue:hover {
  background: rgba(239, 68, 68, 0.08);
}

.dashboardAttention__taskRow--today {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}
.dashboardAttention__taskRow--today:hover {
  background: var(--accent-soft);
}

.dashboardAttention__taskRow--tomorrow {
  border-left: 3px solid var(--line);
  background: var(--panel2);
}
.dashboardAttention__taskRow--tomorrow:hover {
  background: var(--accent-soft);
}

.dashboardAttention__taskTitle {
  font-weight: 600;
  font-size: 0.9rem;
  flex: 1 1 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboardAttention__taskMeta {
  font-size: 0.8rem;
  color: var(--muted);
}

.dashboardAttention__taskDate {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted2);
  margin-left: auto;
}

.dashboardAttention__taskRow--overdue .dashboardAttention__taskDate { color: var(--danger); }

/* ===== DASHBOARD HEALTH (how your business is doing) ===== */
.dashboardHealth {
  margin-bottom: 28px;
  padding: 22px 26px;
  border-radius: 18px;
  background: var(--accent-soft-gradient);
  border: 1px solid var(--accent-border);
}

.dashboardHealth__title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin: 0 0 2px 0;
}

.dashboardHealth__subtitle {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 14px 0;
}

.dashboardHealth__summary {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.dashboardHealth__line {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.dashboardHealth__line--ok {
  color: var(--ok);
}

.dashboardHealth__line--alert {
  color: var(--danger);
}

.dashboardHealth__line--soon {
  color: var(--accent);
}

.dashboardHealth__kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.dashboardHealth__kpi {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.dashboardHealth__kpi:hover {
  transform: translateY(-1px);
  border-color: var(--accent-border);
}

.dashboardHealth__kpi--lead {
  border-left: 4px solid var(--accent);
}

.dashboardHealth__kpiLabel {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted2);
}

.dashboardHealth__kpiValue {
  font-family: var(--font-serif, "Fraunces", serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.dashboardHealth__kpiValue--accent {
  color: var(--accent);
  font-size: 1.2rem;
}

.dashboardHealth__kpiValue--muted {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.dashboardHealth__kpiLink {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 6px;
  text-decoration: none;
}
.dashboardHealth__kpiLink:hover { color: var(--text); }

.dashboardHealth__chartBlock,
.dashboardHealth__topClients {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.dashboardHealth__chartTitle {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted2);
  margin: 0 0 14px 0;
}

.dashboardHealth__chartEmpty {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  padding: 12px 0;
}

/* Billing chart: Facturado vs Cobrado last 6 months */
.dashboardBillingChart {
  margin-top: 8px;
}

.dashboardBillingChart__legend {
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted2);
}

.dashboardBillingChart__legendItem--facturado::before,
.dashboardBillingChart__legendItem--cobrado::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
}

.dashboardBillingChart__legendItem--facturado::before {
  background: var(--accent);
}

.dashboardBillingChart__legendItem--cobrado::before {
  background: var(--ok);
}

.dashboardBillingChart__bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboardBillingChart__month {
  display: grid;
  grid-template-columns: 72px 1fr 140px;
  gap: 14px;
  align-items: center;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .dashboardBillingChart__month {
    grid-template-columns: 56px 1fr 1fr;
    gap: 8px;
    font-size: 0.8rem;
  }
}

.dashboardBillingChart__label {
  font-weight: 600;
  color: var(--text);
}

.dashboardBillingChart__row {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 24px;
}

.dashboardBillingChart__barWrap {
  flex: 1;
  min-width: 0;
  height: 20px;
  border-radius: 8px;
  background: var(--panel2);
  overflow: hidden;
}

.dashboardBillingChart__bar {
  display: block;
  height: 100%;
  border-radius: 8px;
  min-width: 4px;
  transition: width 0.25s ease;
}

.dashboardBillingChart__bar--facturado {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.dashboardBillingChart__bar--cobrado {
  background: var(--ok);
}

.dashboardBillingChart__values {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Top clients by active tasks */
.dashboardHealth__topClientsList {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
}

.dashboardHealth__topClientsItem {
  border-bottom: 1px solid var(--line);
}

.dashboardHealth__topClientsItem:last-child {
  border-bottom: none;
}

.dashboardHealth__topClientsLink {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.12s ease;
}

.dashboardHealth__topClientsLink:hover {
  background: var(--accent-soft);
}

.dashboardHealth__topClientsRank {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--panel2);
  color: var(--muted2);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboardHealth__topClientsName {
  flex: 1;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboardHealth__topClientsCount {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

/* Tareas de hoy — card siempre visible */
.dashboardToday {
  margin-bottom: 28px;
}

.dashboardToday__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dashboardToday__title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin: 0;
}

.dashboardToday__card {
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
}

.dashboardToday__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dashboardToday__taskRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s ease;
}

.dashboardToday__taskRow:hover {
  background: var(--accent-soft);
}

.dashboardToday__taskTitle {
  font-weight: 600;
  font-size: 0.9rem;
  flex: 1 1 100%;
}

.dashboardToday__taskMeta {
  font-size: 0.8rem;
  color: var(--muted);
}

.dashboardToday__taskTime {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-left: auto;
}

.dashboardToday__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  text-align: center;
}

.dashboardToday__emptyIcon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ok);
  opacity: 0.35;
  margin-bottom: 14px;
}

.dashboardToday__emptyText {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* KPI strip: metrics with flow and accent */
.dashboardPanel__kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.dashboardPanel__kpi {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.dashboardPanel__kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(25, 18, 9, 0.12);
  border-color: var(--accent-border);
}

.dashboardPanel__kpi--lead {
  border-left: 4px solid var(--accent);
  background: var(--panel);
}

.dashboardPanel__kpi--lead:hover {
  border-left-color: var(--accent2);
}

.dashboardPanel__kpiLabel {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted2);
}

.dashboardPanel__kpiValue {
  font-family: var(--font-serif, "Fraunces", serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.dashboardPanel__kpiValue--accent {
  color: var(--accent);
  font-size: 1.35rem;
}

.dashboardPanel__kpiValue--muted {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.dashboardPanel__kpiMeta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

.dashboardPanel__kpiLink {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 8px;
  text-decoration: none;
  transition: color 0.15s;
}

.dashboardPanel__kpiLink:hover {
  color: var(--text);
}

/* Block titles: section hierarchy */
.dashboardPanel__blockTitle {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted2);
  margin: 0 0 4px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-border-strong);
  display: inline-block;
}

.dashboardPanel__blockSubtitle {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 14px 0;
}

.dashboardPanel__block {
  margin-top: 28px;
}

/* Alerts: visible and colored */
.dashboardPanel__alerts {
  margin-bottom: 24px;
}

.dashboardPanel__alerts .dashboardPanel__blockTitle {
  margin-bottom: 12px;
}

.dashboardPanel__alertsList {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dashboardPanel__alert {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid transparent;
}

.dashboardPanel__alert:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
}

.dashboardPanel__alert--overdue {
  background: rgba(239, 68, 68, 0.08);
  border-left: 4px solid var(--danger);
  color: var(--text);
}

.dashboardPanel__alert--overdue:hover {
  background: rgba(239, 68, 68, 0.12);
}

.dashboardPanel__alert--rejected {
  background: rgba(217, 119, 6, 0.08);
  border-left: 4px solid #d97706;
  color: var(--text);
}

.dashboardPanel__alert--rejected:hover {
  background: rgba(217, 119, 6, 0.12);
}

.dashboardPanel__alert--submitted {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  color: var(--text);
}

.dashboardPanel__alert--submitted:hover {
  background: var(--accent-soft-hover);
}

.dashboardPanel__alert--draft_invoices {
  background: rgba(221, 202, 184, 0.4);
  border-left: 4px solid var(--earth-taupe);
  color: var(--text);
}

.dashboardPanel__alert--draft_invoices:hover {
  background: rgba(221, 202, 184, 0.55);
}

.dashboardPanel__alert--reports_no_emails {
  background: rgba(234, 179, 8, 0.08);
  border-left: 4px solid #eab308;
  color: var(--text);
}

.dashboardPanel__alert--reports_no_emails:hover {
  background: rgba(234, 179, 8, 0.12);
}

.dashboardPanel__alertText {
  font-weight: 600;
}

.dashboardPanel__alertAction {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

/* Alerts as visual KPI pills (number + short label) */
.dashboardPanel__alertsGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dashboardPanel__alertCard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  min-width: 100px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.dashboardPanel__alertCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(25, 18, 9, 0.1);
}

.dashboardPanel__alertCardValue {
  font-family: var(--font-serif, "Fraunces", serif);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
}

.dashboardPanel__alertCardLabel {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted2);
}

.dashboardPanel__alertCardAction {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 6px;
}

.dashboardPanel__alertCard--overdue {
  border-left: 4px solid var(--danger);
  background: rgba(239, 68, 68, 0.06);
}
.dashboardPanel__alertCard--overdue .dashboardPanel__alertCardValue { color: var(--danger); }

.dashboardPanel__alertCard--rejected {
  border-left: 4px solid #d97706;
  background: rgba(217, 119, 6, 0.06);
}
.dashboardPanel__alertCard--rejected .dashboardPanel__alertCardValue { color: var(--accent-dark); }

.dashboardPanel__alertCard--submitted {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
}
.dashboardPanel__alertCard--submitted .dashboardPanel__alertCardValue { color: var(--accent-dark); }

.dashboardPanel__alertCard--draft_invoices {
  border-left: 4px solid var(--earth-taupe);
  background: rgba(221, 202, 184, 0.35);
}
.dashboardPanel__alertCard--draft_invoices .dashboardPanel__alertCardValue { color: var(--accent-dark); }

.dashboardPanel__alertCard--reports_no_emails {
  border-left: 4px solid #eab308;
  background: rgba(234, 179, 8, 0.06);
}
.dashboardPanel__alertCard--reports_no_emails .dashboardPanel__alertCardValue { color: #ca9a04; }

/* Reports block: KPI + compact list */
.dashboardPanel__block--reports {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
}

.dashboardPanel__reportsKpi {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.dashboardPanel__reportsKpiMain,
.dashboardPanel__reportsKpiSecondary {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dashboardPanel__reportsKpiValue {
  font-family: var(--font-serif, "Fraunces", serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.dashboardPanel__reportsKpiValue--small {
  font-size: 1.25rem;
  color: var(--accent);
}

.dashboardPanel__reportsKpiLabel {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted2);
}

.dashboardPanel__reportsKpiLabel--small {
  font-size: 0.65rem;
}

.dashboardPanel__reportsBar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dashboardPanel__reportsBarItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.875rem;
}

.dashboardPanel__reportsBarDot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.9;
}

.dashboardPanel__reportsBarName {
  flex: 1;
  font-weight: 600;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboardPanel__reportsBarDate {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.dashboardPanel__reportsEmpty {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--muted);
  padding: 8px 0;
}

.dashboardPanel__reportsEmptyIcon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 2px dashed var(--line);
  border-radius: 50%;
  opacity: 0.7;
}

/* Secondary: billing + quick links */
.dashboardPanel__secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--panel2);
  border: 1px solid var(--line);
}

.dashboardPanel__quickCard {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboardPanel__quickCardLabel {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.dashboardPanel__quickLink {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.dashboardPanel__quickLink:hover {
  color: var(--text);
}

/* List: top performers & workload */
.dashboardPanel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
  overflow: hidden;
}

.dashboardPanel__listItem {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 0.12s ease;
}

.dashboardPanel__listItem:last-child {
  border-bottom: none;
}

.dashboardPanel__listItem:hover {
  background: var(--accent-soft);
}

.dashboardPanel__listRank {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--panel2);
  color: var(--muted2);
}

.dashboardPanel__listRank--top {
  background: var(--accent-gradient);
  color: var(--accent-on);
}

.dashboardPanel__listBody {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dashboardPanel__listName {
  font-weight: 600;
  color: var(--text);
}

.dashboardPanel__listMeta {
  font-size: 0.75rem;
  color: var(--muted);
}

.dashboardPanel__listValue {
  font-family: var(--font-serif, "Fraunces", serif);
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
}

.dashboardPanel__empty {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 12px 0 0 0;
  padding: 18px;
  background: var(--panel2);
  border-radius: 12px;
  border: 1px dashed var(--line);
}

/* Effectiveness chart: stacked horizontal bars */
.dashboardPanel__effectiveness {
  margin-top: 16px;
}

.dashboardPanel__effectivenessLegend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-bottom: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted2);
}

.dashboardPanel__effectivenessLegendItem--onTime::before,
.dashboardPanel__effectivenessLegendItem--completed::before,
.dashboardPanel__effectivenessLegendItem--assigned::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
}

.dashboardPanel__effectivenessLegendItem--onTime::before {
  background: var(--ok);
}

.dashboardPanel__effectivenessLegendItem--completed::before {
  background: var(--accent);
}

.dashboardPanel__effectivenessLegendItem--assigned::before {
  background: var(--line);
}

.dashboardPanel__effectivenessRow {
  display: grid;
  grid-template-columns: 90px 1fr 72px;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.dashboardPanel__effectivenessRow:last-child {
  margin-bottom: 0;
}

.dashboardPanel__effectivenessName {
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboardPanel__effectivenessBar {
  display: flex;
  flex-direction: row;
  height: 20px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel2);
  min-width: 0;
}

.dashboardPanel__effectivenessSegment {
  min-width: 2px;
  transition: min-width 0.2s ease;
}

.dashboardPanel__effectivenessSegment--onTime {
  background: var(--ok);
}

.dashboardPanel__effectivenessSegment--completed {
  background: var(--accent);
}

.dashboardPanel__effectivenessSegment--assigned {
  background: var(--line);
}

.dashboardPanel__effectivenessNums {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted2);
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .dashboardPanel__effectivenessRow {
    grid-template-columns: 70px 1fr 56px;
    gap: 8px;
    font-size: 0.8rem;
  }
  .dashboardPanel__effectivenessNums {
    font-size: 0.7rem;
  }
}

/* ===== DASHBOARD CALENDAR ===== */
.dashboardCalendar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

/* Display switcher: Calendario | Lista */
.displaySwitcher {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
  width: fit-content;
}

.displaySwitcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 120ms ease, background 120ms ease;
}

.displaySwitcher__btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.5);
}

.displaySwitcher__btn.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.displaySwitcher--header {
  margin-bottom: 0;
  margin-left: 2px;
}

.displaySwitcher--header .displaySwitcher__btn {
  padding: 6px 12px;
  font-size: 13px;
}

.dashboardCalendar__main {
  min-width: 0;
}

.calendarHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding: 0 2px;
}

.calendarHeader__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.calendarHeader__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.calendarHeader__nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calendarHeader__btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 120ms ease;
}

.calendarHeader__btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.calendarHeader__today {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  transition: background 160ms ease, border-color 160ms ease;
}

.calendarHeader__today:hover {
  background: var(--accent-soft-hover);
  border-color: var(--accent-border-strong);
}

.calendarViewSwitcher {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04);
}

.calendarViewSwitcher__pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  pointer-events: none;
  transition: left 0.28s cubic-bezier(0.32, 0.72, 0, 1), width 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

.calendarViewSwitcher__btn {
  position: relative;
  z-index: 1;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: color 120ms ease;
}

.calendarViewSwitcher__btn:hover {
  color: var(--text);
}

.calendarViewSwitcher__btn:hover::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  z-index: -1;
}

.calendarViewSwitcher__btn.is-active {
  color: var(--text);
}

.calendarHeader__title {
  font-family: "Fraunces", serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* Month grid wrapper: no scroll, grid fits so all 7 columns visible */
.calendarGridScroll {
  width: 100%;
}

.calendarGrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(25, 18, 9, 0.06);
}

.calendarGrid__dayHead {
  padding: 6px 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted2);
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.calendarDay[data-calendar-date],
.calendarWeekDay[data-calendar-date],
.calendarDayView[data-calendar-date] {
  cursor: pointer;
  transition: background-color 150ms ease;
}

.calendarDay[data-calendar-date]:hover,
.calendarWeekDay[data-calendar-date]:hover,
.calendarDayView[data-calendar-date]:hover {
  background-color: var(--accent-soft);
}

.calendarDay {
  min-height: 72px;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calendarDay--otherMonth {
  background: rgba(250, 249, 247, 0.9);
}

.calendarDay--otherMonth .calendarDay__num {
  color: var(--muted2);
}

.calendarDay--today {
  background: var(--accent-soft-gradient);
  box-shadow: inset 0 0 0 1px var(--accent-border);
}

.calendarDay__num {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
  line-height: 1.2;
}

.calendarDay__tasks {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-height: 0;
}

.calendarDay__more {
  flex-shrink: 0;
  margin-top: auto;
}

.calendarDay__moreLink {
  font-size: 10px;
  color: var(--accent);
  font-weight: 600;
}

.calendarDay__moreLink:hover {
  text-decoration: underline;
}

/* Compact task pills in calendar - month view (Apple Calendar style) */
.calendarGrid .calendarTask {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  min-height: 0;
  border-left-width: 3px;
  font-size: 10px;
  line-height: 1.3;
}

.calendarGrid .calendarTask:hover {
  transform: none;
  box-shadow: 0 1px 3px rgba(25, 18, 9, 0.08);
}

.calendarGrid .calendarTask__title {
  flex: 1;
  min-width: 0;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendarGrid .calendarTask__client {
  display: none;
}

/* Task pills in week/day views keep larger style */
.calendarWeek .calendarTask,
.calendarDayView .calendarTask {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  border-left-width: 3px;
}

.calendarWeek .calendarTask:hover,
.calendarDayView .calendarTask:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(25, 18, 9, 0.08);
}

.calendarTask {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 3px solid rgba(0, 0, 0, 0.08);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.calendarTask:hover {
  border-color: rgba(0, 0, 0, 0.1);
}

.calendarTask--overdue {
  border-left-color: var(--danger);
  background: rgba(239, 68, 68, 0.06);
}

.calendarTask--today {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

.calendarTask__title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendarTask__client {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Week view */
.calendarWeek {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  min-height: 400px;
}

.calendarWeekDay {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  overflow: hidden;
}

.calendarWeekDay--today {
  background: var(--accent-soft-gradient);
  border-color: var(--accent-border);
}

.calendarWeekDay__header {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.calendarWeekDay__name {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calendarWeekDay__num {
  font-family: "Fraunces", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.calendarWeekDay--today .calendarWeekDay__num {
  color: var(--accent);
}

.calendarWeekDay__tasks {
  padding: 8px;
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calendarWeekDay__tasks .taskItem {
  margin-bottom: 0;
}

/* Compact task items for week view - vertical layout, better space use */
.calendarWeekDay__tasks .taskItem--compact {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 8px 10px;
}

.calendarWeekDay__tasks .taskItem--compact .taskItem__title {
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
  margin-bottom: 0;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.calendarWeekDay__tasks .taskItem--compact .taskItem__meta {
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 11px;
}

.calendarWeekDay__tasks .taskItem--compact .taskItem__client {
  max-width: none;
}

.calendarWeekDay__tasks .taskItem--compact .taskItem__time {
  flex-shrink: 0;
  opacity: 0.9;
}

.calendarWeekDay__tasks .taskItem--compact .taskItem__status {
  align-self: flex-start;
  padding: 2px 6px;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.calendarWeekDay__tasks .taskItem--compact .taskItem__status--short {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendarWeekDay__empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* Day view */
.calendarDayView {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  overflow: hidden;
}

.calendarDayView__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  gap: 8px;
}

.calendarDayView__tasks {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calendarDayView__empty {
  padding: 48px 24px;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}

.dashboardCalendar__sidebar {
  position: sticky;
  top: 24px;
}

@media (max-width: 1200px) {
  .calendarWeek {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .calendarWeek {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .dashboardCalendar {
    grid-template-columns: 1fr;
    margin-left: -22px;
    margin-right: -22px;
  }

  .dashboardCalendar .calendarHeader {
    padding-left: 24px;
    padding-right: 24px;
  }

  .dashboardCalendar__sidebar {
    position: static;
    padding-right: 24px;
  }
}

@media (max-width: 768px) {
  .dashboardCalendar { margin-left: -14px; margin-right: -14px; }
  .dashboardCalendar .calendarHeader { padding-left: 16px; padding-right: 16px; }
  .dashboardCalendar__sidebar { padding-right: 16px; }
}

@media (max-width: 480px) {
  .dashboardCalendar { margin-left: -10px; margin-right: -10px; }
  .dashboardCalendar .calendarHeader { padding-left: 12px; padding-right: 12px; }
  .dashboardCalendar__sidebar { padding-right: 12px; }
}

@media (max-width: 640px) {
  .calendarGrid .calendarDay {
    min-height: 64px;
    padding: 3px 4px;
  }

  .calendarGrid .calendarTask__title {
    font-size: 9px;
  }
}

/* Modal overlay & task form panel */
.modalOverlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.35);
}

.modalOverlay[hidden] {
  display: none !important;
}

.modalOverlay__frame {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
}

.modalPanel__content {
  background: var(--panel);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modalPanel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.modalPanel__title {
  font-family: "Fraunces", serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.modalPanel__close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.modalPanel__close:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
}

.modalPanel__body {
  padding: 20px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.modalPanel__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  flex-shrink: 0;
}

.modalPanel__body .card {
  box-shadow: none;
  border: none;
  padding: 0;
}

/* Task Item for Dashboard */
.taskItem {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.taskItem:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(25, 18, 9, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
}

.taskItem--overdue {
  border-left: 3px solid var(--danger);
}

.taskItem--today {
  border-left: 3px solid var(--accent);
}

.taskItem__checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 150ms ease;
}

.taskItem__checkbox:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.taskItem__main {
  flex: 1;
  min-width: 0;
}

.taskItem__title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.taskItem__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.taskItem__client {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.taskItem__deadline {
  display: flex;
  align-items: center;
  gap: 4px;
}

.taskItem__deadline--overdue {
  color: var(--danger);
}

.taskItem__status {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  flex-shrink: 0;
}

.taskItem__action {
  flex-shrink: 0;
}

/* ===== TASK SHOW - Iterations System ===== */
.taskShowLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  max-width: 100%;
}

.taskShowMain {
  display: grid;
  gap: 20px;
  min-width: 0;
  max-width: 100%;
}

.taskShowSidebar {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

/* Workflow inline card */
.taskWorkflow {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(25, 18, 9, 0.05);
  min-width: 0;
}

.taskWorkflow__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.taskWorkflow__status {
  flex-shrink: 0;
}

.taskWorkflow__actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.taskWorkflow__actions .workflowWaiting {
  padding: 10px 12px;
}

/* ===== Activity Feed ===== */
.activityFeed {
  display: grid;
  gap: 16px;
}

.activityItem {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
}

.activityItem__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  display: grid;
  place-items: center;
  color: var(--muted);
  flex-shrink: 0;
}

.activityItem--comment .activityItem__avatar {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.activityItem--submission .activityItem__avatar {
  background: var(--accent-soft);
  color: var(--accent);
}

.activityItem--approval .activityItem__avatar {
  background: rgba(34, 197, 94, 0.15);
  color: var(--ok);
}

.activityItem--rejection .activityItem__avatar {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}

.activityItem__content {
  min-width: 0;
}

.activityItem__header {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.activityItem__header strong {
  font-size: 14px;
}

.activityItem__header .muted {
  font-size: 12px;
}

.activityItem__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.activityItem__text p {
  margin: 0;
}

.activityItem__text p + p {
  margin-top: 8px;
}

.activityItem__statusChange {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

.activityItem__note {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04);
  font-size: 13px;
  line-height: 1.5;
}

.activityItem__note p {
  margin: 0;
}

.activityItem__note--rejection {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.18);
}

.activityItem__files {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.activityItem__file {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.activityItem__file svg {
  flex-shrink: 0;
  color: var(--muted);
}

.activityItem__fileName {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.activityItem__fileName:hover {
  text-decoration: underline;
}

/* ===== Submission Highlight (for reviewers) ===== */
.submissionHighlight {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--accent-soft-gradient);
  border: 2px solid var(--accent-border);
  margin-bottom: 20px;
}

.submissionHighlight__header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.submissionHighlight__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-gradient);
  display: grid;
  place-items: center;
  color: var(--accent-on);
  flex-shrink: 0;
}

.submissionHighlight__title {
  font-family: "Fraunces", serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.submissionHighlight__meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.submissionHighlight__message {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.60);
  border-radius: 10px;
  margin-bottom: 12px;
}

.submissionHighlight__message p {
  margin: 0;
}

.submissionHighlight__files {
  display: grid;
  gap: 8px;
}

.submissionHighlight__filesLabel {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.submissionHighlight__file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.70);
  border-radius: 10px;
  font-size: 14px;
}

.submissionHighlight__file svg {
  flex-shrink: 0;
  color: var(--accent);
}

.submissionHighlight__fileName {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.submissionHighlight__fileName:hover {
  text-decoration: underline;
}

.submissionHighlight__empty {
  font-size: 14px;
  padding: 8px 0;
}

/* Task Header */
.taskHeader {
  padding: 20px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(25, 18, 9, 0.05);
}

.taskHeader__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.taskHeader__title {
  font-family: "Fraunces", serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}

.taskHeader__badges {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.taskHeader__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
}

.taskHeader__badge--muted {
  background: rgba(0, 0, 0, 0.06);
  color: var(--muted);
}

.taskHeader__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.taskHeader__metaItem {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Iterations Section */
.iterationsSection {
  display: grid;
  gap: 16px;
}

.iterationsSection__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.iterationsSection__title {
  font-family: "Fraunces", serif;
  font-size: 18px;
  font-weight: 600;
}

.iterationsSection__count {
  font-size: 13px;
  color: var(--muted);
}

.iteration {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: box-shadow 200ms ease;
}

.iteration:hover {
  box-shadow: 0 4px 16px rgba(25, 18, 9, 0.06);
}

.iteration--current {
  border-color: var(--accent-border-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.90), var(--accent-soft));
  box-shadow: 0 4px 20px var(--accent-soft);
}

.iteration__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.iteration__badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.iteration__number {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.06);
  color: var(--muted);
}

.iteration--current .iteration__number {
  background: var(--accent-gradient);
  color: var(--accent-on);
}

.iteration__status {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.iteration__status--submitted {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.iteration__status--approved {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

.iteration__status--rejected {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}

.iteration__date {
  font-size: 12px;
  color: var(--muted);
}

.iteration--addComment {
  background: rgba(255, 255, 255, 0.60);
}

.iteration--pending-review {
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(34, 197, 94, 0.04));
}

.iteration__files {
  margin-bottom: 14px;
}

.iteration__filesLabel {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.iteration__filesList {
  display: grid;
  gap: 8px;
}

.iteration__file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.iteration__fileIcon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-dark);
  flex-shrink: 0;
}

.iteration__fileInfo {
  flex: 1;
  min-width: 0;
}

.iteration__fileName {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iteration__fileSize {
  font-size: 11px;
  color: var(--muted);
}

.iteration__feedback {
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
}

.iteration__feedbackHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.iteration__feedbackAuthor {
  font-weight: 600;
  font-size: 13px;
}

.iteration__feedbackDate {
  font-size: 11px;
  color: var(--muted);
}

.iteration__feedbackText {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  word-break: break-word;
}

.iteration__feedback--rejection {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 10px;
  margin-top: 12px;
}

.iteration__feedback + .iteration__feedback {
  margin-top: 10px;
}

/* Review Actions in Iteration */
.iteration__reviewActions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid rgba(34, 197, 94, 0.20);
}

.iteration__reviewTitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #15803d;
  margin-bottom: 14px;
}

.iteration__reviewButtons {
  margin-bottom: 14px;
}

.iteration__approveBtn {
  width: 100%;
  justify-content: center;
}

.iteration__rejectForm {
  display: grid;
  gap: 10px;
}

.iteration__rejectInput textarea {
  min-height: 60px;
  font-size: 14px;
}

.iteration__rejectForm .btn--danger {
  width: 100%;
}

/* Sidebar Cards */
.sidebarCard {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(25, 18, 9, 0.05);
}

.sidebarCard__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}

.sidebarCard__title {
  font-family: "Fraunces", serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
}

/* Comment Input (for iterations) */
.commentInput {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.commentInput__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

.commentInput textarea {
  min-height: 80px;
  margin-bottom: 10px;
}

.commentInput__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* ===== TASK COMPOSER - Unified action area ===== */
.taskComposer {
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.90), var(--accent-soft));
  border: 2px solid var(--accent-border);
  box-shadow: 0 4px 20px var(--accent-soft);
}

.taskComposer__header {
  margin-bottom: 14px;
}

.taskComposer__hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.taskComposer__form {
  display: grid;
  gap: 12px;
}

.taskComposer__textarea {
  min-height: 100px;
  resize: vertical;
}

.taskComposer__attachments {
  display: flex;
  align-items: center;
  gap: 10px;
}

.taskComposer__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.taskComposer__waiting {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--muted);
  font-size: 14px;
}

/* Header actions */
.taskHeader__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.taskHeader__actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.taskHeader__saveAsTemplate {
  position: relative;
}

.taskHeader__saveAsTemplate summary {
  list-style: none;
  cursor: pointer;
}

.taskHeader__saveAsTemplate summary::-webkit-details-marker {
  display: none;
}

.taskHeader__saveAsTemplateForm {
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--panel2);
  border: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.taskHeader__saveAsTemplateForm .input {
  flex: 1;
  min-width: 140px;
}

/* Template cards with hover popover */
.templateCardList {
  display: grid;
  gap: 10px;
}

.templateCard {
  position: relative;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.5);
}

.templateCard__body {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.templateCard__mainLink {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.templateCard__mainLink:hover {
  color: inherit;
}

.templateCard__main {
  min-width: 0;
}

.templateCard__title {
  font-weight: 700;
}

.templateCard__meta {
  font-size: 13px;
}

.templateCard__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.templateCard__popover {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  z-index: 50;
  min-width: 260px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.templateCard--withPopover:hover .templateCard__popover {
  opacity: 1;
  visibility: visible;
}

.templateCard__popover::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 20px;
  border: 8px solid transparent;
  border-top-color: var(--panel);
}

.templateCard__popoverTitle {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.35;
}

.templateCard__popoverDescription {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.templateCard__popoverMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12px;
  color: var(--muted2);
  margin-bottom: 8px;
}

.templateCard__popoverRow {
  font-size: 13px;
  margin-top: 4px;
}

.templateCard__popoverLabel {
  color: var(--muted2);
  margin-right: 6px;
}

/* Approved alert */
.workflowAlert--approved {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #15803d;
}

@media (max-width: 768px) {
  .taskComposer__actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .taskComposer__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Task Show Responsive */
@media (max-width: 1024px) {
  .taskShowLayout {
    grid-template-columns: 1fr;
  }
  
  .taskShowSidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .taskShowSidebar {
    grid-template-columns: 1fr;
  }
  
  .taskHeader__top {
    flex-direction: column;
    gap: 12px;
  }
  
  .taskHeader__badges {
    align-self: flex-start;
  }
  
  .iteration__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .iteration {
    padding: 16px;
  }
  
  .iteration__feedback {
    padding: 12px;
  }
  
  .taskHeader {
    padding: 16px;
  }
  
  .taskHeader__title {
    font-size: 20px;
  }
  
  .taskHeader__meta {
    gap: 10px;
    font-size: 13px;
  }
  
  .sidebarCard {
    padding: 14px;
  }
  
  .commentInput__actions {
    flex-direction: column;
    align-items: stretch;
  }
}
