:root {
  --bg: #eef3f1;
  --ink: #1d2826;
  --muted: #60706b;
  --line: #d6e1dd;
  --panel: #ffffff;
  --brand: #146c5d;
  --brand-dark: #0e4e45;
  --navy: #061830;
  --navy-soft: #0b2b4c;
  --accent: #d78334;
  --danger: #b33939;
  --warning: #b56b12;
  --ok: #23824f;
  --shadow: 0 14px 34px rgba(20, 40, 35, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

button,
.button {
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  gap: 8px;
  box-shadow: 0 3px 8px rgba(20, 108, 93, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

button:hover,
.button:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 7px 16px rgba(14, 78, 69, 0.24);
}

button:active,
.button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 5px rgba(14, 78, 69, 0.2);
}

button:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(215, 131, 52, 0.38);
  outline-offset: 2px;
}

button.secondary,
.button.secondary {
  background: #e7ece5;
  color: var(--ink);
  border: 1px solid var(--line);
}

button.secondary:hover,
.button.secondary:hover {
  background: #dce5dc;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 32px;
  background:
    linear-gradient(135deg, rgba(6, 24, 48, 0.98), rgba(9, 38, 68, 0.94)),
    var(--navy);
  border-bottom: 4px solid #0f5132;
  color: #ffffff;
}

.brand-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-heading img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
  padding: 5px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.eyebrow {
  margin: 0 0 6px;
  color: #7bc59a;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 12px;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 500;
}

h2 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
}

.top-actions,
.quick-actions,
.form-actions,
.panel-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.messages-actions {
  flex-wrap: wrap;
  gap: 8px;
}

.service-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.service-search-form input {
  width: min(300px, 100%);
}

.service-search-form select {
  width: auto;
  min-width: 150px;
}

.service-list-heading {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.service-filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px auto auto;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  background: #f6f9f7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dashboard-filter-bar {
  grid-template-columns: minmax(240px, 1fr) auto auto;
}

.dashboard-filter-bar.with-user-filter {
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto auto;
}

.users-filter-bar {
  grid-template-columns: minmax(260px, 1fr) auto auto;
}

.service-filter-bar input,
.service-filter-bar select {
  width: 100%;
}

.messages-actions button {
  min-height: 34px;
  padding: 0 10px;
  gap: 6px;
  font-size: 13px;
  box-shadow: 0 2px 5px rgba(20, 108, 93, 0.15);
}

.messages-actions button svg {
  width: 15px;
  height: 15px;
}

.parameter-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.parameter-form input[type="number"] {
  width: 120px;
  min-width: 100px;
}

.select-with-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: stretch;
}

.select-with-action:not(:has(.field-add-button)) {
  grid-template-columns: minmax(0, 1fr);
}

.field-add-button {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 6px;
  background: var(--brand);
  color: #ffffff;
  font-size: 25px;
  font-weight: 400;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(20, 108, 93, .18);
}

.field-add-button:hover { background: var(--brand-dark); }

.form-search-dropdown {
  position: relative;
  display: block;
  width: 100%;
}

.form-search-dropdown > input {
  width: 100%;
  padding-right: 44px;
}

.form-search-toggle {
  position: absolute;
  z-index: 2;
  top: 1px;
  right: 1px;
  width: 40px;
  min-height: 40px;
  padding: 0;
  color: var(--navy-soft);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.form-search-toggle:hover {
  color: var(--brand);
  background: #eef5f1;
  box-shadow: none;
}

.form-search-toggle svg {
  width: 17px;
  height: 17px;
}

.form-search-suggestions {
  position: absolute;
  z-index: 60;
  top: calc(100% + 4px);
  left: 0;
  display: block;
  width: 100%;
  max-height: 240px;
  overflow-y: auto;
  padding: 4px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 10px 24px rgba(11, 43, 76, 0.2);
}

.form-search-suggestions[hidden] {
  display: none;
}

.form-search-suggestions .form-search-option {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--ink);
  background: #ffffff;
  border: 0;
  border-radius: 5px;
  box-shadow: none;
  text-align: left;
  font-size: 13px;
}

.form-search-suggestions .form-search-option:hover,
.form-search-suggestions .form-search-option:focus {
  color: var(--navy-soft);
  background: #eef5f1;
  box-shadow: none;
}

