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

.vacation-planner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 16px;
  align-items: start;
}

#vacationPanel .vacation-calendar .calendar-weekdays,
#vacationPanel .vacation-calendar .calendar-grid {
  gap: 7px;
}

.guide-role-grid,
.guide-safety-role-grid,
.guide-admin-grid,
.guide-hidden-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guide-role-card,
.guide-safety-role,
.guide-admin-grid article,
.guide-hidden-grid article {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--opsui-border, #d8e1eb);
  border-radius: 14px;
  background: var(--opsui-surface, var(--tnvora-white));
}

.guide-role-card p,
.guide-safety-role p,
.guide-admin-grid p,
.guide-hidden-grid p {
  margin: 0;
  color: var(--opsui-muted, var(--tnvora-gray-500));
  line-height: 1.48;
}

.guide-safety-role h3,
.guide-admin-grid h3,
.guide-hidden-grid h3 {
  margin: 1px 0 6px;
  font-size: 0.96rem;
}

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

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

.guide-status-grid article > span {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  border-radius: 50%;
}

.guide-status-grid article.danger > span { background: var(--tnvora-danger-600); box-shadow: 0 0 0 5px var(--tnvora-danger-100); }

.guide-status-grid article.warning > span { background: #e3a008; box-shadow: 0 0 0 5px #fef3c7; }

.guide-status-grid article.good > span { background: #16a34a; box-shadow: 0 0 0 5px #dcfce7; }

.guide-status-grid h3 {
  margin: 0 0 7px;
  font-size: 0.94rem;
}

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

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

.guide-admin-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-admin-grid article {
  display: flex;
  flex-direction: column;
}

.guide-admin-grid p {
  flex: 1;
  margin-bottom: 13px;
}

.guide-hidden-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
}

.guide-hidden-grid article > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #15579f;
  background: #eaf4ff;
  font-size: 1.15rem;
  font-weight: 950;
}

body.theme-dark .guide-role-summary span,
body.theme-dark .guide-hidden-grid article > span {
  color: var(--tnvora-line-blue);
  background: #173653;
}

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

.app-shell.desktop-layout .guide-panel {
  max-width: 1480px;
}

.app-shell.desktop-layout .guide-chapter :is(p, li, button, small) {
  font-size: 0.84rem;
}

.personal-note-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

body .app-shell button.selection-icon-button,
body.theme-dark .app-shell button.selection-icon-button,
#adminPanel .admin-selected-users .collaborator-chip button.selection-icon-button {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 1px solid var(--selection-border) !important;
  border-radius: 8px !important;
  color: var(--selection-muted) !important;
  background: transparent !important;
  box-shadow: none !important;
}

body .app-shell button.selection-icon-button.user-favorite-toggle.active,
body.theme-dark .app-shell button.selection-icon-button.user-favorite-toggle.active {
  border-color: color-mix(in srgb, var(--selection-accent) 42%, transparent) !important;
  color: var(--selection-accent) !important;
  background: var(--selection-accent-soft) !important;
}

body .app-shell button.selection-icon-button.user-favorite-toggle:hover {
  border-color: color-mix(in srgb, var(--selection-accent) 42%, transparent) !important;
  color: var(--selection-accent) !important;
  background: var(--selection-accent-soft) !important;
}

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

.work-order-selected-users,
body.theme-dark .work-order-selected-users,
body.theme-dark .app-shell.desktop-layout .work-order-selected-users {
  padding: 12px;
  border: 1px solid var(--selection-border);
  border-radius: 12px;
  color: var(--selection-text);
  background: var(--selection-panel);
  box-shadow: none;
}

.selection-person-grid,
.work-order-selected-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 8px;
}

.selection-person-grid--timed {
  grid-template-columns: 1fr;
}

.analytics-client-technician-grid label {
  border-radius: 10px;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.analytics-client-technician-grid label:has(input:checked) {
  border-color: color-mix(in srgb, var(--selection-accent) 48%, transparent);
  background: var(--selection-accent-soft);
  box-shadow: inset 3px 0 0 var(--selection-accent);
}

.analytics-client-technician-grid input[type="checkbox"],
.role-checkbox-grid input[type="checkbox"],
.checkbox-card input[type="checkbox"] {
  accent-color: var(--selection-accent);
}

body.theme-dark #newReportPanel .collaborator-chip .user-favorite-toggle,
body.theme-dark .app-shell.desktop-layout .work-order-user-chip .user-favorite-toggle {
  color: #ffd65c;
  border-color: #8c7425;
  background: #3d3518;
}

body.theme-dark #newReportPanel .collaborator-chip .user-remove-action,
body.theme-dark .app-shell.desktop-layout .work-order-user-chip .user-remove-action {
  color: #ffb4b8;
  border-color: #7a343a;
  background: #421f25;
}

.app-shell.leader-home-layout #activeWorkOrdersPanel > .section-title {
  margin-bottom: 12px;
}

.app-shell.leader-home-layout #userWorkOrdersList {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.app-shell.leader-home-layout #userWorkOrdersList .user-work-order {
  min-width: 0;
  height: 100%;
  padding: 13px;
}

.app-shell.leader-home-layout #userWorkOrdersList .user-work-order.work-order-card-expanded {
  grid-column: 1 / -1;
}

.app-shell.leader-home-layout #userWorkOrdersList .user-work-order-info,
.app-shell.leader-home-layout #userWorkOrdersList .user-work-order-info > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.app-install-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.app-shell,
.summary-card,
.panel,
.daily-note,
.history-section,
.admin-panel,
.vehicle-panel,
.entry-card,
.vehicle-item,
.admin-user-row,
.admin-work-order {
  max-width: 100%;
  min-width: 0;
}

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

.technician-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.technician-kpi-grid article {
  position: relative;
  min-height: 122px;
  padding: 16px 15px 14px 18px;
  overflow: hidden;
  border: 1px solid #d6e2ef;
  border-radius: 15px;
  background: #f7faff;
}

.technician-kpi-grid article::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 15px 0 0 15px;
  background: #2f80ed;
  content: "";
}

