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

body.cms-ui-preview {
  --md-sys-color-primary: #1677f2;
  --md-sys-color-on-primary: var(--tnvora-white);
  --md-sys-color-surface: var(--surface);
  --md-sys-color-on-surface: var(--ink);
  --md-sys-color-outline: var(--line);
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 12px;
  --md-sys-shape-corner-large: 16px;
}

@keyframes maintenance-recovery-spin {
  to { transform: rotate(360deg); }
}

body.theme-dark .eip-assigned-item {
  border-color: #3b5877;
  border-left-color: #e1a719;
  color: #f7fbff;
  background: #1a2d43;
}

body.theme-dark .eip-assigned-item.complete {
  border-color: #2b7857;
  border-left-color: #35cf83;
  background: #14382d;
}

body.theme-dark .eip-execution-step.done {
  border-color: #31986a;
  background: #16382e;
}

body.theme-dark .work-order-late-member {
  border-color: #3f6388;
  background: #172a3e;
}

body.theme-dark .work-order-late-member strong,
body.theme-dark .work-order-late-member label {
  color: #f5f9ff;
}

body.theme-dark .work-order-late-member small,
body.theme-dark .work-order-late-member p {
  color: #c9d8e9;
}

body.theme-dark .work-order-team-leave,
body.dark-theme .work-order-team-leave {
  border-color: #9d4f59;
  background: #2a1c27;
}

body.theme-dark .work-order-team-leave > summary,
body.dark-theme .work-order-team-leave > summary {
  color: #ffb5bd;
}

body.theme-dark .work-order-team-leave > p,
body.dark-theme .work-order-team-leave > p {
  color: #d9cbd2;
}

body.theme-dark .work-order-team-leave > label,
body.dark-theme .work-order-team-leave > label {
  color: #f7f1f4;
}

body.theme-dark .duty-delegation-scope {
  border-color: #315f94;
  background: #132740;
}

body.theme-dark .vacation-intro {
  background: linear-gradient(135deg, #122540 0%, #12313a 100%);
}

body.theme-dark #vacationPanel .vacation-day.vacation-team-highlight {
  border-color: #60a5fa;
  background: #142f58;
  color: #bfdbfe;
}

body.theme-dark .work-order-breaks-field {
  border-color: #8a6417;
  background: #2a2313;
}

body.theme-dark .work-order-breaks-field > summary {
  color: #fde68a;
}

body.theme-dark .work-order-breaks-copy strong {
  color: #fff1bd;
}

body.theme-dark .work-order-breaks-copy small {
  color: #dfc477;
}

body.theme-dark .work-order-breaks-toggle {
  border-color: #8a6417;
  background: #172234;
  color: #fde68a;
}

body.theme-dark .work-order-breaks-field[open] > summary {
  border-color: #8a6417;
}

body.theme-dark .work-order-breaks-field .work-order-break-row,
body.theme-dark .work-order-breaks-field .work-order-break-extra {
  background: #111b29;
}

body.theme-dark .guide-stop-rule {
  border-color: #ef5962;
  background: #3a1821;
}

