@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --ink: #202b27;
  --muted: #68736d;
  --paper: #ffffff;
  --canvas: #f2f4ef;
  --line: #dce3dc;
  --green: #356b58;
  --green-deep: #285442;
  --green-wash: #e8f1eb;
  --coral: #c75c43;
  --focus: rgba(53, 107, 88, 0.2);
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--canvas);
}

html body {
  min-height: 100vh;
  margin: 0;
  padding: clamp(18px, 4vw, 48px) clamp(14px, 3vw, 36px);
  background-color: var(--canvas);
  background-image: linear-gradient(rgba(53, 107, 88, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(53, 107, 88, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}

html body h1,
html body h2,
html body h3 {
  color: var(--ink);
  font-family: inherit;
  font-weight: 700;
  line-height: 1.2;
}

html body h1 {
  margin: 0 0 24px;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
}

html body h2 {
  margin: 28px 0 14px;
  font-size: 1.25rem;
}

html body p {
  color: var(--muted);
}

html body a {
  color: var(--green-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

html body a:hover {
  color: var(--coral);
}

html body label,
html body .description,
html body .labelSpan {
  display: block;
  width: auto;
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}

html body td label.size-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

html body td label.size-label span:last-child {
  white-space: nowrap;
}

html body input:not([type='hidden']):not([type='checkbox']):not([type='radio']):not([type='submit']):not([type='button']):not([type='reset']),
html body select,
html body textarea {
  display: block;
  width: min(100%, 40rem);
  min-height: 44px;
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid #cbd5cc;
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.35;
  box-shadow: 0 1px 2px rgba(32, 43, 39, 0.04);
}

html body input:focus,
html body select:focus,
html body textarea:focus,
html body button:focus-visible,
html body a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--green);
}

html body input:disabled {
  background: #edf0ec;
  color: var(--muted);
}

html body input[type='checkbox'],
html body input[type='radio'] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  vertical-align: middle;
}

html body input[type='submit'],
html body button,
html body .mjrButt {
  display: inline-flex;
  width: auto;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 8px 12px 0;
  padding: 10px 17px;
  border: 1px solid var(--green);
  border-radius: 5px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(32, 43, 39, 0.1);
  cursor: pointer;
  transition: background-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

html body input[type='submit']:hover,
html body button:hover,
html body .mjrButt:hover {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: #fff;
  box-shadow: 0 4px 9px rgba(32, 43, 39, 0.15);
  transform: translateY(-1px);
}

html body .fullButton,
html body .formButton,
html body .navButton {
  width: auto;
  min-height: 42px;
  margin: 4px 8px 12px 0;
  padding: 10px 17px;
  font-size: 0.96rem;
}

html body table {
  width: min(100%, 68rem);
  height: auto;
  margin: 16px auto 24px;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 0.96rem;
  text-align: left;
}

html body th,
html body td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

html body th {
  background: #e9eee8;
  color: #33433a;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

html body tr.clk,
html body tbody tr {
  transition: background-color 120ms ease;
}

html body tr.clk:hover,
html body tbody tr:hover {
  background: var(--green-wash);
}

html body #form_container,
html body .login-container,
html body .links,
html body .contentContainer,
html body #contentdiv {
  width: min(100%, 70rem);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid rgba(203, 213, 204, 0.85);
  border-radius: 7px;
  background: var(--paper);
  box-shadow: 0 12px 36px rgba(32, 43, 39, 0.07);
}

html body #form_container,
html body .login-container {
  width: min(100%, 31rem);
  max-width: none;
}

html body .links {
  width: min(100%, 42rem);
  margin-top: max(2vh, 12px);
  text-align: center;
}

html body .links h1 {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

html body .links table {
  width: auto;
  margin: 0 auto;
}

html body .links td {
  border: 0;
  padding: 8px;
}

html body .contentContainer,
html body #contentdiv {
  text-align: left;
}

html body #customersDiv,
html body #customersTableDiv,
html body #equipmentTableDiv {
  overflow-x: auto;
}

html body #customers,
html body #customersTable,
html body #equipmentTable {
  min-width: 32rem;
}

html body .sunken {
  width: min(100%, 60rem);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f5f7f3;
}

html body .settings-input {
  display: grid;
  grid-template-columns: minmax(11rem, 0.8fr) minmax(12rem, 1.2fr);
  gap: 8px 18px;
  align-items: center;
  margin: 0 0 12px;
}

html body .settings-input label,
html body .settings-input .labelSpan {
  margin: 0;
}

html body .settings-input input,
html body .settings-input textarea {
  width: 100%;
  margin: 0;
}

html body .outText {
  display: inline-block;
  margin: 0;
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--green-wash);
  color: var(--green-deep);
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

html body #partDiv,
html body #lineitemDiv,
html body #equipSelectDiv {
  inset: 4vh 4vw;
  width: auto;
  max-width: 64rem;
  height: auto;
  max-height: 92vh;
  overflow: auto;
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  box-shadow: 0 20px 60px rgba(20, 31, 26, 0.25);
  color: var(--ink);
  font-size: 1rem;
}

html body .stocklist-output {
  background: #edf1eb;
}

html body .stocklist-paper {
  width: min(100%, 52rem);
  min-height: 70vh;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: 0 12px 36px rgba(32, 43, 39, 0.08);
  font-size: 1.05rem;
  line-height: 1.8;
}

html body .stocklist-paper h1 {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

html body #footer,
html body .footer {
  margin-top: 20px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 680px) {
  html body {
    padding: 12px;
  }

  html body #form_container,
  html body .login-container,
  html body .links,
  html body .contentContainer,
  html body #contentdiv {
    padding: 20px 16px;
  }

  html body .settings-input {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  html body table {
    font-size: 0.9rem;
  }

  html body th,
  html body td {
    padding: 9px 10px;
  }

  html body .stocklist-paper {
    min-height: 0;
    padding: 24px 18px;
  }
}

@media print {
  html,
  html body {
    padding: 0;
    background: #fff;
  }

  html body .stocklist-paper {
    width: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}