body.figma-admin {
  margin: 0;
  color: #393e46;
  background: #efefef;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.figma-admin .figma-admin-page {
  display: grid;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-rows: 72px minmax(calc(100vh - 72px), auto);
  background: #efefef;
}

.figma-admin-brand {
  display: flex;
  min-width: 0;
  padding: 13px 18px;
  align-items: center;
  gap: 12px;
  border-right: 1px solid #e1e4e8;
  border-bottom: 1px solid #e1e4e8;
  background: #fff;
}

.figma-admin-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 50%;
  background: #393e46;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.figma-admin-brand > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.figma-admin-brand strong,
.figma-admin-brand small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.figma-admin-brand strong {
  color: #393e46;
  font-size: 15px;
  font-weight: 750;
}

.figma-admin-brand small {
  color: #858d98;
  font-size: 11px;
}

.figma-admin .admin-hero {
  display: flex;
  min-width: 0;
  min-height: 72px;
  margin: 0;
  padding: 0 28px;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  border-bottom: 1px solid #e1e4e8;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.figma-admin .admin-hero > div:first-child {
  min-width: 0;
}

.figma-admin .admin-hero .badge,
.figma-admin .admin-hero h1,
.figma-admin .admin-hero p {
  display: none;
}

.figma-admin-top-title {
  display: grid;
  gap: 1px;
}

.figma-admin-top-title span {
  color: #999fa8;
  font-size: 11px;
  font-weight: 650;
}

.figma-admin-top-title strong {
  color: #393e46;
  font-size: 19px;
  font-weight: 750;
}

.figma-admin .admin-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.figma-admin .admin-link,
.figma-admin .admin-logout-btn {
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid #d7dbe0;
  border-radius: 8px;
  background: #fff;
  color: #4f5660;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.figma-admin .admin-logout-btn {
  border-color: #393e46;
  background: #393e46;
  color: #fff;
}

.figma-admin .figma-admin-card {
  display: grid;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: calc(100vh - 72px);
  margin: 0;
  padding: 0;
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.figma-admin .figma-admin-card > :not(.admin-tabs) {
  min-width: 0;
  margin-right: 30px;
  margin-left: 30px;
  grid-column: 2;
}

.figma-admin .admin-tabs {
  display: flex;
  position: sticky;
  top: 0;
  width: 260px;
  min-height: calc(100vh - 72px);
  margin: 0;
  padding: 18px 14px;
  grid-column: 1;
  grid-row: 1 / span 20;
  align-self: stretch;
  flex-direction: column;
  gap: 6px;
  border: 0;
  border-right: 1px solid #e1e4e8;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.figma-admin .admin-tabs button {
  display: flex;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6f7782;
  box-shadow: none;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
}

.figma-admin .admin-tabs button:hover {
  background: #f2f3f5;
  color: #393e46;
}

.figma-admin .admin-tabs button.active {
  background: #393e46;
  color: #fff;
}

.figma-admin-tab-icon {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  place-items: center;
}

.figma-admin-tab-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.figma-admin .admin-section,
.figma-admin .figma-admin-card > .admin-toolbar,
.figma-admin .figma-admin-card > .message,
.figma-admin .figma-admin-card > .empty,
.figma-admin .figma-admin-card > .admin-list {
  width: auto;
  max-width: none;
}

.figma-admin .admin-section,
.figma-admin .figma-admin-card > .admin-toolbar {
  margin-top: 28px;
}

.figma-admin .admin-toolbar {
  display: flex;
  margin-bottom: 18px;
  padding: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  background: transparent;
}

.figma-admin .admin-toolbar h2 {
  margin: 0 0 5px;
  color: #393e46;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 720;
  letter-spacing: -0.025em;
}

.figma-admin .admin-toolbar p {
  margin: 0;
  color: #8a919a;
  font-size: 12px;
}

.figma-admin .admin-filter label,
.figma-admin .schedule-controls label,
.figma-admin .staff-form label,
.figma-admin .blocked-form label,
.figma-admin .closed-day-form label,
.figma-admin .time-inputs label {
  color: #626a75;
  font-size: 11px;
  font-weight: 650;
}

.figma-admin select,
.figma-admin input,
.figma-admin textarea {
  border: 1px solid #d6d9de;
  border-radius: 8px;
  background: #fff;
  color: #393e46;
  box-shadow: none;
  font: inherit;
}

.figma-admin select:focus,
.figma-admin input:focus,
.figma-admin textarea:focus {
  outline: 2px solid rgba(57, 62, 70, 0.18);
  border-color: #8e98a8;
}

.figma-admin .admin-filter select,
.figma-admin .schedule-controls select,
.figma-admin .schedule-controls input,
.figma-admin .staff-form input,
.figma-admin .blocked-form input,
.figma-admin .blocked-form select,
.figma-admin .closed-day-form input,
.figma-admin .closed-day-form select {
  min-height: 40px;
  padding: 8px 11px;
}

.figma-admin .delete-old-btn,
.figma-admin .admin-save-btn,
.figma-admin .staff-form button,
.figma-admin .blocked-form button,
.figma-admin .closed-day-form button {
  min-height: 38px;
  margin-top: 12px;
  padding: 9px 14px;
  border: 0;
  border-radius: 8px;
  background: #393e46;
  color: #fff;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
}

.figma-admin .delete-old-btn {
  background: #fff;
  color: #c34f56;
  border: 1px solid #e5b9bc;
}

.figma-admin .admin-list,
.figma-admin .staff-list,
.figma-admin .blocked-list,
.figma-admin .closed-day-list,
.figma-admin .working-hours-list,
.figma-admin .schedule-list {
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
}

.figma-admin .admin-appointment,
.figma-admin .staff-item,
.figma-admin .blocked-item,
.figma-admin .closed-day-item,
.figma-admin .working-hour-row,
.figma-admin .schedule-slot,
.figma-admin .schedule-summary,
.figma-admin .message,
.figma-admin .empty {
  border: 1px solid #dfe2e6;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(33, 38, 45, 0.035);
  color: #393e46;
}

.figma-admin .admin-appointment {
  padding: 17px 18px;
}

.figma-admin .admin-appointment-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
}

