/*
 * TNVORA V10.43 — MODULES
 * Plik generowany przez kontrolowaną refaktoryzację CSS.
 * Kolejność kaskady wynika z jawnej kolejności plików w index.html.
 */

body.cms-ui-preview {
  --mui-primary: #1976d2;
  --mui-primary-dark: #0d47a1;
  --mui-success: #1b9f5a;
  --mui-warning: #f6b51e;
  --mui-danger: #c83d43;
  --mui-surface: var(--tnvora-white);
  --mui-surface-2: #f5f8fc;
  --mui-text: #101828;
  --mui-text-muted: #5f6f85;
  --mui-border: #d8e2ef;
  --mui-radius: 12px;
  --mui-shadow: 0 16px 40px rgba(16, 24, 40, 0.12);
}

.work-order-active-group.whole-park-optional {
  border-color: rgba(37, 99, 235, 0.34);
  background: rgba(37, 99, 235, 0.045);
}

.work-order-breaks-field.multi-day-work-breaks {
  margin: 2px 0 10px;
  border-color: rgba(0, 145, 190, 0.35);
  box-shadow: inset 4px 0 0 #08a9c4;
}

.work-order-active-group.final-day-group {
  border-color: rgba(14, 137, 75, 0.28);
}

.final-day-note {
  display: block;
  margin-top: 4px;
  color: #087744;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.045em;
}

body.theme-dark .final-day-note {
  color: #72e1a6;
}

.whole-park-optional-note {
  display: block;
  width: fit-content;
  margin-top: 0.45rem;
  padding: 0.28rem 0.5rem;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 999px;
  color: #2563eb;
  background: rgba(219, 234, 254, 0.72);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.theme-dark .work-order-active-group.whole-park-optional {
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(30, 64, 175, 0.12);
}

.theme-dark .whole-park-optional-note {
  color: #bfdbfe;
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(30, 64, 175, 0.28);
}

.maintenance-recovery-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(8, 18, 31, .9);
  backdrop-filter: blur(12px);
}

.maintenance-recovery-overlay[hidden] {
  display: none;
}

.maintenance-recovery-spinner {
  width: 48px;
  height: 48px;
  border: 5px solid rgba(255, 255, 255, .16);
  border-top-color: #4b9cff;
  border-radius: 50%;
  animation: maintenance-recovery-spin .8s linear infinite;
}

.work-order-late-member {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(260px, 1fr);
  gap: 12px 18px;
  align-items: end;
  padding: 16px;
  border: 1px solid color-mix(in srgb, #2583ee 42%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 94%, #2583ee 6%);
}

.work-order-late-member > div,
.work-order-late-member label {
  display: grid;
  gap: 5px;
}

.work-order-late-member strong,
.work-order-late-member label {
  color: var(--text);
  font-weight: 900;
}

.work-order-late-member small,
.work-order-late-member p {
  color: var(--muted);
  line-height: 1.45;
}

.work-order-team-leave {
  margin-top: 14px;
  border: 1px solid color-mix(in srgb, #c03636 42%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 95%, #c03636 5%);
  overflow: hidden;
}

.work-order-team-leave > summary {
  cursor: pointer;
  padding: 13px 15px;
  color: #9f2029;
  font-weight: 900;
}

.work-order-team-leave[open] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 15px 15px;
}

.work-order-team-leave[open] > summary,
.work-order-team-leave > p,
.work-order-team-leave > .error-text,
.work-order-team-leave > button {
  grid-column: 1 / -1;
}

.work-order-team-leave > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.work-order-team-leave > label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--text);
  font-weight: 850;
}

.work-order-team-leave textarea {
  min-height: 76px;
  resize: vertical;
}

.work-order-late-guest {
  grid-column: 1 / -1;
  border: 1px solid color-mix(in srgb, #2583ee 35%, var(--border));
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.work-order-late-guest > summary {
  cursor: pointer;
  padding: 12px 14px;
  color: var(--text);
  font-weight: 900;
}

.work-order-late-guest .work-order-guest {
  margin: 0 12px 12px;
}

body.theme-dark .work-order-late-guest,
body.dark-theme .work-order-late-guest {
  border-color: #456d96;
  background: #14263a;
}

body.theme-dark .work-order-late-guest > summary,
body.dark-theme .work-order-late-guest > summary {
  color: #f5f9ff;
}

.work-order-late-member p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .78rem;
  font-weight: 750;
}

.work-order-eip-gate {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0;
  padding: 15px;
}

.work-order-eip-gate.required {
  border-color: #e1a719;
  background: color-mix(in srgb, #f7bf2d 12%, var(--panel, var(--tnvora-white)));
}

.work-order-eip-gate.complete {
  border-color: #28a868;
  background: color-mix(in srgb, #28a868 10%, var(--panel, var(--tnvora-white)));
}

.work-order-eip-gate-head {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: min(100%, 320px);
}

.work-order-eip-gate-head > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #d99a08;
  color: var(--tnvora-white);
  font-size: 1.25rem;
  font-weight: 950;
}

.work-order-eip-gate.complete .work-order-eip-gate-head > span {
  background: #168a50;
}

.work-order-eip-gate-head p {
  margin: 4px 0 0;
  color: var(--muted, #637083);
}

.work-order-eip-external {
  display: grid;
  gap: 10px;
  flex: 1 1 100%;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, #d99a08 30%, transparent);
}

.work-order-eip-external label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 800;
}

.eip-assigned-heading,
.eip-assigned-item,
.eip-assigned-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eip-assigned-heading {
  justify-content: space-between;
}

.eip-assigned-heading h3,
.eip-assigned-heading p,
.eip-assigned-item p {
  margin: 0;
}

.eip-assigned-count {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--tnvora-white);
  background: #176fd1;
  font-weight: 900;
}

.eip-assigned-list {
  display: grid;
  gap: 10px;
}

.eip-assigned-item {
  justify-content: space-between;
  padding: 13px;
  border: 1px solid var(--opsui-border, var(--line));
  border-left: 5px solid #d89a08;
  border-radius: 13px;
  background: color-mix(in srgb, #f7bf2d 8%, var(--opsui-surface-raised, var(--surface)));
}

.eip-assigned-item.complete {
  border-left-color: #168a50;
  background: color-mix(in srgb, #28a868 8%, var(--opsui-surface-raised, var(--surface)));
}

.eip-assigned-item.canceled {
  border-left-color: #9aa5b4;
  opacity: .72;
}

.eip-assigned-item > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.eip-assigned-item > div:first-child span,
.eip-assigned-item > div:first-child small {
  color: var(--opsui-muted, var(--muted));
}

.work-order-eip-quick {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  width: 100%;
  margin-top: 9px;
  padding: 12px 15px;
  border: 1px solid #d89a08;
  border-radius: 13px;
  color: var(--opsui-text, var(--ink));
  background: color-mix(in srgb, #f7bf2d 14%, var(--opsui-surface-raised, var(--surface)));
  text-align: left;
}

.work-order-eip-quick > span {
  grid-row: 1 / span 2;
  padding: 8px;
  border-radius: 9px;
  color: var(--tnvora-white);
  background: #d89a08;
  font-weight: 950;
}

.work-order-eip-quick small {
  color: var(--opsui-muted, var(--muted));
}

.work-order-eip-quick.complete {
  border-color: #168a50;
  background: color-mix(in srgb, #28a868 10%, var(--opsui-surface-raised, var(--surface)));
}

.work-order-eip-quick.complete > span {
  background: #168a50;
}

.work-order-active-details[open] + .work-order-eip-quick {
  display: none;
}

.support-session-banner {
  position: sticky;
  top: 0;
  z-index: 1150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, var(--ops-page-width, 1480px));
  margin: 10px auto 0;
  padding: 12px 16px;
  border: 2px solid #c26b00;
  border-radius: 14px;
  color: #4a2800;
  background: #fff1c7;
  box-shadow: 0 10px 28px rgba(103, 57, 0, .2);
}

.support-session-banner[hidden] { display: none; }

.support-session-banner div { display: grid; gap: 2px; }

.support-session-banner small { color: #704109; }

.support-session-stop {
  min-height: 42px;
  padding: 9px 16px;
  border: 0;
  border-radius: 10px;
  color: var(--tnvora-white);
  background: #9f341f;
  font-weight: 900;
}

.support-code-value {
  padding: 16px;
  border: 2px dashed #087b91;
  border-radius: 14px;
  color: #073f52;
  background: var(--tnvora-white);
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 1000;
  letter-spacing: .16em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.support-code-actions,
.admin-support-code-entry {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.support-code-actions small { color: #38566a; font-weight: 700; }

.admin-support-code-entry label { flex: 1; display: grid; gap: 6px; }

.employee-month-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.employee-month-kpis article {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;
  background: rgba(4, 30, 44, .34);
}

.employee-month-kpis span { color: #b9eff6; font-size: .78rem; font-weight: 900; letter-spacing: .08em; }

.employee-month-kpis strong { color: var(--tnvora-white); font-size: clamp(1.8rem, 5vw, 3.1rem); }

.employee-month-kpis small { color: #d3edf1; }

.employee-month-chart-heading { display: flex; justify-content: space-between; gap: 12px; }

.employee-month-chart-heading div { display: grid; gap: 2px; }

.employee-month-chart-heading small { color: #c5e2e9; }

.employee-month-chart-heading > span { color: #052e3e; background: #bff5dc; padding: 7px 11px; border-radius: 999px; font-weight: 900; }

.employee-month-chart { display: grid; gap: 10px; }

.employee-week-row { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: center; }

.employee-week-row > span { color: #d2f3f7; font-weight: 900; }

.employee-week-bars { display: grid; gap: 5px; }

.employee-week-bars > div { position: relative; min-height: 24px; overflow: hidden; border-radius: 8px; background: rgba(2, 25, 37, .34); }

.employee-week-bars i { position: absolute; inset: 0 auto 0 0; border-radius: 8px; }

.employee-week-bars i.hours { background: #48b5ff; }

.employee-week-bars i.km { background: #48dc94; }

.employee-week-bars b { position: relative; z-index: 1; display: block; padding: 4px 8px; color: var(--tnvora-white); font-size: .78rem; }

.sms-pending-age {
  display: inline-flex;
  width: fit-content;
  margin-top: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #734400;
  background: #ffe5a1;
  font-size: .72rem;
  font-weight: 900;
}

.sms-pending-remove { margin-top: 10px; }

.park-info-box {
  display: grid;
  gap: 14px;
  border: 1px solid color-mix(in srgb, var(--accent, #1785ff) 35%, var(--border, var(--line)));
  border-left: 5px solid var(--accent, #1785ff);
  background: color-mix(in srgb, var(--surface, var(--tnvora-white)) 94%, #1785ff 6%);
}

.duty-delegation-scope {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--blue) 32%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--blue-soft) 58%, var(--surface));
}

.duty-delegation-scope[hidden] { display: none; }

.duty-delegation-target-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
  align-items: center;
}

.duty-delegation-scope-empty {
  color: var(--muted);
  font-size: .86rem;
}

.duty-delegation-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.work-order-qualification-audit {
  grid-column: 1 / -1;
}

.analytics-auto-loading {
  color: var(--blue);
}

@media (min-width: 980px) {
  :root {
    --ops-page-width: 1800px;
  }

  .app-shell.desktop-layout {
    --desktop-sidebar-width: clamp(232px, 13vw, 288px);
    --desktop-grid-gap: clamp(16px, 1.15vw, 24px);
    --desktop-page-right-gap: clamp(18px, 1.45vw, 34px);
    gap: var(--desktop-grid-gap);
    padding-right: var(--desktop-page-right-gap);
  }

  .app-shell.desktop-layout.route-mode-active > section.app-route-active,
  .app-shell.desktop-layout.route-mode-active > .admin-panel.app-route-active {
    grid-column: 2 / -1 !important;
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  body.desktop-menu-collapsed .app-shell.desktop-layout.route-mode-active > section.app-route-active,
  body.desktop-menu-collapsed .app-shell.desktop-layout.route-mode-active > .admin-panel.app-route-active {
    grid-column: 1 / -1 !important;
  }

  .app-shell.desktop-layout .panel,
  .app-shell.desktop-layout .daily-note,
  .app-shell.desktop-layout .history-section,
  .app-shell.desktop-layout .summary-card,
  .app-shell.desktop-layout .admin-panel,
  .app-shell.desktop-layout .vehicle-panel {
    padding: clamp(18px, 1.35vw, 26px);
    border-radius: 15px;
  }

  .app-shell.desktop-layout :is(input, select, textarea, button) {
    font-size: 0.84rem;
  }

  .app-shell.desktop-layout :is(label, td, p, .form-hint) {
    font-size: 0.82rem;
  }

  .app-shell.desktop-layout th,
  .app-shell.desktop-layout small {
    font-size: 0.72rem;
  }

  .app-shell.desktop-layout h2,
  .app-shell.desktop-layout .section-title h2 {
    font-size: 1.18rem;
  }

  .app-shell.desktop-layout .eyebrow {
    font-size: 0.72rem;
  }

  .app-shell.desktop-layout .toa-heading h2 {
    font-size: clamp(28px, 2vw, 38px);
  }

  .app-shell.desktop-layout .toa-filters {
    grid-template-columns: minmax(170px, 0.7fr) minmax(170px, 0.7fr) minmax(300px, 1.5fr) auto auto;
    gap: 14px;
  }

  .app-shell.desktop-layout .toa-table {
    min-width: 1300px;
  }

  .app-shell.desktop-layout .toa-table th,
  .app-shell.desktop-layout .toa-table td {
    padding: 15px 13px;
  }

  .app-shell.desktop-layout .toa-document-button {
    min-height: 64px;
  }
}

#vacationPanel .vacation-content {
  gap: 16px;
}

.vacation-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #eff6ff 0%, #ecfeff 100%);
}

.vacation-intro-copy {
  display: grid;
  gap: 5px;
}

.vacation-intro-copy strong {
  color: #10243e;
  font-size: 1.08rem;
}

.vacation-intro-copy span {
  color: #4b617a;
  line-height: 1.45;
}

.vacation-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
}

.vacation-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
  color: #536276;
  font-size: 0.76rem;
  font-weight: 800;
}

.vacation-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.vacation-legend i,
.vacation-day-people i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #94a3b8;
}

.vacation-legend .legend-own i {
  background: #7c3aed;
}

.vacation-legend .legend-team i {
  background: #2563eb;
}

.vacation-legend .legend-saturday i {
  background: var(--tnvora-warning-500);
}

.vacation-legend .legend-holiday i {
  background: var(--tnvora-danger-500);
}

#vacationPanel .vacation-day.vacation-team-highlight {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

#vacationPanel .vacation-day.vacation-focused {
  outline: 3px solid rgba(14, 165, 233, 0.4);
  outline-offset: 3px;
}

.vacation-day-number {
  position: relative;
  z-index: 1;
}

.vacation-day-signals i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.vacation-day-signals .vacation-day-signal.own {
  background: currentColor;
}

.vacation-day-signals .vacation-day-signal.team {
  background: #2563eb;
}

.vacation-day-details {
  margin-top: 10px;
}

.vacation-day-people span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.vacation-day-people i {
  display: inline-block;
  background: #2563eb;
}

.vacation-team-picker-label {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  color: #52637a;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vacation-person-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.vacation-person-copy strong,
.vacation-person-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vacation-person-copy small {
  color: var(--tnvora-gray-500);
}

.vacation-person-count {
  min-width: 38px;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--tnvora-line-blue);
  color: #1d4ed8;
  font-size: 0.74rem;
  font-weight: 900;
  text-align: center;
}

.vacation-team-empty {
  padding: 20px;
  border: 1px dashed #b9c9dc;
  border-radius: 12px;
  color: var(--tnvora-gray-500);
  text-align: center;
}

.vacation-team-empty strong,
.vacation-team-empty span {
  display: block;
}

.vacation-team-empty span {
  margin-top: 4px;
}

.work-order-breaks-field {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  gap: 0;
  margin-top: 12px;
  border: 1px solid #f2c65d;
  border-radius: 15px;
  background: #fffbeb;
}

.work-order-breaks-field > summary {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  color: #5b3b00;
  box-sizing: border-box;
  width: 100%;
}

.work-order-breaks-field > summary::before {
  content: none;
}

.work-order-breaks-field > summary::marker {
  content: "";
  font-size: 0;
}

.work-order-breaks-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--tnvora-warning-500);
  color: var(--tnvora-white);
  font-size: 1.2rem;
  letter-spacing: -0.15em;
}

.work-order-breaks-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.work-order-breaks-copy strong {
  color: #4a3200;
  font-size: 0.9rem;
}

.work-order-breaks-copy small {
  color: #795d22;
  font-size: 0.74rem;
  line-height: 1.35;
}

.work-order-breaks-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e8b949;
  border-radius: 10px;
  background: var(--tnvora-white);
  color: #7c5200;
  font-size: 0.7rem;
}

.work-order-breaks-toggle .when-open {
  display: none;
}

.work-order-breaks-toggle i {
  font-size: 1rem;
  font-style: normal;
  transition: transform 160ms ease;
}

.work-order-breaks-field[open] .work-order-breaks-toggle .when-closed {
  display: none;
}

.work-order-breaks-field[open] .work-order-breaks-toggle .when-open {
  display: inline;
}

.work-order-breaks-field[open] .work-order-breaks-toggle i {
  transform: rotate(180deg);
}

.work-order-breaks-field[open] > summary {
  border-bottom: 1px solid #f2c65d;
}

.work-order-breaks-field .work-order-break-row,
.work-order-breaks-field .work-order-break-extra {
  padding: 12px 14px;
  background: var(--tnvora-white);
}

.work-order-breaks-field .work-order-break-extra {
  padding-top: 0;
}

.guide-role-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin: 10px 0 12px;
}

.guide-role-summary strong,
.guide-role-summary span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.guide-role-summary strong {
  color: var(--tnvora-white);
  background: linear-gradient(135deg, #146c43, #0e5133);
}

.guide-role-summary span {
  color: #15579f;
  background: #eaf4ff;
}

.guide-content {
  display: grid;
  gap: 18px;
  padding-top: 22px;
}

.guide-chapter {
  min-width: 0;
  padding: clamp(18px, 2.5vw, 26px);
  border: 1px solid var(--opsui-border, #d8e1eb);
  border-radius: 18px;
  background: var(--opsui-surface-muted, #f8fafc);
}

.guide-chapter-heading {
  margin-bottom: 17px;
}

.guide-chapter-heading h2 {
  margin: 4px 0 7px;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
}

.guide-chapter-heading > p:last-child {
  max-width: 980px;
  margin: 0;
  color: var(--opsui-muted, var(--tnvora-gray-500));
  line-height: 1.5;
}

.guide-stop-rule {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px;
  border: 2px solid var(--tnvora-danger-600);
  border-radius: 15px;
  background: var(--tnvora-danger-50);
}

.guide-stop-rule strong {
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--tnvora-white);
  background: #b91c1c;
  font-size: 0.82rem;
  font-weight: 950;
  white-space: nowrap;
}

.guide-stop-rule p {
  margin: 0;
  color: #7f1d1d;
  font-weight: 700;
  line-height: 1.48;
}

.guide-safety-role {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
}

.guide-safety-role > b {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 13px;
  color: var(--tnvora-white);
  background: #15263a;
  font-size: 0.8rem;
}

.guide-role-combination-table {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--opsui-border, #d8e1eb);
  background: var(--opsui-surface, #fff);
  padding: 16px;
}

.guide-role-combination-table h3 { margin: 0 0 12px; }
.guide-role-combination-table table { width: 100%; min-width: 680px; border-collapse: collapse; }
.guide-role-combination-table th,
.guide-role-combination-table td {
  padding: 11px 12px;
  border: 1px solid var(--opsui-border, #d8e1eb);
  color: var(--opsui-text, #132238);
  text-align: left;
  vertical-align: top;
}
.guide-role-combination-table th { background: var(--opsui-surface-soft, #edf4fb); }
.guide-role-combination-table .allowed { color: #087443; }
.guide-role-combination-table .forbidden { color: #b4232d; }
html body:not(.theme-dark):not(.dark-theme):not([data-theme="dark"]) .guide-role-combination-table {
  --opsui-surface: #ffffff;
  --opsui-surface-soft: #edf4fb;
  --opsui-border: #c8d7e8;
  --opsui-text: #12243b;
  color: #12243b;
  background: #ffffff;
}
html body:not(.theme-dark):not(.dark-theme):not([data-theme="dark"]) .guide-role-combination-table :is(th, td) {
  color: #12243b;
}
body.theme-dark .guide-role-combination-table,
body.dark-theme .guide-role-combination-table,
body[data-theme="dark"] .guide-role-combination-table {
  --opsui-surface: #121c2a;
  --opsui-surface-soft: #172234;
  --opsui-border: #40536d;
  --opsui-text: #eef5ff;
  color: #eef5ff;
  background: #121c2a;
}
body.theme-dark .guide-role-combination-table .allowed,
body.dark-theme .guide-role-combination-table .allowed { color: #66e0a3; }
body.theme-dark .guide-role-combination-table .forbidden,
body.dark-theme .guide-role-combination-table .forbidden { color: #ff8e97; }

@media (max-width: 720px) {
  .guide-role-combination-table { padding: 10px; }
  .guide-role-combination-table table { min-width: 0; table-layout: fixed; }
  .guide-role-combination-table th,
  .guide-role-combination-table td { padding: 8px 6px; font-size: 0.76rem; overflow-wrap: anywhere; }
  .guide-role-combination-table th:nth-child(1),
  .guide-role-combination-table td:nth-child(1),
  .guide-role-combination-table th:nth-child(2),
  .guide-role-combination-table td:nth-child(2) { width: 22%; }
}

.guide-workflow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-workflow li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--opsui-border, #d8e1eb);
  border-radius: 14px;
  background: var(--opsui-surface, var(--tnvora-white));
}

.guide-workflow li > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: var(--tnvora-white);
  background: #2376d8;
  font-weight: 950;
}

.guide-workflow strong {
  display: block;
  margin: 1px 0 4px;
}

.guide-workflow p {
  margin: 0;
  color: var(--opsui-muted, var(--tnvora-gray-500));
  line-height: 1.45;
}

.guide-animation-card {
  border-color: #7eb9ee;
  background:
    radial-gradient(circle at top right, rgba(26, 125, 231, 0.16), transparent 42%),
    var(--opsui-surface-muted, #f8fafc);
}

.guide-animation-open {
  width: min(100%, 420px);
  min-height: 50px;
}

.guide-animation-safety {
  max-width: 980px;
  margin: 14px 0 0;
  color: var(--opsui-muted, #4b6078);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
}

.guide-workflow-animation-dialog {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #07131f;
}

.guide-workflow-animation-dialog::backdrop {
  background: rgba(3, 11, 19, 0.86);
}

.guide-workflow-animation-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.guide-workflow-animation-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: max(7px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 7px max(10px, env(safe-area-inset-left));
  background: #071929;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.guide-workflow-animation-toolbar strong,
.guide-workflow-animation-toolbar button {
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.guide-workflow-animation-toolbar strong {
  max-width: min(65vw, 620px);
  padding: 10px 14px;
  border-radius: 12px;
  color: #ffffff;
  background: #102b43;
  font-size: 0.84rem;
  line-height: 1.35;
}

.guide-workflow-animation-toolbar button {
  min-width: 168px;
  min-height: 44px;
  padding-inline: 16px;
  white-space: nowrap;
  color: #10243b;
  background: #ffffff;
}

.guide-workflow-animation-dialog iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #ffffff;
}

.guide-sms-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  margin-top: 13px;
  padding: 17px;
  border: 1px solid #93c5fd;
  border-radius: 15px;
  background: #eff8ff;
}

.guide-sms-note > span {
  display: grid;
  min-width: 54px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  color: var(--tnvora-white);
  background: #2376d8;
  font-size: 0.78rem;
  font-weight: 950;
}

.guide-sms-note h3,
.guide-sms-note p {
  margin: 0;
}

.guide-sms-note p {
  margin-top: 5px;
  color: #38516c;
  line-height: 1.5;
}

.guide-route-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.guide-route-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: var(--tnvora-white);
  background: #2376d8;
  font-size: 0.78rem;
  font-weight: 950;
}

.guide-expand-label {
  color: #15579f;
  font-size: 0.76rem;
  font-weight: 900;
}

.guide-route-body {
  padding: 0 15px 16px 64px;
  border-top: 1px solid var(--opsui-border, #e2e8f0);
}

.guide-route-body > p {
  margin: 14px 0 10px;
  font-weight: 750;
  line-height: 1.48;
}

.guide-route-body ul {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--opsui-muted, var(--tnvora-gray-500));
  line-height: 1.45;
}

.guide-final-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 2px solid #16a34a;
  border-radius: 16px;
  color: #14532d;
  background: #f0fdf4;
}

.guide-final-check strong {
  padding: 8px 11px;
  border-radius: 9px;
  color: var(--tnvora-white);
  background: #168a4a;
  white-space: nowrap;
}

.guide-final-check p { margin: 0; font-weight: 750; line-height: 1.48; }

.personal-note-item.note-archived,
body.theme-dark .personal-note-item.note-archived {
  border-color: var(--opsui-border, #94a3b8);
  background: var(--opsui-surface-muted, #eef2f6);
  box-shadow: none;
  opacity: 0.82;
  filter: saturate(0.55);
}

.personal-note-workflow.archived,
body.theme-dark .personal-note-workflow.archived {
  border-color: #94a3b8;
  color: var(--opsui-text, #334155);
  background: var(--opsui-surface-muted, #e2e8f0);
}

.guidance-toggle-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.13);
}

.context-guidance {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  width: min(100%, var(--ops-page-width, 1480px));
  min-width: 0;
  margin: 0 auto;
  padding: 13px 15px;
  border: 1px solid #93c5fd;
  border-radius: 16px;
  color: #0f2945;
  background: linear-gradient(135deg, #eff8ff, #e8f5ff);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.1);
}

.context-guidance[hidden] {
  display: none !important;
}

.context-guidance-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: var(--tnvora-white);
  background: #2376d8;
  font-size: 1.1rem;
  font-weight: 950;
}

.context-guidance-copy {
  min-width: 0;
}

.context-guidance-copy strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.92rem;
}

.context-guidance-copy p {
  margin: 0;
  color: #38516c;
  font-size: 0.84rem;
  line-height: 1.4;
}

.context-guidance-action {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #2376d8;
  border-radius: 10px;
  color: var(--tnvora-white);
  background: #2376d8;
  font-weight: 850;
  white-space: nowrap;
}

.context-guidance-close {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  color: #34506c;
  background: rgba(255, 255, 255, 0.72);
  font-size: 1.3rem;
}

.guide-panel {
  width: min(100%, var(--ops-page-width, 1480px));
  min-width: 0;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--opsui-border, var(--tnvora-gray-300));
  border-radius: 20px;
  color: var(--opsui-text, #132033);
  background: var(--opsui-surface, var(--tnvora-white));
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.1);
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 38px);
  align-items: center;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--opsui-border, #dbe3ec);
}

.guide-brand {
  display: grid;
  min-height: 126px;
  padding: 22px;
  place-items: center;
  border: 1px solid var(--tnvora-line-blue);
  border-radius: 18px;
  background: var(--tnvora-surface-cool);
}

.guide-brand img {
  display: block;
  width: min(100%, 178px);
  max-height: 94px;
  object-fit: contain;
}

.guide-hero h2 {
  margin: 5px 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.guide-hero p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--opsui-muted, var(--tnvora-gray-500));
  line-height: 1.55;
}

.guide-steps article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  min-width: 0;
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--opsui-border, #d8e1eb);
  border-radius: 16px;
  background: var(--opsui-surface-muted, #f8fafc);
}

.guide-steps article > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--tnvora-white);
  background: #2376d8;
  font-size: 0.84rem;
  font-weight: 950;
}

.guide-steps h3 {
  margin: 2px 0 7px;
  font-size: 1.02rem;
}

.guide-steps p {
  min-height: 78px;
  margin: 0 0 13px;
  color: var(--opsui-muted, var(--tnvora-gray-500));
  font-size: 0.88rem;
  line-height: 1.48;
}

.guide-tips-info {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #86efac;
  border-radius: 16px;
  background: #f0fdf4;
}

.guidance-toggle-preview {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: #ecfdf5;
  background: #168a4a;
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
}

.guidance-toggle-preview span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ade80;
}

.guide-tips-info h3,
.guide-tips-info p {
  margin: 0;
}

.guide-tips-info p {
  margin-top: 4px;
  color: #37614a;
  line-height: 1.45;
}

.personal-notes-list {
  display: grid;
  gap: 18px;
}

.personal-note-section {
  display: grid;
  gap: 10px;
}

.personal-note-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--opsui-border, #dbe3ec);
}

.personal-note-section-heading h3 {
  margin: 0;
}

.personal-note-section-heading span {
  display: grid;
  min-width: 34px;
  min-height: 30px;
  padding: 4px 10px;
  place-items: center;
  border-radius: 999px;
  color: #15579f;
  background: #eaf4ff;
  font-weight: 900;
}

.personal-note-item.note-archived {
  border-color: var(--opsui-border, var(--tnvora-gray-300));
  opacity: 0.82;
  box-shadow: none;
  filter: saturate(0.55);
}

.personal-note-workflow.archived {
  color: #475569;
  background: #e2e8f0;
}

.note-archive-trigger {
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}

.note-archive-trigger:hover {
  outline: 2px solid rgba(37, 99, 235, 0.2);
  outline-offset: -2px;
}

:root {
  --selection-panel: #f4f7fb;
  --selection-card: var(--tnvora-white);
  --selection-card-hover: #f9fbff;
  --selection-border: #d8e1ec;
  --selection-border-strong: #a9c9ee;
  --selection-text: #142033;
  --selection-muted: #68778b;
  --selection-accent: var(--blue);
  --selection-accent-soft: #eaf3ff;
  --selection-danger: #c7353d;
  --selection-danger-soft: var(--tnvora-danger-50);
  --selection-favorite: #a86f00;
  --selection-favorite-soft: #fff7dc;
}

#leaderOperationsPanel {
  width: min(100%, var(--ops-page-width, 1440px));
  margin-right: auto;
  margin-left: auto;
  padding: clamp(14px, 2vw, 22px);
  border-color: var(--opsui-border);
  border-radius: var(--opsui-radius);
  color: var(--opsui-text);
  background: var(--opsui-surface);
  box-shadow: var(--ops-shadow);
}

.leader-operations-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--opsui-border);
}

.leader-operations-heading h2,
.leader-operations-heading p {
  margin: 0;
}

.leader-operations-heading h2 {
  margin-top: 3px;
  color: var(--opsui-text);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.leader-operations-heading > div > p:last-child {
  margin-top: 5px;
  color: var(--opsui-muted);
  font-size: 0.76rem;
}

.leader-working-count {
  display: inline-grid;
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 36px;
  padding: 6px 11px;
  place-items: center;
  border: 1px solid rgba(74, 222, 128, 0.42);
  border-radius: 999px;
  color: #dcfce7;
  background: #12633f;
  font-size: 0.86rem;
  font-weight: 950;
}

#leaderOperationsPanel .leader-available-technicians-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

#leaderOperationsPanel .leader-technician-location {
  min-width: 0;
  min-height: 82px;
  padding: 12px 13px;
  gap: 4px 11px;
}

#leaderOperationsPanel .leader-technician-location > i {
  grid-row: 1 / span 3;
  margin-top: 6px;
}

#leaderOperationsPanel .leader-technician-location-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
}

#leaderOperationsPanel .leader-technician-location strong {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

#leaderOperationsPanel .leader-technician-location b,
#leaderOperationsPanel .leader-technician-location small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#leaderOperationsPanel .leader-technician-location small {
  color: #bbf7d0;
  font-weight: 800;
}

@media (min-width: 621px) and (max-width: 900px) {
  #technicianOverviewPanel .technician-overview-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
  }

  #technicianOverviewPanel .technician-overview-heading > *,
  #technicianOverviewPanel .technician-overview-period,
  #technicianOverviewPanel .technician-month-navigation {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  #technicianOverviewPanel .technician-month-navigation {
    grid-template-columns: 44px minmax(0, 1.35fr) minmax(0, 0.75fr) 44px;
  }

  #technicianOverviewPanel .technician-month-navigation button,
  #technicianOverviewPanel .technician-month-navigation select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  body:not(.desktop-layout-active) .topbar {
    padding-right: max(14px, env(safe-area-inset-right));
    padding-left: max(14px, env(safe-area-inset-left));
  }
}

/* V10.97 — końcowa kontrola kontrastu przycisków podglądu w obu motywach */
.admin-live-screen-actions .danger-action {
  border-color: #b4232d !important;
  color: #ffffff !important;
  background: #b4232d !important;
}

.admin-live-screen-actions .danger-action:hover,
.admin-live-screen-actions .danger-action:focus-visible {
  border-color: #8f1821 !important;
  background: #8f1821 !important;
}

.support-live-request-actions .primary-button {
  border-color: #1269d7 !important;
  color: #ffffff !important;
  background: #1269d7 !important;
}

.support-live-request-actions .primary-button:hover,
.support-live-request-actions .primary-button:focus-visible {
  border-color: #0b55b4 !important;
  background: #0b55b4 !important;
}

body:is(.theme-dark, .dark-theme) .support-live-request-actions .secondary-button {
  border-color: #6f829d !important;
  color: #f8fbff !important;
  background: #24364e !important;
}

