@charset "UTF-8";
:root {
  --bg: #f5f5ef;
  --paper: #fff;
  --ink: #233b32;
  --muted: #737b72;
  --green: #203e34;
  --line: #dfe3d9;
  --pale: #eaf0e7;
  --gold: #cbb27b;
  --radius: 14px;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,input {
  font: inherit;
}

button,a,input {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

svg {
  flex-shrink: 0;
  vertical-align: middle;
}

button:disabled {
  cursor: default;
  opacity: .48;
}

a:focus-visible,button:focus-visible,input:focus-visible {
  outline: 3px solid #b49657;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  background: white;
  padding: 12px;
  z-index: 10;
}

.skip-link:focus {
  top: 10px;
}

.site-header {
  min-height: 88px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1120px;
  min-height: 88px;
  padding: 12px 36px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  min-width: 0;
  max-width: 100%;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  flex-shrink: 0;
  height: 43px;
  width: 43px;
  background: var(--green);
  color: #f7f4e9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font: 35px Georgia,serif;
  letter-spacing: -3px;
  padding-right: 3px;
}

.brand-mark span {
  color: var(--gold);
  font-size: 27px;
  align-self: flex-end;
  line-height: 1.2;
}

.brand strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 650;
  display: block;
}

.brand small {
  overflow-wrap: anywhere;
  font-size: 8px;
  letter-spacing: 1.65px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.internal-label {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 100%;
}

.header-actions form {
  margin: 0;
}

.department-label,.admin-link {
  font-size: 12px;
  color: var(--muted);
}

.admin-link:hover {
  color: var(--green);
  text-decoration: underline;
}

.logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
}

.logout-button:hover {
  background: var(--bg);
}

.main-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 42px 28px 50px;
  min-height: calc(100svh - 168px);
}

.page-heading {
  margin: 14px 0 30px;
}

.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

h1,h2,p {
  margin-top: 0;
}

h1 {
  font-family: Georgia,"Times New Roman",serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -.8px;
  margin-bottom: 12px;
}

h2 {
  font-weight: 550;
  font-size: 22px;
  letter-spacing: -.4px;
  margin-bottom: 8px;
}

.page-heading p,.result-heading p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 14px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  min-height: 28px;
  margin-bottom: 24px;
}

.back-link:hover {
  color: var(--green);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-weight: 550;
  font-size: 14px;
  line-height: 1.4;
  transition: background .15s;
}

.primary {
  background: var(--green);
  color: white;
}

.primary:hover:enabled {
  background: #2f5346;
}

.secondary {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}

.secondary:hover {
  background: var(--pale);
}

.full-width {
  width: 100%;
  justify-content: space-between;
}

.site-footer {
  max-width: 1120px;
  margin: auto;
  padding: 24px 36px 28px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .3px;
}

.test-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.test-dot:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.login-wrap {
  max-width: 1050px;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 70px;
  padding-top: 65px;
  padding-bottom: 65px;
}

.login-intro {
  padding-bottom: 25px;
}

.login-intro .eyebrow {
  font-size: 9px;
  letter-spacing: 1.5px;
  margin-bottom: 23px;
}

.login-intro h1 {
  font-size: 43px;
  line-height: 1.15;
  margin-bottom: 22px;
}

.login-intro p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

.login-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 6px 24px #233b3204;
}

.section-icon {
  background: var(--pale);
  color: var(--green);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-card>.section-icon {
  margin-bottom: 23px;
}

.login-card>p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}

.login-form {
  display: flex;
  flex-direction: column;
}

.login-form label {
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 7px;
}

.login-form input {
  border: 1px solid #d7ded4;
  border-radius: 8px;
  min-height: 48px;
  padding: 11px 13px;
  margin-bottom: 19px;
  width: 100%;
  font-size: 16px;
  background: #fdfdfb;
  color: var(--ink);
}

input::placeholder {
  color: #9ca397;
  opacity: 1;
}

.login-form input::placeholder {
  font-size: 13px;
}

.login-form .button {
  margin-top: 5px;
}

.login-note {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 18px;
  font-size: 10px;
  color: var(--muted);
}

.login-note>span:last-child {
  display: block;
  margin-top: 5px;
}

.error-box {
  background: #fff0e9;
  color: #8e3523;
  border: 1px solid #efcabb;
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 13px;
  margin: 0 0 20px;
}

.notice {
  font-size: 12px;
  padding: 12px;
  background: var(--pale);
  border-radius: 8px;
}

