.safety-form-fieldset {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  background: var(--brand-surface);
  padding: 12px;
}

.safety-form-fieldset legend {
  color: var(--brand-command);
  font-weight: 950;
  padding: 0 4px;
}

.safety-form-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.safety-template-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.create-form .safety-form-grid label {
  display: grid;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  min-height: 0;
}

.create-form .safety-form-grid label.wide {
  grid-column: 1 / -1;
}

.safety-status-control {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.safety-form-grid span {
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.create-form .safety-form-grid input,
.create-form .safety-form-grid select,
.create-form .safety-form-grid textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--brand-command);
  padding: 10px;
}

.safety-template-row button {
  min-height: 42px;
  align-self: end;
  white-space: nowrap;
}

.safety-status-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.safety-status-shortcuts button {
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 28%, var(--brand-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-primary) 8%, #ffffff);
  color: var(--brand-primary-strong);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  padding: 7px 9px;
}

.safety-status-shortcuts button.active {
  border-color: var(--brand-primary);
  background: var(--brand-command-active-gradient);
  color: var(--brand-on-primary);
  box-shadow: var(--theme-primary-shadow);
}

.safety-template-actions {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 8px;
  align-items: end;
}

.safety-form-grid textarea {
  min-height: 84px;
  resize: vertical;
}

.safety-signoff-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-primary) 3%, #ffffff);
}

.safety-signoff-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  list-style: none;
}

.safety-signoff-head::-webkit-details-marker {
  display: none;
}

.safety-signoff-head strong {
  color: var(--brand-command);
  font-size: 13px;
  font-weight: 950;
}

.safety-signoff-head span {
  color: var(--brand-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
}

.safety-signoff-head b[data-details-toggle-state] {
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  justify-self: end;
  padding: 0 10px;
  border: 1px solid var(--brand-command-border);
  border-radius: 999px;
  background: var(--brand-command-gradient);
  color: var(--brand-on-command);
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.safety-signoff-panel > div[data-crew-signoff-rows] {
  display: grid;
  gap: 8px;
}

.crew-signoff-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.7fr) minmax(190px, 0.8fr) auto;
  gap: 8px;
  align-items: end;
}

.safety-signoff-actions {
  display: flex;
  justify-content: flex-end;
}

.safety-signoff-actions button,
.crew-signoff-row .danger {
  min-height: 38px;
  border: 1px solid var(--brand-primary);
  border-radius: 8px;
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  font-weight: 950;
  padding: 0 12px;
}

.crew-signoff-row .danger {
  border-color: var(--brand-command-border);
  background: var(--brand-command-gradient);
  color: var(--brand-on-command);
}

.workspace .office-safety-active-panel {
  background: var(--brand-surface) !important;
}

.workspace .office-safety-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 12px !important;
}

.workspace .office-safety-grid section,
.workspace .office-safety-drawer {
  display: grid !important;
  gap: 10px !important;
  align-content: start !important;
  align-self: start !important;
  min-width: 0 !important;
  border: 1px solid var(--brand-border) !important;
  border-radius: 8px !important;
  background: var(--brand-surface) !important;
  color: var(--brand-text) !important;
  box-shadow: 0 10px 24px rgba(var(--brand-command-rgb), 0.06) !important;
  padding: 12px !important;
}

.workspace .office-safety-grid .mini-section-title {
  align-items: start !important;
  min-height: 52px !important;
  padding: 10px 12px !important;
  border: 1px solid var(--brand-primary) !important;
  border-radius: 8px !important;
  background: var(--brand-command-active-gradient) !important;
  color: var(--brand-on-primary) !important;
  box-shadow: 0 12px 26px rgba(var(--brand-primary-rgb), 0.16) !important;
}

.workspace .office-safety-grid .mini-section-title strong {
  min-width: 0 !important;
  align-self: center !important;
  color: inherit !important;
  line-height: 1.25 !important;
}

.workspace .office-safety-grid .mini-section-title span {
  min-width: 28px !important;
  min-height: 26px !important;
  max-width: min(42vw, 170px) !important;
  display: inline-grid !important;
  place-items: center !important;
  align-self: center !important;
  justify-self: end !important;
  border: 1px solid var(--brand-command-border) !important;
  border-radius: 999px !important;
  background: var(--brand-command-gradient) !important;
  color: var(--brand-on-command) !important;
  box-shadow: 0 10px 22px rgba(var(--brand-command-rgb), 0.16) !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  padding: 0 9px !important;
  text-align: center !important;
  text-transform: uppercase !important;
  white-space: normal !important;
}

