:root {
  --app-font-scale: 1;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f8faff;
  --surface-3: #eef3fb;
  --border: #e4eaf2;
  --text: #1d2939;
  --muted: #667085;
  --soft: #98a2b3;
  --primary: #315fe9;
  --primary-dark: #2548b8;
  --primary-soft: #eaf0ff;
  --green: #16a47a;
  --green-soft: #e5f8f1;
  --amber: #e89c25;
  --amber-soft: #fff4df;
  --violet: #7b61db;
  --violet-soft: #f0edff;
  --red: #e65c66;
  --red-soft: #ffebed;
  --sidebar: #f7f9fc;
  --shadow: 0 8px 26px rgba(30, 53, 87, 0.07);
  --scrollbar-track: color-mix(in srgb, var(--surface-2) 72%, transparent);
  --scrollbar-thumb: color-mix(in srgb, var(--primary) 42%, var(--soft));
  --scrollbar-thumb-hover: color-mix(in srgb, var(--primary) 68%, var(--soft));
}

:root[data-theme="dark"] {
  --bg: #111827;
  --surface: #182231;
  --surface-2: #1d2938;
  --surface-3: #243247;
  --border: #2c3b4f;
  --text: #ecf2fb;
  --muted: #a9b5c7;
  --soft: #7f8ea3;
  --primary-soft: #21355f;
  --green-soft: #153d35;
  --amber-soft: #44351c;
  --violet-soft: #302a50;
  --red-soft: #49262c;
  --sidebar: #141e2b;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

*::-webkit-scrollbar-track {
  border-radius: 999px;
  background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--scrollbar-thumb);
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: calc(14px * var(--app-font-scale));
}

body.backend-restricted
  [data-permission]:not([data-permission="reports_view"]):not(
    [data-permission="reports_fill"]
  ) {
  display: none !important;
}

button,
input,
select {
  font: inherit;
}
button {
  border: 0;
  cursor: pointer;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(0, 1fr);
  background:
    linear-gradient(135deg, rgba(49, 95, 233, 0.08), transparent 42%), var(--bg);
}
.auth-panel {
  min-height: 100vh;
  padding: clamp(26px, 5vw, 58px);
  position: relative;
  overflow: hidden;
  background: #030606;
  border-right: 1px solid rgba(99, 180, 166, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(3, 6, 6, 0.92), rgba(3, 6, 6, 0.68)),
    linear-gradient(180deg, rgba(3, 6, 6, 0.5), rgba(3, 6, 6, 0.94));
  pointer-events: none;
}
.auth-panel > *:not(.auth-panel-bg) {
  position: relative;
  z-index: 2;
}
.auth-panel-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: auto;
  height: 118%;
  max-width: none;
  transform: translate(-50%, -50%) rotate(90deg) scale(1.08);
  transform-origin: center;
  pointer-events: none;
}
.auth-brand {
  position: absolute;
  top: clamp(22px, 4vw, 42px);
  left: clamp(26px, 5vw, 58px);
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(239, 247, 255, 0.86);
  font-size: calc(20px * var(--app-font-scale));
  font-weight: 700;
}
.auth-brand img {
  width: 126px;
  height: 48px;
  object-fit: contain;
}
.auth-copy {
  max-width: 390px;
  margin-top: 48px;
}
.auth-copy p {
  margin: 0 0 12px;
  color: #4b79ff;
  font-size: calc(12px * var(--app-font-scale));
  font-weight: 800;
  letter-spacing: 1px;
}
.auth-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: calc(38px * var(--app-font-scale));
  line-height: 1.08;
  letter-spacing: 0;
}
.auth-copy span {
  display: block;
  max-width: 360px;
  margin-top: 18px;
  color: rgba(226, 237, 252, 0.82);
  line-height: 1.55;
}
.auth-form {
  width: 100%;
  max-width: 390px;
}
.auth-form label:not(.auth-check) {
  display: block;
  margin: 18px 0 8px;
  color: #ffffff;
  font-size: calc(12px * var(--app-font-scale));
  font-weight: 700;
}
.auth-field {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid rgba(144, 162, 190, 0.24);
  border-radius: 8px;
  background: rgba(22, 35, 52, 0.72);
  color: rgba(190, 207, 232, 0.78);
}
.auth-field:focus-within {
  border-color: rgba(75, 121, 255, 0.82);
  box-shadow: 0 0 0 4px rgba(49, 95, 233, 0.1);
}
.auth-field input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
}
.auth-field input::placeholder {
  color: rgba(190, 207, 232, 0.72);
}
.auth-password-toggle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: transparent;
  color: rgba(190, 207, 232, 0.78);
}
.auth-password-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.auth-options {
  margin: 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(226, 237, 252, 0.84);
  font-size: calc(12px * var(--app-font-scale));
}
.auth-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}
.auth-link {
  background: transparent;
  color: #4b79ff;
  font-size: calc(12px * var(--app-font-scale));
  font-weight: 700;
}
.auth-link:disabled,
.auth-submit:disabled,
.auth-secondary-submit:disabled {
  cursor: wait;
  opacity: 0.82;
  transform: none;
}
.auth-loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  animation: auth-spin 0.7s linear infinite;
}
@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}
.auth-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  font-size: calc(12px * var(--app-font-scale));
  font-weight: 700;
}
.auth-submit {
  width: 100%;
  height: 48px;
  margin-top: 22px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 750;
  box-shadow: 0 10px 20px rgba(49, 95, 233, 0.2);
}
.auth-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.auth-secondary-submit {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  border: 1px solid rgba(126, 154, 197, 0.36);
  border-radius: 8px;
  background: rgba(18, 31, 48, 0.72);
  color: rgba(226, 237, 252, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: calc(13px * var(--app-font-scale));
  font-weight: 750;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}
.auth-secondary-submit:hover {
  background: rgba(49, 95, 233, 0.16);
  border-color: rgba(126, 154, 197, 0.58);
  transform: translateY(-1px);
}
.auth-offline-submit {
  margin-top: 12px;
  border: 1px solid rgba(144, 162, 190, 0.28);
  background: rgba(22, 35, 52, 0.72);
  box-shadow: none;
}
.auth-offline-submit:hover {
  background: rgba(49, 95, 233, 0.16);
}
.auth-offline-help {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: calc(12px * var(--app-font-scale));
  line-height: 1.45;
}
.auth-aside {
  min-width: 0;
  padding: clamp(28px, 6vw, 72px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 32px;
  background:
    linear-gradient(145deg, rgba(22, 164, 122, 0.22), transparent 40%),
    linear-gradient(315deg, rgba(232, 156, 37, 0.16), transparent 44%), #172033;
  color: #fff;
}
.auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
  opacity: 0.42;
  pointer-events: none;
}
.auth-aside > div:not(.auth-video) {
  position: relative;
  z-index: 2;
}
.auth-status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: calc(12px * var(--app-font-scale));
  font-weight: 700;
}
.auth-aside h2 {
  max-width: 620px;
  margin: 0;
  font-size: calc(42px * var(--app-font-scale));
  line-height: 1.05;
  letter-spacing: 0;
}
.auth-aside p {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: calc(16px * var(--app-font-scale));
  line-height: 1.6;
}
.auth-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #172033;
  pointer-events: none;
}
.auth-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
}

.app-shell {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--bg);
}
.main-area,
.content-wrap,
.view-section,
.panel {
  min-width: 0;
}
.view-section {
  display: none;
  width: 100%;
  max-width: 100%;
}
.view-section.active {
  display: block;
}
img,
svg,
canvas {
  max-width: 100%;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  z-index: 1040;
  display: flex;
  flex-direction: column;
  padding: 0 18px 18px;
}

.sidebar-brand {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
  position: relative;
}

.sidebar-logo {
  display: block;
  width: min(174px, 100%);
  max-height: 78px;
  object-fit: contain;
}
.sidebar-close {
  position: absolute;
  top: 8px;
  right: -4px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  position: relative;
  border-radius: 12px;
  background: linear-gradient(145deg, #4678fb, #274bc8);
  box-shadow: 0 5px 13px rgba(49, 95, 233, 0.28);
  display: grid;
  place-items: center;
  color: white;
  font-size: calc(21px * var(--app-font-scale));
  font-weight: 750;
  overflow: hidden;
}
.brand-mark i {
  position: absolute;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  right: -3px;
  top: -3px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  padding-right: 2px;
}
.sidebar > .sidebar-nav:first-of-type {
  flex: 1 1 auto;
  min-height: 0;
}
.sidebar-system-nav {
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  overflow-y: visible;
}
.nav-label {
  margin: 4px 12px 7px;
  font-size: calc(14px * var(--app-font-scale));
  font-weight: 700;
  letter-spacing: 1.1px;
  color: var(--soft);
}
.nav-item {
  width: 100%;
  height: 43px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  background: transparent;
  border-radius: 9px;
  font-weight: 570;
  text-align: left;
  transition: 0.18s ease;
}
.nav-item:hover {
  color: var(--primary);
  background: var(--surface-3);
}
.nav-item.active {
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 670;
}
.nav-item i {
  font-size: calc(17px * var(--app-font-scale));
  width: 20px;
  text-align: center;
}
.nav-item small {
  margin-left: auto;
  background: var(--surface);
  color: var(--primary);
  min-width: 23px;
  height: 21px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: calc(14px * var(--app-font-scale));
  font-weight: 700;
}
.nav-group {
  display: flex;
  flex-direction: column;
}
.nav-parent .nav-chevron {
  width: auto;
  margin-left: auto;
  font-size: calc(14px * var(--app-font-scale));
  transition: transform 0.2s ease;
}
.nav-group.open .nav-chevron {
  transform: rotate(180deg);
}
.nav-group.active > .nav-parent {
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 670;
}
.nav-submenu {
  display: none;
  margin: 3px 0 3px 31px;
  padding-left: 13px;
  border-left: 1px solid var(--border);
}
.nav-group.open .nav-submenu {
  display: grid;
  gap: 2px;
}
.nav-subitem {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  font-size: calc(12px * var(--app-font-scale));
}
.nav-subitem:hover,
.nav-subitem.active {
  color: var(--primary);
  background: var(--primary-soft);
}
.nav-subitem small {
  margin-left: auto;
  color: var(--soft);
  font-size: calc(12px * var(--app-font-scale));
}

.user-mini {
  margin-top: auto;
  padding: 14px 5px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-profile-trigger {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px;
  border-radius: 8px;
  text-align: left;
}
.user-profile-trigger:hover,
.user-profile-trigger:focus-visible {
  background: var(--primary-soft);
  outline: none;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(145deg, #d5e1ff, #b6caff);
  color: #27468f;
  display: grid;
  place-items: center;
  font-size: calc(12px * var(--app-font-scale));
  font-weight: 750;
  overflow: hidden;
  flex: 0 0 34px;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.user-profile-trigger > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.user-profile-trigger strong {
  font-size: calc(12px * var(--app-font-scale));
  white-space: nowrap;
}
.user-profile-trigger span {
  font-size: calc(12px * var(--app-font-scale));
  color: var(--muted);
  margin-top: 3px;
}
.user-mini > i {
  margin-left: auto;
  color: var(--soft);
}
.user-logout {
  flex: 0 0 auto;
  min-width: 48px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  font-size: calc(12px * var(--app-font-scale));
  font-weight: 750;
  margin-left: auto;
}
.user-logout:hover,
.user-logout:focus-visible {
  background: var(--red);
  color: #fff;
  outline: none;
}
.top-actions .user-mini {
  margin-top: 0;
  padding: 0 0 0 8px;
  border-top: 0;
  border-left: 1px solid var(--border);
  position: relative;
}
.top-actions .user-profile-trigger {
  max-width: 190px;
  min-height: 40px;
  padding: 3px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.top-actions .user-profile-trigger:hover,
.top-actions .user-profile-trigger:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 32%, var(--border));
}
.top-actions .user-profile-trigger strong,
.top-actions .user-profile-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 116px;
}
.top-actions .user-logout {
  margin-left: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-4px);
  pointer-events: none;
}
.top-actions .user-mini:hover .user-logout,
.top-actions .user-mini:focus-within .user-logout {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}
.top-context-action-hidden {
  display: none !important;
}
.user-password-form {
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid var(--border);
}
.compact-actions {
  padding-top: 8px;
}
.dashboard-empty-data .spark-bars i {
  height: 6% !important;
  opacity: 0.35;
}
.dashboard-empty-data .line-chart .area,
.dashboard-empty-data .line-chart .main-line,
.dashboard-empty-data .line-chart .soft-line,
.dashboard-empty-data .line-chart circle {
  opacity: 0;
}
.dashboard-empty-data .donut {
  background: conic-gradient(var(--surface-3) 0 100%);
}

.main-area {
  margin-left: 260px;
  min-height: 100vh;
  max-width: calc(100% - 260px);
  overflow: visible;
}
.topbar {
  width: 100%;
  max-width: 100%;
  height: 72px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 1010;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--muted);
  transition: 0.18s;
}
.icon-button:hover {
  background: var(--surface-3);
  color: var(--primary);
}
.icon-button i {
  font-size: calc(17px * var(--app-font-scale));
}

.top-search {
  position: relative;
  min-width: 0;
  height: 40px;
  width: min(470px, 48vw);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  color: var(--soft);
}
.top-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  margin: 0 10px;
  font-size: calc(12px * var(--app-font-scale));
}
.top-search input::placeholder,
.inline-search input::placeholder {
  color: var(--soft);
}
.top-search kbd {
  border: 1px solid var(--border);
  color: var(--soft);
  background: var(--surface);
  border-radius: 5px;
  box-shadow: none;
  font-size: calc(10px * var(--app-font-scale));
  padding: 3px 6px;
}
.global-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1100;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(9, 16, 30, 0.28);
}
.global-search-results button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  text-align: left;
  transform: none;
  box-shadow: none;
}
.global-search-results button:hover,
.global-search-results button:focus-visible {
  background: var(--primary-soft);
}
.global-search-results button > i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary);
  flex: 0 0 34px;
}
.global-search-results strong,
.global-search-results em,
.global-search-results small {
  display: block;
}
.global-search-results em {
  color: var(--primary);
  font-size: calc(8px * var(--app-font-scale));
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}
.global-search-results strong {
  font-size: calc(11px * var(--app-font-scale));
}
.global-search-results small,
.global-search-empty {
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
}
.global-search-empty {
  padding: 12px;
}
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
}
.sync-status {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 700;
  white-space: nowrap;
}
.sync-status i {
  color: #58d4aa;
  font-size: calc(14px * var(--app-font-scale));
}
.sync-status[data-sync-state="offline"] i {
  color: #f2b84b;
}
.sync-status[data-sync-state="pending"] i {
  color: #f2b84b;
}
.sync-status[data-sync-state="syncing"] i {
  color: var(--primary);
  animation: sync-spin 0.9s linear infinite;
}
.sync-status[data-sync-state="failed"] i {
  color: #e54c55;
}
@keyframes sync-spin {
  to {
    transform: rotate(360deg);
  }
}
.notification {
  position: relative;
}
.notification span {
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  background: #e54c55;
  position: absolute;
  top: 3px;
  right: 2px;
  border: 2px solid var(--surface);
  color: #fff;
  display: none;
  place-items: center;
  padding: 0 4px;
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 800;
  line-height: 1;
}
.notification.has-notifications span {
  display: grid;
}
.notification-popover {
  position: fixed;
  z-index: 1060;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.18);
  overflow: hidden;
}
.notification-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--border);
}
.notification-popover-head span,
.notification-item small,
.notification-empty span {
  color: var(--muted);
  font-size: calc(11px * var(--app-font-scale));
}
.notification-popover-head strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: calc(15px * var(--app-font-scale));
}
.notification-popover-head .icon-button {
  width: 32px;
  height: 32px;
}
.notification-list {
  max-height: min(430px, calc(100vh - 140px));
  overflow-y: auto;
  padding: 6px;
}
.notification-item {
  width: 100%;
  min-height: 70px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.notification-item:hover {
  background: var(--surface-2);
}
.notification-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--primary);
}
.notification-item.danger .notification-item-icon {
  background: color-mix(in srgb, #e54c55 14%, var(--surface));
  color: #e54c55;
}
.notification-item.warning .notification-item-icon {
  background: color-mix(in srgb, #f1ae48 18%, var(--surface));
  color: #b97814;
}
.notification-item-body {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.notification-item-body strong,
.notification-item-body small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notification-item-body strong {
  font-size: calc(13px * var(--app-font-scale));
}
.notification-item em {
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.notification-item.danger em {
  color: #e54c55;
}
.notification-dismiss {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
}
.notification-dismiss:hover {
  background: var(--surface-3);
  color: var(--text);
}
.notification-empty {
  min-height: 170px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 26px;
  text-align: center;
}
.notification-empty i {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--muted);
  font-size: calc(18px * var(--app-font-scale));
}
.notification-empty strong {
  color: var(--text);
  font-size: calc(14px * var(--app-font-scale));
}

.btn-new,
.outline-action,
.text-action,
.agenda-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: 0.18s ease;
}
button {
  position: relative;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    opacity 0.16s ease;
}
button:active,
button.active,
button[aria-pressed="true"] {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 6px rgba(16, 24, 40, 0.18),
    0 1px 1px rgba(16, 24, 40, 0.08);
}
button.is-loading {
  pointer-events: none;
  cursor: wait;
}
input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}
.button-loading-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: inherit;
  min-width: 0;
}
button.is-loading .button-loading-content {
  opacity: 0;
}
button.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: button-loading-spin 0.7s linear infinite;
}
button.is-click-locked {
  pointer-events: none;
}
@keyframes button-loading-spin {
  to {
    transform: rotate(360deg);
  }
}
.btn-new {
  height: 39px;
  padding: 0 15px;
  border-radius: 9px;
  color: #fff;
  background: var(--primary);
  font-size: calc(12px * var(--app-font-scale));
  font-weight: 680;
  box-shadow: 0 5px 12px rgba(49, 95, 233, 0.18);
}
.btn-new:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.btn-new:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.btn-new.large {
  height: 43px;
  padding: 0 19px;
}
.outline-action {
  height: 40px;
  padding: 0 15px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: calc(12px * var(--app-font-scale));
  font-weight: 620;
}
.outline-action:hover {
  border-color: #aab8dc;
  color: var(--primary);
}
.outline-action.danger {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 30%, var(--border));
}
.text-action {
  background: none;
  color: var(--primary);
  font-weight: 650;
  font-size: calc(12px * var(--app-font-scale));
}

.content-wrap {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px;
}
.page-heading {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 25px;
}
.page-heading > * {
  min-width: 0;
}
.page-heading p {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 750;
  letter-spacing: 1.25px;
}
.page-heading h1 {
  font-size: calc(26px * var(--app-font-scale));
  letter-spacing: -0.65px;
  font-weight: 720;
  margin: 0;
}
.page-heading span {
  color: var(--muted);
  display: block;
  margin-top: 7px;
  font-size: calc(12px * var(--app-font-scale));
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.metric-card {
  min-height: 139px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.metric-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: calc(17px * var(--app-font-scale));
  margin-right: 12px;
  flex: 0 0 auto;
}
.metric-icon.blue {
  color: var(--primary);
  background: var(--primary-soft);
}
.metric-icon.amber {
  color: var(--amber);
  background: var(--amber-soft);
}
.metric-icon.green {
  color: var(--green);
  background: var(--green-soft);
}
.metric-icon.violet {
  color: var(--violet);
  background: var(--violet-soft);
}
.metric-copy {
  display: flex;
  flex-direction: column;
  z-index: 1;
}
.metric-copy > span {
  color: var(--muted);
  font-size: calc(11px * var(--app-font-scale));
}
.metric-copy strong {
  font-size: calc(25px * var(--app-font-scale));
  line-height: 1.1;
  margin-top: 8px;
  letter-spacing: -0.5px;
}
.metric-copy p {
  margin: 9px 0 0;
  color: var(--soft);
  font-size: calc(11px * var(--app-font-scale));
  width: 90%;
}
.metric-copy em {
  color: var(--green);
  font-style: normal;
  font-weight: 700;
}
.spark-bars {
  position: absolute;
  right: 15px;
  bottom: 21px;
  width: 58px;
  height: 45px;
  display: flex;
  align-items: end;
  gap: 4px;
  opacity: 0.85;
}
.spark-bars i {
  flex: 1;
  min-height: 4px;
  border-radius: 5px;
  background: var(--primary);
  opacity: 0.7;
}
.spark-bars.amber i {
  background: var(--amber);
}
.spark-bars.green i {
  background: var(--green);
}
.spark-bars.violet i {
  background: var(--violet);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, 0.75fr);
  gap: 16px;
}
.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
  gap: 16px;
}
.metric-grid > *,
.dashboard-grid > *,
.bottom-grid > *,
.schedule-layout > *,
.template-editor-layout > * {
  min-width: 0;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: var(--shadow);
}
.performance-panel,
.status-panel,
.agenda-panel {
  padding: 21px;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}
.performance-panel .panel-header {
  flex-wrap: wrap;
}
.performance-panel .panel-header > div:first-child {
  flex: 1 1 auto;
  min-width: min(180px, 100%);
}
.performance-panel .dashboard-period-controls {
  flex: 0 1 360px;
}
.panel-header h2 {
  font-size: calc(14px * var(--app-font-scale));
  font-weight: 690;
  margin: 0;
}
.panel-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
}
.dashboard-period-controls {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(92px, 120px);
  gap: 10px;
  min-width: min(100%, 360px);
}
.panel-header select,
.table-toolbar select {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  height: 33px;
  font-size: calc(10px * var(--app-font-scale));
  padding: 0 30px 0 11px;
  outline: none;
}
.panel-more {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}
.panel-more:hover {
  background: var(--surface-3);
}
.chart-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 23px 0 4px 42px;
}
.chart-summary strong {
  font-size: calc(22px * var(--app-font-scale));
}
.chart-summary span {
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
}
.chart-summary em {
  font-style: normal;
  margin-left: auto;
  color: var(--green);
  background: var(--green-soft);
  padding: 4px 7px;
  border-radius: 10px;
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 700;
}
.metric-copy em.negative,
.chart-summary em.negative {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 16%, transparent);
}
.metric-copy em.neutral,
.chart-summary em.neutral {
  color: var(--muted);
  background: var(--surface-2);
}

.line-chart {
  position: relative;
  height: 215px;
  padding-left: 35px;
  padding-bottom: 25px;
}
.line-chart svg {
  width: 100%;
  height: 175px;
  overflow: visible;
}
.grid-lines line {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
.line-chart .area {
  fill: url(#chartFill);
}
.main-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
}
.soft-line {
  fill: none;
  stroke: #a8bdf7;
  stroke-width: 2;
  stroke-dasharray: 5 6;
}
.line-chart circle {
  fill: var(--surface);
  stroke: var(--primary);
  stroke-width: 2.5;
}
.y-labels {
  position: absolute;
  left: 4px;
  top: 3px;
  bottom: 37px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--soft);
  font-size: calc(8px * var(--app-font-scale));
}
.x-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
  color: var(--soft);
  font-size: calc(8px * var(--app-font-scale));
}
.chart-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: var(--muted);
  font-size: calc(9px * var(--app-font-scale));
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chart-legend i {
  width: 13px;
  height: 3px;
  border-radius: 3px;
  background: var(--primary);
}
.chart-legend .legend-soft {
  background: #a8bdf7;
}

