/* =====================================================================
   Demo Səyahət Agentliyi ERP — üslub cədvəli
   ===================================================================== */

:root {
  --primary: #0369a1;
  --primary-strong: #075985;
  --primary-soft: #e0f2fe;
  --accent: #ea580c;
  --bg: #f1f5f9;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --success: #15803d;
  --success-soft: #dcfce7;
  --warning: #b45309;
  --warning-soft: #fef3c7;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --info: #0369a1;
  --info-soft: #e0f2fe;
  --neutral-soft: #f1f5f9;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-1: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-2: 0 4px 16px rgba(15, 23, 42, .10);
  --shadow-3: 0 16px 48px rgba(15, 23, 42, .18);
  --sidebar-w: 248px;
  --header-h: 60px;
  --font: "Noto Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

a { color: var(--primary); }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ------------------------------ Yüklənmə ekranı ------------------------------ */
.boot-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.boot-spinner, .spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.spinner-sm { width: 16px; height: 16px; border-width: 2px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------ Giriş səhifəsi ------------------------------ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(900px 480px at 85% -10%, #dbeafe 0%, transparent 60%),
    radial-gradient(700px 420px at -10% 110%, #e0f2fe 0%, transparent 55%),
    var(--bg);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: 36px 32px 32px;
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  text-align: center;
}

.login-brand img { width: 56px; height: 56px; }

.login-brand h1 { font-size: 19px; font-weight: 700; margin: 0; }

.login-brand .sub { color: var(--text-2); font-size: 14px; font-weight: 500; }

.login-error {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 13.5px;
  margin-bottom: 16px;
}

/* ------------------------------ Form elementləri ------------------------------ */
.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}

.field .req { color: var(--danger); }

.input, .select, .textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
  min-height: 42px;
}

.textarea { resize: vertical; min-height: 84px; }

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(3, 105, 161, .15);
}

.input-wrap { position: relative; }

.input-wrap .input { padding-right: 44px; }

.eye-btn {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-3);
}

.eye-btn:hover { color: var(--text-2); background: var(--neutral-soft); }

.field-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ------------------------------ Düymələr ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  min-height: 42px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-strong); }

.btn-outline { background: var(--surface); border-color: var(--border-strong); color: var(--text-2); }
.btn-outline:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }

.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { background: var(--neutral-soft); color: var(--text); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #991b1b; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover:not(:disabled) { background: #166534; }

.btn-sm { padding: 6px 10px; min-height: 32px; font-size: 13px; border-radius: 8px; }

.btn-block { width: 100%; }

.btn-icon {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 8px;
}

/* ------------------------------ Tətbiq skeleti ------------------------------ */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: #0c2436;
  color: #cbe3f5;
  display: flex;
  flex-direction: column;
  z-index: 60;
  transition: transform .22s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-brand img { width: 36px; height: 36px; flex: none; }

.sidebar-brand .name { font-weight: 700; font-size: 14px; color: #fff; line-height: 1.3; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 10px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 2px;
  border: none;
  background: transparent;
  color: #b6d4e8;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background .15s, color .15s;
}

.nav-item svg { flex: none; opacity: .85; }

.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }

.nav-item.active { background: var(--primary); color: #fff; }

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 11.5px;
  color: #7fa8c4;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .5);
  z-index: 55;
}

.main-area {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ------------------------------ Başlıq ------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.burger { display: none; }

.global-search { position: relative; flex: 1; max-width: 440px; }

.global-search .input { padding-left: 38px; min-height: 40px; background: var(--neutral-soft); border-color: transparent; }

.global-search .input:focus { background: var(--surface); border-color: var(--primary); }

.global-search .search-ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
  display: flex;
}

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-3);
  max-height: 380px;
  overflow-y: auto;
  z-index: 70;
}

.search-result {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.search-result:last-child { border-bottom: none; }

.search-result:hover, .search-result:focus { background: var(--primary-soft); }

.search-result .t { font-weight: 600; font-size: 14px; }

.search-result .s { font-size: 12.5px; color: var(--text-2); }

.search-empty { padding: 14px; color: var(--text-3); font-size: 13.5px; text-align: center; }

.header-spacer { flex: 1; }

.menu-wrap { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-3);
  padding: 6px;
  z-index: 70;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
}

