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

body.cms-ui-preview :where(button, input, select, textarea) {
  -webkit-tap-highlight-color: transparent;
}

.startup-recovery[hidden] {
  display: none !important;
}

.startup-recovery {
  position: fixed;
  z-index: 200000;
  inset: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  overflow: auto;
  background: #eefbfd;
  color: #102238;
}

.startup-recovery-card {
  width: min(100%, 460px);
  box-sizing: border-box;
  padding: 28px;
  border: 1px solid #acd8dd;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(10, 47, 65, 0.18);
  text-align: center;
}

.startup-recovery-card img {
  width: min(220px, 72%);
  height: auto;
  margin-bottom: 18px;
}

.startup-recovery-card h1 {
  margin: 8px 0 12px;
  color: #102238;
  font-size: clamp(1.55rem, 7vw, 2.15rem);
}

.startup-recovery-card p:not(.eyebrow) {
  color: #41566d;
  line-height: 1.55;
}

.startup-recovery-card button {
  width: 100%;
  min-height: 52px;
  margin: 12px 0 16px;
  border: 0;
  border-radius: 14px;
  background: #096af3;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
}

.startup-recovery-card button:disabled {
  opacity: 0.65;
}

.startup-recovery-card small {
  color: #62758a;
  font-weight: 800;
}

body.cms-ui-preview :where(button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(22, 119, 242, 0.32);
  outline-offset: 2px;
}

body.cms-ui-preview :where(
  .panel,
  .daily-note,
  .history-section,
  .admin-panel,
  .vehicle-panel,
  .summary-card
) {
  border-radius: var(--md-sys-shape-corner-large);
}

body.cms-ui-preview :where(
  .primary-button,
  .secondary-button,
  .danger-button,
  .small-button,
  .boss-dashboard-tab
) {
  min-width: 0;
  border-radius: var(--md-sys-shape-corner-small);
}

body.cms-ui-preview :where(input, select, textarea) {
  width: 100%;
  max-width: 100%;
  border-radius: var(--md-sys-shape-corner-small);
}

body.cms-ui-preview :where(.boss-history-table, .inventory-table) th {
  letter-spacing: 0.035em;
}

body.cms-ui-preview .mui-shell-card,
body.cms-ui-preview .cms-panel {
  background: var(--mui-surface);
  border: 1px solid var(--mui-border);
  border-radius: var(--mui-radius);
  box-shadow: var(--mui-shadow);
  color: var(--mui-text);
}

body.cms-ui-preview .mui-button {
  align-items: center;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
}

body.cms-ui-preview .mui-button-primary {
  background: var(--mui-primary);
  color: var(--tnvora-white);
}

body.cms-ui-preview .mui-button-danger {
  background: var(--mui-danger);
  color: var(--tnvora-white);
}

body.cms-ui-preview .mui-table {
  border-collapse: collapse;
  color: var(--mui-text);
  width: 100%;
}

body.cms-ui-preview .mui-table th,
body.cms-ui-preview .mui-table td {
  border-bottom: 1px solid var(--mui-border);
  padding: 12px 14px;
  text-align: left;
}

body.cms-ui-preview .mui-table th {
  background: var(--mui-surface-2);
  color: var(--mui-text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.maintenance-recovery-card {
  display: grid;
  width: min(100%, 520px);
  gap: 10px;
  justify-items: center;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid rgba(105, 177, 255, .42);
  border-radius: 24px;
  color: #f7fbff;
  background: #122034;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
  text-align: center;
}

.maintenance-recovery-card h2,
.maintenance-recovery-card p {
  margin: 0;
}

.maintenance-recovery-card > p:not(.eyebrow) {
  color: #d4e2f2;
  line-height: 1.55;
}

.maintenance-recovery-card small {
  color: #91a9c2;
}

body.theme-dark .eip-assigned-card,
body.theme-dark .eip-execution-card,
body.theme-dark .eip-selection-card,
body.theme-dark .eip-document-card,
body.theme-dark .eip-preview-card {
  border-color: #385575;
  color: #f5f9ff;
  background: #14243a;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
}

body.theme-dark .eip-assigned-item.selected {
  box-shadow: 0 0 0 3px rgba(67, 151, 255, .45);
}

body.theme-dark .eip-assigned-item b,
body.theme-dark .eip-assigned-item strong,
body.theme-dark .eip-execution-card h3,
body.theme-dark .eip-execution-card h4,
body.theme-dark .eip-execution-card label,
body.theme-dark .eip-workflow-switch strong,
body.theme-dark .eip-auto-fields strong {
  color: #f7fbff;
}

body.theme-dark .eip-assigned-item > div:first-child span,
body.theme-dark .eip-assigned-item > div:first-child small,
body.theme-dark .eip-execution-heading p,
body.theme-dark .eip-workflow-switch small,
body.theme-dark .eip-form-section-heading small,
body.theme-dark .eip-auto-fields span {
  color: #b9c9dc;
}

body.theme-dark .eip-workflow-switch,
body.theme-dark .eip-auto-fields > div,
body.theme-dark .eip-form-section,
body.theme-dark .eip-execution-step,
body.theme-dark .eip-lock-row {
  border-color: #395777;
  background: #182a40;
}

body.theme-dark .eip-execution-badge {
  border-color: #f5c34f;
  color: #ffe69c;
  background: #4a3611;
}

body.theme-dark .eip-execution-badge.complete {
  border-color: #45d38d;
  color: #b9f4d3;
  background: #163c2c;
}

body.theme-dark .eip-step-check span,
body.theme-dark .eip-step-check strong,
body.theme-dark .eip-step-check small,
body.theme-dark .eip-step-time,
body.theme-dark .eip-form-section-heading,
body.theme-dark .eip-document-copy dt,
body.theme-dark .eip-document-copy dd {
  color: #edf5ff;
}

body.theme-dark .eip-step-check small,
body.theme-dark .eip-form-section-heading small,
body.theme-dark .eip-document-copy dt {
  color: #b9c9dc;
}

body.theme-dark .eip-execution-card input[type="text"],
body.theme-dark .eip-execution-card input[type="time"],
body.theme-dark .eip-execution-card select,
body.theme-dark .eip-execution-card textarea,
body.theme-dark .eip-selection-card select {
  border-color: #4a6687;
  color: var(--tnvora-surface-cool);
  background: #0f1e31;
}

body.theme-dark .eip-execution-card input::placeholder,
body.theme-dark .eip-execution-card textarea::placeholder {
  color: #8fa6bf;
  opacity: 1;
}

body.theme-dark .eip-execution-actions button,
body.theme-dark .eip-document-actions button,
body.theme-dark .eip-document-actions a {
  border-color: #52749b;
  color: #f7fbff;
  background: #203955;
}

.eip-assignment-card,
.work-order-eip-gate {
  border: 1px solid color-mix(in srgb, var(--accent, #2583ee) 34%, var(--border, #cbd7e6));
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel, var(--tnvora-white)) 94%, var(--accent, #2583ee));
  box-shadow: 0 10px 30px rgba(20, 45, 80, .08);
}

.eip-assignment-card {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(240px, 1fr);
  gap: 16px 22px;
  align-items: end;
  margin: 18px 0;
  padding: 20px;
}

.eip-assignment-card h3,
.eip-assignment-card p {
  margin: 0;
}

.eip-assignment-card > div > p:last-child {
  margin-top: 7px;
  color: var(--muted, #637083);
}

.eip-assignment-card > label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.eip-assignment-card select {
  width: 100%;
  min-height: 48px;
}

.work-order-eip-external input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
}

#eipFormatActions,
#eipAssignmentStatus {
  grid-column: 1 / -1;
}

.work-order-late-member select {
  width: 100%;
  min-height: 48px;
}

.eip-format-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.eip-format-button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 3px 11px;
  align-items: center;
  min-height: 86px;
  padding: 13px;
  border: 1px solid var(--opsui-border, var(--line));
  border-radius: 14px;
  color: var(--opsui-text, var(--ink));
  background: var(--opsui-surface-raised, var(--surface));
  text-align: left;
}

.eip-format-button > span {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--tnvora-white);
  background: #2386ff;
  font-size: 1.2rem;
}

.eip-format-button.paper > span {
  background: #bf7a10;
}

.eip-format-button strong {
  font-size: .72rem;
  line-height: 1.35;
}

.eip-format-button small {
  color: var(--opsui-muted, var(--muted));
  font-size: .61rem;
  line-height: 1.35;
}

.eip-format-button:not(:disabled):hover,
.eip-format-button:not(:disabled):focus-visible {
  border-color: #2386ff;
  box-shadow: 0 0 0 3px rgba(35, 134, 255, .12);
  transform: translateY(-1px);
}

.eip-assigned-card {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--opsui-border, var(--line));
  border-radius: 18px;
  background: var(--opsui-surface-raised, var(--surface));
}

.eip-assigned-item.selected {
  box-shadow: 0 0 0 3px rgba(35, 134, 255, .14);
}

.support-code-card,
.admin-support-access-card {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid #7bb9d0;
  border-left: 6px solid #078c9c;
  border-radius: 18px;
  color: #122337;
  background: linear-gradient(135deg, #effcff, var(--tnvora-surface-cool));
}

.support-code-card h3,
.admin-support-access-card h4,
.support-code-card p,
.admin-support-access-card p { margin: 4px 0 0; }

.support-code-card p,
.admin-support-access-card p { color: #4a6073; line-height: 1.5; }

.admin-support-code-entry input {
  min-height: 48px;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
}

.employee-month-card {
  display: grid;
  gap: 20px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid #1c698d;
  border-radius: 22px;
  color: #effaff;
  background: linear-gradient(135deg, #073e56 0%, #0a6075 56%, #08765f 100%);
  box-shadow: 0 18px 42px rgba(6, 62, 82, .25);
}

.park-info-panel,
.duty-delegation-panel {
  display: grid;
  gap: 18px;
}

.park-info-select-label {
  max-width: 620px;
}

.duty-delegation-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.duty-delegation-form .full-width {
  grid-column: 1 / -1;
}

.selected-person-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 8px 7px 12px;
  border: 1px solid color-mix(in srgb, var(--blue) 44%, var(--line));
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
}

.selected-person-chip b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-person-chip button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--line));
  border-radius: 50%;
  background: color-mix(in srgb, var(--danger) 10%, var(--surface));
  color: var(--danger);
  font-size: 1rem;
  font-weight: 900;
}

.duty-delegation-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-left: 5px solid #718096;
  border-radius: 14px;
  background: var(--surface, var(--tnvora-white));
}

.duty-delegation-card > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
  flex-wrap: wrap;
}

.duty-delegation-card > div:first-child > span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .04em;
}

.duty-delegation-card > div:first-child > b {
  color: var(--ink);
}

.duty-delegation-card.status-active { border-left-color: #14a85a; }

.duty-delegation-card.status-planned { border-left-color: #e9a51b; }

.duty-delegation-card.status-revoked,
.duty-delegation-card.status-finished { opacity: .72; }

.duty-delegation-card-scope {
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--success) 10%, var(--surface));
}

.duty-delegation-card-scope small {
  color: var(--muted);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.duty-delegation-card-scope p {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 750;
}

.duty-delegation-card-scope.legacy {
  background: color-mix(in srgb, var(--warning) 12%, var(--surface));
}

body.theme-dark .selected-person-chip {
  border-color: #3b82f6;
  background: #172b46;
  color: #f3f8ff;
}

body.theme-dark .duty-delegation-card-scope {
  background: #123b2d;
}

body.theme-dark .duty-delegation-card-scope p { color: #eafff3; }

body.theme-dark .duty-delegation-card-scope.legacy { background: #3b3015; }

.auto-filter-status {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border: 1px solid color-mix(in srgb, var(--blue) 24%, var(--line));
  border-radius: 10px;
  color: var(--blue-dark);
  background: color-mix(in srgb, var(--blue-soft) 72%, var(--surface));
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
}

body.theme-dark .auto-filter-status {
  border-color: rgba(98, 167, 255, 0.28);
  color: #a9d0ff;
  background: rgba(20, 121, 247, 0.11);
}

.vacation-intro,
.vacation-toolbar,
.vacation-calendar-card,
.vacation-team-block {
  border: 1px solid #d4e1ef;
  border-radius: 18px;
  background: var(--tnvora-white);
}

.vacation-autosave-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid #86efac;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.vacation-calendar-card,
.vacation-team-block {
  min-width: 0;
  padding: 18px;
}

.vacation-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

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

.vacation-card-heading strong {
  color: #132033;
  font-size: 1rem;
}

.vacation-card-heading span {
  color: var(--tnvora-gray-500);
  font-size: 0.76rem;
  font-weight: 750;
}

#vacationPanel .vacation-calendar {
  width: min(100%, 680px);
  margin-inline: auto;
}

#vacationPanel .vacation-calendar .calendar-weekdays span {
  padding-block: 5px;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--tnvora-gray-500);
}

#vacationPanel .vacation-calendar .calendar-day {
  position: relative;
  width: 100%;
  max-width: 54px;
  min-height: 48px;
  aspect-ratio: 1;
  justify-self: center;
  border: 2px solid var(--tnvora-gray-300);
  border-radius: 12px;
  background: var(--tnvora-white);
  color: #0f172a;
  box-shadow: none;
}

#vacationPanel .vacation-calendar .calendar-day.saturday {
  border-color: #fbbf24;
  background: #fffbeb;
  color: #92400e;
}

#vacationPanel .vacation-calendar .calendar-day.holiday {
  border-color: #fda4af;
  background: var(--tnvora-danger-50);
  color: #9f1239;
}

#vacationPanel .vacation-day.vacation-selected {
  border-color: #be123c;
  background: #e11d48;
  color: var(--tnvora-white);
  box-shadow: 0 8px 18px rgba(190, 18, 60, 0.25);
}

#vacationPanel .vacation-day.vacation-selected.vacation-team-highlight {
  border-color: var(--tnvora-white);
  background: #e11d48;
  color: var(--tnvora-white);
  box-shadow: 0 0 0 3px #2563eb, 0 8px 18px rgba(190, 18, 60, 0.25);
}

.vacation-status-card {
  min-height: 0;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed #b9c9dc;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  text-align: center;
}

.vacation-team-picker-label select {
  width: 100%;
  min-height: 48px;
  padding-inline: 13px;
  border: 1px solid #b8cbe0;
  border-radius: 12px;
  background: var(--tnvora-surface-cool);
  color: #132033;
  font-weight: 850;
}

.vacation-team-cards {
  display: grid;
  gap: 8px;
  max-height: 390px;
  overflow: auto;
  padding-right: 3px;
}

.vacation-person-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid #d1ddeb;
  border-radius: 14px;
  background: #f8fafc;
  color: #132033;
  text-align: left;
}

.vacation-person-card:hover,
.vacation-person-card.is-active {
  border-color: #60a5fa;
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.vacation-person-card.is-active {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.vacation-person-avatar,
.vacation-selected-person-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tnvora-line-blue);
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 950;
}

.vacation-selected-person-chip {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #93c5fd;
  border-radius: 15px;
  background: #eff6ff;
}

.vacation-selected-person-chip strong {
  overflow: hidden;
  color: #173d70;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vacation-selected-person-chip > span:not(.vacation-person-avatar) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

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

.vacation-selected-person-chip button {
  width: 36px;
  height: 36px;
  border: 1px solid #fecdd3;
  border-radius: 50%;
  background: var(--tnvora-danger-50);
  color: #be123c;
  font-size: 1rem;
  font-weight: 900;
}

body.theme-dark .vacation-intro,
body.theme-dark .vacation-toolbar,
body.theme-dark .vacation-calendar-card,
body.theme-dark .vacation-team-block {
  border-color: #30435b;
  background: #111c2b;
}

body.theme-dark .vacation-intro-copy strong,
body.theme-dark .vacation-card-heading strong,
body.theme-dark .vacation-team-picker-label select {
  color: var(--tnvora-surface-cool);
}

body.theme-dark .vacation-intro-copy span,
body.theme-dark .vacation-card-heading span,
body.theme-dark .vacation-legend,
body.theme-dark .vacation-team-picker-label {
  color: #b7c6d9;
}

body.theme-dark .vacation-autosave-badge {
  border-color: #17643a;
  background: #102c20;
  color: #86efac;
}

body.theme-dark #vacationPanel .vacation-calendar .calendar-weekdays span,
body.theme-dark .vacation-status-card,
body.theme-dark .vacation-team-picker-label select,
body.theme-dark .vacation-person-card,
body.theme-dark .vacation-team-empty {
  border-color: #34465d;
  background: #172438;
  color: #dbe7f6;
}

body.theme-dark #vacationPanel .vacation-calendar .calendar-day {
  border-color: #4a5f79;
  background: #172438;
  color: var(--tnvora-surface-cool);
}

body.theme-dark #vacationPanel .vacation-calendar .calendar-day.saturday {
  border-color: #d99a18;
  background: #302711;
  color: #fde68a;
}

body.theme-dark #vacationPanel .vacation-calendar .calendar-day.holiday {
  border-color: #be4057;
  background: #341923;
  color: #fecdd3;
}

body.theme-dark #vacationPanel .vacation-day.vacation-selected {
  border-color: #fb7185;
  background: #be123c;
  color: var(--tnvora-white);
}

body.theme-dark .vacation-person-card:hover,
body.theme-dark .vacation-person-card.is-active,
body.theme-dark .vacation-selected-person-chip {
  border-color: #3b82f6;
  background: #142f58;
}

body.theme-dark .vacation-person-copy small,
body.theme-dark .vacation-status-card,
body.theme-dark .vacation-team-empty {
  color: #aebed2;
}

body.theme-dark .vacation-selected-person-chip strong {
  color: var(--tnvora-line-blue);
}

.guide-role-card span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 8px;
  color: var(--tnvora-white);
  background: #2376d8;
  font-size: 0.76rem;
  font-weight: 950;
}

.guide-route-card {
  min-width: 0;
  border: 1px solid var(--opsui-border, #d8e1eb);
  border-radius: 14px;
  background: var(--opsui-surface, var(--tnvora-white));
  overflow: hidden;
}

.guide-route-card summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 70px;
  padding: 13px 15px;
  cursor: pointer;
  list-style: none;
}

.guide-route-card summary::-webkit-details-marker { display: none; }

.guide-route-card summary b,
.guide-route-card summary small {
  display: block;
}

.guide-route-card summary small {
  margin-top: 3px;
  color: var(--opsui-muted, var(--tnvora-gray-500));
}

.guide-route-card:not([open]) .guide-when-open,
.guide-route-card[open] .guide-when-closed { display: none; }

.guide-expand-label .guide-when-open { font-size: 0.76rem; }

.guidance-toggle-button {
  display: flex !important;
  align-items: center;
  gap: 10px;
  color: inherit;
  background: transparent;
}

.guidance-toggle-button.is-active {
  color: #ecfdf5 !important;
  border-color: rgba(34, 197, 94, 0.48) !important;
  background: linear-gradient(135deg, #168a4a, #126b3b) !important;
  box-shadow: 0 8px 18px rgba(22, 138, 74, 0.22);
}

.guidance-toggle-button.is-active .guidance-toggle-dot {
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
}

.guide-steps button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #9ec7f6;
  border-radius: 10px;
  color: #15579f;
  background: #eef7ff;
  font-weight: 850;
}

body.theme-dark .guide-brand,
body.theme-dark .guide-steps button {
  border-color: #315f8f;
  color: var(--tnvora-line-blue);
  background: #132d48;
}

.selected-collaborators,
.work-order-selected-users {
  min-width: 0;
  gap: 10px;
}

.selection-summary-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: var(--selection-muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.selection-summary-header b {
  display: inline-grid;
  min-width: 25px;
  height: 25px;
  place-items: center;
  padding-inline: 7px;
  border: 1px solid color-mix(in srgb, var(--selection-accent) 32%, transparent);
  border-radius: 8px;
  color: var(--selection-accent);
  background: var(--selection-accent-soft);
  font-size: 0.7rem;
  letter-spacing: 0;
}

body .collaborator-chip.selection-person-card,
body .work-order-user-chip.selection-person-card,
#adminPanel .admin-selected-users .collaborator-chip.selection-person-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  grid-template-areas: "avatar copy actions";
  min-width: 0;
  min-height: 68px;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  overflow: hidden;
  border: 1px solid var(--selection-border);
  border-radius: 11px;
  color: var(--selection-text);
  background: var(--selection-card);
  box-shadow: 0 5px 14px rgba(20, 38, 63, 0.05);
  font-size: 0.78rem;
  font-weight: 800;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

body .collaborator-chip.selection-person-card:hover,
body .work-order-user-chip.selection-person-card:hover,
#adminPanel .admin-selected-users .collaborator-chip.selection-person-card:hover {
  border-color: var(--selection-border-strong);
  background: var(--selection-card-hover);
  box-shadow: 0 8px 20px rgba(20, 38, 63, 0.08);
}

.selection-person-avatar {
  display: grid;
  grid-area: avatar;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--selection-accent) 28%, transparent);
  border-radius: 11px;
  color: var(--selection-accent);
  background: var(--selection-accent-soft);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.045em;
}

.selection-person-copy {
  display: grid;
  grid-area: copy;
  min-width: 0;
  gap: 3px;
}

body .selection-person-copy b,
#adminPanel .admin-selected-users .selection-person-copy b {
  overflow: hidden;
  color: var(--selection-text);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.005em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .selection-person-copy small,
#adminPanel .admin-selected-users .selection-person-copy small {
  overflow: hidden;
  color: var(--selection-muted);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.025em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-person-actions {
  display: flex;
  grid-area: actions;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

body .selection-icon-button,
#adminPanel .admin-selected-users .collaborator-chip .selection-icon-button {
  display: inline-grid;
  position: static;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--selection-border);
  border-radius: 9px;
  color: var(--selection-muted);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

body .selection-icon-button svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  pointer-events: none;
}

body .selection-icon-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--selection-accent) 30%, transparent);
  outline-offset: 2px;
}

body .selection-icon-button.user-favorite-toggle:hover,
body .selection-icon-button.user-favorite-toggle.active {
  border-color: color-mix(in srgb, var(--selection-favorite) 46%, transparent);
  color: var(--selection-favorite);
  background: var(--selection-favorite-soft);
}

body .selection-icon-button.user-remove-action:hover,
#adminPanel .admin-selected-users .collaborator-chip .selection-icon-button.user-remove-action:hover {
  border-color: color-mix(in srgb, var(--selection-danger) 44%, transparent);
  color: var(--selection-danger);
  background: var(--selection-danger-soft);
}

.selection-state {
  justify-self: end;
  padding: 6px 8px;
  border: 1px solid color-mix(in srgb, var(--selection-accent) 25%, transparent);
  border-radius: 8px;
  color: var(--selection-accent);
  background: var(--selection-accent-soft);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

body .collaborator-chip.selection-person-card.selection-person-card--timed {
  grid-template-columns: 42px minmax(160px, 1fr) minmax(220px, auto) auto auto;
  grid-template-areas: "avatar copy time duration actions";
}

.selection-time-fields {
  display: grid;
  grid-area: time;
  grid-template-columns: repeat(2, minmax(94px, 1fr));
  gap: 7px;
}

.selection-time-fields label {
  display: grid;
  min-width: 0;
  gap: 3px;
  color: var(--selection-muted);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body .collaborator-chip.selection-person-card .selection-time-fields select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 6px 28px 6px 9px;
  border-color: var(--selection-border);
  border-radius: 8px;
  color: var(--selection-text);
  background-color: var(--selection-panel);
  font-size: 0.76rem;
  font-weight: 850;
  text-align: left;
}

body .selection-duration {
  grid-area: duration;
  min-width: 64px;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--selection-accent);
  background: var(--selection-accent-soft);
  font-size: 0.68rem;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

#adminPanel .admin-selected-users,
.boss-selected-users {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 8px;
}

#adminPanel .admin-selected-users .selection-all-card,
.boss-selected-users .selection-all-card {
  grid-column: 1 / -1;
}

select[multiple] {
  padding: 6px;
  border-color: var(--selection-border);
  border-radius: 10px;
  background: var(--selection-card);
}

select[multiple] option {
  margin: 2px 0;
  padding: 9px 10px;
  border-radius: 7px;
}

select[multiple] option:checked {
  color: var(--selection-text);
  background: linear-gradient(var(--selection-accent-soft), var(--selection-accent-soft));
  font-weight: 850;
}

dialog.certificate-import-dialog {
  width: min(94vw, 1480px);
  max-width: 1480px;
  max-height: 92dvh;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

dialog.certificate-import-dialog::backdrop {
  background: rgba(4, 10, 18, 0.78);
  backdrop-filter: blur(5px);
}

.certificate-import-dialog > form {
  display: grid;
  gap: 16px;
  max-height: 92dvh;
  padding: clamp(18px, 2vw, 28px);
  overflow-y: auto;
}

.certificate-import-map-status,
.certificate-import-row-status {
  display: inline-flex;
  justify-content: center;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.certificate-import-map-status.tone-exact,
.certificate-import-map-status.tone-manual,
.certificate-import-preview tr.is-ready .certificate-import-row-status {
  color: #0e7b43;
  background: rgba(31, 189, 105, 0.14);
}

.certificate-import-map-status.tone-suggested {
  color: #a86a09;
  background: rgba(239, 173, 55, 0.16);
}

.certificate-import-map-status.tone-missing,
.certificate-import-preview tr.has-warning .certificate-import-row-status {
  color: #c83e45;
  background: rgba(200, 62, 69, 0.14);
}

.certificate-import-actions .primary-button {
  min-width: min(100%, 390px);
}

body.theme-dark .certificate-import-map-status.tone-exact,
body.theme-dark .certificate-import-map-status.tone-manual,
body.theme-dark .certificate-import-preview tr.is-ready .certificate-import-row-status {
  color: #8ce9b5;
}

body.theme-dark .certificate-import-map-status.tone-suggested {
  color: #ffd58a;
}

body.theme-dark .certificate-import-map-status.tone-missing,
body.theme-dark .certificate-import-preview tr.has-warning .certificate-import-row-status {
  color: #ffafb5;
}

.app-install-status {
  margin: 20px 0 14px;
  padding: 13px 15px;
  border: 1px solid #9ec7f6;
  border-radius: 13px;
  color: #15579f;
  background: #eef7ff;
  font-weight: 800;
  line-height: 1.45;
}

.app-install-status.is-installed {
  border-color: #74c997;
  color: #126536;
  background: #ecfdf3;
}

.app-install-card {
  display: flex;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--selection-border, #d8e1ec);
  border-radius: 16px;
  flex-direction: column;
  background: var(--selection-panel, #f4f7fb);
}

.app-install-card.is-detected {
  border-color: var(--selection-accent, var(--blue));
  box-shadow: 0 0 0 3px var(--selection-accent-soft, #eaf3ff);
}

.app-install-platform {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--tnvora-white);
  background: #155fa8;
  font-size: 0.69rem;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.app-install-card h3 {
  margin: 13px 0 5px;
}

.app-install-card > p {
  min-height: 48px;
  margin: 0 0 15px;
  color: var(--selection-muted, #68778b);
  line-height: 1.45;
}

.app-install-card > button {
  width: 100%;
  margin-top: auto;
}

body.theme-dark .app-install-status {
  border-color: #315f8f;
  color: var(--tnvora-line-blue);
  background: #132d48;
}

body.theme-dark .app-install-status.is-installed {
  border-color: #287b4b;
  color: #bbf7d0;
  background: #153826;
}

#historyPanel .entries-list .report-calendar-card {
  border-color: #38bdf8 !important;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%) !important;
  color: #075985 !important;
  box-shadow: 0 10px 26px rgba(14, 165, 233, 0.16);
}

#historyPanel .entries-list .report-calendar-card :is(strong, b, span, small) {
  color: #075985 !important;
}

#historyPanel .entries-list .report-calendar-card .date-tile {
  background: linear-gradient(150deg, #0284c7, #38bdf8) !important;
  color: var(--tnvora-white) !important;
}

#historyPanel .entries-list .report-calendar-card .date-tile :is(b, span) {
  color: var(--tnvora-white) !important;
}

#historyPanel .entries-list .closed-work-order-card {
  border-color: #064e3b !important;
  background: linear-gradient(135deg, #14532d 0%, #064e3b 100%) !important;
  color: #ecfdf5 !important;
  box-shadow: 0 10px 26px rgba(6, 78, 59, 0.2);
}

#historyPanel .entries-list .closed-work-order-card :is(strong, b, span, small) {
  color: #ecfdf5 !important;
}

#historyPanel .entries-list .closed-work-order-card .type-badge.work {
  border: 1px solid #86efac !important;
  background: #dcfce7 !important;
  color: #14532d !important;
}

#historyPanel .entries-list .closed-work-order-card .work-order-copy-reference {
  border-color: #93c5fd !important;
  background: #eff6ff !important;
  color: #0b4f9c !important;
}

