:root {
  color-scheme: light;
  --ink: #1f2937;
  --muted: #64748b;
  --line: #d8e1ea;
  --panel: #ffffff;
  --surface: #f7f9fb;
  --brand: #128b7e;
  --brand-dark: #0f766e;
  --brand-soft: #e7f5f3;
  --danger-text: #b42318;
  --danger-border: #fda29b;
  --danger-soft: #fff7f6;
  --accent: #b7791f;
  --sidebar: #ffffff;
  --sidebar-text: #263445;
  --sidebar-muted: #94a3b8;
  --sidebar-active: #e7f5f3;
  --sidebar-active-text: #0f766e;
  --sidebar-active-border: #128b7e;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
  --planner-copy-bg: #f3e8ff;
  --planner-copy-bg-hover: #ede9fe;
  --planner-copy-border: #d8b4fe;
  --planner-copy-ink: #7e22ce;
  --weight-action: 600;
  --weight-heading: 650;
  --weight-label: 650;
  --weight-link: 650;
}

/* Searchable support item picker */
.support-item-picker-field {
  position: relative;
  min-width: 0;
}

.support-item-picker-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.support-item-picker {
  position: relative;
  min-width: 0;
  font-weight: 400;
}

.support-item-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  height: 2.38rem;
  border: 1px solid #d6e1eb;
  border-radius: 6px;
  padding: 0.55rem 0.66rem;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
  font-weight: 400;
}

.support-item-picker-trigger:hover {
  border-color: #b7c6d4;
  color: var(--ink);
  background: #ffffff;
}

.support-item-picker-trigger:focus,
.support-item-picker.is-open .support-item-picker-trigger {
  border-color: var(--brand);
  outline: 3px solid rgba(22, 135, 125, 0.14);
  background: #ffffff;
}

.support-item-picker-trigger.has-error {
  border-color: var(--danger-border);
}

.support-item-picker-trigger-label {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-item-picker-trigger.is-placeholder .support-item-picker-trigger-label {
  color: #8794a6;
}

.support-item-picker-chevron {
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  margin: -0.2rem 0.15rem 0 0.75rem;
  border-right: 1.5px solid #526173;
  border-bottom: 1.5px solid #526173;
  transform: rotate(45deg);
  transition: transform 120ms ease;
}

.support-item-picker.is-open .support-item-picker-chevron {
  margin-top: 0.2rem;
  transform: rotate(225deg);
}

.support-item-picker-panel {
  position: absolute;
  z-index: 90;
  top: calc(100% + 0.34rem);
  left: 0;
  width: min(32rem, calc(100vw - 2rem));
  border: 1px solid #c6d2dc;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(28, 45, 57, 0.16);
  overflow: hidden;
}

.support-item-picker.align-right .support-item-picker-panel {
  right: 0;
  left: auto;
}

.support-item-picker.open-up .support-item-picker-panel {
  top: auto;
  bottom: calc(100% + 0.34rem);
}

.support-item-picker-search-wrap {
  padding: 0.55rem;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.support-item-picker-search {
  height: 2.38rem;
  padding: 0.5rem 0.62rem;
  border-color: #aebbc7;
}

.support-item-picker-results {
  max-height: 18rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.support-item-picker-category + .support-item-picker-category {
  border-top: 1px solid #dbe3e8;
}

.support-item-picker-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.55rem;
  border: 0;
  border-radius: 0;
  padding: 0.5rem 0.72rem;
  color: #34434d;
  background: #f1f5f7;
  font-size: 0.8rem;
  line-height: 1.25;
  font-weight: var(--weight-label);
  text-align: left;
}

.support-item-picker-group:hover,
.support-item-picker-group:focus {
  color: var(--brand-dark);
  background: #e8f3f1;
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.support-item-picker-group-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.support-item-picker-group-count {
  color: #6f7d8c;
  font-size: 0.7rem;
  font-weight: 400;
  white-space: nowrap;
}

.support-item-picker-group-chevron {
  width: 0.45rem;
  height: 0.45rem;
  margin: -0.18rem 0.12rem 0 0.15rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 120ms ease;
}

.support-item-picker-category.is-open .support-item-picker-group-chevron {
  margin-top: 0.18rem;
  transform: rotate(225deg);
}

.support-item-picker-group-options[hidden] {
  display: none;
}

.support-item-picker-option {
  display: block;
  width: 100%;
  min-height: 2.55rem;
  border: 0;
  border-top: 1px solid #edf0f2;
  border-radius: 0;
  padding: 0.58rem 0.72rem;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
  font-size: 0.8rem;
  line-height: 1.45;
  font-weight: 400;
  white-space: normal;
  overflow-wrap: anywhere;
}

.support-item-picker-option:hover,
.support-item-picker-option:focus {
  color: var(--ink);
  background: var(--brand-soft);
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.support-item-picker-option[aria-selected="true"] {
  background: #edf8f6;
  box-shadow: inset 3px 0 0 var(--brand);
}

.support-item-picker-empty {
  margin: 0;
  padding: 1rem 0.75rem;
  color: var(--muted);
  text-align: center;
  font-size: 0.84rem;
  font-weight: 400;
}

@media (max-width: 640px) {
  .support-item-picker-panel,
  .support-item-picker.align-right .support-item-picker-panel {
    position: fixed;
    top: auto;
    right: 0.75rem;
    bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    left: 0.75rem;
    width: auto;
    max-height: min(27rem, calc(100vh - 7rem));
  }

  .support-item-picker-results {
    max-height: min(20rem, calc(100vh - 12rem));
  }

  .support-item-picker-group {
    min-height: 2.75rem;
    padding-block: 0.66rem;
  }

  .support-item-picker-option {
    min-height: 2.75rem;
    padding-block: 0.66rem;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

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

button {
  border: 0;
  border-radius: 6px;
  min-height: 2.25rem;
  padding: 0.48rem 0.78rem;
  color: #ffffff;
  background: var(--brand);
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
  font-weight: var(--weight-action);
}

button:hover {
  background: var(--brand-dark);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  min-height: 2.25rem;
  padding: 0.48rem 0.78rem;
  color: #ffffff;
  background: var(--brand);
  line-height: 1.2;
  font-weight: var(--weight-action);
  white-space: nowrap;
}

.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2.25rem;
  border-radius: 6px;
  padding: 0.48rem 0.72rem;
  color: #ffffff;
  background: var(--brand);
  font-weight: var(--weight-action);
  white-space: nowrap;
}

.card-action:hover {
  background: var(--brand-dark);
}

.button:hover {
  background: var(--brand-dark);
}

.button.secondary {
  border: 1px solid var(--line);
  color: #344054;
  background: #ffffff;
}

.button.secondary:hover {
  color: var(--ink);
  background: #f8fafc;
}

button.danger {
  background: #b91c1c;
}

button.danger:hover {
  background: #991b1b;
}

.button.danger-outline {
  border: 1px solid #fecaca;
  color: #b91c1c;
  background: #ffffff;
  cursor: pointer;
}

.button.danger-outline:hover,
.button.danger-outline:focus {
  color: #991b1b;
  background: #fef2f2;
}

.page {
  min-height: 100vh;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.5rem;
}

.login-card {
  width: min(100%, 420px);
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(24, 36, 51, 0.06);
}

.login-card h1 {
  margin: 0;
  font-size: 1.55rem;
}

.login-card .portal-badge {
  margin: 0.4rem 0 1.5rem;
  color: #12675f;
  font-weight: 700;
}

.login-card label {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.login-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.75rem;
  font: inherit;
}

.login-card button {
  width: 100%;
}

.error {
  margin-bottom: 1rem;
  border: 1px solid #fecdca;
  border-left: 3px solid var(--danger-text);
  border-radius: 6px;
  padding: 0.62rem 0.72rem;
  background: var(--danger-soft);
  color: var(--danger-text);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.4;
}

.messages {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1rem;
}

.message {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 6px;
  padding: 0.64rem 0.78rem;
  color: var(--ink);
  background: #ffffff;
  box-shadow: var(--shadow);
  font-weight: var(--weight-label);
}

.message.success {
  border-color: #bbf7d0;
  border-left-color: #16a34a;
  color: #166534;
  background: #f0fdf4;
}

.message.error {
  border-color: #fecaca;
  border-left-color: var(--danger-text);
  color: var(--danger-text);
  background: #fef2f2;
  font-weight: 400;
}

.message.warning {
  border-color: #fde68a;
  border-left-color: #ca8a04;
  color: #854d0e;
  background: #fffbeb;
}

.message.info {
  border-color: #bfdbfe;
  border-left-color: #2563eb;
  color: #1e40af;
  background: #eff6ff;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  border-right: 1px solid var(--line);
  background: var(--sidebar);
  color: var(--sidebar-text);
  padding: 1.15rem 0.85rem;
}

.brand {
  display: grid;
  gap: 0.15rem;
  margin: 0 0 1.25rem;
  padding: 0.12rem 0.55rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: var(--weight-heading);
}

.brand small {
  color: var(--sidebar-muted);
  font-size: 0.74rem;
  font-weight: var(--weight-action);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 0.15rem;
}

.sidebar-section-label {
  display: block;
  margin: 1rem 0 0.35rem;
  padding: 0 0.55rem;
  color: var(--sidebar-muted);
  font-size: 0.68rem;
  font-weight: var(--weight-label);
  letter-spacing: 0;
}

.sidebar-section-label:first-child {
  margin-top: 0;
}

.sidebar-link {
  display: block;
  border-radius: 5px;
  padding: 0.58rem 0.72rem;
  color: var(--sidebar-text);
  font-weight: var(--weight-action);
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: var(--sidebar-active-text);
  background: var(--sidebar-active);
}

.sidebar-link.active {
  box-shadow: inset 3px 0 0 var(--sidebar-active-border);
}

.content {
  min-width: 0;
  padding: 0 1.75rem 2.5rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-height: 3.5rem;
  margin: 0 -1.75rem 1.45rem;
  border-bottom: 1px solid var(--line);
  padding: 0 1.75rem;
  background: rgba(255, 255, 255, 0.92);
}

.user-label {
  color: var(--muted);
  font-weight: var(--weight-label);
}

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

.card,
.worker-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.08rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.card h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: var(--weight-label);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.worker-card h1 {
  margin: 0 0 1rem;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(220, 227, 236, 0.75);
}

.page-header > div:first-child {
  min-width: 0;
}

.page-header h1 {
  margin: 0;
  font-size: 1.62rem;
  line-height: 1.15;
  letter-spacing: 0;
  font-weight: var(--weight-heading);
}

.page-header p {
  margin: 0.42rem 0 0;
  color: var(--muted);
}

.button-row,
.actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

td.actions {
  display: table-cell;
  min-width: 8.5rem;
  text-align: right;
  white-space: nowrap;
}

td.actions a,
td.actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  border: 1px solid #d4dde8;
  border-radius: 6px;
  padding: 0.32rem 0.58rem;
  font-size: 0.84rem;
  line-height: 1.2;
  font-weight: var(--weight-action);
}

td.actions a {
  margin-right: 0.32rem;
  color: var(--brand-dark);
  background: #f8fafc;
}

td.actions form {
  display: inline-flex;
  justify-content: flex-end;
  margin: 0;
}

td.actions button {
  min-height: 2rem;
}

td.actions a:hover {
  border-color: var(--brand);
  color: #ffffff;
  background: var(--brand);
}

td.actions a:last-child {
  margin-right: 0;
}

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

.filter-bar label {
  color: var(--ink);
  font-size: 0.86rem;
}

.filter-bar input,
.filter-bar select {
  height: 2.38rem;
  border-color: #d6e1eb;
  color: var(--ink);
  font-weight: 400;
}

.filter-bar input::placeholder {
  color: #8794a6;
}

.filter-bar select:invalid,
.filter-bar input[type="date"]:invalid {
  color: #8794a6;
}

.filter-bar > button,
.filter-bar > .button {
  align-self: end;
  height: 2.38rem;
  min-height: 2.38rem;
  padding: 0 0.86rem;
}

.filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: -0.25rem 0 1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 8px;
  padding: 0.56rem 0.72rem;
  color: var(--muted);
  background: #f8fafc;
  font-weight: var(--weight-label);
}

.filter-summary a {
  color: var(--brand-dark);
  white-space: nowrap;
}

.filter-summary a:hover {
  text-decoration: underline;
}

.quick-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: -0.25rem 0 1rem;
}

.quick-filter-row .button {
  min-height: 2.15rem;
  padding: 0.42rem 0.72rem;
}

.quick-filter-row .button.active {
  border-color: var(--brand);
  color: #ffffff;
  background: var(--brand);
}

.roster-bulk-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.roster-bulk-action-card h2 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.roster-bulk-action-card p {
  margin: 0;
  color: var(--muted);
}

.planner-week-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
  padding: 0.78rem 0.9rem;
}

.planner-week-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex-wrap: wrap;
}

.planner-week-controls .button {
  min-height: 2rem;
  padding: 0.34rem 0.62rem;
}

.planner-week-range {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: var(--weight-heading);
  white-space: nowrap;
}

.planner-view-switch {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.2rem;
  background: #ffffff;
}

