:root {
  --green-900: #174532;
  --green-800: #1f5f45;
  --green-700: #2f7d5b;
  --green-100: #e7f3ed;
  --cream: #fff8ed;
  --cream-2: #f8ecd9;
  --orange: #f6a43a;
  --orange-100: #fff0d9;
  --red: #e4514f;
  --red-100: #ffe4e3;
  --text: #1f2933;
  --muted: #637083;
  --white: #ffffff;
  --shadow: 0 22px 50px rgba(31, 95, 69, 0.16);
  --radius-xl: 30px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(246, 164, 58, 0.24), transparent 28%),
    radial-gradient(circle at 90% 5%, rgba(47, 125, 91, 0.22), transparent 30%),
    linear-gradient(145deg, var(--cream), #ffffff 52%, #edf7f1);
}

body { min-height: 100vh; overflow: hidden; }

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.52; }

.app-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 36px);
}

.screen {
  width: min(1080px, 100%);
  min-height: min(760px, calc(100vh - 40px));
  background: rgba(255, 255, 255, 0.89);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(47, 125, 91, 0.12), transparent 40%),
    radial-gradient(circle at bottom right, rgba(246, 164, 58, 0.16), transparent 35%);
}

.content {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
}

.home-content {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 26px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green-100);
  color: var(--green-900);
  border: 1px solid rgba(47, 125, 91, 0.2);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-dot {
  width: 13px;
  height: 13px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(246, 164, 58, 0.18);
}

h1, h2, p { margin: 0; }

h1 {
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.96;
  color: var(--green-900);
  letter-spacing: -0.05em;
  max-width: 880px;
}

h2 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.02;
  color: var(--green-900);
  letter-spacing: -0.04em;
  max-width: 920px;
}

.lead {
  color: var(--muted);
  font-size: clamp(21px, 2.5vw, 30px);
  line-height: 1.35;
  max-width: 780px;
}

.subtle {
  color: var(--muted);
  font-size: 17px;
}

.primary-btn, .secondary-btn, .danger-btn, .ghost-btn {
  border: none;
  border-radius: 22px;
  padding: 20px 30px;
  min-height: 72px;
  font-weight: 900;
  font-size: clamp(20px, 2.2vw, 28px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  box-shadow: 0 18px 34px rgba(31, 95, 69, 0.22);
}

.secondary-btn {
  color: var(--green-900);
  background: var(--green-100);
  border: 1px solid rgba(47, 125, 91, 0.18);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.8);
  color: var(--green-900);
  border: 1px solid rgba(47, 125, 91, 0.18);
}

.danger-btn {
  background: var(--red-100);
  color: #8f1e1e;
}

.primary-btn:hover, .secondary-btn:hover, .ghost-btn:hover, .danger-btn:hover,
.option-card:hover, .satisfaction-card:hover {
  transform: translateY(-2px);
}

.primary-btn:active, .secondary-btn:active, .ghost-btn:active, .danger-btn:active,
.option-card:active, .satisfaction-card:active {
  transform: translateY(0);
}

.home-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.home-footer-note {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(92%, 760px);
  color: var(--muted);
  font-size: clamp(12px, 1.5vw, 15px);
  font-weight: 700;
  letter-spacing: 0.01em;
  opacity: 0.92;
}


.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 34px 0;
}

.progress-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.progress-label {
  color: var(--green-900);
  font-weight: 900;
  white-space: nowrap;
}

.progress-track {
  height: 12px;
  flex: 1;
  background: #e9efe9;
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green-700), var(--orange));
  border-radius: 99px;
  transition: width 240ms ease;
}

.question-content { gap: 28px; justify-content: flex-start; }

.question-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.options-grid.one-col { grid-template-columns: 1fr; }
.options-grid.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.option-card, .satisfaction-card {
  min-height: 104px;
  border-radius: 24px;
  border: 2px solid rgba(47, 125, 91, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  padding: 22px;
  text-align: left;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(23, 69, 50, 0.08);
  transition: all 160ms ease;
  display: flex;
  align-items: center;
  gap: 16px;
}

.option-card.selected {
  background: var(--green-100);
  border-color: var(--green-700);
  box-shadow: 0 18px 32px rgba(47, 125, 91, 0.16);
}

.option-check {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 3px solid rgba(47, 125, 91, 0.35);
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--white);
  flex: 0 0 auto;
}

.option-card.selected .option-check {
  background: var(--green-700);
  border-color: var(--green-700);
}

.option-check::after { content: ""; }
.option-card.selected .option-check::after { content: "✓"; font-weight: 1000; }

.field, .select-field, textarea.field {
  width: 100%;
  border: 2px solid rgba(47, 125, 91, 0.2);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  padding: 22px 22px;
  font-size: clamp(20px, 2.2vw, 28px);
  outline: none;
  transition: border 160ms ease, box-shadow 160ms ease;
}

