:root {
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  color: #183b37;
  background: #f4f6f3;
  font-synthesis: none;
  --green: #176e5d;
  --ink: #183b37;
  --muted: #6a7c77;
  --line: #dce5df;
}
.company-logo {
  max-width: 180px;
  max-height: 90px;
  object-fit: contain;
  display: block;
  margin-bottom: 18px;
}
.company-slogan {
  font-size: 13px;
  color: inherit;
  margin-bottom: 22px;
}
.sidebar {
  background: var(--green) !important;
  color: var(--brand-text, white) !important;
}
.sidebar .brand,
.sidebar .brand span,
.sidebar .company,
.sidebar .company small,
.sidebar footer,
.sidebar nav button {
  color: inherit;
}
.sidebar nav button.active {
  background: var(--brand-accent, #7dad89);
  color: var(--accent-text, #000000);
}
.grid > .panel { min-width: 0; }
.summary-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  color: var(--ink);
  font-weight: 400;
}
.summary-link:hover {
  box-shadow: 0 0 0 2px var(--green);
  filter: none;
}
.summary-link:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
.job-map {
  height: 330px;
  margin: 16px 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #eef1eb;
  color: var(--ink);
  z-index: 0;
}
.job-map > p {
  padding: 20px;
}
.job-map img {
  max-width: none;
}
.job-map .leaflet-control-attribution {
  font-size: 11px;
}
.job-map .leaflet-control a {
  color: #173e34;
}
.address-result {
  width: 100%;
  margin: 5px 0;
  text-align: left;
}
.brand-preview {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  background: #f4f7f2;
}
.preview-button {
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  font-weight: 700;
}
#preview-encouragement {
  padding: 16px;
  border-radius: 12px;
  margin-top: 20px;
}
input[type="color"] {
  min-height: 48px;
  padding: 5px;
}
@media (min-width: 1150px) {
  .jobs-grid {
    grid-template-columns: minmax(230px, 0.8fr) minmax(460px, 1.4fr);
  }
}
@media (max-width: 520px) {
  .cards:has(.summary-link) {
    grid-template-columns: 1fr;
  }
  .summary-link {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
  .summary-link small {
    width: 100%;
    font-size: 12px;
  }
  .job-map {
    height: 280px;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
  background: var(--green);
  color: var(--brand-text, white);
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 650;
}
button:hover {
  filter: brightness(0.94);
}
button.secondary {
  background: #e8eee9;
  color: var(--ink);
}
button.subtle {
  background: transparent;
  color: var(--muted);
  padding: 8px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #c7d5cd;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  margin: 7px 0 17px;
}
textarea {
  min-height: 84px;
  resize: vertical;
}
label {
  font-size: 13px;
  font-weight: 650;
  display: block;
}
input[type="checkbox"] {
  width: auto;
  margin: 0 7px 14px 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin-bottom: 7px;
}
h2 {
  font-size: 19px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.55;
}
a {
  color: var(--green);
}
small,
.muted {
  color: var(--muted);
  font-size: 13px;
}
.shell {
  display: grid;
  grid-template-columns: 234px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #123e36;
  color: #d5e5db;
  padding: 31px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 25px;
  letter-spacing: -1px;
  font-weight: 750;
  color: white;
  margin-bottom: 36px;
}
.brand span {
  color: #a4d7ad;
}
.company {
  border: 1px solid #426158;
  border-radius: 9px;
  padding: 12px;
  margin: 0 0 25px;
  font-size: 13px;
  color: #fff;
}
.company small {
  display: block;
  color: #acc4b6;
  margin-top: 7px;
}
nav button {
  width: 100%;
  text-align: left;
  background: transparent;
  color: #b7cfc2;
  padding: 13px 15px;
  margin: 3px 0;
  font-weight: 500;
}
nav button.active {
  background: #2c574b;
  color: white;
}
nav button span {
  margin-right: 12px;
}
.sidebar footer {
  margin-top: auto;
  padding-top: 45px;
  font-size: 12px;
  color: #a7bdb2;
}
.main {
  padding: 30px 44px;
  max-width: 1600px;
  min-width: 0;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 21px;
  margin-bottom: 32px;
  gap: 15px;
}
.sample {
  background: #fff3d3;
  color: #775614;
  border: 1px solid #e8d9af;
  padding: 7px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.8px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  gap: 20px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.card,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 17px;
}
.metric {
  font-size: 35px;
  letter-spacing: -1px;
  font-weight: 650;
}
.card small {
  display: block;
  margin-top: 8px;
}
.panel {
  margin-bottom: 22px;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.panel-title h2 {
  margin: 0;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-size: 10px;
  color: #718278;
  background: #f6f8f5;
  padding: 13px 12px;
}
td {
  padding: 17px 12px;
  border-bottom: 1px solid #edf1ec;
  vertical-align: top;
}
td strong {
  display: block;
  margin-bottom: 4px;
}
tr:last-child td {
  border-bottom: 0;
}
.badge {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 650;
  background: #eef2ee;
  color: #63796b;
  white-space: nowrap;
}
.badge.pending {
  background: #fff2d7;
  color: #946519;
}
.badge.approved {
  background: #e5f2e7;
  color: #2e7b4b;
}
.badge.travel {
  background: #e9eafa;
  color: #625da0;
}
.notice {
  border-left: 3px solid #c49c46;
  background: #fcf7e9;
  padding: 15px 17px;
  font-size: 13px;
  color: #70603c;
  margin-bottom: 23px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.row > * {
  flex: 1;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}
.login {
  max-width: 450px;
  margin: 9vh auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 35px;
}
.login .brand {
  color: var(--ink);
  margin-bottom: 12px;
}
.login .brand span {
  color: var(--green);
}
.login button {
  width: 100%;
}
.password-field {
  position: relative;
  margin: 7px 0 17px;
}
.password-field input {
  margin: 0;
  padding-right: 54px;
  min-height: 48px;
}
.login .password-toggle {
  position: absolute;
  top: 2px;
  right: 2px;
  bottom: 2px;
  width: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--ink);
}
.password-toggle:hover {
  background: #e8eee9;
}
.password-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}
.password-toggle .eye-slash {
  display: none;
}
.password-toggle[aria-pressed="true"] .eye-slash {
  display: initial;
}
.password-field input::-ms-reveal {
  display: none;
}
.login .sample {
  display: inline-block;
  margin: 20px 0;
}
.error {
  color: #a73333;
  background: #fff0ed;
  padding: 12px;
  border-radius: 7px;
  margin: 15px 0;
  font-size: 13px;
}
#toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  max-width: 460px;
  z-index: 5;
  background: var(--ink);
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 30px #183b3720;
  display: none;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check input {
  margin: 0;
  width: auto;
}
.check {
  margin: 0 0 20px;
}
.form-note {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.review-detail {
  background: #f5f7f3;
  border-radius: 9px;
  padding: 15px;
  margin-bottom: 20px;
}
.audit-item {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
details pre {
  font-size: 11px;
  max-height: 300px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.stat-label {
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 11px;
  color: #91ad9f;
}
.flag {
  display: block;
  color: #9a701f;
  font-size: 11px;
  margin-top: 5px;
}
.tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
}
.tabs button {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}
.tabs button.active {
  background: var(--ink);
  color: white;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e4ece3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin-right: 9px;
  float: left;
}
.job-marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #80ab88;
  display: inline-block;
  margin-right: 7px;
}
.subhead {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.wide-button {
  width: 100%;
  padding: 15px;
}
@media (max-width: 950px) {
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .main {
    padding: 24px;
  }
  .cards,
  .grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    padding: 24px 12px;
  }
}
@media (max-width: 650px) {
  .shell {
    display: block;
  }
  .sidebar {
    padding: 18px;
  }
  .sidebar .brand {
    margin-bottom: 15px;
  }
  .company,
  .sidebar footer {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
  }
  nav button {
    min-width: max-content;
    width: auto;
    font-size: 12px;
    padding: 9px;
  }
  .main {
    padding: 22px 16px;
  }
  .heading {
    align-items: flex-start;
  }
  h1 {
    font-size: 26px;
  }
  .topbar {
    margin-bottom: 22px;
  }
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }
  .card {
    padding: 13px;
  }
  .metric {
    font-size: 25px;
  }
  .card p {
    font-size: 11px;
  }
  .card small {
    font-size: 10px;
  }
  .login {
    margin: 25px 16px;
  }
  .row {
    flex-wrap: wrap;
  }
  .row > * {
    min-width: 140px;
  }
}