.workspace .office-safety-drawer {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.workspace .office-safety-drawer > summary {
  min-height: 56px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) max-content max-content !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px !important;
  border: 1px solid var(--brand-primary) !important;
  border-radius: 8px !important;
  background: var(--brand-command-active-gradient) !important;
  color: var(--brand-on-primary) !important;
  box-shadow: 0 12px 26px rgba(var(--brand-primary-rgb), 0.16) !important;
  cursor: pointer !important;
  list-style: none !important;
}

.workspace .office-safety-drawer[open] > summary {
  border-color: var(--brand-command-border) !important;
  background: var(--brand-command-gradient) !important;
  color: var(--brand-on-command) !important;
  box-shadow: 0 14px 30px rgba(var(--brand-command-rgb), 0.18) !important;
}

.workspace .office-safety-drawer > summary::-webkit-details-marker {
  display: none !important;
}

.workspace .office-safety-drawer > summary strong {
  min-width: 0 !important;
  color: inherit !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  line-height: 1.2 !important;
}

.workspace .office-safety-drawer > summary > span:not([data-details-toggle-state]) {
  min-height: 28px !important;
  display: inline-grid !important;
  place-items: center !important;
  justify-self: end !important;
  border: 1px solid var(--brand-command-border) !important;
  border-radius: 999px !important;
  background: var(--brand-command-gradient) !important;
  color: var(--brand-on-command) !important;
  box-shadow: 0 10px 22px rgba(var(--brand-command-rgb), 0.16) !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  padding: 0 9px !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.workspace .office-safety-drawer[open] > summary > span:not([data-details-toggle-state]) {
  border-color: rgba(255, 255, 255, 0.28) !important;
  background: var(--brand-primary) !important;
  color: var(--brand-on-primary) !important;
  box-shadow: 0 10px 22px rgba(var(--brand-primary-rgb), 0.22) !important;
}

.workspace .office-safety-drawer-body {
  display: grid !important;
  gap: 10px !important;
  min-width: 0 !important;
  margin-top: 8px !important;
  padding: 12px !important;
  border: 1px solid var(--brand-border) !important;
  border-radius: 8px !important;
  background: var(--brand-surface) !important;
  color: var(--brand-text) !important;
  box-shadow: 0 10px 24px rgba(var(--brand-command-rgb), 0.05) !important;
}
.workspace .office-safety-grid .employee-certification-badges span,
.workspace .office-safety-grid .safety-form-status-list article,
.workspace .office-safety-grid .official-document-list a {
  border: 1px solid var(--brand-border) !important;
  border-left: 5px solid var(--brand-primary) !important;
  border-radius: 8px !important;
  background: var(--brand-surface) !important;
  color: var(--brand-text) !important;
  box-shadow: none !important;
}

.workspace .office-safety-grid .employee-certification-badges span.expired,
.workspace .office-safety-grid .safety-form-status-list article.blocked {
  border-left-color: var(--brand-danger) !important;
}

.workspace .office-safety-grid .employee-certification-badges span.due-soon {
  border-left-color: var(--brand-warning) !important;
}

.workspace .office-safety-grid .employee-certification-badges span.current,
.workspace .office-safety-grid .safety-form-status-list article.complete,
.workspace .office-safety-grid .safety-form-status-list article.current {
  border-left-color: var(--brand-success) !important;
}
.workspace .office-safety-grid .employee-certification-badges b,
.workspace .office-safety-grid .safety-form-status-list strong,
.workspace .office-safety-grid .official-document-list span {
  color: var(--brand-text) !important;
}

.workspace .office-safety-grid .employee-certification-badges small,
.workspace .office-safety-grid .safety-form-status-list small,
.workspace .office-safety-grid .official-document-list b,
.workspace .office-safety-grid .official-document-list small {
  color: var(--brand-muted) !important;
}

.workspace .office-safety-grid .safety-form-status-list article > span,
.workspace .office-safety-grid .official-document-list a > b {
  width: max-content !important;
  min-height: 26px !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 22%, var(--brand-border)) !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--brand-primary) 10%, #ffffff) !important;
  color: var(--brand-primary-strong) !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  padding: 0 9px !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.workspace .office-safety-grid .safety-form-status-list article.complete > span,