.status-panel {
  display: flex;
  flex-direction: column;
}
.donut-wrap {
  display: grid;
  place-items: center;
  flex: 1;
  padding: 20px 0 16px;
}
.donut {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(
    var(--primary) 0 64%,
    #f1ae48 64% 85%,
    var(--violet) 85% 95%,
    #d8dee9 95% 100%
  );
  position: relative;
}
.donut::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: var(--surface);
}
.donut > div {
  display: flex;
  flex-direction: column;
  text-align: center;
  z-index: 1;
}
.donut strong {
  font-size: calc(25px * var(--app-font-scale));
  line-height: 1.1;
}
.donut span {
  color: var(--muted);
  font-size: calc(9px * var(--app-font-scale));
  margin-top: 4px;
}
.status-breakdown {
  display: grid;
  gap: 11px;
}
.status-breakdown > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
}
.status-breakdown span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-breakdown strong {
  color: var(--text);
  font-size: calc(10px * var(--app-font-scale));
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.dot.blue {
  background: var(--primary);
}
.dot.amber {
  background: #f1ae48;
}
.dot.violet {
  background: var(--violet);
}
.dot.gray {
  background: #d8dee9;
}

.recent-panel {
  padding: 21px 0 0;
  overflow: hidden;
}
.recent-panel .panel-header {
  padding: 0 21px 16px;
}
.report-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 690px;
}
.report-table th {
  background: var(--surface-2);
  color: var(--soft);
  font-size: calc(9px * var(--app-font-scale));
  letter-spacing: 0.7px;
  font-weight: 700;
  padding: 11px 16px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.report-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  vertical-align: middle;
}
.report-table tbody tr:hover {
  background: color-mix(in srgb, var(--primary-soft) 32%, transparent);
}
.report-table tbody tr.report-row-highlight {
  background: color-mix(in srgb, var(--primary-soft) 58%, var(--surface));
  box-shadow: inset 4px 0 0 var(--primary);
}
.report-table tbody tr.report-row-highlight td:first-child {
  border-left: 0;
}
.report-table tbody tr:last-child td {
  border-bottom: 0;
}
.report-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}
.file-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: calc(14px * var(--app-font-scale));
  flex: 0 0 auto;
}
.report-title > div:last-child {
  display: flex;
  flex-direction: column;
}
.report-title strong {
  color: var(--text);
  font-size: calc(12px * var(--app-font-scale));
  font-weight: 640;
}
.report-title span {
  color: var(--soft);
  font-size: calc(10px * var(--app-font-scale));
  margin-top: 3px;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 10px;
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 650;
  white-space: nowrap;
}
.status-badge > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status-analysis {
  color: #3464da;
  background: var(--primary-soft);
}
.status-pending {
  color: #b8791b;
  background: var(--amber-soft);
}
.status-awaiting {
  color: #7357c7;
  background: var(--violet-soft);
}
.status-approved {
  color: #168362;
  background: var(--green-soft);
}
.status-draft {
  color: var(--muted);
  background: var(--surface-3);
}
.status-canceled {
  color: var(--red);
  background: var(--red-soft);
}
.report-sync-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 4px 7px;
  border-radius: 8px;
  background: rgba(224, 158, 38, 0.12);
  color: #b8790b;
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 750;
  white-space: nowrap;
}
.due-date {
  white-space: nowrap;
}
.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
}
.row-actions button {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  background: transparent;
  color: var(--soft);
}
.row-actions button:hover {
  background: var(--surface-3);
  color: var(--primary);
}
.row-actions .view-pdf-button {
  width: auto;
  min-width: 118px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
  background: color-mix(in srgb, var(--primary-soft) 72%, transparent);
  color: var(--primary);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 750;
  white-space: nowrap;
}
.row-actions .view-pdf-button:hover {
  background: var(--primary);
  color: #fff;
}
.row-actions button.delete:hover {
  color: var(--red);
  background: var(--red-soft);
}
.row-actions .continue-report-button {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 700;
  white-space: nowrap;
}
.row-actions .continue-report-button:hover {
  background: var(--primary);
  color: #fff;
}
.report-actions-menu {
  position: relative;
  display: inline-flex;
}
.report-actions-trigger {
  width: 34px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
}
.report-actions-trigger:hover,
.report-actions-trigger[aria-expanded="true"] {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  color: var(--primary);
}
.report-actions-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: 178px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 35px rgba(3, 13, 29, 0.22);
}
.report-actions-dropdown.floating {
  position: fixed;
  top: auto;
  right: auto;
  bottom: auto;
  z-index: 2000;
}
.report-actions-dropdown.drop-up {
  top: auto;
  bottom: calc(100% + 8px);
}
.report-actions-dropdown.floating.drop-up {
  bottom: auto;
}
.report-actions-dropdown button {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 700;
  text-align: left;
}
.report-actions-dropdown button:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.report-actions-dropdown button.danger {
  color: #cf4b4b;
}
.report-actions-dropdown button.danger:hover {
  background: rgba(207, 75, 75, 0.1);
  color: #e25858;
}
.selectable-report-table tbody tr {
  overflow: visible;
}
.recent-panel .continue-report-button span {
  display: none;
}
.recent-panel .view-pdf-button {
  width: auto;
  min-width: 112px;
  padding: 0 10px;
}
.recent-panel .view-pdf-button span {
  display: inline;
}
.responsible {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.responsible > span {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: calc(7px * var(--app-font-scale));
  font-weight: 750;
}

.approval-heading-actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.approval-summary-mini {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 12px;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 700;
  white-space: nowrap;
}
.approval-summary-mini span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 0;
}
.approval-summary-mini span + span::before {
  content: "";
  width: 1px;
  height: 13px;
  margin-right: 7px;
  background: var(--border);
}
.approval-summary-mini strong {
  color: var(--text);
  font-size: inherit;
}
.approval-summary-mini > span > i.bi {
  color: var(--primary);
  font-size: calc(11px * var(--app-font-scale));
}
.approval-summary-mini .pending > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}
.approval-summary-mini .pending,
.approval-summary-mini .pending strong {
  color: var(--amber);
}
.approval-session-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
}
.approval-session-user i {
  color: var(--green);
  font-size: calc(12px * var(--app-font-scale));
}
.approval-session-user strong {
  color: var(--text);
}
.approvals-table {
  min-width: 930px;
  text-align: center;
}
.approval-submitted {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.approval-submitted strong {
  color: var(--text);
  font-size: calc(10px * var(--app-font-scale));
}
.approval-submitted span {
  color: var(--soft);
  font-size: calc(10px * var(--app-font-scale));
}
.approval-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.approval-actions button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 700;
  white-space: nowrap;
}
.approval-actions button:hover {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}
.approval-actions .approval-approve {
  border-color: rgba(37, 145, 104, 0.28);
  background: rgba(37, 145, 104, 0.08);
  color: #168362;
}
.approval-actions .approval-return {
  border-color: rgba(190, 125, 28, 0.25);
  background: rgba(190, 125, 28, 0.08);
  color: #a66a12;
}
.approval-action-modal form {
  display: grid;
  gap: 12px;
  padding-top: 18px;
}
.approval-note-field {
  color: var(--text);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 700;
}
.approval-note-field textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  outline: 0;
  resize: none;
  font-size: calc(10px * var(--app-font-scale));
}
.approval-note-field textarea:focus {
  border-color: #8ba7fa;
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.approval-service-value-field {
  display: block;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 5%, var(--surface-2));
}
.approval-service-value-field > span {
  display: block;
  color: var(--text);
  font-size: calc(11px * var(--app-font-scale));
  font-weight: 800;
}
.approval-service-value-field > small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: calc(9px * var(--app-font-scale));
  line-height: 1.4;
}
.approval-service-value-input {
  display: grid;
  grid-template-columns: 22px auto 1fr;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.approval-service-value-input i {
  color: var(--primary);
  font-size: calc(16px * var(--app-font-scale));
}
.approval-service-value-input strong {
  color: var(--muted);
  font-size: calc(11px * var(--app-font-scale));
}
.approval-service-value-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: 0;
  font-size: calc(18px * var(--app-font-scale));
  font-weight: 800;
}
.approval-service-value-input:focus-within {
  border-color: #8ba7fa;
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.approval-decision-user {
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 9px;
  align-items: center;
  padding: 11px 13px;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--muted);
}
.approval-decision-user i {
  grid-row: span 2;
  color: var(--primary);
  font-size: calc(17px * var(--app-font-scale));
}
.approval-decision-user span {
  font-size: calc(8px * var(--app-font-scale));
}
.approval-decision-user strong {
  color: var(--text);
  font-size: calc(9px * var(--app-font-scale));
}
.approval-return-confirm {
  background: #b8791b !important;
  box-shadow: 0 7px 15px rgba(184, 121, 27, 0.2) !important;
}

.agenda-list {
  display: grid;
  gap: 1px;
  margin-top: 16px;
}
.agenda-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-align: left;
}
button.agenda-item:hover,
button.agenda-item:focus-visible {
  color: var(--text);
  outline: none;
}
.agenda-date {
  width: 40px;
  height: 44px;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.agenda-date strong {
  font-size: calc(15px * var(--app-font-scale));
  line-height: 1;
}
.agenda-date span {
  font-size: calc(7px * var(--app-font-scale));
  font-weight: 700;
  margin-top: 4px;
}
.agenda-date.red {
  color: var(--red);
  background: var(--red-soft);
}
.agenda-date.blue {
  color: var(--primary);
  background: var(--primary-soft);
}
.agenda-date.violet {
  color: var(--violet);
  background: var(--violet-soft);
}
.agenda-date.green {
  color: var(--green);
  background: var(--green-soft);
}
.agenda-date.amber {
  color: var(--amber);
  background: var(--amber-soft);
}
.agenda-item h3 {
  font-size: calc(12px * var(--app-font-scale));
  margin: 0;
  font-weight: 650;
}
.agenda-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
}
.agenda-item > i {
  color: var(--soft);
  font-size: calc(10px * var(--app-font-scale));
}
.agenda-empty {
  padding: 18px 0;
  color: var(--muted);
  text-align: center;
}
.agenda-empty i,
.agenda-empty strong,
.agenda-empty p {
  display: block;
}
.agenda-empty i {
  color: var(--primary);
  font-size: calc(22px * var(--app-font-scale));
  margin-bottom: 8px;
}
.agenda-empty strong {
  color: var(--text);
  font-size: calc(12px * var(--app-font-scale));
}
.agenda-empty p {
  margin: 4px 0 0;
  font-size: calc(10px * var(--app-font-scale));
}
.agenda-button {
  width: 100%;
  height: 36px;
  border-radius: 8px;
  margin-top: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 670;
}

.reports-page-panel {
  min-width: 0;
  overflow: visible;
}
.reports-page-panel .table-responsive {
  overflow: visible;
}
.table-responsive,
.execution-checklist-wrap,
.technical-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
.table-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 20px;
}
.inline-search {
  min-width: 0;
  width: 310px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 9px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--soft);
}
.inline-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  width: 100%;
  margin-left: 9px;
  font-size: calc(11px * var(--app-font-scale));
}
.toolbar-actions {
  display: flex;
  gap: 8px;
}
.table-toolbar select {
  height: 40px;
}
.reports-page-panel .report-table td {
  padding-top: 16px;
  padding-bottom: 16px;
}
.offline-queue-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--amber-soft) 46%, transparent);
}
.offline-queue-panel span {
  display: block;
  color: var(--amber);
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}
.offline-queue-panel strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: calc(12px * var(--app-font-scale));
}
.offline-queue-panel p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
}
.report-delete-warning {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  border: 1px solid color-mix(in srgb, var(--red) 28%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--red-soft) 55%, transparent);
  padding: 12px;
}
.report-delete-warning i {
  color: var(--red);
  font-size: calc(18px * var(--app-font-scale));
}
.report-delete-warning strong {
  display: block;
  color: var(--text);
  font-size: calc(12px * var(--app-font-scale));
}
.report-delete-warning p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
}
.report-delete-modal .report-modal-close {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  box-shadow: 0 8px 18px rgba(15, 25, 45, 0.12);
}
.report-delete-modal .report-modal-close:hover,
.report-delete-modal .report-modal-close:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 58%, var(--border));
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.report-delete-modal .report-modal-close:active {
  border-color: color-mix(in srgb, var(--red) 60%, var(--border));
  background: color-mix(in srgb, var(--red-soft) 72%, var(--surface));
  color: var(--red);
  transform: translateY(1px);
}
.report-delete-modal .report-delete-warning,
.report-delete-modal .approval-note-field,
.report-delete-modal .modal-actions {
  margin-left: 26px;
  margin-right: 26px;
}
.report-delete-modal .report-delete-warning {
  margin-bottom: 18px;
}
.report-delete-modal .modal-actions {
  padding-bottom: 26px;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state i {
  font-size: calc(34px * var(--app-font-scale));
  color: var(--soft);
}
.empty-state h3 {
  font-size: calc(15px * var(--app-font-scale));
  color: var(--text);
  margin: 12px 0 5px;
}
.empty-state p {
  margin: 0;
  font-size: calc(11px * var(--app-font-scale));
}
.client-list-panel.is-empty .client-layout,
.technician-panel.is-empty .technician-layout {
  display: none;
}
.client-list-panel.is-empty .empty-state,
.technician-panel.is-empty .empty-state {
  min-height: min(52vh, 520px);
  display: grid;
  align-content: center;
  justify-items: center;
}
.selection-cell {
  width: 44px;
  text-align: center !important;
  padding-left: 16px !important;
  padding-right: 8px !important;
}
.selection-cell input {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  cursor: pointer;
}
.selected-reports-count {
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  white-space: nowrap;
}
.toolbar-actions .outline-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.clients-command-panel {
  display: grid;
  gap: 16px;
}
.client-heading-actions {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  justify-content: flex-end;
  flex-wrap: wrap;
  flex-direction: column;
}
.client-summary-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 700;
  white-space: nowrap;
}
.client-summary-mini span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.client-summary-mini span + span::before {
  content: "";
  width: 1px;
  height: 13px;
  margin-right: 7px;
  background: var(--border);
}
.client-summary-mini strong {
  color: var(--text);
}
.client-summary-mini > span > i.bi {
  color: var(--primary);
  font-size: calc(11px * var(--app-font-scale));
}
.client-summary-mini .done > i,
.client-summary-mini .pending > i,
.client-summary-mini .future > i {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--green);
}
.client-summary-mini .pending > i {
  background: var(--amber);
}
.client-summary-mini .future > i {
  background: var(--primary);
}
.report-heading-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-direction: column;
  gap: 16px;
}
.report-summary-mini {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 12px;
  max-width: 620px;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 700;
}
.report-summary-mini span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.report-summary-mini span + span::before {
  content: "";
  width: 1px;
  height: 13px;
  margin-right: 7px;
  background: var(--border);
}
.report-summary-mini strong {
  color: var(--text);
}
.report-summary-mini .done,
.report-summary-mini .done strong {
  color: var(--green);
}
.report-summary-mini .draft,
.report-summary-mini .draft strong {
  color: var(--soft);
}
.report-summary-mini .pending,
.report-summary-mini .pending strong {
  color: var(--amber);
}
.report-summary-mini .canceled,
.report-summary-mini .canceled strong {
  color: var(--red);
}
.report-summary-mini > span > i.bi {
  color: var(--primary);
  font-size: calc(11px * var(--app-font-scale));
}
.report-summary-mini span:not(.total) > i {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--soft);
}
.report-summary-mini .draft > i {
  background: #cbd5e1;
}
.report-summary-mini .pending > i {
  background: var(--amber);
}
.report-summary-mini .done > i {
  background: var(--green);
}
.report-summary-mini .canceled > i {
  background: var(--red);
}
.client-spotlight,
.client-list-panel {
  overflow: hidden;
}
.client-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.client-spotlight-empty {
  min-height: 240px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: calc(12px * var(--app-font-scale));
}
.client-spotlight-empty i {
  color: var(--primary);
  font-size: calc(28px * var(--app-font-scale));
}
.client-spotlight {
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 16px;
}
.client-spotlight-header {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
}
.client-spotlight-header span {
  color: var(--primary);
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 800;
}
.client-spotlight-header h3 {
  margin: 2px 0 3px;
  color: var(--text);
  font-size: calc(16px * var(--app-font-scale));
}
.client-spotlight-header p {
  margin: 0;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
}
.client-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: calc(12px * var(--app-font-scale));
  color: var(--primary);
  background: var(--primary-soft);
}
.client-logo.tone-1 {
  color: var(--green);
  background: var(--green-soft);
}
.client-logo.tone-2 {
  color: var(--amber);
  background: var(--amber-soft);
}
.client-logo.tone-3 {
  color: var(--violet);
  background: var(--violet-soft);
}
.client-data-list {
  display: grid;
  gap: 8px;
  margin: 0;
}
.client-data-list div {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.client-data-list dt {
  color: var(--muted);
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 800;
}
.client-data-list dd {
  margin: 2px 0 0;
  color: var(--text);
  font-size: calc(11px * var(--app-font-scale));
  font-weight: 700;
  overflow-wrap: anywhere;
}
.client-status-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.client-status-board span {
  min-height: 58px;
  padding: 9px;
  border-radius: 8px;
  display: grid;
  align-content: center;
  color: var(--muted);
  background: var(--bg);
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 800;
}
.client-status-board strong {
  color: var(--text);
  font-size: calc(18px * var(--app-font-scale));
}
.client-status-board .done strong {
  color: var(--green);
}
.client-status-board .pending strong {
  color: var(--amber);
}
.client-status-board .future strong {
  color: var(--primary);
}
.client-next-actions {
  display: grid;
  gap: 9px;
}
.client-next-actions div {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 3px 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.client-next-actions i {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
}
.client-next-actions span {
  color: var(--muted);
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 800;
}
.client-next-actions strong {
  color: var(--text);
  font-size: calc(10px * var(--app-font-scale));
  overflow-wrap: anywhere;
}
.client-list-panel {
  padding: 16px;
}
.client-toolbar {
  margin-bottom: 14px;
}
.client-toolbar select {
  min-width: 190px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  padding: 0 12px;
  height: 42px;
  font-size: calc(11px * var(--app-font-scale));
  font-weight: 700;
}
.clients-command-panel {
  gap: 14px;
}
.client-list-panel {
  padding: 0;
}
.client-toolbar {
  min-height: 74px;
  padding: 16px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}
.client-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
}
.client-list-block {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  border-right: 1px solid var(--border);
}
.client-table-wrap {
  border-right: 0;
}
.client-table tbody tr {
  cursor: pointer;
}
.client-table tbody tr.selected {
  background: color-mix(in srgb, var(--primary-soft) 42%, transparent);
}
.client-table td strong {
  display: block;
  color: var(--text);
  font-size: calc(12px * var(--app-font-scale));
}
.client-table td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
}
.client-table-name {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
}
.client-table-name .client-logo {
  width: 38px;
  height: 38px;
  font-size: calc(10px * var(--app-font-scale));
}
.client-spotlight {
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.client-spotlight header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.client-spotlight-actions {
  display: inline-flex;
  gap: 8px;
  align-items: flex-start;
  flex-shrink: 0;
}
.client-spotlight-actions .icon-button {
  width: 34px;
  height: 34px;
}
.client-spotlight-actions .danger-icon {
  color: #f87171;
}
.client-spotlight header span {
  color: var(--primary);
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 800;
}
.client-spotlight header h3 {
  margin: 5px 0 3px;
  color: var(--text);
  font-size: calc(15px * var(--app-font-scale));
}
.client-spotlight header p {
  margin: 0;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
}
.client-detail-list {
  display: grid;
  gap: 0;
  margin: 12px 0 0;
}
.client-activity-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
}
.client-activity-summary strong {
  color: var(--text);
  font-weight: 800;
}
.client-activity-summary span {
  color: var(--border);
}
.client-detail-list div {
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.client-detail-list dt {
  color: var(--muted);
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 800;
}
.client-detail-list dd {
  margin: 3px 0 0;
  color: var(--text);
  font-size: calc(11px * var(--app-font-scale));
  font-weight: 700;
  overflow-wrap: anywhere;
}
.client-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.client-page-status {
  justify-self: start;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 800;
}
.client-page-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  justify-self: center;
  grid-column: 2;
}
.client-page-button {
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: calc(11px * var(--app-font-scale));
  font-weight: 800;
}
.client-page-button:hover,
.client-page-button.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}
.technician-heading-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.technician-summary-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 700;
  white-space: nowrap;
}
.technician-summary-mini span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.technician-summary-mini span + span::before {
  content: "";
  width: 1px;
  height: 13px;
  margin-right: 7px;
  background: var(--border);
}
.technician-summary-mini strong {
  color: var(--text);
}
.technician-summary-mini > span > i.bi {
  color: var(--primary);
  font-size: calc(11px * var(--app-font-scale));
}
.technician-summary-mini .done > i,
.technician-summary-mini .pending > i,
.technician-summary-mini .future > i {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--green);
}
.technician-summary-mini .pending > i {
  background: var(--amber);
}
.technician-summary-mini .future > i {
  background: var(--primary);
}
.technician-panel {
  padding: 0;
  overflow: hidden;
}
.technician-toolbar {
  min-height: 74px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.technician-toolbar select {
  min-width: 180px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  padding: 0 12px;
  height: 42px;
  font-size: calc(11px * var(--app-font-scale));
  font-weight: 700;
}
.technician-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
}
.technician-list-block {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  border-right: 1px solid var(--border);
}
.technician-table-wrap {
  border-right: 0;
}
.technician-table tbody tr {
  cursor: pointer;
}
.technician-table tbody tr.selected {
  background: color-mix(in srgb, var(--primary-soft) 42%, transparent);
}
.technician-table td strong {
  display: block;
  color: var(--text);
  font-size: calc(12px * var(--app-font-scale));
}
.technician-table td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
}
.technician-spotlight {
  padding: 18px;
  background: transparent;
}
.technician-spotlight header {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.technician-spotlight header span {
  color: var(--primary);
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 800;
}
.technician-spotlight header h3 {
  margin: 5px 0 3px;
  color: var(--text);
  font-size: calc(15px * var(--app-font-scale));
}
.technician-spotlight header p {
  margin: 0;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  overflow-wrap: anywhere;
}
.technician-detail-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.technician-detail-actions button {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--text);
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  text-align: left;
}
.technician-detail-actions i {
  color: var(--primary);
}
.technician-detail-actions span {
  color: var(--text);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 800;
}
.technician-detail-actions strong {
  min-width: 26px;
  border-radius: 7px;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 3px 7px;
  font-size: calc(10px * var(--app-font-scale));
  text-align: center;
}
.technician-history-list {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}
.technician-history-item {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}
.technician-history-item time {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 76px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary-soft) 70%, transparent);
  color: var(--text);
  text-align: center;
}
.technician-history-item time strong {
  color: var(--text);
  font-size: calc(22px * var(--app-font-scale));
  line-height: 1;
  font-weight: 800;
}
.technician-history-item time span,
.technician-history-item time small {
  margin: 0;
  color: var(--muted);
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 800;
  text-transform: uppercase;
}
.technician-history-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.technician-history-item strong {
  color: var(--text);
  font-size: calc(11px * var(--app-font-scale));
}
.technician-history-item span {
  display: block;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  overflow-wrap: anywhere;
}
.technician-history-title small {
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 5px 8px;
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 800;
  white-space: nowrap;
}
.technician-history-item ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
}
.technician-history-item li {
  position: relative;
}
.technician-history-item li + li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--muted);
  transform: translateY(-50%);
}
.technician-history-item p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
}
.technician-history-item p i {
  color: var(--primary);
}
.report-history-log {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 88%, var(--primary-soft));
  box-shadow: 0 10px 28px rgba(15, 25, 45, 0.08);
}
.report-history-log > i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: calc(16px * var(--app-font-scale));
}
.report-history-log strong,
.report-history-log span,
.report-history-log p {
  display: block;
}
.report-history-log strong {
  color: var(--text);
  font-size: calc(12.5px * var(--app-font-scale));
  font-weight: 850;
}
.report-history-log span {
  margin-top: 5px;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
}
.report-history-log p {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  color: var(--text);
  font-size: calc(11px * var(--app-font-scale));
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.technician-history-modal {
  display: flex;
  flex-direction: column;
  padding-bottom: 18px;
}
.technician-history-modal .modal-head {
  flex: 0 0 auto;
}
.modal-dialog-scrollable .technician-history-modal > .technician-history-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100vh - 245px);
  max-height: calc(100dvh - 245px);
  padding: 18px 20px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}
