/* POPai Invoice Audit Intelligence — Styles */
/* Dark professional theme */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f1117;
  --bg-alt: #131620;
  --card: #1a1d26;
  --card-hover: #1e2130;
  --border: #2a2d3a;
  --border-light: #343849;
  --text: #e8eaf0;
  --text-muted: #8b8fa3;
  --text-faint: #5a5e72;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-dim: rgba(59, 130, 246, 0.12);
  --accent-glow: rgba(59, 130, 246, 0.25);
  --orange: #f59e0b;
  --orange-dim: rgba(245, 158, 11, 0.12);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.12);
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.12);
  --purple: #a855f7;
  --purple-dim: rgba(168, 85, 247, 0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.2);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ==================== HEADER ==================== */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left { display: flex; align-items: center; gap: 12px; }
.header-right { display: flex; align-items: center; gap: 8px; }

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

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-size: 20px; font-weight: 800; color: var(--accent); letter-spacing: -0.5px; }
.logo-subtitle { font-size: 11px; color: var(--text-muted); font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; }

/* ==================== BUTTONS ==================== */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-icon:hover { color: var(--text); border-color: var(--border-light); background: var(--card-hover); }
.btn-icon.btn-sm { padding: 4px 6px; border: none; }
.btn-icon.btn-sm:hover { background: var(--border); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-secondary:hover { color: var(--text); border-color: var(--border-light); }

/* ==================== TAB NAVIGATION ==================== */
.tab-nav {
  display: flex;
  gap: 2px;
  padding: 0 24px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.tab-btn:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ==================== MAIN CONTENT ==================== */
.main-content {
  flex: 1;
  padding: 24px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.tab-panel { display: none; animation: fadeIn 0.2s ease; }
.tab-panel.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== CARDS ==================== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.card-header h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.card-body { padding: 20px; }

/* ==================== SUMMARY CARDS ==================== */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.summary-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
}
.summary-card:hover { border-color: var(--border-light); transform: translateY(-1px); }

.summary-card .sc-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.summary-card .sc-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}
.summary-card .sc-sub {
  font-size: 12px;
  color: var(--text-faint);
}

.sc-value.blue { color: var(--accent); }
.sc-value.green { color: var(--green); }
.sc-value.red { color: var(--red); }
.sc-value.orange { color: var(--orange); }

/* ==================== DASHBOARD GRID ==================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

/* ==================== BAR CHART (CSS) ==================== */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 200px;
  padding-top: 20px;
}

.bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.bar {
  width: 100%;
  max-width: 40px;
  background: linear-gradient(to top, var(--accent), #60a5fa);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.bar:hover { filter: brightness(1.15); }

.bar-label {
  font-size: 10px;
  color: var(--text-faint);
  white-space: nowrap;
  text-align: center;
}

.bar-value {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==================== TOP VIOLATORS ==================== */
.violator-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.violator-item:last-child { border-bottom: none; }

.violator-info { display: flex; flex-direction: column; gap: 2px; }
.violator-name { font-size: 13px; font-weight: 600; color: var(--text); }
.violator-count { font-size: 12px; color: var(--text-muted); }

.violator-bar {
  width: 120px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.violator-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==================== DATA TABLES ==================== */
.table-wrap { overflow-x: auto; padding: 0; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table thead { position: sticky; top: 0; z-index: 1; }
.data-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  cursor: default;
  user-select: none;
}
.data-table th[data-sort] { cursor: pointer; }
.data-table th[data-sort]:hover { color: var(--text); }

.sort-icon { opacity: 0.4; font-size: 10px; }
.data-table th.sort-asc .sort-icon,
.data-table th.sort-desc .sort-icon { opacity: 1; color: var(--accent); }
.data-table th.sort-asc .sort-icon::after { content: '↑'; }
.data-table th.sort-desc .sort-icon::after { content: '↓'; }
.data-table th.sort-asc .sort-icon,
.data-table th.sort-desc .sort-icon { font-size: 0; }
.data-table th.sort-asc .sort-icon::after,
.data-table th.sort-desc .sort-icon::after { font-size: 10px; }

.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
}
.data-table tbody tr { transition: background var(--transition); }
.data-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ==================== BADGES ==================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.badge-red { background: var(--red-dim); color: var(--red); }
.badge-orange { background: var(--orange-dim); color: var(--orange); }
.badge-green { background: var(--green-dim); color: var(--green); }
.badge-blue { background: var(--accent-dim); color: var(--accent); }
.badge-purple { background: var(--purple-dim); color: var(--purple); }
.badge-muted { background: rgba(139,143,163,0.12); color: var(--text-muted); }

/* ==================== CHAT ==================== */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  max-height: 700px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
  flex: 1;
}
.chat-welcome h2 { font-size: 18px; font-weight: 700; color: var(--text); }
.chat-welcome p { font-size: 14px; color: var(--text-muted); max-width: 400px; }

.chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
  animation: bubbleIn 0.25s ease;
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-bubble.assistant {
  align-self: flex-start;
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chat-bubble .chat-time {
  font-size: 10px;
  opacity: 0.5;
  margin-top: 4px;
  display: block;
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 24px;
  border-top: 1px solid var(--border);
}

.chip {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.chip:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }

.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.chat-input-area input {
  flex: 1;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}
.chat-input-area input:focus { border-color: var(--accent); }
.chat-input-area input::placeholder { color: var(--text-faint); }

.btn-send {
  padding: 10px 14px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
}
.btn-send:hover { background: var(--accent-hover); }

/* ==================== CONTRACTORS ==================== */
.contractors-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contractor-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contractor-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.contractor-item:hover { background: var(--card-hover); border-color: var(--border); }
.contractor-item.selected { background: var(--accent-dim); border-color: var(--accent); }

.contractor-item-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contractor-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.contractor-item-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.contractor-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.contractor-stat {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contractor-stat .cs-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.contractor-stat .cs-value { font-size: 20px; font-weight: 700; }

.violation-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.timeline-item {
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--border);
  font-size: 13px;
}
.timeline-item.auto-reject { border-left-color: var(--red); }
.timeline-item.flag-review { border-left-color: var(--orange); }
.timeline-item.human-review { border-left-color: var(--purple); }

.timeline-date { color: var(--text-faint); white-space: nowrap; min-width: 80px; }
.timeline-desc { color: var(--text); flex: 1; }
.timeline-amount { color: var(--orange); font-weight: 600; white-space: nowrap; }

/* ==================== VIOLATION FILTERS ==================== */
.violation-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.text-input, .select-input {
  padding: 8px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition);
}
.text-input:focus, .select-input:focus { border-color: var(--accent); }
.text-input::placeholder { color: var(--text-faint); }

.select-input { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8fa3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }
.select-input option { background: var(--card); color: var(--text); }



/* ==================== PAGINATION ==================== */
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 20px;
}
.page-btn {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
}
.page-btn:hover { color: var(--text); border-color: var(--border-light); }
.page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ==================== MODAL ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fadeIn 0.15s ease;
}
.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 { font-size: 16px; font-weight: 600; }
.modal-body { padding: 20px; }
.modal-footer { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

.label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.help-text { font-size: 12px; color: var(--text-faint); margin-top: 8px; line-height: 1.5; }

.modal-body .text-input { width: 100%; }

/* ==================== TOAST ==================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  animation: slideUp 0.3s ease;
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--accent); }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== LOGIN SCREEN ==================== */
.login-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  animation: fadeIn 0.3s ease;
}