.analytics-section.employee-hours-ranking {
  position: relative;
  overflow: hidden;
  border-color: rgba(34, 156, 255, 0.52);
  background:
    radial-gradient(circle at 92% 0%, rgba(35, 134, 255, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(12, 36, 60, 0.98), rgba(9, 24, 42, 0.94));
  box-shadow: 0 18px 40px rgba(2, 12, 26, 0.28);
}

.employee-hours-ranking > h4,
.employee-earnings-ranking > h4 {
  font-size: 1.16rem;
  letter-spacing: 0.01em;
}

.employee-hours-ranking > h4 .employee-hours-sort-label {
  display: inline-flex;
  margin-left: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #175a9b;
  background: rgba(35, 134, 255, 0.13);
  font-size: 0.62rem;
  font-weight: 950;
  vertical-align: middle;
}

.employee-rank-row td {
  padding-top: 13px;
  padding-bottom: 13px;
}

.employee-rank-row.rank-1 {
  background: linear-gradient(90deg, rgba(255, 190, 45, 0.16), rgba(255, 190, 45, 0.025) 62%);
}

.employee-rank-row.rank-2 {
  background: linear-gradient(90deg, rgba(169, 190, 214, 0.13), rgba(169, 190, 214, 0.02) 62%);
}

.employee-rank-row.rank-3 {
  background: linear-gradient(90deg, rgba(201, 125, 75, 0.14), rgba(201, 125, 75, 0.02) 62%);
}

.analytics-rank.employee-rank-place {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 0.86rem;
  box-shadow: 0 8px 18px rgba(1, 12, 25, 0.22);
}

.employee-rank-place.rank-1 {
  border-color: rgba(255, 202, 76, 0.72);
  color: #2c2104;
  background: linear-gradient(145deg, #ffe58c, #dca91e);
}

.employee-rank-place.rank-2 {
  border-color: rgba(215, 229, 244, 0.7);
  color: #213044;
  background: linear-gradient(145deg, #eaf2fb, #9fb3ca);
}

.employee-rank-place.rank-3 {
  border-color: rgba(224, 151, 97, 0.72);
  color: #2c160a;
  background: linear-gradient(145deg, #f0b284, #b96d38);
}

.employee-hours-person {
  display: grid;
  grid-template-columns: minmax(160px, 0.55fr) minmax(140px, 1fr) auto;
  gap: 3px 12px;
  align-items: center;
  min-width: 360px;
}

.employee-hours-person > b {
  grid-row: 1;
}

.employee-hours-person > small {
  grid-column: 1;
  grid-row: 2;
  color: var(--muted);
  font-size: 0.66rem;
}

.employee-hours-share {
  grid-column: 2;
  grid-row: 1 / span 2;
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.employee-hours-share > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2386ff, #21c875);
  box-shadow: 0 0 14px rgba(35, 134, 255, 0.4);
}

.employee-hours-person > em {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: #8fb8e4;
  font-size: 0.67rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.employee-hours-total {
  color: var(--tnvora-white);
  font-size: 1.02rem;
  font-weight: 1000;
  white-space: nowrap;
}

.analytics-section.employee-earnings-ranking {
  border-color: rgba(33, 200, 117, 0.38);
  background:
    radial-gradient(circle at 92% 0%, rgba(33, 200, 117, 0.14), transparent 34%),
    rgba(13, 28, 46, 0.9);
}

.employee-earnings-total {
  color: #7fe2ad;
  font-size: 0.98rem;
  font-weight: 1000;
  white-space: nowrap;
}

.employee-missing-rate {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 9px;
  color: #ffd183;
  background: rgba(244, 196, 48, 0.13);
  font-size: 0.72rem;
  font-weight: 900;
}

.certificate-import-launch {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.certificate-import-launch[hidden] {
  display: none;
}

.certificate-import-launch small {
  color: var(--muted);
  line-height: 1.45;
}

.certificate-import-head,
.certificate-import-actions,
.certificate-import-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.certificate-import-head {
  position: sticky;
  top: calc(-1 * clamp(18px, 2vw, 28px));
  z-index: 4;
  margin: calc(-1 * clamp(18px, 2vw, 28px)) calc(-1 * clamp(18px, 2vw, 28px)) 0;
  padding: 20px clamp(18px, 2vw, 28px);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px);
}

.certificate-import-head h3,
.certificate-import-section h4,
.certificate-import-head p {
  margin: 0;
}

.certificate-import-head h3 {
  margin: 3px 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.certificate-import-head p:last-child,
.certificate-import-section-title span {
  color: var(--muted);
}

.certificate-import-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.certificate-import-summary article {
  display: grid;
  gap: 6px;
  min-height: 86px;
  align-content: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 92%, #2587ff 8%);
}

.certificate-import-summary article span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.certificate-import-summary article b {
  font-size: 1.35rem;
}

.certificate-import-summary article.has-warning {
  border-color: rgba(239, 173, 55, 0.5);
  background: rgba(239, 173, 55, 0.12);
}

.certificate-import-summary article.is-ready {
  border-color: rgba(31, 189, 105, 0.45);
  background: rgba(31, 189, 105, 0.1);
}

.certificate-import-month-choice {
  display: grid;
  grid-template-columns: minmax(190px, 0.35fr) minmax(260px, 0.65fr);
  align-items: center;
  gap: 8px 14px;
  padding: 15px 17px;
  border: 1px solid rgba(37, 135, 255, 0.45);
  border-radius: 14px;
  background: rgba(37, 135, 255, 0.09);
}

.certificate-import-month-choice > span {
  font-weight: 900;
}

.certificate-import-month-choice > small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.certificate-import-notice {
  margin: 0;
  padding: 13px 15px;
  border-left: 4px solid #2587ff;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(37, 135, 255, 0.1);
  line-height: 1.5;
}

.certificate-import-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 97%, #2587ff 3%);
}

.certificate-import-section-title h4 {
  font-size: 1rem;
}

.certificate-import-section-title span {
  font-size: 0.78rem;
  text-align: right;
}

.certificate-import-mappings {
  display: grid;
  gap: 8px;
}

.certificate-import-map-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 30px minmax(260px, 1.35fr) minmax(130px, auto);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.certificate-import-map-row > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.certificate-import-map-row > span small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.certificate-import-map-row > span b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.certificate-import-map-row > i {
  color: #2587ff;
  font-style: normal;
  font-weight: 950;
  text-align: center;
}

.certificate-import-preview-wrap {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.certificate-import-preview {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.certificate-import-preview th,
.certificate-import-preview td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.certificate-import-preview th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 90%, #2587ff 10%);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.certificate-import-preview td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.certificate-import-preview tr.has-warning {
  background: rgba(200, 62, 69, 0.045);
}

.certificate-import-actions {
  position: sticky;
  bottom: calc(-1 * clamp(18px, 2vw, 28px));
  z-index: 4;
  margin: 0 calc(-1 * clamp(18px, 2vw, 28px)) calc(-1 * clamp(18px, 2vw, 28px));
  padding: 15px clamp(18px, 2vw, 28px);
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px);
}

.app-install-panel {
  width: min(100%, var(--ops-page-width, 1480px));
  min-width: 0;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--selection-border, #d8e1ec);
  border-radius: 20px;
  color: var(--selection-text, #142033);
  background: var(--selection-card, var(--tnvora-white));
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.1);
}

.app-install-hero {
  display: grid;
  grid-template-columns: minmax(120px, 190px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--selection-border, #d8e1ec);
}

.app-install-hero img {
  display: block;
  width: 100%;
  max-height: 112px;
  object-fit: contain;
}

.app-install-hero h2 {
  margin: 5px 0 8px;
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
}

.app-install-hero p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--selection-muted, #68778b);
  line-height: 1.55;
}

.app-install-steps {
  margin: 14px 0 0;
  padding: 13px 13px 13px 32px;
  border: 1px solid var(--selection-border, #d8e1ec);
  border-radius: 12px;
  color: var(--selection-text, #142033);
  background: var(--selection-card, var(--tnvora-white));
  font-size: 0.86rem;
  line-height: 1.52;
}

.app-install-online-note {
  margin: 16px 0 0;
  padding: 13px 15px;
  border-left: 4px solid #d89500;
  border-radius: 10px;
  color: var(--selection-text, #142033);
  background: #fff8e5;
  line-height: 1.45;
}

.admin-user-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

html body .login-logo {
  width: 100%;
  min-height: 112px;
  margin: -4px auto 12px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

:root {
  --tnvora-navy: #0b2633;
  --tnvora-blue: #126f94;
  --tnvora-turquoise: #1aa79c;
  --tnvora-mint: #dff7f4;
}

.login-logo {
  width: 100%;
  min-height: 214px;
  margin: -12px auto 2px;
  display: grid;
  place-items: center;
}

.login-logo img {
  width: min(100%, 380px);
  max-width: 380px;
  max-height: 210px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(7, 70, 88, 0.15));
}

.login-product-name {
  max-width: 410px;
  margin: 0 auto 24px;
  color: var(--tnvora-navy);
  font-size: clamp(0.72rem, 2vw, 0.88rem);
  line-height: 1.45;
  letter-spacing: 0.13em;
  text-align: center;
}

.login-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin: 20px -4px 8px;
  padding-top: 16px;
  border-top: 1px solid #d8e6ec;
  font-size: 0.75rem;
}

.cookie-consent-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--tnvora-navy);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.cookie-consent-brand img {
  width: 64px;
  height: 52px;
  padding: 3px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--tnvora-white);
}

.cookie-consent-copy h2 {
  margin: 3px 0 12px;
  color: var(--tnvora-navy);
  font-size: clamp(1.55rem, 4vw, 2.15rem);
}

.cookie-consent-copy > p:last-child {
  margin: 0;
  color: #536879;
  line-height: 1.65;
}

.cookie-consent-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.cookie-preferences {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #cfe1e7;
  border-radius: 18px;
  background: #f3fafb;
}

.cookie-preference-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 4px;
  border-bottom: 1px solid #dae7eb;
}

.cookie-preference-row:last-of-type {
  border-bottom: 0;
}

.cookie-preference-row span {
  display: grid;
  gap: 3px;
}

.cookie-preference-row strong {
  color: #142938;
}

.cookie-preference-row small {
  color: #627887;
  line-height: 1.4;
}

.cookie-consent-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 20px;
  font-size: 0.78rem;
}

.cookie-consent-footer a {
  color: #126f94;
  font-weight: 800;
}

.pl-date-control {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 7px;
  align-items: stretch;
}

.pl-date-control .pl-date-native {
  position: absolute !important;
  inset: auto !important;
  width: 1px !important;
  min-width: 0 !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.pl-date-control .pl-date-display {
  width: 100%;
  min-width: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.025em;
}

.pl-date-picker::before {
  position: absolute;
  top: 12px;
  left: 13px;
  width: 16px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 3px;
  content: "";
}

.pl-date-picker::after {
  position: absolute;
  top: 16px;
  left: 13px;
  width: 20px;
  height: 2px;
  background: currentColor;
  box-shadow: 4px -7px 0 -0.5px currentColor, 12px -7px 0 -0.5px currentColor;
  content: "";
}

.pl-date-picker:hover,
.pl-date-picker:focus-visible {
  border-color: var(--opsui-primary);
  color: var(--opsui-primary);
  background: var(--opsui-primary-soft);
}

.pl-date-picker:disabled,
.pl-date-display:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.signature-required-notice {
  display: grid;
  gap: 5px;
  padding: 15px 17px;
  border: 2px solid var(--tnvora-danger-600);
  border-radius: var(--opsui-radius);
  color: #7f1d1d;
  background: #fef2f2;
  box-shadow: 0 10px 28px rgba(185, 28, 28, 0.16);
}

.signature-required-notice[hidden] {
  display: none !important;
}

.signature-required-notice strong {
  font-size: 0.86rem;
  letter-spacing: 0.025em;
}

.signature-required-notice span {
  font-size: 0.72rem;
  line-height: 1.45;
}

@media (min-width: 980px) {
  .app-shell.desktop-layout.admin-home-layout #adminOverviewPanel {
    grid-column: 2 / -1 !important;
    grid-row: 2 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .app-shell.desktop-layout.admin-home-layout #dailyNote {
    grid-column: 2 / span 6 !important;
    grid-row: 3 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .app-shell.desktop-layout.admin-home-layout #summaryPanel,
  .app-shell.desktop-layout.admin-home-layout .summary-card {
    grid-column: 8 / -1 !important;
    grid-row: 3 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .app-shell.desktop-layout.admin-home-layout #activeWorkOrdersPanel,
  .app-shell.desktop-layout.admin-home-layout #activeWorkOrdersPanel.boss-pending-home-slot {
    grid-column: 2 / -1 !important;
    grid-row: 4 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .app-shell.desktop-layout.admin-home-layout #bossDashboardPanel {
    grid-column: 2 / -1 !important;
    grid-row: 5 !important;
  }

  .app-shell.desktop-layout.admin-home-layout #deadlineAlerts {
    display: none !important;
  }
}

.technician-overview-panel {
  display: grid;
  gap: 18px;
  overflow: hidden;
}

.technician-overview-panel[hidden] {
  display: none !important;
}

.technician-overview-panel.is-loading-data > :not(.technician-overview-heading):not(.technician-overview-loading) {
  display: none !important;
}

.technician-overview-loading {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 118px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--opsui-primary, #1479f7) 34%, var(--opsui-border, var(--border)));
  border-radius: 16px;
  background: color-mix(in srgb, var(--opsui-surface-muted, var(--surface)) 91%, var(--opsui-primary, #1479f7) 9%);
  color: var(--opsui-text, var(--text));
}

.technician-overview-loading[hidden] {
  display: none;
}

.technician-overview-loading strong,
.technician-overview-loading p {
  margin: 0;
}

.technician-overview-loading strong {
  display: block;
  font-size: 1rem;
  font-weight: 900;
}

.technician-overview-loading p {
  margin-top: 4px;
  color: var(--opsui-muted, var(--muted));
  line-height: 1.45;
}

.technician-overview-loading-spinner {
  width: 34px;
  height: 34px;
  border: 4px solid color-mix(in srgb, var(--opsui-primary, #1479f7) 20%, transparent);
  border-top-color: var(--opsui-primary, #1479f7);
  border-radius: 50%;
  animation: technician-overview-spin .8s linear infinite;
}

@keyframes technician-overview-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .technician-overview-loading-spinner { animation: none; }
}

.technician-overview-heading,
.technician-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.technician-overview-heading h2,
.technician-section-heading h3 {
  margin: 3px 0 5px;
}

.technician-overview-heading > div > p:last-child,
.technician-section-heading > p {
  margin: 0;
  color: var(--opsui-muted, #7690ad);
  line-height: 1.45;
}

.technician-section-heading > p {
  max-width: 390px;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
}

.technician-overview-period {
  display: grid;
  min-width: min(100%, 190px);
  gap: 6px;
  color: var(--opsui-muted, #7690ad);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.technician-month-navigation {
  display: grid;
  grid-template-columns: 42px minmax(126px, 1fr) minmax(86px, 0.7fr) 42px;
  gap: 7px;
  align-items: center;
}

.technician-year-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.technician-year-summary > div {
  position: relative;
  padding: 17px 18px 16px 21px;
  overflow: hidden;
  border: 1px solid #b9d9f8;
  border-radius: 15px;
  background: linear-gradient(135deg, #edf7ff, var(--tnvora-surface-cool));
}

.technician-year-summary > div::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #1677e8;
  content: "";
}

.technician-year-summary > div:last-child::before { background: var(--tnvora-warning-500); }

.technician-year-summary span,
.technician-year-summary strong,
.technician-year-summary small { display: block; }

.technician-year-summary span {
  color: #526b86;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.technician-year-summary strong {
  margin-top: 6px;
  color: #0f172a;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.technician-year-summary small {
  margin-top: 4px;
  color: var(--tnvora-gray-500);
  font-size: 0.7rem;
}

.technician-priority-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--tnvora-white);
  background: var(--tnvora-danger-600);
  font-size: 1.15rem;
  font-weight: 950;
}

.technician-secret-value {
  display: none;
  letter-spacing: -0.03em;
}

[hidden] {
  display: none !important;
}

.sound-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 18px;
  transform: translate(-50%, -50%);
}

.sound-icon::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 5px;
  width: 7px;
  height: 8px;
  border-radius: 3px 0 0 3px;
  background: currentColor;
  box-shadow: 6px -4px 0 -1px currentColor, 6px 4px 0 -1px currentColor;
}

.sound-icon::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 2px;
  width: 9px;
  height: 14px;
  border: 2px solid currentColor;
  border-left: 0;
  border-radius: 0 999px 999px 0;
}

.brand {
  gap: 13px;
  min-width: 0;
}

.caps-lock-warning {
  display: block;
  margin-top: 7px;
  color: #b4232c;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.035em;
}

.admin-user-create-heading,
.admin-user-panel-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-panel-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 10px;
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.16);
  font-size: 1rem;
  font-weight: 950;
}

.admin-user-create-fields label {
  min-width: 0;
}

.boss-role-option {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 9px;
  color: var(--tnvora-line-blue) !important;
  background: rgba(37, 99, 235, 0.12);
  font-size: 0.72rem;
  font-weight: 850;
}

.admin-user-create-submit {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding-top: 2px;
}

.admin-user-row {
  grid-template-columns: 1fr !important;
  gap: 12px;
  padding: 0;
  overflow: hidden;
  border-color: rgba(96, 165, 250, 0.18);
  background: rgba(15, 23, 42, 0.26);
}

.admin-user-facts > div {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(100px, auto);
  gap: 10px;
  align-items: center;
}

.admin-user-panel-note {
  margin: 12px 0 0;
  color: #8fa1b8;
  font-size: 0.7rem;
}

.admin-user-access-panel {
  grid-column: 1 / -1;
}

.admin-user-access-panel .admin-user-actions {
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  margin-top: 12px;
}

.admin-user-danger-zone {
  grid-column: 1 / -1;
  padding: 0;
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(127, 29, 29, 0.08);
}

.admin-user-danger-zone > p {
  margin: 0;
  padding: 0 14px 10px;
  color: #a99aa0;
  font-size: 0.66rem;
}

.admin-user-danger-actions {
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  padding: 0 14px 14px;
}

:root {
  --ui-page-gutter: clamp(10px, 1.25vw, 24px);
  --ui-panel-gap: clamp(10px, 1vw, 18px);
  --ui-touch-target: 42px;
}

.admin-user-create-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-user-create-fields > label:nth-child(n) {
  grid-column: auto;
}

.admin-user-facts dd {
  overflow-wrap: anywhere;
}

.logo-frame {
  display: grid;
  width: 112px;
  height: 64px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #dce2e8;
  border-radius: 17px;
  background: white;
  box-shadow: 0 9px 24px rgba(16, 23, 34, 0.1);
}

.logo-frame img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--blue);
  font-size: clamp(0.78rem, 2.4vw, 0.92rem);
  font-weight: 900;
  letter-spacing: 0.13em;
}

.user-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22b573;
  box-shadow: 0 0 0 3px rgba(34, 181, 115, 0.13);
}

.summary-heading {
  cursor: pointer;
}

.top-technicians-panel {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.top-technician-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  color: var(--tnvora-white);
  font-weight: 850;
}

.top-technician-row + .top-technician-row {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.top-technician-row span {
  color: #c8d7ef;
  font-size: 0.8rem;
}

.daily-note {
  margin: 24px 0 18px;
  padding: 20px 22px;
  border: 1px solid #c9def7;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7fbff, #eaf4ff);
  box-shadow: 0 12px 28px rgba(16, 23, 34, 0.07);
}

.daily-note-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.daily-note-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-weight: 900;
}

.daily-note-text {
  margin: 14px 0 0;
  color: #20364f;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: pre-wrap;
}

.daily-note-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.daily-note-actions span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.farm-info-box {
  padding: 16px;
  border: 1px solid #cfe0f4;
  border-radius: 18px;
  background: #f3f8ff;
}

.farm-info-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #cfe0f4;
  border-radius: 15px;
  color: #0057ad;
  background: #f3f8ff;
  font-size: 0.85rem;
  font-weight: 900;
  text-align: left;
}

.farm-info-toggle.active {
  background: #e8f3ff;
}

.farm-info-toggle b {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--tnvora-white);
  background: #d6323c;
  font-size: 0.65rem;
}

.farm-info-heading,
.admin-farm-heading,
.admin-farm-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.farm-info-heading h3,
.admin-farm-heading h4 {
  margin: 0;
}

.farm-info-text {
  margin: 10px 0 14px;
  color: #33445c;
  line-height: 1.45;
  white-space: pre-wrap;
}

.park-document-library {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #c9d9eb;
}

.park-document-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.park-document-heading h4 {
  margin: 2px 0 5px;
  color: #10233d;
  font-size: 1rem;
}

.park-document-heading p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: #52657d;
  font-size: .78rem;
  line-height: 1.45;
}

.park-document-limit {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #b8d6f4;
  border-radius: 8px;
  color: #075bab;
  background: #e5f2ff;
  font-size: .68rem;
  font-weight: 900;
}

.park-document-limit.near-limit {
  border-color: #e5a0a5;
  color: #9d202a;
  background: #fff0f1;
}

.park-document-form {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.4fr) minmax(220px, .8fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 16px;
  padding: 15px;
  border: 1px solid #bfd4ea;
  border-radius: 10px;
  background: #fff;
}

.park-document-form textarea {
  min-height: 74px;
  resize: vertical;
}

.park-document-file-picker {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.park-document-file-picker input {
  width: 100%;
  padding: 8px;
  border-style: dashed;
  background: #f5f9fe;
}

.park-document-file-picker small {
  overflow: hidden;
  color: #5e7188;
  font-size: .65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.park-document-form .error-message {
  grid-column: 1 / -1;
  margin: 0;
}

.park-document-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.park-document-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px;
  border: 1px solid #c7d9ec;
  border-left: 4px solid #1479f7;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(29, 65, 105, .06);
}

.park-document-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  color: #fff;
  background: #d6323c;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .04em;
}

.park-document-copy {
  min-width: 0;
}

.park-document-copy h5,
.park-document-copy p,
.park-document-copy small {
  overflow-wrap: anywhere;
}

.park-document-copy h5 {
  margin: 0 0 4px;
  color: #10233d;
  font-size: .86rem;
}

.park-document-copy p {
  margin: 0 0 5px;
  color: #40546d;
  font-size: .74rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

.park-document-copy small {
  display: block;
  margin-top: 2px;
  color: #677a91;
  font-size: .64rem;
}

.park-document-actions {
  display: flex;
  gap: 8px;
}

.park-document-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 86px;
  padding: 16px;
  border: 1px dashed #bbcee2;
  border-radius: 9px;
  color: #42566e;
  background: rgba(255,255,255,.62);
  text-align: left;
}

.park-document-state.empty > span {
  padding: 8px;
  border-radius: 7px;
  color: #a3242d;
  background: #fde9eb;
  font-size: .64rem;
  font-weight: 950;
}

.park-document-state small {
  display: block;
  margin-top: 3px;
  color: #6b7e95;
}

.park-document-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid #c8d9ea;
  border-top-color: #1479f7;
  border-radius: 50%;
  animation: park-document-spin .8s linear infinite;
}

@keyframes park-document-spin { to { transform: rotate(360deg); } }

body.theme-dark .park-document-library { border-color: #334860; }
body.theme-dark .park-document-heading h4,
body.theme-dark .park-document-copy h5 { color: #eef6ff; }
body.theme-dark .park-document-heading p:not(.eyebrow),
body.theme-dark .park-document-copy p { color: #b9c8d9; }
body.theme-dark .park-document-limit { border-color: #315f8d; color: #9fd0ff; background: #15304b; }
body.theme-dark .park-document-limit.near-limit { border-color: #8f3c46; color: #ffc0c6; background: #3b1b24; }
body.theme-dark .park-document-form,
body.theme-dark .park-document-card { border-color: #344d67; background: #152337; box-shadow: none; }
body.theme-dark .park-document-card { border-left-color: #38a8ff; }
body.theme-dark .park-document-file-picker input { border-color: #48627e; color: #eef6ff; background: #101d2e; }
body.theme-dark .park-document-file-picker small,
body.theme-dark .park-document-copy small,
body.theme-dark .park-document-state small { color: #9eb0c5; }
body.theme-dark .park-document-state { border-color: #405a75; color: #e7f1fc; background: #111e30; }

.summary-glow {
  position: absolute;
  top: -65px;
  right: -45px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(20, 121, 247, 0.34);
  filter: blur(30px);
}

.summary-label {
  margin-bottom: 6px;
  color: #9cabc0;
  font-size: 0.78rem;
  font-weight: 600;
}

#monthTotal {
  font-size: clamp(1.75rem, 6vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.045em;
}

#monthPicker {
  max-width: 150px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 23px;
  border: 1px solid #dfe5eb;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 14px 35px rgba(16, 23, 34, 0.08);
}

.section-title {
  margin-bottom: 21px;
}

.section-title,
.admin-users-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-collapse {
  min-width: 82px;
  border: 1px solid rgba(0, 91, 187, 0.16);
  border-radius: 999px;
  color: #0756a8;
  background: linear-gradient(135deg, #eef6ff, var(--tnvora-white));
  box-shadow: 0 8px 18px rgba(0, 91, 187, 0.12);
  white-space: nowrap;
}

.vehicle-panel.collapsed .vehicle-content {
  display: none !important;
}

.history-section.collapsed .history-content {
  display: none !important;
}

.vehicle-content {
  display: grid;
  gap: 18px;
}

.user-cert-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(0, 91, 187, 0.14);
  border-radius: 18px;
  background: #f4f9ff;
}

.remember-password {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 9px;
  color: #526174;
  font-size: 0.78rem;
}

.password-field {
  position: relative;
  display: block;
}

.include-current-user {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #cfe0f5;
  border-radius: 14px;
  background: #f4f9ff;
  color: #26364a;
  font-size: 0.78rem;
  font-weight: 900;
}

.tool-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vehicle-list {
  display: grid;
  gap: 10px;
}

.vehicle-cost-export {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(0, 91, 187, 0.14);
  border-radius: 16px;
  background: rgba(244, 249, 255, 0.86);
}

.vehicle-cost-export .section-title {
  padding: 0;
}

.vehicle-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-left: 7px solid var(--vehicle-color, #22c55e);
  border-radius: 14px;
  background: var(--tnvora-white);
}

.vehicle-item.warning {
  background: #fff7f7;
}

.vehicle-item-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 7px;
}

.vehicle-item strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.vehicle-item span {
  color: var(--tnvora-gray-500);
  font-size: 0.78rem;
  font-weight: 700;
}

.inventory-name {
  display: grid;
  gap: 3px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
}

.inventory-name small {
  color: #7b8ba0;
  font-size: 0.62rem;
  font-weight: 850;
  text-transform: none;
}

.inventory-notes {
  max-width: 220px;
  line-height: 1.35;
}

.inventory-actions {
  min-width: 210px;
}

.sms-settings-list {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.sms-users-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.sms-users-heading h3 {
  margin: 2px 0 4px;
}

.sms-broadcast-targets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.sms-broadcast-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sms-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-weight: 850;
}

.sms-gateway-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.sms-gateway-response {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.sms-log-heading {
  margin-top: 22px;
}

.sms-queue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.sms-queue-actions .danger-action {
  border-color: #fecaca;
  color: var(--tnvora-danger-700);
  background: var(--tnvora-danger-100);
}

.field-row label {
  flex: 1;
}

.work-time-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.work-time-range label {
  min-width: 0;
}

.include-current-user {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-weight: 850;
}

.farm-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px auto;
  gap: 9px;
  align-items: end;
}

.add-database-toggle {
  width: fit-content;
  margin-top: -5px;
  padding: 3px 0;
  border: 0;
  color: var(--blue-dark);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 850;
}

.add-database-box {
  padding: 14px;
  border: 1px solid #cbdcf0;
  border-radius: 13px;
  background: #f2f7fd;
}

.inline-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 11px;
}

.work-type-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px auto;
  align-items: end;
  gap: 10px;
}

.work-type-field label {
  min-width: 0;
}

.danger-soft {
  color: #be123c;
  border-color: #fecdd3;
  background: var(--tnvora-danger-50);
}

.danger-soft:hover {
  color: #9f1239;
  border-color: #fda4af;
  background: #ffe4e6;
}

.calculated-time {
  margin: 1px 0 0;
  padding: 13px 14px;
  border-left: 4px solid var(--blue);
  border-radius: 8px 12px 12px 8px;
  color: #244262;
  background: var(--blue-soft);
  font-size: 0.84rem;
}

.calculated-time strong {
  color: var(--navy);
}

.error-message {
  display: none;
  margin: -5px 0 0;
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 800;
}

.error-message:not(:empty) {
  display: block;
}

.history-section {
  margin-top: 31px;
  padding: 23px;
  border: 1px solid rgba(213, 222, 232, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 38px rgba(30, 41, 59, 0.09);
}

.pending-report-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.pending-report-list {
  display: grid;
  gap: 10px;
}

.pending-report-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--tnvora-warning-500);
  border-radius: 14px;
  color: #78350f;
  background: #fffbeb;
}

.pending-report-summary > div {
  display: grid;
  gap: 3px;
}

.pending-report-summary strong,
.pending-report-summary b {
  font-weight: 950;
}

.pending-report-summary b {
  min-width: 148px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--tnvora-white);
  text-align: center;
  background: #d97706;
}

.pending-report-summary.blocked {
  border-color: var(--tnvora-danger-600);
  color: #7f1d1d;
  background: #fef2f2;
}

.pending-report-summary.blocked b {
  background: #b91c1c;
}

.pending-report-main {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.pending-report-main span {
  color: #b45309;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.13em;
}

.pending-report-main b {
  color: #451a03;
  font-size: 0.98rem;
}

.pending-report-main small {
  color: #92400e;
  font-weight: 800;
}

[data-report-countdown] {
  font-variant-numeric: tabular-nums;
}

[data-report-countdown].overdue {
  color: #b91c1c;
}

.pending-report-dismiss {
  border: 1px solid #fca5a5;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--tnvora-danger-700);
  background: var(--tnvora-danger-100);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.pending-report-dismiss:hover {
  background: #fecaca;
}

.report-compliance-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.report-compliance-order-row .pending-report-dismiss {
  min-width: 112px;
}

.report-compliance-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border-radius: 16px;
  color: var(--tnvora-white);
  background: var(--tnvora-warning-500);
  font-size: 1.7rem;
  font-weight: 950;
}

.report-compliance-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 14px;
  color: #78350f;
  background: #fffbeb;
}

.report-compliance-counter strong {
  min-width: 150px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--tnvora-white);
  text-align: center;
  font-variant-numeric: tabular-nums;
  background: #d97706;
}

.report-compliance-list {
  display: grid;
  gap: 8px;
  max-height: min(420px, 45vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.report-compliance-order {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d9e2ef;
  border-radius: 13px;
  color: #172033;
  text-align: left;
  background: #f8fafc;
}

.report-compliance-order:hover,
.report-compliance-order:focus-visible {
  border-color: #2783ef;
  background: #eff6ff;
}

.report-compliance-order span,
.report-compliance-order small {
  color: #58677d;
}

.report-compliance-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 18px;
}

.report-compliance-blocked,
.report-compliance-blocked:hover {
  color: var(--tnvora-white) !important;
  background: #b91c1c !important;
  opacity: 1 !important;
  cursor: not-allowed;
}

.collaborators-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: end;
}

.travel-km-assignments {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--tnvora-surface-cool);
}

.travel-km-assignments > div {
  display: grid;
  gap: 2px;
}

.travel-km-assignments strong {
  color: var(--text);
  font-weight: 900;
}

.travel-km-assignments small {
  color: var(--muted);
}

.travel-cert-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 96px minmax(150px, 1.2fr);
  gap: 10px;
  align-items: center;
}

.travel-cert-row > span {
  min-width: 0;
  color: var(--muted);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.travel-cert-row.locked > span::after {
  content: "tylko podglad";
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  opacity: 0.72;
  text-transform: uppercase;
}

.travel-cert-row label {
  display: grid;
  gap: 4px;
}

.travel-cert-row label small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.travel-cert-row .report-diet-source {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
  overflow-wrap: anywhere;
}

.report-calendar-diet-source {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.report-calendar-diet-source button {
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: var(--text);
  background: rgba(35, 133, 255, 0.12);
  font: inherit;
  cursor: pointer;
}

.report-calendar-diet-source button:focus-visible {
  outline: 3px solid #2385ff;
  outline-offset: 2px;
}

#historyPanel .entries-list .report-calendar-card .report-calendar-diet-source button {
  border-color: #075985;
  color: #075985;
  background: #f8fdff;
}

.expense-title-field {
  position: relative;
}

.expense-type-field,
.expense-car-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.expense-category-box[hidden],
.expense-car-field[hidden],
.expense-mileage-field[hidden] {
  display: none !important;
}

.expense-diet-control {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(0, 91, 187, 0.14);
  border-radius: 12px;
  background: rgba(247, 251, 255, 0.92);
}

.expense-diet-control[hidden],
.expense-diet-fields[hidden] {
  display: none !important;
}

.expense-diet-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 10px;
}

.expense-diet-fields small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 800;
}

.expense-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.expense-vehicle-favorite-active {
  color: var(--tnvora-warning-500);
  border-color: var(--tnvora-warning-500);
  background: #fff7ed;
}

.expense-title-suggestions {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #cfe0f2;
  border-radius: 12px;
  background: var(--tnvora-white);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.expense-title-suggestions[hidden] {
  display: none;
}

.expense-row.prepayment {
  border-color: rgba(22, 163, 74, 0.32);
  background: rgba(22, 163, 74, 0.08);
}

.expense-row.prepayment .expense-amount {
  color: #16a34a;
}

.expense-amount {
  color: #be123c;
}

.coordinator-groups {
  display: grid;
  gap: 14px;
}

.coordinator-leader-heading,
.coordinator-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.coordinator-leader-heading > div,
.coordinator-technician-option span {
  display: grid;
  gap: 3px;
}

.coordinator-leader-heading span,
.coordinator-technician-option small {
  color: var(--muted);
}

.coordinator-flow-info {
  margin: 10px 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(35, 133, 255, 0.42);
  border-left: 4px solid #2385ff;
  border-radius: 10px;
  color: var(--text);
  background: rgba(35, 133, 255, 0.1);
}

.coordinator-technician-list {
  margin-top: 12px;
  overflow-x: auto;
}

.coordinator-technician-name {
  display: block;
  min-width: 0;
  margin: 0;
  color: var(--text) !important;
  font-size: 0.86rem !important;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.coordinator-technician-login {
  width: 28%;
  color: var(--muted) !important;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.coordinator-technician-mobile-login {
  display: none;
}

.coordinator-technician-option span {
  min-width: 0;
}

.coordinator-technician-option strong,
.coordinator-technician-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coordinator-actions {
  margin-top: 14px;
  flex-wrap: wrap;
}

.coordinator-flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.coordinator-flow-steps > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 3px 10px;
  align-items: center;
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: var(--surface);
}

.coordinator-flow-steps > div > span {
  grid-row: 1 / span 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #087f6a;
  font-size: .78rem;
  font-weight: 950;
}

.coordinator-flow-steps strong { font-size: .9rem; }
.coordinator-flow-steps small { color: var(--muted); line-height: 1.35; }

.coordinator-company-create {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: var(--surface);
  overflow: hidden;
}

.coordinator-company-create > summary {
  display: flex;
  min-height: 54px;
  padding: 14px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 900;
}

.coordinator-company-create > summary small { color: var(--muted); font-weight: 700; }
.coordinator-company-create[open] > summary { border-bottom: 1px solid var(--line); }
.coordinator-company-create .coordinator-company-form { padding: 0 16px 16px; }

.coordinator-company-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 5px solid #087f6a;
  border-radius: 16px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
}

.coordinator-company-card button,
.coordinator-company-card select,
.coordinator-company-card input,
.coordinator-unassigned button,
.coordinator-unassigned select,
.coordinator-unassigned input {
  min-height: 44px;
}

.coordinator-company-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.coordinator-company-heading h4 { margin: 4px 0; font-size: 1.18rem; }
.coordinator-company-heading p { margin: 0; color: var(--muted); }
.coordinator-level-label { color: #087f6a !important; font-size: .7rem; font-weight: 950; letter-spacing: .09em; }

.coordinator-company-add-leader,
.coordinator-company-choice {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: .82rem;
  font-weight: 900;
}

.coordinator-company-add-leader select,
.coordinator-company-choice select,
.coordinator-unassigned-leader select {
  min-height: 46px;
  color: var(--text);
  background: var(--background);
  border-color: var(--line);
}

.coordinator-company-leaders { display: grid; gap: 12px; }

.coordinator-hierarchy-leader {
  display: grid;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: var(--background);
}

.coordinator-subheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.coordinator-subheading > span { color: #087f6a; font-size: .72rem; font-weight: 950; letter-spacing: .08em; }
.coordinator-subheading > small { color: var(--muted); }

.coordinator-unassigned {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px dashed #d58b00;
  border-radius: 16px;
  color: var(--text);
  background: color-mix(in srgb, #f6b700 9%, var(--surface));
}

.coordinator-unassigned-leader {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(240px, 1.2fr);
  gap: 14px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.coordinator-unassigned-leader > div,
.coordinator-unassigned-leader label { display: grid; gap: 5px; }
.coordinator-unassigned-leader span { color: var(--muted); }
.coordinator-unassigned-leader label { color: var(--text); font-size: .8rem; font-weight: 900; }

.expense-row-actions {
  flex-wrap: wrap;
}

.expense-export-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(0, 91, 187, 0.14);
  border-radius: 16px;
  background: #f4f9ff;
}

.work-hours-rates {
  display: grid;
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 10px;
  padding: 13px;
  border: 1px solid #d7e4f4;
  border-radius: 14px;
  background: var(--tnvora-white);
}

.work-hours-rates label {
  min-width: 0;
}

.work-hours-download-toolbar {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 300px) minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: end;
  width: 100%;
  min-width: 0;
  padding: 16px;
  border: 1px solid #a9c9ea;
  border-radius: 14px;
  background: #edf6ff;
}

.work-hours-download-toolbar label,
.work-hours-download-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.work-hours-download-toolbar label > span,
.work-hours-rates-heading > span,
.work-hours-projects-heading span,
.work-hours-project-card header span {
  color: #116dcc;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.work-hours-download-toolbar input[type="month"] {
  min-height: 52px;
  font-size: 1rem;
  font-weight: 800;
}

.work-hours-download-copy strong {
  color: #102033;
  font-size: 1rem;
}

.work-hours-download-copy small {
  color: #5d7085;
  font-weight: 650;
}

.work-hours-rates-heading {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 2px;
}

.work-hours-rates-heading strong {
  color: #33475b;
}

.employee-work-hours-project-rates {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 540px), 1fr));
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.work-hours-projects-heading {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  padding: 2px 2px 0;
}

.work-hours-projects-heading > div {
  display: grid;
  gap: 3px;
}

.work-hours-projects-heading strong {
  color: #102033;
  font-size: 1.04rem;
}

.work-hours-projects-heading small {
  padding: 6px 10px;
  border: 1px solid #b8cde1;
  border-radius: 999px;
  color: #40566d;
  background: #f5f9fd;
  font-weight: 800;
}

.work-hours-project-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #c7d9ea;
  border-radius: 14px;
  background: var(--tnvora-white);
}

