:root {
  --sf-color-primary: #2b374b;
  --sf-color-primary-deep: #202b3d;
  --sf-color-accent: #ed1c24;
  --sf-color-accent-deep: #bf141c;
  --sf-color-surface: #ffffff;
  --sf-color-surface-muted: #f0f2f2;
  --sf-color-surface-soft: #fcfcfc;
  --sf-color-border: #d1d1d1;
  --sf-color-line: #e1e3e5;
  --sf-color-text: #2b374b;
  --sf-color-text-muted: #575757;
  --sf-color-text-soft: #7d7d7d;
  --sf-shadow-panel: 0 10px 30px rgba(43, 55, 75, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--sf-color-surface-muted);
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--sf-color-text);
  background:
    linear-gradient(180deg, rgba(43, 55, 75, 0.06) 0, rgba(43, 55, 75, 0) 180px),
    linear-gradient(180deg, #f7f8f8 0%, var(--sf-color-surface-muted) 100%);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell-topbar {
  height: 6px;
  background: var(--sf-color-accent);
}

.shell-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--sf-color-line);
  background: rgba(255, 255, 255, 0.97);
  position: sticky;
  top: 0;
  z-index: 20;
}

.shell-header-main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
  flex: 1;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  display: block;
  width: auto;
  height: 2.5rem;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sf-color-primary);
}

.page-summary,
.secondary-link,
.workstation-card span,
.settings-card p,
.panel p {
  color: var(--sf-color-text-muted);
}

.shell-nav {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.shell-nav-link {
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--sf-color-primary);
  font-weight: 700;
}

.shell-nav-link:hover {
  border-color: var(--sf-color-line);
  background: var(--sf-color-surface-soft);
}

.shell-user-menu {
  position: relative;
}

.shell-user-menu summary {
  list-style: none;
}

.shell-user-menu summary::-webkit-details-marker {
  display: none;
}

.shell-user-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.7rem;
  max-width: min(24rem, 34vw);
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--sf-color-primary);
  font-weight: 700;
  cursor: pointer;
}

.shell-user-toggle::after {
  content: "";
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-left: 0.3rem solid transparent;
  border-right: 0.3rem solid transparent;
  border-top: 0.38rem solid currentColor;
}

.shell-user-toggle-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell-user-toggle:hover,
.shell-user-menu[open] .shell-user-toggle {
  border-color: var(--sf-color-line);
  background: var(--sf-color-surface-soft);
}

.shell-user-menu-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 12rem;
  padding: 0.45rem;
  background: var(--sf-color-surface);
  border: 1px solid var(--sf-color-border);
  box-shadow: var(--sf-shadow-panel);
  z-index: 30;
}

.shell-user-menu-link {
  display: block;
  padding: 0.8rem 0.9rem;
  color: var(--sf-color-primary);
  font-weight: 700;
  border-left: 3px solid transparent;
}

.shell-user-menu-link:hover {
  background: var(--sf-color-surface-soft);
  border-left-color: var(--sf-color-accent);
}