.top-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  position: relative;
}

.user-menu {
  position: relative;
}

.user-menu summary {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
}

.user-menu-identity {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 52px;
}

.user-menu-icons {
  display: flex;
  align-items: center;
  gap: 3px;
}

.user-menu-identity small {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #d9e6ef;
  font-size: 11px;
  white-space: nowrap;
}

.user-menu summary::-webkit-details-marker {
  display: none;
}

.user-menu summary:hover,
.user-menu[open] summary {
  background: rgba(255, 255, 255, 0.18);
}

.user-avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #0f5132;
  border-radius: 50%;
}

.user-avatar svg,
.user-menu-action svg,
.menu-chevron {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.user-summary {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.user-summary strong {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
}

.user-summary small {
  color: #d9e6ef;
  font-size: 11px;
  font-weight: 500;
}

.menu-chevron {
  color: #d9e6ef;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  width: min(360px, calc(100vw - 40px));
  padding: 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.user-dropdown-header {
  display: grid;
  gap: 3px;
  padding: 4px 4px 12px;
  border-bottom: 1px solid var(--line);
}

.user-dropdown-header strong {
  color: var(--navy-soft);
  font-weight: 500;
}

.user-dropdown-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.user-context-card {
  display: grid;
  gap: 5px;
  margin: 12px 0;
  padding: 12px;
  background: #eef5f1;
  border: 1px solid #cfe1d8;
  border-radius: 8px;
}

.user-context-card span,
.user-context-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.user-context-card strong {
  color: var(--ink);
}

.user-menu-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  color: #ffffff;
  background: var(--navy-soft);
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
}

.user-menu-action:hover {
  background: #0f5132;
}

.topbar .button.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
}

.topbar .button.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.app-shell {
  padding: 24px 32px 36px;
  min-width: 0;
}

.app-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: calc(100vh - 112px);
  transition: grid-template-columns 180ms ease;
}

.app-layout.no-sidebar {
  grid-template-columns: minmax(0, 1fr);
}

.sidebar {
  min-width: 0;
  padding: 18px 12px;
  background: #ffffff;
  border-right: 1px solid var(--line);
  box-shadow: 8px 0 24px rgba(20, 40, 35, 0.05);
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  overflow-y: auto;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 6px 12px 12px;
  color: var(--navy-soft);
}

.sidebar-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sidebar-toggle {
  width: 36px;
  min-height: 36px;
  padding: 0;
  background: #eef3f1;
  color: var(--navy-soft);
  box-shadow: none;
}

.sidebar-toggle:hover {
  background: #dfeae6;
  box-shadow: none;
}

.sidebar-toggle svg {
  transform: rotate(90deg);
  transition: transform 180ms ease;
}

.sidebar-toggle .toggle-menu-icon {
  display: none;
}

