:root {
  --bg: #e7edf2;
  --card: #ffffff;
  --text: #101827;
  --muted: #4e5d70;
  --border: #c6d3dd;
  --soft: #e4ebf2;
  --accent: #0f4fb8;
  --accent-soft: #dceaff;
  --accent-deep: #082b63;
  --sidebar-bg: #f7f9fc;
  --sidebar-border: #aebdca;
  --button-bg: #0d3f8f;
  --button-bg-hover: #082b63;
  --warn: #a15c00;
  --warn-soft: #fff4df;
  --ok: #147a45;
  --ok-soft: #e8f7ef;
  --danger: #b42318;
  --danger-soft: #fff0ee;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(15, 79, 184, 0.16), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 34%);
  color: var(--text);
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 18px 32px 16px;
  border-bottom: 1px solid rgba(174, 189, 202, 0.72);
}

h1,
h2,
h3 {
  letter-spacing: -0.03em;
}

h1 {
  margin: 4px 0 0;
  font-size: 26px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #082b63, #0f4fb8);
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(8, 43, 99, 0.22);
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.health {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #b7c6d4;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 12px;
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.health strong {
  color: var(--accent-deep);
}

.health span {
  color: #6a7788;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  padding: 0 32px 32px;
  align-items: start;
}

.panel,
.card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(18, 31, 53, 0.07);
  backdrop-filter: blur(6px);
}

.sidebar {
  position: sticky;
  top: 20px;
  padding: 18px;
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, #eef3f8 100%);
  border-color: var(--sidebar-border);
  box-shadow: 0 18px 42px rgba(16, 24, 39, 0.11);
}

.sidebar-head h2 {
  margin: 8px 0 10px;
  font-size: 24px;
  line-height: 1;
}

.sidebar-head p,
.sidebar-foot p,
.hero-copy p,
.page-header p,
.stat-card p,
.stats-list-item p,
.subtle,
.meta {
  color: var(--muted);
}

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

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #526477;
  padding: 0 4px;
}

.menu-link {
  display: grid;
  gap: 3px;
  padding: 11px 13px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: #3e5064;
  background: #ffffff;
  border: 1px solid #d2dde7;
  border-left: 5px solid var(--accent);
  transition: 0.16s ease;
  box-shadow: 0 4px 12px rgba(16, 24, 39, 0.035);
}

.menu-link strong {
  color: #172033;
  font-size: 14px;
  line-height: 1.15;
}

.menu-link span {
  color: #5d6f82;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.menu-link:hover {
  color: var(--accent-deep);
  border-color: #8db2ed;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 79, 184, 0.13);
}

.menu-link.active {
  color: #ffffff;
  border-color: var(--accent-deep);
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  box-shadow: 0 16px 30px rgba(8, 43, 99, 0.22);
}

.menu-link.active strong,
.menu-link.active span {
  color: #ffffff;
}

.menu-link-detail {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
}

.workspace {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page {
  width: min(1180px, 100%);
}

.page-home {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(380px, 1.45fr);
  gap: 18px;
  padding: 18px;
  align-items: stretch;
}

.hero-copy h2,
.page-header h2 {
  margin: 10px 0 12px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 0.98;
}

.hero-copy {
  align-self: center;
}

.page-header {
  padding: 24px 28px;
}

.home-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.module-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  text-decoration: none;
  color: var(--text);
  border-left: 5px solid var(--accent);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.module-card:hover {
  transform: translateY(-2px);
  border-color: #8db2ed;
  border-left-color: var(--accent-deep);
  box-shadow: 0 18px 38px rgba(8, 43, 99, 0.16);
}

.module-card strong {
  font-size: 18px;
}

.module-card span:not(.module-kicker) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.module-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-box {
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
  border: 1px solid #b9c9d8;
  border-radius: 22px;
  padding: 18px;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
}

input,
select {
  width: 100%;
  border: 1px solid #b8c6d4;
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 15px;
  outline: none;
  background: #fff;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.search-toolbar {
  margin-top: 12px;
}

.field-group label {
  display: block;
  font-size: 12px;
  color: #435469;
  margin-bottom: 6px;
}

.secondary-button {
  width: 100%;
  margin-top: 12px;
  border: 1px solid var(--button-bg);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--button-bg);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s ease;
}

