:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #22313f;
  background: #f5f6f8;
  font-synthesis: none;
  font-size: 14px;
  --navy: #172e44;
  --blue: #1e5d8e;
  --line: #e4e8ed;
  --muted: #78828e;
  --amber: #c88a2e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #89b8e0;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 750;
  color: var(--muted);
  margin: 0 0 10px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: inherit;
}
.brand-lockup b {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.brand-lockup small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.2em;
  opacity: 0.55;
  margin-top: 6px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 42px;
  background: #d9a34d;
  color: var(--navy);
  font-size: 23px;
  font-weight: 900;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%);
}
.login-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-brand {
  background: var(--navy);
  color: #fff;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100dvh;
  background-image: linear-gradient(
    135deg,
    transparent 48%,
    #ffffff03 48%,
    #ffffff03 49%,
    transparent 49%
  );
}
.login-brand .eyebrow {
  color: #d4a45e;
}
.login-brand h1 {
  font-size: clamp(40px, 4.3vw, 69px);
  line-height: 1.13;
  letter-spacing: -0.055em;
  font-weight: 650;
  margin: 24px 0;
}
.login-brand em {
  font-style: normal;
  color: #dfb16c;
}
.brand-description {
  color: #bac5d0;
  max-width: 320px;
  line-height: 1.85;
}
.login-brand small {
  color: #8296a8;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-panel form {
  width: min(100%, 360px);
}
.small-mark {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.15em;
  color: var(--blue);
}
.login-panel h2 {
  font-size: 27px;
  letter-spacing: -0.035em;
  margin: 20px 0 10px;
}
.login-panel .muted {
  margin-bottom: 32px;
}
.login-panel .primary {
  width: 100%;
  justify-content: space-between;
  margin-top: 8px;
}
.login-footnote {
  color: #88929c;
  font-size: 11px;
  line-height: 1.8;
  margin-top: 24px;
}
.workspace {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
}
.sidebar {
  background: var(--navy);
  color: #fff;
  position: fixed;
  inset: 0 auto 0 0;
  width: 226px;
  display: flex;
  flex-direction: column;
  padding: 29px 19px;
  z-index: 20;
}
.sidebar .brand-lockup {
  padding: 0 10px;
}
.workspace-tag {
  margin: 30px 9px 22px;
  border: 1px solid #ffffff1b;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 11px;
  color: #c2ccd5;
  display: flex;
  align-items: center;
  gap: 9px;
}
.workspace-tag i {
  width: 6px;
  height: 6px;
  background: #73ae90;
  border-radius: 50%;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
#navigation {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px;
}
#navigation button,
#navigation .nav-section,
.sidebar-bottom {
  flex-shrink: 0;
}
nav button {
  border: 0;
  background: none;
  color: #aebdca;
  border-radius: 5px;
  text-align: left;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
nav button .nav-icon {
  font-size: 16px;
  width: 18px;
  text-align: center;
  opacity: 0.8;
}
nav button:hover {
  background: #ffffff09;
  color: #fff;
}
nav button.active {
  background: #ffffff12;
  color: #fff;
  box-shadow: inset 3px 0 #dca653;
}
nav .nav-section {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: #758b9e;
  margin: 22px 13px 8px;
}
nav .nav-count {
  margin-left: auto;
  background: #d7a24b;
  color: var(--navy);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 750;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 28px 5px 0;
}
.sidebar-bottom > p {
  font-size: 10px;
  line-height: 1.8;
  color: #8397a9;
  margin-bottom: 24px;
}
.user-block {
  border-top: 1px solid #ffffff15;
  padding-top: 19px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.avatar {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background: #ffffff16;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.user-block strong {
  font-size: 11px;
  max-width: 115px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-block small {
  font-size: 9px;
  color: #8fa3b4;
  display: block;
  margin-top: 4px;
}
.user-block .icon-button {
  color: #9bb0c2;
  margin-left: auto;
}
.main-shell {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 72px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  background: #fff;
}
.breadcrumb {
  font-size: 11px;
  color: #89939d;
}
.breadcrumb span {
  margin: 0 12px;
  color: #c1c8cf;
}
.breadcrumb b {
  color: #4c5c69;
  font-weight: 550;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 23px;
  font-size: 11px;
  color: #78828e;
}
.quiet-button {
  border: 0;
  color: #5a6a77;
  background: none;
  font-size: 11px;
}
.menu-toggle {
  display: none;
}
.main-content {
  max-width: 1600px;
  margin: auto;
  padding: 35px 38px 28px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 26px;
}
.page-heading h1 {
  font-size: 27px;
  letter-spacing: -0.04em;
  font-weight: 650;
  margin: 0 0 9px;
}
.page-heading p {
  font-size: 12px;
  color: #7c8791;
  margin: 0;
  line-height: 1.6;
}
.heading-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.primary,
.secondary,
.danger {
  border-radius: 5px;
  padding: 11px 16px;
  font-size: 11px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 38px;
  border: 1px solid transparent;
}
.primary {
  background: var(--blue);
  color: white;
}
.primary:hover {
  background: #164a72;
}
.secondary {
  background: white;
  color: #4b5b69;
  border-color: #dce2e8;
}
.secondary:hover {
  background: #f4f7f9;
}
.danger {
  background: #b44b41;
  color: white;
}
.icon-button {
  border: 0;
  background: none;
  color: #73808d;
  font-size: 21px;
  padding: 3px 5px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.toolbar input {
  max-width: 280px;
}
.toolbar .push-right {
  margin-left: auto;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  min-width: 0;
}
.card-head {
  padding: 19px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eef0f3;
  gap: 10px;
}
.card-head h2 {
  font-size: 13px;
  font-weight: 650;
  margin: 0;
}
.card-head p {
  font-size: 10px;
  color: var(--muted);
  margin: 6px 0 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 24px;
}
.metric {
  padding: 21px 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  border-top: 2px solid #d7e4ee;
}
.metric-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #7d8893;
  font-size: 10px;
}
.metric-top span:last-child {
  color: #6f91ac;
}
.metric strong {
  display: block;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.04em;
  margin: 15px 0 8px;
  overflow-wrap: anywhere;
}
.metric small {
  font-size: 10px;
  color: #89949e;
}
.metric.accent {
  border-top-color: #d9a654;
}
.metric.accent .metric-top span:last-child {
  color: #b38b4b;
}
.split-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}
.attention-list {
  padding: 6px 21px;
}
.attention-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid #eef1f4;
}
.attention-item:last-child {
  border: 0;
}
.attention-number {
  background: #f8f1e6;
  color: #a07430;
  border-radius: 5px;
  min-width: 32px;
  text-align: center;
  padding: 8px;
  font-size: 12px;
  font-weight: 650;
}
.attention-item strong {
  display: block;
  font-size: 11px;
}
.attention-item p {
  font-size: 10px;
  color: #89949e;
  margin: 5px 0 0;
}
.attention-item button {
  margin-left: auto;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 11px;
}
th {
  font-size: 9px;
  color: #8a949e;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  font-weight: 600;
  background: #fafbfc;
  padding: 13px 20px;
  white-space: nowrap;
  border-bottom: 1px solid #edf0f3;
}
td {
  padding: 16px 20px;
  border-bottom: 1px solid #eef1f4;
  vertical-align: middle;
  color: #5e6b77;
}
tr:last-child td {
  border-bottom: 0;
}
td strong {
  display: block;
  color: #334754;
  font-weight: 600;
  font-size: 11px;
}
td small {
  display: block;
  color: #929ba4;
  font-size: 10px;
  margin-top: 5px;
}
.number {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.row-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}
.text-button {
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 10px;
  padding: 4px 0;
  font-weight: 600;
}
.text-button + .text-button {
  margin-left: 7px;
}
.badge {
  display: inline-block;
  font-size: 9px;
  padding: 5px 8px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}
.badge.green {
  color: #347a61;
  background: #edf6f1;
}
.badge.blue {
  color: #3e779c;
  background: #edf4fa;
}
.badge.amber {
  color: #ad7b2e;
  background: #fbf3e6;
}
.badge.red {
  color: #b65a52;
  background: #faefed;
}
.badge.gray {
  color: #84909b;
  background: #f1f3f5;
}
.empty {
  text-align: center;
  padding: 48px 25px;
  color: #89949f;
  font-size: 12px;
}
.empty strong {
  font-size: 14px;
  color: #667786;
  margin-bottom: 8px;
}
.empty p {
  line-height: 1.7;
  margin: 8px 0 17px;
}
.workspace-footer {
  font-size: 9px;
  color: #a1aab3;
  padding: 12px 38px 24px;
}
.workspace-footer span {
  margin: 0 7px;
}
#notice {
  background: #fff6e8;
  border: 1px solid #edd3a7;
  color: #8a632c;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  line-height: 1.7;
  font-size: 12px;
  border-radius: 5px;
  margin-bottom: 24px;
}
.form-note {
  color: #87939c;
  font-size: 11px;
  line-height: 1.8;
  background: #f5f8fa;
  padding: 12px 14px;
  border-radius: 4px;
  margin: 12px 0;
}
.form-error {
  font-size: 12px;
  color: #af4b40;
  line-height: 1.7;
  min-height: 0;
  margin: 12px 0;
}
.form-error:empty {
  display: none;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  color: #5b6b78;
  margin-bottom: 17px;
}
input,
select,
textarea {
  border: 1px solid #dbe1e6;
  border-radius: 4px;
  padding: 10px 11px;
  background: #fff;
  color: #334653;
  min-height: 39px;
  width: 100%;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #6e9dc1;
  box-shadow: 0 0 0 3px #2a6b9a0c;
}
input:disabled,
select:disabled,
textarea:disabled {
  background: #f5f6f8;
}
textarea {
  min-height: 80px;
  resize: vertical;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.span-all {
  grid-column: 1/-1;
}
.line-items {
  margin: 15px 0;
}
.line-item {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 90px 85px 27px;
  gap: 9px;
  align-items: end;
  margin-bottom: 7px;
}
.line-item label {
  margin-bottom: 4px;
}
.line-item.mro {
  grid-template-columns: minmax(130px, 1fr) 90px 27px;
}
.form-total {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin: 17px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.form-total strong {
  font-size: 18px;
  letter-spacing: -0.025em;
}
.check-row {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.check-row input {
  width: 16px;
  min-height: 16px;
}
.check-row strong {
  margin-left: auto;
}
.inspection-row {
  display: grid;
  grid-template-columns: 1fr 105px;
  gap: 15px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.inspection-row label {
  margin-bottom: 0;
}
.inspection-row > div:first-child small {
  display: block;
  margin-top: 4px;
  line-height: 1.5;
}
.transfer-receipt-row,
.stock-count-row {
  grid-template-columns: minmax(0, 1fr) 125px 125px;
}
.transfer-send-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.transfer-send-row > label:first-child,
.transfer-send-row > small {
  grid-column: 1 / -1;
}
@media (max-width: 720px) {
  .transfer-receipt-row,
  .stock-count-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .transfer-receipt-row > div:first-child,
  .stock-count-row > div:first-child {
    grid-column: 1 / -1;
  }
}
.detail-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  font-size: 12px;
  line-height: 1.7;
}
.detail-list dt {
  color: #8b959e;
}
.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.audit-detail {
  white-space: pre-wrap;
  font:
    11px/1.7 ui-monospace,
    monospace;
  background: #f6f8fa;
  padding: 14px;
  max-height: 280px;
  overflow: auto;
}
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkbox-group input {
  width: 16px;
  min-height: 16px;
}
dialog {
  border: 1px solid #dce3e9;
  border-radius: 9px;
  width: min(650px, calc(100vw - 28px));
  max-height: 90dvh;
  padding: 0;
  box-shadow: 0 25px 100px #132e4540;
  color: #334653;
}
dialog::backdrop {
  background: #10273980;
  backdrop-filter: blur(2px);
}
.dialog-head {
  padding: 23px 25px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.035em;
}
.dialog-head .eyebrow {
  font-size: 8px;
  margin-bottom: 8px;
}
#dialog-body {
  padding: 23px 25px 8px;
  max-height: 58dvh;
  overflow: auto;
}
#dialog-error {
  margin: 8px 25px 18px;
}
.dialog-footer {
  padding: 16px 25px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  background: #fafbfc;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: white;
  max-width: calc(100vw - 40px);
  padding: 13px 21px;
  border-radius: 5px;
  box-shadow: 0 5px 25px #10273933;
  font-size: 12px;
  z-index: 100;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.section-note {
  font-size: 11px;
  color: #8b959d;
  line-height: 1.8;
  margin: 16px 0;
}
.danger-text {
  color: #ae5147;
}
@media (min-width: 1600px) {
  .main-content {
    padding-top: 45px;
  }
  .metric {
    padding: 25px;
  }
  .main-content {
    max-width: 1440px;
  }
  .topbar {
    padding-left: 48px;
  }
}
@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .sidebar {
    width: 195px;
    padding: 26px 12px;
  }
  .main-content {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 17px 13px;
  }
  .metric strong {
    font-size: 21px;
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
  td,
  th {
    padding-left: 15px;
    padding-right: 15px;
  }
}
@media (max-width: 720px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-brand {
    min-height: auto;
    padding: 25px 28px;
  }
  .login-brand > div:nth-child(2),
  .login-brand > small {
    display: none;
  }
  .login-panel {
    padding: 40px 27px;
    min-height: calc(100dvh - 92px);
    align-items: start;
  }
  .login-panel form {
    padding-top: 18px;
  }
  .workspace {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.18s;
    width: 226px;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 20px 0 100px #122a4566;
  }
  .main-shell {
    min-width: 0;
  }
  .menu-toggle {
    display: inline-block;
    margin-right: 12px;
  }
  .topbar {
    height: 61px;
    padding: 0 19px;
    justify-content: flex-start;
  }
  .topbar-right {
    margin-left: auto;
    gap: 5px;
  }
  .topbar-right #today {
    display: none;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .breadcrumb span {
    margin: 0 7px;
  }
  .main-content {
    padding: 27px 17px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 23px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .heading-actions {
    width: 100%;
  }
  .heading-actions .primary {
    flex: 1;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric strong {
    font-size: 22px;
    margin: 13px 0 7px;
  }
  .metric-top {
    font-size: 9px;
  }
  .metric small {
    font-size: 9px;
  }
  .card-head {
    padding: 17px;
  }
  .split-grid {
    gap: 17px;
  }
  .toolbar input {
    max-width: none;
    flex: 1;
    min-width: 160px;
  }
  table {
    font-size: 10px;
  }
  td,
  th {
    padding: 13px 15px;
  }
  .workspace-footer {
    padding-left: 19px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .line-item {
    grid-template-columns: minmax(110px, 1fr) 67px 60px 24px;
    gap: 5px;
  }
  .line-item.mro {
    grid-template-columns: minmax(110px, 1fr) 70px 24px;
  }
  .line-item input,
  .line-item select {
    padding: 9px 6px;
    font-size: 11px;
  }
  .dialog-head {
    padding: 20px;
  }
  #dialog-body {
    padding: 19px 20px 5px;
  }
  .dialog-footer {
    padding: 15px 20px;
  }
  .report-grid {
    grid-template-columns: 1fr;
  }
  #notice {
    align-items: flex-start;
    flex-direction: column;
  }
  .detail-list {
    grid-template-columns: 90px 1fr;
  }
}

.menu-backdrop {
  display: none;
}
@media (max-width: 720px) {
  .menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: #132a454d;
    border: 0;
    z-index: 15;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