.dropdown-item:hover { background: var(--neutral-soft); }

.dropdown-item svg { color: var(--text-2); flex: none; }

.dropdown-sep { height: 1px; background: var(--border); margin: 6px 4px; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  cursor: pointer;
}

.user-chip:hover { border-color: var(--border-strong); }

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  flex: none;
}

.user-chip .un { font-size: 13.5px; font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------ Məzmun ------------------------------ */
.content { padding: 24px 24px 48px; max-width: 1440px; width: 100%; margin: 0 auto; }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.page-head h2 { margin: 0; font-size: 22px; font-weight: 700; }

.page-head .desc { color: var(--text-2); font-size: 13.5px; margin-top: 2px; }

.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.toolbar .input { max-width: 320px; }

/* ------------------------------ Kartlar ------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}

.card-pad { padding: 20px; }

.card-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow-1);
}

.kpi .ico {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.kpi .v { font-size: 20px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }

.kpi .l { font-size: 12.5px; color: var(--text-2); }

.ico-blue   { background: var(--info-soft);    color: var(--info); }
.ico-green  { background: var(--success-soft); color: var(--success); }
.ico-amber  { background: var(--warning-soft); color: var(--warning); }
.ico-red    { background: var(--danger-soft);  color: var(--danger); }
.ico-slate  { background: var(--neutral-soft); color: var(--text-2); }
.ico-orange { background: #ffedd5; color: var(--accent); }

.alert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.alert-card {
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid;
  cursor: pointer;
  background: var(--surface);
  transition: box-shadow .15s;
  text-align: left;
  font: inherit;
}

.alert-card:hover { box-shadow: var(--shadow-2); }

.alert-card.warn   { border-color: #fde68a; background: #fffbeb; }
.alert-card.danger { border-color: #fecaca; background: #fef2f2; }
.alert-card.info   { border-color: #bae6fd; background: #f0f9ff; }

.alert-card .t { font-weight: 700; font-size: 13.5px; }

.alert-card .s { font-size: 12.5px; color: var(--text-2); }

.chart-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.table-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ------------------------------ Cədvəllər ------------------------------ */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }

.tbl th {
  text-align: left;
  padding: 11px 14px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
  white-space: nowrap;
}

.tbl td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.tbl tbody tr:last-child td { border-bottom: none; }

.tbl tbody tr:hover { background: #f8fafc; }

.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.tbl .actions { display: flex; gap: 6px; justify-content: flex-end; }

.t-strong { font-weight: 600; }

.t-muted { color: var(--text-3); }

.t-sub { font-size: 12px; color: var(--text-2); }

/* ------------------------------ Nişanlar ------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.badge-green  { background: var(--success-soft); color: var(--success); }
.badge-blue   { background: var(--info-soft);    color: var(--info); }
.badge-amber  { background: var(--warning-soft); color: var(--warning); }
.badge-red    { background: var(--danger-soft);  color: var(--danger); }
.badge-slate  { background: var(--neutral-soft); color: var(--text-2); }
.badge-purple { background: #f3e8ff; color: #7e22ce; }
.badge-orange { background: #ffedd5; color: var(--accent); }

/* İctimai kod nişanı (klik = kopyala) */
.code-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  margin-top: 2px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--neutral-soft);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  cursor: copy;
  transition: border-color .15s, color .15s, background .15s;
}

.code-badge::after {
  content: "⧉";
  font-size: 10px;
  opacity: .55;
}

.code-badge:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

/* ------------------------------ Modal ------------------------------ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px;
  z-index: 100;
  overflow-y: auto;
}

.modal {
  width: 100%;
  max-width: 540px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  animation: modal-in .18s ease-out;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 0;
}

.modal-head h3 { margin: 0; font-size: 17px; }

.modal-body { padding: 18px 22px; }

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 22px 20px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

/* ------------------------------ Bildirişlər ------------------------------ */
.toast-zone {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(360px, calc(100vw - 40px));
}

.toast {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #0f172a;
  color: #f1f5f9;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13.5px;
  box-shadow: var(--shadow-3);
  animation: toast-in .2s ease-out;
}