.work-hours-project-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #d9e5f1;
}

.work-hours-project-card header > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.work-hours-project-card h3 {
  overflow-wrap: anywhere;
  margin: 0;
  color: #102033;
  font-size: 1.08rem;
}

.work-hours-project-card header > strong {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: #174d7e;
  background: #e8f3ff;
  font-size: 0.82rem;
}

.work-hours-project-rate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 125px), 1fr));
  gap: 9px;
}

.work-hours-project-rate-grid > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #d5e1ed;
  border-radius: 10px;
  background: #f7faff;
}

.work-hours-project-rate-grid span {
  color: #66788c;
  font-size: 0.78rem;
  font-weight: 750;
}

.work-hours-project-rate-grid strong {
  overflow-wrap: anywhere;
  color: #1f3348;
  font-size: 0.95rem;
}

.history-title {
  align-items: flex-start;
}

.history-title-main {
  display: grid;
  gap: 10px;
}

.history-title .section-collapse {
  margin-left: auto;
}

.history-month-arrow,
.history-month-label {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
}

.history-month-arrow {
  width: 44px;
  color: #0b5ecb;
  background: #e8f2ff;
  font-size: 1.35rem;
}

.history-month-label {
  min-width: 156px;
  padding: 0 16px;
  color: var(--text);
  background: white;
  text-transform: capitalize;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
}

.history-month-picker {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.history-user-filter {
  display: flex;
  align-items: end;
  gap: 8px;
}

.history-user-filter label {
  display: grid;
  gap: 6px;
  min-width: min(100%, 260px);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-user-filter-label {
  min-width: min(100%, 360px);
}

.admin-filter-actions,
.admin-cert-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0;
}

.admin-user-filter-label option {
  padding: 8px 10px;
  border-radius: 10px;
}

.admin-user-filter-label small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.admin-picker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  margin: 8px 0;
}

.admin-picker-row label {
  min-width: 0;
}

.migration-password-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.backup-password-warning {
  padding: 10px 12px; border: 1px solid #d79a21; border-radius: 10px; background: #fff6d8; color: #684300;
}

body.theme-dark .backup-password-warning { border-color: #d79a21; background: #4b350d; color: #ffe7a3; }

.work-order-bulk-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  margin: 12px 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--tnvora-surface-cool);
}

.work-order-bulk-tools label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.vacation-content {
  display: grid;
  gap: 14px;
}

.vacation-day.vacation-focused {
  outline: 3px solid rgba(20, 121, 247, 0.38);
  outline-offset: 4px;
}

.vacation-day-details {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d5e1ee;
  border-radius: 14px;
  background: #f7fbff;
  color: #132033;
}

.vacation-day-details[hidden] {
  display: none;
}

.vacation-day-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #536276;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.vacation-day-details-header strong {
  color: #132033;
}

.vacation-day-people {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vacation-day-people span {
  padding: 8px 12px;
  border: 1px solid #b9d3f0;
  border-radius: 999px;
  background: var(--tnvora-white);
  color: #0f4f93;
  font-weight: 900;
}

.vacation-user-days {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 15px;
  border: 1px solid #c8d9eb;
  border-radius: 14px;
  background: #f7fbff;
}

.vacation-user-days[hidden] {
  display: none;
}

.vacation-user-days-heading div {
  display: grid;
  gap: 3px;
}

.vacation-user-days-heading span {
  color: var(--tnvora-gray-500);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.vacation-user-days-heading strong {
  color: #132033;
}

.vacation-user-days-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.month-choice {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: var(--tnvora-surface-cool);
  font-weight: 900;
  text-transform: capitalize;
  cursor: pointer;
}

.month-choice.active {
  border-color: #1d7cf2;
  color: white;
  background: #1d7cf2;
  box-shadow: 0 12px 28px rgba(29, 124, 242, 0.22);
}

.admin-panel {
  margin-top: 31px;
  padding: 23px;
  border: 1px solid #26374c;
  border-radius: 22px;
  color: white;
  background: linear-gradient(145deg, var(--navy), #1c2939);
  box-shadow: 0 18px 42px rgba(16, 23, 34, 0.22);
}

.admin-panel [hidden] {
  display: none !important;
}

.admin-heading,
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.admin-heading {
  margin-bottom: 20px;
}

.admin-toolbar label {
  flex: 1;
  color: #aab6c6;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 18px 0;
}

.admin-summary div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
}

.admin-summary span,
.admin-summary b {
  display: block;
}

.admin-summary span {
  margin-bottom: 4px;
  color: #9cabc0;
  font-size: 0.66rem;
}

.boss-dashboard-panel {
  display: grid;
  gap: 16px;
}

.boss-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.boss-metrics div {
  padding: 14px;
  border: 1px solid #d8e3ef;
  border-radius: 14px;
  background: #f7fbff;
}

.boss-metrics span,
.boss-metrics b {
  display: block;
}

.boss-metrics span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.boss-metrics b {
  margin-top: 4px;
  color: var(--navy);
  font-size: 1.35rem;
}

#bossExpensesTotal {
  color: #be123c;
}

#bossExpensesTotal.positive-balance {
  color: #16a34a;
}

#bossExpensesTotal.negative-balance {
  color: #be123c;
}

.boss-dashboard-section {
  display: grid;
  gap: 12px;
}

.company-settings-fields,
.company-logo-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d8e3ef;
  border-radius: 14px;
  background: var(--tnvora-surface-cool);
}

.company-logo-preview-wrap img {
  display: block;
  max-width: 170px;
  max-height: 56px;
  object-fit: contain;
}

.company-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.boss-vacation-block {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #d8e3ef;
  border-radius: 14px;
  background: var(--tnvora-surface-cool);
}

.boss-vacation-block h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}

.boss-expenses-section {
  padding: 12px;
  border: 1px solid #d8e3ef;
  border-radius: 14px;
  background: var(--tnvora-surface-cool);
}

.boss-expenses-section summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 900;
}

.boss-history-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 10px;
  align-items: end;
}

.boss-history-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.admin-entries-list {
  display: grid;
  gap: 8px;
}

.admin-farm-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.admin-farms-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.admin-farm-row {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--tnvora-white);
  color: var(--ink);
}

.admin-farm-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-entry {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 13px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.065);
}

.admin-entry div:last-child {
  text-align: right;
}

.admin-entry strong,
.admin-entry b,
.admin-entry span {
  display: block;
}

.admin-entry span {
  margin-top: 3px;
  color: #9cabc0;
  font-size: 0.7rem;
}

.admin-panel .empty-state {
  border-color: #415166;
  background: rgba(255, 255, 255, 0.04);
}

.admin-users {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.admin-users-heading {
  margin-bottom: 14px;
}

.admin-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.admin-users-list {
  display: grid;
  gap: 12px;
  margin-top: 15px;
}

.admin-problem-reports-list {
  display: grid;
  gap: 12px;
  margin-top: 15px;
}

.admin-problem-toolbar {
  display: grid;
  grid-template-columns: max-content max-content minmax(240px, 1fr);
  gap: 10px;
  align-items: end;
  margin: 12px 0 16px;
}

.admin-problem-toolbar > button.active {
  border-color: #1778de;
  background: #1778de;
  color: #fff;
}

.admin-problem-toolbar > button b {
  display: inline-grid;
  min-width: 1.6em;
  min-height: 1.6em;
  place-items: center;
  margin-left: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 14%, transparent);
}

.admin-problem-toolbar label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-problem-toolbar input {
  width: 100%;
}

.admin-month-delete-preview {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 11px;
  background: rgba(127, 29, 29, 0.14);
}

.admin-month-delete-preview[hidden] { display: none; }

.admin-month-delete-preview h5,
.admin-month-delete-preview p { margin: 0; }

.admin-month-delete-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.admin-month-delete-counts div {
  padding: 10px;
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
}

.admin-month-delete-counts span,
.admin-month-delete-counts strong { display: block; }

.admin-month-delete-counts span { font-size: 0.68rem; }

.admin-month-delete-counts strong { margin-top: 4px; font-size: 1.1rem; }

.problem-report-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.072);
}

.problem-report-item small {
  color: #9cabc0;
  font-weight: 800;
}

.problem-report-item p {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
  white-space: pre-wrap;
}

.statistics-actions {
  margin: 8px 0 16px;
}

.analytics-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.analytics-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid rgba(114, 177, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.analytics-date-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}

.analytics-date-fields label {
  display: grid;
  gap: 5px;
  color: #b9c7d9;
  font-size: 0.76rem;
  font-weight: 900;
}

.analytics-content {
  display: grid;
  gap: 14px;
}

.analytics-client-name,
.analytics-client-analysis-controls > label {
  display: grid;
  gap: 6px;
  color: #b9c7d9;
  font-size: 0.78rem;
  font-weight: 900;
}

.analytics-client-rates {
  display: grid;
  gap: 8px;
}

