/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Backgrounds */
  --bg: #e2e8f0;
  --bg2: #cbd5e1;
  --bg3: #FFFFFF;
  --card: #FFFFFF;
  --border: #E2E5F0;
  --border2: rgba(27,31,44,0.32);

  /* Brand */
  --accent: #0060B1;
  --accent-light: rgba(0,96,177,0.08);

  /* Pipeline colors */
  --col-lead: #D79898;
  --col-lead-bg: rgba(255,190,190,0.13);
  --col-lead-text: #550001;

  --col-consult: #82BBCD;
  --col-consult-bg: rgba(130,187,205,0.18);
  --col-consult-text: #001535;

  --col-contract: #77B789;
  --col-contract-bg: #F0FFEC;
  --col-contract-text: #00350B;
  --col-contract-border: #209643;

  --col-docs: #6971BC;
  --col-docs-bg: rgba(105,113,188,0.1);
  --col-docs-text: #14003C;

  --col-enroll: #B48ACA;
  --col-enroll-bg: #F3ECFF;
  --col-enroll-text: #140035;
  --col-enroll-border: #7250EA;

  --col-contract2: #4F46E5;
  --col-contract2-bg: #EEF2FF;
  --col-contract2-text: #312E81;
  --col-contract2-border: #6366F1;

  /* Status colors */
  --green: #209643;
  --red: #B62D2F;
  --red-bg: rgba(255,138,140,0.15);
  --yellow: #D97706;
  --blue: #0060B1;

  /* Text */
  --text: #0F172A;
  --text2: #64748B;
  --text3: #94A3B8;

  /* UI */
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ===================== APP LAYOUT ===================== */
.app { display: flex; min-height: 100vh; }

/* ===================== SIDEBAR ===================== */
.sidebar {
  width: 280px;
  min-width: 280px;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
}

.sidebar-logo {
  padding: 32px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 24px;
  color: var(--text);
  letter-spacing: -0.5px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}
.nav-item:hover { background: var(--bg); }
.nav-item.active {
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 600;
}
.nav-item .nav-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
}
.nav-item.active .nav-icon { opacity: 1; }
.nav-item .nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* notification badge */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  background: #FF4144;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  min-width: 23px;
  height: 20px;
  margin-left: auto;
}

.sidebar-footer {
  padding: 12px 24px 24px;
}

.btn-logout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--red-bg);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--red);
  transition: background var(--transition);
}
.btn-logout:hover { background: rgba(255,138,140,0.25); }

/* ===================== MAIN CONTENT ===================== */
.main {
  margin-left: 280px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* TOP BAR */
.topbar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 12px;
  flex: 1;
  max-width: 660px;
}
.topbar-search input {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  width: 100%;
}
.topbar-search input::placeholder { color: var(--text2); }
.topbar-search-icon { width: 24px; height: 24px; color: var(--text2); flex-shrink: 0; }

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

.topbar-logo {
  max-height: 40px;
  max-width: 120px;
  object-fit: contain;
  margin-left: 12px;
  border-radius: 4px;
}

.topbar-bell { width: 24px; height: 24px; cursor: pointer; color: var(--text2); transition: color var(--transition); }
.topbar-bell:hover { color: var(--accent); }

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  background: var(--bg);
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: border-color var(--transition);
  cursor: pointer;
}
.topbar-user:hover { border-color: var(--accent); }
.topbar-avatar {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #ECE1FF 0%, #D4C3FF 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
  color: #4A1D96;
  flex-shrink: 0;
}
.topbar-username { font-size: 16px; font-weight: 500; color: var(--text); }

/* PAGE CONTENT */
.page-content { padding: 32px 32px 32px 16px; flex: 1; }

/* ===================== PAGE HEADER ===================== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.page-title {
  font-size: 32px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

/* ===================== TABS (DEALS/ARCHIVE) ===================== */
.page-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--card);
  border-radius: 20px;
  padding: 10px;
}
.page-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 400;
  color: var(--accent);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  background: transparent;
  font-family: inherit;
  white-space: nowrap;
}
.page-tab.active {
  background: var(--accent);
  color: #fff;
  font-weight: 500;
}
.page-tab:hover:not(.active) { background: var(--bg); }

/* ===================== PERIOD FILTERS ===================== */
.period-filters {
  display: flex;
  align-items: center;
  gap: 8px;
}
.period-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border2);
  border-radius: 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
  white-space: nowrap;
}
.period-btn:hover { background: var(--card); border-color: var(--accent); color: var(--accent); }
.period-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===================== PIPELINE / KANBAN ===================== */
.pipeline-wrap {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  align-items: flex-start;
}

