@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap");

@layer base {
  :root {
    font-family: "DM Sans", sans-serif;
    color: #17231e;
    background: #f4f7f5;
    font-synthesis: none;
  }
  body {
    min-width: 1180px;
    min-height: 100vh;
    background: #f4f7f5;
  }
  button,
  input,
  select {
    font: inherit;
  }
  button {
    cursor: pointer;
  }
}

* {
  scrollbar-width: thin;
  scrollbar-color: #cad7d0 transparent;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  background: #113b2d;
  color: white;
  padding: 24px 16px 18px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 0 8px 26px;
  color: white;
  border-bottom: 1px solid #ffffff17;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #d9f667;
  color: #173d2f;
  display: grid;
  place-items: center;
}
.brand b {
  display: block;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -0.3px;
}
.brand small {
  display: block;
  margin-top: 3px;
  color: #a9c3b9;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.65px;
}
.sidebar nav {
  padding-top: 25px;
}
.nav-label {
  color: #77998d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 0 12px;
  margin-bottom: 9px;
}
.sidebar nav button {
  position: relative;
  width: 100%;
  border: 0;
  color: #bad0c7;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 500;
  margin: 3px 0;
}
.sidebar nav button:hover {
  background: #ffffff0c;
  color: white;
}
.sidebar nav button.active {
  background: #ffffff13;
  color: white;
}
.sidebar nav button.active:before {
  content: "";
  position: absolute;
  left: -16px;
  width: 3px;
  height: 24px;
  border-radius: 0 3px 3px 0;
  background: #d9f667;
}
.impact-card {
  margin-top: auto;
  border: 1px solid #ffffff16;
  background: #ffffff09;
  border-radius: 12px;
  padding: 15px;
}
.impact-card > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #d9f667;
  background: #d9f66712;
}
.impact-card p {
  color: #9ab6ab;
  font-size: 11px;
  margin: 11px 0 2px;
}
.impact-card b {
  font-size: 23px;
}
.impact-card small {
  color: #91aa9f;
  font-size: 10px;
  margin-left: 4px;
}
.impact-card > div {
  height: 4px;
  border-radius: 5px;
  overflow: hidden;
  background: #ffffff19;
  margin-top: 10px;
}
.impact-card i {
  height: 100%;
  display: block;
  background: #d9f667;
  border-radius: 5px;
}
.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #ffffff16;
  margin-top: 17px;
  padding: 17px 5px 0;
}
.sidebar-foot > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #255744;
  font-size: 10px;
  font-weight: 700;
}
.sidebar-foot b,
.sidebar-foot small {
  display: block;
}
.sidebar-foot b {
  font-size: 10px;
}
.sidebar-foot small {
  color: #7f9f93;
  font-size: 9px;
  margin-top: 2px;
}
main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 68px;
  border-bottom: 1px solid #e3e9e5;
  background: #fff;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #87958f;
}
.breadcrumb b {
  color: #425049;
  font-weight: 600;
}
.profile {
  display: flex;
  align-items: center;
  gap: 9px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dff1e8;
  color: #16623f;
  font-size: 13px;
  font-weight: 700;
}
.profile b,
.profile small {
  display: block;
}
.profile b {
  font-size: 12px;
}
.profile small {
  color: #8a9892;
  font-size: 9px;
  margin-top: 2px;
}
.profile > .icon {
  color: #819089;
  margin-left: 5px;
}
.page {
  padding: 27px 32px 38px;
  max-width: 1500px;
  margin: auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
}
.page-head h1 {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.55px;
  line-height: 1.2;
  color: #14271e;
}
.page-head p {
  color: #75827c;
  font-size: 12px;
  margin-top: 6px;
}
.primary,
.secondary {
  height: 38px;
  border-radius: 7px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: 0.15s;
}
.primary {
  background: #157347;
  color: white;
  box-shadow: 0 2px 5px #0e51302b;
}
.primary:hover {
  background: #105e3a;
  transform: translateY(-1px);
}
.secondary {
  border-color: #d9e1dc;
  color: #3a4942;
  background: white;
}
.secondary:hover {
  background: #f6f9f7;
  border-color: #bdcbc3;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 11px;
}
.kpi {
  background: white;
  border: 1px solid #e2e9e5;
  border-radius: 10px;
  padding: 15px;
  min-width: 0;
  box-shadow: 0 1px 2px #15261e08;
}
.kpi-icon {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.kpi-icon .icon {
  width: 17px;
}
.kpi-icon.green {
  background: #e0f3e8;
  color: #177346;
}
.kpi-icon.teal {
  background: #dff3f1;
  color: #18746b;
}
.kpi-icon.amber {
  background: #fff0d8;
  color: #b86b0c;
}
.kpi-icon.blue {
  background: #e2edfb;
  color: #2a68a7;
}
.kpi-icon.red {
  background: #fae7e4;
  color: #b94a39;
}
.kpi-icon.purple {
  background: #eee8fa;
  color: #6e52a6;
}
.kpi-label {
  color: #6f7d76;
  font-size: 10px;
  font-weight: 600;
}
.kpi-value {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-top: 4px;
  white-space: nowrap;
}
.kpi-value small {
  color: #77847e;
  font-size: 11px;
  font-weight: 500;
  margin-left: 4px;
}
.kpi p {
  color: #9aa49f;
  font-size: 9px;
  margin-top: 5px;
}
.charts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.panel {
  border: 1px solid #e2e9e5;
  border-radius: 10px;
  background: white;
  padding: 20px;
  box-shadow: 0 1px 2px #15261e08;
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.panel-head h2 {
  font-size: 14px;
}
.panel-head p {
  color: #8a9690;
  font-size: 10px;
  margin-top: 4px;
}
.legend {
  display: flex;
  gap: 13px;
  font-size: 9px;
  color: #66736d;
}
.legend span:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
}
.lg-surplus:before {
  background: #173d2f;
}
.lg-collected:before {
  background: #27a568;
}
.lg-waste:before {
  background: #edae49;
}
.line-chart {
  margin-top: 14px;
  height: 240px;
}
.line-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.line-chart text {
  font-size: 9px;
  fill: #8c9892;
}
.grid {
  stroke: #edf1ee;
  stroke-width: 1;
}
.line {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.line.surplus,
.dot.surplus {
  stroke: #173d2f;
  fill: white;
}
.line.collected,
.dot.collected {
  stroke: #27a568;
  fill: white;
}
.line.waste,
.dot.waste {
  stroke: #edae49;
  fill: white;
}
.dot:hover {
  r: 6;
}
.period {
  font-size: 9px;
  color: #708078;
  background: #f4f7f5;
  padding: 5px 8px;
  border-radius: 5px;
}
.bars {
  margin-top: 23px;
}
.bar-row {
  margin-bottom: 16px;
}
.bar-row > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-bottom: 6px;
}
.bar-row b {
  font-size: 9px;
  color: #55635c;
}
.bar-track {
  height: 9px;
  border-radius: 5px;
  background: #edf2ef;
  overflow: hidden;
}
.bar-track i {
  height: 100%;
  display: block;
  border-radius: 5px;
  background: linear-gradient(90deg, #2a9662, #63ba88);
}
.insight {
  margin-top: 14px;
  padding: 13px 16px;
  border: 1px solid #d9e8df;
  background: #edf7f1;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.insight > span {
  color: #167348;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: white;
}
.insight div {
  flex: 1;
}
.insight b {
  font-size: 11px;
}
.insight p {
  color: #5f7168;
  font-size: 10px;
  margin-top: 2px;
}
.insight button {
  border: 0;
  background: transparent;
  display: flex;
  gap: 5px;
  align-items: center;
  color: #166a43;
  font-size: 10px;
  font-weight: 700;
}
.form-panel {
  max-width: 960px;
  margin: 0 auto;
  background: white;
  border: 1px solid #e0e8e3;
  border-radius: 11px;
  padding: 25px 28px 20px;
  box-shadow: 0 2px 6px #18352709;
}
.form-section-head {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 20px;
}
.form-section-head > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #e1f2e8;
  color: #176d45;
  font-size: 11px;
  font-weight: 700;
}
.form-section-head h2 {
  font-size: 14px;
}
.form-section-head p {
  font-size: 10px;
  color: #8a9690;
  margin-top: 2px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}
.field {
  position: relative;
  display: block;
}
.field > span {
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 7px;
}
.field em {
  color: #bd3e2e;
  font-style: normal;
  margin-left: 2px;
}
.field-name {
  color: #a2aca7;
  font-family: monospace;
  font-size: 8px;
  margin-left: 7px;
}
.field input,
.field select {
  width: 100%;
  height: 40px;
  border: 1px solid #dbe3df;
  color: #26362e;
  background: #fff;
  border-radius: 7px;
  padding: 0 11px;
  outline: 0;
  font-size: 11px;
}
.field input:focus,
.field select:focus {
  border-color: #29835a;
  box-shadow: 0 0 0 3px #22805213;
}
.field input::placeholder {
  color: #aab3af;
}
.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #78857f 50%),
    linear-gradient(135deg, #78857f 50%, transparent 50%);
  background-position:
    calc(100% - 15px) 17px,
    calc(100% - 11px) 17px;
  background-size: 4px 4px;
  background-repeat: no-repeat;
}
.error {
  display: block;
  color: #b64034;
  font-size: 9px;
  margin-top: 4px;
}
.divider {
  height: 1px;
  background: #edf1ef;
  margin: 26px 0 22px;
}
.calculation {
  background: #f5f8f6;
  border: 1px solid #e2e9e5;
  border-radius: 8px;
  margin-top: 23px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 13px 0;
}
.calculation div {
  padding: 0 18px;
  border-right: 1px solid #e0e7e3;
}
.calculation div:last-child {
  border: 0;
}
.calculation small,
.calculation b {
  display: block;
}
.calculation small {
  color: #8b9892;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.calculation b {
  font-size: 13px;
  margin-top: 4px;
}
.calculation .high {
  color: #ba5a19;
}
.calculation .ok {
  color: #17804d;
}
.form-error {
  color: #a8392d;
  font-size: 10px;
  text-align: right;
  margin-top: 10px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid #edf1ef;
  margin-top: 20px;
  padding-top: 18px;
}
.table-panel {
  background: white;
  border: 1px solid #e0e8e3;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px #18352709;
}
.toolbar {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e8eeea;
}
.search {
  width: 245px;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #dce4df;
  border-radius: 7px;
  padding: 0 9px;
}
.search > .icon {
  color: #85928c;
  width: 16px;
}
.search input {
  min-width: 0;
  flex: 1;
  outline: 0;
  border: 0;
  font-size: 10px;
}
.search button {
  border: 0;
  background: transparent;
  color: #89958f;
  padding: 2px;
}
.filters {
  display: flex;
  gap: 7px;
}
.filters select {
  height: 36px;
  border: 1px solid #dce4df;
  border-radius: 7px;
  padding: 0 27px 0 9px;
  color: #56645d;
  background: white;
  font-size: 9px;
  max-width: 130px;
}
.results-line {
  min-height: 35px;
  background: #fafcfb;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  color: #8b9691;
}
.results-line b {
  color: #46544d;
}
.results-line button {
  border: 0;
  background: transparent;
  color: #177449;
  font-size: 9px;
  font-weight: 600;
  margin-left: auto;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
th {
  height: 34px;
  text-align: left;
  background: #f3f6f4;
  padding: 0 11px;
  color: #77847e;
  font-family: monospace;
  font-size: 8px;
  letter-spacing: -0.2px;
  font-weight: 600;
  border-bottom: 1px solid #e2e8e4;
}
td {
  height: 55px;
  padding: 0 11px;
  border-bottom: 1px solid #edf1ef;
  color: #58665f;
  font-size: 9px;
}
tbody tr {
  cursor: pointer;
}
tbody tr:hover {
  background: #f8fbf9;
}
td b {
  color: #2a3931;
  font-size: 9px;
}
.id {
  color: #176c46;
}
.waste-cell {
  color: #ad6331;
  font-weight: 600;
}
.rate {
  font-weight: 600;
  color: #3f5047;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 12px;
  padding: 4px 7px;
  font-size: 8px;
  font-weight: 600;
}
.status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.status.completed {
  background: #e3f3e9;
  color: #217146;
}
.status.completed i {
  background: #2a8e5a;
}
.status.partial {
  background: #fff0d7;
  color: #9e641b;
}
.status.partial i {
  background: #d88c2d;
}
.status.missed {
  background: #f9e6e3;
  color: #a8483b;
}
.status.missed i {
  background: #c8584a;
}
.view {
  display: flex;
  align-items: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: #176e46;
  font-size: 8px;
  font-weight: 600;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  color: #89958f;
  font-size: 9px;
}
.pagination div {
  display: flex;
  gap: 4px;
}
.pagination button {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid #dce4df;
  border-radius: 5px;
  background: white;
  color: #6f7d76;
}
.pagination .current {
  background: #176e46;
  color: white;
  border-color: #176e46;
}
.pagination button:disabled {
  color: #bfc7c3;
}
.empty {
  text-align: center;
  color: #819088;
  padding: 45px;
}
.empty .icon {
  margin: auto auto 10px;
}
.empty b,
.empty p {
  display: block;
}
.empty p {
  font-size: 10px;
  margin-top: 4px;
}
.details-card {
  background: white;
  border: 1px solid #dfe7e2;
  border-radius: 11px;
  overflow: hidden;
  max-width: 1050px;
  margin: auto;
  box-shadow: 0 2px 7px #1835270a;
}
.details-banner {
  padding: 20px 24px;
  background: linear-gradient(100deg, #f0f8f3, #f9fbfa);
  border-bottom: 1px solid #e2e9e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.details-banner > div {
  display: flex;
  gap: 13px;
  align-items: center;
}
.record-icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: #176f47;
  color: white;
  display: grid;
  place-items: center;
}
.details-banner small {
  color: #85938c;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
}
.details-banner h2 {
  font-size: 17px;
  margin-top: 2px;
}
.details-banner p {
  font-size: 9px;
  color: #85928c;
  margin-top: 2px;
}
.details-banner > .status {
  font-size: 10px;
  padding: 7px 11px;
}
.detail-section {
  padding: 18px 24px 12px;
}
.detail-section h3 {
  font-size: 13px;
}
.detail-section p {
  color: #8b9691;
  font-size: 9px;
  margin-top: 3px;
}
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 18px;
  padding: 0 24px 22px;
}
.detail-field {
  min-height: 63px;
  border-bottom: 1px solid #edf1ef;
  padding: 12px 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.detail-field > span {
  color: #7d8983;
  font-size: 9px;
  text-transform: capitalize;
}
.detail-field > span small {
  display: block;
  color: #a6afaa;
  font-family: monospace;
  font-size: 7px;
  margin-top: 2px;
  text-transform: none;
}
.detail-field > b {
  font-size: 11px;
  margin-top: 6px;
}
.detail-field.highlight {
  background: #f3f9f5;
  border: 1px solid #dcebe2;
  margin: 6px 0;
  border-radius: 7px;
  padding-left: 12px;
  min-height: 58px;
}
.detail-field .status {
  align-self: flex-start;
  margin-top: 6px;
}
.flag-ok,
.flag-high {
  display: flex;
  align-items: center;
  gap: 5px;
}
.flag-ok {
  color: #18754a;
}
.flag-high {
  color: #b65c1d;
}
.details-foot {
  margin: 0 24px 22px;
  padding: 12px;
  background: #f3f8f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #397159;
}
.details-foot span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: white;
}
.details-foot p {
  color: #728179;
  font-size: 9px;
}
.details-foot b {
  display: block;
  color: #344b40;
  font-size: 10px;
  margin-bottom: 2px;
}
.confirmation {
  max-width: 650px;
  margin: 35px auto;
  text-align: center;
}
.success-icon {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 17px;
  color: white;
  background: #1e8a57;
  box-shadow: 0 0 0 9px #e5f3eb;
}
.confirmation > h2 {
  font-size: 21px;
  letter-spacing: -0.35px;
}
.confirmation > p {
  color: #78857f;
  font-size: 11px;
  margin-top: 7px;
}
.summary {
  margin-top: 27px;
  text-align: left;
  background: white;
  border: 1px solid #dfe7e2;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 7px #1835270a;
}
.summary-head {
  background: #f7faf8;
  border-bottom: 1px solid #e4ebe7;
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}
.summary-head span {
  font-weight: 600;
}
.summary-head b {
  color: #177149;
}
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 30px;
  padding: 20px;
}
.summary-grid small,
.summary-grid b {
  display: block;
}
.summary-grid small,
.summary-metrics small {
  color: #919c97;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.summary-grid b {
  font-size: 11px;
  margin-top: 5px;
}
.summary-grid .status {
  margin-top: 5px;
}
.summary-metrics {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #eff7f2;
  margin: 0 20px 20px;
  border-radius: 8px;
  padding: 13px;
}
.summary-metrics div {
  text-align: center;
}
.summary-metrics b {
  display: block;
  color: #1d4634;
  font-size: 13px;
  margin-top: 4px;
}
.summary-metrics > .icon {
  color: #a2b8ac;
}
.confirmation-actions {
  margin-top: 19px;
  display: flex;
  justify-content: center;
  gap: 9px;
}
@media (max-width: 1250px) {
  .page {
    padding-left: 24px;
    padding-right: 24px;
  }
  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .filters select {
    max-width: 105px;
  }
  .charts-grid {
    grid-template-columns: 1.45fr 1fr;
  }
}
