/* ============================================================
   styles.css — VentaOps · Plataforma de Operaciones Telecom
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Mono:wght@400;500&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:       #050F1E;
  --navy-2:     #0A1A30;
  --navy-3:     #0F2240;
  --blue:       #0055CC;
  --blue-light: #1A6EF0;
  --accent:     #00C2FF;
  --white:      #F8FAFF;
  --gray-1:     #E8EEF8;
  --gray-2:     #B8C6DC;
  --gray-3:     #7A8DAA;
  --gray-4:     #4A5D74;
  --green:      #00C896;
  --green-bg:   #002E24;
  --yellow:     #FFB800;
  --yellow-bg:  #2A2200;
  --red:        #FF3B55;
  --red-bg:     #2A0010;
  --orange:     #FF6B35;

  --sidebar-w:  240px;
  --header-h:   60px;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 2px 16px rgba(0,0,0,0.24);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.40);
  --border:     rgba(255,255,255,0.07);
  --border-2:   rgba(255,255,255,0.12);

  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button { cursor: pointer; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }
a { text-decoration: none; color: inherit; }

/* ── Login Screen ─────────────────────────────────────────── */
#login-screen {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy);
  z-index: 1000;
}
.login-card {
  background: var(--navy-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 380px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.login-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--accent));
}
.login-logo {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(0,85,204,0.4);
}
.login-title {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 800;
  color: var(--white); margin-bottom: 6px;
}
.login-sub {
  font-size: 12px; color: var(--gray-3);
  margin-bottom: 32px; letter-spacing: 0.3px;
}
.btn-google {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; width: 100%; padding: 13px 20px;
  background: var(--white); color: #1a1a2e;
  border: none; border-radius: var(--radius);
  font-weight: 700; font-size: 13px; letter-spacing: 0.2px;
  transition: var(--transition);
}
.btn-google:hover { background: #e8eeff; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(255,255,255,0.1); }
.btn-google svg { width: 18px; height: 18px; }

/* ── App Layout ───────────────────────────────────────────── */
#app { display: none; }
#app.active { display: flex; min-height: 100vh; }

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--navy-2);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: var(--transition);
}
.sidebar-brand {
  padding: 20px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-brand-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.sidebar-brand-name {
  font-family: var(--font-head); font-weight: 800; font-size: 15px;
  color: var(--white); line-height: 1.1;
}
.sidebar-brand-sub { font-size: 9px; color: var(--gray-3); letter-spacing: 0.5px; text-transform: uppercase; }

.sidebar-nav { flex: 1; padding: 16px 10px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav-section { font-size: 9px; font-weight: 700; color: var(--gray-4); text-transform: uppercase; letter-spacing: 1px; padding: 10px 8px 4px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--gray-2);
  cursor: pointer; transition: var(--transition);
  position: relative;
}
.nav-item:hover { background: rgba(255,255,255,0.05); color: var(--white); }
.nav-item.active { background: rgba(0,85,204,0.25); color: var(--accent); }
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; background: var(--accent); border-radius: 0 3px 3px 0;
}
.nav-item .nav-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }
.nav-badge {
  margin-left: auto; background: var(--red); color: #fff;
  font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 10px;
  min-width: 18px; text-align: center;
}
.nav-badge.yellow { background: var(--yellow); color: var(--navy); }

.sidebar-footer {
  padding: 14px 12px;
  border-top: 1px solid var(--border);
}
.user-pill {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 8px;
  cursor: pointer; transition: var(--transition);
}
.user-pill:hover { background: rgba(255,255,255,0.05); }
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
  overflow: hidden;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 12px; font-weight: 600; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-role { font-size: 9px; color: var(--gray-3); text-transform: uppercase; letter-spacing: 0.5px; }
.btn-logout { background: none; border: none; color: var(--gray-3); font-size: 14px; padding: 4px; border-radius: 4px; transition: var(--transition); }
.btn-logout:hover { color: var(--red); }

/* ── Main Content ─────────────────────────────────────────── */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex; flex-direction: column;
  min-height: 100vh;
}
.top-bar {
  height: var(--header-h); flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: var(--navy-2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 90;
}
.page-title { font-family: var(--font-head); font-size: 17px; font-weight: 800; color: var(--white); }
.top-actions { display: flex; align-items: center; gap: 10px; }

.page-content { flex: 1; padding: 24px 28px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius);
  border: none; font-size: 13px; font-weight: 600;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,85,204,0.4); }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--gray-2); border: 1px solid var(--border-2); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.btn-danger { background: rgba(255,59,85,0.15); color: var(--red); border: 1px solid rgba(255,59,85,0.3); }
.btn-danger:hover { background: rgba(255,59,85,0.25); }
.btn-success { background: rgba(0,200,150,0.15); color: var(--green); border: 1px solid rgba(0,200,150,0.3); }
.btn-sm { padding: 5px 12px; font-size: 11.5px; }
.btn-icon { padding: 8px; width: 34px; height: 34px; justify-content: center; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.card-title { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--white); }
.card-sub { font-size: 11px; color: var(--gray-3); margin-top: 2px; }