.technician-kpi-grid .tone-turbines::before { background: #06b6d4; }

.technician-kpi-grid .tone-farms::before { background: #22c55e; }

.technician-kpi-grid .tone-orders::before { background: #8b5cf6; }

.technician-kpi-grid .tone-days-off::before { background: #14b8a6; }

.technician-kpi-grid .tone-login::before { background: var(--tnvora-gray-500); }

.technician-kpi-grid .tone-app-time::before { background: #0ea5e9; }

.technician-kpi-grid .tone-attention::before { background: var(--tnvora-warning-500); }

.technician-kpi-grid span,
.technician-kpi-grid strong,
.technician-kpi-grid small {
  display: block;
}

.technician-kpi-grid span {
  color: var(--tnvora-gray-500);
  font-size: 0.71rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.technician-kpi-grid strong {
  margin-top: 8px;
  color: #0f172a;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  letter-spacing: -0.04em;
}

.technician-kpi-grid small {
  margin-top: 5px;
  color: var(--tnvora-gray-500);
  font-size: 0.7rem;
  line-height: 1.35;
}

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

.technician-finance-grid {
  margin-top: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.theme-dark .technician-overview-heading > div > p:last-child,
body.theme-dark .technician-section-heading > p,
body.theme-dark .technician-overview-period,
body.theme-dark .technician-kpi-grid span,
body.theme-dark .technician-kpi-grid small,
body.theme-dark .technician-secret-card > span,
body.theme-dark .technician-secret-card > small,
body.theme-dark .technician-alert-copy small {
  color: #9fb2ca;
}

body.theme-dark .technician-kpi-grid article,
body.theme-dark .technician-finance-section,
body.theme-dark .technician-alert-card {
  border-color: #344861;
  background: #142033;
}

body.theme-dark .technician-kpi-grid strong,
body.theme-dark .technician-secret-card strong,
body.theme-dark .technician-alert-copy strong {
  color: var(--tnvora-surface-cool);
}

body.theme-light .summary-card .summary-label,
body.theme-light .summary-card .summary-grid span,
body.theme-light .summary-card .top-technician-row span {
  color: #526274 !important;
}

body.theme-light .summary-card #monthTotal,
body.theme-light .summary-card .summary-grid b,
body.theme-light .summary-card .top-technician-row {
  color: var(--navy) !important;
}

body.theme-light .summary-card .summary-grid > div,
body.theme-light .summary-card .top-technicians-panel {
  border-color: #c9d8e8 !important;
  background: rgba(255, 255, 255, 0.86) !important;
}

body.theme-light .app-shell :is(
  .panel,
  .history-section,
  .daily-note,
  .deadline-alerts,
  .boss-dashboard-panel,
  .admin-users,
  .admin-user-card-panel,
  .admin-user-create-panel,
  .vehicle-form,
  .tool-form,
  .work-hours-rates,
  .user-cert-actions,
  .expense-export-actions,
  .work-order-users,
  .work-order-guests,
  .work-order-selected-users,
  .work-order-guest,
  .vacation-team-block
) {
  color: var(--navy);
}

body.theme-light .app-shell :is(
  .panel,
  .history-section,
  .daily-note,
  .deadline-alerts,
  .boss-dashboard-panel,
  .admin-users
) :where(h1, h2, h3, h4, strong, b, th) {
  color: var(--navy);
}

body.theme-light .app-shell :is(
  .panel,
  .history-section,
  .daily-note,
  .deadline-alerts,
  .boss-dashboard-panel,
  .admin-users
) :where(p, small, label, td, .form-hint, .empty-state) {
  color: #526274;
}

body.theme-light .app-shell .eyebrow {
  color: var(--opsui-primary);
}

body.theme-light .app-shell :is(input, select, textarea) {
  border-color: #b9c9da;
  color: var(--navy);
  background: var(--tnvora-white);
}

body.theme-light .app-shell :is(input, textarea)::placeholder {
  color: #6b7b8f;
  opacity: 1;
}

body.theme-light .app-shell :is(
  .entry-card,
  .vehicle-item,
  .pending-report-card,
  .admin-work-order,
  .user-work-order,
  .work-order-active-group,
  .vacation-day-details,
  .vacation-user-days,
  .personal-note-item,
  .client-log-item
) {
  border-color: #cbd7e5;
  color: var(--navy);
  background: var(--tnvora-surface-cool);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 18px max(46px, env(safe-area-inset-bottom));
}

.layout-mode-button {
  position: relative;
  width: 46px;
  height: 42px;
  border: 1px solid rgba(0, 91, 187, 0.18);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(16, 23, 34, 0.12);
}

.layout-mode-button.active {
  border-color: rgba(0, 91, 187, 0.45);
  background: #e8f3ff;
}

.layout-icon::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 21px;
  height: 14px;
  border: 2px solid #0b5fc3;
  border-radius: 3px;
}

.layout-icon::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 26px;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: #0b5fc3;
  box-shadow: 14px -15px 0 -1px #0b5fc3, 14px -8px 0 -1px #0b5fc3;
}

.admin-user-create-access .role-checkbox-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.admin-user-role-panel .role-checkbox-grid label {
  min-height: 42px;
}

.app-shell,
.app-shell > *,
.app-shell :where(section, article, form, fieldset, label, div, dl, table, thead, tbody, tr, td, th) {
  min-width: 0;
  max-width: 100%;
}

.app-shell :where(input, select, textarea, button) {
  max-width: 100%;
}

.app-shell :where(img, svg, canvas, video) {
  max-width: 100%;
  height: auto;
}

.app-shell :where(.table-wrap, .responsive-table, .admin-table-wrap, .analytics-table-wrap, .boss-history-table-wrap) {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
}

.summary-heading,
.summary-grid {
  position: relative;
  z-index: 1;
}

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

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

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

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

.summary-grid b {
  font-size: 1.05rem;
}

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

.sms-gateway-grid label {
  min-width: 0;
}

.sms-gateway-grid input,
.sms-gateway-grid select,
.sms-broadcast-card textarea {
  width: 100%;
}

.sms-counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.sms-counter-grid div {
  padding: 12px;
  border: 1px solid rgba(29, 122, 240, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.sms-counter-grid span {
  display: block;
  color: var(--tnvora-gray-500);
  font-size: 0.72rem;
  font-weight: 850;
}

.sms-counter-grid b {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 1.2rem;
}

body.theme-dark .sms-broadcast-card,
body.theme-dark .sms-counter-grid div {
  border-color: #2e4159;
  background: rgba(15, 23, 42, 0.88);
}

body.theme-dark .sms-counter-grid span {
  color: #a8b7ca;
}

body.theme-dark .sms-counter-grid b {
  color: var(--tnvora-surface-blue);
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.company-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.backup-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.analytics-clients-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 14px;
}

.analytics-client-rate input[type="checkbox"],
.analytics-client-technician-grid input {
  width: 19px;
  height: 19px;
  accent-color: var(--blue);
}

.analytics-client-technician-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 7px;
}

.analytics-client-technician-grid label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1px 8px;
  align-items: center;
  padding: 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--tnvora-white);
  font-weight: 850;
}

.analytics-client-technician-grid input {
  grid-row: 1 / 3;
}

.analytics-client-technician-grid small {
  overflow: hidden;
  color: #9cabc0;
  text-overflow: ellipsis;
}

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

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

.role-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  width: 100%;
}

.role-checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.28);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.role-checkbox-grid input {
  width: 16px;
  height: 16px;
  accent-color: #22c55e;
}

.boss-feature-grid {
  margin: 10px 0;
}

.work-order-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 10px;
  margin-top: 12px;
}

.work-order-role-grid input:disabled {
  color: #172337;
  background: var(--tnvora-surface-blue);
  opacity: 1;
}

.work-order-active-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.app-shell.route-mode-active {
  padding-bottom: max(118px, calc(98px + env(safe-area-inset-bottom)));
}

.app-shell.route-mode-active > section.app-route-hidden {
  display: none !important;
}

.app-shell.route-mode-active .section-collapse {
  display: none !important;
}

.app-shell.route-mode-active .collapsible-section.collapsed form,
.app-shell.route-mode-active .admin-users.collapsed > :not(.admin-users-heading),
.app-shell.route-mode-active .vehicle-panel.collapsed .vehicle-content,
.app-shell.route-mode-active .history-section.collapsed .history-content {
  display: grid !important;
}

.app-shell.route-mode-active .history-section.collapsed .history-content,
.app-shell.route-mode-active .admin-users.collapsed > :not(.admin-users-heading) {
  display: block !important;
}

.side-utility-button.layout-mode-button {
  display: flex;
  position: relative;
  width: 100%;
  height: auto;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--side-menu-border);
  color: var(--side-menu-utility-text);
  background: var(--side-menu-utility-bg);
  box-shadow: none;
}

.side-utility-button .layout-icon {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 24px;
  flex: 0 0 28px;
}