.pipeline-col {
  width: 218px;
  min-width: 218px;
  background: var(--card);
  border-radius: var(--radius);
  flex-shrink: 0;
  overflow: hidden;
}

.pipeline-col-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 70px;
  height: 42px;
  margin: 9px 10px 0;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.3px;
}

.pipeline-col-body {
  padding: 8px 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pipeline-card {
  border-radius: 12px;
  padding: 16px 14px;
  border-top-width: 3px;
  border-top-style: solid;
  cursor: grab;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.pipeline-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.pipeline-card:active { cursor: grabbing; transform: translateY(0) scale(0.98); }
.pipeline-card.dragging { opacity: 0.6; transform: scale(1.02); box-shadow: var(--shadow-hover); z-index: 100; }
.pipeline-col-body.drag-over { background: rgba(0, 96, 177, 0.05); border-radius: 12px; border: 1px dashed var(--accent); }

.pipeline-card-date {
  font-size: 10px;
  font-weight: 400;
  margin-bottom: 6px;
  display: flex;
  gap: 12px;
}
.pipeline-card-name { font-size: 13px; font-weight: 400; margin-bottom: 4px; }
.pipeline-card-phone { font-size: 12px; margin-bottom: 4px; }
.pipeline-card-city { font-size: 12px; }

/* Card action button */
.pipeline-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  font-family: inherit;
  margin-top: 10px;
  width: 100%;
  transition: opacity var(--transition);
}
.pipeline-card-btn:hover { opacity: 0.8; }

/* ===================== STAT CARDS ===================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text2); }
.stat-delta-up { font-size: 12px; color: var(--green); margin-top: 4px; }
.stat-delta-down { font-size: 12px; color: var(--red); margin-top: 4px; }

/* ===================== TABLE ===================== */
.table-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  white-space: nowrap;
}
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
  color: var(--text);
}
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg); }

/* ===================== BADGES ===================== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.badge-green { background: rgba(32,150,67,0.12); color: var(--green); }
.badge-yellow { background: rgba(217,119,6,0.12); color: var(--yellow); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-blue { background: var(--accent-light); color: var(--accent); }
.badge-purple { background: rgba(114,80,234,0.1); color: #7250EA; }
.badge-gray { background: rgba(135,140,159,0.12); color: var(--text3); }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(0, 96, 177, 0.25); }
.btn-primary:hover { background: #005096; box-shadow: 0 4px 12px rgba(0, 96, 177, 0.35); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--text2); background: var(--bg2); }
.btn-danger { background: var(--red-bg); color: var(--red); }
.btn-danger:hover { background: rgba(255,138,140,0.25); }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ===================== FORM ===================== */
.input, select.input {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.input:focus, select.input:focus { border-color: var(--accent); }
select.input option { background: var(--card); color: var(--text); }

.form-label { font-size: 13px; color: var(--text2); margin-bottom: 5px; font-weight: 500; }
.form-row { margin-bottom: 14px; }

/* ===================== CARD / SECTION ===================== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===================== GRID ===================== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ===================== PROGRESS ===================== */
.progress-bar { background: var(--border); border-radius: 4px; height: 6px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; background: var(--accent); transition: width 0.6s ease; }

/* ===================== MODAL ===================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(27,31,44,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 999;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 8px 40px rgba(27,31,44,0.16);
  transform: scale(0.97);
  transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-title { font-size: 18px; font-weight: 600; }
.modal-close { background: none; border: none; color: var(--text2); font-size: 20px; cursor: pointer; }
.modal-close:hover { color: var(--text); }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ===================== TABS ===================== */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
}
.tab:hover { color: var(--accent); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ===================== TIMELINE ===================== */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 4px; bottom: 0; width: 2px; background: var(--border); }
.tl-item { position: relative; margin-bottom: 16px; }
.tl-dot { position: absolute; left: -17px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg2); }
.tl-text { font-size: 13px; color: var(--text); }
.tl-time { font-size: 11px; color: var(--text2); margin-top: 2px; }

/* ===================== CHAT ===================== */
.chat-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 75%;
}
.chat-bubble-in { background: var(--bg); border: 1px solid var(--border); align-self: flex-start; }
.chat-bubble-out { background: var(--accent); color: #fff; align-self: flex-end; }
.chat-meta { font-size: 10px; color: var(--text2); margin-top: 3px; }

/* ===================== EMPTY STATE ===================== */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text2); }
.empty-icon { font-size: 48px; margin-bottom: 14px; }

