@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  font-family: "DM Sans", system-ui, sans-serif;
  color: #192e29;
  background: #f4f7f6;
  font-size: 16px;
  font-synthesis: none;
  --green: #075541;
  --green2: #16725b;
  --line: #dde6e1;
  --muted: #64766e;
  --red: #ae3039;
  --amber: #966712;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-family: Manrope, system-ui, sans-serif;
  letter-spacing: -0.035em;
  margin: 0;
}
h1 {
  font-size: 1.8rem;
}
h2 {
  font-size: 1.65rem;
}
h3 {
  font-size: 1.15rem;
}
p {
  line-height: 1.6;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #9bc35b;
}
button {
  border: 1px solid var(--line);
  background: white;
  color: var(--green);
  padding: 0.7rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
button:hover {
  background: #eef5f1;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--green);
  text-decoration: none;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #ccd9d2;
  background: #fff;
  border-radius: 9px;
  padding: 0.8rem;
  color: #172e25;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}
label input,
label textarea,
label select {
  font-weight: 400;
}
form {
  display: grid;
  gap: 1.2rem;
}
small,
.small {
  font-size: 0.875rem;
}
small {
  display: block;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--green);
  margin: 0 0 0.6rem;
  text-transform: uppercase;
}
.hidden {
  display: none !important;
}
.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 5px 12px #0755410b;
}
.primary:hover {
  background: #063e30;
}
.danger {
  color: var(--red);
  border-color: #e9bbc0;
}
.link {
  border: 0;
  background: transparent;
  padding: 0.3rem 0;
  box-shadow: none;
}
.wide {
  width: 100%;
  justify-content: space-between;
}
.error {
  background: #fff0f1;
  color: #8b2430;
  padding: 1rem 1.25rem;
  border: 1px solid #f0c8cd;
  border-radius: 10px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: min(500px, 90vw);
  padding: 1rem 1.3rem;
  background: #123e32;
  color: white;
  border-radius: 12px;
  z-index: 100;
  box-shadow: 0 10px 30px #0002;
}
.startup {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
}
.startup img {
  width: 170px;
  margin: auto;
}
.startup p {
  color: var(--muted);
}
.login {
  min-height: 100vh;
  background:
    linear-gradient(90deg, #05281a22, #052b23aa),
    url("assets/pet-recycling-hero.png") center/cover;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 5vw;
  padding: 5vh 6vw;
  align-items: center;
  position: relative;
}
.brandplate {
  position: absolute;
  top: 32px;
  left: 6vw;
  background: #fffffff2;
  padding: 10px 20px;
  border-radius: 16px;
}
.brandplate img {
  width: 185px;
  height: 100px;
  object-fit: contain;
}
.login-story {
  color: white;
  margin-top: 210px;
  max-width: 620px;
  text-shadow: 0 2px 12px #0006;
}
.login-story h1 {
  font-size: clamp(2.6rem, 4.8vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
}
.login-story .eyebrow {
  color: #d4ebba;
}
.login-story > p {
  font-size: 1.1rem;
  color: #eef6e9;
}
.material-line {
  font-size: 0.875rem;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 35px;
}
.material-line span {
  color: #bce695;
}
.login-card {
  background: #fffffff7;
  border: 1px solid #fff;
  border-radius: 24px;
  padding: clamp(25px, 3vw, 48px);
  max-width: 490px;
  width: 100%;
  justify-self: end;
  box-shadow: 0 24px 70px #001b2350;
  margin: 40px 0;
}
.login-card h2 {
  font-size: 2.2rem;
}
.login-card > .muted {
  margin: 10px 0 24px;
}
.segmented {
  display: flex;
  background: #eef3f0;
  padding: 5px;
  border-radius: 10px;
  margin-bottom: 25px;
  gap: 4px;
}
.segmented button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.segmented button.active {
  background: white;
  color: var(--green);
  box-shadow: 0 2px 5px #0001;
}
.password,
.phone {
  display: flex;
  border: 1px solid #ccd9d2;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}
.password input,
.phone input {
  border: 0;
  min-width: 0;
}
.password button {
  border: 0;
  font-size: 0.8rem;
}
.phone > span {
  padding: 13px;
  background: #f2f6f4;
  font-weight: 400;
}
.device-note {
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-bottom: 0;
}
.portal {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: white;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 28px 18px;
}
.brand img {
  width: 155px;
  height: 95px;
  object-fit: contain;
}
.brand {
  display: block;
  margin: 0 10px 35px;
}
.nav-label {
  font-size: 0.7rem;
  color: #86948e;
  letter-spacing: 0.15em;
  margin: 0 16px 12px;
  font-weight: 700;
}
nav {
  display: grid;
  gap: 7px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  color: #677a71;
  font-size: 0.95rem;
  border-radius: 10px;
  font-weight: 600;
}
nav a.active {
  background: #e7f2ec;
  color: var(--green);
}
nav a:hover {
  background: #f2f6f4;
}
svg.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  flex-shrink: 0;
}
.sidebar-foot {
  margin-top: auto;
  padding: 20px 10px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: center;
}
.sidebar-foot strong {
  display: block;
  font-size: 0.9rem;
  max-width: 135px;
  overflow-wrap: anywhere;
}
.sidebar-foot small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 0.8rem;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e1eee7;
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}
.main {
  min-width: 0;
}
.topbar {
  height: 102px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 3vw;
  background: #ffffffb0;
}
.topbar h1 {
  font-size: 1.5rem;
}
.topbar .eyebrow {
  font-size: 0.65rem;
  margin-bottom: 0.3rem;
}
.top-actions {
  display: flex;
  gap: 8px;
}
.top-actions button {
  font-size: 0.8rem;
}
#content {
  padding: 32px 3vw 60px;
  max-width: 1800px;
  margin: auto;
}
#global-error {
  margin: 18px 3vw 0;
}
.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.page-intro p {
  margin: 6px 0 0;
}
.page-intro h2 {
  font-size: 1.6rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 3px 16px #073d2e03;
}
.card + .card {
  margin-top: 22px;
}
.hero {
  background: var(--green);
  color: white;
  padding: 32px;
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.hero h2 {
  font-size: 2rem;
}
.hero p {
  color: #c3dacf;
  margin-bottom: 0;
}
.hero .eyebrow {
  color: #c1dba8;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 30px;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.metric strong {
  display: block;
  font-family: Manrope;
  font-size: 2rem;
  margin-top: 8px;
}
.metric span {
  font-size: 0.875rem;
  color: var(--muted);
}
.metric.alert strong {
  color: var(--red);
}
.metric.pending strong {
  color: var(--amber);
}
.workspace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.workspace {
  padding: 24px;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.workspace .icon {
  margin: 0 0 22px;
  color: var(--green);
  width: 27px;
  height: 27px;
}
.workspace p {
  font-size: 0.95rem;
  color: var(--muted);
}
.workspace strong {
  font-size: 0.85rem;
  color: var(--green);
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin: 22px 0;
}
.toolbar label {
  min-width: 160px;
}
.toolbar .grow {
  flex: 1;
}
.toolbar input[type="search"] {
  min-width: 200px;
}
.tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-bottom: 10px;
}
.tabs button {
  white-space: nowrap;
  font-size: 0.875rem;
}
.tabs button.active,
.filters button.active {
  border-color: var(--green);
  background: #e8f4ed;
  color: var(--green);
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0 22px;
}
.filters button {
  font-size: 0.85rem;
  border-radius: 25px;
  padding: 8px 14px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.875rem;
}
th {
  background: #eef3f0;
  text-align: left;
  color: #61756b;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 15px 16px;
  white-space: nowrap;
}
td {
  padding: 16px;
  border-top: 1px solid #e7ede9;
  line-height: 1.5;
  vertical-align: middle;
}
td strong {
  white-space: nowrap;
}
td.detail {
  min-width: 230px;
  max-width: 400px;
}
td button {
  font-size: 0.8rem;
  padding: 7px 11px;
  white-space: nowrap;
}
tbody tr:hover {
  background: #fafffc;
}
.table-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 16px;
}
.table-head p {
  margin: 6px 0 0;
}
.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
  background: #edf2f0;
  color: #566960;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge.AVAILABLE,