.planner-view-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  border-radius: 5px;
  padding: 0.35rem 0.7rem;
  color: #475569;
  font-weight: var(--weight-action);
  white-space: nowrap;
}

.planner-view-option:hover,
.planner-view-option:focus {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.planner-view-option.active {
  color: #ffffff;
  background: var(--brand);
}

.planner-scope-chips {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  min-width: 0;
  flex-wrap: wrap;
}

.planner-scope-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  border: 1px solid #cde7e3;
  border-radius: 999px;
  padding: 0.24rem 0.55rem;
  color: var(--brand-dark);
  background: #f3fbf9;
  font-size: 0.82rem;
  font-weight: var(--weight-label);
  line-height: 1.2;
}

.planner-scope-multi-week .planner-scope-chip:first-child {
  color: #854d0e;
  border-color: #fde68a;
  background: #fffbeb;
}

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

.planner-filter-card-compact {
  padding: 0.86rem;
}

.planner-filter-bar {
  margin-bottom: 0;
}

.planner-filter-bar-compact {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) minmax(135px, 0.82fr) minmax(135px, 0.82fr) auto auto;
  align-items: end;
  gap: 0.58rem;
}

.planner-filter-bar-compact button,
.planner-filter-bar-compact .button {
  min-height: 2.35rem;
  padding: 0.5rem 0.72rem;
}

.planner-filter-actions {
  display: contents;
}

.planner-shift-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.planner-shift-card {
  gap: 0.8rem;
}

.planner-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.planner-section-heading p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.planner-summary-pills {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.planner-summary-pill,
.planner-hours-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  border: 1px solid #cde7e3;
  border-radius: 999px;
  padding: 0.24rem 0.55rem;
  color: var(--brand-dark);
  background: #f3fbf9;
  font-size: 0.78rem;
  font-weight: var(--weight-label);
  line-height: 1.2;
  white-space: nowrap;
}

.planner-summary-pill.warning,
.planner-hours-pill.warning {
  border-color: #f1c75b;
  color: #805b00;
  background: #fff8e6;
}

.planner-conflict-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid #f1c75b;
  border-left: 4px solid #d69e2e;
  border-radius: 7px;
  padding: 0.75rem 0.85rem;
  background: #fff8e6;
}

.planner-conflict-summary {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
}

.planner-conflict-summary strong { color: #6f4e00; }

.planner-conflict-summary p {
  margin: 0.14rem 0 0;
  color: #725b22;
  font-size: 0.84rem;
}

.planner-conflict-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #ffffff;
  background: #9a6700;
  font-weight: 800;
}

.shift-overlap-warning {
  display: grid;
  gap: 0.45rem;
  border: 1px solid #f1c75b;
  border-left: 4px solid #d69e2e;
  border-radius: 7px;
  padding: 0.8rem 0.9rem;
  color: #6f4e00;
  background: #fff8e6;
}

.shift-overlap-warning p {
  margin: 0;
  color: #725b22;
}

.shift-overlap-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: var(--weight-label);
}

.shift-overlap-confirmation input {
  width: 1rem;
  min-height: 1rem;
  margin-top: 0.15rem;
}

.planner-scroll-frame {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  padding-bottom: 0;
}

.planner-date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(140px, 1fr));
  gap: 0;
  min-width: 980px;
}

.planner-day-card {
  min-height: 12rem;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
}

.planner-day-card:last-child {
  border-right: 0;
}

.planner-weekend {
  background: #fff7ed;
}

.planner-day-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.52rem 0.62rem;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.planner-weekend header {
  background: #ffedd5;
}

.planner-day-card header div {
  display: grid;
  gap: 0.2rem;
}

.planner-day-card header span {
  color: var(--muted);
  font-size: 0.86rem;
}

.planner-day-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex: 0 0 auto;
}

.planner-add-shift {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.68rem;
  height: 1.68rem;
  border: 1px solid #9fcfc7;
  border-radius: 5px;
  color: var(--brand-dark);
  background: #ffffff;
  font-size: 1rem;
  font-weight: var(--weight-link);
  line-height: 1;
  white-space: nowrap;
}

.planner-add-shift-square {
  flex: 0 0 auto;
}

.planner-add-shift:hover {
  border-color: var(--brand);
  color: #ffffff;
  background: var(--brand);
}

.planner-paste-shift {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.68rem;
  height: 1.68rem;
  min-height: 1.68rem;
  border: 1px solid var(--planner-copy-border);
  border-radius: 5px;
  padding: 0;
  color: var(--planner-copy-ink);
  background: var(--planner-copy-bg);
  cursor: pointer;
}

.planner-paste-shift svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.planner-paste-shift:hover,
.planner-paste-shift:focus {
  border-color: var(--planner-copy-ink);
  background: var(--planner-copy-bg-hover);
}

.planner-paste-shift-hidden {
  display: none;
}

.planner-day-shifts {
  display: grid;
  gap: 0.44rem;
  padding: 0.52rem;
}

.planner-shift-tile {
  display: grid;
  gap: 0.36rem;
  overflow: hidden;
  padding: 0.5rem;
  border: 0;
  border-left: 3px solid var(--brand);
  border-radius: 6px;
  background: var(--brand-soft);
}

.planner-shift-tile.planner-shift-conflict {
  border-left-color: #d69e2e;
  background: #fff8e6;
}

.planner-shift-copy {
  min-width: 0;
}

.planner-shift-time {
  display: block;
  color: var(--brand-dark);
  font-size: 0.82rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.planner-shift-meta {
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.planner-shift-primary {
  margin: 0.18rem 0 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: var(--weight-action);
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planner-conflict-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.25rem;
  border-radius: 4px;
  padding: 0.12rem 0.34rem;
  color: #805b00;
  background: #ffe8a3;
  font-size: 0.66rem;
  font-weight: var(--weight-label);
  line-height: 1.1;
  text-transform: uppercase;
}

.planner-conflict-link {
  text-decoration: none;
}

.planner-conflict-link:hover,
.planner-conflict-link:focus {
  color: #5f4300;
  background: #ffdc73;
}

.planner-multi-worker-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.25rem;
  border-radius: 4px;
  padding: 0.12rem 0.34rem;
  color: #17635b;
  background: #dff4ef;
  font-size: 0.66rem;
  font-weight: var(--weight-label);
  line-height: 1.1;
  text-transform: uppercase;
}

.multi-worker-review-summary {
  margin-bottom: 0.2rem;
}

.multi-worker-shift-options > div {
  display: grid;
  gap: 0.45rem;
}

.multi-worker-shift-options label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.65rem 0.7rem;
  background: #ffffff;
  font-weight: var(--weight-action);
}

.multi-worker-shift-options input {
  width: 1rem;
  min-height: 1rem;
  margin-top: 0.15rem;
}

.planner-shift-tile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.planner-shift-tile .status-pill {
  padding: 0.12rem 0.38rem;
  font-size: 0.7rem;
}

.planner-shift-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.planner-shift-delete-form {
  display: inline-flex;
  margin: 0;
}

.planner-shift-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  min-height: 1.65rem;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.planner-shift-action svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.planner-shift-action:hover,
.planner-shift-action:focus {
  border-color: var(--line);
  color: var(--brand-dark);
  background: #ffffff;
}

.planner-shift-action-active {
  border-color: var(--planner-copy-border);
  color: var(--planner-copy-ink);
  background: var(--planner-copy-bg);
}

.planner-shift-action-active:hover,
.planner-shift-action-active:focus {
  border-color: var(--planner-copy-ink);
  color: var(--planner-copy-ink);
  background: var(--planner-copy-bg-hover);
}

.planner-shift-delete:hover,
.planner-shift-delete:focus {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fef2f2;
}

.planner-empty-day {
  margin: 0;
  min-height: 3.6rem;
}

.planner-resource-grid {
  width: max-content;
  min-width: 100%;
  --planner-resource-width: 210px;
  --planner-resource-day-width: 145px;
}

.planner-resource-header-row,
.planner-resource-row {
  display: grid;
  grid-template-columns: var(--planner-resource-width) minmax(0, 1fr);
  min-width: 100%;
}

.planner-resource-header-row {
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.planner-resource-row {
  border-bottom: 1px solid var(--line);
}

.planner-resource-row:last-child { border-bottom: 0; }

.planner-resource-corner,
.planner-resource-label {
  position: sticky;
  left: 0;
  z-index: 2;
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.planner-resource-corner {
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: 3.6rem;
  padding: 0.65rem 0.75rem;
  color: var(--muted);
  background: #fbfcfd;
  font-size: 0.78rem;
  font-weight: var(--weight-label);
}

.planner-resource-day-headings,
.planner-resource-days {
  display: grid;
  grid-template-columns: repeat(var(--planner-day-count), var(--planner-resource-day-width));
}

.planner-resource-day-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  min-height: 3.6rem;
  border-right: 1px solid var(--line);
  padding: 0.55rem 0.62rem;
  background: #fbfcfd;
}

.planner-resource-day-heading:last-child,
.planner-resource-day:last-child { border-right: 0; }

.planner-resource-day-heading strong,
.planner-resource-day-heading span { display: block; }

.planner-resource-day-heading span {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.planner-resource-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-height: 8.2rem;
  padding: 0.8rem;
}

.planner-resource-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--brand-dark);
  background: #dff3f0;
  font-size: 0.74rem;
  font-weight: 800;
}

.planner-resource-copy {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
}

.planner-resource-copy strong {
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.planner-resource-copy > span:not(.planner-hours-pill) {
  color: var(--muted);
  font-size: 0.76rem;
}

.planner-hours-pill {
  width: fit-content;
  margin-top: 0.35rem;
  font-size: 0.72rem;
}

.planner-resource-day {
  display: grid;
  align-content: start;
  gap: 0.44rem;
  min-height: 8.2rem;
  border-right: 1px solid var(--line);
  padding: 0.5rem;
  background: #ffffff;
}

.planner-resource-day.planner-weekend,
.planner-resource-day-heading.planner-weekend { background: #fff7ed; }

.planner-resource-empty {
  width: 100%;
}

.shift-modal-open {
  overflow: hidden;
}

.shift-modal-open .planner-scroll-frame {
  overflow: hidden;
}

.shift-modal-open .planner-date-grid {
  display: none;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-width: 0;
  width: 100%;
}

.shift-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.42);
}

.shift-modal-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1040px, 100%);
  max-height: 85vh;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.shift-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.1rem;
  background: #ffffff;
}

.shift-modal-header h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.shift-modal-header p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.shift-modal-close {
  flex: 0 0 auto;
  width: 2rem;
  min-height: 2rem;
  padding: 0;
  color: var(--ink);
  background: #f8fafc;
  font-size: 1.35rem;
  line-height: 1;
}

.shift-modal-close:hover {
  color: #ffffff;
  background: var(--brand);
}

.shift-modal-form {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  max-width: none;
  gap: 0;
}

.shift-modal-body {
  display: grid;
  gap: 0.9rem;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.1rem;
  background: var(--surface);
}

.shift-modal-body .form-section {
  box-shadow: none;
}

.shift-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  border-top: 1px solid var(--line);
  padding: 0.85rem 1.1rem;
  background: #ffffff;
}

.shift-delete-confirm-dialog {
  width: min(560px, 100%);
  grid-template-rows: auto minmax(0, auto) auto;
}

.shift-delete-confirm-card {
  border: 1px solid #fecaca;
  border-radius: 7px;
  padding: 0.85rem;
  background: #fff7f7;
}

.shift-delete-confirm-card dl {
  display: grid;
  gap: 0.45rem 0.8rem;
  grid-template-columns: 7rem minmax(0, 1fr);
  margin: 0;
}

.shift-delete-confirm-card dt {
  color: var(--muted);
  font-weight: var(--weight-label);
}

.shift-delete-confirm-card dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: var(--weight-action);
}

.shift-modal-delete-button {
  background: #b91c1c;
}

.shift-modal-delete-button:hover,
.shift-modal-delete-button:focus {
  background: #991b1b;
}

.filter-bar label,
.field {
  display: grid;
  align-self: start;
  align-content: start;
  gap: 0.4rem;
  font-weight: var(--weight-label);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.55rem 0.66rem;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(22, 135, 125, 0.14);
}

input[type="checkbox"] {
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 0;
  padding: 0;
  justify-self: start;
  align-self: center;
  accent-color: var(--brand);
}

.invoice-logo-field {
  min-width: 0;
}

.invoice-logo-field p {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
}

.invoice-logo-current {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.65rem;
  background: #f8fafc;
}

.invoice-logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--brand-dark);
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: var(--weight-label);
}

.invoice-logo-current strong,
.invoice-logo-current span {
  display: block;
  min-width: 0;
}

.invoice-logo-current span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  color: var(--muted);
  font-weight: var(--weight-action);
}

.bulk-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.service-log-workbench,
.invoice-workbench,
.participant-workbench {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.service-log-status-grid,
.invoice-status-grid,
.participant-status-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.service-log-status-card,
.invoice-status-card,
.participant-status-card {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  min-height: 5.5rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.75rem 0.82rem;
  background: #ffffff;
}

.service-log-status-card:hover,
.service-log-status-card.active,
.invoice-status-card:hover,
.invoice-status-card.active,
.participant-status-card:hover,
.participant-status-card.active {
  border-color: var(--brand);
  background: #f8fffd;
}

.service-log-status-card span,
.invoice-status-card span,
.participant-status-card span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: var(--weight-label);
}