.tabs {
  display: grid;
  gap: 5px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.tab {
  background: transparent;
  color: #44564f;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 6px;
  min-height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.tab svg {
  flex: 0 0 20px;
}

.utility-menu summary {
  list-style: none;
  cursor: pointer;
}

.utility-menu summary::-webkit-details-marker { display: none; }

.utility-menu .utility-chevron {
  width: 16px;
  height: 16px;
  margin-left: auto;
  transition: transform 160ms ease;
}

.utility-menu[open] .utility-chevron { transform: rotate(180deg); }

.utility-submenu {
  display: grid;
  gap: 3px;
  margin: 3px 0 4px 28px;
  padding-left: 10px;
  border-left: 2px solid #dbe7e2;
}

.subtab {
  min-height: 34px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  border-radius: 5px;
  color: #53655e;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.subtab:hover { background: #eef5f1; color: var(--brand-dark); }
.subtab.active { background: var(--navy-soft); color: #ffffff; }

.app-layout.sidebar-collapsed {
  grid-template-columns: 72px minmax(0, 1fr);
}

.sidebar-collapsed .sidebar-title,
.sidebar-collapsed .tab span {
  display: none;
}

.sidebar-collapsed .utility-submenu,
.sidebar-collapsed .utility-chevron { display: none; }

.sidebar-collapsed .sidebar-header {
  justify-content: center;
  padding-left: 6px;
}

.sidebar-collapsed .sidebar-toggle svg {
  transform: rotate(-90deg);
}

.sidebar-collapsed .tab {
  justify-content: center;
  padding: 0;
}

.tab:hover {
  background: #eef5f1;
  color: var(--brand-dark);
}

.tab.active {
  background: var(--navy-soft);
  color: #fff;
  border-color: var(--navy-soft);
}

.tab svg,
.button svg,
button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.flash-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.flash {
  padding: 12px 14px;
  background: #dff4e9;
  border: 1px solid #b9e4cd;
  color: var(--ok);
  border-radius: 8px;
  font-weight: 500;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  padding: 18px;
  border-top: 4px solid #0f5132;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 30px;
  font-weight: 500;
  color: var(--navy-soft);
}

.dashboard-grid,
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.dashboard-grid.single-panel {
  grid-template-columns: 1fr;
}

.workspace-grid {
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.25fr);
}

.workspace-grid.list-only,
.companies-grid.list-only {
  grid-template-columns: minmax(0, 1fr);
}

.services-workspace {
  display: grid;
  gap: 18px;
}

.service-form {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.section-hint {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin: 0 0 16px;
}

.form-section legend {
  padding: 0 8px;
  color: var(--navy-soft);
  font-weight: 600;
}

.person-grid {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(260px, 1.1fr);
  gap: 12px;
}

.person-grid input[readonly] {
  background: #f5f7f8;
}

.readonly-service input[readonly],
.readonly-service textarea[readonly] {
  background: #f5f7f8;
  color: var(--ink);
  cursor: default;
}

.current-history {
  border-left: 4px solid var(--brand);
  background: #f5f8f7;
  padding: 10px 12px;
  margin-bottom: 13px;
}

.history-heading-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.history-heading-actions .button {
  min-height: 34px;
  font-size: 12px;
}

.current-history p {
  margin: 5px 0 0;
  white-space: pre-wrap;
}

.cell-detail {
  display: block;
  max-width: 360px;
  margin-top: 4px;
  color: var(--muted);
}

.service-title-block {
  min-width: 0;
}

.service-type-label {
  display: block;
  margin-bottom: 4px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.service-reduced-description {
  display: block;
}

.history-cell {
  max-width: 260px;
  white-space: pre-wrap;
}

.services-list-panel .table-wrap {
  overflow-x: hidden;
}

.services-list-panel table {
  min-width: 0;
  table-layout: fixed;
}

.services-list-panel th:nth-child(1) { width: 6%; }
.services-list-panel th:nth-child(2) { width: 22%; }
.services-list-panel th:nth-child(3),
.services-list-panel th:nth-child(4) { width: 10%; }
.services-list-panel th:nth-child(5) { width: 9%; }
.services-list-panel th:nth-child(6) { width: 7%; }
.services-list-panel th:nth-child(7) { width: 10%; }
.services-list-panel th:nth-child(8) { width: 26%; }

.services-list-panel td {
  overflow-wrap: anywhere;
}

.service-data-row td {
  border-bottom: 0;
}

td.actions.service-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  white-space: normal;
}

td.actions.service-actions-grid .button,
td.actions.service-actions-grid button,
td.actions.service-actions-grid .inline-form {
  width: 100%;
  min-width: 0;
  margin: 0;
}

td.actions.service-actions-grid .button,
td.actions.service-actions-grid button {
  justify-content: center;
  padding: 0 6px;
  font-size: 11px;
}

td.actions.service-actions-grid .inline-form {
  display: block;
}

.service-progress-row td {
  padding-top: 0;
  padding-bottom: 14px;
}

.service-list-progress {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.service-list-progress-label {
  color: var(--muted);
  font-size: 11px;
}

.service-list-progress .progress {
  margin-top: 0;
}

.panel {
  padding: 18px;
}

.panel-heading {
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.panel-heading h2 {
  margin-bottom: 0;
}

.panel-heading.stacked {
  align-items: stretch;
  flex-direction: column;
}

.user-search-dropdown {
  position: relative;
  width: 100%;
}

.user-search-dropdown > input {
  width: 100%;
}

.user-search-suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  max-height: 230px;
  overflow-y: auto;
  padding: 4px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 10px 24px rgba(11, 43, 76, 0.18);
}

.user-search-suggestions[hidden] {
  display: none;
}

.user-search-suggestions .user-search-option {
  display: block;
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  color: var(--ink);
  background: #ffffff;
  border: 0;
  border-radius: 5px;
  box-shadow: none;
  text-align: left;
  font-size: 13px;
}

.user-search-suggestions .user-search-option:hover,
.user-search-suggestions .user-search-option:focus {
  color: var(--navy-soft);
  background: #eef5f1;
  box-shadow: none;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 13px;
}

.password-visibility {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-top: -5px;
  cursor: pointer;
}

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

.form-note {
  margin: 12px 0 0;
  color: var(--warning);
  font-size: 13px;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 40px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
}

button:disabled,
.button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

textarea {
  resize: vertical;
}

input[type="range"] {
  padding: 0;
}

.icon-sprite {
  display: none;
}

output {
  color: var(--ink);
  font-weight: 500;
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.three-cols {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.5fr;
  gap: 12px;
}

.companies-grid {
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.4fr);
}

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

.service-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfa;
}

.service-card header,
.service-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
}

.service-meta {
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  background: #e9eee6;
}

.badge.pending {
  color: var(--warning);
  background: #fff0d8;
}

.badge.running {
  color: #195f89;
  background: #e2f1fa;
}

.badge.done {
  color: var(--ok);
  background: #dff4e9;
}

.progress {
  height: 10px;
  background: #fff;
  border: 1px solid #d9e3de;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 12px;
}

.progress span {
  display: block;
  height: 100%;
  background-color: hsl(0deg 82% var(--progress-lightness, 94%));
  transition: width .25s ease, background-color .25s ease;
}

.alerts {
  display: grid;
  gap: 10px;
}

.alert-card {
  border-radius: 8px;
  border: 1px solid #ffc861;
  padding: 14px;
  background: #fff6df;
  animation: blink 1.3s infinite;
}

.service-card.new-service {
  border-color: #d78334;
  background: #fff8d9;
  animation: blink 1s ease-in-out 4;
}

.service-data-row.new-service td,
.service-progress-row.new-service td {
  background: #fff8d9;
  animation: new-service-background 1s ease-in-out 4;
}

@keyframes new-service-background {
  50% { background: #ffefad; }
}

.description-inline-control {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.services-list-panel .description-inline-control {
  display: flex;
  margin-top: 12px;
}

.description-view-link {
  min-height: auto;
  padding: 0;
  color: var(--navy-soft);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.description-view-link:hover {
  color: var(--brand);
  background: transparent;
  box-shadow: none;
}

.description-view-link svg {
  width: 16px;
  height: 16px;
}

.inline-service-description {
  margin-top: 10px;
  padding: 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 7px;
}

.inline-service-description[hidden] {
  display: none;
}

.inline-service-description strong {
  color: var(--navy-soft);
  font-size: 12px;
}

.inline-service-description p {
  margin: 6px 0 0;
  white-space: pre-wrap;
  line-height: 1.5;
}

.service-description-row[hidden] {
  display: none;
}

.service-description-row td {
  padding: 0 9px 12px;
  border-bottom: 0;
}

.service-description-row .inline-service-description {
  width: 100%;
  margin-top: 0;
}

.mobile-service-description {
  display: none;
}

.context-panel {
  max-width: 860px;
}

.context-options {
  display: grid;
  gap: 12px;
}

.context-option {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--ink);
  cursor: pointer;
}

.context-option:has(input:checked) {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(20, 108, 93, 0.12);
}

.context-option input {
  width: auto;
  min-height: auto;
  margin-top: 4px;
}

.context-option span {
  display: grid;
  gap: 4px;
}

.context-option strong {
  color: var(--navy-soft);
  font-size: 15px;
  font-weight: 500;
}

.context-option em {
  font-style: normal;
  color: var(--ink);
}

.context-option small {
  color: var(--muted);
}

@keyframes blink {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(215, 131, 52, 0);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(215, 131, 52, 0.23);
  }
}

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

.table-wrap table {
  font-size: 12.5px;
}

.table-wrap table th {
  font-size: 11.5px;
}

.table-wrap table td,
.table-wrap table th {
  padding-left: 9px;
  padding-right: 9px;
}

.table-wrap table .button,
.table-wrap table button {
  min-height: 32px;
  padding: 0 9px;
  gap: 5px;
  font-size: 12px;
}

.table-wrap table .button svg,
.table-wrap table button svg {
  width: 15px;
  height: 15px;
}

.table-wrap table button.description-view-link {
  width: auto;
  min-height: auto;
  padding: 0;
  color: var(--navy-soft);
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 11px;
}

.table-wrap table button.description-view-link:hover {
  color: var(--brand);
  background: transparent;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
}

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

td.actions {
  white-space: nowrap;
}

td.actions button {
  min-height: 32px;
  padding: 0 10px;
  margin-right: 6px;
}

.inline-form {
  display: inline;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  border-left: 4px solid var(--brand);
  padding: 12px 12px 12px 14px;
  background: #fbfcfa;
  border-radius: 0 8px 8px 0;
}

.timeline-item small {
  color: var(--muted);
}

.empty {
  color: var(--muted);
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  padding: 12px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.2s ease;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 32px));
}

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

.login-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(6, 24, 48, 0.96), rgba(9, 38, 68, 0.92)),
    #061830;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.login-shell {
  flex: 1;
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(380px, 0.95fr) minmax(460px, 560px);
  gap: 34px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0;
}

