/* ProxiLocal — panel commerçant / admin */
.panel-body {
  margin: 0;
  font-family: var(--font, system-ui, sans-serif);
  background: #f1f5f9;
  color: #0f172a;
  min-height: 100dvh;
}
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 30;
  flex-wrap: wrap;
}
.panel-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: .88rem;
  font-weight: 700;
}
.panel-nav a { color: #0f766e; text-decoration: none; }
.panel-nav a:hover { text-decoration: underline; }
.panel-main {
  max-width: 920px;
  margin: 0 auto;
  padding: 16px;
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.panel-head h1 { margin: 0; font-size: 1.35rem; letter-spacing: -.02em; }
.panel-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.panel-section h2 { margin: 0 0 10px; font-size: 1.05rem; }
.panel-section h3 { margin: 18px 0 10px; font-size: .95rem; }

.auth-card {
  max-width: 420px;
  margin: 32px auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 8px 28px rgba(15,23,42,.06);
}
.auth-card h1 { margin: 0 0 6px; font-size: 1.35rem; }
.auth-links { margin-top: 16px; font-size: .9rem; }
.auth-links a { color: #0f766e; font-weight: 700; }
.hint { font-size: .8rem; color: #64748b; margin-top: 12px; background: #f8fafc; padding: 10px; border-radius: 10px; }
.hint code { font-size: .78rem; }

.stack-form { display: grid; gap: 12px; }
.stack-form label {
  display: grid;
  gap: 6px;
  font-size: .85rem;
  font-weight: 700;
  color: #334155;
}
.stack-form input, .stack-form select, .stack-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  background: #fff;
}
.stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus {
  outline: 2px solid #99f6e4;
  border-color: #0d9488;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}
.btn-block { width: 100%; min-height: 48px; }
.btn-primary {
  border: 0;
  background: #0d9488;
  color: #fff;
  font-weight: 800;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-primary:hover { background: #0f766e; }
.btn-ghost-border {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.btn-danger, .btn-danger-sm {
  border: 0;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 800;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
}
.btn-danger-sm { padding: 6px 10px; font-size: .78rem; }
.muted { color: #64748b; margin: 0; }
.muted.small, .small { font-size: .8rem; }
.mono { font-family: ui-monospace, monospace; font-size: .8rem; }

.flash-stack { max-width: 920px; margin: 12px auto 0; padding: 0 16px; display: grid; gap: 8px; }
.flash { padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: .9rem; }
.flash-success { background: #dcfce7; color: #166534; }
.flash-error { background: #fee2e2; color: #991b1b; }
.flash-info { background: #e0f2fe; color: #075985; }

.empty-panel {
  text-align: center;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  padding: 32px 16px;
}
.empty-panel strong { display: block; margin-bottom: 6px; }

.table-cards { display: grid; gap: 12px; }
.panel-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 12px;
}
.panel-card-main { display: flex; gap: 12px; align-items: flex-start; }
.panel-card-main h2 { margin: 0 0 4px; font-size: 1.05rem; }
.thumb {
  width: 64px; height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: #ecfdf5;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}
.panel-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.stat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}
.stat-card strong { display: block; font-size: 1.4rem; color: #0f766e; }
.stat-card span { font-size: .78rem; color: #64748b; font-weight: 600; }

.import-box .import-row { display: flex; gap: 8px; }
.import-box .import-row input { flex: 1; border: 1px solid #cbd5e1; border-radius: 12px; padding: 12px; font: inherit; }
.google-results { margin-top: 10px; display: grid; gap: 8px; }
.google-result {
  text-align: left;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  width: 100%;
  font: inherit;
}
.google-result:hover { border-color: #0d9488; background: #f0fdfa; }
.google-result strong { display: block; }
.google-result span { font-size: .82rem; color: #64748b; }

.picker-map, .detail-map, .main-map {
  height: 240px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  z-index: 1;
}
.hours-editor { display: grid; gap: 8px; }
.hours-row {
  display: grid;
  grid-template-columns: 90px 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  font-size: .88rem;
  font-weight: 600;
}
.hours-row input { border: 1px solid #cbd5e1; border-radius: 10px; padding: 8px; font: inherit; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.photo-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.photo-item img { width: 100%; height: 110px; object-fit: cover; display: block; }
.photo-item form { padding: 6px; }
.photo-item .badge { position: absolute; top: 6px; left: 6px; }

.check-inline {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 600 !important;
}
.check-inline input { width: auto !important; }

.premium-box .price {
  font-size: 2rem;
  font-weight: 900;
  color: #0f766e;
  margin: 8px 0 12px;
}
.premium-box .price span { font-size: 1rem; color: #64748b; font-weight: 600; }
.feature-list { margin: 0 0 16px; padding-left: 1.1rem; color: #334155; }
.feature-list li { margin: 6px 0; }

.table-wrap { overflow-x: auto; background: #fff; border-radius: 16px; border: 1px solid #e2e8f0; }
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; text-align: left; vertical-align: top; }
.data-table th { background: #f8fafc; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: #64748b; }
.actions-cell { white-space: nowrap; }
.actions-cell a, .link-btn {
  color: #0f766e;
  font-weight: 700;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  margin-right: 8px;
}
.filters-admin {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.filters-admin input, .filters-admin select {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
}
.danger-zone { border-color: #fecaca; background: #fff7f7; }