#historyPanel .entries-list .closed-work-order-card .work-order-copy-reference > span,
#historyPanel .entries-list .closed-work-order-card .work-order-copy-reference > small {
  color: #475569 !important;
}

#historyPanel .entries-list .closed-work-order-card .work-order-copy-reference > b {
  color: #0b4f9c !important;
}

#historyPanel .entries-list .closed-work-order-card .history-pdf-button {
  border-color: var(--tnvora-gray-300) !important;
  background: #f8fafc !important;
  color: #0f172a !important;
}

#historyPanel .entries-list .closed-work-order-card .history-pdf-button > span {
  background: #0b5fc3 !important;
  color: var(--tnvora-white) !important;
}

#historyPanel .entries-list .closed-work-order-card .history-pdf-button > b {
  color: #0f172a !important;
}

#historyPanel .entries-list .closed-work-order-card .history-pdf-button.danger-action {
  border-color: #fecaca !important;
  background: var(--tnvora-danger-50) !important;
}

#historyPanel .entries-list .closed-work-order-card .history-pdf-button.danger-action > span {
  background: #be123c !important;
}

#historyPanel .entries-list .closed-work-order-card .history-pdf-button.danger-action > b {
  color: #9f1239 !important;
}

#historyPanel .entries-list .closed-work-order-card .date-tile {
  border: 1px solid rgba(167, 243, 208, 0.35);
  background: #052e16 !important;
}

#historyPanel .entries-list .calendar-availability-card {
  width: 100%;
  min-height: 0;
  border-color: var(--tnvora-warning-500);
  background: #fffbeb;
  color: #78350f;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

#historyPanel .entries-list .calendar-availability-card:hover,
#historyPanel .entries-list .calendar-availability-card:focus-visible {
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2), 0 10px 26px rgba(120, 53, 15, 0.12);
  transform: translateY(-1px);
}

#historyPanel .entries-list .calendar-availability-card small {
  display: block;
  margin-top: 5px;
  color: #92400e;
  font-weight: 800;
}

.calendar-marker,
.calendar-marker.marker-report {
  background: #38bdf8;
}

.calendar-marker.marker-order {
  background: #14532d;
  box-shadow: 0 0 0 3px rgba(20, 83, 45, 0.18);
}

body.theme-dark #historyPanel .entries-list .report-calendar-card {
  border-color: #38bdf8 !important;
  background: linear-gradient(135deg, #0c4a6e 0%, #075985 100%) !important;
  color: #e0f2fe !important;
}

body.theme-dark #historyPanel .entries-list .report-calendar-card :is(strong, b, span, small) {
  color: #e0f2fe !important;
}

body.theme-dark #historyPanel .entries-list .closed-work-order-card {
  border-color: #34d399 !important;
  background: linear-gradient(135deg, #14532d 0%, #052e16 100%) !important;
  color: #ecfdf5 !important;
}

body.theme-dark #historyPanel .entries-list .closed-work-order-card :is(strong, b, span, small) {
  color: #ecfdf5 !important;
}

body.theme-dark #historyPanel .entries-list .closed-work-order-card .type-badge.work {
  border-color: #34d399 !important;
  background: #064e3b !important;
  color: #d1fae5 !important;
}

body.theme-dark #historyPanel .entries-list .closed-work-order-card .work-order-copy-reference {
  border-color: #60a5fa !important;
  background: #172f4d !important;
  color: #eff6ff !important;
}

body.theme-dark #historyPanel .entries-list .closed-work-order-card .work-order-copy-reference > span,
body.theme-dark #historyPanel .entries-list .closed-work-order-card .work-order-copy-reference > small {
  color: #bfdbfe !important;
}

body.theme-dark #historyPanel .entries-list .closed-work-order-card .work-order-copy-reference > b {
  color: var(--tnvora-white) !important;
}

body.theme-dark #historyPanel .entries-list .closed-work-order-card .history-pdf-button {
  border-color: var(--tnvora-gray-500) !important;
  background: #253855 !important;
  color: var(--tnvora-white) !important;
}

body.theme-dark #historyPanel .entries-list .closed-work-order-card .history-pdf-button > span {
  background: #0f7bf6 !important;
  color: var(--tnvora-white) !important;
}

body.theme-dark #historyPanel .entries-list .closed-work-order-card .history-pdf-button > b {
  color: var(--tnvora-white) !important;
}

body.theme-dark #historyPanel .entries-list .closed-work-order-card .history-pdf-button.danger-action {
  border-color: #fb7185 !important;
  background: #7f1d1d !important;
}

body.theme-dark #historyPanel .entries-list .closed-work-order-card .history-pdf-button.danger-action > span {
  background: #be123c !important;
}

body.theme-dark #historyPanel .entries-list .closed-work-order-card .history-pdf-button.danger-action > b {
  color: #ffe4e6 !important;
}

body.theme-dark #historyPanel .entries-list .calendar-availability-card {
  border-color: var(--tnvora-warning-500) !important;
  background: #3b2f13 !important;
  color: #fef3c7 !important;
}

body.theme-dark #historyPanel .entries-list .calendar-availability-card :is(strong, b, span, small) {
  color: #fef3c7 !important;
}

body.theme-dark #newReportPanel .calculated-time {
  color: var(--tnvora-line-blue);
  border-color: #2b8cff;
  background: #101a28;
  box-shadow: inset 0 0 0 1px #38506d;
}

body.theme-dark .closed-work-order-card,
body.theme-dark .entry-card.closed-work-order-card {
  color: var(--tnvora-line-blue);
  border-color: #334963;
  background: #101a28;
}

body.theme-dark .closed-work-order-card strong,
body.theme-dark .closed-work-order-card b,
body.theme-dark .closed-work-order-card span,
body.theme-dark .closed-work-order-card small {
  color: var(--tnvora-line-blue);
}

body.theme-dark .closed-work-order-card .history-pdf-button,
body.theme-dark .history-pdf-button,
body.theme-dark .work-order-download-button {
  color: var(--tnvora-surface-cool);
  border: 1px solid #45617f;
  background: #253855;
}

body.theme-dark .closed-work-order-card .history-pdf-button span,
body.theme-dark .history-pdf-button span {
  color: var(--tnvora-white);
  background: #0f7bf6;
}

body.theme-dark .closed-work-order-card .history-pdf-button b,
body.theme-dark .history-pdf-button b {
  color: var(--tnvora-white);
}

body.theme-dark .closed-work-order-card .history-pdf-button.danger-action,
body.theme-dark .history-pdf-button.danger-action {
  color: var(--tnvora-danger-100);
  border-color: var(--tnvora-danger-500);
  background: #7f1d1d;
}

body.theme-dark .closed-work-order-card .history-pdf-button.danger-action span,
body.theme-dark .history-pdf-button.danger-action span {
  color: var(--tnvora-white);
  background: #b91c1c;
}

.vacation-calendar .vacation-day.vacation-team-highlight {
  color: #831843;
  box-shadow: 0 0 0 5px rgba(236, 72, 153, 0.24), 0 0 0 9px rgba(236, 72, 153, 0.12);
  border-color: #ec4899;
  background: #fce7f3;
}

body.theme-dark .vacation-calendar .vacation-day.vacation-team-highlight {
  color: #fdf2f8;
  border-color: #f472b6;
  background: #831843;
  box-shadow: 0 0 0 5px rgba(244, 114, 182, 0.24), 0 0 0 9px rgba(244, 114, 182, 0.11);
}

.boss-vacation-table tr.vacation-team-row-active td {
  color: #831843;
  background: #fce7f3;
}

body.theme-dark .boss-vacation-table tr.vacation-team-row-active td {
  color: #fdf2f8;
  background: #831843;
}

button,
input,
select,
textarea {
  max-width: 100%;
}

.vehicle-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.entry-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.vehicle-item strong,
.vehicle-item span,
.entry-card strong,
.entry-card span,
.admin-user-row span {
  overflow-wrap: anywhere;
}

.tool-admin-actions,
.admin-farm-actions,
.admin-user-actions,
.dialog-actions,
.entry-actions,
.vehicle-item-actions {
  flex-wrap: wrap;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

html body #loginForm > .primary-button[type="submit"] {
  color: var(--tnvora-white);
  border: 1px solid rgba(10, 135, 164, 0.7);
  background: linear-gradient(105deg, var(--blue) 0%, #0ea7b5 55%, #63ad3d 100%);
  box-shadow: 0 12px 26px rgba(10, 139, 167, 0.24);
}

html body #loginForm > .primary-button[type="submit"]:hover,
html body #loginForm > .primary-button[type="submit"]:focus-visible {
  background: linear-gradient(105deg, #0f68dc 0%, #0b929e 55%, #559836 100%);
  box-shadow: 0 14px 30px rgba(10, 139, 167, 0.32);
}

html body .cookie-consent-dialog {
  position: fixed;
  inset: auto 18px 18px auto;
  width: min(430px, calc(100vw - 36px));
  max-height: min(72dvh, 620px);
  margin: 0;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(4, 43, 57, 0.24);
}

html body .cookie-consent-dialog::backdrop {
  background: rgba(6, 31, 43, 0.12);
  backdrop-filter: none;
}

html body .cookie-consent-dialog form {
  padding: 15px;
}

html body .cookie-consent-actions button {
  min-height: 38px;
  padding: 7px 8px;
  font-size: 0.7rem;
  line-height: 1.15;
}

html body .cookie-preference-row input {
  width: 20px;
  height: 20px;
}

.login-legal-links a,
.login-legal-links button {
  min-height: 28px;
  padding: 3px 0;
  color: #126f94;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.login-legal-links a:hover,
.login-legal-links button:hover {
  color: #0b766f;
  text-decoration: underline;
}

.cookie-consent-dialog {
  width: min(calc(100vw - 28px), 650px);
  max-height: min(86vh, 760px);
  padding: 0;
  color: #142938;
  border: 1px solid rgba(18, 111, 148, 0.24);
  border-radius: 24px;
  background: var(--tnvora-white);
  box-shadow: 0 30px 90px rgba(4, 43, 57, 0.3);
  overflow: auto;
}

.cookie-consent-dialog::backdrop {
  background: rgba(6, 31, 43, 0.62);
  backdrop-filter: blur(8px);
}

.cookie-consent-dialog form {
  padding: 28px;
}

.cookie-consent-actions button {
  min-height: 48px;
}

.cookie-preference-row input {
  width: 24px;
  height: 24px;
  accent-color: var(--tnvora-turquoise);
}

.cookie-preferences > .primary-button {
  width: 100%;
  margin-top: 14px;
}

.linked-report-field-locked .pl-date-display:disabled,
.linked-report-field-locked select:disabled {
  cursor: not-allowed;
  opacity: 1;
  border-color: #94a3b8;
  color: #334155;
  background: #e2e8f0;
}

body.theme-dark .linked-report-field-locked .pl-date-display:disabled,
body.theme-dark .linked-report-field-locked select:disabled {
  border-color: var(--tnvora-gray-500);
  color: #e2e8f0;
  background: #1e293b;
}

.work-order-incomplete-dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: min(760px, calc(100dvh - 28px));
  padding: 24px;
  overflow: auto;
  border: 2px solid var(--tnvora-danger-600);
  border-radius: 20px;
  color: #450a0a;
  background: #fff7f7;
  box-shadow: 0 28px 80px rgba(69, 10, 10, 0.38);
}

/* DATOP evidence is informational, not an error alert. Explicit paired themes. */
#datopDeviceAuditDialog {
  width: min(900px, calc(100vw - 28px)) !important;
  max-width: 900px !important;
  color: #14243a !important;
  background: #f8fbff !important;
  border-color: #3277b3 !important;
  box-shadow: 0 24px 80px rgba(7, 27, 53, .3);
}
#datopDeviceAuditDialog h3 { color: #124d7c; }
#datopDeviceAuditDialog > p:not(.eyebrow) { color: #334e68; }
#datopDeviceAuditDialog [data-origin-close] { min-height: 44px; }
#datopDeviceAuditDialog article p { font: .88rem/1.5 system-ui, sans-serif; }
#datopDeviceAuditDialog article strong { font-size: .95rem; }
#datopDeviceAuditDialog article small { font-size: .8rem; }
#datopDeviceAuditDialog pre { font-size: .8rem; }
body.theme-dark #datopDeviceAuditDialog {
  color: #e8f1ff !important;
  background: #101e30 !important;
  border-color: #78baff !important;
}
body.theme-dark #datopDeviceAuditDialog h3 { color: #9bceff; }
body.theme-dark #datopDeviceAuditDialog > p:not(.eyebrow) { color: #cadcf0; }

.work-order-incomplete-dialog::backdrop {
  background: rgba(35, 5, 5, 0.72);
  backdrop-filter: blur(4px);
}

.work-order-incomplete-dialog .blocking-error-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 50%;
  color: var(--tnvora-white);
  background: var(--tnvora-danger-600);
  font-size: 1.8rem;
  font-weight: 950;
}

.work-order-incomplete-dialog h3 {
  margin: 6px 0 10px;
  color: var(--tnvora-danger-700);
  font-size: clamp(1.15rem, 3.2vw, 1.55rem);
  line-height: 1.18;
}

.work-order-incomplete-dialog > p:not(.eyebrow) {
  color: #7f1d1d;
  line-height: 1.5;
}

.work-order-incomplete-dialog ul {
  display: grid;
  gap: 7px;
  margin: 16px 0;
  padding: 14px 14px 14px 34px;
  border-radius: 12px;
  background: rgba(254, 226, 226, 0.82);
}

.work-order-incomplete-dialog li {
  font-size: 0.78rem;
  line-height: 1.35;
}

.work-order-incomplete-dialog .danger-button {
  width: 100%;
  min-height: 46px;
}

body.theme-dark .work-order-incomplete-dialog {
  color: var(--tnvora-danger-100);
  background: #2b1015;
}

body.theme-dark .work-order-incomplete-dialog h3,
body.theme-dark .work-order-incomplete-dialog > p:not(.eyebrow) {
  color: #fecaca;
}

body.theme-dark .work-order-incomplete-dialog ul {
  background: rgba(127, 29, 29, 0.5);
}

body.theme-dark .history-calendar .calendar-day.saturday:disabled,
body.theme-dark .history-calendar .calendar-day.saturday {
  border-color: #eab308 !important;
  color: #fef08a !important;
  background: #3a3112 !important;
}

body.theme-dark .history-calendar .calendar-day:is(.sunday, .holiday):disabled,
body.theme-dark .history-calendar .calendar-day:is(.sunday, .holiday) {
  border-color: var(--tnvora-danger-500) !important;
  color: #fecaca !important;
  background: #3a171b !important;
}

@media (min-width: 700px) and (max-width: 1199px) {
  html {
    font-size: 18px;
  }

  .app-shell:not(.desktop-layout) {
    width: 100%;
    max-width: none;
    padding-inline: 24px;
  }

  .app-shell:not(.desktop-layout) > .topbar {
    width: 100vw;
    min-height: 88px;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding-right: max(24px, env(safe-area-inset-right));
    padding-left: max(24px, env(safe-area-inset-left));
  }

  .app-shell .topbar-title h1 {
    font-size: 1.45rem;
  }

  .app-shell .topbar-title .user-button {
    font-size: 0.86rem;
  }

  .app-shell :is(input, select, textarea, button) {
    min-height: 52px;
    font-size: max(0.88rem, 16px) !important;
  }

  .app-shell :is(label, td, th, .vehicle-row span, .entry-card span, .side-menu-list button) {
    font-size: max(0.84rem, 15px) !important;
    line-height: 1.45;
  }

  .app-shell small {
    font-size: max(0.76rem, 14px) !important;
    line-height: 1.45;
  }

  .app-shell .hamburger-button,
  .app-shell .top-icon-button {
    width: 52px;
    height: 52px;
  }
}

.technician-overview-period input {
  min-height: 44px;
  font-size: 0.88rem;
  font-weight: 850;
}

.technician-month-navigation button,
.technician-month-navigation select {
  min-width: 0;
  min-height: 44px;
  border: 1px solid #c8d7e8;
  border-radius: 10px;
  color: #102238;
  background: var(--tnvora-surface-cool);
  font-size: 0.84rem;
  font-weight: 850;
}

.technician-month-navigation button {
  padding: 0;
  color: var(--tnvora-white);
  background: #1677e8;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.technician-overview-selected-month {
  color: #1677e8;
  font-size: 0.72rem;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}

.technician-priority-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 17px;
  border: 1px solid var(--tnvora-danger-500);
  border-radius: 15px;
  color: #7f1d1d;
  background: var(--tnvora-danger-50);
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.11);
  cursor: pointer;
}

.technician-priority-alert:hover,
.technician-priority-alert:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.16);
}

.technician-priority-alert:focus-visible {
  outline: 3px solid rgba(22, 119, 242, 0.34);
  outline-offset: 3px;
}

.technician-priority-alert[hidden] {
  display: none !important;
}

.technician-priority-alert strong,
.technician-priority-alert p {
  display: block;
  margin: 0;
}

.technician-priority-alert p {
  margin-top: 3px;
  color: var(--tnvora-danger-700);
  font-size: 0.82rem;
  line-height: 1.4;
}

.technician-priority-alert.warning {
  border-color: var(--tnvora-warning-500);
  color: #78350f;
  background: #fffbeb;
}

.technician-priority-alert.warning .technician-priority-icon {
  color: #422006;
  background: #fbbf24;
}

.technician-priority-alert.warning p {
  color: #92400e;
}

.technician-finance-section,
.technician-alert-card {
  padding: 17px;
  border: 1px solid #d7e2ef;
  border-radius: 16px;
  background: var(--tnvora-surface-cool);
}

.technician-secret-card {
  min-height: 128px;
  padding: 17px;
  border: 1px solid #cbd9e8;
  border-radius: 15px;
  color: #0f172a;
  background: var(--tnvora-white);
  box-shadow: none;
  text-align: left;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.technician-secret-card.earnings {
  border-left: 4px solid #22c55e;
}

.technician-secret-card.expenses {
  border-left: 4px solid var(--tnvora-warning-500);
}

.technician-secret-card > span,
.technician-secret-card > small {
  display: block;
  color: var(--tnvora-gray-500);
  font-size: 0.72rem;
  font-weight: 850;
}

.technician-secret-card strong {
  display: block;
  min-height: 38px;
  margin: 8px 0 4px;
  color: #0f172a;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: 0.05em;
}

.technician-secret-card.is-revealed .technician-secret-mask {
  display: none;
}

.technician-secret-card.is-revealed .technician-secret-value {
  display: inline;
}

.technician-secret-card:focus-visible {
  outline: 3px solid rgba(47, 128, 237, 0.32);
  outline-offset: 2px;
}

.technician-alert-card {
  min-width: 0;
}

.technician-alert-card.critical {
  border-color: #fecaca;
}

.technician-alert-card.warning {
  border-color: #fde68a;
}

.technician-alert-count {
  display: grid;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  place-items: center;
  border-radius: 999px;
  color: var(--tnvora-white);
  background: var(--tnvora-danger-600);
  font-size: 0.82rem;
  font-weight: 950;
}

.technician-alert-card.warning .technician-alert-count {
  color: #422006;
  background: #fbbf24;
}

.technician-alert-list {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.technician-alert-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  background: var(--tnvora-white);
}

.technician-alert-date {
  min-width: 54px;
  padding: 7px 8px;
  border-radius: 10px;
  color: #0f5fb7;
  background: #eaf4ff;
  font-size: 0.72rem;
  font-weight: 950;
  text-align: center;
}

.technician-alert-copy {
  min-width: 0;
}

.technician-alert-copy strong,
.technician-alert-copy small {
  display: block;
  overflow-wrap: anywhere;
}

.technician-alert-copy strong {
  color: #172033;
  font-size: 0.8rem;
}

.technician-alert-copy small {
  margin-top: 3px;
  color: var(--tnvora-gray-500);
  font-size: 0.69rem;
  line-height: 1.35;
}

.technician-alert-row .secondary-button {
  min-height: 36px;
  padding: 8px 11px;
  white-space: nowrap;
}

.technician-alert-actions {
  display: grid;
  gap: 6px;
}

.technician-alert-empty {
  margin: 0;
  padding: 16px;
  border: 1px dashed #cbd9e8;
  border-radius: 12px;
  color: var(--tnvora-gray-500);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 750;
  text-align: center;
}

body.theme-dark .technician-month-navigation button,
body.theme-dark .technician-month-navigation select {
  border-color: #405672;
  color: #eef6ff;
  background: #19283c;
}

body.theme-dark .technician-month-navigation button { background: #176fcf; }

body.theme-dark .technician-secret-card,
body.theme-dark .technician-alert-row {
  border-color: #3b506a;
  color: var(--tnvora-surface-cool);
  background: #19283c;
}

body.theme-dark .technician-priority-alert {
  border-color: var(--tnvora-danger-500);
  color: #fecaca;
  background: #34161b;
}

body.theme-dark .technician-priority-alert p {
  color: #fca5a5;
}

body.theme-dark .technician-priority-alert.warning {
  border-color: var(--tnvora-warning-500);
  color: #fde68a;
  background: #36270f;
}

body.theme-dark .technician-priority-alert.warning p {
  color: #fcd34d;
}

body.theme-dark .technician-alert-date {
  color: #bfdbfe;
  background: #17345a;
}

body.theme-dark .technician-alert-empty {
  border-color: #3b506a;
  color: #9fb2ca;
  background: rgba(25, 40, 60, 0.7);
}

body.theme-dark #historyCalendar.history-calendar button.calendar-day.saturday:disabled,
body.theme-dark #historyCalendar.history-calendar button.calendar-day.saturday {
  border-color: #eab308 !important;
  color: #fef08a !important;
  background: #3a3112 !important;
}

body.theme-dark #historyCalendar.history-calendar button.calendar-day:is(.sunday, .holiday):disabled,
body.theme-dark #historyCalendar.history-calendar button.calendar-day:is(.sunday, .holiday) {
  border-color: var(--tnvora-danger-500) !important;
  color: #fecaca !important;
  background: #3a171b !important;
}

body.theme-dark #historyCalendar.history-calendar button.calendar-day.has-report-only {
  border-color: #3b82f6 !important;
}

body.theme-dark #historyCalendar.history-calendar button.calendar-day.has-linked-report {
  border-color: #22c55e !important;
}

body.theme-dark #historyCalendar.history-calendar button.calendar-day.has-unreported-order {
  border-color: #34d399 !important;
}

.calendar-status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--opsui-border);
  border-radius: var(--opsui-radius);
  color: var(--opsui-text);
  background: var(--opsui-surface-muted);
}

.calendar-status-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.25;
}

.calendar-marker,
.calendar-weekend-swatch {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #2563eb;
}

.calendar-marker.marker-linked {
  background: #16a34a;
}

.calendar-marker.marker-order {
  background: #14532d;
  box-shadow: 0 0 0 3px rgba(20, 83, 45, 0.18);
  animation: calendar-order-marker-pulse 1.25s ease-in-out infinite;
}

.calendar-marker.marker-own-vacation {
  background: #7c3aed;
}

.calendar-marker.marker-colleague-vacation {
  background: #f97316;
}

.calendar-weekend-swatch {
  border-radius: 3px;
}

.calendar-weekend-swatch.saturday {
  border: 1px solid #ca8a04;
  background: #fde047;
}

.calendar-weekend-swatch.sunday {
  border: 1px solid var(--tnvora-danger-600);
  background: #fca5a5;
}

.history-calendar .calendar-day {
  position: relative;
  display: grid;
  width: min(54px, 100%);
  min-height: 54px;
  aspect-ratio: 1;
  grid-template-rows: 1fr auto;
  place-items: center;
  gap: 3px;
  padding: 6px 4px 5px;
  border: 3px solid var(--opsui-border-strong);
  border-radius: 10px;
  color: var(--opsui-text);
  background: var(--opsui-surface);
  opacity: 1;
}

.history-calendar .calendar-day.saturday {
  color: #713f12;
  background: #fef9c3;
}

.history-calendar .calendar-day.sunday,
.history-calendar .calendar-day.holiday {
  color: #7f1d1d;
  background: var(--tnvora-danger-100);
}

.history-calendar .calendar-day.has-report-only {
  border-color: #2563eb;
}

.history-calendar .calendar-day.has-linked-report {
  border-color: #16a34a;
}

.history-calendar .calendar-day.has-unreported-order {
  border-color: #14532d;
  animation: calendar-order-frame-pulse 1.25s ease-in-out infinite;
}

.history-calendar .calendar-day.selected {
  color: var(--opsui-text);
  background: var(--opsui-surface);
  outline: 3px solid color-mix(in srgb, var(--opsui-primary) 34%, transparent);
  outline-offset: 3px;
}

.history-calendar .calendar-day.selected.saturday {
  background: #fef9c3;
}