.field:focus, .select-field:focus, textarea.field:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 6px rgba(47, 125, 91, 0.12);
}

.select-field { appearance: auto; min-height: 78px; }

.extra-field { display: none; }
.extra-field.visible { display: block; }

.navbar {
  position: relative;
  z-index: 2;
  padding: 0 34px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.navbar button { min-width: 210px; }

.notice {
  background: rgba(255, 240, 217, 0.85);
  border: 1px solid rgba(246, 164, 58, 0.3);
  color: #6c430f;
  padding: 15px 18px;
  border-radius: 18px;
  font-weight: 750;
}

.error {
  background: var(--red-100);
  color: #8f1e1e;
  border: 1px solid rgba(228, 81, 79, 0.28);
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 850;
  display: none;
}
.error.visible { display: block; }

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

.satisfaction-card {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 230px;
}

.satisfaction-card .emoji { font-size: clamp(64px, 8vw, 96px); line-height: 1; }
.satisfaction-card .label { font-size: clamp(20px, 2.4vw, 30px); }
.satisfaction-card.red { background: #fff8f8; }
.satisfaction-card.orange { background: #fff9ef; }
.satisfaction-card.green { background: #f2fbf6; }
.satisfaction-card.red.selected { border-color: var(--red); background: var(--red-100); }
.satisfaction-card.orange.selected { border-color: var(--orange); background: var(--orange-100); }
.satisfaction-card.green.selected { border-color: var(--green-700); background: var(--green-100); }

.thanks-content {
  justify-content: center;
  text-align: center;
  align-items: center;
  gap: 26px;
}

.thanks-icon {
  width: 132px;
  height: 132px;
  border-radius: 38px;
  background: linear-gradient(135deg, var(--green-700), var(--orange));
  color: white;
  font-size: 70px;
  display: grid;
  place-items: center;
  box-shadow: 0 20px 40px rgba(31, 95, 69, 0.18);
}

.admin-layout {
  width: min(1200px, 100%);
  min-height: calc(100vh - 32px);
}

.admin-content { gap: 22px; }

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
}

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

.stat-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(47, 125, 91, 0.16);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 12px 24px rgba(23, 69, 50, 0.07);
}

.stat-label { color: var(--muted); font-weight: 800; }
.stat-value { color: var(--green-900); font-size: 42px; font-weight: 1000; margin-top: 6px; }

.admin-actions, .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.admin-actions button, .filters button { min-height: 54px; padding: 14px 18px; font-size: 16px; border-radius: 15px; }
.filters input, .filters select {
  min-height: 54px;
  padding: 12px 14px;
  border-radius: 15px;
  border: 1px solid rgba(47, 125, 91, 0.22);
  background: white;
}

.table-wrap {
  flex: 1;
  min-height: 300px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(47, 125, 91, 0.14);
  border-radius: 22px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 14px;
  border-bottom: 1px solid #edf1ed;
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  background: #f5fbf7;
  color: var(--green-900);
  font-weight: 1000;
  z-index: 1;
}

.password-box {
  margin: auto;
  width: min(560px, 100%);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow);
}

.small-link {
  color: var(--green-800);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 820px) {
  body { overflow: auto; }
  .app-shell { align-items: stretch; padding: 12px; }
  .screen { min-height: calc(100vh - 24px); border-radius: 22px; }
  .content { padding: 24px; }
  .topbar { padding: 18px 22px 0; }
  .navbar { padding: 0 22px 22px; }
  .options-grid, .options-grid.three-col, .satisfaction-grid, .admin-cards { grid-template-columns: 1fr; }
  .navbar button { min-width: 0; flex: 1; }
  .primary-btn, .secondary-btn, .danger-btn, .ghost-btn { min-height: 64px; padding: 16px 18px; }
  h1 { font-size: 44px; }
  h2 { font-size: 35px; }
  .satisfaction-card { min-height: 160px; }
}

.admin-home-btn {
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 4;
  border: 1px solid rgba(47, 125, 91, 0.22);
  background: rgba(255, 255, 255, 0.62);
  color: var(--green-800);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.12em;
  opacity: 0.45;
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.admin-home-btn:hover,
.admin-home-btn:focus {
  opacity: 1;
  background: var(--green-100);
  transform: translateY(-1px);
}

.field-label {
  color: var(--green-900);
  font-weight: 900;
  margin-bottom: -10px;
}

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

.breakdown-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(47, 125, 91, 0.15);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 12px 24px rgba(23, 69, 50, 0.06);
}

.breakdown-card h3 {
  margin: 0 0 12px;
  color: var(--green-900);
  font-size: 18px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #edf1ed;
  color: var(--text);
  font-weight: 750;
}

.breakdown-row:last-child { border-bottom: 0; }
.breakdown-row strong { color: var(--green-900); }
.download-actions .ghost-btn { font-size: 15px; min-height: 54px; padding: 14px 16px; }

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

@media (max-width: 820px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .admin-home-btn { right: 16px; bottom: 12px; }
}

/* Optimisation spécifique du tableau de bord pour tablette */
.admin-layout {
  width: min(1180px, 100%);
  min-height: calc(100vh - 24px);
  max-height: calc(100vh - 24px);
}

.admin-layout .content.admin-content {
  padding: clamp(16px, 2.2vw, 30px);
  gap: 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-header {
  align-items: center;
}

.admin-header h2 {
  font-size: clamp(34px, 4vw, 46px);
}

.admin-header .subtle {
  font-size: 15px;
}

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

.stat-card {
  padding: 14px;
  border-radius: 18px;
}

.stat-label {
  font-size: 13px;
  line-height: 1.2;
}

.stat-value {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1;
}

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

.breakdown-card {
  padding: 14px;
  border-radius: 18px;
}

.breakdown-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.breakdown-row {
  padding: 6px 0;
  font-size: 13px;
}

.admin-control-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  gap: 12px;
  align-items: stretch;
}

.tablet-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(47, 125, 91, 0.14);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 10px 22px rgba(23, 69, 50, 0.06);
}