.app-shell.desktop-layout {
  --desktop-row-height: 10px;
  width: min(100%, 1360px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: var(--desktop-row-height);
  align-items: start;
  gap: 18px;
}

.app-shell.desktop-layout > section {
  width: 100%;
  min-width: 0;
  margin: 0;
  grid-row-end: span var(--desktop-span, 30);
}

.app-shell.desktop-layout .summary-card,
.app-shell.desktop-layout .panel,
.app-shell.desktop-layout .daily-note,
.app-shell.desktop-layout .deadline-alerts,
.app-shell.desktop-layout .history-section,
.app-shell.desktop-layout .admin-panel {
  height: fit-content;
}

body.theme-light .app-shell.desktop-layout .panel,
body.theme-light .app-shell.desktop-layout .daily-note,
body.theme-light .app-shell.desktop-layout .history-section,
body.theme-light .app-shell.desktop-layout .admin-panel,
body.theme-light .app-shell.desktop-layout .vehicle-panel,
body.theme-light .app-shell.desktop-layout .deadline-alerts-card,
body.theme-light .app-shell.desktop-layout .boss-dashboard-panel,
body.theme-light .app-shell.desktop-layout .boss-metrics div,
body.theme-light .app-shell.desktop-layout .boss-vacation-block,
body.theme-light .app-shell.desktop-layout .boss-expenses-section,
body.theme-light .app-shell.desktop-layout .farm-info-box,
body.theme-light .app-shell.desktop-layout .admin-users,
body.theme-light .app-shell.desktop-layout .admin-user-row,
body.theme-light .app-shell.desktop-layout .admin-farm-row,
body.theme-light .app-shell.desktop-layout .backup-card,
body.theme-light .app-shell.desktop-layout .problem-report-item,
body.theme-light .app-shell.desktop-layout .top-technicians-panel {
  color: var(--navy);
  border-color: #d5e0ed;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 28px rgba(16, 23, 34, 0.08);
}

body.theme-light .app-shell.desktop-layout .summary-card {
  color: var(--tnvora-white);
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, var(--navy), #202d3e);
  box-shadow: 0 20px 45px rgba(16, 23, 34, 0.22);
}

body.theme-light .app-shell.desktop-layout #adminPanel > .admin-heading,
body.theme-light .app-shell.desktop-layout .admin-toolbar,
body.theme-light .app-shell.desktop-layout .admin-summary div {
  color: var(--navy);
  border-color: #d5e0ed;
  background: rgba(248, 251, 255, 0.98);
}

body.theme-light .app-shell.desktop-layout .daily-note-text,
body.theme-light .app-shell.desktop-layout .farm-info-text,
body.theme-light .app-shell.desktop-layout .section-title h2,
body.theme-light .app-shell.desktop-layout .deadline-alerts-heading h2,
body.theme-light .app-shell.desktop-layout .boss-vacation-block h3,
body.theme-light .app-shell.desktop-layout .boss-metrics b,
body.theme-light .app-shell.desktop-layout .admin-summary b,
body.theme-light .app-shell.desktop-layout .admin-user-row span b,
body.theme-light .app-shell.desktop-layout .admin-user-name strong,
body.theme-light .app-shell.desktop-layout .backup-card h4,
body.theme-light .app-shell.desktop-layout .problem-report-item p,
body.theme-light .app-shell.desktop-layout .admin-farm-row strong,
body.theme-light .app-shell.desktop-layout .entry-card strong,
body.theme-light .app-shell.desktop-layout .vehicle-item strong {
  color: var(--navy);
}

body.theme-light .app-shell.desktop-layout label,
body.theme-light .app-shell.desktop-layout .summary-label,
body.theme-light .app-shell.desktop-layout .boss-metrics span,
body.theme-light .app-shell.desktop-layout .admin-summary span,
body.theme-light .app-shell.desktop-layout .admin-user-row span,
body.theme-light .app-shell.desktop-layout .admin-toolbar label,
body.theme-light .app-shell.desktop-layout .admin-user-form label,
body.theme-light .app-shell.desktop-layout .problem-report-item small,
body.theme-light .app-shell.desktop-layout .entry-card span,
body.theme-light .app-shell.desktop-layout .vehicle-item span {
  color: #526274;
}

body.theme-light .app-shell.desktop-layout .summary-card .summary-label,
body.theme-light .app-shell.desktop-layout .summary-card .summary-grid span {
  color: #b7c5d8;
}

body.theme-light .app-shell.desktop-layout .summary-card #monthTotal,
body.theme-light .app-shell.desktop-layout .summary-card .summary-grid b {
  color: var(--tnvora-white);
}

body.theme-light .app-shell.desktop-layout #monthPicker {
  color: var(--tnvora-white);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
}

body.theme-light .app-shell.desktop-layout input,
body.theme-light .app-shell.desktop-layout select,
body.theme-light .app-shell.desktop-layout textarea,
body.theme-light .app-shell.desktop-layout .admin-toolbar select,
body.theme-light .app-shell.desktop-layout .admin-user-form input {
  color: var(--navy);
  border-color: #c7d5e6;
  background: var(--tnvora-white);
}

body.theme-light .app-shell.desktop-layout input::placeholder,
body.theme-light .app-shell.desktop-layout textarea::placeholder {
  color: #718096;
}

body.theme-light .app-shell.desktop-layout .boss-dashboard-tabs,
body.theme-light .app-shell.desktop-layout .boss-history-table th,
body.theme-light .app-shell.desktop-layout .inventory-table th {
  color: #41536a;
  border-color: #d8e3ef;
  background: #edf5ff;
}

body.theme-light .app-shell.desktop-layout .boss-history-table td,
body.theme-light .app-shell.desktop-layout .inventory-table td {
  color: #243348;
  border-bottom-color: #dbe5f0;
}

body.theme-light .app-shell.desktop-layout .boss-history-table-wrap,
body.theme-light .app-shell.desktop-layout .inventory-table-wrap {
  border-color: #d8e3ef;
  background: var(--tnvora-white);
}

body.theme-light .app-shell.desktop-layout .secondary-button {
  color: #12314f;
  border-color: #cbd8e8;
  background: #edf5ff;
}

body.theme-light .app-shell.desktop-layout .admin-user-actions button,
body.theme-light .app-shell.desktop-layout .admin-farm-row-actions button {
  color: #0756a8;
  border-color: #b8d4ff;
  background: #e8f3ff;
}

body.theme-light .app-shell.desktop-layout .admin-user-actions .danger-action,
body.theme-light .app-shell.desktop-layout .admin-user-actions .delete-user,
body.theme-light .app-shell.desktop-layout .admin-farm-row-actions .danger-action {
  color: var(--tnvora-white);
  border-color: var(--tnvora-danger-700);
  background: var(--tnvora-danger-700);
}

body.theme-light .app-shell.desktop-layout .panel :where(p, span, small, b, strong, h2, h3, h4, td, th),
body.theme-light .app-shell.desktop-layout .daily-note :where(p, span, small, b, strong, h2, h3, h4, label),
body.theme-light .app-shell.desktop-layout .deadline-alerts-card :where(p, span, small, b, strong, h2, h3, h4, td, th),
body.theme-light .app-shell.desktop-layout .admin-panel :where(p, span, small, b, strong, h2, h3, h4, label, td, th),
body.theme-light .app-shell.desktop-layout .boss-dashboard-panel :where(p, span, small, b, strong, h2, h3, h4, label, td, th),
body.theme-light .app-shell.desktop-layout .history-section :where(p, span, small, b, strong, h2, h3, h4, label, td, th),
body.theme-light .app-shell.desktop-layout .vehicle-panel :where(p, span, small, b, strong, h2, h3, h4, label, td, th) {
  color: inherit;
}