.service-log-status-card strong,
.invoice-status-card strong,
.participant-status-card strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.service-log-status-card small,
.invoice-status-card small,
.participant-status-card small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.invoice-filter-panel,
.participant-filter-panel {
  display: grid;
  gap: 0.62rem;
  margin-bottom: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.78rem;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.invoice-filter-copy,
.participant-filter-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.invoice-filter-copy strong,
.participant-filter-copy strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.invoice-filter-copy span,
.participant-filter-copy span {
  color: var(--muted);
  font-size: 0.84rem;
}

.invoice-filter-bar,
.participant-filter-bar {
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.service-log-filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(135px, 0.8fr) minmax(145px, 0.9fr) minmax(145px, 0.9fr) auto;
  align-items: end;
  gap: 0.58rem;
  margin-bottom: 0.38rem;
}

.service-log-filter-bar > label {
  min-width: 0;
}

.service-log-filter-actions {
  display: flex;
  align-items: end;
  gap: 0.5rem;
}

.service-log-filter-bar .service-log-filter-actions > button,
.service-log-filter-bar .service-log-filter-actions > .button {
  height: 2.38rem;
  min-height: 2.38rem;
  padding: 0 0.86rem;
}

.service-log-filter-summary {
  display: flex;
  justify-content: flex-end;
  gap: 0.34rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.service-log-filter-summary strong {
  color: var(--brand-dark);
}

.service-log-bulk-actions {
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.service-log-bulk-actions div {
  display: grid;
  gap: 0.14rem;
}

.service-log-bulk-actions strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.service-log-bulk-actions span {
  color: var(--muted);
  font-size: 0.82rem;
}

.table-card {
  overflow-x: auto;
  border: 1px solid #d5e0ea;
  border-radius: 6px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.table-card.card {
  display: block;
  padding: 0.78rem;
}

.document-manager-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}

.document-manager-sidebar,
.document-manager-main {
  padding: 0;
  overflow: hidden;
}

.document-owner-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.75rem;
  border-bottom: 1px solid #e3ebf2;
}

.document-owner-tab {
  display: grid;
  gap: 0.08rem;
  min-height: 4rem;
  border: 1px solid #d8e1ea;
  border-radius: 6px;
  padding: 0.72rem;
  color: #475569;
  background: #ffffff;
}

.document-owner-tab:hover,
.document-owner-tab:focus,
.document-owner-tab.active {
  border-color: #8fd5cc;
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.document-owner-tab strong {
  color: inherit;
  font-size: 0.95rem;
  line-height: 1.25;
}

.document-owner-tab span {
  color: #52637a;
  font-size: 0.78rem;
  line-height: 1.3;
}

.document-person-heading {
  padding: 0.9rem 1rem 0.7rem;
  border-bottom: 1px solid #e3ebf2;
}

.document-person-heading h2,
.document-person-summary h2,
.document-section-header h3 {
  margin: 0;
  color: var(--ink);
  font-weight: var(--weight-heading);
  line-height: 1.2;
}

.document-person-heading h2 {
  font-size: 1.02rem;
}

.document-person-heading p,
.document-person-summary p,
.document-section-header p {
  margin: 0.18rem 0 0;
  color: var(--muted);
}

.document-person-list {
  display: grid;
}

.document-person-item {
  display: grid;
  grid-template-columns: 2.45rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.68rem;
  border-bottom: 1px solid #e8eef5;
  padding: 0.78rem 1rem;
  background: #ffffff;
}

.document-person-item:hover,
.document-person-item:focus,
.document-person-item.active {
  background: #f0faf8;
}

.document-person-item.active {
  box-shadow: inset 3px 0 0 var(--brand);
}

.document-person-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  color: var(--brand-dark);
  background: #d9f1ee;
  font-size: 0.78rem;
  font-weight: var(--weight-action);
}

.document-person-copy {
  display: grid;
  min-width: 0;
  gap: 0.08rem;
}

.document-person-copy strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 0.94rem;
  font-weight: var(--weight-action);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-person-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-count-pill {
  border: 1px solid #d8e1ea;
  border-radius: 999px;
  padding: 0.16rem 0.48rem;
  color: #475569;
  background: #ffffff;
  font-size: 0.75rem;
  font-weight: var(--weight-action);
  white-space: nowrap;
}

.document-person-empty,
.document-manager-empty {
  margin: 1rem;
}

.document-person-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1.05rem 1.18rem 0.78rem;
  border-bottom: 1px solid #e3ebf2;
}

.document-person-summary h2 {
  font-size: 1.35rem;
}

.document-summary-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
  margin: 0;
}

.document-summary-strip div {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  border: 1px solid #d8e1ea;
  border-radius: 999px;
  padding: 0.18rem 0.56rem;
  background: #ffffff;
}

.document-summary-strip dt {
  color: #0f172a;
  font-weight: var(--weight-action);
}

.document-summary-strip dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.document-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.78rem 1.18rem;
  border-bottom: 1px solid #e8eef5;
}

.document-category-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 2rem;
  border: 1px solid #cfe0ee;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  color: #344054;
  background: #ffffff;
  font-size: 0.86rem;
  font-weight: var(--weight-action);
}

.document-category-tab:hover,
.document-category-tab:focus,
.document-category-tab.active {
  border-color: #8fd5cc;
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.document-category-tab span {
  color: inherit;
}

.document-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.92rem 1.18rem 0.65rem;
}

.document-section-header h3 {
  font-size: 1.08rem;
}

.document-table-frame {
  overflow-x: auto;
}

.document-manager-table {
  min-width: 880px;
}

.document-manager-table th,
.document-manager-table td {
  vertical-align: middle;
}

.document-file-cell {
  min-width: 16rem;
}

.document-file-cell a,
.document-file-cell small {
  display: block;
}

.document-file-cell a {
  color: #0f172a;
  font-weight: var(--weight-action);
}

.document-file-cell small {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.document-manager-table .actions-heading,
.document-manager-table .document-actions {
  text-align: right;
}

.document-actions {
  width: 15rem;
  min-width: 15rem;
}

.document-action-group {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0.35rem;
  min-width: max-content;
}

.document-action-group .button {
  flex: 0 0 auto;
  margin-right: 0;
  min-height: 2rem;
  padding: 0.34rem 0.56rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.document-detail-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.document-upload-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.85rem;
  border-color: #b7ded8;
  padding: 0.9rem 1rem;
  background: #f7fffd;
}

.document-upload-context h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: var(--weight-heading);
  line-height: 1.2;
}

.document-upload-context p {
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.document-upload-context-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.document-upload-context-list span {
  display: grid;
  min-width: 9rem;
  border: 1px solid #d8e1ea;
  border-radius: 6px;
  padding: 0.48rem 0.62rem;
  background: #ffffff;
}

.document-upload-context-list small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: var(--weight-label);
}

.document-upload-context-list strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: var(--weight-action);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-upload-context-list em {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-delete-confirm {
  display: grid;
  gap: 1rem;
}

.document-delete-warning {
  border: 1px solid #fecaca;
  border-left: 3px solid #dc2626;
  border-radius: 6px;
  padding: 0.85rem 0.95rem;
  background: #fff7f6;
}

.document-delete-warning h2 {
  margin: 0;
  color: #991b1b;
  font-size: 1rem;
  font-weight: var(--weight-heading);
}

.document-delete-warning p {
  margin: 0.25rem 0 0;
  color: #7f1d1d;
}

.document-delete-actions {
  justify-content: flex-end;
}

.document-storage-name {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.document-directory-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.document-summary-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.82rem 0.95rem;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.document-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: var(--weight-label);
}

.document-summary-card strong {
  display: block;
  margin-top: 0.15rem;
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1.15;
}

.document-directory-panel,
.document-file-panel,
.document-file-controls,
.document-person-hero {
  padding: 0;
  overflow: hidden;
}

.document-directory-header {
  display: grid;
  grid-template-columns: minmax(16rem, 21rem) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e3ebf2;
}

.document-directory-header .document-owner-switch {
  padding: 0;
  border-bottom: 0;
}

.document-directory-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: var(--weight-heading);
}

.document-directory-header p {
  margin: 0.18rem 0 0;
  color: var(--muted);
}

.document-directory-filter {
  grid-template-columns: minmax(13rem, 1.35fr) minmax(10rem, 0.8fr) minmax(10rem, 0.8fr) minmax(10rem, 0.78fr) auto auto;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #e3ebf2;
  border-radius: 0;
  padding: 0.9rem 1rem;
  background: #fbfcfd;
  box-shadow: none;
}

.document-directory-table-wrap {
  overflow-x: auto;
  padding: 0.72rem;
}

.document-directory-table {
  min-width: 1020px;
}

.document-directory-table th,
.document-directory-table td {
  vertical-align: middle;
}

.document-person-cell {
  min-width: 15rem;
}

.document-person-inline,
.document-person-hero-main {
  display: flex;
  align-items: center;
  gap: 0.72rem;
}

.document-person-inline .document-person-copy a {
  overflow: hidden;
  color: #0f172a;
  font-weight: var(--weight-action);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-table-subline {
  display: block;
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.document-directory-actions {
  min-width: 12rem;
}

.document-directory-actions .button {
  min-height: 2.05rem;
  padding: 0.36rem 0.62rem;
  font-size: 0.84rem;
}

.document-person-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 0.9rem;
  padding: 1rem;
}

.document-person-hero h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: var(--weight-heading);
}

.document-person-hero p {
  margin: 0.18rem 0 0;
  color: var(--muted);
}

.document-person-avatar-large {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 0.86rem;
}

.document-person-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
}

.document-person-meta div {
  border: 1px solid #e2ebf3;
  border-radius: 6px;
  padding: 0.68rem 0.75rem;
  background: #fbfcfd;
}

.document-person-meta dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: var(--weight-label);
}

.document-person-meta dd {
  margin: 0.14rem 0 0;
  color: #0f172a;
  font-weight: var(--weight-action);
}

.document-file-controls {
  margin-bottom: 0.9rem;
}

.document-file-controls .document-category-tabs {
  border-bottom: 1px solid #e8eef5;
}

.document-file-filter {
  grid-template-columns: minmax(14rem, 1fr) minmax(10rem, 0.45fr) auto auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0.9rem 1.18rem;
  background: #fbfcfd;
  box-shadow: none;
}

.document-file-panel .document-section-header {
  border-bottom: 1px solid #e8eef5;
}

.document-upload-dialog {
  width: min(640px, calc(100% - 2rem));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.document-upload-dialog::backdrop {
  background: rgba(15, 23, 42, 0.48);
}

.document-upload-dialog-form {
  display: grid;
  gap: 0;
  margin: 0;
}

.document-upload-dialog-header,
.document-upload-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
}

.document-upload-dialog-header {
  border-bottom: 1px solid var(--line);
}

.document-upload-dialog-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.document-upload-dialog-header p {
  margin: 0.18rem 0 0;
  color: var(--muted);
}

.document-upload-dialog-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 1rem 1.1rem;
}

.document-upload-dialog-body label {
  display: grid;
  gap: 0.4rem;
  color: var(--ink);
  font-weight: var(--weight-label);
}

.document-dialog-notes {
  grid-column: 1 / -1;
}