.analytics-client-rate {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(150px, 0.75fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(114, 177, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.analytics-client-rate > span:first-child {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--tnvora-surface-cool);
  font-weight: 900;
}

.analytics-client-rate-value {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  align-items: center;
}

.analytics-client-rate-value small {
  color: #9fc4ff;
  font-weight: 850;
}

.analytics-client-list {
  display: grid;
  gap: 9px;
}

.analytics-client-analysis {
  margin-top: 0;
}

.analytics-client-analysis-controls {
  grid-template-columns: repeat(2, minmax(160px, 220px)) minmax(300px, 1fr);
  align-items: end;
}

.analytics-client-technicians {
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px solid rgba(114, 177, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.analytics-client-technicians .analytics-section-heading {
  margin-bottom: 9px;
}

.analytics-client-technicians .analytics-section-heading span {
  display: flex;
  gap: 6px;
}

.analytics-client-download {
  width: min(100%, 320px);
}

.analytics-client-result span {
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid rgba(33, 200, 117, 0.25);
  border-radius: 11px;
  background: rgba(33, 200, 117, 0.1);
  color: #b9c7d9;
  font-size: 0.76rem;
  font-weight: 850;
}

.analytics-client-result b {
  color: var(--tnvora-white);
  font-size: 1rem;
}

.analytics-client-quick-range {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(114, 177, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.analytics-client-quick-range > span {
  margin-right: 4px;
  color: #b9c7d9;
  font-size: 0.78rem;
  font-weight: 950;
}

.analytics-client-analysis-actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 9px;
}

.client-profitability-dashboard {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.client-profitability-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(114, 177, 255, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 90% 10%, rgba(20, 121, 247, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(12, 34, 58, 0.98), rgba(8, 20, 34, 0.92));
  box-shadow: 0 18px 36px rgba(3, 10, 20, 0.2);
}

.client-profitability-head h4 {
  margin: 2px 0 4px;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.client-profitability-head > div:first-child > span {
  color: #9fc4ff;
  font-weight: 850;
}

.client-margin-gauge {
  display: grid;
  position: relative;
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#21c875 var(--client-margin), rgba(255, 255, 255, 0.09) 0);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.client-margin-gauge::before {
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  background: #102036;
  content: "";
}

.client-margin-gauge b,
.client-margin-gauge small {
  position: relative;
  z-index: 1;
}

.client-margin-gauge b {
  align-self: end;
  color: var(--tnvora-white);
  font-size: 1.12rem;
}

.client-margin-gauge small {
  align-self: start;
  color: #9fc4ff;
  font-weight: 850;
}

.client-margin-gauge.tone-warning {
  background: conic-gradient(#f4c430 var(--client-margin), rgba(255, 255, 255, 0.09) 0);
}

.client-margin-gauge.tone-danger {
  background: conic-gradient(var(--tnvora-danger-500) var(--client-margin), rgba(255, 255, 255, 0.09) 0);
}

.client-profitability-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
}

.client-profitability-kpis article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(114, 177, 255, 0.18);
  border-left: 4px solid #7d93ad;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.client-profitability-kpis span,
.client-profitability-kpis small {
  color: #9cabc0;
  font-size: 0.76rem;
  font-weight: 850;
}

.client-profitability-kpis b {
  color: var(--tnvora-white);
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  overflow-wrap: anywhere;
}

.client-profitability-kpis .tone-revenue {
  border-left-color: var(--blue);
  background: linear-gradient(135deg, rgba(20, 121, 247, 0.15), rgba(255, 255, 255, 0.035));
}

.client-profitability-kpis .tone-earnings {
  border-left-color: #a78bfa;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.14), rgba(255, 255, 255, 0.035));
}

.client-profitability-kpis .tone-expenses {
  border-left-color: var(--tnvora-warning-500);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(255, 255, 255, 0.035));
}

.client-profitability-kpis .tone-profit {
  border-left-color: #21c875;
  background: linear-gradient(135deg, rgba(33, 200, 117, 0.14), rgba(255, 255, 255, 0.035));
}

.client-profitability-kpis .tone-loss {
  border-left-color: var(--tnvora-danger-500);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.14), rgba(255, 255, 255, 0.035));
}

.client-extremes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.client-extremes article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(114, 177, 255, 0.18);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
}

.client-extremes span {
  grid-column: 1 / -1;
  color: #9cabc0;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.client-extremes b {
  overflow: hidden;
  color: var(--tnvora-white);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-extremes strong {
  color: #9fc4ff;
  font-size: 1.08rem;
}

.client-extreme-top {
  box-shadow: inset 4px 0 0 #21c875;
}

.client-extreme-low {
  box-shadow: inset 4px 0 0 #f4c430;
}

.client-finance-bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 16px;
  min-height: 260px;
  padding: 14px 8px 0;
  align-items: end;
}

.client-finance-column {
  display: grid;
  grid-template-rows: auto 180px auto;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.client-finance-column > b {
  color: var(--tnvora-white);
  font-size: 0.82rem;
}

.client-finance-column > span {
  color: #b9c7d9;
  font-size: 0.72rem;
  font-weight: 850;
}

.client-finance-track {
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 0;
  border-radius: 10px 10px 4px 4px;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.client-finance-track i {
  display: block;
  width: 72%;
  min-height: 2px;
  border-radius: 8px 8px 0 0;
  background: var(--blue);
  box-shadow: 0 -8px 20px rgba(20, 121, 247, 0.25);
}

.client-finance-track .tone-earnings {
  background: #a78bfa;
  box-shadow: 0 -8px 20px rgba(167, 139, 250, 0.25);
}

.client-finance-track .tone-expenses {
  background: var(--tnvora-warning-500);
  box-shadow: 0 -8px 20px rgba(245, 158, 11, 0.25);
}

.client-finance-track .tone-profit {
  background: #21c875;
  box-shadow: 0 -8px 20px rgba(33, 200, 117, 0.25);
}

.client-finance-track .tone-loss {
  background: var(--tnvora-danger-500);
  box-shadow: 0 -8px 20px rgba(239, 68, 68, 0.25);
}

.client-hours-bars {
  display: grid;
  gap: 10px;
}

.client-hours-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(120px, 1.2fr) auto;
  gap: 10px;
  align-items: center;
}

.client-hours-row > span {
  overflow: hidden;
  color: #dbe8f7;
  font-size: 0.78rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-hours-row > span b {
  color: #65a7ff;
}

.client-hours-row > strong {
  min-width: 62px;
  color: var(--tnvora-white);
  text-align: right;
}

.client-hours-track {
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.client-hours-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #54b8ff);
}

.client-trend-wrap {
  overflow-x: auto;
}

.client-profit-trend {
  display: block;
  width: 100%;
  min-width: 640px;
  max-height: 290px;
}

.client-profit-trend line {
  stroke: rgba(159, 196, 255, 0.22);
  stroke-width: 1;
}

.client-profit-trend polyline {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.client-revenue-line {
  stroke: var(--blue);
}

.client-earnings-line {
  stroke: #a78bfa;
}

.client-expenses-line {
  stroke: var(--tnvora-warning-500);
}

.client-revenue-dot {
  fill: var(--blue);
  stroke: var(--tnvora-line-blue);
  stroke-width: 2;
}

.legend-client-revenue {
  background: var(--blue) !important;
}

.legend-client-earnings {
  background: #a78bfa !important;
}

.legend-client-expenses {
  background: var(--tnvora-warning-500) !important;
}

.profit-positive {
  color: #58dd9a !important;
  font-weight: 950;
}

.profit-negative {
  color: #ff7d86 !important;
  font-weight: 950;
}

.client-analysis-note {
  margin: 0;
  padding: 10px 12px;
  border-left: 4px solid var(--blue);
  border-radius: 9px;
  background: rgba(20, 121, 247, 0.1);
  color: #b9c7d9;
  font-size: 0.76rem;
  font-weight: 800;
}

.analytics-section {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(114, 177, 255, 0.2);
  border-radius: 14px;
  background: rgba(13, 28, 46, 0.86);
}

.analytics-section[data-analytics-anchor] {
  scroll-margin-top: 90px;
}

.analytics-section-flash {
  animation: analyticsSectionFlash 1.4s ease;
}

.analytics-section.full {
  grid-column: 1 / -1;
}

.analytics-section h4 {
  margin: 0 0 10px;
  color: var(--tnvora-white);
  font-size: 1rem;
}

.analytics-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.analytics-section-heading h4 {
  margin: 0;
}

.analytics-section-heading span {
  color: #9fc4ff;
  font-weight: 900;
}

.analytics-chart-wrap {
  overflow-x: auto;
  padding: 8px 0 2px;
}

.analytics-line-chart {
  width: 100%;
  min-width: 560px;
  height: auto;
}

.analytics-line-chart line {
  stroke: rgba(185, 199, 217, 0.35);
  stroke-width: 1.4;
}

.analytics-line-chart polyline {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orders-line {
  stroke: var(--blue);
}

.signature-line {
  stroke: #f4c430;
}

.orders-dot {
  fill: var(--blue);
  stroke: var(--tnvora-white);
  stroke-width: 2;
}

.analytics-chart-legend {
  display: flex;
  gap: 16px;
  color: #b9c7d9;
  font-size: 0.78rem;
  font-weight: 900;
}

.analytics-chart-legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.analytics-chart-legend i {
  display: inline-block;
  width: 22px;
  height: 4px;
  border-radius: 999px;
}

.legend-orders {
  background: var(--blue);
}

.legend-signature {
  background: #f4c430;
}

.analytics-bars {
  display: grid;
  gap: 8px;
}

.analytics-bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(130px, 3fr) minmax(50px, 0.3fr);
  gap: 10px;
  align-items: center;
  color: var(--tnvora-surface-cool);
  font-weight: 900;
}

.analytics-bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.analytics-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #21c875);
}

.statistics-history-row span,
.statistics-history-row small {
  color: #9cabc0;
  font-weight: 800;
}

.statistics-history-row b {
  color: var(--tnvora-white);
}

.admin-user-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.072);
}

.admin-user-row > div:first-child {
  min-width: 0;
}

.admin-user-main {
  display: grid;
  gap: 8px;
}

.admin-user-row span {
  display: block;
  margin-top: 3px;
  color: #9cabc0;
  font-size: 0.72rem;
  overflow-wrap: normal;
  word-break: normal;
}

.admin-user-row span b {
  color: white;
}

.admin-user-name {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-user-name strong {
  font-size: 1rem;
}

.admin-user-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.admin-user-actions .delete-user {
  border-color: #81404a;
  color: #ffb7bf;
  background: #42242b;
}

.admin-user-actions .danger-action,
.admin-farm-row-actions .danger-action {
  border-color: #b91c1c;
  color: #fecaca;
  background: #7f1d1d;
}

.work-order-panel {
  border-top: 0;
}

.signature-canvas {
  width: 100%;
  min-height: 180px;
  border: 1px dashed #9db4cf;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 253, 0.96)),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(22, 119, 242, 0.08) 35px 36px);
  box-shadow: inset 0 1px 8px rgba(15, 23, 42, 0.08);
  touch-action: none;
  overscroll-behavior: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.guest-qualification-confirmation {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--opsui-border, #d8e1eb);
  background: var(--opsui-surface-soft, #edf4fb);
}

.guest-qualification-confirmation input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.work-order-guest-pic-notice {
  display: grid;
  gap: 0.3rem;
  margin: 0.8rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid #58b99c;
  border-left: 4px solid #15956b;
  border-radius: 8px;
  background: #eaf8f3;
  color: #123c32;
}

.work-order-guest-pic-notice strong { color: #0a7653; }
.work-order-guest-pic-notice small { color: #315c51; line-height: 1.45; }

.work-order-change-approval {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 14px 16px;
  border: 2px solid #d58a00;
  border-radius: 16px;
  background: #fff8df;
  color: #493400;
}

.work-order-change-approval.is-approved {
  border-color: #15956b;
  background: #eaf8f3;
  color: #123c32;
}

.work-order-change-approval.is-rejected {
  border-color: #c94857;
  background: #fff0f2;
  color: #661b25;
}

.work-order-change-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.work-order-suspension,
.issuer-pre-sign-review {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 16px;
  border: 2px solid #64748b;
  border-radius: 16px;
  color: #1e293b;
  background: #eef2f6;
}

.work-order-suspension > strong { color: #334155; letter-spacing: .08em; }
.work-order-suspension > .primary-button { justify-self: start; }
.issuer-pre-sign-review > div:first-child { display: grid; gap: 4px; }
.issuer-review-list { display: grid; gap: 8px; }
.issuer-review-list > span { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; }
.issuer-review-list > span > i { display: flex; flex-wrap: wrap; gap: 6px; font-style: normal; }

.user-work-order.suspended-work-order { border-color: #64748b; background: #e5e7eb; }
.user-work-order.suspended-work-order > .user-work-order-summary { border-color: #64748b; color: #172033; background: linear-gradient(135deg, #cbd5e1, #94a3b8); }
.user-work-order.suspended-work-order > .user-work-order-summary .user-work-order-info > :is(strong,span,small),
.user-work-order.suspended-work-order > .user-work-order-summary .work-order-copy-reference :is(span,b,small),
.user-work-order.suspended-work-order > .user-work-order-summary .work-order-permit-badge { color: #172033; }
.work-order-request-change {
  width: 100%;
  margin: 12px 0;
}

.work-order-change-actions .danger-action {
  border-color: #9f1239;
  color: #881337;
  background: #fff;
}

.work-order-change-actions .danger-button {
  border-color: #991b1b;
  color: #fff;
  background: #b91c1c;
}

.work-order-change-actions .danger-button:is(:hover, :focus-visible) {
  color: #fff;
  background: #991b1b;
}

.admin-work-order.work-order-attention {
  border-color: #c9303e;
  background: #fff7f7;
  color: #53121b;
  box-shadow: 0 0 0 2px rgba(201, 48, 62, .18), 0 18px 36px rgba(98, 15, 25, .12);
}

.admin-work-order.work-order-action-required {
  border-color: #d5960b;
  border-left-color: #f5b400;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: #5f3904;
  box-shadow: 0 0 0 2px rgba(245, 180, 0, .22), 0 18px 36px rgba(120, 77, 5, .12);
}

.admin-work-order.work-order-action-required strong {
  color: #713f12;
}

/* V11.25: tekst i przyciski na żółtej karcie pozostają czytelne w jasnym motywie. */
.admin-work-order.work-order-action-required :is(strong, span, small, b, label) {
  color: #4a2d02;
}

.admin-work-order.work-order-action-required :is(.primary-button, .work-order-sign-button),
.admin-work-order.work-order-action-required :is(.primary-button, .work-order-sign-button) :is(span, b, small) {
  border-color: #075fbf;
  color: #fff;
  background: #075fbf;
}

.admin-work-order.work-order-action-required :is(.primary-button, .work-order-sign-button):is(:hover, :focus-visible) {
  border-color: #064d9e;
  color: #fff;
  background: #064d9e;
}

.admin-work-order.work-order-action-required :is(.secondary-button, .work-order-download-button),
.admin-work-order.work-order-action-required :is(.secondary-button, .work-order-download-button) :is(span, b, small) {
  border-color: #9d6a09;
  color: #3c2603;
  background: #fffdf5;
}

.admin-work-order.work-order-action-required :is(.danger-button, .danger-action),
.admin-work-order.work-order-action-required :is(.danger-button, .danger-action) :is(span, b, small) {
  color: #fff;
  background: #b91c1c;
}

.admin-work-order.work-order-action-required.work-order-attention {
  border-color: #c9303e;
  border-left-color: #c9303e;
  background: #fff7f7;
  color: #53121b;
  box-shadow: 0 0 0 2px rgba(201, 48, 62, .18), 0 18px 36px rgba(98, 15, 25, .12);
}

.entry-card.work-order-attention {
  border: 2px solid #c9303e;
  background: #fff7f7;
  color: #53121b;
  box-shadow: 0 0 0 2px rgba(201, 48, 62, .18), 0 18px 36px rgba(98, 15, 25, .12);
}

.admin-work-order.work-order-attention > div:first-child {
  border-left: 6px solid #c9303e;
}

.work-order-incident-dialog fieldset {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.work-order-incident-dialog .work-order-incident-work-status {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-order-incident-dialog fieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px;
  border: 1px solid #cbd7e5;
  border-radius: 12px;
}

.work-order-incident-dialog form > p,
.work-order-incident-dialog form > label,
.work-order-incident-dialog legend {
  color: #64151c;
}

.work-order-incident-dialog .danger-action.primary-button {
  border-color: #a61224;
  color: #fff;
  background: #b7192c;
}

body.theme-dark .work-order-guest-pic-notice,
body.dark-theme .work-order-guest-pic-notice {
  border-color: #2f8d72;
  border-left-color: #41c69b;
  background: #15362f;
  color: #e6fff7;
}

body.theme-dark .work-order-guest-pic-notice strong,
body.dark-theme .work-order-guest-pic-notice strong { color: #75e0bd; }

body.theme-dark .work-order-guest-pic-notice small,
body.dark-theme .work-order-guest-pic-notice small { color: #bfe8dc; }

body.theme-dark .work-order-change-approval,
body.dark-theme .work-order-change-approval {
  border-color: #ffb72e;
  background: #33270b;
  color: #fff0bd;
}

body.theme-dark .work-order-change-approval.is-approved,
body.dark-theme .work-order-change-approval.is-approved {
  border-color: #41c69b;
  background: #15362f;
  color: #e6fff7;
}

body.theme-dark .work-order-change-approval.is-rejected,
body.dark-theme .work-order-change-approval.is-rejected {
  border-color: #ff7b8c;
  background: #4a1720;
  color: #ffe7eb;
}

body.theme-dark .work-order-change-actions .danger-action,
body.dark-theme .work-order-change-actions .danger-action {
  border-color: #ff7b8c;
  color: #fff;
  background: #5d1720;
}

body.theme-dark .admin-work-order.work-order-attention,
body.dark-theme .admin-work-order.work-order-attention,
body.theme-dark .entry-card.work-order-attention,
body.dark-theme .entry-card.work-order-attention {
  border-color: #ff5d70;
  background: #2b1015;
  color: #ffe8eb;
}

body.theme-dark .work-order-incident-dialog form > p,
body.dark-theme .work-order-incident-dialog form > p,
body.theme-dark .work-order-incident-dialog form > label,
body.dark-theme .work-order-incident-dialog form > label,
body.theme-dark .work-order-incident-dialog legend,
body.dark-theme .work-order-incident-dialog legend {
  color: #ffe1e5;
}

body.theme-dark .work-order-incident-dialog .danger-action.primary-button,
body.dark-theme .work-order-incident-dialog .danger-action.primary-button {
  border-color: #ff7686;
  color: #fff;
  background: #a31325;
}

body.theme-dark .work-order-incident-dialog fieldset label,
body.dark-theme .work-order-incident-dialog fieldset label {
  border-color: #4c6078;
  background: #162338;
  color: #f6f9ff;
}

@media (max-width: 640px) {
  .work-order-incident-dialog fieldset { grid-template-columns: 1fr; }
}

.signature-canvas.is-signature-locked,
.guest-signature-canvas.is-signature-locked {
  border-style: solid;
  border-color: #58ad7a;
  background:
    linear-gradient(180deg, rgba(233, 249, 239, .98), rgba(220, 244, 229, .98)),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(24, 142, 78, .09) 35px 36px);
  box-shadow: inset 0 0 0 2px rgba(37, 158, 91, .12);
  cursor: not-allowed;
}

/* V10.97 — świadomy, chwilowy podgląd ekranu użytkownika */
.support-live-share-banner {
  position: sticky;
  top: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 8px 14px 0;
  padding: 11px 14px;
  border: 2px solid #d97706;
  border-radius: 14px;
  color: #4a2600;
  background: #fff3cd;
  box-shadow: 0 8px 24px rgba(120, 53, 15, .16);
}

.support-live-share-banner[hidden] { display: none; }
.support-live-share-banner > div { display: grid; gap: 2px; }
.support-live-share-banner small { color: #704109; }
.app-shell.desktop-layout > .support-live-share-banner { grid-column: 2 / -1; }
body.desktop-menu-collapsed .app-shell.desktop-layout > .support-live-share-banner { grid-column: 1 / -1; }

.support-live-request-dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 24px;
  overflow: auto;
  border: 2px solid #138a67;
  border-radius: 22px;
  color: #10293d;
  background: #f8fffc;
  box-shadow: 0 28px 80px rgba(4, 47, 38, .35);
}

.support-live-request-dialog::backdrop {
  background: rgba(2, 15, 23, .76);
  backdrop-filter: blur(5px);
}

.support-live-request-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #0f9f76;
  box-shadow: 0 0 0 7px rgba(15, 159, 118, .13);
}

.support-live-request-dialog h3 { margin: 5px 0 12px; font-size: clamp(1.35rem, 3vw, 2rem); }
.support-live-request-dialog > p,
.support-live-request-dialog li { color: #334f61; line-height: 1.52; }
.support-live-request-dialog ul { padding-left: 22px; }
.support-live-mobile-note { padding: 11px 13px; border-radius: 12px; background: #e8f7f2; }
.support-live-request-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; margin-top: 16px; }

.admin-live-screen-card {
  display: grid;
  gap: 14px;
  margin: 16px 0;
  padding: 18px;
  border: 1px solid #b9cddd;
  border-radius: 18px;
  color: #11263a;
  background: #f7fbfe;
  box-shadow: 0 12px 28px rgba(20, 52, 76, .08);
}

.admin-live-screen-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-live-screen-heading h4 { margin: 3px 0 5px; font-size: 1.15rem; }
.admin-live-screen-heading p,
.admin-live-screen-privacy { margin: 0; color: #52697a; line-height: 1.45; }
.admin-live-screen-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.admin-live-screen-viewer {
  position: relative;
  display: grid;
  min-height: 280px;
  max-height: 72vh;
  overflow: auto;
  place-items: center;
  border: 2px solid #153550;
  border-radius: 16px;
  background: #07131e;
}

.admin-live-screen-viewer[hidden] { display: none; }
.admin-live-screen-viewer img { display: block; max-width: 100%; max-height: 70vh; object-fit: contain; }
.admin-live-screen-waiting { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; color: #e7f4ff; text-align: center; }
.admin-live-screen-waiting[hidden] { display: none; }

.support-live-click-marker {
  position: fixed;
  z-index: 2147483000;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  pointer-events: none;
  border: 4px solid #ff1f3d;
  border-radius: 50%;
  background: rgba(255, 255, 255, .34);
  box-shadow: 0 0 0 8px rgba(255, 31, 61, .2);
  animation: support-live-click-pulse 1.15s ease-out forwards;
}

@keyframes support-live-click-pulse {
  0% { transform: scale(.55); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

body.theme-dark .support-live-share-banner,
body.dark-theme .support-live-share-banner {
  border-color: #fbbf24;
  color: #fff4ca;
  background: #3a2a08;
}

body.theme-dark .support-live-share-banner small,
body.dark-theme .support-live-share-banner small { color: #f6d991; }

body.theme-dark .support-live-request-dialog,
body.dark-theme .support-live-request-dialog {
  border-color: #35cba0;
  color: #f1fff9;
  background: #10241f;
}

body.theme-dark .support-live-request-dialog > p,
body.dark-theme .support-live-request-dialog > p,
body.theme-dark .support-live-request-dialog li,
body.dark-theme .support-live-request-dialog li { color: #d7eee7; }
body.theme-dark .support-live-mobile-note,
body.dark-theme .support-live-mobile-note { background: #173b32; }

body.theme-dark .admin-live-screen-card,
body.dark-theme .admin-live-screen-card {
  border-color: #36516a;
  color: #f2f8ff;
  background: #101e2c;
}

body.theme-dark .admin-live-screen-heading p,
body.dark-theme .admin-live-screen-heading p,
body.theme-dark .admin-live-screen-privacy,
body.dark-theme .admin-live-screen-privacy { color: #b9cad9; }

@media (max-width: 640px) {
  .support-live-share-banner { position: relative; align-items: stretch; flex-direction: column; margin: 8px 10px 0; }
  .support-live-request-actions { grid-template-columns: 1fr; }
  .admin-live-screen-heading { flex-direction: column; }
  .admin-live-screen-actions > button { width: 100%; }
  .admin-live-screen-viewer { min-height: 360px; max-height: 68vh; }
}

.signature-canvas.is-signature-settling,
.guest-signature-canvas.is-signature-settling {
  border-style: solid;
  border-color: #1677f2;
  background:
    linear-gradient(180deg, rgba(235, 245, 255, .98), rgba(222, 239, 255, .98)),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(22, 119, 242, .1) 35px 36px);
  box-shadow: inset 0 0 0 2px rgba(22, 119, 242, .12);
}

body.theme-dark .signature-canvas.is-signature-locked,
body.theme-dark .guest-signature-canvas.is-signature-locked,
body.dark-theme .signature-canvas.is-signature-locked,
body.dark-theme .guest-signature-canvas.is-signature-locked {
  border-color: #4ea978;
  background: linear-gradient(180deg, #183527, #142d22);
  box-shadow: inset 0 0 0 2px rgba(92, 207, 137, .13);
}

body.theme-dark .signature-canvas.is-signature-settling,
body.theme-dark .guest-signature-canvas.is-signature-settling,
body.dark-theme .signature-canvas.is-signature-settling,
body.dark-theme .guest-signature-canvas.is-signature-settling {
  border-color: #5da6ff;
  background: linear-gradient(180deg, #17304b, #13283e);
  box-shadow: inset 0 0 0 2px rgba(93, 166, 255, .16);
}

.signature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.guide-iobp-card {
  border-color: #9ec6f2;
  background: linear-gradient(180deg, #f8fbff, #eef6ff);
}

.guide-iobp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 16px;
}

.guide-iobp-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.guide-iobp-preview {
  width: 100%;
  min-height: 520px;
  border: 1px solid #b8cbe0;
  border-radius: 4px;
  background: #fff;
}

body.theme-dark .guide-iobp-card,
body.dark-theme .guide-iobp-card {
  border-color: #335f8f;
  background: linear-gradient(180deg, #11263d, #0e2135);
}

body.theme-dark .guide-iobp-preview,
body.dark-theme .guide-iobp-preview {
  border-color: #3c5f82;
  background: #f8fbff;
}

.work-order-users,
.work-order-guests {
  margin: 0;
  padding: 14px;
  border: 1px solid #ccd8e7;
  border-radius: 14px;
}

.work-order-users legend,
.work-order-guests legend {
  padding: 0 6px;
  font-weight: 800;
  color: #34445a;
}

.single-action-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #8ebcf4;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(22, 119, 242, 0.12), rgba(46, 204, 113, 0.08));
  cursor: pointer;
}

.single-action-option span {
  display: grid;
  gap: 3px;
}

.single-action-option b {
  color: var(--blue-dark);
  font-size: 0.92rem;
}

.single-action-option small {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.work-order-partner-box {
  margin-bottom: 12px;
}

.admin-work-order > div:first-child {
  display: grid;
  gap: 4px;
}

.work-order-guests {
  display: grid;
  gap: 12px;
  background: var(--tnvora-surface-cool);
}

#workOrderGuestsList {
  display: grid;
  gap: 12px;
}

.work-order-guest {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d8e6f5;
  border-radius: 14px;
  background: var(--tnvora-white);
}

.guest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.guest-signature-canvas {
  width: 100%;
  min-height: 140px;
  border: 1px dashed #9db4cf;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 253, 0.98)),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(22, 119, 242, 0.08) 31px 32px);
  box-shadow: inset 0 1px 8px rgba(15, 23, 42, 0.08);
  touch-action: none;
  overscroll-behavior: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.guest-signature-status {
  min-height: 2.7em;
  line-height: 1.35;
}

.admin-work-orders-list {
  display: grid;
  gap: 10px;
}

.admin-work-order {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid #d7e2ef;
  border-left: 4px solid #f0a000;
  border-radius: 12px;
  background: #fffaf0;
}

.user-work-order {
  display: block;
}

.user-work-order-summary,
.user-work-order-info {
  display: grid;
  gap: 8px;
}

.user-work-order .admin-user-actions {
  justify-content: flex-start;
  margin-top: 12px;
}

/* V11.19: formalne pola podpisu pozostają pełnej szerokości karty. */
.user-work-order .admin-user-actions > :is(
  .boss-sign-direct,
  .issuer-condition-picker,
  .issuer-pre-sign-review,
  .work-order-sign-button
) {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.user-work-order .admin-user-actions :is(select, input, textarea, button),
.user-work-order .work-order-sign-as {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.user-work-order-info > *,
.user-work-order .work-order-sign-as :is(b, span, small),
.user-work-order .work-order-condition-picker label > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.user-work-order .work-order-active-details {
  width: 100%;
  margin-top: 14px;
}

.signed-work-order {
  border-left-color: #16a34a;
  background: linear-gradient(135deg, #ecfdf5, #dcfce7);
}

.signed-work-order strong {
  color: #166534;
}

.coordinator-work-order {
  border-left-color: var(--tnvora-warning-500);
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.coordinator-work-order strong {
  color: #92400e;
}

.work-order-active-details {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: rgba(244, 249, 255, 0.86);
}

.work-order-active-details summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
}

.work-order-active-group {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(0, 91, 187, 0.12);
  border-radius: 12px;
  background: #f7fbff;
}

.work-order-active-group > div:first-child {
  display: grid;
  gap: 2px;
}

.work-order-active-group strong {
  color: var(--navy);
  font-size: 0.86rem;
}

.work-order-role-hint {
  justify-self: start;
  border: 0;
  padding: 0;
  color: #617088;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.work-order-role-hint:hover,
.work-order-role-hint:focus-visible {
  color: #1677f2;
  text-decoration: underline;
}

.work-order-active-group-tasks {
  display: grid;
  gap: 7px;
}

.work-order-active-task {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(86px, auto);
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(0, 91, 187, 0.1);
  border-radius: 10px;
  background: var(--tnvora-white);
}

.work-order-active-task span {
  font-size: 0.82rem;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
}

.work-order-active-task.readonly-task {
  background: #f3f7fb;
}

.work-order-active-task.gated-task {
  border-color: #d8dee8;
  background: #eef2f7;
  opacity: .82;
}

.work-order-task-gate-note {
  display: block;
  margin-top: 5px;
  color: #8a5a08;
  font-size: .7rem;
  font-weight: 800;
}

.work-order-coordinator-confirmation {
  display: block;
  margin-top: 5px;
  color: #087453;
  font-size: .72rem;
  font-weight: 900;
}

.work-order-readiness-alert {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 2px solid #e4a20a;
  border-left-width: 7px;
  border-radius: 12px;
  color: #5f3904;
  background: #fff7d6;
  box-shadow: 0 0 0 3px rgba(228, 162, 10, .12);
}

.work-order-readiness-alert strong { color: #713f12; }

.work-order-readiness-alert.is-approved {
  border-color: #159260;
  color: #14532d;
  background: #ecfdf5;
  box-shadow: 0 0 0 3px rgba(21, 146, 96, .12);
}

.work-order-readiness-alert.is-approved strong { color: #166534; }

.active-time-control {
  display: block;
  min-width: 86px;
}

.work-order-task-moment {
  display: grid;
  grid-template-columns: minmax(86px, 104px);
  gap: 6px;
  align-items: end;
}

.work-order-task-moment.multi-day {
  grid-template-columns: minmax(142px, 168px) minmax(86px, 104px);
}

.work-order-task-date,
.work-order-task-time {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.work-order-task-date small,
.work-order-task-time small {
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.work-order-task-date input {
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--tnvora-border);
  border-radius: 9px;
  background: var(--tnvora-white);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
}

.work-order-active-extra {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px;
  margin-top: 12px;
}

.work-order-breaks-field {
  display: grid;
  gap: 6px;
}

.work-order-breaks-field:not([open]) .work-order-break-row,
.work-order-breaks-field:not([open]) .work-order-break-extra {
  display: none;
}

.work-order-break-extra {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.work-order-breaks-field > span,
.work-order-breaks-field > summary {
  color: #41536a;
  font-size: 0.78rem;
  font-weight: 900;
}

.work-order-breaks-field > summary {
  cursor: pointer;
  list-style: none;
}

.work-order-breaks-field > summary::-webkit-details-marker {
  display: none;
}

.work-order-breaks-field > summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 6px;
}

.work-order-breaks-field[open] > summary::before {
  content: "▾";
}

.work-order-active-extra .full-width {
  grid-column: 1 / -1;
}

.active-save-state {
  align-self: center;
  color: #536276;
  font-size: 0.78rem;
  font-weight: 800;
}

.active-time-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
}

.active-time-sheet {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  display: grid;
  grid-template-rows: auto auto minmax(0, auto) auto;
  gap: 12px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 20px;
  background: var(--tnvora-white);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.active-time-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.active-time-head strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.active-time-preview {
  color: #0f172a;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 950;
  letter-spacing: 0.05em;
  text-align: center;
}

.active-time-wheel {
  position: relative;
  overflow: hidden;
  border: 1px solid #d7e2ef;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--tnvora-surface-cool), var(--tnvora-surface-blue));
}

.active-time-dual-wheel {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.active-time-wheel-labels,
.active-time-wheels-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
}

.active-time-wheel-labels {
  color: var(--tnvora-gray-500);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.active-time-wheel-labels span:first-child {
  grid-column: 1;
}

.active-time-wheel-labels span:last-child {
  grid-column: 3;
}

.active-time-wheels-body {
  position: relative;
  overflow: hidden;
  align-items: stretch;
}

.active-time-wheels-body::before,
.active-time-wheels-body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  height: 74px;
  pointer-events: none;
}

.active-time-wheels-body::before {
  top: 0;
  background: linear-gradient(180deg, var(--tnvora-surface-cool) 0%, rgba(248, 251, 255, 0) 100%);
}

.active-time-wheels-body::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--tnvora-surface-blue) 0%, rgba(238, 245, 255, 0) 100%);
}

.active-time-options {
  --active-time-wheel-height: clamp(220px, 36vh, 320px);
  height: var(--active-time-wheel-height);
  max-height: none;
  overflow-y: auto;
  display: grid;
  gap: 6px;
  padding: calc((var(--active-time-wheel-height) - 54px) / 2) 8px;
  scrollbar-width: none;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
}

#activeTimeConfirm {
  position: relative;
  z-index: 5;
  min-height: 52px;
}

.active-time-separator {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  color: #0f172a;
  font-size: 2rem;
  font-weight: 950;
  pointer-events: none;
}

.active-time-options::-webkit-scrollbar {
  display: none;
}

.active-time-option {
  position: relative;
  z-index: 1;
  min-height: 54px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #627287;
  background: transparent;
  font-size: 1.12rem;
  font-weight: 900;
  cursor: pointer;
  scroll-snap-align: center;
}

.boss-work-order-info {
  display: grid;
  gap: 5px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(22, 101, 52, 0.18);
  border-radius: 12px;
  background: #f0fdf4;
  color: #14532d;
}

.boss-work-order-info b {
  font-size: 0.86rem;
}

.boss-work-order-info span,
.boss-work-order-info small {
  color: #166534;
  min-width: 0;
  overflow-wrap: anywhere;
}

.boss-sign-direct {
  min-width: 190px;
}

.boss-sign-direct b,
.boss-sign-direct span {
  display: block;
}

.work-order-break-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.work-order-sign-as {
  display: grid;
  gap: 7px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--tnvora-surface-blue);
  border: 1px solid #cbd8e8;
  color: #536276;
  font-size: 0.76rem;
  font-weight: 800;
}

.work-order-sign-favorite {
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
}

.empty-state.compact {
  padding: 24px 15px;
}

.empty-state {
  padding: 42px 20px;
  border: 1px dashed #b9c5d1;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 6px;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.empty-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(20, 121, 247, 0.22);
  font-weight: 900;
}

.entries-list {
  display: grid;
  gap: 10px;
}

.date-tile {
  display: grid;
  width: 51px;
  height: 55px;
  place-content: center;
  border-radius: 12px;
  text-align: center;
  color: white;
  background: linear-gradient(150deg, var(--navy-2), #2d3d52);
}

.date-tile b {
  font-size: 1.2rem;
  line-height: 1;
}

.date-tile span {
  margin-top: 3px;
  color: #aebbd0;
  font-size: 0.57rem;
  font-weight: 900;
  text-transform: uppercase;
}

.entry-main strong,
.entry-main span {
  display: block;
}

.entry-title {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.entry-main span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
}

.entry-hours {
  text-align: right;
}

.entry-hours b {
  display: block;
  white-space: nowrap;
}

.personal-notes-list {
  display: grid;
  gap: 12px;
}

.personal-note-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  background: var(--tnvora-white);
}

.personal-note-item.note-due {
  border-color: var(--tnvora-warning-500);
  background: #fffbeb;
}

.personal-note-item strong,
.personal-note-item span {
  display: block;
}

.personal-note-item span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
}

.personal-note-item p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
  white-space: pre-wrap;
}

.entry-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 7px;
}

.entry-actions .entry-delete-action {
  color: #9f1239;
  border-color: #fecdd3;
  background: var(--tnvora-danger-50);
}

.auth-error {
  margin: 0;
}

.login-version {
  display: block;
  margin-top: 14px;
  color: #7a8490;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.login-product-name {
  margin: 8px 0 0;
  color: var(--gp-green);
  font-size: 0.92rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.login-logo {
  width: min(100%, 300px);
  height: auto;
  margin: -4px auto 0;
}

.login-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 128px;
  object-fit: contain;
}

.app-overlay {
  position: fixed;
  inset: 0;
  z-index: 11;
  background: rgba(8, 14, 22, 0.58);
  backdrop-filter: blur(2px);
}

.side-brand {
  min-width: 0;
  gap: 10px;
}

.side-logo-frame {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--tnvora-white);
  box-shadow: 0 8px 18px rgba(16, 23, 34, 0.12);
}

.side-logo-frame img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.side-brand strong,
.side-brand span {
  display: block;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-brand strong {
  color: var(--side-menu-text);
  font-size: 0.96rem;
  font-weight: 950;
}

.side-brand span {
  color: var(--side-menu-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.side-admin-shortcuts {
  display: grid;
  gap: 8px;
  margin: 7px 0 5px;
  padding: 9px 0 0;
  border-top: 1px solid var(--side-menu-divider);
}

.side-info-dot {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  color: #0b5fc3;
  background: #e8f3ff;
  font-size: 0.82rem;
  font-weight: 950;
}

.app-version {
  position: fixed;
  right: max(10px, env(safe-area-inset-right));
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 2;
  padding: 4px 7px;
  border-radius: 7px;
  color: #657286;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 2px 10px rgba(16, 23, 34, 0.08);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.desktop-draggable-panel {
  cursor: grab;
}

.desktop-draggable-panel.dragging {
  opacity: 0.62;
  outline: 3px solid rgba(0, 91, 187, 0.24);
}

.desktop-fixed-panel {
  cursor: default;
  grid-column: 1;
}

@media (max-width: 767px) {
  body.theme-dark :is(
    .daily-note,
    .deadline-alerts,
    .deadline-alert-card,
    .deadline-alert,
    .deadline-alerts-card,
    .monitor-card,
    .monitor-item,
    .summary-card,
    .boss-dashboard-panel,
    .boss-vacation-block,
    .work-order-card,
    .entry-card,
    .mobile-card,
    .calendar-entry,
    .availability-card,
    .expense-card,
    .note-card,
    .vehicle-card,
    .tool-card,
    .ppe-card,
    .training-card,
    .admin-card,
    .admin-panel,
    .form-card,
    .form-section,
    .work-order-fill,
    .active-work-order-panel
  ) {
    background: rgba(15, 27, 43, 0.96) !important;
    color: var(--tnvora-surface-cool) !important;
    border-color: rgba(148, 163, 184, 0.48) !important;
  }

  body.theme-dark :is(
    .daily-note,
    .deadline-alerts,
    .deadline-alert-card,
    .deadline-alert,
    .deadline-alerts-card,
    .monitor-card,
    .monitor-item,
    .summary-card,
    .boss-dashboard-panel,
    .boss-vacation-block,
    .work-order-card,
    .entry-card,
    .mobile-card,
    .calendar-entry,
    .availability-card,
    .expense-card,
    .note-card,
    .vehicle-card,
    .tool-card,
    .ppe-card,
    .training-card,
    .admin-card,
    .admin-panel,
    .form-card,
    .form-section,
    .work-order-fill,
    .active-work-order-panel
  ) :is(h1, h2, h3, h4, p, span, small, strong, label, div, td, th, li) {
    color: var(--tnvora-surface-cool) !important;
  }

  body.theme-dark :is(.muted, .hint, .help-text, .subtitle, .meta, .card-meta, .entry-meta, .table-note, small) {
    color: var(--tnvora-gray-300) !important;
  }

  body.theme-dark :is(input, textarea, select, .select-like, .date-input, .time-select, .time-picker, .time-wheel, .time-wheel-panel) {
    background: #162236 !important;
    color: var(--tnvora-surface-cool) !important;
    border-color: #486079 !important;
  }

  body.theme-dark :is(input, textarea)::placeholder {
    color: #9fb0c6 !important;
    opacity: 1 !important;
  }

  body.theme-dark select option {
    background: #162236 !important;
    color: var(--tnvora-surface-cool) !important;
  }

  body.theme-dark :is(.deadline-alerts .mobile-card, .deadline-alerts .entry-card, .deadline-alert-card, .deadline-alert, .monitor-item, .deadline-alerts-table .deadline-overdue td) {
    background: rgba(52, 26, 34, 0.96) !important;
    color: #fff7ed !important;
    border-color: rgba(248, 113, 113, 0.55) !important;
  }

  body.theme-dark :is(.deadline-alerts .mobile-card, .deadline-alerts .entry-card, .deadline-alert-card, .deadline-alert, .monitor-item, .deadline-alerts-table .deadline-overdue td) :is(h1, h2, h3, h4, p, span, small, strong, label, div, td, th, li) {
    color: #fff7ed !important;
  }

  body.theme-dark :is(.deadline-status, .badge-danger, .chip-danger, .pill-danger, .status-danger, .overdue, .danger-pill) {
    background: var(--tnvora-danger-100) !important;
    color: var(--tnvora-danger-700) !important;
    border-color: #fecaca !important;
  }

  body.theme-dark :is(.badge, .chip, .pill, .status-pill):not(.deadline-status):not(.badge-danger):not(.chip-danger):not(.pill-danger):not(.status-danger):not(.overdue):not(.danger-pill) {
    color: var(--tnvora-surface-cool) !important;
  }

  body.theme-dark .app-shell > :not(.side-menu):not(.bottom-nav) :is(.btn, .button, .icon-button, .secondary-button):not(.primary):not(.primary-button):not(.btn-primary):not(.primary-action):not(.danger):not(.danger-action):not(.danger-button):not(.delete-button):not(.pending-report-dismiss):not(.logout-btn):not(.theme-toggle),
  body.theme-dark dialog :is(.btn, .button, .icon-button, .secondary-button):not(.primary):not(.primary-button):not(.btn-primary):not(.primary-action):not(.danger):not(.danger-action):not(.danger-button):not(.delete-button):not(.pending-report-dismiss):not(.logout-btn):not(.theme-toggle) {
    background: #24364e !important;
    color: var(--tnvora-surface-cool) !important;
    border-color: rgba(148, 163, 184, 0.45) !important;
  }

  body.theme-dark .app-shell > :not(.side-menu):not(.bottom-nav) :is(.primary, .btn-primary, .primary-action, .save-button),
  body.theme-dark dialog :is(.primary, .btn-primary, .primary-action, .save-button) {
    background: #1684ff !important;
    color: var(--tnvora-white) !important;
  }

  body.theme-dark .app-shell > :not(.side-menu):not(.bottom-nav) :is(.danger, .danger-button, .delete-button),
  body.theme-dark dialog :is(.danger, .danger-button, .delete-button) {
    background: var(--tnvora-danger-700) !important;
    color: var(--tnvora-white) !important;
  }

  body.theme-dark .app-shell > :not(.side-menu):not(.bottom-nav) :is(button:disabled, .btn:disabled, .button:disabled, .disabled),
  body.theme-dark dialog :is(button:disabled, .btn:disabled, .button:disabled, .disabled) {
    color: var(--tnvora-gray-300) !important;
    opacity: 0.72 !important;
  }

  body.theme-dark .bottom-nav {
    background: rgba(5, 10, 18, 0.98) !important;
    border-color: rgba(148, 163, 184, 0.35) !important;
  }

  body.theme-dark .bottom-nav :is(button, .nav-item, .bottom-nav-item) {
    background: transparent !important;
    color: var(--tnvora-surface-cool) !important;
  }

  body.theme-dark .bottom-nav :is(.active, [aria-current="page"]) {
    background: rgba(59, 130, 246, 0.24) !important;
    color: #60a5fa !important;
  }
}

/* The new-order draft is independent from the open-document list. */
#workOrderForm[hidden] {
  display: none !important;
}

.admin-user-create-panel {
  display: grid;
  gap: 13px;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-user-create-heading,
.admin-user-panel-heading {
  gap: 10px;
}

.admin-user-create-heading strong,
.admin-user-panel-heading h4 {
  display: block;
  margin: 0;
  color: #f8fafc;
  font-size: 0.85rem;
}

.admin-user-create-heading small,
.admin-user-panel-heading p {
  display: block;
  margin: 3px 0 0;
  color: #8fa1b8;
  font-size: 0.68rem;
}

.admin-user-create-fields {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(220px, 1.25fr) minmax(180px, 1fr);
  gap: 10px;
}

.admin-user-create-submit {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.admin-user-create-submit p {
  margin: 0 auto 0 0;
  color: #8496ad;
  font-size: 0.68rem;
}

.admin-user-row {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 12px;
  padding: 0;
  overflow: hidden;
  border-color: rgba(96, 165, 250, 0.18);
  background: rgba(15, 23, 42, 0.26);
}

.admin-user-facts {
  display: grid;
  gap: 8px;
  margin: 0;
}

.admin-user-facts > div {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(100px, auto);
  gap: 10px;
}

.admin-user-facts dt {
  color: #8597ad;
  font-size: 0.66rem;
}

.admin-user-facts dd {
  margin: 0;
  color: #e6edf7;
  font-size: 0.68rem;
  font-weight: 850;
  text-align: right;
}

.admin-user-access-panel,
.admin-user-danger-zone {
  grid-column: 1 / -1;
}

.admin-user-access-panel .admin-user-actions,
.admin-user-danger-actions {
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  margin-top: 12px;
}

.admin-user-danger-zone {
  padding: 0;
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(127, 29, 29, 0.08);
}

.admin-user-danger-zone summary {
  padding: 12px 14px;
  color: #fca5a5;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 900;
}

.admin-user-danger-zone > p,
.admin-user-danger-actions {
  padding-right: 14px;
  padding-left: 14px;
}

.admin-user-danger-zone > p {
  margin: 0;
  padding-bottom: 4px;
  color: #a99aa0;
  font-size: 0.66rem;
}

.admin-user-danger-actions {
  padding-bottom: 14px;
}

:root {
  --opsui-page-max: 1440px;
  --opsui-surface: #121c2a;
  --opsui-surface-muted: #172234;
  --opsui-surface-raised: #1b293a;
  --opsui-border: #33445c;
  --opsui-border-strong: #40536d;
  --opsui-text: var(--tnvora-surface-blue);
  --opsui-muted: #91a3ba;
  --opsui-primary: #4f9bff;
  --opsui-primary-soft: #142b4d;
  --opsui-field: #66a93e;
  --opsui-signal: #19b5bf;
  --opsui-radius: 8px;
  --opsui-radius-small: 6px;
}

.leader-analytics-panel {
  width: min(100%, var(--opsui-page-max));
  min-width: 0;
  margin-inline: auto;
  padding: clamp(16px, 2vw, 26px);
  border-color: var(--opsui-border);
  border-radius: var(--opsui-radius);
  color: var(--opsui-text);
  background: var(--opsui-surface);
  box-shadow: 0 16px 40px rgba(4, 12, 24, 0.16);
}

.opsui-panel-header {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--opsui-border);
}

.opsui-panel-header h2 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  letter-spacing: -0.025em;
}

.leader-analytics-period {
  display: grid;
  width: min(220px, 100%);
  min-width: 0;
  flex: 0 0 min(220px, 100%);
  gap: 6px;
  color: var(--opsui-muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leader-available-team-heading h3 {
  margin: 2px 0 0;
  color: var(--opsui-text);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

.leader-available-team-heading > div > p:last-child {
  margin: 5px 0 0;
  color: var(--opsui-muted);
  font-size: 0.78rem;
}

.leader-available-technicians-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.leader-available-technicians-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px 12px;
  align-items: start;
  min-height: 112px;
  padding: 14px 16px;
  border: 1px solid #18794e;
  border-radius: var(--opsui-radius);
  color: #ecfdf5;
  background: linear-gradient(135deg, #065f46, #064e3b);
  box-shadow: 0 8px 20px rgba(6, 78, 59, 0.18);
}

.leader-available-technicians-list article i {
  grid-row: 1 / span 3;
  margin-top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.16);
}

.leader-technician-location-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.leader-available-technicians-list article strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.98rem;
}

.leader-available-technicians-list article b {
  color: #f0fdf4;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.leader-available-technicians-list article small {
  color: #bbf7d0;
  font-size: 0.78rem;
  font-weight: 750;
}

.leader-available-technicians-list article.is-assigned {
  border-color: #2563eb;
  background: linear-gradient(135deg, #1e3a8a, #172554);
}

.leader-available-technicians-list article.is-assigned i {
  background: #60a5fa;
  box-shadow: 0 0 0 5px rgba(96, 165, 250, 0.16);
}

.leader-available-technicians-list article.is-vacation,
.leader-available-technicians-list article.is-available {
  border-color: var(--opsui-border-strong);
  color: var(--opsui-text);
  background: var(--opsui-surface);
  box-shadow: none;
}

.leader-available-technicians-list article.is-vacation i,
.leader-available-technicians-list article.is-available i {
  background: #94a3b8;
  box-shadow: 0 0 0 5px rgba(148, 163, 184, 0.14);
}

.leader-available-technicians-list article.is-vacation b,
.leader-available-technicians-list article.is-available b {
  color: var(--opsui-text);
}

.leader-available-technicians-list article.is-vacation small,
.leader-available-technicians-list article.is-available small {
  color: var(--opsui-muted);
}

.leader-available-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--opsui-border-strong);
  border-radius: var(--opsui-radius);
  color: var(--opsui-muted);
  background: var(--opsui-surface);
  text-align: center;
}

.leader-ranking-list {
  display: grid;
  gap: 7px;
}

.leader-ranking-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(70px, auto);
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--opsui-border);
  border-radius: var(--opsui-radius-small);
  background: var(--opsui-surface);
}

.leader-ranking-position {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  font-size: 0.67rem;
}

.leader-ranking-main {
  min-width: 0;
}

.leader-ranking-main > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.leader-ranking-main strong {
  overflow: hidden;
  color: var(--opsui-text);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-ranking-main span,
.leader-ranking-values span {
  color: var(--opsui-muted);
  font-size: 0.62rem;
  white-space: nowrap;
}

.leader-ranking-track {
  height: 5px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--opsui-surface-raised);
}

.leader-ranking-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--opsui-primary), var(--opsui-signal));
}

.leader-ranking-values {
  text-align: right;
}

.leader-ranking-values strong {
  display: block;
  color: var(--opsui-text);
  font-size: 0.9rem;
}

.leader-signature-competition {
  margin-top: 12px;
}

.leader-signature-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  margin-bottom: 12px;
}

.leader-signature-score article:first-child {
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  border-left: 3px solid var(--opsui-field);
}

.leader-signature-score article:last-child {
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  border-left: 3px solid var(--opsui-signal);
}

.leader-signature-score strong {
  display: block;
  margin-top: 7px;
  color: var(--opsui-text);
  font-size: 1.35rem;
}

.leader-versus {
  display: grid;
  place-items: center;
  color: var(--opsui-muted);
  font-size: 0.72rem;
  font-weight: 950;
}

.leader-signature-timeline {
  display: grid;
  gap: 6px;
}

.leader-signature-timeline article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, auto) minmax(90px, auto);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--opsui-border);
  border-radius: var(--opsui-radius-small);
  background: var(--opsui-surface);
}

.leader-signature-timeline article > div:first-child {
  min-width: 0;
}

.leader-signature-timeline strong,
.leader-signature-timeline span,
.leader-signature-timeline small,
.leader-signature-timeline b {
  display: block;
}

.leader-signature-timeline strong {
  overflow: hidden;
  color: var(--opsui-text);
  font-size: 0.73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-signature-timeline span,
.leader-signature-timeline small {
  margin-top: 3px;
  color: var(--opsui-muted);
  font-size: 0.61rem;
}

.leader-signature-timeline b {
  margin-top: 2px;
  color: var(--opsui-text);
  font-size: 0.75rem;
}

.opsui-empty-state,
.opsui-empty-cell {
  padding: 22px;
  color: var(--opsui-muted);
  font-size: 0.74rem;
  text-align: center;
}

#adminPanel {
  width: 100%;
  min-width: 0;
}

#adminPanel > .admin-heading,
#adminPanel > .admin-toolbar,
#adminPanel > .admin-summary,
#adminPanel > .admin-users,
#adminPanel > .empty-state,
#adminPanel > .admin-entries-list {
  width: min(100%, var(--opsui-page-max));
  margin-right: auto;
  margin-left: auto;
}

#adminPanel > .admin-heading,
#adminPanel > .admin-toolbar,
#adminPanel > .admin-users {
  border-radius: var(--opsui-radius);
}

#adminPanel > .admin-toolbar {
  display: block;
  padding: 16px;
  border-color: var(--opsui-border);
  background: var(--opsui-surface);
}

#adminPanel .admin-user-filter-label {
  display: grid;
  width: 100%;
  max-width: none;
  gap: 10px;
  color: var(--opsui-muted);
}

#adminPanel .admin-user-filter-label > .admin-picker-row {
  grid-template-columns: minmax(220px, 1fr);
  margin: 0;
}

#adminPanel .admin-user-filter-label > .admin-filter-actions {
  grid-template-columns: repeat(2, minmax(150px, 220px));
  justify-content: start;
  margin: 0;
}

#adminPanel .admin-cert-range {
  grid-template-columns: repeat(2, minmax(190px, 260px));
  justify-content: start;
  margin: 0;
}

#workOrderPanel {
  width: min(100%, var(--opsui-page-max));
  margin-inline: auto;
  padding: clamp(16px, 2vw, 24px);
  border-color: var(--opsui-border);
  border-radius: var(--opsui-radius);
}

#workOrderPanel > .section-title {
  margin-bottom: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--opsui-border);
}

#adminFarmManagement {
  padding: clamp(16px, 2vw, 22px);
  border-color: var(--opsui-border);
  background: var(--opsui-surface);
}

#adminFarmManagement > .admin-users-heading {
  margin-bottom: 15px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--opsui-border);
}

#adminFarmManagement .admin-farm-actions {
  display: flex;
  gap: 8px;
}

#adminFarmManagement .admin-farms-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#adminFarmManagement .admin-farm-row {
  align-content: start;
  min-width: 0;
  padding: 15px;
  border-color: var(--opsui-border);
  border-radius: var(--opsui-radius);
  color: var(--opsui-text);
  background: var(--opsui-surface-muted);
}

#adminFarmManagement .admin-farm-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#adminFarmManagement .admin-farm-heading h4 {
  margin: 7px 0 0;
  overflow-wrap: anywhere;
}

#adminFarmManagement .admin-farm-row-actions {
  justify-content: flex-end;
}

#adminFarmManagement .admin-farm-row small {
  color: var(--opsui-muted);
}

:root {
  --ops-page-width: 1440px;
  --ops-gap: clamp(10px, 1vw, 14px);
  --ops-card-padding: clamp(14px, 1.35vw, 20px);
  --ops-shadow: 0 14px 34px rgba(4, 12, 24, 0.15);
  --ops-danger: #e0565b;
  --ops-warning: #e6a637;
  --ops-success: #61ad3f;
}

.panel,
.history-section,
.admin-users {
  padding: var(--ops-card-padding);
}

.admin-panel {
  padding: 0;
  background: transparent;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--opsui-primary);
  font-size: 0.61rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.vehicle-list,
.tool-list,
.admin-work-orders-list,
.admin-problem-reports-list,
.notebook-list,
.sms-queue-list,
.client-logs-list,
.vacation-user-days-list {
  display: grid;
  gap: 8px;
}

.analytics-section,
.client-ranking-section,
.analytics-chart-section {
  padding: 15px;
}

.signature-canvas,
.guest-signature-canvas {
  border: 1px dashed var(--opsui-border-strong);
  border-radius: var(--opsui-radius);
}

#newReportPanel,
#signaturePanel,
#vehiclePanel,
#toolsPanel,
#ppePanel,
#trainingPanel,
#expensesPanel,
#workHoursPanel,
#certPanel,
#historyPanel,
#vacationPanel,
#notebookPanel,
#problemPanel,
#bossDashboardPanel,
#activeWorkOrdersPanel,
#leaderAnalyticsPanel {
  width: min(100%, var(--ops-page-width));
  margin-right: auto;
  margin-left: auto;
  border-color: var(--opsui-border);
  border-radius: var(--opsui-radius);
  color: var(--opsui-text);
  background: var(--opsui-surface);
  box-shadow: var(--ops-shadow);
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.top-action-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.admin-overview-panel {
  display: grid;
  gap: 14px;
}

.admin-overview-heading {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--opsui-border);
}

.admin-overview-heading h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
}

.admin-overview-heading p:last-child {
  margin: 7px 0 0;
  color: var(--opsui-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.admin-overview-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.admin-overview-kpi {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 102px;
  align-content: start;
  gap: 5px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--opsui-border);
  border-radius: var(--opsui-radius);
  color: var(--opsui-text);
  background: var(--opsui-surface-muted);
  box-shadow: none;
  text-align: left;
}

.admin-overview-kpi[data-admin-storage] {
  grid-column: 1 / -1;
  min-height: 84px;
}

.admin-overview-kpi[data-admin-storage] small {
  white-space: normal;
}

.admin-overview-kpi::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--opsui-primary);
  content: "";
}

.admin-overview-kpi.tone-good::before {
  background: var(--ops-success);
}

.admin-overview-kpi.tone-warning::before {
  background: var(--ops-warning);
}

.admin-overview-kpi.tone-danger::before {
  background: var(--ops-danger);
}