.history-calendar .calendar-day.selected:is(.sunday, .holiday) {
  background: var(--tnvora-danger-100);
}

.calendar-day-number {
  align-self: end;
  font-size: 0.95rem;
  line-height: 1;
}

.calendar-markers {
  display: flex;
  min-height: 9px;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.calendar-markers .calendar-marker {
  width: 7px;
  height: 7px;
  flex-basis: 7px;
}

body.theme-dark .history-calendar .calendar-day.saturday {
  color: #fef08a;
  background: #3a3112;
}

body.theme-dark .history-calendar .calendar-day:is(.sunday, .holiday) {
  color: #fecaca;
  background: #3a171b;
}

body.theme-dark .history-calendar .calendar-day.selected {
  color: var(--opsui-text);
  background: var(--opsui-surface);
}

body.theme-dark .history-calendar .calendar-day.selected.saturday {
  background: #3a3112;
}

body.theme-dark .history-calendar .calendar-day.selected:is(.sunday, .holiday) {
  background: #3a171b;
}

body.theme-light .summary-card,
body.theme-light #summaryPanel {
  color: var(--navy) !important;
  background: linear-gradient(135deg, var(--tnvora-white), #edf5ff) !important;
}

body.theme-light .summary-card #monthPicker {
  border-color: #b9c9da !important;
  color: var(--navy) !important;
  background: var(--tnvora-white) !important;
}

body.theme-light .summary-card #monthPicker::-webkit-calendar-picker-indicator {
  filter: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.top-logout-icon-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--tnvora-white);
  background: rgba(200, 62, 69, 0.92);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  font-size: 0.72rem;
  font-weight: 900;
}

.top-logout-icon-button:hover,
.top-logout-icon-button:focus-visible {
  background: #b92f38;
}

.theme-toggle-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #eaf3ff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  font-size: 0.72rem;
  font-weight: 900;
}

.theme-toggle-button[aria-pressed="true"] {
  color: var(--navy);
  background: var(--tnvora-white);
}

.theme-toggle-button:hover,
.theme-toggle-button:focus-visible {
  color: var(--tnvora-white);
  background: rgba(20, 121, 247, 0.8);
}

.sound-toggle-button {
  position: relative;
  flex: 0 0 38px;
  width: 38px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #eaf3ff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.sound-toggle-button[hidden] {
  display: none;
}

.sound-toggle-button:hover,
.sound-toggle-button:focus-visible {
  color: var(--tnvora-white);
  background: rgba(20, 121, 247, 0.8);
}

.sound-toggle-button.muted {
  color: var(--navy);
  background: var(--tnvora-white);
}

.sound-toggle-button.muted .sound-icon::after {
  right: 3px;
  top: 8px;
  width: 14px;
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-42deg);
}

.top-logout-button:hover,
.top-logout-button:focus-visible {
  background: #ad252e;
}

.admin-user-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.24);
}

.boss-role-option input {
  width: 17px !important;
  height: 17px;
}

.admin-user-card-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.14), rgba(15, 23, 42, 0.05));
}

.admin-user-card-header .admin-user-name {
  min-width: 0;
}

.admin-user-card-panel h4 {
  margin: 0 0 10px;
  color: #e8eef7;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.icon-button {
  width: 46px;
  height: 46px;
  border: 1px solid #cad4df;
  border-radius: 14px;
  color: var(--navy);
  background: white;
  box-shadow: 0 8px 20px rgba(16, 23, 34, 0.08);
  font-size: 1.4rem;
}

.employee-rate-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(170px, 230px) minmax(130px, 150px);
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #c8d8e8;
  border-radius: 16px;
  background: #f7fbff;
}
.employee-rate-toolbar label { display: grid; gap: 7px; color: #25364a; font-weight: 800; }
.employee-rate-toolbar :is(input, select) { width: 100%; min-height: 44px; border: 1px solid #9fb5cc; border-radius: 10px; background: #fff; color: #102033; }
.employee-rate-table-shell { overflow-x: auto; border: 1px solid #c8d8e8; border-radius: 16px; background: #fff; scrollbar-gutter: stable; }
.employee-rate-table { width: 100%; min-width: 1480px; border-collapse: separate; border-spacing: 0; color: #172a3f; }
.employee-rate-table th { position: sticky; top: 0; z-index: 1; padding: 12px 10px; border-bottom: 1px solid #b9ccdf; background: #eaf3fb; color: #24384d; font-size: 12px; font-weight: 900; text-align: left; white-space: nowrap; }
.employee-rate-table td { padding: 9px 10px; border-bottom: 1px solid #d9e4ef; vertical-align: middle; }
.employee-rate-table tbody tr:last-child td { border-bottom: 0; }
.employee-rate-table tbody tr:nth-child(even) { background: #f8fbfe; }
.employee-rate-table tbody tr:hover { background: #edf6ff; }
.employee-rate-table td:first-child { min-width: 220px; }
.employee-rate-table td:first-child :is(strong, small) { display: block; }
.employee-rate-table td:first-child small { margin-top: 3px; color: #587087; font-weight: 700; }
.employee-rate-table :is(select, input[type="number"]) { width: 100%; min-height: 38px; border: 1px solid #9fb5cc; border-radius: 8px; background: #fff; color: #102033; font-weight: 750; }
.employee-rate-table select { min-width: 160px; }
.employee-rate-table td:nth-child(4) select { min-width: 205px; }
.employee-rate-role { display: inline-block; min-width: 90px; font-weight: 850; }
.employee-rate-money { display: grid; grid-template-columns: minmax(110px, 1fr) auto; gap: 6px; align-items: center; min-width: 155px; }
.employee-rate-money input[type="number"] { min-width: 110px; }
.employee-rate-money b { color: #516a82; font-size: 11px; white-space: nowrap; }
.employee-rate-card-toggles { display: grid; gap: 6px; min-width: 104px; }
.employee-rate-card-toggles label { display: flex; gap: 7px; align-items: center; color: #25364a; font-size: 12px; font-weight: 800; white-space: nowrap; }
.employee-rate-card-toggles input { width: 18px; height: 18px; accent-color: #168b54; }
.employee-rate-status { display: inline-flex; padding: 6px 9px; border-radius: 999px; font-size: 11px; font-weight: 900; white-space: nowrap; }
.employee-rate-status.is-saved { border: 1px solid #69bc8d; background: #dff7e9; color: #0d6239; }
.employee-rate-status.is-missing { border: 1px solid #e1ad52; background: #fff3d5; color: #765000; }
.employee-rate-actions { display: flex; gap: 7px; min-width: 168px; }
.employee-rate-actions button { min-height: 36px; padding: 7px 10px; white-space: nowrap; }
.employee-rate-pagination { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 2px 18px; color: #52677d; font-weight: 800; }
.employee-rate-pagination > div { display: flex; gap: 8px; }
.employee-rate-advanced { border: 1px solid #c8d8e8; border-radius: 16px; background: #f7fbff; }
.employee-rate-advanced > summary { cursor: pointer; padding: 16px 18px; color: #17314b; font-weight: 900; list-style-position: inside; }
.employee-rate-advanced[open] > summary { border-bottom: 1px solid #c8d8e8; }
.employee-rate-advanced .employees-terms-layout { padding: 18px; }
@media (max-width: 760px) {
  .employee-rate-toolbar { grid-template-columns: minmax(0, 1fr); }
  .employee-rate-table-shell { margin-inline: -6px; overflow-x: visible; }
  .employee-rate-table { min-width: 0; }
  .employee-rate-table thead { display: none; }
  .employee-rate-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 10px; padding: 14px; border: 1px solid #c8d8e8; border-radius: 12px; background: #fff; }
  .employee-rate-table td { display: block; min-width: 0 !important; padding: 0; border: 0; }
  .employee-rate-table td:first-child,
  .employee-rate-table td:nth-child(2),
  .employee-rate-table td:last-child { grid-column: 1 / -1; }
  .employee-rate-table td:nth-child(n+3):not(:last-child)::before { display: block; margin-bottom: 5px; color: #3c536a; font-size: 11px; font-weight: 850; }
  .employee-rate-table td:nth-child(3)::before { content: "Zatrudnienie"; }
  .employee-rate-table td:nth-child(4)::before { content: "Funkcja certyfikatu"; }
  .employee-rate-table td:nth-child(5)::before { content: "Godziny"; }
  .employee-rate-table td:nth-child(6)::before { content: "Nadgodziny"; }
  .employee-rate-table td:nth-child(7)::before { content: "Karty"; }
  .employee-rate-table td:nth-child(8)::before { content: "Status"; }
  .employee-rate-table :is(select, input[type="number"]) { min-width: 0 !important; }
  .employee-rate-money { min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .employee-rate-actions { min-width: 0; flex-wrap: wrap; }
}

.user-button {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 8px;
  padding: 0;
  border: 0;
  color: #536174;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
}

.user-button b {
  display: block;
  text-align: left;
}

.summary-card {
  position: relative;
  margin: 25px 0 18px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  color: white;
  background: linear-gradient(135deg, #111925, #202d3e);
  box-shadow: 0 20px 45px rgba(16, 23, 34, 0.22);
}

.daily-note-form {
  margin-top: 15px;
}

.daily-note-form textarea {
  resize: vertical;
}

.daily-note-actions button {
  min-width: 145px;
}

.new-info-badge {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--tnvora-white);
  background: #d6323c;
  font-size: 0.68rem;
  font-weight: 900;
}

.farm-info-box textarea,
.admin-farm-row textarea {
  min-height: 92px;
  resize: vertical;
}

.summary-card::after {
  position: absolute;
  right: -35px;
  bottom: -90px;
  width: 210px;
  height: 210px;
  border: 24px solid rgba(255, 255, 255, 0.025);
  border-radius: 50%;
  content: "";
}

#monthPicker::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

.collapsible-section.collapsed form,
.collapsible-section.collapsed .expense-export-actions,
.admin-users.collapsed > :not(.admin-users-heading) {
  display: none !important;
}

.vehicle-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  padding: 16px;
  border: 1px solid #e1e8f0;
  border-radius: 16px;
  background: var(--tnvora-surface-cool);
}

.vehicle-form .full-width {
  grid-column: 1 / -1;
}

.remember-password input {
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 0;
}

.password-field input {
  padding-right: 48px;
}

#toggleLoginPassword.password-preview-button {
  display: none;
}

.password-eye-button {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #8a95a3;
  background: transparent;
  box-shadow: none;
  opacity: 0.62;
  transform: translateY(-50%);
  transition: color 0.16s ease, opacity 0.16s ease, background 0.16s ease;
}

.password-eye-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-field:hover .password-eye-button,
.password-eye-button:focus-visible,
.password-eye-button[aria-pressed="true"] {
  color: #4f5d6d;
  background: rgba(15, 23, 42, 0.06);
  opacity: 1;
}

.include-current-user input {
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 0;
}

.vehicle-form .primary-button {
  min-height: 47px;
}

.vehicle-cost-form {
  margin: 0;
}

.inventory-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.inventory-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid #d7e2ef;
  border-radius: 999px;
  color: #41536a;
  background: var(--tnvora-surface-cool);
  font-size: 0.68rem;
  font-weight: 900;
}

.inventory-badge.ok {
  color: #166534;
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.inventory-badge.warning {
  color: #92400e;
  background: #fff7ed;
  border-color: #fed7aa;
}

.inventory-badge.danger {
  color: var(--tnvora-danger-700);
  background: #fef2f2;
  border-color: #fecaca;
}

.inventory-badge.warehouse {
  color: #0756a8;
  background: #eef6ff;
  border-color: #bfdbfe;
}

.edit-inline-button {
  min-height: 34px;
  padding: 8px 14px;
  border: 1px solid rgba(0, 91, 187, 0.18);
  border-radius: 999px;
  color: #0756a8;
  background: #eef6ff;
  box-shadow: 0 7px 16px rgba(0, 91, 187, 0.1);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.edit-inline-button.danger {
  border-color: rgba(220, 38, 38, 0.22);
  color: #b91c1c;
  background: var(--tnvora-danger-50);
  box-shadow: 0 7px 16px rgba(220, 38, 38, 0.1);
}

.edit-inline-button.warning-action {
  border-color: rgba(217, 119, 6, 0.26);
  color: #92400e;
  background: #fff7ed;
  box-shadow: 0 7px 16px rgba(217, 119, 6, 0.1);
}

.inventory-table-wrap {
  overflow-x: auto;
  border: 1px solid #dbe6f2;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 26px rgba(30, 41, 59, 0.08);
}

.inventory-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.76rem;
}

.inventory-table th,
.inventory-table td {
  padding: 10px 11px;
  border-bottom: 1px solid #e5edf6;
  text-align: left;
  vertical-align: top;
}

.inventory-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #516176;
  background: #f3f8fd;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.inventory-table tbody tr {
  --inventory-row-color: #22c55e;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.inventory-table tbody tr:hover,
.inventory-table tbody tr:focus {
  background: #eef6ff;
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(0, 91, 187, 0.12);
}

.inventory-table tbody tr.warning {
  background: #fff8f8;
}

.inventory-table tbody tr.warning:hover,
.inventory-table tbody tr.warning:focus {
  background: var(--tnvora-danger-50);
}

.inventory-table td {
  color: #53657c;
  font-weight: 800;
}

.inventory-table td:first-child {
  border-left: 6px solid var(--inventory-row-color);
}

.inventory-table .vehicle-item-actions {
  justify-content: flex-start;
  gap: 6px;
  margin-top: 0;
}

.inventory-table .edit-inline-button {
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 9px;
  white-space: nowrap;
}

.sms-settings-table-wrap {
  margin-top: 12px;
  width: 100%;
  overflow-x: auto;
}

.sms-settings-table {
  min-width: 1180px;
}

.sms-settings-table .inventory-name small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
}

.sms-users-card {
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 16px;
  border: 1px solid #d8e5f5;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.sms-users-heading .secondary-button {
  flex: 0 0 auto;
}

.sms-gateway-card {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
  padding: 16px;
  border: 1px solid #d8e5f5;
  border-radius: 14px;
  background: rgba(239, 246, 255, 0.82);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.sms-broadcast-card {
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 16px;
  border: 1px solid #cfe0f3;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.sms-broadcast-card textarea {
  min-height: 92px;
  resize: vertical;
}

.sms-broadcast-targets select {
  width: 100%;
}

.sms-phone-input {
  width: 100%;
  min-width: 170px;
  padding: 10px 12px;
  border: 1px solid #cbd8e8;
  border-radius: 10px;
  color: #0f172a;
  background: var(--tnvora-white);
  font-weight: 850;
}

.sms-toggle input {
  width: 20px;
  height: 20px;
  accent-color: #1d7af0;
}

.sms-toggle input:disabled + span {
  color: #94a3b8;
  opacity: 0.7;
}

body.theme-dark .sms-phone-input {
  border-color: #33445d;
  color: #f8fafc;
  background: #172235;
}

body.theme-dark .sms-users-card,
body.theme-dark .sms-gateway-card {
  border-color: #2e4159;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

form {
  display: grid;
  gap: 15px;
  min-width: 0;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 47px;
  padding: 12px 13px;
  border: 1px solid #d3dce5;
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: #f8fafc;
  font-size: 16px;
  text-overflow: ellipsis;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}

input[type="date"] {
  min-width: 0;
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

input[type="date"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 4px rgba(20, 121, 247, 0.11);
}

.hours-counter button {
  border: 1px solid #c6d8ec;
  border-radius: 11px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 1.35rem;
  font-weight: 900;
}

.hours-counter input {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 900;
}

.work-time-range input,
.work-time-range select {
  width: 100%;
  min-width: 0;
  text-align: center;
  font-size: clamp(0.92rem, 4vw, 1rem);
  font-weight: 900;
}

.include-current-user input {
  width: 18px;
  height: 18px;
}

.favorite-button {
  height: 47px;
  border: 1px solid #d3dce5;
  border-radius: 11px;
  color: #8390a0;
  background: #f8fafc;
  font-size: 1.5rem;
  line-height: 1;
}

.favorite-button.active {
  color: #f0a500;
  border-color: #f1cc73;
  background: #fff8e2;
}

.favorite-button:disabled {
  cursor: default;
  opacity: 0.42;
}

.small-button {
  min-height: 40px;
  padding: 8px 14px;
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: 49px;
  border: 0;
  border-radius: 11px;
  font-weight: 900;
  transition: transform 0.15s, box-shadow 0.15s;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--blue), #0866d8);
  box-shadow: 0 9px 20px rgba(20, 121, 247, 0.24);
}

.primary-button:active,
.export-button:active {
  transform: translateY(1px);
}

.deadline-alerts {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.deadline-alert {
  padding: 13px 15px;
  border: 1px solid #ffd7a6;
  border-left: 5px solid var(--tnvora-warning-500);
  border-radius: 14px;
  background: #fff7ed;
  color: #8a3d00;
  font-size: 0.86rem;
  font-weight: 850;
}

.deadline-alerts-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}

.deadline-alerts-table .deadline-overdue td {
  background: #fff7f7;
}

.leader-vacation-alerts .deadline-alerts-heading {
  margin-bottom: 10px;
}

.leader-vacation-table td:first-child {
  color: var(--text);
}

.leader-vacation-table tbody tr {
  background: rgba(34, 197, 94, 0.06);
}

.deadline-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 950;
  white-space: nowrap;
}

.deadline-status.danger {
  color: var(--tnvora-danger-700);
  background: var(--tnvora-danger-100);
}

.deadline-status.warning {
  color: #92400e;
  background: #ffedd5;
}

.pending-report-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #fde68a;
  border-left: 6px solid var(--tnvora-warning-500);
  border-radius: 16px;
  color: #78350f;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  box-shadow: 0 12px 26px rgba(245, 158, 11, 0.14);
}

.report-compliance-dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: min(820px, calc(100vh - 28px));
  padding: 24px;
  border: 1px solid var(--tnvora-warning-500);
  border-radius: 22px;
  color: #172033;
  background: var(--tnvora-white);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.32);
}

.report-compliance-dialog::backdrop {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(5px);
}

.report-compliance-dialog.blocked {
  border-color: var(--tnvora-danger-600);
}

.report-compliance-dialog.blocked .report-compliance-icon {
  background: var(--tnvora-danger-600);
}

.report-compliance-dialog h3 {
  margin: 6px 0 8px;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
}

.report-compliance-dialog > p:not(.eyebrow) {
  margin: 0 0 14px;
  color: #526076;
  line-height: 1.5;
}

.report-compliance-dialog.blocked .report-compliance-counter {
  color: #7f1d1d;
  background: #fef2f2;
}

.report-compliance-dialog.blocked .report-compliance-counter strong {
  background: #b91c1c;
}

.selected-collaborators {
  display: grid;
  gap: 8px;
}

.travel-cert-row.locked input {
  background: #eef3f8;
  color: #6b7688;
  cursor: not-allowed;
}

.checkbox-card {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--text);
}

.checkbox-card input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  accent-color: var(--blue);
}

.expense-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid #cfe0f2;
  border-radius: 999px;
  background: #eef6ff;
  color: #315173;
  font-size: 0.75rem;
  font-weight: 900;
}

.expense-title-suggestions button {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: #eef6ff;
  color: #132033;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.expense-title-suggestions button:hover,
.expense-title-suggestions button:focus-visible {
  color: var(--tnvora-white);
  background: var(--blue);
}

.coordinator-leader-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--background);
}

.coordinator-technician-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.coordinator-technician-table th,
.coordinator-technician-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 0.84rem;
  text-align: left;
  vertical-align: middle;
}

.coordinator-technician-table th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(35, 133, 255, 0.08);
}

.coordinator-technician-table tbody tr:last-child td {
  border-bottom: 0;
}

.coordinator-technician-table tbody tr.is-selected {
  background: rgba(35, 133, 255, 0.14);
}

.coordinator-technician-table .coordinator-check-column {
  width: 92px;
  text-align: center;
}

.coordinator-technician-table input[type="checkbox"] {
  display: inline-block;
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: #2385ff;
  vertical-align: middle;
}

.coordinator-technician-option:has(input:checked) {
  border-color: #2385ff;
  background: rgba(35, 133, 255, 0.12);
}

.coordinator-technician-option input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.expense-row-actions .small-button {
  min-width: 92px;
}

.work-hours-form {
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.work-hours-rates input[readonly] {
  color: #475569;
  background: #eef4fb;
}

.work-hours-download-toolbar .primary-button {
  min-height: 52px;
}

.collaborator-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto 34px 34px;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #cbdcf0;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.collaborator-chip select {
  min-height: 38px;
  min-width: 92px;
  padding: 6px 28px 6px 10px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 900;
}

.collaborator-chip button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-weight: 900;
}

.collaborator-chip .user-favorite-toggle,
.work-order-user-chip .user-favorite-toggle {
  color: #8a6a00;
  border: 1px solid #e3c458;
  background: #fff8d8;
  font-size: 1rem;
}

.collaborator-chip .user-favorite-toggle.active,
.work-order-user-chip .user-favorite-toggle.active {
  color: #9a6700;
  border-color: #e4ad1a;
  background: #ffefad;
}

.collaborator-chip .user-remove-action,
.work-order-user-chip .user-remove-action {
  color: #b4232b;
  border: 1px solid #f1aeb2;
  background: var(--tnvora-danger-50);
  font-size: 1rem;
}

.history-calendar {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.history-user-filter select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: var(--tnvora-white);
  font-weight: 900;
}

.admin-user-filter-label select[multiple] {
  min-height: 132px;
  padding: 8px;
}

.admin-user-filter-label input[type="search"],
.admin-cert-range input {
  border-color: #3b4b5f;
  color: white;
  background: #202d3d;
}

.admin-user-filter-label .export-button {
  width: fit-content;
  margin-top: 10px;
}

.admin-selected-users {
  margin-top: 0;
}

.admin-selected-users .collaborator-chip {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.work-order-bulk-tools input {
  min-height: 44px;
}

.calendar-weekdays span {
  text-align: center;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.calendar-day,
.calendar-cell {
  min-height: clamp(34px, 9vw, 46px);
}

.calendar-day {
  width: min(46px, 100%);
  min-width: 0;
  aspect-ratio: 1;
  height: auto;
  justify-self: center;
  border: 3px solid #1d7cf2;
  border-radius: 999px;
  background: var(--tnvora-white);
  color: #0b1220;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.calendar-day.filled {
  color: #0b1220;
  background: var(--tnvora-white);
  border-color: #1d7cf2;
}

.calendar-day.saturday {
  color: #0b1220;
  border-color: #f6c343;
}

.calendar-day.holiday {
  color: #0b1220;
  border-color: #e63946;
}

.calendar-day.filled.saturday {
  border-color: #f6c343;
  color: #0b1220;
}

.calendar-day.filled.holiday {
  border-color: #e63946;
  color: #0b1220;
}

.vacation-day.vacation-selected {
  color: var(--tnvora-white);
  border-color: #7c3aed;
  background: #7c3aed;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.26);
}

.vacation-user-days-list button {
  padding: 8px 11px;
  border: 1px solid #a9c8e9;
  border-radius: 999px;
  color: #0f4f93;
  background: var(--tnvora-white);
  font-weight: 850;
}

.calendar-day.has-order {
  border-style: dashed;
}

.calendar-day.has-vacation {
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12), 0 10px 22px rgba(34, 197, 94, 0.14);
}

.calendar-day.complete {
  border-color: #16a34a;
  border-style: solid;
  box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.12), 0 10px 24px rgba(22, 163, 74, 0.18);
}

.calendar-day.selected {
  transform: translateY(-2px);
  box-shadow: 0 0 0 5px rgba(20, 121, 247, 0.16), 0 14px 28px rgba(15, 23, 42, 0.16);
}

.calendar-day:disabled {
  cursor: default;
  opacity: 0.55;
  box-shadow: none;
}

.calendar-day:not(:disabled):hover {
  transform: translateY(-2px);
}

.history-calendar {
  touch-action: pan-y;
  user-select: none;
}

.month-dialog {
  width: min(430px, calc(100vw - 32px));
  border: 0;
  border-radius: 28px;
  padding: 24px;
  background: var(--tnvora-white);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
}

.month-dialog::backdrop {
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(5px);
}

.month-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.month-dialog-head strong {
  font-size: 1.35rem;
  color: var(--text);
}

.selected-history-title {
  margin: 8px 0 10px;
  font-size: 1rem;
}

.admin-badge {
  padding: 6px 9px;
  border: 1px solid rgba(20, 121, 247, 0.5);
  border-radius: 6px;
  color: #72b1ff;
  background: rgba(20, 121, 247, 0.12);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.admin-toolbar select {
  border-color: #3b4b5f;
  color: white;
  background: #202d3d;
}

.boss-dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px;
  border: 1px solid #d8e3ef;
  border-radius: 14px;
  background: var(--tnvora-surface-blue);
}

.boss-dashboard-tab {
  flex: 1 1 160px;
  min-height: 44px;
  border: 0;
  border-radius: 11px;
  color: #41536a;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.boss-dashboard-tab.active {
  color: var(--tnvora-white);
  background: #1677f2;
  box-shadow: 0 10px 20px rgba(22, 119, 242, 0.18);
}

.company-settings-form {
  display: grid;
  gap: 14px;
}

.company-settings-fields textarea {
  min-height: 132px;
  resize: vertical;
}

.company-logo-upload input {
  margin-top: 8px;
}

.boss-history-table-wrap {
  overflow-x: auto;
}

.boss-history-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.boss-history-table th,
.boss-history-table td {
  padding: 10px 9px;
  border-bottom: 1px solid #dbe5f0;
  text-align: left;
}

.boss-history-table th {
  color: #41536a;
  background: #edf5ff;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.boss-expenses-table .cost-row td:last-child {
  color: #be123c;
  font-weight: 900;
}

.boss-expenses-table .prepayment-row td:last-child {
  color: #16a34a;
  font-weight: 900;
}

.admin-add-farm-form {
  display: grid;
  grid-template-columns: minmax(240px, 520px) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
}

.import-file-button {
  display: inline-grid;
  min-height: 40px;
  place-items: center;
  padding: 8px 14px;
  border: 1px solid #c6d8ec;
  border-radius: 11px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.admin-farm-row textarea {
  font-family: inherit;
}

.admin-user-form {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.admin-user-form label {
  color: #aab6c6;
}

.admin-user-form input {
  border-color: #3b4b5f;
  color: white;
  background: #202d3d;
  text-transform: uppercase;
}

.admin-user-form input[type="password"] {
  text-transform: none;
}

.admin-user-form .primary-button {
  min-height: 46px;
  padding-inline: 18px;
}

.backup-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.072);
}

.backup-card h4 {
  margin: 0;
  font-size: 1rem;
}

.admin-month-delete-card {
  grid-column: 1 / -1;
  border-color: rgba(239, 68, 68, 0.58);
  background: rgba(127, 29, 29, 0.14);
}

.admin-month-delete-card .eyebrow { color: var(--tnvora-danger-500); }

.problem-report-item button {
  justify-self: end;
}

.statistics-card {
  position: relative;
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(114, 177, 255, 0.24);
  border-left: 5px solid var(--blue);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20, 121, 247, 0.16), rgba(9, 20, 34, 0.82));
  box-shadow: 0 14px 28px rgba(4, 12, 24, 0.18);
  color: inherit;
  font: inherit;
  text-align: left;
}

.statistics-card.is-clickable {
  cursor: pointer;
}

.statistics-card.is-clickable:hover {
  transform: translateY(-1px);
  border-color: rgba(114, 177, 255, 0.45);
  box-shadow: 0 18px 34px rgba(4, 12, 24, 0.28);
}

.statistics-card span,
.statistics-card small {
  color: #b9c7d9;
  font-size: 0.72rem;
  font-weight: 900;
}

.statistics-card span {
  display: flex;
  gap: 9px;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0;
}

.statistics-card span i {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding: 0 7px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.11);
  color: var(--tnvora-white);
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 1000;
}

.statistics-card b {
  overflow-wrap: anywhere;
  color: var(--tnvora-white);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.05;
}

.statistics-card.tone-good {
  border-left-color: #21c875;
  background: linear-gradient(135deg, rgba(33, 200, 117, 0.22), rgba(9, 20, 34, 0.84));
}

.statistics-card.tone-warning {
  border-left-color: #f4c430;
  background: linear-gradient(135deg, rgba(244, 196, 48, 0.22), rgba(9, 20, 34, 0.84));
}

.statistics-card.tone-danger {
  border-left-color: var(--tnvora-danger-500);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22), rgba(9, 20, 34, 0.84));
}

.statistics-card.tone-info {
  border-left-color: var(--blue);
}

.statistics-card.tone-neutral {
  border-left-color: #8fa6bf;
}

.analytics-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 10px;
  padding: 6px;
  border: 1px solid rgba(114, 177, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.analytics-tab,
.analytics-range-button {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 14px;
  background: transparent;
  color: #b9c7d9;
  font-weight: 900;
  cursor: pointer;
}

.analytics-tab.active,
.analytics-range-button.active {
  border-color: rgba(114, 177, 255, 0.42);
  background: var(--blue);
  color: var(--tnvora-white);
  box-shadow: 0 12px 24px rgba(20, 121, 247, 0.22);
}

.analytics-range-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.analytics-date-fields input {
  min-height: 40px;
  border: 1px solid rgba(114, 177, 255, 0.24);
  border-radius: 10px;
  background: rgba(8, 20, 34, 0.75);
  color: var(--tnvora-surface-cool);
  font-weight: 900;
}

.analytics-client-form,
.analytics-client-analysis-controls {
  display: grid;
  gap: 14px;
}

.analytics-client-name input,
.analytics-client-rate input[type="number"],
.analytics-client-analysis-controls input[type="date"] {
  min-height: 42px;
  border: 1px solid rgba(114, 177, 255, 0.26);
  border-radius: 10px;
  background: rgba(8, 20, 34, 0.78);
  color: var(--tnvora-surface-cool);
  font-weight: 850;
}

.analytics-client-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(114, 177, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.analytics-client-card.active {
  border-color: var(--blue);
  background: rgba(20, 121, 247, 0.14);
  box-shadow: inset 4px 0 0 var(--blue);
}

.analytics-client-card > button {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 5px;
  border: 0;
  background: transparent;
  color: var(--tnvora-white);
  text-align: left;
}

.analytics-client-card > button small {
  overflow: hidden;
  color: #9fc4ff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-client-card > div {
  display: flex;
  gap: 6px;
}

.analytics-client-analysis-actions button {
  min-width: 210px;
}

.client-insight-card,
.client-ranking-section {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(114, 177, 255, 0.18);
  border-radius: 14px;
  background: rgba(8, 20, 34, 0.54);
}

.client-insight-card.full {
  grid-column: 1 / -1;
}

.client-ranking-table td strong,
.client-ranking-table td small {
  display: block;
}

.client-ranking-table td small {
  margin-top: 3px;
  color: #8fa6bf;
  font-size: 0.68rem;
}

.client-ranking-table .ranking-top {
  background: rgba(33, 200, 117, 0.09);
}

.client-ranking-table .ranking-low {
  background: rgba(244, 196, 48, 0.08);
}

.analytics-alert-list {
  display: grid;
  gap: 8px;
}

.analytics-alert {
  display: grid;
  grid-template-columns: auto minmax(130px, 0.45fr) minmax(180px, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(114, 177, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--tnvora-surface-cool);
  text-align: left;
  cursor: pointer;
}

.analytics-alert b {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
}

.analytics-alert span {
  font-weight: 1000;
}

.analytics-alert small {
  color: #b9c7d9;
  font-weight: 800;
}

.analytics-alert.tone-warning {
  border-left: 5px solid #f4c430;
  background: rgba(244, 196, 48, 0.1);
}

.analytics-alert.tone-danger {
  border-left: 5px solid var(--tnvora-danger-500);
  background: rgba(239, 68, 68, 0.1);
}

.analytics-alert.tone-good {
  border-left: 5px solid #21c875;
  background: rgba(33, 200, 117, 0.1);
}

.analytics-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(114, 177, 255, 0.16);
  border-radius: 10px;
}

.analytics-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
}

.analytics-table th {
  padding: 10px;
  background: rgba(114, 177, 255, 0.14);
  color: #dceaff;
  font-size: 0.72rem;
  text-align: left;
}

.analytics-table td {
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--tnvora-surface-cool);
  font-weight: 800;
}

.presence-badge {
  display: inline-block !important;
  margin-top: 0 !important;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.58rem !important;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.presence-badge.role {
  color: var(--tnvora-line-blue);
  background: rgba(59, 130, 246, 0.22);
}

.presence-badge.online {
  color: #74efb4;
  background: rgba(34, 181, 115, 0.16);
}

.presence-badge.offline {
  color: #aab6c6;
  background: rgba(255, 255, 255, 0.08);
}

.presence-badge.frozen {
  color: #fecaca;
  background: rgba(185, 28, 28, 0.24);
}

.admin-user-actions button {
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid #4a5d74;
  border-radius: 8px;
  color: white;
  background: #26364a;
  font-size: 0.7rem;
  font-weight: 800;
}

.admin-user-actions button[data-user-action="role"] {
  border-color: rgba(96, 165, 250, 0.54);
  color: var(--tnvora-line-blue);
  background: rgba(37, 99, 235, 0.22);
}

.admin-user-actions button[data-user-action="hours"],
.admin-user-actions button[data-user-action="password"],
.admin-user-actions button[data-user-action="login"] {
  background: rgba(255, 255, 255, 0.09);
}

.signature-form {
  display: grid;
  gap: 12px;
}

.single-action-option input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--blue);
}

.work-order-selected-users {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #cfe0f5;
  border-radius: 16px;
  background: #eef6ff;
}

.work-order-selected-users p {
  margin: 0;
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-order-selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-order-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #9fc7f6;
  border-radius: 999px;
  color: var(--blue-dark);
  background: white;
  font-size: 0.76rem;
  font-weight: 900;
}

.work-order-user-chip button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}

.work-order-submit-hint + .form-hint {
  display: none;
}

.guest-add-button {
  justify-self: start;
}

.work-order-user small,
.admin-work-order span,
.form-hint,
.empty-order-list {
  color: #66758a;
}

.form-hint,
.empty-order-list {
  margin: 0;
}

.work-order-download-button,
.work-order-sign-button {
  border: 0;
  border-radius: 13px;
  padding: 13px 16px;
  color: #111827;
  background: #e8eef5;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
  font-weight: 850;
  cursor: pointer;
}

.work-order-sign-button {
  color: var(--tnvora-white);
  background: #1677f2;
}

.work-order-close-button {
  border: 0;
  border-radius: 13px;
  padding: 13px 16px;
  color: var(--tnvora-white);
  background: #16a34a;
  box-shadow: 0 12px 26px rgba(22, 163, 74, 0.18);
  font-weight: 900;
  cursor: pointer;
}

.work-order-download-button:hover,
.work-order-sign-button:hover,
.work-order-close-button:hover {
  transform: translateY(-1px);
}

.history-pdf-button {
  display: grid;
  gap: 4px;
  min-width: 128px;
  padding: 11px 14px;
}

.history-pdf-button span {
  justify-self: center;
  padding: 3px 7px;
  border-radius: 8px;
  color: white;
  background: #22344d;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.history-pdf-button b {
  color: #172337;
  font-size: 0.72rem;
}

.work-order-active-task.readonly-task span,
.work-order-active-task.readonly-task .active-time-button {
  color: #526579;
}

.work-order-active-task select,
.work-order-break-row input,
.work-order-break-row select,
.work-order-active-extra input,
.work-order-active-extra select {
  min-height: 38px;
}

.active-time-button {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d7e2ef;
  border-radius: 12px;
  color: #66758a;
  background: #f8fafc;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.active-time-button.has-value {
  color: #101827;
  background: var(--tnvora-white);
  box-shadow: inset 0 0 0 1px rgba(0, 91, 187, 0.08);
}

.work-order-active-task select {
  width: 100%;
  min-width: 0;
  text-align: center;
}

.active-time-dialog[hidden] {
  display: none;
}

.active-time-dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding:
    max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

.active-time-selection {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  z-index: 2;
  height: 54px;
  transform: translateY(-50%);
  pointer-events: none;
  border: 2px solid rgba(22, 119, 242, 0.72);
  border-radius: 14px;
  background: rgba(22, 119, 242, 0.1);
  box-shadow: 0 10px 26px rgba(22, 119, 242, 0.16);
}

.active-time-option.selected {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.72);
}

.work-order-sign-as select {
  min-height: 44px;
  border: 1px solid #cbd8e8;
  border-radius: 12px;
  background: #f7f9fc;
  color: #111827;
  font-weight: 800;
}

.export-button,
.text-button {
  border: 0;
  color: var(--blue-dark);
  background: transparent;
  font-weight: 850;
}

.export-button {
  padding: 10px 14px;
  border: 1px solid #b8d5f6;
  border-radius: 10px;
  background: var(--blue-soft);
}

.entry-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 15px;
  border: 1px solid #dde4eb;
  border-radius: 16px;
  background: white;
  box-shadow: 0 8px 22px rgba(16, 23, 34, 0.055);
}