.document-upload-dialog-footer {
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

.document-preview-dialog {
  width: min(1100px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  height: min(780px, calc(100vh - 2rem));
  max-height: calc(100vh - 2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.document-preview-dialog::backdrop {
  background: rgba(15, 23, 42, 0.48);
}

.document-preview-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
}

.document-preview-header,
.document-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
}

.document-preview-header {
  border-bottom: 1px solid var(--line);
}

.document-preview-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.document-preview-header p {
  margin: 0.18rem 0 0;
  color: var(--muted);
}

.document-preview-body {
  min-height: 0;
  background: #f8fafc;
}

.document-preview-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.document-preview-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.service-log-table {
  min-width: 960px;
}

.invoice-table {
  min-width: 900px;
}

.participant-table {
  table-layout: fixed;
  min-width: 1000px;
}

.service-log-table .service-log-select-cell,
.service-log-table .service-log-hours-cell {
  width: 1%;
  white-space: nowrap;
}

.service-log-table th:nth-child(2),
.service-log-table .service-log-date-cell,
.service-log-table .service-log-status-cell {
  white-space: nowrap;
}

.service-log-table .service-log-status-cell {
  width: 1%;
}

.service-log-table .service-log-person-cell {
  min-width: 8.5rem;
  overflow-wrap: anywhere;
  font-weight: var(--weight-action);
}

.service-log-table td.service-log-actions-cell {
  min-width: 10.5rem;
  white-space: normal;
}

.service-log-table td.service-log-actions-cell a {
  margin-bottom: 0.35rem;
}

.service-log-table .notes-cell {
  max-width: 20rem;
  min-width: 14rem;
}

.invoice-table .invoice-status-cell,
.invoice-table .invoice-total-cell {
  width: 1%;
  white-space: nowrap;
}

.invoice-table .invoice-number-cell {
  min-width: 10.5rem;
}

.invoice-table .invoice-participant-cell {
  min-width: 9.5rem;
  overflow-wrap: anywhere;
}

.invoice-table .invoice-period-cell {
  min-width: 13rem;
  white-space: nowrap;
}

.invoice-table td.actions {
  min-width: 7.5rem;
}

.participant-table th:nth-child(1),
.participant-table .participant-identity-cell {
  width: 27%;
}

.participant-table th:nth-child(2),
.participant-table .participant-contact-cell {
  width: 20%;
}

.participant-table th:nth-child(4),
.participant-table .participant-plan-cell {
  width: 13%;
}

.participant-table th:nth-child(3),
.participant-table .participant-status-cell {
  width: 8%;
  white-space: nowrap;
}

.participant-table th:nth-child(5),
.participant-table .participant-workers-cell {
  width: 12%;
}

.participant-table th:nth-child(6),
.participant-table .participant-coordinator-cell {
  width: 10%;
  color: #314052;
  overflow-wrap: anywhere;
}

.participant-table th:nth-child(7),
.participant-table td.actions {
  width: 10%;
}

.participant-identity {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
}

.participant-avatar,
.participant-worker-avatars span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid #bfeee6;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #ccfbf1;
  font-weight: var(--weight-action);
  line-height: 1;
}

.participant-avatar {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.84rem;
}

.service-log-date-stack,
.service-log-person-stack,
.invoice-number-stack,
.invoice-participant-stack,
.invoice-period-stack,
.invoice-total-stack,
.participant-name-stack,
.participant-contact-stack,
.participant-plan-stack,
.participant-worker-stack {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.service-log-date-stack a,
.service-log-person-stack strong,
.invoice-number-stack a,
.invoice-participant-stack strong,
.invoice-period-stack strong,
.invoice-total-stack strong,
.participant-name-stack a,
.participant-contact-stack strong,
.participant-plan-stack strong,
.participant-worker-stack strong {
  color: var(--ink);
  font-weight: var(--weight-heading);
  line-height: 1.25;
}

.invoice-table .invoice-primary-text {
  color: #172437;
  font-size: 0.9rem;
  font-weight: var(--weight-action);
}

.invoice-table .invoice-secondary-text {
  color: #253348;
  font-size: 0.88rem;
  font-weight: 500;
}

.invoice-number-stack .status-pill {
  color: #075985;
  font-size: 0.76rem;
  font-weight: var(--weight-action);
  line-height: 1;
  justify-self: start;
}

.service-log-table .service-log-person-name {
  color: #253348;
  font-size: 0.88rem;
  font-weight: 500;
}

.service-log-date-stack span,
.service-log-person-stack span,
.invoice-number-stack span,
.invoice-participant-stack span,
.invoice-period-stack span,
.invoice-total-stack span,
.participant-name-stack span,
.participant-contact-stack span,
.participant-plan-stack span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: var(--weight-label);
  line-height: 1.25;
}

.participant-name-stack a {
  font-size: 0.92rem;
  font-weight: var(--weight-action);
}

.participant-contact-stack strong,
.participant-plan-stack strong {
  color: #253348;
  font-size: 0.86rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.participant-contact-stack span,
.participant-plan-stack span,
.participant-name-stack span {
  color: #5f718b;
  font-size: 0.76rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.participant-worker-stack {
  gap: 0.26rem;
}

.participant-worker-stack strong,
.participant-no-worker {
  color: #41516a;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.25;
}

.participant-worker-avatars {
  display: flex;
  align-items: center;
  min-height: 1.55rem;
}

.participant-worker-avatar {
  position: relative;
  cursor: default;
  outline: none;
}

.participant-worker-avatar::before,
.participant-worker-avatar::after {
  position: absolute;
  left: 50%;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.participant-worker-avatar::before {
  content: "";
  bottom: calc(100% + 0.18rem);
  width: 0.46rem;
  height: 0.46rem;
  background: #3156ad;
  transform: translate(-50%, 0.1rem) rotate(45deg);
}

.participant-worker-avatar::after {
  content: attr(data-worker-name);
  bottom: calc(100% + 0.42rem);
  min-width: max-content;
  border-radius: 6px;
  padding: 0.46rem 0.64rem;
  color: #ffffff;
  background: #3156ad;
  box-shadow: 0 10px 24px rgba(21, 36, 76, 0.18);
  font-size: 0.76rem;
  font-weight: var(--weight-action);
  line-height: 1.2;
  white-space: nowrap;
  transform: translate(-50%, 0.1rem);
}

.participant-worker-avatar:hover::before,
.participant-worker-avatar:hover::after,
.participant-worker-avatar:focus-visible::before,
.participant-worker-avatar:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0) rotate(45deg);
}

.participant-worker-avatar:hover::after,
.participant-worker-avatar:focus-visible::after {
  transform: translate(-50%, 0);
}

.participant-worker-avatar:focus-visible {
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 4px rgba(49, 86, 173, 0.42);
}

.participant-worker-avatars span {
  width: 1.45rem;
  height: 1.45rem;
  margin-right: -0.28rem;
  border-color: #cdd7ff;
  color: #3730a3;
  background: #e0e7ff;
  font-size: 0.62rem;
}

.participant-no-worker {
  display: inline-flex;
  width: fit-content;
  border: 1px solid #e4e7eb;
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
  color: #6b7280;
  background: #f8fafc;
}

.invoice-number-stack span,
.invoice-participant-stack span,
.invoice-period-stack span {
  color: #5f718b;
  font-size: 0.76rem;
  font-weight: 500;
}

.service-log-person-stack .service-log-role-label {
  color: #71819a;
  font-size: 0.75rem;
  font-weight: 400;
}

.invoice-total-stack {
  justify-items: end;
}

.service-log-notes-preview {
  overflow-wrap: anywhere;
  color: #314052;
  line-height: 1.35;
}

.service-log-cancellation-note {
  color: #8a5a16;
  font-weight: 500;
}

.roster-table {
  min-width: 860px;
}

.roster-table th:first-child,
.roster-table td.roster-date-cell,
.roster-table th:nth-child(2),
.roster-table td.roster-time-cell {
  width: 1%;
  white-space: nowrap;
}

.roster-table .roster-person-cell {
  min-width: 8.5rem;
  overflow-wrap: anywhere;
  font-weight: var(--weight-action);
}

.roster-table .roster-service-cell {
  min-width: 8rem;
  color: #314052;
  overflow-wrap: anywhere;
}

.roster-table .roster-status-cell {
  width: 1%;
  white-space: nowrap;
}

.roster-table .roster-next-action-cell {
  min-width: 10rem;
  color: var(--muted);
  font-weight: var(--weight-label);
}

.roster-table td.actions {
  min-width: 8.25rem;
}

th,
td {
  border-bottom: 1px solid #e3ebf2;
  padding: 0.62rem 0.75rem;
  text-align: left;
  vertical-align: middle;
}

th {
  background: #fbfcfd;
  color: #5e6f87;
  font-size: 0.78rem;
  font-weight: var(--weight-label);
  text-transform: none;
}

.table-card th,
.table-card td {
  border-bottom: 1px solid #e3ebf2;
}

.table-card td {
  color: #172437;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.35;
}

.table-card .actions-heading {
  text-align: right;
}

.numeric-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sort-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.sort-link:hover {
  color: var(--brand-dark);
}

tbody tr:hover {
  background: #fbfcfd;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.72rem 0.85rem;
  color: var(--muted);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.pagination-summary {
  font-size: 0.9rem;
  font-weight: var(--weight-label);
}

.pagination-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: var(--weight-label);
}

.pagination-links a,
.pagination-links .disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.32rem 0.68rem;
  background: #ffffff;
  line-height: 1.2;
}

.pagination-links a {
  color: var(--brand-dark);
}

.pagination-links a:hover {
  border-color: var(--brand);
  color: #ffffff;
  background: var(--brand);
}

.pagination-links .disabled {
  color: #98a2b3;
  background: #f8fafc;
}

.pagination-links > span:not(.disabled) {
  color: var(--muted);
  font-size: 0.88rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.18rem 0.48rem;
  background: #e0f2fe;
  color: #075985;
  font-size: 0.76rem;
  font-weight: var(--weight-action);
  line-height: 1;
  white-space: nowrap;
}

.status-source-stack {
  display: inline-grid;
  gap: 0.25rem;
  justify-items: start;
  align-content: center;
}

.status-pill.status-active,
.status-pill.status-approved,
.status-pill.status-confirmed,
.status-pill.status-issued,
.status-pill.status-paid,
.status-pill.status-current {
  color: #065f46;
  background: #d1fae5;
  border-color: #a7f3d0;
}

.status-pill.status-draft,
.status-pill.status-archived,
.status-pill.status-inactive,
.status-pill.status-not_provided,
.status-pill.status-completed,
.status-pill.status-waived {
  color: #475467;
  background: #eef2f6;
  border-color: #dde5ee;
}

.status-pill.status-published,
.status-pill.status-submitted,
.status-pill.status-pending,
.status-pill.status-pending_review,
.status-pill.status-cancellation_review {
  color: #92400e;
  background: #fef3c7;
  border-color: #fde68a;
}

.status-pill.status-rejected,
.status-pill.status-cancelled,
.status-pill.status-no_show,
.status-pill.status-expired {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fecaca;
}

.status-pill.status-invoiced {
  color: var(--brand-dark);
  background: #ccfbf1;
  border-color: #99f6e4;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.28rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.14rem 0.42rem;
  font-size: 0.7rem;
  font-weight: var(--weight-action);
  line-height: 1;
  white-space: nowrap;
}

.source-pill.source-unscheduled {
  color: #0f766e;
  background: #ecfdf5;
  border-color: #bde8e3;
}

.record-form {
  display: grid;
  gap: 1.05rem;
  max-width: 1160px;
}

.info-notice {
  border: 1px solid #cde7e3;
  border-left: 3px solid var(--brand);
  border-radius: 7px;
  padding: 0.64rem 0.78rem;
  color: #35505d;
  background: #f3fbf9;
}

.info-notice p {
  margin: 0;
  line-height: 1.45;
}

.recurring-helper-notice {
  margin-bottom: 0.65rem;
}

.form-section {
  border: 1px solid #d5e0ea;
  border-radius: 7px;
  padding: 0.98rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.form-section h2 {
  margin: 0 0 0.88rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #e3ebf2;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.25;
  font-weight: var(--weight-heading);
}

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

.form-grid.single {
  grid-template-columns: 1fr;
}

.participant-assignment-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.participant-assignment-active-field,
.participant-assignment-notes-field {
  min-width: 0;
}

.participant-assignment-active-field {
  grid-column: 1 / -1;
}

.participant-assignment-active-control {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 0.45rem;
  color: var(--text);
  display: inline-flex;
  gap: 0.55rem;
  min-height: 2.4rem;
  padding: 0.58rem 0.75rem;
  width: 100%;
}

.participant-assignment-active-control input[type="checkbox"] {
  flex: 0 0 auto;
}

.participant-assignment-notes-field {
  grid-column: 1 / -1;
}

.participant-assignment-notes-field textarea {
  min-height: 4.9rem;
}

.shift-service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.shift-service-grid .field {
  min-width: 0;
}

.shift-address-field,
.shift-instructions-field,
.shift-admin-notes-field {
  align-self: stretch;
}

.shift-address-field textarea,
.shift-instructions-field textarea,
.shift-admin-notes-field textarea {
  min-height: 5.15rem;
}

.support-item-form-grid {
  align-items: start;
}

.support-item-active-panel {
  display: grid;
  align-self: end;
  gap: 0.32rem;
  min-height: 4.9rem;
  border: 1px solid #d6e1eb;
  border-left: 3px solid var(--brand);
  border-radius: 7px;
  padding: 0.66rem 0.74rem;
  background: #fbfffe;
}

.support-item-active-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.support-item-active-panel .support-item-active-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  width: fit-content;
}

.support-item-active-panel .support-item-active-toggle input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.support-item-notes-field {
  grid-column: span 2;
}

.toggle-field {
  color: var(--ink);
}

.field span {
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.25;
  font-weight: var(--weight-label);
}

.field input,
.field select {
  height: 2.38rem;
  border-color: #d6e1eb;
  font-weight: 400;
}

.field textarea {
  min-height: 4.9rem;
  border-color: #d6e1eb;
  font-weight: 400;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8794a6;
}

.date-time-picker-field {
  position: relative;
  min-width: 0;
}

.date-time-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 2.38rem;
  border: 1px solid #c8d4e3;
  border-radius: 6px;
  padding: 0.48rem 0.72rem;
  color: var(--ink);
  background: #ffffff;
  font-size: 0.9rem;
  font-weight: 400;
  text-align: left;
}

.date-time-picker-trigger:hover,
.date-time-picker-trigger:focus-visible,
.date-time-picker-trigger[aria-expanded="true"] {
  border-color: var(--brand);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(20, 127, 118, 0.12);
  outline: none;
}

.date-time-picker-trigger svg {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: #607080;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.date-time-picker-field .date-time-picker-placeholder {
  color: #8794a6;
  font-size: 0.9rem;
  font-weight: 400;
}

.date-time-picker-field [data-picker-display]:not(.date-time-picker-placeholder) {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 400;
}

.date-time-picker-hint {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.3;
}

