/* Gaam Manager — native-style mobile app (not desktop admin) */

html.app-shell .mgr-app {
  max-width: 32rem;
  margin: 0 auto;
}

.mgr-app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: max(0.65rem, env(safe-area-inset-top)) 0 0;
  color: var(--text, #f5ebe0);
  max-width: none;
  margin: 0;
}

.mgr-app--scroll {
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
}

.mgr-app-wrap {
  overflow-x: hidden;
  max-width: 100vw;
}

.mgr-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0 1rem 0.65rem;
  max-width: 100%;
}

.mgr-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

.mgr-head-main {
  flex: 1;
  min-width: 0;
}

.mgr-head-main h1 {
  font-size: 1.35rem;
  margin: 0;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mgr-head-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.mgr-head-actions--top {
  flex-wrap: nowrap;
}

.mgr-head-sub {
  font-size: 0.8rem;
  color: var(--muted, #a89888);
  margin: 0.2rem 0 0;
}

.mgr-head-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  padding-top: 0.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mgr-head-bar-name {
  flex: 1;
  min-width: 0;
  font-size: 0.72rem;
  color: var(--muted, #a89888);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mgr-logout-btn {
  font-size: 0.72rem !important;
  padding: 0.2rem 0.45rem !important;
  line-height: 1.2;
  white-space: nowrap;
}

.mgr-pill--mini {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.12rem 0.35rem;
  letter-spacing: 0.02em;
  text-transform: none;
  flex-shrink: 0;
  max-width: 3.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mgr-badge--head {
  margin-left: 0;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.mgr-pill {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mgr-pill--ok {
  color: #8fd4a8;
  background: rgba(111, 212, 168, 0.12);
}

.mgr-pill--bad {
  color: #f0a0a0;
  background: rgba(232, 106, 106, 0.12);
}

.mgr-pill--warn {
  color: #e8c86a;
  background: rgba(232, 184, 74, 0.15);
}

.mgr-body {
  flex: 1;
  padding: 0 1rem 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mgr-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mgr-stat {
  padding: 0.75rem 0.85rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mgr-stat b {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent-2, #e8b88a);
}

.mgr-stat span {
  font-size: 0.72rem;
  color: var(--muted, #a89888);
}

.mgr-stat--alert b {
  color: var(--danger, #e86a6a);
}

.mgr-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted, #a89888);
  margin: 0 0 0.5rem;
}

.mgr-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mgr-action {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  background: rgba(26, 22, 18, 0.85);
  border: 1px solid rgba(200, 149, 108, 0.15);
  transition: transform 0.1s ease;
}

.mgr-action:active {
  transform: scale(0.98);
}

.mgr-action-ico {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(200, 149, 108, 0.18);
  flex-shrink: 0;
}

.mgr-action-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}

.mgr-action-text small {
  font-size: 0.75rem;
  color: var(--muted, #a89888);
}

.mgr-badge {
  margin-left: auto;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--danger, #e86a6a);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mgr-badge:empty,
.mgr-badge[data-zero="1"] {
  display: none;
}

.mgr-note {
  font-size: 0.75rem;
  color: var(--muted, #a89888);
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  line-height: 1.45;
}

.mgr-back {
  font-size: 0.85rem;
  color: var(--accent-2, #e8b88a);
  text-decoration: none;
  padding: 0 1rem 0.5rem;
  display: inline-block;
}

.mgr-head-main .mgr-back {
  padding: 0 0 0.35rem;
  display: block;
}

.mgr-approvals-subnav {
  padding: 0 1rem 0.65rem;
}

.mgr-approvals-subnav .mgr-chip {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
}

/* Bottom tab bar */
.mgr-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: space-around;
  gap: 0.15rem;
  padding: 0.35rem 0.5rem calc(0.45rem + env(safe-area-inset-bottom));
  background: rgba(15, 13, 11, 0.96);
  border-top: 1px solid rgba(200, 149, 108, 0.12);
  backdrop-filter: blur(12px);
  max-width: 32rem;
  margin: 0 auto;
}

.mgr-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.35rem 0.2rem;
  text-decoration: none;
  color: var(--muted, #a89888);
  font-size: 0.62rem;
  border-radius: 0.5rem;
}

.mgr-tab--on {
  color: var(--accent-2, #e8b88a);
  background: rgba(200, 149, 108, 0.12);
}

.mgr-tab-ico {
  font-size: 1rem;
  line-height: 1;
}

/* Orders list */
.mgr-order-card {
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  margin-bottom: 0.5rem;
  border-left: 4px solid var(--warn, #e8b84a);
  background: rgba(26, 22, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left-width: 4px;
}

.mgr-order-card--paid {
  border-left-color: var(--success, #6dbf8a);
  opacity: 0.85;
}

.mgr-order-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.mgr-order-meta {
  font-size: 0.72rem;
  color: var(--muted, #a89888);
  margin-bottom: 0.5rem;
}

.mgr-order-lines {
  font-size: 0.8rem;
  margin: 0 0 0.65rem;
  padding-left: 1rem;
  color: var(--text, #f5ebe0);
}

.mgr-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted, #a89888);
  font-size: 0.9rem;
}

.mgr-filter {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.mgr-chip {
  flex-shrink: 0;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: inherit;
  font-size: 0.78rem;
}

.mgr-chip--on {
  border-color: var(--accent, #c8956c);
  background: rgba(200, 149, 108, 0.2);
}

/* Floor — uses app.css table-tile; tighten for phone */
.mgr-floor-page .mgr-body {
  padding-bottom: 0.5rem;
}

.mgr-calls {
  margin-bottom: 0.75rem;
}

.mgr-call {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  margin-bottom: 0.4rem;
  background: rgba(232, 106, 106, 0.12);
  border: 1px solid rgba(232, 106, 106, 0.35);
  font-size: 0.88rem;
}

.mgr-more-btn {
  width: 100%;
  margin-top: 0.5rem;
  text-align: left;
}

/* Hide desktop admin bleed on bundled manager pages */
body.mgr-app-wrap.admin-shell {
  min-width: 0;
}

.mgr-toolbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.mgr-toolbar--wrap {
  flex-wrap: wrap;
}

.mgr-toolbar .btn-primary,
.mgr-toolbar .btn-ghost {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  font-size: 0.78rem;
}

.mgr-list-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem;
  border-radius: 1rem;
  margin-bottom: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mgr-list-row--off {
  opacity: 0.55;
}

.mgr-list-row__img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}

.mgr-list-row__img--round {
  border-radius: 999px;
}

.mgr-list-row__img--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.mgr-list-row__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.mgr-list-row__sub {
  font-size: 0.72rem;
  color: var(--muted);
}

.mgr-list-row__meta {
  font-size: 0.72rem;
  color: var(--muted);
}

.mgr-list-row__side {
  text-align: end;
  flex-shrink: 0;
}

.mgr-list-row__acts {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.25rem;
  justify-content: flex-end;
}

.mgr-danger {
  color: var(--danger, #e86a6a) !important;
}

.mgr-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.mgr-modal.hidden {
  display: none;
}

.mgr-modal-sheet {
  width: 100%;
  max-width: 28rem;
  max-height: min(92dvh, 640px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 1.25rem 1.25rem 0 0;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
}

.mgr-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.mgr-modal-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.mgr-form-field {
  margin-bottom: 0.65rem;
}

.mgr-form-field label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.mgr-form-field input,
.mgr-form-field select,
.mgr-form-field textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--surface-2, #252019);
  color: inherit;
  font-size: 1rem;
}

.mgr-form-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.mgr-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
}

.mgr-form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.mgr-form-actions .btn-primary,
.mgr-form-actions .btn-ghost {
  flex: 1;
}

.mgr-staff-photo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.mgr-staff-photo img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--accent, #c8956c);
}

/* Store open / close day banner */
.mgr-day-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(200, 149, 108, 0.22);
  background: rgba(200, 149, 108, 0.1);
}

.mgr-day-banner--open {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
}

.mgr-day-banner--closed {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(248, 113, 113, 0.07);
}

.mgr-day-banner-main {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 0;
}

.mgr-day-dot {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: #4ade80;
  flex-shrink: 0;
}

.mgr-day-dot--off {
  background: #f87171;
}

.mgr-day-banner strong {
  display: block;
  font-size: 0.88rem;
}

.mgr-day-banner small {
  display: block;
  font-size: 0.68rem;
  color: var(--muted, #a89888);
  line-height: 1.3;
}

.mgr-day-alert {
  color: #fbbf24 !important;
}

.mgr-day-btn {
  flex-shrink: 0;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.mgr-day-btn--open {
  background: rgba(74, 222, 128, 0.18);
  border-color: rgba(74, 222, 128, 0.45);
  color: #bbf7d0;
}

.mgr-day-btn--close {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

.mgr-day-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.mgr-day-modal-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.55);
}

.mgr-day-modal-panel {
  position: relative;
  width: 100%;
  max-width: 32rem;
  max-height: 85dvh;
  overflow: auto;
  margin: 0 auto;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  border-radius: 1rem 1rem 0 0;
  background: #1a1512;
  border-top: 1px solid rgba(200, 149, 108, 0.25);
}

.mgr-day-modal-title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

.mgr-day-modal-body {
  font-size: 0.82rem;
  color: var(--text, #f5ebe0);
}

.mgr-day-modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.85rem;
}

.mgr-day-report-kpi {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.mgr-day-report-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.65rem;
}

.mgr-day-report-sub {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0.55rem 0 0.25rem;
  color: var(--muted);
}

.mgr-day-report-warn {
  color: #fbbf24;
}

.mgr-day-report-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mgr-day-report-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
}
