@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: #202d3a;
  background: #f4f7fa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --blue: #1687df;
  --blue-dark: #126fbb;
  --muted: #788796;
  --ink: #202d3a;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

button,
input {
  font: inherit;
}

.login-page {
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(ellipse at 82% 7%, rgba(52, 150, 224, 0.09), transparent 32%),
    #f4f7fa;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.88fr);
  width: min(1180px, 100%);
  min-height: min(760px, calc(100vh - 64px));
  overflow: hidden;
  border: 1px solid rgba(31, 57, 78, 0.06);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(29, 57, 83, 0.12);
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 650px;
  overflow: hidden;
  padding: 40px 48px 30px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(20, 45, 70, 0.98), rgba(25, 73, 111, 0.92) 58%, rgba(17, 107, 171, 0.92)),
    #163955;
}

.brand-panel::before,
.brand-panel::after {
  position: absolute;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.brand-panel::before {
  right: -260px;
  bottom: -180px;
  box-shadow: 0 0 0 32px rgba(255, 255, 255, 0.025), 0 0 0 64px rgba(255, 255, 255, 0.02);
}

.brand-panel::after {
  right: -340px;
  bottom: -244px;
}

.brand,
.brand-name {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
}

.brand {
  width: fit-content;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 30px;
  transform: skew(-22deg);
}

.brand-mark span {
  width: 7px;
  height: 23px;
  border-radius: 2px;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 5px,
      rgba(255, 255, 255, 0.62) 5px 6px,
      transparent 6px 10px
    ),
    #1687df;
}

.brand-mark span:nth-child(2) {
  height: 29px;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 5px,
      rgba(22, 72, 107, 0.34) 5px 6px,
      transparent 6px 10px
    ),
    #16486b;
}

.brand-mark span:nth-child(3) {
  width: 7px;
  height: 23px;
  border-radius: 1px;
  background: #e58b24;
  -webkit-mask: repeating-linear-gradient(
    to bottom,
    #000 0 6px,
    transparent 6px 8px
  );
  mask: repeating-linear-gradient(to bottom, #000 0 6px, transparent 6px 8px);
}

.brand-panel .brand-mark span:first-child {
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 5px,
      rgba(14, 58, 91, 0.55) 5px 6px,
      transparent 6px 10px
    ),
    #56b5f6;
}

.brand-panel .brand-mark span:nth-child(2) {
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 5px,
      rgba(22, 72, 107, 0.4) 5px 6px,
      transparent 6px 10px
    ),
    #fff;
}

.brand-panel .brand-mark span:nth-child(3) {
  background: #ffc15a;
}

.brand-name {
  gap: 3px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -1.2px;
}

.brand-name span {
  align-self: flex-end;
  padding-bottom: 3px;
  color: #a8d7fc;
  font-size: 10px;
  letter-spacing: 0;
}

.brand-message {
  position: relative;
  z-index: 1;
  width: min(390px, 100%);
  margin-top: 85px;
}

.eyebrow {
  margin: 0;
  color: #1687df;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

.brand-panel .eyebrow {
  color: #a8d7fc;
}

.brand-message h1 {
  margin: 15px 0 17px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -2px;
}

.brand-message h1 span {
  color: #67b9f5;
}

.brand-description {
  max-width: 330px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.7;
}

.industrial-art {
  position: absolute;
  right: -7px;
  bottom: 76px;
  left: -5px;
  height: 190px;
  overflow: hidden;
  opacity: 0.72;
  perspective: 700px;
}

.industrial-art::before {
  position: absolute;
  right: -10%;
  bottom: 24px;
  left: -5%;
  height: 130px;
  background: linear-gradient(170deg, rgba(195, 216, 229, 0.14), rgba(23, 45, 62, 0.2));
  content: "";
  transform: skewY(-5deg);
}

.roll {
  position: absolute;
  bottom: 35px;
  width: 92px;
  height: 136px;
  border: 12px solid #ba8f61;
  border-top-width: 14px;
  border-bottom-width: 10px;
  border-radius: 48% 48% 8px 8px / 18% 18% 5px 5px;
  background: repeating-linear-gradient(90deg, #a7774d 0 3px, #c59c6f 3px 6px);
  box-shadow: inset 9px 0 16px rgba(43, 36, 27, 0.25), 10px 12px 22px rgba(6, 20, 31, 0.28);
  transform: rotateX(7deg);
}

.roll::before {
  position: absolute;
  top: -13px;
  left: -12px;
  width: 92px;
  height: 22px;
  border: 8px solid #c9ab83;
  border-radius: 50%;
  background: #293d4c;
  content: "";
}

.roll-one { left: 10%; height: 121px; }
.roll-two { left: 27%; bottom: 28px; height: 150px; }
.roll-three { left: 45%; bottom: 23px; width: 104px; height: 170px; }
.roll-four { left: 65%; bottom: 31px; height: 139px; }
.roll-five { left: 83%; bottom: 20px; width: 105px; height: 178px; }

.art-floor {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 37px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(4, 17, 27, 0.38));
}

.brand-footer {
  position: relative;
  z-index: 1;
  margin: auto 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  letter-spacing: 0.15px;
}

.form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px clamp(36px, 6vw, 82px) 25px;
  background: #fff;
}