.login-brand {
  border-left: 5px solid #0f5132;
  padding-left: 28px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-brand img {
  width: min(240px, 100%);
  height: auto;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 22px;
}

.login-brand h1 {
  max-width: 520px;
  color: #ffffff;
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.login-brand p {
  max-width: 440px;
  color: #d9e6ef;
  font-size: 15px;
  line-height: 1.5;
}

.login-kicker {
  margin-bottom: 10px;
  color: #7bc59a !important;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-card {
  background: #ffffff;
  color: var(--ink);
  border-top: 5px solid #0f5132;
  border-radius: 8px;
  width: 100%;
  max-width: 560px;
  justify-self: center;
  padding: 26px 40px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.26);
}

.login-card h2 {
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 20px;
}

.login-card .login-company-title {
  position: relative;
  margin: -4px 0 24px;
  padding: 13px 18px;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, #0b2b4c 0%, #0f5132 100%);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(11, 43, 76, .2);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .55px;
}

.login-card .login-company-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 42px;
  height: 3px;
  border-radius: 3px;
  background: #7bc59a;
  transform: translateX(-50%);
}

.login-card label {
  font-size: 15px;
  font-weight: 500;
  gap: 8px;
  margin-bottom: 16px;
}

.login-card button {
  width: 100%;
  background: #0b2b4c;
}