body.theme-dark .guide-stop-rule p { color: #fecdd3; }

body.theme-dark .guide-safety-role > b { background: #07111f; }

body.theme-dark .guide-sms-note {
  border-color: #315f8f;
  background: #122d48;
}

body.theme-dark .guide-sms-note p { color: #b9d4ec; }

body.theme-dark .guide-final-check {
  border-color: #2c9b5c;
  color: #bbf7d0;
  background: #153826;
}

body.theme-dark .context-guidance {
  border-color: #315f8f;
  color: #e0f2fe;
  background: linear-gradient(135deg, #122d48, #10263d);
}

body.theme-dark .context-guidance-copy p {
  color: #b9d4ec;
}

body.theme-dark .context-guidance-close {
  border-color: #315f8f;
  color: var(--tnvora-line-blue);
  background: #173653;
}

body.theme-dark .guide-tips-info {
  border-color: #287b4b;
  background: #153826;
}

body.theme-dark .guide-tips-info p {
  color: #bbf7d0;
}

body.theme-dark {
  --selection-panel: #101a28;
  --selection-card: #172334;
  --selection-card-hover: #1a293d;
  --selection-border: #34465d;
  --selection-border-strong: #4e78aa;
  --selection-text: #f4f8fd;
  --selection-muted: #9badc2;
  --selection-accent: #62a7ff;
  --selection-accent-soft: rgba(35, 134, 255, 0.15);
  --selection-danger: #ff9da3;
  --selection-danger-soft: rgba(239, 68, 68, 0.12);
  --selection-favorite: #ffd264;
  --selection-favorite-soft: rgba(245, 183, 45, 0.12);
}

body.theme-light .analytics-section.employee-hours-ranking {
  border-color: #9fc9f5;
  background:
    radial-gradient(circle at 92% 0%, rgba(35, 134, 255, 0.1), transparent 34%),
    linear-gradient(145deg, var(--tnvora-white), #f3f8fd);
}

body.theme-light .employee-hours-share {
  background: #dce8f4;
}

body.theme-light .employee-hours-person > em {
  color: #466984;
}

body.theme-light .employee-hours-total {
  color: #162b42;
}

body.theme-light .analytics-section.employee-earnings-ranking {
  border-color: #9fd9bb;
  background: linear-gradient(145deg, var(--tnvora-white), #f1fbf6);
}

body.theme-light .employee-earnings-total {
  color: #08783c;
}

body.theme-dark .app-install-online-note {
  border-left-color: #f3bd45;
  color: #fff3c4;
  background: #3b3015;
}

body.theme-dark #newReportPanel .calculated-time strong {
  color: var(--tnvora-white);
}

img,
svg,
canvas,
video {
  max-width: 100%;
  height: auto;
}

html body .login-logo img {
  width: min(100%, 440px);
  max-width: 440px;
  height: auto;
  max-height: none;
  padding: 0;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 10px 18px rgba(7, 70, 88, 0.12));
}

html body .login-logo-dark-theme {
  display: none;
}

html body .cookie-consent-brand {
  margin-bottom: 8px;
}

html body .cookie-consent-brand img {
  width: 112px;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

html body .cookie-consent-copy .eyebrow {
  margin-bottom: 2px;
  font-size: 0.62rem;
}

html body .cookie-consent-copy h2 {
  margin: 2px 0 6px;
  font-size: 1.18rem;
  line-height: 1.2;
}

html body .cookie-consent-copy > p:last-child {
  font-size: 0.78rem;
  line-height: 1.42;
}

html body .cookie-consent-actions {
  gap: 7px;
  margin-top: 12px;
}

html body .cookie-preferences {
  margin-top: 12px;
  padding: 10px;
  border-radius: 13px;
}

html body .cookie-preference-row {
  gap: 10px;
  padding: 8px 2px;
}

html body .cookie-preference-row strong {
  font-size: 0.78rem;
}

html body .cookie-preference-row small {
  font-size: 0.68rem;
}

html body .cookie-consent-footer {
  gap: 8px 16px;
  margin-top: 10px;
  font-size: 0.68rem;
}

html body {
  background-color: #eaf7f7;
  background-image:
    radial-gradient(circle at 8% 4%, rgba(46, 190, 181, 0.18), transparent 34rem),
    radial-gradient(circle at 92% 18%, rgba(54, 151, 201, 0.14), transparent 38rem),
    linear-gradient(145deg, #f7fbfd 0%, #e8f6f6 48%, #e4f3f7 100%);
  background-attachment: fixed;
}

html body::before {
  opacity: 0.28;
  background-image:
    linear-gradient(115deg, transparent 0 46%, rgba(26, 167, 156, 0.12) 46% 47%, transparent 47% 100%),
    linear-gradient(25deg, transparent 0 49%, rgba(18, 111, 148, 0.08) 49% 50%, transparent 50% 100%);
  background-position: 0 0, 0 0;
  background-size: 150px 150px, 190px 190px;
}

body.theme-dark .signature-required-notice {
  border-color: #f87171;
  color: var(--tnvora-danger-100);
  background: rgba(127, 29, 29, 0.48);
}

body.theme-light #summaryPanel .summary-glow {
  display: none;
}

body.theme-dark .technician-year-summary > div {
  border-color: #365879;
  background: linear-gradient(135deg, #142a42, #142033);
}

body.theme-dark .technician-year-summary span,
body.theme-dark .technician-year-summary small { color: #9fb2ca; }

body.theme-dark .technician-year-summary strong { color: var(--tnvora-surface-cool); }

@keyframes calendar-order-frame-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(20, 83, 45, 0.12);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(20, 83, 45, 0.24);
  }
}

@keyframes calendar-order-marker-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.42; }
}

body.theme-light {
  --ink: var(--navy);
  --muted: #526274;
  --surface: var(--tnvora-white);
  --background: #eef2f6;
  --line: #cbd7e5;
  --opsui-text: var(--navy);
  --opsui-muted: #526274;
  --opsui-surface: var(--tnvora-white);
  --opsui-surface-muted: #f6f9fd;
  --opsui-surface-raised: #edf3f9;
  --opsui-border: #d4deea;
  --opsui-border-strong: #b9c9da;
}

body.theme-light .summary-glow {
  background: rgba(20, 121, 247, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(20, 121, 247, 0.07) 0, transparent 34%),
    repeating-linear-gradient(135deg, rgba(16, 23, 34, 0.018) 0 1px, transparent 1px 18px),
    var(--background);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: none;
  background-repeat: repeat;
  background-size: 420px 250px;
  background-position: 24px 30px;
  opacity: 0.55;
}

body.theme-light .admin-user-login {
  border-color: #d5e0ec;
  color: #5b6b80 !important;
  background: var(--tnvora-white);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 5vw, 2.15rem);
  font-weight: 900;
  color: var(--gp-green);
  letter-spacing: 0.02em;
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: 1.3rem;
  font-weight: 850;
  letter-spacing: -0.025em;
}

body.theme-dark .sms-toggle {
  color: #e5edf7;
}

body.theme-dark .sms-queue-actions .danger-action {
  border-color: #7f1d1d;
  color: var(--tnvora-danger-100);
  background: #7f1d1d;
}

label {
  display: grid;
  gap: 7px;
  color: #556171;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.015em;
}

@keyframes analyticsSectionFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65);
  }
  45% {
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.35);
  }
  100% {
    box-shadow: 0 14px 28px rgba(4, 12, 24, 0.18);
  }
}