.admin-overview-kpi span,
.admin-overview-kpi small {
  overflow: hidden;
  color: var(--opsui-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-overview-kpi span {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.admin-overview-kpi strong {
  font-size: 1.6rem;
  line-height: 1;
}

.admin-overview-kpi small {
  font-size: 0.64rem;
}

.admin-overview-kpi:hover,
.admin-overview-kpi:focus-visible {
  border-color: var(--opsui-primary);
  background: var(--opsui-primary-soft);
}

.admin-overview-audit-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.admin-overview-audit-metric {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 96px;
  align-content: start;
  gap: 6px;
  padding: 13px 13px 12px 16px;
  overflow: hidden;
  border: 1px solid var(--opsui-border);
  border-radius: var(--opsui-radius-small);
  background: var(--opsui-surface-raised);
}

.admin-overview-audit-metric::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--opsui-primary);
  content: "";
}

.admin-overview-audit-metric.tone-good::before { background: var(--ops-success); }

.admin-overview-audit-metric.tone-warning::before { background: var(--ops-warning); }

.admin-overview-audit-metric.tone-danger::before { background: var(--ops-danger); }

.admin-overview-audit-metric span,
.admin-overview-audit-metric small {
  color: var(--opsui-muted);
}

.admin-overview-audit-metric span {
  font-size: 0.59rem;
  font-weight: 950;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.admin-overview-audit-metric strong {
  overflow-wrap: anywhere;
  font-size: clamp(1.05rem, 1.7vw, 1.38rem);
  line-height: 1.05;
}

.admin-overview-audit-metric small {
  font-size: 0.6rem;
  line-height: 1.35;
}

.admin-overview-role-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.admin-overview-role-list {
  display: grid;
  gap: 6px;
}

.admin-overview-role-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border: 1px solid var(--opsui-border);
  border-radius: 9px;
  background: var(--opsui-surface-muted);
}

.admin-overview-role-rank {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  color: var(--opsui-primary);
  background: var(--opsui-primary-soft);
  font-size: 0.64rem;
  font-weight: 950;
}

.admin-overview-role-row b { font-size: 0.65rem; }

.admin-overview-role-row small {
  color: var(--opsui-muted);
  font-size: 0.56rem;
  line-height: 1.35;
}

.admin-overview-role-row > strong {
  justify-items: end;
  color: var(--ops-success);
  font-size: 0.72rem;
  white-space: nowrap;
}

.admin-overview-order-bars,
.admin-overview-activity {
  display: grid;
  gap: 8px;
}

.admin-overview-order-row,
.admin-overview-event {
  width: 100%;
  min-width: 0;
  border: 0;
  color: var(--opsui-text);
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.admin-overview-order-row {
  display: grid;
  gap: 7px;
  padding: 8px 0;
}

.admin-overview-order-row > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.7rem;
}

.admin-overview-order-row > i {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--opsui-surface-raised);
}

.admin-overview-order-row > i em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ops-warning);
}

.admin-overview-order-row > i em.active {
  background: var(--opsui-primary);
}

.admin-overview-order-row > i em.closed {
  background: var(--ops-success);
}

.admin-overview-event {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--opsui-border);
  border-radius: var(--opsui-radius-small);
  background: var(--opsui-surface-raised);
}

.admin-overview-event > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ops-success);
}

.admin-overview-event > i.error {
  background: var(--ops-danger);
}

.admin-overview-event span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.admin-overview-event b,
.admin-overview-event small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-overview-event b {
  font-size: 0.68rem;
}

.admin-overview-event small,
.admin-overview-event em {
  color: var(--opsui-muted);
  font-size: 0.59rem;
  font-style: normal;
}

.client-log-filters {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--opsui-border);
  border-radius: var(--opsui-radius);
  background: var(--opsui-surface-muted);
}

.client-log-item,
.client-log-item > *,
.client-log-item p,
.client-log-item small,
.problem-report-item {
  min-width: 0;
  max-width: 100%;
}

.client-log-item {
  display: grid;
  width: 100%;
  overflow: hidden;
}

.client-log-item strong,
.client-log-item small,
.client-log-item p {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.client-log-item p {
  margin: 8px 0;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.69rem;
  line-height: 1.5;
}

.work-order-bulk-tools {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
}

.work-order-database-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.work-order-database-summary > div {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid var(--opsui-border);
  border-radius: var(--opsui-radius-small);
  background: var(--opsui-surface-muted);
}

.work-order-database-summary span {
  color: var(--opsui-muted);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.work-order-database-summary b {
  color: var(--opsui-text);
  font-size: 1.18rem;
}

.work-order-reference {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--opsui-primary);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.67rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.work-order-database-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.work-order-database-facts > div {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--opsui-border);
  border-radius: var(--opsui-radius-small);
  background: var(--opsui-surface-raised);
}

.work-order-database-facts span,
.work-order-database-facts small {
  color: var(--opsui-muted);
  font-size: 0.59rem;
}

.work-order-database-facts span {
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.work-order-database-facts b {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--opsui-text);
  font-size: 0.68rem;
}

.work-order-database-people,
.work-order-database-roles {
  color: var(--opsui-muted);
  font-size: 0.67rem;
  line-height: 1.5;
}

.work-order-database-people b,
.work-order-database-roles b {
  color: var(--opsui-text);
}

.work-order-database-actions {
  align-items: stretch;
}

.work-order-audit-details {
  min-width: 0;
  border-top: 1px solid var(--opsui-border);
}

.work-order-audit-details > summary {
  padding: 12px 0 2px;
  color: var(--opsui-primary);
  font-size: 0.7rem;
  font-weight: 900;
  cursor: pointer;
}

.work-order-audit-timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-order-audit-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding-bottom: 13px;
}

.work-order-audit-timeline li::before {
  position: absolute;
  top: 9px;
  bottom: -2px;
  left: 4px;
  width: 1px;
  background: var(--opsui-border-strong);
  content: "";
}

.work-order-audit-timeline li:last-child::before {
  display: none;
}

.work-order-audit-timeline li > i {
  z-index: 1;
  width: 9px;
  height: 9px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--opsui-primary);
}

.work-order-audit-timeline li.tone-good > i,
.work-order-audit-timeline li.tone-closed > i {
  background: var(--ops-success);
}

.work-order-audit-timeline li.tone-warning > i {
  background: var(--ops-warning);
}

.work-order-audit-timeline li.tone-danger > i {
  background: var(--ops-danger);
}

.work-order-audit-timeline li > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.work-order-audit-timeline strong,
.work-order-audit-timeline span,
.work-order-audit-timeline small,
.work-order-audit-logs article > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.work-order-audit-timeline strong {
  font-size: 0.67rem;
}

.work-order-audit-timeline span,
.work-order-audit-timeline small,
.work-order-audit-logs small {
  color: var(--opsui-muted);
  font-size: 0.6rem;
}

.work-order-audit-logs {
  display: grid;
  gap: 7px;
}

.work-order-audit-logs article {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 9px;
  overflow: hidden;
  border: 1px solid var(--opsui-border);
  border-radius: var(--opsui-radius-small);
  background: var(--opsui-surface-muted);
}

.work-order-audit-logs strong {
  font-size: 0.65rem;
}

.work-order-audit-logs p {
  margin: 3px 0 0;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.61rem;
  line-height: 1.45;
  word-break: break-word;
}

.pl-date-control {
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: minmax(0, 1fr) 44px !important;
  gap: 7px !important;
}

.pl-date-control > .pl-date-native {
  position: absolute !important;
  width: 1px !important;
  min-width: 0 !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.pl-date-control > .pl-date-display {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  text-align: center !important;
}

.pl-date-control > .pl-date-picker {
  display: block !important;
  width: 44px !important;
  min-width: 44px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border: 1px solid var(--opsui-border) !important;
  color: var(--opsui-text) !important;
  background: var(--opsui-surface-muted) !important;
}

body.theme-light #summaryPanel::after {
  display: none;
}

.pl-date-control {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
}

.pl-date-control > .pl-date-native {
  position: absolute !important;
  width: 1px !important;
  min-width: 0 !important;
  height: 1px !important;
  min-height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.pl-date-control > .pl-date-display {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  cursor: pointer !important;
  caret-color: transparent;
  user-select: none;
}

.pl-date-control > .pl-date-picker {
  display: none !important;
}

.fleet-subsection {
  overflow: hidden;
  border: 1px solid var(--opsui-border, var(--tnvora-gray-300));
  border-radius: 16px;
  background: var(--opsui-surface-soft, rgba(148, 163, 184, 0.08));
}

.fleet-subsection > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 900;
}

.fleet-subsection > summary::-webkit-details-marker {
  display: none;
}

.fleet-subsection > summary::after {
  content: "+";
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--tnvora-white);
  background: var(--blue);
}

.fleet-subsection[open] > summary::after {
  content: "−";
}

.fleet-subsection > summary small {
  margin-left: auto;
  color: var(--opsui-muted, var(--tnvora-gray-500));
}

.fleet-subsection > :not(summary) {
  margin: 0 16px 16px;
}

.boss-available-workers-panel,
.employee-overview-panel,
.employee-time-panel {
  width: min(100%, var(--ops-page-width, 1480px));
  margin-inline: auto;
}

.available-workers-count,
.employee-time-live {
  display: inline-grid;
  min-width: 42px;
  min-height: 34px;
  padding: 6px 12px;
  place-items: center;
  border: 1px solid #166534;
  border-radius: 999px;
  color: #dcfce7;
  background: #14532d;
  font-weight: 900;
}

.available-workers-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.available-workers-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 12px;
  align-items: center;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid #166534;
  border-radius: 14px;
  color: #ecfdf5;
  background: #064e3b;
  box-shadow: 0 10px 24px rgba(6, 78, 59, 0.2);
}

.available-workers-list article i {
  grid-row: 1 / span 2;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.16);
}

.available-workers-list article strong {
  font-size: 1.02rem;
}

.available-workers-list article span {
  color: #bbf7d0;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.available-workers-list article.is-inactive,
.available-workers-list article.is-vacation {
  border-color: var(--opsui-border-strong, #94a3b8);
  color: var(--opsui-text, #e2e8f0);
  background: var(--opsui-surface-muted, #172033);
  box-shadow: none;
}

.available-workers-list article.is-inactive i,
.available-workers-list article.is-vacation i {
  background: #94a3b8;
  box-shadow: 0 0 0 6px rgba(148, 163, 184, 0.14);
}

.available-workers-list article.is-inactive span,
.available-workers-list article.is-vacation span {
  color: var(--opsui-muted, #94a3b8);
}

.available-workers-list article.is-online {
  border-color: #2563eb;
  background: #172554;
}

.available-workers-list article.is-online i {
  background: #60a5fa;
  box-shadow: 0 0 0 6px rgba(96, 165, 250, 0.16);
}

.employee-time-clock {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(24px, 6vw, 64px);
  text-align: center;
  border: 1px solid var(--opsui-border, var(--tnvora-gray-300));
  border-radius: 22px;
  background: var(--opsui-surface-soft, rgba(148, 163, 184, 0.08));
}

.employee-time-clock > strong {
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.employee-time-action {
  width: min(100%, 380px);
  min-height: 88px;
  border: 0;
  border-radius: 22px;
  color: var(--tnvora-white);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 1000;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

.employee-time-action.start {
  background: #166534;
}

.employee-time-action.stop {
  background: #b91c1c;
}

.employee-time-live.active {
  animation: employee-live-pulse 1.5s ease-in-out infinite;
}

.employee-time-today,
.employee-work-hours-view,
.boss-employee-hours {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.employee-time-today article {
  display: grid;
  gap: 5px;
  padding: 15px 18px;
  border: 1px solid var(--opsui-border, var(--tnvora-gray-300));
  border-radius: 14px;
}

.boss-employee-hours-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.marker-employee-time {
  background: #14b8a6;
}

.employee-work-hours-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.employee-work-hours-toolbar label {
  display: grid;
  gap: 7px;
  font-weight: 850;
}

.boss-available-workers-panel .section-title {
  align-items: center;
}

.available-workers-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.available-workers-list .boss-technician-meta {
  grid-column: 2;
  color: #bbf7d0;
  font-size: 0.82rem;
  line-height: 1.3;
  font-weight: 850;
}

.boss-technicians-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--opsui-border-strong, #94a3b8);
  border-radius: 14px;
  color: var(--opsui-muted, var(--tnvora-gray-500));
  text-align: center;
}

@media (min-width: 980px) {
  .app-shell.desktop-layout.dual-analysis-home-layout > :is(
    #technicianOverviewPanel,
    #leaderAnalyticsPanel,
    #dailyNote,
    #activeWorkOrdersPanel,
    #deadlineAlerts,
    #summaryPanel
  ) {
    grid-column: 2 / -1 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    align-self: start !important;
  }

  .app-shell.desktop-layout.dual-analysis-home-layout > #technicianOverviewPanel {
    grid-row: 2 !important;
  }

  .app-shell.desktop-layout.dual-analysis-home-layout > #leaderAnalyticsPanel {
    grid-row: 3 !important;
  }

  .app-shell.desktop-layout.dual-analysis-home-layout > #dailyNote {
    grid-row: 4 !important;
  }

  .app-shell.desktop-layout.dual-analysis-home-layout > #activeWorkOrdersPanel {
    grid-row: 5 !important;
  }

  .app-shell.desktop-layout.dual-analysis-home-layout > #deadlineAlerts {
    grid-row: 6 !important;
  }

  .app-shell.desktop-layout.dual-analysis-home-layout > #summaryPanel {
    grid-row: 7 !important;
  }

  body.desktop-menu-collapsed .app-shell.desktop-layout.dual-analysis-home-layout > :is(
    #technicianOverviewPanel,
    #leaderAnalyticsPanel,
    #dailyNote,
    #activeWorkOrdersPanel,
    #deadlineAlerts,
    #summaryPanel
  ) {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 620px) {
  .technician-overview-panel,
  .technician-overview-heading,
  .technician-overview-heading > *,
  .technician-overview-period {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .technician-overview-period input[type="month"] {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 620px) {
  #technicianOverviewPanel.technician-overview-panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
  }

  #technicianOverviewPanel.technician-overview-panel > *,
  #technicianOverviewPanel .technician-overview-heading,
  #technicianOverviewPanel .technician-overview-heading > *,
  #technicianOverviewPanel .technician-overview-heading > div,
  #technicianOverviewPanel .technician-overview-period,
  #technicianOverviewPanel .technician-priority-alert,
  #technicianOverviewPanel .technician-priority-alert > div {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  #technicianOverviewPanel .technician-overview-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  #technicianOverviewPanel .technician-overview-period input[type="month"] {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  #technicianOverviewPanel .technician-priority-alert {
    box-sizing: border-box;
    align-items: flex-start;
  }

  #technicianOverviewPanel .technician-priority-alert strong,
  #technicianOverviewPanel .technician-priority-alert p {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

.technician-overview-month-field {
  position: relative;
  display: grid;
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--opsui-border-strong);
  border-radius: var(--opsui-radius-small);
  color: var(--opsui-text);
  background: var(--opsui-surface-muted);
  font-size: 0.88rem;
  font-weight: 850;
  letter-spacing: normal;
  text-transform: none;
}

.technician-overview-month-field:focus-within {
  border-color: var(--opsui-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--opsui-primary) 18%, transparent);
}

.technician-overview-month-field > span {
  display: block;
  min-width: 0;
  max-width: 100%;
  padding: 0 12px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

#technicianOverviewMonth {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  cursor: pointer;
}

@media (min-width: 980px) {
  .app-shell.desktop-layout.technician-home-layout > #deadlineAlerts {
    grid-column: 2 / -1 !important;
    grid-row: 2 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    align-self: start !important;
  }

  .app-shell.desktop-layout.technician-home-layout > #technicianOverviewPanel {
    grid-column: 2 / -1 !important;
    grid-row: 3 !important;
  }

  .app-shell.desktop-layout.technician-home-layout.dual-analysis-home-layout > #leaderAnalyticsPanel {
    grid-row: 4 !important;
  }

  .app-shell.desktop-layout.technician-home-layout.dual-analysis-home-layout > #dailyNote {
    grid-row: 5 !important;
  }

  .app-shell.desktop-layout.technician-home-layout.dual-analysis-home-layout > #activeWorkOrdersPanel {
    grid-row: 6 !important;
  }

  .app-shell.desktop-layout.technician-home-layout.dual-analysis-home-layout > #summaryPanel {
    grid-row: 7 !important;
  }

  body.desktop-menu-collapsed .app-shell.desktop-layout.technician-home-layout > :is(
    #deadlineAlerts,
    #technicianOverviewPanel,
    #leaderAnalyticsPanel,
    #dailyNote,
    #activeWorkOrdersPanel,
    #summaryPanel
  ) {
    grid-column: 1 / -1 !important;
  }
}

.admin-user-create-disclosure {
  margin-bottom: 14px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.2);
}

.admin-user-create-disclosure > summary {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  padding: 12px 15px;
  color: #eaf2ff;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.admin-user-create-disclosure > summary::-webkit-details-marker {
  display: none;
}

.admin-user-create-disclosure > summary::after {
  content: "Rozwiń";
  margin-left: auto;
  color: #93c5fd;
  font-size: 0.68rem;
  font-weight: 900;
}

.admin-user-create-disclosure[open] > summary::after {
  content: "Zwiń";
}

.admin-user-create-disclosure > summary strong,
.admin-user-create-disclosure > summary small {
  display: block;
}

.admin-user-create-disclosure > summary strong {
  font-size: 0.82rem;
}

.admin-user-create-disclosure > summary small {
  margin-top: 3px;
  color: #8fa1b8;
  font-size: 0.67rem;
}

.admin-account-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.24);
}

.admin-account-toolbar label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-account-toolbar label > span {
  color: #8fa1b8;
  font-size: 0.66rem;
  font-weight: 850;
}

.admin-account-list-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px 9px;
  color: #8fa1b8;
  font-size: 0.68rem;
}

.admin-account-list-summary p {
  margin: 0;
}

.admin-account-list-summary strong {
  color: #eaf2ff;
  font-size: 0.88rem;
}

.admin-users-list {
  gap: 8px;
}

.admin-user-row {
  gap: 0;
  border-radius: 13px;
}

.admin-user-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 12px;
  color: var(--tnvora-line-blue);
  background: rgba(37, 99, 235, 0.18);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.admin-user-quick-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.admin-accounts-empty {
  margin: 0;
}

.sms-gateway-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding: 15px 16px;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
}

.sms-gateway-summary::-webkit-details-marker {
  display: none;
}

.sms-gateway-summary > span:first-child {
  min-width: 0;
}

.sms-gateway-summary .eyebrow,
.sms-gateway-summary strong,
.sms-gateway-summary small {
  display: block;
}

.sms-gateway-summary strong {
  margin-top: 3px;
  font-size: 0.92rem;
}

.sms-gateway-summary small {
  margin-top: 4px;
  color: var(--tnvora-gray-500);
  font-size: 0.68rem;
}

.sms-gateway-summary-action {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid #bdd4ef;
  border-radius: 9px;
  color: #0b5fc3;
  background: var(--tnvora-white);
  font-size: 0.68rem;
  font-weight: 900;
}

.sms-gateway-summary-action::after {
  content: " +";
}

.sms-gateway-content {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
  border-top: 1px solid #d8e5f5;
}

.personal-note-item.note-incoming {
  border-left: 4px solid var(--blue);
  background: #f2f8ff;
}

.personal-note-item.note-outgoing {
  border-left: 4px solid #5a8f2d;
  background: #f7fbf2;
}

.personal-note-item.note-due {
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.16);
}

.personal-note-direction {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid #cbdcf0;
  border-radius: 999px;
  color: #315b88;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  font-weight: 900;
}

.note-incoming .personal-note-direction {
  border-color: #bfdbfe;
  color: #0b5fc3;
  background: #e9f3ff;
}

.note-outgoing .personal-note-direction {
  border-color: #cce5b7;
  color: #467522;
  background: #eff8e8;
}

.work-order-copy-reference {
  display: inline-grid;
  width: fit-content;
  max-width: 100%;
  grid-template-columns: auto minmax(0, auto);
  gap: 2px 9px;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid #b9d3ee;
  border-radius: 10px;
  color: #0b5fc3;
  background: #edf6ff;
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.work-order-copy-reference:hover,
.work-order-copy-reference:focus-visible {
  border-color: var(--blue);
  background: #dcebff;
  transform: translateY(-1px);
}

.work-order-copy-reference.copied {
  border-color: #64a334;
  color: #3f6d1f;
  background: #eff8e8;
}

.work-order-copy-reference > span {
  grid-row: 1;
  color: var(--tnvora-gray-500);
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.07em;
}

.work-order-copy-reference > b {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.work-order-copy-reference > small {
  grid-column: 1;
  grid-row: 2;
  color: var(--tnvora-gray-500);
  font-size: 0.58rem;
  font-weight: 750;
}

.work-order-copy-reference.compact {
  margin: 3px 0 5px;
  padding: 7px 10px;
}

@media (min-width: 980px) {
  .app-shell.desktop-layout.boss-home-layout > #activeWorkOrdersPanel,
  .app-shell.desktop-layout.boss-home-layout > #activeWorkOrdersPanel.boss-pending-home-slot {
    grid-column: 2 / -1 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  body.desktop-menu-collapsed .app-shell.desktop-layout.boss-home-layout > #activeWorkOrdersPanel,
  body.desktop-menu-collapsed .app-shell.desktop-layout.boss-home-layout > #activeWorkOrdersPanel.boss-pending-home-slot {
    grid-column: 1 / -1 !important;
  }

  .app-shell.desktop-layout.boss-home-layout #userWorkOrdersList {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
  }

  .app-shell.desktop-layout.boss-home-layout #userWorkOrdersList > .user-work-order {
    min-width: 0;
    width: 100%;
    align-self: start;
  }

  .app-shell.desktop-layout.boss-home-layout #userWorkOrdersList > .user-work-order.work-order-card-expanded {
    grid-column: 1 / -1;
  }

  .app-shell.desktop-layout.boss-home-layout .user-work-order-info,
  .app-shell.desktop-layout.boss-home-layout .user-work-order-info > span,
  .app-shell.desktop-layout.boss-home-layout .user-work-order-info > strong {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

.team-signature-cta {
  grid-column: 2;
  min-height: 36px;
  margin-top: 5px;
  padding: 7px 12px;
  border: 1px solid #fef08a;
  border-radius: 10px;
  color: #422006;
  background: #fde047;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.team-signature-cta:hover,
.team-signature-cta:focus-visible {
  background: #fef08a;
  outline: 3px solid rgba(250, 204, 21, 0.28);
  outline-offset: 2px;
}

#reviewsPanel {
  width: min(100%, var(--ops-page-width));
  margin-right: auto;
  margin-left: auto;
  border-color: var(--opsui-border);
  border-radius: var(--opsui-radius);
  color: var(--opsui-text);
  background: var(--opsui-surface);
  box-shadow: var(--ops-shadow);
}

.reviews-panel-heading {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--opsui-border);
}

.reviews-panel-heading > div > p:last-child {
  margin-top: 5px;
  color: var(--opsui-muted);
}

.review-column-empty {
  display: grid;
  min-height: 170px;
  padding: 22px 12px;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px dashed color-mix(in srgb, var(--ops-success) 45%, var(--opsui-border));
  border-radius: var(--opsui-radius-small);
  color: var(--opsui-muted);
  background: color-mix(in srgb, var(--ops-success) 6%, var(--opsui-surface));
  text-align: center;
}

.review-column-empty > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--tnvora-white);
  background: var(--ops-success);
  font-weight: 950;
}

.review-column-empty strong {
  color: var(--opsui-text);
  font-size: 0.82rem;
}

.review-column-empty small {
  font-size: 0.7rem;
}

.review-column-action {
  width: 100%;
  margin-top: auto;
}

@media (max-width: 767px) {
  body.theme-dark #deadlineAlerts {
    color: #eef6ff !important;
    background: #0d1a29 !important;
    border-color: #33475f !important;
  }

  body.theme-dark #deadlineAlerts .deadline-alerts-card {
    padding: 14px !important;
    color: #eef6ff !important;
    background: #101e2e !important;
    border-color: #3b506a !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28) !important;
  }

  body.theme-dark #deadlineAlerts .deadline-alerts-heading {
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom-color: #33475f;
  }

  body.theme-dark #deadlineAlerts .deadline-alerts-heading .eyebrow {
    color: #77b7ff !important;
    font-size: 0.61rem;
  }

  body.theme-dark #deadlineAlerts .deadline-alerts-heading h2 {
    color: var(--tnvora-surface-cool) !important;
    font-size: 1.02rem;
    line-height: 1.25;
  }

  body.theme-dark #deadlineAlerts .presence-badge {
    color: var(--tnvora-line-blue) !important;
    background: #17345a !important;
    border-color: #3f6795 !important;
  }

  body.theme-dark #deadlineAlerts .deadline-table-wrap {
    overflow: visible;
    border: 0 !important;
    background: transparent !important;
  }

  body.theme-dark #deadlineAlerts .deadline-alerts-table {
    display: block;
    width: 100%;
    min-width: 0;
    border: 0;
    border-spacing: 0;
  }

  body.theme-dark #deadlineAlerts .deadline-alerts-table thead {
    display: none;
  }

  body.theme-dark #deadlineAlerts .deadline-alerts-table tbody {
    display: grid;
    width: 100%;
    gap: 10px;
  }

  body.theme-dark #deadlineAlerts .deadline-alerts-table tr {
    display: grid;
    width: 100%;
    gap: 4px;
    padding: 12px 13px;
    border: 1px solid #38516d !important;
    border-left: 4px solid #4b9cff !important;
    border-radius: 13px;
    color: #eef6ff !important;
    background: #11263d !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body.theme-dark #deadlineAlerts .deadline-alerts-table tr.deadline-overdue {
    border-color: #703b47 !important;
    border-left-color: #ef6670 !important;
    background: #2a1820 !important;
  }

  body.theme-dark #deadlineAlerts .deadline-alerts-table td,
  body.theme-dark #deadlineAlerts .deadline-alerts-table .deadline-overdue td {
    display: block;
    width: 100%;
    padding: 0 !important;
    border: 0 !important;
    color: #d9e7f7 !important;
    background: transparent !important;
    font-size: 0.78rem !important;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  body.theme-dark #deadlineAlerts .deadline-alerts-table td:nth-child(1) {
    color: #7db9ff !important;
    font-size: 0.66rem !important;
    font-weight: 950;
    letter-spacing: 0.09em;
  }

  body.theme-dark #deadlineAlerts .deadline-alerts-table td:nth-child(2) {
    color: var(--tnvora-surface-cool) !important;
    font-size: 0.8rem !important;
    font-weight: 850;
  }

  body.theme-dark #deadlineAlerts .deadline-alerts-table td:nth-child(3) {
    color: #e8f1fc !important;
    font-size: 0.86rem !important;
    font-weight: 800;
  }

  body.theme-dark #deadlineAlerts .deadline-alerts-table td:nth-child(4) {
    color: #aebfd3 !important;
    font-size: 0.72rem !important;
  }

  body.theme-dark #deadlineAlerts .deadline-alerts-table td:nth-child(5) {
    padding-top: 5px !important;
  }

  body.theme-dark #deadlineAlerts .deadline-status.warning,
  body.theme-dark #reviewsPanel .deadline-status.warning {
    color: #ffdf8a !important;
    background: #493511 !important;
    border-color: #8e681d !important;
  }

  body.theme-dark #deadlineAlerts .deadline-status.danger,
  body.theme-dark #reviewsPanel .deadline-status.danger {
    color: #ffd5d8 !important;
    background: #751f29 !important;
    border-color: #c34a55 !important;
  }

  body.theme-dark #deadlineAlerts .deadline-status {
    min-height: 25px;
    padding: 4px 9px;
    font-size: 0.68rem !important;
    line-height: 1.2;
  }

  body.theme-dark #deadlineAlerts > .deadline-note-alert {
    padding: 12px 13px !important;
    border: 1px solid #3f6288 !important;
    border-left: 4px solid #4b9cff !important;
    color: #eaf3ff !important;
    background: #112b47 !important;
    font-size: 0.8rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  body.theme-dark #deadlineAlerts > .deadline-note-alert :is(b, strong, span) {
    color: inherit !important;
  }

  body.theme-dark #reviewsPanel {
    color: #eef6ff;
    background: #0e1a29;
    border-color: #33475f;
  }

  body.theme-dark #reviewsPanel .reviews-panel-heading {
    border-bottom-color: #33475f;
  }

  body.theme-dark #reviewsPanel .reviews-panel-heading h2,
  body.theme-dark #reviewsPanel .review-alert-column-heading h3,
  body.theme-dark #reviewsPanel .review-alert-card-copy strong {
    color: var(--tnvora-surface-cool);
  }

  body.theme-dark #reviewsPanel .reviews-panel-heading p,
  body.theme-dark #reviewsPanel .review-alert-card-copy span,
  body.theme-dark #reviewsPanel .review-alert-card-status small {
    color: #b9c9db;
  }

  body.theme-dark #reviewsPanel .review-alert-column {
    color: #eaf3ff;
    background: #111f30;
    border-color: #334a64;
  }

  body.theme-dark #reviewsPanel .review-alert-column-heading {
    border-bottom-color: #334a64;
  }

  body.theme-dark #reviewsPanel .review-alert-card {
    color: #eaf3ff;
    background: #142438;
    border-color: #3a506b;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  }

  body.theme-dark #reviewsPanel .review-alert-card.warning {
    border-left-color: #e6a637;
    background: #2b2416;
  }

  body.theme-dark #reviewsPanel .review-alert-card.danger {
    border-left-color: #e0565b;
    background: #2d1a21;
  }

  body.theme-dark #reviewsPanel .review-column-empty {
    color: #b9c9db;
    background: #12271f;
    border-color: #2f6f50;
  }
}

.personal-note-workflow {
  display: inline-flex !important;
  width: fit-content;
  min-height: 27px;
  margin: 0 !important;
  padding: 5px 9px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.67rem !important;
  font-weight: 950 !important;
}

.personal-note-workflow.pending {
  border-color: #f4c36a;
  color: #8a4b05;
  background: #fff3cf;
}

.personal-note-workflow.confirmed {
  border-color: #8fcf9f;
  color: #166534;
  background: #e5f8ea;
}

.personal-note-item.note-acknowledged {
  border-left-color: #22a35a;
  box-shadow: inset 0 0 0 1px rgba(34, 163, 90, 0.12);
}

.personal-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.monthly-technician-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--tnvora-white);
  background: #168a4a;
  border: 5px solid #c9f7d9;
  border-radius: 50%;
  font-size: 1.7rem;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(22, 138, 74, 0.24);
}

.monthly-technician-message {
  margin: 18px 0;
  color: #204a32;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.55;
}

.monthly-technician-certificate {
  display: grid;
  gap: 5px;
  margin: 0 0 16px;
  padding: 16px 18px;
  color: #16432a;
  background: #dcf9e6;
  border: 1px solid #9addb2;
  border-radius: 15px;
}

.monthly-technician-certificate span {
  font-size: 0.92rem;
  font-weight: 700;
}

.monthly-technician-certificate strong {
  color: #0b6d38;
  font-size: 1.45rem;
  line-height: 1.15;
}

.monthly-technician-countdown {
  margin: 0;
  padding: 13px 16px;
  color: #29523a;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #b8e8c9;
  border-radius: 13px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.monthly-technician-confirm {
  width: 100%;
  min-height: 54px;
  margin-top: 16px;
  color: var(--tnvora-white);
  background: #168a4a;
  border: 1px solid #0f753d;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(22, 138, 74, 0.24);
}

.monthly-technician-confirm:hover:not(:disabled) {
  background: #11783f;
}

.monthly-technician-confirm:focus-visible {
  outline: 3px solid #f4bf32;
  outline-offset: 3px;
}

.monthly-technician-confirm[hidden] {
  display: none !important;
}

.toa-panel {
  width: 100%;
  min-width: 0;
}

.toa-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.toa-heading h2 {
  margin: 3px 0 5px;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: .14em;
}

.toa-heading p:last-child {
  margin: 0;
  color: var(--muted);
}

.toa-filters {
  display: grid;
  grid-template-columns: minmax(145px, .7fr) minmax(145px, .7fr) minmax(240px, 1.3fr) auto auto;
  gap: 12px;
  align-items: end;
  margin: 20px 0 10px;
}

.toa-filters label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.toa-eip-documents {
  display: grid;
  gap: 7px;
  min-width: 150px;
}

.toa-order-cell {
  display: grid;
  gap: 8px;
}

.toa-work-order-gate {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding: 16px;
  border: 2px solid #e29a24;
  border-radius: 14px;
  background: rgba(255, 174, 43, .12);
}

.toa-gate-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #e29a24;
  color: var(--tnvora-white);
  font-size: 22px;
  font-weight: 900;
}

.toa-work-order-gate strong,
.toa-work-order-gate p {
  display: block;
  margin: 0;
}

.toa-work-order-gate p {
  margin-top: 4px;
  color: var(--muted);
}

.toa-step {
  display: grid;
  gap: 18px;
}

.toa-step[hidden] {
  display: none !important;
}

.toa-step > h4 {
  margin: 10px 0 0;
  font-size: clamp(22px, 4vw, 38px);
  text-align: center;
}

.toa-choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.toa-choice {
  min-height: 110px;
  border: 0;
  border-radius: 18px;
  color: var(--tnvora-white);
  font-size: 32px;
  font-weight: 950;
  cursor: pointer;
}