.date-time-picker-field:has(.field-error) .date-time-picker-trigger {
  border-color: var(--danger-border);
}

.date-time-picker-popover {
  position: absolute;
  z-index: 1100;
  top: calc(100% + 0.32rem);
  left: 0;
  border: 1px solid #c8d4e3;
  border-radius: 7px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(28, 43, 54, 0.18);
  overflow: hidden;
}

.date-time-picker-popover[hidden] {
  display: none;
}

.date-time-picker-popover.open-up {
  top: auto;
  bottom: calc(100% + 0.32rem);
}

.calendar-picker-popover {
  width: 292px;
  max-width: calc(100vw - 1.5rem);
}

.calendar-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.65rem;
  border-bottom: 1px solid var(--line);
  padding: 0.42rem 0.58rem 0.42rem 0.72rem;
}

.calendar-picker-header strong {
  font-size: 0.92rem;
  font-weight: var(--weight-heading);
}

.calendar-picker-navigation {
  display: flex;
  gap: 0.15rem;
}

.calendar-picker-navigation button,
.date-picker-footer button,
.time-picker-footer button {
  border: 0;
  color: var(--brand-dark);
  background: transparent;
  font-weight: var(--weight-action);
}

.calendar-picker-navigation button {
  display: grid;
  width: 2rem;
  min-height: 2rem;
  padding: 0;
  place-items: center;
  font-size: 1.35rem;
}

.calendar-picker-navigation button:hover,
.calendar-picker-navigation button:focus-visible,
.date-picker-footer button:hover,
.date-picker-footer button:focus-visible,
.time-picker-footer button:hover,
.time-picker-footer button:focus-visible {
  color: var(--brand-dark);
  background: var(--brand-soft);
  outline: none;
}

.calendar-picker-weekdays,
.calendar-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-picker-weekdays {
  padding: 0.48rem 0.52rem 0.14rem;
}

.calendar-picker-weekdays span {
  color: #617181;
  font-size: 0.67rem;
  font-weight: var(--weight-action);
  text-align: center;
  text-transform: uppercase;
}

.calendar-picker-weekdays .weekend {
  color: #9a6815;
}

.calendar-picker-grid {
  gap: 0.08rem;
  padding: 0.08rem 0.52rem 0.48rem;
}

.calendar-day {
  display: grid;
  min-height: 2rem;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0;
  place-items: center;
  color: var(--ink);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 500;
}

.calendar-day.weekend {
  background: #fff8ec;
}

.calendar-day.outside {
  color: #a3afbb;
}

.calendar-day:hover,
.calendar-day:focus-visible {
  border-color: #a8d8d2;
  color: var(--brand-dark);
  background: var(--brand-soft);
  outline: none;
}

.calendar-day.today {
  border-color: #9db2c0;
}

.calendar-day.selected {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: #f1f7f6;
  font-weight: var(--weight-action);
}

.date-picker-footer,
.time-picker-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.date-picker-footer {
  padding: 0.28rem 0.45rem;
}

.date-picker-footer button {
  min-height: 2rem;
  border-radius: 5px;
  padding: 0 0.55rem;
  font-size: 0.75rem;
}

.time-picker-popover {
  width: 226px;
}

.time-wheel-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 0.82fr;
  height: 138px;
  margin: 7px 10px 3px;
  overflow: hidden;
}

.time-wheel-highlight {
  position: absolute;
  z-index: 0;
  top: 53px;
  right: 0;
  left: 0;
  height: 32px;
  border: 1px solid #d7e7e5;
  border-radius: 5px;
  background: #f1f7f6;
  pointer-events: none;
}

.time-wheel-column {
  position: relative;
  z-index: 1;
  height: 138px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 53px 2px;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  touch-action: pan-y;
}

.time-wheel-column::-webkit-scrollbar {
  display: none;
}

.time-wheel-option {
  display: grid;
  width: 100%;
  height: 32px;
  min-height: 32px;
  border: 0;
  border-radius: 0;
  padding: 0;
  place-items: center;
  scroll-snap-align: center;
  color: #8a96a3;
  background: transparent;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  opacity: 0.62;
  transition: color 120ms ease, font-size 120ms ease, opacity 120ms ease;
}

.time-wheel-option:hover,
.time-wheel-option:focus-visible {
  color: var(--brand-dark);
  background: transparent;
  outline: none;
  opacity: 1;
}

.time-wheel-option.near {
  color: #66727f;
  opacity: 0.82;
}

.time-wheel-option.selected {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 650;
  opacity: 1;
}

.time-picker-footer {
  justify-content: flex-end;
  gap: 0.2rem;
  padding: 0.12rem 0.38rem;
}

.time-picker-footer button {
  min-height: 1.75rem;
  border-radius: 5px;
  padding: 0 0.45rem;
  font-size: 0.72rem;
}

@media (max-width: 700px) {
  .date-time-picker-popover,
  .date-time-picker-popover.open-up {
    position: fixed;
    z-index: 1200;
    top: auto;
    right: 50%;
    bottom: 0.75rem;
    left: auto;
    transform: translateX(50%);
  }

  .calendar-picker-popover {
    width: min(292px, calc(100vw - 1.5rem));
  }

  .time-picker-popover {
    width: min(226px, calc(100vw - 1.5rem));
  }
}

/* Calendar coordinates come from the shared picker; time pickers keep their layout. */
[data-date-time-picker="date"] .calendar-picker-popover,
[data-date-time-picker="date"] .calendar-picker-popover.open-up {
  position: fixed;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  transform: none;
  max-width: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.form-section-note {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.worker-access-section {
  border-color: #e0c9c9;
  background: #ffffff;
}

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

.worker-access-panel {
  display: grid;
  gap: 0.55rem;
  border: 1px solid #d5e0ea;
  border-left: 3px solid var(--brand);
  border-radius: 7px;
  padding: 0.82rem 0.9rem;
  background: #ffffff;
}

.worker-access-panel-neutral {
  border-left: 3px solid var(--brand);
  background: #fbfffe;
}

.worker-access-panel-warning {
  border-color: #f1cfcf;
  border-left: 3px solid #dc2626;
  background: #fffafa;
}

.worker-archive-panel {
  border-left: 3px solid #dc2626;
}

.worker-access-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.25;
  font-weight: var(--weight-heading);
}

.worker-access-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
}

.worker-access-toggle input[type="checkbox"] {
  flex: 0 0 auto;
}

.worker-access-copy {
  display: grid;
  gap: 0.1rem;
}

.field .field-error {
  display: block;
  color: var(--danger-text);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
}

.field:has(.field-error) :is(input, select, textarea) {
  border-color: var(--danger-border);
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-bottom: 2rem;
}

.detail-grid {
  display: grid;
  gap: 1.05rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-bottom: 1.05rem;
}

.detail-grid .card {
  gap: 1rem;
}

.service-log-detail-page {
  display: grid;
  gap: 1.05rem;
}

.service-log-detail-page .detail-grid {
  margin-bottom: 0;
}

.participant-detail-page {
  display: grid;
  gap: 1.05rem;
}

.participant-detail-page .detail-grid {
  margin-bottom: 0;
}

.shift-detail-page {
  display: grid;
  gap: 1.15rem;
}

.shift-detail-page .page-header {
  margin-bottom: 0;
}

.roster-workflow-card {
  gap: 0.95rem;
}

.roster-workflow-card .workflow-panel {
  align-items: center;
  padding: 0.9rem 1.05rem;
}

.shift-detail-grid {
  margin-top: 0.15rem;
}

.shift-info-card .detail-list {
  row-gap: 0;
}

.shift-info-card .detail-list dt,
.shift-info-card .detail-list dd {
  min-width: 0;
  padding-top: 0.68rem;
  padding-bottom: 0.68rem;
}

.detail-value {
  display: inline-block;
  max-width: 100%;
}

.detail-value-long {
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.shift-cancel-card {
  border-left: 4px solid #dc2626;
  background: #fffafa;
  box-shadow: none;
}

.shift-cancel-card h2 {
  color: #991b1b;
}

.shift-cancel-card p {
  max-width: 48rem;
}

.shift-cancel-form {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
}

.shift-cancel-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: var(--weight-label);
}

.detail-list {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(8.5rem, 0.32fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #edf1f6;
  border-radius: 7px;
  background: #ffffff;
}

.detail-list dt {
  border-top: 1px solid #edf1f6;
  padding: 0.58rem 0.72rem;
  color: var(--muted);
  background: #fbfcfd;
  font-size: 0.82rem;
  font-weight: var(--weight-label);
}

.detail-list dd {
  border-top: 1px solid #edf1f6;
  border-left: 1px solid #edf1f6;
  margin: 0;
  min-width: 0;
  padding: 0.58rem 0.72rem;
  color: #172437;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.detail-list dt:first-of-type,
.detail-list dd:first-of-type {
  border-top: 0;
}

.detail-empty {
  color: #94a3b8;
  font-weight: 400;
}

.related-records-card {
  gap: 0.85rem;
  overflow-x: auto;
}

.worker-detail-sections {
  display: grid;
  gap: 1.05rem;
}

.related-records-card h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: var(--weight-label);
}

.section-note {
  margin: 0.22rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.worker-record-status {
  margin-top: 0.15rem;
}

.person-file-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  border: 1px solid #dce8f2;
  border-radius: 7px;
  padding: 0.78rem 0.85rem;
  background: #fbfcfd;
}

.person-file-entry h2,
.person-file-entry h3,
.person-file-entry p {
  margin: 0;
}

.person-file-entry h2,
.person-file-entry h3 {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: var(--weight-action);
}

.person-file-entry p {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.person-file-entry .button-row {
  flex: 0 0 auto;
}

.compact-record-list {
  display: grid;
  gap: 0.5rem;
}

.compact-record-list a {
  display: grid;
  gap: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.65rem 0.75rem;
  background: #ffffff;
}

.compact-record-list a strong {
  color: var(--ink);
  font-weight: var(--weight-action);
}

.compact-record-list a span {
  color: var(--muted);
  font-size: 0.84rem;
}

.related-records-table {
  min-width: 620px;
}

.related-records-table th,
.related-records-table td {
  padding: 0.58rem 0.72rem;
  font-size: 0.86rem;
}

.related-records-table .actions-heading,
.related-records-table td.actions {
  min-width: 18rem;
  text-align: center;
}

.tabs-placeholder {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tabs-placeholder span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  color: var(--muted);
  background: #f8fafc;
}

.readiness-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.readiness-list li {
  display: grid;
  gap: 0.2rem;
  border-left: 4px solid var(--line);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  background: #f8fafc;
}

.readiness-list li span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: var(--weight-label);
}

.readiness-list li.is-ready {
  border-left-color: var(--brand);
}

.readiness-list li.needs-attention {
  border-left-color: var(--accent);
}

.workflow-panel {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 1rem;
  background: #f8fafc;
}

.workflow-panel p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.inline-form input {
  min-width: 140px;
}

.assignment-end-form {
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.assignment-end-form input[type="date"] {
  width: 9.5rem;
  min-width: 9.5rem;
}

.assignment-ended-action {
  display: inline-flex;
  justify-content: flex-end;
  width: 100%;
}

.related-records-table .assignment-end-form,
.related-records-table .assignment-ended-action {
  justify-content: center;
  width: 100%;
}

.list-item {
  display: grid;
  gap: 0.35rem;
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}

.service-log-attachment-grid {
  display: grid;
  gap: 0.75rem;
}

.service-log-attachment-card {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.75rem;
  background: #ffffff;
}

.attachment-preview-trigger,
.attachment-preview-static {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 4.5rem;
  overflow: hidden;
  border: 1px solid #c8d4e3;
  border-radius: 7px;
  background: #f8fafc;
}

.attachment-preview-trigger {
  cursor: pointer;
  padding: 0;
}

.attachment-preview-trigger:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 151, 138, 0.14);
}

.attachment-preview-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-preview-file,
.attachment-preview-static {
  flex-direction: column;
  gap: 0.28rem;
  color: var(--brand-dark);
  font-weight: var(--weight-action);
}

.attachment-preview-file span,
.attachment-preview-static span {
  border: 1px solid #bde3df;
  border-radius: 5px;
  padding: 0.28rem 0.42rem;
  background: #e7f5f3;
  line-height: 1;
}

.attachment-preview-static small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
}

.service-log-attachment-summary {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.service-log-attachment-summary strong,
.service-log-attachment-summary span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.service-log-attachment-summary span {
  color: var(--muted);
}

.service-log-attachment-actions {
  justify-content: flex-end;
}

.service-log-review-card {
  gap: 0.9rem;
}

.service-log-review-actions {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.coordinator-log-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.service-log-review-actions form {
  margin: 0;
}

.service-log-reject-disclosure {
  display: grid;
  gap: 0.65rem;
  width: min(100%, 28rem);
}

.service-log-reject-disclosure summary {
  justify-self: start;
  list-style: none;
}

.service-log-reject-disclosure summary::-webkit-details-marker {
  display: none;
}

.service-log-reject-form {
  display: grid;
  gap: 0.65rem;
  width: min(100%, 28rem);
  border: 1px solid #fecaca;
  border-radius: 7px;
  padding: 0.75rem;
  background: #fffafa;
}

.service-log-reject-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-weight: var(--weight-label);
}

.service-log-reject-form input {
  border-color: #f5c2c7;
}

.service-log-reject-form button {
  justify-self: start;
}

.attachment-preview-modal[hidden] {
  display: none;
}

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

.attachment-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
}