.login-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  margin-bottom: 20px;
}

.login-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.login-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  margin-bottom: 32px;
}

.login-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition);
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 2px;
}
.login-input:focus { border-color: var(--accent); }
.login-input::placeholder { color: var(--text-faint); letter-spacing: 0; }

.login-error {
  font-size: 13px;
  color: var(--red);
  margin-bottom: 12px;
  animation: fadeIn 0.2s ease;
}

.login-btn {
  width: 100%;
  padding: 12px 24px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 24px;
}
.login-btn:hover { background: var(--accent-hover); }

.login-footer {
  font-size: 11px;
  color: var(--text-faint);
}

.app-hidden {
  display: none !important;
}

/* ==================== FOOTER ==================== */
.app-footer {
  text-align: center;
  padding: 16px 24px;
  font-size: 12px;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  background: var(--card);
}
.app-footer a { color: var(--accent); text-decoration: none; }
.app-footer a:hover { text-decoration: underline; }

/* ==================== EMPTY STATE ==================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  gap: 12px;
}
.empty-state svg { color: var(--text-faint); opacity: 0.5; }
.empty-state h3 { font-size: 16px; color: var(--text-muted); font-weight: 600; }
.empty-state p { font-size: 13px; color: var(--text-faint); max-width: 360px; }

/* ==================== LOADING DOTS ==================== */
.loading-dots { display: flex; gap: 4px; align-items: center; padding: 4px 0; }
.loading-dots span {
  width: 6px; height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: dotPulse 1.2s infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* ==================== FILTER ROW ==================== */
.filter-row { display: flex; gap: 8px; }

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .summary-cards { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .contractors-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .app-header { padding: 10px 16px; }
  .main-content { padding: 16px; }
  .tab-nav { padding: 0 16px; }
  
  .header-right .btn-icon span { display: none; }
  .header-right .btn-icon { padding: 8px; }
  
  .summary-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .summary-card { padding: 14px; }
  .summary-card .sc-value { font-size: 22px; }
  
  .violation-filters { flex-direction: column; }
  .violation-filters .text-input,
  .violation-filters .select-input { width: 100%; }
  
  .chat-container { height: calc(100vh - 180px); }
  .chat-chips { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .chat-chips::-webkit-scrollbar { display: none; }
  
  .contractors-layout { grid-template-columns: 1fr; }
  .contractor-detail-card { position: fixed; inset: 0; z-index: 150; border-radius: 0; margin: 0; }
}

@media (max-width: 480px) {
  .summary-cards { grid-template-columns: 1fr; }
  .logo-subtitle { display: none; }
  .tab-btn { font-size: 12px; padding: 10px 12px; }
  .tab-btn svg { display: none; }
}
