@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root {
  --canvas: #f5f6f2;
  --white: #fff;
  --ink: #172d2c;
  --muted: #74817c;
  --faint: #9aa6a0;
  --line: #e5e9e2;
  --sidebar: #122c2b;
  --sidebar-muted: #a1b9b2;
  --teal: #247567;
  --teal-light: #eaf3ec;
  --amber: #c99531;
  --amber-light: #fbf2de;
  --red: #c16452;
  --radius: 12px;
  --shadow: 0 14px 48px #0c2a2512;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --heading: 'Manrope', var(--font);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
input,
textarea,
select {
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 3px #24756715;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b8d7cd;
  outline-offset: 3px;
}
svg {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  background: var(--sidebar);
  color: white;
  padding: 32px 18px 18px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 15px 28px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #31514a;
  color: #e5ce81;
  position: relative;
}
.brand-mark svg {
  width: 27px;
  height: 27px;
  stroke-width: 2;
}
.brand-name {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -1.2px;
  line-height: 1.15;
}
.brand-caption {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2.6px;
  color: #b0c2b9;
  margin-top: 5px;
}
.tenant-box {
  position: relative;
  background: #203d37;
  border: 1px solid #3c544a;
  border-radius: 9px;
  padding: 12px;
  margin: 0 1px 27px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tenant-emblem {
  width: 31px;
  height: 31px;
  border: 1px solid #506259;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #304a40;
}
.tenant-box > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.tenant-label {
  color: #9ab2a8;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.tenant-select {
  appearance: none;
  border: 0;
  color: #f6faf7;
  background: transparent;
  padding: 1px 12px 0 0;
  max-width: 160px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-overflow: ellipsis;
}
.tenant-select option {
  background: var(--sidebar);
  color: white;
}
.tenant-box > .chevron {
  position: absolute;
  right: 12px;
  bottom: 19px;
  width: 13px;
  height: 13px;
  pointer-events: none;
}
.nav-label {
  font-size: 9px;
  font-weight: 600;
  color: #819e92;
  letter-spacing: 1.8px;
  padding: 0 15px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.nav-label.admin {
  margin-top: 26px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 15px;
  color: var(--sidebar-muted);
  font-size: 12px;
  font-weight: 500;
  background: none;
  border: 0;
  border-radius: 7px;
  text-align: left;
  margin: 3px 0;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-item:hover {
  background: #244239;
  color: #fff;
}
.nav-item.active {
  color: #fff;
  background: #355647;
}
.nav-item.active svg {
  color: #e6cd7d;
}
.nav-item svg {
  width: 18px;
  height: 18px;
}
.nav-count {
  margin-left: auto;
  background: #dace9540;
  border: 1px solid #c2be8866;
  color: #ede5c0;
  padding: 0px 6px;
  border-radius: 4px;
  font-size: 10px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 27px 9px 0;
}
.system-live {
  padding: 12px 5px 18px;
  color: #8fac9e;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.live-dot {
  width: 5px;
  height: 5px;
  background: #95b584;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #95b58410;
}
.profile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 0 0;
  border-top: 1px solid #355045;
  width: 100%;
  background: none;
  color: white;
  border-right: 0;
  border-left: 0;
  border-bottom: 0;
  text-align: left;
}
.avatar {
  width: 33px;
  height: 33px;
  background: #ddd3af;
  color: #32483c;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.profile-name {
  font-size: 11px;
  font-weight: 600;
}
.profile-role {
  font-size: 10px;
  color: #8eaaa0;
  margin-top: 2px;
}
.profile svg {
  width: 15px;
  height: 15px;
  color: #9cb1a7;
  margin-left: auto;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 79px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  background: #fafbf8;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 11px;
  color: #94a099;
}
.breadcrumb svg {
  width: 13px;
  height: 13px;
}
.breadcrumb strong {
  font-weight: 500;
  color: #364d43;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.global-search {
  width: 244px;
  display: flex;
  gap: 9px;
  align-items: center;
  color: #8b9890;
}
.global-search svg {
  width: 16px;
  height: 16px;
}
.global-search input {
  width: 100%;
  border: 0;
  background: none;
  padding: 8px 0;
  font-size: 11px;
  color: var(--ink);
}
.global-search input:focus {
  box-shadow: none;
}
.shortcut {
  font-size: 9px;
  border: 1px solid #e1e6dc;
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
}
.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  color: #63776c;
  position: relative;
}
.icon-btn:hover {
  background: #eaf0e7;
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}
.notification-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #cfa649;
  border: 1px solid var(--canvas);
  right: 9px;
  top: 6px;
  border-radius: 50%;
}
.topbar-separator {
  height: 24px;
  width: 1px;
  background: var(--line);
}
.mobile-menu {
  display: none;
}
.content {
  padding: 31px 38px 30px;
  max-width: 1800px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.eyebrow {
  font-size: 10px;
  color: #809083;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  margin-bottom: 7px;
  font-weight: 600;
}
.page-heading h1 {
  font-family: var(--heading);
  font-size: 29px;
  line-height: 1.25;
  letter-spacing: -1.1px;
  font-weight: 750;
  margin: 0 0 8px;
}
.page-heading p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 37px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 13px;
  background: #fff;
  font-weight: 550;
  font-size: 11px;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn svg {
  width: 15px;
  height: 15px;
}
.btn:hover {
  background: #f0f4ed;
}
.btn-primary {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 2px 2px #123e2210;
}
.btn-primary:hover {
  background: #1b6357;
}
.btn-quiet {
  border-color: transparent;
  background: transparent;
  color: var(--teal);
}
.btn-danger {
  background: #fff3f0;
  color: #ab4f3c;
  border-color: #edd2ca;
}
.btn.small {
  min-height: 31px;
  padding: 6px 10px;
  font-size: 10px;
}
.date-button {
  color: #64766b;
}
.date-button .calendar-icon {
  margin-right: 2px;
}
.date-button svg:last-child {
  width: 12px;
  height: 12px;
  margin-left: 7px;
}
.welcome-banner {
  border: 1px solid #d9e3ce;
  background: linear-gradient(104deg, #eaf0e0 0%, #edf1e5 75%, #e2ead8 100%);
  border-radius: 10px;
  min-height: 113px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 25px;
  position: relative;
  overflow: hidden;
  margin-bottom: 23px;
}
.welcome-banner h2 {
  font-family: var(--heading);
  font-size: 17px;
  letter-spacing: -0.5px;
  font-weight: 650;
  margin: 0 0 7px;
}
.welcome-banner p {
  font-size: 11px;
  color: #75856b;
  margin: 0;
  max-width: 510px;
}
.banner-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  font-size: 10px;
  color: #527144;
}
.banner-status .live-dot {
  background: #83a86a;
}
.banner-art {
  width: 190px;
  height: 110px;
  position: absolute;
  right: 20px;
  bottom: -5px;
  opacity: 0.67;
  pointer-events: none;
}
.banner-art svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.2;
  color: #768f65;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 19px 15px;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px #10291208;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.stat-label {
  font-size: 11px;
  font-weight: 500;
  color: #687a70;
}
.stat-icon {
  width: 29px;
  height: 29px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #edf3e9;
  color: #6c9160;
}
.stat-icon svg {
  width: 15px;
  height: 15px;
}
.stat-icon.amber {
  background: #fcf3df;
  color: #b49948;
}
.stat-icon.blue {
  background: #edf1f6;
  color: #819aac;
}
.stat-icon.red {
  background: #fcf0e8;
  color: #c58c6d;
}
.stat-number {
  font-family: var(--heading);
  font-size: 31px;
  letter-spacing: -1px;
  font-weight: 700;
  line-height: 1;
}
.stat-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: #89978c;
}
.stat-footer svg {
  width: 12px;
  height: 12px;
}
.stat-footer strong {
  font-weight: 500;
  color: #658358;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 21px;
  align-items: start;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 20px 16px;
  gap: 10px;
}
.panel-heading h2 {
  font-size: 13px;
  font-family: var(--heading);
  letter-spacing: -0.2px;
  font-weight: 700;
  margin: 0;
}
.panel-heading p {
  color: var(--muted);
  font-size: 10px;
  margin: 4px 0 0;
}
.panel-heading .btn {
  font-size: 10px;
}
.panel-heading .muted {
  font-size: 10px;
}
.pill-count {
  font-size: 9px;
  background: #eff3e9;
  color: #778967;
  border: 1px solid #e2e9d9;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font);
  margin-left: 6px;
}
.table-wrap {
  overflow: auto;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
.data-table th {
  color: #8a978c;
  background: #fafbf8;
  padding: 11px 15px;
  border-block: 1px solid #edf0e9;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.25px;
}
.data-table td {
  padding: 15px;
  border-bottom: 1px solid #eff1eb;
  font-size: 11px;
  color: #64766b;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr[data-open] {
  cursor: pointer;
}
.data-table tbody tr[data-open]:hover {
  background: #f7faf5;
}
.data-table th:first-child,
.data-table td:first-child {
  padding-left: 21px;
}
.data-table th:last-child,
.data-table td:last-child {
  padding-right: 21px;
}
.table-reference {
  font-size: 9px;
  font-weight: 500;
  color: #7a8d78;
}
.table-title {
  color: #2f463b;
  font-weight: 550;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.table-subtitle {
  font-size: 9px;
  color: #95a08f;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 245px;
}
.table-project {
  font-size: 10px;
  color: #819076;
}
.badge {
  font-size: 9px;
  font-weight: 500;
  border-radius: 5px;
  background: #edf3e8;
  color: #708960;
  padding: 4px 7px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  white-space: nowrap;
}
.badge:before {
  content: '';
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.badge.amber,
.badge.planned,
.badge.in_progress {
  background: #fbf2dc;
  color: #a98c3b;
}
.badge.blue,
.badge.registered,
.badge.new {
  background: #edf3f6;
  color: #7596a8;
}
.badge.purple,
.badge.review {
  background: #f0edf8;
  color: #9788b6;
}
.badge.red,
.badge.urgent,
.badge.high {
  background: #fcf0e8;
  color: #c68f6e;
}
.badge.complete,
.badge.completed,
.badge.active,
.badge.approved {
  background: #edf3e5;
  color: #7b975f;
}
.badge.partner,
.badge.assigned {
  background: #e9f3ef;
  color: #598f80;
}
.badge.cancelled,
.badge.inactive {
  background: #f0f1ef;
  color: #969d92;
}
.badge.part_invoiced,
.badge.invoiced {
  background: #f1ede3;
  color: #93845d;
}
.priority {
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.priority-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #afbe9e;
}
.priority.high .priority-dot,
.priority.urgent .priority-dot {
  background: #c58c6d;
}
.priority.medium .priority-dot {
  background: #ceb06a;
}
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 12px 20px;
  color: #8a998d;
  font-size: 9px;
  gap: 10px;
}
.pagination {
  display: flex;
  gap: 5px;
  align-items: center;
}
.pagination button {
  height: 27px;
  min-width: 27px;
  border: 1px solid #e6eade;
  background: white;
  border-radius: 5px;
  font-size: 10px;
  color: #687f69;
}
.pagination button.current {
  background: #edf2e7;
  border-color: #d8e2cc;
}
.pagination svg {
  width: 12px;
  height: 12px;
}
.dashboard-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.distribution-body {
  padding: 0 20px 20px;
}
.donut-area {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 10px auto 22px;
}
.donut {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    #789963 0deg 100deg,
    #d3b46b 100deg 205deg,
    #8ba5af 205deg 285deg,
    #b7adca 285deg
  );
  position: relative;
  transform: rotate(-90deg);
}
.donut:after {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #fff;
}
.donut-label {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.donut-label strong {
  font-family: var(--heading);
  font-size: 27px;
  letter-spacing: -1px;
  font-weight: 650;
}
.donut-label span {
  font-size: 9px;
  color: #8a998a;
}
.legend-row {
  display: flex;
  align-items: center;
  margin-top: 10px;
  font-size: 10px;
  color: #7c8d77;
  gap: 8px;
}
.legend-dot {
  height: 6px;
  width: 6px;
  border-radius: 2px;
}
.legend-row strong {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  color: #526649;
}
.legend-row em {
  font-size: 9px;
  color: #a2ab98;
  font-style: normal;
  min-width: 25px;
  text-align: right;
}
.activity-list {
  padding: 0 20px 16px;
}
.activity-item {
  display: flex;
  gap: 11px;
  position: relative;
  padding-bottom: 18px;
}
.activity-item:last-child {
  padding-bottom: 0;
}
.activity-item:not(:last-child):before {
  content: '';
  position: absolute;
  width: 1px;
  background: #e6ecdf;
  top: 25px;
  left: 12px;
  bottom: 2px;
}
.activity-icon {
  height: 25px;
  width: 25px;
  border-radius: 50%;
  background: #f0f5e9;
  display: grid;
  place-items: center;
  color: #88a472;
  flex-shrink: 0;
}
.activity-icon svg {
  width: 12px;
  height: 12px;
}
.activity-text {
  font-size: 10px;
  line-height: 1.55;
  color: #728169;
}
.activity-text b {
  color: #41583e;
  font-weight: 550;
}
.activity-time {
  font-size: 9px;
  color: #a2ab99;
  margin-top: 4px;
}
.quick-actions {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.quick-action {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 14px;
  text-align: left;
}
.quick-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #f2f5eb;
  color: #829570;
}
.quick-icon svg {
  width: 16px;
  height: 16px;
}
.quick-action strong {
  font-size: 10px;
  font-weight: 600;
  display: block;
}
.quick-action span {
  font-size: 9px;
  color: #95a08f;
  display: block;
  margin-top: 3px;
}
.quick-action > svg {
  width: 13px;
  height: 13px;
  margin-left: auto;
  color: #a9b3a0;
}
.quick-action:hover {
  border-color: #bfcdb4;
  background: #fafcf7;
}
.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 25px;
  font-size: 9px;
  color: #a2ad9a;
}
.page-footer > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.page-footer svg {
  height: 12px;
  width: 12px;
}
.toolbar {
  display: flex;
  gap: 9px;
  padding: 15px 19px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  flex-wrap: wrap;
}
.toolbar-search {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 175px;
  color: #8a9a88;
}
.toolbar-search input {
  border: 0;
  padding: 5px 0;
  width: 100%;
  font-size: 11px;
  background: transparent;
}
.toolbar-search input:focus {
  box-shadow: none;
}
.toolbar-search svg {
  width: 16px;
  height: 16px;
}
.filter-select {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 29px 7px 10px;
  color: #72816b;
  background: #fff;
  font-size: 10px;
  max-width: 180px;
}
.tabs {
  display: flex;
  gap: 23px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 14px 0 13px;
  font-size: 11px;
  color: #87957e;
  white-space: nowrap;
}
.tab.active {
  border-bottom-color: var(--teal);
  color: var(--teal);
  font-weight: 600;
}
.tab-count {
  display: inline-block;
  border-radius: 4px;
  background: #f0f4e9;
  font-size: 9px;
  padding: 0px 5px;
  margin-left: 4px;
  color: #7e916b;
}
.view-switch {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: #edf1e7;
  border: 1px solid #e1e7da;
  border-radius: 6px;
}
.view-switch button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 25px;
  border: 0;
  background: transparent;
  color: #94a181;
  border-radius: 4px;
}
.view-switch button.active {
  background: #fff;
  box-shadow: 0 1px 4px #28411812;
  color: #4b7454;
}
.view-switch svg {
  height: 14px;
  width: 14px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.project-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}