.panel-title {
  width: 100%;
  color: var(--green-900);
  font-weight: 1000;
  font-size: 15px;
  margin-bottom: 2px;
}

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

.filters .panel-title { grid-column: 1 / -1; }

.filters input,
.filters select,
.filters button {
  width: 100%;
  min-height: 48px;
}

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

.download-actions .panel-title,
.download-actions .export-main-btn {
  grid-column: 1 / -1;
}

.export-main-btn {
  min-height: 64px !important;
  font-size: clamp(20px, 2.4vw, 26px) !important;
  border-radius: 20px !important;
}

.table-wrap {
  min-height: 220px;
  max-height: 34vh;
  overflow: auto;
}

.table-wrap table {
  min-width: 920px;
}

@media (max-width: 1100px) {
  .admin-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-control-panel { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .admin-layout {
    min-height: calc(100vh - 16px);
    max-height: calc(100vh - 16px);
  }

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

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .filters,
  .download-actions {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    max-height: 42vh;
  }
}

/* Version simplifiée du tableau de bord : priorité au tableau des données collectées */
.admin-tablet-simple .admin-content {
  gap: 12px;
}

.admin-tablet-simple .dashboard-summary {
  padding: 12px 16px;
  font-size: clamp(15px, 1.8vw, 18px);
}

.admin-tablet-simple .compact-admin-panel {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
}

.admin-tablet-simple .tablet-panel {
  padding: 10px;
}

.admin-tablet-simple .filters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-tablet-simple .download-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.data-table-section {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.table-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
}

.table-title-row h3 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(20px, 2.2vw, 26px);
}

.table-title-row span {
  color: var(--muted);
  font-weight: 900;
}

.tablet-data-table {
  flex: 1;
  min-height: 330px;
  max-height: none;
}

.tablet-data-table table {
  min-width: 980px;
  font-size: clamp(14px, 1.45vw, 16px);
}

.tablet-data-table th,
.tablet-data-table td {
  padding: 13px 14px;
}