.modal-dialog-scrollable
  .technician-history-modal
  > .technician-history-list::-webkit-scrollbar {
  width: 10px;
}
.modal-dialog-scrollable
  .technician-history-modal
  > .technician-history-list::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 60%, transparent);
  background-clip: padding-box;
}
.modal-dialog-scrollable
  .technician-history-modal
  > .technician-history-list::-webkit-scrollbar-track {
  background: transparent;
}
.technician-history-open {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  padding: 9px 11px;
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 800;
}
.technician-history-open:hover,
.technician-history-open:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
}
.technician-history-open span {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: inherit;
}
.technician-history-empty {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}
.technician-history-empty i {
  color: var(--primary);
  font-size: calc(28px * var(--app-font-scale));
}
.technician-history-empty strong {
  color: var(--text);
}
.technician-history-empty span {
  font-size: calc(10px * var(--app-font-scale));
}
.technician-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.technician-page-status {
  justify-self: start;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 800;
}
.technician-page-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  justify-self: center;
  grid-column: 2;
  gap: 6px;
}
.technician-page-button {
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: calc(11px * var(--app-font-scale));
  font-weight: 800;
}
.technician-page-button:hover,
.technician-page-button.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.list-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.list-page-status {
  justify-self: start;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 800;
}
.list-page-size {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 800;
}
.list-page-size select {
  height: 34px;
  min-width: 76px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 800;
}
.list-page-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  justify-self: end;
}
.list-page-button {
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: calc(11px * var(--app-font-scale));
  font-weight: 800;
}
.list-page-button:hover,
.list-page-button.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.schedule-calendar-panel {
  overflow: hidden;
}
.schedule-heading-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.schedule-summary-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 700;
  white-space: nowrap;
}
.schedule-summary-mini span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.schedule-summary-mini span + span::before {
  content: "";
  width: 1px;
  height: 13px;
  margin-right: 7px;
  background: var(--border);
}
.schedule-summary-mini strong {
  color: var(--text);
}
.schedule-summary-mini > span > i.bi {
  color: var(--primary);
  font-size: calc(11px * var(--app-font-scale));
}
.schedule-summary-mini .active > i,
.schedule-summary-mini .future > i {
  width: 6px;
  height: 6px;
  border-radius: 99px;
}
.schedule-summary-mini .active > i {
  background: var(--amber);
}
.schedule-summary-mini .future > i {
  background: var(--primary);
}
.schedule-calendar-toolbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.schedule-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  min-height: 520px;
}
.schedule-board .schedule-calendar {
  min-width: 0;
}
.schedule-period-panel {
  border-left: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 64%, transparent);
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}
.schedule-period-panel header {
  padding: 18px;
  border-bottom: 1px solid var(--border);
}
.schedule-period-panel header span {
  color: var(--primary);
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 800;
}
.schedule-period-panel header h2 {
  margin: 4px 0 3px;
  color: var(--text);
  font-size: calc(16px * var(--app-font-scale));
}
.schedule-period-panel header p {
  margin: 0;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
}
.schedule-period-list {
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
}
.schedule-period-item {
  --event-color: #2556c7;
  --event-bg: #e6efff;
  width: 100%;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--event-color);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
}
.schedule-period-item:hover {
  border-color: color-mix(in srgb, var(--event-color) 45%, var(--border));
  border-left-color: var(--event-color);
  background: color-mix(in srgb, var(--event-bg) 35%, var(--surface));
}
.schedule-period-item time {
  width: 48px;
  min-height: 46px;
  border-radius: 8px;
  background: var(--event-bg);
  color: var(--event-color);
  display: grid;
  place-items: center;
  align-content: center;
  font-weight: 800;
}
.schedule-period-item.blue {
  --event-color: #2556c7;
  --event-bg: #e6efff;
}
.schedule-period-item.green {
  --event-color: #157a5c;
  --event-bg: #e4f7ef;
}
.schedule-period-item.amber {
  --event-color: #9a640d;
  --event-bg: #fff1d6;
}
.schedule-period-item.violet {
  --event-color: #6949c7;
  --event-bg: #eee9ff;
}
.schedule-period-item.red {
  --event-color: #a83b46;
  --event-bg: #ffe8eb;
}
.schedule-period-item time strong,
.schedule-period-item time span,
.schedule-period-item div strong,
.schedule-period-item div span {
  display: block;
}
.schedule-period-item time strong {
  font-size: calc(11px * var(--app-font-scale));
}
.schedule-period-item time span {
  font-size: calc(9px * var(--app-font-scale));
}
.schedule-period-item div {
  min-width: 0;
}
.schedule-period-item div strong {
  color: var(--text);
  font-size: calc(11px * var(--app-font-scale));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.schedule-period-item div span,
.schedule-period-item small {
  color: var(--muted);
  font-size: calc(9px * var(--app-font-scale));
}
.schedule-period-item small {
  grid-column: 2;
  color: var(--event-color);
  font-weight: 700;
}
.schedule-period-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: var(--muted);
  text-align: center;
}
.schedule-period-empty i {
  color: var(--primary);
  font-size: calc(24px * var(--app-font-scale));
}
.schedule-period-empty strong {
  color: var(--text);
  font-size: calc(12px * var(--app-font-scale));
}
.schedule-calendar-navigation,
.schedule-calendar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.schedule-calendar-navigation h2 {
  min-width: 210px;
  margin: 0 0 0 6px;
  color: var(--text);
  font-size: calc(19px * var(--app-font-scale));
  font-weight: 720;
  text-transform: none;
}
.calendar-nav-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--muted);
}
.calendar-nav-button:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  color: var(--primary);
}
.calendar-export-button {
  gap: 7px;
  white-space: nowrap;
}
.calendar-export-button i {
  color: var(--green);
  font-size: calc(13px * var(--app-font-scale));
}
.schedule-export-options {
  display: grid;
  gap: 10px;
}
.schedule-export-option {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
  cursor: pointer;
  transition:
    border-color 0.18s,
    background 0.18s,
    box-shadow 0.18s;
}
.schedule-export-option:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}
.schedule-export-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--primary) 65%, var(--border));
  background: color-mix(in srgb, var(--primary-soft) 55%, var(--surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-soft) 55%, transparent);
}
.schedule-export-option > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.schedule-export-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface);
  color: var(--primary);
  font-size: calc(16px * var(--app-font-scale));
}
.schedule-export-option strong,
.schedule-export-option small,
.schedule-export-option em {
  display: block;
}
.schedule-export-option strong {
  color: var(--text);
  font-size: calc(11px * var(--app-font-scale));
}
.schedule-export-option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: calc(9px * var(--app-font-scale));
  text-transform: capitalize;
}
.schedule-export-option em {
  margin-top: 3px;
  color: var(--soft);
  font-size: calc(8px * var(--app-font-scale));
  font-style: normal;
}
.schedule-export-check {
  color: var(--primary);
  opacity: 0;
  transform: scale(0.75);
  transition:
    opacity 0.18s,
    transform 0.18s;
}
.schedule-export-option:has(input:checked) .schedule-export-check {
  opacity: 1;
  transform: scale(1);
}
.schedule-technicians-field {
  display: grid;
  gap: 10px;
}
.schedule-technicians-field > span {
  color: var(--text);
  font-size: calc(12px * var(--app-font-scale));
  font-weight: 800;
}
.schedule-technicians-list {
  display: grid;
  gap: 8px;
}
.schedule-technician-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: end;
  gap: 8px;
}
.schedule-technician-row select,
.schedule-technician-row .custom-select {
  width: 100%;
}
.schedule-remove-technician {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
}
.schedule-add-technician {
  width: max-content;
  max-width: 100%;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--soft);
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: calc(11px * var(--app-font-scale));
  font-weight: 750;
  box-shadow: none;
}
.schedule-add-technician:hover,
.schedule-add-technician:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
  color: var(--primary);
  background: color-mix(in srgb, var(--primary-soft) 42%, transparent);
}
.schedule-technician-empty {
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: calc(11px * var(--app-font-scale));
}
.calendar-view-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}
.calendar-view-switch button {
  min-width: 66px;
  height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: calc(12px * var(--app-font-scale));
  font-weight: 650;
}
.calendar-view-switch button.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(30, 53, 87, 0.1);
}
.schedule-calendar {
  min-width: 0;
}
.calendar-weekday-header {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.calendar-weekday-header span {
  padding: 11px 8px;
  border-right: 1px solid var(--border);
  color: var(--muted);
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}
.calendar-weekday-header span:last-child {
  border-right: 0;
}
.calendar-month-weeks {
  display: grid;
}
.calendar-week-row {
  position: relative;
  min-height: 132px;
  border-bottom: 1px solid var(--border);
}
.calendar-week-row:last-child {
  border-bottom: 0;
}
.calendar-week-row.expanded {
  min-height: max(350px, calc(78px + (var(--week-lanes, 2) * 29px)));
}
.calendar-week-days {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-day-cell {
  position: relative;
  min-width: 0;
  padding: 10px 10px 8px;
  border-right: 1px solid var(--border);
  background: var(--surface);
}
.calendar-day-cell:last-child {
  border-right: 0;
}
.calendar-day-cell.other-month {
  background: color-mix(in srgb, var(--surface-2) 68%, transparent);
}
.calendar-day-cell.today {
  background: color-mix(in srgb, var(--primary-soft) 46%, var(--surface));
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--primary) 58%, transparent);
}
.calendar-day-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 650;
}
.calendar-day-cell.other-month .calendar-day-number {
  color: var(--soft);
  opacity: 0.55;
}
.calendar-day-cell.today .calendar-day-number {
  background: var(--primary);
  color: #fff;
}
.calendar-week-events {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.calendar-event-bar {
  position: absolute;
  z-index: 2;
  top: calc(46px + (var(--lane) * 29px));
  left: calc(((var(--start) - 1) * 100% / 7) + 4px);
  width: calc((var(--span) * 100% / 7) - 8px);
  height: 24px;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 9px;
  overflow: hidden;
  border-radius: 6px;
  color: var(--event-color);
  background: var(--event-bg);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 720;
  line-height: 1;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: auto;
}
.calendar-event-bar.continues-left {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.calendar-event-bar.continues-right {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.calendar-event-bar.blue,
.calendar-day-event.blue {
  --event-color: #2556c7;
  --event-bg: #e6efff;
}
.calendar-event-bar.green,
.calendar-day-event.green {
  --event-color: #157a5c;
  --event-bg: #e4f7ef;
}
.calendar-event-bar.amber,
.calendar-day-event.amber {
  --event-color: #9a640d;
  --event-bg: #fff1d6;
}
.calendar-event-bar.violet,
.calendar-day-event.violet {
  --event-color: #6949c7;
  --event-bg: #eee9ff;
}
.calendar-event-bar.red,
.calendar-day-event.red {
  --event-color: #a83b46;
  --event-bg: #ffe8eb;
}
:root[data-theme="dark"] .calendar-event-bar.blue,
:root[data-theme="dark"] .calendar-day-event.blue {
  --event-color: #a9c2ff;
  --event-bg: #20345d;
}
:root[data-theme="dark"] .calendar-event-bar.green,
:root[data-theme="dark"] .calendar-day-event.green {
  --event-color: #7fdfbd;
  --event-bg: #173d35;
}
:root[data-theme="dark"] .calendar-event-bar.amber,
:root[data-theme="dark"] .calendar-day-event.amber {
  --event-color: #ffd384;
  --event-bg: #49371d;
}
:root[data-theme="dark"] .calendar-event-bar.violet,
:root[data-theme="dark"] .calendar-day-event.violet {
  --event-color: #c8b8ff;
  --event-bg: #332a57;
}
:root[data-theme="dark"] .calendar-event-bar.red,
:root[data-theme="dark"] .calendar-day-event.red {
  --event-color: #ffadb5;
  --event-bg: #4b2930;
}
.calendar-more-button {
  position: absolute;
  z-index: 3;
  left: calc(((var(--day) - 1) * 100% / 7) + 10px);
  bottom: 9px;
  padding: 0;
  background: transparent;
  color: var(--primary);
  font-size: calc(8px * var(--app-font-scale));
  font-weight: 800;
  pointer-events: auto;
}
.calendar-more-button:hover {
  text-decoration: underline;
}
.calendar-day-view {
  padding: 20px;
}
.calendar-day-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
}
.calendar-day-summary strong {
  color: var(--text);
  font-size: calc(12px * var(--app-font-scale));
  text-transform: capitalize;
}
.calendar-day-summary span {
  color: var(--muted);
  font-size: calc(9px * var(--app-font-scale));
}
.calendar-day-events {
  display: grid;
  gap: 10px;
}
.calendar-day-event {
  display: grid;
  grid-template-columns: 76px 5px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
}
.calendar-day-event:hover,
.calendar-day-event:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(31, 94, 255, 0.12);
}
.calendar-day-event-time strong,
.calendar-day-event-time span {
  display: block;
}
.calendar-day-event-time strong {
  color: var(--text);
  font-size: calc(11px * var(--app-font-scale));
}
.calendar-day-event-time span {
  margin-top: 4px;
  color: var(--soft);
  font-size: calc(10px * var(--app-font-scale));
}
.calendar-day-event-line {
  align-self: stretch;
  border-radius: 4px;
  background: var(--event-color);
}
.calendar-day-event h3 {
  margin: 0;
  color: var(--text);
  font-size: calc(11px * var(--app-font-scale));
}
.calendar-day-event p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  line-height: 1.5;
}
.calendar-day-event > span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--event-bg);
  color: var(--event-color);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 700;
}
.schedule-detail-dialog {
  max-width: 560px;
}
.schedule-detail-body {
  padding: 10px 28px 10px;
  display: grid;
  gap: 14px;
}
.schedule-detail-modal .modal-head {
  padding-bottom: 18px;
}
.schedule-detail-modal .modal-actions {
  margin: 16px 28px 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.schedule-detail-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}
.schedule-detail-status span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--event-color, var(--primary));
  background: var(--event-bg, var(--primary-soft));
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 800;
}
.schedule-detail-status span.blue {
  --event-color: #2556c7;
  --event-bg: #e6efff;
}
.schedule-detail-status span.green {
  --event-color: #157a5c;
  --event-bg: #e4f7ef;
}
.schedule-detail-status span.amber {
  --event-color: #9a640d;
  --event-bg: #fff1d6;
}
.schedule-detail-status span.violet {
  --event-color: #6949c7;
  --event-bg: #eee9ff;
}
.schedule-detail-status span.red {
  --event-color: #a83b46;
  --event-bg: #ffe8eb;
}
.schedule-detail-status strong {
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
}
.schedule-detail-primary,
.schedule-detail-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.schedule-detail-primary div,
.schedule-detail-timeline div {
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.schedule-detail-primary small,
.schedule-detail-primary strong,
.schedule-detail-timeline span,
.schedule-detail-timeline strong {
  display: block;
}
.schedule-detail-primary small,
.schedule-detail-timeline span {
  color: var(--muted);
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 800;
  text-transform: uppercase;
}
.schedule-detail-primary strong,
.schedule-detail-timeline strong {
  margin-top: 6px;
  color: var(--text);
  font-size: calc(11px * var(--app-font-scale));
  overflow-wrap: anywhere;
}
.schedule-detail-timeline i {
  float: right;
  color: var(--primary);
}
.schedule-detail-list {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.schedule-detail-list div {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.schedule-detail-list div:last-child {
  border-bottom: 0;
}
.schedule-detail-list dt {
  color: var(--muted);
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 800;
  text-transform: uppercase;
}
.schedule-detail-list dd {
  margin: 5px 0 0;
  color: var(--text);
  font-size: calc(11px * var(--app-font-scale));
  font-weight: 700;
  overflow-wrap: anywhere;
}
.schedule-day-agenda-actions {
  display: flex;
  justify-content: flex-end;
}
.schedule-day-agenda-list {
  display: grid;
  gap: 10px;
}
.schedule-day-agenda-item {
  --event-color: #2556c7;
  --event-bg: #e6efff;
  width: 100%;
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--event-color);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
}
.schedule-day-agenda-item:hover,
.schedule-day-agenda-item:focus-visible {
  border-color: color-mix(in srgb, var(--event-color) 45%, var(--border));
  background: color-mix(in srgb, var(--event-bg) 35%, var(--surface));
  outline: none;
}
.schedule-day-agenda-item span {
  color: var(--event-color);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 800;
}
.schedule-day-agenda-item strong {
  color: var(--text);
  font-size: calc(13px * var(--app-font-scale));
}
.schedule-day-agenda-item small {
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  overflow-wrap: anywhere;
}
.schedule-day-agenda-item.blue {
  --event-color: #2556c7;
  --event-bg: #e6efff;
}
.schedule-day-agenda-item.green {
  --event-color: #157a5c;
  --event-bg: #e4f7ef;
}
.schedule-day-agenda-item.amber {
  --event-color: #9a640d;
  --event-bg: #fff1d6;
}
.schedule-day-agenda-item.violet {
  --event-color: #6949c7;
  --event-bg: #eee9ff;
}
.schedule-day-agenda-item.red {
  --event-color: #a83b46;
  --event-bg: #ffe8eb;
}
.calendar-empty-day {
  padding: 54px 20px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}
.calendar-empty-day i {
  display: block;
  margin-bottom: 9px;
  color: var(--soft);
  font-size: calc(25px * var(--app-font-scale));
}
.calendar-empty-day strong {
  color: var(--text);
  font-size: calc(12px * var(--app-font-scale));
}
.calendar-empty-day p {
  margin: 6px 0 0;
  font-size: calc(9px * var(--app-font-scale));
}

.settings-panel {
  overflow: hidden;
}
.settings-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.settings-row:last-child {
  border-bottom: 0;
}
.settings-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--primary);
  background: var(--primary-soft);
}
.settings-row h3 {
  font-size: calc(12px * var(--app-font-scale));
  margin: 0;
}
.settings-row p {
  color: var(--muted);
  margin: 5px 0 0;
  font-size: calc(10px * var(--app-font-scale));
}
.font-size-control {
  min-width: 240px;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 46px 36px;
  align-items: center;
  gap: 10px;
}
.font-size-control input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}
.font-size-control output {
  color: var(--text);
  font-size: calc(11px * var(--app-font-scale));
  font-weight: 700;
  text-align: right;
}
.font-size-control .icon-action {
  width: 32px;
  height: 32px;
  justify-self: end;
}
.switch {
  width: 43px;
  height: 24px;
  border-radius: 14px;
  padding: 3px;
  background: var(--surface-3);
  transition: 0.2s;
}
.switch span {
  display: block;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16);
  transition: 0.2s;
}
.switch.active {
  background: var(--primary);
}
.switch.active span {
  transform: translateX(19px);
}
.migration-note {
  margin-top: 18px;
  display: flex;
  gap: 13px;
  padding: 17px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 12px;
}
.migration-note strong {
  font-size: calc(11px * var(--app-font-scale));
}
.migration-note p {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: calc(9px * var(--app-font-scale));
}

/* Construtor de modelos de relatório */
.heading-actions {
  display: flex;
  gap: 9px;
}
.template-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 20px;
  align-items: start;
}
.template-builder-panel,
.template-preview-panel {
  padding: 22px;
}
.template-meta-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 15px;
}
.template-meta-grid .span-2 {
  grid-column: span 2;
}
.category-field {
  min-width: 0;
}
.category-field > label {
  display: block;
}
.manage-categories-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  padding: 0;
  background: transparent;
  color: var(--primary);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 700;
}
.manage-categories-button:hover {
  text-decoration: underline;
}
.template-meta-grid label,
.field-editor label {
  color: var(--text);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 650;
}
.template-meta-grid input,
.template-meta-grid select,
.template-meta-grid textarea,
.field-editor input,
.field-editor select,
.field-editor textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  padding: 0 11px;
  outline: 0;
  font-size: calc(11px * var(--app-font-scale));
}
.template-meta-grid input,
.template-meta-grid select,
.field-editor input,
.field-editor select {
  height: 40px;
}
.template-meta-grid textarea,
.field-editor textarea {
  min-height: 58px;
  padding-top: 10px;
  resize: none;
}
.template-meta-grid input:focus,
.template-meta-grid select:focus,
.template-meta-grid textarea:focus,
.field-editor input:focus,
.field-editor select:focus,
.field-editor textarea:focus {
  border-color: #8ba7fa;
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.builder-guide {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 18px 0;
  padding: 12px 14px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--muted);
  font-size: calc(9px * var(--app-font-scale));
  line-height: 1.5;
}
.builder-guide i {
  color: var(--primary);
  font-size: calc(13px * var(--app-font-scale));
}
.template-builder {
  display: grid;
  gap: 16px;
}
.builder-section {
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
  overflow: hidden;
}
.builder-section-head {
  min-height: 64px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  background: var(--surface-3);
  border-bottom: 1px solid var(--border);
}
.section-number {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-size: calc(11px * var(--app-font-scale));
  font-weight: 750;
}
.builder-section-head label {
  margin: 0;
  color: var(--soft);
  font-size: calc(8px * var(--app-font-scale));
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.builder-section-head input {
  display: block;
  width: 100%;
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--text);
  outline: 0;
  font-size: calc(13px * var(--app-font-scale));
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}
.builder-section-head input:focus {
  border-color: var(--primary);
}
.builder-fields {
  display: grid;
  gap: 10px;
  padding: 12px;
}
.builder-field {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
}
.field-order {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 6px;
  color: var(--soft);
}
.field-order i {
  font-size: calc(14px * var(--app-font-scale));
}
.field-order span {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--surface-3);
  font-size: calc(8px * var(--app-font-scale));
  font-weight: 700;
}
.field-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(150px, 0.6fr);
  gap: 12px;
}
.options-editor {
  display: block;
  margin-top: 13px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
}
.options-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.options-editor-head strong {
  display: block;
  color: var(--text);
  font-size: calc(10px * var(--app-font-scale));
}
.options-editor-head small {
  display: block;
  margin-top: 3px;
  color: var(--soft);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 400;
}
.options-editor-head button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border-radius: 7px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 700;
}
.options-editor-head button:hover {
  background: var(--primary);
  color: #fff;
}
.option-editor-list {
  display: grid;
  gap: 7px;
}
.option-editor-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 7px;
}
.option-editor-row > span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--soft);
  font-size: calc(7px * var(--app-font-scale));
  font-weight: 750;
}
.option-editor-row input {
  height: 34px;
  margin: 0;
  background: var(--surface);
}
.option-editor-row button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: transparent;
  color: var(--soft);
  font-size: calc(9px * var(--app-font-scale));
}
.option-editor-row button:hover {
  background: var(--red-soft);
  color: var(--red);
}
.field-response-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--soft);
  font-size: calc(8px * var(--app-font-scale));
}
.field-response-note i {
  color: var(--primary);
}
.field-settings {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 11px;
  color: var(--muted);
  font-size: calc(9px * var(--app-font-scale));
}
.field-settings label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 500;
}
.field-settings input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--primary);
}
.field-kind-help {
  margin-left: auto;
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--soft);
  font-size: calc(10px * var(--app-font-scale));
}
.builder-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}
.builder-actions button {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: transparent;
  color: var(--soft);
  font-size: calc(10px * var(--app-font-scale));
}
.builder-actions button:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.builder-actions button.danger:hover {
  background: var(--red-soft);
  color: var(--red);
}
.builder-actions button:disabled {
  opacity: 0.28;
  pointer-events: none;
}
.builder-section-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  padding: 0 12px 12px;
}
.section-repeat-setting {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--muted);
}
.section-repeat-setting input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--primary);
}
.section-repeat-setting span,
.section-repeat-setting strong,
.section-repeat-setting small {
  display: block;
}
.section-repeat-setting strong {
  color: var(--text);
  font-size: calc(10px * var(--app-font-scale));
}
.section-repeat-setting small {
  margin-top: 3px;
  color: var(--muted);
  font-size: calc(9px * var(--app-font-scale));
  line-height: 1.35;
}
.add-field-button,
.add-section-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: transparent;
  color: var(--primary);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 650;
}
.add-field-button {
  width: 100%;
  height: 36px;
  margin: 0;
  align-self: center;
  border: 1px dashed color-mix(in srgb, var(--primary) 42%, var(--border));
  border-radius: 8px;
  padding: 0 14px;
  white-space: nowrap;
}
.add-section-button {
  width: 100%;
  height: 46px;
  margin-top: 16px;
  border: 1px dashed var(--soft);
  border-radius: 10px;
}
.add-field-button:hover,
.add-section-button:hover {
  background: var(--primary-soft);
}
.template-preview-panel {
  position: sticky;
  top: 102px;
  max-height: calc(100vh - 125px);
  overflow-y: auto;
}
.template-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.template-preview-head p {
  margin: 0 0 5px;
  color: var(--primary);
  font-size: calc(8px * var(--app-font-scale));
  font-weight: 750;
  letter-spacing: 0.8px;
}
.template-preview-head h2 {
  margin: 0;
  font-size: calc(14px * var(--app-font-scale));
}
.template-preview-head > span {
  align-self: flex-start;
  padding: 5px 7px;
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green);
  font-size: calc(9px * var(--app-font-scale));
  white-space: nowrap;
}
.generated-form-preview {
  padding-top: 3px;
}
.generated-preview-section {
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}
.generated-preview-section:last-child {
  border-bottom: 0;
}
.generated-preview-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: calc(11px * var(--app-font-scale));
}
.generated-preview-section h3 span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #182230;
  color: #fff;
  font-size: calc(7px * var(--app-font-scale));
}
.generated-preview-section > div {
  display: grid;
  gap: 13px;
}
.generated-preview-section label,
.generated-preview-section legend {
  width: 100%;
  color: var(--text);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 650;
}
.generated-preview-section em {
  margin-left: 3px;
  color: var(--red);
  font-style: normal;
}
.generated-preview-section input[type="number"],
.generated-preview-section input[type="datetime-local"],
.generated-preview-section select,
.generated-preview-section textarea {
  display: block;
  width: 100%;
  min-height: 37px;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  opacity: 1;
  resize: none;
}
.generated-preview-section fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.preview-options {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}
.preview-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 500;
}
.preview-options input {
  accent-color: var(--primary);
}
.preview-special {
  min-height: 85px;
  margin-top: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--soft);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  text-align: center;
}
.preview-special.compact {
  min-height: 70px;
}
.preview-special i {
  color: var(--primary);
  font-size: calc(18px * var(--app-font-scale));
}
.preview-special strong {
  margin-top: 6px;
  font-size: calc(9px * var(--app-font-scale));
}
.preview-special span {
  margin-top: 3px;
  color: var(--soft);
  font-size: calc(7px * var(--app-font-scale));
}
.preview-signature {
  min-height: 95px;
  margin-top: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 17px,
      var(--border) 18px
    );
  color: var(--soft);
}
.preview-signature i {
  font-size: calc(18px * var(--app-font-scale));
}
.preview-signature span {
  margin-top: 7px;
  font-size: calc(8px * var(--app-font-scale));
}
.preview-empty {
  padding: 70px 20px;
  text-align: center;
  color: var(--soft);
}
.preview-empty i {
  font-size: calc(28px * var(--app-font-scale));
}
.preview-empty p {
  font-size: calc(9px * var(--app-font-scale));
}
.field-type-legend {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
}
.field-type-legend i {
  margin-right: 6px;
  color: var(--primary);
}
.template-table .report-title strong {
  font-size: calc(11px * var(--app-font-scale));
}
.template-table .report-title span {
  max-width: 380px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.template-file-icon {
  color: var(--violet);
  background: var(--violet-soft);
}
.template-category {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 7px;
  color: var(--muted);
  background: var(--surface-3);
  font-size: calc(10px * var(--app-font-scale));
  white-space: nowrap;
}
.template-row-actions {
  min-width: 96px;
}

.category-modal-content {
  max-height: calc(100dvh - 30px);
  overflow: hidden;
}
.category-modal-content form {
  min-height: 0;
  padding-top: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}
.new-category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}
.new-category-row label {
  color: var(--text);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 650;
}
.new-category-row input {
  display: block;
  width: 100%;
  height: 42px;
  margin-top: 7px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  outline: 0;
  font-size: calc(10px * var(--app-font-scale));
}
.new-category-row input:focus,
.category-manager-row input:focus {
  border-color: #8ba7fa;
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.new-category-row button {
  height: 42px;
}
.category-manager-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.category-manager-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
}
.category-manager-row > span {
  color: var(--soft);
  font-size: calc(8px * var(--app-font-scale));
  font-weight: 750;
  text-align: center;
}
.category-manager-row label {
  color: var(--soft);
  font-size: calc(7px * var(--app-font-scale));
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.category-manager-row input {
  display: block;
  width: 100%;
  height: 34px;
  margin-top: 4px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  outline: 0;
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 550;
  text-transform: none;
  letter-spacing: 0;
}
.category-manager-row button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--soft);
  background: transparent;
}
.category-manager-row button:hover {
  background: var(--red-soft);
  color: var(--red);
}
.category-manager-row button[data-category-in-use="true"] {
  opacity: 0.45;
}

