:root {
  --ink: #203b42;
  --muted: #62787e;
  --teal: #166958;
  --line: #dce6e7;
  --purple: #7564ac;
  --bg: #eff4f4;
  --white: #fff;
  --shadow: 0 12px 35px #203b4208;
  font-family:
    Inter,
    Segoe UI,
    system-ui,
    sans-serif;
  color: var(--ink);
  font-size: 14px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 75% 0, #dfe8fb90, transparent 50%),
    radial-gradient(ellipse at 0 95%, #d4ede290, transparent 45%), var(--bg);
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #8364c1;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--teal);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.2px;
  font-weight: 650;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.65;
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  height: 100vh;
  position: sticky;
  top: 0;
  background: #fbfdfcd9;
  backdrop-filter: blur(20px);
  border-right: 1px solid #fff;
  padding: 30px 17px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px 30px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.6px;
}
.brand small {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 500;
  display: block;
  margin-top: 3px;
}
.brandmark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 44px;
  background: linear-gradient(145deg, #225c58, #153e40);
  border-radius: 13px;
  color: white;
  font-size: 22px;
  box-shadow: 0 5px 12px #173e4020;
}
.navlabel {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #89999d;
  padding: 14px 14px 9px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  text-align: left;
  color: #647b7f;
  margin: 2px 0;
  min-height: 44px;
}
.nav:hover {
  background: #eaf1f0;
}
.nav.active {
  background: #dfeee8;
  color: #195a49;
  font-weight: 650;
}
.nav.active .icon {
  color: #166958;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
}
.system-label {
  font-size: 11px;
  color: #607c71;
  background: #edf5ef;
  border: 1px solid #dfebe2;
  padding: 11px;
  border-radius: 9px;
}
.system-label:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4e9473;
  margin-right: 7px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding: 17px 4px 0;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e5e1f3;
  color: #6d579e;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.profile .grow {
  flex: 1;
}
.profile strong {
  font-size: 12px;
}
.profile small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
}
.iconbtn {
  border: 0;
  background: transparent;
  padding: 8px;
  display: inline-flex;
  border-radius: 8px;
  color: var(--muted);
}
.topbar {
  min-height: 76px;
  border-bottom: 1px solid #ffffffc0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  background: #ffffff55;
  gap: 15px;
}
.crumb {
  color: #839397;
  font-size: 12px;
}
.crumb b {
  color: #4b656c;
  font-weight: 500;
}
.top-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}
.chip {
  font-size: 11px;
  padding: 7px 10px;
  border-radius: 20px;
  background: #fff9;
  border: 1px solid #fff;
}
.content {
  padding: 30px 36px;
  max-width: 1600px;
  margin: auto;
}
.pagehead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 2px;
  color: #58867b;
  font-weight: 650;
  margin-bottom: 8px;
}
.subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
  line-height: 1.6;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 41px;
  padding: 10px 15px;
  border-radius: 9px;
  background: #ffffffd9;
  border: 1px solid #d5e1e0;
  color: #34575d;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.btn:hover {
  background: #e9f1ee;
}
.btn.primary {
  background: #235e50;
  border-color: #235e50;
  color: white;
  box-shadow: 0 4px 10px #174e4112;
}
.btn.primary:hover {
  background: #174b3f;
}
.btn.danger {
  color: #9b4041;
  background: #fff7f5;
  border-color: #efceca;
}
.btn.tiny {
  font-size: 11px;
  min-height: 33px;
  padding: 7px 10px;
}
.btn.link {
  border-color: transparent;
  background: transparent;
  color: var(--teal);
}
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  padding: 27px 30px;
  background: linear-gradient(110deg, #204e46, #316964);
  color: #fff;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: 0 14px 32px #225b4815;
}
.hero:after {
  content: "";
  width: 280px;
  height: 280px;
  border: 1px solid #ffffff20;
  border-radius: 50%;
  position: absolute;
  right: -25px;
  top: -130px;
  box-shadow:
    0 0 0 35px #ffffff06,
    0 0 0 70px #ffffff04;
  pointer-events: none;
}
.hero small {
  color: #b9d5c9;
}
.hero h2 {
  font-size: 23px;
  margin: 8px 0;
  letter-spacing: -0.6px;
}
.hero p {
  font-size: 12px;
  color: #d3e4df;
  max-width: 450px;
}
.hero .actions {
  align-content: center;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}