.type-badge {
  width: fit-content;
  margin-top: 0 !important;
  padding: 3px 7px;
  border-radius: 5px;
  color: #075cc4 !important;
  background: var(--blue-soft);
  font-size: 0.61rem !important;
  font-weight: 900;
  letter-spacing: 0.025em;
}

.shared-badge {
  color: #0f5132 !important;
  background: #d1e7dd;
}

.entry-actions button {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid #cbdcf0;
  border-radius: 10px;
  color: #0f5fb8;
  background: #eef6ff;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

dialog {
  width: min(calc(100% - 36px), 380px);
  padding: 24px;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(10, 19, 30, 0.35);
}

.auth-tab.active {
  color: var(--navy);
  background: white;
  box-shadow: 0 3px 10px rgba(16, 23, 34, 0.09);
}

.logout-button {
  margin-top: 20px;
  padding: 8px;
  border: 0;
  color: var(--danger);
  background: transparent;
  font-weight: 800;
}

.update-info-dialog {
  width: min(calc(100% - 32px), 430px);
}

.update-info-dialog .update-version {
  margin: 8px 0 16px;
  color: var(--blue-dark);
  font-weight: 900;
}

.update-info-dialog ul {
  margin: 0 0 22px;
  padding-left: 21px;
  color: #465568;
  line-height: 1.55;
}

.update-info-dialog li + li {
  margin-top: 8px;
}

.update-info-dialog .primary-button {
  width: 100%;
}

dialog::backdrop {
  background: rgba(10, 18, 28, 0.64);
  backdrop-filter: blur(3px);
}

dialog p {
  color: var(--muted);
}

.dialog-actions {
  justify-content: flex-end;
  gap: 10px;
}

.dialog-actions button {
  min-width: 100px;
}

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

.danger-button {
  color: white;
  background: var(--danger);
}

.hamburger-button,
.top-icon-button,
.close-menu-button {
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(135, 152, 176, 0.28);
  color: #f7fbff;
  background: rgba(22, 34, 50, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.hamburger-button {
  display: inline-flex;
  width: 46px;
  height: 46px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  border-radius: 50%;
  color: rgba(247, 251, 255, 0.92);
  background: rgba(22, 34, 50, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 8px 18px rgba(0, 0, 0, 0.16);
}

.hamburger-button span {
  display: block;
  width: 19px;
  height: 1.7px;
  border-radius: 999px;
  background: currentColor;
}

.hamburger-button:hover,
.hamburger-button:focus-visible {
  background: rgba(34, 48, 68, 0.82);
}

.close-menu-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--side-menu-border);
  border-radius: 50%;
  color: var(--side-menu-utility-text);
  background: var(--side-menu-utility-bg);
  font-size: 1.35rem;
  line-height: 1;
}

.side-admin-shortcuts button {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 850;
}

.side-info-button {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--side-menu-border);
  color: var(--side-menu-utility-text);
  background: var(--side-menu-utility-bg);
}

.side-logout-button {
  color: var(--tnvora-white);
  border-color: var(--side-menu-logout-border);
  background: var(--side-menu-logout-bg);
  text-align: center;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 24px;
  left: 20px;
  z-index: 10;
  max-width: 440px;
  margin: auto;
  padding: 13px 18px;
  border-radius: 11px;
  color: white;
  background: var(--navy);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

body.theme-light .summary-card {
  color: var(--tnvora-white);
  background: linear-gradient(135deg, #111925, #202d3e);
}

body.theme-light .admin-panel .empty-state,
body.theme-light .admin-users,
body.theme-light .backup-card,
body.theme-light .problem-report-item,
body.theme-light .admin-user-row {
  color: var(--navy);
  border-color: #d8e3ef;
  background: var(--tnvora-surface-cool);
}

body.theme-light .admin-toolbar label,
body.theme-light .admin-user-form label,
body.theme-light .admin-user-row span,
body.theme-light .problem-report-item small,
body.theme-light .admin-entry span,
body.theme-light .admin-summary span {
  color: #526274;
}

body.theme-light .admin-user-row span b,
body.theme-light .admin-user-name strong,
body.theme-light .admin-summary b,
body.theme-light .backup-card h4,
body.theme-light .problem-report-item p {
  color: var(--navy);
}

body.theme-light .statistics-card {
  border-color: #d8e3ef;
  background: var(--tnvora-white);
  box-shadow: 0 14px 28px rgba(21, 42, 68, 0.08);
}

body.theme-light .statistics-card b,
body.theme-light .statistics-history-row b {
  color: #102033;
}

body.theme-light .statistics-card span,
body.theme-light .statistics-card small,
body.theme-light .statistics-history-row span,
body.theme-light .statistics-history-row small {
  color: #65748a;
}

body.theme-light .statistics-card span i {
  background: #eaf3ff;
  color: #1262c7;
}

body.theme-light .statistics-card.tone-good {
  background: linear-gradient(135deg, #ecfff5, var(--tnvora-white));
}

body.theme-light .statistics-card.tone-warning {
  background: linear-gradient(135deg, #fff9df, var(--tnvora-white));
}

body.theme-light .statistics-card.tone-danger {
  background: linear-gradient(135deg, #fff0f0, var(--tnvora-white));
}

body.theme-light .statistics-card.tone-info {
  background: linear-gradient(135deg, #eaf3ff, var(--tnvora-white));
}

body.theme-light .analytics-tabs,
body.theme-light .analytics-filter-bar,
body.theme-light .analytics-section {
  border-color: #d8e3ef;
  background: var(--tnvora-white);
}

body.theme-light .analytics-client-quick-range,
body.theme-light .client-profitability-head,
body.theme-light .client-profitability-kpis article,
body.theme-light .client-extremes article,
body.theme-light .client-insight-card,
body.theme-light .client-ranking-section {
  border-color: #d8e3ef;
}

body.theme-light .analytics-client-quick-range,
body.theme-light .client-profitability-kpis article,
body.theme-light .client-extremes article,
body.theme-light .client-insight-card,
body.theme-light .client-ranking-section {
  background: var(--tnvora-white);
}

body.theme-light .analytics-tab,
body.theme-light .analytics-range-button,
body.theme-light .analytics-date-fields label,
body.theme-light .analytics-section-heading span,
body.theme-light .analytics-chart-legend {
  color: #526274;
}

body.theme-light .analytics-tab.active,
body.theme-light .analytics-range-button.active {
  color: var(--tnvora-white);
}

body.theme-light .analytics-date-fields input {
  border-color: #cbd8e8;
  background: var(--tnvora-white);
  color: var(--navy);
}

body.theme-light .analytics-section h4,
body.theme-light .analytics-table td,
body.theme-light .analytics-bar-row {
  color: #102033;
}

body.theme-light .analytics-alert {
  border-color: #d8e3ef;
  background: var(--tnvora-white);
  color: #102033;
}

body.theme-light .analytics-alert b {
  background: #eaf3ff;
  color: #1262c7;
}

body.theme-light .analytics-alert small {
  color: #526274;
}

body.theme-light .analytics-alert.tone-warning {
  background: #fff9df;
}

body.theme-light .analytics-alert.tone-danger {
  background: #fff0f0;
}

body.theme-light .analytics-alert.tone-good {
  background: #ecfff5;
}

body.theme-light .analytics-table-wrap {
  border-color: #d8e3ef;
}

body.theme-light .analytics-table th {
  background: #e9f3ff;
  color: #1f5f9f;
}

body.theme-light .analytics-table td {
  border-top-color: #d8e3ef;
}

body.theme-light .admin-toolbar select,
body.theme-light .admin-user-form input {
  border-color: #cbd8e8;
  color: var(--navy);
  background: var(--tnvora-white);
}

body.theme-light .admin-user-actions button {
  border-color: #cbd8e8;
  color: #12314f;
  background: #eef6ff;
}

body.theme-light .admin-user-actions button[data-user-action="role"],
body.theme-light .admin-user-actions button[data-user-action="hours"],
body.theme-light .admin-user-actions button[data-user-action="password"],
body.theme-light .admin-user-actions button[data-user-action="login"] {
  border-color: #b8d4ff;
  color: #0756a8;
  background: #e8f3ff;
}

body.theme-light .presence-badge.role {
  color: #0756a8;
  background: var(--tnvora-line-blue);
}

body.theme-light .presence-badge.offline {
  color: #526274;
  background: #e6edf5;
}

body.theme-light .presence-badge.online {
  color: #047857;
  background: #d1fae5;
}

body.theme-dark .panel,
body.theme-dark .daily-note,
body.theme-dark .history-section,
body.theme-dark .summary-card,
body.theme-dark .admin-panel,
body.theme-dark .vehicle-panel,
body.theme-dark .deadline-alerts-card,
body.theme-dark .boss-metrics div,
body.theme-dark .boss-vacation-block,
body.theme-dark .boss-expenses-section,
body.theme-dark .farm-info-box,
body.theme-dark .top-technicians-panel {
  color: var(--tnvora-surface-blue);
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(18, 28, 42, 0.96);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

body.theme-dark .daily-note-text,
body.theme-dark .farm-info-text,
body.theme-dark .section-title h2,
body.theme-dark .deadline-alerts-heading h2,
body.theme-dark .boss-vacation-block h3,
body.theme-dark .boss-metrics b,
body.theme-dark .admin-user-row span b,
body.theme-dark .admin-user-name strong {
  color: var(--tnvora-surface-blue);
}

body.theme-dark label,
body.theme-dark .summary-label,
body.theme-dark .boss-metrics span,
body.theme-dark .admin-user-row span,
body.theme-dark .admin-toolbar label,
body.theme-dark .admin-user-form label,
body.theme-dark .problem-report-item small {
  color: #a8b7ca;
}

body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea,
body.theme-dark .admin-toolbar select,
body.theme-dark .admin-user-form input {
  border-color: #33445c;
  color: var(--tnvora-surface-blue);
  background: #172234;
}

body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
  color: #74849a;
}

body.theme-dark .boss-dashboard-tabs,
body.theme-dark .boss-history-table th,
body.theme-dark .inventory-table th {
  border-color: #33445c;
  color: #c6d6e8;
  background: #172234;
}

body.theme-dark .boss-history-table td,
body.theme-dark .inventory-table td {
  border-bottom-color: #2b3a4d;
  color: #d8e4f2;
}

body.theme-dark .boss-history-table-wrap,
body.theme-dark .inventory-table-wrap {
  border-color: #33445c;
  background: #111b29;
}

body.theme-dark .deadline-alert {
  border-color: #7c4a12;
  color: #fed7aa;
  background: #2a2118;
}

body.theme-dark .deadline-alerts-table .deadline-overdue td {
  background: rgba(127, 29, 29, 0.18);
}

body.theme-dark .secondary-button {
  color: var(--tnvora-line-blue);
  background: #24364d;
}

body.theme-dark .import-file-button,
body.theme-dark .export-button,
body.theme-dark .tool-admin-actions .secondary-button,
body.theme-dark .admin-farm-actions .secondary-button,
body.theme-dark .admin-farm-actions .import-file-button {
  color: var(--tnvora-line-blue);
  border-color: #3b4f6b;
  background: #24364d;
}

body.theme-dark .import-file-button:hover,
body.theme-dark .export-button:hover,
body.theme-dark .tool-admin-actions .secondary-button:hover,
body.theme-dark .admin-farm-actions .secondary-button:hover {
  color: var(--tnvora-white);
  background: #1d7cf2;
}

body.theme-dark .vehicle-item,
body.theme-dark .inventory-table tbody tr,
body.theme-dark .tool-list .vehicle-item {
  color: var(--tnvora-surface-blue);
  border-color: #31445d;
  background: #101a28;
}

body.theme-dark .vehicle-item.warning,
body.theme-dark .inventory-table tbody tr.warning {
  background: #241b25;
}

body.theme-dark .vehicle-item strong,
body.theme-dark .inventory-name,
body.theme-dark .inventory-table td:first-child,
body.theme-dark .tool-list .vehicle-item strong {
  color: var(--tnvora-surface-cool);
}

body.theme-dark .vehicle-item span,
body.theme-dark .inventory-table td,
body.theme-dark .inventory-name small,
body.theme-dark .inventory-notes,
body.theme-dark .tool-list .vehicle-item span {
  color: #c5d4e6;
}

body.theme-dark .vehicle-form,
body.theme-dark .tool-form,
body.theme-dark .work-order-bulk-tools,
body.theme-dark .vacation-team-block {
  color: var(--tnvora-surface-blue);
  border-color: #34465f;
  background: #111b29;
}

body.theme-dark .inventory-table-wrap {
  border-color: #34465f;
  background: #111b29;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

body.theme-dark .inventory-table th {
  color: var(--tnvora-line-blue);
  border-bottom-color: #34465f;
  background: #172234;
}

body.theme-dark .inventory-table tbody tr:hover,
body.theme-dark .inventory-table tbody tr:focus {
  background: #17253a;
}

body.theme-dark #newReportPanel .pending-report-panel,
body.theme-dark #newReportPanel .travel-km-assignments,
body.theme-dark #newReportPanel .travel-cert-row,
body.theme-dark #newReportPanel .collaborators-box,
body.theme-dark #newReportPanel .selected-collaborators,
body.theme-dark #newReportPanel .collaborator-chip,
body.theme-dark #newReportPanel .include-current-user {
  color: var(--tnvora-surface-blue);
  border-color: #33445c;
  background: #111b29;
}

body.theme-dark #newReportPanel .pending-report-card,
body.theme-dark #newReportPanel .pending-report-main {
  color: var(--tnvora-surface-blue);
  border-color: #3c4f68;
  background: #172234;
}

body.theme-dark .pending-report-summary,
body.theme-dark .report-compliance-dialog,
body.theme-dark .report-compliance-order {
  color: #f8fafc;
  border-color: #4b5f79;
  background: #111b29;
}

body.theme-dark .pending-report-summary.blocked,
body.theme-dark .report-compliance-dialog.blocked {
  border-color: var(--tnvora-danger-500);
}

body.theme-dark .report-compliance-dialog > p:not(.eyebrow),
body.theme-dark .report-compliance-order span,
body.theme-dark .report-compliance-order small {
  color: #b9c8dc;
}

body.theme-dark .report-compliance-dialog.blocked .report-compliance-counter {
  color: #fecaca;
  background: #301517;
}

body.theme-dark #newReportPanel .pending-report-main span,
body.theme-dark #newReportPanel .pending-report-main small,
body.theme-dark #newReportPanel .travel-cert-row > span,
body.theme-dark #newReportPanel .travel-cert-row label small,
body.theme-dark #newReportPanel .collaborator-chip small,
body.theme-dark #newReportPanel .form-hint,
body.theme-dark #newReportPanel .calculated-time {
  color: #b9c8dc;
}

body.theme-dark #newReportPanel .pending-report-main b,
body.theme-dark #newReportPanel .travel-cert-row b,
body.theme-dark #newReportPanel .collaborator-chip b,
body.theme-dark #newReportPanel .selected-collaborators b,
body.theme-dark #newReportPanel .include-current-user span,
body.theme-dark #newReportPanel .calculated-time strong {
  color: var(--tnvora-white);
}

body.theme-dark #newReportPanel input,
body.theme-dark #newReportPanel select,
body.theme-dark #newReportPanel textarea,
body.theme-dark #newReportPanel .collaborator-chip select {
  color: var(--tnvora-surface-cool);
  border-color: #40536d;
  background: #172234;
}

body.theme-dark #newReportPanel .travel-cert-row.locked input {
  color: #94a3b8;
  background: #101827;
}

body.theme-dark #newReportPanel .collaborator-chip button {
  color: var(--tnvora-white);
  background: var(--blue);
}

body.theme-dark .month-dialog {
  color: var(--tnvora-surface-blue);
  border: 1px solid #34465f;
  background: #101a28;
}

body.theme-dark .month-dialog-head strong {
  color: var(--tnvora-surface-cool);
}

body.theme-dark .history-user-filter label,
body.theme-dark .calendar-weekdays span {
  color: var(--tnvora-line-blue);
}

body.theme-dark .history-calendar .calendar-day,
body.theme-dark .vacation-calendar .calendar-day {
  color: var(--tnvora-surface-cool);
  background: #142033;
  box-shadow: inset 0 0 0 1px rgba(219, 234, 254, 0.1);
}

body.theme-dark .history-calendar .calendar-day.filled {
  color: var(--tnvora-white);
  background: #10291d;
}

body.theme-dark .vacation-calendar .calendar-day.vacation-selected {
  color: var(--tnvora-white);
  border-color: #c084fc;
  background: #6d28d9;
  box-shadow: 0 0 0 5px rgba(192, 132, 252, 0.22), 0 10px 24px rgba(0, 0, 0, 0.28);
}

body.theme-dark .history-calendar .calendar-day.selected,
body.theme-dark .vacation-calendar .calendar-day.selected {
  color: var(--tnvora-white);
  background: #0b5ecb;
}

body.theme-dark .vacation-user-days-list button {
  color: #d9ecff;
  border-color: #2f5e91;
  background: #16263a;
}

body.theme-dark .expense-title-suggestions button {
  color: var(--tnvora-surface-blue);
  background: #172234;
}

body.theme-dark .expense-title-suggestions button:hover,
body.theme-dark .expense-title-suggestions button:focus-visible {
  color: var(--tnvora-white);
  background: var(--blue);
}

body.theme-dark .expense-meta-pill {
  color: var(--tnvora-line-blue);
  border-color: #365577;
  background: #172234;
}

body.theme-dark .checkbox-card {
  color: var(--tnvora-surface-blue);
}

body.theme-dark .entries-list .entry-card,
body.theme-dark .personal-note-item {
  color: var(--tnvora-surface-blue);
  border-color: #34465f;
  background: #101a28;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

body.theme-dark .entries-list .entry-card strong,
body.theme-dark .entries-list .entry-hours b,
body.theme-dark .personal-note-item strong,
body.theme-dark .personal-note-item p {
  color: var(--tnvora-surface-cool);
}

body.theme-dark .entries-list .entry-card span,
body.theme-dark .personal-note-item span {
  color: #b8c7da;
}

body.theme-dark .entries-list .vacation-entry-card,
body.theme-dark .personal-note-item.note-due {
  border-color: #1f8f52;
  background: #10291d;
}

body.theme-dark .entries-list .vacation-badge {
  color: #bbf7d0 !important;
  background: #17452c;
}

body.theme-dark .history-calendar .calendar-day:disabled,
body.theme-dark .vacation-calendar .calendar-day:disabled {
  color: #7f93ad;
  background: transparent;
}

body.theme-dark .work-order-active-task.readonly-task span,
body.theme-dark .work-order-active-task.readonly-task .active-time-button {
  color: #9fb0c5;
}

body.theme-dark .work-order-active-task select,
body.theme-dark .work-order-break-row input,
body.theme-dark .work-order-break-row select,
body.theme-dark .work-order-active-extra input,
body.theme-dark .work-order-active-extra select,
body.theme-dark .active-time-button {
  color: var(--tnvora-surface-cool);
  border-color: #40536d;
  background: #172234;
}

body.theme-dark .work-order-active-task select::placeholder,
body.theme-dark .work-order-break-row input::placeholder,
body.theme-dark .work-order-active-extra input::placeholder {
  color: #8fa3bd;
}

body.theme-dark .active-time-button.has-value {
  color: var(--tnvora-white);
  background: #24364d;
}

body.theme-dark .active-time-selection {
  border-color: rgba(96, 165, 250, 0.9);
  background: rgba(37, 99, 235, 0.22);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.24);
}

body.theme-dark .active-time-option.selected {
  color: var(--tnvora-white);
  background: rgba(96, 165, 250, 0.16);
}

body.theme-dark .vehicle-form,
body.theme-dark .tool-form,
body.theme-dark .work-hours-rates,
body.theme-dark .user-cert-actions,
body.theme-dark .expense-export-actions,
body.theme-dark .work-order-users,
body.theme-dark .work-order-guests,
body.theme-dark .work-order-selected-users,
body.theme-dark .work-order-guest,
body.theme-dark .include-current-user,
body.theme-dark .history-user-filter,
body.theme-dark .vacation-team-block {
  color: var(--tnvora-surface-blue);
  border-color: #34465f;
  background: #111b29;
}

body.theme-dark .vehicle-form label,
body.theme-dark .tool-form label,
body.theme-dark .work-hours-rates label,
body.theme-dark .user-cert-actions label,
body.theme-dark .work-order-users legend,
body.theme-dark .work-order-guests legend,
body.theme-dark .history-user-filter label,
body.theme-dark .form-hint,
body.theme-dark .empty-state,
body.theme-dark .empty-state p {
  color: #b8c7da;
}

body.theme-dark .vehicle-item,
body.theme-dark .inventory-table tbody tr,
body.theme-dark .tool-list .vehicle-item,
body.theme-dark .training-list .vehicle-item {
  color: var(--tnvora-surface-blue);
  border-color: #304158;
  background: #111b29;
}

body.theme-dark .vehicle-item strong,
body.theme-dark .inventory-name,
body.theme-dark .inventory-table td:first-child,
body.theme-dark .tool-list .vehicle-item strong,
body.theme-dark .training-list .vehicle-item strong {
  color: var(--tnvora-surface-cool);
}

body.theme-dark .vehicle-item span,
body.theme-dark .inventory-table td,
body.theme-dark .inventory-name small,
body.theme-dark .inventory-notes,
body.theme-dark .tool-list .vehicle-item span,
body.theme-dark .training-list .vehicle-item span {
  color: #cbd8ea;
}

body.theme-dark .inventory-table th,
body.theme-dark .boss-history-table th,
body.theme-dark .deadline-alerts-table th {
  color: var(--tnvora-line-blue);
  background: #172234;
}

body.theme-dark .inventory-table-wrap,
body.theme-dark .boss-history-table-wrap,
body.theme-dark .deadline-table-wrap {
  border-color: #34465f;
  background: #0f1826;
}

body.theme-dark .inventory-table tbody tr:hover,
body.theme-dark .inventory-table tbody tr:focus,
body.theme-dark .vehicle-item:hover,
body.theme-dark .vehicle-item:focus-within {
  background: #17253a;
}

body.theme-dark .selected-history-title,
body.theme-dark .entries-list .entry-title,
body.theme-dark .entries-list .entry-main strong,
body.theme-dark .entries-list .entry-hours b {
  color: var(--tnvora-surface-cool);
}

body.theme-dark .entries-list .entry-main span,
body.theme-dark .entries-list .entry-actions button {
  color: #c7d6e8;
}

body.theme-dark .entries-list .entry-card {
  border-color: #34465f;
  background: #101a28;
}

body.theme-dark .entries-list .entry-card .date-tile {
  color: var(--tnvora-white);
  background: #22334c;
}

.daily-note-form,
.daily-note-form label,
.daily-note-form textarea,
.daily-note-actions {
  width: 100%;
  max-width: 100%;
}

.admin-user-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.24);
}