/* Continuação e preenchimento do relatório */
.execution-topbar {
  max-width: 1040px;
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}
.execution-heading {
  min-width: 0;
  text-align: center;
}
.execution-heading p {
  margin: 0;
  color: var(--primary);
  font-size: calc(8px * var(--app-font-scale));
  font-weight: 750;
  letter-spacing: 1px;
}
.execution-heading h1 {
  margin: 5px 0 0;
  color: var(--text);
  font-size: calc(20px * var(--app-font-scale));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.execution-heading span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: calc(9px * var(--app-font-scale));
}
.execution-progress-panel {
  max-width: 1040px;
  margin: 0 auto 16px;
  padding: 17px 20px;
}
.execution-progress-panel > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: calc(9px * var(--app-font-scale));
}
.execution-progress-panel > div:first-child strong {
  color: var(--text);
  font-size: calc(10px * var(--app-font-scale));
}
.execution-progress-track {
  height: 7px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-3);
}
.execution-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 0.25s ease;
}
.execution-progress-panel small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--soft);
  font-size: calc(8px * var(--app-font-scale));
}
.execution-progress-panel small i {
  color: var(--green);
}
.execution-form {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.execution-section {
  padding: 24px;
}
.execution-section-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 20px;
}
.execution-section-head > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 750;
}
.execution-section-head h2 {
  margin: 0;
  color: var(--text);
  font-size: calc(16px * var(--app-font-scale));
}
.execution-section-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: calc(11px * var(--app-font-scale));
}
.execution-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.execution-fields-grid .span-2 {
  grid-column: span 2;
}
.execution-fields-grid label {
  color: var(--text);
  font-size: calc(11px * var(--app-font-scale));
  font-weight: 650;
}
.execution-fields-grid input,
.execution-fields-grid select,
.execution-fields-grid textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  padding: 0 12px;
  outline: 0;
  font-size: calc(11px * var(--app-font-scale));
}
.execution-fields-grid input,
.execution-fields-grid select {
  height: 42px;
}
.execution-fields-grid textarea {
  min-height: 82px;
  padding-top: 12px;
  resize: none;
}
.execution-fields-grid input:focus,
.execution-fields-grid select:focus,
.execution-fields-grid textarea:focus,
.execution-checklist-table select:focus,
.execution-checklist-table input:focus {
  border-color: #8ba7fa;
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.execution-fields-grid input[readonly] {
  background: var(--surface-3);
  color: var(--muted);
  cursor: not-allowed;
}
.execution-items-panel {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}
.execution-items-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.execution-items-head strong,
.execution-items-head span {
  display: block;
}
.execution-items-head strong {
  color: var(--text);
  font-size: calc(12px * var(--app-font-scale));
}
.execution-items-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: calc(9px * var(--app-font-scale));
}
.execution-items-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}
.execution-item-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}
.execution-item-card.active {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  background: var(--primary-soft);
}
.execution-item-tab {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  align-items: center;
  padding: 10px 11px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}
.execution-item-tab strong {
  color: var(--text);
  font-size: calc(11px * var(--app-font-scale));
}
.execution-item-tab span {
  grid-column: 1;
  overflow: hidden;
  color: var(--soft);
  font-size: calc(9px * var(--app-font-scale));
  text-overflow: ellipsis;
  white-space: nowrap;
}
.execution-item-tab i {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--soft);
}
.execution-item-card.active .execution-item-tab i,
.execution-item-tab:hover i {
  color: var(--primary);
}
.execution-item-delete {
  display: grid;
  place-items: center;
  border-left: 1px solid var(--border);
  background: transparent;
  color: var(--soft);
  font-size: calc(12px * var(--app-font-scale));
}
.execution-item-delete:hover {
  background: var(--red-soft);
  color: var(--red);
}
.execution-checklist-head {
  margin: 20px 0 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.execution-checklist-head h3 {
  margin: 0;
  color: var(--text);
  font-size: calc(12px * var(--app-font-scale));
}
.execution-checklist-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: calc(9px * var(--app-font-scale));
  line-height: 1.5;
}
.execution-checklist-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.execution-checklist-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  table-layout: fixed;
}
.execution-checklist-table th {
  padding: 10px 12px;
  background: var(--surface-2);
  color: var(--soft);
  font-size: calc(11px * var(--app-font-scale));
  text-align: left;
  letter-spacing: 0.55px;
}
.execution-checklist-table th:first-child {
  width: 32%;
}
.execution-checklist-table th:nth-child(2) {
  width: auto;
}
.execution-checklist-table td {
  padding: 11px 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: calc(11px * var(--app-font-scale));
  vertical-align: middle;
}
.execution-checklist-table td:first-child {
  color: var(--soft);
  font-weight: 750;
}
.execution-checklist-table td strong {
  color: var(--text);
  font-size: calc(11px * var(--app-font-scale));
}
.execution-checklist-table select,
.execution-checklist-table input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  outline: 0;
  font-size: calc(11px * var(--app-font-scale));
}

.execution-checklist-table textarea {
  width: 100%;
  min-height: 74px;
  resize: none;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  outline: 0;
  font-size: calc(11px * var(--app-font-scale));
}

.execution-template-section-row th {
  background: var(--primary-soft);
  color: var(--primary);
  font-size: calc(11px * var(--app-font-scale));
  font-weight: 800;
  letter-spacing: 0.2px;
}
.template-field-type {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: calc(11px * var(--app-font-scale));
  font-weight: 700;
}
.required-mark {
  color: #d9534f;
}
.execution-multiple-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
}
.execution-multiple-options label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
  font-size: calc(11px * var(--app-font-scale));
}
.execution-multiple-options input {
  width: 16px;
  height: 16px;
  margin: 0;
}
.execution-other-response {
  display: grid;
  gap: 6px;
  margin-top: 9px;
  color: var(--text);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 800;
}
.execution-other-response input {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  outline: 0;
  font-size: calc(11px * var(--app-font-scale));
  font-weight: 500;
}
.execution-other-response input:focus {
  border-color: #8ba7fa;
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.empty-template-message {
  padding: 14px;
  text-align: center;
  color: var(--muted);
}
.not-informed,
.report-empty-copy {
  color: var(--soft);
  font-style: italic;
}
.result-chip.bad {
  color: #a84040;
}
.result-chip.neutral {
  color: var(--muted);
}
.execution-checklist-table input[readonly] {
  background: var(--surface-3);
  color: var(--muted);
  cursor: not-allowed;
}
.automatic-field-note {
  display: block;
  margin-top: 5px;
  color: var(--soft);
  font-size: calc(8px * var(--app-font-scale));
}
.automatic-field-note i {
  color: var(--primary);
}
.execution-photo-field {
  display: grid;
  gap: 9px;
}
.execution-photo-picker {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--soft);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  text-align: center;
}
.execution-photo-picker:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.execution-photo-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.execution-photo-picker i {
  color: var(--primary);
  font-size: calc(18px * var(--app-font-scale));
}
.execution-photo-picker span {
  margin-top: 4px;
  color: var(--text);
  font-size: calc(11px * var(--app-font-scale));
  font-weight: 750;
}
.execution-photo-picker small {
  margin-top: 2px;
  color: var(--soft);
  font-size: calc(8px * var(--app-font-scale));
}
.execution-photo-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.execution-photo-list figure {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.execution-photo-list img {
  width: 100%;
  height: 66px;
  display: block;
  border-radius: 5px;
  object-fit: cover;
}
.execution-photo-list figcaption {
  padding: 5px 2px 1px;
  overflow: hidden;
  color: var(--muted);
  font-size: calc(9px * var(--app-font-scale));
  text-overflow: ellipsis;
  white-space: nowrap;
}
.execution-photo-list button {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(24, 34, 48, 0.82);
  color: #fff;
  font-size: calc(9px * var(--app-font-scale));
}
.execution-attachment-field {
  display: grid;
  gap: 8px;
}
.execution-attachment-field > span {
  color: var(--muted);
  font-size: calc(11px * var(--app-font-scale));
  font-weight: 750;
}
.execution-attachment-preview figure {
  position: relative;
  width: min(360px, 100%);
  margin: 0;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.execution-attachment-preview img {
  width: 100%;
  height: 150px;
  display: block;
  border-radius: 5px;
  object-fit: contain;
  background: var(--surface-2);
}
.execution-attachment-preview figcaption {
  padding: 6px 2px 0;
  overflow: hidden;
  color: var(--muted);
  font-size: calc(9px * var(--app-font-scale));
  text-overflow: ellipsis;
  white-space: nowrap;
}
.execution-attachment-preview button {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(24, 34, 48, 0.82);
  color: #fff;
  font-size: calc(9px * var(--app-font-scale));
}
.report-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.report-photo-grid figure {
  margin: 0;
}
.report-photo-grid img {
  width: 100%;
  height: 190px;
  display: block;
  border: 1px solid #d9dee7;
  object-fit: cover;
}
.report-photo-grid figcaption {
  margin-top: 4px;
  color: #667085;
  font-size: calc(7px * var(--app-font-scale));
  word-break: break-word;
}
.report-attachment-page {
  break-before: page;
  page-break-before: always;
}
.report-attachment-page h2 {
  margin-bottom: 18px;
}
.report-attachment-page figure {
  margin: 0;
}
.report-attachment-page img {
  width: 100%;
  max-height: 890px;
  display: block;
  border: 1px solid #d9dee7;
  object-fit: contain;
}
.execution-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
}
.execution-footer > div:first-child {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: calc(11px * var(--app-font-scale));
}
.execution-footer > div:first-child i {
  color: var(--green);
  font-size: calc(16px * var(--app-font-scale));
}
.execution-save-status {
  flex-basis: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 25px;
  color: var(--soft);
  font-size: calc(10px * var(--app-font-scale));
}
.execution-save-status i {
  color: inherit;
  font-size: calc(12px * var(--app-font-scale));
}
.execution-footer > div:last-child {
  display: flex;
  gap: 9px;
}
.report-toolbar-actions {
  display: flex;
  gap: 9px;
}

.outline-action.compact {
  min-height: 34px;
  padding: 0 12px;
}

/* Laudo técnico: documento vertical, sóbrio e preparado para impressão */
.report-preview-toolbar {
  max-width: 860px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.report-preview-toolbar > div {
  text-align: center;
}
.report-preview-toolbar p {
  margin: 0 0 3px;
  color: var(--soft);
  font-size: calc(8px * var(--app-font-scale));
  letter-spacing: 1.1px;
  font-weight: 750;
}
.report-preview-toolbar strong {
  font-size: calc(11px * var(--app-font-scale));
  color: var(--text);
}
.report-item-navigator {
  width: min(860px, 100%);
  margin: 0 auto 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}
.report-item-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.report-item-nav-head span {
  display: block;
  margin-bottom: 3px;
  color: var(--primary);
  font-size: calc(8px * var(--app-font-scale));
  font-weight: 800;
  letter-spacing: 1.1px;
}
.report-item-nav-head strong {
  color: var(--text);
  font-size: calc(14px * var(--app-font-scale));
}
.report-item-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 750;
}
.report-item-nav-actions span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  letter-spacing: 0;
}
.report-item-nav-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.report-item-nav-tools label {
  min-width: 240px;
  max-width: 360px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}
.report-item-nav-tools input {
  width: 100%;
  height: 38px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-weight: 700;
}
.report-item-nav-pager {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 800;
}
.report-item-nav-pager button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}
.report-item-nav-pager button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.report-item-card-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
  gap: 9px;
}
.report-item-empty {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: calc(12px * var(--app-font-scale));
  font-weight: 750;
  text-align: center;
}
.report-item-card-button {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  text-align: left;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}
.report-item-card-button:hover,
.report-item-card-button.active {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.14);
}
.report-item-card-main {
  width: 100%;
  min-height: 102px;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: default;
}
.report-item-card-button span {
  color: var(--muted);
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 800;
}
.report-item-card-button strong {
  color: var(--text);
  font-size: calc(13px * var(--app-font-scale));
}
.report-item-card-button small {
  min-height: 30px;
  color: var(--soft);
  font-size: calc(10px * var(--app-font-scale));
  line-height: 1.35;
}
.report-item-card-button em {
  margin-top: auto;
  font-style: normal;
}
.technical-report {
  width: min(860px, 100%);
  margin: 0 auto;
  background: #fff;
  color: #1d2939;
  border: 1px solid #d9dee7;
  border-radius: 4px;
  box-shadow: 0 16px 48px rgba(31, 42, 61, 0.09);
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
}
.report-doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 34px;
  border-bottom: 3px solid #182230;
  background: #fff;
}
.report-doc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.report-doc-brand .brand-mark {
  box-shadow: none;
  border-radius: 8px;
}
.report-logo {
  display: block;
  width: 154px;
  max-height: 72px;
  object-fit: contain;
  object-position: left center;
}
.report-doc-brand > div:last-child {
  display: flex;
  flex-direction: column;
}
.report-doc-brand > div:last-child strong {
  font-size: calc(18px * var(--app-font-scale));
  letter-spacing: 1.5px;
  line-height: 1;
  color: #101828;
}
.report-doc-brand > div:last-child span {
  margin-top: 5px;
  color: #667085;
  font-size: calc(8px * var(--app-font-scale));
  letter-spacing: 1.2px;
}
.report-doc-title {
  display: flex;
  flex-direction: column;
  text-align: right;
}
.report-doc-title > span {
  color: #344054;
  font-size: calc(11px * var(--app-font-scale));
  font-weight: 750;
  letter-spacing: 0.55px;
}
.report-doc-title > strong {
  margin-top: 6px;
  font-size: calc(14px * var(--app-font-scale));
  color: #101828;
}
.report-doc-title > small {
  margin-top: 5px;
  font-size: calc(10px * var(--app-font-scale));
  color: #667085;
}
.report-doc-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #d9dee7;
}
.report-doc-status > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 22px;
  border-right: 1px solid #eaecf0;
}
.report-doc-status > div:last-child {
  border-right: 0;
}
.report-doc-status span {
  color: #667085;
  font-size: calc(9px * var(--app-font-scale));
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 700;
}
.report-doc-status strong {
  color: #101828;
  font-size: calc(11px * var(--app-font-scale));
  letter-spacing: 0.25px;
}
.report-doc-section {
  padding: 27px 34px;
  border-bottom: 1px solid #d9dee7;
}
.report-doc-section h2 {
  margin: 0 0 18px;
  padding-bottom: 9px;
  border-bottom: 1px solid #98a2b3;
  color: #101828;
  font-size: calc(12px * var(--app-font-scale));
  letter-spacing: 0.35px;
  font-weight: 750;
  text-transform: uppercase;
}
.report-doc-section > p {
  margin: 0;
  color: #475467;
  font-size: calc(10px * var(--app-font-scale));
  line-height: 1.75;
}
.maintenance-cost-panel {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 38%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary-soft) 42%, var(--surface));
}
.maintenance-cost-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.maintenance-cost-head span {
  display: block;
  color: var(--primary);
  font-size: calc(8px * var(--app-font-scale));
  font-weight: 850;
  letter-spacing: 1.1px;
}
.maintenance-cost-head strong {
  display: block;
  color: var(--text);
  font-size: calc(14px * var(--app-font-scale));
}
.maintenance-cost-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
}
.maintenance-cost-head > div:last-child {
  min-width: 130px;
  text-align: right;
}
.maintenance-cost-list {
  display: grid;
  gap: 10px;
}
.maintenance-cost-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 10px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.maintenance-cost-item span {
  min-width: 0;
}
.maintenance-cost-item strong,
.maintenance-cost-item small {
  display: block;
}
.maintenance-cost-item strong {
  color: var(--text);
  font-size: calc(12px * var(--app-font-scale));
}
.maintenance-cost-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
}
.maintenance-cost-input {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  padding: 0 10px;
}
.maintenance-cost-input em {
  color: var(--muted);
  font-style: normal;
  font-size: calc(11px * var(--app-font-scale));
  font-weight: 850;
}
.maintenance-cost-input input {
  width: 100%;
  height: 34px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: calc(14px * var(--app-font-scale));
  font-weight: 850;
  text-align: right;
}
.maintenance-cost-warning,
.maintenance-cost-ok {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: calc(11px * var(--app-font-scale));
  font-weight: 750;
}
.maintenance-cost-warning i {
  color: var(--warning);
}
.maintenance-cost-ok i {
  color: var(--success);
}
.maintenance-cost-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}
.maintenance-cost-actions .btn-new {
  min-width: 190px;
  justify-content: center;
}
.report-data-list {
  margin: 0;
}
.report-data-list > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: baseline;
  gap: 22px;
  min-height: 38px;
  padding: 10px 0;
  border-bottom: 1px solid #eaecf0;
}
.report-data-list > div:last-child {
  border-bottom: 0;
}
.report-data-list dt {
  color: #667085;
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 650;
}
.report-data-list dd {
  margin: 0;
  color: #101828;
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 600;
}
.report-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #d9dee7;
}
.report-info-grid > div {
  min-height: 70px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 15px;
  border: 1px solid #d9dee7;
}
.report-info-grid > div:nth-child(3n) {
  border-right: 0;
}
.report-info-grid > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}
.report-info-grid span {
  color: #667085;
  font-size: calc(10px * var(--app-font-scale));
  line-height: 1.35;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.report-info-grid strong {
  color: #101828;
  font-size: calc(12px * var(--app-font-scale));
  line-height: 1.5;
  font-weight: 650;
}
.report-info-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.report-info-grid-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.report-info-grid-five > div,
.report-info-grid-five > div:nth-child(3n),
.report-info-grid-five > div:nth-last-child(-n + 3),
.report-info-grid-five > div:last-child {
  border: 1px solid #d9dee7;
}
.report-info-grid-four > div {
  border-bottom: 0;
}
.report-info-grid-four > div:nth-child(3n) {
  border-right: 1px solid #d9dee7;
}
.report-info-grid-four > div:last-child {
  border-right: 0;
}
.report-info-grid-four > .report-info-wide {
  grid-column: 1 / -1;
  border-top: 1px solid #d9dee7;
  border-right: 0;
}
.report-closing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.report-closing-grid > div:nth-child(2n) {
  border-right: 0;
}
.report-closing-grid > div:nth-child(3) {
  border-right: 1px solid #d9dee7;
}
.report-closing-grid > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.report-note {
  margin-top: 18px;
  padding: 15px 17px;
  border-left: 3px solid #344054;
  background: #f8f9fb;
}
.report-note strong {
  color: #101828;
  font-size: calc(10px * var(--app-font-scale));
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.report-note p {
  margin: 6px 0 0;
  color: #475467;
  font-size: calc(12px * var(--app-font-scale));
  line-height: 1.65;
}
.report-verification-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 18px;
  border: 1px solid #d9dee7;
  background: #fbfcfd;
}
.report-verification-layout .verification-label {
  color: #346b55;
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 800;
  letter-spacing: 0.7px;
}
.report-verification-layout h3 {
  margin: 7px 0 0;
  color: #101828;
  font-size: calc(12px * var(--app-font-scale));
}
.report-verification-layout p {
  max-width: 470px;
  margin: 8px 0 0;
  color: #667085;
  font-size: calc(9px * var(--app-font-scale));
  line-height: 1.6;
}
.report-verification-layout a {
  display: inline-block;
  margin-top: 10px;
  color: #344054;
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid #98a2b3;
}
.report-qr-card {
  min-width: 176px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 11px;
  border: 1px solid #d9dee7;
  background: #fff;
}
.report-qr-code {
  width: 152px;
  height: 152px;
  display: grid;
  place-items: center;
}
.report-qr-code canvas,
.report-qr-code img {
  width: 152px !important;
  height: 152px !important;
  display: block;
}
.report-qr-card small {
  margin-top: 7px;
  color: #667085;
  font-size: calc(7px * var(--app-font-scale));
  font-weight: 700;
}
.report-summary-line {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 18px;
  border: 1px solid #d9dee7;
}
.report-summary-line > div {
  min-height: 42px;
  padding: 10px 14px;
  border-bottom: 1px solid #eaecf0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.report-summary-line > div:last-child {
  border-bottom: 0;
}
.report-summary-line span {
  color: #667085;
  font-size: calc(9px * var(--app-font-scale));
}
.report-summary-line strong {
  color: #101828;
  font-size: calc(13px * var(--app-font-scale));
}
.consolidated-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.consolidated-kpi-grid > div {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 15px;
  border: 1px solid #d9dee7;
  background: #fbfcfd;
}
.consolidated-kpi-grid span {
  color: #667085;
  font-size: calc(8px * var(--app-font-scale));
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.consolidated-kpi-grid strong {
  color: #101828;
  font-size: calc(22px * var(--app-font-scale));
  line-height: 1;
}
.consolidated-kpi-grid small {
  color: #667085;
  font-size: calc(9px * var(--app-font-scale));
  line-height: 1.35;
}
.consolidated-summary-copy {
  margin: 14px 0 0;
  color: #475467;
  font-size: calc(10px * var(--app-font-scale));
  line-height: 1.65;
}
.inspection-list {
  border: 1px solid #d9dee7;
}
.inspection-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border-bottom: 1px solid #eaecf0;
  font-size: calc(9px * var(--app-font-scale));
}
.inspection-list > div:last-child {
  border-bottom: 0;
}
.inspection-list > div > span {
  color: #344054;
}
.inspection-list strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: calc(8px * var(--app-font-scale));
  white-space: nowrap;
  font-weight: 700;
}
.result-ok {
  color: #346b55;
}
.result-note {
  color: #8a6522;
}
.result-bad {
  color: #9d3439;
}
.section-title-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.section-title-row h2 {
  flex: 1;
}
.section-title-row > span {
  margin-top: 1px;
  padding: 5px 8px;
  border: 1px solid #b7c2ce;
  border-radius: 999px;
  color: #344054;
  font-size: calc(8px * var(--app-font-scale));
  font-weight: 700;
  white-space: nowrap;
}
.report-item-subtitle {
  margin: 20px 0 10px;
  color: #344054;
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.report-doc-item-section .report-info-grid {
  margin-bottom: 18px;
}
.technical-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #cfd5df;
}
.technical-report .technical-table-wrap,
.export-report-sheet .technical-table-wrap {
  overflow-x: visible;
}
.technical-report .technical-items-table,
.export-report-sheet .technical-items-table {
  min-width: 0;
}
.technical-report .report-materials-table {
  table-layout: fixed;
}
.technical-report .report-materials-table th,
.technical-report .report-materials-table td {
  overflow-wrap: anywhere;
}
.technical-report .technical-table-wrap,
.technical-report .technical-items-table,
.technical-report .report-info-grid,
.technical-report .consolidated-kpi-grid,
.technical-report .report-doc-status,
.export-report-sheet .technical-table-wrap,
.export-report-sheet .technical-items-table,
.export-report-sheet .report-info-grid,
.export-report-sheet .consolidated-kpi-grid,
.export-report-sheet .report-doc-status {
  border: 1px solid #cfd5df;
}
.technical-report .technical-items-table,
.export-report-sheet .technical-items-table {
  border-collapse: collapse;
}
.technical-report .technical-items-table th,
.technical-report .technical-items-table td,
.export-report-sheet .technical-items-table th,
.export-report-sheet .technical-items-table td {
  border: 1px solid #d7dde6;
}
.technical-report .report-info-grid > div,
.technical-report .report-info-grid-four > div,
.technical-report .report-info-grid-five > div,
.technical-report .consolidated-kpi-grid > div,
.technical-report .report-doc-status > div,
.export-report-sheet .report-info-grid > div,
.export-report-sheet .report-info-grid-four > div,
.export-report-sheet .report-info-grid-five > div,
.export-report-sheet .consolidated-kpi-grid > div,
.export-report-sheet .report-doc-status > div {
  border: 1px solid #d7dde6;
}
.technical-report .report-materials-table + * {
  margin-top: 0;
}
.technical-items-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  table-layout: fixed;
}
.technical-items-table th {
  padding: 10px 11px;
  background: #eef1f4;
  color: #344054;
  font-size: calc(10px * var(--app-font-scale));
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.technical-items-table th:nth-child(1) {
  width: 34%;
}
.technical-items-table th:nth-child(2) {
  width: 130px;
}
.technical-items-table th:nth-child(3) {
  width: auto;
}
.report-materials-table {
  min-width: 0;
}
.report-materials-table th:nth-child(1) {
  width: 86px;
}
.report-materials-table th:nth-child(2) {
  width: 20%;
}
.report-materials-table th:nth-child(3) {
  width: 18%;
}
.report-materials-table th:nth-child(4) {
  width: 17%;
}
.report-materials-table th:nth-child(5) {
  width: 16%;
}
.report-materials-table th:nth-child(6) {
  width: 100px;
}
.report-materials-table th:nth-child(7) {
  width: 82px;
}
.report-materials-table th:nth-child(8) {
  width: 128px;
}
.consolidated-sector-table {
  min-width: 640px;
}
.consolidated-sector-table th,
.consolidated-sector-table td {
  text-align: center;
}
.consolidated-sector-table th:first-child,
.consolidated-sector-table td:first-child {
  text-align: left;
}
.consolidated-equipment-list {
  display: grid;
  gap: 10px;
}
.consolidated-equipment-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #cfd5df;
  background: #fff;
}
.consolidated-equipment-card > div {
  min-width: 0;
  padding: 11px 12px;
  border-right: 1px solid #d7dde6;
  border-bottom: 1px solid #d7dde6;
}
.consolidated-equipment-card > div:nth-child(4n) {
  border-right: 0;
}

