/* Safety Manager mobile dashboard */

body.safety-manager-mode.safety-dash-tab,
body.safety-manager-mode.safety-dash-tab #screen-app,
body.safety-manager-mode.safety-dash-tab .app-shell {
  background: #f8fafc !important;
  color: #0f172a;
}

body.safety-manager-mode.safety-dash-tab .app-main {
  background: #f8fafc !important;
  padding: 0 16px 96px !important;
}

body.safety-manager-mode.safety-dash-tab.safety-mock-chrome-on .app-main {
  padding-top: 0 !important;
}

body.safety-manager-mode.safety-dash-tab #crew-dash-wrap {
  display: none !important;
}

body.safety-manager-mode.safety-dash-tab #safety-dash-root {
  display: block;
}

#safety-dash-root {
  display: none;
}

.sfty-dash {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 14px 0 8px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sfty-dash-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sfty-dash-greeting {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.2;
}

.sfty-dash-sub {
  margin: 0;
  font-size: 14px;
  color: #64748b;
}

.sfty-dash-date {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  padding-top: 4px;
}

.sfty-dash-date-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  color: #94a3b8;
}

.sfty-dash-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sfty-dash-stat {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.sfty-dash-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.sfty-dash-stat-icon svg {
  width: 20px;
  height: 20px;
}

.sfty-dash-stat--green .sfty-dash-stat-icon {
  background: #dcfce7;
  color: #16a34a;
}

.sfty-dash-stat--red .sfty-dash-stat-icon {
  background: #fee2e2;
  color: #dc2626;
}

.sfty-dash-stat--orange .sfty-dash-stat-icon {
  background: #ffedd5;
  color: #ea580c;
}

.sfty-dash-stat--blue .sfty-dash-stat-icon {
  background: #dbeafe;
  color: #2563eb;
}

.sfty-dash-stat-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sfty-dash-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.sfty-dash-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.sfty-dash-stat-delta {
  font-size: 10px;
  font-weight: 600;
}

.sfty-dash-stat-delta.pos {
  color: #16a34a;
}

.sfty-dash-stat-delta.neg {
  color: #dc2626;
}

.sfty-dash-stat-delta.muted {
  color: #94a3b8;
}

.sfty-dash-stat-chevron svg,
.sfty-dash-row-chevron svg {
  width: 16px;
  height: 16px;
  color: #cbd5e1;
}

.sfty-dash-section h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

.sfty-dash-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sfty-dash-link {
  border: none;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.sfty-dash-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.sfty-dash-card--list .sfty-dash-attn-row:not(:last-child) {
  border-bottom: 1px solid #f1f5f9;
}

.sfty-dash-attn-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 12px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.sfty-dash-attn-icon svg {
  width: 20px;
  height: 20px;
  color: #f59e0b;
}

.sfty-dash-attn-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sfty-dash-attn-copy b {
  font-size: 14px;
  color: #0f172a;
}

.sfty-dash-attn-copy small {
  font-size: 12px;
  color: #64748b;
}

.sfty-dash-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.sfty-dash-pill--high {
  background: #fee2e2;
  color: #dc2626;
}

.sfty-dash-pill--medium {
  background: #ffedd5;
  color: #ea580c;
}

.sfty-dash-pill--low {
  background: #e2e8f0;
  color: #475569;
}

.sfty-dash-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.sfty-dash-action {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.sfty-dash-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.sfty-dash-action-icon svg {
  width: 22px;
  height: 22px;
}

.sfty-dash-action-icon--blue {
  background: #dbeafe;
  color: #2563eb;
}

.sfty-dash-action-icon--green {
  background: #dcfce7;
  color: #16a34a;
}

.sfty-dash-action-icon--red {
  background: #fee2e2;
  color: #dc2626;
}

.sfty-dash-action-icon--purple {
  background: #ede9fe;
  color: #7c3aed;
}

.sfty-dash-action-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sfty-dash-action-copy b {
  font-size: 15px;
  color: #0f172a;
}

.sfty-dash-action-copy small {
  font-size: 12px;
  color: #64748b;
}

.sfty-dash-empty,
.sfty-dash-loading,
.sfty-dash-error {
  padding: 16px;
  font-size: 14px;
  color: #64748b;
  text-align: center;
}

.safety-mock-tabs.hidden {
  display: none !important;
}

/* Certs placeholder */
.sfty-certs-placeholder {
  padding: 24px 0;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

.sfty-certs-placeholder h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #0f172a;
}

body.safety-manager-mode.safety-certs-tab .app-main,
body.safety-manager-mode.safety-certs-tab .app-shell,
body.safety-manager-mode.safety-certs-tab {
  background: #f8fafc !important;
}

body.safety-manager-mode.safety-certs-tab .app-main {
  padding: 0 16px 96px !important;
}