.admin-user-create-heading,
.admin-user-panel-heading,
.admin-user-card-header {
  display: flex;
  align-items: center;
}

.admin-user-create-fields input {
  width: 100%;
}

.admin-user-create-submit .primary-button {
  min-width: 230px;
}

.admin-user-card-header {
  min-width: 0;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.14), rgba(15, 23, 42, 0.05));
}

.admin-user-card-panel,
.admin-user-danger-zone {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-user-card-panel h4 {
  margin: 0 0 10px;
  color: #e8eef7;
  font-size: 0.75rem;
}

body.theme-light .admin-user-form,
body.theme-light .admin-user-row {
  border-color: #d9e3ef;
  background: #f8fafc;
}

body.theme-light .admin-user-create-panel,
body.theme-light .admin-user-card-panel {
  border-color: #dde6f0;
  background: var(--tnvora-white);
}

body.theme-light .admin-user-create-heading strong,
body.theme-light .admin-user-panel-heading h4,
body.theme-light .admin-user-card-panel h4,
body.theme-light .admin-user-facts dd {
  color: #172033;
}

body.theme-light .admin-user-card-header {
  border-bottom-color: #dce6f1;
  background: linear-gradient(135deg, #edf5ff, var(--tnvora-surface-cool));
}

.opsui-panel-header,
.opsui-card-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.opsui-panel-header h2,
.opsui-card-heading h3 {
  margin: 0;
  color: var(--opsui-text);
}

.opsui-panel-header > div > p:last-child,
.opsui-card-heading p {
  margin: 5px 0 0;
  color: var(--opsui-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.leader-analytics-period input {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  border-color: var(--opsui-border-strong);
  border-radius: var(--opsui-radius-small);
  color: var(--opsui-text);
  background: var(--opsui-surface-muted);
}

.leader-technician-status {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid rgba(187, 247, 208, 0.34);
  border-radius: 999px;
  color: #dcfce7;
  background: rgba(6, 95, 70, 0.54);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.opsui-data-card {
  min-width: 0;
  margin: 0;
  padding: 17px;
  border: 1px solid var(--opsui-border);
  border-radius: var(--opsui-radius);
  background: var(--opsui-surface-muted);
}

.opsui-card-heading {
  margin-bottom: 15px;
}

.opsui-card-heading h3 {
  font-size: 0.94rem;
}

.opsui-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--opsui-primary) 52%, transparent);
  border-radius: 999px;
  color: var(--opsui-primary);
  background: var(--opsui-primary-soft);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.opsui-status-pill.signal,
.opsui-status-pill.winner-np {
  border-color: color-mix(in srgb, var(--opsui-signal) 55%, transparent);
  color: var(--opsui-signal);
}

.opsui-status-pill.winner-oc {
  border-color: color-mix(in srgb, var(--opsui-field) 55%, transparent);
  color: var(--opsui-field);
}

.leader-ranking-position,
.leader-table-rank {
  display: inline-grid;
  place-items: center;
  color: var(--opsui-primary);
  background: var(--opsui-primary-soft);
  font-weight: 900;
}

.leader-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.leader-turbine-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  color: var(--opsui-text);
}

.leader-turbine-table th,
.leader-turbine-table td {
  padding: 10px;
  border-bottom: 1px solid var(--opsui-border);
  text-align: left;
  font-size: 0.7rem;
}

.leader-turbine-table th {
  color: var(--opsui-muted);
  background: var(--opsui-surface-raised);
  font-size: 0.61rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.leader-turbine-table th:first-child {
  border-radius: 5px 0 0 5px;
}

.leader-turbine-table th:last-child {
  border-radius: 0 5px 5px 0;
}

.leader-turbine-table td:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.leader-table-rank {
  width: 23px;
  height: 23px;
  border-radius: 4px;
  font-size: 0.6rem;
}

#adminPanel .admin-user-filter-label > input[type="search"] {
  width: 100%;
  color: var(--opsui-text);
  background: var(--opsui-surface-muted);
}

#adminPanel .admin-selected-users {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 8px;
}

#adminPanel .admin-selected-users .collaborator-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name action"
    "login action";
  min-width: 0;
  min-height: 58px;
  gap: 2px 10px;
  align-items: center;
  padding: 10px 11px;
  overflow: hidden;
  border: 1px solid var(--opsui-border);
  border-radius: var(--opsui-radius-small);
  color: var(--opsui-text);
  background: var(--opsui-surface-muted);
}

#adminPanel .admin-selected-users .collaborator-chip b {
  grid-area: name;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#adminPanel .admin-selected-users .collaborator-chip small {
  grid-area: login;
  overflow: hidden;
  color: var(--opsui-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

#adminPanel .admin-selected-users .collaborator-chip button {
  grid-area: action;
  position: static;
  width: auto;
  min-width: 60px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, #e0565b 55%, transparent);
  border-radius: 5px;
  color: #ffb4b8;
  background: rgba(153, 27, 31, 0.18);
  font-size: 0.66rem;
  font-weight: 850;
}

body.theme-light #adminPanel .admin-selected-users .collaborator-chip button {
  color: #a31d25;
  background: var(--tnvora-danger-50);
}

#adminPanel .admin-selected-users .collaborator-chip.selection-person-card {
  grid-template-columns: 42px minmax(0, 1fr) 36px;
  grid-template-areas: "avatar copy action";
  gap: 10px;
  min-height: 66px;
}

#adminPanel .admin-selected-users .collaborator-chip.selection-person-card .selection-person-avatar {
  grid-area: avatar;
}

#adminPanel .admin-selected-users .collaborator-chip.selection-person-card .selection-person-copy {
  display: flex;
  grid-area: copy;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

#adminPanel .admin-selected-users .collaborator-chip.selection-person-card .selection-person-copy b,
#adminPanel .admin-selected-users .collaborator-chip.selection-person-card .selection-person-copy small {
  grid-area: auto;
  width: 100%;
}

#adminPanel .admin-selected-users .collaborator-chip.selection-person-card .selection-icon-button {
  grid-area: action;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  color: #b4232d;
  background: color-mix(in srgb, #e0565b 13%, transparent);
}

body.theme-dark #adminPanel .admin-selected-users .collaborator-chip.selection-person-card .selection-icon-button {
  color: #ffb4b8;
  background: rgba(153, 27, 31, 0.22);
}

#workOrderForm {
  display: grid;
  max-width: 1320px;
  margin-inline: auto;
  gap: 12px;
}

#workOrderForm > label,
#workOrderForm .work-time-range,
#workOrderForm .farm-field,
#workOrderForm .work-order-users,
#workOrderForm .work-order-guests {
  min-width: 0;
}

#workOrderForm input,
#workOrderForm select,
#workOrderForm textarea {
  min-height: 44px;
  border-color: var(--opsui-border-strong);
  border-radius: var(--opsui-radius-small);
}

#workOrderForm .work-time-range {
  gap: 12px;
}

#workOrderForm .farm-field {
  align-items: end;
}

#workOrderForm .favorite-button,
#workOrderForm .secondary-button {
  border-radius: var(--opsui-radius-small);
}

#workOrderForm .single-action-option,
#workOrderForm .work-order-users,
#workOrderForm .work-order-guests {
  border-color: var(--opsui-border);
  border-radius: var(--opsui-radius);
  background: var(--opsui-surface-muted);
}

#workOrderForm .work-order-users legend,
#workOrderForm .work-order-guests legend {
  color: var(--opsui-text);
}

#workOrderForm .work-order-submit-hint {
  margin: 2px 0 -4px;
  padding: 10px 12px;
  border-left: 3px solid var(--opsui-primary);
  color: var(--opsui-muted);
  background: var(--opsui-primary-soft);
}

#workOrderForm > button[type="submit"] {
  min-height: 46px;
  border-radius: var(--opsui-radius-small);
}

#adminFarmManagement .admin-add-farm-form {
  grid-template-columns: minmax(260px, 560px) minmax(150px, 220px);
  max-width: 800px;
  margin-bottom: 12px;
}

#adminFarmManagement .farm-turbine-list-field,
#adminFarmManagement .farm-numbering-builder,
#adminFarmManagement .admin-add-farm-form > button[type="submit"] {
  grid-column: 1 / -1;
}

#adminFarmManagement .farm-numbering-builder {
  display: grid;
  grid-template-columns: minmax(130px, 1.5fr) repeat(3, minmax(80px, 0.65fr)) auto;
  align-items: end;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--opsui-border);
  border-radius: var(--opsui-radius-small);
  color: var(--opsui-text);
  background: var(--opsui-surface-muted);
}

#adminFarmManagement .farm-numbering-builder legend {
  padding: 0 6px;
  color: var(--opsui-muted);
  font-weight: 800;
}

#adminFarmManagement .admin-farm-row textarea {
  min-height: 82px;
  resize: vertical;
  border-color: var(--opsui-border-strong);
  border-radius: var(--opsui-radius-small);
  color: var(--opsui-text);
  background: var(--opsui-surface);
}

.panel,
.history-section,
.summary-card,
.daily-note,
.deadline-alerts,
.admin-users,
.admin-toolbar,
.admin-heading,
.admin-summary {
  border-color: var(--opsui-border);
  border-radius: var(--opsui-radius);
  color: var(--opsui-text);
}

.panel,
.history-section,
.summary-card,
.daily-note,
.deadline-alerts,
.admin-users {
  background: var(--opsui-surface);
  box-shadow: var(--ops-shadow);
}

.section-title,
.admin-users-heading,
.admin-heading,
.analytics-section-heading,
.vehicle-row-heading,
.deadline-alerts-heading {
  min-width: 0;
  margin-bottom: 15px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--opsui-border);
}

.section-title h2,
.section-title h3,
.admin-users-heading h3,
.admin-heading h2,
.analytics-section-heading h3,
.deadline-alerts-heading h3 {
  margin: 2px 0 0;
  color: var(--opsui-text);
  font-size: clamp(0.95rem, 1.15vw, 1.12rem);
  letter-spacing: -0.015em;
}

.form-hint,
.panel-description,
.analytics-section-heading p,
.admin-users-heading p,
.empty-state p {
  color: var(--opsui-muted);
  line-height: 1.45;
}

.primary-button,
.export-button {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--opsui-primary);
  border-radius: var(--opsui-radius-small);
  color: var(--tnvora-white);
  background: var(--opsui-primary);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--opsui-primary) 24%, transparent);
  font-size: 0.72rem;
  font-weight: 900;
}

.primary-button:hover,
.primary-button:focus-visible,
.export-button:hover,
.export-button:focus-visible {
  border-color: color-mix(in srgb, var(--opsui-primary) 76%, var(--tnvora-white));
  background: color-mix(in srgb, var(--opsui-primary) 84%, #075cc4);
  transform: translateY(-1px);
}

.secondary-button,
.import-file-button,
.edit-inline-button,
.work-order-download-button,
.history-month-arrow,
.favorite-button,
.text-button {
  min-height: 38px;
  border: 1px solid var(--opsui-border-strong);
  border-radius: var(--opsui-radius-small);
  color: var(--opsui-text);
  background: var(--opsui-surface-raised);
  box-shadow: none;
  font-size: 0.69rem;
  font-weight: 850;
}

.secondary-button:hover,
.secondary-button:focus-visible,
.import-file-button:hover,
.import-file-button:focus-visible,
.edit-inline-button:hover,
.edit-inline-button:focus-visible,
.work-order-download-button:hover,
.work-order-download-button:focus-visible,
.history-month-arrow:hover,
.history-month-arrow:focus-visible,
.favorite-button:hover,
.favorite-button:focus-visible {
  border-color: var(--opsui-primary);
  color: var(--opsui-primary);
  background: var(--opsui-primary-soft);
}

.small-button {
  min-height: 34px;
  padding: 7px 11px;
}

.danger-action,
.danger-button,
.delete-user,
.entry-delete-action {
  border-color: color-mix(in srgb, var(--ops-danger) 56%, transparent);
  color: #ffb9bd;
  background: color-mix(in srgb, var(--ops-danger) 17%, transparent);
  box-shadow: none;
}

body.theme-light :is(.danger-action, .danger-button, .delete-user, .entry-delete-action) {
  color: #a51f27;
  background: var(--tnvora-danger-50);
}

button:disabled,
.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.5;
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
}

.boss-history-table-wrap,
.analytics-table-wrap,
.inventory-table-wrap,
.sms-settings-table-wrap,
.leader-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border-radius: var(--opsui-radius);
}

:is(
  .vehicle-row,
  .vehicle-item,
  .entry-card,
  .admin-entry,
  .problem-report-item,
  .client-log-item,
  .sms-queue-item,
  .pending-report-card,
  .admin-work-order,
  .vacation-user-day-row,
  .deadline-alert,
  .notebook-item
) {
  min-width: 0;
  border: 1px solid var(--opsui-border);
  border-radius: var(--opsui-radius-small);
  color: var(--opsui-text);
  background: var(--opsui-surface-muted);
  box-shadow: none;
}

:is(
  .vehicle-row,
  .vehicle-item,
  .entry-card,
  .admin-entry,
  .problem-report-item,
  .client-log-item,
  .sms-queue-item,
  .pending-report-card,
  .admin-work-order,
  .vacation-user-day-row,
  .deadline-alert,
  .notebook-item
):hover {
  border-color: color-mix(in srgb, var(--opsui-primary) 42%, var(--opsui-border));
  background: color-mix(in srgb, var(--opsui-primary) 5%, var(--opsui-surface-muted));
}

.date-tile,
.admin-panel-icon,
.inventory-table .inventory-name::before {
  border-radius: var(--opsui-radius-small);
  color: var(--opsui-primary);
  background: var(--opsui-primary-soft);
}

.type-badge,
.presence-badge,
.deadline-status,
.admin-badge,
.role-badge,
.expense-meta-pill {
  border: 1px solid var(--opsui-border-strong);
  border-radius: 999px;
  color: var(--opsui-muted);
  background: var(--opsui-surface-raised);
  box-shadow: none;
}

.boss-dashboard-tabs,
.analytics-tabs,
.analytics-range,
.work-hours-tabs,
.history-view-toggle {
  padding: 4px;
  border: 1px solid var(--opsui-border);
  border-radius: var(--opsui-radius);
  background: var(--opsui-surface-muted);
}

:is(
  .boss-dashboard-tab,
  .analytics-tab,
  .analytics-range-button,
  .work-hours-tab,
  .history-view-button
) {
  min-height: 36px;
  border: 0;
  border-radius: var(--opsui-radius-small);
  color: var(--opsui-muted);
  background: transparent;
  box-shadow: none;
  font-size: 0.69rem;
  font-weight: 900;
}

:is(
  .boss-dashboard-tab,
  .analytics-tab,
  .analytics-range-button,
  .work-hours-tab,
  .history-view-button
).active {
  color: var(--tnvora-white);
  background: var(--opsui-primary);
  box-shadow: 0 6px 15px color-mix(in srgb, var(--opsui-primary) 22%, transparent);
}

.calendar-weekdays {
  color: var(--opsui-muted);
  background: var(--opsui-surface-raised);
  border-radius: var(--opsui-radius-small);
}

.calendar-day {
  min-height: 42px;
  border: 1px solid var(--opsui-border);
  border-radius: var(--opsui-radius-small);
  color: var(--opsui-text);
  background: var(--opsui-surface-muted);
  box-shadow: none;
}

.calendar-day:hover,
.calendar-day:focus-visible {
  border-color: var(--opsui-primary);
  color: var(--opsui-primary);
  background: var(--opsui-primary-soft);
}

.calendar-day.selected,
.calendar-day.complete {
  border-color: var(--opsui-primary);
  color: var(--tnvora-white);
  background: var(--opsui-primary);
}

.calendar-day.has-vacation {
  border-color: var(--ops-warning);
}

.vehicle-content,
.analytics-section,
.client-ranking-section,
.analytics-chart-section,
.coordinator-leader-card,
.admin-user-card-panel,
.admin-user-create-panel {
  min-width: 0;
  border-color: var(--opsui-border);
  border-radius: var(--opsui-radius);
  color: var(--opsui-text);
  background: var(--opsui-surface-muted);
}

.analytics-chart-bar,
.client-ranking-bar,
.analytics-progress-bar {
  overflow: hidden;
  border-radius: 3px;
  background: var(--opsui-surface-raised);
}

.analytics-chart-bar > i,
.client-ranking-bar > i,
.analytics-progress-bar > i {
  background: linear-gradient(90deg, var(--opsui-primary), var(--opsui-signal));
}

.empty-state,
.empty-order-list,
.opsui-empty-state,
.tnwind-empty-state {
  min-width: 0;
  padding: 22px;
  border: 1px dashed var(--opsui-border-strong);
  border-radius: var(--opsui-radius);
  color: var(--opsui-muted);
  background: color-mix(in srgb, var(--opsui-surface-muted) 78%, transparent);
  text-align: center;
}

.error-message:not(:empty),
.form-error:not(:empty),
.auth-error:not(:empty) {
  padding: 9px 11px;
  border: 1px solid color-mix(in srgb, var(--ops-danger) 45%, transparent);
  border-radius: var(--opsui-radius-small);
  color: #ffb9bd;
  background: color-mix(in srgb, var(--ops-danger) 12%, transparent);
}

body.theme-light :is(.error-message:not(:empty), .form-error:not(:empty), .auth-error:not(:empty)) {
  color: #a51f27;
  background: var(--tnvora-danger-50);
}

#dailyNote,
#summaryPanel,
#deadlineAlerts {
  border-color: var(--opsui-border);
  border-radius: var(--opsui-radius);
  color: var(--opsui-text);
  background: var(--opsui-surface);
  box-shadow: var(--ops-shadow);
}

.top-action-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.top-action-button svg,
.side-utility-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-utility-button,
.side-logout-button {
  display: flex;
  align-items: center;
  gap: 12px;
}

.side-utility-button .side-utility-icon {
  color: var(--blue);
}

.side-logout-button {
  justify-content: center;
}

.side-logout-button .side-utility-icon {
  color: var(--tnvora-white);
}

.admin-overview-heading,
.admin-overview-card-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-overview-heading h2,
.admin-overview-card-heading h3 {
  margin: 2px 0 0;
  color: var(--opsui-text);
}

.admin-live-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--ops-success) 40%, var(--opsui-border));
  border-radius: 999px;
  color: var(--ops-success);
  background: color-mix(in srgb, var(--ops-success) 10%, var(--opsui-surface-raised));
  font-size: 0.62rem;
  font-weight: 950;
  white-space: nowrap;
}

.admin-live-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ops-success) 16%, transparent);
}

.admin-overview-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--opsui-border);
  border-radius: var(--opsui-radius);
  background: var(--opsui-surface-muted);
}

.admin-overview-card-heading {
  align-items: center;
  margin-bottom: 13px;
}

.admin-overview-card-heading h3 {
  font-size: 0.93rem;
}

.admin-overview-card-description {
  max-width: 760px;
  margin: 5px 0 0;
  color: var(--opsui-muted);
  font-size: 0.66rem;
  line-height: 1.45;
}

.admin-overview-audit-card {
  grid-column: 1 / -1;
}

.admin-overview-role-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--opsui-border);
  border-radius: var(--opsui-radius-small);
  background: color-mix(in srgb, var(--opsui-surface-raised) 78%, transparent);
}

.admin-overview-role-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.admin-overview-role-card > header div,
.admin-overview-role-row > span:nth-child(2),
.admin-overview-role-row > strong {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.admin-overview-role-card > header b { font-size: 0.7rem; }

.admin-overview-role-card > header small,
.admin-overview-role-card > header em {
  color: var(--opsui-muted);
  font-size: 0.58rem;
  font-style: normal;
}

.admin-overview-role-card > header em {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--opsui-primary-soft);
  white-space: nowrap;
}

.work-order-database-card {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 15px;
  overflow: hidden;
  border-left: 4px solid var(--ops-warning);
}

.work-order-database-card.status-signed {
  border-left-color: var(--opsui-primary);
}

.work-order-database-card.status-closed {
  border-left-color: var(--ops-success);
}