.consolidated-equipment-card span:not(.consolidated-status) {
  display: block;
  margin-bottom: 6px;
  color: #667085;
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.consolidated-equipment-card strong {
  display: block;
  color: #182230;
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.consolidated-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font-size: calc(8px * var(--app-font-scale));
  font-weight: 800;
  white-space: nowrap;
}
.consolidated-status-approved {
  border-color: #a6d8c3;
  color: #176b52;
  background: #f2fbf7;
}
.consolidated-status-attention,
.consolidated-status-pending {
  border-color: #ead19a;
  color: #8a6522;
  background: #fffaf0;
}
.consolidated-status-rejected {
  border-color: #e9a7aa;
  color: #9d3439;
  background: #fff5f5;
}
.report-item-open {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid #cfd5df;
  border-radius: 7px;
  background: #fff;
  color: #157a5c;
  font-size: calc(8px * var(--app-font-scale));
  font-weight: 750;
  white-space: nowrap;
}
.report-item-open:hover {
  border-color: #157a5c;
  background: #e4f7ef;
}
.technical-items-table td {
  padding: 11px;
  border-top: 1px solid #d9dee7;
  border-right: 1px solid #eaecf0;
  color: #475467;
  font-size: calc(10px * var(--app-font-scale));
  line-height: 1.45;
  vertical-align: top;
}
.technical-items-table td:last-child,
.technical-items-table th:last-child {
  border-right: 0;
}
.technical-items-table td:first-child {
  color: #667085;
  font-weight: 700;
}
.technical-items-table td:nth-child(2) {
  color: #101828;
  font-weight: 650;
}
.report-checklist-table th:nth-child(1) {
  width: 34%;
}
.report-checklist-table th:nth-child(2) {
  width: auto;
}
.report-checklist-table td:nth-child(1) {
  color: #101828;
  font-weight: 650;
}
.report-checklist-table td:nth-child(2) {
  color: #475467;
  font-weight: 400;
}
.report-photo-field-row > td {
  padding: 0;
}
.report-photo-block {
  border: 0;
  background: #fff;
}
.report-photo-block-header {
  padding: 12px 14px;
  border-bottom: 1px solid #d7dde6;
}
.report-photo-block-header span,
.report-photo-block-response > span {
  display: block;
  margin-bottom: 7px;
  color: #344054;
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.report-photo-block-header strong {
  display: block;
  color: #667085;
  font-weight: 700;
}
.report-photo-block-response {
  padding: 12px 14px 14px;
}
.report-photo-table {
  min-width: 0;
  border-collapse: collapse;
}
.report-photo-table th,
.report-photo-table td {
  border-right: 1px solid #eaecf0;
}
.report-photo-table tr > :last-child {
  border-right: 0;
}
.report-photo-table-labels th {
  width: 50%;
  background: #eef1f4;
}
.report-photo-table-values td {
  min-height: 58px;
  color: #475467;
}
.report-photo-table-values td:first-child {
  color: #667085;
  font-weight: 700;
}
.report-photo-table-values td:nth-child(2) {
  color: #101828;
  font-weight: 650;
}
.report-photo-table-response-label th {
  border-top: 1px solid #d9dee7;
  background: #eef1f4;
}
.report-photo-table-response {
  padding: 12px;
}
.result-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 700;
  white-space: nowrap;
}
.technical-items-table .result-chip {
  max-width: 100%;
  align-items: flex-start;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
.technical-items-table .result-chip i {
  flex: 0 0 auto;
  margin-top: 0.18em;
}
.result-chip.ok {
  color: #346b55;
}
.result-chip.note {
  color: #8a6522;
}
.finding-item {
  border: 1px solid #d9dee7;
  padding: 18px;
}
.finding-item > span {
  color: #9d3439;
  font-size: calc(8px * var(--app-font-scale));
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.55px;
}
.finding-item h3 {
  color: #101828;
  font-size: calc(11px * var(--app-font-scale));
  margin: 8px 0;
}
.finding-item > p {
  color: #475467;
  font-size: calc(9px * var(--app-font-scale));
  line-height: 1.65;
  margin: 0;
}
.finding-item dl {
  margin: 14px 0 0;
  border-top: 1px solid #eaecf0;
}
.finding-item dl > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding-top: 10px;
}
.finding-item dt {
  color: #667085;
  font-size: calc(8px * var(--app-font-scale));
}
.finding-item dd {
  margin: 0;
  color: #101828;
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 600;
}
.standards-list {
  margin: 0;
  padding-left: 18px;
  color: #475467;
  font-size: calc(9px * var(--app-font-scale));
  line-height: 1.8;
}
.photo-record {
  margin-bottom: 18px;
}
.photo-record:last-child {
  margin-bottom: 0;
}
.photo-placeholder {
  min-height: 190px;
  border: 1px solid #cfd5df;
  background: #f6f7f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #667085;
}
.photo-placeholder i {
  font-size: calc(25px * var(--app-font-scale));
  color: #98a2b3;
}
.photo-placeholder span {
  margin-top: 8px;
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 700;
}
.photo-placeholder small {
  margin-top: 4px;
  font-size: calc(8px * var(--app-font-scale));
}
.photo-record > p {
  margin: 8px 0 0;
  color: #667085;
  font-size: calc(8px * var(--app-font-scale));
  line-height: 1.55;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.inspection-photo-mock {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid #cfd5df;
  background: linear-gradient(
    145deg,
    #d8c8a6 0 48%,
    #b59e75 48% 52%,
    #d5c19a 52%
  );
}
.inspection-photo-mock::before,
.inspection-photo-mock::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  height: 34px;
  border: 11px solid #315b4f;
  border-radius: 50%;
  transform: rotate(-8deg);
}
.inspection-photo-mock::before {
  top: 48px;
}
.inspection-photo-mock::after {
  top: 94px;
  left: 28%;
  right: 16%;
}
.inspection-photo-mock > i {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 38px,
    rgba(255, 255, 255, 0.12) 38px 40px
  );
}
.inspection-photo-mock > span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 7px;
  background: rgba(24, 34, 48, 0.78);
  color: #fff;
  font-size: calc(7px * var(--app-font-scale));
  letter-spacing: 0.5px;
}
.validity-box {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 18px;
  border: 1px solid #d9dee7;
}
.validity-box > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border-bottom: 1px solid #eaecf0;
}
.validity-box > div:last-child {
  border-bottom: 0;
}
.validity-box span {
  color: #667085;
  font-size: calc(9px * var(--app-font-scale));
}
.validity-box strong {
  color: #101828;
  font-size: calc(10px * var(--app-font-scale));
}
.signature-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.signature-section h2 {
  width: 100%;
  margin-bottom: 3px;
}
.signature-block {
  width: min(360px, 100%);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
}
.signature-line {
  border-top: 1px solid #667085;
  margin-bottom: 8px;
}
.signature-block strong {
  color: #101828;
  font-size: calc(12px * var(--app-font-scale));
}
.signature-block span {
  color: #667085;
  font-size: calc(10px * var(--app-font-scale));
  margin-top: 3px;
}
.approval-signature strong {
  color: #157a5c;
}
.approval-signature.pending strong {
  color: #7357c7;
}
.report-doc-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 34px;
  background: #182230;
  color: #fff;
  font-size: calc(10px * var(--app-font-scale));
  letter-spacing: 0.2px;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

/* Exportação de relatórios preenchidos */
.export-modal-content form {
  padding: 22px 26px 25px;
}
.duplicate-item-modal form {
  padding: 22px 26px 25px;
}
.duplicate-item-help {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  line-height: 1.45;
}
#pdfModeModal .pdf-mode-options,
#verificationPrintModal .pdf-mode-options {
  display: grid;
  gap: 10px;
  padding: 22px 26px 26px;
}
#pdfModeModal .modal-dialog,
#verificationPrintModal .modal-dialog {
  max-width: 625px;
}
#pdfModeModal .pdf-mode-options button,
#verificationPrintModal .pdf-mode-options button {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
  white-space: normal;
  transform: none;
  box-shadow: none;
}
#pdfModeModal .pdf-mode-options button:active,
#pdfModeModal .pdf-mode-options button.active,
#pdfModeModal .pdf-mode-options button.is-selected,
#pdfModeModal .pdf-mode-options button[aria-pressed="true"],
#verificationPrintModal .pdf-mode-options button:active,
#verificationPrintModal .pdf-mode-options button.active,
#verificationPrintModal .pdf-mode-options button.is-selected,
#verificationPrintModal .pdf-mode-options button[aria-pressed="true"] {
  transform: none;
  border-color: color-mix(in srgb, var(--primary) 52%, var(--border));
  background: color-mix(in srgb, var(--primary-soft) 88%, var(--surface-2));
  color: var(--text);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 22%, transparent);
}
#pdfModeModal .pdf-mode-copy,
#verificationPrintModal .pdf-mode-copy {
  min-width: 0;
  width: 100%;
}
#pdfModeModal .pdf-mode-options button:hover,
#pdfModeModal .pdf-mode-options button:focus,
#pdfModeModal .pdf-mode-options button:focus-visible,
#verificationPrintModal .pdf-mode-options button:hover,
#verificationPrintModal .pdf-mode-options button:focus,
#verificationPrintModal .pdf-mode-options button:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 36%, var(--border));
  background: var(--primary-soft);
  transform: none;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 16%, transparent);
}
#pdfModeModal .pdf-mode-options button > i,
#verificationPrintModal .pdf-mode-options button > i {
  position: static;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--surface);
  color: var(--primary);
  font-size: calc(18px * var(--app-font-scale));
}
#pdfModeModal .pdf-mode-options strong,
#pdfModeModal .pdf-mode-options small,
#verificationPrintModal .pdf-mode-options strong,
#verificationPrintModal .pdf-mode-options small {
  display: block;
}
#pdfModeModal .pdf-mode-options strong,
#verificationPrintModal .pdf-mode-options strong {
  font-size: calc(12px * var(--app-font-scale));
  line-height: 1.25;
}
#pdfModeModal .pdf-mode-options small,
#verificationPrintModal .pdf-mode-options small {
  margin-top: 4px;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  line-height: 1.45;
  max-width: 42ch;
}
.pdf-item-picker {
  padding: 0 26px 26px;
}
.pdf-current-item-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary-soft) 76%, var(--surface));
}
.pdf-current-item-options span {
  display: block;
  color: var(--primary);
  font-size: calc(8px * var(--app-font-scale));
  font-weight: 850;
  letter-spacing: 1.2px;
}
.pdf-current-item-options strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: calc(13px * var(--app-font-scale));
}
.pdf-current-item-options button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 850;
}
.pdf-current-item-options button:hover,
.pdf-current-item-options button:focus-visible {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.pdf-item-picker-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.pdf-item-picker-head span {
  color: var(--primary);
  font-size: calc(8px * var(--app-font-scale));
  font-weight: 800;
  letter-spacing: 1.5px;
}
.pdf-item-picker-head strong {
  color: var(--text);
  font-size: calc(12px * var(--app-font-scale));
}
.pdf-item-search {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0 0;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
}
.pdf-item-search input {
  width: 100%;
  height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-weight: 750;
}
.pdf-item-picker-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 260px;
  margin-top: 12px;
  padding-right: 4px;
  overflow: auto;
}
.pdf-item-picker-list button {
  appearance: none;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
}
.pdf-item-picker-list button:hover,
.pdf-item-picker-list button:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  background: var(--primary-soft);
}
.pdf-item-picker-empty {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: calc(12px * var(--app-font-scale));
  font-weight: 750;
  text-align: center;
}
.pdf-item-picker-list span {
  grid-row: span 3;
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 54px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 800;
}
.pdf-item-picker-list .pdf-item-thumb {
  width: 124px;
  min-width: 124px;
  max-width: 124px;
  min-height: 86px;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
}
.pdf-item-picker-list .pdf-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pdf-item-picker-list strong,
.pdf-item-picker-list small {
  min-width: 0;
}
.pdf-item-picker-list strong {
  color: var(--text);
  font-size: calc(11px * var(--app-font-scale));
}
.pdf-item-picker-list small {
  overflow: hidden;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pdf-item-picker-list em {
  justify-self: flex-start;
  font-style: normal;
}
.export-profile-label {
  display: block;
  color: var(--text);
  font-size: calc(11px * var(--app-font-scale));
  font-weight: 700;
}
.export-profile-label select {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  outline: 0;
  font-size: calc(11px * var(--app-font-scale));
}
.export-profile-label select:focus {
  border-color: #8ba7fa;
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.export-profile-description {
  min-height: 58px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: calc(9px * var(--app-font-scale));
  line-height: 1.55;
}
.export-profile-description i {
  color: var(--primary);
  font-size: calc(13px * var(--app-font-scale));
}
.export-mode-note {
  max-width: 860px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin: -5px auto 18px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  font-size: calc(9px * var(--app-font-scale));
}
.export-mode-note i {
  color: var(--primary);
  font-size: calc(14px * var(--app-font-scale));
}
.export-preview-content {
  width: min(860px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}
.export-report-sheet {
  position: relative;
  background: #fff;
  color: #1d2939;
  border: 1px solid #d9dee7;
  border-radius: 4px;
  box-shadow: 0 16px 48px rgba(31, 42, 61, 0.09);
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
}
.sheet-print-action {
  position: absolute;
  z-index: 2;
  top: 92px;
  right: 28px;
}
.export-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 25px 30px;
  border-bottom: 3px solid #182230;
}
.export-sheet-header > div:last-child {
  display: flex;
  flex-direction: column;
  text-align: right;
}
.export-sheet-header > div:last-child > span {
  color: #344054;
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 750;
  letter-spacing: 0.4px;
}
.export-sheet-header > div:last-child > strong {
  margin-top: 6px;
  color: #101828;
  font-size: calc(13px * var(--app-font-scale));
}
.export-sheet-header > div:last-child > small {
  margin-top: 4px;
  color: #667085;
  font-size: calc(8px * var(--app-font-scale));
}
.export-sheet-status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #d9dee7;
}
.export-sheet-status > div {
  display: flex;
  justify-content: space-between;
  padding: 13px 30px;
}
.export-sheet-status > div + div {
  border-left: 1px solid #eaecf0;
}
.export-sheet-status span {
  color: #667085;
  font-size: calc(8px * var(--app-font-scale));
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.export-sheet-status strong {
  color: #101828;
  font-size: calc(10px * var(--app-font-scale));
  text-transform: uppercase;
}
.export-report-sheet > section {
  padding: 23px 30px;
  border-bottom: 1px solid #d9dee7;
}
.export-report-sheet > section h2 {
  margin: 0 0 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #98a2b3;
  color: #101828;
  font-size: calc(11px * var(--app-font-scale));
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.export-report-sheet > section > p {
  margin: 0;
  color: #475467;
  font-size: calc(9px * var(--app-font-scale));
  line-height: 1.7;
}
.export-report-sheet dl {
  margin: 0;
}
.export-report-sheet dl > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid #eaecf0;
}
.export-report-sheet dl > div:last-child {
  border-bottom: 0;
}
.export-report-sheet dt {
  color: #667085;
  font-size: calc(8px * var(--app-font-scale));
}
.export-report-sheet dd {
  margin: 0;
  color: #101828;
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 650;
}
.export-analysis {
  border: 1px solid #d9dee7;
}
.export-analysis > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 13px;
  border-bottom: 1px solid #eaecf0;
  font-size: calc(9px * var(--app-font-scale));
}
.export-analysis > div:last-child {
  border-bottom: 0;
}
.export-analysis strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: calc(8px * var(--app-font-scale));
}
.export-photo-placeholder {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9dee7;
  background: #f6f7f9;
  color: #667085;
}
.export-photo-placeholder i {
  color: #98a2b3;
  font-size: calc(24px * var(--app-font-scale));
}
.export-photo-placeholder span {
  margin-top: 7px;
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 700;
}
.export-photo-placeholder small {
  margin-top: 4px;
  font-size: calc(7px * var(--app-font-scale));
}
.export-report-sheet > footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 30px;
  background: #182230;
  color: #fff;
  font-size: calc(7px * var(--app-font-scale));
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(19, 28, 43, 0.54);
  backdrop-filter: blur(3px);
}
.report-modal {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 22px 70px rgba(15, 25, 45, 0.28);
}
.report-modal.modal-content {
  color: var(--text);
  border: 1px solid var(--border);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-head span {
  color: var(--primary);
  font-size: calc(8px * var(--app-font-scale));
  letter-spacing: 1.1px;
  font-weight: 750;
}
.modal-head h2 {
  font-size: calc(19px * var(--app-font-scale));
  margin: 5px 0 0;
}
.modal-head p {
  color: var(--muted);
  font-size: calc(12px * var(--app-font-scale));
  margin: 6px 0 0;
}
.report-modal form {
  padding: 22px 26px 25px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .span-2 {
  grid-column: span 2;
}
.schedule-datetime-group {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
}
.schedule-datetime-group > span {
  grid-column: 1 / -1;
  color: var(--primary);
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.schedule-datetime-group label {
  min-width: 0;
}
.schedule-datetime-group .schedule-picker-trigger {
  background: var(--surface);
}
.team-access-grid {
  margin-bottom: 16px;
}
.form-grid label {
  position: relative;
  color: var(--text);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 650;
}
.form-grid input,
.form-grid select,
.form-grid textarea {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 7px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
  font-size: calc(11px * var(--app-font-scale));
  font-weight: 450;
}
.form-grid input,
.form-grid select {
  height: 42px;
  padding-top: 0;
  padding-bottom: 0;
}
.form-grid textarea {
  min-height: 86px;
  resize: none;
  line-height: 1.45;
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: #8ba7fa;
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.native-select-hidden {
  position: absolute !important;
  display: block !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.custom-select {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 0;
}
.form-grid label > .custom-select,
.export-profile-label > .custom-select {
  margin-top: 7px;
}
.custom-select-trigger {
  width: 100%;
  height: 42px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  font-size: calc(11px * var(--app-font-scale));
  font-weight: 650;
  text-align: left;
}
.custom-select-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-select-trigger i {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: calc(13px * var(--app-font-scale));
  transition: transform 0.16s ease;
}
.custom-select.open .custom-select-trigger,
.custom-select-trigger:focus-visible {
  border-color: #8ba7fa;
  box-shadow: 0 0 0 3px var(--primary-soft);
  outline: none;
}
.custom-select.open .custom-select-trigger i {
  transform: rotate(180deg);
}
.custom-select-menu {
  position: absolute;
  z-index: 2800;
  top: calc(100% + 6px);
  max-height: 236px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 18px 38px rgba(16, 24, 40, 0.18);
}
.custom-select-menu.floating {
  position: fixed;
  inset: auto auto auto auto;
  z-index: 3200;
  height: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
.custom-select-option {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: calc(11px * var(--app-font-scale));
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}
.custom-select-option:hover,
.custom-select-option:focus-visible {
  background: var(--primary-soft);
  outline: none;
}
.custom-select-option.selected {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary-soft) 80%, transparent);
}
.custom-select-option.selected::after {
  content: "\F26E";
  font-family: "bootstrap-icons";
  font-size: calc(12px * var(--app-font-scale));
  flex: 0 0 auto;
}
.custom-select-option:disabled,
.custom-select-trigger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.custom-select-placeholder {
  color: var(--muted);
}
.client-autocomplete-field {
  position: relative;
}
.client-autocomplete-menu {
  position: absolute;
  z-index: 2600;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 18px 38px rgba(16, 24, 40, 0.18);
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
.client-autocomplete-menu::-webkit-scrollbar {
  width: 9px;
}
.client-autocomplete-menu::-webkit-scrollbar-track {
  margin: 8px 0;
  border-radius: 999px;
  background: var(--scrollbar-track);
}
.client-autocomplete-menu::-webkit-scrollbar-thumb {
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--scrollbar-thumb);
}
.client-autocomplete-menu::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}
.client-autocomplete-menu button,
.client-autocomplete-empty {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  background: transparent;
  color: var(--text);
  text-align: left;
}
.client-autocomplete-menu button:hover,
.client-autocomplete-menu button:focus-visible {
  background: var(--primary-soft);
  outline: none;
}
.client-autocomplete-menu strong {
  font-size: calc(11px * var(--app-font-scale));
}
.client-autocomplete-menu span,
.client-autocomplete-empty {
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
}
.client-autocomplete-create {
  margin-top: 4px;
  border-top: 1px solid var(--border) !important;
  color: var(--primary) !important;
  font-weight: 750;
}
.client-autocomplete-create i {
  margin-right: 6px;
}
.client-cnpj-status {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: -6px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 600;
}
.client-cnpj-status i {
  color: var(--primary);
}
.client-cnpj-status.loading i {
  animation: button-loading-spin 0.9s linear infinite;
}
.client-cnpj-status.found {
  border-color: color-mix(in srgb, var(--green) 38%, var(--border));
  background: var(--green-soft);
  color: var(--text);
}
.client-cnpj-status.found i {
  color: var(--green);
}
.client-cnpj-status.notFound,
.client-cnpj-status.error {
  border-color: color-mix(in srgb, var(--amber) 42%, var(--border));
  background: var(--amber-soft);
  color: var(--text);
}
.client-cnpj-status.notFound i,
.client-cnpj-status.error i {
  color: var(--amber);
}
.schedule-picker-trigger {
  position: relative;
  width: 100%;
  min-height: 42px;
  margin-top: 7px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface) 95%, white),
    var(--surface-2)
  );
  color: var(--text);
  font-size: calc(11px * var(--app-font-scale));
  font-weight: 650;
  box-shadow: 0 6px 16px rgba(30, 53, 87, 0.06);
}
.schedule-picker-trigger:hover,
.schedule-picker-trigger.active {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.schedule-picker-trigger i {
  color: var(--primary);
  font-size: calc(14px * var(--app-font-scale));
}
.schedule-picker-popover {
  position: fixed;
  z-index: 2500;
  width: min(340px, calc(100vw - 24px));
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.16);
}
.schedule-picker-popover.d-none {
  display: none;
}
.schedule-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.schedule-picker-head strong {
  font-size: calc(12px * var(--app-font-scale));
  text-transform: capitalize;
}
.schedule-picker-head button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
}
.schedule-picker-weekdays,
.schedule-picker-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.schedule-picker-weekdays span {
  color: var(--soft);
  font-size: calc(8px * var(--app-font-scale));
  font-weight: 800;
  text-align: center;
}
.schedule-picker-day {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 700;
}
.schedule-picker-day:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.schedule-picker-day.other-month {
  color: var(--soft);
  background: transparent;
}
.schedule-picker-day.selected {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(49, 95, 233, 0.22);
}
.schedule-time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.schedule-time-option {
  min-height: 34px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 700;
}
.schedule-time-option:hover,
.schedule-time-option.selected {
  background: var(--primary);
  color: #fff;
}
.storage-hint {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 9px;
  padding: 11px 13px;
  margin-top: 18px;
  font-size: calc(9px * var(--app-font-scale));
}
.storage-hint i {
  color: var(--primary);
}
.schedule-duration-advice {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(87, 166, 149, 0.32);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  color: var(--text);
}
.schedule-duration-advice i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  color: var(--primary);
  font-size: calc(18px * var(--app-font-scale));
}
.schedule-duration-advice strong {
  display: block;
  margin-bottom: 3px;
  font-size: calc(11px * var(--app-font-scale));
  color: var(--text);
}
.schedule-duration-advice span {
  display: block;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  line-height: 1.45;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}
.modal-dialog-scrollable .report-modal {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
}
.modal-dialog-scrollable .report-modal > .modal-head {
  flex: 0 0 auto;
}
.modal-dialog-scrollable .report-modal > form {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}
.modal-dialog-scrollable .report-modal > form .modal-actions {
  position: sticky;
  z-index: 3;
  bottom: -25px;
  margin: 20px -26px -25px;
  padding: 14px 26px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(8px);
}
.form-grid input[readonly] {
  background: var(--surface-3);
  color: var(--muted);
  cursor: not-allowed;
}
.client-lookup-result {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: calc(9px * var(--app-font-scale));
}
.client-lookup-result i {
  color: var(--primary);
  font-size: calc(17px * var(--app-font-scale));
}
.client-lookup-result div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.client-lookup-result strong {
  color: var(--text);
  font-size: calc(11px * var(--app-font-scale));
}
.client-lookup-result.found {
  border-style: solid;
  border-color: rgba(37, 145, 104, 0.3);
  background: rgba(37, 145, 104, 0.07);
}
.client-lookup-result.found i {
  color: #259168;
}
.client-lookup-result.not-found {
  border-style: solid;
  border-color: rgba(200, 70, 70, 0.3);
  background: rgba(200, 70, 70, 0.06);
}
.client-lookup-result.not-found i {
  color: #b84848;
}
.export-sheet-index {
  margin: 0 0 8px;
  color: var(--soft);
  font-size: calc(8px * var(--app-font-scale));
  text-align: right;
}