.attachment-preview-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(58rem, 100%);
  max-height: min(46rem, 86vh);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, 0.28);
}

.attachment-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 1rem;
}

.attachment-preview-header h3 {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.attachment-preview-body {
  display: grid;
  place-items: center;
  min-height: 22rem;
  overflow: auto;
  padding: 1rem;
  background: #f8fafc;
}

.attachment-preview-body img,
.attachment-preview-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 7px;
  background: #ffffff;
}

.attachment-preview-body img {
  max-height: 38rem;
  object-fit: contain;
}

.worker-document-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.85rem;
}

.worker-document-header h1 {
  margin: 0;
}

.worker-document-header p,
.worker-document-section h2 + p,
.worker-document-file-field span,
.worker-log-attachments p,
.worker-log-attachments .field span {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
}

.worker-document-section {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.worker-document-section h2,
.worker-log-attachments h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: var(--weight-label);
}

.worker-required-document-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.worker-required-document {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0.82rem 0.9rem;
  background: #ffffff;
}

.worker-required-document:last-child {
  border-bottom: 0;
}

.worker-required-document > div:first-child {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.worker-required-document strong {
  color: var(--ink);
  font-weight: var(--weight-action);
}

.worker-required-document-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.worker-required-document-meta > span:not(.status-pill) {
  color: var(--muted);
  font-size: 0.86rem;
}

.worker-document-upload-page {
  display: grid;
}

.worker-document-upload-form {
  display: grid;
  gap: 1rem;
}

.worker-document-date-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.worker-document-locked-type {
  display: grid;
  gap: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.8rem 0.9rem;
  background: #f8fafc;
}

.worker-document-locked-type span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.worker-document-locked-type strong {
  color: var(--ink);
  font-weight: var(--weight-action);
}

.worker-log-attachments {
  display: grid;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.9rem;
  background: #f8fafc;
}

.worker-attachment-picker {
  display: grid;
  gap: 0.65rem;
}

.worker-attachment-add {
  display: none;
  justify-self: start;
}

.attachment-picker-ready .worker-attachment-add {
  display: inline-flex;
}

.attachment-picker-ready .worker-attachment-native-field input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.worker-attachment-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
}

.worker-attachment-limit {
  border: 1px solid #f6d68b;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  color: #92400e;
  background: #fff7dc;
  font-weight: var(--weight-label);
}

.worker-attachment-feedback {
  min-height: 1.1rem;
  margin: 0;
  color: #b91c1c;
  font-size: 0.86rem;
  line-height: 1.35;
}

.worker-attachment-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.worker-attachment-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.68rem 0.75rem;
  background: #ffffff;
}

.worker-attachment-list li > div {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.worker-attachment-list strong,
.worker-attachment-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.worker-attachment-list strong {
  color: var(--ink);
  font-weight: var(--weight-action);
}

.worker-attachment-list span {
  color: var(--muted);
  font-size: 0.84rem;
}

.worker-attachment-list button {
  min-height: 2.25rem;
  border: 1px solid #c8d4e3;
  border-radius: 6px;
  padding: 0.34rem 0.62rem;
  color: var(--brand-dark);
  background: #ffffff;
  font-weight: var(--weight-action);
  touch-action: manipulation;
}

.worker-attachment-list button:hover {
  border-color: #efb8b8;
  color: #b91c1c;
  background: #fff5f5;
}

.worker-attachment-add:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.worker-shift-toolbar {
  display: grid;
  gap: 0.75rem;
  margin: 0.7rem 0 1.1rem;
}

.shift-summary {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0;
}

.shift-summary > span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  color: var(--brand-dark);
  background: #e7f5f3;
  font-weight: var(--weight-label);
}

.shift-summary > .shift-summary-attention {
  border-color: #f6d68b;
  color: #92400e;
  background: #fff7dc;
}

.shift-summary > .shift-summary-upcoming {
  border-color: #bde3df;
  color: var(--brand-dark);
  background: #e7f5f3;
}

.shift-summary > .shift-summary-completed {
  border-color: #d8c7f5;
  color: #6d4aa2;
  background: #f4efff;
}

.shift-summary-count {
  color: var(--brand-dark);
  font-size: 1rem;
  line-height: 1;
}

.shift-summary-attention .shift-summary-count {
  color: #92400e;
}

.shift-summary-completed .shift-summary-count {
  color: #6d4aa2;
}

.shift-filter-nav {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.shift-filter-nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  color: var(--brand-dark);
  background: #ffffff;
  font-weight: var(--weight-label);
}

.shift-filter-nav a:hover,
.shift-filter-nav a.filter-active {
  border-color: var(--brand);
  color: #ffffff;
  background: var(--brand);
}

.shift-section-title {
  margin: 1.3rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.shift-list-item {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  border-left: 4px solid var(--line);
  padding-left: 0.85rem;
}

.shift-list-item-top {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  min-width: 0;
}

.shift-list-main {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.shift-list-title {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  line-height: 1.25;
}

.shift-list-date,
.shift-list-time,
.shift-list-meta {
  min-width: 0;
}

.shift-list-meta {
  color: var(--ink);
}

.shift-list-status-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  min-width: 0;
}

.shift-list-view-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2rem;
  border: 1px solid #c8d4e3;
  border-radius: 6px;
  padding: 0.32rem 0.58rem;
  color: var(--brand-dark);
  background: #ffffff;
  font-size: 0.92rem;
  font-weight: var(--weight-action);
  line-height: 1.2;
}

.shift-list-view-action:hover {
  border-color: var(--brand);
  color: #ffffff;
  background: var(--brand);
}

.shift-list-secondary-action {
  touch-action: manipulation;
}

.shift-list-item-attention {
  border-left-color: var(--accent);
  background: #fffbeb;
}

.shift-list-item-upcoming {
  border-left-color: var(--brand);
}

.shift-list-item-past {
  color: var(--muted);
}

.list-item-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.list-item-actions form {
  margin: 0;
}

.list-item-actions a,
.list-item-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2rem;
  border: 1px solid #c8d4e3;
  border-radius: 6px;
  padding: 0.32rem 0.58rem;
  color: var(--brand-dark);
  background: #ffffff;
  font-size: 0.92rem;
  font-weight: var(--weight-action);
  line-height: 1.2;
}

.list-item-actions a:hover,
.list-item-actions button:hover {
  border-color: var(--brand);
  color: #ffffff;
  background: var(--brand);
}

.list-item-actions .primary-action,
.list-item-actions button {
  border-color: var(--brand);
  color: #ffffff;
  background: var(--brand);
}

.list-item-actions .primary-action:hover,
.list-item-actions button:hover {
  background: var(--brand-dark);
}

.list-item-actions .quiet-action {
  border-color: transparent;
  color: var(--muted);
  background: transparent;
}

.list-item-actions .quiet-action:hover {
  border-color: #c8d4e3;
  color: var(--brand-dark);
  background: #ffffff;
}

.empty-state {
  display: grid;
  gap: 0.72rem;
  justify-items: start;
  border: 1px dashed #cbd5e1;
  border-radius: 7px;
  padding: 1.15rem 1.2rem;
  color: var(--muted);
  background: #f8fafc;
}

.empty-state strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.empty-state p {
  margin: 0;
  max-width: 48rem;
  line-height: 1.45;
}

.empty-state-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding-top: 0.1rem;
}

.worker-content {
  width: min(100%, 1040px);
}

.worker-card {
  margin: 1rem;
}

.worker-dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

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

.worker-dashboard-page {
  display: grid;
  gap: 1rem;
}

.worker-priority-panel {
  margin-bottom: 0;
}

.worker-unscheduled-service-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.worker-unscheduled-service-card h2,
.worker-log-list-header h1 {
  margin: 0;
}

.worker-unscheduled-service-card p,
.worker-log-list-header p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.worker-unscheduled-service-action {
  flex-shrink: 0;
}

.worker-log-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.worker-tool-grid {
  align-items: stretch;
}

.worker-tool-card {
  min-height: 9rem;
}

.worker-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.worker-table-scroll table {
  min-width: 30rem;
}

.dashboard-overview {
  display: grid;
  grid-template-columns: minmax(18rem, 0.85fr) minmax(28rem, 1.35fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-card {
  box-shadow: var(--shadow);
}

.dashboard-card h2 {
  font-size: 1.1rem;
}

.dashboard-card > div:first-child p,
.workflow-checklist-header p {
  margin-top: 0.18rem;
}

.operations-summary-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 1fr;
}

.operations-summary-item {
  display: grid;
  gap: 0.2rem;
  min-height: auto;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: 7px;
  padding: 0.68rem 0.8rem;
  background: #ffffff;
}

.operations-summary-item:hover {
  border-color: var(--brand);
  border-left-color: var(--brand);
  background: #f8fffd;
}

.operations-summary-item strong {
  font-size: 0.98rem;
}

.operations-summary-item span {
  color: var(--muted);
  font-size: 0.86rem;
}

.operations-summary-item.roster,
.operations-summary-item.review {
  border-left-color: var(--accent);
}

.operations-summary-item.invoice-ready,
.operations-summary-item.invoice-draft {
  border-left-color: var(--brand);
}

.operations-summary-item.invoice-issued {
  border-left-color: #64748b;
}

.summary-empty-state {
  display: grid;
  gap: 0.32rem;
  border: 1px dashed #cbd5e1;
  border-radius: 7px;
  padding: 1rem;
  color: var(--muted);
  background: #f8fafc;
}

.summary-empty-state strong {
  color: var(--ink);
}

.dashboard-workbench-header {
  margin-bottom: 1rem;
}

.dashboard-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-section-heading h2 {
  margin: 0;
  font-size: 1rem;
}

.dashboard-section-heading p {
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.dashboard-overview-strip {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.operations-overview-grid,
.common-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
}

.operations-overview-item,
.common-action-item {
  display: grid;
  gap: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.82rem 0.9rem;
  background: #ffffff;
}

.operations-overview-item:hover,
.common-action-item:hover {
  border-color: var(--brand);
  background: #f8fffd;
}

.operations-overview-item strong,
.common-action-item strong {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.25;
}

.operations-overview-item span,
.common-action-item span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.dashboard-workbench-grid {
  grid-template-columns: minmax(26rem, 1.18fr) minmax(26rem, 0.82fr);
}

.priority-queue-list {
  display: grid;
  gap: 0.58rem;
}

.priority-queue-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 7px;
  padding: 0.72rem 0.82rem;
  background: #ffffff;
}

.priority-queue-item:hover {
  border-color: var(--brand);
  border-left-color: var(--brand);
  background: #f8fffd;
}

.priority-queue-item.invoice-ready,
.priority-queue-item.invoice-draft {
  border-left-color: var(--brand);
}

.priority-queue-item.invoice-issued {
  border-left-color: #64748b;
}

.priority-queue-count {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 7px;
  color: var(--brand-dark);
  background: #ccfbf1;
  font-weight: var(--weight-strong);
  line-height: 1;
}

.priority-queue-copy {
  display: grid;
  min-width: 0;
  gap: 0.16rem;
}

.priority-queue-copy strong {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.25;
}

.priority-queue-copy span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.priority-queue-label {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.common-actions {
  margin-top: 1rem;
}

.workflow-checklist {
  background: #fbfdfc;
  box-shadow: none;
}

.workflow-checklist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.72rem;
}

.workflow-checklist-badge {
  flex: 0 0 auto;
  width: fit-content;
  border: 1px solid #dce8e5;
  border-radius: 6px;
  padding: 0.22rem 0.48rem;
  color: var(--muted);
  background: #ffffff;
  font-size: 0.76rem;
  font-weight: var(--weight-label);
}

.workflow-checklist-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-checklist-list li {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr) auto;
  gap: 0.62rem;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 0.66rem 0;
}

.workflow-checklist-list li:first-child {
  border-top: 0;
}

.workflow-checklist-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.08rem;
  border: 1px solid #dce8e5;
  border-radius: 6px;
  color: var(--brand-dark);
  background: #ffffff;
  font-size: 0.74rem;
  font-weight: var(--weight-heading);
  line-height: 1;
}

.workflow-checklist-copy {
  min-width: 0;
}

.workflow-checklist-title-line {
  display: flex;
  align-items: baseline;
  gap: 0.38rem;
  flex-wrap: wrap;
}

.workflow-checklist-title-line strong {
  display: inline;
}

.workflow-checklist-detail {
  display: inline;
  color: #5c7187;
  font-size: 0.78rem;
  font-weight: var(--weight-label);
  line-height: 1.25;
}

.workflow-checklist-detail::before {
  color: #9aadb8;
  content: "\00b7";
  margin-right: 0.38rem;
}

.workflow-checklist-description {
  display: block;
  margin-top: 0.08rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.workflow-checklist-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 0;
}

.workflow-checklist-action a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  min-height: 1.65rem;
  border: 1px solid #cdded9;
  border-radius: 6px;
  padding: 0.12rem 0.5rem;
  color: var(--brand-dark);
  background: #ffffff;
  text-align: center;
  font-weight: var(--weight-label);
  line-height: 1;
}

