@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 {
  --green: #145c43;
  --deep: #0d3d2d;
  --pale: #eaf3ed;
  --bg: #f7f8f5;
  --line: #e3e8e2;
  --ink: #192c25;
  --muted: #6e7972;
  --amber: #9a6415;
  --amberbg: #fff3db;
  --red: #b04436;
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 15px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button {
  transition:
    background 0.15s,
    transform 0.15s;
}
button:active {
  transform: translateY(1px);
}
a {
  color: var(--green);
}
h1,
h2,
h3,
h4 {
  font-family: Manrope, Arial, sans-serif;
  letter-spacing: -0.045em;
  margin: 0;
}
h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
}
h2 {
  font-size: 23px;
}
h3 {
  font-size: 19px;
}
p {
  line-height: 1.6;
  margin: 8px 0;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.tiny {
  font-size: 11px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 10px;
}
.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 19px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  font:
    800 38px Manrope,
    sans-serif;
  color: var(--green);
  letter-spacing: -2.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8bb99a;
  margin-top: 17px;
}
.brand-caption {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 34px 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav {
  display: grid;
  gap: 8px;
}
.nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  border-radius: 10px;
  padding: 13px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 600;
}
.nav button.active {
  background: var(--pale);
  color: var(--green);
}
.nav button:hover {
  background: #f3f6f2;
}
.count {
  margin-left: auto;
  background: var(--green);
  color: white;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 11px;
}
.side-bottom {
  margin-top: auto;
}
.help-card {
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.help-card p {
  font-size: 12px;
  color: var(--muted);
}
.text-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--green);
  font-weight: 700;
  text-align: left;
}
.workspace {
  margin-left: 224px;
}
.topbar {
  height: 86px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  gap: 15px;
}
.crumb {
  color: var(--muted);
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 13px;
}
.crumb b {
  font-weight: 500;
  color: var(--ink);
}
.topright {
  display: flex;
  align-items: center;
  gap: 16px;
}
.prototype {
  font-size: 11px;
  padding: 6px 10px;
  background: #f0f2ef;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  white-space: nowrap;
}
.user {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
.avatar {
  background: #e0eddf;
  color: var(--green);
  border-radius: 50%;
  height: 35px;
  width: 35px;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.user select {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  max-width: 137px;
}
.mobile-menu {
  display: none;
}
.content {
  max-width: 1500px;
  padding: 40px 42px 25px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-heading p {
  font-size: 14px;
  color: var(--muted);
}
.btn {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 17px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  white-space: nowrap;
}
.btn:hover {
  background: #f1f5ef;
}
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 3px 7px #145c4310;
}
.btn.primary:hover {
  background: var(--deep);
}
.btn.soft {
  background: var(--pale);
  border-color: transparent;
  color: var(--green);
}
.btn.danger {
  color: var(--red);
  border-color: #e8c8c3;
}
.btn.full {
  width: 100%;
}
.btn.small {
  min-height: 35px;
  padding: 8px 12px;
  font-size: 12px;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 28px;
}
.summary-item {
  padding: 19px 23px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 15px;
}
.summary-icon {
  width: 41px;
  height: 41px;
  border-radius: 11px;
  background: var(--pale);
  display: grid;
  place-items: center;
  color: var(--green);
}
.summary-item strong {
  font:
    800 22px Manrope,
    sans-serif;
  display: block;
}
.summary-item span {
  font-size: 12px;
  color: var(--muted);
}
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 20px;
  gap: 16px;
}
.search {
  position: relative;
  min-width: 240px;
  max-width: 360px;
  flex: 1;
}
.search .icon {
  position: absolute;
  left: 13px;
  top: 13px;
  color: #8d988e;
  width: 17px;
}
.search input {
  padding: 12px 13px 12px 39px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  font-size: 13px;
}
.warehouse-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.warehouse-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 3px 4px #1c382903;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.warehouse-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px #214d3012;
}
.warehouse-image {
  position: relative;
  height: 178px;
  overflow: hidden;
  background: #e8ede4;
  cursor: pointer;
  width: 100%;
  border: 0;
  display: block;
}
.warehouse-image img {
  position: absolute;
  max-width: none;
  width: 432.7%;
  height: auto;
  left: -13.2%;
  top: -133.5%;
  pointer-events: none;
}
.warehouse-image.second img {
  left: -119.5%;
}
.warehouse-image.third img {
  filter: saturate(0.7);
  left: -13.2%;
}
.photo-label {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: #fffef4e8;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #43584a;
}
.warehouse-body {
  padding: 21px;
}
.warehouse-body h3 {
  font-size: 19px;
  letter-spacing: -0.035em;
  line-height: 1.35;
  margin-bottom: 9px;
}
.warehouse-meta {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0;
}
.warehouse-meta .icon {
  width: 15px;
  height: 15px;
}
.card-rule {
  height: 1px;
  background: var(--line);
  margin: 17px 0;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.badge {
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--pale);
  color: var(--green);
  font-weight: 600;
  white-space: nowrap;
}
.badge .icon {
  width: 13px;
  height: 13px;
}
.badge.amber {
  background: var(--amberbg);
  color: var(--amber);
}
.badge.red {
  background: #f9eae6;
  color: var(--red);
}
.view-stock {
  justify-content: space-between;
  width: 100%;
  background: var(--pale);
  border: 0;
  color: var(--green);
}
.security-note {
  margin-top: 27px;
  border: 1px solid #dce6d9;
  background: #f0f5ed;
  padding: 17px 20px;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 12px;
  color: #63735f;
  line-height: 1.7;
}
.security-note .icon {
  color: var(--green);
  margin-top: 1px;
}
.security-note b {
  color: #375b40;
}
.footer {
  font-size: 11px;
  color: #8e988f;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 30px 0 8px;
}
.warehouse-header {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.warehouse-header .cover-small {
  height: 82px;
  width: 110px;
  border-radius: 9px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  background: #e2eadd;
}
.cover-small img {
  position: absolute;
  width: 432.7%;
  max-width: none;
  left: -13.2%;
  top: -133.5%;
}
.warehouse-header h1 {
  font-size: 28px;
}
.warehouse-header .header-info {
  flex: 1;
}
.warehouse-header .muted {
  font-size: 12px;
}
.tabbar {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin: 24px 0;
}
.tabbar button {
  border: 0;
  background: transparent;
  padding: 0 2px 14px;
  color: var(--muted);
  font-size: 13px;
  position: relative;
}
.tabbar button.active {
  color: var(--green);
  font-weight: 700;
}
.tabbar button.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green);
  border-radius: 4px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 23px;
  margin-bottom: 18px;
}
.table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
}
th {
  background: #f4f6f2;
  padding: 14px 20px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
td {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}
.product-cell {
  display: flex;
  align-items: center;
  gap: 13px;
}
.product-cell b {
  display: block;
  margin-bottom: 4px;
}
.product-cell .muted {
  font-size: 11px;
}
.product-visual {
  width: 49px;
  height: 49px;
  border-radius: 8px;
  background: #f2f1eb;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid #e9e8e0;
}
.tile-swatch {
  height: 33px;
  width: 33px;
  background: linear-gradient(133deg, #fffefa, #e0dfd6);
  border: 1px solid #d5d6ce;
  transform: rotate(-9deg);
  box-shadow: 2px 3px 0 #d7d8d0;
}
.tile-swatch.grey {
  background: linear-gradient(135deg, #a9aaa4, #d5d5d0, #9fa49c);
  border-color: #959c92;
}
.tile-swatch.beige {
  background: linear-gradient(135deg, #e0c9a7, #f2e6d4);
  border-color: #c8b797;
}
.toilet {
  font-size: 30px;
}
.qty {
  font:
    800 21px Manrope,
    sans-serif;
}
.unit {
  font-size: 12px;
  color: var(--muted);
}
.banner {
  padding: 17px 20px;
  border-radius: 11px;
  background: var(--pale);
  color: var(--green);
  display: flex;
  gap: 11px;
  align-items: flex-start;
  line-height: 1.5;
  font-size: 13px;
  margin-bottom: 20px;
}
.banner.amber {
  color: #8d621d;
  background: var(--amberbg);
}
.banner .icon {
  margin-top: 1px;
}
.banner b {
  display: block;
}
.empty {
  text-align: center;
  padding: 55px 24px;
  color: var(--muted);
}
.empty h3 {
  color: var(--ink);
  margin: 12px 0;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 24px;
}
.detail-list small {
  display: block;
  color: var(--muted);
  margin-bottom: 7px;
}
.request-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-bottom: 14px;
  padding: 22px;
}
.request-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}
.request-lines {
  background: #f7f8f5;
  border-radius: 9px;
  padding: 11px 15px;
  margin: 14px 0;
}
.request-line {
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 13px;
}
.approval-person {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  margin-top: 10px;
}
.approval-person .icon {
  width: 16px;
  color: var(--green);
}
.request-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.person-row {
  display: flex;
  gap: 15px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.person-row .person-info {
  flex: 1;
}
.person-row p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 12px;
}
.person-row .avatar {
  height: 43px;
  width: 43px;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: #102f2580;
  backdrop-filter: blur(3px);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  animation: fade 0.15s ease;
}
.modal {
  width: 560px;
  max-width: 100%;
  height: 100%;
  background: #fff;
  overflow: auto;
  box-shadow: -15px 0 70px #0e35202b;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.modal.wide {
  width: 740px;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.modal-head p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}
.close-btn {
  border: 1px solid var(--line);
  background: white;
  border-radius: 50%;
  height: 33px;
  width: 33px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--muted);
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d9e1d7;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  min-height: 44px;
}
.field textarea {
  resize: vertical;
  min-height: 80px;
}
.field small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
  line-height: 1.5;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 15px;
}
.modal-foot {
  margin-top: auto;
  padding-top: 23px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}