.login-card button:hover {
  background: #0f5132;
}

.login-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.login-card .login-actions button {
  width: 132px;
  min-height: 38px;
  padding: 0 14px;
}

.login-card .login-actions button[type="submit"]:hover {
  background: #0f5132;
}

.login-card .login-actions .login-exit {
  background: #0f5132;
  color: #ffffff;
  border: 1px solid #0f5132;
  box-shadow: 0 3px 8px rgba(15, 81, 50, 0.22);
}

.login-card .login-actions .login-exit:hover {
  background: #0b2b4c;
  border-color: #0b2b4c;
}

.login-card .field-control {
  position: relative;
  display: block;
}

.login-card .field-control svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  color: #60706b;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.login-card .field-control input {
  min-height: 50px;
  padding: 11px 13px 11px 46px;
  font-size: 16px;
}

.login-card .field-control:focus-within svg {
  color: #0f5132;
}

.login-card .field-control:focus-within input {
  border-color: #0f5132;
  box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.12);
  outline: none;
}

.login-card .login-password-visibility {
  height: 32px;
  margin: 0;
  color: #52636f;
  font-size: 13px;
}

.password-options {
  min-height: 32px;
  margin: -6px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.password-change-link {
  height: 32px;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  color: #52636f;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.password-change-link:hover {
  color: #0f5132;
  text-decoration: underline;
}

.login-link:hover {
  text-decoration: underline;
}

.password-help {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #d78334;
  background: #fff6eb;
  color: #6f512f;
  font-size: 13px;
  line-height: 1.4;
}

.login-link {
  display: inline-flex;
  margin-top: 16px;
  color: #0f5132;
  font-weight: 800;
  text-decoration: none;
}

.login-footer {
  padding: 0 20px 22px;
  color: #d9e6ef;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.developer-panel {
  width: fit-content;
  max-width: calc(100vw - 40px);
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  backdrop-filter: blur(8px);
}

.developer-copy {
  display: grid;
  justify-items: center;
  line-height: 1.25;
}

.developer-copy strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .35px;
}