.selection-list {
  display: grid;
  gap: 12px;
}

.selection-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .15s,background .15s;
}

.selection-card:hover {
  border-color: #91a18d;
  background: #fdfefa;
}

.selection-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.selection-text strong {
  font-size: 17px;
  font-weight: 550;
  line-height: 1.4;
}

.selection-text small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.selection-card>svg {
  color: var(--green);
}

.separator {
  padding: 0 8px;
  color: #c1c6bb;
}

.quiet-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin: 24px 0;
  line-height: 1.7;
}

.empty {
  color: var(--muted);
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.order-page .main-wrap {
  padding-top: 23px;
  padding-bottom: 160px;
}

.order-page .back-link {
  margin-bottom: 12px;
}

.order-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.order-heading .eyebrow {
  margin-bottom: 7px;
}

.order-heading h1 {
  margin-bottom: 0;
}

.count-badge {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 20px;
  background: #ffffff80;
  white-space: nowrap;
}

.form-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 18px 0 21px;
  max-width: 100%;
}

.form-hint strong {
  color: var(--ink);
  font-weight: 500;
}

.article-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.article-header,.article-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 76px 88px;
  gap: 20px;
  align-items: center;
  padding: 0 22px;
}

.article-header {
  min-height: 42px;
  background: #edf0e9;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .4px;
  color: var(--muted);
}

.article-header>span:not(:first-child) {
  text-align: center;
}

.header-sub {
  font-weight: 400;
  color: #7e897c;
}

.article-row {
  min-height: 60px;
  border-bottom: 1px solid #e9ece5;
  position: relative;
  transition: background .15s;
}

.article-row.is-direct .article-description,
.article-header.is-direct>span:first-child {
  grid-column: 1 / 3;
}

.article-row.is-direct .unit:before {
  content: none;
}

.article-row:last-child {
  border-bottom: none;
}

.article-row.is-ordered {
  background: #f5f9f2;
}

.article-row.is-ordered:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #6e8c63;
}

.article-description {
  padding: 10px 0;
}

.article-name {
  font-size: 14px;
  font-weight: 500;
  display: block;
  line-height: 1.35;
  cursor: text;
}

.article-meta {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.article-meta strong {
  font-weight: 600;
  color: #5e6c5b;
}

.unit:before {
  content: "·";
  padding: 0 5px;
}

.qty {
  scroll-margin-bottom: 140px;
  height: 42px;
  width: 100%;
  border: 1px solid #dce2d7;
  background: #fff;
  border-radius: 7px;
  text-align: center;
  color: var(--ink);
  font-size: 16px;
  appearance: textfield;
  -moz-appearance: textfield;
  padding: 4px;
}

.qty::-webkit-inner-spin-button,.qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty.order {
  background: #f1f4ed;
  border-color: #d5dece;
  font-weight: 600;
}

.qty.order::placeholder {
  color: #4c6c3e;
  font-weight: 500;
}

.qty.order.is-manual {
  background: #e5efde;
  border-color: #a7bd97;
}

.qty:focus {
  background: #fff;
  outline: 2px solid #8da480;
  outline-offset: 1px;
}

.list-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: var(--muted);
  margin: 15px 0;
}

.legend-dot {
  display: inline-block;
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #6e8c63;
  margin-right: 4px;
}

.order-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fffffff5;
  border-top: 1px solid var(--line);
  padding: 14px 28px calc(10px + env(safe-area-inset-bottom));
  z-index: 2;
  backdrop-filter: blur(10px);
}

.order-bottom-inner {
  max-width: 804px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.order-summary strong {
  font-size: 14px;
  font-weight: 600;
  display: block;
}

.order-summary>span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}

.bottom-note {
  font-size: 9px;
  text-align: center;
  color: var(--muted);
  margin-top: 10px;
  letter-spacing: .3px;
}

.order-bottom .button {
  min-width: 205px;
}

.result-heading {
  margin: 6px 0 28px;
}

.success-icon {
  background: #e2ecdc;
  border: 1px solid #d1dfc8;
  display: flex;
  width: 55px;
  height: 55px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 27px;
  color: #48693b;
}

.result-heading .eyebrow {
  font-size: 9px;
  letter-spacing: 1.2px;
}

.download-list {
  display: grid;
  gap: 12px;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 19px;
  background: white;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 12px;
}

.download-card:hover {
  border-color: #a1b397;
  background: #fcfef9;
}