.work-order-database-card-head {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.work-order-database-card-head > div {
  min-width: 0;
}

.work-order-database-card h4,
.work-order-database-card p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.work-order-database-card h4 {
  color: var(--opsui-text);
  font-size: 0.96rem;
}

.work-order-database-card-head p {
  margin-top: 4px;
  color: var(--opsui-muted);
  font-size: 0.68rem;
}

.work-order-status-badge {
  flex: 0 0 auto;
  max-width: 170px;
  padding: 6px 9px;
  border: 1px solid var(--opsui-border-strong);
  border-radius: 999px;
  color: var(--opsui-text);
  background: var(--opsui-surface-raised);
  font-size: 0.59rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.work-order-incomplete-dialog {
  width: min(560px, calc(100vw - 28px)) !important;
  max-width: 560px !important;
  border: 2px solid var(--tnvora-danger-600) !important;
  color: #450a0a !important;
  background: #fff7f7 !important;
}

body.theme-dark .work-order-incomplete-dialog {
  color: var(--tnvora-danger-100) !important;
  background: #2b1015 !important;
}

body.theme-dark .history-calendar .calendar-day.saturday:disabled,
body.theme-dark .history-calendar .calendar-day.saturday {
  border-color: #eab308;
  color: #fef08a;
  background: #3a3112;
}

body.theme-dark .history-calendar .calendar-day:is(.sunday, .holiday):disabled,
body.theme-dark .history-calendar .calendar-day:is(.sunday, .holiday) {
  border-color: var(--tnvora-danger-500);
  color: #fecaca;
  background: #3a171b;
}

body.theme-dark .history-calendar .calendar-day.selected {
  color: var(--opsui-text);
  outline: 3px solid rgba(79, 155, 255, 0.46);
  outline-offset: 3px;
}

.pl-calendar-dialog {
  width: min(480px, calc(100vw - 24px));
  max-width: 480px;
  max-height: min(720px, calc(100dvh - 24px));
  margin: auto;
  padding: 18px;
  overflow: auto;
  border: 1px solid var(--opsui-border);
  border-radius: 20px;
  color: var(--opsui-text);
  background: var(--opsui-surface);
  box-shadow: 0 28px 80px rgba(7, 14, 25, 0.34);
}

.pl-calendar-dialog::backdrop {
  background: rgba(5, 12, 22, 0.68);
  backdrop-filter: blur(4px);
}

.pl-calendar-header {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px 52px;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.pl-calendar-header .pl-calendar-title {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 10px;
  color: var(--opsui-text);
  font-size: 1.08rem;
  text-align: center;
}

.pl-calendar-header .pl-calendar-title::after {
  margin-left: 8px;
  color: var(--opsui-primary);
  content: "▾";
}

.pl-calendar-year-picker {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 10px;
  margin: -4px 60px 14px;
  padding: 12px;
  border: 1px solid var(--opsui-primary);
  border-radius: 13px;
  background: var(--opsui-primary-soft);
}

.pl-calendar-year-picker[hidden] {
  display: none !important;
}

.pl-calendar-year-picker label {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  align-items: center;
  margin: 0;
  color: var(--opsui-text);
  font-weight: 900;
}

.pl-calendar-year-picker select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  color: var(--opsui-text);
  background: var(--opsui-surface);
}

.pl-calendar-header button {
  min-width: 52px;
  min-height: 52px;
  padding: 0;
  border: 1px solid var(--opsui-border);
  border-radius: 13px;
  color: var(--opsui-text);
  background: var(--opsui-surface-muted);
  font-size: 1.55rem;
  font-weight: 900;
}

.pl-calendar-header button:disabled {
  opacity: 0.36;
}

.pl-calendar-close {
  color: var(--danger) !important;
}

.pl-calendar-weekdays,
.pl-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.pl-calendar-days {
  grid-template-rows: repeat(6, 50px);
}

.pl-calendar-empty {
  min-width: 0;
  min-height: 0;
  pointer-events: none;
}

.pl-calendar-weekdays {
  margin-bottom: 8px;
}

.pl-calendar-weekdays span {
  padding: 6px 0;
  color: var(--opsui-text-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.pl-calendar-day {
  min-width: 0;
  min-height: 50px;
  padding: 0;
  border: 1px solid var(--opsui-border);
  border-radius: 12px;
  color: var(--opsui-text);
  background: var(--opsui-surface-muted);
  font-size: 1rem;
  font-weight: 900;
}

.pl-calendar-day:hover,
.pl-calendar-day:focus-visible {
  border-color: var(--opsui-primary);
  color: var(--opsui-primary);
  outline: 3px solid rgba(20, 121, 247, 0.18);
  outline-offset: 1px;
}

.pl-calendar-day.today {
  box-shadow: inset 0 0 0 2px var(--opsui-primary);
}

.pl-calendar-day.selected {
  border-color: var(--opsui-primary);
  color: var(--tnvora-white);
  background: var(--opsui-primary);
}

.pl-calendar-day.saturday {
  border-color: #eab308;
}

.pl-calendar-day.sunday {
  border-color: var(--tnvora-danger-500);
}

.pl-calendar-day:disabled {
  cursor: not-allowed;
  opacity: 0.28;
}

body.theme-dark .pl-calendar-dialog {
  color: var(--tnvora-surface-cool);
  background: #101b2a;
}

body.theme-dark .pl-calendar-header button,
body.theme-dark .pl-calendar-day {
  color: var(--tnvora-surface-cool);
  background: #18283d;
}

body.theme-dark .pl-calendar-year-picker {
  border-color: #3b82f6;
  background: #142a43;
}

body.theme-dark .pl-calendar-year-picker select {
  border-color: #56708f;
  color: var(--tnvora-surface-cool);
  background: #18283d;
}

@media (min-width: 980px) {
  .app-shell.desktop-layout.route-mode-active > #expensesPanel.app-route-active,
  .app-shell.desktop-layout.route-mode-active > #historyPanel.app-route-active,
  .app-shell.desktop-layout.route-mode-active > #vacationPanel.app-route-active {
    grid-column: 2 / -1 !important;
    width: 100% !important;
    max-width: none !important;
  }

  body.desktop-menu-collapsed .app-shell.desktop-layout.route-mode-active > #expensesPanel.app-route-active,
  body.desktop-menu-collapsed .app-shell.desktop-layout.route-mode-active > #historyPanel.app-route-active,
  body.desktop-menu-collapsed .app-shell.desktop-layout.route-mode-active > #vacationPanel.app-route-active {
    grid-column: 1 / -1 !important;
  }
}

.employee-current-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid #94a3b8;
  border-radius: 14px;
}

.employee-current-status.working {
  color: #ecfdf5;
  border-color: #166534;
  background: #064e3b;
}

.history-calendar .calendar-day.has-employee-time {
  box-shadow: inset 0 0 0 2px rgba(20, 184, 166, 0.55);
}

.employee-time-calendar-card {
  border-color: rgba(20, 184, 166, 0.58);
}

.boss-vacation-table tr[data-vacation-user] {
  cursor: pointer;
}

.available-workers-list .boss-technician-card {
  min-width: 0;
  min-height: 86px;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 4px 12px;
  align-content: center;
}

.available-workers-list .boss-technician-card > i {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: start;
  margin-top: 8px;
}

.boss-technician-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.available-workers-list .boss-technician-card strong,
.available-workers-list .boss-technician-card b,
.available-workers-list .boss-technician-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.available-workers-list .boss-technician-card strong {
  line-height: 1.25;
}

.available-workers-list .boss-technician-card b {
  color: #f0fdf4;
  font-size: 0.94rem;
}

.available-workers-list .boss-technician-card small {
  color: #bbf7d0;
  font-size: 0.84rem;
  font-weight: 850;
}

.available-workers-list .boss-technician-status {
  display: inline-grid;
  min-height: 28px;
  padding: 4px 9px;
  place-items: center;
  border: 1px solid rgba(187, 247, 208, 0.42);
  border-radius: 999px;
  color: #ecfdf5;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.available-workers-list .boss-technician-card.is-assigned {
  border-color: #0d9488;
  background: linear-gradient(135deg, #115e59, #064e3b);
}

.available-workers-list .boss-technician-card.is-assigned > i {
  background: #5eead4;
  box-shadow: 0 0 0 6px rgba(94, 234, 212, 0.16);
}

.available-workers-list .boss-technician-card.is-assigned .boss-technician-status {
  border-color: rgba(153, 246, 228, 0.5);
  color: #ccfbf1;
}

.admin-user-create-disclosure .admin-user-form {
  margin: 0 12px 12px;
}

.admin-account-toolbar input,
.admin-account-toolbar select {
  width: 100%;
  min-width: 0;
}

.admin-account-toolbar .secondary-button {
  min-height: 43px;
  white-space: nowrap;
}

.admin-user-card-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 72px;
  padding: 10px 12px;
  border-bottom: 0;
}

.admin-user-card-header .admin-user-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-user-card-header .admin-user-name > strong {
  flex: 0 0 100%;
  overflow: hidden;
  color: #f8fafc;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-card-header .admin-user-name > small {
  flex: 0 0 100%;
  overflow: hidden;
  color: #8fa1b8;
  font-size: 0.65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-quick-actions button {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(96, 165, 250, 0.34);
  border-radius: 9px;
  color: var(--tnvora-line-blue);
  background: rgba(37, 99, 235, 0.16);
  font-size: 0.66rem;
  font-weight: 850;
  white-space: nowrap;
}

.admin-users-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 10px 2px 2px;
  color: #8fa1b8;
  font-size: 0.68rem;
}

.admin-users-pagination > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-users-pagination b {
  color: var(--tnvora-line-blue);
  font-size: 0.68rem;
}

.sms-gateway-card {
  display: block;
  padding: 0;
  overflow: hidden;
}

.sms-gateway-card[open] .sms-gateway-summary-action::after {
  content: " −";
}

.sms-gateway-content > .form-hint {
  margin-top: 14px;
}

body.theme-light .admin-user-create-disclosure > summary,
body.theme-light .admin-account-list-summary strong,
body.theme-light .admin-users-pagination b,
body.theme-light .admin-user-card-header .admin-user-name > strong {
  color: #172033;
}

body.theme-light .admin-user-quick-actions button {
  border-color: #b8d1ec;
  color: #0b5fc3;
  background: #edf5ff;
}

.notebook-form #notebookRecipient {
  width: 100%;
}

.notebook-form #notebookRecipientLabel[hidden] {
  display: none !important;
}

.available-workers-list .boss-technician-card.is-signature-pending,
#leaderOperationsPanel .leader-technician-location.is-signature-pending {
  border-color: #facc15;
  color: #fffbeb;
  background: linear-gradient(135deg, #854d0e, #713f12);
  box-shadow: 0 12px 28px rgba(133, 77, 14, 0.3);
}

.available-workers-list .boss-technician-card.is-signature-pending > i,
#leaderOperationsPanel .leader-technician-location.is-signature-pending > i {
  background: #fde047;
  box-shadow: 0 0 0 6px rgba(253, 224, 71, 0.2);
}

.available-workers-list .boss-technician-card.is-signature-pending .boss-technician-status,
#leaderOperationsPanel .leader-technician-location.is-signature-pending .leader-technician-status {
  border-color: rgba(254, 240, 138, 0.72);
  color: #422006;
  background: #fde68a;
}

.available-workers-list .boss-technician-card.is-signature-pending b,
.available-workers-list .boss-technician-card.is-signature-pending small,
#leaderOperationsPanel .leader-technician-location.is-signature-pending b,
#leaderOperationsPanel .leader-technician-location.is-signature-pending small {
  color: #fef3c7;
}

.deadline-note-alert {
  border-left: 4px solid var(--blue);
  background: #eaf4ff;
}

body.theme-dark .deadline-note-alert {
  border-color: #4b9cff;
  color: #eaf2ff;
  background: rgba(18, 55, 91, 0.92);
}

.reviews-panel-heading,
.review-alert-column-heading,
.review-alert-card-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reviews-panel-heading h2,
.reviews-panel-heading p,
.review-alert-column-heading h3,
.review-alert-column-heading p {
  margin: 0;
}

.reviews-alert-total,
.review-column-count {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--opsui-border);
  border-radius: 999px;
  color: var(--opsui-muted);
  background: var(--opsui-surface-muted);
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.reviews-alert-total.has-alerts,
.review-column-count.has-alerts {
  border-color: color-mix(in srgb, var(--ops-danger) 45%, transparent);
  color: var(--tnvora-white);
  background: var(--ops-danger);
}

.review-alert-column {
  display: flex;
  min-width: 0;
  min-height: 360px;
  padding: 14px;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--opsui-border);
  border-radius: var(--opsui-radius);
  background: var(--opsui-surface-muted);
}

.review-alert-column-heading {
  min-height: 52px;
  align-items: flex-start;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--opsui-border);
}

.review-alert-column-heading h3 {
  margin-top: 3px;
  font-size: 1rem;
}

.review-alert-column-list {
  display: grid;
  gap: 9px;
  align-content: start;
  flex: 1 1 auto;
}

.review-alert-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--opsui-border);
  border-left-width: 4px;
  border-radius: var(--opsui-radius-small);
  background: var(--opsui-surface);
  box-shadow: 0 7px 17px rgba(4, 12, 24, 0.08);
  width: 100%;
  color: var(--opsui-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.review-alert-card:hover,
.review-alert-card:focus-visible {
  outline: 2px solid var(--tnvora-blue-500);
  outline-offset: 2px;
  transform: translateY(-1px);
}

.review-alert-card.danger {
  border-left-color: var(--ops-danger);
  background: color-mix(in srgb, var(--ops-danger) 8%, var(--opsui-surface));
}

.review-alert-card.warning {
  border-left-color: var(--ops-warning);
  background: color-mix(in srgb, var(--ops-warning) 8%, var(--opsui-surface));
}

.review-alert-card-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.review-alert-card-copy strong,
.review-alert-card-copy span {
  overflow-wrap: anywhere;
}

.review-alert-card-copy strong {
  font-size: 0.88rem;
}

.review-alert-card-copy span,
.review-alert-card-status small {
  color: var(--opsui-muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.review-alert-card-status {
  align-items: flex-end;
}

.review-alert-card-status small {
  max-width: 50%;
}

.review-alert-card-status .deadline-status {
  flex: 0 0 auto;
}

.note-acknowledge-button {
  color: var(--tnvora-white);
  background: #168a4a;
  box-shadow: 0 7px 16px rgba(22, 138, 74, 0.2);
}

.note-acknowledge-button:hover,
.note-acknowledge-button:focus-visible {
  background: #11733d;
}

.deadline-note-alert {
  display: grid;
  gap: 10px;
}

.deadline-note-alert .note-acknowledge-button {
  width: fit-content;
}

.monthly-technician-dialog {
  width: min(560px, calc(100vw - 32px));
  max-width: 560px;
  margin: auto;
  padding: 30px;
  overflow: hidden;
  color: #123b25;
  background:
    radial-gradient(circle at 100% 0, rgba(43, 174, 93, 0.17), transparent 42%),
    #f1fff6;
  border: 2px solid #36a965;
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(4, 37, 20, 0.42);
}

.monthly-technician-dialog::backdrop {
  background: rgba(4, 15, 10, 0.78);
  backdrop-filter: blur(4px);
}

.monthly-technician-dialog .eyebrow {
  margin: 0 0 8px;
  color: #177442;
  letter-spacing: 0.13em;
}

.monthly-technician-dialog h3 {
  margin: 0;
  color: #0d3520;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  line-height: 1.12;
}

body.theme-dark .monthly-technician-dialog {
  color: #eafff1;
  background:
    radial-gradient(circle at 100% 0, rgba(45, 189, 101, 0.2), transparent 42%),
    #10291c;
  border-color: #45bc75;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.66);
}

body.theme-dark .monthly-technician-dialog .eyebrow {
  color: #7ee3a4;
}

body.theme-dark .monthly-technician-dialog h3,
body.theme-dark .monthly-technician-message {
  color: #effff4;
}

.toa-live-badge {
  flex: none;
  padding: 9px 13px;
  border: 1px solid rgba(31, 189, 105, .45);
  border-radius: 999px;
  background: rgba(31, 189, 105, .12);
  color: var(--tnvora-success-700);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.toa-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.toa-table {
  width: 100%;
  min-width: 1220px;
  border-collapse: collapse;
  background: var(--surface);
}

.toa-table th,
.toa-table td {
  padding: 13px 11px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  text-align: left;
}

.toa-table th:last-child,
.toa-table td:last-child {
  border-right: 0;
}

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

.toa-table th {
  background: color-mix(in srgb, var(--surface) 88%, #2684ff 12%);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.toa-table td:first-child b,
.toa-table td:first-child small {
  display: block;
}

.toa-table td:first-child small {
  margin-top: 4px;
  color: var(--muted);
}

.toa-table td:first-child .toa-location {
  margin-top: 6px;
  color: var(--text);
  font-weight: 900;
  letter-spacing: .01em;
}

.toa-document-button {
  display: grid;
  width: 100%;
  min-height: 58px;
  align-content: center;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
}

button.toa-document-button {
  cursor: pointer;
}

.toa-document-button b {
  overflow-wrap: anywhere;
  font-size: 11px;
}

.toa-document-button span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.toa-document-button.ready {
  border-color: rgba(31, 189, 105, .48);
  background: rgba(31, 189, 105, .1);
}

.toa-document-button.ready span {
  color: var(--tnvora-success-700);
}

.toa-document-button.pending {
  opacity: .58;
}

.toa-document-button.canceled {
  border-color: color-mix(in srgb, var(--danger, #d94149) 42%, var(--border));
  background: color-mix(in srgb, var(--danger, #d94149) 7%, var(--surface));
  opacity: .62;
}

.toa-document-button.canceled span {
  color: var(--danger, #c52c35);
}

.toa-complete-package-button {
  display: grid;
  width: 100%;
  min-height: 46px;
  align-content: center;
  gap: 2px;
  padding: 9px 11px;
  border: 1px solid color-mix(in srgb, var(--ops-success, #20b968) 65%, transparent);
  border-radius: 10px;
  color: var(--tnvora-white);
  background: linear-gradient(135deg, #087a43, #16a561);
  box-shadow: 0 8px 18px rgba(8, 122, 67, .18);
  text-align: left;
  cursor: pointer;
}

.toa-complete-package-button b {
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .035em;
}

.toa-complete-package-button span {
  color: rgba(255, 255, 255, .84);
  font-size: 8px;
  font-weight: 750;
  line-height: 1.3;
}

.toa-complete-package-button:hover,
.toa-complete-package-button:focus-visible {
  background: linear-gradient(135deg, #076d3c, #118c53);
  transform: translateY(-1px);
}

.toa-complete-package-button:disabled {
  cursor: wait;
  opacity: .64;
  transform: none;
}

.toa-delete-order-button {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #ef5962;
  border-radius: 10px;
  background: color-mix(in srgb, #d52c36 14%, var(--surface));
  color: #c9232d;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .04em;
  cursor: pointer;
}

.toa-delete-order-button:hover,
.toa-delete-order-button:focus-visible {
  background: #c9232d;
  color: var(--tnvora-white);
}

.toa-delete-order-button:disabled {
  cursor: wait;
  opacity: .6;
}

dialog.toa-dialog {
  width: min(1080px, calc(100vw - 30px));
  max-height: calc(100dvh - 30px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .36);
  overscroll-behavior: contain;
}

dialog.toa-dialog::backdrop {
  background: rgba(3, 9, 18, .78);
  backdrop-filter: blur(5px);
}

.toa-dialog form {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.toa-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--border);
}

.toa-dialog-head h3 {
  margin: 3px 0 4px;
  font-size: clamp(23px, 3vw, 34px);
}

.toa-dialog-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.toa-wide-button {
  width: 100%;
  min-height: 56px;
  font-size: 15px;
  font-weight: 900;
}

.toa-apo-close-button,
.toa-apo-close-button.primary-button {
  min-height: 66px;
  border: 1px solid #42d883;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--tnvora-success-700), #0d6638);
  color: var(--tnvora-white);
  box-shadow: 0 12px 28px rgba(22, 136, 77, .34);
  font-size: clamp(17px, 2.2vw, 22px);
  letter-spacing: .04em;
}

.toa-apo-close-button:hover,
.toa-apo-close-button:focus-visible {
  background: linear-gradient(135deg, #1da55c, #117443);
  transform: translateY(-1px);
}

.toa-apo-close-button:disabled,
.toa-apo-close-button.primary-button:disabled,
body.theme-dark .toa-apo-close-button:disabled,
body.theme-dark .toa-apo-close-button.primary-button:disabled {
  border-color: #42d883 !important;
  color: var(--tnvora-white) !important;
  background: linear-gradient(135deg, var(--tnvora-success-700), #0d6638) !important;
  box-shadow: 0 12px 28px rgba(22, 136, 77, .24) !important;
  opacity: .78 !important;
}

.toa-comment-block textarea {
  grid-column: 1 / -1;
}

.toa-none-button {
  min-width: 90px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--tnvora-success-700);
  color: var(--tnvora-white);
  font-weight: 900;
  cursor: pointer;
}

.work-order-heading-copy {
  max-width: 760px;
  margin: 5px 0 0;
  color: var(--opsui-muted, #7890aa);
  font-size: 0.78rem;
  line-height: 1.45;
}

.work-order-block-title > span:not([data-i18n]),
#workOrderForm fieldset > legend > span:not([data-i18n]) {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--tnvora-white);
  background: linear-gradient(135deg, #2386ff, #1266cb);
  box-shadow: 0 8px 18px rgba(35, 134, 255, 0.24);
  font-size: 0.72rem;
  font-weight: 950;
}

#workOrderForm .work-order-users,
#workOrderForm .work-order-guests {
  padding: 17px;
  box-shadow: 0 10px 26px rgba(3, 12, 24, 0.08);
}

#workOrderForm fieldset > legend {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 0 9px 0 0;
  font-size: 0.82rem;
}

#workOrderForm fieldset > legend > span:not([data-i18n]) {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

#workOrderForm > button[type="submit"] {
  min-height: 52px;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 28px rgba(35, 134, 255, 0.24);
}

.analytics-table-subline {
  display: block;
  margin-top: 3px;
  color: var(--opsui-muted, #8fa4bc);
  font-size: 0.66rem;
  font-weight: 750;
}

.analytics-percent-pill {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  color: #7fe2ad;
  background: rgba(33, 200, 117, 0.14);
  font-size: 0.7rem;
  font-weight: 950;
  white-space: nowrap;
}

.analytics-percent-pill.is-danger {
  color: #ffb7bc;
  background: rgba(239, 68, 68, 0.16);
}

.analytics-client-technician-search input {
  min-height: 40px;
  border: 1px solid rgba(114, 177, 255, 0.26);
  border-radius: 9px;
  color: var(--tnvora-surface-cool);
  background: rgba(8, 20, 34, 0.78);
}

body.theme-light .analytics-client-technician-search input {
  border-color: #cbd9e7;
  color: #172334;
  background: var(--tnvora-white);
}

body.theme-light .analytics-table-subline {
  color: #65788d;
}

.toa-numbered-field input {
  width: 20px;
  height: 20px;
  accent-color: var(--tnvora-success-700);
}

.toa-question input {
  width: 20px;
  height: 20px;
  accent-color: var(--tnvora-success-700);
}

.toa-question textarea {
  grid-column: 1 / -1;
}

body.theme-dark .toa-document-button {
  background: #0f1b2b;
}

body.theme-dark .toa-delete-order-button {
  color: #ff969c;
}

body.theme-dark .toa-table th {
  background: #14243a;
  color: #c3d3e7;
}

body.theme-dark .toa-table,
body.theme-dark .toa-table-wrap {
  background: #0f1b2b;
}

#availableWorkersList .boss-technician-card.is-signature-pending .team-signature-cta,
#leaderAvailableTechniciansList .leader-technician-location.is-signature-pending .team-signature-cta {
  width: 100%;
  min-height: 42px;
  margin-top: 4px;
  padding: 8px 10px;
  line-height: 1.18;
  white-space: normal;
}

body.theme-dark #vacationPanel button.calendar-day {
  border-color: #4a5f79 !important;
  background: #172438 !important;
  color: var(--tnvora-surface-cool) !important;
}

body.theme-dark #vacationPanel button.calendar-day.saturday {
  border-color: #d99a18 !important;
  background: #302711 !important;
  color: #fde68a !important;
}

body.theme-dark #vacationPanel button.calendar-day.holiday {
  border-color: #be4057 !important;
  background: #341923 !important;
  color: #fecdd3 !important;
}

body.theme-dark #vacationPanel button.vacation-day.vacation-team-highlight {
  border-color: #60a5fa !important;
  background: #142f58 !important;
  color: #bfdbfe !important;
}

#vacationPanel button.vacation-day.vacation-selected {
  border-color: #7c3aed !important;
  background: #7c3aed !important;
  color: var(--tnvora-white) !important;
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.28) !important;
}

#vacationPanel button.vacation-day.vacation-selected.vacation-team-highlight {
  border-color: var(--tnvora-white) !important;
  background: #7c3aed !important;
  color: var(--tnvora-white) !important;
  box-shadow: 0 0 0 3px #2563eb, 0 8px 18px rgba(124, 58, 237, 0.28) !important;
}

body.theme-dark #vacationPanel button.vacation-day.vacation-selected {
  border-color: #c084fc !important;
  background: #6d28d9 !important;
  color: var(--tnvora-white) !important;
  box-shadow: 0 0 0 4px rgba(192, 132, 252, 0.22), 0 10px 24px rgba(0, 0, 0, 0.28) !important;
}

body.theme-dark #vacationPanel button.vacation-day.vacation-selected.vacation-team-highlight {
  border-color: var(--tnvora-white) !important;
  background: #6d28d9 !important;
  color: var(--tnvora-white) !important;
  box-shadow: 0 0 0 3px #60a5fa, 0 0 0 7px rgba(192, 132, 252, 0.2) !important;
}

body.theme-dark #vacationPanel button.vacation-person-card.is-active {
  border-color: #3b82f6 !important;
  background: #142f58 !important;
  color: var(--tnvora-line-blue) !important;
}

.tnvora-setup-card,
.tnvora-leader-card,
.tnvora-document-editor,
.tnvora-acceptance-box {
  border: 1px solid #c9d9e8;
  border-radius: 18px;
  background: #f7fbff;
  color: #17212b;
  padding: 18px;
}

.tnvora-setup-card.company-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .65fr);
  gap: 24px;
  align-items: end;
  border-left: 5px solid var(--agreement-blue);
}

.tnvora-setup-card span,
.tnvora-leader-card header span,
.tnvora-editor-heading span,
.tnvora-acceptance-box > div > span {
  color: var(--agreement-blue);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.tnvora-setup-card h3,
.tnvora-leader-card h3,
.tnvora-editor-heading h3,
.tnvora-acceptance-box h3 {
  margin: 4px 0;
}

#tnvoraCompanyForm,
.tnvora-counterparty-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.tnvora-company-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tnvora-company-form button {
  grid-column: 1 / -1;
}

.tnvora-counterparty-details button {
  grid-column: 1 / -1;
}

.tnvora-leader-card {
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.tnvora-leader-card:hover,
.tnvora-leader-card.active {
  border-color: #55a5ec;
  box-shadow: 0 10px 28px rgba(11, 103, 209, .12);
}

.tnvora-leader-card.active {
  transform: translateY(-1px);
}

.tnvora-leader-card header,
.tnvora-editor-heading,
.tnvora-assignment-head,
.tnvora-document-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.tnvora-leader-card header > b,
.tnvora-document-actions b {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: .7rem;
}

.tnvora-leader-card header > b.accepted,
.tnvora-document-actions b.accepted {
  background: #dff8e9;
  color: #056638;
}

.tnvora-leader-card header > b.pending,
.tnvora-document-actions b.pending {
  background: #fff0c8;
  color: #805200;
}

.tnvora-counterparty-form {
  margin: 14px 0;
  padding-top: 14px;
  border-top: 1px solid #d8e4ef;
}

.tnvora-technician-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.tnvora-technician-chips > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 12px;
  border: 1px solid #a8cbea;
  border-radius: 999px;
  background: var(--tnvora-white);
  color: #17324d;
  font-weight: 800;
}

.tnvora-technician-chips button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #ffe6e8;
  color: #aa1d2c;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
}

.tnvora-add-technician select {
  margin-top: 6px;
}

.tnvora-choice-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #c7d7e7;
  border-radius: 12px;
  background: var(--tnvora-white);
  cursor: pointer;
}

.tnvora-choice-card.selected {
  border-color: #1ba467;
  background: #eafaf2;
  box-shadow: inset 4px 0 #1ba467;
}

.tnvora-choice-card input {
  width: 22px;
  height: 22px;
  accent-color: #118e58;
}

.tnvora-choice-card span {
  font-weight: 850;
}

.tnvora-choice-card small {
  color: #66798c;
  font-size: .65rem;
  font-weight: 900;
}

.tnvora-consent input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  accent-color: var(--agreement-green);
}