.workflow-checklist-action a:hover {
  border-color: var(--brand);
  background: #f3fbf9;
}

.worker-action-summary {
  margin-bottom: 1rem;
}

.worker-action-summary h2 {
  font-size: 1.1rem;
}

.action-summary-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.action-summary-item {
  display: grid;
  gap: 0.2rem;
  min-height: 4.6rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  background: #ffffff;
}

.action-summary-item:hover {
  border-color: var(--brand);
  border-left-color: var(--brand);
  background: #f8fffd;
}

.action-summary-item strong {
  font-size: 1.05rem;
}

.action-summary-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.action-summary-item.needs-attention {
  border-left-color: var(--accent);
}

.action-summary-item.ready-for-log {
  border-left-color: var(--brand);
}

.action-summary-item.completed {
  border-left-color: #64748b;
}

.worker-app-shell {
  grid-template-columns: 220px minmax(0, 1fr);
}

.worker-mobile-header,
.worker-mobile-drawer,
.worker-mobile-drawer-backdrop,
.worker-bottom-nav {
  display: none;
}

.worker-mobile-menu-button,
.worker-mobile-close-button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  font-weight: var(--weight-action);
}

.worker-sidebar {
  background: var(--sidebar);
}

.worker-sidebar-nav a {
  color: var(--sidebar-text);
}

.worker-main {
  display: grid;
  align-content: start;
  overflow-x: hidden;
}

.worker-topbar {
  margin: 0 0 1rem;
  padding: 0;
}

.worker-service-log-form-page {
  display: grid;
  gap: 1rem;
}

.worker-log-form-header h1 {
  margin: 0;
}

.worker-log-form-header p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.worker-log-shift-summary {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.85rem;
  background: #f8fafc;
}

.worker-log-shift-summary div {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.worker-log-shift-summary dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: var(--weight-label);
}

.worker-log-shift-summary dd {
  margin: 0;
  color: var(--ink);
  font-weight: var(--weight-action);
}

.worker-log-form {
  display: grid;
  gap: 1rem;
  min-width: 0;
  max-inline-size: 100%;
}

.worker-unscheduled-banner {
  display: grid;
  gap: 0.25rem;
  border: 1px solid #bde8e3;
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  background: #f1fbfa;
}

.worker-unscheduled-banner span {
  color: var(--muted);
}

.worker-unscheduled-reason {
  max-width: none;
}

.worker-log-field-grid,
.worker-log-notes-grid {
  display: grid;
  gap: 0.9rem 1rem;
  min-width: 0;
  max-inline-size: 100%;
}

.worker-log-field-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.participant-cancellation-field-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.worker-log-notes-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.worker-service-log-form-page .field,
.worker-service-log-form-page input,
.worker-service-log-form-page select,
.worker-service-log-form-page textarea {
  min-width: 0;
  max-width: 100%;
  max-inline-size: 100%;
}

.worker-service-log-form-page input[type="time"],
.worker-service-log-form-page input[type="number"] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

@supports (-webkit-touch-callout: none) {
  .worker-service-log-form-page input[type="time"] {
    -webkit-appearance: none;
    appearance: none;
    min-width: 0;
    width: -webkit-fill-available;
    max-width: -webkit-fill-available;
  }
}

.worker-service-log-form-page textarea {
  min-height: 8rem;
  resize: vertical;
}

.worker-log-form-actions {
  justify-content: flex-end;
}

.worker-shift-detail-page {
  display: grid;
  gap: 1rem;
}

.worker-detail-header {
  margin-bottom: 0;
}

.worker-detail-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-top: 1px solid #edf1f6;
  padding-top: 1rem;
}

.worker-detail-actions form {
  margin: 0;
}

.worker-cancellation-review-message {
  display: grid;
  gap: 0.2rem;
  width: 100%;
}

.worker-primary-action {
  min-height: 2.5rem;
}

.worker-bottom-actions {
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

.errorlist {
  display: grid;
  gap: 0.18rem;
  margin: 0.35rem 0 0;
  padding: 0;
  color: var(--danger-text);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
  list-style: none;
}

.errorlist li {
  margin: 0;
}

.error .errorlist {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.invoice-preview-filter {
  display: grid;
  grid-template-columns: minmax(14rem, 1.25fr) minmax(10rem, 0.85fr) minmax(10rem, 0.85fr) auto;
  align-items: end;
  gap: 0.75rem;
}

.invoice-preview-filter label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: var(--weight-label);
}

.invoice-preview-filter input,
.invoice-preview-filter select,
.invoice-preview-filter button {
  min-height: 2.38rem;
}

.invoice-preview-filter input,
.invoice-preview-filter select {
  border-color: #d6e1eb;
  font-weight: 400;
}

.invoice-preview-filter select:invalid,
.invoice-preview-filter input[type="date"]:invalid {
  color: #8794a6;
}

.invoice-preview-table {
  border-color: #d5e0ea;
}

.invoice-preview-table.card {
  padding: 0;
}

.invoice-preview-table h2 {
  min-height: 2.65rem;
  margin: 0;
  border-bottom: 1px solid #e3ebf2;
  padding: 0.75rem 0.86rem;
  font-size: 0.96rem;
  font-weight: var(--weight-label);
}

.invoice-selected-groups {
  display: grid;
  gap: 1rem;
  padding: 0.86rem;
}

.invoice-selected-group {
  overflow: hidden;
  border: 1px solid #dbe5ee;
  border-radius: 7px;
  background: #ffffff;
}

.invoice-selected-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #e3ebf2;
  padding: 0.78rem 0.86rem;
  background: #fbfcfd;
}

.invoice-selected-group-header h3 {
  margin: 0;
  font-size: 0.96rem;
  font-weight: var(--weight-label);
}

.invoice-selected-group-header p {
  margin: 0.24rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.invoice-preview-table table {
  min-width: 940px;
}

.invoice-preview-table th,
.invoice-preview-table td {
  border-bottom: 1px solid #e3ebf2;
}

.invoice-preview-table th {
  padding: 0.62rem 0.75rem;
  color: #5e6f87;
  font-size: 0.78rem;
  font-weight: var(--weight-label);
  vertical-align: middle;
}

.invoice-preview-table td {
  padding: 0.62rem 0.75rem;
  color: #172437;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.35;
  vertical-align: middle;
}

.invoice-preview-table tr:last-child td {
  border-bottom: 0;
}

.invoice-preview-actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid #e3ebf2;
  padding: 0.75rem 0.86rem;
  background: #fbfcfd;
}

.invoice-preview-date-cell,
.invoice-preview-worker-cell,
.invoice-preview-hours-cell,
.invoice-preview-travel-cell {
  white-space: nowrap;
}

.invoice-preview-worker-cell {
  font-weight: var(--weight-action);
}

.invoice-preview-support-cell,
.invoice-preview-notes-cell {
  overflow-wrap: anywhere;
}

.invoice-preview-hours-cell,
.invoice-preview-travel-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.invoice-preview-table .status-pill {
  font-weight: var(--weight-label);
}

.invoice-preview-empty-state {
  justify-items: center;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 1.9rem 1rem 2rem;
  text-align: center;
  background: #fbfcfd;
}

.invoice-preview-empty-state strong {
  display: block;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: var(--weight-label);
}

.invoice-preview-empty-state p {
  max-width: 27rem;
  margin: 0.35rem auto 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.invoice-travel-claim {
  min-width: 10rem;
}

.invoice-travel-claim label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  font-weight: var(--weight-label);
}

.invoice-travel-claim input {
  width: 7rem;
}

.invoice-travel-claim small,
.invoice-travel-empty {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.invoice-travel-claim .errorlist {
  margin: 0 0 0.35rem;
  color: #b91c1c;
  font-size: 0.78rem;
}

@media (max-width: 980px) {
  .worker-app-shell {
    display: block;
    overflow-x: visible;
  }

  .worker-mobile-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--line);
    padding: 0.85rem 1rem;
    background: #ffffff;
  }

  .worker-mobile-brand {
    color: var(--ink);
    font-size: 1rem;
    font-weight: var(--weight-heading);
    line-height: 1.15;
  }

  .worker-mobile-role,
  .worker-mobile-user {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: var(--weight-label);
    line-height: 1.2;
  }

  .worker-mobile-user {
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .worker-mobile-menu-button {
    display: inline-grid;
    place-items: center;
    gap: 0.18rem;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  }

  .worker-mobile-menu-button::before,
  .worker-mobile-menu-button::after,
  .worker-mobile-menu-icon {
    content: "";
    display: block;
    width: 1.12rem;
    height: 0.13rem;
    border-radius: 999px;
    background: var(--ink);
  }

  .worker-mobile-menu-icon {
    width: 1rem;
    background: var(--brand);
  }

  .worker-mobile-menu-button:hover,
  .worker-mobile-menu-button:focus {
    border-color: #bde3df;
    color: var(--ink);
    background: #f8fffd;
  }

  .worker-sidebar {
    display: none;
  }

  .worker-topbar {
    display: none;
  }

  .worker-main {
    padding-bottom: calc(5.6rem + env(safe-area-inset-bottom));
  }

  .worker-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 35;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.25rem;
    border-top: 1px solid rgba(203, 213, 225, 0.9);
    padding: 0.45rem 0.7rem calc(0.45rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08);
  }

  .worker-bottom-nav-link {
    display: grid;
    place-items: center;
    gap: 0.2rem;
    min-height: 3.25rem;
    border-radius: 10px;
    color: #667085;
    font-size: 0.76rem;
    font-weight: var(--weight-label);
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    touch-action: manipulation;
  }

  .worker-bottom-nav-link:hover,
  .worker-bottom-nav-link:focus {
    color: var(--brand-dark);
    background: #eef8f6;
  }

  .worker-bottom-nav-link.active {
    color: var(--brand-dark);
    background: #e4f4f1;
  }

  .worker-bottom-nav-icon {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .worker-mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: block;
    background: rgba(15, 23, 42, 0.42);
  }

  .worker-mobile-drawer-backdrop[hidden],
  .worker-mobile-drawer[hidden] {
    display: none;
  }

  .worker-mobile-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    display: grid;
    align-content: start;
    width: min(19rem, 86vw);
    border-right: 1px solid var(--line);
    border-radius: 0 12px 12px 0;
    padding: 1rem;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  }

  .worker-mobile-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.9rem;
  }

  .worker-mobile-close-button {
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    font-size: 1.25rem;
    line-height: 1;
  }

  .worker-mobile-drawer-nav {
    display: grid;
    gap: 0.35rem;
    padding: 0.9rem 0;
  }

  .worker-mobile-drawer-nav .sidebar-link {
    color: var(--ink);
  }

  .worker-mobile-drawer-nav .sidebar-link.active {
    color: var(--sidebar-active-text);
  }

  .worker-mobile-logout {
    border-top: 1px solid var(--line);
    padding-top: 0.9rem;
  }

  .worker-mobile-logout .button {
    width: 100%;
  }

  body.worker-nav-open {
    overflow: hidden;
  }
}

@media (max-width: 1050px) {
  .dashboard-overview {
    grid-template-columns: 1fr;
  }

  .shift-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .participant-assignment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .participant-assignment-notes-field {
    grid-column: 1 / -1;
  }

  .operations-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }

  .dashboard-workbench-grid,
  .operations-overview-grid,
  .common-actions-grid,
  .service-log-status-grid,
  .invoice-status-grid,
  .participant-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-log-bulk-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .workflow-checklist-list li {
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: 0.55rem 0.7rem;
  }

  .workflow-checklist-action {
    grid-column: 2;
    flex-wrap: wrap;
    justify-content: flex-start;
    white-space: normal;
  }
}

@media (max-width: 1050px) {
  .invoice-preview-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .invoice-preview-filter > button {
    width: 100%;
  }

  .planner-filter-bar-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .planner-filter-bar-compact button,
  .planner-filter-bar-compact .button {
    width: 100%;
  }

  .planner-filter-actions {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.58rem;
  }

  .service-log-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-log-filter-bar .service-log-filter-actions {
    grid-column: 1 / -1;
  }

  .service-log-filter-bar .service-log-filter-actions > button,
  .service-log-filter-bar .service-log-filter-actions > .button {
    flex: 1;
  }
}

