@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Oswald:wght@500;600;700&display=swap");
:root {
  --ink: #142b24;
  --deep: #17392d;
  --deep2: #204b3a;
  --leaf: #4e8a64;
  --lime: #cce678;
  --gold: #d6a94c;
  --paper: #f3f3ec;
  --surface: #fffefa;
  --line: #dce2d5;
  --muted: #738177;
  --red: #a94942;
  --soft: #e9eee5;
  --shadow: 0 12px 32px rgba(25, 54, 42, 0.08);
  --sans: "Manrope", sans-serif;
  --display: "Oswald", sans-serif;
  --mono: "DM Mono", monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b7d56b;
  outline-offset: 2px;
}
.hidden {
  display: none !important;
}
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #f7f8ef;
  text-decoration: none;
}
.brand img {
  width: 39px;
  height: 39px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #ffffff30;
}
.brand strong {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.07em;
  line-height: 1;
}
.brand small {
  display: block;
  color: #a9c4ad;
  font-size: 9px;
  letter-spacing: 0.19em;
  margin-top: 4px;
}
.shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}
.sidebar {
  background: var(--deep);
  color: #f5f5ec;
  padding: 25px 17px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: sticky;
  top: 0;
  height: 100dvh;
}
.nav-label {
  color: #9db5a3;
  margin: 2px 11px 8px;
}
.side-nav {
  display: grid;
  gap: 5px;
}
.side-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 11px 12px;
  background: transparent;
  color: #c7d5c7;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  transition:
    background 0.18s,
    transform 0.18s;
}
.side-nav button:hover,
.side-nav button.active {
  background: #ffffff16;
  color: #fff;
  transform: translateX(2px);
}
.side-nav button.active {
  box-shadow: inset 3px 0 var(--lime);
}
.nav-index {
  font: 11px var(--mono);
  color: #8eaa94;
}
.side-foot {
  margin-top: auto;
  border-top: 1px solid #ffffff20;
  padding: 17px 8px 2px;
  color: #a9c0aa;
  font-size: 11px;
}
.side-foot strong {
  color: #eff2e7;
  display: block;
  margin-bottom: 4px;
}
.main {
  min-width: 0;
}
.topbar {
  height: 76px;
  padding: 0 clamp(18px, 4vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #f7f7f1d9;
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
}
.topbar-title {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.05em;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-chip strong {
  font-size: 12px;
}
.user-chip small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.avatar {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  background: #dce6d5;
  display: grid;
  place-items: center;
  color: var(--deep);
  font-weight: 800;
}
.avatar-fallback {
  display: grid;
  place-items: center;
}
.content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 32px clamp(18px, 4vw, 54px) 64px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}
.page-heading h1 {
  font: 600 clamp(28px, 4vw, 43px)/1.05 var(--display);
  letter-spacing: 0.015em;
  margin: 4px 0 8px;
}
.page-heading p {
  color: var(--muted);
  margin: 0;
}
.btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12px;
  transition:
    transform 0.18s,
    background 0.18s,
    border-color 0.18s;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: #9baa92;
}
.btn-primary {
  background: var(--deep);
  color: #fff;
  border-color: var(--deep);
}
.btn-primary:hover {
  background: var(--deep2);
}
.btn-accent {
  background: var(--lime);
  border-color: #bfd568;
  color: var(--ink);
}
.btn-danger {
  color: var(--red);
  border-color: #e7c6c2;
  background: #fff9f8;
}
.btn-quiet {
  background: transparent;
}
.btn-small {
  padding: 7px 10px;
  font-size: 11px;
}
.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.grid {
  display: grid;
  gap: 16px;
}
.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 17px;
}
.stat,
.panel,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow);
}
.stat {
  padding: 18px 19px;
  min-height: 112px;
  position: relative;
  overflow: hidden;
}
.stat:after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -32px;
  width: 88px;
  height: 88px;
  border: 1px solid #e6ebdf;
  border-radius: 50%;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}