/* ── Stats Row ────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card {
  background: var(--navy-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px;
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
}
.stat-card.blue::after   { background: linear-gradient(90deg, var(--blue), var(--accent)); }
.stat-card.green::after  { background: linear-gradient(90deg, var(--green), #00FF99); }
.stat-card.yellow::after { background: linear-gradient(90deg, var(--yellow), #FF9500); }
.stat-card.red::after    { background: linear-gradient(90deg, var(--red), var(--orange)); }
.stat-label { font-size: 9.5px; color: var(--gray-3); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; margin-bottom: 8px; }
.stat-value { font-family: var(--font-head); font-size: 28px; font-weight: 800; color: var(--white); line-height: 1; }
.stat-sub { font-size: 10px; color: var(--gray-3); margin-top: 4px; }

/* ── Input Paste Panel ────────────────────────────────────── */
.paste-panel {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}
.paste-panel-title {
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  color: var(--white); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.paste-textarea {
  width: 100%; min-height: 100px; max-height: 160px;
  background: var(--navy-3); border: 1.5px solid var(--border-2);
  border-radius: var(--radius); padding: 12px 14px;
  color: var(--white); font-family: var(--font-mono); font-size: 11px;
  resize: vertical; outline: none; transition: var(--transition); line-height: 1.6;
}
.paste-textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,85,204,0.15); }
.paste-actions { display: flex; gap: 10px; margin-top: 10px; align-items: center; }
.paste-hint { font-size: 10px; color: var(--gray-3); margin-left: auto; }

/* ── Filter Bar ────────────────────────────────────────────── */
.filter-bar {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 20px; flex-wrap: wrap;
}
.search-input {
  background: var(--navy-2); border: 1px solid var(--border-2);
  border-radius: var(--radius); padding: 8px 14px;
  color: var(--white); font-size: 13px; outline: none;
  transition: var(--transition); min-width: 220px;
}
.search-input:focus { border-color: var(--blue); }
.search-input::placeholder { color: var(--gray-4); }
select.filter-select {
  background: var(--navy-2); border: 1px solid var(--border-2);
  border-radius: var(--radius); padding: 8px 14px;
  color: var(--gray-2); font-size: 12px; outline: none;
  transition: var(--transition); cursor: pointer;
}
select.filter-select:focus { border-color: var(--blue); color: var(--white); }