body.theme-light .app-shell.desktop-layout .eyebrow,
body.theme-light .app-shell.desktop-layout .admin-badge,
body.theme-light .app-shell.desktop-layout .section-title .eyebrow,
body.theme-light .app-shell.desktop-layout .daily-note .eyebrow,
body.theme-light .app-shell.desktop-layout .deadline-alerts-card .eyebrow,
body.theme-light .app-shell.desktop-layout .boss-dashboard-panel .eyebrow {
  color: var(--blue);
}

body.theme-light .app-shell.desktop-layout button:disabled {
  opacity: 0.82;
}

body.theme-dark .app-shell.desktop-layout .panel,
body.theme-dark .app-shell.desktop-layout .daily-note,
body.theme-dark .app-shell.desktop-layout .history-section,
body.theme-dark .app-shell.desktop-layout .summary-card,
body.theme-dark .app-shell.desktop-layout .admin-panel,
body.theme-dark .app-shell.desktop-layout .vehicle-panel,
body.theme-dark .app-shell.desktop-layout .deadline-alerts-card,
body.theme-dark .app-shell.desktop-layout .boss-dashboard-panel,
body.theme-dark .app-shell.desktop-layout .boss-metrics div,
body.theme-dark .app-shell.desktop-layout .boss-vacation-block,
body.theme-dark .app-shell.desktop-layout .boss-expenses-section,
body.theme-dark .app-shell.desktop-layout .farm-info-box,
body.theme-dark .app-shell.desktop-layout .admin-users,
body.theme-dark .app-shell.desktop-layout .admin-user-row,
body.theme-dark .app-shell.desktop-layout .admin-farm-row,
body.theme-dark .app-shell.desktop-layout .backup-card,
body.theme-dark .app-shell.desktop-layout .problem-report-item,
body.theme-dark .app-shell.desktop-layout .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 .app-shell.desktop-layout #adminPanel > .admin-heading,
body.theme-dark .app-shell.desktop-layout .admin-toolbar,
body.theme-dark .app-shell.desktop-layout .admin-summary div {
  color: var(--tnvora-surface-blue);
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(18, 28, 42, 0.98);
}

body.theme-dark .app-shell.desktop-layout .daily-note-text,
body.theme-dark .app-shell.desktop-layout .farm-info-text,
body.theme-dark .app-shell.desktop-layout .section-title h2,
body.theme-dark .app-shell.desktop-layout .deadline-alerts-heading h2,
body.theme-dark .app-shell.desktop-layout .boss-vacation-block h3,
body.theme-dark .app-shell.desktop-layout .boss-metrics b,
body.theme-dark .app-shell.desktop-layout .admin-summary b,
body.theme-dark .app-shell.desktop-layout .admin-user-row span b,
body.theme-dark .app-shell.desktop-layout .admin-user-name strong,
body.theme-dark .app-shell.desktop-layout .backup-card h4,
body.theme-dark .app-shell.desktop-layout .problem-report-item p,
body.theme-dark .app-shell.desktop-layout .admin-farm-row strong,
body.theme-dark .app-shell.desktop-layout .entry-card strong,
body.theme-dark .app-shell.desktop-layout .vehicle-item strong {
  color: var(--tnvora-surface-blue);
}

body.theme-dark .app-shell.desktop-layout label,
body.theme-dark .app-shell.desktop-layout .summary-label,
body.theme-dark .app-shell.desktop-layout .summary-grid span,
body.theme-dark .app-shell.desktop-layout .boss-metrics span,
body.theme-dark .app-shell.desktop-layout .admin-summary span,
body.theme-dark .app-shell.desktop-layout .admin-user-row span,
body.theme-dark .app-shell.desktop-layout .admin-toolbar label,
body.theme-dark .app-shell.desktop-layout .admin-user-form label,
body.theme-dark .app-shell.desktop-layout .problem-report-item small,
body.theme-dark .app-shell.desktop-layout .entry-card span,
body.theme-dark .app-shell.desktop-layout .vehicle-item span {
  color: #a8b7ca;
}

body.theme-dark .app-shell.desktop-layout #monthTotal,
body.theme-dark .app-shell.desktop-layout .summary-grid b {
  color: var(--tnvora-white);
}

body.theme-dark .app-shell.desktop-layout #monthPicker {
  color: var(--tnvora-surface-blue);
  border-color: #40536d;
  background: #21314a;
}

body.theme-dark .app-shell.desktop-layout input,
body.theme-dark .app-shell.desktop-layout select,
body.theme-dark .app-shell.desktop-layout textarea,
body.theme-dark .app-shell.desktop-layout .admin-toolbar select,
body.theme-dark .app-shell.desktop-layout .admin-user-form input {
  color: var(--tnvora-surface-blue);
  border-color: #3c4f68;
  background: #172234;
}

body.theme-dark .app-shell.desktop-layout input::placeholder,
body.theme-dark .app-shell.desktop-layout textarea::placeholder {
  color: #7f8da3;
}

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

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

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

body.theme-dark .app-shell.desktop-layout .secondary-button {
  color: var(--tnvora-line-blue);
  border-color: #3b4f6b;
  background: #24364d;
}

body.theme-dark .app-shell.desktop-layout #adminCompanyPanel .company-settings-fields,
body.theme-dark .app-shell.desktop-layout #adminCompanyPanel .company-logo-box {
  color: var(--tnvora-surface-blue);
  border-color: #33445c;
  background: #172234;
}

body.theme-dark .app-shell.desktop-layout #adminCompanyPanel .company-logo-preview-wrap {
  border-color: #4b617e;
  background: var(--tnvora-surface-cool);
}

body.theme-light .app-shell.desktop-layout #adminCompanyPanel .company-settings-fields,
body.theme-light .app-shell.desktop-layout #adminCompanyPanel .company-logo-box {
  color: var(--navy);
  border-color: #d8e3ef;
  background: var(--tnvora-surface-cool);
}

body.theme-dark .app-shell.desktop-layout .admin-user-actions button,
body.theme-dark .app-shell.desktop-layout .admin-farm-row-actions button {
  color: var(--tnvora-line-blue);
  border-color: #3f5f92;
  background: #1f3552;
}

body.theme-dark .app-shell.desktop-layout .admin-user-actions .danger-action,
body.theme-dark .app-shell.desktop-layout .admin-user-actions .delete-user,
body.theme-dark .app-shell.desktop-layout .admin-farm-row-actions .danger-action {
  color: var(--tnvora-danger-100);
  border-color: #7f1d1d;
  background: #7f1d1d;
}

body.theme-dark .app-shell.desktop-layout .panel :where(p, span, small, b, strong, h2, h3, h4, td, th),
body.theme-dark .app-shell.desktop-layout .daily-note :where(p, span, small, b, strong, h2, h3, h4, label),
body.theme-dark .app-shell.desktop-layout .deadline-alerts-card :where(p, span, small, b, strong, h2, h3, h4, td, th),
body.theme-dark .app-shell.desktop-layout .admin-panel :where(p, span, small, b, strong, h2, h3, h4, label, td, th),
body.theme-dark .app-shell.desktop-layout .boss-dashboard-panel :where(p, span, small, b, strong, h2, h3, h4, label, td, th),
body.theme-dark .app-shell.desktop-layout .history-section :where(p, span, small, b, strong, h2, h3, h4, label, td, th),
body.theme-dark .app-shell.desktop-layout .vehicle-panel :where(p, span, small, b, strong, h2, h3, h4, label, td, th) {
  color: inherit;
}

