/* =========================================================
   FIPRON CANARIAS Workspace — Shared Styles
   Inspired by Qimma layout. Edit colors here to re-theme.
   ========================================================= */

:root {
  /* Palette */
  --bg: #f1f0ee;                 /* light off-white page background */
  --bg-soft: #f7f6f3;
  --card: #ffffff;
  --sidebar: #030a36;            /* deep navy (brand) */
  --sidebar-hover: #0b1442;
  --sidebar-active: #141e52;
  --text: #10173d;
  --text-dim: #6b6b6b;
  --text-muted: #9a9a9a;
  --border: #e2e1dc;
  --border-strong: #d1d0ca;

  /* Brand */
  --brand: #d4a73a;              /* gold logo tile */
  --brand-ink: #030a36;

  /* Stage colors */
  --stage-lead: #6b5cd6;         /* purple */
  --stage-quoted: #e29a3a;       /* orange */
  --stage-mou: #2fa776;          /* green */
  --stage-stalled: #d4574a;      /* red */
  --stage-partners: #8a78d6;     /* lavender */

  /* Avatar colors */
  --av-dk: #6b5cd6;
  --av-jt: #2fa776;
  --av-sh: #e29a3a;
  --av-sm: #4a8ad6;
  --av-se: #6b6b6b;
  --av-rk: #c97a3a;
  --av-pn: #8a4ad6;
  --av-an: #4ab5a6;
  --av-fa: #d6724a;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.06);

  --sidebar-w: 232px;
  --radius: 10px;
  --radius-sm: 6px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

/* ============== Layout ============== */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* ============== Sidebar ============== */
.sidebar {
  background: var(--sidebar);
  color: #e7e7e7;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar .brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px 22px;
  min-height: 56px;
}

/* Logo image - drop assets/logo.png in.
   The image scales down to fit the sidebar width while
   keeping its aspect ratio. */
.sidebar .brand img.logo-img {
  display: block;
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Fallback - shown if logo.png is missing */
.sidebar .brand .logo-fallback {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.sidebar .brand .logo-fallback .logo {
  width: 30px; height: 30px;
  background: var(--brand);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--brand-ink);
  font-weight: 800;
  font-size: 16px;
}
.sidebar .brand .logo-fallback .name {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.2px;
}
.sidebar .brand .logo-fallback .menu-toggle {
  margin-left: auto;
  opacity: 0.55;
  cursor: pointer;
}

.sidebar nav { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #c9c9c9;
  font-size: 14px;
  transition: background .12s, color .12s;
}
.sidebar nav a:hover { background: var(--sidebar-hover); color: #fff; }
.sidebar nav a.active { background: var(--sidebar-active); color: #fff; }

.sidebar nav a .icon {
  width: 16px; height: 16px;
  display: inline-block;
  opacity: 0.85;
}

.sidebar .lang-switch {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.sidebar .lang-switch button {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.65);
  border-radius: 6px;
  padding: 4px 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.sidebar .lang-switch button.active {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.sidebar .next-meeting {
  margin-top: auto;
  background: #ece4d0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--brand-ink);
  font-weight: 600;
}
.sidebar .next-meeting .label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b7f5f;
  margin-bottom: 2px;
  font-weight: 600;
}

/* ============== Main ============== */
.main {
  padding: 26px 32px 60px;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
}

.topbar h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.topbar .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar .date {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.btn-new {
  background: #030a36;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
}

.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.avatar.sm { width: 22px; height: 22px; font-size: 10px; }
.avatar.xs { width: 18px; height: 18px; font-size: 9px; }

.avatar.dk { background: var(--av-dk); }
.avatar.jt { background: var(--av-jt); }
.avatar.sh { background: var(--av-sh); }
.avatar.sm-color { background: var(--av-sm); }
.avatar.se { background: var(--av-se); }
.avatar.rk { background: var(--av-rk); }
.avatar.pn { background: var(--av-pn); }
.avatar.an { background: var(--av-an); }
.avatar.fa { background: var(--av-fa); }
.avatar.gray { background: #c9c2af; color: #4a4a4a; }

/* ============== Cards ============== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.card-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
  font-weight: 600;
}

/* KPI cards on dashboard */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.kpi {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 20px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.kpi::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--stage-lead);
}
.kpi.lead::before { background: var(--stage-lead); }
.kpi.quoted::before { background: var(--stage-quoted); }
.kpi.mou::before { background: var(--stage-mou); }
.kpi.partners::before { background: var(--stage-partners); }
.kpi .num { font-size: 36px; font-weight: 700; line-height: 1; margin: 4px 0 8px; }
.kpi .lbl {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.kpi .sub { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* Dashboard two-column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}

.stage-list { display: flex; flex-direction: column; gap: 10px; }
.stage-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.stage-row .dot {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
}
.stage-row .name { flex: 1; color: var(--text); }
.stage-row .count { font-weight: 700; font-variant-numeric: tabular-nums; }
.dot.lead { background: var(--stage-lead); }
.dot.quoted { background: var(--stage-quoted); }
.dot.mou { background: var(--stage-mou); }
.dot.stalled { background: var(--stage-stalled); }

/* Urgent actions list */
.action-list { display: flex; flex-direction: column; gap: 8px; }
.action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-soft);
  padding: 10px 12px;
  border-radius: 8px;
}
.action-item .title { flex: 1; font-size: 13px; }
.action-item .due {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stage-stalled);
  font-weight: 600;
}

/* Activity feed */
.activity-list { display: flex; flex-direction: column; gap: 6px; }
.activity-row {
  display: grid;
  grid-template-columns: 70px 16px 1fr;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.activity-row:last-child { border-bottom: none; }
.activity-row .date {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.activity-row .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--stage-mou);
}
.activity-row .text { color: var(--text); }
.activity-row .text .who { color: var(--text-muted); font-size: 11px; margin-left: 6px; }

/* ============== Pipeline (Kanban) ============== */
.kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.kanban .col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}
.kanban .col-header .count {
  margin-left: auto;
  color: var(--text);
}
.kanban .col { display: flex; flex-direction: column; gap: 12px; }
.opp-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.opp-card h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.opp-card .industry-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text-dim);
  background: #eef1f4;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.opp-card .value {
  font-size: 12px;
  color: var(--stage-quoted);
  font-weight: 600;
  margin-bottom: 8px;
}
.opp-card .value.tbd { color: var(--text-muted); }
.opp-card p {
  margin: 0 0 10px;
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.45;
}
.opp-card .meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.opp-card .meta .priority {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
}
.opp-card .blocker {
  margin-top: 10px;
  background: #fde7e3;
  color: #a8412f;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11.5px;
}

/* ============== Actions table ============== */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}
.tabs button {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
  font-weight: 600;
}
.tabs button.active { background: #030a36; color: #fff; }

.tabs .filter {
  margin-left: auto;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-dim);
}