.shell-main {
  max-width: 1480px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.shell-main-wide {
  max-width: min(100%, 1880px);
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

.hero-card,
.panel,
.settings-card,
.workstation-card {
  background: var(--sf-color-surface);
  border: 1px solid var(--sf-color-border);
  border-radius: 0;
  box-shadow: var(--sf-shadow-panel);
}

.hero-card {
  display: grid;
  grid-template-columns: 1.5fr minmax(320px, 460px);
  gap: 1.5rem;
  padding: 0;
  overflow: hidden;
}

.hero-copy {
  padding: 2.5rem 2rem;
  background:
    linear-gradient(135deg, rgba(43, 55, 75, 0.98) 0%, rgba(32, 43, 61, 0.98) 100%);
  color: #fff;
  position: relative;
}

.hero-copy p,
.hero-copy h1 {
  color: inherit;
}

.hero-copy h1,
.page-header h1,
.settings-card h2 {
  margin: 0 0 0.5rem;
}

.hero-copy h1,
.page-header h1 {
  font-size: clamp(1.8rem, 2vw, 2.6rem);
  line-height: 1.1;
}

.eyebrow,
.hero-note-label,
.settings-kicker {
  margin: 0 0 0.75rem;
  color: var(--sf-color-text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.login-language-switcher {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.65rem;
  margin: -0.4rem 0 1.25rem;
}

.login-language-label {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-language-select {
  min-width: 220px;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.login-language-select option {
  color: var(--sf-color-primary);
  background: #fff;
}

.hero-note {
  min-width: 140px;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--sf-color-accent);
  background: rgba(255, 255, 255, 0.08);
}

.hero-note strong {
  display: block;
  color: #fff;
  font-size: 0.98rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
  padding: 2rem;
  background:
    linear-gradient(180deg, var(--sf-color-surface-soft) 0%, var(--sf-color-surface) 100%);
}

.workbench-entry-card {
  border-radius: 24px;
  overflow: hidden;
}

.workbench-entry-copy {
  padding: 2.6rem 2.2rem;
  background:
    radial-gradient(circle at 82% 22%, rgba(237, 28, 36, 0.12), transparent 24%),
    radial-gradient(circle at 88% 84%, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(135deg, #263246 0%, #2d3a50 62%, #4a394d 100%);
}

.workbench-entry-copy > p:not(.eyebrow) {
  max-width: 38rem;
  line-height: 1.55;
}

.workbench-entry-banner {
  margin-top: 1rem;
  border-radius: 16px;
  border-left-width: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.workbench-entry-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.workbench-entry-note {
  min-width: 0;
  padding: 1rem 1rem 1.05rem;
  border-left: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.09);
}

.workbench-entry-note strong {
  line-height: 1.35;
}

.workbench-entry-form {
  padding: 2.1rem 2rem;
  gap: 1.2rem;
  background:
    linear-gradient(180deg, rgba(250, 251, 252, 1) 0%, rgba(244, 246, 248, 1) 100%);
}

.workbench-entry-form-header h2 {
  margin: 0.2rem 0 0.4rem;
  color: var(--sf-color-primary);
  font-size: clamp(1.45rem, 1.1rem + 0.8vw, 1.9rem);
  line-height: 1.1;
}

.workbench-entry-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.workbench-entry-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.workbench-entry-field span {
  color: var(--sf-color-text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workbench-entry-field select {
  min-height: 3.1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(43, 55, 75, 0.12);
  border-radius: 14px;
  background: #fff;
  color: var(--sf-color-primary);
  font-size: 0.96rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.workbench-entry-field select:focus {
  outline: none;
  border-color: rgba(196, 46, 36, 0.35);
  box-shadow: 0 0 0 3px rgba(196, 46, 36, 0.08);
}

.workbench-entry-field select:disabled {
  background: rgba(43, 55, 75, 0.05);
  color: var(--sf-color-text-soft);
}

.workbench-entry-form-footer {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-top: 0.25rem;
}

.workbench-entry-help {
  margin: 0;
  color: var(--sf-color-text-muted);
  line-height: 1.45;
}

.workbench-entry-button {
  min-height: 3.1rem;
  border-radius: 14px;
}

.auth-entry-shell {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 9.5rem);
  padding: 2.5rem 1.5rem 3rem;
}

.auth-entry-card {
  width: min(100%, 34rem);
  padding: 2rem;
  border: 1px solid var(--sf-color-border);
  background:
    radial-gradient(circle at top right, rgba(237, 28, 36, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 246, 247, 0.98) 100%);
  box-shadow: var(--sf-shadow-panel);
}

.auth-entry-language-switcher {
  justify-content: flex-start;
  margin: 0 0 2rem;
}

.auth-entry-language-label {
  color: var(--sf-color-text-soft);
}

.auth-entry-language-select {
  min-width: 13rem;
  border-color: var(--sf-color-border);
  background: #fff;
  color: var(--sf-color-primary);
}

.auth-entry-kicker {
  margin: 0 0 0.8rem;
  color: var(--sf-color-accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-entry-title {
  margin: 0;
  color: var(--sf-color-primary);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1;
}

.auth-entry-summary {
  margin: 1rem 0 1.6rem;
  color: var(--sf-color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.auth-entry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.25rem;
}

label {
  font-weight: 700;
  color: var(--sf-color-primary);
}

select,
button {
  font: inherit;
}

select {
  padding: 0.9rem 1rem;
  border-radius: 0;
  border: 1px solid var(--sf-color-border);
  background: #fff;
  color: var(--sf-color-primary);
}

.primary-button,
.inline-action {
  border: 0;
  border-radius: 0;
  padding: 0.9rem 1.1rem;
  background: var(--sf-color-accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.inline-action {
  padding: 0.65rem 0.85rem;
  white-space: nowrap;
}

.action-column-stack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: stretch;
}

.run-state-form {
  margin: 0;
}

.run-state-button,
.declare-button {
  width: 100%;
  min-width: 7.5rem;
  justify-content: center;
}

.run-state-button-start {
  background: #2b374b;
}

.run-state-button-start:hover {
  background: #202b3d;
}

.run-state-button-stop {
  background: #1d8f4e;
}

.run-state-button-stop:hover {
  background: #177240;
}

.run-state-button-restart {
  background: #c48711;
}

.run-state-button-restart:hover {
  background: #9f6c0d;
}

.primary-button:hover,
.inline-action:hover {
  background: var(--sf-color-accent-deep);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--sf-color-primary);
}

.page-header p {
  margin: 0.2rem 0 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-shell-tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}

.dashboard-shell-workstation {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--sf-color-line);
  background: var(--sf-color-surface-soft);
  white-space: nowrap;
}

.dashboard-shell-workstation strong {
  font-size: 0.95rem;
  color: var(--sf-color-primary);
}

.dashboard-shell-label {
  color: var(--sf-color-text-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dashboard-week-summary {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--sf-color-line);
  background: var(--sf-color-surface-soft);
  color: var(--sf-color-primary);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.action-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--sf-color-border);
  background: var(--sf-color-surface);
  color: var(--sf-color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.compact-action-button {
  min-height: 2.35rem;
  padding: 0.5rem 0.7rem;
  font-size: 0.78rem;
}

.action-link-button:hover {
  border-color: var(--sf-color-primary);
  background: var(--sf-color-surface-soft);
}

.action-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.secondary-link {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.workstation-card,
.settings-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem;
}

.workstation-card {
  min-height: 160px;
  border-top: 4px solid var(--sf-color-primary);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.workstation-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(43, 55, 75, 0.14);
  border-top-color: var(--sf-color-accent);
}

.workstation-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.workstation-chip,
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--sf-color-border);
  background: var(--sf-color-surface-soft);
  color: var(--sf-color-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-chip {
  border-color: rgba(43, 55, 75, 0.18);
  background: rgba(43, 55, 75, 0.08);
}

.settings-card {
  border-left: 4px solid var(--sf-color-accent);
}

.settings-kicker {
  color: var(--sf-color-accent);
}

.admin-users-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.admin-users-sidebar,
.admin-users-editor {
  padding: 1rem;
}

.admin-users-sidebar-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-user-search-form {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.admin-user-search-form input {
  min-height: 2.75rem;
}

.admin-user-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 70vh;
  overflow: auto;
}

.admin-user-list-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--sf-color-border);
  background: #fff;
  color: var(--sf-color-primary);
  text-decoration: none;
  border-left: 4px solid transparent;
}

.admin-user-list-item:hover {
  border-left-color: var(--sf-color-accent);
  box-shadow: 0 10px 18px rgba(43, 55, 75, 0.08);
}

.admin-user-list-item-active {
  border-left-color: var(--sf-color-accent);
  background: rgba(196, 46, 36, 0.04);
}

.admin-user-list-item span {
  color: var(--sf-color-text-soft);
  font-size: 0.9rem;
}

.admin-user-list-meta {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem !important;
}

.admin-user-empty {
  margin: 0;
  color: var(--sf-color-text-soft);
}

.admin-user-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.settings-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.settings-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--sf-color-text-soft);
  font-size: 0.9rem;
  text-align: right;
}

.assignment-fieldset {
  border: 1px solid var(--sf-color-border);
  padding: 0.9rem 1rem 1rem;
}

.assignment-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.assignment-checkbox {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--sf-color-border);
  background: #fff;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.management-config-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.management-config-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.management-config-item {
  border: 1px solid var(--sf-color-border);
  background: #fff;
  border-radius: 18px;
  padding: 1rem;
}

.management-config-item-compact {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.management-config-item-header,
.management-config-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.management-config-item-header p,
.management-config-summary p {
  margin: 0.2rem 0 0;
  color: var(--sf-color-text-soft);
  font-size: 0.92rem;
}

.management-config-summary {
  cursor: pointer;
  list-style: none;
}

.management-config-summary::-webkit-details-marker {
  display: none;
}

.management-config-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(43, 55, 75, 0.08);
  color: var(--sf-color-text-soft);
  font-size: 0.85rem;
  white-space: nowrap;
}

.management-config-form {
  margin-top: 1rem;
}

.admin-users-layout-modern {
  grid-template-columns: minmax(288px, 332px) minmax(0, 1fr);
  gap: 1.25rem;
}

.admin-users-page-header {
  margin-bottom: 1rem;
}

.admin-users-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.admin-sidebar-cta {
  flex: 0 1 11rem;
  max-width: 11rem;
  min-height: 2.65rem;
  padding: 0.62rem 0.9rem;
  font-size: 0.84rem;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.admin-users-count {
  margin: 0.2rem 0 0;
  color: var(--sf-color-text-soft);
  font-size: 0.92rem;
}

.admin-user-filters {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.admin-user-filters > label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-user-filters > label > span {
  color: var(--sf-color-text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-user-search-shell {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.admin-search-input-wrap {
  position: relative;
  flex: 1 1 auto;
}

.admin-user-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.65rem;
}

.admin-user-filter-grid label,
.admin-editor-section .planner-filter-grid label,
.admin-editor-section > label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-user-filter-grid label > span,
.admin-editor-section .planner-filter-grid label > span,
.admin-editor-section > label > span {
  color: var(--sf-color-text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-input,
.admin-select {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.72rem 0.92rem;
  border: 1px solid rgba(43, 55, 75, 0.16);
  border-radius: 14px;
  background: #fff;
  color: var(--sf-color-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.admin-input::placeholder {
  color: rgba(43, 55, 75, 0.48);
}

.admin-input:focus,
.admin-select:focus {
  outline: none;
  border-color: rgba(196, 46, 36, 0.45);
  box-shadow: 0 0 0 3px rgba(196, 46, 36, 0.12);
}

.admin-input[readonly] {
  background: linear-gradient(180deg, rgba(248, 248, 246, 0.96), rgba(244, 244, 241, 0.96));
  color: var(--sf-color-text-soft);
}

.admin-input-search {
  padding-left: 0.92rem;
}

.admin-textarea {
  min-height: 10rem;
  resize: vertical;
  line-height: 1.45;
}

.admin-color-picker-field {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 2.85rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(43, 55, 75, 0.16);
  border-radius: 14px;
  background: #fff;
}

.admin-color-picker {
  width: 3rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
}

.admin-color-picker::-webkit-color-swatch-wrapper {
  padding: 0;
}

.admin-color-picker::-webkit-color-swatch {
  border: 1px solid rgba(43, 55, 75, 0.16);
  border-radius: 10px;
}

.admin-color-picker-value {
  color: var(--sf-color-primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-field-help {
  margin: 0.5rem 0 0;
  color: var(--sf-color-text-soft);
  font-size: 0.88rem;
}

.admin-import-export-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.admin-inline-import-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  flex: 1 1 26rem;
}

.admin-inline-import-form .admin-input[type="file"] {
  flex: 1 1 15rem;
  min-width: 12rem;
}

.admin-search-button {
  min-height: 2.85rem;
  padding: 0.72rem 0.95rem;
  border-radius: 14px;
  white-space: nowrap;
}

.admin-user-directory {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 72vh;
  overflow: auto;
}

.admin-user-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.78rem;
  border: 1px solid rgba(43, 55, 75, 0.12);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.admin-user-row:hover {
  border-color: rgba(196, 46, 36, 0.35);
  box-shadow: 0 8px 18px rgba(43, 55, 75, 0.08);
}

.admin-user-row-active {
  border-color: rgba(196, 46, 36, 0.36);
  background: linear-gradient(180deg, rgba(196, 46, 36, 0.045), rgba(196, 46, 36, 0.015));
  box-shadow: inset 3px 0 0 rgba(196, 46, 36, 0.72);
}

.admin-user-row-top {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  min-width: 0;
}

.admin-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(43, 55, 75, 0.1), rgba(43, 55, 75, 0.05));
  color: var(--sf-color-primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

.admin-user-avatar-large {
  width: 3.2rem;
  height: 3.2rem;
  font-size: 1rem;
}

.admin-facility-avatar {
  width: auto;
  min-width: 2.7rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
}

.admin-user-row-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1 1 auto;
}

.admin-user-row-copy strong,
.admin-user-row-copy span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-user-row-copy strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.admin-user-row-copy span {
  color: var(--sf-color-text-soft);
  font-size: 0.83rem;
}

.admin-user-header-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-user-empty-state {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem;
  border: 1px dashed var(--sf-color-border);
  border-radius: 18px;
  background: var(--sf-color-surface-soft);
}

.admin-user-empty-state p {
  margin: 0;
  color: var(--sf-color-text-soft);
}

.admin-user-empty-state-editor {
  min-height: 24rem;
  justify-content: center;
}

.admin-user-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(43, 55, 75, 0.08);
}

.admin-user-editor-identity {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.admin-user-form-modern {
  gap: 1rem;
}

.admin-editor-section {
  border: 1px solid rgba(43, 55, 75, 0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(252,252,250,0.98));
  padding: 1rem 1rem 1.05rem;
  box-shadow: 0 4px 14px rgba(43, 55, 75, 0.04);
}

.admin-editor-section-muted {
  background: linear-gradient(180deg, rgba(248,248,246,0.98), rgba(244,244,241,0.98));
}

.admin-editor-section-header {
  margin-bottom: 0.75rem;
}

.admin-editor-section-header h3 {
  margin: 0;
  font-size: 1.03rem;
}

.admin-editor-section-header p {
  margin: 0.25rem 0 0;
  color: var(--sf-color-text-soft);
  font-size: 0.87rem;
}

.admin-class-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.admin-class-card,
.admin-site-card {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(43, 55, 75, 0.12);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.admin-class-card input,
.admin-site-card input {
  margin-top: 0.12rem;
}

.admin-class-card strong,
.admin-site-card strong {
  display: block;
}

.admin-class-card > div,
.admin-site-card > div {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.admin-class-card span,
.admin-site-card span,
.admin-toggle-row span {
  color: var(--sf-color-text-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.admin-class-card input:checked,
.admin-site-card input:checked {
  accent-color: var(--sf-color-accent);
}

.admin-class-card,
.admin-site-card {
  position: relative;
}

.admin-class-card:focus-within,
.admin-site-card:focus-within {
  border-color: rgba(196, 46, 36, 0.36);
  background: linear-gradient(180deg, rgba(196, 46, 36, 0.05), rgba(196, 46, 36, 0.015));
  box-shadow: inset 0 0 0 1px rgba(196, 46, 36, 0.08);
}

.admin-site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
}

.admin-toggle-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(43, 55, 75, 0.12);
  border-radius: 14px;
  background: #fff;
}

.admin-metadata-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
  margin: 0;
}

.admin-metadata-grid div {
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: rgba(43, 55, 75, 0.04);
}

.admin-metadata-grid dt {
  margin: 0;
  color: var(--sf-color-text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-metadata-grid dd {
  margin: 0.3rem 0 0;
  color: var(--sf-color-primary);
  font-size: 0.95rem;
  word-break: break-word;
}

.admin-form-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0 0.1rem;
  margin-top: 0.15rem;
  background: linear-gradient(180deg, rgba(247, 247, 244, 0), rgba(247, 247, 244, 0.94) 30%, rgba(247, 247, 244, 1) 100%);
  border-top: 1px solid rgba(43, 55, 75, 0.06);
}

.status-chip-operator {
  background: rgba(43, 55, 75, 0.08);
  color: var(--sf-color-primary);
}

.status-chip-advanced {
  background: rgba(210, 120, 34, 0.12);
  color: #8a4f0f;
  border-color: rgba(210, 120, 34, 0.22);
}

.status-chip-admin {
  background: rgba(196, 46, 36, 0.12);
  color: #9b1f18;
  border-color: rgba(196, 46, 36, 0.22);
}

.status-chip-success {
  background: rgba(29, 143, 78, 0.12);
  color: #1d8f4e;
  border-color: rgba(29, 143, 78, 0.24);
}

.status-chip-muted {
  background: rgba(43, 55, 75, 0.06);
  color: var(--sf-color-text-soft);
}

.status-chip-linked {
  background: rgba(40, 98, 196, 0.12);
  color: #2858b2;
  border-color: rgba(40, 98, 196, 0.22);
}

.status-chip-touch {
  background: rgba(33, 115, 196, 0.12);
  color: #1d5da6;
  border-color: rgba(33, 115, 196, 0.2);
}

.admin-users-editor .button-secondary,
.admin-users-sidebar .button-secondary,
.admin-search-button,
.admin-form-actions .action-link-button {
  min-height: 2.85rem;
  border-radius: 14px;
}

.admin-form-actions .action-link-button {
  padding-left: 1.1rem;
  padding-right: 1.1rem;
  box-shadow: 0 10px 20px rgba(196, 46, 36, 0.18);
}

.admin-user-row .status-chip,
.admin-user-header-badges .status-chip {
  min-height: 1.45rem;
  padding: 0.08rem 0.42rem;
  font-size: 0.66rem;
  letter-spacing: 0.09em;
}

.workstation-swatch {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.16);
}

.workstation-swatch.large {
  width: 1.45rem;
  height: 1.45rem;
}

.departments-screen {
  align-items: start;
}

.departments-sidebar {
  padding: 0.9rem;
}

.departments-sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.departments-sidebar-cta {
  width: 100%;
  margin-bottom: 0.7rem;
  justify-content: center;
}

.departments-filter-panel {
  padding: 0;
  margin-bottom: 0.7rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.departments-search-shell {
  gap: 0.5rem;
  align-items: stretch;
}

.departments-search-shell .admin-input-search {
  min-height: 2.9rem;
}

.departments-search-shell .admin-search-button {
  min-width: 6.75rem;
  min-height: 2.9rem;
  border-radius: 14px;
}

.departments-directory {
  gap: 0.45rem;
  max-height: calc(100vh - 17rem);
}

.departments-directory-row {
  align-items: center;
  gap: 0;
  min-height: 3.1rem;
  padding: 0.6rem 0.82rem;
  border-radius: 14px;
}

.departments-directory-row:hover {
  box-shadow: none;
}

.departments-directory .admin-user-row-copy {
  width: 100%;
  gap: 0.22rem;
  justify-content: center;
}

.departments-directory .admin-user-row-copy strong {
  font-size: 0.9rem;
  line-height: 1.18;
}

.departments-editor-panel {
  padding: 0.95rem 1rem;
}

.departments-editor-shell {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.departments-inline-title {
  color: var(--sf-color-text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.departments-fields-section {
  padding: 0.95rem 1rem;
}

.departments-fields-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) minmax(12rem, 0.72fr);
  gap: 0.8rem;
  align-items: start;
}

.departments-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.departments-field > span {
  color: var(--sf-color-text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.department-routing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.department-routing-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(43, 55, 75, 0.12);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.department-routing-card input {
  margin-top: 0.15rem;
  accent-color: var(--sf-color-accent);
}

.department-routing-card > div {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

.department-routing-card strong {
  display: block;
  color: var(--sf-color-primary);
}

.department-routing-card span {
  color: var(--sf-color-text-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.department-routing-card-active,
.department-routing-card:focus-within {
  border-color: rgba(196, 46, 36, 0.34);
  background: linear-gradient(180deg, rgba(196, 46, 36, 0.055), rgba(196, 46, 36, 0.015));
  box-shadow: inset 0 0 0 1px rgba(196, 46, 36, 0.08);
}

.departments-toggle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
}

.department-status-card {
  min-height: 0;
  padding: 0.8rem 0.9rem;
}

.departments-form-actions {
  padding-top: 0.65rem;
  gap: 0.55rem;
}

.department-ownership-panel {
  padding: 0.95rem 1rem 1rem;
}

.department-inline-note {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(43, 55, 75, 0.1);
  border-radius: 14px;
  background: #fff;
}

.department-inline-note strong {
  color: var(--sf-color-primary);
}

.department-inline-note span {
  color: var(--sf-color-text-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.department-inline-note-warning {
  border-left: 3px solid var(--sf-color-accent);
  background: linear-gradient(180deg, rgba(196, 46, 36, 0.04), rgba(196, 46, 36, 0.01));
}

.department-upload-layout {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.department-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.department-upload-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  flex: 1 1 30rem;
}

.department-file-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-width: 8.5rem;
}

.department-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.department-file-name {
  min-width: 11rem;
  color: var(--sf-color-text-soft);
  font-size: 0.88rem;
}

.department-import-button {
  min-height: 2.85rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.departments-screen .button-secondary,
.departments-screen .action-link-button,
.departments-screen .admin-search-button {
  min-height: 2.5rem;
  padding: 0.56rem 0.88rem;
  border-radius: 13px;
  font-size: 0.83rem;
  letter-spacing: 0.06em;
}

.departments-screen .action-link-button {
  box-shadow: none;
}

.departments-screen .admin-search-button,
.departments-screen .departments-sidebar-cta {
  font-size: 0.8rem;
}

.departments-screen .admin-form-actions .action-link-button {
  padding-left: 0.95rem;
  padding-right: 0.95rem;
}

.departments-screen .department-upload-actions,
.departments-screen .department-upload-form {
  gap: 0.55rem;
}

.departments-screen .department-file-name {
  font-size: 0.92rem;
}

.workstations-screen {
  align-items: start;
}

.workstations-sidebar {
  padding: 0.9rem;
}

.workstations-sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.workstations-create-button {
  width: 100%;
  margin-bottom: 0.7rem;
  justify-content: center;
}

.workstations-filter-panel {
  padding: 0;
  margin-bottom: 0.7rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.workstations-filter-panel .admin-search-input-wrap {
  min-width: 0;
}

.workstations-search-shell {
  gap: 0.5rem;
  align-items: stretch;
}

.workstations-search-shell .admin-input-search {
  min-height: 2.9rem;
}

.workstations-search-shell .admin-search-button {
  min-width: 6.75rem;
  min-height: 2.9rem;
  border: 1px solid rgba(43, 55, 75, 0.08);
  border-radius: 14px;
}

.workstations-directory {
  gap: 0.45rem;
  max-height: calc(100vh - 17rem);
}

.workstations-directory-row {
  align-items: center;
  gap: 0;
  min-height: 3.1rem;
  padding: 0.6rem 0.82rem;
  border-radius: 14px;
}

.workstations-directory-row:hover {
  box-shadow: none;
}

.workstations-directory .admin-user-row-copy {
  width: 100%;
  gap: 0.22rem;
  justify-content: center;
}

.workstations-directory .admin-user-row-copy strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.18;
}

.workstations-directory .admin-user-row-copy strong {
  font-size: 0.9rem;
}

.workstations-directory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0;
}

.workstations-editor-panel {
  padding: 0.95rem 1rem;
}

.workstations-editor-shell {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.workstations-inline-title {
  color: var(--sf-color-text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.workstations-fields-section {
  padding: 0.95rem 1rem;
}

.workstations-fields-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 1.45fr) minmax(12rem, 1fr) minmax(11rem, 0.82fr);
  gap: 0.8rem;
  align-items: end;
}

.workstations-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.workstations-field > span {
  color: var(--sf-color-text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workstations-field-color .workstation-color-field {
  min-height: 3rem;
}

.workstation-color-field {
  gap: 0.7rem;
}

.workstations-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.workstation-status-card {
  min-height: 0;
  padding: 0.8rem 0.9rem;
}

.workstation-touch-card {
  border-color: rgba(33, 115, 196, 0.16);
  background: linear-gradient(180deg, rgba(33, 115, 196, 0.05), rgba(33, 115, 196, 0.015));
}

.workstations-form-actions {
  padding-top: 0.65rem;
  gap: 0.55rem;
}

.workstation-tools-panel {
  padding: 0.95rem 1rem 1rem;
}

.workstations-screen .button-secondary,
.workstations-screen .action-link-button,
.workstations-screen .admin-search-button {
  min-height: 2.5rem;
  padding: 0.56rem 0.88rem;
  border-radius: 13px;
  font-size: 0.83rem;
  letter-spacing: 0.06em;
}

.workstations-screen .action-link-button {
  box-shadow: none;
}

.workstations-screen .admin-search-button,
.workstations-screen .workstations-create-button {
  font-size: 0.8rem;
}

.workstations-screen .admin-form-actions .action-link-button {
  padding-left: 0.95rem;
  padding-right: 0.95rem;
}

.workstations-screen .workstation-tools-actions,
.workstations-screen .workstation-tools-form {
  gap: 0.55rem;
}

.workstations-screen .workstation-file-name {
  font-size: 0.92rem;
}

.workstation-inline-note {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(43, 55, 75, 0.1);
  border-radius: 14px;
  background: #fff;
}

.workstation-inline-note strong {
  color: var(--sf-color-primary);
}

.workstation-inline-note span {
  color: var(--sf-color-text-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.workstation-inline-note-warning {
  border-left: 3px solid var(--sf-color-accent);
  background: linear-gradient(180deg, rgba(196, 46, 36, 0.04), rgba(196, 46, 36, 0.01));
}

.workstation-tools-layout {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.workstation-tools-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.workstation-tools-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  flex: 1 1 30rem;
}

.workstation-file-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-width: 8.5rem;
}

.workstation-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.workstation-file-name {
  min-width: 11rem;
  color: var(--sf-color-text-soft);
  font-size: 0.88rem;
}

.workstation-import-button {
  min-height: 2.85rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.wo-unassigned-page-header {
  margin-bottom: 0.9rem;
}

.wo-unassigned-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 0.9rem;
  margin-bottom: 1rem;
}

.wo-unassigned-summary-card {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  padding: 0.78rem 0.88rem;
  border: 1px solid rgba(43, 55, 75, 0.08);
  border-radius: 14px;
  background: rgba(43, 55, 75, 0.03);
}

.wo-unassigned-summary-card span {
  color: var(--sf-color-text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wo-unassigned-summary-card strong {
  color: var(--sf-color-primary);
  font-size: 0.96rem;
}

.wo-unassigned-panel {
  padding: 0.9rem;
}

.wo-unassigned-table-wrap {
  overflow: auto;
}

.wo-unassigned-table {
  min-width: 1340px;
}

.wo-unassigned-table th:nth-child(1),
.wo-unassigned-table td:nth-child(1) {
  width: 12rem;
}

.wo-unassigned-table th:nth-child(2),
.wo-unassigned-table td:nth-child(2) {
  width: 8.5rem;
}

.wo-unassigned-table th:nth-child(4),
.wo-unassigned-table td:nth-child(4) {
  width: 8.5rem;
}

.wo-unassigned-row td {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.wo-unassigned-key-cell,
.wo-unassigned-article-cell {
  vertical-align: top;
}

.wo-unassigned-primary-stack {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.wo-unassigned-workorder {
  color: var(--sf-color-primary);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.wo-unassigned-source {
  color: var(--sf-color-text-soft);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wo-unassigned-article-code {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.12rem 0.48rem;
  border: 1px solid rgba(43, 55, 75, 0.1);
  border-radius: 999px;
  background: rgba(43, 55, 75, 0.04);
  color: var(--sf-color-primary);
  font-weight: 700;
  font-size: 0.82rem;
}

.wo-unassigned-description-wrap {
  max-width: 44rem;
  color: var(--sf-color-text-muted);
  font-size: 0.84rem;
  line-height: 1.42;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.wo-unassigned-action-cell {
  min-width: 7.5rem;
}

.wo-unassigned-action-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.8rem 0.85rem;
  border: 1px solid rgba(43, 55, 75, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(248, 248, 246, 0.96), rgba(244, 244, 241, 0.96));
}

.wo-unassigned-action-card-compact {
  align-items: flex-start;
  padding: 0.4rem;
  background: transparent;
  border-color: transparent;
}

.wo-unassigned-action-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: end;
}

.wo-unassigned-field {
  margin: 0;
}

.wo-unassigned-note {
  margin: 0;
  color: var(--sf-color-text-soft);
  font-size: 0.82rem;
  line-height: 1.4;
}

.wo-unassigned-note.planner-mode {
  color: #8a4f0f;
}

.wo-unassigned-assign-button {
  min-height: 2.85rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.wo-unassigned-open-button {
  min-height: 2.1rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.wo-unassigned-empty-state {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  align-items: center;
  justify-content: center;
  padding: 1.4rem;
}

.wo-unassigned-empty-state span {
  color: var(--sf-color-text-soft);
  font-style: normal;
}

.wo-unassigned-modal-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.wo-unassigned-modal-summary-card {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(43, 55, 75, 0.08);
  border-radius: 14px;
  background: rgba(43, 55, 75, 0.03);
}

.wo-unassigned-modal-summary-card-wide {
  grid-column: span 2;
}

.wo-unassigned-modal-summary-card span {
  color: var(--sf-color-text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wo-unassigned-modal-summary-card strong {
  color: var(--sf-color-primary);
  font-size: 0.92rem;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.wo-unassigned-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wo-unassigned-modal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wo-unassigned-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.15rem;
}

.management-home-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.management-home-grid {
  gap: 1.1rem;
}

.management-home-overview-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.management-home-overview-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 8.5rem;
  padding: 1.15rem 1.1rem;
  border-top: 4px solid rgba(196, 46, 36, 0.18);
  background:
    linear-gradient(180deg, rgba(248, 249, 250, 0.98), rgba(255, 255, 255, 1));
}

.management-home-overview-card span {
  color: var(--sf-color-text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.management-home-overview-card strong {
  color: var(--sf-color-primary);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1;
}

.management-home-overview-card p {
  margin: 0;
  color: var(--sf-color-text-muted);
}

.management-home-card {
  min-height: 13.75rem;
  padding: 1.1rem;
  border-top: 4px solid transparent;
}

.management-home-card-header {
  margin-bottom: 0.7rem;
}

.management-home-card-kicker {
  margin-bottom: 0.45rem;
}

.management-home-highlight {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(43, 55, 75, 0.08);
}

.management-home-highlight-copy {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

.management-home-inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9rem;
  align-self: center;
}

.management-home-metrics {
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.management-home-metric {
  border-top: 3px solid rgba(43, 55, 75, 0.08);
}

.management-home-tone-alert {
  border-top-color: rgba(196, 46, 36, 0.8);
}

.management-home-tone-watch {
  border-top-color: rgba(185, 92, 0, 0.72);
}

.management-home-tone-live {
  border-top-color: rgba(7, 56, 99, 0.78);
}

.management-home-tone-performance {
  border-top-color: rgba(31, 143, 78, 0.78);
}

.management-home-tone-neutral {
  border-top-color: rgba(43, 55, 75, 0.18);
}

.management-home-card.management-home-tone-alert .management-home-highlight {
  background: linear-gradient(135deg, rgba(196, 46, 36, 0.11), rgba(196, 46, 36, 0.03));
}

.management-home-card.management-home-tone-watch .management-home-highlight {
  background: linear-gradient(135deg, rgba(185, 92, 0, 0.11), rgba(185, 92, 0, 0.03));
}

.management-home-card.management-home-tone-live .management-home-highlight {
  background: linear-gradient(135deg, rgba(7, 56, 99, 0.09), rgba(24, 101, 166, 0.03));
}

.management-home-card.management-home-tone-performance .management-home-highlight {
  background: linear-gradient(135deg, rgba(31, 143, 78, 0.1), rgba(31, 143, 78, 0.03));
}

.management-home-card.management-home-tone-neutral .management-home-highlight {
  background: linear-gradient(135deg, rgba(43, 55, 75, 0.06), rgba(43, 55, 75, 0.02));
}

.panel {
  margin-bottom: 1rem;
  padding: 1rem;
}

.status-panel {
  border-left: 4px solid var(--sf-color-primary);
  background: linear-gradient(180deg, rgba(43, 55, 75, 0.03) 0%, rgba(255, 255, 255, 1) 100%);
}

.declaration-banner {
  border-left: 4px solid var(--sf-color-accent);
  padding: 0.75rem 1rem;
}

.week-panel {
  padding: 0.9rem 1rem;
}

.week-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.week-picker-form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.compact-week-picker-form {
  gap: 0.45rem;
}

.week-picker-label {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.week-picker-input {
  min-height: 2.75rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--sf-color-border);
  background: #fff;
  color: var(--sf-color-primary);
}

.compact-week-picker-input {
  min-height: 2.35rem;
  padding: 0.45rem 0.7rem;
}

.table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid var(--sf-color-border);
  background: var(--sf-color-surface);
}

.dashboard-table-panel {
  padding: 0.35rem 0.45rem;
}

.workbench-context-bar {
  align-items: stretch;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(32, 43, 61, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(90deg, #2b374b 0%, #334158 72%, #8b6e78 100%);
  box-shadow: 0 18px 36px rgba(32, 43, 61, 0.14);
}

.workbench-context-bar .module-context-label,
.workbench-context-bar .module-context-pill-label {
  color: rgba(255, 255, 255, 0.68);
}

.workbench-context-bar .module-context-title,
.workbench-context-bar .module-context-pill strong,
.workbench-context-bar .module-context-toolbar-marker {
  color: #fff;
}

.workbench-context-bar .module-context-pill {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.workbench-context-toolbar {
  align-self: center;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.workbench-context-bar .module-context-toolbar-marker,
.workbench-context-bar .module-context-button,
.workbench-context-bar .module-context-icon-button,
.workbench-context-bar .module-context-date-input {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.workbench-context-bar .module-context-button:hover,
.workbench-context-bar .module-context-icon-button:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
}

.workbench-context-bar .module-context-button-primary {
  border-color: rgba(237, 28, 36, 0.55);
  background: linear-gradient(180deg, rgba(237, 28, 36, 0.98), rgba(191, 20, 28, 0.98));
  color: #fff;
}

.workbench-context-bar .module-context-button-primary:hover {
  border-color: rgba(237, 28, 36, 0.68);
  background: linear-gradient(180deg, rgba(191, 20, 28, 1), rgba(153, 15, 22, 1));
}

.workbench-table-panel {
  padding: 0.4rem;
  border-radius: 24px;
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.workbench-table-wrap {
  --workbench-header-offset: 2.55rem;
  border: 1px solid rgba(43, 55, 75, 0.08);
  border-radius: 20px;
  background: #fff;
  min-height: 24rem;
  max-height: calc(100vh - 16.75rem);
  overflow: auto;
}

.workbench-dashboard-table {
  min-width: 1320px;
}

.workbench-dashboard-table th {
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.workbench-dashboard-table thead tr:first-child th {
  top: 0;
  z-index: 6;
}

.workbench-dashboard-table .table-filter-row th {
  position: sticky;
  top: var(--workbench-header-offset);
  z-index: 5;
  background: linear-gradient(180deg, #f7f9fb 0%, #eef3f7 100%);
  color: var(--sf-color-primary);
  box-shadow: inset 0 -1px 0 rgba(43, 55, 75, 0.08);
}

.workbench-dashboard-table .table-filter-row .table-sticky-left,
.workbench-dashboard-table .table-filter-row .table-sticky-right,
.workbench-dashboard-table thead tr:first-child .table-sticky-left,
.workbench-dashboard-table thead tr:first-child .table-sticky-right {
  z-index: 7;
}

.workbench-dashboard-table .table-filter-row .table-sticky-left,
.workbench-dashboard-table .table-filter-row .table-sticky-right {
  background: linear-gradient(180deg, #f7f9fb 0%, #eef3f7 100%);
}

.workbench-action-column-header,
.workbench-filter-actions {
  min-width: 10.75rem;
  text-align: center !important;
}

.workbench-dashboard-table tbody tr {
  transition: background 0.16s ease;
}

.workbench-dashboard-table tbody tr:hover {
  background: rgba(43, 55, 75, 0.03);
}

.workbench-dashboard-table tbody tr.workorder-row-running {
  background: linear-gradient(90deg, rgba(29, 143, 78, 0.12) 0%, rgba(29, 143, 78, 0.04) 100%);
  animation: none;
}

.workbench-dashboard-table tbody tr.workorder-row-stopped {
  background: linear-gradient(90deg, rgba(196, 135, 17, 0.16) 0%, rgba(196, 135, 17, 0.05) 100%);
}

.workbench-dashboard-table tbody .table-sticky-left {
  box-shadow: 1px 0 0 rgba(43, 55, 75, 0.08);
}

.workbench-dashboard-table tbody .table-sticky-right {
  box-shadow: -1px 0 0 rgba(43, 55, 75, 0.08);
}

.workbench-dashboard-table tbody tr.workorder-row-running .table-sticky-left,
.workbench-dashboard-table tbody tr.workorder-row-running .table-sticky-right {
  background: rgba(29, 143, 78, 0.1);
}

.workbench-dashboard-table tbody tr.workorder-row-stopped .table-sticky-left,
.workbench-dashboard-table tbody tr.workorder-row-stopped .table-sticky-right {
  background: rgba(196, 135, 17, 0.11);
}

.workbench-dashboard-table .table-filter-input {
  min-height: 2.3rem;
  padding: 0.45rem 0.6rem;
  border-radius: 12px;
  border-color: rgba(43, 55, 75, 0.12);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
}

.workbench-dashboard-table .table-filter-input:focus {
  outline: none;
  border-color: rgba(196, 46, 36, 0.35);
  box-shadow: 0 0 0 3px rgba(196, 46, 36, 0.08);
}

.workbench-dashboard-table .filter-action-group {
  gap: 0.45rem;
}

.workbench-dashboard-table .filter-submit-button,
.workbench-dashboard-table .filter-clear-button {
  min-height: 2.3rem;
  border-radius: 12px;
  padding: 0.45rem 0.75rem;
  text-transform: none;
  letter-spacing: 0.01em;
}

.workbench-dashboard-table .filter-submit-button {
  background: var(--sf-color-primary);
  color: #fff;
}

.workbench-dashboard-table .filter-submit-button:hover {
  background: var(--sf-color-primary-deep);
}

.workbench-dashboard-table .inline-action {
  min-height: 2.55rem;
  border-radius: 12px;
  padding: 0.55rem 0.8rem;
  font-size: 0.82rem;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 16px rgba(43, 55, 75, 0.08);
}

.workbench-action-stack {
  gap: 0.45rem;
  min-width: 9.5rem;
}

.workbench-row-primary.run-state-button-start {
  background: linear-gradient(180deg, #2f415c 0%, #243042 100%);
}

.workbench-row-primary.run-state-button-stop {
  background: linear-gradient(180deg, #209553 0%, #177240 100%);
}

.workbench-row-primary.run-state-button-restart {
  background: linear-gradient(180deg, #cc911a 0%, #9f6c0d 100%);
}

.workbench-row-secondary {
  border: 1px solid rgba(43, 55, 75, 0.12);
  background: linear-gradient(180deg, rgba(43, 55, 75, 0.08) 0%, rgba(43, 55, 75, 0.04) 100%);
  color: var(--sf-color-primary);
}

.workbench-row-secondary:hover {
  border-color: rgba(43, 55, 75, 0.22);
  background: linear-gradient(180deg, rgba(43, 55, 75, 0.12) 0%, rgba(43, 55, 75, 0.07) 100%);
}

.workbench-color-chip {
  min-height: 1.95rem;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.workbench-empty-cell {
  padding: 2rem 1.25rem !important;
}

.workbench-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.workbench-empty-state strong {
  color: var(--sf-color-primary);
  font-size: 1rem;
}

.workbench-empty-state p {
  margin: 0;
  max-width: 34rem;
  color: var(--sf-color-text-muted);
  line-height: 1.45;
}

.settings-table {
  min-width: 980px;
}

.checkbox-cell {
  text-align: center;
}

.order-input {
  width: 6rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--sf-color-border);
}

.settings-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.workorder-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1260px;
  table-layout: auto;
}

.workorder-table th,
.workorder-table td {
  padding: 0.5rem 0.55rem;
  border-bottom: 1px solid var(--sf-color-line);
  vertical-align: top;
  white-space: nowrap;
  font-size: 0.82rem;
  line-height: 1.2;
}

.workorder-table th {
  text-align: left;
  background: var(--sf-color-primary);
  color: #fff;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 4;
}

.workorder-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 10rem;
}

.workorder-table tbody tr:hover {
  background: rgba(43, 55, 75, 0.04);
}

.workorder-table tbody tr.workorder-row-running {
  background: rgba(31, 166, 86, 0.16);
  animation: workorder-row-running-pulse 1.2s ease-in-out infinite;
}

.workorder-table tbody tr.workorder-row-stopped {
  background: rgba(231, 185, 76, 0.24);
}

.column-description {
  max-width: 14rem;
}

.workorder-table td.column-description {
  font-size: 0.78rem;
  line-height: 1.15;
  max-width: 16rem;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.table-sticky-left {
  position: sticky;
  left: 0;
  z-index: 3;
}

.workorder-table tbody .table-sticky-left {
  background: #fff;
  box-shadow: 1px 0 0 rgba(43, 55, 75, 0.1);
}

.workorder-table tbody tr.workorder-row-running .table-sticky-left,
.workorder-table tbody tr.workorder-row-running .table-sticky-right {
  background: rgba(31, 166, 86, 0.16);
}

.workorder-table tbody tr.workorder-row-stopped .table-sticky-left,
.workorder-table tbody tr.workorder-row-stopped .table-sticky-right {
  background: rgba(231, 185, 76, 0.24);
}

.workbench-color-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  color: #0f172a;
  font-weight: 700;
  line-height: 1.1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.workorder-table thead .table-sticky-left {
  z-index: 5;
}

.table-sticky-right {
  position: sticky;
  right: 0;
  z-index: 3;
}

.workorder-table tbody .table-sticky-right {
  background: #fff;
  box-shadow: -1px 0 0 rgba(43, 55, 75, 0.1);
}

.workorder-table thead .table-sticky-right {
  z-index: 5;
}

.action-column {
  width: 1%;
  white-space: nowrap;
}

.table-sort-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: inherit;
}

.sort-indicator {
  font-size: 0.82rem;
}

.table-filter-row th {
  top: 2.2rem;
  background: #e8edf2;
  border-bottom: 1px solid var(--sf-color-border);
  z-index: 4;
  padding: 0.35rem 0.4rem;
}

.table-filter-input {
  width: 100%;
  min-width: 5.5rem;
  min-height: 2rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--sf-color-border);
  background: #fff;
  color: var(--sf-color-primary);
  font-size: 0.78rem;
}

.table-filter-submit-cell {
  text-align: center;
}

.filter-action-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.filter-submit-button {
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--sf-color-primary);
  background: #fff;
  color: var(--sf-color-primary);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.filter-submit-button:hover {
  background: var(--sf-color-surface-soft);
}

.filter-clear-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--sf-color-border);
  background: #fff;
  color: var(--sf-color-primary);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.filter-clear-button:hover {
  border-color: var(--sf-color-primary);
  background: var(--sf-color-surface-soft);
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.modal-shell[hidden],
.modal-state[hidden],
.modal-card form[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 43, 61, 0.65);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-height: calc(100vh - 3rem);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--sf-color-border);
  box-shadow: 0 20px 40px rgba(32, 43, 61, 0.22);
  padding: 1.25rem;
}

.modal-card-compact {
  width: min(560px, 100%);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.modal-header h2 {
  margin: 0 0 0.35rem;
  color: var(--sf-color-primary);
}

.declaration-header-content {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.declaration-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1rem;
}

.declaration-header-summary {
  margin: 0;
  min-width: 0;
}

.modal-close-button {
  border: 1px solid var(--sf-color-border);
  background: #fff;
  color: var(--sf-color-primary);
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-state {
  padding: 1rem;
  border: 1px solid var(--sf-color-border);
  background: var(--sf-color-surface-soft);
}

.modal-error {
  border-left: 4px solid var(--sf-color-accent);
}

.modal-success {
  border-left: 4px solid #1d8f4e;
  background: #eef9f1;
}

.modal-warning {
  border-left: 4px solid #c48711;
  background: #fff8e8;
}

.dashboard-alert-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.declaration-section {
  margin-bottom: 1rem;
}

@keyframes workorder-row-running-pulse {
  0%,
  100% {
    background: rgba(31, 166, 86, 0.16);
  }

  50% {
    background: rgba(31, 166, 86, 0.28);
  }
}

.declaration-section-header {
  margin-bottom: 0.6rem;
}

.declaration-section-header h3 {
  margin: 0 0 0.25rem;
}

.declaration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 220px));
  gap: 0.75rem;
}

.declaration-entry-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.declaration-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.declaration-field input,
.declaration-field select,
.declaration-components-table input {
  min-height: 2.35rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--sf-color-border);
  background: #fff;
  color: var(--sf-color-primary);
}

.declaration-components-wrap {
  max-height: 320px;
}

.declaration-modal-actions {
  justify-content: flex-end;
}

.touch-keypad[hidden] {
  display: none !important;
}

.declaration-components-table .declaration-component-description {
  white-space: normal;
  word-break: break-word;
  font-size: 0.84rem;
  line-height: 1.3;
}

.declaration-empty-components {
  color: var(--sf-color-text-muted);
  font-style: italic;
  text-align: center;
  padding: 1rem;
}

.modal-actions button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.modal-actions {
  justify-content: flex-end;
}

.planner-placeholder-card {
  background: var(--sf-color-surface);
  border: 1px solid var(--sf-color-border);
  box-shadow: var(--sf-shadow-panel);
}

.planner-header-menu {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.planner-header-context {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.planner-header-label,
.planner-header-meta-label {
  color: var(--sf-color-text-soft);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.planner-header-context strong {
  color: var(--sf-color-primary);
  font-size: 0.95rem;
}

.planner-header-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--sf-color-line);
  background: var(--sf-color-surface);
  color: var(--sf-color-primary);
  font-weight: 700;
  white-space: nowrap;
}

.planner-header-shortcut:hover {
  background: var(--sf-color-surface-soft);
  border-color: var(--sf-color-border);
}

.planner-header-dropdown {
  position: relative;
}

.planner-header-dropdown summary {
  list-style: none;
}

.planner-header-dropdown summary::-webkit-details-marker {
  display: none;
}

.planner-header-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.7rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--sf-color-line);
  background: var(--sf-color-surface);
  color: var(--sf-color-primary);
  font-weight: 700;
  cursor: pointer;
}

.planner-header-toggle:hover,
.planner-header-dropdown[open] .planner-header-toggle {
  background: var(--sf-color-surface-soft);
  border-color: var(--sf-color-border);
}

.planner-header-toggle-icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
}

.planner-header-toggle-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.planner-header-dropdown-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  min-width: 18rem;
  padding: 0.65rem;
  background: var(--sf-color-surface);
  border: 1px solid var(--sf-color-border);
  box-shadow: var(--sf-shadow-panel);
  z-index: 30;
}

.planner-header-dropdown-meta {
  padding: 0.3rem 0.35rem 0.7rem;
  border-bottom: 1px solid var(--sf-color-line);
  margin-bottom: 0.4rem;
}

.planner-header-facilities {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.1rem 0.35rem 0.75rem;
  border-bottom: 1px solid var(--sf-color-line);
  margin-bottom: 0.4rem;
}

.planner-header-facility-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.planner-header-facility-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  min-height: 2.2rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--sf-color-line);
  background: var(--sf-color-surface-soft);
  color: var(--sf-color-primary);
  font-weight: 700;
}

.planner-header-facility-link:hover {
  border-color: var(--sf-color-border);
  background: rgba(237, 28, 36, 0.04);
}

.planner-header-facility-link-active {
  border-color: var(--sf-color-accent);
  background: rgba(237, 28, 36, 0.08);
}

.planner-header-links {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.planner-header-link {
  display: block;
  padding: 0.8rem 0.9rem;
  color: var(--sf-color-primary);
  font-weight: 700;
  border-left: 3px solid transparent;
}

.planner-header-link:hover {
  background: var(--sf-color-surface-soft);
}

.planner-header-link-active {
  border-left-color: var(--sf-color-accent);
  background: rgba(237, 28, 36, 0.05);
}

.planner-empty-home {
  min-height: 32rem;
  background: var(--sf-color-surface);
  border: 1px dashed var(--sf-color-border);
}

.planner-header {
  align-items: end;
}

.planning-page-header {
  align-items: stretch;
  gap: 1rem;
}

.planning-week-header {
  align-items: stretch;
}

.planning-week-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.85rem;
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--sf-color-border);
  background: linear-gradient(180deg, rgba(43, 55, 75, 0.04) 0%, rgba(255, 255, 255, 1) 100%);
  box-shadow: var(--sf-shadow-panel);
}

.planning-workstation-filter {
  position: relative;
  min-width: 18rem;
  border: 1px solid var(--sf-color-border);
  background: #fff;
  border-radius: 14px;
  overflow: visible;
}

.planning-workstation-filter summary {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  list-style: none;
}

.planning-workstation-filter summary::-webkit-details-marker {
  display: none;
}

.planning-workstation-filter summary span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sf-color-text-soft);
}

.planning-workstation-filter summary strong {
  color: var(--sf-color-primary);
}

.planning-workstation-filter-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 18rem;
  max-width: 28rem;
  z-index: 20;
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem;
  max-height: 15rem;
  overflow: auto;
  border: 1px solid var(--sf-color-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(32, 43, 61, 0.18);
}

.planning-workstation-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.planning-workstation-option-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.planning-weekdays-toggle {
  min-width: 16rem;
}

.planning-weekdays-checkbox {
  min-height: 3rem;
}

.planning-week-nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.planning-week-label {
  min-width: 5.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sf-color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.planning-toolbar-card {
  min-width: min(31rem, 100%);
  padding: 1rem;
  border: 1px solid var(--sf-color-border);
  background: linear-gradient(180deg, rgba(43, 55, 75, 0.04) 0%, rgba(255, 255, 255, 1) 100%);
  box-shadow: var(--sf-shadow-panel);
}

.planner-filter-bar {
  display: flex;
  align-items: end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.planning-filter-bar {
  gap: 0.85rem;
}

.planner-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 12rem;
}

.planner-filter-field span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sf-color-text-soft);
}

.planning-filter-field {
  min-width: 13rem;
}

.planning-apply-button {
  min-width: 8.5rem;
}

.button-secondary {
  min-height: 2.9rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--sf-color-primary);
  background: var(--sf-color-surface);
  color: var(--sf-color-primary);
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.button-secondary:hover {
  background: var(--sf-color-surface-soft);
}

.planning-feedback-banner {
  margin-bottom: 1rem;
}

#planningClientBanner[hidden] {
  display: none !important;
}

.planning-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.planning-summary-card {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(43, 55, 75, 0.08);
  background: rgba(43, 55, 75, 0.03);
}

.planning-summary-card span {
  color: var(--sf-color-text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.planning-summary-card strong {
  display: block;
  margin-top: 0.22rem;
  color: var(--sf-color-primary);
  font-size: 0.98rem;
  line-height: 1.3;
}

.planning-queue-panel,
.planning-board-panel {
  padding: 1rem;
}

.planning-week-header {
  position: sticky;
  top: 0;
  z-index: 18;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(10px);
}

.planning-week-toolbar {
  align-items: end;
}

.planning-week-layout {
  --planning-sticky-offset: 7rem;
  grid-template-columns: minmax(310px, 360px) minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  min-height: calc(100vh - 10rem);
}

.planning-split-workspace {
  margin-top: 0.75rem;
}

.planning-queue-sidebar {
  position: sticky;
  top: var(--planning-sticky-offset);
  align-self: start;
  max-height: calc(100vh - var(--planning-sticky-offset) - 1rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.planning-queue-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding-right: 0.25rem;
}

.planning-queue-card,
.planning-board-card {
  padding: 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(43, 55, 75, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(43, 55, 75, 0.03) 100%);
  box-shadow: var(--sf-shadow-panel);
  cursor: grab;
}

.planning-queue-card.dragging,
.planning-board-card.dragging {
  opacity: 0.55;
}

.planning-board-card {
  padding: 0.72rem 0.78rem;
  border-radius: 14px;
}

.planning-queue-card-topline,
.planning-board-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.planning-queue-card-topline strong,
.planning-board-card-topline strong {
  color: var(--sf-color-primary);
  font-size: 0.94rem;
}

.planning-queue-card-topline span,
.planning-board-card-topline span {
  color: var(--sf-color-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.planning-board-card-topline > strong {
  flex: 1 1 auto;
  min-width: 0;
}

.planning-board-card-topline > span {
  flex: 0 0 auto;
}

.planning-board-card-remove-form {
  margin: 0;
  flex: 0 0 auto;
}

.planning-board-card-remove {
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(185, 28, 28, 0.1);
  color: #b91c1c;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.planning-board-card-remove:hover,
.planning-board-card-remove:focus-visible {
  background: rgba(185, 28, 28, 0.16);
  color: #991b1b;
  outline: none;
  transform: translateY(-1px);
}

.planning-queue-card-description,
.planning-board-card-description {
  margin: 0.55rem 0 0.7rem;
  color: var(--sf-color-text-muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.planning-board-card-description {
  margin: 0.42rem 0 0.55rem;
  font-size: 0.8rem;
  line-height: 1.28;
}

.planning-queue-card-footer,
.planning-board-card-sequence {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(43, 55, 75, 0.08);
}

.planning-queue-card-footer span,
.planning-board-card-sequence span {
  color: var(--sf-color-text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.planning-queue-card-footer strong,
.planning-board-card-sequence strong {
  color: var(--sf-color-primary);
  font-size: 0.85rem;
}

.planning-board-card-sequence {
  padding-top: 0.45rem;
}

.planning-queue-card-eligibility {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.55rem;
  margin-top: 0.55rem;
  border-top: 1px solid rgba(43, 55, 75, 0.08);
}

.planning-queue-card-eligibility span {
  color: var(--sf-color-text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.planning-queue-card-eligibility strong {
  color: var(--sf-color-text-default);
  font-size: 0.8rem;
  line-height: 1.35;
}

.planning-board-shell {
  padding: 0.9rem;
  min-width: 0;
  overflow: hidden;
}

.planning-board-wrap {
  height: calc(100vh - var(--planning-sticky-offset) - 1.25rem);
  max-height: calc(100vh - var(--planning-sticky-offset) - 1.25rem);
  overflow: auto;
  border: 1px solid var(--sf-color-border);
  border-radius: 18px;
  background: #fff;
}

.planning-board-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
}

.planning-board-table th,
.planning-board-table td {
  border-bottom: 1px solid var(--sf-color-line);
  border-right: 1px solid var(--sf-color-line);
  vertical-align: top;
}

.planning-board-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--sf-color-primary);
  color: #fff;
  padding: 0.8rem 0.75rem;
}

.planning-board-workstation-header {
  min-width: 15rem;
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 5 !important;
}

.planning-board-day-header {
  min-width: 12rem;
  text-align: left;
}

.planning-board-day-header strong {
  display: block;
  font-size: 0.86rem;
}

.planning-board-day-header span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.8);
}

.planning-board-workstation-cell {
  width: 15rem;
  min-width: 15rem;
  padding: 0.9rem 0.8rem;
  background: var(--sf-color-surface-soft);
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 2;
}

.planning-board-workstation-label {
  display: flex;
  align-items: start;
  gap: 0.65rem;
}

.planning-board-workstation-label strong {
  display: block;
  color: var(--sf-color-primary);
}

.planning-board-workstation-label span:last-child {
  color: var(--sf-color-text-muted);
  font-size: 0.82rem;
}

.planning-board-day-cell {
  padding: 0.55rem;
  background: #fcfcfd;
}

.planning-board-day-cell-closed {
  background: #fbf6dd;
}

.planning-board-dropzone {
  min-height: 7rem;
  max-height: 18rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.35rem;
  border-radius: 14px;
  background: rgba(43, 55, 75, 0.03);
  overflow: auto;
}

.planning-board-day-cell-closed .planning-board-dropzone {
  background: rgba(196, 135, 17, 0.08);
}

.planning-board-dropzone.dragover {
  outline: 2px dashed var(--sf-color-primary);
  background: rgba(7, 56, 99, 0.06);
}

.planning-section-header {
  margin-bottom: 0.85rem;
}

.planning-queue-wrap {
  border-radius: 18px;
  overflow: hidden;
}

.planning-queue-table {
  min-width: 1040px;
}

@media (max-width: 1100px) {
  .planning-week-layout {
    --planning-sticky-offset: 6.25rem;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .planning-queue-sidebar {
    position: static;
    max-height: none;
  }

  .planning-board-wrap {
    height: 70vh;
    max-height: 70vh;
  }
}

.planning-queue-table td {
  max-width: none;
}

.planning-queue-row td {
  vertical-align: middle;
}

.planning-queue-key-cell,
.planning-queue-article-cell,
.planning-queue-date-cell,
.planning-queue-action-cell {
  white-space: nowrap;
}

.planning-queue-primary-stack {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.planning-queue-workorder {
  color: var(--sf-color-primary);
  font-size: 0.92rem;
}

.planning-queue-article-code {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  background: rgba(7, 56, 99, 0.07);
  color: var(--sf-color-primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.planning-queue-description-cell {
  min-width: 20rem;
  max-width: 32rem;
}

.planning-queue-description-wrap {
  max-width: 40rem;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.35;
  color: var(--sf-color-text-muted);
}

.planning-queue-date-cell {
  color: var(--sf-color-text-muted);
  font-weight: 600;
}

.planning-queue-action-cell {
  width: 1%;
}

.planning-open-button {
  min-height: 2.2rem;
  padding: 0.45rem 0.85rem;
}

.planning-empty-queue-state {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
  padding: 1.15rem 0.75rem;
}

.planning-empty-queue-state strong {
  color: var(--sf-color-primary);
}

.planning-empty-queue-state span {
  max-width: 34rem;
}

.planning-lane-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.planning-lane-card {
  border-radius: 18px;
  overflow: hidden;
}

.planning-empty-state {
  padding: 1.1rem 1rem 1.25rem;
}

.planning-workorder-card {
  border-radius: 14px;
  border-left-width: 4px;
  box-shadow: inset 0 0 0 1px rgba(43, 55, 75, 0.04);
}

.planning-workorder-card .planner-workorder-topline strong {
  color: var(--sf-color-primary);
}

.planning-workorder-card .planner-workorder-topline span {
  font-size: 0.78rem;
  font-weight: 700;
}

.planning-modal-card {
  width: min(680px, 100%);
}

.planning-modal-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.planning-modal-summary-card {
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(43, 55, 75, 0.08);
  background: rgba(43, 55, 75, 0.03);
}

.planning-modal-summary-card-wide {
  grid-column: span 2;
}

.planning-modal-summary-card span {
  display: block;
  color: var(--sf-color-text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.planning-modal-summary-card strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--sf-color-primary);
  line-height: 1.35;
}

.planning-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.planning-modal-actions {
  margin-top: 1rem;
}

.planner-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.planner-summary-card,
.planner-lane-card {
  background: var(--sf-color-surface);
  border: 1px solid var(--sf-color-border);
  box-shadow: var(--sf-shadow-panel);
}

.planner-summary-card {
  padding: 1.15rem;
}

.planner-home-card {
  display: flex;
  flex-direction: column;
  min-height: 16rem;
}

.planner-home-card-header {
  margin-bottom: 0.75rem;
}

.planner-home-highlight {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, rgba(7, 56, 99, 0.08), rgba(185, 24, 33, 0.08));
  border: 1px solid var(--sf-color-line);
}

.planner-home-highlight span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sf-color-text-muted);
}

.planner-home-highlight strong {
  font-size: 2rem;
  line-height: 1;
  color: var(--sf-color-primary);
}

.planner-home-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.planner-home-metric {
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--sf-color-line);
  background: var(--sf-color-surface-soft);
}

.planner-home-metric span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sf-color-text-muted);
}

.planner-home-metric strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.25rem;
  color: var(--sf-color-text);
}

.planner-home-actions {
  margin-top: auto;
  padding-top: 1rem;
}

.planner-runtime-workstation {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.planner-runtime-workstation span {
  color: var(--sf-color-text-muted);
  font-size: 0.82rem;
}

.planner-summary-card h2,
.planner-lane-title h2 {
  margin: 0 0 0.4rem;
}

.planner-summary-highlight {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--sf-color-line);
  font-weight: 700;
  color: var(--sf-color-primary);
}

.planner-rule-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--sf-color-text-muted);
}

.planner-lane-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.planner-lane-card {
  display: flex;
  flex-direction: column;
  min-height: 20rem;
}

.planner-lane-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid var(--sf-color-line);
}

.planner-lane-title {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.planner-lane-title p {
  margin: 0;
  color: var(--sf-color-text-muted);
  font-size: 0.85rem;
}

.planner-lane-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  margin-top: 0.3rem;
}

.planner-lane-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.35rem 0.55rem;
  background: var(--sf-color-surface-soft);
  border: 1px solid var(--sf-color-border);
  color: var(--sf-color-primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.planner-workorder-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.9rem;
}

.planner-workorder-card {
  border-left: 3px solid var(--sf-color-accent);
  background: var(--sf-color-surface-soft);
  padding: 0.85rem;
}

.planner-workorder-topline {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.planner-workorder-topline span,
.planner-workorder-description,
.planner-empty-state {
  color: var(--sf-color-text-muted);
}

.planner-workorder-description {
  margin: 0.45rem 0 0.7rem;
  font-size: 0.84rem;
  line-height: 1.35;
}

.planner-workorder-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.planner-workorder-stats dt {
  font-size: 0.68rem;
  color: var(--sf-color-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.planner-workorder-stats dd {
  margin: 0.15rem 0 0;
  font-weight: 700;
  color: var(--sf-color-primary);
}

.planner-empty-state {
  padding: 1rem;
  font-style: italic;
}

.planner-error-table {
  min-width: 1560px;
}

.declaration-queue-header {
  align-items: end;
  margin-bottom: 1rem;
}

.declaration-queue-heading {
  max-width: 50rem;
}

.declaration-queue-header-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.declaration-queue-header-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.5rem 0.78rem;
  border: 1px solid rgba(43, 55, 75, 0.08);
  border-radius: 999px;
  background: rgba(43, 55, 75, 0.04);
  color: var(--sf-color-primary);
  font-size: 0.8rem;
  font-weight: 700;
}

.declaration-queue-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.planner-support-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.declaration-queue-search-form {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.declaration-queue-search-input {
  min-width: 18rem;
}

.declaration-queue-search-button {
  min-height: 2.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 14px;
}

.planner-support-actions {
  margin-bottom: 1rem;
}

.declaration-queue-actions-panel {
  padding: 0.8rem 1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(43, 55, 75, 0.03) 100%);
}

.planner-bulk-action-form {
  display: flex;
  justify-content: flex-end;
}

.planner-bulk-retry-button {
  min-height: 2.3rem;
  padding: 0.45rem 0.85rem;
}

.planner-support-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.7rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(43, 55, 75, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(43, 55, 75, 0.03) 100%);
  color: var(--sf-color-text);
  text-decoration: none;
  box-shadow: var(--sf-shadow-panel);
}

.planner-support-filter strong {
  color: var(--sf-color-primary);
  font-size: 1rem;
}

.planner-support-filter-active {
  border-color: rgba(196, 46, 36, 0.22);
  background: linear-gradient(180deg, rgba(196, 46, 36, 0.08), rgba(196, 46, 36, 0.03));
  box-shadow: inset 3px 0 0 rgba(196, 46, 36, 0.65);
}

.planner-support-status {
  min-width: 7rem;
  justify-content: center;
}

.planner-support-status-pending {
  background: #eff4ff;
  color: #2459b3;
  border: 1px solid rgba(36, 89, 179, 0.2);
}

.planner-support-status-success {
  background: #eef9f1;
  color: #1d8f4e;
  border: 1px solid rgba(29, 143, 78, 0.2);
}

.planner-support-status-failed {
  background: #fff2f2;
  color: #b21d2a;
  border: 1px solid rgba(178, 29, 42, 0.2);
}

.planner-support-status-cancelled {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid rgba(75, 85, 99, 0.18);
}

.planner-error-message-cell {
  min-width: 26rem;
  max-width: 32rem;
}

.declaration-queue-table-panel {
  padding: 0.5rem;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.declaration-queue-table-header {
  padding: 0.15rem 0.2rem 0.95rem;
}

.declaration-queue-table-header h2 {
  margin: 0.2rem 0 0.35rem;
  color: var(--sf-color-primary);
  font-size: 1.5rem;
}

.declaration-queue-table-wrap {
  border: 1px solid rgba(43, 55, 75, 0.08);
  border-radius: 20px;
  background: #fff;
  min-height: 22rem;
  max-height: calc(100vh - 18.5rem);
  overflow: auto;
}

.declaration-queue-table {
  min-width: 1560px;
}

.declaration-queue-table th {
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.declaration-queue-table td {
  vertical-align: top;
}

.declaration-queue-row {
  transition: background 0.16s ease;
}

.declaration-queue-row:hover {
  background: rgba(43, 55, 75, 0.03);
}

.declaration-queue-row-failed {
  background: linear-gradient(90deg, rgba(178, 29, 42, 0.06) 0%, rgba(178, 29, 42, 0.015) 100%);
}

.declaration-queue-row-pending {
  background: linear-gradient(90deg, rgba(36, 89, 179, 0.06) 0%, rgba(36, 89, 179, 0.015) 100%);
}

.declaration-queue-row-success {
  background: linear-gradient(90deg, rgba(29, 143, 78, 0.05) 0%, rgba(29, 143, 78, 0.012) 100%);
}

.declaration-queue-row-cancelled {
  background: linear-gradient(90deg, rgba(75, 85, 99, 0.05) 0%, rgba(75, 85, 99, 0.012) 100%);
}

.planner-qty-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--sf-color-text-muted);
  font-size: 0.82rem;
  padding: 0.2rem 0;
}

.planner-tracking-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.planner-tracking-line {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-bottom: 0.25rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.planner-tracking-line:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.planner-tracking-meta {
  color: var(--sf-color-text-muted);
  font-size: 0.78rem;
}

.planner-tracking-block span,
.planner-empty-inline {
  color: var(--sf-color-text-muted);
  font-size: 0.82rem;
}

.planner-error-message {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.35;
  max-height: calc(1.35em * 5);
  overflow: hidden;
}

.planner-retry-form {
  margin-top: 0.6rem;
}

.planner-support-action-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.declaration-queue-error-cell {
  min-width: 28rem;
}

.planner-retry-button {
  min-height: 2.35rem;
  padding: 0.5rem 0.78rem;
  border-radius: 12px;
}

.planner-cancel-button {
  min-height: 2.35rem;
  padding: 0.5rem 0.78rem;
  border-radius: 12px;
  border-color: var(--sf-color-accent);
  color: var(--sf-color-accent);
}

.planner-cancel-button:hover {
  background: #fff3f3;
}

.planner-components-block {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.planner-components-empty {
  color: var(--sf-color-text-muted);
  font-style: italic;
}

.planner-components-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.planner-component-chip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--sf-color-line);
  background: #fff;
}

.planner-component-code {
  font-weight: 700;
  color: var(--sf-color-primary);
}

.planner-component-description,
.planner-component-qty {
  color: var(--sf-color-text-muted);
  font-size: 0.8rem;
}

.planner-support-details {
  border: 1px solid rgba(43, 55, 75, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfcfd 0%, #f4f7fa 100%);
  overflow: hidden;
}

.planner-support-details summary {
  cursor: pointer;
  padding: 0.7rem 0.85rem;
  font-weight: 700;
  color: var(--sf-color-primary);
}

.planner-support-details-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0 0.7rem 0.75rem;
}

.planner-support-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
}

.planner-support-details-grid div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.planner-support-details-grid span {
  color: var(--sf-color-text-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.planner-empty-cell {
  text-align: center;
  color: var(--sf-color-text-muted);
  font-style: italic;
}

.declaration-queue-empty-cell {
  padding: 2rem 1.25rem !important;
}

.declaration-queue-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.declaration-queue-empty-state strong {
  color: var(--sf-color-primary);
  font-size: 1rem;
}

.declaration-queue-empty-state p {
  margin: 0;
  max-width: 34rem;
  color: var(--sf-color-text-muted);
  line-height: 1.45;
}

.planner-progress-table {
  min-width: 1580px;
}

.planner-progress-toolbar {
  margin-bottom: 1rem;
}

.planner-progress-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.planner-progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.7rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(43, 55, 75, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(43, 55, 75, 0.03) 100%);
  color: var(--sf-color-text);
  box-shadow: var(--sf-shadow-panel);
}

.planner-progress-pill strong {
  color: var(--sf-color-primary);
  font-size: 1rem;
}

.planner-progress-columns-button {
  min-height: 2.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 14px;
}

.planner-progress-panel {
  padding: 0.5rem;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.planner-progress-table-wrap {
  min-height: 22rem;
  max-height: calc(100vh - 18.5rem);
  overflow: auto;
}

.planner-progress-row {
  transition: background 0.16s ease;
}

.planner-progress-row:hover {
  background: rgba(43, 55, 75, 0.03);
}

.planner-progress-row-running {
  background: linear-gradient(90deg, rgba(29, 143, 78, 0.05) 0%, rgba(29, 143, 78, 0.012) 100%);
}

.planner-progress-row-stopped {
  background: linear-gradient(90deg, rgba(159, 108, 13, 0.07) 0%, rgba(159, 108, 13, 0.015) 100%);
}

.planner-progress-empty-cell {
  padding: 2rem 1.25rem !important;
}

.planner-progress-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.planner-progress-empty-state strong {
  color: var(--sf-color-primary);
  font-size: 1rem;
}

.planner-progress-workstation {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.planner-progress-workstation span {
  color: var(--sf-color-text-muted);
  font-size: 0.82rem;
}

.planner-progress-workstation .planner-progress-workorder {
  color: var(--sf-color-primary);
  font-weight: 700;
}

.planner-progress-product-cell,
.planner-progress-detail-cell {
  min-width: 15rem;
  vertical-align: top;
}

.planner-progress-detail-cell {
  min-width: 22rem;
}

.planner-progress-product-cell .planner-progress-detail-line {
  white-space: normal;
  word-break: break-word;
}

.planner-progress-detail-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.planner-progress-detail-line:last-child {
  margin-bottom: 0;
}

.planner-progress-detail-line span {
  color: var(--sf-color-text-muted);
}

.planner-progress-metric {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.35rem;
  background: var(--sf-color-surface-soft);
  border: 1px solid var(--sf-color-line);
  color: var(--sf-color-primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.planner-progress-total-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--sf-color-line);
}

.planner-progress-empty {
  color: var(--sf-color-text-muted);
  font-style: italic;
}

.planner-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.planner-status-started {
  background: #eef9f1;
  color: #1d8f4e;
  border: 1px solid rgba(29, 143, 78, 0.2);
}

.planner-status-stopped {
  background: #fff8e8;
  color: #9f6c0d;
  border: 1px solid rgba(159, 108, 13, 0.22);
}

.planner-placeholder-card {
  padding: 1.5rem;
}

.brand-subtitle {
  color: var(--sf-color-text-soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shell-header {
  padding: 1rem 1.5rem 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.96));
  box-shadow: 0 12px 30px rgba(32, 43, 61, 0.06);
}

.shell-nav-link-active {
  border-color: rgba(196, 46, 36, 0.18);
  background: rgba(196, 46, 36, 0.08);
}

.planner-command-context {
  gap: 0.9rem;
}

.planner-command-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.planner-command-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.planner-command-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 0.14rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(43, 55, 75, 0.08);
  border-radius: 14px;
  background: rgba(43, 55, 75, 0.04);
  min-width: 7.2rem;
}

.planner-command-pill strong {
  color: var(--sf-color-primary);
  font-size: 0.92rem;
}

.planner-command-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.planner-header-menu {
  gap: 1rem;
  width: 100%;
}

.planner-header-toggle-label {
  letter-spacing: 0.12em;
}

.planner-navigator-panel {
  min-width: 32rem;
  padding: 0.9rem;
  border-radius: 20px;
}

.planner-navigator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.planner-navigator-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.35rem;
}

.planner-header-link {
  border-left: 0;
  border-radius: 12px;
  padding: 0.8rem 0.85rem;
}

.planner-header-link-active {
  box-shadow: inset 0 0 0 1px rgba(196, 46, 36, 0.12);
}

.management-home-heading h1 {
  margin-bottom: 0.4rem;
}

.management-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(27, 36, 52, 0.99), rgba(41, 53, 72, 0.99));
  color: #fff;
}

.management-home-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 2.15rem 1.85rem;
}

.management-home-hero-copy h2,
.management-home-hero-copy .page-summary,
.management-home-hero-copy .eyebrow {
  color: inherit;
}

.management-home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.management-home-hero-metric {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.25rem 1.3rem;
  border-top: 4px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.management-home-hero-metric span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.management-home-hero-metric strong {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.management-home-hero-action {
  background: #fff;
  color: var(--sf-color-primary);
  border-color: transparent;
}

.management-home-hero-sidebar {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.3rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
}

.management-home-hero-details {
  display: grid;
  gap: 0.7rem;
}

.management-home-hero-detail {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.management-home-hero-detail span {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.management-home-hero-detail strong {
  font-size: 1.3rem;
}

.management-home-grid-secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.management-home-link-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.management-home-link-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  padding: 1.15rem;
}

.management-home-link-group-header .eyebrow,
.management-home-link-group-header .page-summary {
  margin-bottom: 0;
}

.management-home-link-list {
  display: grid;
  gap: 0.75rem;
}

.management-home-link-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--sf-color-border);
  background: linear-gradient(180deg, rgba(248, 249, 250, 0.9), rgba(255, 255, 255, 1));
  color: var(--sf-color-primary);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.management-home-link-item:hover,
.management-home-link-item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(196, 46, 36, 0.28);
  box-shadow: 0 12px 24px rgba(32, 43, 61, 0.08);
  text-decoration: none;
}

.management-home-link-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.2rem 0.45rem;
  background: rgba(43, 55, 75, 0.08);
  color: var(--sf-color-text-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.management-home-link-item strong {
  font-size: 1rem;
  line-height: 1.3;
}

.management-home-hero.management-home-tone-alert {
  background:
    radial-gradient(circle at top right, rgba(196, 46, 36, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(27, 36, 52, 0.99), rgba(41, 53, 72, 0.99));
}

.management-home-hero.management-home-tone-watch {
  background:
    radial-gradient(circle at top right, rgba(185, 92, 0, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(27, 36, 52, 0.99), rgba(53, 49, 40, 0.99));
}

.management-home-hero.management-home-tone-live {
  background:
    radial-gradient(circle at top right, rgba(24, 101, 166, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(25, 37, 55, 0.99), rgba(26, 60, 91, 0.99));
}

.management-home-hero.management-home-tone-performance {
  background:
  radial-gradient(circle at top right, rgba(31, 143, 78, 0.16), transparent 28%),
  linear-gradient(135deg, rgba(25, 38, 50, 0.99), rgba(31, 68, 52, 0.99));
}

.management-home-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.85rem;
}

.management-home-week-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem;
  border: 1px solid var(--sf-color-border);
  background: var(--sf-color-surface);
  box-shadow: var(--sf-shadow-panel);
}

.management-home-week-label {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  color: var(--sf-color-primary);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.management-home-date-form {
  display: flex;
}

.management-home-week-button {
  min-width: 3rem;
  min-height: 2.75rem;
  padding: 0 0.9rem;
}

.management-home-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.management-home-kpi-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.55rem;
  min-height: 8.4rem;
  padding: 0.8rem 0.9rem;
  border-top: 4px solid rgba(43, 55, 75, 0.18);
}

.management-home-kpi-copy {
  display: grid;
  gap: 0.16rem;
}

.management-home-kpi-copy span {
  color: var(--sf-color-text-soft);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.management-home-kpi-copy strong {
  color: var(--sf-color-primary);
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  line-height: 1;
}

.management-home-kpi-copy p,
.management-home-kpi-copy small {
  margin: 0;
  color: var(--sf-color-text-muted);
  line-height: 1.25;
}

.management-home-kpi-copy p {
  font-size: 0.82rem;
}

.management-home-kpi-copy small {
  font-size: 0.76rem;
}

.management-home-kpi-action {
  align-self: flex-start;
  min-height: 2.2rem;
  padding: 0.38rem 0.8rem;
  font-size: 0.82rem;
}

.management-home-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.management-home-data-panel {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 15rem;
  padding: 0.85rem;
}

.management-home-data-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.management-home-data-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.management-home-mini-table {
  display: grid;
  gap: 0.45rem;
}

.management-home-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.65rem;
  padding: 0.62rem 0.75rem;
  border: 1px solid var(--sf-color-border);
  background: linear-gradient(180deg, rgba(249, 250, 251, 0.92), rgba(255, 255, 255, 1));
}

.management-home-mini-row-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.management-home-mini-row-copy strong,
.management-home-mini-row-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.management-home-mini-row-copy strong {
  color: var(--sf-color-primary);
  font-size: 0.94rem;
}

.management-home-mini-row-copy span {
  color: var(--sf-color-text-muted);
  font-size: 0.79rem;
}

.management-home-mini-row-metrics {
  display: grid;
  justify-items: end;
  gap: 0.12rem;
  flex-shrink: 0;
  color: var(--sf-color-text-muted);
  font-size: 0.79rem;
  text-align: right;
}

.management-home-mini-row-metrics strong {
  color: var(--sf-color-primary);
  font-size: 0.95rem;
}

.management-home-mini-row-metrics-split {
  gap: 0.3rem;
}

.management-home-empty-state {
  min-height: 100%;
  justify-content: center;
  padding: 1rem 0;
}

.workbench-command-bar {
  gap: 0.75rem;
}

.workbench-command-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.workbench-command-group-navigation {
  padding: 0.2rem;
  border: 1px solid rgba(43, 55, 75, 0.08);
  border-radius: 18px;
  background: rgba(43, 55, 75, 0.04);
}

.workbench-command-group-actions {
  margin-left: auto;
}

.workbench-command-card {
  border-radius: 14px;
  background: rgba(43, 55, 75, 0.04);
  border-color: rgba(43, 55, 75, 0.08);
}

.workbench-command-card-primary {
  background: linear-gradient(180deg, rgba(43, 55, 75, 0.08), rgba(43, 55, 75, 0.03));
}

.workbench-week-summary {
  border-radius: 12px;
  background: #fff;
}

.workbench-nav-button,
.workbench-utility-button,
.workbench-primary-utility {
  min-height: 2.35rem;
  border-radius: 12px;
  text-transform: none;
  letter-spacing: 0;
}

.workbench-primary-utility {
  background: var(--sf-color-primary);
  border-color: var(--sf-color-primary);
  color: #fff;
}

.workbench-primary-utility:hover {
  background: var(--sf-color-primary-deep);
  border-color: var(--sf-color-primary-deep);
}

.workbench-secondary-link {
  color: var(--sf-color-text-muted);
  font-weight: 700;
  font-size: 0.86rem;
}

.workbench-action-stack {
  gap: 0.45rem;
}

.workbench-row-primary,
.workbench-row-secondary {
  min-width: 8rem;
  border-radius: 12px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.84rem;
}

.workbench-row-primary.run-state-button-start {
  background: var(--sf-color-primary);
}

.workbench-row-primary.run-state-button-stop {
  background: #1d8f4e;
}

.workbench-row-primary.run-state-button-restart {
  background: #c48711;
}

.workbench-row-secondary {
  background: rgba(43, 55, 75, 0.08);
  color: var(--sf-color-primary);
}

.workbench-row-secondary:hover {
  background: rgba(43, 55, 75, 0.14);
}

.workorder-table {
  border-collapse: separate;
  border-spacing: 0;
}

.workorder-table th {
  background: linear-gradient(180deg, #243042, #2b374b);
}

.workorder-table th,
.workorder-table td {
  padding: 0.6rem 0.65rem;
}

.workorder-table tbody tr:hover {
  background: rgba(43, 55, 75, 0.025);
}

.admin-users-overview-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 0.9rem;
}

.admin-quick-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.admin-quick-filter-active {
  box-shadow: inset 0 0 0 1px rgba(43, 55, 75, 0.08);
}

.admin-user-row {
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}

.admin-user-row-state,
.admin-user-row-facilities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-user-row-facilities .status-chip {
  background: rgba(43, 55, 75, 0.04);
}

.admin-user-editor-header-strong {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.admin-action-note {
  color: var(--sf-color-text-soft);
  font-size: 0.86rem;
}

.settings-users-sidebar,
.settings-facilities-sidebar {
  padding: 0.9rem;
}

.settings-facilities-screen {
  align-items: stretch;
}

.settings-users-screen {
  align-items: stretch;
}

.settings-users-screen .admin-users-sidebar-header,
.settings-facilities-screen .admin-users-sidebar-header {
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.settings-users-create-button,
.settings-facilities-create-button {
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  min-height: 2.5rem;
  justify-content: center;
}

.settings-users-screen .admin-user-search-shell,
.settings-facilities-screen .admin-user-search-shell {
  align-items: stretch;
}

.settings-users-screen .admin-search-button,
.settings-facilities-screen .admin-search-button {
  min-width: 6.75rem;
}

.settings-users-screen .admin-user-directory,
.settings-facilities-screen .admin-user-directory {
  max-height: calc(100vh - 17rem);
}

.settings-users-screen .admin-user-directory,
.settings-facilities-screen .admin-user-directory {
  max-height: none;
  overflow: visible;
}

.settings-users-row,
.settings-facilities-row {
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
}

.settings-users-row .admin-user-row-copy,
.settings-facilities-row .admin-user-row-copy {
  width: 100%;
}

.settings-users-row {
  flex-direction: row;
  align-items: center;
  gap: 0;
  min-height: 2.8rem;
  padding: 0.56rem 0.78rem;
}

.settings-users-row-copy {
  flex-direction: row;
  align-items: center;
  gap: 0.48rem;
}

.settings-users-row-copy strong,
.settings-users-row-copy span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.settings-users-row-copy strong {
  font-size: 0.92rem;
}

.settings-users-row-copy span {
  color: var(--sf-color-text-soft);
  font-size: 0.86rem;
}

.settings-facilities-row {
  flex-direction: row;
  align-items: center;
  gap: 0;
  min-height: 3rem;
  padding: 0.62rem 0.82rem;
}

.settings-facilities-row-copy {
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
}

.settings-facilities-row-copy strong,
.settings-facilities-row-copy span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.settings-facilities-row-copy strong {
  font-size: 0.92rem;
}

.settings-facilities-row-copy span {
  color: var(--sf-color-text-soft);
  font-size: 0.86rem;
}

.settings-users-editor,
.settings-facilities-editor {
  padding: 0.95rem 1rem;
}

.settings-users-inline-title,
.settings-facilities-inline-title {
  color: var(--sf-color-text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}

.settings-users-form,
.settings-facilities-form {
  gap: 0.85rem;
}

.settings-users-identity-section,
.settings-facilities-fields-section {
  padding: 0.95rem 1rem;
}

.settings-users-identity-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-facilities-fields-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-users-toggle-grid,
.settings-facilities-toggle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
}

.settings-users-form-actions,
.settings-facilities-form-actions {
  gap: 0.55rem;
}

.settings-users-screen .button-secondary,
.settings-users-screen .action-link-button,
.settings-users-screen .admin-search-button,
.settings-facilities-screen .button-secondary,
.settings-facilities-screen .action-link-button,
.settings-facilities-screen .admin-search-button {
  min-height: 2.5rem;
  padding: 0.56rem 0.88rem;
  border-radius: 13px;
  font-size: 0.83rem;
  letter-spacing: 0.06em;
}

.settings-users-screen .action-link-button,
.settings-facilities-screen .action-link-button {
  box-shadow: none;
}

.settings-users-screen .admin-form-actions .action-link-button,
.settings-facilities-screen .admin-form-actions .action-link-button {
  padding-left: 0.95rem;
  padding-right: 0.95rem;
}

.settings-users-screen .admin-input,
.settings-users-screen .admin-select {
  min-height: 2.35rem;
  padding: 0.48rem 0.78rem;
}

.settings-users-screen .admin-editor-section {
  padding: 0.72rem 0.82rem 0.78rem;
}

.settings-users-screen .settings-users-identity-section {
  padding: 0.72rem 0.82rem;
}

.settings-users-screen .admin-editor-section-header {
  margin-bottom: 0.55rem;
}

.settings-users-screen .admin-editor-section-header h3 {
  font-size: 0.98rem;
}

.settings-users-screen .admin-class-grid,
.settings-users-screen .admin-site-grid {
  gap: 0.5rem;
}

.settings-users-screen .admin-class-card,
.settings-users-screen .admin-site-card {
  gap: 0.55rem;
  padding: 0.62rem 0.72rem;
}

.settings-users-screen .admin-class-card span,
.settings-users-screen .admin-site-card span,
.settings-users-screen .admin-toggle-row span {
  font-size: 0.8rem;
  line-height: 1.32;
}

.settings-users-screen .admin-toggle-row {
  padding: 0.56rem 0.72rem;
}

.settings-users-screen .admin-metadata-grid {
  gap: 0.55rem 0.65rem;
}

.settings-users-screen .admin-metadata-grid div {
  padding: 0.55rem 0.72rem;
  border-radius: 14px;
}

.settings-users-screen .admin-metadata-grid dt {
  font-size: 0.74rem;
}

.settings-users-screen .admin-metadata-grid dd {
  margin-top: 0.18rem;
  font-size: 0.9rem;
}

.settings-users-screen .settings-users-form {
  gap: 0.6rem;
}

.settings-users-screen .admin-form-actions {
  padding-top: 0.45rem;
}

.settings-facilities-screen .admin-input,
.settings-facilities-screen .admin-select {
  min-height: 2.55rem;
  padding: 0.56rem 0.82rem;
}

.settings-facilities-screen .admin-editor-section {
  padding: 0.85rem 0.9rem 0.9rem;
}

.settings-facilities-screen .settings-facilities-fields-section {
  padding: 0.85rem 0.9rem;
}

.settings-facilities-screen .admin-toggle-row {
  padding: 0.68rem 0.82rem;
}

.settings-facilities-screen .admin-metadata-grid {
  gap: 0.65rem 0.75rem;
}

.settings-facilities-screen .admin-metadata-grid div {
  padding: 0.62rem 0.8rem;
  border-radius: 14px;
}

.settings-facilities-screen .admin-metadata-grid dd {
  margin-top: 0.22rem;
  font-size: 0.92rem;
}

.settings-facilities-screen .settings-facilities-form {
  gap: 0.7rem;
}

.settings-facilities-screen .admin-form-actions {
  padding-top: 0.6rem;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-form-field-wide {
  grid-column: span 2;
}

.admin-form-field span {
  color: var(--sf-color-text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.declaration-reasons-layout {
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.declaration-reasons-sidebar,
.declaration-reasons-editor {
  padding: 0.95rem 1rem;
}

.declaration-reasons-sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.declaration-reasons-create-button {
  width: 100%;
  margin-bottom: 0.7rem;
  justify-content: center;
}

.declaration-reasons-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.declaration-reasons-tab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(43, 55, 75, 0.1);
  border-radius: 14px;
  background: rgba(43, 55, 75, 0.03);
}

.declaration-reasons-tab-active {
  border-color: rgba(196, 46, 36, 0.22);
  background: rgba(196, 46, 36, 0.07);
}

.declaration-reasons-tab span {
  color: var(--sf-color-text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.declaration-reasons-tab strong {
  color: var(--sf-color-primary);
  font-size: 1rem;
}

.declaration-reasons-search {
  margin-bottom: 0.7rem;
}

.declaration-reasons-search-shell {
  gap: 0.5rem;
  align-items: stretch;
}

.declaration-reasons-search-shell .admin-input-search {
  min-height: 2.9rem;
}

.declaration-reasons-search-shell .admin-search-button {
  min-width: 6.75rem;
  min-height: 2.9rem;
  border-radius: 14px;
}

.declaration-reasons-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: calc(100vh - 17rem);
  overflow: auto;
}

.declaration-reasons-row {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  padding: 0.7rem 0.82rem;
  border: 1px solid rgba(43, 55, 75, 0.1);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.declaration-reasons-row-active {
  border-color: rgba(196, 46, 36, 0.26);
  background: linear-gradient(180deg, rgba(196, 46, 36, 0.045), rgba(196, 46, 36, 0.012));
  box-shadow: inset 3px 0 0 rgba(196, 46, 36, 0.72);
}

.declaration-reasons-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.declaration-reasons-row-top strong {
  font-size: 0.92rem;
  line-height: 1.2;
}

.declaration-reasons-row p {
  margin: 0;
  color: var(--sf-color-text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.declaration-reasons-inline-title {
  color: var(--sf-color-text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.declaration-reasons-fields-section {
  padding: 0.95rem 1rem;
}

.declaration-reasons-fields-grid {
  display: grid;
  grid-template-columns: minmax(12rem, 0.9fr) minmax(22rem, 1.9fr) minmax(7rem, 0.42fr);
  gap: 0.8rem;
  align-items: end;
}

.declaration-reasons-field-wide {
  grid-column: span 1;
}

.declaration-reasons-field-status {
  min-width: 0;
}

.declaration-reasons-field-compact {
  min-width: 0;
}

.declaration-reasons-field-compact .admin-input {
  max-width: 10rem;
}

.declaration-reasons-toggle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
}

.declaration-reasons-toggle-card {
  min-height: 0;
  padding: 0.8rem 0.9rem;
}

.declaration-reasons-workstations-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.declaration-reasons-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.declaration-reasons-scope-card {
  min-height: 0;
  padding: 0.85rem 0.9rem;
}

.declaration-reasons-workstation-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid rgba(43, 55, 75, 0.08);
  border-radius: 16px;
  background: rgba(43, 55, 75, 0.025);
}

.declaration-reasons-workstation-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.declaration-reasons-workstation-count {
  margin: 0;
  color: var(--sf-color-text-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.declaration-reasons-workstation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.declaration-reasons-workstation-search-field {
  max-width: 26rem;
}

.declaration-reasons-workstation-groups {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 24rem;
  overflow: auto;
  padding-right: 0.15rem;
}

.declaration-reasons-workstation-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.declaration-reasons-workstation-group-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.declaration-reasons-workstation-group-header strong {
  color: var(--sf-color-primary);
  font-size: 0.9rem;
}

.declaration-reasons-workstation-group-header span {
  color: var(--sf-color-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.declaration-reasons-workstation-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.declaration-reasons-workstation-option {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(43, 55, 75, 0.08);
  border-radius: 14px;
  background: #fff;
}

.declaration-reasons-workstation-option input {
  margin-top: 0.15rem;
}

.declaration-reasons-workstation-option strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.2;
}

.declaration-reasons-workstation-option span {
  color: var(--sf-color-text-muted);
  font-size: 0.8rem;
}

.declaration-reasons-form-actions {
  gap: 0.55rem;
}

.declaration-reasons-layout .button-secondary,
.declaration-reasons-layout .action-link-button,
.declaration-reasons-layout .admin-search-button {
  min-height: 2.5rem;
  padding: 0.56rem 0.88rem;
  border-radius: 13px;
  font-size: 0.83rem;
  letter-spacing: 0.06em;
}

.declaration-reasons-layout .action-link-button {
  box-shadow: none;
}

.material-readiness-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 0.9rem;
}

.material-readiness-summary-card {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(43, 55, 75, 0.08);
  border-radius: 14px;
  background: rgba(43, 55, 75, 0.03);
}

.material-readiness-summary-card-active {
  border-color: rgba(196, 46, 36, 0.2);
  background: rgba(196, 46, 36, 0.06);
}

.material-readiness-summary-card span {
  color: var(--sf-color-text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.material-readiness-summary-card strong {
  color: var(--sf-color-primary);
  font-size: 1rem;
}

.material-readiness-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 1rem;
  align-items: start;
}

.material-readiness-list-panel,
.material-readiness-inspector {
  padding: 0.85rem;
}

.material-readiness-inspector-content {
  min-height: 220px;
}

.material-readiness-inspector-loading {
  opacity: 0.65;
  transition: opacity 120ms ease;
}

.material-readiness-list-header,
.material-readiness-inspector-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.material-readiness-list-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.material-readiness-list-header h1 {
  margin: 0;
  font-size: 1.2rem;
}

.material-readiness-status-strip {
  margin-bottom: 0.65rem;
}

.material-readiness-panel-filters {
  margin-bottom: 0.65rem;
  align-items: end;
}

.material-readiness-table-wrap {
  max-height: calc(100vh - 20.5rem);
  overflow: auto;
  border: 1px solid var(--sf-color-border);
  border-radius: 14px;
}

.material-readiness-table {
  min-width: 940px;
  margin-bottom: 0;
}

.material-readiness-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.material-readiness-row {
  cursor: pointer;
}

.material-readiness-row:hover {
  background: rgba(196, 46, 36, 0.03);
}

.material-readiness-row:focus-visible {
  outline: 2px solid rgba(196, 46, 36, 0.28);
  outline-offset: -2px;
}

.material-readiness-row-active {
  background: rgba(196, 46, 36, 0.05);
}

.material-readiness-cell-copy {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
}

.material-readiness-cell-copy span,
.material-readiness-mini-meta {
  color: var(--sf-color-text-soft);
  font-size: 0.78rem;
}

.material-readiness-row-action .button-secondary {
  min-height: 2.2rem;
}

.material-readiness-search-button {
  min-height: 2.6rem;
  padding: 0.45rem 0.9rem;
}

.material-readiness-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.material-readiness-meta-grid div,
.admin-metadata-grid div {
  border-radius: 14px;
}

.material-readiness-meta-grid div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  background: rgba(43, 55, 75, 0.04);
}

.material-readiness-meta-grid span,
.material-readiness-component-stats span {
  color: var(--sf-color-text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.material-readiness-component-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.material-readiness-component {
  border: 1px solid rgba(43, 55, 75, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
}

.material-readiness-component summary {
  list-style: none;
  cursor: pointer;
  padding: 0.75rem 0.85rem;
}

.material-readiness-component summary::-webkit-details-marker {
  display: none;
}

.material-readiness-component-summary {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
}

.material-readiness-component-summary p {
  margin: 0.2rem 0 0;
  color: var(--sf-color-text-muted);
  line-height: 1.3;
  font-size: 0.88rem;
}

.material-readiness-component-metrics {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.22rem;
}

.material-readiness-component-body {
  padding: 0 0.85rem 0.85rem;
}

.material-readiness-component-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.material-readiness-component-stats div {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.62rem 0.7rem;
  border-radius: 12px;
  background: rgba(43, 55, 75, 0.04);
}

.material-readiness-location-table {
  min-width: 640px;
}

.material-readiness-inspector-header h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.material-readiness-inspector-header h2 span {
  color: var(--sf-color-text-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.material-readiness-inspector-description {
  margin: 0.25rem 0 0;
  color: var(--sf-color-text-muted);
  line-height: 1.3;
}

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

  .workbench-entry-copy,
  .workbench-entry-form {
    padding: 1.6rem;
  }

  .workbench-entry-notes {
    grid-template-columns: 1fr;
  }

  .login-language-switcher {
    justify-content: flex-start;
    margin-top: 0;
  }

  .auth-entry-shell {
    min-height: auto;
    padding-top: 1.5rem;
  }

  .auth-entry-card {
    padding: 1.5rem;
  }

  .shell-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .shell-header-main,
  .dashboard-shell-tools {
    width: 100%;
  }

  .planner-header-menu,
  .planner-command-actions,
  .workbench-command-bar,
  .workbench-command-group,
  .declaration-reasons-layout,
  .material-readiness-layout {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .shell-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .declaration-grid {
    grid-template-columns: 1fr;
  }

  .week-picker-form {
    width: 100%;
  }

  .week-picker-input {
    width: 100%;
  }

  .shell-main {
    padding: 1.25rem 1rem 2rem;
  }

  .planner-summary-grid {
    grid-template-columns: 1fr;
  }

  .admin-users-layout {
    grid-template-columns: 1fr;
  }

  .management-config-grid {
    grid-template-columns: 1fr;
  }

  .admin-users-layout-modern,
  .admin-users-overview-strip,
  .admin-form-grid,
  .settings-users-identity-grid,
  .settings-facilities-fields-grid,
  .declaration-reasons-tabs,
  .declaration-reasons-fields-grid,
  .declaration-reasons-scope-grid,
  .declaration-reasons-workstation-checklist,
  .material-readiness-summary-strip,
  .admin-class-grid,
  .admin-metadata-grid,
  .admin-user-filter-grid,
  .management-home-kpi-grid,
  .management-home-grid-secondary,
  .management-home-panel-grid,
  .management-home-link-groups,
  .material-readiness-meta-grid,
  .material-readiness-component-stats,
  .planner-navigator-grid {
    grid-template-columns: 1fr;
  }

  .departments-summary-strip,
  .planning-summary-strip,
  .department-routing-grid,
  .departments-fields-grid,
  .workstations-summary-strip,
  .wo-unassigned-summary-strip,
  .management-home-overview-strip {
    grid-template-columns: 1fr;
  }

  .admin-user-list {
    max-height: none;
  }

  .settings-card-header,
  .admin-users-sidebar-top,
  .admin-user-search-form,
  .admin-user-search-shell,
  .admin-users-sidebar-header,
  .admin-user-editor-header,
  .admin-user-editor-identity,
  .admin-form-actions,
  .management-config-item-header,
  .management-config-summary {
    flex-direction: column;
  }

  .department-upload-form {
    align-items: stretch;
  }

  .planning-modal-grid,
  .planning-modal-summary,
  .workstations-fields-grid,
  .workstations-toggle-grid {
    grid-template-columns: 1fr;
  }

  .planning-modal-summary-card-wide {
    grid-column: span 1;
  }

  .department-file-trigger,
  .department-import-button {
    width: 100%;
  }

  .department-file-name {
    min-width: 0;
  }

  .workstation-tools-form {
    align-items: stretch;
  }

  .workstation-file-trigger,
  .workstation-import-button {
    width: 100%;
  }

  .workstation-file-name {
    min-width: 0;
  }

  .wo-unassigned-action-grid {
    grid-template-columns: 1fr;
  }

  .wo-unassigned-action-cell {
    min-width: 20rem;
  }

  .wo-unassigned-modal-summary,
  .wo-unassigned-modal-grid {
    grid-template-columns: 1fr;
  }

  .wo-unassigned-modal-summary-card-wide {
    grid-column: auto;
  }

  .management-home-highlight {
    flex-direction: column;
  }

  .management-home-header,
  .management-home-hero {
    grid-template-columns: 1fr;
  }

  .management-home-header {
    align-items: stretch;
  }

  .management-home-inline-action {
    width: 100%;
  }

  .management-home-toolbar {
    justify-content: stretch;
  }

  .management-home-week-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .management-home-week-label,
  .management-home-date-form,
  .management-home-date-form .week-picker-input {
    width: 100%;
  }

  .settings-meta {
    text-align: left;
  }

  .planner-navigator-panel,
  .workbench-command-group-actions {
    min-width: 0;
    width: 100%;
  }
}

.shell-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border-bottom: 1px solid rgba(43, 55, 75, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 32px rgba(32, 43, 61, 0.08);
}

.shell-header-row {
  width: 100%;
}

.shell-header-row-global {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.85rem 1.5rem;
  border-top: 4px solid var(--sf-color-accent);
}

.shell-header-row-context {
  display: flex;
  align-items: center;
  padding: 0.9rem 1.5rem 1rem;
  border-top: 1px solid rgba(43, 55, 75, 0.08);
  background: linear-gradient(180deg, rgba(248, 249, 250, 0.96), rgba(255, 255, 255, 0.94));
}

.brand-block {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 0 1 auto;
}

.brand-logo {
  height: 2.25rem;
}

.brand-title {
  color: var(--sf-color-primary);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.shell-header-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  margin-left: auto;
}

.shell-global-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.25rem;
  border: 1px solid rgba(43, 55, 75, 0.08);
  border-radius: 999px;
  background: rgba(43, 55, 75, 0.04);
  overflow-x: auto;
  scrollbar-width: none;
}

.shell-global-nav::-webkit-scrollbar,
.module-context-nav::-webkit-scrollbar,
.module-context-toolbar::-webkit-scrollbar {
  display: none;
}

.shell-global-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  color: var(--sf-color-primary);
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.shell-global-nav-link:hover {
  background: #fff;
}

.shell-global-nav-link-active {
  background: var(--sf-color-primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(32, 43, 61, 0.16);
}

.shell-header-login {
  text-transform: none;
  letter-spacing: 0;
}

.shell-user-toggle {
  min-height: 2.55rem;
  padding: 0.62rem 0.85rem 0.62rem 1rem;
  border: 1px solid rgba(43, 55, 75, 0.12);
  border-radius: 14px;
  background: #fff;
}

.shell-user-toggle:hover,
.shell-user-menu[open] .shell-user-toggle {
  border-color: rgba(196, 46, 36, 0.24);
  background: rgba(196, 46, 36, 0.05);
}

.shell-user-menu-panel {
  top: calc(100% + 0.45rem);
  min-width: 14rem;
  padding: 0.45rem;
  border: 1px solid rgba(43, 55, 75, 0.12);
  border-radius: 16px;
  box-shadow: 0 18px 32px rgba(32, 43, 61, 0.12);
}

.shell-user-menu-link {
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border-left: 0;
}

.shell-user-menu-link:hover {
  background: rgba(196, 46, 36, 0.05);
}

.module-context-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}

.module-context-primary {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 24rem;
  min-width: 0;
}

.module-context-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.module-context-label,
.module-context-pill-label {
  color: var(--sf-color-text-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.module-context-title {
  color: var(--sf-color-primary);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.module-context-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  min-width: 0;
}

.module-context-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 0.16rem;
  min-height: 2.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(43, 55, 75, 0.08);
  border-radius: 14px;
  background: rgba(43, 55, 75, 0.04);
}

.module-context-pill strong {
  color: var(--sf-color-primary);
  font-size: 0.92rem;
}

.module-context-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1 1 28rem;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
}

.module-context-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.58rem 0.85rem;
  border: 1px solid rgba(43, 55, 75, 0.1);
  border-radius: 12px;
  background: #fff;
  color: var(--sf-color-primary);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.module-context-tab:hover {
  border-color: rgba(196, 46, 36, 0.26);
  background: rgba(196, 46, 36, 0.04);
}

.module-context-tab-active {
  border-color: rgba(196, 46, 36, 0.24);
  background: rgba(196, 46, 36, 0.08);
  box-shadow: inset 0 0 0 1px rgba(196, 46, 36, 0.08);
}

.module-context-toolbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 1 auto;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
}

.module-context-toolbar-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(43, 55, 75, 0.1);
  border-radius: 12px;
  background: #fff;
  color: var(--sf-color-primary);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.module-context-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  flex: 0 0 auto;
}

.module-context-button,
.module-context-icon-button,
.shell-header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.58rem 0.9rem;
  border: 1px solid rgba(43, 55, 75, 0.12);
  border-radius: 12px;
  background: #fff;
  color: var(--sf-color-primary);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.module-context-icon-button {
  min-width: 2.5rem;
  padding: 0.58rem;
}

.module-context-button:hover,
.module-context-icon-button:hover,
.shell-header-login:hover {
  border-color: rgba(196, 46, 36, 0.28);
  background: rgba(196, 46, 36, 0.04);
}

.module-context-button-primary {
  background: var(--sf-color-primary);
  border-color: var(--sf-color-primary);
  color: #fff;
}

.module-context-button-primary:hover {
  background: var(--sf-color-primary-deep);
  border-color: var(--sf-color-primary-deep);
}

.module-context-date-form {
  display: flex;
  align-items: center;
}

.module-context-date-input {
  min-height: 2.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(43, 55, 75, 0.12);
  border-radius: 12px;
  background: #fff;
  color: var(--sf-color-primary);
}

.module-context-date-input:focus {
  outline: none;
  border-color: rgba(196, 46, 36, 0.36);
  box-shadow: 0 0 0 3px rgba(196, 46, 36, 0.1);
}

.module-context-menu {
  position: relative;
}

.module-context-menu summary {
  list-style: none;
}

.module-context-menu summary::-webkit-details-marker {
  display: none;
}

.module-context-menu-toggle {
  cursor: pointer;
}

.module-context-menu-toggle strong {
  font-size: 0.92rem;
}

.module-context-menu-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 12rem;
  padding: 0.45rem;
  border: 1px solid rgba(43, 55, 75, 0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 32px rgba(32, 43, 61, 0.12);
  z-index: 40;
}

.module-context-menu-management .module-context-menu-panel {
  min-width: 15rem;
  max-width: min(22rem, calc(100vw - 2rem));
}

.module-context-actions-management {
  gap: 0.7rem;
}

.module-context-bar-home {
  justify-content: flex-end;
}

.management-home-top-toolbar {
  gap: 0.4rem;
}

.management-home-top-week-label,
.management-home-top-week-button,
.management-home-top-current-button,
.management-home-top-date-input {
  min-height: 2.35rem;
}

.management-home-top-week-label {
  padding: 0.45rem 0.8rem;
  font-weight: 800;
}

.management-home-top-week-button {
  min-width: 2.35rem;
}

.management-home-top-current-button {
  padding: 0.45rem 0.8rem;
}

.management-home-top-date-input {
  padding: 0.45rem 0.7rem;
}

.module-context-menu-link {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  color: var(--sf-color-primary);
  font-weight: 700;
}

.module-context-menu-link:hover {
  background: rgba(196, 46, 36, 0.04);
}

.module-context-menu-link-active {
  background: rgba(196, 46, 36, 0.08);
}

@media (max-width: 1180px) {
  .workbench-entry-notes {
    grid-template-columns: 1fr;
  }

  .declaration-queue-header {
    align-items: flex-start;
  }

  .declaration-queue-header-meta {
    justify-content: flex-start;
  }

  .declaration-queue-toolbar {
    align-items: stretch;
  }

  .declaration-queue-search-form {
    width: 100%;
  }

  .declaration-queue-search-input,
  .declaration-queue-search-button {
    width: 100%;
  }

  .shell-header-row-global {
    flex-wrap: wrap;
  }

  .shell-header-controls {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 900px) {
  .shell-header-row-global,
  .shell-header-row-context {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .shell-header-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .shell-global-nav {
    width: 100%;
  }

  .shell-header-login,
  .shell-user-menu {
    align-self: flex-start;
  }

  .module-context-bar,
  .module-context-primary,
  .module-context-actions {
    width: 100%;
    align-items: flex-start;
  }

  .module-context-primary,
  .module-context-actions {
    flex-direction: column;
  }

  .module-context-nav,
  .module-context-toolbar,
  .module-context-meta {
    width: 100%;
  }

  .module-context-actions {
    margin-left: 0;
  }

  .module-context-actions .module-context-button,
  .module-context-actions .module-context-menu {
    width: 100%;
  }

  .module-context-actions .module-context-menu-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .module-context-menu-panel {
    right: auto;
    left: 0;
  }

  .workbench-context-toolbar {
    width: 100%;
    justify-content: flex-start;
  }
}

.workbench-touch-mode .workbench-table-wrap {
  border-color: rgba(43, 55, 75, 0.1);
}

.workbench-touch-mode .workbench-context-toolbar .module-context-icon-button {
  min-width: 3.25rem;
  min-height: 3.25rem;
  padding: 0.7rem;
  border-radius: 18px;
}

.workbench-touch-mode .workbench-context-toolbar .module-context-icon-button .action-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.workbench-touch-mode .workorder-table th,
.workbench-touch-mode .workorder-table td {
  padding: 0.85rem 0.8rem;
}

.workbench-touch-mode .workorder-table th {
  font-size: 0.82rem;
}

.workbench-touch-mode .workorder-table td {
  max-width: 12rem;
  font-size: 0.95rem;
  line-height: 1.3;
}

.workbench-touch-mode .workorder-table td.column-description {
  max-width: 18rem;
  font-size: 0.9rem;
  line-height: 1.35;
}

.workbench-touch-mode .workbench-dashboard-table .table-filter-row th {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.workbench-touch-mode .workbench-table-wrap {
  --workbench-header-offset: 3.7rem;
}

.workbench-touch-mode .workbench-dashboard-table .table-filter-input {
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border-radius: 16px;
  font-size: 0.95rem;
}

.workbench-touch-mode .workbench-dashboard-table .filter-action-group {
  gap: 0.6rem;
}

.workbench-touch-mode .workbench-dashboard-table .filter-submit-button,
.workbench-touch-mode .workbench-dashboard-table .filter-clear-button {
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border-radius: 16px;
  font-size: 0.92rem;
  font-weight: 700;
}

.workbench-touch-mode .workbench-action-column-header,
.workbench-touch-mode .workbench-filter-actions {
  min-width: 13rem;
}

.workbench-touch-mode .workbench-action-stack {
  gap: 0.65rem;
  min-width: 11.5rem;
}

.workbench-touch-mode .run-state-form {
  width: 100%;
}

.workbench-touch-mode .workbench-dashboard-table .inline-action {
  width: 100%;
  min-height: 3.5rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(32, 43, 61, 0.12);
}

.workbench-touch-mode .workbench-row-secondary {
  background: linear-gradient(180deg, rgba(43, 55, 75, 0.12) 0%, rgba(43, 55, 75, 0.06) 100%);
}

.workbench-touch-mode .workbench-color-chip {
  min-height: 2.2rem;
  padding: 0.34rem 0.8rem;
  font-size: 0.9rem;
}

.workbench-touch-modal-card {
  width: min(1240px, calc(100vw - 1rem));
  max-height: calc(100vh - 1rem);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.workbench-touch-mode .modal-header {
  margin-bottom: 0.85rem;
}

.workbench-touch-mode .modal-header h2 {
  margin-bottom: 0;
  font-size: 1.5rem;
}

.workbench-touch-mode .declaration-modal-header .eyebrow {
  margin-bottom: 0.12rem;
}

.workbench-touch-mode .declaration-header-content {
  gap: 0.12rem;
}

.workbench-touch-mode .declaration-title-row {
  gap: 0.5rem 0.9rem;
}

.workbench-touch-mode .declaration-header-summary {
  flex: 1 1 24rem;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workbench-touch-mode .modal-close-button {
  width: 3rem;
  height: 3rem;
  border-radius: 16px;
  font-size: 1.75rem;
}

.workbench-touch-mode .modal-state {
  padding: 1.15rem 1.2rem;
  font-size: 1rem;
}

.workbench-touch-mode #declarationForm:not([hidden]) {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 0.7rem;
  flex: 1 1 auto;
}

.workbench-touch-mode .declaration-entry-section {
  margin-bottom: 0;
}

.workbench-touch-mode .declaration-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.workbench-touch-mode .declaration-entry-grid {
  grid-template-columns: 0.85fr 0.85fr 1.25fr 0.85fr 1.25fr;
  gap: 0.7rem;
}

.workbench-touch-mode .declaration-field {
  gap: 0.3rem;
}

.workbench-touch-mode .declaration-field span {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.workbench-touch-mode .declaration-field input,
.workbench-touch-mode .declaration-field select,
.workbench-touch-mode .declaration-components-table input {
  min-height: 2.8rem;
  padding: 0.6rem 0.7rem;
  border-radius: 14px;
  font-size: 0.95rem;
}

.workbench-touch-mode .declaration-components-section {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  margin-bottom: 0;
}

.workbench-touch-mode .declaration-components-wrap {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  border-radius: 18px;
}

.workbench-touch-mode .declaration-components-table th,
.workbench-touch-mode .declaration-components-table td {
  padding: 0.7rem 0.68rem;
}

.workbench-touch-mode .modal-actions {
  gap: 0.75rem;
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: 0;
  padding-top: 0.8rem;
  padding-bottom: 0.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96) 32%, rgba(255, 255, 255, 1) 100%);
  border-top: 1px solid rgba(43, 55, 75, 0.08);
}

.workbench-touch-mode .modal-actions .primary-button,
.workbench-touch-mode .modal-actions .action-link-button {
  min-height: 3rem;
  padding: 0.7rem 1.1rem;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 700;
}

.workbench-touch-mode .touch-keypad {
  position: fixed;
  z-index: 30;
  display: grid;
  gap: 0.7rem;
  width: min(280px, calc(100vw - 1.5rem));
  padding: 0.95rem;
  border: 1px solid rgba(43, 55, 75, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(32, 43, 61, 0.22);
}

.workbench-touch-mode .touch-keypad-header,
.workbench-touch-mode .touch-keypad-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.workbench-touch-mode .touch-keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.workbench-touch-mode .touch-keypad-key,
.workbench-touch-mode .touch-keypad-clear,
.workbench-touch-mode .touch-keypad-ok {
  min-height: 3.1rem;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
}

.workbench-touch-mode .touch-keypad-key {
  border: 1px solid rgba(43, 55, 75, 0.12);
  background: #fff;
  color: var(--sf-color-primary);
}

.workbench-touch-mode .touch-keypad-key-action {
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .workbench-touch-mode .declaration-grid {
    grid-template-columns: 1fr;
  }

  .workbench-touch-mode .declaration-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workbench-touch-mode .workbench-dashboard-table .inline-action,
  .workbench-touch-mode .workbench-dashboard-table .filter-submit-button,
  .workbench-touch-mode .workbench-dashboard-table .filter-clear-button {
    min-height: 3.1rem;
  }

  .workbench-touch-mode .touch-keypad {
    width: min(260px, calc(100vw - 1rem));
  }
}