body.theme-dark .tnvora-setup-card,
body.theme-dark .tnvora-leader-card,
body.theme-dark .tnvora-document-editor,
body.theme-dark .tnvora-acceptance-box,
body.dark-theme .tnvora-setup-card,
body.dark-theme .tnvora-leader-card,
body.dark-theme .tnvora-document-editor,
body.dark-theme .tnvora-acceptance-box {
  border-color: #30465e;
  background: #142337;
  color: #f2f7ff;
}

body.dark-theme .tnvora-leader-card.active {
  border-color: #479ceb;
}

.eip-heading,
.eip-preview-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.eip-heading h2,
.eip-preview-card h3,
.eip-document-card h3 {
  margin: 3px 0 0;
}

.eip-test-badge {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(31, 189, 105, .42);
  border-radius: 999px;
  color: #29c875;
  background: rgba(31, 189, 105, .1);
  font-size: .62rem;
  font-weight: 950;
  white-space: nowrap;
}

.eip-selection-card,
.eip-document-card,
.eip-preview-card {
  min-width: 0;
  border: 1px solid var(--opsui-border, var(--line));
  border-radius: 15px;
  background: var(--opsui-surface-muted, var(--surface-soft));
}

.eip-selection-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
}

.eip-selection-card fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.eip-selection-card legend,
.eip-selection-card label > span {
  display: block;
  margin-bottom: 8px;
  color: var(--opsui-text, var(--text));
  font-size: .69rem;
  font-weight: 950;
}

.eip-selection-card label {
  display: grid;
  min-width: 0;
}

.eip-selection-card select {
  width: 100%;
  min-height: 48px;
  font-size: .76rem;
  font-weight: 850;
}

.eip-selection-card label small {
  margin-top: 6px;
  color: var(--opsui-muted, var(--muted));
  font-size: .61rem;
  line-height: 1.4;
}

.eip-manufacturer-button {
  display: grid;
  min-width: 0;
  min-height: 82px;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  gap: 3px 9px;
  padding: 11px;
  border: 1px solid var(--opsui-border, var(--line));
  border-radius: 12px;
  color: var(--opsui-text, var(--text));
  background: var(--opsui-surface-raised, var(--surface));
  text-align: left;
  cursor: pointer;
}

.eip-manufacturer-button > span {
  display: grid;
  width: 36px;
  height: 36px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 11px;
  color: var(--tnvora-white);
  background: linear-gradient(145deg, #117d52, #21b66f);
  font-size: .95rem;
  font-weight: 950;
}

.eip-manufacturer-button b {
  overflow: hidden;
  font-size: .72rem;
  text-overflow: ellipsis;
}

.eip-manufacturer-button small {
  overflow: hidden;
  color: var(--opsui-muted, var(--muted));
  font-size: .56rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eip-manufacturer-button:hover,
.eip-manufacturer-button:focus-visible,
.eip-manufacturer-button.active {
  border-color: #23b56f;
  background: rgba(31, 189, 105, .12);
  box-shadow: 0 0 0 2px rgba(31, 189, 105, .08);
}

.eip-document-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(31, 189, 105, .13), var(--opsui-surface-muted, var(--surface-soft)) 54%);
}

.eip-document-actions a,
.eip-document-actions button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.eip-document-actions .eip-confirm-document-button {
  grid-column: 1 / -1;
  min-height: 52px;
  border: 1px solid #15803d;
  border-radius: 12px;
  background: linear-gradient(135deg, #15803d, #16a34a);
  color: var(--tnvora-white);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(21, 128, 61, .2);
}

.eip-document-actions .eip-confirm-document-button:hover,
.eip-document-actions .eip-confirm-document-button:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.eip-preview-card {
  overflow: hidden;
  background: var(--opsui-surface-raised, var(--surface));
}

.eip-preview-card > summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
}

.eip-preview-card > summary::-webkit-details-marker {
  display: none;
}

.eip-preview-card[open] > summary {
  border-bottom: 1px solid var(--opsui-border, var(--line));
}

.eip-preview-card > summary span {
  color: var(--opsui-muted, var(--muted));
  font-size: .61rem;
  font-weight: 800;
}

#eipSourceOpenButton,
#eipExecutionSourceDetails {
  display: none !important;
}

.eip-procedure-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.eip-procedure-progress button {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid #c6a35a;
  border-radius: 9px;
  color: #4b3812;
  background: var(--tnvora-white);
  font-weight: 900;
  cursor: pointer;
}

.eip-procedure-progress button.current {
  border-color: #1675dc;
  color: var(--tnvora-white);
  background: #1675dc;
}

.eip-procedure-progress button.reviewed:not(.current) {
  border-color: #16844a;
  color: #0b6236;
  background: #e6f8ee;
}

.eip-procedure-progress button.skipped:not(.current) {
  border-color: #d97706;
  color: #7c3f04;
  background: #fff2d6;
}

.eip-procedure-progress button.incomplete:not(.current):not(.skipped) {
  border-color: var(--tnvora-danger-600);
  color: var(--tnvora-danger-700);
  background: var(--tnvora-danger-50);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, .12);
}

.eip-procedure-missing-list button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 8px;
  min-height: 52px;
  padding: 9px 10px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #7f1d1d;
  background: var(--tnvora-white);
  text-align: left;
  cursor: pointer;
}

.eip-procedure-missing-list button b {
  grid-row: 1 / 3;
  align-self: center;
  color: #b91c1c;
  font-size: .64rem;
}

.eip-procedure-missing-list button span {
  overflow-wrap: anywhere;
  font-size: .66rem;
  font-weight: 900;
}

.eip-procedure-missing-list button small {
  color: #9f1239;
  font-size: .6rem;
}

.eip-procedure-page-skip input[type="checkbox"] {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: #d97706;
}

.eip-procedure-page-skip-reason textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
}

.eip-procedure-date-time input[type="date"] {
  color: #111827;
  font-weight: 850;
  background: var(--tnvora-white);
}

.eip-procedure-action select,
.eip-procedure-action input,
.eip-procedure-action textarea {
  width: 100%;
  min-height: 42px;
}

body.theme-dark .eip-procedure-progress button {
  border-color: #6d7788;
  color: #dbe5f3;
  background: #172234;
}

body.theme-dark .eip-procedure-progress button.reviewed:not(.current) {
  border-color: #37b66f;
  color: #bdf5d2;
  background: #123624;
}

body.theme-dark .eip-procedure-progress button.skipped:not(.current) {
  border-color: #f0a72e;
  color: #ffe4a3;
  background: #432f11;
}

body.theme-dark .eip-procedure-progress button.incomplete:not(.current):not(.skipped) {
  border-color: #fb7185;
  color: #fecdd3;
  background: #4a1721;
}

body.theme-dark .eip-procedure-missing-list button {
  border-color: #7f2f3e;
  color: #ffe4e6;
  background: #1f2937;
}

body.theme-dark .eip-procedure-missing-list button b,
body.theme-dark .eip-procedure-missing-list button small {
  color: #fda4af;
}

body.theme-dark .eip-procedure-page-skip-reason textarea {
  border-color: #8d6a2e;
  color: #fff8e7;
  background: #151f2f;
}

body.theme-dark .eip-procedure-date-time input[type="date"] {
  border-color: #4f7196;
  color: var(--tnvora-white);
  background: #10243a;
  color-scheme: dark;
}

html body .eip-confirm-document-button,
html body #eipCompleteButton,
html body #eipCompletedGoToWorkOrderButton,
html body.theme-dark .eip-confirm-document-button,
html body.theme-dark #eipCompleteButton,
html body.theme-dark #eipCompletedGoToWorkOrderButton,
html body.theme-light .eip-confirm-document-button,
html body.theme-light #eipCompleteButton,
html body.theme-light #eipCompletedGoToWorkOrderButton {
  border: 1px solid #34cf7a !important;
  color: var(--tnvora-white) !important;
  background: linear-gradient(135deg, #159857, #08713e) !important;
  box-shadow: 0 10px 24px rgba(12, 127, 70, .24) !important;
}

html body #eipCompleteButton:disabled {
  opacity: .82;
}

.eip-source-review-confirm input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: #15803d;
}

html body button.toa-apo-close-button.primary-button:disabled,
html body.theme-dark button.toa-apo-close-button.primary-button:disabled,
html body.theme-light button.toa-apo-close-button.primary-button:disabled {
  border-color: #42d883 !important;
  color: var(--tnvora-white) !important;
  background-color: var(--tnvora-success-700) !important;
  background-image: linear-gradient(135deg, var(--tnvora-success-700), #0d6638) !important;
  box-shadow: 0 12px 28px rgba(22, 136, 77, .24) !important;
  opacity: .82 !important;
}

.eip-execution-card {
  display: grid;
  gap: 16px;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid color-mix(in srgb, #2386ff 35%, var(--opsui-border, var(--line)));
  border-left: 5px solid #2386ff;
  border-radius: 18px;
  background: var(--opsui-surface-raised, var(--surface));
  box-shadow: 0 16px 38px rgba(15, 49, 88, .1);
}

.eip-execution-card[hidden] {
  display: none;
}

.eip-execution-heading,
.eip-form-section-heading,
.eip-form-section-heading > div {
  display: flex;
  align-items: center;
}

.eip-execution-heading,
.eip-form-section-heading {
  justify-content: space-between;
  gap: 14px;
}

.eip-execution-heading h3,
.eip-execution-heading p,
.eip-form-section-heading h4 {
  margin: 0;
}

.eip-execution-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid #e4ad24;
  border-radius: 999px;
  color: #805600;
  background: #fff5cf;
  font-size: .65rem;
  font-weight: 950;
}

.eip-execution-badge.complete {
  border-color: #28a868;
  color: #0e6b3b;
  background: #e6f8ef;
}

.eip-form-section {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--opsui-border, var(--line));
  border-radius: 15px;
  background: color-mix(in srgb, var(--opsui-surface-muted, var(--surface-soft)) 70%, transparent);
}

.eip-form-section-heading > div {
  gap: 10px;
}

.eip-form-section-heading > div > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--tnvora-white);
  background: #2386ff;
  font-size: .68rem;
  font-weight: 950;
}

.eip-form-section-heading small {
  color: var(--opsui-muted, var(--muted));
  font-size: .62rem;
}

.eip-step-check input,
.eip-lock-not-required input,
.eip-final-consent input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
}

.eip-step-time input {
  width: 100%;
  min-height: 40px;
}

.eip-lock-row input,
.eip-lock-row select,
#eipLockNotRequiredReason,
#eipExecutionNotes {
  width: 100%;
}

.eip-lock-row input,
.eip-lock-row select {
  min-height: 40px;
}

.eip-document-card .eyebrow,
.eip-preview-card .eyebrow {
  margin: 0;
}

html body #toaApoSubmit.toa-apo-close-button,
html body #toaApoSubmit.toa-apo-close-button:disabled,
html body.theme-dark #toaApoSubmit.toa-apo-close-button,
html body.theme-dark #toaApoSubmit.toa-apo-close-button:disabled,
html body.theme-light #toaApoSubmit.toa-apo-close-button,
html body.theme-light #toaApoSubmit.toa-apo-close-button:disabled {
  border-color: #42d883 !important;
  color: var(--tnvora-white) !important;
  background-color: var(--tnvora-success-700) !important;
  background-image: linear-gradient(135deg, var(--tnvora-success-700), #0d6638) !important;
  box-shadow: 0 12px 28px rgba(22, 136, 77, .28) !important;
}

html body #toaApoSubmit.toa-apo-close-button:disabled,
html body.theme-dark #toaApoSubmit.toa-apo-close-button:disabled,
html body.theme-light #toaApoSubmit.toa-apo-close-button:disabled {
  opacity: .82 !important;
}

html body.theme-dark .pending-report-card > button.pending-report-dismiss,
html body.theme-dark .report-compliance-order-row > button.pending-report-dismiss {
  border-color: #a34c57 !important;
  color: #ffe4e6 !important;
  background: #451c23 none !important;
}

html body.theme-dark .pending-report-card > button.pending-report-dismiss:hover,
html body.theme-dark .pending-report-card > button.pending-report-dismiss:focus-visible,
html body.theme-dark .report-compliance-order-row > button.pending-report-dismiss:hover,
html body.theme-dark .report-compliance-order-row > button.pending-report-dismiss:focus-visible {
  border-color: #fb7185 !important;
  color: var(--tnvora-white) !important;
  background: #692530 none !important;
}

.coordinator-company-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin: 16px 0;
}

.coordinator-company-form label { min-width: 0; }

#workOrderCancelDialog textarea {
  width: 100%;
  resize: vertical;
}

#workOrderCancelDialog .danger-action {
  background: #b4232b;
  color: var(--tnvora-white);
  border-color: #d63a43;
}

.cancelled-work-order-card {
  border-color: #b4232b !important;
  background: var(--tnvora-danger-50) !important;
  color: #54151a !important;
}