.hero .btn {
  background: #f1f7ed;
  color: #214f42;
  border-color: transparent;
}
.hero .btn.ghost {
  background: #ffffff10;
  color: white;
  border-color: #ffffff35;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 24px;
}
.kpi {
  border: 1px solid #fff;
  background: #ffffffbf;
  backdrop-filter: blur(15px);
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 19px 21px;
  display: block;
  text-align: left;
  color: var(--ink);
  width: 100%;
}
.kpi:hover {
  border-color: #b9d6ca;
  transform: translateY(-1px);
}
.kpi .kt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #668084;
}
.kpi .kt .icon {
  color: #6a9a8d;
}
.kpi strong {
  display: block;
  font-size: 34px;
  letter-spacing: -1px;
  margin: 13px 0 7px;
  font-weight: 600;
}
.kpi small {
  font-size: 11px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}
.card {
  background: #ffffffd9;
  border: 1px solid #fff;
  border-radius: 15px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}
.cardhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  gap: 15px;
}
.cardhead p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.pad {
  padding: 0 24px 24px;
}
.bars {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.barline {
  display: grid;
  grid-template-columns: 115px 1fr 35px;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.barline span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bartrack {
  height: 9px;
  background: #eef2f0;
  border-radius: 20px;
  overflow: hidden;
}
.barfill {
  height: 100%;
  background: linear-gradient(90deg, #609c87, #93bca7);
  border-radius: 20px;
}
.activity {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1f0;
}
.activity:last-child {
  border: 0;
}
.activity .avatar {
  background: #edf1ee;
  color: #6c8a77;
  width: 30px;
  height: 30px;
}
.activity strong {
  font-size: 12px;
  display: block;
  font-weight: 550;
}
.activity p {
  font-size: 11px;
  color: var(--muted);
}
.activity time {
  font-size: 10px;
  white-space: nowrap;
  margin-left: auto;
  color: #8b9a9d;
}
.summary-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding: 20px 24px;
  background: #eff0f8;
  border: 1px solid #e2e3f3;
  border-radius: 13px;
  align-items: center;
}
.summary-strip strong {
  font-size: 13px;
}
.summary-strip p {
  font-size: 12px;
  color: #75768d;
  margin-top: 4px;
}
.footer {
  font-size: 11px;
  color: #89999d;
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.filters input {
  flex: 1;
  min-width: 180px;
}
.filters input,
.filters select {
  padding: 11px 13px;
  border: 1px solid #d4e0e0;
  background: #ffffffdb;
  border-radius: 9px;
  color: var(--ink);
  font-size: 12px;
}
.tablewrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  text-align: left;
  background: #f3f7f5;
  color: #73888b;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 13px 17px;
  font-weight: 600;
  white-space: nowrap;
}
td {
  padding: 15px 17px;
  border-bottom: 1px solid #edf1ef;
  vertical-align: middle;
}
td strong {
  font-size: 13px;
  font-weight: 600;
  display: block;
}
td small {
  display: block;
  margin-top: 4px;
}
tbody tr:hover {
  background: #f8fbf9;
}
.pill {
  display: inline-block;
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #e8f3eb;
  color: #407952;
  white-space: nowrap;
}
.pill.warn {
  background: #fff2da;
  color: #976c2f;
}
.pill.gray {
  background: #eff1f4;
  color: #74818d;
}
.pill.purple {
  background: #eeeaf7;
  color: #78649f;
}
.empty {
  padding: 42px 25px;
  text-align: center;
  color: #778c90;
  line-height: 1.8;
  font-size: 13px;
}
.tablefoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  gap: 15px;
  font-size: 12px;
  color: var(--muted);
}
.notice {
  background: #fff7e8;
  color: #806137;
  border: 1px solid #eee0c5;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 18px;
}
.notice.info {
  background: #eaf2f7;
  color: #4e6a83;
  border-color: #dce8ef;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.teamcard {
  padding: 23px;
}
.teamcard .personhead {
  display: flex;
  align-items: center;
  gap: 12px;
}
.teamcard .avatar {
  width: 43px;
  height: 43px;
}
.teamcard .count {
  font-size: 32px;
  font-weight: 600;
  display: block;
  margin: 20px 0 3px;
}
.teamcard .actions {
  margin-top: 19px;
}
.upload-zone {
  padding: 32px;
  border: 1.5px dashed #b6cec5;
  border-radius: 14px;
  background: #f6faf7;
  text-align: center;
  margin-bottom: 20px;
}
.upload-zone .icon {
  width: 32px;
  height: 32px;
  color: #609782;
}
.upload-zone h3 {
  margin: 13px 0 6px;
}
.upload-zone p {
  font-size: 12px;
  color: var(--muted);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 550;
  min-width: 0;
}
.field input,
.field select,
.field textarea {
  font-size: 14px;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid #cddcda;
  border-radius: 8px;
  color: var(--ink);
  width: 100%;
  min-height: 43px;
}
.field textarea {
  resize: vertical;
  min-height: 90px;
}
.field small {
  font-weight: 400;
  font-size: 11px;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.full {
  grid-column: 1/-1;
}
.field input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  padding: 9px 0;
}
.check input {
  accent-color: #286958;
  width: 17px;
  height: 17px;
}
.formerror {
  color: #a54843;
  font-size: 12px;
  line-height: 1.6;
  grid-column: 1/-1;
  white-space: pre-line;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
dialog {
  border: 1px solid #fff;
  border-radius: 19px;
  padding: 0;
  width: min(780px, calc(100vw - 30px));
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 30px 100px #18363d40;
  background: #fafdfc;
}
dialog::backdrop {
  background: #122f4555;
  backdrop-filter: blur(5px);
}
.modalhead {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fafdfcf2;
  z-index: 1;
}
.modalbody {
  padding: 25px;
}
.section-title {
  font-size: 13px;
  margin: 25px 0 13px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.note {
  padding: 13px;
  background: #f0f5f2;
  border-radius: 9px;
  margin: 8px 0;
  font-size: 12px;
}
.note p {
  white-space: pre-wrap;
}
.files {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #f0f4f7;
  border-radius: 8px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.file a {
  flex: 1;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 25px;
}
.login-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 960px;
  width: 100%;
  border: 1px solid #fff;
  background: #ffffffbc;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 35px 90px #2b576e16;
}
.login-brand {
  background: linear-gradient(145deg, #1b4642, #346c66);
  padding: 45px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 530px;
  position: relative;
  overflow: hidden;
}
.login-brand:after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid #ffffff20;
  border-radius: 50%;
  bottom: -180px;
  right: -120px;
  box-shadow:
    0 0 0 40px #ffffff05,
    0 0 0 80px #ffffff04;
}
.login-brand h1 {
  font-size: 38px;
  line-height: 1.2;
  margin: 25px 0 15px;
}
.login-brand p {
  color: #c1d7ce;
  font-size: 14px;
}
.login-brand .brand {
  padding: 0;
  color: #fff;
}
.login-brand .brand small {
  color: #bbd2c8;
}
.login-form {
  padding: 45px;
}
.login-form h2 {
  font-size: 25px;
  margin: 8px 0 12px;
}
.login-form form {
  margin-top: 25px;
  display: grid;
  gap: 17px;
}
.login-form .btn {
  width: 100%;
}
.login-form small {
  line-height: 1.7;
}
.loading {
  padding: 50px;
  text-align: center;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 22px;
  max-width: 90vw;
  background: #203e3d;
  color: #fff;
  box-shadow: 0 8px 30px #203e3d25;
  border-radius: 12px;
  font-size: 13px;
  z-index: 100;
  line-height: 1.5;
}
#toast:empty {
  display: none;
}
.offline {
  background: #9a5742;
  color: white;
  padding: 8px;
  text-align: center;
  font-size: 12px;
}
.map-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}
.map-svg {
  width: 100%;
  display: block;
  background: #eff5f0;
  border-radius: 10px;
}
.map-svg path {
  stroke: #fff;
  stroke-width: 2;
  cursor: pointer;
}
.map-svg path:hover {
  filter: brightness(0.9);
  stroke: #4a6a61;
}
.map-svg text {
  pointer-events: none;
  fill: #234a42;
  font-size: 15px;
  font-weight: 650;
}
.commune-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.commune {
  border: 1px solid #dce6e1;
  border-radius: 9px;
  padding: 14px;
  background: white;
  color: var(--ink);
  text-align: left;
}
.commune strong {
  display: block;
  font-size: 24px;
  margin-top: 7px;
}
.commune small {
  font-size: 11px;
}
.print-only {
  display: none;
}
.code {
  display: block;
  padding: 14px;
  background: #eef2f0;
  border-radius: 9px;
  font-family: monospace;
  overflow-wrap: anywhere;
  user-select: all;
  line-height: 1.8;
}
.large {
  font-size: 17px;
}
.large td,
.large .btn,
.large .nav,
.large .field,
.large .subtitle {
  font-size: 16px;
}
.large small {
  font-size: 13px;
}
.stack {
  display: grid;
  gap: 20px;
}
.right {
  text-align: right;
}
.subtle {
  font-size: 11px;
  color: var(--muted);
}
.progress-row {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.progress-row:last-child {
  border: 0;
}
@media (min-width: 1500px) {
  .content {
    padding: 38px 46px;
  }
  .hero {
    padding: 34px;
  }
  .kpi {
    padding: 23px;
  }
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 200px 1fr;
  }
  .sidebar {
    padding: 25px 10px;
  }
  .content {
    padding: 25px;
  }
  .topbar {
    padding: 18px 25px;
  }
  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid3 {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .map-layout {
    grid-template-columns: 1fr;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero .actions {
    justify-content: flex-start;
  }
  .barline {
    grid-template-columns: 130px 1fr 35px;
  }
}
@media (max-width: 720px) {
  .layout {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 13px 15px;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    padding: 0 0 13px;
    font-size: 18px;
  }
  .brandmark {
    width: 32px;
    height: 35px;
    font-size: 18px;
  }
  .brand small {
    font-size: 8px;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 4px;
  }
  .nav {
    min-width: max-content;
    font-size: 12px;
    padding: 10px;
  }
  .nav .icon {
    width: 16px;
    height: 16px;
  }
  .navlabel,
  .sidebar-bottom {
    display: none;
  }
  .topbar {
    padding: 13px 17px;
    min-height: 60px;
  }
  .top-tools {
    gap: 5px;
  }
  .chip {
    font-size: 10px;
  }
  .crumb {
    display: none;
  }
  .top-tools {
    width: 100%;
    justify-content: space-between;
  }
  .content {
    padding: 23px 16px;
  }
  .pagehead {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  h1 {
    font-size: 27px;
  }
  .hero {
    padding: 23px;
    border-radius: 14px;
  }
  .hero h2 {
    font-size: 22px;
  }
  .kpis {
    gap: 10px;
  }
  .kpi {
    padding: 15px;
  }
  .kpi strong {
    font-size: 29px;
  }
  .kpi .kt {
    font-size: 11px;
  }
  .kpi small {
    font-size: 10px;
  }
  .grid2,
  .grid3 {
    grid-template-columns: 1fr;
  }
  .cardhead {
    padding: 19px;
  }
  .pad {
    padding: 0 19px 20px;
  }
  .summary-strip {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
  .modalbody {
    padding: 20px;
  }
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-brand {
    min-height: 210px;
    padding: 25px;
  }
  .login-brand h1 {
    font-size: 27px;
    margin: 17px 0 10px;
  }
  .login-brand .subtle {
    display: none;
  }
  .login-form {
    padding: 27px;
  }
  .login-brand p {
    font-size: 12px;
  }
  .filters select {
    max-width: 100%;
    flex: 1;
  }
  .footer {
    flex-direction: column;
    font-size: 10px;
  }
  .tablefoot {
    flex-wrap: wrap;
  }
  .commune-grid {
    grid-template-columns: 1fr 1fr;
  }
  .actions .btn {
    min-height: 43px;
  }
  td,
  th {
    padding: 12px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
  .upload-zone {
    padding: 22px 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    transform: none !important;
  }
}
.sidebar nav {
  min-height: 0;
  overflow-y: auto;
}
.sidebar-bottom {
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .sidebar nav {
    overflow-x: auto;
    overflow-y: hidden;
  }
  .cardhead .btn.link {
    white-space: nowrap;
  }
}
@media print {
  body {
    background: white;
  }
  .sidebar,
  .topbar,
  .pagehead .actions,
  .filters,
  .footer,
  .no-print,
  #toast,
  dialog {
    display: none !important;
  }
  .layout {
    display: block;
  }
  .content {
    padding: 0;
  }
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
  .kpi {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  .dashboard-grid {
    display: block;
  }
  .card {
    margin-bottom: 15px;
  }
  .barfill {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .print-only {
    display: block;
  }
  .tablewrap {
    overflow: visible;
  }
  .hero {
    color: #234;
    background: white;
  }
  .hero p {
    color: #345;
  }
  .hero .actions {
    display: none;
  }
  @page {
    size: A4 landscape;
    margin: 12mm;
  }
}

/* Call workspace */
.call-filters {
  display: flex;
  gap: 14px;
  align-items: end;
  flex-wrap: wrap;
}
.call-filters .field {
  flex: 1;
  min-width: 150px;
}
.call-filters button {
  margin-bottom: 2px;
}
.call-contact {
  padding: 18px 0;
}
.call-contact strong {
  font-size: 28px;
  letter-spacing: 1px;
}
.call-watermark {
  font-size: 12px;
  color: #597778;
  text-align: right;
  border-bottom: 1px solid #d7e6e0;
  padding-bottom: 8px;
}
.call-questions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.call-question-row {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #dce7e2;
}
.call-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.call-metrics > div {
  padding: 20px;
  background: linear-gradient(135deg, #e5f2ec, #edf0fa);
  border-radius: 18px;
}
.call-metrics strong {
  display: block;
  font-size: 30px;
  color: #173e40;
}
.call-metrics span {
  font-size: 13px;
  color: #526a68;
}
#callReport .note p,
#callReport td p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#callLeaseStatus {
  font-size: 14px;
}
@media (max-width: 650px) {
  .call-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .call-questions,
  .call-question-row {
    grid-template-columns: 1fr;
  }
  .call-filters .field {
    min-width: 100%;
  }
  .call-watermark {
    text-align: left;
  }
}

.call-setup {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  margin-bottom: 22px;
  background: linear-gradient(120deg, #e2f2eb, #eceafa);
}
.call-setup p {
  max-width: 650px;
  color: #526a68;
  margin-top: 8px;
}
.call-setup .btn {
  flex-shrink: 0;
}
.call-filter-extra {
  margin-top: 18px;
  border-top: 1px solid #dce7e2;
  padding-top: 16px;
}
.call-filter-extra summary {
  cursor: pointer;
  color: #235f55;
  font-weight: 600;
  margin-bottom: 14px;
}
.call-outcome-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #dce7e2;
}
.call-question-row {
  background: #f7faf9;
  padding: 16px;
  margin: 12px 0;
  border-radius: 12px;
}
.call-question-row .field:nth-of-type(4) {
  grid-column: span 2;
}
@media (max-width: 650px) {
  .call-setup {
    display: block;
  }
  .call-setup .btn {
    margin-top: 16px;
  }
  .call-outcome-row {
    grid-template-columns: 1fr;
  }
  .call-question-row .field:nth-of-type(4) {
    grid-column: auto;
  }
}

.call-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid #dce7e2;
}
.call-multi {
  border: 1px solid #cbded4;
  border-radius: 12px;
  padding: 14px;
}
.call-multi legend {
  font-weight: 600;
  padding: 0 5px;
}
.call-multi small {
  display: block;
  margin-bottom: 10px;
}
.call-multi .check {
  margin: 10px 0;
}
.call-choice-options {
  grid-column: 1/-1;
}
.call-choice-options[hidden] {
  display: none;
}
.agenda-editor {
  border: 1px solid #d2e3db;
  border-radius: 18px;
  padding: 18px;
  background: #f6faf8;
}
.agenda-pickerbar,
.agenda-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.agenda-pickgrid {
  display: grid;
  grid-template-columns: 64px repeat(7, minmax(0, 1fr));
  gap: 5px;
  max-width: 700px;
  margin: auto;
}
.agenda-pickgrid > span {
  text-align: center;
  font-weight: 700;
  padding: 6px;
}
.agenda-date,
.agenda-week,
.agenda-day {
  border: 0;
  border-radius: 9px;
  padding: 10px 3px;
  background: #e9f1ed;
  color: #173e40;
  cursor: pointer;
  font: inherit;
}
.agenda-date.selected {
  background: #236b51;
  color: white;
  outline: 2px solid #173e40;
}
.agenda-week {
  font-size: 11px;
  background: #e9e5f4;
}
.muted {
  opacity: 0.5;
}
.agenda-calendar-scroll {
  overflow-x: auto;
  margin-top: 20px;
}
.agenda-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(100px, 1fr));
  min-width: 720px;
  border-top: 1px solid #dbe4e0;
  border-left: 1px solid #dbe4e0;
}
.agenda-weekday {
  text-align: center;
  background: #edf4f0;
  padding: 12px 4px;
  font-weight: 600;
}
.agenda-cell {
  min-height: 140px;
  padding: 6px;
  border-right: 1px solid #dbe4e0;
  border-bottom: 1px solid #dbe4e0;
}
.agenda-day {
  background: transparent;
  font-weight: 700;
  padding: 6px 10px;
}
.agenda-cell.is-today .agenda-day {
  background: #173e40;
  color: white;
}
.agenda-cell.chosen {
  box-shadow: inset 0 0 0 2px #66588e;
}
.agenda-event {
  display: block;
  width: 100%;
  margin: 5px 0;
  text-align: left;
  border: 1px solid #b4d3c2;
  background: #e2f1e8;
  color: #173e40;
  border-radius: 8px;
  padding: 7px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.agenda-event span,
.agenda-event small {
  display: block;
}
.agenda-event.availability {
  border: 1px dashed #796aa1;
  background: #f1eef8;
}
.agenda-event.conflict {
  background: #fff0d9;
  border-color: #c88c24;
}
.agenda-event.cancelled {
  background: #f0f0f0;
  color: #666;
  text-decoration: line-through;
}
.agenda-event.completed {
  background: #edf1f5;
  border-color: #aebfcb;
}
.agenda-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.agenda-detail .note {
  overflow-wrap: anywhere;
}
.agenda-toolbar h2 {
  text-transform: capitalize;
}
.agenda-date:focus-visible,
.agenda-week:focus-visible,
.agenda-event:focus-visible,
.agenda-day:focus-visible {
  outline: 3px solid #796aa1;
  outline-offset: 2px;
}
@media (max-width: 650px) {
  .agenda-detail {
    grid-template-columns: 1fr;
  }
  .agenda-editor {
    padding: 10px;
  }
  .agenda-pickgrid {
    grid-template-columns: 46px repeat(7, minmax(0, 1fr));
    gap: 3px;
  }
  .agenda-date {
    padding: 9px 1px;
  }
  .agenda-week {
    font-size: 9px;
  }
}