.team-heading-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.team-summary-mini {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px 12px;
  color: var(--soft);
  font-size: calc(8px * var(--app-font-scale));
  white-space: nowrap;
}
.team-summary-mini span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.team-summary-mini span + span::before {
  content: "";
  width: 1px;
  height: 11px;
  margin-right: 7px;
  background: var(--border);
}
.team-summary-mini strong {
  color: var(--text);
  font-size: calc(9px * var(--app-font-scale));
}
.team-summary-mini > span > i.bi {
  color: var(--primary);
  font-size: calc(10px * var(--app-font-scale));
}
.team-summary-mini .admin > i,
.team-summary-mini .developer > i,
.team-summary-mini .supervisor > i,
.team-summary-mini .technician > i,
.team-summary-mini .maintenance > i,
.team-summary-mini .costs > i,
.team-summary-mini .client > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.team-summary-mini .admin > i {
  background: var(--primary);
}
.team-summary-mini .developer > i {
  background: #ef4444;
}
.team-summary-mini .supervisor > i {
  background: var(--violet);
}
.team-summary-mini .technician > i {
  background: #2aae7d;
}
.team-summary-mini .maintenance > i {
  background: #d49522;
}
.team-summary-mini .costs > i {
  background: #38bdf8;
}
.team-summary-mini .client > i {
  background: var(--soft);
}
.team-toolbar {
  align-items: center;
}
.team-filters {
  display: flex;
  gap: 8px;
}
.team-filters select {
  min-width: 142px;
  font-size: calc(10px * var(--app-font-scale));
}
.team-table {
  min-width: 980px;
}
.team-table td:first-child {
  min-width: 270px;
}
.team-table td:last-child {
  width: 165px;
}
.team-person {
  display: flex;
  align-items: center;
  gap: 11px;
}
.team-person > div {
  min-width: 0;
}
.team-person strong,
.team-person span,
.team-person small {
  display: block;
}
.team-person strong {
  color: var(--text);
  font-size: calc(12px * var(--app-font-scale));
}
.team-person span {
  margin-top: 3px;
  color: var(--muted);
  font-size: calc(12px * var(--app-font-scale));
}
.team-person small {
  max-width: 260px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--soft);
  font-size: calc(11px * var(--app-font-scale));
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 750;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.access-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 700;
  white-space: nowrap;
}
.member-access-cell small {
  display: block;
  margin-top: 4px;
  color: var(--soft);
  font-size: calc(10px * var(--app-font-scale));
}
.team-activity strong,
.team-activity span {
  display: block;
}
.team-activity strong {
  color: var(--text);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 650;
  white-space: nowrap;
}
.team-activity span {
  margin-top: 4px;
  color: var(--soft);
  font-size: calc(11px * var(--app-font-scale));
}
.sync-status {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sync-status > i {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: calc(13px * var(--app-font-scale));
}
.sync-status.synced > i {
  color: #168a63;
  background: rgba(37, 174, 125, 0.1);
}
.sync-status.pending > i {
  color: #b8790b;
  background: rgba(224, 158, 38, 0.12);
}
.sync-status strong,
.sync-status span {
  display: block;
}
.sync-status strong {
  color: var(--text);
  font-size: calc(10px * var(--app-font-scale));
}
.sync-status span {
  margin-top: 3px;
  color: var(--soft);
  font-size: calc(10px * var(--app-font-scale));
  white-space: nowrap;
}
.member-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 700;
}
.member-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.member-status.active {
  color: #168a63;
}
.member-status.active i {
  background: #2aae7d;
}
.member-status.inactive {
  color: #7d8797;
}
.member-status.inactive i {
  background: #98a2b3;
}
.team-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}
.team-row-actions button {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: calc(12px * var(--app-font-scale));
  transition: 0.18s ease;
}
.team-row-actions button:hover {
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--primary);
}
.team-row-actions button.delete:hover {
  color: #c44848;
  background: rgba(196, 72, 72, 0.08);
}
.team-profile-editor {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}
.team-photo-preview {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--primary-soft);
  box-shadow: 0 0 0 1px var(--border);
  color: var(--primary);
  font-size: calc(20px * var(--app-font-scale));
  font-weight: 750;
}
.team-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-photo-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 35px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 700;
  cursor: pointer;
}
.team-profile-editor p {
  margin: 7px 0 0;
  color: var(--soft);
  font-size: calc(10px * var(--app-font-scale));
}
.link-action {
  margin-top: 6px;
  padding: 0;
  background: transparent;
  color: #b84848;
  font-size: calc(10px * var(--app-font-scale));
  text-decoration: underline;
}
.team-activity-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.team-activity-summary > div {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
}
.team-activity-summary small,
.team-activity-summary strong {
  display: block;
}
.team-activity-summary small {
  color: var(--soft);
  font-size: calc(7px * var(--app-font-scale));
  letter-spacing: 0.6px;
}
.team-activity-summary strong {
  margin-top: 5px;
  color: var(--text);
  font-size: calc(9px * var(--app-font-scale));
}
.team-permissions-fieldset {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface-2) 70%, var(--surface));
}
.team-permissions-fieldset legend {
  float: none;
  width: auto;
  margin: 0;
  color: var(--text);
  font-size: calc(11px * var(--app-font-scale));
  font-weight: 750;
}
.team-permissions-fieldset > p {
  margin: 5px 0 13px;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  line-height: 1.5;
}
.team-permissions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.team-permissions-grid label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}
.team-permissions-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.team-permissions-grid label > span {
  min-height: 61px;
  display: grid;
  grid-template-columns: 27px 1fr;
  align-items: center;
  column-gap: 8px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  transition: 0.18s;
}
.team-permissions-grid label > span > i {
  grid-row: span 2;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--soft);
  font-size: calc(12px * var(--app-font-scale));
}
.team-permissions-grid strong,
.team-permissions-grid small {
  min-width: 0;
  display: block;
}
.team-permissions-grid strong {
  color: var(--text);
  font-size: calc(10px * var(--app-font-scale));
}
.team-permissions-grid small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--soft);
  font-size: calc(10px * var(--app-font-scale));
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-permissions-grid input:checked + span {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--primary) 18%, transparent);
}
.team-permissions-grid input:checked + span > i {
  background: var(--surface);
  color: var(--primary);
}
.team-permissions-grid .approval-level-option > span {
  border-color: color-mix(in srgb, var(--amber) 32%, var(--border));
}
.team-permissions-grid .approval-level-option > span > i {
  color: var(--amber);
}
.team-permissions-grid .approval-level-option input:checked + span {
  border-color: color-mix(in srgb, var(--green) 44%, var(--border));
  background: var(--green-soft);
}
.team-permissions-grid .approval-level-option input:checked + span > i {
  color: var(--green);
}
.team-permissions-grid input:disabled + span {
  opacity: 0.42;
  cursor: not-allowed;
}
.permission-security-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 11px;
  color: var(--muted);
  font-size: calc(8px * var(--app-font-scale));
  line-height: 1.5;
}
.permission-security-note i {
  color: var(--primary);
  font-size: calc(12px * var(--app-font-scale));
}
.modal-dialog-scrollable #teamModalTitle {
  line-height: 1.2;
}
#teamModal .report-modal {
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
}
#teamModal .modal-head {
  flex: 0 0 auto;
  padding-top: 18px;
  padding-bottom: 16px;
}
#teamModal #teamForm {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}
#teamModal #teamForm .modal-actions {
  position: sticky;
  z-index: 2;
  bottom: -25px;
  margin: 20px -26px -25px;
  padding: 14px 26px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(8px);
}
.team-action-modal {
  padding-bottom: 22px;
}
.team-action-modal .modal-head {
  border-bottom: 0;
}

#userProfileModal {
  overflow: hidden;
}
#userProfileModal .modal-dialog {
  width: min(860px, calc(100vw - 32px));
  max-width: none;
  margin: 16px auto;
}
#userProfileModal .user-profile-modal {
  width: 100%;
  max-height: none;
  overflow: visible;
}
#userProfileModal .modal-head {
  padding: 18px 24px 16px;
}
#userProfileModal .report-modal form {
  padding: 18px 24px;
}
#userProfileModal .team-profile-editor {
  min-height: 112px;
  margin-bottom: 16px;
  padding: 16px 18px;
}
#userProfileModal .team-photo-preview {
  width: 78px;
  height: 78px;
}
#userProfileModal .form-grid {
  gap: 14px 18px;
}
#userProfileModal .form-grid input {
  height: 40px;
}
#userProfileModal .modal-actions {
  padding-top: 18px;
}
#userProfileModal .user-password-form {
  padding-top: 18px;
}
#userProfileModal .user-password-form .modal-actions {
  justify-content: flex-end;
  padding-top: 12px;
}
#photoCropModal {
  z-index: 1095;
}
#photoCropModal.show::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(6, 12, 24, 0.58);
  backdrop-filter: blur(9px) saturate(0.85);
  -webkit-backdrop-filter: blur(9px) saturate(0.85);
  pointer-events: none;
}
#photoCropModal .modal-dialog {
  position: relative;
  z-index: 1;
}
#scheduleEmailConfirmModal {
  z-index: 1095;
}
#scheduleEmailConfirmModal.show::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(6, 12, 24, 0.58);
  backdrop-filter: blur(9px) saturate(0.85);
  -webkit-backdrop-filter: blur(9px) saturate(0.85);
  pointer-events: none;
}
#scheduleEmailConfirmModal .modal-dialog {
  position: relative;
  z-index: 1;
}
.photo-crop-modal {
  overflow: hidden;
}
.photo-crop-body {
  display: grid;
  gap: 16px;
  padding: 18px 24px 0;
}
.photo-crop-stage {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  border-radius: 50%;
  background:
    linear-gradient(45deg, var(--surface-2) 25%, transparent 25%),
    linear-gradient(-45deg, var(--surface-2) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--surface-2) 75%),
    linear-gradient(-45deg, transparent 75%, var(--surface-2) 75%),
    var(--surface-3);
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0;
  background-size: 20px 20px;
  touch-action: none;
  cursor: grab;
}
.photo-crop-stage.dragging {
  cursor: grabbing;
}
.photo-crop-stage img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  user-select: none;
  pointer-events: none;
}
.photo-crop-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.92),
    inset 0 0 0 999px rgba(11, 18, 32, 0.08),
    0 0 0 1px rgba(33, 74, 63, 0.24);
}
.photo-crop-mask::before {
  content: none;
}
.photo-crop-mask::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(11, 18, 32, 0.18);
}
.photo-crop-zoom {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 700;
}
.photo-crop-zoom input {
  width: 100%;
  accent-color: var(--primary);
}
body.modal-open .app-shell {
  overflow-x: hidden;
}

@media (max-height: 760px), (max-width: 760px) {
  #userProfileModal {
    overflow-y: auto;
  }
  #userProfileModal .modal-dialog {
    margin: 12px auto;
  }
  #userProfileModal .user-profile-modal {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }
  .photo-crop-body {
    padding: 16px 18px 0;
  }
  .photo-crop-stage {
    width: min(280px, 100%);
  }
}
.team-action-modal .modal-actions {
  padding: 0 26px;
}
.danger-button {
  background: #bb4646 !important;
  box-shadow: 0 7px 15px rgba(187, 70, 70, 0.18) !important;
}

.verification-wrap {
  min-height: calc(100vh - 150px);
  display: grid;
  place-items: center;
  padding: 20px 0;
}
.verification-card {
  width: min(620px, 100%);
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.verification-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.verification-card > header img {
  width: 128px;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}
.verification-card > header span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 750;
  letter-spacing: 0.4px;
}
.verification-status {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 24px 0;
}
.verification-status > i {
  color: #259168;
  font-size: calc(28px * var(--app-font-scale));
}
.verification-status small {
  color: #259168;
  font-size: calc(7px * var(--app-font-scale));
  font-weight: 800;
  letter-spacing: 0.8px;
}
.verification-status h1 {
  margin: 5px 0 0;
  color: var(--text);
  font-size: calc(22px * var(--app-font-scale));
}
.verification-status p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
}
.verification-data {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.verification-data > div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.verification-data > div:last-child {
  border-bottom: 0;
}
.verification-data dt {
  color: var(--soft);
  font-size: calc(8px * var(--app-font-scale));
  font-weight: 700;
}
.verification-data dd {
  margin: 0;
  color: var(--text);
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 650;
}
.verification-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 18px 0;
  padding: 12px 14px;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: calc(8px * var(--app-font-scale));
  line-height: 1.55;
}
.verification-note i {
  color: var(--primary);
  font-size: calc(13px * var(--app-font-scale));
}
.verification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.verification-actions .btn-new,
.verification-actions .outline-action {
  min-height: 42px;
}
.verification-mode .sidebar,
.verification-mode .topbar,
.verification-mode .sidebar-backdrop {
  display: none !important;
}
.verification-mode .main-area {
  margin-left: 0;
}
.verification-mode .content-wrap {
  min-height: 100vh;
  padding-top: 24px;
  padding-bottom: 24px;
}
.verification-mode .verification-wrap {
  min-height: calc(100vh - 48px);
}

.app-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  min-width: 250px;
  padding: 13px 16px;
  border-radius: 11px;
  background: #162335;
  color: white;
  box-shadow: 0 12px 32px rgba(10, 20, 35, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: calc(11px * var(--app-font-scale));
  animation: toast-in 0.25s ease;
}
.app-toast i {
  color: #58d4aa;
  font-size: calc(15px * var(--app-font-scale));
}
.auth-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 8, 16, 0.72);
  backdrop-filter: blur(6px);
}
.auth-confirm-card {
  width: min(440px, 100%);
  border: 1px solid rgba(99, 140, 190, 0.42);
  border-radius: 18px;
  background: #121d2d;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
  padding: 24px;
  color: #eef4ff;
}
.auth-confirm-card span {
  display: block;
  margin-bottom: 8px;
  color: #5f8cff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.auth-confirm-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}
.auth-confirm-card p {
  margin: 0;
  color: #b7c4d8;
  line-height: 1.55;
}
.auth-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.auth-confirm-actions button {
  min-height: 44px;
  border-radius: 11px;
  border: 1px solid rgba(116, 148, 190, 0.42);
  padding: 0 18px;
  background: #17263a;
  color: #eef4ff;
  font-weight: 800;
}
.auth-confirm-actions button[data-auth-confirm-choice="confirm"] {
  border-color: transparent;
  background: #365df2;
}
.app-update-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1210;
  width: min(520px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 38px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface) 94%, var(--primary-soft));
  color: var(--text);
  box-shadow: 0 18px 46px rgba(10, 20, 35, 0.2);
  animation: toast-in 0.25s ease;
}
.app-update-banner > i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: calc(18px * var(--app-font-scale));
}
.app-update-banner strong,
.app-update-banner span {
  display: block;
}
.app-update-banner strong {
  font-size: calc(12px * var(--app-font-scale));
}
.app-update-banner span {
  margin-top: 3px;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  line-height: 1.35;
}
.app-update-banner .btn-new {
  height: 36px;
  padding: 0 14px;
  font-size: calc(10px * var(--app-font-scale));
  white-space: nowrap;
}
.app-update-banner .icon-button {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.link-loading-modal {
  position: fixed;
  inset: 0;
  z-index: 3500;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 24, 40, 0.42);
  backdrop-filter: blur(5px);
}
.link-loading-modal.d-none {
  display: none;
}
.link-loading-card {
  width: min(320px, 100%);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px 24px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 18px 55px rgba(16, 24, 40, 0.24);
}
.link-loading-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--surface-3);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: button-loading-spin 0.75s linear infinite;
}
.link-loading-card strong {
  font-size: calc(13px * var(--app-font-scale));
}
.link-loading-card span {
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  text-align: center;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.development-mail-grid {
  padding: 22px 24px 18px;
  border-top: 1px solid var(--border);
}
.development-mail-panel {
  overflow: hidden;
}
.development-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.development-card-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.development-card-title h3 {
  margin: 0;
  color: var(--text);
  font-size: calc(15px * var(--app-font-scale));
}
.development-card-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: calc(11px * var(--app-font-scale));
}
.development-card-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 700;
  white-space: nowrap;
}
.development-test-email {
  min-width: min(100%, 320px);
}
.development-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 11px;
  padding: 0 24px 24px;
}
.development-actions label {
  margin: 0;
  color: var(--text);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 650;
}
.development-actions input {
  display: block;
  width: 100%;
  height: 42px;
  margin-top: 7px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  padding: 0 12px;
  outline: none;
  font-size: calc(11px * var(--app-font-scale));
}
.development-actions input:focus {
  border-color: #8ba7fa;
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.development-logs-panel {
  margin-top: 18px;
  padding: 22px 24px;
}
.development-check-panel {
  margin-top: 18px;
  padding: 22px 24px;
}
.development-check-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.development-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}
.development-check-item span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: calc(11px * var(--app-font-scale));
  font-weight: 750;
}
.development-check-item strong {
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  text-align: right;
}
.development-check-item.success i {
  color: var(--green);
}
.development-check-item.warning i {
  color: var(--amber);
}
.development-check-item.error i {
  color: var(--red);
}
.development-health-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.development-health-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.development-health-card > div {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green);
  font-size: calc(16px * var(--app-font-scale));
}
.development-health-card span {
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 800;
}
.development-health-card strong {
  color: var(--text);
  font-size: calc(12px * var(--app-font-scale));
  line-height: 1.25;
}
.development-health-card small {
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  line-height: 1.35;
}
.development-health-card.warning > div,
.development-health-card.warning span {
  background: var(--amber-soft);
  color: var(--amber);
}
.development-health-card.error > div,
.development-health-card.error span {
  background: var(--red-soft);
  color: var(--red);
}
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.section-heading p {
  margin: 0;
  color: var(--primary);
  font-size: calc(9px * var(--app-font-scale));
  font-weight: 800;
  letter-spacing: 1.2px;
}
.section-heading h2 {
  margin: 6px 0 0;
  color: var(--text);
  font-size: calc(18px * var(--app-font-scale));
  font-weight: 740;
}
.section-heading span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: calc(11px * var(--app-font-scale));
}
.development-log-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.development-log-item {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}
.development-log-item::before {
  content: attr(data-module);
  display: none;
}
.development-log-item > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: calc(10px * var(--app-font-scale));
  font-weight: 750;
  text-transform: uppercase;
}
.development-log-item strong {
  color: var(--text);
  font-size: calc(12px * var(--app-font-scale));
}
.development-log-item small {
  color: var(--soft);
  font-size: calc(10px * var(--app-font-scale));
}
.development-log-item.success > span i {
  color: var(--green);
}
.development-log-item.error > span i {
  color: var(--red);
}
.development-log-item.warning > span i {
  color: var(--amber);
}

@media print {
  @page {
    size: A4;
    margin: 5mm 5mm 10mm;
  }
  html,
  body {
    width: 100% !important;
    min-width: 0 !important;
    background: #fff !important;
  }
  body::after {
    content: "B.lotti Movimenta\00e7\00e3o de Cargas Ltda - CNPJ: 08.175.349/0001-76 IE: 255221940";
    position: fixed;
    left: -9mm;
    right: -9mm;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 11mm !important;
    padding: 0 5mm !important;
    background: #111827 !important;
    color: #fff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 9pt !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0.2px !important;
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }
  .sidebar,
  .topbar,
  .report-preview-toolbar,
  .report-item-navigator,
  .export-mode-note,
  .sidebar-backdrop,
  .app-toast,
  .app-update-banner,
  .sheet-print-action,
  .report-item-open,
  .report-screen-only,
  .verification-actions,
  .view-section:not(#view-report-detail):not(#view-export-preview) {
    display: none !important;
  }
  body.print-verification .view-section:not(#view-report-verify) {
    display: none !important;
  }
  body.print-verification #view-report-verify {
    display: block !important;
  }
  .main-area {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
  }
  .content-wrap {
    width: 100% !important;
    max-width: none !important;
    max-width: none;
    padding: 0 !important;
    overflow: visible !important;
  }
  .view-section,
  #view-report-detail,
  #view-export-preview,
  #technicalReport {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    overflow: visible !important;
  }
  body:not(.print-export) #view-report-detail {
    display: block !important;
  }
  body:not(.print-export) #view-export-preview {
    display: none !important;
  }
  body.print-export #view-report-detail {
    display: none !important;
  }
  body.print-export #view-export-preview {
    display: block !important;
  }
  body.print-verification #view-report-detail,
  body.print-verification #view-export-preview {
    display: none !important;
  }
  body.print-verification .verification-wrap {
    min-height: auto !important;
    padding: 0 !important;
  }
  body.print-verification .verification-card {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }
  .technical-report {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: calc(297mm - 18mm) !important;
    display: flex !important;
    flex-direction: column !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible !important;
    font-size: 10px;
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }
  .report-doc-header {
    gap: 18px;
    padding: 0 0 14px;
  }
  .report-logo {
    width: 120px;
    max-height: 58px;
  }
  .report-doc-title > strong {
    font-size: 15px;
  }
  .report-doc-title > span,
  .report-doc-title > small {
    font-size: 10px;
  }
  .report-doc-status {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .report-doc-status > div {
    min-width: 0;
    padding: 10px 12px;
  }
  .report-doc-status span,
  .report-info-grid span,
  .consolidated-kpi-grid span,
  .technical-items-table th {
    font-size: 10px;
    letter-spacing: 0.2px;
  }
  .report-doc-status strong {
    font-size: 10px;
  }
  .report-doc-section {
    padding: 16px 0;
  }
  .report-doc-section h2 {
    margin-bottom: 10px;
    padding-bottom: 6px;
    font-size: 12px;
  }
  .report-doc-section,
  .finding-item,
  .photo-record,
  .inspection-list {
    break-inside: avoid;
  }
  .report-info-grid,
  .report-info-grid-four {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .report-closing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .report-info-grid > div,
  .report-info-grid-four > div {
    min-height: 0;
    padding: 9px 10px;
    border-right: 1px solid #d9dee7 !important;
    border-bottom: 1px solid #d9dee7 !important;
  }
  .report-info-grid > div:nth-child(3n),
  .report-info-grid-four > div:nth-child(3n) {
    border-right: 0 !important;
  }
  .report-info-grid > div:nth-last-child(-n + 3),
  .report-info-grid-four > div:nth-last-child(-n + 3) {
    border-bottom: 0 !important;
  }
  .report-info-grid strong {
    font-size: 10px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .report-info-grid small {
    overflow-wrap: anywhere;
  }
  .consolidated-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }
  .consolidated-kpi-grid > div {
    min-height: 68px;
    padding: 10px;
  }
  .consolidated-kpi-grid strong {
    font-size: 18px;
  }
  .consolidated-kpi-grid small,
  .consolidated-summary-copy {
    font-size: 10px;
  }
  .technical-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    border: 1px solid #cfd5df;
  }
  .technical-items-table,
  .report-materials-table,
  .consolidated-sector-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
  }
  .technical-items-table th,
  .technical-items-table td {
    padding: 6px 5px;
    font-size: 10px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .technical-items-table th:nth-child(1),
  .technical-items-table td:nth-child(1) {
    width: 34%;
  }
  .technical-items-table th:nth-child(2),
  .technical-items-table td:nth-child(2) {
    width: 84px;
  }
  .report-materials-table th:nth-child(2),
  .report-materials-table td:nth-child(2) {
    width: 20%;
  }
  .report-materials-table th:nth-child(6),
  .report-materials-table td:nth-child(6),
  .report-materials-table th:nth-child(7),
  .report-materials-table td:nth-child(7) {
    width: 70px;
  }
  .consolidated-status {
    min-height: 0;
    padding: 2px 5px;
    font-size: 10px;
  }
  .export-preview-content {
    width: 100%;
    display: block;
  }
  .export-report-sheet {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    break-after: page;
    page-break-after: always;
  }
  .export-report-sheet:last-child {
    break-after: auto;
    page-break-after: auto;
  }
  body.print-export-single .export-report-sheet:not(.print-target) {
    display: none !important;
  }
  body.print-export-single .export-report-sheet.print-target {
    break-after: auto;
    page-break-after: auto;
  }
  .export-report-sheet > section,
  .export-analysis,
  .export-photo-placeholder {
    break-inside: avoid;
  }
  .technical-items-table tr {
    break-inside: avoid;
  }
}