.developer-copy a {
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8ee0b0;
  font-size: 13px;
  text-decoration: none;
}

.developer-copy a svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

@media (max-width: 920px) {

  .service-search-form {
    align-items: stretch;
    flex-direction: column;
  }

  .service-filter-bar {
    grid-template-columns: 1fr;
  }

  .dashboard-filter-bar.with-user-filter {
    grid-template-columns: 1fr;
  }

  .service-search-form input,
  .service-search-form select,
  .service-search-form button,
  .service-search-form .button {
    width: 100%;
  }
  .topbar,
  .dashboard-grid,
  .workspace-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
    padding: 20px;
  }

  .brand-heading {
    align-items: flex-start;
  }

  .brand-heading img {
    width: 58px;
    height: 58px;
  }

  .app-shell {
    padding: 18px 20px 28px;
  }

  .app-layout,
  .app-layout.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    max-height: none;
    padding: 8px 14px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }

  .sidebar-header {
    justify-content: flex-end;
    min-height: 38px;
    padding: 0;
  }

  .sidebar-title {
    margin-right: auto;
  }

  .tabs {
    display: flex;
    overflow-x: auto;
    padding-top: 6px;
  }

  .sidebar-collapsed .tabs {
    display: none;
  }

  .sidebar-collapsed .sidebar-title {
    display: inline;
    margin-right: auto;
  }

  .sidebar-collapsed .sidebar-header {
    justify-content: flex-end;
  }

  .sidebar-collapsed .tab span {
    display: inline;
  }

  .sidebar-collapsed .tab {
    justify-content: flex-start;
    padding: 0 12px;
  }

  .two-cols {
    grid-template-columns: 1fr;
  }

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

  .three-cols,
  .companies-grid {
    grid-template-columns: 1fr;
  }

  .login-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
  }

  .login-brand {
    padding-left: 18px;
    min-height: auto;
  }

  .login-card {
    min-height: auto;
  }

  .login-actions {
    gap: 8px;
  }

  .login-card .login-actions button {
    width: 50%;
  }
}