body.theme-dark .app-shell.desktop-layout .eyebrow,
body.theme-dark .app-shell.desktop-layout .admin-badge,
body.theme-dark .app-shell.desktop-layout .section-title .eyebrow,
body.theme-dark .app-shell.desktop-layout .daily-note .eyebrow,
body.theme-dark .app-shell.desktop-layout .deadline-alerts-card .eyebrow,
body.theme-dark .app-shell.desktop-layout .boss-dashboard-panel .eyebrow {
  color: #5aa2ff;
}

body.theme-dark .app-shell.desktop-layout button:disabled {
  opacity: 0.82;
}

body.theme-dark .app-shell.desktop-layout .entry-card,
body.theme-dark .app-shell.desktop-layout .vehicle-item,
body.theme-dark .app-shell.desktop-layout .inventory-table tbody tr,
body.theme-dark .app-shell.desktop-layout .boss-history-table tr {
  color: var(--tnvora-surface-blue);
  border-color: #2f4056;
  background: #101a28;
}

body.theme-dark .app-shell.desktop-layout .entry-card,
body.theme-dark .app-shell.desktop-layout .vehicle-item {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

body.theme-dark .app-shell.desktop-layout .vehicle-item.warning,
body.theme-dark .app-shell.desktop-layout .inventory-table tbody tr.warning,
body.theme-dark .app-shell.desktop-layout .inventory-table tbody tr.warning:hover,
body.theme-dark .app-shell.desktop-layout .inventory-table tbody tr.warning:focus {
  background: #241b25;
}

body.theme-dark .app-shell.desktop-layout .inventory-table tbody tr:hover,
body.theme-dark .app-shell.desktop-layout .inventory-table tbody tr:focus,
body.theme-dark .app-shell.desktop-layout .boss-history-table tr:hover,
body.theme-dark .app-shell.desktop-layout .boss-history-table tr:focus {
  background: #17253a;
  box-shadow: inset 0 0 0 2px rgba(90, 162, 255, 0.18);
}

body.theme-dark .app-shell.desktop-layout .vehicle-form label,
body.theme-dark .app-shell.desktop-layout .work-hours-rates label,
body.theme-dark .app-shell.desktop-layout .user-cert-actions label,
body.theme-dark .app-shell.desktop-layout .work-order-users legend,
body.theme-dark .app-shell.desktop-layout .work-order-guests legend,
body.theme-dark .app-shell.desktop-layout .form-hint,
body.theme-dark .app-shell.desktop-layout .empty-order-list,
body.theme-dark .app-shell.desktop-layout .empty-state p,
body.theme-dark .app-shell.desktop-layout .inventory-name small {
  color: #b8c7da;
}

body.theme-dark .app-shell.desktop-layout .empty-state h3,
body.theme-dark .app-shell.desktop-layout .selected-history-title,
body.theme-dark .app-shell.desktop-layout .vehicle-item strong,
body.theme-dark .app-shell.desktop-layout .inventory-name,
body.theme-dark .app-shell.desktop-layout .entry-card strong,
body.theme-dark .app-shell.desktop-layout .entry-hours b {
  color: var(--tnvora-surface-cool);
}

body.theme-dark .app-shell.desktop-layout .vehicle-item span,
body.theme-dark .app-shell.desktop-layout .entry-card span,
body.theme-dark .app-shell.desktop-layout .inventory-table td,
body.theme-dark .app-shell.desktop-layout .boss-history-table td {
  color: #c9d7e8;
}

body.theme-dark .app-shell.desktop-layout .history-month-label,
body.theme-dark .app-shell.desktop-layout .month-choice,
body.theme-dark .app-shell.desktop-layout .work-order-selected-chips button {
  color: var(--tnvora-surface-blue);
  border-color: #34465f;
  background: #172234;
}

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

body.theme-dark .app-shell.desktop-layout .calendar-weekdays span {
  color: #c8d6e8;
}

body.theme-dark .app-shell.desktop-layout .calendar-cell.empty {
  background: transparent;
}

body.theme-dark .app-shell.desktop-layout .type-badge {
  color: #bfdbfe !important;
  background: #183763;
}

body.theme-dark .app-shell.desktop-layout .shared-badge {
  color: #bbf7d0 !important;
  background: #173c2a;
}

body.theme-dark .app-shell.desktop-layout .inventory-badge {
  color: #d9e7f7;
  border-color: #40536c;
  background: #172234;
}

body.theme-dark .app-shell.desktop-layout .inventory-badge.ok {
  color: #bbf7d0;
  border-color: #166534;
  background: #123923;
}

body.theme-dark .app-shell.desktop-layout .inventory-badge.warning {
  color: #fde68a;
  border-color: #92400e;
  background: #3b2b12;
}

body.theme-dark .app-shell.desktop-layout .inventory-badge.danger {
  color: #fecaca;
  border-color: var(--tnvora-danger-700);
  background: #3a1518;
}

body.theme-dark .app-shell.desktop-layout .inventory-badge.warehouse {
  color: #bfdbfe;
  border-color: #1d4ed8;
  background: #142b4d;
}

body.theme-dark .app-shell.desktop-layout .edit-inline-button,
body.theme-dark .app-shell.desktop-layout .entry-actions button {
  color: #bfdbfe;
  border-color: #315f9e;
  background: #173763;
}

body.theme-dark .app-shell.desktop-layout .edit-inline-button.danger,
body.theme-dark .app-shell.desktop-layout .entry-actions .entry-delete-action {
  color: #fecaca;
  border-color: #7f1d1d;
  background: #3a1518;
}

body.theme-dark .app-shell.desktop-layout .edit-inline-button.warning-action {
  color: #fde68a;
  border-color: #92400e;
  background: #3b2b12;
}

body.theme-dark .app-shell.desktop-layout .signature-canvas,
body.theme-dark .app-shell.desktop-layout .guest-signature-canvas {
  border-color: #536782;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(225, 235, 247, 0.98)),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(22, 119, 242, 0.08) 31px 32px);
}

body.theme-dark .app-shell.desktop-layout .deadline-alerts-card {
  color: #f4f8ff;
  border-color: #344861;
  background: #101a28;
}

body.theme-dark .app-shell.desktop-layout .deadline-alerts-heading h2 {
  color: var(--tnvora-surface-cool);
}

body.theme-dark .app-shell.desktop-layout .deadline-alerts-card .eyebrow {
  color: #5aa2ff;
}

body.theme-dark .app-shell.desktop-layout .deadline-table-wrap {
  border-color: #354961;
  background: #0d1623;
}

body.theme-dark .app-shell.desktop-layout .deadline-alerts-table {
  color: #e7f0fb;
}

body.theme-dark .app-shell.desktop-layout .deadline-alerts-table th {
  color: #dce9f8;
  border-bottom-color: #40546f;
  background: #18253a;
}

body.theme-dark .app-shell.desktop-layout .deadline-alerts-table td {
  color: #e3edf9;
  border-bottom-color: #34465f;
}

body.theme-dark .app-shell.desktop-layout .deadline-alerts-table .deadline-overdue td,
body.theme-dark .app-shell.desktop-layout .deadline-alerts-table tr.deadline-overdue {
  background: #261923;
}

body.theme-dark .app-shell.desktop-layout .deadline-alerts-table tr.deadline-soon {
  background: #1d1f1d;
}

body.theme-dark .app-shell.desktop-layout .deadline-alerts-table tr.deadline-overdue:hover,
body.theme-dark .app-shell.desktop-layout .deadline-alerts-table tr.deadline-overdue:focus,
body.theme-dark .app-shell.desktop-layout .deadline-alerts-table tr.deadline-soon:hover,
body.theme-dark .app-shell.desktop-layout .deadline-alerts-table tr.deadline-soon:focus {
  background: #23334d;
}

body.theme-dark .app-shell.desktop-layout .deadline-status {
  color: var(--tnvora-surface-cool);
  border: 1px solid #50647f;
  background: #24364d;
}

body.theme-dark .app-shell.desktop-layout .deadline-status.danger {
  color: #fecaca !important;
  border-color: #b91c1c;
  background: #5b1d24;
}

body.theme-dark .app-shell.desktop-layout .deadline-status.warning {
  color: #fde68a !important;
  border-color: #b45309;
  background: #4a3213;
}

body.theme-dark .app-shell.desktop-layout .admin-work-order,
body.theme-dark .app-shell.desktop-layout .user-work-order {
  color: #f4f8ff;
  border-color: #4a3517;
  border-left-color: var(--tnvora-warning-500);
  background: linear-gradient(135deg, #201a12, #141c2a);
}

body.theme-dark .app-shell.desktop-layout .admin-work-order strong,
body.theme-dark .app-shell.desktop-layout .user-work-order strong {
  color: #fef3c7;
}

body.theme-dark .app-shell.desktop-layout .admin-work-order span,
body.theme-dark .app-shell.desktop-layout .admin-work-order small,
body.theme-dark .app-shell.desktop-layout .user-work-order span,
body.theme-dark .app-shell.desktop-layout .user-work-order small {
  color: #d9e6f6;
}

body.theme-dark .app-shell.desktop-layout .signed-work-order {
  border-color: #245c3b;
  border-left-color: #22c55e;
  background: linear-gradient(135deg, #10291d, #122235);
}

body.theme-dark .app-shell.desktop-layout .signed-work-order strong {
  color: #bbf7d0;
}

body.theme-dark .app-shell.desktop-layout .coordinator-work-order {
  border-color: #7c4a03;
  border-left-color: var(--tnvora-warning-500);
  background: linear-gradient(135deg, #2a1f0d, #172235);
}

body.theme-dark .app-shell.desktop-layout .coordinator-work-order strong {
  color: #fde68a;
}

body.theme-dark .app-shell.desktop-layout .user-work-order .admin-user-actions {
  gap: 10px;
}

body.theme-dark .app-shell.desktop-layout .work-order-sign-button {
  color: var(--tnvora-white);
  background: #1677f2;
}

body.theme-dark .app-shell.desktop-layout .work-order-close-button {
  color: var(--tnvora-white);
  background: #16a34a;
}

body.theme-dark .app-shell.desktop-layout .user-work-order .danger-action,
body.theme-dark .app-shell.desktop-layout .admin-work-order .danger-action {
  color: var(--tnvora-danger-100);
  border-color: #7f1d1d;
  background: #8f1d1d;
}

body.theme-dark .vehicle-item.warning,
body.theme-dark .inventory-table tbody tr.warning,
body.theme-dark .inventory-table tbody tr.warning:hover,
body.theme-dark .inventory-table tbody tr.warning:focus,
body.theme-dark .app-shell.desktop-layout .vehicle-item.warning,
body.theme-dark .app-shell.desktop-layout .inventory-table tbody tr.warning,
body.theme-dark .app-shell.desktop-layout .inventory-table tbody tr.warning:hover,
body.theme-dark .app-shell.desktop-layout .inventory-table tbody tr.warning:focus {
  background: #151f2e;
  box-shadow: inset 5px 0 0 rgba(220, 38, 38, 0.88);
}

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

@media (min-width: 980px) {
  .app-shell.desktop-layout.home-dashboard-layout > .topbar {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
  }

  .app-shell.desktop-layout.home-dashboard-layout .daily-note {
    grid-column: 2 / span 4 !important;
    grid-row: 2 !important;
    align-self: start !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .app-shell.desktop-layout.home-dashboard-layout #activeWorkOrdersPanel,
  .app-shell.desktop-layout.home-dashboard-layout #activeWorkOrdersPanel.boss-pending-home-slot {
    grid-column: 2 / span 4 !important;
    grid-row: 3 !important;
    align-self: start !important;
    position: static !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .app-shell.desktop-layout.home-dashboard-layout #bossDashboardPanel {
    grid-column: 6 / -1 !important;
    grid-row: 2 !important;
    align-self: start !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .app-shell.desktop-layout.home-dashboard-layout .deadline-alerts.deadline-alerts-office {
    grid-column: 6 / -1 !important;
    grid-row: 3 !important;
    align-self: start !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .app-shell.desktop-layout.home-dashboard-layout #summaryPanel,
  .app-shell.desktop-layout.home-dashboard-layout .summary-card {
    grid-column: 2 / span 4 !important;
    grid-row: 4 !important;
  }
}

.app-shell > section,
.app-shell :where(form, label, div, table) {
  min-width: 0;
}

.admin-user-create-access .role-checkbox-grid,
.admin-user-role-panel .role-checkbox-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-user-card-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.35fr);
  gap: 12px;
  padding: 0 14px 14px;
}

.admin-user-role-panel .role-checkbox-grid {
  margin-top: 12px;
}

.admin-user-role-panel .role-checkbox-grid button {
  min-height: 38px;
  border: 1px solid rgba(96, 165, 250, 0.45);
  border-radius: 8px;
  color: var(--tnvora-line-blue);
  background: rgba(37, 99, 235, 0.22);
  font-size: 0.68rem;
  font-weight: 850;
}

body.theme-light .admin-user-role-panel .role-checkbox-grid button {
  border-color: #a9cbee;
  color: #0b5fc3;
  background: #eaf3ff;
}

body.theme-light .admin-user-role-panel .role-checkbox-grid button:hover,
body.theme-light .admin-user-role-panel .role-checkbox-grid button:focus-visible {
  color: var(--tnvora-white);
  background: var(--blue);
}

.leader-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.leader-kpi-grid article,
.leader-signature-score article {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--opsui-border);
  border-radius: var(--opsui-radius);
  background: var(--opsui-surface-muted);
}

.leader-kpi-grid article {
  position: relative;
  overflow: hidden;
}

.leader-kpi-grid article::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--opsui-primary);
  content: "";
}

.leader-kpi-grid article:nth-child(2)::before {
  background: var(--opsui-field);
}

.leader-kpi-grid article:nth-child(3)::before {
  background: var(--opsui-signal);
}

.leader-kpi-grid article:nth-child(4)::before {
  background: #f2a93b;
}

.leader-kpi-grid span,
.leader-signature-score span {
  display: block;
  color: var(--opsui-muted);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.leader-kpi-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--opsui-text);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.05;
}

