/* staff-mode.css — inline admin controls, matched to the floor's token system. */

/* Floating staff button (bottom-right, above the tab bar) */
.staff-fab {
  position: fixed;
  right: 16px;
  bottom: calc(var(--tabbar-h, 66px) + 20px);
  z-index: 900;
  padding: 11px 20px;
  border: none;
  border-radius: 9999px;
  background: var(--gold-foil, var(--gold, #E0B23C));
  color: var(--on-accent, #1A1206);
  font-family: var(--body, Inter, system-ui, sans-serif);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: -0.1px;
  box-shadow: 0 10px 28px rgba(var(--gold-rgb, 224, 178, 60), 0.4);
  cursor: pointer;
}
.staff-fab:active { transform: scale(0.95); }

/* Inline "+ Post" / "+ Call" header buttons */
.staff-inline-add {
  margin-left: auto;
  margin-right: 8px;
  padding: 5px 12px;
  border: 1px solid var(--gold-line, rgba(224, 178, 60, 0.22));
  border-radius: 9999px;
  background: var(--gold-soft, rgba(224, 178, 60, 0.12));
  color: var(--gold-hi, #F3D277);
  font-family: var(--body, Inter, sans-serif);
  font-weight: 700;
  font-size: 11.5px;
  cursor: pointer;
}
.sch-head .staff-inline-add { margin-left: 8px; margin-right: 0; }

/* Inline "Edit" chip on each post / call row */
.staff-row-edit {
  align-self: flex-start;
  margin-left: auto;
  flex: 0 0 auto;
  padding: 5px 12px;
  border: 1px solid var(--line-2, rgba(255, 255, 255, 0.14));
  border-radius: 9999px;
  background: var(--surface-2, #111116);
  color: var(--text-2, #D6D6DA);
  font-family: var(--body, Inter, sans-serif);
  font-weight: 600;
  font-size: 11.5px;
  cursor: pointer;
}
.office-ann-row { align-items: flex-start; }
.sch-row { align-items: center; }

/* Bottom sheet */
.staff-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.staff-sheet-backdrop.on { opacity: 1; }
.staff-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 88dvh;
  overflow-y: auto;
  background: var(--surface, #0E0E11);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.09));
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  transform: translateY(24px);
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.staff-sheet-backdrop.on .staff-sheet { transform: translateY(0); }
.staff-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.staff-sheet-title {
  margin: 0;
  font-family: var(--display, Sora, sans-serif);
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text, #F3F3F1);
}
.staff-sheet-x {
  border: none;
  background: var(--surface-2, #111116);
  color: var(--muted, #9A9AA6);
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  font-size: 15px;
  cursor: pointer;
}

/* Form */
.staff-form { display: flex; flex-direction: column; gap: 12px; }
.staff-field { display: flex; flex-direction: column; gap: 6px; }
.staff-label {
  font-family: var(--body, Inter, sans-serif);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #9A9AA6);
}
.staff-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.09));
  background: var(--surface-2, #111116);
  color: var(--text, #F3F3F1);
  font-family: var(--body, Inter, sans-serif);
  font-size: 15px;
  box-sizing: border-box;
}
.staff-input:focus { outline: 2px solid rgba(var(--gold-rgb, 224, 178, 60), 0.4); border-color: var(--gold-line); }
.staff-textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.staff-check-row { display: flex; align-items: center; gap: 10px; color: var(--text-2, #D6D6DA); font-size: 14px; }
.staff-check { width: 20px; height: 20px; accent-color: var(--gold, #E0B23C); }
.staff-cta { margin-top: 4px; }
.staff-hint { color: var(--muted, #9A9AA6); font-size: 13px; line-height: 1.5; margin: 0; }

/* Manage lists */
.staff-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.09));
}
.staff-list-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.staff-list-meta b { color: var(--text, #F3F3F1); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-list-meta small { color: var(--muted, #9A9AA6); font-size: 11.5px; }
.staff-list-acts { display: flex; gap: 8px; flex: 0 0 auto; }
.staff-mini {
  padding: 7px 13px;
  border-radius: 9999px;
  border: 1px solid var(--line-2, rgba(255, 255, 255, 0.14));
  background: var(--surface-2, #111116);
  color: var(--text-2, #D6D6DA);
  font-family: var(--body, Inter, sans-serif);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}
.staff-mini-gold {
  background: var(--gold-soft, rgba(224, 178, 60, 0.12));
  border-color: var(--gold-line, rgba(224, 178, 60, 0.22));
  color: var(--gold-hi, #F3D277);
}

/* AI polish row */
.staff-polish-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.staff-polish-hint {
  font-size: 11.5px;
  color: var(--muted, #9A9AA6);
}

.staff-timetable-wrap .staff-timetable {
  padding: 12px 14px 14px;
  margin: 0;
}
.staff-timetable-row {
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: none;
  font: inherit;
  color: inherit;
  background: transparent;
  align-items: center;
  padding: 10px 4px;
  border-radius: var(--radius-md, 12px);
}
.staff-timetable-row:hover,
.staff-timetable-row:focus-visible {
  background: rgba(var(--gold-rgb, 224, 178, 60), 0.08);
  outline: none;
}
.staff-timetable-edit {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold, #E0B23C);
  margin-left: auto;
  flex-shrink: 0;
}