body.theme-dark .single-action-option {
  border-color: #315f91;
  background: linear-gradient(135deg, rgba(22, 119, 242, 0.18), rgba(46, 204, 113, 0.1));
}

body.theme-dark .single-action-option b {
  color: #d8eaff;
}

@supports (height: 1dvh) {
  .active-time-options {
    --active-time-wheel-height: clamp(220px, 36dvh, 320px);
  }
}

body.app-menu-open {
  overflow: hidden;
}

body.theme-light {
  --surface: var(--tnvora-white);
  --ink: var(--navy);
  --muted: #5f6f83;
  --background: #eef2f6;
}

body.theme-light .admin-panel {
  color: var(--navy);
  border-color: #d8e3ef;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 28px rgba(16, 23, 34, 0.08);
}

body.theme-light .admin-heading,
body.theme-light .admin-toolbar,
body.theme-light .admin-users-heading {
  color: var(--navy);
}

body.theme-light .statistics-history-row {
  border-color: #d8e3ef;
  background: var(--tnvora-white);
}

body.theme-light .client-profitability-head {
  background:
    radial-gradient(circle at 90% 10%, rgba(20, 121, 247, 0.14), transparent 34%),
    linear-gradient(135deg, #f1f7ff, var(--tnvora-white));
}

body.theme-light .client-profitability-head h4,
body.theme-light .client-profitability-kpis b,
body.theme-light .client-extremes b,
body.theme-light .client-finance-column > b,
body.theme-light .client-hours-row > strong {
  color: #102033;
}

body.theme-light .client-margin-gauge::before {
  background: var(--tnvora-white);
}

body.theme-light .client-margin-gauge b {
  color: #102033;
}

body.theme-light .client-profitability-head > div:first-child > span,
body.theme-light .client-profitability-kpis span,
body.theme-light .client-profitability-kpis small,
body.theme-light .client-extremes span,
body.theme-light .client-finance-column > span,
body.theme-light .analytics-client-quick-range > span,
body.theme-light .client-analysis-note {
  color: #526274;
}

body.theme-light .client-hours-row > span {
  color: #24364d;
}

body.theme-light .client-finance-track,
body.theme-light .client-hours-track {
  background: #eaf1f8;
}

body.theme-light .client-analysis-note {
  background: #edf6ff;
}

body.theme-light .analytics-line-chart line {
  stroke: rgba(82, 98, 116, 0.28);
}

body.theme-light .analytics-bar-track {
  background: #dfeaf7;
}

body.theme-light .admin-summary div {
  border-color: #d8e3ef;
  background: #f7fbff;
}

body.theme-light .admin-user-actions .delete-user,
body.theme-light .admin-user-actions .danger-action,
body.theme-light .admin-farm-row-actions .danger-action {
  border-color: #fecaca;
  color: var(--tnvora-danger-700);
  background: var(--tnvora-danger-100);
}

body.theme-dark {
  --surface: #121c2a;
  --ink: var(--tnvora-surface-blue);
  --muted: #a8b7ca;
  --background: #0f1722;
  color: var(--tnvora-surface-blue);
  background:
    radial-gradient(circle at 50% 10%, rgba(20, 121, 247, 0.12), transparent 34%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 18px),
    #0f1722;
}

body.theme-dark::before {
  opacity: 0.14;
  filter: invert(1) grayscale(1);
}

body.theme-dark .pending-report-dismiss {
  border-color: #7f3a42;
  color: #fecaca;
  background: #3a171c;
}

body.theme-dark .pending-report-dismiss:hover,
body.theme-dark .pending-report-dismiss:focus-visible {
  border-color: #ef6b76;
  color: var(--tnvora-white);
  background: #5a2028;
}

body.theme-dark .report-compliance-counter {
  color: #fde68a;
  background: #2a220f;
}

body.theme-dark .report-compliance-order:hover,
body.theme-dark .report-compliance-order:focus-visible {
  border-color: #4d9cff;
  background: #172b45;
}

body.theme-dark .history-month-label {
  color: var(--tnvora-surface-cool);
  border-color: #40536d;
  background: #172234;
  box-shadow: inset 0 0 0 1px #40536d;
}

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

body.theme-dark .month-choice {
  color: var(--tnvora-surface-blue);
  border-color: #34465f;
  background: #172234;
}

body.theme-dark .month-choice.active {
  color: var(--tnvora-white);
  border-color: #1d7cf2;
  background: #1d7cf2;
}

body.theme-dark .vacation-day-details {
  color: #e8f1ff;
  border-color: #304156;
  background: #111d2b;
}

body.theme-dark .vacation-day-details-header {
  color: #9db1cb;
}

body.theme-dark .vacation-day-details-header strong {
  color: var(--tnvora-white);
}

body.theme-dark .vacation-day-people span {
  color: #d9ecff;
  border-color: #2f5e91;
  background: #16263a;
}

body.theme-dark .vacation-user-days {
  color: #e8f1ff;
  border-color: #304156;
  background: #111d2b;
}

body.theme-dark .vacation-user-days-heading span {
  color: #9db1cb;
}

body.theme-dark .vacation-user-days-heading strong {
  color: var(--tnvora-white);
}

body.theme-dark .expense-title-suggestions {
  border-color: #34465f;
  background: #101a28;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

body.theme-dark .expense-vehicle-favorite-active {
  color: #facc15;
  border-color: #a16207;
  background: #2d2411;
}

body.theme-dark .expense-diet-control,
body.theme-dark .vehicle-cost-export {
  color: var(--tnvora-surface-blue);
  border-color: #34465f;
  background: #111b29;
}

body.theme-dark .expense-diet-fields small {
  color: #b8c7da;
}

body.theme-dark .work-order-active-details {
  color: var(--tnvora-surface-blue);
  border-color: #34465f;
  background: #101a28;
}

body.theme-dark .work-order-active-details summary,
body.theme-dark .work-order-active-group strong {
  color: var(--tnvora-surface-cool);
}

body.theme-dark .work-order-active-group {
  border-color: #34465f;
  background: #111b29;
}

body.theme-dark .work-order-active-task {
  color: var(--tnvora-surface-blue);
  border-color: #2f4056;
  background: #172234;
}

body.theme-dark .work-order-active-task.readonly-task {
  background: #121c2b;
}

body.theme-dark .work-order-active-task span,
body.theme-dark .work-order-task-date small,
body.theme-dark .work-order-task-time small,
body.theme-dark .work-order-breaks-field > summary,
body.theme-dark .work-order-breaks-field > span,
body.theme-dark .active-save-state {
  color: #d7e4f5;
}

body.theme-dark .active-time-sheet {
  border-color: #34465f;
  background: #101a28;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

body.theme-dark .work-order-task-date input {
  border-color: #34465f;
  background: #101a28;
  color: #f4f8ff;
  color-scheme: dark;
}

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

body.theme-dark .active-time-preview,
body.theme-dark .active-time-separator {
  color: var(--tnvora-white);
}

body.theme-dark .active-time-wheel {
  border-color: #34465f;
  background: linear-gradient(180deg, #111b29, #0d1725);
}

body.theme-dark .active-time-wheels-body::before {
  background: linear-gradient(180deg, #111b29 0%, rgba(17, 27, 41, 0) 100%);
}

body.theme-dark .active-time-wheels-body::after {
  background: linear-gradient(0deg, #0d1725 0%, rgba(13, 23, 37, 0) 100%);
}

body.theme-dark .active-time-wheel-labels {
  color: #9fb2ca;
}

body.theme-dark .active-time-option {
  color: #8fa3bd;
}

body.theme-dark .work-order-role-hint {
  color: #93a8c4;
}

body.theme-light .boss-role-option {
  border-color: #bfdbfe;
  color: #174d8d !important;
  background: #eff6ff;
}

body.theme-light {
  --opsui-surface: var(--tnvora-white);
  --opsui-surface-muted: var(--tnvora-surface-cool);
  --opsui-surface-raised: #eef2f6;
  --opsui-border: #dce4ee;
  --opsui-border-strong: #c6d3e1;
  --opsui-text: var(--navy);
  --opsui-muted: #627186;
  --opsui-primary: var(--blue);
  --opsui-primary-soft: #e9f3ff;
  --opsui-field: #4f8a2f;
  --opsui-signal: #0e9aa7;
}

body.theme-light .leader-available-team {
  border-color: #86d7a5;
  background:
    linear-gradient(135deg, rgba(220, 252, 231, 0.9), rgba(240, 253, 244, 0.68)),
    var(--opsui-surface-muted);
}

body.theme-light {
  --ops-shadow: 0 12px 30px rgba(27, 45, 71, 0.08);
  --ops-danger: #c83e45;
  --ops-warning: #b7791f;
  --ops-success: #168a4a;
}

@keyframes employee-live-pulse {
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.16); }
}

@keyframes work-order-nav-alert-pulse {
  50% {
    box-shadow:
      0 0 0 6px rgba(255, 72, 88, 0.18),
      0 12px 34px rgba(185, 28, 28, 0.72);
  }
}

body.theme-light .admin-user-create-disclosure,
body.theme-light .admin-account-toolbar {
  border-color: #d9e3ef;
  background: #f8fafc;
}

body.theme-light .admin-user-avatar {
  border-color: #bfdbfe;
  color: #175aa6;
  background: #eaf3ff;
}

body.theme-dark .personal-note-item.note-incoming {
  border-color: #2b8cff;
  background: rgba(18, 55, 91, 0.76);
}

body.theme-dark .personal-note-item.note-outgoing {
  border-color: #75a84d;
  background: rgba(42, 67, 26, 0.72);
}

body.theme-dark .personal-note-direction {
  border-color: rgba(148, 163, 184, 0.42);
  color: var(--tnvora-line-blue);
  background: rgba(15, 23, 42, 0.46);
}

body.theme-dark .work-order-copy-reference {
  border-color: #365b83;
  color: var(--tnvora-line-blue);
  background: #152b43;
}

body.theme-dark .work-order-copy-reference > span,
body.theme-dark .work-order-copy-reference > small {
  color: #9eb7d2;
}

body.theme-dark .work-order-copy-reference:hover,
body.theme-dark .work-order-copy-reference:focus-visible {
  border-color: #4b9cff;
  background: #183b60;
}

body.theme-dark .work-order-copy-reference.copied {
  border-color: #75a84d;
  color: #e4f6d7;
  background: #29431d;
}

@keyframes reviews-nav-critical-pulse {
  0%,
  100% {
    color: var(--tnvora-white);
    background: #b4232c;
    box-shadow: 0 0 0 0 rgba(220, 38, 49, 0.58);
  }
  50% {
    color: #7f1118;
    background: #ffd7da;
    box-shadow: 0 0 0 5px rgba(220, 38, 49, 0.12);
  }
}

body.theme-dark .personal-note-workflow.pending {
  border-color: #8e681d;
  color: #ffdf8a;
  background: #493511;
}

body.theme-dark .personal-note-workflow.confirmed {
  border-color: #2f8c59;
  color: #b9f6ce;
  background: #163c29;
}

body.theme-dark .personal-note-item.note-acknowledged {
  border-color: #2f9b60;
  background: rgba(19, 61, 40, 0.78);
}

body.theme-dark .monthly-technician-certificate {
  color: #dfffea;
  background: #19452d;
  border-color: #39875a;
}

body.theme-dark .monthly-technician-certificate strong {
  color: #8bf0ad;
}

body.theme-dark .monthly-technician-countdown {
  color: #d9f9e5;
  background: #122f20;
  border-color: #326d49;
}

body.theme-light .analytics-client-technician-search {
  border-color: #d8e3ef;
  color: #52657a;
  background: #f6f9fc;
}

body.theme-light .analytics-rank {
  color: #1266cb;
  background: #eaf3ff;
}

body.theme-light .analytics-money-bars .analytics-bar-row > b small {
  color: #1266cb;
  background: #eaf3ff;
}

body.theme-dark .toa-take5-warning {
  color: #ffd38c;
}

body.theme-dark .short-workday-decision,
body.dark-theme .short-workday-decision {
  background: #33250d;
  color: #fff4ce;
  border-color: #d99a20;
}

body.theme-dark .short-workday-decision.is-accepted,
body.dark-theme .short-workday-decision.is-accepted {
  background: #0c3021;
  color: #d7ffe7;
  border-color: #22c55e;
}

body.dark-theme .tnvora-document {
  color: #17212b;
}

body.theme-dark .eip-procedure-toolbar {
  border-color: #9b6b17;
  background: #302714;
}

body.theme-dark .eip-procedure-toolbar strong,
body.theme-dark .eip-procedure-page-head h5,
body.theme-dark .eip-procedure-action strong {
  color: #f8fafc;
}

body.theme-dark .eip-procedure-toolbar span {
  color: #f0d795;
}

body.theme-dark .eip-procedure-missing-list {
  border-color: #fb7185;
  color: #ffe4e6;
  background: #3b1720;
}

body.theme-dark .eip-procedure-page {
  border-color: #92702c;
  color: #e5edf7;
  background: #101a2a;
}

body.theme-dark .eip-procedure-page-head p,
body.theme-dark .eip-procedure-action small,
body.theme-dark .eip-procedure-action label {
  color: #aebbd0;
}

body.theme-dark .eip-procedure-page-skip {
  border-color: #3d4d64;
  color: #dce6f4;
  background: #172438;
}

body.theme-dark .eip-procedure-page-skip.active {
  border-color: #e6a637;
  background: #352811;
}

body.theme-dark .eip-procedure-page-skip strong {
  color: #f8fafc;
}

body.theme-dark .eip-procedure-page-skip small,
body.theme-dark .eip-procedure-page-skip-reason {
  color: #efd79e;
}

body.theme-dark .eip-procedure-lines {
  border-color: #33445c;
  background: #152236;
}

body.theme-dark .eip-procedure-line {
  color: #dce6f4;
}

body.theme-dark .eip-procedure-line.heading {
  color: var(--tnvora-white);
}

body.theme-dark .eip-procedure-line.warning {
  color: #fecaca;
  background: #3a171c;
}

body.theme-dark .eip-procedure-action {
  border-color: #3d4d64;
  background: #172438;
}

body.theme-dark .eip-procedure-action.done {
  border-color: #2ba765;
  border-left-color: #38d27f;
  background: #0f422d;
}

body.theme-dark .eip-procedure-action.na {
  background: #332813;
}

body.theme-dark .eip-procedure-action.incomplete {
  border-color: #be4657;
  border-left-color: #fb7185;
  background: #361923;
}

body.theme-dark .eip-procedure-action .eip-procedure-action-error {
  color: #fecdd3;
  background: #4a1721;
}

body.theme-dark .eip-procedure-action.done strong,
body.theme-dark .eip-procedure-action.done label,
body.theme-dark .eip-procedure-action.done small {
  color: #f4fff8;
}

body.theme-dark .eip-source-gate {
  border-color: var(--tnvora-warning-500);
  color: #f8fafc;
  background: #2c2415;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}

body.theme-dark .eip-source-gate h4 {
  color: #fff7df;
}

body.theme-dark .eip-source-gate #eipSourceGateMeta {
  color: #e4d3aa;
}

body.theme-dark .eip-execution-source {
  border-color: #a76d13;
  background: #111827;
}

body.theme-dark .eip-execution-source > summary {
  color: #fff7df;
  background: #473515;
}

body.theme-dark .eip-execution-source > summary span {
  color: #f2d38a;
}

body.theme-dark .eip-source-review-confirm {
  border-color: #d99a2b;
  color: #fff7df;
  background: #3a2d14;
}

body.theme-dark .eip-source-review-confirm strong {
  color: #fff7df;
}

body.theme-dark .eip-source-review-confirm small {
  color: #efd79e;
}

body.theme-dark .toa-stage-action.ready,
body.dark-theme .toa-stage-action.ready { border-color: #319062; color: #8be4b7; background: #123b2a; }

body.theme-dark .mail-connection-state.ready,
body.dark-theme .mail-connection-state.ready { color: #8be4b7; background: #143a2a; }

body.theme-dark .mail-connection-state.pending,
body.dark-theme .mail-connection-state.pending { color: #ffd276; background: #4a3514; }

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

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

html body .login-logo img {
  display: block;
  width: min(100%, 440px);
  max-width: 440px;
  height: auto;
  max-height: none;
  padding: 0;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 10px 20px rgba(4, 37, 64, 0.08));
}

html body .login-logo img.login-logo-dark-theme {
  display: none;
}

html body .cookie-consent-backdrop {
  background: rgba(7, 29, 44, 0.12);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html body .cookie-consent-brand {
  min-height: 34px;
  margin-bottom: 7px;
}

html body .cookie-consent-brand img {
  width: 112px;
  max-height: 30px;
  padding: 0;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

html body .cookie-consent-brand span {
  display: none;
}

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

html body .cookie-consent-preferences {
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
}

html body .cookie-preference-row {
  min-height: 38px;
  padding: 7px 9px;
  border-radius: 10px;
}

html body .cookie-preference-row strong,
html body .cookie-preference-row small {
  font-size: 0.7rem;
}

html body .cookie-consent-footer {
  gap: 12px;
  margin-top: 10px;
  padding-top: 9px;
  font-size: 0.7rem;
}

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

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

body.theme-dark .toa-day-order-option,
body.dark-theme .toa-day-order-option { border-color: #31465f; background: #172638; }

body.theme-dark .toa-day-order-option.active,
body.dark-theme .toa-day-order-option.active { border-color: #4098f8; }

body.theme-dark .toa-day-order-option-index,
body.dark-theme .toa-day-order-option-index { color: #8cc8ff; background: #16334f; }

body.theme-dark .employee-hours-day,
body.dark-theme .employee-hours-day {
  border-color: #30485f;
  background: #142235;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

body.theme-dark .employee-hours-day-header,
body.dark-theme .employee-hours-day-header {
  color: #eefcff;
  background: #173746;
  border-color: #285567;
}

body.theme-dark .employee-hours-day-header span,
body.dark-theme .employee-hours-day-header span { color: #9fc3ce; }

body.theme-dark .employee-hours-day-header > b,
body.dark-theme .employee-hours-day-header > b { color: #57d9d2; }

body.theme-dark .employee-hours-entry,
body.dark-theme .employee-hours-entry { border-color: #263c50; }

body.theme-dark .employee-hours-entry span,
body.dark-theme .employee-hours-entry span { color: #91a9bc; }

body.theme-dark .employee-hours-entry strong,
body.dark-theme .employee-hours-entry strong { color: #f2f8fc; }

body.theme-dark .admin-user-observer,
body.dark-theme .admin-user-observer { border-top-color: #42d1d0; }

body.theme-dark .observer-analytics,
body.dark-theme .observer-analytics { color: #e9f7fa; border-color: #285568; background: linear-gradient(145deg, #132a36 0%, #111f30 100%); }

body.theme-dark .observer-analytics-heading small,
body.dark-theme .observer-analytics-heading small { color: #9eb7c2; }

body.theme-dark .observer-analytics-kpis span,
body.dark-theme .observer-analytics-kpis span,
body.theme-dark .observer-analytics-kpis small,
body.dark-theme .observer-analytics-kpis small,
body.theme-dark .observer-analytics-bar > div,
body.dark-theme .observer-analytics-bar > div { color: #9db5c1; }

body.theme-dark .observer-analytics-kpis strong,
body.dark-theme .observer-analytics-kpis strong { color: #54dbd5; }

body.theme-dark .observer-analytics-section-title strong,
body.dark-theme .observer-analytics-section-title strong { color: #eef8fa; }

body.theme-dark .observer-analytics-bar i,
body.dark-theme .observer-analytics-bar i { background: #294353; }

body.theme-dark .observer-user-picker label,
body.dark-theme .observer-user-picker label { color: #d8edf3; }

body.theme-dark .observer-live-state.idle,
body.dark-theme .observer-live-state.idle { color: #aebfcb; background: #273646; }

body.theme-dark .observer-live-state.online,
body.dark-theme .observer-live-state.online { color: #8be8b6; background: #123d2b; border-color: #26734c; }

body.theme-dark .observer-live-state.offline,
body.dark-theme .observer-live-state.offline { color: #ffd985; background: #463616; border-color: #745a21; }

body.theme-dark .observer-now-heading time,
body.dark-theme .observer-now-heading time { color: #a6bdca; }

body.theme-dark .observer-facts article,
body.dark-theme .observer-facts article,
body.theme-dark .observer-timeline-item,
body.dark-theme .observer-timeline-item { border-color: #2c455b; background: #18293b; }

body.theme-dark .observer-facts span,
body.dark-theme .observer-facts span,
body.theme-dark .observer-timeline-item small,
body.dark-theme .observer-timeline-item small,
body.theme-dark .observer-timeline-item time,
body.dark-theme .observer-timeline-item time { color: #9cb2c1; }

body.theme-dark .observer-facts strong,
body.dark-theme .observer-facts strong,
body.theme-dark .observer-timeline-item strong,
body.dark-theme .observer-timeline-item strong { color: #f1f8fb; }

body.theme-dark .admin-pending-reports-panel,
body.dark-theme .admin-pending-reports-panel {
  border-color: #285469;
  border-left-color: #27c4c1;
  background: linear-gradient(145deg, #102536 0%, #0d202e 100%);
  color: #edf9fb;
  box-shadow: 0 14px 30px rgba(0,0,0,.24);
}

body.theme-dark .admin-pending-reports-heading .eyebrow,
body.dark-theme .admin-pending-reports-heading .eyebrow { color: #61d8d5; }

body.theme-dark .admin-pending-reports-summary,
body.dark-theme .admin-pending-reports-summary {
  border-color: #315b6d;
  background: #152d3e;
  color: #d7eef2;
}

body.theme-dark .mfa-recovery-codes {
  border-color: #3d5873;
  background: #13283b;
  color: #edf6ff;
}

body.theme-dark .operational-day-summary em,
body.theme-dark .operational-day-summary small,
body.theme-dark .operational-day-timeline .toa-stage-copy small,
body.dark-theme .operational-day-summary em,
body.dark-theme .operational-day-summary small,
body.dark-theme .operational-day-timeline .toa-stage-copy small {
  color: #a9bfd6;
}

body.theme-dark .operational-timeline-heading > span,
body.dark-theme .operational-timeline-heading > span {
  color: #85c4ff;
  background: #16334f;
}

body.theme-dark .app-install-visual img,
body.dark-theme .app-install-visual img {
  border-color: #3a536e;
  background: #eef5fa;
}

body.theme-dark .app-install-visual figcaption,
body.dark-theme .app-install-visual figcaption {
  color: #b9cbe0;
}

body.theme-dark .operational-timeline-total,
body.dark-theme .operational-timeline-total {
  color: #85c4ff;
}

body.theme-dark .technician-kpi-pair > div + div,
body.dark-theme .technician-kpi-pair > div + div {
  border-left-color: #344861;
}

body.theme-dark .login-organization-saved,
body.theme-dark .sep-legal-note {
  background: #142238;
  border-color: #38516f;
  color: #f2f6fb;
}

body.theme-dark .login-organization-saved strong,
body.theme-dark .sep-legal-note a { color: #67b0ff; }

body.theme-dark .sep-expiry-item { background: #372b0d; color: #fff3c4; border-color: #d29a17; }

body.theme-dark .sep-expiry-item.is-expired { background: #3a171d; color: #ffd6da; border-color: #e34c58; }

body.theme-dark .sep-expiry-warning { background: #3b2c0c; border-color: #cc9418; color: #fff3c4; }

body.theme-dark .record-count { color: #91c8ff; background: #173a60; }

body.theme-dark .qualification-detail-row td { background: #102033; }

body.theme-dark .vacation-team-filters label > span,
body.dark-theme .vacation-team-filters label > span { color: #aebfd2; }

body.theme-dark #vacationPanel .vacation-day-number,
body.dark-theme #vacationPanel .vacation-day-number { color: #f4f8fc !important; }

body.theme-dark .vacation-own-state.is-available,
body.theme-dark .vacation-person-state.is-available,
body.dark-theme .vacation-own-state.is-available,
body.dark-theme .vacation-person-state.is-available { color: #9be5bb; background: #123827; }

body.theme-dark .vacation-own-state.is-unavailable,
body.theme-dark .vacation-person-state.is-unavailable,
body.dark-theme .vacation-own-state.is-unavailable,
body.dark-theme .vacation-person-state.is-unavailable { color: #ffb6bc; background: #3c1920; }

body.theme-dark .vacation-person-state.is-overflow,
body.dark-theme .vacation-person-state.is-overflow { color: #c9d6e5; border-color: #5a7088; background: #22364b; }

body.theme-dark .vacation-team-total,
body.dark-theme .vacation-team-total { color: #aebfd2; }

body.theme-dark .vacation-day-people span > b,
body.dark-theme .vacation-day-people span > b { color: #a9d3ff; background: #193b60; }

body.theme-dark .organization-payment-notice { background: #3a2d0d; border-color: #d89900; color: #ffe9a3; }

body.theme-dark .organization-payment-notice.overdue { background: #3d171c; border-color: #ef5965; color: #ffd5d8; }

body.theme-dark .tenant-module-row > div { background: #2d4258; }

body.theme-dark .business-employee-rate-row:hover, body.theme-dark .business-employee-rate-row:focus-visible { background: rgba(80, 157, 255, .16); }
