/* Self-hosted (static/fonts/) -- previously loaded from
   fonts.googleapis.com/fonts.gstatic.com via @import, which the app's CSP
   (see backend/app.py's Talisman content_security_policy) no longer
   allows. Each file below is the same variable-font woff2 Google Fonts
   itself serves for these exact weight ranges (confirmed by requesting
   the family at these weights and finding every requested weight pointing
   at one identical file) -- one file per family covering its whole
   requested weight range, not a separate static file per weight, since
   that's both what Google already serves and strictly less to download.
   See docs/fonts-licenses.md for license/attribution terms. */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('fonts/SpaceGrotesk-Variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/Inter-Variable.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('fonts/JetBrainsMono-Variable.woff2') format('woff2');
}

:root{
  --canvas: #F6F4FF;
  --panel: #FFFFFF;
  --ink: #14133B;
  --ink-soft: #55527A;
  --indigo: #4B3AFF;
  --indigo-dim: #EDE9FF;
  --amber: #1FAA6E;
  --amber-dim: #E1F7EC;
  --coral: #FF5A5F;
  --coral-dim: #FFE4E4;
  --mint: #00C2A8;
  --line: #E7E3F8;
}

*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; }
body{
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.app{
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "topbar topbar"
    "sidebar main";
  min-height: 100vh;
}

/* ---------- TOP BAR ---------- */
.topbar{
  grid-area: topbar;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 18px 32px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-family:'Space Grotesk', sans-serif;
  font-weight:700;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.brand .mark{
  width: 36px; height: 36px;
  border-radius: 10.8px;
  background: #FFFFFF url('logo-icon.png') center/contain no-repeat;
  box-shadow: inset 0 0 0 1px var(--line);
  position: relative;
  flex-shrink: 0;
}
/* a tenant's uploaded logo image sits on this same element as an inline
   background-image (see static/auth.js's applyBranding()), which simply
   overrides LeadSmith's own default background set above. */
/* a real uploaded logo (jpeg/png/etc) reads better bigger than LeadSmith's own
   small default icon -- scoped to just the has-custom-logo case
   so orgs without a logo keep the smaller default square. */
.brand .mark.has-custom-logo{
  width: 67.5px; height: 67.5px;
  border-radius: 20.25px;
}
/* the "LeadSmith / ASSISTANT" wordmark+tagline cropped straight out of the
   real logo artwork, rather than approximated with a web font -- used only
   on pages where this text is permanently "LeadSmith" (auth, legal,
   marketing). Pages that load static/auth.js replace this element's
   contents at runtime with the signed-in tenant's own business name (see
   applyBranding()), so this image never appears there and is left as plain
   text on purpose. */
.brand .brand-wordmark{ display: block; height: 34px; width: auto; }
.brand small{
  font-family:'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-soft);
  margin-left: 4px;
  letter-spacing: 0;
}
.topbar-right{ display:flex; align-items:center; gap:18px; }
.search{
  display:flex; align-items:center; gap:8px;
  background: var(--canvas);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 13px;
  width: 220px;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.search:focus-within{
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(75,58,255,0.12);
}
.search input{
  border: none; outline: none; background: transparent;
  font-size: 13px; color: var(--ink); width: 100%;
  font-family: inherit;
}
.avatar{
  width: 36px; height:36px; border-radius: 50%;
  background: var(--indigo-dim);
  color: var(--indigo);
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:13px;
  font-family:'Space Grotesk', sans-serif;
  border: 2px solid var(--panel);
  box-shadow: 0 0 0 2px var(--line);
}
.user-menu{
  position: relative;
}
.user-menu .avatar{
  cursor: pointer;
  padding: 0;
  border: 2px solid var(--panel);
}
.user-menu-dropdown{
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 10px;
  min-width: 220px;
  box-shadow: 0 18px 50px rgba(20,19,59,0.12);
  overflow: hidden;
}
.user-menu-dropdown.open{ display: block; }
.user-menu-info{
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.user-menu-info .name{ font-weight: 700; font-size: 14px; }
.user-menu-info .email{ font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.user-menu-item{
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 12px 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  box-sizing: border-box;
}
.user-menu-item:hover{ background: rgba(75,58,255,0.08); }

/* ---------- SIDEBAR ---------- */
.sidebar{
  grid-area: sidebar;
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 28px 16px;
  display:flex;
  flex-direction:column;
  gap: 4px;
}
.nav-link{
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  text-decoration:none;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  transition: background .15s ease, transform .15s ease;
  cursor:pointer;
}
.nav-link:hover{ background: var(--canvas); transform: translateX(2px); }
.nav-icon{
  width: 36px; height:36px;
  border-radius: 10px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.nav-icon svg{ width:19px; height:19px; }
.nav-link.crm .nav-icon{ background: var(--indigo-dim); color: var(--indigo); }
.nav-link.funnel .nav-icon{ background: #E4F9F6; color: var(--mint); }
.nav-link.activity .nav-icon{ background: #FFF3DA; color: #B8790C; }
.nav-link.manage-users .nav-icon{ background: #E0F2FE; color: #0284C7; }
.nav-link.settings .nav-icon{ background: #EDE9FE; color: #7C3AED; }
.nav-link.audit-log .nav-icon{ background: #FCE7F3; color: #BE185D; }

.sidebar-divider{
  height: 1px;
  background: var(--line);
  margin: 14px 6px;
}

.nav-link.add-new{
  background: var(--indigo-dim);
  color: var(--ink);
  margin-top: 4px;
  font-family:'Space Grotesk', sans-serif;
}
/* icon box stays a solid fill (not a tint) with a white glyph -- white-on-solid
   stays readable no matter what a tenant's branded --indigo ends up being,
   rather than depending on --indigo/--indigo-dim staying a fixed hue pair */
.nav-link.add-new .nav-icon{ background: var(--indigo); color: #fff; }
.nav-link.add-new:hover{ background: #E0D9FF; transform:none; }

/* ---------- MAIN ---------- */
.main{
  grid-area: main;
  padding: 40px 44px;
}
.main-header{ margin-bottom: 32px; }
.eyebrow{
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 6px;
}
.main-header h1{
  font-family:'Space Grotesk', sans-serif;
  font-size: 28px;
  margin: 0;
  letter-spacing: -0.01em;
}
.main-header h1 span{ color: var(--indigo); }

.stat-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
}

.stat-card{
  position: relative;
  border-radius: 22px;
  padding: 30px 30px 26px;
  overflow:hidden;
  cursor:pointer;
  border: none;
  text-align:left;
  transition: transform .18s ease, box-shadow .18s ease;
  font-family: inherit;
}
.stat-card:hover{ transform: translateY(-3px); }

.stat-card.today{
  background: linear-gradient(160deg, var(--amber-dim) 0%, #FFFFFF 90%);
  border: 3px solid #B7EAD1;
  box-shadow: 0 10px 30px -12px rgba(31,170,110,.35);
}
.stat-card.overdue{
  background: linear-gradient(160deg, var(--coral-dim) 0%, #FFFFFF 90%);
  border: 3px solid #FFC7C8;
  box-shadow: 0 10px 30px -12px rgba(255,90,95,.35);
}
.stat-card.today:hover{ box-shadow: 0 16px 36px -12px rgba(31,170,110,.5); }
.stat-card.overdue:hover{ box-shadow: 0 16px 36px -12px rgba(255,90,95,.5); }

.signal-dot{
  width: 11px; height: 11px;
  border-radius: 50%;
  display:inline-block;
  margin-right: 8px;
  position:relative;
  top: -1px;
}
.today .signal-dot{ background: #1FAA6E; }
.overdue .signal-dot{ background: var(--coral); }
.overdue .signal-dot::after{
  content:"";
  position:absolute;
  inset:-5px;
  border-radius:50%;
  border: 2px solid var(--coral);
  animation: pulse-ring 1.8s ease-out infinite;
}
@keyframes pulse-ring{
  0%{ transform: scale(0.6); opacity: .9; }
  100%{ transform: scale(1.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce){
  .overdue .signal-dot::after{ animation: none; }
}

.stat-label{
  display:flex; align-items:center;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.stat-number{
  font-family:'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
}
/* JetBrains Mono draws 0 with a dot through the middle (by design, to tell
   it apart from O in code) -- reads as a typo/glitch at 56px in a stat
   tile where it's the only character. Inter's 0 is a plain wide oval with
   no dot, so swap fonts just for the zero state instead of fighting the
   monospace glyph. */
.stat-number.is-zero{
  font-family: 'Inter', sans-serif;
  font-variant-numeric: tabular-nums;
}
.today .stat-number{ color: #17875A; }
.overdue .stat-number{ color: #D4373C; }

.stat-sub{
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 10px;
  font-weight: 500;
}
.stat-cta{
  margin-top: 20px;
  font-size: 13.5px;
  font-weight: 700;
  display:flex; align-items:center; gap:6px;
}
.today .stat-cta{ color: #17875A; }
.overdue .stat-cta{ color: #D4373C; }
.stat-cta svg{ width:14px; height:14px; transition: transform .15s ease; }
.stat-card:hover .stat-cta svg{ transform: translateX(3px); }

/* ---------- Customers page: modern search + buttons ---------- */
.search-box{
  display:flex; align-items:center; gap:8px;
  background: #FFFFFF;
  border: 1px solid rgba(20,19,59,0.06);
  padding: 8px 10px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(20,19,59,0.05);
  width: 280px;
}
.search-box .search-icon{ font-size:16px; color:var(--ink-soft); padding-left:4px; }
.search-box input{ border:none; outline:none; background:transparent; font-size:14px; padding:6px; color:var(--ink); width:100%; }
.search-box .search-clear{ background:transparent; border:none; color:var(--ink-soft); font-size:14px; cursor:pointer; padding:6px; border-radius:999px; display:none; }
.search-box .search-clear:hover{ background:rgba(20,19,59,0.04); }
.search-box input:not(:placeholder-shown) + .search-clear{ display:inline-flex; }

/* toolbar filter dropdowns (funnel/activity "logged by", activity's "type")
   -- same recipe as manage-users.html's .role-select (itself matching
   .field select further down this file), just without the width:100%
   since these sit inline in a toolbar row rather than a full-width form */
.toolbar-select{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  font-family: inherit;
}

.btn{ font-family: 'Space Grotesk', sans-serif; font-weight:600; font-size:14px; border-radius:12px; border:none; padding:10px 14px; cursor:pointer; display:inline-flex; align-items:center; gap:8px; transition: transform .12s ease, box-shadow .12s ease; }
.btn:active{ transform: translateY(1px); }

.btn-primary{ background: linear-gradient(90deg, var(--indigo), var(--mint)); color:#fff; box-shadow: 0 8px 24px rgba(75,58,255,0.12); }
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 12px 30px rgba(75,58,255,0.18); }

.btn-icon{ display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:6px; background: rgba(255,255,255,0.15); }

.btn-danger{ background:#e64545; color:#fff; border:none; }
.btn-danger:hover{ background:#cc3a3a; }

/* Row layout for a name/customer field with a "Send email" button sitting
   to its right (customers.html, funnel.html) -- the field's own input (or
   combo box) takes the remaining space. */
.field-with-action{ display:flex; align-items:center; gap:8px; }
.field-with-action > input,
.field-with-action > .combo{ flex:1; min-width:0; }

/* "Send email" mailto: link (customers.html, funnel.html) -- combined with
   .btn.btn-ghost for the base button look, this just adds a disabled state
   for when there's no email to send to yet */
.mailto-btn{ flex-shrink:0; white-space:nowrap; text-decoration: none; }
.mailto-btn[aria-disabled="true"]{ pointer-events: none; opacity: 0.4; }

@media (max-width: 720px){
  .search-box{ width: 100%; }
}

/* toolbar spacing */
.toolbar{ display:flex; align-items:center; gap:14px; }

.table-section{ margin-top: 32px; }
.table-section h2{ margin: 0 0 18px; font-size: 18px; }

/* ---------- Modal overlay + drawer ---------- */
.overlay{
  position: fixed;
  inset: 0;
  background: rgba(20,19,59,0.32);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}
.overlay.open{
  display: flex;
}
.modal{
  background: var(--panel);
  border-radius: 24px;
  width: min(680px, 100%);
  max-width: 100%;
  box-shadow: 0 24px 60px rgba(20,19,59,0.16);
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  /* .modal-header/.modal-footer paint flush, flat-cornered backgrounds --
     without this, they square off this radius wherever they're used
     (detail drawer, due list, add activity, add opportunity) even though
     .modal itself is rounded */
  overflow: hidden;
}
.modal.drawer{
  width: min(680px, 100%);
  max-height: 90vh;
}
/* Add/Edit Activity and Add/Edit Opportunity have enough fields that the
   default modal width forces a lot of vertical scrolling -- wider + the
   .field-row pairs below (see activity.html, funnel.html) let most of it
   sit side by side instead, so typical screens need little to no scroll */
#addActivityOverlay .modal{
  width: min(920px, 95vw);
  max-height: 96vh;
}
#addOpportunityOverlay .modal{
  width: min(1100px, 95vw);
  max-height: 96vh;
}
/* Trims the spacing overhead (not the fields themselves) in Add/Edit
   Activity and Add/Edit Opportunity -- both were already close to fitting
   without scrolling, so tightening padding/margins here closes the rest of
   the gap instead of shrinking any field or touch target. */
#addActivityOverlay,
#addOpportunityOverlay{
  padding: 12px;
}
#addActivityOverlay .modal-header,
#addActivityOverlay .modal-footer,
#addOpportunityOverlay .modal-header,
#addOpportunityOverlay .modal-footer{
  padding-top: 10px;
  padding-bottom: 10px;
}
#addActivityOverlay .modal-body,
#addOpportunityOverlay .modal-body{
  padding-top: 10px;
  padding-bottom: 10px;
}
#addActivityOverlay .field,
#addOpportunityOverlay .field{
  margin-bottom: 8px;
}
#addActivityOverlay .field-row,
#addOpportunityOverlay .field-row{
  margin-bottom: 8px;
}
#addActivityOverlay .field label,
#addOpportunityOverlay .field label{
  margin-bottom: 4px;
}
/* the due-today/overdue table has 8 columns (Opportunity, Customer, Value,
   Stage, Heat score, Objections, Next action required, Do this next) --
   the default modal width is too narrow to show them without cramming */
#dueListOverlay .modal{
  width: min(1100px, 95vw);
}
#dueListOverlay .modal-body{
  overflow-x: auto;
}
/* auto table layout otherwise lets the wider "Next action required" /
   "Do this next" columns crowd this one down to where "Not Interested
   (1.0)" -- the longest label/score pairing -- wraps its score onto a
   second line; nowrap is enough on its own to fix that (it makes the
   browser size the column to this content's actual unwrapped width,
   nothing more) -- no min-width needed on top of it */
#dueListOverlay .heat-col{
  white-space: nowrap;
}
#addOverlay .modal,
#addCustomerOverlay .modal,
#activityFormOverlay .modal,
#opportunityFormOverlay .modal{
  padding: 24px;
}
.modal h2{
  margin: 0;
  font-size: 20px;
}
.field{
  margin-bottom: 12px;
}
.field label{
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea{
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
}
.field textarea{ min-height: 100px; resize: vertical; }

/* Dictation mic button on optional Notes/description textareas (activity.html,
   funnel.html) -- only rendered when the browser supports SpeechRecognition,
   see static/dictation.js's attachDictation(). */
.field-dictate{ position: relative; }
.field-dictate textarea{ padding-right: 52px; }
.mic-btn{
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--canvas);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.mic-btn:hover{ background: var(--indigo-dim); color: var(--indigo); }
.mic-btn.listening{ background: var(--coral); color: #fff; }
.mic-btn.listening::after{
  content:"";
  position:absolute;
  inset:-4px;
  border-radius:50%;
  border: 2px solid var(--coral);
  animation: pulse-ring 1.8s ease-out infinite;
}
@media (prefers-reduced-motion: reduce){
  .mic-btn.listening::after{ animation: none; }
}
.mic-error{
  margin-top: 6px;
  font-size: 13px;
  color: var(--coral);
}
.modal-actions{
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}
.close-x{
  border: none;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

/* New modal layout regions */
.modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:18px 24px;
  border-bottom: 1px solid var(--line);
}
.modal-body{
  padding: 18px 24px;
  overflow-y: auto;
}
.record-created-note{
  font-size: 11px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.modal-footer{
  padding: 12px 24px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  position: sticky;
  bottom: 0;
}
.half-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }

/* Pairs two independent .field blocks side by side -- unlike .half-grid
   (one .field wrapping two bare divs), each child here keeps its own
   .field, so a per-tenant native-field on/off toggle (applyNativeFieldSettings
   in custom-fields.js, which hides the nearest .field ancestor) only ever
   hides the one field it targets, never its row-mate. */
.field-row{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; margin-bottom:12px; }
.field-row .field{ margin-bottom:0; }
@media (max-width: 680px){
  .field-row{ grid-template-columns: 1fr; }
}

/* ---------- Funnel board and combo controls ---------- */
.pipeline-board{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  align-items: start;
}
.pipeline-column{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  min-height: 180px;
}
.column-header{
  margin-bottom: 16px;
}
.column-header-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.column-header h3{
  margin: 0;
  font-size: 16px;
}
.column-header span{
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--ink-soft);
}
.column-total{
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}
.opportunity-card{
  background: var(--canvas);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}
.opportunity-card:last-child{ margin-bottom: 0; }
.opportunity-card .opp-name{
  font-weight: 700;
  margin-bottom: 6px;
}
.opportunity-card .opp-company{
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.opportunity-card .opp-line{
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.combo{
  position: relative;
}
.combo input{
  position: relative;
  z-index: 2;
}
.combo-results{
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 8px;
  width: 100%;
  box-shadow: 0 18px 50px rgba(20,19,59,0.12);
  max-height: 260px;
  overflow: auto;
}
.combo-item{
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 12px 14px;
  cursor: pointer;
}
.combo-item:hover{
  background: rgba(75,58,255,0.08);
}
.combo-item.active{
  background: rgba(75,58,255,0.08);
}
.combo-item strong{
  display: block;
  margin-bottom: 4px;
}
.combo-item .secondary{
  font-size: 13px;
  color: var(--ink-soft);
}

/* Shared record tables (linked opportunities/activities, due/overdue lists, etc.) */
.detail-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}
.detail-table th {
  text-align: left;
  padding: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  border-bottom: 2px solid rgba(20,19,59,0.10);
}
.detail-table th.numeric {
  text-align: right;
}
.detail-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(20,19,59,0.10);
  font-size: 14px;
  vertical-align: top;
}
.detail-table tr:last-child td {
  border-bottom: none;
}
.detail-table td.numeric {
  text-align: right;
}
.detail-table tr.clickable-row {
  cursor: pointer;
}
.detail-table tr.clickable-row:hover td {
  background-color: rgba(99,102,241,0.08);
}

.toast{
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20,19,59,0.95);
  color: #fff;
  padding: 14px 20px;
  border-radius: 999px;
  box-shadow: 0 16px 50px rgba(20,19,59,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 880px){
  .pipeline-board{ grid-template-columns: 1fr; }
}