@media (max-width: 600px) {
  body {
    overflow-x: hidden;
  }

  .topbar {
    position: relative;
    z-index: 200;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    gap: 8px;
    overflow: visible;
  }

  .brand-heading {
    flex: 1 1 auto;
    align-items: center;
    gap: 9px;
    min-width: 0;
  }

  .brand-heading img {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 3px;
  }

  .brand-heading > div {
    min-width: 0;
  }

  .brand-heading .eyebrow {
    margin-bottom: 2px;
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-heading h1 {
    overflow: hidden;
    font-size: 17px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .top-actions {
    position: relative;
    z-index: 210;
    flex: 0 0 auto;
  }

  .user-menu,
  .user-menu[open] {
    position: relative;
    z-index: 220;
  }

  .user-menu summary {
    min-height: 50px;
    padding: 3px 6px;
  }

  .user-avatar {
    width: 28px;
    height: 28px;
  }

  .user-menu-identity {
    min-width: 44px;
  }

  .user-menu-identity small {
    max-width: 70px;
    font-size: 9px;
  }

  .user-dropdown {
    position: fixed;
    z-index: 230;
    top: 70px;
    right: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
  }

  .app-shell {
    width: 100%;
    padding: 58px 10px 24px;
    overflow: hidden;
  }

  .app-layout,
  .app-layout.sidebar-collapsed {
    position: relative;
    display: block;
    min-height: calc(100vh - 70px);
  }

  .sidebar {
    position: absolute;
    z-index: 45;
    top: 0;
    left: 0;
    width: 100%;
    max-height: none;
    padding: 7px 10px 9px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 28px rgba(11, 43, 76, 0.18);
  }

  .sidebar-collapsed .sidebar {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
  }

  .sidebar-header {
    justify-content: flex-start;
    min-height: 40px;
  }

  .sidebar-collapsed .sidebar-header {
    justify-content: flex-start;
  }

  .sidebar-title {
    display: none !important;
  }

  .sidebar-toggle {
    width: 42px;
    min-height: 40px;
  }

  .sidebar-toggle .toggle-chevron-icon {
    display: none;
  }

  .sidebar-toggle .toggle-menu-icon {
    display: block;
    transform: none;
  }

  .sidebar-collapsed .sidebar-toggle svg,
  .sidebar-toggle svg {
    transform: none;
  }

  .tabs {
    display: grid;
    max-height: 65vh;
    margin-top: 5px;
    padding: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 9px;
  }

  .utility-submenu {
    margin-left: 20px;
  }

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

  .metric {
    padding: 12px;
  }

  .metric strong {
    font-size: 24px;
  }

  .panel,
  .form-section,
  .service-card {
    min-width: 0;
  }

  .panel {
    padding: 12px;
  }

  .form-section {
    padding: 10px;
  }

  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-heading > .button,
  .panel-heading > button,
  .quick-actions,
  .quick-actions form,
  .quick-actions .button {
    width: 100%;
  }

  .quick-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .form-actions > button,
  .form-actions > .button {
    flex: 1 1 130px;
  }

  .service-card header,
  .service-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .dashboard-description-block {
    order: 1;
    width: 100%;
    margin-top: 5px;
    padding-top: 10px;
    border-top: 1px solid #edf1ef;
  }

  .dashboard-description-block .description-inline-control {
    display: flex;
    width: 100%;
  }

  .dashboard-description-block .mobile-service-description:not([hidden]) {
    display: block;
    width: 100%;
    margin-top: 10px;
  }

  .service-meta > span:not(.description-inline-control),
  .service-meta > strong {
    order: 2;
  }

  .service-meta strong {
    align-self: flex-end;
  }

  .service-card-actions .button {
    width: 100%;
    margin-top: 10px;
  }

  .service-card-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .service-card-actions .button,
  .service-card-actions button {
    width: 100%;
    min-width: 0;
    margin: 0;
    justify-content: center;
  }

  .table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 620px;
  }

  .users-table {
    min-width: 900px;
  }

  .services-list-panel .table-wrap {
    overflow-x: visible;
  }

  .services-list-panel table,
  .services-list-panel tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .services-list-panel thead {
    display: none;
  }

  .service-table-group {
    margin-bottom: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 9px;
  }

  .services-list-panel .service-data-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .services-list-panel .service-data-row > td {
    min-width: 0;
    padding: 9px;
    border-bottom: 1px solid #edf1ef;
  }

  .services-list-panel .service-data-row > td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
  }

  .services-list-panel .service-data-row > .service-main-cell,
  .services-list-panel .service-data-row > .service-actions-grid {
    grid-column: 1 / -1;
  }

  .services-list-panel .service-data-row > td {
    grid-column: 1 / -1;
  }

  .services-list-panel .service-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .services-list-panel .service-actions-grid::before {
    grid-column: 1 / -1;
  }

  .services-list-panel .service-description-row,
  .services-list-panel .service-progress-row {
    display: block;
  }

  .services-list-panel .service-description-row {
    display: none !important;
  }

  .services-list-panel .service-description-row[hidden] {
    display: none;
  }

  .services-list-panel .service-description-row td,
  .services-list-panel .service-progress-row td {
    display: block;
    width: 100%;
    padding: 10px;
  }

  .service-list-progress {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .services-list-panel .description-inline-control {
    margin-top: 14px;
  }

  .services-list-panel .mobile-service-description:not([hidden]) {
    display: block;
    width: 100%;
    margin-top: 10px;
  }

  .service-types-table-wrap {
    overflow-x: visible;
  }

  .service-types-table,
  .service-types-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .service-types-table thead {
    display: none;
  }

  .service-types-table tbody {
    display: grid;
    gap: 12px;
  }

  .service-types-table .service-type-card-row {
    display: block;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 9px;
  }

  .service-types-table .service-type-card-row > td {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-bottom: 1px solid #edf1ef;
  }

  .service-types-table .service-type-card-row > td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
  }

  .service-types-table .service-type-card-row > td:last-child {
    border-bottom: 0;
  }

  .service-types-table .service-type-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .service-types-table .service-type-actions::before {
    grid-column: 1 / -1;
  }

  .service-types-table .service-type-actions .button,
  .service-types-table .service-type-actions button,
  .service-types-table .service-type-actions .inline-form {
    width: 100%;
    min-width: 0;
    margin: 0;
    justify-content: center;
  }

  .responsive-card-table-wrap {
    overflow-x: visible;
  }

  .responsive-card-table,
  .responsive-card-table tbody {
    display: block;
    width: 100%;
    min-width: 0 !important;
  }

  .responsive-card-table thead {
    display: none;
  }

  .responsive-card-table tbody {
    display: grid;
    gap: 12px;
  }

  .responsive-card-table tbody > tr {
    display: block;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 9px;
  }

  .responsive-card-table tbody > tr > td {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    overflow-wrap: anywhere;
    white-space: normal;
    border-bottom: 1px solid #edf1ef;
  }

  .responsive-card-table tbody > tr > td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
  }

  .responsive-card-table tbody > tr > td:last-child {
    border-bottom: 0;
  }

  .responsive-card-table .responsive-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .responsive-card-table .responsive-card-actions::before {
    grid-column: 1 / -1;
  }

  .responsive-card-table .responsive-card-actions > :only-child {
    grid-column: 1 / -1;
  }

  .responsive-card-table .responsive-card-actions .button,
  .responsive-card-table .responsive-card-actions button,
  .responsive-card-table .responsive-card-actions .inline-form {
    width: 100%;
    min-width: 0;
    margin: 0;
    justify-content: center;
  }

  td.actions {
    white-space: normal;
  }

  td.actions .button,
  td.actions button,
  td.actions .inline-form {
    margin: 2px 0;
  }

  .parameter-form {
    align-items: stretch;
    flex-direction: column;
  }

  .parameter-form input[type="number"] {
    width: 100%;
  }

  .select-with-action {
    grid-template-columns: minmax(0, 1fr) 40px;
  }

  .login-shell {
    width: min(520px, calc(100% - 28px));
    min-height: auto;
    grid-auto-rows: max-content;
    align-content: center;
    align-items: stretch;
    gap: 10px;
    padding: 10px 0;
  }

  .login-brand {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 8px 4px 8px 18px;
    text-align: left;
    border: 0;
    border-left: 5px solid #0f5132;
    border-radius: 0;
    background: transparent;
  }

  .login-brand img {
    width: 104px;
    margin: 0 0 9px;
    padding: 6px;
  }

  .login-brand h1 {
    max-width: 330px;
    margin: 0 0 3px;
    font-size: clamp(28px, 8.5vw, 34px);
    line-height: 1;
    font-weight: 500;
  }

  .login-brand p {
    max-width: 330px;
    margin: 0;
    font-size: 12px;
    line-height: 1.3;
  }

  .login-card {
    padding: 13px 12px;
    border-top-width: 4px;
  }

  .login-card .login-company-title {
    margin: -2px 0 12px;
    padding: 8px 10px;
    font-size: 19px;
  }

  .login-card label {
    gap: 5px;
    margin-bottom: 9px;
    font-size: 13px;
  }

  .login-card .field-control input {
    min-height: 42px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 14px;
  }

  .login-card .field-control svg {
    width: 17px;
    height: 17px;
  }

  .password-options {
    min-height: 26px;
    margin: -3px 0 8px;
  }

  .login-card .login-password-visibility,
  .password-change-link {
    height: 26px;
  }

  .login-actions {
    gap: 8px;
  }

  .login-card .login-actions button {
    min-height: 35px;
    font-size: 13px;
  }

  .login-footer {
    padding: 0 10px 7px;
  }

  .developer-panel {
    padding: 6px 12px;
  }

  .developer-copy strong {
    font-size: 14px;
  }

  .developer-copy a {
    font-size: 11px;
  }

  .password-change-link,
  .login-card .login-password-visibility {
    font-size: 12px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .topbar,
  .tabs,
  .form-panel,
  .quick-actions,
  .toast {
    display: none !important;
  }

  .screen {
    display: none !important;
  }

  #reports {
    display: block !important;
  }

  .panel {
    box-shadow: none;
    border: 0;
  }
}