.badge.Completed,
.badge.approved {
  background: #e4f4e9;
  color: #186945;
}
.badge.PENDING,
.badge.Pending,
.badge.pendingApproval {
  background: #fff2d6;
  color: #906400;
}
.badge.ALERT,
.badge.rejected,
.badge.overdue {
  background: #fbe6e8;
  color: #a22c3d;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 55px 20px;
  background: white;
  border: 1px dashed #cddbd3;
  border-radius: 12px;
  line-height: 1.8;
}
.empty h3 {
  color: #30483e;
}
.progress {
  border-left: 3px solid var(--green);
  background: #e6f2eb;
  padding: 12px 15px;
  border-radius: 6px;
  margin: 12px 0;
  font-size: 0.9rem;
}
.drive-account {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.drive-account p {
  margin: 5px 0 0;
}
.drive-account .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.drive-account .small {
  overflow-wrap: anywhere;
}
.split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.checkbox-list {
  border: 1px solid var(--line);
  border-radius: 10px;
  max-height: 260px;
  overflow: auto;
  padding: 12px;
}
.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  padding: 9px;
}
.checkbox-list input {
  width: auto;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}
.check input {
  width: 18px;
  height: 18px;
}
.list {
  display: grid;
  gap: 12px;
}
.task-card {
  display: block;
  padding: 22px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
  text-align: left;
  color: #1d342a;
}
.task-card:hover {
  border-color: #6c9c86;
}
.task-card h3 {
  margin: 12px 0;
}
.task-card p {
  margin: 0;
  color: var(--muted);
}
.task-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.task-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  margin-top: 15px;
  color: var(--muted);
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 22px 0;
}
.detail-grid span {
  color: var(--muted);
  font-size: 0.8rem;
  display: block;
  margin-bottom: 4px;
}
.prewrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-shell {
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
}
.chat-shell:before {
  content: "";
  position: absolute;
  inset: 80px 0 130px;
  opacity: 0.04;
  background: url("assets/silverline_symbol.png") center/190px no-repeat;
  pointer-events: none;
}
.messages {
  position: relative;
  display: grid;
  gap: 20px;
  padding: 20px 0;
  min-height: 320px;
}
.message {
  max-width: 90%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  overflow: hidden;
  justify-self: start;
  min-width: 0;
}
.message.user {
  background: var(--green);
  color: white;
  justify-self: end;
  border-color: var(--green);
  max-width: 75%;
}
.message p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message .table-wrap {
  margin-top: 15px;
}
.message button {
  margin-top: 10px;
}
.chat-form {
  position: sticky;
  bottom: 10px;
  background: white;
  padding: 10px;
  border: 1px solid #c7d9cc;
  border-radius: 16px;
  display: flex;
  gap: 8px;
  z-index: 2;
  box-shadow: 0 7px 30px #00301c0c;
}
.chat-form input {
  border: 0;
  min-width: 0;
}
.file-list {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  color: #203e31;
  padding: 16px;
}
.file-type {
  background: #edf4ee;
  border-radius: 9px;
  padding: 10px;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 50px;
  text-align: center;
}
.file-item strong {
  display: block;
  overflow-wrap: anywhere;
}
.file-item small {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}
.document-preview {
  width: 100%;
  min-height: 70vh;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.document-image {
  max-width: 100%;
  height: auto;
}
.actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  color: var(--muted);
  font-size: 0.8rem;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  width: min(640px, 94vw);
  max-height: 90vh;
  box-shadow: 0 25px 100px #0003;
}
dialog::backdrop {
  background: #071f16aa;
  backdrop-filter: blur(3px);
}
.dialog-close {
  float: right;
  border: 0;
  font-size: 1.5rem;
  padding: 0 8px;
}
.loading {
  opacity: 0.65;
  pointer-events: none;
}
code {
  background: #edf2ed;
  padding: 2px 5px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
.coverage {
  font-size: 0.8rem;
  color: var(--muted);
}
@media (min-width: 1800px) {
  .login-card {
    max-width: 540px;
  }
  .login-story h1 {
    font-size: 5.2rem;
  }
}
@media (max-width: 1100px) {
  .portal {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .sidebar {
    padding: 20px 12px;
  }
  .workspace-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .login {
    gap: 25px;
    padding: 40px;
  }
  .brandplate {
    left: 40px;
  }
  .login-story h1 {
    font-size: 3rem;
  }
  .top-actions button {
    padding: 8px;
  }
}
@media (max-width: 760px) {
  .login {
    display: block;
    padding: 22px;
    min-height: 100dvh;
  }
  .brandplate {
    position: static;
    display: inline-block;
    padding: 5px 12px;
  }
  .brandplate img {
    width: 135px;
    height: 65px;
  }
  .login-story {
    margin: 30px 0;
  }
  .login-story h1 {
    font-size: 2.3rem;
  }
  .login-story > p,
  .material-line {
    display: none;
  }
  .login-card {
    margin: 20px 0 0;
    max-width: none;
  }
  .portal {
    display: block;
  }
  .sidebar {
    position: sticky;
    top: 0;
    height: auto;
    z-index: 5;
    padding: 10px;
    background: #fff;
    display: block;
    border: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand,
  .nav-label,
  .sidebar-foot {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 5px;
  }
  nav a {
    white-space: nowrap;
    padding: 10px;
    font-size: 0.8rem;
    gap: 7px;
  }
  nav svg.icon {
    width: 17px;
    height: 17px;
  }
  .topbar {
    height: auto;
    padding: 18px;
    align-items: start;
  }
  .topbar h1 {
    font-size: 1.25rem;
  }
  .top-actions {
    flex-wrap: wrap;
    justify-content: end;
  }
  .top-actions button {
    font-size: 0.75rem;
  }
  .top-actions #notifications {
    display: none;
  }
  #content {
    padding: 22px 16px 40px;
  }
  .page-intro {
    align-items: start;
    flex-wrap: wrap;
  }
  .hero {
    padding: 23px;
  }
  .hero h2 {
    font-size: 1.55rem;
  }
  .workspace-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .workspace {
    padding: 18px;
  }
  .workspace h3 {
    font-size: 1rem;
  }
  .workspace p {
    font-size: 0.8rem;
  }
  .metrics {
    gap: 12px;
  }
  .metric {
    padding: 16px;
  }
  .metric strong {
    font-size: 1.7rem;
  }
  .card {
    padding: 18px;
  }
  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .drive-account {
    align-items: start;
    flex-direction: column;
  }
  .drive-account button {
    font-size: 0.8rem;
  }
  .message {
    max-width: 100%;
    padding: 15px;
  }
  .message.user {
    max-width: 90%;
  }
  .chat-form {
    bottom: 5px;
  }
  .chat-form button {
    padding: 8px;
  }
  .tabs button {
    font-size: 0.8rem;
  }
  .table-wrap {
    max-width: 100%;
  }
  .table-head {
    align-items: start;
  }
  .toolbar label {
    min-width: 120px;
    flex: 1;
  }
  .toolbar {
    gap: 10px;
  }
  .error {
    margin-left: 0;
    margin-right: 0;
  }
  .file-item {
    padding: 13px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background 0.15s,
      border-color 0.15s;
  }
  .card,
  .login-card {
    animation: appear 0.25s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0.5;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