.project-card:hover {
  border-color: #bfceb4;
  box-shadow: 0 3px 12px #2e491106;
}
.project-card-top {
  padding: 19px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.project-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #edf3e6;
  color: #80965f;
}
.project-card h3 {
  font-family: var(--heading);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.2px;
  margin: 0 20px 5px;
}
.project-card .project-description {
  font-size: 10px;
  color: #8a987e;
  padding: 0 20px;
  min-height: 34px;
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card-bottom {
  display: flex;
  justify-content: space-between;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #8c997d;
}
.project-card-bottom span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.project-card-bottom svg {
  height: 13px;
  width: 13px;
}
.empty {
  padding: 56px 24px;
  text-align: center;
  max-width: 530px;
  margin: auto;
}
.empty-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: #eff3e8;
  border-radius: 14px;
  margin: 0 auto 17px;
  color: #94a47c;
}
.empty-icon svg {
  width: 25px;
  height: 25px;
}
.empty h3 {
  font-family: var(--heading);
  font-size: 17px;
  letter-spacing: -0.4px;
  margin: 0 0 7px;
}
.empty p {
  font-size: 12px;
  line-height: 1.8;
  color: #8a9880;
  margin: 0 0 19px;
}
.loading {
  padding: 65px;
  text-align: center;
  color: #8c9980;
  font-size: 12px;
}
.spinner {
  width: 23px;
  height: 23px;
  border: 2px solid #e0e8d7;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.map-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  height: calc(100vh - 245px);
  min-height: 440px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.map-list {
  border-right: 1px solid var(--line);
  overflow: auto;
}
.map-list-header {
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}
.map-list-header input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 11px;
  font-size: 11px;
}
.map-list-count {
  font-size: 10px;
  color: #95a386;
  margin-top: 12px;
}
.map-list-item {
  padding: 16px 17px;
  border-bottom: 1px solid #edf1e6;
  cursor: pointer;
  width: 100%;
  background: white;
  text-align: left;
  border-top: 0;
  border-left: 0;
  border-right: 0;
}
.map-list-item:hover,
.map-list-item.selected {
  background: #f1f6e9;
}
.map-list-item strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
  margin: 5px 0;
}
.map-list-item p {
  font-size: 10px;
  color: #8f9c80;
  margin: 4px 0 0;
}
.map-list-item .table-reference {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.map-stage {
  position: relative;
  min-width: 0;
  background: #eaf0e4;
}
.map-canvas {
  height: 100%;
  width: 100%;
  z-index: 1;
  background: #e6ecdf;
}
.map-legend {
  position: absolute;
  bottom: 21px;
  left: 21px;
  z-index: 400;
  background: #fffffff2;
  box-shadow: 0 2px 14px #26422315;
  border: 1px solid #e3e9d9;
  border-radius: 7px;
  display: flex;
  gap: 17px;
  padding: 11px 14px;
  font-size: 10px;
  color: #708060;
}
.map-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.map-legend i {
  width: 7px;
  height: 7px;
  background: #598b66;
  display: block;
  border-radius: 50%;
}
.map-legend i.amber {
  background: #c8a752;
}
.map-legend i.blue {
  background: #7d9dad;
}
.map-tools {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 400;
  display: flex;
  gap: 7px;
}
.map-popover {
  font: var(--font);
  color: var(--ink);
  padding: 2px;
}
.map-popover strong {
  font-size: 12px;
  display: block;
  margin: 5px 0;
}
.map-popover p {
  font-size: 10px;
  color: var(--muted);
  margin: 5px 0;
}
.map-popover button {
  margin-top: 7px;
}
.leaflet-popup-content-wrapper {
  border-radius: 9px !important;
  box-shadow: 0 6px 25px #23472220 !important;
}
.leaflet-control-zoom {
  border: 1px solid #dce5d0 !important;
}
.leaflet-bar a {
  color: #536c43 !important;
}
.asset-marker {
  background: #357963;
  border: 2px solid white;
  box-shadow: 0 0 0 2px #35796355;
  border-radius: 50%;
}
.asset-marker.fault {
  background: #c39a47;
  box-shadow: 0 0 0 2px #c39a4755;
}
.asset-marker.off {
  background: #a58d87;
  box-shadow: 0 0 0 2px #a58d8755;
}
.map-fallback {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px;
  text-align: center;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 44px, #d4dfc955 45px),
    repeating-linear-gradient(90deg, transparent, transparent 44px, #d4dfc955 45px), #edf2e6;
  color: #7b8b6a;
}
.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.report-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.report-card > svg {
  width: 25px;
  height: 25px;
  color: #7e9666;
  margin-bottom: 20px;
}
.report-card h3 {
  font-family: var(--heading);
  font-size: 14px;
  margin: 0 0 8px;
  font-weight: 650;
}
.report-card p {
  font-size: 11px;
  line-height: 1.8;
  color: #8c9b80;
  margin: 0 0 22px;
  flex: 1;
}
.report-card .btn {
  width: 100%;
  justify-content: space-between;
}
.reports-filters {
  background: #eaf0e2;
  border: 1px solid #dce5d2;
  padding: 17px 20px;
  border-radius: 9px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #6d805a;
}
.reports-filters strong {
  font-weight: 550;
  margin-right: auto;
}
.reports-filters input,
.reports-filters select {
  border: 1px solid #dce4d3;
  background: #ffffffc9;
  border-radius: 5px;
  padding: 7px 9px;
  font-size: 11px;
  color: #6d805a;
}
.overlay-backdrop {
  position: fixed;
  inset: 0;
  background: #09282066;
  backdrop-filter: blur(3px);
  z-index: 800;
  display: flex;
  justify-content: flex-end;
  animation: fadein 0.15s;
}
.drawer {
  width: 780px;
  max-width: 95vw;
  height: 100%;
  background: var(--canvas);
  box-shadow: -12px 0 60px #092a2922;
  display: flex;
  flex-direction: column;
  animation: slidein 0.2s;
}
.drawer-header {
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 23px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.drawer-header h2 {
  font-family: var(--heading);
  font-size: 22px;
  letter-spacing: -0.6px;
  line-height: 1.35;
  margin: 6px 0 9px;
  font-weight: 650;
}
.drawer-header .eyebrow {
  font-size: 10px;
}
.drawer-title-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 10px;
  color: #8b9c7f;
}
.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 24px 28px;
}
.drawer-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding: 17px 28px;
  background: white;
  border-top: 1px solid var(--line);
}
.drawer-footer .left {
  margin-right: auto;
}
.drawer-footer .save-status {
  font-size: 10px;
  color: #8a9a7b;
  margin-right: auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 19px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 10px;
  font-weight: 600;
  color: #708365;
}
.field label .required {
  color: #c09464;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #dfe6d7;
  border-radius: 7px;
  padding: 10px 11px;
  font-size: 12px;
  min-height: 39px;
  color: #3c5435;
}
.field textarea {
  min-height: 108px;
  resize: vertical;
  line-height: 1.7;
}
.field .hint {
  font-size: 9px;
  line-height: 1.6;
  color: #9ba78e;
}
.field input[type='checkbox'] {
  width: 16px;
  height: 16px;
  min-height: 0;
  accent-color: var(--teal);
}
.field.check {
  flex-direction: row;
  align-items: center;
  gap: 9px;
  padding-top: 15px;
}
.field.check label {
  font-size: 11px;
}
.form-section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 21px;
  margin-bottom: 18px;
}
.form-section h3 {
  font-family: var(--heading);
  font-size: 12px;
  margin: 0 0 18px;
  color: #576c47;
  font-weight: 650;
}
.form-error {
  background: #fdf0e9;
  border: 1px solid #edd2c6;
  padding: 12px 14px;
  border-radius: 7px;
  color: #ac7456;
  font-size: 11px;
  margin-bottom: 17px;
  line-height: 1.7;
}
.detail-tabs {
  background: white;
  flex-shrink: 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.detail-label {
  font-size: 10px;
  color: #8da17b;
  margin-bottom: 5px;
}
.detail-value {
  font-size: 12px;
  color: #48613c;
  overflow-wrap: anywhere;
}
.detail-description {
  font-size: 12px;
  line-height: 1.9;
  color: #728461;
  white-space: pre-wrap;
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.comment {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.comment .avatar {
  width: 29px;
  height: 29px;
  font-size: 9px;
  background: #e4ecd7;
  color: #6c8654;
}
.comment-content {
  flex: 1;
  min-width: 0;
}
.comment-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
}
.comment-head strong {
  font-weight: 600;
  color: #4c673b;
}
.comment-head time {
  font-size: 9px;
  color: #a3b093;
}
.comment-body {
  font-size: 11px;
  line-height: 1.8;
  white-space: pre-wrap;
  color: #70845e;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 8px 8px 8px;
  padding: 11px 14px;
  margin-top: 7px;
}
.composer {
  margin-top: 25px;
}
.composer textarea {
  width: 100%;
  min-height: 98px;
  border: 1px solid #dce5d1;
  padding: 13px;
  border-radius: 8px;
  background: white;
  font-size: 12px;
  resize: vertical;
}
.composer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 9px;
  font-size: 10px;
  color: #96a687;
}
.detail-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 21px;
}
.detail-summary > div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}
.detail-summary span {
  font-size: 9px;
  color: #879c73;
  display: block;
  margin-bottom: 7px;
}
.detail-summary strong {
  font-family: var(--heading);
  font-size: 22px;
  color: #4b663b;
}
.file-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.file-item > svg {
  width: 23px;
  height: 23px;
  color: #8ea076;
}
.file-item strong {
  font-size: 11px;
  font-weight: 500;
  display: block;
}
.file-item span {
  font-size: 9px;
  color: #9cab8d;
}
.file-item a {
  margin-left: auto;
}
.upload-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  padding: 37px 20px;
  border: 1px dashed #bdcdb0;
  border-radius: 9px;
  margin-top: 19px;
  color: #839d6b;
  background: #f8faf5;
  cursor: pointer;
}
.upload-drop svg {
  width: 28px;
  height: 28px;
}
.upload-drop strong {
  font-size: 11px;
  font-weight: 500;
}
.upload-drop span {
  font-size: 9px;
  color: #a0af92;
}
.upload-drop input {
  max-width: 100%;
  font-size: 10px;
  margin-top: 8px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #102f2966;
  backdrop-filter: blur(3px);
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 25px;
}
.modal {
  max-width: 530px;
  width: 100%;
  background: var(--canvas);
  border-radius: 13px;
  box-shadow: var(--shadow);
  max-height: 90vh;
  overflow: auto;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 24px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.modal-header h2 {
  font-family: var(--heading);
  font-size: 17px;
  margin: 0;
  font-weight: 650;
}
.modal-body {
  padding: 24px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 17px 24px;
  background: white;
  border-top: 1px solid var(--line);
}
.settings-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 22px;
}
.settings-nav {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px;
  align-self: start;
}
.settings-nav button {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  padding: 11px 13px;
  border: 0;
  background: transparent;
  width: 100%;
  border-radius: 6px;
  text-align: left;
  color: #7d916b;
}
.settings-nav button svg {
  width: 15px;
  height: 15px;
}
.settings-nav button.active {
  background: #edf3e4;
  color: #53753c;
}
.settings-content .panel {
  padding: 24px;
}
.settings-content h2 {
  font-family: var(--heading);
  font-size: 16px;
  font-weight: 650;
  margin: 0 0 8px;
}
.settings-content > p,
.settings-description {
  font-size: 11px;
  color: #899e78;
  line-height: 1.8;
  margin: 0 0 23px;
}
.info-note {
  padding: 14px 16px;
  border-radius: 7px;
  background: #edf3e7;
  color: #7f946c;
  border: 1px solid #dce7d1;
  font-size: 11px;
  line-height: 1.8;
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.info-note svg {
  width: 17px;
  height: 17px;
  margin-top: 2px;
}
.info-note p {
  margin: 0;
}
.import-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin: 24px 0;
}
.import-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #f9fbf6;
}
.import-step .step-number {
  width: 25px;
  height: 25px;
  background: #e8f0df;
  color: #7f9a65;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  margin-bottom: 14px;
}
.import-step strong {
  font-size: 11px;
  font-weight: 550;
  display: block;
  margin-bottom: 6px;
}
.import-step p {
  font-size: 10px;
  color: #90a47c;
  margin: 0;
  line-height: 1.8;
}
.code-block {
  background: #17372f;
  color: #d5e3c7;
  padding: 16px 18px;
  border-radius: 8px;
  font-family: Consolas, monospace;
  font-size: 11px;
  overflow-x: auto;
  white-space: pre-wrap;
  line-height: 1.9;
}
.toast {
  position: relative;
  background: #183f33;
  color: #f0f8e5;
  border-radius: 9px;
  box-shadow: 0 7px 35px #17392a24;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 17px;
  font-size: 11px;
  animation: slidein 0.2s;
  max-width: 430px;
  line-height: 1.6;
}
.toast.error {
  background: #984e3c;
}
.toast svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}
#toast-root {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.initial-loader {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  font-size: 13px;
  color: #7a8e70;
}
.loader-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--teal);
  color: white;
  font-weight: 700;
  font-size: 24px;
  font-family: var(--heading);
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-visual {
  background: #16382f;
  color: white;
  padding: 49px 65px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-visual .brand {
  padding: 0;
}
.login-visual .brand-name {
  font-size: 31px;
}
.login-intro {
  margin: auto 0;
  max-width: 500px;
  padding: 80px 0;
}
.login-intro .eyebrow {
  color: #aec193;
  margin-bottom: 19px;
}
.login-intro h1 {
  font-family: var(--heading);
  font-size: 49px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -2px;
  margin: 0 0 23px;
  position: relative;
  z-index: 1;
}
.login-intro h1 span {
  color: #d8ce8e;
}
.login-intro p {
  font-size: 13px;
  line-height: 1.9;
  max-width: 350px;
  color: #a8bea4;
}
.login-visual .street-scene {
  position: absolute;
  width: 600px;
  height: 340px;
  right: -60px;
  bottom: 0;
  opacity: 0.19;
  color: #c3d6aa;
}
.login-visual .street-scene svg {
  width: 100%;
  height: 100%;
  stroke-width: 0.65;
}
.login-bottom {
  font-size: 10px;
  color: #829d78;
  position: relative;
  z-index: 1;
}
.login-form-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}
.login-card {
  width: 340px;
}
.login-card > .eyebrow {
  margin-bottom: 13px;
}
.login-card h2 {
  font-family: var(--heading);
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -0.9px;
  margin: 0 0 10px;
}
.login-card > p {
  font-size: 12px;
  color: #8b9d7d;
  line-height: 1.8;
  margin: 0 0 30px;
}
.login-card .field {
  margin-bottom: 18px;
}
.login-card .field input {
  font-size: 12px;
  padding: 13px;
}
.login-card .btn {
  width: 100%;
  font-size: 12px;
  padding: 12px;
  margin-top: 7px;
}
.login-security {
  font-size: 10px;
  color: #9daa91;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
}
.login-security svg {
  width: 12px;
  height: 12px;
}
.login-help {
  font-size: 10px;
  color: #9ba98d;
  line-height: 1.8;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.inline-help {
  font-size: 10px;
  color: #9aa98b;
  line-height: 1.8;
}
.notification-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.notification-item {
  padding: 15px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.notification-item strong {
  font-size: 12px;
  font-weight: 550;
  display: block;
  margin-bottom: 6px;
}
.notification-item p {
  font-size: 11px;
  color: #839873;
  margin: 0 0 9px;
}
.notification-item time {
  font-size: 9px;
  color: #a1af92;
}
.status-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.error-panel {
  padding: 35px;
  border: 1px solid #ead7c9;
  background: #fef8f1;
  border-radius: 9px;
  color: #a07550;
}
.error-panel h3 {
  font-size: 15px;
  font-family: var(--heading);
  margin: 0 0 8px;
}
.error-panel p {
  font-size: 12px;
  margin: 0 0 16px;
}
.selection-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  background: #edf4e5;
  border-bottom: 1px solid #dce7cf;
  font-size: 11px;
}
.row-check {
  accent-color: var(--teal);
  width: 13px;
  height: 13px;
  cursor: pointer;
}
.hidden {
  display: none !important;
}
@keyframes slidein {
  from {
    transform: translateX(18px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (min-width: 1600px) {
  .content {
    padding: 35px 48px;
  }
  .topbar {
    padding: 0 48px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
  .data-table td {
    padding-block: 18px;
  }
  .welcome-banner {
    min-height: 123px;
  }
  .stats-grid {
    gap: 22px;
  }
  .stat-card {
    padding: 22px 23px;
  }
  .stat-number {
    font-size: 36px;
  }
  .data-table .table-title {
    max-width: 360px;
  }
  .panel-heading {
    padding-block: 22px;
  }
  .page-heading h1 {
    font-size: 33px;
  }
  .stat-label,
  .panel-heading h2 {
    font-size: 13px;
  }
  .sidebar {
    padding-top: 37px;
  }
}
@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .sidebar {
    width: 220px;
    padding-inline: 13px;
  }
  .content {
    padding: 27px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 15px;
  }
  .stats-grid {
    gap: 11px;
  }
  .stat-card {
    padding: 16px;
  }
  .projects-grid,
  .reports-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-actions {
    grid-template-columns: 1fr;
  }
  .quick-action {
    padding: 12px 16px;
  }
  .banner-art {
    width: 135px;
    right: 8px;
  }
  .welcome-banner p {
    max-width: 370px;
  }
  .global-search {
    width: 210px;
  }
  .data-table th,
  .data-table td {
    padding-inline: 12px;
  }
  .map-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .login-visual {
    padding: 45px;
  }
  .login-intro h1 {
    font-size: 41px;
  }
}
@media (max-width: 980px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .quick-actions {
    grid-template-columns: repeat(3, 1fr);
  }
  .global-search {
    width: 170px;
  }
  .shortcut {
    display: none;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .map-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .settings-layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .import-steps {
    grid-template-columns: 1fr;
  }
  .login-visual {
    padding: 35px;
  }
  .login-intro h1 {
    font-size: 35px;
  }
  .login-form-area {
    padding: 35px;
  }
  .reports-filters {
    flex-wrap: wrap;
  }
  .reports-filters strong {
    width: 100%;
  }
  .heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .date-button {
    display: none;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 248px;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 0 0 0 100vmax #0c2c2860;
  }
  .main {
    min-width: 0;
  }
  .topbar {
    height: 65px;
    padding: 0 19px;
  }
  .mobile-menu {
    display: grid;
  }
  .breadcrumb {
    gap: 8px;
  }
  .breadcrumb > span:first-child {
    display: none;
  }
  .global-search {
    display: none;
  }
  .topbar-actions {
    gap: 9px;
  }
  .topbar-separator {
    display: none;
  }
  .content {
    padding: 23px 18px;
  }
  .page-heading {
    margin-bottom: 21px;
    gap: 10px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 10px;
    max-width: 215px;
  }
  .heading-actions {
    padding-top: 3px;
  }
  .heading-actions .btn:not(.btn-primary) {
    display: none;
  }
  .heading-actions .btn-primary {
    font-size: 10px;
    padding: 8px 10px;
    min-height: 34px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .welcome-banner {
    padding: 21px;
    min-height: 133px;
  }
  .welcome-banner h2 {
    font-size: 15px;
    max-width: 260px;
  }
  .welcome-banner p {
    font-size: 10px;
    max-width: 245px;
  }
  .banner-art {
    width: 112px;
    right: -20px;
    opacity: 0.37;
  }
  .stats-grid {
    gap: 10px;
    margin-bottom: 19px;
  }
  .stat-card {
    padding: 14px;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat-number {
    font-size: 27px;
  }
  .stat-footer {
    font-size: 8px;
    gap: 3px;
    margin-top: 10px;
  }
  .stat-top {
    margin-bottom: 11px;
  }
  .stat-icon {
    width: 25px;
    height: 25px;
  }
  .stat-icon svg {
    width: 13px;
    height: 13px;
  }
  .dashboard-right {
    grid-template-columns: 1fr;
  }
  .distribution-body {
    display: flex;
    align-items: center;
    gap: 25px;
  }
  .donut-area {
    margin: 0;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
  }
  .distribution-legend {
    flex: 1;
  }
  .legend-row {
    font-size: 10px;
  }
  .quick-actions {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 15px;
  }
  .projects-grid,
  .reports-grid {
    grid-template-columns: 1fr;
  }
  .page-footer {
    font-size: 8px;
    gap: 15px;
  }
  .page-footer span:last-child {
    display: none;
  }
  .toolbar {
    padding: 13px;
  }
  .toolbar-search {
    min-width: 100%;
    border-bottom: 1px solid var(--line);
    padding-bottom: 9px;
  }
  .filter-select {
    flex: 1;
    max-width: unset;
    font-size: 10px;
  }
  .tabs {
    gap: 20px;
    padding-inline: 15px;
  }
  .data-table th:first-child,
  .data-table td:first-child {
    padding-left: 15px;
  }
  .data-table th,
  .data-table td {
    padding-inline: 11px;
  }
  .map-layout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 218px);
    min-height: 430px;
  }
  .map-list {
    height: 130px;
    flex-shrink: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: flex;
  }
  .map-list-header {
    display: none;
  }
  .map-list-item {
    min-width: 215px;
    border-right: 1px solid var(--line);
    padding: 13px 15px;
  }
  .map-stage {
    flex: 1;
  }
  .map-legend {
    left: 10px;
    bottom: 12px;
    font-size: 8px;
    gap: 10px;
    padding: 9px;
  }
  .map-tools {
    top: 10px;
    right: 10px;
  }
  .map-tools .btn {
    font-size: 9px;
    min-height: 30px;
  }
  .drawer {
    width: 100%;
    max-width: 100vw;
  }
  .drawer-header {
    padding: 20px;
  }
  .drawer-header h2 {
    font-size: 20px;
  }
  .drawer-body {
    padding: 20px;
  }
  .drawer-footer {
    padding: 15px 20px;
  }
  .form-section {
    padding: 17px;
  }
  .form-grid {
    gap: 15px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 12px;
  }
  .field.full-mobile {
    grid-column: 1/-1;
  }
  .detail-tabs .tabs {
    gap: 20px;
  }
  .settings-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .settings-nav {
    display: flex;
    overflow: auto;
    width: 100%;
  }
  .settings-nav button {
    white-space: nowrap;
    width: auto;
  }
  .settings-nav button svg {
    display: none;
  }
  .settings-content .panel {
    padding: 20px;
  }
  .reports-filters {
    gap: 8px;
    padding: 15px;
  }
  .reports-filters input {
    max-width: 135px;
    flex: 1;
  }
  .login-page {
    display: flex;
    flex-direction: column;
  }
  .login-visual {
    padding: 27px 30px;
    min-height: 200px;
  }
  .login-visual .brand-name {
    font-size: 25px;
  }
  .login-intro {
    padding: 35px 0 20px;
    max-width: unset;
  }
  .login-intro h1 {
    font-size: 31px;
    letter-spacing: -1px;
    max-width: 350px;
    margin-bottom: 12px;
  }
  .login-intro .eyebrow {
    display: none;
  }
  .login-intro p {
    font-size: 11px;
    max-width: 290px;
    margin-bottom: 0;
  }
  .login-visual .street-scene {
    width: 360px;
    height: 200px;
    right: -130px;
  }
  .login-bottom {
    display: none;
  }
  .login-form-area {
    padding: 35px 25px;
  }
  .login-card {
    width: 100%;
    max-width: 390px;
  }
  .login-card h2 {
    font-size: 25px;
  }
  .login-card > p {
    margin-bottom: 25px;
  }
  .detail-summary {
    gap: 8px;
  }
  .detail-summary > div {
    padding: 12px;
  }
  .detail-summary strong {
    font-size: 20px;
  }
  #toast-root {
    right: 16px;
    left: 16px;
    bottom: 16px;
  }
  .toast {
    max-width: unset;
  }
  .panel-heading {
    padding: 16px;
  }
  .table-footer {
    padding: 12px 15px;
  }
  .modal-backdrop {
    padding: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.cost-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e8f0df;
  border: 1px solid #d7e3c9;
  padding: 17px 20px;
  border-radius: 9px;
  margin-bottom: 17px;
  color: #54743c;
}
.cost-total > span {
  font-size: 12px;
  font-weight: 600;
}
.cost-total small {
  font-size: 10px;
  color: #8ca474;
  display: block;
  font-weight: 400;
  margin-top: 4px;
}
.cost-total strong {
  font-family: var(--heading);
  font-size: 27px;
  letter-spacing: -0.8px;
}
.selection-actions {
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .sidebar {
    visibility: hidden;
  }
  .sidebar.mobile-open {
    visibility: visible;
  }
  .cost-total {
    padding: 14px 17px;
  }
  .cost-total strong {
    font-size: 24px;
  }
  .cost-total > span {
    font-size: 10px;
  }
  .cost-total small {
    font-size: 9px;
  }
}
.grayscale-map {
  filter: grayscale(1);
}
.map-edit-toolbar {
  position: absolute;
  z-index: 600;
  top: 63px;
  right: 15px;
  left: 62px;
  background: #fffdf4f5;
  border: 1px solid #dfd8ba;
  border-radius: 8px;
  padding: 13px 16px;
  box-shadow: 0 4px 22px #273e2820;
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
}
.map-edit-toolbar strong {
  font-size: 10px;
  font-weight: 550;
  display: block;
  color: #7b754b;
}
.map-edit-toolbar small {
  display: block;
  font-size: 10px;
  color: #a49d7c;
  margin-top: 4px;
}
.map-edit-toolbar > div {
  display: flex;
  gap: 6px;
}
.draw-vertex {
  border-radius: 50%;
  background: #fffdf0;
  border: 2px solid #b6974e;
  color: #a18a4d;
  box-shadow: 0 0 0 3px #fff8;
}
.draw-vertex span {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  display: grid;
  place-items: center;
  height: 100%;
}
.report-analysis {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.bar-chart {
  height: 200px;
  padding: 8px 24px 22px;
  display: flex;
  align-items: flex-end;
  gap: 13px;
}
.bar-column {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 80px;
}
.bar-column strong {
  font-size: 9px;
  font-weight: 500;
  color: #8c9d79;
  margin-bottom: 6px;
}
.bar-track {
  flex: 1;
  display: flex;
  align-items: flex-end;
  width: 100%;
  max-width: 40px;
}
.bar-track i {
  display: block;
  width: 100%;
  background: #a6bb8c;
  border-radius: 4px 4px 0 0;
  min-height: 3px;
}
.bar-column span {
  font-size: 8px;
  color: #9bab8b;
  margin-top: 8px;
  white-space: nowrap;
}
.leaflet-control-layers {
  font-family: var(--font);
  font-size: 10px;
  color: #647954;
  border: 1px solid #dce5d0 !important;
  box-shadow: 0 2px 12px #2a3d2210 !important;
}
.leaflet-control-scale {
  margin-bottom: 8px !important;
}
.map-legend {
  bottom: 31px;
}
@media (max-width: 760px) {
  .report-analysis {
    grid-template-columns: 1fr;
  }
  .map-edit-toolbar {
    left: 10px;
    right: 10px;
    top: 53px;
    padding: 10px;
    flex-wrap: wrap;
    gap: 7px;
  }
  .map-edit-toolbar .btn {
    font-size: 9px;
    padding: 6px 9px;
    min-height: 29px;
  }
  .map-tools {
    gap: 4px;
  }
  .map-tools .btn {
    padding: 6px 7px;
  }
  .map-tools .btn svg {
    width: 12px;
  }
  .bar-chart {
    gap: 7px;
    padding-inline: 16px;
  }
  .bar-column span {
    font-size: 7px;
  }
  .map-legend {
    bottom: 30px;
    max-width: 75%;
  }
  .report-analysis .panel {
    min-width: 0;
  }
}
@media print {
  .printing-map .map-layout {
    height: 700px;
    display: block;
    border: 0;
  }
  .printing-map .map-list,
  .printing-map .map-tools,
  .printing-map .map-edit-toolbar,
  .printing-map .leaflet-control-layers {
    display: none !important;
  }
  .printing-map .map-stage,
  .printing-map .map-canvas {
    height: 700px;
    width: 100%;
  }
  .printing-map .leaflet-control-zoom {
    display: none;
  }
  .report-analysis {
    grid-template-columns: 2fr 1fr;
  }
  .bar-chart {
    height: 150px;
  }
}
fieldset:disabled .field input,
fieldset:disabled .field select,
fieldset:disabled .field textarea {
  background: #f8faf5;
  color: #708566;
}
#print-document {
  display: none;
}
.document-modal {
  width: min(1100px, calc(100vw - 36px));
  max-width: 1100px;
}
.document-preview {
  color: #26352f;
  font-size: 12px;
  line-height: 1.5;
}
.document-preview h1 {
  font-size: 25px;
  margin: 0 0 8px;
}
.document-preview h2 {
  font-size: 17px;
  margin: 26px 0 12px;
}
.document-preview h3 {
  font-size: 14px;
  margin: 20px 0 10px;
}
.document-meta {
  color: #64736b;
  font-size: 11px;
  margin: 8px 0 20px;
}
.document-table {
  border-collapse: collapse;
  width: 100%;
  margin: 10px 0;
  font-size: 11px;
}
.document-table th {
  text-align: left;
  background: #eef2eb;
}
.document-table th,
.document-table td {
  padding: 8px;
  border: 1px solid #d4ded4;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}
.document-table thead {
  display: table-header-group;
}
.document-table tr {
  break-inside: avoid;
}
.document-total {
  display: grid;
  gap: 6px;
  border-top: 2px solid #3d6653;
  background: #eef3ea;
  padding: 15px;
  margin: 16px 0;
}
.document-section + .document-section {
  border-top: 1px solid #bbcabc;
  margin-top: 30px;
  padding-top: 16px;
}
.share-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
@media print {
  #print-document .table-wrap {
    overflow: visible;
  }
  #print-document {
    font-family: Arial, sans-serif;
    line-height: 1.4;
  }
  #print-document .document-section {
    break-before: auto;
  }
  #print-document .document-table {
    font-size: 9px;
  }
  #print-document h1 {
    font-size: 21px;
  }
  #print-document h2 {
    font-size: 15px;
    margin-top: 20px;
  }
}
.lookup-search {
  background: #f8faf5 !important;
  color: #93a17f !important;
}
.lookup-search:focus {
  background: #fff !important;
}
.badge.pending_approval {
  background: #f0edf8;
  color: #9788b6;
}
@media print {
  body {
    background: white;
    color: black;
    font-size: 11px;
  }
  .sidebar,
  .topbar,
  .heading-actions,
  .page-footer,
  .toolbar,
  .drawer-footer,
  .detail-tabs,
  #toast-root,
  .modal-backdrop,
  .overlay-backdrop,
  .reports-filters {
    display: none !important;
  }
  .app-shell {
    display: block;
  }
  .main {
    margin: 0;
  }
  .content {
    padding: 0;
    max-width: 100%;
  }
  .panel {
    break-inside: avoid;
  }
  .reports-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .report-card .btn {
    display: none;
  }
  .report-card {
    padding: 15px;
  }
  #print-document {
    display: block;
    padding: 25px;
  }
  body:has(#print-document) > #app {
    display: none;
  }
  .data-table td,
  .data-table th {
    color: #222;
    font-size: 9px;
  }
  .badge {
    border: 1px solid #ccc;
    background: white !important;
    color: #444 !important;
  }
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .dashboard-grid {
    display: block;
  }
  .dashboard-right {
    display: none;
  }
  .welcome-banner {
    background: #f5f5f5;
  }
  .page-heading h1 {
    font-size: 25px;
  }
}
.folder-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.folder-breadcrumbs .btn {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 11px;
}
.folder-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.folder-toolbar > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.folder-list {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
}
.folder-row {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding-right: 5px;
}
.folder-open {
  border: 0;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 13px;
  flex: 1;
  min-width: 0;
  font-size: 12px;
  cursor: pointer;
}
.folder-open span {
  flex: 1;
  overflow-wrap: anywhere;
}
.folder-open svg:first-child {
  color: #a37726;
}
.folder-open:hover {
  background: var(--canvas);
  border-radius: 9px;
}
.folder-row .icon-btn {
  width: 30px;
  height: 32px;
}
.circuit-editor {
  margin: 12px 0;
}
.circuit-editor td {
  padding: 5px;
}
.circuit-editor input {
  width: 100%;
  min-width: 95px;
  min-height: 34px;
  font-size: 11px;
}
.circuit-editor [data-row-field='description'] {
  min-width: 180px;
}
.circuit-editor [data-row-field='number'] {
  min-width: 68px;
}
.circuit-editor .data-table th {
  font-size: 9px;
  white-space: nowrap;
}
/* The operational map belongs to Oversikt only; other workspaces retain their layout. */
.content.overview-content {
  max-width: none;
  padding: 23px 24px 30px;
}
.overview-content > .page-heading {
  align-items: center;
  margin-bottom: 19px;
}
.overview-content > .page-heading .eyebrow {
  display: none;
}
.overview-content > .page-heading h1 {
  margin-bottom: 4px;
  font-size: 26px;
}
.overview-content > .page-heading .date-button {
  display: none;
}
.overview-workspace {
  border: 1px solid #dce4dc;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 20px #17332b06;
}
.overview-map-toolbar {
  min-height: 57px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  border-bottom: 1px solid var(--line);
}
.overview-map-title,
.overview-map-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.overview-map-title > svg {
  color: var(--teal);
  width: 18px;
}
.overview-map-title > strong {
  font-size: 12px;
  white-space: nowrap;
}
.overview-total {
  color: var(--muted);
  font-size: 11px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.overview-map-actions {
  gap: 7px;
}
.overview-map-actions .btn {
  padding: 7px 10px;
  font-size: 10px;
  min-height: 32px;
}
.overview-map-actions .btn svg {
  width: 15px;
  height: 15px;
}
.overview-map-actions [aria-pressed='true'] {
  background: var(--teal-light);
  color: var(--teal);
  border-color: #99c1b6;
}
.overview-map-stage {
  position: relative;
  isolation: isolate;
  height: calc(100dvh - 259px);
  min-height: 480px;
  background: #e8ede3;
}
.overview-map-canvas {
  height: 100%;
  width: 100%;
  z-index: 1;
  font-family: var(--font);
}
.overview-map-canvas.overview-picking {
  cursor: crosshair;
}
.overview-map-canvas .leaflet-control-zoom {
  margin: 17px 0 0 17px;
}
.overview-map-canvas .leaflet-control-scale {
  margin: 0 0 13px 17px;
}
.overview-panel-toggle {
  position: absolute;
  z-index: 402;
  right: 17px;
  top: 17px;
  background: #fff;
  box-shadow: 0 4px 18px #183a2919;
  font-size: 11px;
}
.overview-search-panel {
  position: absolute;
  z-index: 403;
  top: 17px;
  right: 17px;
  width: 315px;
  max-height: calc(100% - 72px);
  overflow: auto;
  border: 1px solid #d6e0d6;
  border-radius: 10px;
  background: #fffffff7;
  box-shadow: 0 7px 32px #17372d20;
  padding: 14px 16px 10px;
  scrollbar-width: thin;
}
.overview-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -4px -5px 10px 0;
}
.overview-panel-heading > strong {
  font-family: var(--heading);
  font-size: 13px;
}
.overview-panel-heading .icon-btn {
  width: 26px;
  height: 26px;
}
.overview-search-panel label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  margin: 0 0 7px;
  color: #4e665a;
}
.overview-search-panel input:not([type='checkbox']),
.overview-search-panel select {
  border: 1px solid #dce5d9;
  border-radius: 6px;
  padding: 9px 10px;
  width: 100%;
  min-width: 0;
  color: var(--ink);
  font-size: 11px;
  background: #fff;
}
.overview-search-panel input::placeholder {
  color: #96a29a;
}
.overview-search-input {
  position: relative;
}
.overview-search-input > svg {
  width: 16px;
  height: 16px;
  color: #80968b;
  position: absolute;
  top: 10px;
  left: 10px;
}
.overview-search-input input {
  padding-left: 34px !important;
}
.overview-address-block {
  position: relative;
  padding-bottom: 13px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.overview-field-note {
  font-size: 9px;
  line-height: 1.5;
  color: #83948a;
  margin: 6px 0 0;
}
.overview-address-results {
  margin-top: 5px;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}
.overview-address-results button {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  width: 100%;
  text-align: left;
  background: transparent;
  font-size: 10px;
}
.overview-address-results button:last-child {
  border-bottom: 0;
}
.overview-address-results button:hover,
.overview-address-results [aria-selected='true'] {
  background: var(--teal-light);
}
.overview-address-results button svg {
  width: 14px;
  height: 14px;
  color: var(--teal);
}
.overview-address-results small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 2px;
}
.overview-search-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.overview-search-row > .btn {
  font-size: 11px;
  padding: 7px 13px;
}
.overview-extra-search {
  margin-top: 10px;
}
.overview-extra-search summary {
  font-size: 10px;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 7px;
}
.overview-filter-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
}
.overview-filter-row label {
  margin: 0;
}
.overview-filter-row select {
  padding: 7px 9px;
}
.overview-layers {
  display: flex;
  gap: 20px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}