.leader-kpi-grid small,
.leader-signature-score small {
  display: block;
  margin-top: 7px;
  color: var(--opsui-muted);
  font-size: 0.68rem;
}

.leader-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 12px;
}

.app-shell > section.app-route-active,
.app-shell > .admin-panel.app-route-active {
  width: min(100%, var(--ops-page-width));
  min-width: 0;
  margin-right: auto;
  margin-left: auto;
}

.app-shell > :is(
  .panel,
  .history-section,
  .summary-card,
  .daily-note,
  .deadline-alerts,
  .admin-panel
) {
  min-width: 0;
}

.app-shell :is(.panel, .history-section, .admin-panel) form {
  min-width: 0;
}

.app-shell :is(.panel, .history-section, .admin-panel) label {
  min-width: 0;
  color: var(--opsui-muted);
  font-size: 0.69rem;
  font-weight: 850;
}

.app-shell :is(.panel, .history-section, .admin-panel) :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
  select,
  textarea
) {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--opsui-border-strong);
  border-radius: var(--opsui-radius-small);
  color: var(--opsui-text);
  background: var(--opsui-surface-muted);
  box-shadow: none;
  font: inherit;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease;
}

.app-shell :is(.panel, .history-section, .admin-panel) :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
  select,
  textarea
):hover {
  border-color: color-mix(in srgb, var(--opsui-primary) 42%, var(--opsui-border-strong));
}