.workspace .office-safety-grid .safety-form-status-list article.current > span {
  border-color: var(--brand-success) !important;
  background: var(--brand-success) !important;
  color: #ffffff !important;
}

.workspace .office-safety-grid .safety-form-status-list article.blocked > span {
  border-color: var(--brand-danger) !important;
  background: var(--brand-danger) !important;
  color: #ffffff !important;
}

.workspace .office-safety-grid .safety-form-log-list article > span {
  width: auto !important;
  max-width: 100% !important;
  justify-self: start !important;
  white-space: normal !important;
  line-height: 1.2 !important;
  text-align: left !important;
}

.workspace .office-safety-grid .safety-form-log-list button {
  width: max-content !important;
  min-height: 34px !important;
  border: 1px solid var(--brand-primary) !important;
  border-radius: 999px !important;
  background: var(--brand-primary) !important;
  color: var(--brand-on-primary) !important;
  padding: 7px 12px !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  box-shadow: var(--theme-primary-shadow) !important;
}

.workspace .office-safety-form-builder,
.workspace .office-safety-form-library {
  grid-column: 1 / -1 !important;
}

.workspace .office-safety-form {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.workspace .office-safety-form .wide {
  grid-column: 1 / -1 !important;
}

.workspace .safety-form-type-options {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 8px !important;
}

.workspace .safety-form-type-options label {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 9px 10px !important;
  border: 1px solid var(--brand-border) !important;
  border-radius: 8px !important;
  background: var(--brand-surface) !important;
  color: var(--brand-text) !important;
  font-weight: 850 !important;
}

.workspace .safety-form-type-options input {
  width: auto !important;
  min-height: 0 !important;
  accent-color: var(--brand-primary) !important;
}

.workspace .safety-form-library-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 10px !important;
}

.workspace .safety-form-library-list article {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  align-items: start !important;
  padding: 10px !important;
  border: 1px solid var(--brand-border) !important;
  border-left: 5px solid var(--brand-primary) !important;
  border-radius: 8px !important;
  background: var(--brand-surface) !important;
  color: var(--brand-text) !important;
  box-shadow: 0 10px 24px rgba(var(--brand-command-rgb), 0.06) !important;
}

.workspace .safety-form-library-list article.custom {
  border-left-color: var(--brand-secondary) !important;
}

.workspace .safety-form-library-list article.draft {
  border-left-color: var(--brand-warning) !important;
}

.workspace .safety-form-library-list article.archived {
  border-left-color: var(--brand-muted) !important;
  opacity: 0.82 !important;
}

.workspace .safety-form-library-list strong,
.workspace .safety-form-library-list small {
  display: block !important;
  min-width: 0 !important;
}

.workspace .safety-form-library-list strong {
  color: var(--brand-text) !important;
  font-weight: 950 !important;
}

.workspace .safety-form-library-list span,
.workspace .safety-form-library-list small {
  color: var(--brand-muted) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.workspace .safety-form-library-list b {
  min-width: 64px !important;
  min-height: 28px !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 22%, var(--brand-border)) !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--brand-primary) 10%, #ffffff) !important;
  color: var(--brand-primary-strong) !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}

.workspace .safety-form-library-list article.active {
  border-color: var(--brand-primary) !important;
  box-shadow: 0 14px 28px rgba(var(--brand-primary-rgb), 0.14) !important;
}

.workspace .safety-form-library-meta {
  display: grid !important;
  gap: 6px !important;
  justify-items: end !important;
}

.workspace .safety-form-library-actions {
  grid-column: 1 / -1 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
}

.workspace .safety-form-library-actions button,
.workspace .office-safety-template-detail-actions button {
  min-height: 36px !important;
  border: 1px solid var(--brand-primary) !important;
  border-radius: 999px !important;
  background: var(--brand-primary) !important;
  color: var(--brand-on-primary) !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  box-shadow: var(--theme-primary-shadow) !important;
}