.overview-layers label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin: 0;
  cursor: pointer;
}
.overview-layers svg {
  width: 15px;
  height: 15px;
  color: #6e8377;
}
.overview-layers input {
  accent-color: var(--teal);
  width: 13px;
  height: 13px;
  margin: 0;
}
.overview-panel-links {
  display: flex;
  justify-content: space-between;
  margin-top: 13px;
  padding: 11px 0 2px;
  border-top: 1px solid var(--line);
}
.overview-text-button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--teal);
  font-size: 10px;
  font-weight: 550;
  text-align: left;
}
.overview-text-button:hover {
  text-decoration: underline;
}
.overview-text-button svg {
  width: 13px;
  height: 13px;
  vertical-align: middle;
}
.overview-map-legend {
  position: absolute;
  left: 17px;
  bottom: 42px;
  z-index: 400;
  display: flex;
  gap: 15px;
  padding: 10px 13px;
  border: 1px solid #dce4d8;
  border-radius: 7px;
  background: #fffffff2;
  box-shadow: 0 3px 14px #223b2610;
}
.overview-map-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: #607365;
}
.overview-dot {
  border-radius: 50%;
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 2px #fff;
  display: inline-block;
}
.overview-dot.registered {
  background: #e34b59;
}
.overview-dot.working {
  background: #38bdf8;
}
.overview-dot.review {
  background: #eab308;
}
.overview-map-status {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 36px;
  padding: 8px 15px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: var(--muted);
  flex-wrap: wrap;
}
.overview-map-hint {
  margin-left: auto;
  font-size: 9px;
}
.overview-map-instruction {
  position: absolute;
  top: 18px;
  left: 68px;
  z-index: 402;
  border: 1px solid #cee0cd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 16px #14321e1a;
  padding: 12px 15px;
  max-width: calc(100% - 440px);
  font-size: 11px;
}
.overview-map-instruction button {
  color: var(--teal);
  border: 0;
  background: transparent;
  text-decoration: underline;
  padding-left: 9px;
  font-size: 11px;
}
.overview-results {
  border-top: 1px solid var(--line);
  margin-top: 13px;
}
.overview-results-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 3px;
  font-size: 10px;
}
.overview-results-heading .icon-btn {
  width: 26px;
  height: 26px;
}
.overview-results-list {
  max-height: 300px;
  overflow: auto;
  scrollbar-width: thin;
}
.overview-result {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.overview-result-main {
  border: 0;
  background: none;
  width: 100%;
  padding: 0;
  text-align: left;
}
.overview-result-main > span {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
}
.overview-result-main b {
  color: #7e9184;
  font-size: 9px;
  font-weight: 500;
}
.overview-result-main .badge {
  font-size: 8px;
  padding: 2px 5px;
}
.overview-result-main strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin: 5px 0 3px;
}
.overview-result-main small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
.overview-result-main em {
  display: block;
  font-style: normal;
  font-size: 9px;
  color: #91a087;
  margin: 6px 0;
}
.overview-result-main:hover strong {
  color: var(--teal);
}
.overview-results-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
  padding-top: 8px;
}
.overview-results-footer > div {
  display: flex;
}
.overview-results-footer .icon-btn {
  width: 25px;
  height: 25px;
}
.overview-popup .badge {
  margin: 4px 0;
}
.overview-summary {
  max-width: 1704px;
  margin: 35px auto 0;
  scroll-margin-top: 22px;
  outline: none;
}
.overview-summary .dashboard-grid > div {
  min-width: 0;
}
.overview-summary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 17px;
}
.overview-summary-heading h2 {
  margin: 0;
  font-size: 18px;
  font-family: var(--heading);
}
.overview-summary-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 4px;
}
.overview-summary-heading .btn {
  font-size: 10px;
}
.overview-workspace.overview-maximized {
  position: fixed;
  z-index: 28;
  top: 12px;
  left: 260px;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  box-shadow: 0 0 0 100vmax #f5f6f2;
}
.overview-maximized .overview-map-stage {
  flex: 1;
  height: auto;
  min-height: 0;
}
@media (min-width: 1800px) {
  .overview-content .overview-map-stage {
    height: calc(100dvh - 255px);
  }
}
@media (max-width: 1100px) {
  .overview-content > .page-heading p {
    max-width: 310px;
  }
  .overview-map-title {
    flex-wrap: wrap;
    column-gap: 7px;
    row-gap: 2px;
  }
  .overview-total {
    border: 0;
    padding-left: 0;
    font-size: 10px;
  }
  .overview-map-actions {
    gap: 5px;
  }
  .overview-map-actions .btn {
    font-size: 9px;
  }
  .overview-map-actions [data-overview='fit'] {
    display: none;
  }
  .overview-search-panel {
    width: 285px;
  }
  .overview-map-hint {
    display: none;
  }
  .overview-map-instruction {
    max-width: calc(100% - 380px);
  }
}
@media (max-width: 760px) {
  .content.overview-content {
    padding: 18px 12px 25px;
  }
  .overview-content > .page-heading {
    padding: 0 5px;
    margin-bottom: 15px;
  }
  .overview-content > .page-heading p {
    display: none;
  }
  .overview-content > .page-heading .heading-actions {
    flex-wrap: nowrap;
    gap: 5px;
  }
  .overview-content > .page-heading .btn {
    padding: 8px 9px;
    min-width: 0;
    font-size: 9px;
  }
  .overview-content > .page-heading .heading-actions button.btn {
    display: inline-flex;
  }
  .overview-content > .page-heading .btn svg {
    width: 14px;
    height: 14px;
  }
  .overview-content > .page-heading h1 {
    font-size: 24px;
  }
  .overview-map-toolbar {
    padding: 9px 10px;
    gap: 7px;
    min-height: 53px;
  }
  .overview-map-title {
    font-size: 11px;
  }
  .overview-map-title > svg {
    display: none;
  }
  .overview-total {
    flex-basis: 100%;
    font-size: 9px;
  }
  .overview-map-actions .btn {
    font-size: 9px;
    padding: 6px 7px;
    gap: 4px;
  }
  .overview-map-actions .btn svg {
    display: none;
  }
  .overview-map-stage {
    height: calc(100dvh - 245px);
    min-height: 480px;
  }
  .overview-search-panel {
    width: min(290px, calc(100% - 64px));
    right: 10px;
    top: 10px;
    padding: 12px;
    max-height: calc(100% - 75px);
  }
  .overview-panel-toggle {
    top: 10px;
    right: 10px;
    font-size: 10px;
    padding: 8px 10px;
  }
  .overview-map-canvas .leaflet-control-zoom {
    margin-left: 10px;
    margin-top: 10px;
  }
  .overview-map-legend {
    left: 10px;
    right: 10px;
    bottom: 41px;
    justify-content: space-around;
    gap: 7px;
    padding: 9px;
  }
  .overview-map-legend span {
    font-size: 8px;
    gap: 4px;
  }
  .overview-map-status {
    gap: 5px 12px;
    padding: 8px 10px;
    font-size: 9px;
  }
  .overview-map-instruction {
    left: 10px;
    top: auto;
    bottom: 86px;
    max-width: calc(100% - 20px);
    font-size: 10px;
  }
  .overview-summary {
    margin-top: 29px;
    padding: 0 5px;
  }
  .overview-summary-heading h2 {
    font-size: 16px;
  }
  .overview-summary-heading .btn {
    font-size: 9px;
    padding: 7px 9px;
  }
  .overview-workspace.overview-maximized {
    inset: 7px;
    z-index: 35;
  }
  .overview-results-list {
    max-height: 235px;
  }
}
@media print {
  .overview-workspace {
    display: none;
  }
  .overview-summary-heading {
    display: none;
  }
  .overview-summary {
    margin-top: 0;
  }
}
.overview-search-panel .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Full operational register: Feil og arbeid only. */
.content.work-orders-content {
  max-width: none;
  padding: 27px 24px 30px;
}
.work-list-page > .page-heading {
  margin-bottom: 22px;
}
.work-register-panel {
  overflow: hidden;
}
.work-tabs {
  display: flex;
  align-items: stretch;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  padding: 0 19px;
  overflow-x: auto;
}
.work-tabs .tab {
  white-space: nowrap;
  padding: 16px 14px;
  font-size: 11px;
}
.work-list-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 18px 18px 14px;
  flex-wrap: wrap;
  background: #fff;
}
.work-search {
  position: relative;
  flex: 1 1 270px;
  min-width: 220px;
}
.work-search > svg {
  position: absolute;
  width: 17px;
  height: 17px;
  left: 12px;
  top: 12px;
  color: #81988c;
}
.work-search input {
  width: 100%;
  border: 1px solid #dce5d8;
  padding: 11px 12px 11px 37px;
  border-radius: 7px;
  font-size: 11px;
  height: 41px;
  background: #fcfdfb;
}
.work-search input::placeholder {
  color: #92a195;
}
.work-filter {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 10px;
  color: #7c8e81;
  min-width: 112px;
  flex: 0 1 150px;
}
.work-filter select {
  max-width: 190px;
  width: 100%;
  border: 1px solid #dce5d8;
  padding: 9px;
  border-radius: 7px;
  height: 41px;
  font-size: 11px;
  color: #344f42;
  background: #fff;
}
.work-filter > span {
  padding-left: 1px;
}
.work-toolbar-buttons {
  display: flex;
  align-items: center;
  gap: 7px;
}
.work-toolbar-buttons .btn {
  font-size: 10px;
  padding: 10px;
  min-height: 39px;
}
.work-toolbar-buttons .btn svg {
  width: 15px;
  height: 15px;
}
.work-filter-chips {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  padding: 0 18px 13px;
}
.work-filter-chips > span {
  display: inline-block;
  background: #eff4ec;
  color: #607454;
  font-size: 9px;
  padding: 4px 8px;
  border: 1px solid #e1e8db;
  border-radius: 5px;
}
.work-filter-chips button {
  margin-left: 6px;
}
.work-list-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #edf0e8;
  padding: 11px 18px;
  background: #fafbf8;
}
.work-list-context > div:first-child {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 10px;
  color: #8a998b;
}
.work-list-context > div:first-child > strong {
  color: #405a48;
  font-size: 11px;
  font-weight: 600;
}
.work-list-context > div:first-child b {
  color: #617853;
  font-weight: 600;
  margin-left: 5px;
}
.work-context-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.work-context-actions > label {
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #7b8b7d;
  white-space: nowrap;
}
.work-context-actions > label input {
  accent-color: var(--teal);
  width: 12px;
  height: 12px;
}
.work-context-actions .btn {
  font-size: 10px;
  padding: 8px 11px;
}
.work-context-actions .btn svg {
  width: 15px;
  height: 15px;
}
.work-table-wrap {
  max-height: calc(100dvh - 382px);
  min-height: 220px;
  overflow: auto;
  scrollbar-width: thin;
  border-top: 1px solid var(--line);
  outline: none;
}
.work-list-table {
  table-layout: fixed;
  width: max-content;
  min-width: 100%;
  font-size: 10px;
  border-collapse: separate;
  border-spacing: 0;
}
.work-list-table th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #f6f8f2;
  color: #6d806e;
  font-size: 10px;
  font-weight: 550;
  border-bottom: 1px solid #dce5d6;
  white-space: normal;
  padding: 13px 11px;
  text-align: left;
  height: 43px;
}
.work-list-table th button {
  border: 0;
  background: none;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  display: flex;
  align-items: center;
  gap: 5px;
  text-align: left;
}
.work-list-table th button svg {
  width: 13px;
  height: 13px;
  color: var(--teal);
}
.work-list-table td {
  vertical-align: top;
  padding: 15px 11px;
  border-bottom: 1px solid #eaf0e2;
  color: #596f5a;
  font-size: 11px;
  white-space: normal;
  overflow-wrap: anywhere;
  background: #fff;
}
.work-list-table .work-check-col {
  width: 38px;
  position: sticky;
  left: 0;
  z-index: 3;
  padding: 17px 10px 10px 14px;
  background: #fff;
}
.work-list-table thead .work-check-col {
  background: #f6f8f2;
  z-index: 7;
  padding-top: 14px;
}
.work-list-table .work-col-number {
  position: sticky;
  left: 38px;
  z-index: 2;
  box-shadow: 4px 0 6px -6px #506445;
}
.work-list-table thead .work-col-number {
  z-index: 6;
}
.work-list-table tbody tr:hover td {
  background: #f8faf4;
}
.work-list-table tbody tr.work-selected td {
  background: #f0f6e8;
}
.work-list-table .row-check {
  width: 12px;
  height: 12px;
  accent-color: var(--teal);
}
.work-number {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 12px;
  font-weight: 650;
  color: #326e5b;
  display: block;
  white-space: nowrap;
}
.work-number:hover,
.work-inline-link:hover {
  text-decoration: underline;
}
.work-kind {
  display: block;
  margin: 5px 0;
  color: #68795e;
  font-size: 10px;
}
.work-subtext {
  display: block;
  color: #68795e;
  font-size: 10px;
  line-height: 1.55;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.work-dash {
  color: #a4b096;
  font-size: 10px;
}
.work-inline-link {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  color: #507d5b;
  font-size: 10px;
  margin-bottom: 5px;
}
.work-person,
.work-title {
  display: block;
  color: #405b42;
  font-weight: 550;
  font-size: 12px;
  line-height: 1.6;
}
.work-category {
  display: block;
  color: #68795e;
  font-size: 10px;
  margin-top: 5px;
}
.work-description {
  font-size: 10px;
  line-height: 1.65;
  color: #728667;
  margin: 7px 0 0;
  white-space: pre-wrap;
}
.work-date {
  color: #738661;
  font-size: 10px;
  white-space: nowrap;
}
.work-overdue {
  color: #b77857;
}
.work-address {
  font-size: 10px;
  line-height: 1.7;
}
.work-email {
  font-size: 10px;
}
.work-feedback {
  display: block;
  font-size: 10px;
  color: #6d8b54;
  margin-top: 6px;
}
.work-lock {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #9a916a;
  font-size: 10px;
  margin-top: 7px;
}
.work-lock svg {
  width: 12px;
  height: 12px;
}
.work-map-button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 29px;
  border: 1px solid #dce6d1;
  border-radius: 6px;
  background: #f0f6e6;
  color: #709557;
}
.work-map-button svg {
  width: 16px;
  height: 16px;
}
.work-cost {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: #6b8853;
}
.work-list-table .badge {
  font-size: 10px;
  padding: 4px 6px;
  white-space: normal;
}
.work-priority {
  margin-top: 8px;
}
.work-priority .priority {
  font-size: 10px;
}
.work-priority .priority-dot {
  width: 5px;
  height: 5px;
}
.work-column-filters th {
  top: 43px;
  padding: 7px 6px;
  height: 41px;
  background: #f8faf4;
}
.work-column-filters input,
.work-column-filters select {
  width: 100%;
  min-width: 0;
  padding: 6px;
  border: 1px solid #dfe8d6;
  border-radius: 4px;
  font-size: 10px;
  color: #627d50;
  background: #fff;
}
.work-column-filters input::placeholder {
  color: #a3b091;
}
.work-selection {
  margin: 0;
  padding: 12px 18px;
  border-top: 1px solid #dae7c8;
  border-bottom: 1px solid #dae7c8;
  border-radius: 0;
}
.work-selection .btn {
  font-size: 10px;
  padding: 6px 9px;
}
.work-selection > .work-inline-link {
  margin: 0 0 0 auto;
}
.work-list-footer {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 13px 18px;
  color: #94a280;
  font-size: 10px;
  border-top: 1px solid var(--line);
}
.work-page-size {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.work-page-size label {
  color: #9aab7f;
  font-size: 9px;
}
.work-page-size select {
  border: 1px solid #e0e9d3;
  border-radius: 5px;
  padding: 5px 7px;
  color: #789557;
  background: #fff;
  font-size: 10px;
}
.work-list-footer .pagination {
  gap: 12px;
}
.work-export-scope {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px 0 20px;
}
.work-export-scope label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}
.work-export-scope input {
  accent-color: var(--teal);
}
.work-modal-label {
  font-size: 12px;
  margin: 15px 0;
}
.work-map-modal {
  max-width: 820px;
  width: calc(100vw - 40px);
}
.work-map-caption {
  color: #718561;
  font-size: 11px;
  margin-top: 0;
}
.work-detail-map {
  height: 460px;
  min-height: 280px;
  border-radius: 8px;
  border: 1px solid var(--line);
  isolation: isolate;
}
.work-invoice-context {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #738761;
  font-size: 11px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.work-invoice-context strong {
  color: #476741;
}
.work-invoice-filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
  background: #f5f8ed;
  border: 1px solid #e1e9d1;
  border-radius: 8px;
  margin-bottom: 20px;
}
.work-invoice-filters label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 10px;
  color: #7c925f;
  flex: 1 1 130px;
}
.work-invoice-filters input,
.work-invoice-filters select {
  width: 100%;
  border: 1px solid #dce6cc;
  border-radius: 5px;
  background: #fff;
  padding: 8px;
  font-size: 11px;
  color: #5d7a44;
}
.work-invoice-filters .btn {
  height: 36px;
  font-size: 11px;
  padding: 8px 11px;
}
.work-invoice-order h2 {
  margin-top: 22px;
  font-size: 15px;
}
.work-invoice-link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--teal);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.work-invoice-link:hover {
  text-decoration: underline;
}
.work-children-modal {
  width: min(780px, calc(100vw - 36px));
  max-width: 780px;
}
.work-child-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.work-child-list > button {
  display: grid;
  gap: 5px;
  grid-template-columns: 1fr auto;
  padding: 12px;
  border: 1px solid #dce5d7;
  border-radius: 7px;
  background: #fff;
  text-align: left;
  color: #334f3d;
}
.work-child-list > button:hover {
  background: #f4f8ee;
}
.work-child-list > button strong,
.work-child-list > button > span:not(.badge),
.work-child-list > button small {
  grid-column: 1;
}
.work-child-list > button .badge {
  grid-column: 2;
  grid-row: 1;
}
.work-child-list > button small {
  color: #68795e;
}
.work-print-grid > .work-print-children {
  grid-column: 1 / -1;
}
.work-print-children > div {
  columns: 2;
  column-gap: 24px;
}
.work-print-children p {
  margin: 0 0 5px;
  break-inside: avoid;
}
.work-invoice-facts {
  display: grid;
  grid-template-columns: 1fr 1.3fr 2fr 1.5fr;
  gap: 10px;
  font-size: 11px;
  padding: 9px 0;
  border-block: 1px solid #dce5d7;
}
.work-invoice-facts strong {
  display: block;
  color: #68795e;
  font-size: 10px;
}
.work-invoice-type,
.work-invoice-description {
  margin: 8px 0;
  white-space: pre-wrap;
}
.work-invoice-no-lines {
  color: #68795e;
  margin: 8px 0;
  font-size: 11px;
}
.work-invoice-order .document-total {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  margin: 8px 0;
  border-top-width: 1px;
}
.work-invoice-order + .work-invoice-order {
  margin-top: 18px;
  padding-top: 4px;
}
.work-invoice-empty h2 {
  margin: 12px 0 8px;
}
@media (max-width: 600px) {
  .work-invoice-facts {
    grid-template-columns: 1fr 1fr;
  }
}
@media print {
  .work-invoice-link {
    color: #18291f;
    text-decoration: none;
  }
  #print-document:has(.work-invoice-order) {
    padding: 0;
    font-size: 11px;
  }
  #print-document .work-invoice-order {
    break-inside: avoid;
  }
  #print-document .work-invoice-order h2 {
    margin: 12px 0 8px;
    font-size: 13px;
  }
  #print-document .work-invoice-order + .work-invoice-order {
    margin-top: 12px;
  }
  #print-document .work-invoice-order .document-total {
    break-before: avoid;
  }
}
.work-invoice-order > p {
  white-space: pre-wrap;
}
.work-print-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.work-print-grid > div > strong {
  font-size: 10px;
  display: block;
  color: #68794c;
  margin-bottom: 4px;
}
.work-print-grid > div > div {
  font-size: 11px;
}
.work-print-grid .work-col-fault {
  grid-column: 1 / -1;
}
@media (min-width: 1900px) {
  .work-list-toolbar {
    flex-wrap: nowrap;
  }
  .work-search {
    min-width: 300px;
  }
  .work-filter {
    flex-basis: 165px;
  }
}
@media (max-width: 1150px) {
  .work-search {
    flex-basis: 100%;
  }
  .work-filter {
    flex: 1 1 110px;
  }
  .work-toolbar-buttons {
    margin-left: auto;
  }
  .work-list-context {
    align-items: flex-start;
  }
  .work-context-actions {
    flex-direction: column;
    gap: 7px;
    align-items: flex-end;
  }
  .work-table-wrap {
    max-height: calc(100dvh - 445px);
  }
}
@media (max-width: 760px) {
  .content.work-orders-content {
    padding: 20px 12px;
  }
  .work-list-page > .page-heading {
    padding: 0 4px;
  }
  .work-list-page > .page-heading p {
    max-width: 210px;
  }
  .work-list-page .heading-actions button.btn {
    display: inline-flex;
    font-size: 9px;
    padding: 7px 9px;
  }
  .work-tabs {
    padding: 0 8px;
    gap: 0;
  }
  .work-tabs .tab {
    font-size: 10px;
    padding: 13px 10px;
  }
  .work-list-toolbar {
    padding: 14px 11px;
    gap: 10px 8px;
  }
  .work-search {
    min-width: 0;
  }
  .work-search input {
    font-size: 10px;
    padding-right: 8px;
  }
  .work-filter {
    flex-basis: calc(50% - 8px);
  }
  .work-filter select {
    max-width: none;
    font-size: 10px;
    height: 37px;
  }
  .work-toolbar-buttons {
    width: 100%;
    justify-content: flex-end;
  }
  .work-toolbar-buttons .btn {
    padding: 6px 9px;
    min-height: 32px;
  }
  .work-list-context {
    padding: 11px;
    gap: 10px;
  }
  .work-list-context > div:first-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .work-list-context > div:first-child > span:last-child {
    max-width: 160px;
  }
  .work-context-actions .btn {
    font-size: 9px;
    padding: 7px 8px;
  }
  .work-context-actions > label {
    font-size: 8px;
  }
  .work-table-wrap {
    min-height: 290px;
    max-height: 60dvh;
  }
  .work-list-table td {
    padding: 13px 10px;
  }
  .work-list-footer {
    flex-wrap: wrap;
    padding: 12px;
    gap: 10px;
  }
  .work-page-size {
    margin-left: auto;
  }
  .work-list-footer > .pagination {
    margin-left: auto;
    width: 100%;
    justify-content: flex-end;
  }
  .work-selection {
    padding: 10px;
    gap: 6px;
  }
  .work-selection .btn {
    font-size: 9px;
  }
  .work-selection > .work-inline-link {
    margin-left: 0;
  }
  .work-filter-chips {
    padding-left: 11px;
    padding-right: 11px;
  }
  .work-map-modal {
    width: calc(100vw - 20px);
  }
  .work-detail-map {
    height: 55dvh;
  }
  .work-invoice-modal .modal-footer {
    flex-wrap: wrap;
  }
  .work-invoice-modal .modal-footer .btn {
    font-size: 9px;
    padding: 8px;
  }
  .work-invoice-filters {
    gap: 10px;
    padding: 12px;
  }
  .work-print-grid {
    grid-template-columns: 1fr;
  }
}
@media print {
  #print-document .work-print-grid {
    grid-template-columns: 1fr 1fr;
  }
  #print-document .work-map-button {
    display: none;
  }
  #print-document .work-inline-link,
  #print-document .work-number {
    color: inherit;
    font: inherit;
  }
}
/* Counts are shown consistently in project cards and detail headers. */
.project-object-counts { display:flex; flex-wrap:wrap; gap:7px 14px; margin:10px 0; color:#536f61; font-size:11px; }
.project-object-counts > span { display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
.project-object-counts svg { width:14px; height:14px; }
.project-object-count { font-variant-numeric:tabular-nums; font-weight:600; }
.drawer-readonly fieldset:disabled :is(input,select,textarea) { opacity:1; color:var(--ink); -webkit-text-fill-color:var(--ink); }
.drawer-readonly #entity-form button { display:none; }
.drawer-readonly .readonly-caption { color:#587267; font-size:11px; }

.superadmin-users{display:flex;align-items:center;gap:9px;width:100%;margin:0 0 12px;padding:10px 11px;border:1px solid #48675e;border-radius:7px;background:#203f37;color:#e5eee5;text-align:left;font:600 12px var(--font);white-space:nowrap;cursor:pointer}
.superadmin-users svg{width:16px;height:16px;flex-shrink:0}.superadmin-users span{flex:1}.superadmin-users:hover{background:#2d5145}
.superadmin-user-list{margin-top:14px;max-height:50dvh;overflow:auto}.superadmin-user{display:flex;align-items:center;gap:12px;padding:12px 4px;width:100%;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);text-align:left;cursor:pointer}.superadmin-user:hover,.superadmin-user:focus-visible{background:var(--teal-light)}.superadmin-user>span:nth-child(2){flex:1;min-width:0}.superadmin-user strong,.superadmin-user small{display:block;overflow-wrap:anywhere}.superadmin-user strong{font-size:13px}.superadmin-user small{font-size:11px;color:var(--muted);margin-top:4px}.superadmin-user>svg{width:16px;height:16px;flex-shrink:0}
.superadmin-profile{display:grid;grid-template-columns:120px 1fr;gap:12px;font-size:13px}.superadmin-profile dd{margin:0;overflow-wrap:anywhere}.superadmin-profile dt{color:var(--muted)}
@media screen{
  body .sidebar:has(>.superadmin-users){padding-block:18px 12px;overflow-y:auto;overscroll-behavior:contain}
  body .sidebar:has(>.superadmin-users) .brand{padding-bottom:16px}
  body .sidebar:has(>.superadmin-users) .tenant-box{margin-bottom:12px;padding-block:9px}
  body .sidebar:has(>.superadmin-users) .nav-label{margin-bottom:5px}
  body .sidebar:has(>.superadmin-users) .nav-label.admin{margin-top:15px}
  body .sidebar:has(>.superadmin-users) .nav-item{min-height:37px;padding-block:8px;margin-block:1px}
  body .sidebar:has(>.superadmin-users) .sidebar-bottom{padding-top:14px;flex-shrink:0}
  body.user-preview{--user-preview-height:36px}
  body.user-preview #app{padding-top:var(--user-preview-height)}
  body.user-preview .app-shell,body.user-preview .main{height:calc(100dvh - var(--user-preview-height));min-height:0}
  body.user-preview .sidebar{top:var(--user-preview-height);height:calc(100dvh - var(--user-preview-height))}
  body.user-preview #content.pm-host:has(>.pm-header-docked){height:calc(100dvh - var(--user-preview-height))}
  body.user-preview .pm-host>.pm-workspace.pm-maximized{top:var(--user-preview-height);height:calc(100dvh - var(--user-preview-height))}
  .user-preview-bar{position:fixed;inset:0 0 auto;z-index:3500;height:var(--user-preview-height);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:3px 14px;background:#fff0c9;border-bottom:1px solid #c9a85f;color:#574214;font-size:12px}
  .user-preview-bar>div{display:flex;align-items:center;gap:8px;min-width:0}.user-preview-bar>div>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-preview-bar small{font-size:11px}.user-preview-bar svg{width:15px;height:15px;flex-shrink:0}
  .user-preview-bar button{display:flex;align-items:center;gap:6px;flex-shrink:0;min-height:28px;padding:3px 9px;background:#fffaf0;border:1px solid #b89653;border-radius:5px;color:#574214;font:600 11px var(--font);cursor:pointer}
}
@media screen and (max-width:760px){body.user-preview{--user-preview-height:52px}.user-preview-bar{padding:4px 8px;gap:6px}.user-preview-bar small{display:block;font-size:10px;overflow:hidden;text-overflow:ellipsis}.user-preview-bar button{max-width:125px;font-size:10px;line-height:1.3}.user-preview-bar button span{white-space:normal}}
@media print{.user-preview-bar{display:none}}