/* ── Tabla ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead tr { border-bottom: 1px solid var(--border-2); }
th { padding: 10px 14px; text-align: left; font-size: 9.5px; font-weight: 700; color: var(--gray-3); text-transform: uppercase; letter-spacing: 0.6px; white-space: nowrap; }
td { padding: 11px 14px; font-size: 12px; color: var(--gray-1); border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:hover td { background: rgba(255,255,255,0.02); }
tr:last-child td { border-bottom: none; }

/* ── Badges / Pills ────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.2px;
  white-space: nowrap;
}
.badge-pending   { background: rgba(255,184,0,0.15);   color: var(--yellow); }
.badge-review    { background: rgba(0,194,255,0.1);    color: var(--accent); }
.badge-ok        { background: rgba(0,200,150,0.15);   color: var(--green); }
.badge-error     { background: rgba(255,59,85,0.15);   color: var(--red); }
.badge-closed    { background: rgba(255,255,255,0.07); color: var(--gray-3); }
.badge-orange    { background: rgba(255,107,53,0.15);  color: var(--orange); }

/* ── Alert Timers ─────────────────────────────────────────── */
.timer-ok     { color: var(--gray-3); font-family: var(--font-mono); font-size: 11px; }
.timer-yellow { color: var(--yellow); font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.timer-red    { color: var(--red);    font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.timer-blink  {
  color: var(--red); font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  animation: blink 1s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ── Row urgency highlight ─────────────────────────────────── */
tr.urgent-yellow td { background: rgba(255,184,0,0.03) !important; }
tr.urgent-red     td { background: rgba(255,59,85,0.04) !important; }
tr.urgent-critical td { background: rgba(255,59,85,0.07) !important; animation: rowpulse 2s ease-in-out infinite; }
@keyframes rowpulse { 0%,100%{background:rgba(255,59,85,0.07)} 50%{background:rgba(255,59,85,0.12)} }

/* ── Kanban ────────────────────────────────────────────────── */
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kanban-col {
  background: var(--navy-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
  min-height: 400px;
}
.kanban-col-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.kanban-col-title { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--white); }
.kanban-count {
  background: rgba(255,255,255,0.08); color: var(--gray-2);
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px;
}
.kanban-cards { display: flex; flex-direction: column; gap: 10px; }
.kanban-card {
  background: var(--navy-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 13px 14px;
  cursor: pointer; transition: var(--transition);
  position: relative; overflow: hidden;
}
.kanban-card:hover { border-color: var(--border-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.kanban-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
}
.kanban-card.fact::before { background: var(--accent); }
.kanban-card.bio::before  { background: var(--green); }
.kanban-card-type { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.kanban-card.fact .kanban-card-type { color: var(--accent); }
.kanban-card.bio  .kanban-card-type { color: var(--green); }
.kanban-card-name { font-size: 12px; font-weight: 600; color: var(--white); margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kanban-card-rut  { font-size: 10px; color: var(--gray-3); font-family: var(--font-mono); margin-bottom: 6px; }
.kanban-card-footer { display: flex; align-items: center; justify-content: space-between; }
.kanban-card-user { font-size: 10px; color: var(--gray-3); display: flex; align-items: center; gap: 4px; }
.kanban-card-time { font-size: 10px; font-family: var(--font-mono); }

/* ── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  z-index: 500; display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--navy-2); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); width: 100%; max-width: 640px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px); transition: transform 0.2s ease;
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--navy-2); z-index: 1;
}
.modal-title { font-family: var(--font-head); font-size: 16px; font-weight: 800; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }
.btn-close-modal { background: none; border: none; color: var(--gray-3); font-size: 20px; padding: 0 4px; transition: var(--transition); }
.btn-close-modal:hover { color: var(--white); }

/* ── Form Elements ─────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 10.5px; font-weight: 700; color: var(--gray-3); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 9px 13px;
  background: var(--navy-3); border: 1.5px solid var(--border-2);
  border-radius: var(--radius); color: var(--white); font-size: 13px;
  outline: none; transition: var(--transition);
}
.form-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,85,204,0.15); }
.form-input::placeholder { color: var(--gray-4); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ── Detail View ────────────────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.detail-field { }
.detail-field-label { font-size: 9.5px; color: var(--gray-3); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; margin-bottom: 4px; }
.detail-field-value { font-size: 13px; color: var(--white); font-weight: 500; word-break: break-word; }
.detail-field-value.mono { font-family: var(--font-mono); font-size: 12px; }

/* ── History ─────────────────────────────────────────────── */
.history-list { display: flex; flex-direction: column; gap: 0; }
.history-item {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.history-item:last-child { border-bottom: none; }
.history-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0; margin-top: 4px;
}
.history-content { flex: 1; }
.history-action { color: var(--white); font-weight: 500; }
.history-meta { color: var(--gray-3); font-size: 10px; margin-top: 2px; }

/* ── Comments ─────────────────────────────────────────────── */
.comment-box {
  background: var(--navy-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 13px;
  font-size: 12px; color: var(--gray-2); line-height: 1.5;
  margin-bottom: 6px;
}
.comment-meta { font-size: 10px; color: var(--gray-3); }
.comment-input {
  width: 100%; padding: 9px 13px;
  background: var(--navy-3); border: 1.5px solid var(--border-2);
  border-radius: var(--radius); color: var(--white); font-size: 12px;
  outline: none; transition: var(--transition); resize: none; min-height: 72px;
}
.comment-input:focus { border-color: var(--blue); }

/* ── Dashboard charts ──────────────────────────────────────── */
.chart-bar-wrap { display: flex; flex-direction: column; gap: 8px; }
.chart-bar-row { display: flex; align-items: center; gap: 10px; }
.chart-bar-label { font-size: 11px; color: var(--gray-2); width: 90px; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-bar-track { flex: 1; height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.chart-bar-fill { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
.chart-bar-val { font-size: 10px; color: var(--gray-3); width: 28px; text-align: right; flex-shrink: 0; font-family: var(--font-mono); }

/* ── Duplicate Warning ─────────────────────────────────────── */
.dup-warning {
  background: rgba(255,184,0,0.1); border: 1px solid rgba(255,184,0,0.3);
  border-radius: var(--radius); padding: 10px 14px;
  font-size: 12px; color: var(--yellow); margin-top: 10px;
  display: flex; align-items: center; gap: 8px;
}

/* ── Toast ──────────────────────────────────────────────────── */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--navy-2); border: 1px solid var(--border-2);
  border-radius: var(--radius); padding: 12px 18px;
  font-size: 12px; font-weight: 500; color: var(--white);
  box-shadow: var(--shadow); min-width: 240px;
  display: flex; align-items: center; gap: 10px;
  animation: toastIn 0.25s ease; border-left: 3px solid var(--blue);
}
.toast.success { border-left-color: var(--green); }
.toast.error   { border-left-color: var(--red); }
.toast.warning { border-left-color: var(--yellow); }
@keyframes toastIn { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:translateX(0); } }

/* ── Loading ─────────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 48px 20px; color: var(--gray-3);
}
.empty-state-icon { font-size: 36px; margin-bottom: 12px; opacity: 0.5; }
.empty-state-text { font-size: 13px; }

/* ── Export buttons ─────────────────────────────────────────── */
.export-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Page sections hidden/shown ──────────────────────────────── */
.page-section { display: none; }
.page-section.active { display: block; }

/* ── Scrollbars ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --sidebar-w: 200px; }
  .form-grid { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-240px); }
  .sidebar.open { transform: translateX(0); width: 240px; }
  .main-content { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .page-content { padding: 16px; }
  .detail-grid { grid-template-columns: 1fr; }
}

/* ── Misc ─────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.text-muted { color: var(--gray-3); }
.text-mono { font-family: var(--font-mono); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-yellow { color: var(--yellow); }
.mt-0 { margin-top: 0; }
.mb-16 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.ml-auto { margin-left: auto; }