.workspace .office-safety-template-detail {
  grid-column: 1 / -1 !important;
  display: grid !important;
  gap: 12px !important;
  padding: 12px !important;
  border: 1px solid var(--brand-primary) !important;
  border-radius: 8px !important;
  background: var(--brand-surface) !important;
  color: var(--brand-text) !important;
  box-shadow: 0 16px 34px rgba(var(--brand-command-rgb), 0.08) !important;
}

.workspace .office-safety-template-detail-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: start !important;
  padding: 12px !important;
  border-radius: 8px !important;
  background: var(--brand-primary-gradient) !important;
  color: var(--brand-on-primary) !important;
}

.workspace .office-safety-template-detail-head span,
.workspace .office-safety-template-detail-head small,
.workspace .office-safety-template-detail-head strong {
  display: block !important;
  color: inherit !important;
}

.workspace .office-safety-template-detail-head span,
.workspace .office-safety-template-detail-head small {
  font-size: 12px !important;
  font-weight: 850 !important;
  opacity: 0.92 !important;
}

.workspace .office-safety-template-detail-head strong {
  font-size: clamp(18px, 2vw, 24px) !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
}

.workspace .office-safety-template-detail-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

.workspace .office-safety-template-detail-actions button {
  border-color: rgba(255, 255, 255, 0.4) !important;
  background: var(--brand-command) !important;
  color: var(--brand-on-command) !important;
  box-shadow: 0 10px 22px rgba(var(--brand-command-rgb), 0.18) !important;
}

.workspace .office-safety-template-detail-grid,
.workspace .office-safety-template-content {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 10px !important;
}

.workspace .office-safety-template-detail-grid article,
.workspace .office-safety-template-content article,
.workspace .office-safety-template-flow,
.workspace .office-safety-template-blank {
  min-width: 0 !important;
  display: grid !important;
  gap: 8px !important;
  padding: 12px !important;
  border: 1px solid var(--brand-border) !important;
  border-left: 5px solid var(--brand-primary) !important;
  border-radius: 8px !important;
  background: var(--brand-surface) !important;
  color: var(--brand-text) !important;
}

.workspace .office-safety-template-detail-grid span,
.workspace .office-safety-template-content span {
  color: var(--brand-primary) !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
}

.workspace .office-safety-template-detail-grid strong,
.workspace .office-safety-template-content strong {
  color: var(--brand-text) !important;
  font-size: 15px !important;
  font-weight: 950 !important;
}

.workspace .office-safety-template-detail-grid p,
.workspace .office-safety-template-content p,
.workspace .office-safety-template-content li,
.workspace .office-safety-template-flow p {
  color: var(--brand-muted) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.45 !important;
}

.workspace .office-safety-template-content ul {
  display: grid !important;
  gap: 6px !important;
  margin: 0 !important;
  padding-left: 18px !important;
}

.workspace .office-safety-template-content .reference-links {
  grid-column: 1 / -1 !important;
}

.workspace .office-safety-template-content .reference-links a {
  color: var(--brand-primary) !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  overflow-wrap: anywhere !important;
}

.workspace .office-safety-template-content .reference-links small {
  display: block !important;
  color: var(--brand-muted) !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  margin-top: 2px !important;
}

.workspace .office-safety-template-flow ol {
  display: grid !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.workspace .office-safety-template-flow li {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: start !important;
}

.workspace .office-safety-template-flow li > span,
.workspace .office-safety-template-blank span {
  min-height: 30px !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 1px solid var(--brand-primary) !important;
  border-radius: 999px !important;
  background: var(--brand-primary) !important;
  color: var(--brand-on-primary) !important;
  font-size: 12px !important;
  font-weight: 950 !important;
}

.workspace .office-safety-template-blank > div:last-child {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.workspace .office-safety-template-blank span {
  padding: 5px 10px !important;
}

@media (max-width: 760px) {
  .workspace .office-safety-form {
    grid-template-columns: 1fr !important;
  }

  .workspace .office-safety-drawer > summary {
    grid-template-columns: minmax(0, 1fr) max-content !important;
  }

  .workspace .office-safety-drawer > summary > span:not([data-details-toggle-state]) {
    justify-self: start !important;
  }

  .workspace .safety-form-library-list article {
    grid-template-columns: 1fr !important;
  }

  .workspace .safety-form-library-list b {
    justify-self: start !important;
  }

  .safety-template-actions,
.workspace .office-safety-template-detail-head {
    grid-template-columns: 1fr !important;
  }

  .workspace .office-safety-template-detail-actions {
    justify-content: flex-start !important;
  }
}

@media (max-width: 900px) {
  .safety-form-grid {
    grid-template-columns: 1fr;
  }

  .safety-template-row {
    grid-template-columns: 1fr;
  }

  .crew-signoff-row {
    grid-template-columns: 1fr;
  }

  .safety-signoff-actions {
    justify-content: stretch;
  }

  .safety-signoff-actions button,
.crew-signoff-row .danger {
    width: 100%;
  }
}

#root .workspace .employee-safety-page .employee-safety-form button[type="submit"] {
  min-height: 38px !important;
  border: 1px solid var(--brand-primary) !important;
  border-radius: 999px !important;
  background: var(--brand-command-active-gradient) !important;
  color: var(--brand-on-primary) !important;
  box-shadow: var(--theme-primary-shadow) !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  padding: 8px 14px !important;
}

#root .workspace .employee-safety-page .employee-safety-form {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

#root .workspace .employee-safety-page .employee-safety-form .wide,
#root .workspace .employee-safety-page .employee-safety-form .safety-form-fieldset {
  grid-column: 1 / -1 !important;
}

