.admin-workspace {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.admin-header h1 {
  font-size: 1.7rem;
}

.admin-header > span,
.admin-card p,
.notion-row span {
  color: var(--muted);
}

.admin-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 1px;
  overflow: auto;
  background: var(--border);
}

.admin-grid.single {
  grid-template-columns: minmax(0, 1fr);
  background: #fff;
}

.admin-grid.schedules {
  grid-template-columns: minmax(330px, 0.46fr) minmax(0, 1fr);
}

.salon-admin-stack {
  align-content: start;
  align-items: start;
  background: #fff;
  grid-auto-rows: max-content;
}

.admin-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
  background: #fff;
}

.admin-card h2,
.override-detail h3 {
  margin: 0;
  font-size: 1.12rem;
}

.admin-subsection-title {
  padding-top: 8px;
}

.notion-table {
  min-width: 0;
  display: grid;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.notion-row {
  min-width: 0;
  min-height: 44px;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.notion-row:last-child {
  border-bottom: 0;
}

.notion-head {
  min-height: 34px;
  background: #fbfdfc;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.notion-row > span,
.notion-row > strong,
.notion-row > div,
.notion-head > span {
  min-width: 0;
  padding: 8px 10px;
}

.notion-row input,
.notion-row select,
.override-detail input,
.override-detail select {
  min-width: 0;
  width: 100%;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 7px 9px;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.notion-row input:focus,
.notion-row select:focus,
.override-detail input:focus,
.override-detail select:focus {
  outline: 0;
  border-color: rgba(15, 118, 110, 0.28);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.notion-row:hover,
.notion-row.is-editing {
  background: #f8faf9;
}

.readonly-row {
  cursor: pointer;
  text-align: left;
}

div.readonly-row {
  outline: 0;
}

div.readonly-row:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(15, 118, 110, 0.3);
}

.rooms-table .notion-row {
  grid-template-columns: minmax(0, 1fr) 70px;
}

.salon-settings-panel {
  max-width: 680px;
  display: grid;
  gap: 14px;
}

.salon-settings-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.salon-settings-panel input {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  font: inherit;
}

.settings-save-button {
  justify-self: start;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

.users-table .notion-row {
  grid-template-columns: minmax(170px, 1fr) 120px minmax(150px, 1fr) 150px 112px;
}

.services-table .notion-row {
  grid-template-columns: minmax(180px, 1fr) 110px 72px 124px 54px;
}

.mappings-table .notion-row {
  grid-template-columns: minmax(150px, 1fr) 90px 90px 70px;
}

.service-row.depth-1 > :first-child {
  padding-left: 30px;
}

.service-color-dot {
  width: 22px;
  height: 22px;
  margin-left: 10px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--service-color);
  box-shadow: 0 0 0 1px var(--border);
}

.admin-muted-cell {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-role {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--panel-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
}

@media (max-width: 900px) {
  .admin-grid,
  .admin-grid.single,
  .admin-grid.schedules {
    grid-template-columns: 1fr;
  }

  .notion-table {
    overflow-x: auto;
  }
}