.figma-admin .admin-appointment h3 {
  margin: 8px 0 5px;
  color: #393e46;
  font-size: 15px;
}

.figma-admin .admin-appointment p {
  margin: 3px 0;
  color: #747c87;
  font-size: 11px;
}

.figma-admin .status-pill {
  display: inline-flex;
  padding: 4px 8px;
  align-items: center;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
}

.figma-admin .status-pill.confirmed,
.figma-admin .status-pill.pending {
  background: #dff5e8;
  color: #258653;
}

.figma-admin .status-pill.completed {
  background: #e6efff;
  color: #426fb3;
}

.figma-admin .status-pill.cancelled,
.figma-admin .status-pill.no_show {
  background: #fbe5e6;
  color: #bd4c54;
}

.figma-admin .admin-date-box {
  min-width: 125px;
  padding: 9px 11px;
  border: 1px solid #e2e4e7;
  border-radius: 8px;
  background: #fafafa;
  text-align: right;
}

.figma-admin .admin-date-box strong,
.figma-admin .admin-date-box span {
  display: block;
  color: #59616c;
  font-size: 11px;
}

.figma-admin .admin-actions,
.figma-admin .staff-actions {
  display: flex;
  margin-top: 13px;
  padding-top: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #eef0f2;
}

.figma-admin .admin-actions a,
.figma-admin .admin-actions button,
.figma-admin .staff-actions button,
.figma-admin .admin-danger.small {
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid #d9dde2;
  border-radius: 7px;
  background: #fff;
  color: #5e6671;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.figma-admin .admin-actions .whatsapp-btn {
  border-color: #9edbb5;
  color: #23854e;
}

.figma-admin .admin-actions .admin-danger,
.figma-admin .admin-danger,
.figma-admin .admin-danger.small {
  border-color: #e8bfc2;
  background: #fff;
  color: #bd4c54;
}

.figma-admin .admin-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.figma-admin .schedule-controls,
.figma-admin .staff-form,
.figma-admin .blocked-form,
.figma-admin .closed-day-form {
  display: grid;
  margin-bottom: 16px;
  padding: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  border: 1px solid #dfe2e6;
  border-radius: 10px;
  background: #fff;
}

.figma-admin .schedule-controls {
  grid-template-columns: repeat(2, minmax(180px, 300px));
}

.figma-admin .staff-form {
  grid-template-columns: minmax(220px, 1fr) auto;
}

.figma-admin .week-tabs {
  display: grid;
  margin: 0 0 14px;
  grid-template-columns: repeat(7, minmax(88px, 1fr));
  gap: 7px;
  overflow-x: auto;
}

.figma-admin .week-tabs button {
  min-height: 58px;
  padding: 8px;
  border: 1px solid #d9dde2;
  border-radius: 8px;
  background: #fff;
  color: #69717c;
}

.figma-admin .week-tabs button.active {
  border-color: #393e46;
  background: #393e46;
  color: #fff;
}

.figma-admin .week-tabs strong,
.figma-admin .week-tabs span {
  display: block;
  font-size: 10px;
}

.figma-admin .schedule-summary {
  display: flex;
  margin-bottom: 10px;
  padding: 12px 14px;
  align-items: center;
  justify-content: space-between;
}

.figma-admin .schedule-slot {
  display: grid;
  padding: 13px 15px;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.figma-admin .schedule-slot.empty {
  border-style: dashed;
  background: #fafbfc;
}

.figma-admin .schedule-slot.booked {
  border-left: 4px solid #393e46;
}

.figma-admin .schedule-slot.blocked,
.figma-admin .schedule-slot.break {
  border-left: 4px solid #b9bec5;
  background: #f6f7f8;
}

.figma-admin .schedule-time strong,
.figma-admin .schedule-time span,
.figma-admin .schedule-detail strong,
.figma-admin .schedule-detail p {
  display: block;
  margin: 2px 0;
  font-size: 11px;
}

.figma-admin .working-hour-row {
  display: grid;
  padding: 14px 16px;
  grid-template-columns: minmax(140px, 1fr) minmax(140px, auto) minmax(260px, 1fr);
  align-items: center;
  gap: 18px;
}

.figma-admin .working-day-name {
  display: flex;
  align-items: center;
  gap: 9px;
}

.figma-admin .working-day-name span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #e1f4e8;
  color: #268754;
  font-size: 10px;
  font-weight: 750;
}