#root .workspace .employee-safety-page .employee-safety-form .safety-form-fieldset {
  margin: 0 !important;
}

#root .workspace .employee-safety-page .employee-safety-drawer-body {
  display: grid !important;
  gap: 10px !important;
  min-width: 0 !important;
}

#root .workspace .employee-safety-page .employee-safety-drawer > summary > b:first-of-type {
  min-width: 32px !important;
}

#root .workspace .employee-safety-page .employee-safety-library .safety-form-library-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
}

#root .workspace .employee-safety-page .employee-safety-library .safety-form-library-list article {
  min-height: 0 !important;
}

@media (max-width: 700px) {

  #root .workspace .employee-safety-page .employee-safety-form {
    grid-template-columns: 1fr !important;
  }
}

#root .workspace .employee-safety-page .employee-certification-badges span,
#root .workspace .employee-safety-page .safety-form-status-list article,
#root .workspace .employee-safety-page .official-document-list a,
#root .workspace .employee-safety-page .safety-form-library-list article {
  border-color: var(--brand-border) !important;
  border-left-color: var(--brand-primary) !important;
  background: var(--brand-surface) !important;
  color: var(--brand-text) !important;
  box-shadow: var(--theme-card-shadow) !important;
}

#root .workspace .employee-safety-page .employee-certification-badges span.current,
#root .workspace .employee-safety-page .safety-form-status-list article.complete,
#root .workspace .employee-safety-page .safety-form-status-list article.current {
  border-left-color: var(--brand-success) !important;
}

#root .workspace .employee-safety-page .employee-certification-badges span.due-soon {
  border-left-color: var(--brand-warning) !important;
  background: color-mix(in srgb, var(--brand-warning) 8%, #ffffff) !important;
}

#root .workspace .employee-safety-page .employee-certification-badges span.expired,
#root .workspace .employee-safety-page .safety-form-status-list article.blocked {
  border-left-color: var(--brand-danger) !important;
  background: color-mix(in srgb, var(--brand-danger) 6%, #ffffff) !important;
}

#root .workspace .employee-safety-page .employee-certification-badges b,
#root .workspace .employee-safety-page .safety-form-status-list strong,
#root .workspace .employee-safety-page .official-document-list span,
#root .workspace .employee-safety-page .safety-form-library-list strong {
  color: var(--brand-text) !important;
}

#root .workspace .employee-safety-page .employee-certification-badges small,
#root .workspace .employee-safety-page .safety-form-status-list small,
#root .workspace .employee-safety-page .official-document-list b,
#root .workspace .employee-safety-page .official-document-list small,
#root .workspace .employee-safety-page .safety-form-library-list span,
#root .workspace .employee-safety-page .safety-form-library-list small {
  color: var(--brand-muted) !important;
}

#root .workspace .employee-safety-page .field-quick-control-collapsible {
  border-color: var(--brand-border) !important;
  border-left-color: var(--brand-primary) !important;
  background: var(--brand-surface) !important;
  color: var(--brand-text) !important;
}

#root .workspace .employee-safety-page .field-quick-heading span {
  color: var(--brand-text) !important;
}

