@font-face {
  font-family: "Poppins";
  src: url("/static/brand/poppins-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/static/brand/poppins-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/static/brand/montserrat-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
:root {
  font-family: "Poppins", system-ui, sans-serif;
  color: #323641;
  background: #fbfaf8;
  font-size: 16px;
  line-height: 1.5;
  --ink: #323641;
  --line: #e2e0db;
  --primary: #323641;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 20px 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  font-size: 1rem;
  color: inherit;
}
.brand span {
  font-weight: 400;
  letter-spacing: 0;
  border-left: 1px solid var(--line);
  margin-left: 20px;
  padding-left: 20px;
}
.account {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.875rem;
}
header button.quiet {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}
main {
  max-width: 1300px;
  margin: auto;
  padding: 38px 30px;
}
.heading,
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 4px 0 26px;
  letter-spacing: -0.035em;
}
h2 {
  font-size: 1.5rem;
  margin: 0 0 12px;
}
.eyebrow {
  color: #616b50;
  font-size: 0.875rem;
  letter-spacing: 0.13em;
  font-weight: 500;
  margin: 0 0 8px;
}
.muted,
.footnote {
  color: #646660;
}
.footnote {
  font-size: 0.875rem;
  margin-top: 24px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  background: var(--primary);
  color: white;
  border: 1px solid var(--primary);
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
}
button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.quiet {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
button.danger {
  background: white;
  color: #a62932;
  border-color: #dba4aa;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #e1a333;
  outline-offset: 3px;
}
.search {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  margin-bottom: 24px;
}
.search > label:first-child {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
}
.search-input {
  display: flex;
  gap: 10px;
}
.search-input input {
  flex: 1;
  min-width: 120px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #b7b8b0;
  border-radius: 5px;
  padding: 10px 12px;
  color: inherit;
  background: white;
}
input:disabled,
select:disabled {
  background: #f5f4f0;
  color: #666960;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #646660;
  margin-top: 12px;
}
.check input {
  width: auto;
}
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.tabs button {
  background: transparent;
  color: #646660;
  border: 0;
  border-radius: 0;
  white-space: nowrap;
  padding: 12px 16px;
  border-bottom: 3px solid transparent;
}
.tabs button[aria-pressed="true"] {
  border-bottom-color: var(--primary);
  color: var(--primary);
}
.tabs span {
  background: #eeede8;
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 4px;
}
.table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  font-size: 0.875rem;
  color: #63665f;
  background: #f4f3ef;
  font-weight: 500;
}
td,
th {
  padding: 16px;
  border-bottom: 1px solid #ecebe6;
}
td {
  font-size: 0.94rem;
}
td strong {
  display: block;
}
td small {
  display: block;
  color: #676a62;
  font-size: 0.875rem;
}
td:nth-child(2),
td:nth-child(3) {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
a {
  color: #485d3c;
}
.badge {
  display: inline-block;
  font-size: 0.875rem;
  padding: 4px 8px;
  border-radius: 5px;
  background: #efeee8;
  color: #4b5145;
}
.badge.approved {
  background: #e0f1e8;
  color: #246442;
}
.badge.review {
  background: #fff0d4;
  color: #7c5309;
}
.badge.cancelled {
  background: #f5e3e5;
  color: #943745;
}
.notice {
  background: #fff3d9;
  border-left: 4px solid #d49e3c;
  padding: 12px 16px;
  font-size: 0.9rem;
  margin: 16px 0;
}
.error {
  background: #fce6e8;
  border-left: 4px solid #b52c42;
  padding: 12px 16px;
  margin: 16px 0;
}
.empty {
  text-align: center;
  padding: 42px;
  color: #696d62;
  border: 1px dashed #c5c9bb;
}
.brand-logo {
  display: block;
  width: 210px;
  height: auto;
}
h1, h2, h3 {
  font-family: "Montserrat", "Poppins", sans-serif;
  font-weight: 600;
}
.login {
  min-height: 100svh;
  background: #fff;
}
.login-layout {
  display: grid;
  grid-template-columns: minmax(390px, 44%) 1fr;
  min-height: 100svh;
  max-width: none;
  margin: 0;
  padding: 0;
}
.login-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 46px clamp(32px, 5vw, 88px) 30px;
}
.login-panel .brand-logo { width: 245px; max-width: 100%; }
.login-content {
  width: 100%;
  max-width: 420px;
  margin: auto 0;
  padding: 72px 0;
}
.login-content h1 {
  font-size: clamp(2.1rem, 3.3vw, 3rem);
  line-height: 1.15;
  margin: 14px 0 22px;
}
.login-intro { color: #646660; line-height: 1.8; }
.login-access {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.login-access > p { margin: 0 0 20px; font-size: 0.9rem; }
.login-note { font-size: 0.875rem; margin-top: 22px; }
.login-footer { font-size: 0.875rem; color: #646660; margin: 0; }
.login-footer span { margin: 0 8px; }
.login-photo { position: relative; min-height: 100%; overflow: hidden; }
.login-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% center;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  width: min(840px, calc(100% - 24px));
  max-height: 92vh;
  overflow: auto;
  padding: 28px;
  box-shadow: 0 24px 100px #32364130;
}
dialog::backdrop {
  background: #32364188;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 22px 0;
}
legend {
  font-weight: 700;
  margin-bottom: 12px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field-grid label,
.comment-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
}
.field-grid input,
.field-grid select,
textarea {
  margin-top: 6px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 28px;
}
.history {
  padding-left: 22px;
}
.history li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.history small {
  display: block;
  color: #696d62;
}
.history p {
  margin: 4px 0;
  white-space: pre-wrap;
}
.history pre {
  white-space: pre-wrap;
  font: inherit;
  font-size: 0.875rem;
  margin: 6px 0;
  color: #63665f;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  header {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 20px;
  }
  .account {
    width: 100%;
    justify-content: space-between;
  }
  main {
    padding: 26px 16px;
  }
  .search {
    padding: 16px;
  }
  .search-input {
    flex-wrap: wrap;
  }
  .search-input input {
    flex-basis: 100%;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 1.7rem;
  }
  .tabs button {
    padding: 10px;
  }
  dialog {
    padding: 20px;
  }
  td,
  th {
    padding: 12px;
  }
  .brand-logo { width: 175px; }
  .brand span { margin-left: 16px; padding-left: 16px; }
  .login-layout { grid-template-columns: 1fr; }
  .login-panel { padding: 30px 26px; min-height: 75svh; }
  .login-content { padding: 52px 0; max-width: none; }
  .login-photo { min-height: 240px; }
  .login-photo img { object-position: center 45%; }
  .login-panel .brand-logo { width: 215px; }
}