.toast.ok svg { color: #4ade80; }
.toast.err svg { color: #f87171; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------ Vəziyyət blokları ------------------------------ */
.state-block {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-2);
}

.state-block svg { color: var(--text-3); margin-bottom: 12px; }

.state-block .t { font-weight: 700; color: var(--text); margin-bottom: 4px; }

.state-block .s { font-size: 13.5px; }

.state-block .btn { margin-top: 16px; }

.loading-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  color: var(--text-2);
}

/* ------------------------------ Diaqramlar ------------------------------ */
.chart-box svg { display: block; width: 100%; height: auto; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }

.legend .li { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); }

.legend .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* ------------------------------ Hesabatlar / Parametrlər ------------------------------ */
.report-grid, .settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.setting-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.setting-item:last-child { border-bottom: none; }

.setting-item .k { font-size: 12.5px; color: var(--text-2); }

.setting-item .v { font-weight: 600; }

/* ------------------------------ Responsiv ------------------------------ */
@media (max-width: 1100px) {
  .chart-grid { grid-template-columns: 1fr 1fr; }
  .chart-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: none; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-3); }
  .sidebar-overlay.show { display: block; }
  .main-area { margin-left: 0; }
  .burger { display: inline-flex; }
  .table-grid { grid-template-columns: 1fr; }
  .user-chip .un { display: none; }
}

@media (max-width: 640px) {
  .content { padding: 16px 14px 40px; }
  .chart-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .global-search { max-width: none; }
  .header { padding: 0 12px; }
  .page-head h2 { font-size: 19px; }
}

/* =====================================================================
   V2 — CRM əlavələri: yan panel qrupları, müştəri profili, sənəd yükləmə
   ===================================================================== */

/* Yan paneldə bölmə qrupu başlıqları */
.nav-group {
  padding: 14px 14px 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  user-select: none;
}

/* Cədvəldə keçid kimi görünən düymə (müştəri adı → profil) */
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--primary);
  cursor: pointer;
  text-align: left;
}
.link-btn:hover { text-decoration: underline; color: var(--primary-strong); }

/* Müştəri profili — üst blok: şəxsi məlumat + maliyyə xülasəsi */
.profile-top {
  display: grid;
  grid-template-columns: minmax(320px, 5fr) minmax(360px, 7fr);
  gap: 18px;
  margin-bottom: 18px;
}
@media (max-width: 1100px) {
  .profile-top { grid-template-columns: 1fr; }
}

.profile-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
}
.profile-info .setting-item { padding: 9px 0; }

.profile-note {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--neutral-soft);
  border-radius: var(--radius);
  font-size: 13px;
}

/* Profil bölmələri — hər xidmət növü ayrıca kartda */
.profile-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
  gap: 18px;
}
@media (max-width: 560px) {
  .profile-sections { grid-template-columns: 1fr; }
}
.profile-sections .card { min-width: 0; }

/* Grid daxilindəki geniş cədvəllər (məs. Maliyyə xülasəsi) kartı öz
   minimal eninə qədər böyüdə bilməsin — əks halda bütün səhifə üfüqi
   sürüşür, sol tərəf yan panelin altında qalır və ad/soyadın ilk
   hərfləri görünmür. Geniş cədvəllər öz .table-wrap daxilində sürüşür. */
.profile-top > .card { min-width: 0; }
.profile-top .table-wrap { max-width: 100%; }

/* Təhlükəsizlik toru: məzmun sahəsi heç vaxt üfüqi sürüşməsin —
   geniş məzmun yalnız öz konteynerində (.table-wrap) sürüşür */
.content { overflow-x: hidden; overflow-x: clip; }

/* Sənəd yükləmə sətri */
.upload-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.upload-row .select { width: auto; min-width: 150px; }
.upload-row .input[type="file"] { flex: 1; min-width: 200px; padding: 7px 10px; }

/* V3 — icazə səhifəsi */
.perm-note {
  margin-bottom: 14px;
  padding: 10px 14px;
  background: var(--warning-soft);
  color: var(--warning);
  border-radius: var(--radius);
  font-size: 13px;
}
.perm-cb { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.perm-cb:disabled { cursor: not-allowed; }
.toolbar .flt-ctl { flex: none; }