@media (max-width: 1374px) {
  .content-wrap {
    max-width: 100%;
    padding: 26px 20px;
  }
  .topbar {
    gap: 12px;
    padding: 0 18px;
  }
  .top-search {
    width: min(390px, 38vw);
  }
  .top-actions .user-profile-trigger {
    max-width: 160px;
  }
  .top-actions .user-profile-trigger strong,
  .top-actions .user-profile-trigger span {
    max-width: 86px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .page-heading .btn-new.large,
  .page-heading .heading-actions {
    margin-left: auto;
  }
  .table-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }
  .inline-search {
    flex: 1 1 300px;
    width: auto;
  }
  .field-type-legend {
    margin-left: auto;
  }
  .list-pagination {
    grid-template-columns: 1fr auto;
  }
  .list-page-size {
    justify-self: end;
  }
  .list-page-actions {
    grid-column: 1 / -1;
    justify-content: center;
    justify-self: center;
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .client-layout {
    grid-template-columns: 1fr;
  }
  .client-list-block {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .technician-layout {
    grid-template-columns: 1fr;
  }
  .technician-list-block {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .schedule-board {
    grid-template-columns: 1fr;
  }
  .schedule-period-panel {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .schedule-period-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .template-editor-layout {
    grid-template-columns: 1fr;
  }
  .template-preview-panel {
    position: static;
    max-height: none;
  }
}

@media screen and (max-width: 1374px) {
  .table-responsive {
    overflow-x: visible;
  }
  .report-table.template-table {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .template-table thead {
    display: none;
  }
  .template-table tbody {
    display: grid;
    width: 100%;
    gap: 12px;
    padding: 12px;
  }
  .template-table tbody tr {
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
    border-radius: 11px;
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--primary) 4%, var(--surface)) 0,
      var(--surface) 132px
    );
    box-shadow:
      inset 4px 0 0 var(--violet),
      0 10px 24px rgba(30, 53, 87, 0.1);
  }
  .template-table td {
    display: grid;
    grid-template-columns: minmax(102px, 118px) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    width: 100% !important;
    min-width: 0 !important;
    padding: 11px 12px !important;
    border: 0;
    border-bottom: 1px solid
      color-mix(in srgb, var(--primary) 18%, var(--border)) !important;
    text-align: left !important;
    overflow-wrap: anywhere;
  }
  .template-table td:last-child {
    border-bottom: 0 !important;
  }
  .template-table td::before {
    width: fit-content;
    align-self: center;
    padding: 4px 7px;
    border: 1px solid color-mix(in srgb, var(--primary) 14%, var(--border));
    border-radius: 7px;
    background: color-mix(in srgb, var(--primary) 8%, var(--surface-2));
    color: color-mix(in srgb, var(--primary) 76%, var(--text));
    font-size: calc(7px * var(--app-font-scale));
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: 0.45px;
    text-transform: uppercase;
  }
  .selectable-report-table tbody tr {
    --activity-card-color: var(--primary);
    border-color: color-mix(in srgb, var(--activity-card-color) 24%, var(--border));
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--activity-card-color) 5%, var(--surface)) 0,
      var(--surface) 140px
    );
    box-shadow:
      inset 4px 0 0 var(--activity-card-color),
      0 10px 24px rgba(30, 53, 87, 0.1);
  }

  .selectable-report-table tbody tr.status-draft {
    --activity-card-color: var(--soft);
  }

  .selectable-report-table tbody tr.status-analysis,
  .selectable-report-table tbody tr.status-awaiting,
  .selectable-report-table tbody tr.status-pending {
    --activity-card-color: var(--primary);
  }

  .selectable-report-table tbody tr.status-approved {
    --activity-card-color: var(--green);
  }

  .selectable-report-table tbody tr.status-canceled {
    --activity-card-color: var(--red);
  }

  .selectable-report-table tbody tr:hover {
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--activity-card-color) 8%, var(--surface)) 0,
      var(--surface) 140px
    );
  }

  .selectable-report-table td {
    grid-template-columns: minmax(102px, 118px) minmax(0, 1fr);
    border-bottom-color: color-mix(
      in srgb,
      var(--activity-card-color) 18%,
      var(--border)
    ) !important;
  }

  .selectable-report-table td::before {
    width: fit-content;
    align-self: center;
    padding: 4px 7px;
    border: 1px solid color-mix(in srgb, var(--activity-card-color) 18%, var(--border));
    border-radius: 7px;
    background: color-mix(in srgb, var(--activity-card-color) 10%, var(--surface-2));
    color: color-mix(in srgb, var(--activity-card-color) 78%, var(--text));
  }

  .selectable-report-table td:nth-child(2) {
    background: color-mix(in srgb, var(--activity-card-color) 6%, transparent);
  }

  .selectable-report-table .status-badge {
    width: 100%;
    justify-content: flex-start;
    border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  }

  .selectable-report-table .responsible {
    white-space: normal;
  }

  .selectable-report-table .row-actions {
    gap: 6px;
  }

  .selectable-report-table .row-actions button:not(.continue-report-button):not(.view-pdf-button),
  .selectable-report-table .report-actions-trigger {
    border: 1px solid color-mix(in srgb, var(--activity-card-color) 18%, var(--border));
    background: color-mix(in srgb, var(--activity-card-color) 8%, var(--surface-2));
    color: color-mix(in srgb, var(--activity-card-color) 78%, var(--muted));
  }

  .template-table td:nth-child(1)::before {
    content: "Modelo";
  }
  .template-table td:nth-child(2)::before {
    content: "Categoria";
  }
  .template-table td:nth-child(3)::before {
    content: "Estrutura";
  }
  .template-table td:nth-child(4)::before {
    content: "Atualizacao";
  }
  .template-table td:nth-child(5)::before {
    content: "Acoes";
  }
  .template-table td:first-child {
    background: color-mix(in srgb, var(--violet) 7%, transparent);
  }
  .template-table .report-title,
  .template-table .row-actions {
    min-width: 0;
    max-width: 100%;
  }
  .template-table .report-title strong,
  .template-table .report-title span {
    max-width: none;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .template-table .template-category {
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
    background: color-mix(in srgb, var(--primary) 10%, var(--surface-3));
    color: color-mix(in srgb, var(--primary) 62%, var(--text));
    white-space: normal;
  }
  .template-table .template-row-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 991.98px) {
  .consolidated-equipment-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .consolidated-equipment-card > div:nth-child(4n) {
    border-right: 1px solid #d7dde6;
  }

  .consolidated-equipment-card > div:nth-child(2n) {
    border-right: 0;
  }

  .consolidated-equipment-card > div:nth-last-child(-n + 4) {
    border-bottom: 1px solid #d7dde6;
  }

  .consolidated-equipment-card > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .auth-screen {
    grid-template-columns: 1fr;
  }
  .auth-panel {
    min-height: auto;
    padding-top: 118px;
    border-right: 0;
  }
  .auth-panel-bg {
    height: 140%;
  }
  .auth-aside {
    display: none;
  }
  .sidebar {
    width: min(260px, calc(100vw - 44px));
    transform: translateX(-105%);
    transition: 0.24s ease;
    box-shadow: 20px 0 45px rgba(20, 33, 50, 0.16);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.42);
    z-index: 1035;
  }
  .main-area {
    margin-left: 0;
    max-width: 100%;
  }
  .dashboard-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .status-panel {
    min-height: 390px;
  }
  .schedule-layout {
    grid-template-columns: 1fr;
  }
  .mini-calendar {
    max-width: 500px;
  }
}