.tbl {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.tbl table { width: 100%; border-collapse: collapse; }
.tbl thead th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.tbl tbody td {
  padding: 14px 16px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .check {
  width: 16px; height: 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
}
.tbl .check.done {
  background: var(--brand);
  border-color: var(--brand);
  position: relative;
}
.tbl .check.done::after {
  content: "";
  position: absolute;
  left: 3px; top: 0px;
  width: 5px; height: 9px;
  border: solid #030a36;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.tbl .strike { text-decoration: line-through; color: var(--text-muted); }
.pill {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.pill.open { background: #e9eafc; color: #4a55b8; }
.pill.completed { background: #d8efe0; color: #267a4d; }
.pill.upcoming { background: #faedc9; color: #8c6618; }
.pill.overdue { background: #fde2dc; color: #b03d2a; }
.pill.draft { background: #f0e2c7; color: #8a5a18; }
.pill.submitted { background: #e9eafc; color: #4a55b8; }
.pill.awarded { background: #d8efe0; color: #267a4d; }
.pill.lost { background: #fde2dc; color: #b03d2a; }
.pill.gray { background: #eceff2; color: #5b6570; }
.validity.expired { color: #d63a2a; font-weight: 700; }

/* Pipeline table */
.pill.stage-lead { background: #d9edfb; color: #2272ad; }
.pill.stage-quoted { background: #fbecc9; color: #99711a; }
.pill.stage-mou { background: #d8efe0; color: #267a4d; }
.pill.stage-stalled { background: #eceff2; color: #5b6570; }
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filter-bar input[type="text"] {
  flex: 1;
  min-width: 200px;
  max-width: 340px;
}
.filter-bar input[type="text"], .filter-bar select {
  background: #fff;
  border: 1px solid #e3e0da;
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  font-size: 13.5px;
  color: inherit;
}
.tbl td.proj-cell { max-width: 380px; }
.tbl .proj-desc {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 3px;
  line-height: 1.4;
}
.tbl .tbl-blocker { color: #b03d2a; font-size: 12.5px; }

/* ============== Meetings ============== */
.meeting {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 20px 16px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 12px;
  overflow: hidden;
}
.meeting::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--stage-mou);
}
.meeting.upcoming::before { background: var(--stage-quoted); }
.meeting .info h3 { margin: 0 0 4px; font-size: 16px; }
.meeting .info .sub { font-size: 12px; color: var(--text-dim); }
.meeting .status { margin-left: auto; }

/* ============== Documents ============== */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
}
.cat-card { background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.cat-list { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.cat-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  font-size: 13px; color: var(--text);
  cursor: pointer;
}
.cat-row:hover { background: var(--bg-soft); }
.cat-row.active { background: var(--bg-soft); font-weight: 600; }
.cat-row .count { margin-left: auto; color: var(--text-muted); font-size: 12px; }
.cat-icon { width: 14px; height: 14px; display: inline-block; }

.docs-grid-wrap {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.docs-grid-wrap .docs-top {
  display: flex; align-items: center; margin-bottom: 16px;
}
.docs-top .seg {
  margin-left: auto; display: flex; gap: 6px; align-items: center;
}
.btn-upload {
  background: #030a36; color: #fff; border: none;
  border-radius: 8px; padding: 6px 14px; font-size: 12.5px; cursor: pointer;
}
.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.doc {
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  padding: 20px 14px 14px;
  position: relative;
  background: #fff;
  text-align: center;
}
.doc.draft { background: #fdf3da; border-style: solid; border-color: #f0d99b; }
.doc .doc-icon {
  width: 42px; height: 42px;
  background: #e9c885;
  border-radius: 6px;
  display: grid; place-items: center;
  margin: 0 auto 10px;
  color: #66461a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.doc.draft .doc-icon { background: #e25555; color: #fff; }
.doc.pdf .doc-icon { background: #e25555; color: #fff; }
.doc .type {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 4px; font-weight: 600;
}
.doc .name { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.doc .sub { font-size: 11px; color: var(--text-muted); }
.doc .badge {
  position: absolute; top: 10px; right: 10px;
  background: #faedc9; color: #8c6618;
  font-size: 10px; padding: 2px 8px; border-radius: 4px;
  font-weight: 600; letter-spacing: 0.08em;
}

.subfolder-btn {
  margin-top: 10px;
  border: 1px dashed var(--border-strong);
  background: transparent;
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 12px;
}

/* ============== Team ============== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.member {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.member .head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.member-photo {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
  background: #c9c2af;
}
.member-photo.placeholder {
  display: grid; place-items: center;
  color: #4a4a4a;
  font-size: 16px; font-weight: 600;
  letter-spacing: 0.04em;
}
.field-hint { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }
.field input[type="file"] { font-size: 12.5px; padding: 6px 0; }
.member h3 { margin: 0; font-size: 16px; }
.member .role { font-size: 12.5px; color: var(--text-dim); }
.member .loc { font-size: 12px; color: var(--text-muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #ece6d4;
  color: #4a4a4a;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 600;
}

/* ============== Roadmap ============== */
.phase { margin-bottom: 28px; }
.phase-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.phase-head .pdot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--stage-stalled);
}
.phase-head .pdot.now { background: var(--stage-quoted); border-color: var(--stage-quoted); }
.phase-head .pdot.short { background: transparent; border-color: var(--text-dim); }
.phase-head .pdot.med { background: transparent; border-color: var(--text-dim); }
.phase-head h2 { font-size: 17px; margin: 0; }
.phase-head .range {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin-left: 4px;
}

.roadmap-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  margin-bottom: 8px;
}
.roadmap-item .ldot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--stage-lead); flex: none;
}
.roadmap-item.done .ldot { background: var(--stage-mou); }
.roadmap-item .text { flex: 1; }
.roadmap-item.done .text { text-decoration: line-through; color: var(--text-muted); }
.roadmap-item .owners { font-size: 11px; color: var(--text-muted); letter-spacing: 0.04em; }
.roadmap-item .goal {
  background: #ece6f6; color: #4a3a8a;
  padding: 2px 8px; border-radius: 4px;
  font-size: 10.5px; font-weight: 600;
}

/* ============== Quotations / Discussions / Decisions ============== */
.simple-list { display: flex; flex-direction: column; gap: 10px; }
.simple-row {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 14px;
}
.simple-row h3 { margin: 0 0 2px; font-size: 15px; }
.simple-row .sub { font-size: 12px; color: var(--text-dim); }
.simple-row .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.simple-row .amount { font-weight: 700; font-size: 14px; }

.discussion-row { align-items: flex-start; }
.discussion-row .body { flex: 1; }
.discussion-row .body p {
  margin: 4px 0 0; font-size: 13px; color: var(--text-dim); line-height: 1.5;
}

/* ============== Empty state ============== */
.empty {
  background: #fff;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  box-shadow: var(--shadow-sm);
  padding: 36px 22px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}
.empty strong { color: var(--text-dim); font-weight: 600; }
.empty code {
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* ============== Utility ============== */
.flex { display: flex; align-items: center; gap: 8px; }
.muted { color: var(--text-muted); }
.right { text-align: right; }

/* ============== Responsive ============== */
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .kanban { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  :root { --sidebar-w: 64px; }
  .sidebar .brand .name, .sidebar nav a span.label, .sidebar .next-meeting { display: none; }
  .main { padding: 18px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   LIVE VERSION ADDITIONS - login, modals, forms
   ========================================================= */

.clickable { cursor: pointer; }
.opp-card.clickable:hover,
.simple-row.clickable:hover,
.member.clickable:hover,
.meeting.clickable:hover,
.doc.clickable:hover,
.roadmap-item.clickable:hover { outline: 2px solid var(--brand); outline-offset: -1px; }
tr.clickable:hover td { background: var(--bg-soft); }
.kpi.clickable:hover { outline: 2px solid var(--brand); outline-offset: -1px; }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 18, 12, 0.5);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  padding: 24px;
}
.modal h2 { margin: 0 0 14px; font-size: 17px; font-weight: 700; }
.modal-note { font-size: 12px; color: var(--text-dim); margin-bottom: 12px; }
.modal-fields .field { margin-bottom: 12px; }
.field label {
  display: block; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-dim); margin-bottom: 4px;
}
.field input[type="text"], .field textarea, .field select {
  width: 100%; padding: 9px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit; font-size: 13px;
  background: #fff; color: var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand);
}
.field.checkbox label { text-transform: none; font-size: 13px; font-weight: 500; color: var(--text); }
.field.checkbox input { margin-right: 6px; }
.modal-error { color: #c0392b; font-size: 12px; min-height: 16px; margin: 4px 0 8px; }
.modal-actions { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.modal-actions .spacer { flex: 1; }

.btn-primary, .btn-ghost, .btn-danger {
  font: inherit; font-size: 13px; font-weight: 600;
  padding: 9px 16px; border-radius: var(--radius-sm);
  cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }
.btn-ghost { background: transparent; color: var(--text-dim); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-danger { background: transparent; color: #c0392b; border-color: #e5b6b0; }
.btn-danger:hover { background: #fdf1ef; }

/* ---- Login page ---- */
.login-page {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  background: var(--sidebar); padding: 20px;
}
.login-card {
  background: var(--card); border-radius: var(--radius);
  padding: 36px 32px; width: 100%; max-width: 380px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}
.login-card .logo-img { max-height: 72px; max-width: 100%; display: block; margin: 0 auto 6px; }
.login-card h1 { font-size: 18px; font-weight: 700; margin: 10px 0 2px; text-align: center; }
.login-card .sub { font-size: 12px; color: var(--text-dim); text-align: center; margin-bottom: 20px; }
.login-card .field { margin-bottom: 12px; }
.login-card input {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: 14px;
}
.login-card input:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.login-card .btn-primary { width: 100%; padding: 11px; margin-top: 6px; font-size: 14px; }
.login-error { color: #c0392b; font-size: 12px; min-height: 16px; margin-top: 10px; text-align: center; }
.login-lang { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.login-lang button {
  font: inherit; font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  padding: 4px 12px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text-dim);
}
.login-lang button:hover { border-color: var(--brand); color: var(--brand-ink); }
.login-lang button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