.stat-value {
  font: 600 28px/1.1 var(--display);
  margin-top: 9px;
}
.stat-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.panel {
  padding: 20px;
  margin-bottom: 17px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.panel-head h2,
.panel h2 {
  font: 600 20px var(--display);
  margin: 0;
}
.panel-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 3px 0 0;
}
.two-col {
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
}
.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.list {
  display: grid;
  gap: 9px;
}
.row-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffefa;
}
.row-card h3 {
  font-size: 13px;
  margin: 0 0 4px;
}
.row-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 3px 0;
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--soft);
  color: var(--deep);
  padding: 4px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  text-transform: capitalize;
}
.badge.pending {
  background: #fff0d4;
  color: #845f1b;
}
.badge.approved,
.badge.delivered,
.badge.completed {
  background: #e4f0df;
  color: #35643b;
}
.badge.rejected {
  background: #f9e4e0;
  color: #93423b;
}
.badge.active {
  background: #e2eee5;
}
.badge.awarded {
  background: #f8edcf;
  color: #785b1d;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.empty {
  padding: 25px 20px;
  border: 1px dashed #cbd5c6;
  border-radius: 10px;
  text-align: center;
  color: var(--muted);
  background: #fafbf6;
}
.empty strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 4px;
}
.empty p {
  font-size: 11px;
  margin: 0;
}
.notice {
  padding: 12px 14px;
  border-radius: 9px;
  background: #edf2e6;
  color: #44634a;
  font-size: 11px;
  border: 1px solid #dbe6d4;
}
.notice.warning {
  background: #fff5df;
  color: #775a22;
  border-color: #eedfb9;
}
.error-box,
.success-box {
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 12px;
  margin: 10px 0;
}
.error-box {
  background: #fff0ee;
  border: 1px solid #ecc7c2;
  color: #963d35;
}
.success-box {
  background: #eaf3e6;
  border: 1px solid #d4e6cc;
  color: #386340;
}
.field {
  display: grid;
  gap: 5px;
  margin-bottom: 13px;
}
.field label {
  font-size: 11px;
  font-weight: 800;
  color: #54645a;
}
.field input,
.field select,
.field textarea,
.filters input,
.filters select {
  width: 100%;
  min-width: 0;
  border: 1px solid #d6dfd3;
  background: #fffefa;
  color: var(--ink);
  padding: 10px 11px;
  border-radius: 7px;
  font-size: 13px;
}
.field textarea {
  min-height: 86px;
  resize: vertical;
}
.field small {
  color: var(--muted);
  font-size: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 13px;
}
.span-2 {
  grid-column: 1/-1;
}
.filters {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.filters input,
.filters select {
  width: auto;
  min-width: 140px;
  padding: 8px 10px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
th,
td {
  text-align: left;
  padding: 11px 13px;
  border-bottom: 1px solid #e8ece4;
  vertical-align: middle;
}
th {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
  background: #f6f7f1;
  white-space: nowrap;
}
td {
  font-size: 11px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.identity {
  display: flex;
  align-items: center;
  gap: 9px;
}
.identity .avatar {
  width: 31px;
  height: 31px;
}
.meter {
  height: 7px;
  background: #e8ede3;
  border-radius: 9px;
  overflow: hidden;
}
.meter span {
  height: 100%;
  display: block;
  background: var(--leaf);
  border-radius: 9px;
  transition: width 0.3s;
}
.timer-box {
  background: var(--deep);
  color: #f4f5eb;
  border-radius: 13px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.timer-box:after {
  content: "";
  position: absolute;
  right: -70px;
  top: -88px;
  width: 220px;
  height: 220px;
  border: 1px solid #ffffff18;
  border-radius: 50%;
  box-shadow:
    0 0 0 20px #ffffff08,
    0 0 0 40px #ffffff05;
}
.timer-box .eyebrow {
  color: #b4c9b2;
}
.timer-value {
  font: 600 clamp(31px, 5vw, 48px)/1 var(--mono);
  letter-spacing: -0.04em;
  margin: 12px 0;
}
.timer-sub {
  color: #c5d3c5;
  font-size: 11px;
}
.timer-actions {
  margin-top: 19px;
  position: relative;
  z-index: 1;
}
.timer-actions .btn {
  min-width: 124px;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.calendar span {
  font-size: 9px;
  text-align: center;
  color: var(--muted);
  padding: 4px;
}
.calendar button {
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 7px 2px;
  font-size: 10px;
}
.calendar button.leave-day {
  background: #f6e9c9;
  color: #725719;
}
.calendar button.today {
  border-color: var(--leaf);
  font-weight: 800;
}
.calendar button:disabled {
  color: #c7cec2;
}
.calendar-legend {
  font-size: 10px;
  color: var(--muted);
  margin-top: 11px;
}
.banner {
  border-left: 4px solid var(--gold);
  padding: 15px 16px;
  background: #fff9e9;
  border-radius: 0 9px 9px 0;
}
.banner h3 {
  font-size: 14px;
  margin: 0 0 4px;
}
.banner p {
  font-size: 11px;
  margin: 0;
  color: #685d43;
}
.banner + .banner {
  margin-top: 9px;
}
.dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  width: min(620px, calc(100vw - 26px));
  max-height: 90dvh;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 90px #12271e45;
}
.dialog::backdrop {
  background: #142b2490;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 21px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 {
  font: 600 22px var(--display);
  margin: 0;
}
.dialog-body {
  padding: 19px 21px;
  overflow: auto;
  max-height: calc(90dvh - 70px);
}
.dialog-x {
  border: 0;
  background: transparent;
  font-size: 22px;
  color: var(--muted);
  padding: 3px 8px;
}
.login-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(380px, 0.97fr);
  background: var(--deep);
  color: #f6f6ed;
}
.login-art {
  padding: 38px clamp(25px, 7vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    ellipse at 68% 46%,
    #34644b 0,
    #204b3a 36%,
    #17392d 76%
  );
}
.login-art:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 58%, #cce6780c),
    repeating-linear-gradient(0deg, transparent 0 55px, #ffffff08 56px),
    repeating-linear-gradient(90deg, transparent 0 55px, #ffffff08 56px);
  pointer-events: none;
}
.login-brand,
.login-art-copy,
.login-mark {
  position: relative;
  z-index: 1;
}
.login-art-copy h1 {
  font: 600 clamp(52px, 7vw, 96px)/0.96 var(--display);
  letter-spacing: 0.015em;
  margin: 0 0 20px;
  max-width: 600px;
}
.login-art-copy h1 span {
  color: var(--lime);
}
.login-art-copy p {
  color: #c1d1c2;
  max-width: 400px;
  font-size: 14px;
}
.login-mark {
  align-self: flex-end;
  width: min(38vw, 260px);
  opacity: 0.26;
  filter: grayscale(1);
}
.login-form-side {
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 7vw, 86px);
}
.login-card {
  max-width: 430px;
  width: 100%;
  margin: auto;
}
.login-card h2 {
  font: 600 36px var(--display);
  margin: 0;
}
.login-card > p {
  color: var(--muted);
  margin: 7px 0 26px;
}
.login-tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.login-tabs a,
.login-tabs button {
  padding: 10px 12px;
  border: 0;
  background: transparent;
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.login-tabs .selected {
  color: var(--deep);
  box-shadow: inset 0 -2px var(--leaf);
}
.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 19px;
  color: var(--muted);
  font-size: 11px;
}
.login-links a {
  color: var(--deep);
  font-weight: 800;
}
.loading-skeleton {
  height: 60px;
  border-radius: 9px;
  background: linear-gradient(90deg, #e7ebe2, #f6f7f1, #e7ebe2);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  max-width: min(400px, calc(100vw - 40px));
  padding: 13px 16px;
  background: var(--deep);
  color: white;
  border-radius: 9px;
  box-shadow: var(--shadow);
  animation: toast-in 0.22s ease-out;
}
.toast.error {
  background: #8f3935;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@keyframes toast-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.mobile-brand {
  display: none;
}
@media (max-width: 920px) {
  .shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .sidebar {
    padding: 20px 12px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .content {
    padding-top: 24px;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    z-index: 10;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    padding: 5px 7px calc(5px + env(safe-area-inset-bottom));
    display: block;
    border-top: 1px solid #ffffff22;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .sidebar::-webkit-scrollbar {
    display: none;
  }
  .sidebar > .brand,
  .sidebar > .nav-label,
  .side-foot {
    display: none;
  }
  .side-nav {
    display: flex;
    justify-content: flex-start;
    gap: 2px;
    width: max-content;
    min-width: 100%;
  }
  .side-nav button {
    flex: 0 0 72px;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
    padding: 6px 3px;
    font-size: 9px;
    white-space: nowrap;
  }
  .side-nav button.active {
    box-shadow: inset 0 2px var(--lime);
  }
  .nav-index {
    font-size: 9px;
  }
  .topbar {
    height: 61px;
    padding: 0 16px;
  }
  .topbar-title {
    font-size: 17px;
  }
  .content {
    padding: 22px 15px calc(90px + env(safe-area-inset-bottom));
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-heading .btn-row {
    width: 100%;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 13px;
    min-height: 95px;
  }
  .stat-value {
    font-size: 23px;
  }
  .panel {
    padding: 15px;
  }
  .row-card {
    flex-direction: column;
  }
  .row-actions {
    justify-content: flex-start;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: auto;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-art {
    min-height: 250px;
    padding: 24px;
  }
  .login-art-copy h1 {
    font-size: 48px;
    margin-top: 28px;
  }
  .login-art-copy p {
    font-size: 12px;
    margin-bottom: 0;
  }
  .login-mark {
    position: absolute;
    width: 120px;
    right: 23px;
    bottom: 10px;
  }
  .login-form-side {
    padding: 32px 22px 50px;
    min-height: 60vh;
  }
  .login-card h2 {
    font-size: 31px;
  }
  .filters {
    align-items: stretch;
  }
  .filters > * {
    flex: 1;
  }
  .filters input,
  .filters select {
    width: 100%;
    min-width: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