#root .workspace .employee-safety-page .field-quick-heading small {
  color: var(--brand-muted) !important;
}

#root .workspace .employee-safety-page .field-quick-fill button.active {
  border-color: var(--brand-primary) !important;
  background: var(--brand-command-active-gradient) !important;
  color: var(--brand-on-primary) !important;
  box-shadow: var(--theme-primary-shadow) !important;
}

#root .workspace .employee-safety-page .field-quick-fill button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-width: 0 !important;
  white-space: normal !important;
}

#root .workspace .employee-safety-page .field-quick-fill button.active::after {
  content: "âœ“";
  width: 19px;
  min-width: 19px;
  height: 19px;
  min-height: 19px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--brand-on-primary);
  border-radius: 50%;
  background: var(--brand-on-primary);
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  padding: 0;
  white-space: nowrap;
}

#root .workspace .employee-safety-page .field-optional-drawer {
  border-color: var(--brand-border) !important;
  background: var(--brand-panel) !important;
  color: var(--brand-text) !important;
}

#root .workspace .employee-safety-page .field-optional-drawer > summary {
  border: 1px solid var(--brand-primary) !important;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-strong)) !important;
  color: var(--brand-on-primary) !important;
  box-shadow: 0 12px 26px rgba(var(--brand-primary-rgb), 0.16) !important;
}

#root .workspace .employee-safety-page .field-optional-drawer[open] > summary {
  border-color: var(--brand-command-border) !important;
  background: var(--brand-command-gradient) !important;
  color: var(--brand-on-command) !important;
  box-shadow: 0 16px 34px rgba(var(--brand-command-rgb), 0.2) !important;
}

#root .workspace .employee-safety-page .field-optional-drawer > summary * {
  color: inherit !important;
}

#root .workspace .employee-safety-page .field-optional-drawer > summary span:not([data-details-toggle-state]) {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#root .workspace .employee-safety-page .field-optional-drawer > summary b[data-details-toggle-state] {
  border-color: var(--brand-command-border) !important;
  background: var(--brand-command-gradient) !important;
  color: var(--brand-on-command) !important;
}

#root .workspace .employee-safety-page .field-optional-drawer[open] > summary b[data-details-toggle-state] {
  border-color: rgba(255, 255, 255, 0.28) !important;
  background: var(--brand-primary) !important;
  color: var(--brand-on-primary) !important;
}

#root .workspace .employee-safety-page .field-optional-drawer > summary,
#root .workspace .employee-safety-page .field-optional-drawer[open] > summary {
  border: 1px solid var(--brand-border) !important;
  border-left: 5px solid var(--brand-primary) !important;
  background: var(--brand-surface) !important;
  color: var(--brand-text) !important;
  box-shadow: var(--theme-card-shadow) !important;
}

#root .workspace .employee-safety-page .field-optional-drawer > summary strong {
  color: var(--brand-text) !important;
}

#root .workspace .employee-safety-page .field-optional-drawer > summary span:not([data-details-toggle-state]) {
  color: var(--brand-primary) !important;
}

#root .workspace .employee-safety-page .field-optional-drawer > summary b[data-details-toggle-state],
#root .workspace .employee-safety-page .field-optional-drawer[open] > summary b[data-details-toggle-state] {
  border-color: var(--theme-pill-closed-border) !important;
  background: var(--theme-pill-closed-background) !important;
  color: var(--theme-pill-closed-color) !important;
  box-shadow: 0 10px 22px rgba(var(--brand-command-rgb), 0.16) !important;
}

#root .workspace .employee-safety-page .my-day-hero .my-day-status {
  min-width: 170px !important;
  display: grid !important;
  gap: 6px !important;
  justify-items: end !important;
  text-align: right !important;
  border: 1px solid var(--brand-primary) !important;
  border-left: 5px solid var(--brand-primary) !important;
  border-radius: 8px !important;
  background: var(--brand-surface) !important;
  color: var(--brand-text) !important;
  box-shadow: 0 12px 26px rgba(var(--brand-command-rgb), 0.08) !important;
  padding: 12px !important;
}

#root .workspace .employee-safety-page .my-day-hero .my-day-status strong {
  color: var(--brand-text) !important;
  font-size: 30px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

#root .workspace .employee-safety-page .my-day-hero .my-day-status span {
  color: var(--brand-primary) !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
}