.app-shell :is(.panel, .history-section, .admin-panel) :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
  select,
  textarea
):focus {
  border-color: var(--opsui-primary);
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--opsui-primary) 18%, transparent);
}

.app-shell :is(.panel, .history-section, .admin-panel) textarea {
  min-height: 88px;
  resize: vertical;
}

.app-shell :is(.panel, .history-section, .admin-panel) :is(input, select, textarea)::placeholder {
  color: color-mix(in srgb, var(--opsui-muted) 76%, transparent);
}

.app-shell :is(.panel, .history-section, .admin-panel) :is(
  input[type="checkbox"],
  input[type="radio"]
) {
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  margin: 0;
  accent-color: var(--ops-success);
}

.app-shell :is(.panel, .history-section, .admin-panel) input[type="range"] {
  width: 100%;
  min-height: 24px;
  accent-color: var(--opsui-primary);
}

.app-shell :is(.panel, .history-section, .admin-panel) fieldset,
.form-section,
.vehicle-cost-export,
.add-database-box,
.backup-card,
.company-logo-box {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--opsui-border);
  border-radius: var(--opsui-radius);
  background: var(--opsui-surface-muted);
}

.app-shell :is(.panel, .history-section, .admin-panel) legend {
  padding: 0 7px;
  color: var(--opsui-text);
  font-size: 0.72rem;
  font-weight: 900;
}

.app-shell :is(.panel, .history-section, .admin-panel) table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--opsui-text);
}

.app-shell :is(.panel, .history-section, .admin-panel) thead th {
  padding: 10px 11px;
  border-top: 1px solid var(--opsui-border);
  border-bottom: 1px solid var(--opsui-border);
  color: var(--opsui-muted);
  background: var(--opsui-surface-raised);
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-align: left;
  text-transform: uppercase;
}

.app-shell :is(.panel, .history-section, .admin-panel) thead th:first-child {
  border-left: 1px solid var(--opsui-border);
  border-radius: var(--opsui-radius-small) 0 0 var(--opsui-radius-small);
}

.app-shell :is(.panel, .history-section, .admin-panel) thead th:last-child {
  border-right: 1px solid var(--opsui-border);
  border-radius: 0 var(--opsui-radius-small) var(--opsui-radius-small) 0;
}

.app-shell :is(.panel, .history-section, .admin-panel) tbody td {
  padding: 10px 11px;
  border-bottom: 1px solid var(--opsui-border);
  color: var(--opsui-text);
  font-size: 0.7rem;
}

.app-shell :is(.panel, .history-section, .admin-panel) tbody tr {
  transition: background-color 120ms ease;
}

.app-shell :is(.panel, .history-section, .admin-panel) tbody tr:hover {
  background: color-mix(in srgb, var(--opsui-primary) 7%, transparent);
}

.admin-summary,
.boss-metrics,
.summary-grid,
.statistics-card-grid,
.analytics-kpis,
.client-summary-grid {
  gap: var(--ops-gap);
}

.admin-summary > div,
.boss-metrics > div,
.summary-grid > div,
.statistics-card,
.analytics-kpi-card,
.client-insight-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--opsui-border);
  border-radius: var(--opsui-radius);
  color: var(--opsui-text);
  background: var(--opsui-surface-muted);
  box-shadow: none;
}

.admin-summary > div::before,
.boss-metrics > div::before,
.summary-grid > div::before,
.statistics-card::before,
.analytics-kpi-card::before,
.client-insight-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--opsui-primary);
  content: "";
}

.admin-summary > div:nth-child(2)::before,
.boss-metrics > div:nth-child(2)::before,
.summary-grid > div:nth-child(2)::before {
  background: var(--ops-success);
}

.admin-summary > div:nth-child(3)::before,
.boss-metrics > div:nth-child(3)::before,
.summary-grid > div:nth-child(3)::before {
  background: var(--opsui-signal);
}

.admin-summary span,
.boss-metrics span,
.summary-grid span,
.statistics-card span,
.analytics-kpi-card span,
.client-insight-card span {
  color: var(--opsui-muted);
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.admin-summary b,
.boss-metrics b,
.summary-grid b,
.statistics-card strong,
.analytics-kpi-card strong,
.client-insight-card strong {
  color: var(--opsui-text);
}

.role-checkbox-grid label,
.sms-toggle,
.coordinator-technician-row {
  min-width: 0;
  border: 1px solid var(--opsui-border);
  border-radius: var(--opsui-radius-small);
  color: var(--opsui-text);
  background: var(--opsui-surface-muted);
}

.role-checkbox-grid input,
.sms-toggle input,
.coordinator-technician-row input {
  width: 20px !important;
  min-height: 20px !important;
  accent-color: var(--ops-success);
}

.app-shell {
  max-width: 100%;
  overflow-x: clip;
}

.side-utility-button.layout-mode-button .side-utility-icon {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 12px;
}

.work-order-audit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  margin-top: 12px;
}

.work-order-audit-grid > section {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--opsui-border);
  border-radius: var(--opsui-radius-small);
  background: var(--opsui-surface-raised);
}

.work-order-audit-grid h4 {
  margin: 0 0 12px;
  font-size: 0.72rem;
}

.employee-kpi-grid,
.boss-employee-hours-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.employee-kpi-grid article,
.boss-employee-hours-summary article {
  display: grid;
  gap: 7px;
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--opsui-border, var(--tnvora-gray-300));
  border-left: 5px solid var(--blue);
  border-radius: 14px;
  background: var(--opsui-surface-soft, rgba(148, 163, 184, 0.08));
}

.employee-kpi-grid article span,
.boss-employee-hours-summary article span {
  color: var(--opsui-muted, var(--tnvora-gray-500));
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.employee-kpi-grid article strong,
.boss-employee-hours-summary article strong {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.app-shell.boss-home-layout #dailyNote {
  order: 99;
}

@media (min-width: 980px) {
  .app-shell.desktop-layout.home-route-layout.technician-home-layout:not(.home-dashboard-layout) >
    #deadlineAlerts.app-route-active {
    grid-row: 2 !important;
  }

  .app-shell.desktop-layout.home-route-layout.technician-home-layout:not(.home-dashboard-layout) >
    #technicianOverviewPanel.app-route-active {
    grid-row: 3 !important;
  }
}

.admin-user-card-grid {
  padding: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.12);
}

.admin-user-card-grid[hidden] {
  display: none !important;
}

body.theme-light .admin-user-card-grid {
  border-top-color: #dce6f1;
  background: #f8fafc;
}

.reviews-alert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

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