@media (max-width: 1100px) {
  .admin-tablet-simple .compact-admin-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .admin-tablet-simple .filters,
  .admin-tablet-simple .download-actions {
    grid-template-columns: 1fr;
  }

  .tablet-data-table {
    min-height: 420px;
  }

  .table-title-row {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Correctifs tablette — version compacte admin + affichage hors coupure */
@supports (height: 100dvh) {
  html, body { min-height: 100dvh; }
  .app-shell { min-height: 100dvh; }
}

/* Sur tablette, laisser l’écran respirer et éviter les éléments coupés en bas */
.admin-layout {
  height: calc(100vh - 24px);
  min-height: 0;
  max-height: calc(100vh - 24px);
}

@supports (height: 100dvh) {
  .admin-layout {
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
  }
}

.admin-login-screen {
  width: min(760px, 100%);
}

.admin-login-content {
  padding: clamp(14px, 2vw, 24px) !important;
  justify-content: center;
  overflow-y: auto;
}

.admin-password-box {
  width: min(520px, 100%);
  padding: clamp(18px, 2.4vw, 26px);
  gap: 12px;
  border-radius: 22px;
}

.admin-password-box .brand-pill {
  align-self: flex-start;
  padding: 8px 13px;
  font-size: 13px;
}

.admin-password-box h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.05;
}

.admin-login-lead,
.admin-password-box .lead {
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.3;
}

.admin-password-box .field-label {
  font-size: 14px;
  margin-bottom: -7px;
}

.admin-password-box .field {
  min-height: 48px;
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 14px;
}

.admin-password-box .primary-btn {
  min-height: 52px;
  padding: 13px 18px;
  font-size: 17px;
  border-radius: 16px;
}

.admin-password-box .small-link,
.admin-password-box .subtle {
  font-size: 13px;
  line-height: 1.25;
}

/* Tableau de bord compact lisible sur tablette */
.admin-tablet-simple .admin-content {
  padding: clamp(12px, 1.7vw, 20px) !important;
  gap: 9px;
  height: 100%;
  overflow: hidden;
}

.admin-tablet-simple .admin-header {
  gap: 10px;
  align-items: center;
}

.admin-tablet-simple .brand-pill {
  padding: 7px 12px;
  font-size: 12px;
}

.admin-tablet-simple .admin-header h2 {
  font-size: clamp(25px, 3.1vw, 34px);
  line-height: 1;
}

.admin-tablet-simple .admin-header .subtle {
  font-size: 13px;
}

.admin-tablet-simple .admin-actions {
  gap: 8px;
}

.admin-tablet-simple .admin-actions button,
.admin-tablet-simple .filters button {
  min-height: 42px;
  padding: 10px 13px;
  font-size: 13px;
  border-radius: 13px;
}

.admin-tablet-simple .dashboard-summary {
  padding: 9px 12px;
  font-size: clamp(13px, 1.5vw, 15px);
  border-radius: 15px;
}

.admin-tablet-simple .compact-admin-panel {
  gap: 8px;
}

.admin-tablet-simple .tablet-panel {
  padding: 8px;
  border-radius: 16px;
}

.admin-tablet-simple .panel-title {
  font-size: 13px;
  margin-bottom: 0;
}

.admin-tablet-simple .filters {
  gap: 7px;
}

.admin-tablet-simple .filters input,
.admin-tablet-simple .filters select,
.admin-tablet-simple .filters button {
  min-height: 42px;
  padding: 9px 10px;
  font-size: 13px;
  border-radius: 12px;
}

.admin-tablet-simple .download-actions {
  gap: 7px;
}

.admin-tablet-simple .download-actions .export-main-btn {
  min-height: 50px !important;
  font-size: 18px !important;
  border-radius: 15px !important;
}

.admin-tablet-simple .data-table-section {
  flex: 1 1 auto;
  min-height: 0;
  gap: 6px;
}

.admin-tablet-simple .table-title-row h3 {
  font-size: clamp(17px, 2vw, 21px);
}

.admin-tablet-simple .table-title-row span {
  font-size: 13px;
}

.admin-tablet-simple .tablet-data-table {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  border-radius: 16px;
}

.admin-tablet-simple .tablet-data-table table {
  min-width: 900px;
  font-size: 13px;
}

.admin-tablet-simple .tablet-data-table th,
.admin-tablet-simple .tablet-data-table td {
  padding: 9px 10px;
  line-height: 1.25;
}

@media (max-height: 760px) {
  .admin-layout {
    height: calc(100vh - 12px);
    max-height: calc(100vh - 12px);
  }
  @supports (height: 100dvh) {
    .admin-layout {
      height: calc(100dvh - 12px);
      max-height: calc(100dvh - 12px);
    }
  }
  .app-shell { padding: 6px; }
  .admin-password-box { padding: 16px; gap: 9px; }
  .admin-password-box h2 { font-size: 25px; }
  .admin-password-box .subtle { display: none; }
  .admin-tablet-simple .admin-header .subtle { display: none; }
  .admin-tablet-simple .dashboard-summary { padding: 7px 10px; }
  .admin-tablet-simple .filters input,
  .admin-tablet-simple .filters select,
  .admin-tablet-simple .filters button,
  .admin-tablet-simple .admin-actions button,
  .admin-tablet-simple .download-actions button {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12.5px;
  }
  .admin-tablet-simple .download-actions .export-main-btn {
    min-height: 44px !important;
    font-size: 16px !important;
  }
  .admin-tablet-simple .tablet-data-table th,
  .admin-tablet-simple .tablet-data-table td {
    padding: 7px 9px;
  }
}

@media (max-width: 820px) {
  body { overflow: auto; }
  .admin-layout {
    height: auto;
    min-height: calc(100vh - 16px);
    max-height: none;
  }
  .admin-tablet-simple .admin-content {
    overflow-y: auto;
    height: auto;
  }
  .admin-tablet-simple .compact-admin-panel,
  .admin-tablet-simple .filters,
  .admin-tablet-simple .download-actions {
    grid-template-columns: 1fr;
  }
  .admin-tablet-simple .tablet-data-table {
    min-height: 330px;
  }
}