.toa-dialog,
.toa-dialog .toa-step,
.toa-dialog .toa-question,
.toa-dialog .toa-comment-block,
.toa-dialog .toa-numbered-field {
  color: var(--opsui-text, #101722);
  background-color: var(--opsui-surface, #fff);
}

.toa-dialog .toa-choice,
.toa-dialog .toa-choice span {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.toa-choice.yes {
  background: #14874a;
}

.toa-choice.no {
  background: #26374b;
}

.toa-apo-close-bar {
  position: sticky;
  z-index: 8;
  bottom: -24px;
  display: grid;
  gap: 8px;
  margin: 4px -24px -24px;
  padding: 14px 24px 24px;
  border-top: 1px solid color-mix(in srgb, var(--tnvora-success-700) 42%, var(--border, var(--line)));
  background: color-mix(in srgb, var(--surface) 94%, var(--tnvora-success-700) 6%);
  box-shadow: 0 -14px 30px rgba(3, 18, 11, .18);
}

.toa-apo-close-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.toa-comment-block {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.toa-comment-block > div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.toa-comment-block > div > span,
.toa-numbered-title > span {
  display: grid;
  flex: none;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--tnvora-success-700);
  color: var(--tnvora-white);
  font-weight: 900;
}

.toa-comment-block h4 {
  margin: 0;
}

.toa-take5-warning {
  padding: 15px;
  border: 2px solid #cc7b10;
  border-radius: 13px;
  background: rgba(255, 164, 33, .14);
  color: #a75b00;
  font-weight: 950;
  text-align: center;
}

#workOrderPanel > .section-title h2 {
  margin: 3px 0 0;
  color: var(--opsui-text, var(--tnvora-surface-cool));
  font-size: clamp(1.18rem, 2vw, 1.55rem);
}

.work-order-permit-selector {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--opsui-primary, #2386ff) 28%, var(--opsui-border, #31445b));
  border-radius: 15px;
  background: color-mix(in srgb, var(--opsui-surface, #111d2b) 93%, var(--opsui-primary, #2386ff) 7%);
}

.work-order-permit-selector > legend {
  padding: 0 7px;
  color: var(--opsui-text, #eef5ff);
  font-size: .82rem;
  font-weight: 950;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.work-order-permit-selector > .form-hint {
  margin: 0;
  color: var(--opsui-muted, #9dafc4);
  font-size: .72rem;
  font-weight: 700;
}

.work-order-permit-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 9px;
}

.work-order-permit-option {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 96px;
  padding: 13px;
  overflow: hidden;
  border: 1px solid var(--opsui-border, #31445b);
  border-radius: 13px;
  color: var(--opsui-text, #edf4fc);
  background: var(--opsui-surface-muted, #152236);
  box-shadow: 0 8px 20px rgba(6, 18, 31, .09);
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.work-order-permit-option:hover {
  border-color: color-mix(in srgb, var(--opsui-primary, #2386ff) 62%, var(--opsui-border, #31445b));
  transform: translateY(-1px);
}

.work-order-permit-option:has(input:checked) {
  border-color: var(--opsui-primary, #2386ff);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--opsui-primary, #2386ff) 20%, transparent), transparent 72%),
    var(--opsui-surface-muted, #152236);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--opsui-primary, #2386ff) 23%, transparent), 0 12px 26px rgba(13, 92, 190, .15);
}

.work-order-permit-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.work-order-permit-option:has(input:focus-visible) {
  outline: 3px solid color-mix(in srgb, var(--opsui-primary, #2386ff) 46%, transparent);
  outline-offset: 2px;
}

.work-order-permit-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--opsui-primary, #2386ff) 32%, transparent);
  border-radius: 10px;
  color: #8fc2ff;
  background: color-mix(in srgb, var(--opsui-primary, #2386ff) 13%, transparent);
  font-size: .68rem;
  font-weight: 950;
}

.work-order-permit-option:has(input:checked) .work-order-permit-number {
  color: #fff;
  border-color: var(--opsui-primary, #2386ff);
  background: var(--opsui-primary, #2386ff);
}

.work-order-permit-option > span:last-child {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.work-order-permit-option b {
  color: inherit;
  font-size: .78rem;
  line-height: 1.2;
}

.work-order-permit-option small {
  color: var(--opsui-muted, #9dafc4);
  font-size: .66rem;
  font-weight: 700;
  line-height: 1.35;
}

.work-order-permit-variant {
  display: grid;
  gap: 6px;
  max-width: 640px;
}

.work-order-safety-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 0;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, #23a365 45%, var(--opsui-border, #31445b));
  border-radius: 11px;
  color: color-mix(in srgb, #45d68e 78%, var(--opsui-text, #eef5ff));
  background: color-mix(in srgb, #128052 13%, var(--opsui-surface-muted, #152236));
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.45;
}

.work-order-safety-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #16885a;
  font-size: .75rem;
  font-weight: 950;
}

.work-order-safety-profile.is-critical .work-order-safety-icon {
  background: #b96b0d;
}

.work-order-safety-profile > span:last-child {
  display: grid;
  gap: 3px;
}

.work-order-safety-profile small,
.work-order-safety-profile em {
  color: inherit;
  font-size: .68rem;
  font-style: normal;
  font-weight: 700;
}

.work-order-safety-profile em {
  margin-top: 4px;
  font-weight: 900;
}

.work-order-safety-profile.is-critical {
  border-color: color-mix(in srgb, #f0a128 62%, var(--opsui-border, #31445b));
  color: color-mix(in srgb, #ffc45f 82%, var(--opsui-text, #eef5ff));
  background: color-mix(in srgb, #a45c09 17%, var(--opsui-surface-muted, #152236));
}

.work-order-permit-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid color-mix(in srgb, var(--opsui-primary, #2386ff) 42%, transparent);
  border-radius: 999px;
  color: #8fc2ff;
  background: color-mix(in srgb, var(--opsui-primary, #2386ff) 13%, transparent);
  font-size: .62rem;
  font-weight: 950;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.work-order-block-title {
  display: flex;
  grid-column: 1 / -1;
  gap: 11px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--opsui-border, #31445b);
}

.work-order-block-title > div {
  display: grid;
  gap: 2px;
}

.work-order-block-title b {
  color: var(--opsui-text, var(--tnvora-surface-cool));
  font-size: 0.94rem;
}

.work-order-block-title small {
  color: var(--opsui-muted, #8da2ba);
  font-size: 0.7rem;
  font-weight: 750;
}

.analytics-rank {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--opsui-primary, #2386ff) 35%, transparent);
  border-radius: 9px;
  color: #8fc2ff;
  background: color-mix(in srgb, var(--opsui-primary, #2386ff) 14%, transparent);
  font-size: 0.72rem;
  font-weight: 950;
}

.analytics-money-bars .analytics-bar-row {
  grid-template-columns: minmax(150px, 0.8fr) minmax(150px, 2fr) minmax(155px, auto);
}

.analytics-money-bars .analytics-bar-row > b {
  text-align: right;
  white-space: nowrap;
}

.analytics-money-bars .analytics-bar-row > b small {
  display: inline-flex;
  margin-left: 5px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #9fc4ff;
  background: rgba(35, 134, 255, 0.14);
  font-size: 0.64rem;
}

.analytics-client-technicians .analytics-section-heading > div {
  display: grid;
  gap: 3px;
}

.analytics-client-technicians .analytics-section-heading > div small {
  color: var(--opsui-muted, #8fa4bc);
  font-size: 0.67rem;
}

.analytics-client-technician-search {
  display: grid;
  grid-template-columns: auto minmax(220px, 420px);
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(114, 177, 255, 0.16);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  color: #b9c7d9;
  font-size: 0.72rem;
  font-weight: 900;
}

.toa-numbered-field {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.toa-numbered-legend {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.toa-numbered-title {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  margin: 0 0 4px;
  color: var(--opsui-text, var(--text));
}

.toa-numbered-title b {
  display: block;
  min-width: 0;
  color: inherit;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.toa-numbered-field label {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, var(--opsui-border, var(--border)) 80%, #2386ff 20%);
  border-radius: 10px;
  background: color-mix(in srgb, var(--opsui-surface-muted, var(--surface)) 92%, #2386ff 8%);
  color: var(--opsui-text, var(--text));
  font-weight: 750;
  line-height: 1.4;
  cursor: pointer;
}

.toa-numbered-field input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: grid;
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  margin: 0;
  padding: 0 !important;
  place-items: center;
  border: 2px solid color-mix(in srgb, var(--opsui-text, var(--text)) 72%, transparent);
  border-radius: 5px;
  background: var(--opsui-surface, var(--surface));
  cursor: pointer;
}

.toa-numbered-field input[type="checkbox"]:checked {
  border-color: var(--tnvora-success-700);
  background: var(--tnvora-success-700);
}

.toa-numbered-field input[type="checkbox"]:checked::after {
  content: "✓";
  color: var(--tnvora-white);
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
}

.toa-numbered-field input[type="checkbox"]:focus-visible {
  outline: 3px solid color-mix(in srgb, #2386ff 46%, transparent);
  outline-offset: 2px;
}

.toa-question {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.toa-question legend {
  width: 100%;
  padding: 0 7px;
  font-size: 16px;
  font-weight: 900;
}

.toa-question label {
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 90px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 900;
}

@media (min-width: 980px) {
  .app-shell.desktop-layout #availableWorkersList.available-workers-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
  }

  .app-shell.desktop-layout #availableWorkersList .boss-technician-card {
    min-height: 94px;
    padding: 11px 12px;
    gap: 4px 9px;
  }

  .app-shell.desktop-layout #availableWorkersList .boss-technician-card-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .app-shell.desktop-layout #availableWorkersList .boss-technician-card strong {
    overflow: visible;
    font-size: 0.84rem;
    line-height: 1.18;
    white-space: normal;
  }

  .app-shell.desktop-layout #availableWorkersList .boss-technician-status {
    justify-self: start;
    min-height: 23px;
    padding: 3px 7px;
    font-size: 0.58rem;
  }

  .app-shell.desktop-layout #availableWorkersList .boss-technician-card b,
  .app-shell.desktop-layout #availableWorkersList .boss-technician-card small {
    font-size: 0.72rem;
  }
}

.work-order-active-extra .work-order-breaks-field > summary::before,
.work-order-active-extra .work-order-breaks-field[open] > summary::before {
  content: none;
  display: none;
}

.work-order-active-extra .work-order-breaks-field > summary::marker {
  content: "";
  font-size: 0;
}

#vacationPanel .vacation-legend .legend-own i {
  background: #7c3aed !important;
}

#vacationPanel .vacation-legend .legend-team i {
  background: #2563eb !important;
}

#vacationPanel .vacation-legend .legend-saturday i {
  background: var(--tnvora-warning-500) !important;
}

#vacationPanel .vacation-legend .legend-holiday i {
  background: var(--tnvora-danger-500) !important;
}

.tnvora-agreement-panel {
  --agreement-blue: #0b67d1;
  --agreement-navy: #102338;
  --agreement-green: #087443;
  --agreement-amber: #b97808;
}

.tnvora-agreement-title {
  align-items: flex-start;
}

.tnvora-document-version {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid #9bc8f5;
  border-radius: 999px;
  color: var(--agreement-blue);
  background: #edf7ff;
  font-weight: 900;
  letter-spacing: .06em;
}

.tnvora-agreement-content {
  display: grid;
  gap: 18px;
}

.tnvora-boss-setup,
.tnvora-leader-management {
  display: grid;
  gap: 14px;
}

.tnvora-counterparty-details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.tnvora-counterparty-readonly {
  margin: 14px 0;
  padding: 12px 0;
  border-top: 1px solid #d8e4ef;
  border-bottom: 1px solid #d8e4ef;
}

.tnvora-counterparty-readonly span,
.tnvora-counterparty-readonly strong,
.tnvora-counterparty-readonly p {
  display: block;
  margin: 4px 0;
}

.tnvora-counterparty-readonly span {
  color: #61768a;
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .08em;
}

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

.tnvora-assignment-head {
  margin-top: 14px;
}

.tnvora-assignment-head span {
  display: grid;
  place-items: center;
  min-width: 28px;
  min-height: 28px;
  border-radius: 50%;
  background: var(--agreement-navy);
  color: var(--tnvora-white);
  font-weight: 900;
}

.tnvora-document-editor {
  border-left: 5px solid var(--agreement-blue);
}

.tnvora-park-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.tnvora-document {
  width: min(100%, 1040px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #bccbd8;
  border-radius: 8px;
  background: var(--tnvora-white);
  color: #17212b;
  box-shadow: 0 18px 50px rgba(15, 32, 51, .14);
  font-family: Arial, sans-serif;
}

.tnvora-document-head {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px 26px;
  border-bottom: 4px solid var(--agreement-blue);
}

.tnvora-document-head img {
  display: block;
  width: 140px;
  max-height: 56px;
  object-fit: contain;
  object-position: left center;
}

.tnvora-document-head > div:nth-child(2) {
  display: grid;
  gap: 4px;
}

.tnvora-document-head > div:nth-child(2) span {
  color: var(--agreement-blue);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.tnvora-document-head > div:nth-child(2) strong {
  font-size: 1.05rem;
}

.tnvora-document-meta {
  display: grid;
  gap: 4px;
  min-width: 118px;
  padding-left: 18px;
  border-left: 1px solid #cbd7e1;
  text-align: right;
}

.tnvora-document-meta b {
  color: var(--agreement-blue);
  font-size: 1.1rem;
}

.tnvora-document-body {
  padding: 34px;
}

.tnvora-document-body > h2 {
  max-width: 720px;
  margin: 0 auto 10px;
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.25;
}

.tnvora-legal-basis {
  max-width: 760px;
  margin: 0 auto 28px;
  color: #5a6876;
  text-align: center;
  line-height: 1.55;
}

.tnvora-missing {
  color: #a15e00;
  font-weight: 800;
}

.tnvora-document-section {
  margin-top: 22px;
}

.tnvora-document-section p,
.tnvora-document-section li {
  line-height: 1.55;
}

.tnvora-document-actions {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.tnvora-acceptance-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .65fr) auto;
  gap: 18px;
  align-items: center;
  border-left: 5px solid var(--agreement-amber);
  background: #fffaf0;
}

.tnvora-acceptance-box.accepted {
  grid-template-columns: minmax(0, 1fr) auto;
  border-left-color: var(--agreement-green);
  background: #edfbf4;
}

.tnvora-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.4;
}

.tnvora-accepted-seal {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 3px solid #14945b;
  border-radius: 50%;
  color: #087443;
  font-size: 1.1rem;
  transform: rotate(-6deg);
}

main > section.panel > .section-title > div:has(> h2:not([hidden])) > .eyebrow,
main > section.panel > .section-title > div:has(> h3:not([hidden])) > .eyebrow {
  display: none;
}

.technician-kpi-action {
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.technician-kpi-action:hover,
.technician-kpi-action:focus-visible {
  transform: translateY(-2px);
  border-color: var(--tnvora-warning-500);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.16);
  outline: none;
}

.technician-kpi-action[aria-disabled="true"] {
  cursor: default;
  transform: none;
  box-shadow: none;
  opacity: 0.78;
}

.short-workday-decision {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--tnvora-warning-500);
  border-radius: 16px;
  background: #fff8e8;
  color: #3b2a05;
}

.short-workday-decision > div {
  display: grid;
  gap: 4px;
}

.short-workday-decision strong,
.short-workday-decision small {
  color: inherit;
}

.short-workday-decision.is-accepted {
  border-color: #22c55e;
  background: #ecfdf3;
  color: #123b21;
}

.eip-panel {
  display: grid;
  gap: 16px;
}

.eip-heading {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--opsui-border, var(--line));
}

.eip-heading > div > p:last-child {
  max-width: 780px;
  margin: 7px 0 0;
  color: var(--opsui-muted, var(--muted));
  font-size: .76rem;
  line-height: 1.5;
}

.eip-steps {
  display: grid;
  grid-template-columns: repeat(7, auto);
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 11px 14px;
  border: 1px solid var(--opsui-border, var(--line));
  border-radius: 13px;
  color: var(--opsui-muted, var(--muted));
  background: var(--opsui-surface-muted, var(--surface-soft));
}

.eip-steps span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .67rem;
  font-weight: 900;
}

.eip-steps span b {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  color: var(--tnvora-white);
  background: #16885a;
  font-size: .65rem;
}

.eip-steps i {
  color: var(--opsui-primary, #2386ff);
  font-style: normal;
  font-weight: 950;
}

.eip-manufacturer-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.eip-document-icon {
  display: grid;
  width: 58px;
  height: 66px;
  place-items: center;
  border-radius: 12px;
  color: var(--tnvora-white);
  background: linear-gradient(145deg, #b81f32, #e04855);
  box-shadow: 0 10px 24px rgba(184, 31, 50, .2);
  font-size: .74rem;
  font-weight: 950;
}

.eip-document-copy {
  min-width: 0;
}

.eip-document-copy h3 {
  color: var(--opsui-text, var(--text));
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.25;
}

.eip-document-copy dl {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
}

.eip-document-copy dl > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--opsui-border, var(--line));
}

.eip-document-copy dt,
.eip-document-copy dd {
  margin: 0;
  font-size: .68rem;
  line-height: 1.4;
}

.eip-document-copy dt {
  color: var(--opsui-muted, var(--muted));
  font-weight: 850;
}

.eip-document-copy dd {
  color: var(--opsui-text, var(--text));
  font-weight: 900;
}

.eip-document-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  align-self: end;
}

.eip-procedure-toolbar {
  position: sticky;
  z-index: 4;
  top: calc(var(--topbar-height, 72px) + 6px);
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(0, 1fr) minmax(120px, auto);
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid #d79a2d;
  border-radius: 14px;
  background: #fff9e9;
  box-shadow: 0 10px 24px rgba(107, 73, 14, .16);
}

.eip-procedure-toolbar > div {
  display: grid;
  gap: 3px;
  text-align: center;
}

.eip-procedure-toolbar strong {
  color: #172033;
  font-size: .78rem;
}

.eip-procedure-toolbar span {
  color: #6b4b16;
  font-size: .66rem;
  font-weight: 850;
}

.eip-procedure-missing-list {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--tnvora-danger-600);
  border-radius: 12px;
  color: #7f1d1d;
  background: var(--tnvora-danger-50);
}

.eip-procedure-missing-list[hidden] {
  display: none;
}

.eip-procedure-missing-list > strong {
  font-size: .74rem;
}

.eip-procedure-missing-list > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 7px;
}

.eip-procedure-page {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  gap: 14px;
  min-width: 0;
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid #caa04d;
  border-radius: 14px;
  color: #172033;
  background: var(--tnvora-white);
  scroll-margin-top: 112px;
}

.eip-procedure-page-head,
.eip-procedure-page-skip {
  grid-column: 1 / -1;
}

.eip-procedure-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1d73c9;
}

.eip-procedure-page-head h5,
.eip-procedure-page-head p {
  margin: 0;
}

.eip-procedure-page-skip {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--tnvora-gray-300);
  border-radius: 12px;
  color: #253247;
  background: #f7f9fc;
}

.eip-procedure-page-skip.active {
  border-color: #d97706;
  background: #fff5dc;
}

.eip-procedure-page-skip > label:first-child {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
}

.eip-procedure-page-skip span {
  display: grid;
  gap: 3px;
}

.eip-procedure-page-skip strong {
  color: #172033;
  font-size: .75rem;
}

.eip-procedure-page-skip small,
.eip-procedure-page-skip-reason {
  color: #596579;
  font-size: .66rem;
  line-height: 1.45;
}

.eip-procedure-page-skip-reason {
  display: grid;
  gap: 6px;
  color: #7c3f04;
  font-weight: 900;
}

.eip-procedure-actions.page-skipped {
  opacity: .56;
}

.eip-procedure-page-head h5 {
  font-size: .95rem;
}

.eip-procedure-page-head p {
  margin-top: 4px;
  color: #596579;
  font-size: .66rem;
}

.eip-procedure-lines {
  display: grid;
  grid-column: 1;
  align-content: start;
  gap: 4px;
  max-height: min(68vh, 760px);
  overflow: auto;
  padding: 12px;
  border: 1px solid #d9e0e9;
  border-radius: 12px;
  background: #f7f9fc;
}

.eip-procedure-line {
  margin: 0;
  color: #273246;
  font-size: .72rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.eip-procedure-line.heading {
  margin-top: 7px;
  color: #101827;
  font-size: .78rem;
  font-weight: 950;
}

.eip-procedure-line.warning {
  margin: 7px 0;
  padding: 8px 10px;
  border-left: 4px solid var(--tnvora-danger-600);
  color: #8a1118;
  background: #fff0f1;
  font-weight: 900;
}

.eip-procedure-actions {
  display: grid;
  grid-column: 2;
  align-content: start;
  gap: 9px;
  max-height: min(68vh, 760px);
  overflow: auto;
  padding-right: 3px;
}

.eip-procedure-actions > h6 {
  margin: 0;
  color: #135da8;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.eip-procedure-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(138px, 170px);
  align-items: end;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--tnvora-gray-300);
  border-left: 5px solid #94a3b8;
  border-radius: 12px;
  background: #f8fafc;
}

.eip-procedure-action > div:first-child {
  grid-column: 1 / -1;
}

.eip-procedure-date-time > span:last-child {
  display: grid;
  grid-template-columns: minmax(132px, 1fr) minmax(112px, .72fr);
  gap: 7px;
}

.eip-procedure-action.done {
  border-left-color: #15803d;
  background: #effaf3;
}

.eip-procedure-action.na {
  border-left-color: #c27b0a;
  background: #fff9e8;
}

.eip-procedure-action.incomplete {
  border-color: var(--tnvora-danger-500);
  border-left-color: var(--tnvora-danger-600);
  background: #fff7f7;
}

.eip-procedure-action .eip-procedure-action-error {
  grid-column: 1 / -1;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--tnvora-danger-700);
  background: var(--tnvora-danger-100);
  font-size: .62rem;
  font-weight: 900;
}

.eip-procedure-action > div:first-child {
  display: grid;
  gap: 5px;
  align-self: center;
}

.eip-procedure-action strong {
  color: #111827;
  font-size: .73rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.eip-procedure-action small {
  color: #657186;
  font-size: .58rem;
}

.eip-procedure-action label {
  display: grid;
  gap: 4px;
  color: #4c596d;
  font-size: .58rem;
  font-weight: 850;
}

.eip-procedure-action .eip-procedure-reason,
.eip-procedure-action .eip-procedure-value {
  grid-column: 1 / -1;
}

.eip-procedure-empty-actions {
  margin: 0;
  padding: 11px;
  border: 1px dashed #b8c2d1;
  border-radius: 10px;
  color: #596579;
  font-size: .68rem;
  text-align: center;
}

.eip-source-gate {
  display: grid;
  gap: 13px;
  padding: clamp(13px, 2vw, 18px);
  border: 2px solid #d97706;
  border-left-width: 7px;
  border-radius: 16px;
  color: #172033;
  background: #fff8e8;
  box-shadow: 0 12px 30px rgba(146, 86, 9, .12);
}

.eip-source-gate > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.eip-source-gate h4,
.eip-source-gate p {
  margin: 0;
}

.eip-source-gate h4 {
  margin-top: 3px;
  color: #111827;
  font-size: clamp(.9rem, 1.8vw, 1.08rem);
}

.eip-source-gate #eipSourceGateMeta {
  margin-top: 6px;
  color: #5b6473;
  font-size: .7rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.eip-source-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.eip-source-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  text-decoration: none;
}

.eip-execution-source {
  overflow: hidden;
  border: 1px solid #d4a044;
  border-radius: 13px;
  background: var(--tnvora-white);
}

.eip-execution-source > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: #172033;
  background: #ffefc2;
  cursor: pointer;
  list-style: none;
}

.eip-execution-source > summary::-webkit-details-marker {
  display: none;
}

.eip-execution-source > summary strong {
  font-size: .76rem;
}

.eip-execution-source > summary span {
  color: #684c12;
  font-size: .62rem;
  font-weight: 800;
  text-align: right;
}

#eipExecutionDocumentPreview {
  display: block;
  width: 100%;
  height: clamp(620px, 76vh, 980px);
  border: 0;
  background: var(--tnvora-white);
}

.eip-source-review-confirm {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid #b45309;
  border-radius: 13px;
  color: #4a2c06;
  background: #ffedb5;
  cursor: pointer;
}

.eip-source-review-confirm span {
  display: grid;
  gap: 4px;
}

.eip-source-review-confirm strong {
  color: #352004;
  font-size: .74rem;
}

.eip-source-review-confirm small {
  color: #6b4b16;
  font-size: .64rem;
  line-height: 1.45;
}

.eip-execution-heading p {
  margin-top: 5px;
  color: var(--opsui-muted, var(--muted));
  font-size: .72rem;
}

.eip-workflow-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(35, 134, 255, .35);
  border-radius: 13px;
  background: rgba(35, 134, 255, .08);
}

.eip-workflow-switch > div {
  display: grid;
  gap: 4px;
}

.eip-workflow-switch strong {
  font-size: .72rem;
}

.eip-workflow-switch small {
  color: var(--opsui-muted, var(--muted));
  font-size: .61rem;
}

.eip-auto-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.eip-auto-fields > div {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--opsui-border, var(--line));
  border-radius: 12px;
  background: var(--opsui-surface-muted, var(--surface-soft));
}

.eip-auto-fields > div:last-child {
  grid-column: span 2;
}

.eip-auto-fields span {
  color: var(--opsui-muted, var(--muted));
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.eip-auto-fields strong {
  overflow-wrap: anywhere;
  color: var(--opsui-text, var(--ink));
  font-size: .75rem;
}

.eip-execution-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 118px;
  gap: 11px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--opsui-border, var(--line));
  border-radius: 12px;
  background: var(--opsui-surface-raised, var(--surface));
}

.eip-execution-step.done {
  border-color: rgba(32, 166, 98, .48);
  background: rgba(32, 166, 98, .07);
}

.eip-step-number,
.eip-lock-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #1769c9;
  background: #e9f3ff;
  font-size: .67rem;
  font-weight: 950;
}

.eip-step-check span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.eip-step-check strong {
  font-size: .72rem;
  line-height: 1.35;
}

.eip-step-check small,
.eip-step-time {
  color: var(--opsui-muted, var(--muted));
  font-size: .6rem;
}

.eip-step-time {
  display: grid;
  gap: 4px;
  font-weight: 850;
}

.eip-lock-not-required,
.eip-final-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 13px;
  border: 1px solid var(--opsui-border, var(--line));
  border-radius: 12px;
  background: var(--opsui-surface-raised, var(--surface));
  font-size: .72rem;
  font-weight: 850;
}

.eip-lock-rows {
  display: grid;
  gap: 9px;
}

.eip-lock-row {
  display: grid;
  grid-template-columns: 38px minmax(100px, .75fr) minmax(160px, 1.35fr) minmax(140px, 1fr) 105px 105px 38px;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--opsui-border, var(--line));
  border-radius: 12px;
  background: var(--opsui-surface-raised, var(--surface));
}

.eip-lock-row label,
#eipLockReasonRow {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--opsui-muted, var(--muted));
  font-size: .58rem;
  font-weight: 850;
}

.eip-remove-lock {
  width: 38px;
  height: 40px;
  color: #b4212a;
  border-color: rgba(200, 62, 69, .35);
  background: rgba(200, 62, 69, .08);
}

.eip-final-consent {
  border-color: rgba(32, 166, 98, .4);
  background: rgba(32, 166, 98, .08);
}

.eip-execution-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.eip-execution-actions .active-save-state {
  margin-left: auto;
}

#eipDocumentPreview {
  display: block;
  width: 100%;
  height: min(78vh, 880px);
  min-height: 620px;
  border: 0;
  background: #e9edf2;
}

.eip-safety-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(231, 165, 45, .45);
  border-radius: 12px;
  color: var(--opsui-text, var(--text));
  background: rgba(231, 165, 45, .1);
  font-size: .67rem;
  line-height: 1.5;
}

.toa-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 14px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, #1677e8 8%);
}

.toa-view-switch {
  padding: 4px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 80%, #0d2743 20%);
}

.toa-month-navigation strong {
  min-width: 150px;
  color: var(--ink);
  text-align: center;
  text-transform: capitalize;
}

.toa-weekdays {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.toa-detail-panel {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 110px);
  overflow: auto;
}

.toa-detail-content { display: grid; gap: 14px; padding: 16px; }

.toa-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

.toa-detail-heading h3 { margin: 2px 0 0; color: var(--ink); font-size: 20px; text-transform: capitalize; }

.toa-detail-heading > span { padding: 7px 10px; border-radius: 999px; color: #0f64bc; background: #dceeff; font-size: 11px; font-weight: 900; }

.toa-order-summary {
  display: grid;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--border);
  border-left: 4px solid #2386f5;
  border-radius: 14px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 96%, #1677e8 4%);
  cursor: pointer;
}

.toa-order-summary.complete { border-left-color: #169357; }

.toa-order-summary.has-hse-attention { border-color: #d94a4a; border-left-color: #c5222f; background: color-mix(in srgb, var(--surface) 88%, #ffe3e3 12%); }

.toa-order-summary header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

.toa-order-status-group { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }

.toa-order-hse-badge { display: inline-flex; width: fit-content; padding: 6px 8px; border-radius: 999px; color: #fff; background: #bd1f2d; font-size: 9px; font-weight: 950; letter-spacing: .03em; }

.toa-hse-attention { display: grid; gap: 5px; padding: 12px 14px; border: 1px solid #d94a4a; border-left: 5px solid #bd1f2d; border-radius: 12px; color: #661018; background: #fff0f1; }

.toa-hse-attention b { font-size: 12px; }

.toa-hse-attention span { font-size: 11px; font-weight: 700; line-height: 1.45; }

.toa-hse-attention small { color: #8b3640; font-size: 9px; }

body.theme-dark .toa-order-summary.has-hse-attention,
body.dark-theme .toa-order-summary.has-hse-attention { border-color: #a83c47; background: color-mix(in srgb, var(--surface) 86%, #5a1720 14%); }

body.theme-dark .toa-hse-attention,
body.dark-theme .toa-hse-attention { border-color: #a83c47; color: #ffd8dc; background: #38161c; }

body.theme-dark .toa-hse-attention small,
body.dark-theme .toa-hse-attention small { color: #ff9ca7; }

.toa-order-summary h4 { margin: 4px 0 0; color: var(--ink); font-size: 15px; }

.toa-order-reference { color: #1674d3; font-size: 11px; font-weight: 950; overflow-wrap: anywhere; }

.toa-order-facts { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0; }

.toa-order-facts div { display: grid; gap: 2px; }

.toa-order-facts dt { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }

.toa-order-facts dd { margin: 0; color: var(--ink); font-size: 12px; font-weight: 750; overflow-wrap: anywhere; }

.toa-order-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }

.toa-order-timeline li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 52px; }

.toa-order-timeline li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 38px; bottom: -12px; width: 2px; background: var(--border); }

.toa-order-timeline li.complete:not(:last-child)::after { background: #51b985; }

.toa-stage-marker { display: grid; width: 29px; height: 29px; place-items: center; z-index: 1; border: 2px solid var(--border); border-radius: 50%; color: var(--muted); background: var(--surface); font-size: 10px; font-weight: 950; }

.toa-order-timeline li.complete .toa-stage-marker { border-color: #169357; color: var(--tnvora-white); background: #169357; }

.toa-stage-copy { display: grid; gap: 2px; min-width: 0; }

.toa-stage-copy b { color: var(--ink); font-size: 12px; }

.toa-stage-copy small { color: var(--muted); font-size: 10px; }

.toa-stage-action { min-width: 66px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); background: var(--surface); font-size: 9px; font-weight: 900; text-align: center; }

.toa-stage-action.ready { border-color: #52b987; color: #087747; background: #e0f7eb; }

.toa-detail-empty { display: grid; min-height: 230px; place-content: center; gap: 7px; padding: 25px; color: var(--muted); text-align: center; }

.toa-detail-empty span { color: var(--ink); font-size: 16px; font-weight: 900; }

.toa-detail-empty p { margin: 0; font-size: 12px; }

.toa-mobile-timeline { display: none; }

.toa-list-view { display: grid; gap: 12px; padding: 14px; }

.toa-list-view[hidden] { display: none; }

.toa-list-view .toa-order-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.toa-list-view .toa-order-timeline { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }

.toa-list-view .toa-order-timeline li { grid-template-columns: 28px minmax(0, 1fr); align-content: center; padding: 8px; border: 1px solid var(--border); border-radius: 10px; }

.toa-list-view .toa-order-timeline li::after { display: none; }

.toa-list-view .toa-stage-action { grid-column: 1 / -1; }

.mail-connection-state { padding: 7px 10px; border-radius: 999px; font-size: 10px; font-weight: 950; }

.mail-connection-state.ready { color: #087747; background: #dff7eb; }

.mail-connection-state.pending { color: #9a5c05; background: #fff0c2; }

.mail-mode-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; }

.mail-mode-picker legend { grid-column: 1 / -1; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 900; }

.employees-panel {
  border-top: 4px solid #1677d2;
}

.employee-terms-heading {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.employee-terms-heading h3 {
  margin: 2px 0 0;
  color: #102033;
}

.employee-indefinite-option {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #9fb5cc;
  border-radius: 10px;
  background: var(--tnvora-white);
}

.readonly-rates-note {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  padding: 10px 12px;
  border: 1px solid #9ec3e8;
  border-radius: 10px;
  background: #edf6ff;
  color: #174d7e;
  font-weight: 750;
}

.qualification-readonly-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  align-items: center;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #8fcfc2;
  border-radius: 12px;
  color: #174d4a;
  background: linear-gradient(135deg, #effbf8 0%, #e4f6f1 100%);
}

.qualification-readonly-note strong {
  color: #075f50;
}

.qualification-readonly-note span {
  color: #315f5b;
  font-size: 0.82rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .qualification-readonly-note {
    grid-template-columns: 1fr;
  }
}

.employee-own-contract {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid #c7d7e6;
  border-radius: 12px;
  background: #f7fbff;
  color: #33475b;
}

.duty-delegation-acceptance {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.sms-operation-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--tnvora-white);
  background: #168c54;
  font-size: 1.05rem;
  font-weight: 900;
}

.sms-operation-actions .danger-action:hover:not(:disabled) {
  color: var(--tnvora-white);
  border-color: #861923;
  background: #9f202b;
}

.sms-operation-actions .danger-action:disabled {
  color: #6b2630;
  border-color: #e4a9ae;
  background: #f3c9cd;
  opacity: 1;
}

.sms-pending-preview {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #b8cde1;
  border-radius: 14px;
  background: var(--tnvora-white);
}

.sms-pending-preview.is-empty {
  background: #f2f7fb;
}

.sms-pending-preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sms-pending-preview-heading h4 {
  margin: 3px 0 0;
  color: #142033;
  font-size: 1rem;
}

.sms-pending-count {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  color: #5b3600;
  background: #ffd978;
  font-weight: 900;
}

.sms-pending-list {
  display: grid;
  gap: 10px;
  max-height: 420px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.sms-pending-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 13px;
  border: 1px solid #d7e3ee;
  border-radius: 12px;
  background: #f7fafc;
}

.sms-pending-position {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--tnvora-white);
  background: #176a9a;
  font-weight: 900;
}

.sms-pending-copy {
  min-width: 0;
}

.sms-pending-copy strong,
.sms-pending-copy small {
  display: block;
}

.sms-pending-copy strong {
  color: #142033;
}

.sms-pending-copy small {
  margin-top: 3px;
  color: #526579;
  line-height: 1.4;
}

.sms-pending-copy p {
  margin: 8px 0 0;
  color: #17283a;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

html body .login-logo {
  width: 100%;
  min-height: 214px;
  margin: -12px auto 2px;
  display: grid;
  place-items: center;
}

.toa-day-order-option.complete { border-left-color: #169357; }

.toa-day-order-option.closed-incomplete { border-left-color: #d79213; }

.toa-day-order-option.rejected,
.toa-day-order-option.cancelled { border-left-color: #bf3e4b; }

.toa-day-order-option.active {
  border-color: #2386f5;
  box-shadow: 0 0 0 2px color-mix(in srgb, #2587ff 28%, transparent);
}

.toa-day-order-option-index {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #0f64bc;
  background: #deedff;
  font-size: 10px;
  font-weight: 950;
}

.toa-day-order-option-copy { display: grid; gap: 3px; min-width: 0; }

.toa-day-order-option-copy b { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.toa-day-order-option-copy small { overflow-wrap: anywhere; color: var(--muted); font-size: 9px; font-weight: 800; }

.toa-order-summary.closed-incomplete { border-left-color: #d79213; }

.toa-order-summary.rejected,
.toa-order-summary.cancelled { border-left-color: #bf3e4b; }

.employee-work-hours-days {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.employee-hours-day {
  overflow: hidden;
  border: 1px solid #c8d9e8;
  border-radius: 16px;
  background: var(--tnvora-white);
  box-shadow: 0 8px 22px rgba(13, 47, 71, .06);
}

.employee-hours-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  color: #0b3145;
  background: #e8f7f8;
  border-bottom: 1px solid #c8e6e9;
}

.employee-hours-day-header div { display: grid; gap: 2px; }

.employee-hours-day-header strong { font-size: 15px; }

.employee-hours-day-header span { color: #577384; font-size: 11px; font-weight: 800; text-transform: capitalize; }

.employee-hours-day-header > b { color: #006d73; font-size: 18px; white-space: nowrap; }

.employee-hours-day-entries { display: grid; }

.employee-hours-entry {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e2ebf1;
}

.employee-hours-entry:last-child { border-bottom: 0; }

.employee-hours-entry div { display: grid; gap: 3px; }

.employee-hours-entry span { color: #6c7e8a; font-size: 10px; font-weight: 900; letter-spacing: .07em; }

.employee-hours-entry strong { color: #122c3b; font-size: 14px; }

.observer-eye-menu-icon,
.observer-eye-title { color: #13aeb1; font-size: 1.15em; }

.admin-user-observer { border-top: 4px solid #13aeb1; }

.observer-analytics {
  display: grid;
  gap: 14px;
  margin: 18px 0 22px;
  padding: 18px;
  border: 1px solid #b9dfe1;
  border-radius: 18px;
  background: linear-gradient(145deg, #f4fbfc 0%, #eaf7f8 100%);
  color: #163746;
}

.observer-analytics-heading,
.observer-analytics-section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

.observer-analytics-heading > div,
.observer-analytics-section-title { display: grid; gap: 4px; }

.observer-analytics-heading span,
.observer-analytics-section-title span { color: #087f87; font-size: 10px; font-weight: 950; letter-spacing: .1em; }

.observer-analytics-heading strong { font-size: 20px; }

.observer-analytics-heading small { color: #607b88; font-weight: 750; }

.observer-analytics-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }

.observer-analytics-kpis article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #cce4e8;
  border-radius: 14px;
  background: var(--tnvora-white);
}

.observer-analytics-kpis span { color: #607783; font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }

.observer-analytics-kpis strong { color: #0d6f77; font-size: 20px; overflow-wrap: anywhere; }

.observer-analytics-kpis small { color: #748995; font-size: 10px; }

.observer-analytics-section-title { margin-bottom: 12px; }

.observer-analytics-section-title strong { color: #173b49; }

.observer-analytics-bars { display: grid; gap: 10px; }

.observer-analytics-bar { display: grid; gap: 5px; }

.observer-analytics-bar > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #486572; font-size: 11px; font-weight: 800; }

.observer-analytics-bar i { display: block; height: 7px; overflow: hidden; border-radius: 999px; background: #d9e9ec; }

.observer-analytics-bar em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0b8f97, #35c4bd); }

.observer-analytics-empty { padding: 14px; color: #6d818c; text-align: center; font-weight: 750; }

.observer-user-picker {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin: 18px 0;
}

.observer-user-picker label { display: grid; gap: 7px; color: #314b5c; font-weight: 850; }

.observer-live-state.idle { color: #637787; background: #edf2f6; }

.observer-live-state.online { color: #056b40; background: #dff7e9; border: 1px solid #8ed8ae; }

.observer-live-state.offline { color: #865807; background: #fff2cc; border: 1px solid #e6bf62; }

.observer-now-heading,
.observer-timeline-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.observer-now-heading > div,
.observer-timeline-heading > div { display: grid; gap: 4px; }

.observer-now-heading span,
.observer-timeline-heading span { color: #0c7f85; font-size: 10px; font-weight: 950; letter-spacing: .1em; }

.observer-now-heading time { color: #526d7b; font-size: 11px; font-weight: 750; }

.observer-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }

.observer-facts article { display: grid; gap: 5px; padding: 12px; border: 1px solid #d2e5ea; border-radius: 12px; background: var(--tnvora-white); }

.observer-facts span { color: #6c808d; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.observer-facts strong { color: #102f40; overflow-wrap: anywhere; }

.observer-timeline-heading { margin: 20px 0 10px; }

.observer-timeline { display: grid; gap: 8px; }

.observer-timeline-item { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid #d5e3eb; border-radius: 12px; background: var(--tnvora-white); }

.observer-timeline-dot { width: 10px; height: 10px; border-radius: 50%; background: #13aeb1; box-shadow: 0 0 0 4px rgba(19,174,177,.12); }

.observer-timeline-item div { display: grid; gap: 3px; }

.observer-timeline-item strong { color: #173344; }

.observer-timeline-item small,
.observer-timeline-item time { color: #6a7d89; font-size: 10px; }

.admin-pending-reports-panel {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid #b8dce6;
  border-left: 5px solid #0f9299;
  border-radius: 18px;
  background: linear-gradient(145deg, #f6fcfd 0%, #edf8fa 100%);
  color: #173344;
  box-shadow: 0 14px 30px rgba(18, 92, 104, 0.08);
}

.admin-pending-reports-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.admin-pending-reports-heading > div { display: grid; gap: 4px; }

.admin-pending-reports-heading .eyebrow { margin: 0; color: #087b84; }

.admin-pending-reports-heading h3 { margin: 0; color: #102b3b; font-size: 1.06rem; }

.admin-pending-reports-heading p { margin: 0; color: #5b7180; font-size: .76rem; }

.admin-pending-reports-summary {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #c5e0e7;
  border-radius: 12px;
  background: rgba(255,255,255,.8);
  color: #315465;
  font-size: .76rem;
  font-weight: 800;
}

.admin-pending-reports-list { display: grid; gap: 9px; }

.admin-pending-report-person,
.admin-pending-report-order { display: grid; min-width: 0; gap: 3px; }

.admin-pending-report-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }

.mfa-recovery-codes {
  margin: 12px 0;
  padding: 14px;
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  border: 1px solid #bfd0e2;
  border-radius: 12px;
  background: #f3f7fb;
  color: #10243a;
  font: 700 0.9rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.operational-day-summary {
  display: grid;
  min-width: 0;
  gap: 2px;
  align-self: end;
}

.operational-day-summary em,
.operational-day-summary small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted, var(--tnvora-gray-500));
  font-style: normal;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operational-day-summary em {
  font-size: 0.64rem;
  font-weight: 900;
}

.operational-day-summary small {
  font-size: 0.58rem;
  font-weight: 750;
}

.operational-timeline-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.operational-timeline-heading h3 {
  margin: 2px 0 0;
  color: var(--ink, #132033);
  font-size: 1.15rem;
  text-transform: capitalize;
}

.operational-timeline-heading > span {
  flex: none;
  padding: 7px 10px;
  border-radius: 999px;
  color: #0f64bc;
  background: #dceeff;
  font-size: 0.68rem;
  font-weight: 900;
}

.operational-day-timeline .toa-stage-copy b {
  color: var(--ink, #132033);
}

.operational-day-timeline .toa-stage-copy small {
  color: var(--muted, var(--tnvora-gray-500));
}

.team-toa-hint {
  grid-column: 2;
  width: fit-content;
  margin-top: 4px;
  padding: 4px 8px;
  border: 1px solid rgba(191, 219, 254, 0.55);
  border-radius: 999px;
  color: #e7f4ff;
  background: rgba(14, 89, 164, 0.44);
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

/* V10.99: czytelne poziome karty zespołu i pilne decyzje. */
#availableWorkersList,
#leaderOperationsPanel .leader-available-technicians-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
}

#availableWorkersList .boss-technician-card,
#leaderOperationsPanel .leader-technician-location {
  min-height: 92px;
  grid-template-columns: auto minmax(170px, 1.35fr) minmax(150px, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 6px 14px;
}

#availableWorkersList .boss-technician-card > i,
#leaderOperationsPanel .leader-technician-location > i {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
  margin: 0;
}

#availableWorkersList .boss-technician-card-main,
#leaderOperationsPanel .leader-technician-location-main {
  grid-column: 2;
  grid-row: 1 / -1;
}

#availableWorkersList .boss-technician-card > :is(b, .boss-technician-meta, .team-signature-cta),
#leaderOperationsPanel .leader-technician-location > :is(b, .leader-technician-meta, .team-signature-cta) {
  grid-column: 3;
  grid-row: 1;
}

#availableWorkersList .boss-technician-card > small,
#leaderOperationsPanel .leader-technician-location > small {
  grid-column: 3;
  grid-row: 2;
}

#availableWorkersList .boss-technician-card :is(strong, b, small),
#leaderOperationsPanel .leader-technician-location :is(strong, b, small) {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.boss-technician-card.is-work-order-link,
.leader-technician-location.is-work-order-link {
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.boss-technician-card.is-work-order-link:is(:hover, :focus-visible),
.leader-technician-location.is-work-order-link:is(:hover, :focus-visible) {
  border-color: #1687ef;
  outline: 3px solid rgba(22, 135, 239, .24);
  outline-offset: 2px;
  transform: translateY(-1px);
}

.team-change-hint {
  grid-column: 4;
  grid-row: 1 / -1;
  padding: 7px 10px;
  border: 1px solid #fde68a;
  border-radius: 999px;
  color: #3f2b04;
  background: #facc15;
  font-size: .65rem;
  font-weight: 950;
  white-space: nowrap;
}

#availableWorkersList .boss-technician-card.is-change-pending,
#leaderOperationsPanel .leader-technician-location.is-change-pending {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #a16207, #854d0e);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .2), 0 12px 28px rgba(133, 77, 14, .25);
  animation: tnvora-change-attention 1.8s ease-in-out infinite;
}

#availableWorkersList .boss-technician-card.is-available,
#leaderOperationsPanel .leader-technician-location.is-available {
  border-color: #15803d;
  color: #f0fdf4;
  background: linear-gradient(135deg, #15803d, #0f6a35);
  box-shadow: 0 8px 20px rgba(21, 128, 61, .18);
}

#availableWorkersList .boss-technician-card.is-available :is(strong, b, span, small),
#leaderOperationsPanel .leader-technician-location.is-available :is(strong, b, span, small) {
  color: #f0fdf4;
}

#availableWorkersList .boss-technician-card.is-available > i,
#leaderOperationsPanel .leader-technician-location.is-available > i {
  background: #86efac;
  box-shadow: 0 0 0 6px rgba(134, 239, 172, .2);
}

#availableWorkersList .boss-technician-card.is-change-pending > i,
#leaderOperationsPanel .leader-technician-location.is-change-pending > i {
  background: #fde68a;
  box-shadow: 0 0 0 6px rgba(253, 230, 138, .25);
}

.work-order-change-approval.is-pending {
  border-color: #d5960b;
  background: #fffbeb;
  color: #5f3904;
  box-shadow: 0 0 0 3px rgba(213, 150, 11, .15);
  animation: tnvora-change-attention 1.8s ease-in-out infinite;
}

.work-order-change-details {
  display: grid;
  gap: 5px;
  margin: 2px 0 4px;
  padding-left: 20px;
  font-weight: 750;
  line-height: 1.45;
}

.work-order-task-optional {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 7px;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  color: #0758a8;
  background: #eff6ff;
  font-size: .62rem;
  font-weight: 950;
  vertical-align: middle;
}

@keyframes tnvora-change-attention {
  50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, .20), 0 14px 32px rgba(127, 29, 29, .22); }
}

@media (prefers-reduced-motion: reduce) {
  #availableWorkersList .boss-technician-card.is-change-pending,
  #leaderOperationsPanel .leader-technician-location.is-change-pending,
  .work-order-change-approval.is-pending { animation: none; }
}

@media (max-width: 620px) {
  #availableWorkersList .boss-technician-card,
  #leaderOperationsPanel .leader-technician-location {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }
  #availableWorkersList .boss-technician-card-main,
  #leaderOperationsPanel .leader-technician-location-main { grid-column: 2; grid-row: 1; }
  #availableWorkersList .boss-technician-card > :is(b, .boss-technician-meta, .team-signature-cta),
  #leaderOperationsPanel .leader-technician-location > :is(b, .leader-technician-meta, .team-signature-cta) { grid-column: 2; grid-row: 2; }
  #availableWorkersList .boss-technician-card > small,
  #leaderOperationsPanel .leader-technician-location > small { grid-column: 2; grid-row: 3; }
  .team-change-hint { grid-column: 2; grid-row: 4; justify-self: start; }
}

.app-install-visual {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.app-install-visual[hidden],
.app-install-recovery[hidden] {
  display: none;
}

.app-install-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--selection-border, #d8e1ec);
  border-radius: 14px;
  background: var(--tnvora-white);
}

.app-install-visual figcaption {
  color: var(--selection-muted, #68778b);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
}

.app-install-recovery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.work-order-panel .section-title .eyebrow {
  margin-bottom: 2px;
  text-transform: none;
}

.history-day-summary {
  margin-top: 20px;
  margin-bottom: 0;
}

.technician-overview-title {
  margin: 0;
  color: var(--opsui-primary, #1677e8) !important;
  font-size: clamp(1.3rem, 3vw, 1.85rem) !important;
  letter-spacing: 0.08em;
}

.technician-kpi-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.technician-kpi-pair > div {
  min-width: 0;
}

.technician-kpi-pair > div + div {
  padding-left: 12px;
  border-left: 1px solid #d6e2ef;
}

.technician-kpi-pair strong {
  margin-top: 0;
}

.technician-kpi-pair small {
  margin-top: 2px;
  font-weight: 850;
  text-transform: uppercase;
}

.operational-timeline-total {
  display: block;
  margin-top: 12px;
  color: #0f64bc;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 950;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.support-presence-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px clamp(12px, 3vw, 28px) 0;
  padding: 12px 16px;
  border: 1px solid #e1a616;
  border-radius: 16px;
  color: #5f3900;
  background: #fff5cf;
  box-shadow: 0 8px 24px rgba(122, 80, 0, .12);
}

.support-presence-banner[hidden] { display: none; }

.support-presence-banner > span { color: #e09a00; font-size: 1.4rem; }

.support-presence-banner div { display: grid; gap: 2px; }

.support-presence-banner small { color: #78520c; }

.business-data-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--blue, var(--blue)) 35%, var(--line, #dbe2ea));
  border-radius: 18px;
  color: var(--ink, var(--navy));
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue-soft, #e9f3ff) 72%, var(--surface, var(--tnvora-white))), var(--surface, var(--tnvora-white)));
}

.business-data-toolbar[hidden] { display: none; }

.business-data-toolbar > div:first-child { display: grid; gap: 3px; }

.business-data-toolbar .eyebrow { margin: 0; }

.business-data-toolbar small { color: var(--muted, #697586); }

.business-data-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.positive-text { color: #137a48; font-weight: 850; }

.negative-text { color: #b4232c; font-weight: 850; }

.business-cost-list { display: grid; gap: 10px; }

.business-cost-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line, #dbe2ea);
  border-radius: 15px;
  color: var(--ink, var(--navy));
  background: var(--surface, var(--tnvora-white));
}

.business-cost-list article > div { display: grid; gap: 3px; }

.business-cost-list span, .business-cost-list small { color: var(--muted, #697586); }

.certificate-template-control {
  display: grid;
  gap: 7px;
  color: var(--ink, var(--navy));
  font-weight: 800;
}

.login-organization-saved {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid #b8c6d8;
  border-radius: 12px;
  background: #eef4fb;
  color: #172033;
}

.login-organization-saved[hidden] { display: none !important; }

.login-organization-saved strong { color: #075fb5; }

.sep-expiry-items { display: grid; gap: 9px; margin: 14px 0; }

.sep-expiry-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid #e1a622;
  border-left: 5px solid #e1a622;
  border-radius: 12px;
  background: #fff8df;
  color: #31230a;
}

.sep-expiry-item.is-expired { border-color: #d53c47; background: #fff0f1; color: #4b1116; }

.sep-expiry-item span { display: grid; gap: 3px; }

.sep-expiry-item small { color: inherit; opacity: .78; }

.sep-expiry-warning,
.sep-legal-note {
  padding: 13px 14px;
  border-radius: 12px;
  line-height: 1.48;
}

.sep-expiry-warning { background: #fff3cd; border: 1px solid #dbab27; color: #3c2b06; }

.sep-legal-note { background: #edf3fa; border: 1px solid #b6c6d8; color: #172033; }

.sep-legal-note p { margin: 7px 0 9px; }

.sep-legal-note a { color: #075fb5; font-weight: 800; }

.operational-list-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 220px) 120px auto;
  align-items: end;
  gap: 10px;
  margin: 0 0 10px;
  padding: 10px;
  border: 1px solid var(--line, #d6dee8);
  border-radius: 12px;
  color: var(--ink, #172033);
  background: color-mix(in srgb, var(--surface, var(--tnvora-white)) 88%, var(--blue-soft, #eaf3ff));
}

.operational-list-toolbar label { display: grid; gap: 4px; min-width: 0; }

.operational-list-toolbar label > span { color: var(--muted, #657286); font-size: .68rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }

.operational-list-toolbar > strong { align-self: center; white-space: nowrap; color: var(--muted, #657286); font-size: .78rem; }

.record-count { display: inline-grid; place-items: center; min-width: 28px; height: 24px; border-radius: 8px; color: #075fb5; background: #e7f2ff; font-weight: 900; }
.inventory-count-button {
  border: 1px solid color-mix(in srgb, currentColor 32%, transparent);
  cursor: pointer;
  padding: 0 9px;
  font: inherit;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.inventory-count-button:hover,
.inventory-count-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(7, 95, 181, .18);
  outline: 3px solid rgba(45, 125, 210, .28);
  outline-offset: 2px;
}

.qualification-detail-row td { padding: 8px 10px 12px; background: color-mix(in srgb, var(--blue-soft, #eaf3ff) 34%, var(--surface, var(--tnvora-white))); }

.qualification-records { display: grid; gap: 5px; }

.qualification-records article { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(170px, auto) auto; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line, #d6dee8); border-radius: 8px; background: var(--surface, var(--tnvora-white)); }

.qualification-records article span:first-child { display: grid; gap: 2px; }

.qualification-records article small { color: var(--muted, #657286); }

#vacationPanel .vacation-legend .legend-unavailable i { background: #c73945 !important; }

.vacation-team-filters {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(135px, .55fr);
  gap: 8px;
  margin: 10px 0;
}

.vacation-team-filters label { display: grid; gap: 5px; min-width: 0; }

.vacation-team-filters label > span {
  color: var(--muted, #657286);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.vacation-own-state {
  display: inline-flex; align-items: center; gap: 5px; width: fit-content;
  min-height: 24px; padding: 3px; border: 1px solid currentColor; border-radius: 999px;
  font-size: .58rem; font-weight: 900; line-height: 1.2;
  max-width: 100%; white-space: normal;
}

.vacation-own-state b { min-width: 0; overflow-wrap: normal; }
.vacation-own-state i { flex-shrink: 0; display: none; }
.vacation-person-count { display: inline-flex; align-items: center; justify-content: center; gap: 3px; }

.vacation-own-state i,
.vacation-person-state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.vacation-own-state.is-available,
.vacation-person-state.is-available { color: #106b3e; background: #e5f6ed; }

.vacation-own-state.is-unavailable,
.vacation-person-state.is-unavailable { color: #a51f2b; background: #ffeaec; }

.vacation-day-comparisons { display: grid; gap: 3px; min-width: 0; }

.vacation-person-state {
  display: grid; grid-template-columns: 26px 7px minmax(0, 1fr); align-items: center; gap: 5px;
  min-width: 0; min-height: 20px; padding: 2px 6px; border-left: 3px solid currentColor; border-radius: 5px;
  font-size: .54rem; font-weight: 850; line-height: 1.1;
}

.vacation-person-state b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vacation-person-state em { overflow: hidden; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }

.vacation-person-state.is-overflow {
  display: inline-flex; width: fit-content; color: #35506b; border-color: #7890a8; background: #edf2f7;
}

.vacation-team-total {
  align-self: end; overflow: hidden; color: var(--muted, #657286);
  font-size: .55rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap;
}

.vacation-day-number { color: var(--ink, #172033) !important; }

.vacation-day-people span { gap: 7px; }

.vacation-day-people span > b {
  padding: 2px 5px; border-radius: 5px; color: #195e9e; background: #e5f1ff;
  font-size: .56rem; letter-spacing: .035em;
}

.login-support-row {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 4px;
}

.login-support-row .remember-password {
  margin: 0;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 800;
}

.login-help-link {
  min-height: 38px;
  padding: 6px 2px;
  border: 0;
  color: #075fc5;
  background: transparent;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.login-help-link:hover,
.login-help-link:focus-visible {
  color: #003e85;
}

.password-reset-confirm-fields {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--opsui-border);
}

.password-reset-confirm-fields[hidden] {
  display: none !important;
}

.organization-payment-notice {
  display: flex; align-items: center; gap: 14px; margin: 14px 24px 0; padding: 14px 18px;
  border: 1px solid #d89900; border-radius: 16px; background: #fff5cf; color: #6a4300;
  box-shadow: 0 10px 28px rgba(157, 104, 0, .12);
}

.organization-payment-notice[hidden] { display: none !important; }

.organization-payment-notice.overdue { border-color: #d43e49; background: #fff0f1; color: #8a2029; }

.organization-payment-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: #f1ab00; color: var(--tnvora-white); font-weight: 900; }

.organization-payment-notice.overdue .organization-payment-icon { background: #d43e49; }

.organization-payment-notice div { display: grid; gap: 3px; }

.organization-payment-notice strong, .organization-payment-notice small { color: inherit; }

.tenant-admin-panel { display: grid; gap: 16px; }

.tenant-admin-toolbar { padding: 14px; border: 1px solid #cbd9e7; border-radius: 14px; background: #f7fbff; }

.tenant-admin-toolbar label { display: grid; gap: 6px; min-width: min(420px, 100%); font-weight: 800; }

.tenant-admin-toolbar small { margin-left: auto; color: #5f7082; }

.tenant-user-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(130px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.tenant-user-toolbar label { display: grid; gap: 5px; min-width: 0; color: #52677c; font-size: .76rem; font-weight: 900; }
.tenant-user-toolbar :is(input, select) { width: 100%; min-width: 0; }
.tenant-user-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.tenant-user-pagination strong { min-width: 180px; color: #22364b; text-align: center; }

body.theme-dark .tenant-user-toolbar label { color: #cbd9e7; }
body.theme-dark .tenant-user-pagination strong { color: #f3f8ff; }

.tenant-kpi { min-height: 116px; padding: 16px; display: grid; align-content: center; gap: 5px; border-top: 4px solid #2188f2; }

.tenant-kpi-action {
  width: 100%; margin: 0; text-align: left; appearance: none; font: inherit; cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.tenant-kpi-action:hover { transform: translateY(-2px); border-color: #2188f2; background: #f4f9ff; box-shadow: 0 10px 24px rgba(19, 70, 120, .14); }

.tenant-kpi-action:focus-visible { outline: 3px solid #2188f2; outline-offset: 3px; }

body.theme-dark .tenant-kpi-action:hover { border-color: #55a8ff; background: #172b40; box-shadow: 0 12px 28px rgba(0, 0, 0, .32); }

.tenant-kpi span { color: #557087; font-size: .76rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.tenant-kpi strong { font-size: clamp(1.45rem, 2vw, 2.15rem); }

.tenant-kpi small { color: #66778a; }

.tenant-module-list { display: grid; gap: 10px; margin-top: 14px; }

.tenant-module-row { display: grid; grid-template-columns: minmax(110px, 170px) 1fr 48px; align-items: center; gap: 10px; }

.tenant-module-row > span { font-weight: 800; }

.tenant-module-row > div { height: 9px; border-radius: 999px; overflow: hidden; background: #dce8f3; }

.tenant-module-row i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #00aa7b, #2188f2); }

.tenant-module-row strong { text-align: right; }

.tenant-save-state { padding: 7px 10px; border-radius: 999px; background: #e3f8ee; color: #087550; font-size: .72rem; font-weight: 900; }

.tenant-feature-switch { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px; border: 1px solid #c9d9e7; border-radius: 12px; cursor: pointer; }

.tenant-feature-switch span { width: 34px; height: 20px; flex: 0 0 34px; padding: 2px; border-radius: 999px; background: #aab8c5; }

.tenant-feature-switch span::after { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--tnvora-white); transition: transform .15s ease; }

.business-employee-rate-row { cursor: pointer; }

.business-employee-rate-row:hover, .business-employee-rate-row:focus-visible { background: rgba(33, 136, 242, .12); outline: 2px solid #2188f2; outline-offset: -2px; }

/* POMOC — trwały status zgłoszeń */
.problem-status-section { display: grid; gap: 12px; margin: 0 0 18px; }
.problem-status-heading h3 { margin: 2px 0 0; }
.problem-status-list { display: grid; gap: 10px; }
.problem-status-card { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-left: 5px solid var(--tnvora-red-500); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); }
.problem-status-card.accepted { border-left-color: var(--tnvora-warning-500); }
.problem-status-card.resolved { border-left-color: var(--tnvora-green-500); }
.problem-status-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.problem-status-card-heading span, .problem-admin-status { display: inline-flex; width: max-content; padding: 5px 9px; border-radius: 999px; background: var(--tnvora-danger-100); color: var(--tnvora-danger-700); font-size: .72rem; font-weight: 900; }
.problem-status-card.accepted .problem-status-card-heading span, .problem-report-item.accepted .problem-admin-status { background: #fff3cd; color: #7a4b00; }
.problem-status-card.resolved .problem-status-card-heading span { background: #dcfce7; color: #12633d; }
.problem-status-card time { color: var(--muted); font-size: .78rem; }
.problem-status-card p { margin: 0; white-space: pre-wrap; color: var(--muted); }
.problem-status-card[data-problem-status-id] { cursor: pointer; }
.problem-status-card[data-problem-status-id]:focus-visible { outline: 3px solid var(--tnvora-blue-500); outline-offset: 2px; }
.problem-status-card.archived { opacity: .82; border-left-color: var(--tnvora-gray-500); }
.problem-archive-hint { color: var(--muted); font-weight: 700; }
.problem-status-archive { display: grid; gap: 10px; padding-top: 4px; }
.problem-status-archive > summary { width: max-content; cursor: pointer; color: var(--tnvora-blue-700); font-weight: 900; }
.problem-status-archive[open] > summary { margin-bottom: 10px; }
.problem-report-item { position: relative; }
.problem-report-item .problem-admin-status { margin-left: auto; }
.problem-report-item.resolved { border-left-color: var(--tnvora-green-500); }
.problem-report-item.resolved > .problem-admin-status,
.problem-admin-status.resolved { background: #dcfce7; color: #12633d; }
.problem-report-identity { display: flex; flex-wrap: wrap; gap: 7px; }
.problem-report-identity span { display: inline-flex; padding: 5px 9px; border: 1px solid #b8d4ec; border-radius: 999px; background: #edf6ff; color: #174f7c; font-size: .72rem; font-weight: 900; }
.problem-report-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.problem-report-history { padding-top: 8px; border-top: 1px solid var(--line); }
.problem-report-history > summary { width: max-content; cursor: pointer; color: var(--tnvora-blue-700); font-weight: 900; }
.problem-report-history ol { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.problem-report-history li { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: start; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.problem-report-history li div { display: grid; gap: 3px; min-width: 0; }
.problem-report-history li small, .problem-history-empty { color: var(--muted); }
.problem-report-attachments { display: flex; flex-wrap: wrap; gap: 8px; }
.problem-attachment-list { display: flex; flex-wrap: wrap; gap: 8px; }
.problem-attachment-list > span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.problem-attachment-list > span > span { display: inline-grid; gap: 1px; min-width: 0; }
.problem-attachment-list > span strong { max-width: min(48vw, 360px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.problem-attachment-remove { min-height: 32px; padding: 4px 10px; border: 1px solid var(--tnvora-red-500); border-radius: 999px; background: var(--tnvora-danger-100); color: var(--tnvora-danger-700); font: inherit; font-size: .75rem; font-weight: 900; cursor: pointer; }
.problem-attachment-remove:hover, .problem-attachment-remove:focus-visible { background: var(--tnvora-red-500); color: var(--tnvora-white); outline: 2px solid var(--tnvora-red-500); outline-offset: 2px; }

body.theme-dark .problem-status-card, body.theme-dark .problem-attachment-list > span { background: var(--tnvora-navy-800); border-color: #35506f; color: var(--tnvora-white); }
body.theme-dark .problem-report-identity span { border-color: #35668b; background: #142b40; color: #a9d8ff; }
body.theme-dark .problem-report-history > summary { color: #8ec5ff; }
body.theme-dark .problem-report-history li { border-color: #35506f; background: #101e2e; }
body.theme-dark .problem-report-item.resolved > .problem-admin-status,
body.theme-dark .problem-admin-status.resolved { background: #0e4e35; color: #a7f3d0; }
body.theme-dark .problem-attachment-remove { background: #4d1720; border-color: #f87171; color: #fecaca; }
body.theme-dark .problem-attachment-remove:hover, body.theme-dark .problem-attachment-remove:focus-visible { background: #b91c1c; color: var(--tnvora-white); }

.inventory-badge.quarantine {
  border-color: #8b5cf6;
  background: #ede9fe;
  color: #5b21b6;
}

.inventory-table tr.quarantine,
.operational-table tbody tr.quarantine {
  background: #faf7ff;
}

.office-rates-permission {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--opsui-surface-muted, var(--surface, #f3f7fb));
}

.office-rates-permission label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.35;
}

.office-rates-permission input { margin-top: 2px; }

body.theme-dark .inventory-badge.quarantine {
  border-color: #c4b5fd;
  background: #3b2563;
  color: #ede9fe;
}

body.theme-dark .inventory-table tr.quarantine,
body.theme-dark .operational-table tbody tr.quarantine {
  background: #241d35;
}

body.theme-dark .office-rates-permission {
  border-color: #405871;
  background: #111f30;
}

body.theme-dark .office-rates-permission label { color: #f3f8ff; }
body.theme-dark .problem-status-card p, body.theme-dark .problem-status-card time { color: #cbd5e1; }
body.theme-dark .problem-archive-hint { color: #cbd5e1; }
body.theme-dark .problem-status-archive > summary { color: #8ec5ff; }
body.theme-dark .problem-status-card.accepted .problem-status-card-heading span, body.theme-dark .problem-report-item.accepted .problem-admin-status { background: #4f3607; color: #ffd56b; }
body.theme-dark .problem-status-card.resolved .problem-status-card-heading span { background: #0e4e35; color: #a7f3d0; }

@media (max-width: 640px) {
  .problem-status-card-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .problem-report-attachments .small-button { width: 100%; justify-content: flex-start; overflow-wrap: anywhere; }
  .problem-report-history li { grid-template-columns: 1fr; }
  .support-ideas-card { grid-template-columns: 1fr; }
}

/* PANEL SAAS — tworzenie organizacji */
.tenant-create-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); }
.tenant-create-form[hidden] { display: none; }
.tenant-create-form label { display: grid; align-content: start; gap: 7px; font-weight: 800; }
.tenant-create-form input, .tenant-create-form select { width: 100%; min-height: 44px; }
.tenant-slug-field { display: flex; align-items: stretch; min-width: 0; }
.tenant-slug-field input { min-width: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.tenant-slug-field span { display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--tnvora-gray-100); color: var(--tnvora-gray-700); }
.tenant-create-actions { display: flex; align-items: end; justify-content: flex-end; gap: 8px; grid-column: span 2; }
.tenant-create-form .error-message { grid-column: 1 / -1; margin: 0; }
body.theme-dark .tenant-create-form { background: var(--tnvora-navy-800); border-color: #35506f; color: var(--tnvora-white); }
body.theme-dark .tenant-slug-field span { background: var(--tnvora-navy-900); border-color: #35506f; color: #d8e6f4; }

@media (max-width: 900px) {
  .tenant-create-form { grid-template-columns: 1fr; }
  .tenant-create-actions { grid-column: auto; justify-content: stretch; }
  .tenant-create-actions > button { flex: 1 1 0; }
}
.project-workspace,
.project-manager-box {
  display: grid;
  gap: var(--space-4, 16px);
}

.project-manager-box,
.project-rate-fieldset,
.support-urgent-contact {
  padding: var(--space-4, 16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 14px);
  background: var(--surface);
  color: var(--ink);
}

.support-urgent-contact strong {
  color: var(--blue);
}

.support-phone-copy {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  margin: 2px 1px;
  padding: 4px 8px;
  color: #07599f;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 8px;
  cursor: pointer;
}

.support-phone-copy:focus-visible {
  outline: 3px solid #2684ff;
  outline-offset: 2px;
}

.support-ideas-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid #9fd7c1;
  border-radius: var(--radius-lg, 14px);
  background: linear-gradient(135deg, #eefbf5, #eef7ff);
  color: #12304a;
}

.support-ideas-card > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #0a8f61; color: #fff; font-size: 1.25rem; }
.support-ideas-card div { display: grid; gap: 5px; }
.support-ideas-card strong { color: #075d43; font-size: 1rem; }
.support-ideas-card p { margin: 0; color: #38566a; line-height: 1.5; }
body.theme-dark .support-ideas-card { border-color: #28775e; background: linear-gradient(135deg, #102d26, #12283b); color: #f2fbff; }
body.theme-dark .support-ideas-card strong { color: #8ff0c9; }
body.theme-dark .support-ideas-card p { color: #c6d8e6; }

.work-order-role-assignment-notice {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 4px;
  padding: 16px;
  border: 1px solid #43b98a;
  border-radius: 14px;
  background: #eafaf3;
  color: #0d3f31;
  box-shadow: 0 10px 24px rgba(17, 126, 88, 0.1);
}

.work-order-role-assignment-notice > span,
.work-order-role-assignment-dialog-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #159866;
  color: #fff;
  font-weight: 900;
  font-size: 22px;
}

.work-order-role-assignment-notice strong { display: block; margin-bottom: 6px; font-size: 1.02rem; }
.work-order-role-assignment-notice p { margin: 3px 0; line-height: 1.45; }
.work-order-role-assignment-notice small { display: block; margin-top: 8px; color: #266652; font-weight: 700; }

.work-order-role-assignment-dialog {
  width: min(620px, calc(100vw - 28px));
  border: 1px solid #50c89a;
  border-radius: 22px;
  padding: 28px;
  background: #fff;
  color: #0b2037;
  box-shadow: 0 28px 90px rgba(3, 21, 38, 0.32);
}

.work-order-role-assignment-dialog::backdrop { background: rgba(2, 18, 32, 0.7); backdrop-filter: blur(5px); }
.work-order-role-assignment-dialog-icon { width: 54px; height: 54px; margin-bottom: 16px; font-size: 28px; }
.work-order-role-assignment-dialog h3 { margin: 5px 0 14px; font-size: clamp(1.3rem, 3vw, 1.75rem); }
.work-order-role-assignment-dialog-content { padding: 14px 16px; border-radius: 12px; background: #edf9f5; line-height: 1.55; }
.work-order-role-assignment-dialog-content p { margin: 0 0 8px; }
.work-order-role-assignment-dialog-content p:last-child { margin-bottom: 0; }
.work-order-role-assignment-security { margin: 15px 0; color: #355169; font-weight: 700; }
.work-order-role-assignment-dialog .form-error:empty { display: none; }
.work-order-readiness-decision-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.work-order-readiness-decision-actions[hidden] { display: none; }
.work-order-readiness-decision-actions > button { min-height: 52px; }
.work-order-readiness-decision-actions > .primary-button {
  border-color: #0751ad;
  background: #075fca;
  color: #fff;
}
.work-order-readiness-decision-actions > .primary-button:hover,
.work-order-readiness-decision-actions > .primary-button:focus-visible { background: #064c9f; color: #fff; }
.work-order-readiness-decision-actions .danger-action {
  border: 1px solid #a61f29;
  background: #c62828;
  color: #fff;
}
.work-order-readiness-decision-actions .danger-action:hover,
.work-order-readiness-decision-actions .danger-action:focus-visible { background: #a61f29; color: #fff; }

.work-order-role-assignment-dialog[data-tone="warning"] { border-color: #d28a00; }
.work-order-role-assignment-dialog[data-tone="warning"] .work-order-role-assignment-dialog-icon { background: #d28600; }
.work-order-role-assignment-dialog[data-tone="warning"] .work-order-role-assignment-dialog-content { background: #fff8df; color: #593d00; }
.work-order-role-assignment-dialog[data-tone="warning"] .work-order-role-assignment-security { color: #765000; }
.work-order-role-assignment-dialog[data-tone="danger"] { border-color: #d43a46; }
.work-order-role-assignment-dialog[data-tone="danger"] .work-order-role-assignment-dialog-icon { background: #c62828; }
.work-order-role-assignment-dialog[data-tone="danger"] .work-order-role-assignment-dialog-content { background: #fff0f1; color: #7f1720; }
.work-order-role-assignment-dialog[data-tone="danger"] .work-order-role-assignment-security { color: #8e1e27; }
.work-order-role-assignment-dialog[data-tone="danger"] #closeWorkOrderRoleAssignmentDialog { border-color: #a61f29; background: #c62828; color: #fff; }
.work-order-role-assignment-dialog[data-tone="info"] { border-color: #3f91e8; }
.work-order-role-assignment-dialog[data-tone="info"] .work-order-role-assignment-dialog-icon { background: #1675d1; }
.work-order-role-assignment-dialog[data-tone="info"] .work-order-role-assignment-dialog-content { background: #edf6ff; color: #0b4d87; }

body.theme-dark .work-order-role-assignment-notice,
body.theme-dark .work-order-role-assignment-dialog-content { border-color: #2c956e; background: #0f3329; color: #d9fff0; }
body.theme-dark .work-order-role-assignment-notice small,
body.theme-dark .work-order-role-assignment-security { color: #a9dfcb; }
body.theme-dark .work-order-role-assignment-dialog { border-color: #2c956e; background: #111e2d; color: #edf7ff; }
body.theme-dark .work-order-role-assignment-dialog[data-tone="warning"] { border-color: #d89a25; }
body.theme-dark .work-order-role-assignment-dialog[data-tone="warning"] .work-order-role-assignment-dialog-icon { background: #d89a25; color: #181000; }
body.theme-dark .work-order-role-assignment-dialog[data-tone="warning"] .work-order-role-assignment-dialog-content { border-color: #9b6c16; background: #3c2c0a; color: #ffe8a3; }
body.theme-dark .work-order-role-assignment-dialog[data-tone="warning"] .work-order-role-assignment-security { color: #f4cf78; }
body.theme-dark .work-order-role-assignment-dialog[data-tone="danger"] { border-color: #f05b68; }
body.theme-dark .work-order-role-assignment-dialog[data-tone="danger"] .work-order-role-assignment-dialog-icon { background: #d43a46; }
body.theme-dark .work-order-role-assignment-dialog[data-tone="danger"] .work-order-role-assignment-dialog-content { border-color: #b53a45; background: #42151a; color: #ffd9dc; }
body.theme-dark .work-order-role-assignment-dialog[data-tone="danger"] .work-order-role-assignment-security { color: #ffb9bf; }
body.theme-dark .work-order-role-assignment-dialog[data-tone="info"] { border-color: #4da9ff; }
body.theme-dark .work-order-role-assignment-dialog[data-tone="info"] .work-order-role-assignment-dialog-content { border-color: #2d6da7; background: #102d48; color: #d9eeff; }

.review-details-dialog {
  width: min(680px, calc(100vw - 28px));
  max-height: min(780px, calc(100dvh - 28px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  border: 1px solid #aac3df;
  border-radius: 20px;
  background: #fff;
  color: #142238;
  box-shadow: 0 26px 80px rgba(15, 35, 58, .28);
}
.review-details-dialog::backdrop { background: rgba(4, 21, 39, .68); backdrop-filter: blur(4px); }
.review-details-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.review-details-head h3 { margin: 4px 0 0; color: #142238; font-size: clamp(1.35rem, 3vw, 1.9rem); }
.review-details-content { display: grid; gap: 8px; }
.review-details-content > div { display: grid; grid-template-columns: minmax(150px, .85fr) minmax(0, 1.4fr); gap: 14px; padding: 11px 12px; border: 1px solid #d5e2ef; border-radius: 11px; background: #f4f8fc; }
.review-details-content span { color: #52667e; font-weight: 700; }
.review-details-content strong { min-width: 0; color: #13263d; overflow-wrap: anywhere; }
.review-details-actions { display: flex; justify-content: flex-end; margin-top: 20px; }
body.theme-dark .review-details-dialog { border-color: #395a77; background: #101e2d; color: #edf7ff; }
body.theme-dark .review-details-head h3 { color: #edf7ff; }
body.theme-dark .review-details-content > div { border-color: #35536e; background: #172a3d; }
body.theme-dark .review-details-content span { color: #a9c6de; }
body.theme-dark .review-details-content strong { color: #f3f8fd; }

@media (max-width: 560px) {
  .review-details-dialog { padding: 18px 14px; }
  .review-details-content > div { grid-template-columns: 1fr; gap: 4px; }
  .review-details-actions .primary-button { width: 100%; }
}
body.theme-dark .work-order-readiness-decision-actions .danger-action {
  border-color: #ff8790;
  background: #c9323e;
  color: #fff;
}
body.theme-dark .work-order-readiness-decision-actions > .primary-button {
  border-color: #78afff;
  background: #075fca;
  color: #fff;
}

.ios-pdf-preview-dialog {
  width: min(960px, calc(100vw - 24px));
  height: min(920px, calc(100dvh - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #9db8d4;
  border-radius: 18px;
  background: #f5f9fd;
  color: #0b2037;
  box-shadow: 0 28px 90px rgba(3, 21, 38, .42);
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.ios-pdf-preview-dialog[open] { display: grid; }
.ios-pdf-preview-dialog::backdrop { background: rgba(2, 14, 27, .82); backdrop-filter: blur(5px); }
.ios-pdf-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-bottom: 1px solid #b8cbe0; background: #fff; }
.ios-pdf-preview-head h3 { max-width: min(620px, 62vw); margin: 2px 0 0; overflow: hidden; color: #0b2037; font-size: clamp(1rem, 3vw, 1.3rem); text-overflow: ellipsis; white-space: nowrap; }
.ios-pdf-preview-head .eyebrow { margin: 0; }
.ios-pdf-preview-head #closeIosPdfPreview { min-width: 88px; min-height: 48px; flex: 0 0 auto; }
.ios-pdf-preview-dialog iframe { display: block; width: 100%; height: 100%; min-height: 0; border: 0; background: #fff; }
.ios-pdf-preview-actions { display: grid; grid-template-columns: minmax(210px, 330px) minmax(0, 1fr); gap: 14px; align-items: center; min-height: 84px; padding: 12px 15px; border-top: 1px solid #b8cbe0; background: #fff; }
.ios-pdf-preview-actions p { margin: 0; color: #496176; font-size: .82rem; line-height: 1.4; }
body.theme-dark .ios-pdf-preview-dialog { border-color: #36536f; background: #0e1b29; color: #eef7ff; }
body.theme-dark .ios-pdf-preview-head,
body.theme-dark .ios-pdf-preview-actions { border-color: #36536f; background: #111f2f; }
body.theme-dark .ios-pdf-preview-head h3 { color: #eef7ff; }
body.theme-dark .ios-pdf-preview-actions p { color: #bdd0e2; }

.work-order-break-list { display: grid; gap: 12px; padding: 12px 14px 0; background: var(--tnvora-white); }
.work-order-breaks-field:not([open]) .work-order-break-list,
.work-order-breaks-field:not([open]) .work-order-add-break { display: none; }
.work-order-breaks-field .work-order-break-row { margin: 0; padding: 14px; border: 1px solid #cbd8e8; border-radius: 14px; background: #f8fbff; }
.work-order-break-row-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.work-order-break-row-heading strong { color: #0d3e68; font-size: .92rem; }
.work-order-break-moment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.work-order-break-moment-grid fieldset,
.work-order-break-zone-choice { margin: 0; padding: 11px; border: 1px solid #d7e1ec; border-radius: 11px; background: #fff; }
.work-order-break-moment-grid fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.work-order-break-moment-grid legend,
.work-order-break-zone-choice legend { padding: 0 5px; color: #496075; font-size: .72rem; font-weight: 900; }
.work-order-break-moment-grid label { display: grid; gap: 5px; color: #50657a; font-size: .7rem; font-weight: 800; }
.work-order-break-zone-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.work-order-break-zone-choice label { display: flex; gap: 9px; align-items: center; min-height: 44px; padding: 9px 11px; border: 1px solid #cbd8e8; border-radius: 10px; color: #213c55; font-weight: 800; cursor: pointer; }
.work-order-break-zone-choice label:has(input:checked) { border-color: #0b79e8; background: #eaf4ff; color: #075da9; box-shadow: inset 0 0 0 1px #0b79e8; }
.work-order-break-zone-choice input { width: 18px; height: 18px; accent-color: #0b79e8; }
.work-order-add-break { margin: 10px 14px 0; }
body.theme-dark .work-order-break-list { background: #101d2c; }
body.theme-dark .work-order-breaks-field .work-order-break-row,
body.theme-dark .work-order-break-moment-grid fieldset,
body.theme-dark .work-order-break-zone-choice { border-color: #344b63; background: #142437; }
body.theme-dark .work-order-break-row-heading strong { color: #8fcbff; }
body.theme-dark .work-order-break-moment-grid legend,
body.theme-dark .work-order-break-zone-choice legend,
body.theme-dark .work-order-break-moment-grid label { color: #bcd0e1; }
body.theme-dark .work-order-break-zone-choice label { border-color: #3b526a; color: #dceaf5; background: #101d2c; }
body.theme-dark .work-order-break-zone-choice label:has(input:checked) { border-color: #4da9ff; background: #12385c; color: #d9efff; box-shadow: inset 0 0 0 1px #4da9ff; }

@media (max-width: 620px) {
  .work-order-role-assignment-notice { grid-template-columns: 34px minmax(0, 1fr); padding: 13px; }
  .work-order-role-assignment-notice > span { width: 34px; height: 34px; font-size: 18px; }
  .work-order-role-assignment-dialog { padding: 22px 18px; }
  .work-order-readiness-decision-actions { grid-template-columns: 1fr; }
  .ios-pdf-preview-dialog { width: calc(100vw - 12px); height: calc(100dvh - 12px); max-width: calc(100vw - 12px); max-height: calc(100dvh - 12px); border-radius: 14px; }
  .ios-pdf-preview-head { padding: calc(max(env(safe-area-inset-top, 0px), var(--tnvora-safe-area-top, 0px)) + 14px) 11px 12px; }
  .ios-pdf-preview-head h3 { max-width: 56vw; }
  .ios-pdf-preview-head #closeIosPdfPreview { min-width: 96px; min-height: 52px; }
  .ios-pdf-preview-actions { grid-template-columns: 1fr; gap: 7px; min-height: 104px; padding: 10px 11px calc(max(env(safe-area-inset-bottom, 0px), var(--tnvora-safe-area-bottom, 0px)) + 10px); }
  .ios-pdf-preview-actions p { font-size: .74rem; text-align: center; }
  .work-order-break-moment-grid,
  .work-order-break-zone-choice { grid-template-columns: 1fr; }
}
/* V10.79 — centralne zgłoszenia, analiza obciążenia i finanse TNVORA. */
.problem-report-heading,
.problem-report-heading > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.problem-report-heading > div {
  flex-direction: column;
  gap: 3px;
}

.problem-report-notes {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--tnvora-gray-50);
}

.problem-report-notes p {
  display: grid;
  gap: 4px;
  margin: 0;
}

.problem-report-note-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: 10px;
}

.problem-report-note-form label,
.finance-pricing-form label,
.finance-month-picker {
  display: grid;
  gap: 6px;
}

.platform-load-analysis,
#adminFinancesPanel .tenant-card {
  margin-top: 16px;
}

.finance-month-picker {
  width: min(280px, 100%);
  margin: 0 0 16px;
}

@media (max-width: 720px) {
  .problem-report-note-form {
    grid-template-columns: 1fr;
  }

  .problem-report-heading {
    align-items: stretch;
    flex-direction: column;
  }
}
/* V11.10 — środki i warunki bezpiecznego wykonywania pracy */
.work-order-safety-conditions{grid-column:1/-1;border:1px solid var(--line,#cbd5e1);border-radius:16px;padding:16px;display:grid;gap:14px;background:color-mix(in srgb,var(--surface,#fff) 94%,#168f67 6%)}
.work-order-safety-conditions legend{font-weight:900;padding:0 8px}
.work-order-eip-picker{display:grid;gap:10px;padding:14px;border-radius:14px;border-left:5px solid #d48a00;background:color-mix(in srgb,var(--surface,#fff) 90%,#ffc857 10%)}
.work-order-eip-search-grid{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(170px,1fr) minmax(280px,2fr) auto;gap:10px;align-items:end}
.work-order-eip-search-grid label,.work-order-new-condition-form label{display:grid;gap:6px;font-weight:800;min-width:0}
.work-order-eip-search-grid select,.work-order-eip-search-grid input,.work-order-new-condition-form textarea{width:100%;min-width:0}
.work-order-eip-document-field{grid-template-columns:1fr}.work-order-eip-document-field input{margin-bottom:2px}
.work-order-eip-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:8px;max-height:280px;overflow:auto}
.work-order-eip-choice{display:flex;gap:10px;align-items:flex-start;padding:10px;border:1px solid var(--line,#cbd5e1);border-radius:10px;background:var(--surface,#fff)}
.work-order-eip-choice.selected{justify-content:space-between;border-color:color-mix(in srgb,var(--line,#cbd5e1) 55%,#16a36f 45%)}
.work-order-eip-choice input{margin-top:3px;flex:0 0 auto}
.work-order-eip-choice small{display:block;opacity:.76;margin-top:3px}
.work-order-mandatory-conditions{display:grid;gap:8px;margin:0;padding-left:28px}
.work-order-mandatory-conditions li{padding:9px 12px;border-radius:10px;background:color-mix(in srgb,var(--surface,#fff) 92%,#22c55e 8%);border:1px solid color-mix(in srgb,var(--line,#cbd5e1) 75%,#22c55e 25%)}
.work-order-condition-picker label,.safety-condition-form label{display:grid;gap:7px;font-weight:800}
.work-order-selected-conditions,.safety-condition-list{display:grid;gap:8px}
.work-order-selected-condition,.safety-condition-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:10px 12px;border:1px solid var(--line,#cbd5e1);border-radius:10px;background:var(--surface,#fff)}
.safety-dictionary-card{margin-top:18px}.safety-condition-form{display:grid;gap:10px}.safety-condition-form textarea{width:100%}.safety-dictionary-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0}.safety-condition-row .form-actions{display:flex;gap:6px}
.safety-dictionary-toolbar input[type="search"]{flex:1 1 280px;min-width:0}.work-order-condition-picker{display:grid;gap:8px}.work-order-condition-picker input[type="search"]{width:100%}
.work-order-new-condition-form{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;margin-top:8px}.work-order-new-condition-form textarea{resize:vertical}
html[data-theme="dark"] .work-order-safety-conditions,html[data-theme="dark"] .work-order-eip-picker,body.theme-dark .work-order-safety-conditions,body.theme-dark .work-order-eip-picker{color:var(--text,#f8fafc)}
body.theme-dark .work-order-eip-choice,body.theme-dark .work-order-selected-condition,body.theme-dark .safety-condition-row{background:var(--surface,#14233a);border-color:var(--line,#3a4d68);color:var(--text,#f8fafc)}
@media(max-width:1000px){.work-order-eip-search-grid{grid-template-columns:1fr 1fr}.work-order-eip-document-field{grid-column:1/-1}.work-order-eip-search-grid>button{grid-column:1/-1}}
@media(max-width:700px){.work-order-eip-search-grid,.work-order-new-condition-form{grid-template-columns:1fr}.work-order-eip-document-field,.work-order-eip-search-grid>button{grid-column:auto}.work-order-eip-choices{grid-template-columns:1fr}.work-order-eip-choice.selected,.work-order-selected-condition,.safety-condition-row{display:grid;grid-template-columns:1fr}.safety-condition-row .form-actions{justify-content:flex-start}}

/* R619: administrative account actions stay readable in both themes.
   Presentation only: no role, visibility, disabled state or action changes. */
body.theme-light .admin-user-danger-zone {
  color: #7f1d1d;
  border-color: #e7a3ac;
  background: #fff1f2;
}

body.theme-light .admin-user-danger-zone summary {
  color: #7f1d1d;
}

body.theme-light .admin-user-danger-zone > p {
  color: #9f1239;
}

body:not(.theme-light) .admin-user-danger-zone {
  color: #ffe4e6;
  border-color: #b96979;
  background: #321b24;
}

body:not(.theme-light) .admin-user-danger-zone summary,
body:not(.theme-light) .admin-user-danger-zone > p {
  color: #fecdd3;
}

.admin-user-danger-zone summary::marker {
  color: currentColor;
}

body.theme-light .admin-user-danger-zone summary:focus-visible {
  outline: 3px solid #be123c;
  outline-offset: -3px;
  border-radius: 6px;
}

body:not(.theme-light) .admin-user-danger-zone summary:focus-visible {
  outline: 3px solid #fda4af;
  outline-offset: -3px;
  border-radius: 6px;
}

@media (forced-colors: active) {
  body.theme-light .admin-user-danger-zone,
  body:not(.theme-light) .admin-user-danger-zone {
    color: CanvasText;
    border-color: CanvasText;
    background: Canvas;
  }

  body.theme-light .admin-user-danger-zone summary,
  body.theme-light .admin-user-danger-zone > p,
  body:not(.theme-light) .admin-user-danger-zone summary,
  body:not(.theme-light) .admin-user-danger-zone > p {
    color: CanvasText;
  }

  body.theme-light .admin-user-danger-zone summary:focus-visible,
  body:not(.theme-light) .admin-user-danger-zone summary:focus-visible {
    outline-color: Highlight;
  }
}

/* New PP opener: keep a readable primary action in both themes without
   changing status buttons or the organization's document workflow. */
#workOrderPanel #newWorkOrderButtonR694.primary-button {
  border-color: #0751ad;
  background: #075fca;
  color: #fff;
}

#workOrderPanel #newWorkOrderButtonR694.primary-button:is(:hover, :focus-visible) {
  border-color: #064c9f;
  background: #064c9f;
  color: #fff;
}

#workOrderPanel #newWorkOrderButtonR694.primary-button:focus-visible {
  outline: 3px solid #72b5ff;
  outline-offset: 3px;
}

@media (forced-colors: active) {
  #workOrderPanel #newWorkOrderButtonR694.primary-button,
  #workOrderPanel #newWorkOrderButtonR694.primary-button:is(:hover, :focus-visible) {
    color: ButtonText;
    background: ButtonFace;
    border-color: ButtonText;
    forced-color-adjust: auto;
  }

  #workOrderPanel #newWorkOrderButtonR694.primary-button:focus-visible {
    outline-color: Highlight;
  }
}

/* Report frame deliberately differs from the permit, in both themes. */
body #newReportPanel.panel {
  background: #dff1ff;
  border: 2px solid #85bfe9;
  color: #16354b;
}
body #newReportPanel > .section-title,
body #newReportPanel > .section-title :is(.eyebrow, h2),
body #newReportPanel #workForm > :is(p, label, .work-type-field, .work-time-range),
body #newReportPanel #workForm > label > span,
body #newReportPanel #workForm > .work-type-field > label > span,
body #newReportPanel #workForm > .farm-field > label > span,
body #newReportPanel #workForm > .work-time-range > label > span,
body #newReportPanel #workForm > .add-database-toggle {
  color: #16354b;
}
body #newReportPanel #workForm > .calculated-time {
  background: #edf8ff; border-color: #85bfe9; color: #16354b;
}
body #newReportPanel #workForm > .calculated-time :is(span, strong) { color: #16354b; }
body #newReportPanel #workForm > .add-database-toggle {
  background: #edf8ff;
  border-color: #85bfe9;
}

/* Explicit choices avoid iOS' ambiguous native multi-select summary. */
body :is(#workOrderPanel, #userWorkOrdersList) .work-order-change-actions [data-user-order-action="approve-change"] {
  background: #006747; border-color: #00573d; color: #fff;
}
body :is(#workOrderPanel, #userWorkOrdersList) .work-order-change-actions [data-user-order-action="reject-change"] {
  background: #b42330; border-color: #921c27; color: #fff;
}
body :is(#workOrderPanel, #userWorkOrdersList) .work-order-change-actions button:focus-visible {
  outline: 3px solid #75baff; outline-offset: 3px;
}
#workOrderTurbine[hidden] { display: none !important; }
.work-order-turbine-field { display: grid; gap: 8px; min-width: 0; }
.turbine-picker-r711 { display: grid; gap: 10px; min-width: 0; }
.turbine-picker-r711 details {
  border: 1px solid #8ba1b9;
  border-radius: 10px;
  overflow: hidden;
  background: #f7fbff;
  color: #17354b;
}
.turbine-picker-r711 summary { padding: 14px; cursor: pointer; font-weight: 700; }
.turbine-picker-options-r711 { display: grid; gap: 4px; padding: 4px 10px 10px; max-height: 300px; overflow-y: auto; }
.turbine-picker-options-r711 label {
  display: flex; align-items: center; gap: 12px; padding: 10px;
  min-height: 44px; border-radius: 8px; cursor: pointer;
}
.turbine-picker-options-r711 label:has(input:checked) { background: #dceeff; }
.turbine-picker-options-r711 input[type=checkbox] { width: 22px; height: 22px; min-width: 22px; margin: 0; accent-color: #075fca; }
.turbine-picker-options-r711 label span { color: inherit; overflow-wrap: anywhere; }
.turbine-picker-selected-r711 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.turbine-picker-selected-r711 > strong { flex-basis: 100%; }
.turbine-picker-chip-r711 {
  min-height: 44px; border: 1px solid #075fca; border-radius: 9px;
  background: #e1efff; color: #073b75; padding: 8px 12px;
  font-weight: 700; overflow-wrap: anywhere; max-width: 100%; cursor: pointer;
}
.turbine-picker-r711 summary:focus-visible,
.turbine-picker-chip-r711:focus-visible { outline: 3px solid #2689ef; outline-offset: -3px; }
body:not(.theme-light) .turbine-picker-r711 details { background: #172b40; color: #edf7ff; border-color: #8ba1b9; }
body:not(.theme-light) .turbine-picker-options-r711 label:has(input:checked) { background: #254b71; }
body:not(.theme-light) .turbine-picker-chip-r711 { background: #d7eaff; color: #073b75; border-color: #8ac1ff; }
@media (forced-colors: active) {
  body #newReportPanel.panel,
  .turbine-picker-r711 details,
  .turbine-picker-options-r711 label:has(input:checked),
  body:not(.theme-light) .turbine-picker-r711 details,
  body:not(.theme-light) .turbine-picker-options-r711 label:has(input:checked) { background: Canvas; color: CanvasText; border-color: CanvasText; }
  .turbine-picker-chip-r711,
  body:not(.theme-light) .turbine-picker-chip-r711 { background: ButtonFace; color: ButtonText; border-color: ButtonText; }
}

/* 12.55: one recognizable disclosure surface across application tabs.
   Native details retain their keyboard behavior and never submit a form. */
body #appContent details > summary,
body dialog details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 13px 16px;
  border: 2px solid #6989a8;
  border-radius: 10px;
  color: #153b60;
  background: #eef5fc;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: start;
  cursor: pointer;
  list-style: none;
  overflow-wrap: anywhere;
}
body #appContent details > summary::-webkit-details-marker,
body dialog details > summary::-webkit-details-marker { display: none; }
body #appContent details > summary::after,
body dialog details > summary::after {
  content: "⌄";
  flex: 0 0 26px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
}
body #appContent details > summary::before,
body dialog details > summary::before { content: none; }
body #appContent details[open] > summary,
body dialog details[open] > summary { border-color: #1768ad; background: #dcecff; }
body #appContent details[open] > summary::after,
body dialog details[open] > summary::after { transform: rotate(180deg); }
body #appContent details > summary :is(strong, small, span),
body dialog details > summary :is(strong, small, span) { color: inherit; }
body #appContent details > summary small { font-weight: 600; }
body #appContent details > summary:hover,
body dialog details > summary:hover { border-color: #0757a1; }
body #appContent details > summary:focus-visible,
body dialog details > summary:focus-visible { outline: 3px solid #1379d0; outline-offset: 3px; }
body #appContent .work-order-breaks-toggle i { display: none; }
body #appContent .work-order-active-details { border: 2px solid #6989a8; }
body:not(.theme-light) #appContent details > summary,
body:not(.theme-light) dialog details > summary {
  background: #19344e; color: #f0f7ff; border-color: #83a5c8;
}
body:not(.theme-light) #appContent details[open] > summary,
body:not(.theme-light) dialog details[open] > summary { background: #244b71; border-color: #a7d4ff; }
body:not(.theme-light) #appContent details > summary:focus-visible,
body:not(.theme-light) dialog details > summary:focus-visible { outline-color: #8ecaff; }
body #appContent :is(#summaryToggle, [data-sms-users-toggle], [data-user-action="toggle-details"]) {
  min-height: 46px; border: 2px solid #6989a8; border-radius: 10px;
  padding: 11px 14px; background: #eef5fc; color: #153b60;
}
body:not(.theme-light) #appContent :is(#summaryToggle, [data-sms-users-toggle], [data-user-action="toggle-details"]) {
  background: #19344e; color: #f0f7ff; border-color: #83a5c8;
}
body #appContent #summaryToggle :is(.summary-label, #monthTotal, span),
body #appContent :is([data-sms-users-toggle], [data-user-action="toggle-details"]) > span { color: inherit; }
body #appContent details.admin-user-danger-zone > summary {
  color: #8e172c; background: #fff0f1; border-color: #b42330;
}
body:not(.theme-light) #appContent details.admin-user-danger-zone > summary {
  color: #ffe4e9; background: #4f2330; border-color: #ff9ca8;
}
body #newReportPanel #workForm > #showAddWorkType.add-database-toggle {
  min-height: 48px; margin: 4px 0; padding: 12px 18px;
  border: 2px solid #064d91; border-radius: 10px;
  background: #075fac; color: #fff; font-size: 0.95rem; font-weight: 800;
  white-space: normal; text-align: start;
}
body #newReportPanel #showAddWorkType > span { color: inherit; }
body #newReportPanel #workForm > #showAddWorkType:hover { background: #064d91; }
body #newReportPanel #workForm > #showAddWorkType:focus-visible {
  outline: 3px solid #123f69; outline-offset: 3px;
}
.break-form-help-r718 { padding: 10px 12px; line-height: 1.5; }
.break-submit-bar-r718 {
  position: sticky; bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  z-index: 5; display: grid; gap: 8px; padding: 12px;
  border: 2px solid #1768ad; border-radius: 12px;
  background: #f0f7ff; color: #153b60; box-shadow: 0 4px 16px #0a244429;
}
.break-submit-bar-r718 p { margin: 0; color: inherit; font-size: 0.88rem; line-height: 1.4; }
body #appContent .break-submit-bar-r718 .work-order-request-change {
  min-height: 48px; margin: 0; width: 100%; background: #075fac; border: 2px solid #064d91; color: #fff;
}
body .break-submit-bar-r718 .work-order-request-change:disabled { opacity: 0.65; }
body .break-submit-bar-r718 .is-error { color: #a21b2b; font-weight: 800; }
.break-submit-jump-r718 { min-height: 44px; margin: 8px 0; }
[data-active-break] :is(input, fieldset), .break-submit-bar-r718 { scroll-margin-block: 100px 230px; }
body:not(.theme-light) .break-submit-bar-r718 { background: #18344d; border-color: #8ecaff; color: #f0f7ff; }
body:not(.theme-light) .break-submit-bar-r718 .is-error { color: #ffb8c1; }
body #appContent .work-order-breaks-field .break-form-help-r718,
body #appContent .work-order-breaks-field :is(label, legend, .work-order-break-row-heading strong),
body #appContent .work-order-breaks-field .work-order-break-zone-choice label span {
  color: #183b5c;
}
body:not(.theme-light) #appContent .work-order-breaks-field .break-form-help-r718,
body:not(.theme-light) #appContent .work-order-breaks-field :is(label, legend, .work-order-break-row-heading strong),
body:not(.theme-light) #appContent .work-order-breaks-field .work-order-break-zone-choice label span {
  color: #eff7ff;
}
@media (min-width: 900px) {
  .app-shell.desktop-layout .break-submit-bar-r718 { bottom: 18px; grid-template-columns: minmax(0, 1fr) minmax(220px, 1fr); align-items: center; }
}
@media (forced-colors: active) {
  body #appContent details > summary, body dialog details > summary,
  body:not(.theme-light) #appContent details > summary, body:not(.theme-light) dialog details > summary,
  body .break-submit-bar-r718, body:not(.theme-light) .break-submit-bar-r718 {
    background: Canvas; color: CanvasText; border-color: CanvasText;
  }
  body #newReportPanel #workForm > #showAddWorkType.add-database-toggle,
  body .break-submit-bar-r718 .work-order-request-change { background: ButtonFace; color: ButtonText; border-color: ButtonText; }
}

/* 12.56: one changes panel, separate from the operational PP checklist. */
.certificate-grouping-r723 { display: grid; gap: 14px; padding: 16px; margin-bottom: 16px; border: 1px solid #7394b2; border-radius: 12px; background: #eff6fd; color: #173c5e; }
.team-panel-r723 { display: grid; gap: 16px; min-width: 0; color: #173c5e; }
.team-panel-r723 > header, .team-card-r723 > header { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.team-panel-r723 h2, .team-panel-r723 h3 { margin: 0; overflow-wrap: anywhere; color: inherit; }
.team-panel-r723 #teamEditorR723 { display: grid; gap: 16px; padding: 18px; border: 1px solid #7394b2; border-radius: 12px; background: #eff6fd; }
.team-panel-r723 label { display: grid; gap: 8px; min-width: 0; color: inherit; }
.team-panel-r723 :is(input, select) { min-height: 50px; max-width: 100%; }
.team-panel-actions-r723 { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
body #appContent .team-panel-r723 button { min-height: 50px; }
body #appContent .team-panel-r723 .primary-button { background: #0863a5; color: #fff; border: 1px solid #084d7e; }
.team-list-r723 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.team-card-r723 { padding: 18px; border: 1px solid #7394b2; border-radius: 12px; background: #f7faff; min-width: 0; }
.team-card-r723 ul { padding-left: 22px; line-height: 1.7; }
.team-person-r723 { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px 4px 12px; border: 1px solid #7394b2; border-radius: 9px; background: #fff; color: #173c5e; overflow-wrap: anywhere; }
.team-person-r723 button { width: 50px; height: 50px; padding: 4px; border: 1px solid #7394b2; border-radius: 7px; color: #173c5e; background: #eef5fc; }
body:not(.theme-light) .team-panel-r723 { color: #eff7ff; }
body:not(.theme-light) .team-panel-r723 :is(#teamEditorR723, .team-card-r723) { background: #142d43; border-color: #8aaccd; }
body:not(.theme-light) .team-person-r723, body:not(.theme-light) .team-person-r723 button { color: #eff7ff; background: #1d3c57; border-color: #8aaccd; }
.certificate-grouping-r723 label { display: grid; gap: 7px; min-width: 0; }
.certificate-grouping-r723 fieldset { min-width: 0; padding: 12px; border: 1px solid #7394b2; border-radius: 9px; }
#adminCertFarmChoices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 8px; }
body #appContent .certificate-farm-choice-r723 { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px; border: 1px solid #7394b2; border-radius: 8px; background: #fff; color: #173c5e; cursor: pointer; }
.certificate-farm-choice-r723 input { flex: 0 0 22px; width: 22px; height: 22px; accent-color: #0965aa; }
.certificate-farm-choice-r723 span { display: grid; gap: 3px; }
.certificate-farm-choice-r723 small { color: inherit; }
body:not(.theme-light) .certificate-grouping-r723 { background: #142d43; color: #eff7ff; border-color: #8aaccd; }
body:not(.theme-light) #appContent .certificate-farm-choice-r723 { background: #1d3c57; color: #eff7ff; border-color: #8aaccd; }
body #appContent .work-order-changes-details,
body #appContent .work-order-active-details {
  margin-block: 12px;
  border: 1px solid #7496b4;
  border-radius: 12px;
  background: #fff;
  overflow: visible;
}
body #appContent :is(.work-order-changes-details, .work-order-active-details) > summary {
  border: 0;
  border-radius: 11px;
  padding: 15px 16px;
  background: #eaf3fb;
  color: #173c5e;
}
body #appContent :is(.work-order-changes-details, .work-order-active-details)[open] > summary {
  border-bottom: 1px solid #7496b4;
  border-radius: 11px 11px 0 0;
  background: #deedfa;
}
.work-order-changes-details > summary > span:first-child { display: grid; gap: 4px; min-width: 0; }
.work-order-changes-details > summary small { font-size: .78rem; font-weight: 500; line-height: 1.45; }
.work-order-changes-pending { padding: 6px 9px; border: 1px solid #986600; border-radius: 20px; background: #fff2c5; color: #624300 !important; font-size: .75rem; }
.work-order-changes-body { display: grid; gap: 14px; padding: 14px; }
body #appContent .work-order-changes-body :is(.work-order-active-notes, .work-order-team-leave, .work-order-breaks-field, .work-order-change-approval) { margin: 0; min-width: 0; }
body #appContent .work-order-changes-body :is(.work-order-team-leave, .work-order-breaks-field) { border: 1px solid #91a9bf; border-radius: 9px; background: #f7faff; }
body #appContent .work-order-changes-body details > summary { border: 0; border-radius: 8px; padding: 12px; background: #edf4fb; }
body #appContent .work-order-changes-body details[open] > summary { border-bottom: 1px solid #91a9bf; border-radius: 8px 8px 0 0; }
body #appContent .work-order-changes-body .work-order-breaks-toggle { display: none; }
body:not(.theme-light) #appContent :is(.work-order-changes-details, .work-order-active-details) { background: #102537; border-color: #86a7c7; }
body:not(.theme-light) #appContent :is(.work-order-changes-details, .work-order-active-details) > summary { background: #19344e; color: #eff7ff; }
body:not(.theme-light) #appContent :is(.work-order-changes-details, .work-order-active-details)[open] > summary { background: #244661; border-color: #86a7c7; }
body:not(.theme-light) #appContent .work-order-changes-body :is(.work-order-team-leave, .work-order-breaks-field) { background: #142c42; border-color: #86a7c7; }
body:not(.theme-light) #appContent .work-order-changes-body details > summary { background: #1c3b56; color: #eff7ff; border-color: #86a7c7; }
@media (max-width: 600px) {
  .work-order-changes-body { padding: 10px; gap: 10px; }
  .work-order-changes-pending { max-width: 105px; text-align: center; }
}
@media (forced-colors: active) {
  body #appContent :is(.work-order-changes-details, .work-order-active-details),
  body #appContent :is(.work-order-changes-details, .work-order-active-details) > summary,
  body #appContent .work-order-changes-body details > summary { background: Canvas; color: CanvasText; border-color: CanvasText; }
}

/* 12.57: membership changes share the changes panel; EIP stays inside safety. */
body #appContent .work-order-changes-body .work-order-late-member { min-width: 0; margin: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
body #appContent .work-order-changes-body .work-order-late-member :is(select, input, textarea, .work-order-late-guest) { min-width: 0; max-width: 100%; }
body #appContent .work-order-changes-body .work-order-late-member select { width: 100%; }
body #appContent .work-order-changes-body .work-order-late-guest { margin: 0; }
body #appContent .work-order-changes-body .work-order-late-guest :is([data-user-order-action="request-late-guest"], [data-user-order-action="clear-late-guest"]) { min-height: 50px; }
@media (max-width: 700px) {
  body #appContent .work-order-changes-body .work-order-late-member { grid-template-columns: minmax(0, 1fr); padding: 12px; }
}