.toa-guidance-grid article {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 92%, #2386ff 8%);
}

.toa-guidance-grid article:last-child {
  grid-column: 1 / -1;
}

.toa-guidance-grid strong {
  color: var(--tnvora-success-700);
}

.toa-guidance-grid p {
  margin: 7px 0 0;
  line-height: 1.55;
}

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

.toa-system-grid fieldset {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.toa-system-grid legend {
  padding: 0 7px;
  color: var(--tnvora-success-700);
  font-size: 12px;
  font-weight: 900;
}

.toa-system-grid label {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 9px;
  align-items: center;
  min-height: 42px;
  padding: 8px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface) 94%, #2386ff 6%);
  cursor: pointer;
}

.toa-system-grid input {
  width: 20px;
  height: 20px;
  accent-color: var(--tnvora-success-700);
}

.work-order-primary-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--opsui-border, #31445b);
  border-radius: var(--opsui-radius, 14px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--opsui-primary, #2386ff) 8%, transparent), transparent 42%),
    var(--opsui-surface-muted, #152236);
}

.work-order-primary-grid .work-order-date-range,
.work-order-primary-grid .work-order-hour-range {
  grid-column: span 6;
}

.work-order-primary-grid .work-order-permit-selector {
  grid-column: 1 / -1;
}

.work-order-primary-grid .work-order-location-field,
.work-order-primary-grid .work-order-type-field {
  grid-column: span 8;
}

.work-order-primary-grid .work-order-turbine-field,
.work-order-primary-grid .single-action-option {
  grid-column: span 4;
}

.work-order-primary-grid label,
#workOrderForm .work-order-partner-box label,
#workOrderForm .work-order-role-grid label {
  color: var(--opsui-muted, #aebfd2);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.analytics-client-technician-grid {
  max-height: 390px;
  padding-right: 5px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.analytics-client-technician-grid label {
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}

.analytics-client-technician-grid label:hover {
  border-color: rgba(114, 177, 255, 0.32);
  background: rgba(35, 134, 255, 0.1);
}

body.theme-dark .toa-live-badge,
body.theme-dark .toa-document-button.ready,
body.theme-dark .toa-guidance-grid strong,
body.theme-dark .toa-system-grid legend {
  color: #62e89e;
}

.tnvora-parties-grid,
.tnvora-scope-grid,
.tnvora-signature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tnvora-parties-grid > div,
.tnvora-scope-grid > div {
  padding: 18px;
  border: 1px solid #d6e0e9;
  border-radius: 10px;
  background: #f8fafc;
}

.tnvora-parties-grid span,
.tnvora-signature-grid span {
  display: block;
  margin-bottom: 7px;
  color: var(--agreement-blue);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.tnvora-parties-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
}

.tnvora-parties-grid p,
.tnvora-scope-grid p {
  margin: 5px 0;
  line-height: 1.45;
}

.tnvora-scope-grid {
  margin-top: 14px;
}

.tnvora-scope-grid h3,
.tnvora-document-section h3 {
  margin: 0 0 10px;
  font-size: .95rem;
}

.tnvora-scope-grid ol,
.tnvora-document-section ul {
  margin: 0;
  padding-left: 22px;
}

.tnvora-signature-grid {
  margin-top: 30px;
}

.tnvora-signature-grid > div {
  min-height: 110px;
  padding: 18px;
  border: 1px solid #cad6e0;
  border-radius: 10px;
  background: var(--tnvora-white);
}

.tnvora-signature-grid > div.signed {
  border-color: #5bc48e;
  background: #edfbf4;
}

.tnvora-signature-grid > div.pending {
  border-color: #e5bb5e;
  background: #fff9e9;
}

.tnvora-signature-grid strong,
.tnvora-signature-grid small {
  display: block;
}

.tnvora-signature-grid small {
  margin-top: 8px;
  color: #607080;
}

.eip-workspace {
  display: grid;
  grid-template-columns: minmax(330px, .86fr) minmax(380px, 1.14fr);
  gap: 14px;
}

.toa-workspace {
  display: grid;
  grid-template-columns: minmax(620px, 1.35fr) minmax(390px, .75fr);
  gap: 18px;
  align-items: start;
}

.toa-weekdays,
.toa-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.mail-provider-field,
.mail-settings-grid label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 850; }

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

.mail-settings-grid.is-disabled { display: none; }

.employees-terms-layout {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.employee-terms-grid {
  display: grid;
  gap: 12px;
}

.employee-rate-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.employee-payroll-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  margin-top: 14px;
}

.employee-contract-grid {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(160px, auto);
  align-items: end;
}

.employee-contract-grid label.is-disabled {
  opacity: .65;
}

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

.observer-analytics-grid > article { padding: 14px; border: 1px solid #cce4e8; border-radius: 14px; background: rgba(255,255,255,.82); }

body.theme-dark .observer-analytics-kpis article,
body.dark-theme .observer-analytics-kpis article,
body.theme-dark .observer-analytics-grid > article,
body.dark-theme .observer-analytics-grid > article { border-color: #2b4d5f; background: #182c3b; }

.operational-calendar .calendar-weekdays,
.operational-calendar .calendar-grid {
  gap: 8px;
}

.technician-kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.technician-kpi-grid .tone-workplaces::before {
  background: linear-gradient(180deg, #22c55e 0 50%, #06b6d4 50% 100%);
}

.technician-kpi-grid .tone-kilometers::before {
  background: #0ea5e9;
}

.business-analysis-card,
.employee-costs-workspace,
#companyCostsWorkspace {
  display: grid;
  gap: 16px;
}

.business-analysis-card,
.employee-costs-workspace {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid var(--line, #dbe2ea);
  border-radius: 20px;
  color: var(--ink, var(--navy));
  background: var(--surface, var(--tnvora-white));
}

.business-kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }

.business-kpi-grid article {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line, #dbe2ea);
  border-radius: 16px;
  background: color-mix(in srgb, var(--blue-soft, #e9f3ff) 38%, var(--surface, var(--tnvora-white)));
}

.business-kpi-grid article span { color: var(--muted, #697586); font-size: .72rem; font-weight: 850; letter-spacing: .08em; }

.business-kpi-grid article strong { align-self: end; font-size: clamp(1.05rem, 2vw, 1.45rem); }

.business-kpi-grid article.positive { border-color: #40a975; background: #eaf8f1; }

.business-kpi-grid article.negative { border-color: #d46a70; background: #fff0f1; }

.tenant-kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 10px; }

.tenant-admin-layout { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(420px, 1.2fr); gap: 14px; }

.tenant-server-grid { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 9px; margin-top: 14px; }

.tenant-server-grid div { padding: 12px; border-radius: 12px; background: #edf5fc; display: grid; gap: 4px; }

.tenant-server-grid span { color: #607487; font-size: .76rem; font-weight: 800; }

.tenant-server-grid strong { overflow-wrap: anywhere; }

.tenant-control-grid { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 12px; margin-top: 14px; }

.tenant-control-grid label { display: grid; gap: 6px; font-weight: 800; }

.tenant-feature-grid { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 9px; margin-top: 16px; }

body.theme-dark .tenant-admin-toolbar small, body.theme-dark .tenant-kpi span, body.theme-dark .tenant-kpi small, body.theme-dark .tenant-server-grid span, body.theme-dark .tenant-users-table td small { color: #aebfd0; }

body.theme-dark .tenant-server-grid div, body.theme-dark .tenant-users-table th { background: #182b40; color: #e8f3fd; }
