/* OneManVanFSM Office PWA — mobile admin shell (reuses field tokens) */

.office-pwa-root {
  min-height: 100dvh;
  background: var(--zf-bg);
  color: var(--zf-text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(var(--zf-nav-h) + var(--zf-safe-bottom) + 8px);
}

.office-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}

.office-kpi-card {
  background: var(--zf-surface);
  border: 1px solid var(--zf-border);
  border-radius: var(--zf-radius);
  padding: 10px;
  box-shadow: var(--zf-shadow);
  text-decoration: none;
  color: inherit;
  display: block;
  min-height: var(--zf-touch);
}

.office-kpi-card .label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zf-muted);
  font-weight: 650;
}

.office-kpi-card .value {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 2px;
  letter-spacing: -0.02em;
}

.office-kpi-card .hint {
  font-size: 0.72rem;
  color: var(--zf-muted);
  margin-top: 2px;
}

.office-kpi-card.is-warn .value { color: var(--zf-warn); }
.office-kpi-card.is-danger .value { color: var(--zf-danger); }
.office-kpi-card.is-ok .value { color: var(--zf-accent); }

.office-invoice-tax-terms {
  margin: 10px 0 12px;
}
.office-invoice-tax-terms .form-check-input {
  width: 2.2em;
  height: 1.15em;
  margin-top: 0.2em;
}

.office-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--zf-muted);
  margin: 12px 0 6px;
}

.office-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.office-tabs::-webkit-scrollbar { display: none; }

.office-tab {
  flex: 0 0 auto;
  border: 1px solid var(--zf-border);
  background: var(--zf-surface);
  color: var(--zf-text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  min-height: 36px;
  cursor: pointer;
}

.office-tab.active {
  background: var(--zf-primary);
  border-color: var(--zf-primary);
  color: #fff;
}

.office-alert-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.office-alert-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--zf-surface);
  border: 1px solid var(--zf-border);
  border-radius: var(--zf-radius);
  padding: 9px 10px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--zf-shadow);
}

.office-alert-item i {
  color: var(--zf-primary);
  font-size: 1.1rem;
  margin-top: 2px;
}

.office-alert-item .title {
  font-size: 0.86rem;
  font-weight: 600;
}

.office-alert-item .meta {
  font-size: 0.75rem;
  color: var(--zf-muted);
}

.office-action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
@media (min-width: 768px) {
  .office-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 900px) and (orientation: landscape) {
  .office-action-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.office-action-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 9px;
  border-radius: var(--zf-radius);
  border: 1px solid var(--zf-border);
  background: var(--zf-surface);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--zf-shadow);
  min-height: 58px;
}

.office-action-btn i {
  font-size: 1.05rem;
  color: var(--zf-primary);
}

.office-action-btn span {
  font-size: 0.74rem;
  font-weight: 600;
}

.office-role-chip {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--zf-primary-soft);
  color: var(--zf-primary-dark);
  border: 1px solid rgba(26, 86, 219, 0.2);
}

/* Bottom nav reuses field-bottom-nav; office FAB same pattern */
.office-pwa-root .field-bottom-nav .create-fab .fab-circle {
  background: #0f766e;
}

/* Scrollable in-page list window (~10–15 rows) */
.mobile-list-window {
  max-height: min(60dvh, 28rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
  margin-bottom: 0.5rem;
}
.mobile-list-window .field-appt-card {
  margin-bottom: 0.5rem;
}
/* dark theme shared via html.pwa-dark in field-pwa.css */