.login-card {
  width: min(370px, 100%);
  margin: auto;
}

.form-heading {
  margin-bottom: 34px;
}

.heading-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 23px;
  place-items: center;
  border-radius: 13px;
  background: #edf7ff;
  color: var(--blue);
}

.heading-icon svg {
  width: 23px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.form-heading h2 {
  margin: 9px 0 5px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1.1px;
}

.form-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.login-form label {
  display: inline-block;
  margin-bottom: 9px;
  color: #354555;
  font-size: 13px;
  font-weight: 600;
}

.password-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.input-wrap {
  display: flex;
  align-items: center;
  height: 51px;
  padding: 0 14px;
  border: 1px solid #dfe6ed;
  border-radius: 9px;
  background: #fbfcfe;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.input-wrap:focus-within {
  border-color: #54a9e9;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22, 135, 223, 0.12);
}

.input-wrap > svg {
  flex: 0 0 19px;
  width: 19px;
  margin-right: 11px;
  color: #8a9aaa;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.input-wrap input::placeholder {
  color: #a2adb8;
}

.toggle-password {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 36px;
  margin-right: -7px;
  padding: 7px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8393a2;
  cursor: pointer;
}

.toggle-password:hover {
  background: #edf4fa;
}

.toggle-password svg {
  width: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 51px;
  margin-top: 28px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  box-shadow: 0 7px 15px rgba(22, 135, 223, 0.2);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  background: var(--blue-dark);
  box-shadow: 0 9px 18px rgba(22, 135, 223, 0.25);
}

.submit-button svg {
  width: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.alert {
  margin: -14px 0 20px;
  padding: 12px 13px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.alert-error {
  border: 1px solid #f3d0cb;
  background: #fff6f5;
  color: #a33e33;
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 24px 0 0;
  color: #8795a3;
  font-size: 11px;
}

.secure-note svg {
  width: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: min(440px, 100%);
  margin: auto auto 0;
  color: #98a4af;
  font-size: 10px;
}

.form-footer a {
  color: #718394;
  text-decoration: none;
}

.form-footer a:hover {
  color: var(--blue-dark);
}

.mobile-brand {
  display: none;
}

.dashboard-page {
  min-height: 100vh;
  background: #f4f7fa;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 max(24px, calc((100% - 1120px) / 2));
  border-bottom: 1px solid #e8edf2;
  background: #fff;
}

.dashboard-header .brand-name {
  color: var(--ink);
}

.dashboard-header .brand-name span {
  color: var(--blue);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 7px;
}

.primary-nav-link {
  padding: 10px 14px;
  border-radius: 8px;
  color: #607181;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.primary-nav-link:hover,
.primary-nav-link.active {
  background: #edf7ff;
  color: var(--blue-dark);
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.welcome-user {
  color: #718394;
  font-size: 13px;
}

.logout-button {
  padding: 10px 15px;
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  background: #fff;
  color: #536373;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.logout-button:hover {
  border-color: #b7d8f1;
  color: var(--blue-dark);
}

.dashboard-content {
  width: min(1000px, calc(100% - 48px));
  margin: 58px auto 80px;
}

.dashboard-intro {
  margin-bottom: 30px;
}

.dashboard-intro h1 {
  margin: 10px 0 6px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
}

.dashboard-intro > p:last-child {
  margin: 0;
  color: var(--muted);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.menu-card {
  min-width: 0;
  padding: 23px;
  border: 1px solid #e3eaf0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(37, 64, 87, 0.045);
}

.inventory-card {
  grid-row: span 2;
}

.menu-card-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.menu-icon {
  display: grid;
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 12px;
  background: #edf7ff;
  color: var(--blue);
}

.menu-icon svg {
  width: 23px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.menu-card h2 {
  margin: 0 0 4px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 750;
}

.menu-card-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.inventory-links {
  display: grid;
  gap: 8px;
}

.inventory-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 47px;
  padding: 0 13px;
  border: 1px solid #e9eef3;
  border-radius: 8px;
  color: #45596a;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.inventory-link:hover {
  border-color: #b7daf4;
  background: #f6fbff;
  color: var(--blue-dark);
}

.inventory-link svg,
.menu-arrow {
  flex: 0 0 17px;
  width: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.simple-menu-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 116px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.simple-menu-card:hover {
  transform: translateY(-2px);
  border-color: #b7daf4;
  box-shadow: 0 10px 26px rgba(37, 104, 158, 0.1);
}

.simple-menu-copy {
  display: grid;
  flex: 1;
  gap: 5px;
}

.simple-menu-title {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 750;
}

.simple-menu-description {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.menu-arrow {
  color: #8a9baa;
}

.dashboard-content h1 {
  margin: 11px 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 34px;
}

.dashboard-content > p:last-child {
  color: var(--muted);
}

.module-content > h1 {
  margin: 10px 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 34px;
}

.module-placeholder {
  margin: 32px 0 22px;
  padding: 42px 24px;
  border: 1px dashed #cbd9e5;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.module-placeholder-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: #edf7ff;
  color: var(--blue);
  font-size: 30px;
}

.module-placeholder h2 {
  margin: 13px 0 7px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 18px;
}

.module-placeholder p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.back-to-menu {
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.back-to-menu:hover {
  text-decoration: underline;
}

.report-content > h1 {
  margin: 10px 0 6px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 34px;
}

.report-description {
  margin: 0;
  color: var(--muted);
}

.report-filter {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 28px 0 22px;
  padding: 20px;
  border: 1px solid #e3eaf0;
  border-radius: 12px;
  background: #fff;
}

.report-filter-field {
  display: grid;
  flex: 1;
  gap: 8px;
}

.report-filter-field label {
  color: #354555;
  font-size: 13px;
  font-weight: 600;
}

.report-filter-field select,
.report-filter-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.report-filter-field select:focus,
.report-filter-field input:focus {
  border-color: #54a9e9;
  outline: 3px solid rgba(22, 135, 223, 0.12);
}

.report-submit {
  width: auto;
  min-width: 140px;
  height: 46px;
  margin: 0;
  padding: 0 17px;
}

.report-results {
  margin: 0 0 22px;
  overflow: hidden;
  border: 1px solid #e3eaf0;
  border-radius: 12px;
  background: #fff;
}

.report-results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 19px;
  border-bottom: 1px solid #e9eef3;
}

.report-results-heading h2 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 17px;
}

.report-results-heading span {
  color: var(--muted);
  font-size: 12px;
}

.subline-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #e9eef3;
  background: #f7fafd;
}

.subline-summary-card {
  position: relative;
  display: block;
  min-width: 0;
  width: 100%;
  padding: 12px 14px 12px 16px;
  overflow: hidden;
  border: 1px solid #e2ebf3;
  border-radius: 9px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(34, 76, 110, 0.045);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.subline-summary-card:hover {
  transform: translateY(-1px);
  border-color: #9dc9e7;
  box-shadow: 0 5px 13px rgba(34, 76, 110, 0.1);
}

.subline-summary-card:focus-visible {
  outline: 3px solid rgba(22, 135, 223, 0.28);
  outline-offset: 2px;
}

.subline-summary-card[aria-pressed="true"] {
  border-color: #1687df;
  background: #f1f8fe;
  box-shadow: 0 0 0 2px rgba(22, 135, 223, 0.1);
}

.subline-summary-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: #2995d6;
  content: "";
}

.subline-summary-name {
  display: block;
  margin: 0 0 5px;
  overflow: hidden;
  color: #294256;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subline-summary-value {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 0;
  color: #126eae;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 21px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

.subline-summary-value > span {
  display: inline;
}

.subline-summary-value span {
  color: #708595;
  font-family: "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.subline-detail[hidden] {
  display: none;
}

.report-print-actions {
  display: flex;
  justify-content: flex-end;
  padding: 14px 17px;
  border-top: 1px solid #e9eef3;
}

.print-report-button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #c9dce9;
  border-radius: 8px;
  background: #fff;
  color: #176d9f;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.print-report-button:hover {
  border-color: #1687df;
  background: #f3f9fd;
}

.print-report-button-primary {
  border-color: #1677c8;
  background: #1677c8;
  color: #fff;
}

.print-report-button-primary:hover {
  border-color: #1267ad;
  background: #1267ad;
}

.summary-print-actions {
  justify-content: flex-start;
  gap: 9px;
  padding-top: 12px;
  border-top: 0;
  border-bottom: 1px solid #e9eef3;
}

.report-table tr.print-subline-heading {
  display: none;
}

.report-table-wrap {
  overflow-x: auto;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.report-table th,
.report-table td {
  padding: 13px 17px;
  border-bottom: 1px solid #edf1f5;
  font-size: 13px;
}

.report-table th {
  background: #f8fafc;
  color: #687989;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.report-table td {
  color: #344858;
}

.report-table .receivables-summary-row td {
  background: #f3f8fc;
  color: #203d54;
  font-weight: 700;
}

.report-table tr[hidden] {
  display: none;
}

.report-table tbody tr:last-child td {
  border-bottom: 0;
}

.numeric-cell {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}

.report-empty {
  margin: 0 0 22px;
  padding: 20px;
  border: 1px dashed #cbd9e5;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #718394;
  font-size: 13px;
  text-align: center;
}

.report-alert {
  margin: 0 0 22px;
}

@media (max-width: 900px) {
  .dashboard-header {
    flex-wrap: wrap;
    gap: 8px 18px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .primary-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .dashboard-header {
    padding-right: 18px;
    padding-left: 18px;
  }

  .dashboard-header .brand-name {
    font-size: 20px;
  }

  .welcome-user {
    display: none;
  }

  .logout-button {
    padding: 8px 10px;
    font-size: 12px;
  }

  .primary-nav {
    justify-content: space-between;
    gap: 3px;
  }

  .primary-nav-link {
    flex: 1;
    padding: 10px 7px;
    text-align: center;
    font-size: 12px;
  }

  .dashboard-content {
    width: calc(100% - 36px);
    margin: 34px auto 55px;
  }

  .dashboard-intro h1,
  .module-content > h1 {
    font-size: 29px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .inventory-card {
    grid-row: auto;
  }

  .menu-card {
    padding: 19px;
  }

  .simple-menu-card {
    min-height: 92px;
  }

  .module-placeholder {
    padding: 34px 18px;
  }

  .report-content > h1 {
    font-size: 29px;
  }

  .report-filter {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }

  .report-submit {
    width: 100%;
  }

  .report-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
  }

  .report-table,
  .report-table tbody,
  .report-table tr,
  .report-table td {
    display: block;
    width: 100%;
  }

  .report-table tr {
    padding: 7px 15px;
    border-bottom: 1px solid #e9eef3;
  }

  .report-table tbody tr:last-child {
    border-bottom: 0;
  }

  .report-table td,
  .report-table td.numeric-cell {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
    border: 0;
    text-align: right !important;
  }

  .report-table td::before {
    flex: 0 0 auto;
    color: #788796;
    content: attr(data-label);
    font-size: 11px;
    font-weight: 600;
    text-align: left;
  }
}

@media (max-width: 820px) {
  .login-page {
    padding: 20px;
  }

  .login-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
    min-height: min(700px, calc(100vh - 40px));
  }

  .brand-panel {
    padding-right: 32px;
    padding-left: 32px;
  }

  .brand-message {
    margin-top: 72px;
  }

  .form-panel {
    padding-right: 36px;
    padding-left: 36px;
  }

  .roll {
    transform: scale(0.82);
    transform-origin: bottom left;
  }
}

@media print {
  .dashboard-header,
  .report-content > .eyebrow,
  .report-filter,
  .back-to-menu,
  .report-print-actions,
  .summary-print-actions {
    display: none !important;
  }

  .dashboard-page,
  .report-content {
    margin: 0;
    padding: 0;
    background: #fff;
  }

  .report-content {
    width: 100%;
  }

  .report-results {
    border: 0;
    box-shadow: none;
  }

  body.print-totals .subline-detail,
  body.print-totals .subline-detail[hidden],
  body.print-detail .subline-summary-grid,
  body.print-detail .report-results > .report-results-heading:first-child {
    display: none !important;
  }

  body.print-detail .subline-detail,
  body.print-detail .subline-detail[hidden],
  body.print-all .subline-detail,
  body.print-all .subline-detail[hidden] {
    display: block !important;
  }

  body.print-totals .subline-summary-grid,
  body.print-all .subline-summary-grid {
    display: grid !important;
    padding: 8px 0;
    border-bottom: 1px solid #aaa;
    background: #fff;
  }

  body.print-totals .subline-summary-card,
  body.print-all .subline-summary-card {
    padding: 8px 10px;
    border: 1px solid #bbb;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    color: #111;
  }

  body.print-totals .subline-summary-card::before,
  body.print-all .subline-summary-card::before {
    display: none;
  }

  .subline-detail .report-results-heading {
    padding: 0 0 12px;
    border-bottom: 1px solid #999;
  }

  body.print-all .report-table tr.print-subline-heading {
    display: table-row !important;
  }

  body.print-all .print-subline-heading th {
    padding: 5px 6px 3px;
    border-bottom: 1px solid #999;
    background: #fff;
    color: #111;
    font-size: 13px;
    line-height: 1.15;
    text-align: left;
  }

  .report-table-wrap {
    overflow: visible;
  }

  .report-table,
  .report-table tbody,
  .report-table tr,
  .report-table td {
    display: table-cell;
    width: auto;
  }

  .report-table {
    display: table;
  }

  .report-table thead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
    clip-path: none;
  }

  .report-table th {
    display: table-cell;
    padding: 8px;
    border-bottom: 1px solid #bbb;
  }

  .report-table tbody {
    display: table-row-group;
  }

  .report-table tr {
    display: table-row;
    padding: 0;
  }

  .report-table td {
    padding: 1px 6px;
    border-bottom: 0;
    font-size: 10px;
    line-height: 1.1;
    text-align: left !important;
  }

  .report-table td::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .login-page {
    display: block;
    padding: 0;
    background: #fff;
  }

  .login-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100svh;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .brand-panel {
    min-height: 218px;
    padding: 23px 25px;
  }

  .brand-panel > .brand {
    display: none;
  }

  .brand-message {
    width: 100%;
    margin-top: 21px;
  }

  .brand-message .eyebrow {
    font-size: 9px;
    letter-spacing: 1.6px;
  }

  .brand-message h1 {
    margin: 8px 0 6px;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -1px;
  }

  .brand-description,
  .brand-footer,
  .industrial-art {
    display: none;
  }

  .form-panel {
    flex: 1;
    justify-content: flex-start;
    padding: 25px 26px 18px;
  }

  .mobile-brand {
    display: inline-flex;
    margin-bottom: 31px;
  }

  .form-heading {
    margin-bottom: 25px;
  }

  .heading-icon {
    width: 41px;
    height: 41px;
    margin-bottom: 16px;
  }

  .form-heading h2 {
    font-size: 27px;
  }

  .login-card {
    width: min(100%, 410px);
    margin: 0 auto;
  }

  .form-footer {
    width: min(100%, 410px);
    margin: auto auto 0;
    padding-top: 35px;
  }
}

@media (max-width: 360px) {
  .form-panel {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