.pdf-icon {
  color: var(--green);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.pdf-icon small {
  font-size: 8px;
  letter-spacing: 1px;
  font-weight: 600;
}

.download-card .selection-text strong {
  font-size: 14px;
}

.download-action {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--green);
}

.result-note {
  padding: 18px 0 24px;
  margin-top: 8px;
  font-size: 12px;
  max-width: 520px;
}

.result-note>strong {
  font-weight: 550;
}

.result-note p {
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.7;
}

.admin-section {
  margin-bottom: 28px;
}

.admin-section h2 {
  font-size: 15px;
}

.admin-list {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.admin-list>div {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-list>div:last-child {
  border-bottom: 0;
}

.admin-list strong {
  font-size: 13px;
  font-weight: 550;
}

.admin-list span {
  color: var(--muted);
  font-size: 12px;
}

.error-page {
  padding-top: 35px;
}

.error-page p {
  color: var(--muted);
  max-width: 550px;
  margin-bottom: 25px;
}

@media(min-width:1100px) {
  .login-wrap {
    min-height: calc(100svh - 168px);
  }
}

@media(max-width:760px) {
  .site-header {
    min-height: 0;
  }
  .header-inner {
    min-height: 0;
    padding: 16px 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .brand {
    align-self: flex-start;
  }
  .brand-mark {
    width: 37px;
    height: 37px;
    font-size: 31px;
  }
  .brand {
    gap: 10px;
  }
  .brand strong {
    font-size: 11px;
    letter-spacing: 1.5px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 1.1px;
  }
  .internal-label {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .main-wrap {
    padding: 30px 22px 40px;
    min-height: calc(100svh - 145px);
  }
  .login-wrap {
    max-width: 460px;
    display: block;
    padding-top: 32px;
    padding-bottom: 24px;
  }
  .login-intro {
    padding: 0 0 17px;
  }
  .login-intro .eyebrow {
    margin-bottom: 14px;
    font-size: 8px;
  }
  .login-intro h1 {
    font-size: 31px;
    line-height: 1.2;
    margin-bottom: 12px;
  }
  .login-intro p {
    display: none;
  }
  .login-card {
    padding: 26px;
  }
  .login-card>.section-icon {
    display: none;
  }
  .login-card h2 {
    font-size: 21px;
  }
  .site-footer {
    padding: 20px 22px;
    gap: 12px;
    font-size: 9px;
  }
  .department-label {
    display: none;
  }
  .header-actions {
    width: 100%;
    gap: 8px;
    align-items: stretch;
  }
  .header-actions form {
    flex: 0 0 44px;
    display: flex;
  }
  .header-actions .logout-button {
    height: auto;
    min-height: 44px;
  }
  .admin-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 7.5em;
    min-width: min(100%, 7.5em);
    min-height: 44px;
    padding: 9px 8px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--pale);
    color: var(--green);
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    overflow-wrap: anywhere;
  }
  .selection-card {
    padding: 21px;
    gap: 16px;
  }
  .page-heading {
    margin: 12px 0 25px;
  }
  h1 {
    font-size: 32px;
  }
  .order-page .main-wrap {
    padding-top: 19px;
  }
  .order-heading h1 {
    font-size: 32px;
  }
  .article-header,.article-row {
    padding: 0 16px;
    grid-template-columns: minmax(0,1fr) 63px 72px;
    gap: 14px;
  }
  .form-hint {
    font-size: 11px;
  }
  .download-action span {
    display: none;
  }
  .download-card {
    gap: 15px;
    padding: 20px;
  }
  .header-sub {
    display: none;
  }
}

@media(max-width:420px) {
  .header-inner {
    padding: 14px 17px;
  }
  .brand strong {
    font-size: 10px;
    letter-spacing: 1.2px;
  }
  .brand small {
    font-size: 6px;
    letter-spacing: 1.1px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 29px;
  }
  .brand {
    gap: 8px;
  }
  .internal-label {
    max-width: 65px;
    font-size: 7px;
    line-height: 1.7;
    letter-spacing: 1px;
  }
  .main-wrap {
    padding-left: 17px;
    padding-right: 17px;
  }
  .article-header,.article-row {
    padding-left: 13px;
    padding-right: 11px;
    grid-template-columns: minmax(0,1fr) 54px 64px;
    gap: 10px;
  }
  .article-name {
    font-size: 12px;
    line-height: 1.3;
  }
  .article-meta {
    font-size: 10px;
  }
  .article-row {
    min-height: 58px;
  }
  .article-header {
    font-size: 9px;
  }
  .qty {
    height: 42px;
  }
  .form-hint {
    margin-top: 15px;
    margin-bottom: 17px;
  }
  .order-bottom {
    padding-left: 17px;
    padding-right: 17px;
  }
  .order-bottom .button {
    min-width: 0;
    font-size: 12px;
    padding: 12px 14px;
    gap: 12px;
  }
  .order-summary strong {
    font-size: 12px;
  }
  .order-summary>span {
    font-size: 10px;
  }
  .list-caption {
    font-size: 9px;
    gap: 6px;
  }
  .list-caption>span:last-child {
    display: none;
  }
  .login-wrap {
    padding-top: 27px;
  }
  .login-card {
    padding: 23px;
  }
  .login-intro h1 {
    font-size: 29px;
  }
  .download-card .selection-text strong {
    font-size: 12px;
  }
  .download-card .selection-text small {
    font-size: 11px;
  }
  .result-heading h1 {
    font-size: 29px;
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    transition: none!important;
    scroll-behavior: auto!important;
  }
}

.setup-wrap { max-width: 650px; }
.setup-card .setup-help { font-size: 12px; line-height: 1.8; color: var(--muted); }
.form-section { font-size: 17px; margin: 12px 0 18px; }
.password-details { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: white; }
.password-details summary { cursor: pointer; font-size: 13px; font-weight: 550; }
.password-details .login-form { margin-top: 20px; max-width: 440px; }
.login-form select { min-height: 48px; margin-bottom: 19px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: white; color: var(--ink); font: inherit; }

.mail-help { font-size: 13px; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.mail-panel { overflow-wrap: anywhere; }
.mail-panel .error-box, .mail-panel .notice { margin-top: 16px; }
.mail-panel form { max-width: 440px; margin: 18px auto; }

.admin-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 24px; padding: 4px 0 10px; }
.admin-tabs a { flex: 0 0 auto; padding: 10px 14px; border-radius: 8px; font-size: 13px; background: white; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.admin-tabs a[aria-current="page"] { background: var(--ink); color: white; border-color: var(--ink); }
.admin-dashboard { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 32px; }
.admin-dashboard-card { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:20px; background:white; border:1px solid var(--line); border-radius:12px; text-decoration:none; color:var(--ink); }
.admin-dashboard-card strong,.admin-dashboard-card small { display:block; }
.admin-dashboard-card strong { font-size:16px; }
.admin-dashboard-card small { margin-top:5px; color:var(--muted); font-size:12px; }
.admin-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:20px 0; }
.admin-toolbar>span { font-size:12px; color:var(--muted); }
.admin-search { display:flex; gap:8px; margin-bottom:18px; }
.admin-search input { min-width:0; width:100%; border:1px solid var(--line); border-radius:8px; padding:12px; font:inherit; background:white; }
.admin-records { display:grid; gap:8px; }
.admin-record { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px; border:1px solid var(--line); border-radius:10px; text-decoration:none; background:white; color:var(--ink); }
.admin-record>span:first-child { min-width:0; }
.admin-record strong,.admin-record small { display:block; overflow-wrap:anywhere; }
.admin-record strong { font-size:14px; }
.admin-record small { font-size:11px; line-height:1.6; margin-top:4px; color:var(--muted); }
.edit-label { flex:0 0 auto; display:flex; align-items:center; gap:7px; font-size:12px; }
.admin-empty { padding:24px; font-size:14px; color:var(--muted); }
.admin-edit-card { max-width:660px; margin-bottom:28px; }
.admin-edit-card h2 { margin-bottom:24px; }
.admin-edit-form .field-help { margin:-8px 0 22px; font-size:12px; line-height:1.7; color:var(--muted); }
.admin-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.admin-form-grid>div { min-width:0; }
.admin-edit-form input,.admin-edit-form select { min-width:0; max-width:100%; width:100%; }
.admin-form-grid input { width:100%; }
.admin-check { display:flex!important; align-items:center; gap:10px; margin:0 0 20px!important; }
.admin-check input { width:20px!important; min-height:20px!important; height:20px; margin:0!important; accent-color:var(--ink); padding:0; flex:0 0 20px; }
.admin-form-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:8px; }
.admin-form-actions .button { flex:1 1 auto; }
@media(max-width:480px) { .admin-dashboard { grid-template-columns:1fr; } .edit-label { font-size:0; gap:0; } .admin-edit-card { padding:20px; } .admin-form-actions .button { width:100%; } .admin-tabs { max-width:100%; } }

.admin-toolbar { flex-wrap:wrap; }
.import-upload { margin-top:24px; }
.import-upload textarea { width:100%; min-width:0; resize:vertical; padding:12px; margin-bottom:18px; border:1px solid var(--line); border-radius:8px; font:13px/1.6 monospace; background:#fdfdfb; color:var(--ink); }
.import-upload .field-help,.import-preview .field-help { color:var(--muted); font-size:12px; line-height:1.7; margin:4px 0 20px; }
.import-preview { margin-bottom:24px; }
.import-preview-list { max-height:400px; overflow:auto; border:1px solid var(--line); border-radius:8px; margin:20px 0; }
.import-row { display:grid; grid-template-columns:56px minmax(0,1fr); gap:10px; padding:12px; border-bottom:1px solid var(--line); }
.import-row:last-child { border:0; }
.import-line { color:var(--muted); font-size:11px; }
.import-row strong { font-size:13px; overflow-wrap:anywhere; }
.import-row small { display:block; color:var(--muted); line-height:1.6; font-size:11px; margin-top:4px; overflow-wrap:anywhere; }
.import-errors { max-height:240px; overflow:auto; padding-left:20px; font-size:12px; }
.import-errors li { margin-top:8px; overflow-wrap:anywhere; }
.import-cancel { margin-top:10px; }
@media(max-width:480px) { .import-preview { padding:20px; } .import-preview .button { padding:13px 12px; font-size:12px; } }

.delete-entry-link { border-top:1px solid var(--line); padding-top:20px; margin-top:24px; font-size:13px; }
.delete-entry-link a { color:#963d35; }
.button.danger { background:#963d35; color:white; border:1px solid #963d35; }

.history-filter { max-width:660px; padding:20px; border:1px solid var(--line); border-radius:12px; background:white; }
.history-filter input { width:100%; min-width:0; }
.history-amount { text-align:right; flex:0 1 40%; overflow-wrap:anywhere; }
.history-amount strong { font-size:22px; }
.history-row { align-items:start; }
@media(max-width:400px) { .history-filter .admin-form-grid { grid-template-columns:1fr; gap:0; } }

.order-person { display:flex; align-items:center; flex-wrap:wrap; gap:8px 14px; margin:0 0 14px; }
.order-person label { font-size:13px; font-weight:600; }
.order-person label span { color:var(--muted); font-weight:400; }
.order-person input { flex:1 1 180px; min-width:0; min-height:44px; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:white; color:var(--ink); font:inherit; }
.order-person-result { text-align:center; font-size:13px; color:var(--muted); margin:0 0 20px; overflow-wrap:anywhere; }

.selection-card.topic-recent { background:#eff9f0; border-color:#b7dcbc; }
.selection-card.topic-overdue { background:#fff0f1; border-color:#ffb5bd; }
.selection-card.topic-recent:hover { background:#e4f3e6; border-color:#80b98a; }
.selection-card.topic-overdue:hover { background:#ffe5e8; border-color:#e38c98; }
.topic-status { display:flex; align-items:center; gap:8px; margin-top:8px; font-size:13px; line-height:1.5; }
.topic-recent .topic-status { color:#246538; }
.topic-overdue .topic-status { color:#b3273b; }
.topic-status-dot { flex:0 0 9px; height:9px; border-radius:50%; background:currentColor; }
.selection-text .topic-date { margin-top:3px; font-size:11px; }

.order-divider { padding:12px 12px 7px; margin-top:8px; border-top:2px solid #b3c5b6; color:var(--green); font-size:13px; font-weight:600; overflow-wrap:anywhere; }
.order-divider:empty { padding:0; height:8px; margin:12px 10px 2px; }

/* Article search jumps within the existing list without filtering or reordering it. */
.order-tools {
  position:sticky; top:env(safe-area-inset-top, 0px); z-index:3;
  margin:0 0 18px; padding:8px 0; background:var(--bg); border-bottom:1px solid var(--line);
}
.language-picker { margin:0 0 24px; }
.language-picker>label { display:block; margin:0 0 6px; font-size:13px; font-weight:600; }
.language-picker>div { display:flex; flex-wrap:wrap; gap:8px; }
.language-picker select { flex:1 1 160px; min-width:0; min-height:44px; padding:8px; font:inherit; font-size:16px; border:1px solid var(--line); border-radius:8px; background:var(--paper); color:var(--ink); }
.language-picker .button { flex:0 1 auto; min-height:44px; font-size:13px; }
.language-picker button[hidden] { display:none; }
.notification-settings { margin:20px 0; }
.notification-settings select, .deadline-settings select { width:100%; min-height:44px; padding:10px; font:inherit; font-size:16px; border:1px solid var(--line); border-radius:8px; background:var(--paper); color:var(--ink); }
.notification-status { margin:16px 0; padding:12px 0; border-top:1px solid var(--line); overflow-wrap:anywhere; }
.notification-preview { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; font-size:13px; }
.order-tools[hidden], .search-clear[hidden], .search-navigation[hidden] { display:none; }
.order-filters { display:flex; flex-wrap:wrap; gap:8px; }
.order-filters button { min-height:44px; padding:8px 14px; font:inherit; font-size:13px; color:var(--ink); border:1px solid var(--line); border-radius:8px; background:var(--paper); cursor:pointer; }
.order-filters button[aria-pressed="true"] { background:var(--pale); border-color:#91a18d; }
.article-row[hidden], .order-divider[hidden], #frequent-empty[hidden] { display:none; }
.tools-help { font-size:12px; color:var(--muted); margin:8px 0 12px; }
.article-search-field { position:relative; }
.article-search-field input {
  width:100%; min-height:48px; padding:11px 52px 11px 14px;
  border:1px solid var(--line); border-radius:9px;
  font:inherit; font-size:16px; color:var(--ink); background:var(--paper);
  appearance:none; -webkit-appearance:none;
}
.article-search-field input::-webkit-search-cancel-button { -webkit-appearance:none; }
.search-clear {
  position:absolute; right:2px; top:2px; width:44px; height:44px;
  border:0; border-radius:7px; background:transparent; color:var(--ink); font-size:24px; cursor:pointer;
}
.search-results { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; font-size:12px; }
.search-results [role="status"] { flex:1 1 110px; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.search-navigation { display:inline-flex; flex:0 0 auto; gap:8px; }
.search-navigation button {
  min-height:44px; padding:8px 12px; color:var(--ink); font:inherit;
  background:var(--paper); border:1px solid var(--line); border-radius:8px; cursor:pointer;
}
.article-row.is-search-match { background:#f8efd8; box-shadow:inset 0 0 0 2px var(--gold); }
.article-row:focus-visible { outline:2px solid #b49657; outline-offset:-2px; }
.separator-edit { padding:16px; background:#edf4ee; border:1px solid var(--line); border-radius:10px; }
.separator-edit h2 { font-size:16px; margin:0 0 12px; overflow-wrap:anywhere; }
.separator-form { display:grid; gap:8px; }
.separator-form label { font-size:12px; }
.separator-form input { width:100%; min-width:0; min-height:44px; border:1px solid var(--line); border-radius:8px; padding:10px; font:inherit; }
.separator-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.separator-actions .button { padding:10px 12px; }

/* Integrated laundry ordering */
.laundry-panel{margin:1.5rem 0;padding:1.25rem;background:var(--surface,#fff);border:1px solid #dce3de;border-radius:12px}
.laundry-panel .login-form{max-width:38rem}.laundry-scroll{overflow-x:auto;margin:1rem 0}.laundry-table{width:100%;border-collapse:collapse;text-align:left}.laundry-table th,.laundry-table td{padding:.75rem;border-bottom:1px solid #dce3de}.laundry-table .qty{width:6rem;min-height:44px}.laundry-history{padding:1rem 0;border-bottom:1px solid #dce3de}.laundry-history summary{cursor:pointer;font-weight:600}.laundry-action{margin-top:1.5rem}.header-actions{flex-wrap:wrap}

.laundry-panel pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f6f4;padding:1rem;border-radius:8px}

.laundry-article-names{font-size:1em;font-weight:inherit}.laundry-article-number{font-size:.8em;font-weight:400;white-space:nowrap;color:#59665e}

.shopping-tabs { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 24px; }
.shopping-tabs a { padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:white; font-size:13px; }
.shopping-dept { border-top:1px solid var(--line); margin:8px 0; padding:12px 0; }
.shopping-capture>input { width:100%; border:1px solid var(--line); border-radius:8px; padding:12px; font:inherit; margin:8px 0 16px; }
.shopping-capture .article-list { margin:12px 0 20px; }
.shopping-review-row { padding:14px 0; border-top:1px solid var(--line); }
.shopping-review-row strong,.shopping-review-row small { display:block; overflow-wrap:anywhere; }
.shopping-review-row small { color:var(--muted); font-size:12px; line-height:1.6; }
.shopping-review fieldset { min-width:0; border:1px solid var(--line); padding:12px; margin:20px 0; }
.shopping-review fieldset input,.shopping-review select,.shopping-review-row input { width:100%; min-width:0; }

.shopping-overview { margin:24px 0; }
.shopping-report-statuses { display:grid; gap:8px; margin:16px 0 24px; }
.shopping-report-status { padding:12px 14px; border:1px solid var(--line); border-radius:10px; display:grid; gap:4px; overflow-wrap:anywhere; }
.shopping-report-status.received { background:#edf7ee; border-color:#b9d8bd; color:#245a32; }
.shopping-report-status.missing { background:#fff0f0; border-color:#e7b4b4; color:#8a3030; }
.shopping-report-status span,.shopping-report-status small { font-size:12px; }
@media(min-width:600px) { .shopping-report-statuses { grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); } }

/* Digital lists use no external assets or analytics. */
.digital-item{display:flex;align-items:center;gap:16px;min-height:64px;background:white;border:1px solid #dde4da;border-radius:12px;padding:14px;margin:10px 0;cursor:pointer;touch-action:manipulation;font-size:18px}
.digital-item input{width:28px;height:28px;flex:0 0 28px;accent-color:#203e34}.digital-item.checked span{text-decoration:line-through;color:#788477}
/* Special items reuse the ordinary direct-quantity article grid. */
.special-row[hidden]{display:none}
.special-row .special-name{display:block;width:100%;min-width:0;min-height:32px;border:0;border-radius:0;border-bottom:1px dotted var(--line);padding:2px 0;background:transparent;font:inherit;font-size:16px;color:var(--ink)}
.special-row .special-meta{display:flex;align-items:center;gap:6px}
.special-row .special-name{flex:1;width:0}
.special-row .remove-special{flex:0 0 44px;width:44px;height:44px;border:0;background:transparent;color:var(--muted);font-size:22px;cursor:pointer}
.special-row .special-supplier{width:100%;max-width:220px;min-width:0;min-height:36px;font-size:16px;padding:4px 6px;margin:0;border:1px solid var(--line);border-radius:6px;background:white}
.special-actions{padding:12px 16px}
.special-actions .button{width:100%;white-space:normal}
.digital-fallback{margin:8px 0}#share-result{width:100%;min-height:48px}#digital-items{margin:20px 0}#digital-app{max-width:850px}#digital-app .button{margin:6px 0;white-space:normal}#digital-app h1{font-size:clamp(24px,6vw,38px);overflow-wrap:anywhere}

.digital-store{font-size:20px;margin:22px 0 8px}

.password-wrap{max-width:760px;overflow-wrap:anywhere}.password-wrap h1{font-size:clamp(24px,6vw,38px)}.password-wrap select,#password-admin-link{width:100%;min-height:44px}

.selection-card.topic-due { background:#fff8e1; border-color:#e4c467; }
.topic-due .topic-status { color:#775400; }
.topic-upcoming .topic-status { color:var(--muted); }

.article-assignments { min-width:0; margin:12px 0; padding:12px; border:1px solid var(--line); border-radius:12px; }
.assignment-row { padding:12px 0; border-bottom:1px solid var(--line); }
.assignment-row:last-child { border-bottom:0; }
.admin-search select { min-width:0; max-width:100%; min-height:44px; font:inherit; font-size:16px; }

.assignment-search { flex-wrap:wrap; }
.assignment-search input { flex:1 1 160px; }
.assignment-search select { flex:1 1 180px; }

.digital-item>span { min-width:0; overflow-wrap:anywhere; }
.digital-origins { display:block; margin-top:4px; color:var(--muted); font-size:13px; line-height:1.5; overflow-wrap:anywhere; }

/* QR labels and touch-friendly catalog ordering; no external resources. */
.qr-card{text-align:center;max-width:640px;margin-inline:auto}.order-qr{display:block;width:min(100%,320px);height:auto;margin:0 auto 20px}.qr-card label{display:block;text-align:left;margin:20px 0 8px}.permalink{width:100%;min-width:0;font:inherit;padding:12px;border:1px solid #ccd8cf;border-radius:8px;background:#fff;color:inherit}.catalog-sort-group{margin-block:28px}.catalog-sort-list{list-style:none;margin:0;padding:0}.catalog-sort-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #dce3da}.catalog-sort-list li>span{min-width:0;overflow-wrap:anywhere}.catalog-sort-list form{display:flex;flex-shrink:0;gap:6px}.catalog-sort-list button{min-width:44px;min-height:44px;font-size:22px}.catalog-sort-list button:disabled{opacity:.35;cursor:default}.qr-card .button{margin:4px 0}

.stock-rows{margin:16px 0}.stock-row{display:grid;grid-template-columns:minmax(0,1fr) 82px;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #dce3da}.stock-row strong,.stock-row small{display:block;overflow-wrap:anywhere}.stock-row small{font-size:12px;color:#657269;margin-top:3px}.stock-row>span:last-child{font-size:12px;text-align:center}.stock-row input{display:block;width:100%;min-height:44px;text-align:center;font:inherit;font-size:18px;border:1px solid #c7d3ca;border-radius:8px;padding:8px;background:white;color:inherit}.stock-row input:read-only{background:#edf1e9}.stock-supplier{margin:20px 0;max-width:none}.stock-retry{margin-top:14px}.schedule-options{margin-bottom:16px}.stock-count-form>label{display:block;margin-bottom:8px}

/* Per-organisation laundry workflow, preserving existing mobile ordering styles. */
.laundry-unit-card summary{display:flex;justify-content:space-between;gap:.75rem;flex-wrap:wrap;cursor:pointer;min-height:44px;align-items:center}
.laundry-unit-status{font-size:.9rem;font-weight:500}.laundry-unit-body{padding-top:1rem}
.laundry-unit-body form{margin:.8rem 0}.laundry-unit-body select{max-width:100%;min-height:44px}
.laundry-unit-values{display:block;font-size:.8rem;margin-top:.3rem;color:#59665e}
.laundry-unit-card[data-state="ordered"]{border-left:5px solid #2e7250}
.laundry-unit-card[data-state="uncertain"]{border-left:5px solid #b3691d}
.laundry-unit-card[data-state="skipped"]{border-left:5px solid #7a8380}
.laundry-unit-card .laundry-table td:last-child{width:6rem}
#laundry-unit-credentials{max-width:34rem}#laundry-unit-credentials input{width:100%;box-sizing:border-box}
@media(max-width:480px){.laundry-unit-card{padding:.75rem}.laundry-unit-card .laundry-table td,.laundry-unit-card .laundry-table th{padding:.55rem .3rem}.laundry-unit-body .button{max-width:100%;white-space:normal}}

/* Direct confirmation and clearly visible supplier progress/results. */
.laundry-unit-progress[hidden]{display:none}
.laundry-unit-progress{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:1rem;background:rgba(15,32,24,.72)}
.laundry-unit-progress-box{width:min(100%,32rem);box-sizing:border-box;padding:2rem;border-radius:16px;background:#fff;color:#172e22;box-shadow:0 12px 60px #0005;text-align:center}
.laundry-unit-spinner{display:inline-block;width:2.7rem;height:2.7rem;border:5px solid #d3e1d6;border-top-color:#25613e;border-radius:50%;animation:laundry-spin 1s linear infinite}
.laundry-unit-result{padding:1.25rem;margin:0 0 1rem;border:2px solid;border-radius:12px;scroll-margin-top:6rem}
.laundry-unit-result h3{margin:0 0 .7rem;font-size:1.4rem}
.laundry-unit-result p{margin:.5rem 0;line-height:1.6}
.laundry-unit-result.is-success{background:#e5f5e9;color:#174d2b;border-color:#31854b}
.laundry-unit-result.is-warning{background:#fff4d9;color:#65420d;border-color:#b67b24}
.laundry-unit-result:focus{outline:3px solid currentColor;outline-offset:3px}
@keyframes laundry-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.laundry-unit-spinner{animation:none}}

/* Counting with a fixed target and an editable, ready-to-order quantity. */
.laundry-capture-row{padding:1rem 0;border-bottom:1px solid var(--line)}
.laundry-capture-values{display:grid;grid-template-columns:minmax(3rem,.6fr) repeat(2,minmax(0,1fr));gap:.75rem;align-items:start;max-width:32rem}
.laundry-capture-values label,.laundry-capture-values>span{display:block;margin:0;min-width:0;font-size:.9rem}
.laundry-capture-values strong{display:block;padding:.7rem 0;font-size:1.15rem}
.laundry-capture-values input.qty{display:block;width:100%;max-width:none;box-sizing:border-box;min-height:44px;margin:.3rem 0 0}
.laundry-capture-hint{font-size:.9rem;color:var(--muted)}
.laundry-capture-hint .button{margin:.3rem 0;white-space:normal}