.toa-view-switch,
.toa-month-navigation,
.toa-status-legend {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toa-view-switch button {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

.toa-view-switch button.active {
  color: var(--tnvora-white);
  background: linear-gradient(135deg, #126fd0, #218cff);
  box-shadow: 0 7px 16px rgba(18, 111, 208, .24);
}

.toa-status-legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.toa-status-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.toa-status-legend i.complete { background: #168b52; }

.toa-status-legend i.progress { background: #2386f5; }

.toa-calendar-column,
.toa-detail-panel,
.toa-list-view {
  min-width: 0;
}

.toa-calendar,
.toa-detail-panel,
.toa-list-view {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.toa-calendar { padding: 14px; }

.toa-calendar-day {
  display: grid;
  min-width: 0;
  min-height: 94px;
  align-content: space-between;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 94%, #8ca3bb 6%);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.toa-calendar-day:hover,
.toa-calendar-day:focus-visible {
  border-color: #2386f5;
  transform: translateY(-1px);
}

.toa-calendar-day b { font-size: 20px; }

.toa-calendar-day span { color: var(--muted); font-size: 10px; font-weight: 800; }

.toa-calendar-day.progress { border-color: #67aaf6; background: color-mix(in srgb, var(--surface) 76%, #d7eaff 24%); }

.toa-calendar-day.progress b { color: #1167c7; }

.toa-calendar-day.complete { border-color: #55b888; background: color-mix(in srgb, var(--surface) 76%, #d9f6e7 24%); }

.toa-calendar-day.complete b { color: #087746; }

.toa-calendar-day.terminal { border-color: #8794a5; background: color-mix(in srgb, var(--surface) 82%, #dfe5ec 18%); }

.toa-calendar-day.terminal b { color: #4b5969; }

.toa-calendar-day.selected { outline: 3px solid color-mix(in srgb, #2587ff 38%, transparent); outline-offset: 2px; box-shadow: 0 10px 24px rgba(16, 91, 164, .16); }

.toa-day-order-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0; }

.toa-day-order-tabs button {
  flex: none;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--muted);
  background: var(--surface);
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.toa-day-order-tabs button.active { border-color: #2386f5; color: #0e66c6; background: color-mix(in srgb, var(--surface) 85%, #d9ecff 15%); }

.toa-order-summary.selected { box-shadow: 0 0 0 2px color-mix(in srgb, #2587ff 28%, transparent); }

.toa-order-status { flex: none; padding: 6px 8px; border-radius: 999px; color: #0c64bd; background: #deedff; font-size: 9px; font-weight: 950; }

.toa-order-summary.complete .toa-order-status { color: #087747; background: #dcf5e8; }

.toa-order-summary.rejected .toa-order-status,
.toa-order-summary.cancelled .toa-order-status { color: #7d2931; background: #f9dfe2; }

button.toa-stage-action { cursor: pointer; }

.mail-settings-form {
  display: grid;
  gap: 18px;
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 96%, #177be8 4%);
}

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

.mail-form-heading h4 { margin: 3px 0 0; font-size: 20px; }

.mail-mode-card { display: flex; gap: 10px; align-items: flex-start; min-height: 78px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; }

.mail-mode-card.selected { border-color: #2386f5; box-shadow: 0 0 0 2px rgba(35, 134, 245, .14); }

.mail-mode-card span { display: grid; gap: 4px; }

.mail-mode-card b { color: var(--ink); }

.mail-mode-card small { color: var(--muted); }

.mail-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; }

.mail-form-actions .form-hint { margin: 0; }

body.theme-dark .toa-calendar,
body.theme-dark .toa-detail-panel,
body.theme-dark .toa-list-view,
body.theme-dark .mail-settings-form,
body.dark-theme .toa-calendar,
body.dark-theme .toa-detail-panel,
body.dark-theme .toa-list-view,
body.dark-theme .mail-settings-form {
  border-color: #31465f;
  background: #131f2e;
}

body.theme-dark .toa-calendar-day.progress,
body.dark-theme .toa-calendar-day.progress { border-color: #3e83cb; background: #142f4a; }

body.theme-dark .toa-calendar-day.complete,
body.dark-theme .toa-calendar-day.complete { border-color: #2b8c5e; background: #123928; }

body.theme-dark .toa-calendar-day.progress b,
body.dark-theme .toa-calendar-day.progress b { color: #72b8ff; }

body.theme-dark .toa-calendar-day.complete b,
body.dark-theme .toa-calendar-day.complete b { color: #73dca6; }

body.theme-dark .toa-detail-heading > span,
body.theme-dark .toa-order-status,
body.dark-theme .toa-detail-heading > span,
body.dark-theme .toa-order-status { color: #85c4ff; background: #16334f; }

body.theme-dark .toa-order-summary.complete .toa-order-status,
body.dark-theme .toa-order-summary.complete .toa-order-status { color: #8be4b7; background: #143a2a; }

body.theme-dark .mail-mode-card,
body.dark-theme .mail-mode-card { border-color: #31465f; background: #172638; }

.employees-picker-card,
.employees-terms-form,
.employees-terms-form fieldset {
  border: 1px solid #cad9e8;
  border-radius: 16px;
  background: #f7fbff;
}

.employees-picker-card,
.employees-terms-form {
  padding: 18px;
}

.employees-picker-card label,
.employees-terms-form label,
.employees-terms-form legend {
  color: #25364a;
  font-weight: 800;
}

.employees-picker-card select,
.employees-picker-card input,
.employees-terms-form input,
.employees-terms-form select {
  width: 100%;
  min-height: 46px;
  margin-top: 7px;
  border: 1px solid #9fb5cc;
  border-radius: 10px;
  background: var(--tnvora-white);
  color: #102033;
}

.employee-terms-heading .status-badge {
  border: 1px solid #c58b13;
  background: #fff5cf;
  color: #755000;
}

.employee-terms-heading .status-badge.is-saved {
  border-color: #208654;
  background: #dcf8e9;
  color: #0c5c36;
}

.employees-terms-form fieldset {
  min-width: 0;
  margin: 0 0 16px;
  padding: 16px;
}

.employees-terms-form legend {
  padding: 0 8px;
}

.employee-payment-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.employee-payment-cards .checkbox-card {
  min-height: 78px;
  margin: 0;
  border: 1px solid #9fb5cc;
  background: var(--tnvora-white);
  color: #25364a;
}

.employee-payment-cards .checkbox-card span {
  display: grid;
  gap: 4px;
}

.employee-payment-cards .checkbox-card small {
  color: #52677d;
  font-weight: 600;
  line-height: 1.35;
}

.employee-indefinite-option input {
  width: 22px;
  min-height: 22px;
  margin: 0;
}

.work-hours-rates input[readonly],
.employees-terms-form input[readonly] {
  cursor: default;
  background: #eaf1f7;
  color: #26394d;
}

.duty-delegation-card.status-awaiting {
  border-color: #ef8890;
  border-left-color: #d73742;
  background: color-mix(in srgb, var(--surface, var(--tnvora-white)) 92%, #d73742 8%);
}

.duty-delegation-card.status-awaiting > strong { color: #b71f2b; }

.duty-delegation-card.status-active,
.duty-delegation-card.status-planned {
  background: color-mix(in srgb, var(--surface, var(--tnvora-white)) 94%, #139052 6%);
}

.duty-delegation-card.status-planned { border-left-color: #139052; }

.duty-delegation-accept-button {
  width: 100%;
  background: linear-gradient(135deg, #169957, #08713b);
}

.sms-operations-card {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid #c9d8e8;
  border-left: 6px solid #168c54;
  border-radius: 18px;
  background: #f7fbff;
  color: #142033;
  box-shadow: 0 12px 30px rgba(15, 38, 66, 0.08);
}

.sms-operations-card.is-disabled {
  border-left-color: #c93643;
  background: #fff7f7;
}

.sms-operation-status,
.sms-operation-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.sms-operation-status {
  justify-content: space-between;
}

.sms-operation-status-copy strong,
.sms-operation-status-copy small {
  display: block;
}

.sms-operation-status-copy small {
  margin-top: 3px;
  color: #56677c;
}

.sms-operations-card.is-disabled .sms-operation-icon {
  background: #c93643;
}

.sms-operation-actions button {
  min-height: 46px;
}

.sms-operation-actions .danger-button,
.sms-operation-actions .button-danger,
.sms-operation-actions .danger-action {
  color: var(--tnvora-white);
  border-color: #a81f2a;
  background: #b92733;
}

html body .login-logo {
  width: 100%;
  min-height: 112px;
  margin: -4px auto 12px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

html body #loginForm > .primary-button[type="submit"] {
  color: var(--tnvora-white);
  background: linear-gradient(112deg, var(--blue) 0%, #0ea7b5 54%, #63ad3d 100%);
  border: 1px solid rgba(7, 107, 133, 0.34);
  box-shadow: 0 12px 28px rgba(14, 167, 181, 0.22);
}

html body #loginForm > .primary-button[type="submit"]:hover,
html body #loginForm > .primary-button[type="submit"]:focus-visible {
  color: var(--tnvora-white);
  background: linear-gradient(112deg, #0f6fe8 0%, #079aa9 54%, #559d32 100%);
  border-color: #087f9a;
  box-shadow: 0 14px 32px rgba(14, 167, 181, 0.3);
}

html body .cookie-consent-dialog {
  position: fixed;
  inset: auto 18px 18px auto;
  width: min(430px, calc(100vw - 36px));
  max-width: 430px;
  max-height: min(82dvh, 640px);
  margin: 0;
  padding: 0;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(36, 111, 133, 0.22);
  box-shadow: 0 20px 54px rgba(4, 27, 43, 0.22);
}

html body .cookie-consent-form {
  padding: 15px;
}

html body .cookie-consent-dialog h2 {
  margin: 0 0 7px;
  font-size: 1.18rem;
  line-height: 1.16;
}

html body .cookie-consent-dialog p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

html body .cookie-consent-actions button {
  min-height: 38px;
  padding: 7px 8px;
  font-size: 0.7rem;
  line-height: 1.15;
  border-radius: 10px;
}

html body #loginForm > .primary-button[type="submit"] {
  color: var(--tnvora-white) !important;
  border-color: var(--blue) !important;
  background: var(--blue) !important;
  box-shadow: 0 9px 20px rgba(20, 121, 247, 0.24) !important;
}

html body #loginForm > .primary-button[type="submit"]:hover,
html body #loginForm > .primary-button[type="submit"]:focus-visible {
  color: var(--tnvora-white) !important;
  border-color: #0969db !important;
  background: #0969db !important;
  box-shadow: 0 11px 24px rgba(20, 121, 247, 0.3) !important;
}

html body .cookie-consent-dialog {
  z-index: 2147483000;
}

.toa-day-order-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  padding: 2px 0;
}

.toa-day-order-tabs .toa-day-order-option {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 62px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-left: 4px solid #2386f5;
  border-radius: 11px;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
}

.toa-day-order-option-status {
  padding: 5px 7px;
  border-radius: 999px;
  color: #0c64bd;
  background: #deedff;
  font-size: 8px;
  font-weight: 950;
  white-space: nowrap;
}

.toa-day-order-option.complete .toa-day-order-option-status { color: #087747; background: #dcf5e8; }

.toa-day-order-option.closed-incomplete .toa-day-order-option-status { color: #8b5700; background: #fff0c2; }

.toa-day-order-option.rejected .toa-day-order-option-status,
.toa-day-order-option.cancelled .toa-day-order-option-status { color: #7d2931; background: #f9dfe2; }

.toa-order-summary.closed-incomplete .toa-order-status { color: #8b5700; background: #fff0c2; }

body.theme-dark .toa-day-order-option-status,
body.dark-theme .toa-day-order-option-status { color: #85c4ff; background: #16334f; }

body.theme-dark .toa-day-order-option.complete .toa-day-order-option-status,
body.dark-theme .toa-day-order-option.complete .toa-day-order-option-status { color: #8be4b7; background: #143a2a; }

body.theme-dark .toa-day-order-option.closed-incomplete .toa-day-order-option-status,
body.dark-theme .toa-day-order-option.closed-incomplete .toa-day-order-option-status,
body.theme-dark .toa-order-summary.closed-incomplete .toa-order-status,
body.dark-theme .toa-order-summary.closed-incomplete .toa-order-status { color: #ffd276; background: #4a3514; }

body.theme-dark .toa-calendar-day.terminal,
body.dark-theme .toa-calendar-day.terminal { border-color: #748399; background: #202b39; }

body.theme-dark .toa-calendar-day.terminal b,
body.dark-theme .toa-calendar-day.terminal b { color: #d2dae5; }

body.theme-dark .toa-day-order-option.rejected .toa-day-order-option-status,
body.dark-theme .toa-day-order-option.rejected .toa-day-order-option-status,
body.theme-dark .toa-day-order-option.cancelled .toa-day-order-option-status,
body.dark-theme .toa-day-order-option.cancelled .toa-day-order-option-status,
body.theme-dark .toa-order-summary.rejected .toa-order-status,
body.dark-theme .toa-order-summary.rejected .toa-order-status,
body.theme-dark .toa-order-summary.cancelled .toa-order-status,
body.dark-theme .toa-order-summary.cancelled .toa-order-status { color: #ffb8bf; background: #4b2228; }

.observer-private-badge,
.observer-live-state {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .05em;
}

.observer-private-badge { color: #075d68; background: #dcf7f6; border: 1px solid #9bdedc; }

.observer-analytics-table-wrap { overflow-x: auto; border: 1px solid #c5dfe4; border-radius: 14px; background: var(--tnvora-white); }

.observer-analytics-table { width: 100%; min-width: 760px; border-collapse: collapse; }

/* Aggregate MAIN tables contain no person-detail columns; keep counts visible on phones. */
.control-analysis-table { min-width: 0; table-layout: fixed; }
.control-analysis-table th, .control-analysis-table td { overflow-wrap: anywhere; }
table.control-analysis-table td:first-child { display: table-cell; }

.observer-analytics-table th,
.observer-analytics-table td { padding: 11px 12px; border-bottom: 1px solid #dbe9ec; text-align: left; vertical-align: middle; }

.observer-analytics-table th { color: #5b727e; background: #eef7f8; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }

.observer-analytics-table td { color: #294956; font-size: 11px; }

.observer-analytics-table tbody tr:last-child td { border-bottom: 0; }

.observer-analytics-table td:first-child { display: grid; gap: 3px; }

.observer-analytics-table td:first-child small { color: #718792; font-size: 9px; }

.observer-role-pill { display: inline-flex; padding: 4px 7px; border-radius: 999px; color: #08727a; background: #def4f3; font-size: 9px; font-weight: 900; }

.observer-now-card {
  padding: 18px;
  border: 1px solid #bcdfe0;
  border-radius: 16px;
  background: linear-gradient(135deg, #f1fbfb, var(--tnvora-white));
}

body.theme-dark .observer-private-badge,
body.dark-theme .observer-private-badge { color: #8af1ec; background: #12383d; border-color: #286267; }

body.theme-dark .observer-analytics-table-wrap,
body.dark-theme .observer-analytics-table-wrap { border-color: #2d4b5d; background: #172838; }

body.theme-dark .observer-analytics-table th,
body.dark-theme .observer-analytics-table th { color: #a7bdc7; background: #1d3445; }

body.theme-dark .observer-analytics-table td,
body.dark-theme .observer-analytics-table td { color: #e8f4f7; border-color: #2b4657; }

body.theme-dark .observer-analytics-table td:first-child small,
body.dark-theme .observer-analytics-table td:first-child small { color: #91aab6; }

body.theme-dark .observer-role-pill,
body.dark-theme .observer-role-pill { color: #8cece6; background: #174047; }

body.theme-dark .observer-now-card,
body.dark-theme .observer-now-card { border-color: #31596a; background: linear-gradient(135deg, #142c39, #132235); }

.admin-pending-report-card {
  display: grid;
  grid-template-columns: minmax(180px, .9fr) minmax(250px, 1.35fr) auto minmax(230px, auto);
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid #c9dce4;
  border-radius: 14px;
  background: var(--tnvora-white);
  color: #173344;
}

.admin-pending-report-card.has-day-report { border-left: 4px solid #e6a20b; }

.admin-pending-report-card strong { color: #102b3b; overflow-wrap: anywhere; }

.admin-pending-report-card small { color: #607887; font-size: .69rem; overflow-wrap: anywhere; }

.admin-pending-report-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid #e6c46e;
  border-radius: 999px;
  background: #fff7dc;
  color: #815d00;
  font-size: .62rem;
  font-weight: 900;
}

.admin-pending-report-actions button { width: auto; min-height: 38px; padding: 8px 12px; }

.danger-outline-button {
  border: 1px solid #d96b6b;
  background: #fff5f5;
  color: #a51f2b;
}

.danger-outline-button:hover,
.danger-outline-button:focus-visible { border-color: #b91c2b; background: #ffe7e9; color: #8f1421; }

body.theme-dark .admin-pending-reports-heading h3,
body.dark-theme .admin-pending-reports-heading h3,
body.theme-dark .admin-pending-report-card strong,
body.dark-theme .admin-pending-report-card strong { color: #f4fcfd; }

body.theme-dark .admin-pending-reports-heading p,
body.dark-theme .admin-pending-reports-heading p,
body.theme-dark .admin-pending-report-card small,
body.dark-theme .admin-pending-report-card small { color: #adc5cf; }

body.theme-dark .admin-pending-report-card,
body.dark-theme .admin-pending-report-card {
  border-color: #31556a;
  background: #162a3b;
  color: #edf9fb;
}

body.theme-dark .admin-pending-report-status,
body.dark-theme .admin-pending-report-status {
  border-color: #9a7415;
  background: #4a390b;
  color: #ffe7a1;
}

body.theme-dark .danger-outline-button,
body.dark-theme .danger-outline-button {
  border-color: #a84a56;
  background: #451d27;
  color: #ffd7dc;
}

body.theme-dark .danger-outline-button:hover,
body.dark-theme .danger-outline-button:hover,
body.theme-dark .danger-outline-button:focus-visible,
body.dark-theme .danger-outline-button:focus-visible { border-color: #e46a78; background: #5c2230; color: var(--tnvora-white); }

#deadlineAlerts.deadline-alerts {
  gap: 0;
  margin-bottom: 12px;
}

#deadlineAlerts .deadline-notes-panel {
  padding: 14px;
  border: 1px solid #cfe0ef;
  border-radius: 18px;
  background: rgba(250, 253, 255, 0.97);
  box-shadow: 0 12px 26px rgba(15, 45, 70, 0.08);
}

#deadlineAlerts .deadline-notes-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

#deadlineAlerts .deadline-notes-heading .eyebrow {
  margin: 0 0 2px;
  color: var(--blue);
  font-size: 0.62rem;
}

#deadlineAlerts .deadline-notes-heading h2 {
  margin: 0;
  color: #10243a;
  font-size: 1rem;
  line-height: 1.2;
}

#deadlineAlerts .deadline-notes-count {
  display: inline-flex;
  min-width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid #9dc9f4;
  border-radius: 999px;
  background: #e8f4ff;
  color: #0c65bd;
  font-size: 0.75rem;
  font-weight: 900;
}

#deadlineAlerts .deadline-notes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
}

#deadlineAlerts .deadline-note-alert {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 10px 11px;
  border: 1px solid #cae0f5;
  border-left: 4px solid var(--blue);
  border-radius: 13px;
  background: #f2f8ff;
  color: #10243a;
  box-shadow: none;
  font-size: 0.78rem;
  line-height: 1.3;
}

#deadlineAlerts .note-reminder-date {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border: 1px solid #a9d2f8;
  border-radius: 10px;
  background: #dcefff;
  color: #0a5da8;
  font-size: 0.6rem;
  font-weight: 950;
  letter-spacing: 0.05em;
}

#deadlineAlerts .note-reminder-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

#deadlineAlerts .note-reminder-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #10243a;
  font-size: 0.86rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#deadlineAlerts .note-reminder-copy span {
  overflow: hidden;
  color: #5d7085;
  font-size: 0.7rem;
  font-weight: 750;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#deadlineAlerts .deadline-note-alert .note-acknowledge-button {
  width: auto;
  min-height: 34px;
  padding: 7px 11px;
  border-color: #13874f;
  background: #13874f;
  color: var(--tnvora-white);
  font-size: 0.68rem;
}

#deadlineAlerts .deadline-notes-hint {
  margin: 9px 2px 0;
  color: #65788d;
  font-size: 0.67rem;
  font-weight: 650;
}

body.theme-dark #deadlineAlerts .deadline-notes-panel {
  border-color: #334e69 !important;
  background: #0f1d2c !important;
  color: #eaf3ff !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24) !important;
}

body.theme-dark #deadlineAlerts .deadline-notes-heading .eyebrow {
  color: #67b5ff !important;
}

body.theme-dark #deadlineAlerts .deadline-notes-heading h2 {
  color: #f7fbff !important;
}

body.theme-dark #deadlineAlerts .deadline-notes-count {
  border-color: #356da7 !important;
  background: #173f68 !important;
  color: #dceeff !important;
}

body.theme-dark #deadlineAlerts .deadline-note-alert {
  border-color: #315a7d !important;
  border-left-color: #43a3ff !important;
  background: #132b43 !important;
  color: #edf6ff !important;
  box-shadow: none !important;
}

body.theme-dark #deadlineAlerts .note-reminder-date {
  border-color: #3976ac !important;
  background: #18517e !important;
  color: #eaf5ff !important;
}

body.theme-dark #deadlineAlerts .note-reminder-copy strong {
  color: var(--tnvora-surface-cool) !important;
}

body.theme-dark #deadlineAlerts .note-reminder-copy span,
body.theme-dark #deadlineAlerts .deadline-notes-hint {
  color: #b8c9db !important;
}

body.theme-dark #deadlineAlerts .deadline-note-alert .note-acknowledge-button {
  border-color: #1b8c52 !important;
  background: #157b48 !important;
  color: var(--tnvora-white) !important;
}

#passwordResetDialog .form-hint,
#mfaSettingsDialog p {
  overflow-wrap: anywhere;
}

.operational-calendar.history-calendar {
  gap: 8px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--border, #d5e1ee);
  border-radius: 18px;
  background: var(--surface, var(--tnvora-white));
}

.operational-calendar .calendar-weekdays span {
  color: var(--muted, var(--tnvora-gray-500));
  font-size: 0.68rem;
  text-transform: uppercase;
}

.operational-calendar .calendar-cell {
  min-height: 104px;
}

.operational-calendar .calendar-day {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 104px;
  aspect-ratio: auto;
  align-content: space-between;
  justify-items: stretch;
  gap: 6px;
  padding: 11px;
  border: 1px solid var(--border, #d5e1ee);
  border-radius: 14px;
  color: var(--ink, #132033);
  background: color-mix(in srgb, var(--surface, var(--tnvora-white)) 94%, #8ca3bb 6%);
  text-align: left;
  box-shadow: none;
  cursor: pointer;
}

.operational-calendar .calendar-day.empty {
  border-color: var(--border, #d5e1ee);
  background: color-mix(in srgb, var(--surface, var(--tnvora-white)) 96%, #8ca3bb 4%);
}

.operational-calendar .calendar-day.progress {
  border-color: #67aaf6;
  background: color-mix(in srgb, var(--surface, var(--tnvora-white)) 76%, #d7eaff 24%);
}

.operational-calendar .calendar-day.complete {
  border-color: #55b888;
  background: color-mix(in srgb, var(--surface, var(--tnvora-white)) 76%, #d9f6e7 24%);
  box-shadow: none;
}

.operational-calendar .calendar-day.saturday {
  border-bottom: 4px solid #d9a800;
}

.operational-calendar .calendar-day.sunday,
.operational-calendar .calendar-day.holiday {
  border-bottom: 4px solid #d43b49;
}

.operational-calendar .calendar-day.selected,
.operational-calendar .calendar-day.vacation-focused {
  color: var(--ink, #132033);
  outline: 3px solid color-mix(in srgb, #2587ff 38%, transparent);
  outline-offset: 2px;
  box-shadow: 0 10px 24px rgba(16, 91, 164, 0.16);
  transform: none;
}

.operational-calendar .calendar-day.vacation-selected {
  color: var(--tnvora-white);
  border-color: #7c3aed;
  background: #7c3aed;
}

.operational-calendar .calendar-day.vacation-selected .operational-day-summary em,
.operational-calendar .calendar-day.vacation-selected .operational-day-summary small {
  color: var(--tnvora-white);
}

.operational-calendar .calendar-day-number {
  align-self: start;
  color: var(--ink, #132033);
  font-size: 1.2rem;
  line-height: 1;
}

.operational-calendar .calendar-markers,
.operational-calendar .vacation-day-signals {
  position: absolute;
  top: 11px;
  right: 9px;
  justify-content: flex-end;
}

.operational-calendar-timeline {
  display: grid;
  gap: 14px;
  margin: 14px 0 18px;
  padding: 16px;
  border: 1px solid var(--border, #d5e1ee);
  border-radius: 18px;
  color: var(--ink, #132033);
  background: var(--surface, var(--tnvora-white));
}

.boss-technician-card.is-toa-link,
.leader-technician-location.is-toa-link {
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.boss-technician-card.is-toa-link:hover,
.boss-technician-card.is-toa-link:focus-visible,
.leader-technician-location.is-toa-link:hover,
.leader-technician-location.is-toa-link:focus-visible {
  border-color: #68b5ff;
  outline: 3px solid rgba(37, 135, 255, 0.28);
  outline-offset: 2px;
  transform: translateY(-1px);
}

body.theme-dark .operational-calendar.history-calendar,
body.theme-dark .operational-calendar-timeline,
body.dark-theme .operational-calendar.history-calendar,
body.dark-theme .operational-calendar-timeline {
  border-color: #31465f;
  color: #edf6ff;
  background: #131f2e;
}

body.theme-dark .operational-calendar .calendar-day,
body.dark-theme .operational-calendar .calendar-day {
  border-color: #31465f;
  color: #edf6ff;
  background: #172638;
}

body.theme-dark .operational-calendar .calendar-day.progress,
body.dark-theme .operational-calendar .calendar-day.progress {
  border-color: #3e83cb;
  background: #142f4a;
}

body.theme-dark #vacationPanel .operational-calendar .calendar-day.progress,
body.dark-theme #vacationPanel .operational-calendar .calendar-day.progress {
  border-color: #3e83cb !important;
  background: #142f4a !important;
}

body.theme-dark .operational-calendar .calendar-day.complete,
body.dark-theme .operational-calendar .calendar-day.complete,
body.dark-theme .operational-calendar .calendar-day.complete {
  border-color: #2b8c5e;
  color: #edf6ff;
  background: #123928;
}

body.theme-dark .operational-calendar .calendar-day-number,
body.theme-dark .operational-timeline-heading h3,
body.theme-dark .operational-day-timeline .toa-stage-copy b,
body.dark-theme .operational-calendar .calendar-day-number,
body.dark-theme .operational-timeline-heading h3,
body.dark-theme .operational-day-timeline .toa-stage-copy b {
  color: #edf6ff;
}

.app-install-recovery button {
  min-height: 42px;
  padding: 8px 10px;
  font-size: 0.72rem;
}

#vacationPanel #vacationCalendar.operational-calendar {
  width: 100%;
  max-width: none;
}

#vacationPanel #vacationCalendar.operational-calendar .calendar-day {
  width: 100%;
  max-width: none;
  min-height: 104px;
  aspect-ratio: auto;
  align-content: space-between;
  justify-items: stretch;
  padding: 12px;
  border-width: 1px;
  border-radius: 14px;
}

.business-analysis-card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.business-analysis-card h3 { margin: 2px 0 0; }

.business-table-wrap { overflow: auto; border: 1px solid var(--line, #dbe2ea); border-radius: 16px; }

.business-table { width: 100%; min-width: 760px; border-collapse: collapse; }

.business-table th, .business-table td { padding: 11px 12px; border-bottom: 1px solid var(--line, #dbe2ea); text-align: right; }

.business-table th { color: var(--tnvora-white); background: #17385d; font-size: .76rem; letter-spacing: .04em; }

.business-table th:first-child, .business-table td:first-child { text-align: left; }

.business-table td small { display: block; color: var(--muted, #697586); }

.business-cost-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line, #dbe2ea);
  border-radius: 18px;
  background: color-mix(in srgb, var(--background, #eef2f6) 55%, var(--surface, var(--tnvora-white)));
}

.business-cost-form label { display: grid; gap: 6px; color: var(--ink, var(--navy)); font-size: .8rem; font-weight: 800; }

.business-cost-form input, .business-cost-form select {
  width: 100%; min-height: 44px; padding: 9px 11px;
  border: 1px solid var(--line, #dbe2ea); border-radius: 11px;
  color: var(--ink, var(--navy)); background: var(--surface, var(--tnvora-white));
}

.business-cost-form .business-wide { grid-column: span 2; }

.business-cost-form button { align-self: end; min-height: 44px; }

.certificate-template-control select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line, #cbd7e5);
  border-radius: 12px;
  color: var(--ink, var(--navy));
  background: var(--surface, var(--tnvora-white));
}

.certificate-template-status {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid;
  border-radius: 12px;
  font-size: .84rem;
  font-weight: 750;
  line-height: 1.35;
}

.certificate-template-status.available {
  border-color: #70bf91;
  color: #12683d;
  background: #eaf8f1;
}

.certificate-template-status.missing {
  border-color: #df9b48;
  color: #7b4600;
  background: #fff5df;
}

.login-organization-saved .secondary-button { width: auto; margin: 0; }

.sep-expiry-dialog { max-width: min(650px, calc(100vw - 24px)); }

.sep-expiry-dialog h3 { color: #172033; }

body.theme-dark .sep-expiry-dialog h3 { color: #f2f6fb; }

.operational-list-toolbar :is(input, select) {
  width: 100%; min-height: 36px; padding: 7px 10px;
  border: 1px solid var(--line, #c8d4e2); border-radius: 8px;
  color: var(--ink, #172033); background: var(--surface, var(--tnvora-white));
}

.operational-table-wrap { overflow: auto; border: 1px solid var(--line, #d6dee8); border-radius: 12px; background: var(--surface, var(--tnvora-white)); }

.operational-table { width: 100%; min-width: 1080px; border-collapse: collapse; color: var(--ink, #172033); font-size: .76rem; }

.operational-table th {
  position: sticky; top: 0; z-index: 1;
  height: 34px; padding: 7px 10px; border-bottom: 1px solid #315271;
  color: #dcecff; background: #17304b; text-align: left;
  font-size: .65rem; letter-spacing: .055em; text-transform: uppercase;
}

.operational-table td { height: 42px; padding: 6px 10px; border-bottom: 1px solid var(--line, #dfe5ec); vertical-align: middle; line-height: 1.22; }

.operational-table tbody tr { box-shadow: inset 3px 0 0 var(--operational-accent, transparent); }

.operational-table tbody tr:hover { background: color-mix(in srgb, var(--blue-soft, #eaf3ff) 45%, var(--surface, var(--tnvora-white))); }

.operational-table td strong { display: block; color: var(--ink, #172033); font-size: .78rem; }

.operational-table td small { display: block; margin-top: 2px; color: var(--muted, #657286); font-size: .66rem; }

.record-status {
  display: inline-flex; align-items: center; min-height: 23px; padding: 3px 8px;
  border: 1px solid #aab8c8; border-radius: 999px; white-space: nowrap;
  color: #405064; background: #edf2f7; font-size: .66rem; font-weight: 850;
}

.record-status.valid { color: #12613b; border-color: #58aa7b; background: #e5f6ed; }

.record-status.due { color: #704600; border-color: #d89a20; background: #fff4d6; }

.record-status.expired, .record-status.missing { color: #8c1d26; border-color: #db626b; background: #ffebed; }

.qualification-edit-button { display: inline-flex; padding: 0; border: 0; border-radius: 999px; background: transparent; cursor: pointer; }

.qualification-edit-button:hover .record-status,
.qualification-edit-button:focus-visible .record-status { outline: 3px solid color-mix(in srgb, #2785e6 36%, transparent); outline-offset: 2px; }

.operational-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 10px; color: var(--muted, #657286); font-size: .76rem; }

.operational-pagination button { min-height: 34px; padding: 6px 11px; border: 1px solid var(--line, #c8d4e2); border-radius: 8px; color: var(--ink, #172033); background: var(--surface, var(--tnvora-white)); font-weight: 800; }

.operational-pagination button:disabled { opacity: .45; }

body.theme-dark .operational-list-toolbar,
body.theme-dark .operational-table-wrap,
body.theme-dark .operational-pagination button,
body.theme-dark .qualification-records article { color: #edf5ff; border-color: #344a62; background: #132237; }

body.theme-dark .operational-list-toolbar :is(input, select) { color: #f3f8ff; border-color: #405871; background: #182a40; }

body.theme-dark .operational-table { color: #eaf2fb; }

body.theme-dark .operational-table th { color: #e5f2ff; border-color: #42617f; background: #10243a; }

body.theme-dark .operational-table td { border-color: #2f4359; }

body.theme-dark .operational-table tbody tr:hover { background: #192d44; }

body.theme-dark .operational-table td strong { color: #f5f9ff; }

body.theme-dark .operational-table td small,
body.theme-dark .operational-list-toolbar label > span,
body.theme-dark .operational-list-toolbar > strong { color: #aebfd2; }

body.theme-dark .record-status { color: #c9d6e5; border-color: #51667c; background: #22364b; }

body.theme-dark .record-status.valid { color: #9ce6bd; border-color: #2f875e; background: #123827; }

body.theme-dark .record-status.due { color: #ffe0a0; border-color: #9d6b17; background: #3e2d12; }

body.theme-dark .record-status.expired,
body.theme-dark .record-status.missing { color: #ffc1c6; border-color: #a8414a; background: #3a171d; }

body.theme-dark .qualification-edit-button:hover .record-status,
body.theme-dark .qualification-edit-button:focus-visible .record-status { outline-color: #69b6ff; }

#vacationPanel .vacation-legend .legend-available i { background: #168a52 !important; }

.vacation-team-filters :is(input, select) {
  width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px;
  border: 1px solid var(--line, #cbd7e5); border-radius: 10px;
  color: var(--ink, #172033); background: var(--surface, var(--tnvora-white)); font-weight: 750;
}

.vacation-selected-people { display: grid; gap: 7px; }

#vacationPanel #vacationCalendar.operational-calendar .calendar-day,
#vacationPanel button.vacation-day.vacation-selected,
#vacationPanel button.vacation-day.vacation-team-highlight,
#vacationPanel button.vacation-day.vacation-selected.vacation-team-highlight {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line, #cbd7e5) !important;
  border-left: 5px solid #168a52 !important;
  color: var(--ink, #172033) !important;
  background: var(--surface, var(--tnvora-white)) !important;
  box-shadow: none !important;
}

#vacationPanel button.vacation-day.vacation-selected,
#vacationPanel button.vacation-day.vacation-selected.vacation-team-highlight {
  border-left-color: #c73945 !important;
  background: color-mix(in srgb, var(--tnvora-white) 94%, #ffdde0 6%) !important;
}

#vacationPanel button.vacation-day.vacation-team-highlight {
  border-color: #5a91d6 !important;
}

#vacationPanel button.vacation-day.vacation-focused {
  outline: 3px solid rgba(31, 130, 219, .36) !important;
  outline-offset: 2px;
}

#vacationPanel button.vacation-day.saturday { border-bottom: 4px solid #d69200 !important; }

#vacationPanel button.vacation-day.holiday { border-bottom: 4px solid #c73945 !important; }

body.theme-dark .vacation-team-filters :is(input, select),
body.dark-theme .vacation-team-filters :is(input, select) { color: #f2f7fc; border-color: #405871; background: #182a40; }

body.theme-dark #vacationPanel #vacationCalendar.operational-calendar .calendar-day,
body.theme-dark #vacationPanel button.vacation-day.vacation-selected,
body.theme-dark #vacationPanel button.vacation-day.vacation-team-highlight,
body.theme-dark #vacationPanel button.vacation-day.vacation-selected.vacation-team-highlight,
body.dark-theme #vacationPanel #vacationCalendar.operational-calendar .calendar-day {
  border-color: #40556d !important;
  border-left-color: #36ad74 !important;
  color: #f2f7fc !important;
  background: #162538 !important;
  box-shadow: none !important;
}

body.theme-dark #vacationPanel button.vacation-day.vacation-selected,
body.theme-dark #vacationPanel button.vacation-day.vacation-selected.vacation-team-highlight,
body.dark-theme #vacationPanel button.vacation-day.vacation-selected {
  border-left-color: #ef6671 !important;
  background: #281d2a !important;
}

body.theme-dark #vacationPanel button.vacation-day.vacation-team-highlight,
body.dark-theme #vacationPanel button.vacation-day.vacation-team-highlight { border-color: #5c95d8 !important; }

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

.tenant-admin-heading h3, .tenant-card-heading h4 { margin: 3px 0; }

.tenant-admin-heading p, .tenant-card-heading p { margin: 0; }

.tenant-kpi, .tenant-card { border: 1px solid #cbd9e7; border-radius: 15px; background: var(--tnvora-white); color: #13263a; }

.tenant-card { padding: 18px; }

.tenant-feature-switch input { position: absolute; opacity: 0; pointer-events: none; }

.tenant-feature-switch input:checked + span { background: #079f70; }

.tenant-feature-switch input:checked + span::after { transform: translateX(14px); }

.tenant-feature-switch input:focus-visible + span { outline: 3px solid #2188f2; outline-offset: 2px; }

.tenant-users-table-wrap { overflow: auto; margin-top: 14px; border: 1px solid #cbd9e7; border-radius: 12px; }

.tenant-users-table { width: 100%; min-width: 820px; border-collapse: collapse; }

.tenant-users-table th, .tenant-users-table td { padding: 11px 12px; border-bottom: 1px solid #d8e2ec; text-align: left; }

.tenant-users-table th { background: #eaf3fb; color: #24425e; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }

.tenant-users-table td strong, .tenant-users-table td small { display: block; }

.tenant-users-table td small { color: #6a7b8d; margin-top: 2px; }

.tenant-user-status { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: .7rem; font-weight: 900; }

.tenant-user-status.active { background: #dcf7e9; color: #08754e; }

.tenant-user-status.blocked { background: #ffe1e4; color: #a5222d; }

body.theme-dark .tenant-save-state,
body.theme-dark .tenant-user-status.active {
  background: #0c5b43;
  color: #eafff6;
  border: 1px solid #28b987;
}

body.theme-dark .tenant-user-status.blocked {
  background: #6f202a;
  color: var(--tnvora-danger-50);
  border: 1px solid #ef5a68;
}

body.theme-dark .tenant-admin-toolbar, body.theme-dark .tenant-kpi, body.theme-dark .tenant-card { background: #111f30; border-color: #304862; color: #f3f8fd; }

body.theme-dark .tenant-feature-switch, body.theme-dark .tenant-users-table-wrap { border-color: #36506c; }

body.theme-dark .tenant-users-table th, body.theme-dark .tenant-users-table td { border-color: #2b4259; color: #edf6ff; }

.user-button {
  min-height: 32px;
  margin-top: 0;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
}

.user-button:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}
