:root {
  color-scheme: light;
  --ink: #172321;
  --muted: #66736f;
  --line: #dce3df;
  --paper: #ffffff;
  --wash: #f3f6f4;
  --brand: #12665a;
  --brand-dark: #0a4940;
  --accent: #d9eee8;
  --danger: #a52a2a;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--wash); color: var(--ink); font-family: "Yu Gothic UI", "Hiragino Sans", sans-serif; }
.site-header { min-height: 88px; padding: 20px max(24px, calc((100vw - 1080px) / 2)); display: flex; align-items: center; justify-content: space-between; background: var(--brand-dark); color: white; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 24px; font-weight: 600; letter-spacing: .04em; }
h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 12px; }
h3 { margin-bottom: 4px; }
.eyebrow { margin-bottom: 5px; font-size: 11px; font-weight: 700; letter-spacing: .16em; opacity: .72; }
main { width: min(1080px, calc(100% - 32px)); margin: 28px auto 80px; }
.page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; }
.muted { color: var(--muted); }
.company-badge { padding: 8px 12px; background: var(--accent); color: var(--brand-dark); border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.privileged-panel { display: grid; grid-template-columns: 1fr minmax(260px, 360px); gap: 28px; align-items: end; margin-bottom: 18px; padding: 20px 24px; border: 1px solid #d5b45a; border-radius: 14px; background: #fff9e8; }
.privileged-panel h3 { margin-bottom: 6px; }.privileged-panel p { margin-bottom: 0; color: #665422; font-size: 13px; }
.privileged-controls { display: grid; gap: 12px; }
.privileged-panel[hidden] { display: none; }
.form-section, .confirm-view, .complete-view, .login-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 4vw, 38px); margin-bottom: 18px; }
.compact-section { padding-block: 24px; }
.compact-section .section-heading { margin-bottom: 18px; }
.login-panel { width: min(620px, 100%); margin: 80px auto; text-align: center; }
.login-panel .button { margin-top: 18px; }
.section-heading { display: flex; gap: 16px; align-items: start; margin-bottom: 25px; }
.section-heading > span { display: grid; place-items: center; min-width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: white; font-size: 12px; font-weight: 700; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.basic-info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.field-wide { grid-column: 1 / -1; }
.po-lookup-field { display: grid; gap: 7px; padding: 14px; border: 1px solid #b9d8d0; border-radius: 10px; background: #f4fbf9; }
.input-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.field-help { margin: 0; color: var(--muted); font-size: 12px; }
.field-help.success { color: var(--brand-dark); font-weight: 700; }
.po-selection { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 3px; }
.po-selection[hidden] { display: none; }
.po-selection > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 7px; background: white; border: 1px solid #d5e5e0; }
.po-selection span { color: var(--muted); font-size: 11px; }
.po-selection strong { color: var(--brand-dark); font-size: 14px; }
.po-candidates { margin-top: 3px; padding: 12px; border-radius: 8px; background: white; border: 1px solid #d5e5e0; }
.po-candidates[hidden] { display: none; }
.po-candidates p { margin-bottom: 9px; color: var(--muted); font-size: 12px; }
.po-candidate-list { display: grid; gap: 7px; }
.po-candidate { display: grid; grid-template-columns: minmax(130px, .7fr) minmax(180px, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 10px 12px; border: 1px solid #b9d8d0; border-radius: 7px; background: #f8fcfb; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.po-candidate:hover, .po-candidate:focus { border-color: var(--brand); background: var(--accent); outline: none; }
.po-candidate strong { color: var(--brand-dark); }.po-candidate small { color: var(--muted); }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; }
input, textarea, select { width: 100%; border: 1px solid #b8c4c0; border-radius: 7px; padding: 11px 12px; background: white; color: var(--ink); font: inherit; font-weight: 400; }
input[readonly] { background: var(--wash); color: #43514d; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(18, 102, 90, .16); border-color: var(--brand); }
.required { margin-left: 7px; color: var(--danger); font-size: 11px; }
.items-table-wrap { overflow-x: auto; margin-bottom: 16px; }
.items-table { width: 100%; border-collapse: collapse; min-width: 980px; }
.items-table th { padding: 8px; color: var(--muted); text-align: left; font-size: 12px; border-bottom: 1px solid var(--line); }
.items-table td { padding: 8px 4px; }
.items-table td:nth-child(1) { width: 6%; }.items-table td:nth-child(2) { width: 20%; }.items-table td:nth-child(3) { width: 13%; }.items-table td:nth-child(4) { width: 16%; }.items-table td:nth-child(n+5) { width: 11%; }
.items-table .empty-row td { padding: 28px 12px; color: var(--muted); text-align: center; }
.items-table input[readonly] { border-color: transparent; padding-inline: 8px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 20px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; font: inherit; font-weight: 700; text-decoration: none; }
.button.primary { background: var(--brand); color: white; }.button.primary:hover { background: var(--brand-dark); }
.button.secondary { background: white; color: var(--ink); border-color: #aebbb7; }.button.secondary:hover { background: var(--wash); }
.button.small { min-height: 36px; padding: 7px 12px; font-size: 13px; }
.button:disabled { opacity: .55; cursor: wait; }
.remove-item { border: 0; background: transparent; color: var(--danger); cursor: pointer; font-size: 20px; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 24px; gap: 12px; }.form-actions.split { justify-content: space-between; }.form-actions.center { justify-content: center; }
.error-message { padding: 12px 14px; border-left: 4px solid var(--danger); background: #fff0f0; color: #761d1d; }
.user-area { display: flex; align-items: center; gap: 16px; font-size: 13px; }.text-link { color: white; }
.confirm-grid { display: grid; grid-template-columns: 180px 1fr; border-top: 1px solid var(--line); }.confirm-grid dt, .confirm-grid dd { margin: 0; padding: 13px 8px; border-bottom: 1px solid var(--line); }.confirm-grid dt { color: var(--muted); font-size: 13px; }.confirm-grid dd { font-weight: 600; }
.confirm-items { width: 100%; border-collapse: collapse; margin-top: 25px; }.confirm-items th, .confirm-items td { padding: 10px; text-align: left; border-bottom: 1px solid var(--line); }
.complete-view { text-align: center; padding-block: 64px; }.success-mark { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 22px; border-radius: 50%; background: var(--accent); color: var(--brand); font-size: 30px; }.receipt-number { display: block; font-size: 28px; letter-spacing: .06em; }.note-small { margin: 25px 0 0; font-size: 12px; }
@media (max-width: 900px) { .basic-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .site-header { align-items: start; }.user-area { align-items: end; flex-direction: column; gap: 5px; }.page-heading { align-items: start; flex-direction: column; }.privileged-panel { grid-template-columns: 1fr; }.field-grid, .basic-info-grid, .po-selection { grid-template-columns: 1fr; }.field-wide { grid-column: auto; }.input-action { grid-template-columns: 1fr; }.po-candidate { grid-template-columns: 1fr; gap: 3px; }.form-actions, .form-actions.split { flex-direction: column-reverse; }.button { width: 100%; }.confirm-grid { grid-template-columns: 1fr; }.confirm-grid dt { padding-bottom: 2px; border: 0; }.confirm-grid dd { padding-top: 2px; } }