/* ===================== LOGIN ===================== */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg);
}
.login-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 4px 32px rgba(27,31,44,0.10);
  animation: fadeUp 0.4s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.login-logo {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.login-logo span { color: var(--accent); }
.login-title { text-align: center; font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.login-sub { text-align: center; color: var(--text2); font-size: 14px; margin-bottom: 28px; }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 500; color: var(--text2);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.4px;
}
.form-group input {
  width: 100%; background: var(--bg); border: 1px solid var(--border2);
  border-radius: var(--radius-xs); padding: 11px 14px; color: var(--text);
  font-size: 15px; font-family: inherit; outline: none; transition: border-color var(--transition);
}
.form-group input:focus { border-color: var(--accent); }

.role-hint { margin: 16px 0; }
.role-hint p { font-size: 12px; color: var(--text2); margin-bottom: 8px; }
.role-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

.btn-login {
  width: 100%; background: var(--accent); color: #fff; border: none;
  border-radius: var(--radius-xs); padding: 13px; font-size: 16px; font-weight: 600;
  cursor: pointer; font-family: inherit; margin-top: 8px;
  transition: background var(--transition);
}
.btn-login:hover { background: #004F92; }
.login-error { color: var(--red); font-size: 13px; text-align: center; margin-top: 10px; min-height: 20px; }

/* ===================== CHAT INPUT ===================== */
.chat-input-wrap {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--card);
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

/* ===================== NOTIFICATION DROPDOWN ===================== */
.notif-dropdown {
  position: fixed;
  width: 340px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  z-index: 5000;
  overflow: hidden;
  animation: fadeUp 0.2s ease;
}
.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
}
.notif-all-read {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
}
.notif-all-read:hover { text-decoration: underline; }
.notif-list { max-height: 320px; overflow-y: auto; }
.notif-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  cursor: pointer;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: rgba(0,96,177,0.04); }
.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 5px;
}
.notif-body { flex: 1; }
.notif-text { font-size: 13px; line-height: 1.4; color: var(--text); }
.notif-time { font-size: 11px; color: var(--text2); margin-top: 4px; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
  .sidebar { width: 68px; min-width: 68px; }
  .sidebar-logo .logo-img, .nav-item .nav-label, .nav-badge, .sidebar-footer .btn-logout .btn-logout-label { display: none; }
  .nav-item { justify-content: center; padding: 12px; gap: 0; }
  .nav-item .nav-icon { width: 24px; height: 24px; opacity: 0.8; }
  .nav-item.active .nav-icon { opacity: 1; }
  .sidebar-logo { padding: 20px 12px; justify-content: center; }
  .sidebar-footer { padding: 12px; }
  .btn-logout { justify-content: center; padding: 12px; }
  .main { margin-left: 68px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-content { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ===================== ROLE BADGE ===================== */
.role-badge {
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

/* ===================== PIPELINE CARD EXTRAS ===================== */
.card-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.card-meta { font-size: 11px; color: var(--text2); display: flex; align-items: center; gap: 5px; margin-bottom: 3px; }
.card-amount { font-size: 13px; font-weight: 700; color: var(--green); margin-top: 6px; }
.pipeline-col-count { font-size: 12px; font-weight: 700; background: rgba(255,255,255,0.3); padding: 2px 7px; border-radius: 20px; }

/* ===================== TABLE MODERN ===================== */
.table-modern { width: 100%; border-collapse: collapse; }
.table-modern th { text-align:left; padding:11px 14px; font-size:11px; font-weight:700; color:var(--text2); text-transform:uppercase; letter-spacing:0.5px; border-bottom:1px solid var(--border); background:var(--bg); white-space:nowrap; }
.table-modern td { padding:12px 14px; border-bottom:1px solid var(--border); font-size:13px; vertical-align:middle; color:var(--text); }
.table-modern tr:last-child td { border-bottom: none; }
.table-modern tbody tr:hover { background: var(--bg); }

/* ===================== DETAIL PANEL ===================== */
.detail-panel {
  position: fixed; top: 0; right: -480px; width: 450px; height: 100vh;
  background: var(--card); border-left: 1px solid var(--border);
  z-index: 200; transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: -4px 0 24px rgba(0,0,0,0.08);
}
.detail-panel.open { right: 0; }

.info-row { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid var(--border); }
.info-key { font-size:13px; color:var(--text2); font-weight:500; }
.info-val { font-size:13px; color:var(--text); font-weight:600; text-align:right; }
.note-item { background:var(--bg); border-radius:8px; padding:10px 12px; font-size:13px; margin-bottom:6px; }