@media (max-width: 760px) {
  .invoice-preview-filter {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-shell:not(.worker-app-shell) .sidebar {
    display: none;
  }

  .document-manager-layout {
    grid-template-columns: 1fr;
  }

  .service-log-filter-bar {
    grid-template-columns: 1fr;
  }

  .service-log-filter-summary {
    justify-content: flex-start;
  }

  .document-owner-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.65rem;
  }

  .document-person-item {
    grid-template-columns: 2.25rem minmax(0, 1fr) auto;
    padding: 0.72rem 0.85rem;
  }

  .document-person-summary {
    grid-template-columns: 1fr;
  }

  .document-summary-strip {
    justify-content: flex-start;
  }

  .document-category-tabs,
  .document-section-header,
  .document-person-summary {
    padding-right: 0.9rem;
    padding-left: 0.9rem;
  }

  .document-upload-context {
    grid-template-columns: 1fr;
  }

  .document-upload-context-list {
    justify-content: flex-start;
  }

  .document-upload-context .button {
    width: 100%;
  }

  .worker-topbar {
    align-items: center;
    justify-content: space-between;
    margin: 0 -1rem 1rem;
    min-height: 3.4rem;
    padding: 0 1rem;
  }

  .worker-main {
    display: block;
  }

  .worker-card {
    margin: 0 0 1rem;
    padding: 1rem;
  }

  .worker-shift-page {
    overflow: hidden;
    padding: 0.85rem;
  }

  .worker-shift-page h1 {
    margin-bottom: 0.72rem;
    font-size: 1.45rem;
  }

  .worker-shift-toolbar {
    gap: 0.65rem;
    margin: 0.25rem 0 0.85rem;
  }

  .worker-shift-page .shift-summary {
    display: grid;
    align-items: stretch;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.42rem;
    margin: 0;
  }

  .worker-shift-page .shift-summary > span {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 0.08rem;
    min-height: 3.1rem;
    border-radius: 7px;
    padding: 0.52rem 0.55rem;
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .worker-shift-page .shift-summary .shift-summary-count {
    display: block;
    font-size: 1.08rem;
    line-height: 1;
  }

  .worker-shift-page .shift-filter-nav {
    display: grid;
    align-items: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin-bottom: 0;
  }

  .worker-shift-page .shift-filter-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 2.15rem;
    padding: 0.38rem 0.52rem;
    text-align: center;
    touch-action: manipulation;
  }

  .worker-content {
    width: 100%;
  }

  .worker-dashboard-grid,
  .action-summary-grid,
  .coordinator-summary-grid {
    grid-template-columns: 1fr;
  }

  .worker-dashboard-page {
    gap: 0.8rem;
  }

  .worker-dashboard-page .page-header {
    margin-bottom: 0;
    padding-bottom: 0.7rem;
  }

  .worker-priority-panel {
    gap: 0.65rem;
  }

  .worker-unscheduled-service-card,
  .worker-log-list-header {
    align-items: stretch;
    flex-direction: column;
  }

  .worker-unscheduled-service-action {
    width: 100%;
  }

  .worker-priority-panel > div:first-child {
    display: grid;
    gap: 0.2rem;
  }

  .worker-priority-panel h2 {
    font-size: 1rem;
  }

  .worker-priority-panel p {
    font-size: 0.9rem;
  }

  .worker-dashboard-page .action-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .worker-dashboard-page .action-summary-item {
    min-height: 0;
    padding: 0.65rem 0.55rem;
  }

  .worker-dashboard-page .action-summary-item strong {
    font-size: 0.92rem;
    line-height: 1.25;
  }

  .worker-dashboard-page .action-summary-item span {
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .worker-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .worker-tool-card {
    min-height: 0;
    padding: 0.85rem;
  }

  .worker-tool-card h2 {
    font-size: 0.98rem;
  }

  .worker-tool-card p {
    font-size: 0.86rem;
    line-height: 1.35;
  }

  .worker-tool-card .card-action {
    width: 100%;
    font-size: 0.88rem;
  }

  .operations-overview-grid,
  .common-actions-grid,
  .dashboard-workbench-grid,
  .service-log-status-grid,
  .invoice-status-grid,
  .participant-status-grid {
    grid-template-columns: 1fr;
  }

  .invoice-filter-copy,
  .participant-filter-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.18rem;
  }

  .invoice-workbench .dashboard-section-heading {
    display: grid;
    gap: 0.22rem;
  }

  .priority-queue-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .priority-queue-label {
    grid-column: 2;
    white-space: normal;
  }

  .workflow-checklist-header {
    display: grid;
    justify-content: stretch;
  }

  .workflow-checklist-action {
    justify-items: start;
  }

  .planner-week-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .planner-week-controls,
  .planner-scope-chips {
    justify-content: flex-start;
  }

  .planner-view-switch {
    width: 100%;
  }

  .planner-view-option {
    padding-right: 0.45rem;
    padding-left: 0.45rem;
    text-align: center;
    white-space: normal;
  }

  .planner-week-range {
    width: 100%;
  }

  .planner-filter-bar-compact {
    grid-template-columns: 1fr;
  }

  .planner-section-heading,
  .planner-conflict-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .planner-summary-pills {
    justify-content: flex-start;
  }

  .planner-conflict-banner .button {
    width: 100%;
  }

  .planner-resource-grid {
    --planner-resource-width: 190px;
  }

  .planner-date-grid {
    grid-template-columns: repeat(7, minmax(140px, 1fr));
    min-width: 980px;
  }

  .shift-modal-backdrop {
    align-items: stretch;
    padding: 0.55rem;
  }

  .shift-modal-dialog {
    width: 100%;
    max-height: calc(100vh - 1.1rem);
  }

  .shift-modal-header,
  .shift-modal-body,
  .shift-modal-footer {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .shift-modal-body .form-section,
  .shift-modal-body .form-grid,
  .shift-modal-body .field,
  .shift-modal-body input,
  .shift-modal-body select,
  .shift-modal-body textarea {
    min-width: 0;
    max-width: 100%;
  }

  .shift-modal-body .form-grid {
    grid-template-columns: 1fr;
  }

  .shift-service-grid {
    grid-template-columns: 1fr;
  }

  .shift-modal-footer {
    justify-content: stretch;
    flex-direction: column-reverse;
  }

  .shift-list-item {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.55rem;
    border: 1px solid var(--line);
    border-left-width: 4px;
    border-radius: 7px;
    padding: 0.78rem;
    background: #ffffff;
    overflow: hidden;
  }

  .shift-list-item .status-pill {
    justify-self: start;
  }

  .shift-list-item-top {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .shift-list-status-row {
    width: 100%;
    justify-content: flex-start;
  }

  .shift-list-view-action {
    align-self: start;
    justify-self: end;
    min-height: 2.4rem;
    min-width: 4.2rem;
    padding: 0.42rem 0.75rem;
  }

  .worker-shift-page .shift-section-title {
    margin-top: 1.05rem;
    font-size: 0.82rem;
    letter-spacing: 0;
  }

  .worker-shift-page .shift-list-item + .shift-list-item {
    margin-top: 0.65rem;
  }

  .worker-shift-page .shift-list-title {
    display: grid;
    gap: 0.18rem;
    font-size: 0.98rem;
    overflow-wrap: anywhere;
  }

  .worker-shift-page .shift-list-meta {
    color: var(--muted);
    overflow-wrap: anywhere;
  }

  .shift-list-actions {
    width: 100%;
  }

  .shift-list-primary-action {
    gap: 0.5rem;
    padding-top: 0.15rem;
  }

  .shift-list-actions a,
  .shift-list-actions button {
    min-height: 2.5rem;
    touch-action: manipulation;
  }

  .shift-list-actions .primary-action,
  .shift-list-actions form,
  .shift-list-actions form button {
    width: 100%;
  }

  .worker-service-log-form-page {
    gap: 0.85rem;
  }

  .worker-log-shift-summary,
  .worker-log-field-grid,
  .worker-log-notes-grid {
    grid-template-columns: 1fr;
  }

  .worker-log-shift-summary {
    gap: 0.55rem;
    padding: 0.75rem;
  }

  .worker-service-log-form-page textarea {
    min-height: 7rem;
  }

  .worker-log-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .worker-log-form-actions button,
  .worker-log-form-actions .button {
    width: 100%;
  }

  .attachment-picker-ready .worker-attachment-add {
    width: 100%;
  }

  .worker-attachment-list li {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .worker-attachment-list button {
    width: 100%;
  }

  .worker-document-header,
  .worker-required-document,
  .worker-document-date-grid {
    grid-template-columns: 1fr;
  }

  .worker-document-header {
    display: grid;
  }

  .worker-document-header .button,
  .worker-required-document .list-item-actions,
  .worker-required-document .list-item-actions a {
    width: 100%;
  }

  .worker-shift-detail-page {
    gap: 0.85rem;
    padding: 0.95rem;
  }

  .worker-detail-header {
    gap: 0.75rem;
    padding-bottom: 0.7rem;
  }

  .worker-detail-header .button {
    width: 100%;
  }

  .worker-shift-detail-page .detail-list {
    gap: 0;
    border: 1px solid #edf1f6;
    border-radius: 7px;
    padding: 0.15rem 0.75rem;
    background: #ffffff;
  }

  .worker-shift-detail-page .detail-list dt {
    border-top: 1px solid #edf1f6;
    padding: 0.72rem 0 0.2rem;
    font-size: 0.82rem;
  }

  .worker-shift-detail-page .detail-list dd {
    border-top: 0;
    padding: 0 0 0.72rem;
  }

  .worker-shift-detail-page .detail-list dt:first-child {
    border-top: 0;
  }

  .worker-detail-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 0.55rem;
    padding-top: 0.85rem;
  }

  .worker-detail-actions form,
  .worker-detail-actions button,
  .worker-detail-actions .button,
  .worker-primary-action {
    width: 100%;
  }

  .shift-filter-nav a {
    font-size: 0.92rem;
  }

  .content {
    padding: 1rem;
  }

  .worker-main {
    padding-bottom: calc(5.6rem + env(safe-area-inset-bottom));
  }

  .topbar {
    margin: -1rem -1rem 1rem;
    padding: 0 1rem;
  }

  .page-header {
    display: grid;
  }

  .page-header h1 {
    font-size: 1.55rem;
  }

  .participant-assignment-active-field,
  .participant-assignment-notes-field {
    grid-column: 1 / -1;
  }

  .participant-assignment-grid {
    grid-template-columns: 1fr;
  }

  .assignment-end-form {
    flex-wrap: wrap;
  }

  .assignment-end-form input[type="date"] {
    width: 100%;
    min-width: 0;
  }

  .support-item-notes-field {
    grid-column: 1 / -1;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  .detail-list dd {
    border-left: 0;
  }

  .workflow-panel {
    grid-template-columns: 1fr;
  }

  .service-log-attachment-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .attachment-preview-trigger,
  .attachment-preview-static {
    width: 100%;
    height: 9rem;
  }

  .service-log-attachment-actions,
  .service-log-attachment-actions a {
    width: 100%;
  }

  .service-log-review-actions,
  .service-log-review-actions form,
  .service-log-review-actions button,
  .service-log-review-actions .button,
  .coordinator-log-actions,
  .coordinator-log-actions form,
  .coordinator-log-actions button,
  .coordinator-log-actions .button,
  .service-log-reject-disclosure,
  .service-log-reject-form {
    width: 100%;
  }

  .attachment-preview-modal {
    align-items: stretch;
    padding: 0.7rem;
  }

  .attachment-preview-dialog {
    max-height: calc(100vh - 1.4rem);
  }

  .attachment-preview-header {
    align-items: stretch;
    flex-direction: column;
  }

  .attachment-preview-header .button-row,
  .attachment-preview-header .button {
    width: 100%;
  }

  .attachment-preview-body {
    min-height: 18rem;
    padding: 0.75rem;
  }

  .shift-cancel-form {
    grid-template-columns: 1fr;
  }

  .shift-cancel-form button {
    justify-self: start;
  }

  .pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .pagination-links {
    justify-content: space-between;
  }
}

@media (max-width: 380px) {
  .worker-shift-page .shift-summary {
    grid-template-columns: 1fr;
  }

  .worker-shift-page .shift-summary > span {
    min-height: 2.75rem;
  }
}

@media (max-width: 340px) {
  .worker-shift-page .shift-filter-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .document-directory-summary,
  .document-person-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-directory-header {
    grid-template-columns: 1fr;
  }

  .document-directory-filter,
  .document-file-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-directory-filter button,
  .document-directory-filter .button,
  .document-file-filter button,
  .document-file-filter .button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .person-file-entry {
    align-items: stretch;
    flex-direction: column;
  }

  .person-file-entry .button-row {
    width: 100%;
  }

  .person-file-entry .button-row .button {
    flex: 1 1 auto;
  }

  .document-actions {
    min-width: 16rem;
  }

  .document-action-group {
    justify-content: flex-start;
  }

  .document-action-group .button {
    flex: 0 0 auto;
  }

  .document-detail-actions {
    justify-content: flex-start;
  }

  .document-directory-summary,
  .document-person-meta,
  .document-directory-filter,
  .document-file-filter {
    grid-template-columns: 1fr;
  }

  .document-directory-header,
  .document-person-hero,
  .document-file-controls .document-category-tabs,
  .document-file-filter,
  .document-file-panel .document-section-header {
    padding-right: 0.85rem;
    padding-left: 0.85rem;
  }

  .document-owner-tab {
    min-height: 3.45rem;
    padding: 0.62rem;
  }

  .document-person-hero-main {
    align-items: flex-start;
  }

  .document-file-panel .document-section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .document-file-panel .document-section-header .button {
    width: 100%;
  }

  .document-upload-dialog {
    width: calc(100% - 1rem);
  }

  .document-upload-dialog-header,
  .document-upload-dialog-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .document-dialog-close,
  .document-upload-dialog-footer .button,
  .document-upload-dialog-footer button {
    width: 100%;
  }

  .document-upload-dialog-body {
    grid-template-columns: 1fr;
    padding: 0.9rem;
  }
}