@media (max-width: 720px) {
  .consolidated-equipment-card {
    grid-template-columns: 1fr;
  }

  .pdf-item-picker-list {
    grid-template-columns: 1fr;
  }

  .pdf-item-picker-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .consolidated-equipment-card > div,
  .consolidated-equipment-card > div:nth-child(2n),
  .consolidated-equipment-card > div:nth-child(4n) {
    border-right: 0;
  }

  .consolidated-equipment-card > div:nth-last-child(-n + 2) {
    border-bottom: 1px solid #d7dde6;
  }

  .consolidated-equipment-card > div:last-child {
    border-bottom: 0;
  }

  .report-item-nav-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-item-card-strip {
    grid-template-columns: 1fr;
  }
  .report-item-nav-tools {
    align-items: stretch;
    flex-direction: column;
  }
  .report-item-nav-tools label {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
  .report-item-nav-pager {
    justify-content: space-between;
  }

  .auth-panel {
    padding: 108px 20px 30px;
  }
  .auth-brand {
    left: 20px;
  }
  .auth-copy {
    margin-top: 28px;
  }
  .auth-copy h1 {
    font-size: calc(28px * var(--app-font-scale));
  }
  .auth-form {
    max-width: none;
  }
  .auth-options {
    align-items: flex-start;
    flex-direction: column;
  }
  .topbar {
    padding: 0 12px;
    gap: 7px;
  }
  .top-search {
    flex: 1 1 auto;
    width: auto;
    padding: 0 10px;
    position: static;
  }
  .global-search-results {
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    width: auto;
    max-height: min(360px, calc(100vh - 140px));
    overflow-y: auto;
    overflow-x: hidden;
  }
  .top-search input {
    margin: 0 0 0 8px;
  }
  .top-search kbd {
    display: none;
  }
  .top-actions {
    flex: 0 0 auto;
  }
  .top-actions .icon-button:first-child {
    display: none;
  }
  .top-actions .user-mini {
    padding-left: 4px;
    gap: 4px;
  }
  .top-actions .user-profile-trigger {
    width: 42px;
    min-height: 38px;
    padding: 2px;
    justify-content: center;
  }
  .top-actions .user-profile-trigger > div:nth-child(2) {
    display: none;
  }
  .top-actions .user-logout {
    min-width: 44px;
    height: 32px;
    padding: 0 10px;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    font-size: calc(11px * var(--app-font-scale));
  }
  .btn-new:not(.large) {
    width: 39px;
    padding: 0;
  }
  .btn-new:not(.large) {
    font-size: 0;
  }
  .btn-new:not(.large) i {
    font-size: calc(15px * var(--app-font-scale));
  }
  .content-wrap {
    padding: 22px 15px;
    overflow-x: hidden;
    overflow-x: clip;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
  }
  .page-heading h1 {
    font-size: calc(23px * var(--app-font-scale));
    overflow-wrap: anywhere;
  }
  .page-heading span {
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  .page-heading .outline-action {
    display: none;
  }
  .development-card-head,
  .development-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .development-card-toggle {
    justify-content: space-between;
  }
  .development-health-grid {
    grid-template-columns: 1fr;
  }
  .development-mail-grid {
    padding: 18px;
  }
  .development-actions {
    padding: 0 18px 18px;
  }
  .development-actions button {
    width: 100%;
    justify-content: center;
  }
  .development-check-item {
    align-items: flex-start;
    flex-direction: column;
  }
  .development-check-item strong {
    text-align: left;
  }
  .development-logs-panel {
    padding: 18px;
  }
  .metric-grid {
    grid-template-columns: 1fr;
  }
  .metric-card {
    min-height: 126px;
  }
  .performance-panel .panel-header {
    align-items: stretch;
    flex-direction: column;
  }
  .performance-panel .panel-header > div:first-child,
  .performance-panel .dashboard-period-controls {
    flex: 0 0 auto;
  }
  .performance-panel .panel-header h2 {
    max-width: 100%;
    overflow-wrap: normal;
  }
  .dashboard-period-controls {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }
  .client-heading-actions {
    max-width: 100%;
    align-items: flex-start;
  }
  .client-summary-mini {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    white-space: normal;
  }
  .client-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .client-toolbar select {
    width: 100%;
  }
  .client-layout {
    display: flex;
    flex-direction: column;
  }
  .client-spotlight {
    order: 2;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 82px;
  }
  .client-list-block {
    order: 1;
    border-bottom: 0;
  }
  .client-table-name {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
  }
  .client-table-name .client-logo {
    width: 44px;
    height: 44px;
  }
  .offline-queue-panel {
    align-items: stretch;
    flex-direction: column;
  }
  .client-pagination {
    grid-template-columns: 1fr;
  }
  .client-page-status,
  .client-page-actions {
    justify-self: center;
    text-align: center;
    grid-column: 1;
  }
  .technician-heading-actions {
    max-width: 100%;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .technician-summary-mini {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    white-space: normal;
  }
  .technician-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .technician-toolbar select {
    width: 100%;
  }
  .technician-layout {
    display: flex;
    flex-direction: column;
  }
  .technician-spotlight {
    order: 2;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 82px;
  }
  .technician-list-block {
    order: 1;
    border-bottom: 0;
  }
  .technician-pagination {
    grid-template-columns: 1fr;
  }
  .technician-page-status,
  .technician-page-actions {
    justify-self: center;
    text-align: center;
    grid-column: 1;
  }
  .list-pagination {
    grid-template-columns: 1fr;
  }
  .list-page-status,
  .list-page-size,
  .list-page-actions {
    justify-self: center;
    text-align: center;
    grid-column: 1;
  }
  .list-page-actions {
    justify-content: center;
  }
  .technician-history-item {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .technician-history-item time {
    width: 100%;
    min-height: 64px;
  }
  .technician-history-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .technician-history-title small,
  .technician-history-open {
    justify-self: start;
  }
  .schedule-heading-actions {
    max-width: 100%;
    align-items: flex-start;
  }
  .schedule-summary-mini {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    white-space: normal;
  }
  .schedule-period-list {
    grid-template-columns: 1fr;
  }
  .schedule-detail-primary,
  .schedule-detail-timeline {
    grid-template-columns: 1fr;
  }
  .team-heading-actions {
    max-width: 100%;
    align-items: flex-start;
  }
  .team-summary-mini {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    white-space: normal;
  }
  .team-toolbar {
    align-items: stretch;
  }
  .team-filters {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .team-filters select {
    width: 100%;
    min-width: 0;
  }
  .table-toolbar {
    min-width: 0;
    flex-direction: column;
  }
  .inline-search {
    flex: 0 0 auto;
    width: 100%;
  }
  .toolbar-actions {
    min-width: 0;
    max-width: 100%;
    justify-content: space-between;
  }
  .toolbar-actions {
    flex-wrap: wrap;
  }
  .selected-reports-count {
    order: -1;
    width: 100%;
  }
  .execution-topbar {
    grid-template-columns: 1fr 1fr;
  }
  .execution-heading {
    grid-column: span 2;
    grid-row: 1;
  }
  .execution-heading h1 {
    white-space: normal;
  }
  .execution-topbar > button {
    width: 100%;
  }
  .execution-fields-grid {
    grid-template-columns: 1fr;
  }
  .execution-fields-grid .span-2 {
    grid-column: span 1;
  }
  .execution-section {
    padding: 18px;
  }
  .execution-items-head {
    align-items: stretch;
    flex-direction: column;
  }
  .execution-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .execution-footer > div:last-child {
    flex-direction: column;
  }
  .execution-footer button {
    width: 100%;
  }
  .report-toolbar-actions {
    width: 100%;
  }
  .report-toolbar-actions button {
    flex: 1;
  }
  .schedule-row {
    grid-template-columns: 45px 8px 1fr;
  }
  .schedule-continue {
    grid-column: 3;
    justify-self: start;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .span-2 {
    grid-column: span 1;
  }
  .report-modal form,
  .modal-head {
    padding-left: 18px;
    padding-right: 18px;
  }
  .modal-actions {
    flex-direction: column-reverse;
  }
  .modal-actions button {
    width: 100%;
  }
  .report-preview-toolbar {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
  }
  .report-preview-toolbar > div {
    min-width: 0;
    order: -1;
    width: 100%;
  }
  .report-preview-toolbar button {
    flex: 1;
  }
  .report-doc-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
  }
  .report-doc-title {
    text-align: left;
  }
  .report-doc-status {
    grid-template-columns: 1fr;
  }
  .consolidated-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-doc-status > div {
    border-right: 0;
    border-bottom: 1px solid #eaecf0;
  }
  .report-doc-status > div:last-child {
    border-bottom: 0;
  }
  .report-doc-status > div,
  .report-doc-section {
    padding-left: 20px;
    padding-right: 20px;
  }
  .report-verification-layout {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
  }
  .report-verification-layout > * {
    min-width: 0;
  }
  .report-verification-layout a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .report-qr-card {
    width: min(176px, 100%);
    min-width: 0;
    justify-self: start;
  }
  .report-info-grid,
  .report-info-grid-four,
  .report-closing-grid {
    grid-template-columns: 1fr;
  }
  .report-info-grid > div,
  .report-info-grid-four > div,
  .report-closing-grid > div {
    border-right: 0 !important;
    border-bottom: 1px solid #d9dee7 !important;
  }
  .report-info-grid > div:last-child,
  .report-info-grid-four > div:last-child,
  .report-closing-grid > div:last-child {
    border-bottom: 0 !important;
  }
  .report-data-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .inspection-list > div {
    align-items: flex-start;
    flex-direction: column;
  }
  .finding-item dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .report-doc-footer {
    flex-direction: column;
    padding-left: 20px;
    padding-right: 20px;
  }
  .template-meta-grid,
  .field-editor-grid {
    grid-template-columns: 1fr;
  }
  .template-meta-grid .span-2 {
    grid-column: span 1;
  }
  .options-editor-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .options-editor-head button {
    width: 100%;
    justify-content: center;
  }
  .builder-field {
    grid-template-columns: 24px minmax(0, 1fr);
  }
  .builder-field > .builder-actions {
    grid-column: 2;
    justify-content: flex-end;
  }
  .builder-section-head {
    grid-template-columns: 30px minmax(0, 1fr);
  }
  .builder-section-head > .builder-actions {
    grid-column: 2;
    justify-content: flex-end;
  }
  .builder-section-footer {
    grid-template-columns: 1fr;
  }
  .add-field-button {
    white-space: normal;
  }
  .field-kind-help {
    width: 100%;
    margin-left: 0;
  }
  .export-sheet-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 18px;
  }
  .export-sheet-header > div:last-child {
    text-align: left;
  }
  .export-sheet-status {
    grid-template-columns: 1fr;
  }
  .export-sheet-status > div {
    padding-left: 18px;
    padding-right: 18px;
  }
  .export-sheet-status > div + div {
    border-left: 0;
    border-top: 1px solid #eaecf0;
  }
  .export-report-sheet > section {
    padding-left: 18px;
    padding-right: 18px;
  }
  .export-report-sheet dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .export-analysis > div {
    flex-direction: column;
  }
  .export-report-sheet > footer {
    flex-direction: column;
    padding-left: 18px;
    padding-right: 18px;
  }
  .sheet-print-action {
    position: static;
    margin: 14px 18px 0;
  }
  .photo-grid {
    grid-template-columns: 1fr;
  }
  .team-profile-editor {
    min-width: 0;
    align-items: flex-start;
  }
  .team-profile-editor > div {
    min-width: 0;
    max-width: 100%;
  }
  .team-activity-summary {
    grid-template-columns: 1fr;
  }
  .team-action-modal .modal-actions {
    padding-left: 18px;
    padding-right: 18px;
  }
  .maintenance-cost-item {
    grid-template-columns: 1fr;
  }
  .maintenance-cost-head {
    flex-direction: column;
  }
  .maintenance-cost-head > div:last-child {
    text-align: left;
  }
  .maintenance-cost-actions,
  .maintenance-cost-actions .btn-new {
    width: 100%;
  }
  .pdf-current-item-options {
    grid-template-columns: 1fr;
  }
  .pdf-current-item-options button {
    width: 100%;
  }
  .modal-dialog-scrollable
    .technician-history-modal
    > .technician-history-list {
    max-height: calc(100vh - 205px);
    max-height: calc(100dvh - 205px);
    padding: 14px;
  }
  .report-history-log {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }
  .report-history-log > i {
    width: 34px;
    height: 34px;
  }
  .verification-card {
    padding: 20px;
  }
  .verification-card > header {
    align-items: flex-start;
    flex-direction: column;
  }
  .verification-data > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .modal-dialog {
    max-width: calc(100% - 16px);
    margin-left: 8px;
    margin-right: 8px;
  }
  .report-modal,
  .modal-content,
  .modal-head,
  .report-modal form {
    min-width: 0;
    max-width: 100%;
  }
  .modal-dialog-scrollable .report-modal {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }
  .modal-dialog-scrollable .report-modal > form .modal-actions {
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .app-toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    min-width: 0;
    max-width: none;
  }
  .app-update-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
  }
  .app-update-banner .btn-new {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }
  .schedule-calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }
  .schedule-calendar-navigation {
    width: 100%;
  }
  .schedule-calendar-navigation h2 {
    min-width: 0;
    flex: 1;
    margin-left: 3px;
    font-size: calc(16px * var(--app-font-scale));
  }
  .schedule-calendar-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .calendar-view-switch {
    flex: 1;
  }
  .calendar-view-switch button {
    min-width: 0;
    flex: 1;
    padding: 0 7px;
  }
  .calendar-export-button {
    flex: 0 0 auto;
  }
  .consolidated-kpi-grid {
    grid-template-columns: 1fr;
  }
  .calendar-weekday-header span {
    padding: 9px 2px;
    font-size: calc(7px * var(--app-font-scale));
  }
  .calendar-week-row {
    min-height: 122px;
  }
  .calendar-week-row.expanded {
    min-height: max(285px, calc(70px + (var(--week-lanes, 2) * 27px)));
  }
  .calendar-day-cell {
    padding: 7px 4px;
  }
  .calendar-day-number {
    width: 25px;
    height: 25px;
    font-size: calc(9px * var(--app-font-scale));
  }
  .calendar-event-bar {
    top: calc(39px + (var(--lane) * 27px));
    left: calc(((var(--start) - 1) * 100% / 7) + 2px);
    width: calc((var(--span) * 100% / 7) - 4px);
    height: 22px;
    padding: 0 5px;
    border-radius: 5px;
    font-size: calc(7px * var(--app-font-scale));
  }
  .calendar-more-button {
    left: calc(((var(--day) - 1) * 100% / 7) + 5px);
    bottom: 7px;
    font-size: calc(7px * var(--app-font-scale));
  }
  .calendar-day-view {
    padding: 14px;
  }
  .calendar-day-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .calendar-day-event {
    grid-template-columns: 58px 4px minmax(0, 1fr);
    gap: 9px;
  }
  .calendar-day-event > span {
    grid-column: 3;
    justify-self: start;
  }
  .calendar-day-event p {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  .topbar {
    height: 64px;
    padding: 0 9px;
  }
  .top-search input {
    font-size: calc(10px * var(--app-font-scale));
  }
  .top-search {
    padding: 0 8px;
  }
  .top-actions {
    gap: 1px;
  }
  .top-actions .icon-button {
    width: 34px;
  }
  .top-actions .user-logout {
    min-width: 40px;
    padding: 0 8px;
  }
  .notification-popover {
    left: 12px !important;
    right: 12px;
    width: auto !important;
  }
  .topbar > .icon-button {
    width: 34px;
    flex: 0 0 34px;
  }
  .page-heading {
    flex-direction: column;
  }
  .page-heading .btn-new.large {
    width: auto;
    min-width: 181px;
    flex: 0 0 auto;
    font-size: calc(12px * var(--app-font-scale));
  }
  .report-heading-actions {
    width: 100%;
    align-items: stretch;
  }
  .reports-page-panel .table-toolbar,
  .reports-page-panel .toolbar-actions {
    align-items: stretch;
  }
  .reports-page-panel .inline-search,
  .reports-page-panel .toolbar-actions,
  .reports-page-panel .toolbar-actions > * {
    flex: 0 0 auto;
  }
  .reports-page-panel .toolbar-actions {
    flex-direction: column;
  }
  .reports-page-panel .toolbar-actions .outline-action,
  .reports-page-panel .toolbar-actions select {
    width: 100%;
  }
  .report-summary-mini {
    justify-content: flex-start;
  }
  .template-page-heading .heading-actions {
    width: 100%;
    flex-direction: column;
  }
  .template-page-heading .outline-action {
    display: inline-flex;
    width: 100%;
  }
  .template-builder-panel,
  .template-preview-panel {
    padding: 15px;
  }
  .new-category-row {
    grid-template-columns: 1fr;
  }
  .new-category-row button {
    width: 100%;
  }
  .execution-topbar {
    grid-template-columns: 1fr;
  }
  .execution-heading {
    grid-column: 1;
  }
  .execution-topbar > button {
    grid-column: 1;
  }
  .execution-progress-panel {
    padding: 15px;
  }
  .execution-section-head p {
    line-height: 1.5;
  }
  .performance-panel,
  .status-panel,
  .agenda-panel {
    padding: 17px;
  }
  .team-filters {
    grid-template-columns: 1fr;
  }
  .team-profile-editor {
    flex-direction: column;
  }
  .team-heading-actions {
    width: 100%;
  }
  .team-summary-mini span + span::before {
    display: none;
  }
  .approval-summary-mini span + span::before {
    display: none;
  }
  .report-preview-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }
  .report-preview-toolbar button,
  .report-toolbar-actions,
  .report-toolbar-actions button {
    width: 100%;
  }
  .report-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .technical-report,
  .export-preview-content,
  .export-report-sheet,
  .verification-card {
    width: 100%;
    max-width: 100%;
  }
  .report-doc-section,
  .report-doc-status > div {
    padding-left: 16px;
    padding-right: 16px;
  }
  .modal-head h2,
  .verification-status h1 {
    overflow-wrap: anywhere;
  }
  .chart-summary {
    margin-left: 35px;
  }
  .dashboard-period-controls {
    grid-template-columns: 1fr;
  }
  .line-chart {
    padding-left: 28px;
  }
  .settings-row {
    grid-template-columns: 40px 1fr;
  }
  .settings-row > button,
  .font-size-control {
    grid-column: span 2;
    justify-self: start;
  }
  .font-size-control {
    width: 100%;
    min-width: 0;
  }
  .schedule-page-heading .btn-new.large {
    display: inline-flex;
  }
  .schedule-calendar-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .schedule-calendar-actions .outline-action {
    width: 100%;
  }
  .calendar-export-button {
    justify-content: center;
  }
  .schedule-export-option {
    grid-template-columns: 38px minmax(0, 1fr) 16px;
    gap: 9px;
    padding: 12px;
  }
  .schedule-export-icon {
    width: 38px;
    height: 38px;
  }
  .calendar-week-row {
    min-height: 126px;
  }
  .calendar-week-row.expanded {
    min-height: max(285px, calc(70px + (var(--week-lanes, 2) * 27px)));
  }
  .calendar-event-bar {
    top: calc(42px + (var(--lane) * 27px));
    height: 23px;
    justify-content: flex-start;
    overflow: hidden;
    padding: 0 6px;
    border-radius: 6px;
    font-size: calc(8px * var(--app-font-scale));
    font-weight: 750;
    line-height: 1;
    text-indent: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: inset 0 0 0 1px
      color-mix(in srgb, currentColor 10%, transparent);
  }
  .calendar-event-bar::after {
    content: none;
  }
  .calendar-day-event {
    grid-template-columns: 1fr;
  }
  .calendar-day-event-line {
    width: 100%;
    height: 4px;
  }
  .calendar-day-event > span {
    grid-column: 1;
  }
  .schedule-detail-body {
    padding: 4px 18px 18px;
  }
  .schedule-detail-modal .modal-actions {
    margin: 18px 18px 22px;
  }
  .schedule-detail-grid {
    grid-template-columns: 1fr;
  }
  .schedule-datetime-group {
    grid-template-columns: 1fr;
  }
  .approval-heading-actions {
    width: 100%;
  }
  .approval-summary-mini {
    justify-content: flex-start;
  }
  .approval-session-user {
    width: 100%;
    justify-content: flex-start;
  }
  .team-permissions-grid {
    grid-template-columns: 1fr;
  }
  .team-permissions-grid label > span {
    min-height: 58px;
  }
}

/* Tabelas viram cartões em telas intermediárias: nenhuma etapa exige arrastar para os lados. */
@media screen and (max-width: 1374px) {
  .table-responsive,
  .execution-checklist-wrap,
  .technical-table-wrap {
    overflow-x: visible;
    border: 0;
  }

  .report-table,
  .execution-checklist-table,
  .technical-items-table {
    display: block;
    width: 100%;
    min-width: 0;
    table-layout: auto;
  }

  .report-table thead,
  .execution-checklist-table > thead,
  .technical-items-table thead {
    display: none;
  }

  .report-table tbody,
  .execution-checklist-table tbody,
  .technical-items-table tbody {
    display: grid;
    width: 100%;
    gap: 12px;
  }

  .report-table tbody {
    padding: 12px;
  }

  .report-table tbody tr,
  .execution-checklist-table tbody tr:not(.execution-template-section-row),
  .technical-items-table tbody tr {
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    box-shadow: 0 4px 14px rgba(30, 53, 87, 0.05);
  }

  .report-table tbody tr:hover {
    background: var(--surface);
  }

  .report-table td,
  .execution-checklist-table td,
  .technical-items-table td {
    display: grid;
    grid-template-columns: minmax(76px, 92px) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    width: 100% !important;
    min-width: 0 !important;
    padding: 11px 12px !important;
    border: 0;
    border-bottom: 1px solid var(--border);
    text-align: left !important;
    overflow-wrap: anywhere;
  }

  .report-table td:last-child,
  .execution-checklist-table td:last-child,
  .technical-items-table td:last-child {
    border-bottom: 0;
  }

  .report-table td::before,
  .execution-checklist-table td::before,
  .technical-items-table td::before {
    color: var(--soft);
    font-size: calc(7px * var(--app-font-scale));
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: 0.45px;
    text-transform: uppercase;
  }

  .report-table .report-title,
  .report-table .team-person,
  .report-table .sync-status,
  .report-table .team-activity,
  .report-table .responsible,
  .execution-checklist-table td > *,
  .technical-items-table td > * {
    min-width: 0;
    max-width: 100%;
  }

  .report-table .report-title {
    min-width: 0;
  }
  .report-table .report-title strong,
  .report-table .report-title span,
  .team-person strong,
  .team-person span,
  .team-person small {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .report-table .row-actions,
  .report-table .team-row-actions,
  .report-table .approval-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .client-table tbody {
    padding: 12px;
  }
  .client-table tbody tr {
    display: block;
  }
  .client-table tbody tr.selected {
    border-color: var(--primary) !important;
    background: var(--surface) !important;
    box-shadow:
      inset 4px 0 0 var(--primary),
      0 4px 14px rgba(30, 53, 87, 0.05) !important;
  }
  .client-table td {
    display: block !important;
    padding: 12px 14px !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .client-table td::before {
    content: none !important;
  }
  .client-table td:first-child {
    padding-top: 16px !important;
  }
  .client-table td:last-child {
    padding-bottom: 16px !important;
    border-bottom: 0 !important;
  }
  .client-table tbody tr.selected td:not(:last-child) {
    border-bottom: 1px solid var(--border) !important;
  }
  .client-table-name {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }
  .client-table-name .client-logo {
    width: 56px;
    height: 56px;
  }
  .client-table td strong,
  .client-table td span,
  .client-table td small {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .technician-table tbody {
    padding: 12px;
  }
  .technician-table tbody tr {
    display: block;
  }
  .technician-table tbody tr.selected {
    border-color: var(--primary) !important;
    background: var(--surface) !important;
    box-shadow:
      inset 4px 0 0 var(--primary),
      0 4px 14px rgba(30, 53, 87, 0.05) !important;
  }
  .technician-table td {
    display: block !important;
    padding: 12px 14px !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .technician-table td::before {
    content: none !important;
  }
  .technician-table td:first-child {
    padding-top: 16px !important;
  }
  .technician-table td:last-child {
    padding-bottom: 16px !important;
    border-bottom: 0 !important;
  }
  .technician-table tbody tr.selected td:not(:last-child) {
    border-bottom: 1px solid var(--border) !important;
  }
  .technician-table .team-person {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }
  .technician-table .team-person .team-avatar {
    width: 56px;
    height: 56px;
  }
  .technician-table td strong,
  .technician-table td span,
  .technician-table td small {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  /* Clientes e técnicos permanecem listas compactas em telas menores. */
  .client-table tbody,
  .technician-table tbody {
    display: block;
    padding: 0;
  }
  .client-table tbody tr,
  .technician-table tbody tr {
    display: grid;
    width: 100%;
    min-height: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    box-shadow: none;
  }
  .client-table tbody tr.selected,
  .technician-table tbody tr.selected {
    border-color: var(--border) !important;
    background: color-mix(in srgb, var(--primary-soft) 38%, transparent) !important;
    box-shadow: inset 3px 0 0 var(--primary) !important;
  }
  .client-table td,
  .technician-table td {
    width: auto !important;
    min-width: 0 !important;
    padding: 12px 16px !important;
    border: 0 !important;
  }

  .client-table tbody tr {
    grid-template-columns: minmax(0, 1fr);
  }
  .client-table td:not(:first-child) {
    display: none !important;
  }
  .client-table td:first-child {
    padding: 12px 16px !important;
  }
  .client-table-name {
    display: block;
  }
  .client-table-name .client-logo {
    display: none;
  }
  .client-table-name strong {
    font-size: calc(12px * var(--app-font-scale));
  }
  .client-table-name small {
    margin-top: 2px;
  }

  .technician-table tbody tr {
    grid-template-columns: minmax(0, 1fr) repeat(3, auto);
    align-items: center;
  }
  .technician-table td:nth-child(2),
  .technician-table td:nth-child(6) {
    display: none !important;
  }
  .technician-table td:first-child {
    padding: 10px 16px !important;
  }
  .technician-table td:nth-child(3),
  .technician-table td:nth-child(4),
  .technician-table td:nth-child(5) {
    padding: 10px 7px !important;
    text-align: center !important;
  }
  .technician-table td:nth-child(5) {
    padding-right: 16px !important;
  }
  .technician-table .team-person {
    display: flex;
    grid-template-columns: none;
    align-items: center;
  }
  .technician-table .team-person .team-avatar {
    width: 36px;
    height: 36px;
  }
  .technician-table .team-person span {
    display: none;
  }
  .technician-table td:nth-child(3) small,
  .technician-table td:nth-child(4) small,
  .technician-table td:nth-child(5) small {
    margin-top: 1px;
    font-size: calc(8px * var(--app-font-scale));
  }

  .report-table.compact td:nth-child(1)::before {
    content: "Atividade";
  }
  .report-table.compact td:nth-child(2)::before {
    content: "Cliente";
  }
  .report-table.compact td:nth-child(3)::before {
    content: "Status";
  }
  .report-table.compact td:nth-child(4)::before {
    content: "Prazo";
  }
  .report-table.compact td:nth-child(5)::before {
    content: "Ações";
  }

  .selectable-report-table td:nth-child(1)::before {
    content: "Selecionar";
  }
  .selectable-report-table td:nth-child(2)::before {
    content: "Atividade";
  }
  .selectable-report-table td:nth-child(3)::before {
    content: "Cliente";
  }
  .selectable-report-table td:nth-child(4)::before {
    content: "Status";
  }
  .selectable-report-table td:nth-child(5)::before {
    content: "Prazo";
  }
  .selectable-report-table td:nth-child(6)::before {
    content: "Responsável";
  }
  .selectable-report-table td:nth-child(7)::before {
    content: "Ações";
  }

  .template-table td:nth-child(1)::before {
    content: "Modelo";
  }
  .template-table td:nth-child(2)::before {
    content: "Categoria";
  }
  .template-table td:nth-child(3)::before {
    content: "Estrutura";
  }
  .template-table td:nth-child(4)::before {
    content: "Atualização";
  }
  .template-table td:nth-child(5)::before {
    content: "Ações";
  }

  .template-table tbody tr {
    border-color: color-mix(in srgb, var(--primary) 24%, var(--border));
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--primary) 4%, var(--surface)) 0,
      var(--surface) 132px
    );
    box-shadow:
      inset 4px 0 0 var(--violet),
      0 10px 24px rgba(30, 53, 87, 0.1);
  }

  .template-table td {
    grid-template-columns: minmax(102px, 118px) minmax(0, 1fr);
    border-bottom-color: color-mix(
      in srgb,
      var(--primary) 18%,
      var(--border)
    ) !important;
  }

  .template-table td::before {
    width: fit-content;
    align-self: center;
    padding: 4px 7px;
    border: 1px solid color-mix(in srgb, var(--primary) 14%, var(--border));
    border-radius: 7px;
    background: color-mix(in srgb, var(--primary) 8%, var(--surface-2));
    color: color-mix(in srgb, var(--primary) 76%, var(--text));
  }

  .template-table td:first-child {
    background: color-mix(in srgb, var(--violet) 7%, transparent);
  }

  .template-table .template-category {
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
    background: color-mix(in srgb, var(--primary) 10%, var(--surface-3));
    color: color-mix(in srgb, var(--primary) 62%, var(--text));
  }

  .team-table td:nth-child(1)::before {
    content: "Usuário";
  }
  .team-table td:nth-child(2)::before {
    content: "Acesso";
  }
  .team-table td:nth-child(3)::before {
    content: "Último login";
  }
  .team-table td:nth-child(4)::before {
    content: "Sincronização";
  }
  .team-table td:nth-child(5)::before {
    content: "Status";
  }
  .team-table td:nth-child(6)::before {
    content: "Ações";
  }

  .approvals-table td:nth-child(1)::before {
    content: "Atividade";
  }
  .approvals-table td:nth-child(2)::before {
    content: "Cliente";
  }
  .approvals-table td:nth-child(3)::before {
    content: "Enviado em";
  }
  .approvals-table td:nth-child(4)::before {
    content: "Responsável";
  }
  .approvals-table td:nth-child(5)::before {
    content: "Prazo";
  }
  .approvals-table td:nth-child(6)::before {
    content: "Decisão";
  }

  .execution-checklist-table tbody {
    gap: 10px;
  }
  .execution-checklist-table tbody tr:not(.execution-template-section-row) {
    border-radius: 13px;
  }
  .execution-template-section-row {
    display: block;
    width: 100%;
    margin: 12px 0 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .execution-template-section-row:first-child {
    margin-top: 0;
  }
  .execution-template-section-row th {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    min-width: min(220px, 100%);
    padding: 11px 16px;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
    border-radius: 11px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: calc(11px * var(--app-font-scale));
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-align: left;
  }
  .execution-checklist-table td {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 12px 14px !important;
    overflow-wrap: normal;
    word-break: normal;
  }
  .execution-checklist-table td::before {
    font-size: calc(7px * var(--app-font-scale));
    line-height: 1;
  }
  .execution-checklist-table td strong {
    font-size: calc(11px * var(--app-font-scale));
    line-height: 1.35;
    overflow-wrap: normal;
    word-break: normal;
  }
  .execution-checklist-table td:nth-child(1)::before {
    content: "Item";
  }
  .execution-checklist-table td:nth-child(2)::before {
    content: "Verificação";
  }
  .execution-checklist-table td:nth-child(3)::before {
    content: "Resposta";
  }
  .execution-checklist-table select,
  .execution-checklist-table input:not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    height: 42px;
    font-size: calc(11px * var(--app-font-scale));
  }
  .execution-photo-field,
  .execution-photo-picker {
    width: 100%;
  }
  .execution-photo-picker {
    min-height: 96px;
    padding: 14px 10px;
  }
  .execution-multiple-options {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .execution-multiple-options label {
    width: 100%;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    min-height: 34px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-2);
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .execution-multiple-options input[type="checkbox"],
  .execution-multiple-options input[type="radio"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin: 1px 0 0;
    justify-self: start;
  }
  .execution-photo-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .technical-items-table tbody {
    gap: 10px;
  }
  .technical-items-table tbody tr {
    border-color: #d9dee7;
    background: #fff;
    box-shadow: none;
  }
  .technical-items-table td {
    border-bottom-color: #eaecf0;
    color: #475467;
  }
  .technical-items-table td::before {
    color: #667085;
  }
  .technical-items-table td:nth-child(1)::before {
    content: "Item";
  }
  .technical-items-table td:nth-child(2)::before {
    content: "Verificação";
  }
  .technical-items-table td:nth-child(3)::before {
    content: "Tipo";
  }
  .technical-items-table td:nth-child(4)::before {
    content: "Resposta";
  }
  .technical-items-table td:nth-child(1)::before {
    content: "Campo";
  }
  .technical-items-table td:nth-child(2)::before {
    content: "Tipo";
  }
  .technical-items-table td:nth-child(3)::before {
    content: "Resposta";
  }
  .technical-items-table td:nth-child(4)::before {
    content: none;
  }
  .report-checklist-table td:nth-child(1)::before {
    content: none;
  }
  .report-checklist-table td:nth-child(2)::before {
    content: none;
  }
}

@media screen and (max-width: 1374px) {
  .technical-report .technical-table-wrap,
  .export-preview-content .technical-table-wrap,
  .export-report-sheet .technical-table-wrap {
    overflow-x: auto;
    border: 1px solid #cfd5df;
  }

  .technical-report .technical-items-table,
  .export-preview-content .technical-items-table,
  .export-report-sheet .technical-items-table {
    display: table;
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
  }

  .technical-report .technical-items-table thead,
  .export-preview-content .technical-items-table thead,
  .export-report-sheet .technical-items-table thead {
    display: table-header-group;
  }

  .technical-report .technical-items-table tbody,
  .export-preview-content .technical-items-table tbody,
  .export-report-sheet .technical-items-table tbody {
    display: table-row-group;
  }

  .technical-report .technical-items-table tr,
  .export-preview-content .technical-items-table tr,
  .export-report-sheet .technical-items-table tr {
    display: table-row;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .technical-report .technical-items-table th,
  .technical-report .technical-items-table td,
  .export-preview-content .technical-items-table th,
  .export-preview-content .technical-items-table td,
  .export-report-sheet .technical-items-table th,
  .export-report-sheet .technical-items-table td {
    display: table-cell;
    width: auto !important;
    min-width: 0 !important;
    padding: 12px 14px !important;
    border-top: 1px solid #d9dee7;
    border-right: 1px solid #eaecf0;
    text-align: left !important;
    vertical-align: top;
  }

  .technical-report .technical-items-table td::before,
  .export-preview-content .technical-items-table td::before,
  .export-report-sheet .technical-items-table td::before {
    content: none !important;
  }
}

@media screen and (max-width: 1374px) {
  .execution-checklist-table td:nth-child(1)::before {
    content: "Verificacao";
  }
  .execution-checklist-table td:nth-child(2)::before {
    content: "Resposta";
  }
  .execution-checklist-table td:nth-child(n + 3)::before {
    content: none;
  }
}

@media print {
  .report-doc-status {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    border-top: 3px solid #182230 !important;
    border-bottom: 1px solid #d9dee7 !important;
  }
  .report-doc-status > div {
    display: flex !important;
    min-height: 58px !important;
    padding: 11px 14px !important;
    border-right: 1px solid #d9dee7 !important;
    border-bottom: 0 !important;
  }
  .report-doc-status > div:last-child {
    border-right: 0 !important;
  }
  .report-doc-status span {
    display: block !important;
    margin-bottom: 6px !important;
    font-size: 7px !important;
    line-height: 1.25 !important;
    letter-spacing: 0.35px !important;
  }
  .report-doc-status strong {
    display: block !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
  }
  .consolidated-sector-table th:first-child,
  .consolidated-sector-table td:first-child {
    width: 38% !important;
    text-align: left !important;
  }
  .consolidated-sector-table th:not(:first-child),
  .consolidated-sector-table td:not(:first-child) {
    width: 15.5% !important;
    text-align: center !important;
  }
  .consolidated-sector-table th,
  .consolidated-sector-table td {
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
  .report-doc-footer {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 12mm !important;
    padding: 9px 18px !important;
    border-top: 3px solid #0f1724 !important;
    background-color: #111827 !important;
    background-image: linear-gradient(#111827, #111827) !important;
    color: #fff !important;
    font-size: 9pt !important;
    font-weight: 700 !important;
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }
  .report-doc-footer span:nth-child(2) {
    text-align: center !important;
  }
  .report-doc-footer span:nth-child(3) {
    text-align: right !important;
  }
  .technical-report,
  .export-preview-content,
  .export-report-sheet,
  .technical-table-wrap {
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
  }
  .technical-items-table,
  .report-materials-table,
  .consolidated-sector-table,
  .execution-checklist-table {
    display: table !important;
    width: 100% !important;
    min-width: 0 !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
  }
  .technical-items-table thead,
  .execution-checklist-table thead {
    display: table-header-group !important;
  }
  .technical-items-table tbody,
  .execution-checklist-table tbody {
    display: table-row-group !important;
  }
  .technical-items-table tr,
  .execution-checklist-table tr {
    display: table-row !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  .technical-items-table th,
  .technical-items-table td,
  .execution-checklist-table th,
  .execution-checklist-table td {
    display: table-cell !important;
    padding: 6px 5px !important;
    border-top: 1px solid #d9dee7 !important;
    border-right: 1px solid #eaecf0 !important;
    font-size: 7px !important;
    line-height: 1.25 !important;
    vertical-align: top !important;
    overflow-wrap: anywhere !important;
  }
  .technical-items-table .result-chip {
    max-width: 100% !important;
    align-items: flex-start !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }
  .technical-items-table .result-chip i {
    flex: 0 0 auto !important;
    margin-top: 0.18em !important;
  }
  .technical-items-table td::before,
  .execution-checklist-table td::before {
    content: none !important;
  }
  .report-photo-table th,
  .report-photo-table td {
    width: auto !important;
  }
  .report-photo-table-labels th,
  .report-photo-table-values td {
    width: 50% !important;
  }
  .report-photo-table-response {
    padding: 8px !important;
  }
  .report-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }
  .report-photo-grid img {
    height: 96px !important;
  }
  .report-photo-grid figure {
    break-inside: avoid !important;
  }
  .report-info-grid,
  .report-info-grid-four {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .report-closing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .consolidated-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .report-doc-footer,
  .report-doc-footer * {
    color: #fff !important;
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }
  .report-doc-footer {
    background: #111827 !important;
    box-shadow: inset 0 0 0 9999px #111827 !important;
  }
}

@media print {
  @page {
    margin: 9mm;
  }

  body::after {
    content: none !important;
    display: none !important;
  }

  .technical-report,
  .export-report-sheet {
    padding-bottom: 0 !important;
  }

  .report-doc-section:last-of-type,
  .export-report-sheet > section:last-of-type {
    margin-bottom: 0 !important;
  }

  .report-doc-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    padding: 0 0 16px !important;
    border-bottom: 3px solid #182230 !important;
  }

  .report-doc-brand {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
  }

  .report-logo {
    width: 150px !important;
    max-height: 72px !important;
    object-fit: contain !important;
    object-position: left center !important;
  }

  .report-doc-title {
    flex: 1 1 auto !important;
    max-width: 62% !important;
    align-items: flex-end !important;
    text-align: right !important;
  }

  .report-doc-title > span,
  .report-doc-title > strong,
  .report-doc-title > small {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  .technical-report,
  .export-report-sheet,
  .report-doc-section,
  .report-doc-section h2,
  .report-doc-status span,
  .report-doc-status strong,
  .report-info-grid span,
  .report-info-grid strong,
  .report-info-grid small,
  .consolidated-equipment-card span,
  .consolidated-equipment-card strong,
  .technical-items-table th,
  .technical-items-table td,
  .technical-items-table .result-chip,
  .report-photo-grid figcaption,
  .report-empty-copy,
  .report-note,
  .report-note p,
  .signature-block strong,
  .signature-block span {
    font-size: 9pt !important;
  }

  .technical-items-table th,
  .technical-items-table td {
    line-height: 1.28 !important;
  }

  .technical-items-table th,
  .report-info-grid span,
  .consolidated-kpi-grid span,
  .report-doc-status span {
    font-weight: 800 !important;
  }

  .report-info-grid strong,
  .report-info-grid small {
    font-weight: 400 !important;
  }

  .technical-items-table td {
    font-weight: 400 !important;
  }

  .technical-items-table td:first-child,
  .technical-items-table td:nth-child(2) {
    font-weight: 400 !important;
  }

  .technical-items-table td strong {
    font-weight: 400 !important;
  }

  .consolidated-sector-table th {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    font-size: 8pt !important;
  }

  .technical-table-wrap,
  .technical-items-table,
  .report-info-grid,
  .report-info-grid-five,
  .consolidated-kpi-grid,
  .report-doc-status {
    border: 1px solid #cfd5df !important;
  }

  .technical-table-wrap {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .technical-items-table {
    border-collapse: collapse !important;
  }

  .technical-items-table th,
  .technical-items-table td {
    border: 1px solid #d7dde6 !important;
  }

  .report-checklist-table th:nth-child(1),
  .report-checklist-table td:nth-child(1) {
    width: 34% !important;
  }

  .report-checklist-table th:nth-child(2),
  .report-checklist-table td:nth-child(2) {
    width: auto !important;
  }

  .report-checklist-table th:nth-child(2) {
    color: #101828 !important;
    font-weight: 650 !important;
  }

  .report-checklist-table td:nth-child(1) {
    color: #101828 !important;
    font-weight: 650 !important;
  }

  .report-checklist-table td:nth-child(2) {
    color: #475467 !important;
    font-weight: 400 !important;
  }

  .report-checklist-table td:nth-child(2) *,
  .report-checklist-table td:nth-child(2) .result-chip,
  .report-checklist-table td:nth-child(2) .result-chip i {
    color: #475467 !important;
  }

  .report-info-grid span,
  .report-info-grid strong,
  .report-info-grid small,
  .technical-items-table th,
  .technical-items-table td,
  .report-checklist-table th,
  .report-checklist-table td {
    font-size: 9pt !important;
  }

  .report-photo-field-row > td {
    padding: 0 !important;
  }

  .report-photo-block-header {
    padding: 9px 10px !important;
    border-bottom: 1px solid #d7dde6 !important;
  }

  .report-photo-block-response {
    padding: 10px !important;
  }

  .report-photo-block-header span,
  .report-photo-block-response > span {
    margin-bottom: 5px !important;
    font-size: 8pt !important;
    font-weight: 800 !important;
  }

  .report-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  .report-photo-grid img {
    height: 155px !important;
  }

  .report-info-grid > div,
  .report-info-grid-four > div,
  .report-info-grid-five > div,
  .consolidated-kpi-grid > div,
  .report-doc-status > div {
    border: 1px solid #d7dde6 !important;
  }

  .report-info-grid-five {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  .consolidated-equipment-list {
    display: grid !important;
    gap: 8px !important;
  }

  .consolidated-equipment-card {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    border: 1px solid #cfd5df !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .consolidated-equipment-card > div {
    min-width: 0 !important;
    padding: 8px 9px !important;
    border-right: 1px solid #d7dde6 !important;
    border-bottom: 1px solid #d7dde6 !important;
  }

  .consolidated-equipment-card > div:nth-child(4n) {
    border-right: 0 !important;
  }

  .consolidated-equipment-card > div:nth-last-child(-n + 4) {
    border-bottom: 0 !important;
  }

  .consolidated-equipment-card span:not(.consolidated-status) {
    display: block !important;
    margin-bottom: 4px !important;
    color: #667085 !important;
    font-size: 8pt !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
  }

  .consolidated-equipment-card strong {
    display: block !important;
    color: #182230 !important;
    font-size: 9pt !important;
    font-weight: 400 !important;
    line-height: 1.28 !important;
    overflow-wrap: anywhere !important;
  }

  @page {
    size: A4 portrait;
    margin: 9mm 9mm 13mm;
  }

  body::after {
    content: "B.lotti Movimenta\00e7\00e3o de Cargas Ltda - CNPJ: 08.175.349/0001-76 IE: 255221940" !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 10mm !important;
    padding: 0 10mm !important;
    background: #111827 !important;
    color: #fff !important;
    font-size: 9pt !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
    pointer-events: none !important;
  }

  .report-doc-footer {
    display: none !important;
  }
}