.modal-body {
  padding-bottom: 22px;
}
.type-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 24px;
}
.type-tabs button {
  padding: 11px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f7f2;
  font-size: 12px;
}
.type-tabs button.active {
  border-color: var(--green);
  background: var(--pale);
  color: var(--green);
  font-weight: 700;
}
.line-editor {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 13px;
}
.line-editor .line-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 3px;
  font-size: 12px;
}
.amount-label {
  font-weight: 400;
  color: var(--muted);
}
.code-field {
  text-align: center !important;
  font-size: 26px !important;
  letter-spacing: 0.35em;
  font-weight: 600;
  max-width: 340px;
  display: block;
  margin: auto;
}
.code-card {
  text-align: center;
  border: 1px dashed #b8cdb8;
  padding: 17px;
  border-radius: 10px;
  margin: 18px 0;
  background: #f7faf5;
}
.code-card strong {
  font-size: 21px;
  letter-spacing: 0.2em;
  color: var(--green);
}
.code-card p {
  font-size: 11px;
  color: var(--muted);
}
.channel {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}
.channel button {
  flex: 1;
  border: 1px solid var(--line);
  background: white;
  padding: 11px;
  border-radius: 8px;
  color: var(--muted);
}
.channel button.active {
  background: var(--pale);
  border-color: var(--green);
  color: var(--green);
}
.error {
  color: var(--red);
  font-size: 12px;
  padding: 8px 0;
  min-height: 20px;
}
.timeline {
  border-left: 1px solid var(--line);
  margin: 20px 0 0 8px;
  padding-left: 23px;
}
.event {
  position: relative;
  padding-bottom: 25px;
}
.event:before {
  content: "";
  height: 9px;
  width: 9px;
  border-radius: 50%;
  background: #79a58c;
  position: absolute;
  left: -28px;
  top: 5px;
  box-shadow: 0 0 0 4px white;
}
.event p {
  font-size: 12px;
  color: var(--muted);
}
.success-ring {
  height: 75px;
  width: 75px;
  margin: 15px auto 22px;
  border-radius: 50%;
  background: var(--pale);
  color: var(--green);
  display: grid;
  place-items: center;
}
.success-ring .icon {
  width: 35px;
  height: 35px;
}
.centre {
  text-align: center;
}
.step {
  display: flex;
  gap: 14px;
  margin: 22px 0;
}
.step-number {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  background: var(--pale);
  color: var(--green);
  border-radius: 8px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
}
.step b {
  font-size: 13px;
}
.step p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.photo-previews {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.photo-previews img,
.evidence img {
  width: 72px;
  height: 63px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #173d2d;
  color: white;
  padding: 14px 22px;
  border-radius: 10px;
  box-shadow: 0 6px 25px #0002;
  z-index: 200;
  max-width: 90vw;
  font-size: 13px;
  transition: 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.print-sheet {
  background: white;
  padding: 30px;
}
.print-sheet header {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 20px;
  margin-bottom: 25px;
}
.print-sheet table th {
  background: white;
  color: var(--ink);
}
.print-sheet table td,
.print-sheet table th {
  border: 1px solid #adb8ad;
}
.print-sheet footer {
  margin-top: 30px;
  font-size: 11px;
  color: var(--muted);
}
.print-only {
  display: none;
}
.mobile-label {
  display: none;
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (min-width: 1600px) {
  .warehouse-image {
    height: 210px;
  }
  .content {
    padding-top: 47px;
  }
  .warehouse-body {
    padding: 25px;
  }
}
@media (max-width: 1180px) {
  .sidebar {
    width: 190px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .workspace {
    margin-left: 190px;
  }
  .content {
    padding: 30px 27px;
  }
  .topbar {
    padding: 0 27px;
  }
  .warehouse-grid {
    gap: 15px;
  }
  .warehouse-image {
    height: 146px;
  }
  .warehouse-body {
    padding: 17px;
  }
  .warehouse-body h3 {
    font-size: 17px;
  }
  .summary-item {
    padding: 17px;
  }
  .summary-icon {
    width: 35px;
    height: 35px;
  }
}
@media (max-width: 950px) {
  .warehouse-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .warehouse-image {
    height: 185px;
  }
  .summary-item {
    gap: 10px;
  }
  .summary-icon {
    display: none;
  }
  .warehouse-header {
    flex-wrap: wrap;
  }
  .warehouse-header .actions {
    width: 100%;
  }
  .user .avatar {
    display: none;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 14px;
  }
  .sidebar {
    display: none;
    top: 68px;
    width: 240px;
    box-shadow: 15px 10px 35px #1232;
  }
  .sidebar.open {
    display: flex;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 68px;
    padding: 0 19px;
    position: sticky;
    top: 0;
    z-index: 30;
  }
  .mobile-menu {
    display: flex;
    align-items: center;
    gap: 9px;
    background: none;
    border: 0;
    color: var(--green);
    padding: 5px 0;
    font:
      800 28px Manrope,
      sans-serif;
    letter-spacing: -1px;
  }
  .mobile-menu .icon {
    width: 19px;
    margin-right: 3px;
  }
  .crumb {
    display: none;
  }
  .topright {
    gap: 7px;
  }
  .prototype {
    padding: 4px 6px;
    font-size: 9px;
  }
  .user select {
    max-width: 100px;
    font-size: 11px;
  }
  .content {
    padding: 25px 18px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 21px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .page-heading > .btn {
    width: 100%;
  }
  .summary-strip {
    margin-bottom: 23px;
  }
  .summary-item {
    padding: 13px 12px;
  }
  .summary-item strong {
    font-size: 20px;
  }
  .summary-item span {
    font-size: 10px;
  }
  .warehouse-grid {
    grid-template-columns: 1fr;
    gap: 19px;
  }
  .warehouse-image {
    height: 190px;
  }
  .warehouse-body {
    padding: 21px;
  }
  .warehouse-body h3 {
    font-size: 21px;
  }
  .warehouse-meta {
    font-size: 13px;
  }
  .filter-row {
    gap: 10px;
  }
  .filter-row .small {
    font-size: 11px;
  }
  .search {
    min-width: 0;
  }
  .security-note {
    padding: 15px;
    font-size: 11px;
  }
  .footer {
    font-size: 9px;
    align-items: center;
  }
  .warehouse-header {
    padding: 18px;
    gap: 13px;
  }
  .warehouse-header .cover-small {
    width: 75px;
    height: 68px;
  }
  .warehouse-header h1 {
    font-size: 21px;
  }
  .warehouse-header .header-info {
    min-width: 170px;
  }
  .warehouse-header .badge {
    font-size: 10px;
  }
  .warehouse-header .actions .btn {
    flex: 1;
    font-size: 11px;
    padding: 10px;
  }
  .tabbar {
    gap: 20px;
    margin-top: 23px;
  }
  .stock-table thead {
    display: none;
  }
  .stock-table tr {
    display: flex;
    flex-wrap: wrap;
    padding: 16px;
    gap: 12px;
    align-items: center;
    border-top: 1px solid var(--line);
  }
  .stock-table tr:first-child {
    border-top: 0;
  }
  .stock-table td {
    border: 0;
    padding: 0;
  }
  .stock-table td:first-child {
    flex: 1;
    min-width: 190px;
  }
  .stock-table .code-col {
    display: none;
  }
  .stock-table .stock-quantity {
    text-align: right;
    margin-left: auto;
  }
  .stock-table .edit-col {
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }
  .stock-table .unit-col {
    display: none;
  }
  .product-cell {
    gap: 10px;
  }
  .product-cell b {
    font-size: 13px;
  }
  .qty {
    font-size: 20px;
  }
  .two-col,
  .detail-list {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 18px;
  }
  .modal {
    padding: 22px 18px;
    width: 100%;
  }
  .modal.wide {
    width: 100%;
  }
  .form-grid {
    gap: 0 11px;
  }
  .modal-head h2 {
    font-size: 22px;
  }
  .modal-foot {
    position: sticky;
    bottom: -22px;
    background: white;
    padding-bottom: 20px;
    margin-bottom: -22px;
  }
  .modal-foot .btn {
    flex: 1;
  }
  .request-card {
    padding: 18px;
  }
  .request-top {
    flex-wrap: wrap;
  }
  .request-actions .btn {
    flex: 1;
    white-space: normal;
    font-size: 12px;
  }
  .person-row {
    flex-wrap: wrap;
  }
  .banner {
    font-size: 12px;
  }
  .print-sheet {
    padding: 6px;
  }
  .print-sheet header {
    display: block;
  }
  .print-sheet h2 {
    font-size: 18px;
  }
  .print-sheet th,
  .print-sheet td {
    padding: 9px;
    font-size: 11px;
  }
  .desktop-only {
    display: none;
  }
  .print-sheet .product-visual {
    display: none;
  }
}
.warehouse-image img,
.cover-small img {
  top: 0;
  transform: translateY(-37.77%);
}
@media print {
  body {
    background: #fff;
    font-family: Arial, sans-serif;
  }
  .sidebar,
  .workspace,
  #toast,
  .modal-head,
  .modal-foot,
  .no-print {
    display: none !important;
  }
  .modal-overlay {
    position: static;
    display: block;
    background: none;
    backdrop-filter: none;
  }
  .modal {
    width: 100% !important;
    height: auto;
    padding: 0;
    overflow: visible;
    box-shadow: none;
  }
  .modal-body {
    padding: 0;
  }
  .print-sheet {
    padding: 10mm;
  }
  .print-sheet table tr {
    break-inside: avoid;
  }
  .print-sheet .brand {
    font-size: 30px;
  }
  .print-sheet footer {
    margin-top: 25px;
  }
  @page {
    size: A4;
    margin: 10mm;
  }
}

.cover-small img {
  width: 650%;
  left: -20%;
}
.money-toggle {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  border: 1px solid var(--line);
  background: #f7faf5;
  padding: 17px;
  border-radius: 12px;
  margin-bottom: 24px;
  cursor: pointer;
}
.money-toggle b {
  display: block;
  font-size: 13px;
}
.money-toggle small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 7px;
}
.money-toggle input {
  position: absolute;
  right: 17px;
  width: 43px;
  height: 26px;
  opacity: 0;
  z-index: 1;
  cursor: pointer;
}
.switch-track {
  width: 43px;
  height: 26px;
  background: #cdd6cc;
  border-radius: 20px;
  position: relative;
  flex-shrink: 0;
  transition: 0.2s;
}
.switch-track:after {
  content: "";
  width: 20px;
  height: 20px;
  position: absolute;
  top: 3px;
  left: 3px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px #0002;
  transition: 0.2s;
}
.money-toggle input:checked + .switch-track {
  background: var(--green);
}
.money-toggle input:checked + .switch-track:after {
  transform: translateX(17px);
}
.money-toggle input:focus-visible + .switch-track {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
.quantity-only {
  grid-template-columns: 1fr;
}
.picker-search {
  max-width: none;
  margin: 18px 0;
}
.picker-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 12px;
}
.product-picker {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.pick-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  background: white;
}
.pick-row:last-child {
  border-bottom: 0;
}
.pick-row.selected {
  background: var(--pale);
}
.pick-row input,
.scope-check input {
  accent-color: var(--green);
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  cursor: pointer;
}
.pick-label {
  flex: 1;
}
.scope-fields {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 17px;
  margin: 0;
}
.scope-fields legend {
  font-size: 12px;
  font-weight: 600;
  padding: 0 5px;
}
.scope-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  font-size: 13px;
  cursor: pointer;
}
.history-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 14px;
  padding: 23px 0 6px;
  border-bottom: 1px solid var(--line);
}
.history-filters .field input,
.history-filters .field select {
  font-size: 12px;
  padding: 10px;
  width: 100%;
  min-width: 0;
}
.filter-buttons {
  align-self: end;
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
@media (max-width: 700px) {
  .money-toggle {
    padding: 15px;
  }
  .form-grid:not(.quantity-only) {
    grid-template-columns: 1fr;
  }
  .pick-row {
    gap: 9px;
    padding: 13px;
  }
  .pick-label .product-cell b {
    font-size: 12px;
  }
  .pick-label .product-cell .muted {
    font-size: 10px;
  }
  .pick-label .product-visual {
    width: 38px;
    height: 42px;
  }
  .pick-row > .small {
    font-size: 11px;
  }
  .history-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 10px;
  }
  .history-filters .field {
    min-width: 0;
  }
  .filter-buttons .btn {
    min-height: 43px;
  }
  .person-row .person-info {
    min-width: 160px;
  }
  .line-title .product-cell {
    flex: 1;
  }
  .line-title .remove {
    margin-left: 8px;
  }
  .history-heading {
    align-items: flex-start;
  }
}

/* Live application additions */
.auth-shell {min-height:100dvh;display:grid;place-items:center;padding:24px;}
.auth-card {width:min(100%,460px);background:white;border:1px solid var(--line);padding:36px;border-radius:24px;box-shadow:0 18px 60px #193d2910;}
.auth-card .brand {margin-bottom:28px;}
.auth-card h1 {font-size:30px;margin:14px 0;}
.auth-card .text-btn {margin-top:20px;text-align:left;}
.live-check {display:flex;gap:12px;align-items:center;padding:14px 8px;border-bottom:1px solid var(--line);cursor:pointer;}
.live-check input {width:20px;height:20px;accent-color:var(--green);flex-shrink:0;}
.live-check small {display:block;color:var(--muted);margin-top:5px;}
.live-picker {max-height:50dvh;overflow:auto;margin-top:16px;}
.live-picker [hidden] {display:none;}
.live-event {padding:20px 0;border-bottom:1px solid var(--line);}
.audit-detail {white-space:pre-wrap;word-break:break-word;background:var(--bg);padding:16px;border-radius:10px;font-size:12px;}
.evidence-full {max-width:100%;max-height:70dvh;object-fit:contain;}
.topright>select {max-width:260px;background:white;border:1px solid var(--line);border-radius:10px;padding:10px;color:var(--ink);}
.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;}
@media(max-width:700px){.auth-card{padding:24px;}.topright>select{max-width:180px;font-size:12px;}.person-row{flex-wrap:wrap;}.person-info{min-width:150px;}.request-line{gap:12px;flex-wrap:wrap;}.history-heading{gap:12px;flex-wrap:wrap;}.actions{flex-wrap:wrap;}}
@media print {body:has(#print-sheet) #app,body:has(#print-sheet) #toast{display:none!important;}body:has(#print-sheet) .modal-head,body:has(#print-sheet) .modal-foot{display:none!important;}body:has(#print-sheet) .modal-overlay{position:static;display:block;background:white;padding:0;}body:has(#print-sheet) .modal{max-height:none;width:100%;box-shadow:none;border:0;}body:has(#print-sheet) .modal-body{padding:0;overflow:visible;}#print-sheet{display:block!important;}#print-sheet table{width:100%;}#print-sheet tr{break-inside:avoid;}}

.warehouse-image img.entity-photo,
.cover-small img.entity-photo {
  width:100%;height:100%;left:0;top:0;transform:none;filter:none;object-fit:cover;
}
.product-photo {width:54px;height:54px;object-fit:contain;border-radius:9px;border:1px solid var(--line);background:#f4f6f1;flex-shrink:0;}
.photo-placeholder {display:grid;place-items:center;color:#7c9485;font-weight:700;font-size:22px;}
.selected-photo {display:flex;align-items:center;gap:16px;padding:14px;background:var(--bg);border:1px solid var(--line);border-radius:12px;margin-top:12px;}
.selected-photo img {width:128px;height:100px;object-fit:cover;border-radius:8px;}
.selected-photo p {overflow-wrap:anywhere;}
.entity-photo-field input[type=file] {padding:12px;max-width:100%;}
.entity-photo-field small {display:block;margin-top:7px;}
.request-line>.product-cell {align-items:flex-start;}
@media(max-width:450px){.selected-photo {gap:12px;}.selected-photo img {width:96px;height:88px;}.product-photo {width:44px;height:44px;}.stock-table .product-cell {gap:9px;}}

.action-summary { display: block; }
.action-summary .request-lines { margin: 12px 0; }

.stock-filters { display:flex; align-items:flex-end; gap:16px; margin-bottom:18px; }
.stock-filters .field { flex:1; margin:0; min-width:0; }
.stock-filters .btn { flex-shrink:0; }
.stock-table tr[hidden], .stock-empty[hidden] { display:none; }
.stock-empty { padding:20px; text-align:center; }
@media(max-width:700px) { .stock-filters { flex-direction:column; align-items:stretch; gap:12px; } }