.figma-admin .switch-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #69717c;
  font-size: 11px;
}

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

.figma-admin .time-inputs input {
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
}

.figma-admin .staff-item,
.figma-admin .blocked-item,
.figma-admin .closed-day-item {
  display: flex;
  padding: 14px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.figma-admin .staff-item strong,
.figma-admin .blocked-item strong,
.figma-admin .closed-day-item strong {
  color: #393e46;
  font-size: 13px;
}

.figma-admin .staff-item span,
.figma-admin .blocked-item span,
.figma-admin .closed-day-item span {
  display: block;
  margin-top: 3px;
  color: #858d98;
  font-size: 11px;
}

.figma-admin .message,
.figma-admin .empty {
  padding: 14px 16px;
  font-size: 12px;
}

.figma-admin .schedule-click-hint {
  width: 100%;
  margin: 8px 0 0;
  color: #69717c !important;
  font-size: 11px;
  font-weight: 600;
}

.figma-admin .schedule-slot.empty .schedule-detail p::after {
  color: #69717c;
}

.figma-admin .admin-extra-backdrop {
  background: rgba(30, 34, 40, 0.62);
}

.figma-admin .admin-extra-dialog {
  border: 1px solid #dfe2e6;
  border-radius: 14px;
  background: #fff;
  color: #393e46;
  box-shadow: 0 24px 70px rgba(20, 25, 31, 0.22);
}

.figma-admin .admin-extra-subtitle {
  color: #858d98;
}

.figma-admin .admin-extra-close {
  border-color: #dfe2e6;
  background: #f7f8f9;
  color: #393e46;
}

.figma-admin .admin-extra-field input,
.figma-admin .admin-extra-field textarea {
  border-color: #d6d9de;
  background: #fff;
  color: #393e46;
}

.figma-admin .admin-extra-primary {
  background: #393e46;
  color: #fff;
}

@media (max-width: 900px) {
  .figma-admin .figma-admin-page {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .figma-admin .figma-admin-card {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .figma-admin .admin-tabs {
    width: 220px;
  }

  .figma-admin .figma-admin-card > :not(.admin-tabs) {
    margin-right: 18px;
    margin-left: 18px;
  }

  .figma-admin .blocked-form,
  .figma-admin .closed-day-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .figma-admin .working-hour-row {
    grid-template-columns: 1fr 1fr;
  }

  .figma-admin .time-inputs {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .figma-admin .figma-admin-page {
    display: block;
  }

  .figma-admin-brand {
    min-height: 66px;
    border-right: 0;
  }

  .figma-admin .admin-hero {
    min-height: 60px;
    padding: 0 14px;
    border-bottom: 1px solid #e1e4e8;
  }

  .figma-admin .admin-link {
    display: none;
  }

  .figma-admin .figma-admin-card {
    display: block;
    min-height: auto;
  }

  .figma-admin .admin-tabs {
    display: flex;
    position: sticky;
    z-index: 50;
    top: 0;
    width: 100%;
    min-height: auto;
    padding: 9px 10px;
    overflow-x: auto;
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid #e1e4e8;
  }

  .figma-admin .admin-tabs button {
    width: auto;
    min-width: max-content;
    min-height: 38px;
    padding: 8px 10px;
    gap: 7px;
    font-size: 11px;
  }

  .figma-admin-tab-icon,
  .figma-admin-tab-icon svg {
    width: 16px;
    height: 16px;
  }

  .figma-admin .figma-admin-card > :not(.admin-tabs) {
    margin-right: 12px;
    margin-left: 12px;
  }

  .figma-admin .admin-section,
  .figma-admin .figma-admin-card > .admin-toolbar {
    margin-top: 20px;
  }

  .figma-admin .admin-toolbar,
  .figma-admin .admin-appointment-main,
  .figma-admin .schedule-slot,
  .figma-admin .working-hour-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .figma-admin .admin-filter,
  .figma-admin .admin-filter label,
  .figma-admin .admin-filter select {
    width: 100%;
  }

  .figma-admin .schedule-controls,
  .figma-admin .staff-form,
  .figma-admin .blocked-form,
  .figma-admin .closed-day-form {
    grid-template-columns: 1fr;
  }

  .figma-admin .admin-date-box {
    width: 100%;
    text-align: left;
  }

  .figma-admin .admin-actions,
  .figma-admin .staff-actions {
    justify-content: flex-start;
  }

  .figma-admin .admin-actions a,
  .figma-admin .admin-actions button {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }

  .figma-admin .week-tabs {
    grid-template-columns: repeat(7, 84px);
  }

  .figma-admin .time-inputs {
    grid-template-columns: 1fr;
  }

  .figma-admin .staff-item,
  .figma-admin .blocked-item,
  .figma-admin .closed-day-item {
    align-items: flex-start;
    flex-direction: column;
  }
}