.secondary-button:hover {
  border-color: var(--button-bg-hover);
  background: var(--button-bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(8, 43, 99, 0.22);
}

.results-panel {
  padding: 20px;
}

.results-more {
  width: auto;
  min-width: 180px;
  display: block;
  margin: 18px auto 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title-controls {
  align-items: flex-end;
}

.compact-field {
  min-width: 220px;
  margin-bottom: 0;
}

.section-title h3,
.card h3 {
  margin: 0;
  font-size: 18px;
}

.results-meta,
.count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.result {
  display: block;
  border: 1px solid #c0ceda;
  border-radius: 18px;
  padding: 15px;
  text-decoration: none;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  transition: 0.18s ease;
}

.result:hover {
  transform: translateY(-2px);
  border-color: #7fa8e6;
  box-shadow: 0 12px 24px rgba(8, 43, 99, 0.13);
}

.result strong {
  display: block;
  font-size: 15px;
}

.result span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.5;
}

.page-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-database {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.database-controls,
.database-panel {
  padding: 20px;
}

.database-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.database-actions {
  display: flex;
  gap: 10px;
  align-items: end;
}

.database-actions .secondary-button {
  margin-top: 0;
}

.database-actions .danger-button {
  border-color: rgba(180, 35, 24, 0.32);
  background: var(--danger-soft);
  color: var(--danger);
}

.inline-check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.database-table-wrapper {
  overflow: auto;
  border: 1px solid #b9c9d8;
  border-radius: 18px;
}

.database-editor-panel {
  padding: 22px;
}

.database-row-actions {
  min-width: 150px;
  white-space: nowrap;
}

.database-row-actions .table-sort-button + .table-sort-button {
  margin-left: 8px;
}

.database-table {
  min-width: 100%;
}

.table-sort-button {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.table-sort-button:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

.table-sort-button.active-month {
  color: var(--accent);
  text-decoration: underline;
}

.database-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.pagination-button {
  width: auto;
  min-width: 150px;
  margin-top: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stats-query-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stats-query-panel {
  padding: 20px;
}

.stats-query-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stats-query-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.stats-query-actions {
  margin-top: 18px;
}

.billing-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.billing-panel {
  padding: 22px;
}

.billing-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.billing-actions,
.billing-export-actions {
  margin-top: 16px;
}

.page-simulation,
.simulation-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.simulation-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.simulation-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-left: 6px solid var(--accent);
}

.simulation-card::after {
  content: "";
  position: absolute;
  inset: auto -42px -58px auto;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: rgba(15, 79, 184, 0.09);
}

.simulation-card-alert {
  border-left-color: var(--danger);
}

.simulation-card-warning {
  border-left-color: var(--warn);
}

.simulation-card-info {
  border-left-color: var(--ok);
}

.simulation-card > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.simulation-card > strong {
  display: block;
  margin-top: 8px;
  color: var(--accent-deep);
  font-size: 34px;
  line-height: 1;
}

.simulation-card h3 {
  margin: 12px 0 8px;
}

.simulation-card p {
  min-height: 42px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.simulation-card-actions,
.simulation-actions {
  margin-top: 16px;
}

.simulation-detail,
.simulation-map-panel {
  padding: 22px;
}

.simulation-table-wrapper {
  margin-top: 16px;
}

.simulation-map {
  height: 760px;
  margin-top: 14px;
}

.billing-run-item {
  width: 100%;
  border: 1px solid var(--border);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.billing-run-item:hover {
  border-color: #b8c7dd;
  transform: translateY(-1px);
}

.stat-card {
  padding: 18px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 34px;
  line-height: 1;
}

.stats-panel-wide {
  grid-column: 1 / -1;
  padding: 22px;
}

.quality-bar {
  margin: 16px 0 10px;
  height: 14px;
  border-radius: 999px;
  background: #e7edf4;
  overflow: hidden;
}

.quality-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f7a44 0%, #1fa75b 100%);
}

.stats-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stats-list-item {
  padding: 14px;
  border: 1px solid #c0ceda;
  border-radius: 18px;
  background: #fbfcfe;
}

.stats-list-item strong,
.stats-list-item span {
  display: block;
}

.stats-list-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.inline-link {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

.page-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-toolbar {
  display: flex;
  justify-content: flex-start;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  color: var(--accent);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(232, 240, 255, 0.9);
  border: 1px solid #cfe0ff;
}

.back-link:hover {
  background: #dfeafe;
}

.fiche {
  min-height: 70vh;
}

.empty {
  display: grid;
  place-items: center;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 32px;
}

.fiche-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  border-radius: 24px 24px 0 0;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.title-row h2 {
  margin: 0;
  font-size: 30px;
}

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.badge {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  background: #dde7f0;
  color: #34465a;
}

.badge.ok {
  color: var(--ok);
  background: var(--ok-soft);
}

.badge.warn {
  color: var(--warn);
  background: var(--warn-soft);
}

.badge.danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alert {
  border: 1px solid #f1ca8d;
  background: var(--warn-soft);
  color: var(--warn);
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 600;
}

.card {
  padding: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.kpi,
.example-kpi {
  background: var(--soft);
  border-radius: 16px;
  padding: 12px;
}

.kpi span,
.example-kpi span {
  color: var(--muted);
  font-size: 12px;
  display: block;
}

.kpi strong,
.example-kpi strong {
  margin-top: 3px;
  display: block;
  font-size: 15px;
  word-break: break-word;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
}

th,
td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: top;
}

th {
  color: var(--muted);
  background: #f7f9fb;
  font-weight: 700;
}

.examples {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.example-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background: #fbfcfe;
}

.example-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.example-head span {
  color: var(--muted);
  font-size: 12px;
}

.example-card p {
  margin: 0 0 12px;
  color: var(--text);
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.map-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background: #fbfcfe;
  margin-bottom: 16px;
}

.map-container {
  width: 100%;
  height: 260px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #eef3f8, #f8fbff);
}

.map-loading {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-weight: 600;
}

.detail-toggle {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fbfcfe;
  overflow: hidden;
}

.detail-toggle summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--accent);
}

.detail-toggle summary::-webkit-details-marker {
  display: none;
}

.detail-toggle[open] summary {
  border-bottom: 1px solid var(--border);
}

.detail-toggle-body {
  padding: 14px 16px 16px;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .sidebar-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .topbar,
  .app-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .results,
  .home-shortcuts,
  .database-controls,
  .stats-query-controls,
  .stats-query-columns,
  .billing-controls,
  .stats-grid,
  .stats-list {
    grid-template-columns: 1fr;
  }

  .grid,
  .example-grid {
    grid-template-columns: 1fr 1fr;
  }

  .title-row,
  .example-head,
  .section-title {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .sidebar-nav,
  .home-shortcuts,
  .grid,
  .example-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h2,
  .page-header h2 {
    font-size: 34px;
  }

  .results-panel,
  .database-controls,
  .database-panel,
  .search-box,
  .card,
  .fiche-header,
  .content,
  .stats-panel-wide,
  .page-header {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.auth-user {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--soft);
  color: var(--text);
  font-size: 13px;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-shell {
  width: min(100%, 460px);
}

.login-panel {
  padding: 28px;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.login-submit {
  width: 100%;
  justify-content: center;
}

.login-error {
  color: var(--danger);
}

.topbar-actions .secondary-button {
  width: auto;
  margin-top: 0;
}

.page-admin {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-panel {
  padding: 22px;
}

.admin-tabs-panel {
  padding: 12px;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-tab {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 13px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(21, 72, 132, 0.35);
  box-shadow: 0 12px 26px rgba(21, 72, 132, 0.12);
}

.admin-tab.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(21, 72, 132, 0.22);
}

.admin-tab strong,
.admin-tab span {
  display: block;
}

.admin-tab strong {
  font-size: 13px;
  line-height: 1.2;
}

.admin-tab span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.admin-tab.active span {
  color: rgba(255, 255, 255, 0.78);
}

.admin-auth-note {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f7fafc;
}

.admin-auth-note p {
  margin: 8px 0 0;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.field-group-wide {
  grid-column: 1 / -1;
}

.admin-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: #fbfcfe;
}

.check-item input {
  width: auto;
  margin-top: 3px;
}

.check-item span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.check-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.check-item-disabled {
  opacity: 0.72;
}

.admin-inline-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fbfcfe;
  color: var(--muted);
  font-size: 13px;
}

.admin-table-wrapper {
  margin-top: 16px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.admin-notice {
  padding: 18px 20px;
}

.admin-notice strong {
  display: block;
  margin-bottom: 6px;
}

.admin-notice p {
  margin: 0;
}

.admin-notice-success {
  border-color: #b8e2c7;
  background: var(--ok-soft);
  color: var(--ok);
}

.admin-notice-error {
  border-color: #efc1bb;
  background: var(--danger-soft);
  color: var(--danger);
}

.billing-progress {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.billing-progress-head,
.billing-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.billing-progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
}

.billing-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #2f8f5b);
  transition: width 0.45s ease;
}

.admin-catalog-group + .admin-catalog-group {
  margin-top: 18px;
}

@media (max-width: 980px) {
  .simulation-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-form-grid,
  .admin-check-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .simulation-kpis {
    grid-template-columns: 1fr;
  }

  .simulation-map {
    height: 540px;
  }

  .admin-tabs {
    grid-template-columns: 1fr;
  }
}
