/* ── Typeface ────────────────────────────────────────────────────────────
   Served from this site, not from Google: seven files, 156 KB in all —
   less than one product photo. Nothing to fetch from anyone else, so the
   app keeps its own look offline and on a weak signal, and no third party
   can see who is using it.

   font-display: swap means the text is readable in the fallback face from
   the first paint and swaps when the file lands. It never goes invisible
   waiting for a font.

   Upload the seven .woff2 files to /fonts/ beside /css/ and /js/.         */

@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('/fonts/instrument-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500;
  font-display: swap; src: url('/fonts/instrument-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600;
  font-display: swap; src: url('/fonts/instrument-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 700;
  font-display: swap; src: url('/fonts/instrument-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500;
  font-display: swap; src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700;
  font-display: swap; src: url('/fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2'); }

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font:        'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:   'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --purple:      #7F77DD;
  /* The solid-fill purple. White text on --purple measures 3.8:1, under the
     4.5:1 minimum for body text — hard to read in sunlight on the floor.
     This one measures 6.9:1. Same brand purple, the end of it that can
     carry white type. */
  --purple-dark: #534AB7;
  --purple-deep: #4A41A8;
  --purple-light:#EEEDFE;
  --purple-text: #3C3489;
  --red:         #E24B4A;
  --red-light:   #FCEBEB;
  --red-text:    #A32D2D;
  --green:       #3B6D11;
  --green-light: #EAF3DE;
  --green-text:  #27500A;
  --amber:       #BA7517;
  --amber-light: #FAEEDA;
  --amber-text:  #633806;
  --blue:        #185FA5;
  --blue-light:  #E6F1FB;
  --blue-text:   #0C447C;
  --gray-light:  #F2F1F5;
  --gray-dark:   #444448;
  --text:        #1A1A1F;
  --text-2:      #5C5A63;
  --text-3:      #8A8792;
  --border:      #E4E2E7;
  --hairline:    #EDECF1;
  /* Was #f4f2f8 — a lilac wash over the whole app, which made the purple
     read as background rather than as the brand. Near-neutral now, so the
     purple only appears where it means something. */
  --bg:          #F6F5F8;
  --white:       #ffffff;
  --radius:      8px;
  --radius-lg:   10px;
  --radius-sm:   6px;
  --shadow-sm:   0 1px 4px rgba(26,26,31,0.06);
  --shadow-md:   0 4px 16px rgba(26,26,31,0.09);
  --shadow-lg:   0 8px 32px rgba(26,26,31,0.13);
}

html, body { height: 100%; font-family: var(--font);
  font-size: 14px; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Order numbers, quantities, dates and money. A monospace face makes them
   line up down a column and reads as precision rather than decoration. */
.mono, .so-number, .stat-value, .pin-display, .money, .qty-figure {
  font-family: var(--font-mono); font-feature-settings: 'tnum' 1; }
#root { min-height: 100vh; }

/* ── Page fade-in — every page transition feels smooth ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.page-body { animation: fadeUp .22s ease both; }

/* ── Splash ── */
.splash { display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100vh; gap: 16px; }
.splash-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--purple); }
.splash p { color: var(--text-2); font-size: 13px; }

/* ── Layout ── */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px;
  background: #ffffff;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; flex-shrink: 0;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  box-shadow: 2px 0 12px rgba(0,0,0,.06);
}
.main-content { margin-left: 220px; flex: 1; min-height: 100vh; overflow-x: hidden; }
.page-header { background: var(--white); border-bottom: 1px solid var(--border);
  padding: 16px 24px; display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-sm); }
.page-header h1 { font-size: 18px; font-weight: 700; color: var(--text); }
.page-body { padding: 24px; }

/* ── Sidebar ── */
.sidebar-brand { padding: 0 16px; border-bottom: 1px solid var(--border);
  height: 64px; display: flex; align-items: center; flex-shrink: 0;
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
/* The mark sits in the tile edge to edge — the SVG carries its own ground,
   so no gradient and no emoji. Was a gradient lozenge with a trophy in it. */
.brand-dot { width: 30px; height: 30px; border-radius: 8px; overflow: hidden;
  flex-shrink: 0; display: block; }
.brand-dot svg { display: block; width: 100%; height: 100%; }
.brand-name { font-size: 13px; font-weight: 700; color: var(--purple-text); line-height: 1.3; }
.brand-sub  { font-size: 10px; color: var(--text-3); }

.sidebar-nav { flex: 1; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: var(--radius); cursor: pointer; font-size: 13px; font-weight: 500;
  color: var(--text-2); border: none; background: none; width: 100%; text-align: left;
  transition: all .15s;
}
.nav-item:hover { background: var(--gray-light); color: var(--text); }
.nav-item.active {
  background: var(--purple-light);
  color: var(--purple-text);
  font-weight: 700;
  border-left: 3px solid var(--purple);
  padding-left: 9px;
}
.nav-item .badge { margin-left: auto; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 20px; min-width: 18px; text-align: center; }
.nav-icon { width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.sidebar-footer { padding: 12px 10px; border-top: 1px solid var(--border); }
.user-card { padding: 10px 12px; border-radius: var(--radius);
  background: var(--gray-light); display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #C9A96E, #E8C97A);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #1e1854; flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 10px; color: var(--text-3); text-transform: capitalize; }
.logout-btn { margin-top: 8px; width: 100%; padding: 7px; border: 1px solid var(--border);
  border-radius: var(--radius); background: transparent; color: var(--text-3);
  font-size: 12px; cursor: pointer; transition: all .15s; font-family: inherit; }
.logout-btn:hover { background: var(--red-light); color: var(--red-text); border-color: var(--red); }

/* ── Cards ──
   The border does the separating now. A shadow under every card made the
   whole page look like it was floating a few millimetres off the screen;
   on a dense working screen that is restless. Shadows are kept for things
   that genuinely sit above the page — modals, menus, toasts. */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; }
.card-sm { padding: 14px 16px; }

/* ── Stats ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 20px; border-top: 3px solid var(--border);
  transition: transform .15s, box-shadow .15s; cursor: default;
  position: relative; overflow: hidden;
}
/* The decorative purple blob in the corner of every stat card is gone —
   it was ornament competing with the number, which is the only thing on
   the card anyone reads. */
.stat-card:hover { border-color: #CFCCD6; }
.stat-card[style*="cursor:pointer"]:hover, .stat-card[style*="cursor: pointer"]:hover {
  border-color: var(--purple); }
.stat-card.danger  { border-top-color: var(--red); }
.stat-card.warning { border-top-color: var(--amber); }
.stat-card.success { border-top-color: var(--green); }
.stat-card.info    { border-top-color: var(--purple); }
.stat-label { font-size: 11px; color: var(--text-3); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.stat-value { font-size: 30px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-card.danger .stat-value  { color: var(--red); }
.stat-card.warning .stat-value { color: var(--amber); }
.stat-card.success .stat-value { color: var(--green); }
.stat-card.info .stat-value    { color: var(--purple); }

/* ── Order Cards ── */
.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 20px; cursor: pointer;
  transition: box-shadow .15s, border-color .15s, transform .1s;
  border-left: 4px solid transparent;
}
.order-card:hover { box-shadow: var(--shadow-md); border-top-color: var(--purple); border-right-color: var(--purple); border-bottom-color: var(--purple); transform: translateY(-1px); }
/* ── The stripe: who holds this order right now ───────────────────────
   One rule per stage, driven by STATUS_STAGE in app.js. There is no
   second list to fall out of step with.

   This replaces fifteen rules that fought each other: three for
   delayed / ready / new-order, eight raw hex values one per status, and
   an !important bolted on the end to win that fight. The raw hex is gone
   too — these are the same tokens the rest of the app uses.            */
.order-card.stage-unclaimed  { border-left-color: var(--purple); }
.order-card.stage-design     { border-left-color: var(--blue); }
.order-card.stage-production { border-left-color: var(--amber); }
.order-card.stage-ready      { border-left-color: var(--green); }
.order-card.stage-done       { border-left-color: var(--text-3); }

/* Late beats the stage, whatever the stage is. An order can be in
   production AND three days late: the stripe reports the problem, the
   chip still says where the work is. Last rule, so it wins on its own
   without needing !important. */
.order-card.is-late          { border-left-color: var(--red); }
/* wrap matters here: the monospace order number is wider than the old
   system font, so on a phone the status chip and the delay chip were
   pushed off the right edge with no way to reach them. */
.order-card-top { display: flex; align-items: center; gap: 8px 12px;
  margin-bottom: 10px; flex-wrap: wrap; }
/* and the number itself must never break across two lines */
.so-number { font-size: 14.5px; font-weight: 700; color: var(--text);
  white-space: nowrap; letter-spacing: -0.3px; }
/* The customer is what people actually scan for — second only to the order
   number. It was the lightest thing on the card. */
.customer-name { font-size: 13px; font-weight: 600; color: var(--text); flex: 1; }
.order-card-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.order-card-meta span { display: flex; align-items: center; gap: 4px; }
.delay-badge { background: var(--red-light); color: var(--red-text); font-size: 11.5px;
  font-weight: 600; padding: 3px 9px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  border-color: color-mix(in srgb, currentColor 28%, transparent); }

/* ── Status Badges ── */
/* A squared-off chip with its own border rather than a bright lozenge:
   it sits in a row of text instead of shouting over it. The dot carries
   the colour at full strength, so status is still readable at a glance. */
.status-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px;
  font-weight: 600; padding: 4px 10px; border-radius: var(--radius-sm);
  white-space: nowrap;
  /* A neutral hairline first, so an old browser that cannot do color-mix
     still gets a sensible border rather than none. Where color-mix works,
     the border picks up a quarter-strength tint of the status colour. */
  border: 1px solid var(--border);
  border-color: color-mix(in srgb, currentColor 28%, transparent);
}
.status-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}
/* ── The chip ─────────────────────────────────────────────────────────
   Note the .status-badge prefix. The old rules were written WITHOUT it —
   just ".status-in_production { background: … }" — and the order card's
   own class list contained that same class, so every card wore its chip's
   colour as a full background wash. Ready For Dispatch rows came out
   cream, In Production rows lilac, and the stripe was lost in it. That
   one missing prefix was doing more damage to readability than any of the
   colour choices were.

   Same stage as the stripe, so chip and stripe can never again say
   different things about the same order.                               */
/* -- Inline icons ---------------------------------------------------------
   Icons take the colour and the size of the text around them, so a heading,
   a button and a chip each get the icon in their own colour and scale
   without a rule per place. A few stand-alone icons override the size
   inline. */
.ico { width: 1em; height: 1em; flex: none; vertical-align: -0.145em; }
.btn .ico, .section-title .ico, .modal-title .ico { margin-right: .4em; }
.btn .ico:only-child, .icon-btn .ico { margin-right: 0; }

.status-badge.stage-unclaimed  { background: var(--purple-light); color: var(--purple-text); }
.status-badge.stage-design     { background: var(--blue-light);   color: var(--blue-text); }
.status-badge.stage-production { background: var(--amber-light);  color: var(--amber-text); }
.status-badge.stage-ready      { background: var(--green-light);  color: var(--green-text); }
.status-badge.stage-done       { background: var(--gray-light);   color: var(--gray-dark); }

/* Cancelled is finished, so the stripe is grey — nothing to do about it.
   The chip stays red so the word is not missed in a list of completed
   orders. Colour on the stripe means attention; colour on the chip is
   just saying what kind of thing this is. */
.status-badge.badge-cancelled  { background: var(--red-light);    color: var(--red-text); }

/* ── Branding Badge ── */
.branding-badge { display: inline-block; font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: 4px; background: var(--purple-light); color: var(--purple-text); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px;
  border-radius: var(--radius); font-size: 13px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
/* No lift on hover. A button that jumps under the cursor was a 2014 habit;
   a quiet colour change reads as more certain and stops the page twitching
   when someone runs the mouse down a column of actions. */
.btn:hover { filter: brightness(0.97); }
.btn:active { filter: brightness(0.94); }
.btn:focus-visible { outline: 2px solid var(--purple-dark); outline-offset: 2px; }
.btn-primary {
  /* Flat, not a gradient. One solid colour, dark enough for white text. */
  background: var(--purple-dark);
  color: #fff; border-color: var(--purple-deep);
}
.btn-primary:hover { background: var(--purple-deep); filter: none; }
.btn-secondary { background: var(--white); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--gray-light); border-color: #CFCCD6; filter: none; }
.btn-danger    { background: var(--red-light);   color: var(--red-text);   border-color: var(--red); }
.btn-danger:hover { background: #f8d5d5; }
.btn-success   { background: var(--green-light); color: var(--green-text); border-color: var(--green); }
.btn-success:hover { background: #d9edcc; }
.btn-warning   { background: var(--amber-light); color: var(--amber-text); border-color: var(--amber); }
.btn-warning:hover { background: #f6e4c6; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.4px; }
.form-label .req { color: var(--red); margin-left: 2px; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 13px; color: var(--text); background: var(--white);
  transition: border-color .15s, box-shadow .15s; }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(127,119,221,0.15); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr;     gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-hint  { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--red-text); margin-top: 4px; }

/* ── Login ── */
/* Desktop login background */
.login-page {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 24px;
  background-image: url('/manageordersdektopversion.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay so login card stays readable over any image */
.login-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(83, 74, 183, 0.35);
  z-index: 0;
}

.login-card { background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 400px;
  box-shadow: 0 8px 40px rgba(127,119,221,.28);
  position: relative; z-index: 1; }

/* Mobile login background */
@media (max-width: 768px) {
  .login-page {
    background-image: url('/manageordersmobileversion.webp');
    background-position: center top;
    align-items: flex-end;
    padding: 0;
  }
  .login-card {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-width: 100%;
    padding: 32px 24px 40px;
    box-shadow: 0 -4px 30px rgba(127,119,221,.25);
  }
}

.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.login-brand-dot { width: 40px; height: 40px; border-radius: 10px; overflow: hidden;
  display: block; box-shadow: 0 3px 10px rgba(59,53,180,.22); }
.login-brand-dot svg { display: block; width: 100%; height: 100%; }
.login-title { font-size: 18px; font-weight: 700; }
.login-sub   { font-size: 12px; color: var(--text-3); }
.login-error { background: var(--red-light); color: var(--red-text); padding: 10px 14px;
  border-radius: var(--radius); font-size: 13px; margin-bottom: 16px; }

/* ── Item Block ── */
.item-block { border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px; margin-bottom: 14px; background: var(--gray-light); }
.item-block-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.item-number { font-size: 13px; font-weight: 700; color: var(--purple-text); }
.remove-item-btn { background: none; border: none; color: var(--red); cursor: pointer;
  font-size: 18px; padding: 2px 6px; border-radius: 4px; }
.remove-item-btn:hover { background: var(--red-light); }

/* ── Skeleton loading ── */
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.skeleton-card {
  height: 84px; border-radius: var(--radius-lg); margin-bottom: 10px;
  background: linear-gradient(90deg, #f0ede8 25%, #e8e2d8 50%, #f0ede8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

/* ── Image Upload ── */
.image-upload-box {
  width: 80px; height: 80px; min-width: 80px;
  border: 2px dashed var(--border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s; flex-shrink: 0;
}
.image-upload-box:hover { border-color: var(--purple); background: var(--purple-light); }
.image-preview { width: 76px; height: 76px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }

/* ── Attachments ── */
.attachment-list { display: flex; flex-direction: column; gap: 8px; }
.attachment-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: var(--gray-light); border-radius: var(--radius); font-size: 12px; }
.attachment-icon { font-size: 20px; }
.attachment-name { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-size { color: var(--text-3); }
.attachment-remove { background: none; border: none; color: var(--red); cursor: pointer;
  padding: 2px 6px; border-radius: 4px; font-size: 16px; }

/* ── Timeline ── */
.timeline { display: flex; flex-direction: column; }
.timeline-item { display: flex; gap: 14px; padding-bottom: 20px; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-line { width: 2px; background: var(--border); position: absolute; left: 11px; top: 24px; bottom: 0; }
.timeline-item:last-child .timeline-line { display: none; }
.timeline-dot { width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg,var(--purple),var(--purple-dark));
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  z-index: 1; box-shadow: 0 2px 6px rgba(127,119,221,.3); }
.timeline-dot-small { background: var(--gray-light); border: 2px solid var(--border); box-shadow: none; }
.timeline-content { flex: 1; padding-top: 2px; }
.timeline-action { font-size: 13px; font-weight: 600; color: var(--text); }
.timeline-by { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.timeline-notes { font-size: 12px; color: var(--text-2); margin-top: 4px;
  background: var(--gray-light); padding: 4px 8px; border-radius: 4px; }

/* ── Modal ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
  padding: 16px; backdrop-filter: blur(2px); animation: fadeIn .15s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--white); border-radius: var(--radius-lg); padding: 28px;
  width: 100%; max-width: 480px;
  /* On a phone the bottom-sheet rule further down already bounds and scrolls
     this. On a desktop it did not: a modal taller than the window simply grew
     past it, and because the overlay is position:fixed there was no way to
     reach the bottom — no scrollbar, nothing. Zooming the whole browser out
     was the only way to read a long one. Every modal in the app was affected;
     the ready list was just the first one long enough to expose it. */
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), 0 20px 60px rgba(0,0,0,.18);
  animation: modalPop .2s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes modalPop { from { opacity: 0; transform: scale(.92) translateY(8px); } to { opacity: 1; transform: none; } }
.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ── PIN — bigger targets for floor use ── */
.pin-display { display: flex; gap: 12px; justify-content: center; margin: 20px 0; }
.pin-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border);
  transition: all .15s; }
.pin-dot.filled {
  background: var(--purple); border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(127,119,221,.25);
  transform: scale(1.15);
}
.pin-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pin-key {
  padding: 18px; font-size: 22px; font-weight: 600;
  border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  background: var(--white); cursor: pointer; text-align: center;
  transition: all .1s; user-select: none;
}
.pin-key:active {
  background: var(--purple); color: #fff; border-color: var(--purple-dark);
  transform: scale(.94);
  box-shadow: 0 2px 8px rgba(127,119,221,.4);
}
.pin-key.delete { font-size: 18px; }
.pin-error { text-align: center; color: var(--red-text); font-size: 13px; margin-top: 10px; }

/* ── Order Detail ── */
.order-detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.section-title { font-size: 14px; font-weight: 700; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--purple-light); color: var(--text); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.info-row { display: flex; flex-direction: column; gap: 3px; }
.info-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.4px; }
.info-value { font-size: 13px; font-weight: 500; }

/* ── Action Panel ── */
.action-panel { background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px; position: sticky; top: 20px;
  box-shadow: var(--shadow-sm); }
.action-panel-title { font-size: 12px; font-weight: 700; margin-bottom: 14px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.6px; }
.action-btn-row { display: flex; flex-direction: column; gap: 8px; }
.action-btn-row .btn { width: 100%; justify-content: center; }

/* ── Item Detail ── */
.item-detail-card { border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 14px; margin-bottom: 12px; transition: box-shadow .15s; }
.item-detail-card:hover { box-shadow: var(--shadow-sm); }
.item-detail-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.item-detail-img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--border); flex-shrink: 0; cursor: zoom-in; display: block;
  transition: transform .15s, box-shadow .15s; }
.item-detail-img:hover { transform: scale(1.1); box-shadow: var(--shadow-md); }
.item-detail-img-placeholder { width: 64px; height: 64px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--purple-light);
  display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.item-detail-info { flex: 1; }
.item-detail-name { font-size: 14px; font-weight: 600; }
.item-detail-meta { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.item-qty-badge { display: inline-block; background: var(--purple-light); color: var(--purple-text);
  font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-top: 6px; }

/* ── Artwork ── */
.artwork-area { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; background: var(--gray-light); }
.artwork-title { font-size: 11px; font-weight: 600; color: var(--text-2); margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.4px; }
.artwork-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.artwork-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; transition: all .15s; }
.artwork-thumb:hover { border-color: var(--purple); transform: scale(1.05); }
.artwork-upload-btn { display: flex; align-items: center; gap: 6px; padding: 8px 12px;
  border: 2px dashed var(--purple); border-radius: var(--radius);
  background: none; color: var(--purple-text); cursor: pointer; font-size: 12px; font-weight: 500; transition: all .15s; }
.artwork-upload-btn:hover { background: var(--purple-light); }

/* ── Filter Bar ── */
.filter-bar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.filter-input { flex: 1; min-width: 180px; max-width: 300px; padding: 8px 12px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 13px; background: var(--white); transition: border-color .15s; }
.filter-input:focus { outline: none; border-color: var(--purple); }
.filter-select { padding: 8px 12px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 13px; background: var(--white); }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 60px 24px; }
.empty-icon {
  font-size: 56px; margin-bottom: 16px; display: inline-block;
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--purple-light);
  line-height: 96px;
}
.empty-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.empty-desc  { font-size: 13px; color: var(--text-3); max-width: 300px; margin: 0 auto; }

/* ── Toast ── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 2000;
  display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 12px 18px; border-radius: var(--radius); font-size: 13px; font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,.15); animation: slideIn .2s ease; max-width: 320px; }
.toast-success { background: var(--green-light); color: var(--green-text); border: 1px solid var(--green); }
.toast-error   { background: var(--red-light);   color: var(--red-text);   border: 1px solid var(--red); }
.toast-info    { background: var(--blue-light);   color: var(--blue-text);  border: 1px solid var(--blue); }
@keyframes slideIn { from { transform: translateX(120px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Table ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 700;
  color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border); background: var(--gray-light); }
td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #faf9fd; }

/* ── Misc ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid var(--purple-light);
  border-top-color: var(--purple); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-center { display: flex; align-items: center; justify-content: center;
  padding: 60px; gap: 12px; color: var(--text-3); }
.error-banner { background: var(--red-light); color: var(--red-text); padding: 14px 18px;
  border-radius: var(--radius); font-size: 14px; margin: 16px 0; }
.hide-mobile { display: inline; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { display: flex; align-items: center; gap: 10px; }
.mt-4 { margin-top: 16px; }
.mt-2 { margin-top: 8px; }
.mb-4 { margin-bottom: 16px; }
.text-muted { color: var(--text-3); }
.text-sm { font-size: 12px; }
.font-bold { font-weight: 700; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.pill-retail    { background: var(--purple-light); color: var(--purple-text); }
.pill-wholesale { background: var(--green-light);  color: var(--green-text); }

/* ── Board / Kanban — column headers with count ── */
.board-columns { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: start; }
.board-column  { min-width: 0; }
.kanban-grid   { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: start; }
.kanban-col-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 10px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-2);
  box-shadow: var(--shadow-sm);
}
.kanban-col-count {
  background: var(--purple); color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px; min-width: 22px; text-align: center;
}
.kanban-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 14px; margin-bottom: 10px; cursor: pointer;
  transition: all .15s; border-left: 3px solid transparent;
}
.kanban-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); border-left-color: var(--purple); }
.kanban-card.urgent { border-left-color: var(--red); }
.kanban-card.soon   { border-left-color: var(--amber); }

/* ── Mobile Nav ── */
.mobile-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white); border-top: 1px solid var(--border);
  z-index: 200; padding: 10px 0 env(safe-area-inset-bottom, 12px);
  box-shadow: 0 -4px 24px rgba(0,0,0,.10); }
.mobile-nav-items { display: flex; justify-content: space-around; align-items: flex-start; }
.mobile-nav-item { display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 4px 8px; border: none; background: none;
  cursor: pointer; font-size: 11px; font-weight: 500; color: var(--text-3);
  min-width: 60px; min-height: 52px; transition: color .15s; font-family: inherit; }
.mobile-nav-item.active { color: var(--purple); font-weight: 700; }
.mobile-nav-icon-wrap { width: 44px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 10px; transition: background .15s; }
.mobile-nav-item.active .mobile-nav-icon-wrap { background: var(--purple-light); }
.mobile-nav-item .nav-icon svg { width: 20px; height: 20px; }
.mobile-nav-item .nav-icon { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.mobile-nav-badge { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 32px; border-radius: 10px; transition: background .15s; }
.mobile-nav-badge-dot { position: absolute; top: -2px; right: -6px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* ── Print ── */
/* Blocks that exist only to be printed. Without this they render on
   screen as well, which is why the label view showed every label twice —
   once from the print block, once from the preview. */
.print-only { display: none; }

@media print {
  .no-print, .sidebar, .page-header, .action-panel, .filter-bar, .btn,
  .mobile-nav, .toast-container { display: none !important; }
  .print-only { display: block !important; }

  /* html and body are height:100% for the app layout. Left alone during
     printing that caps the document at one viewport, so a long order
     printed page one and silently dropped the rest. Release every height
     and overflow constraint so the document can flow across pages. */
  html, body {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }
  .app-layout, .main-content, .page-body {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* The preview chrome disappears; the sheet becomes the document. */
  .print-stage {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    min-height: 0 !important;
  }
  .print-paper {
    width: auto !important;
    max-width: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  .print-sheet { padding: 0 !important; }
}

/* ── Responsive ── */
@media (max-width: 1200px) { .kanban-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1100px) { .board-columns { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; padding-bottom: 72px; }
  .mobile-nav { display: block; }
  .order-detail-grid { grid-template-columns: 1fr; }
  .hide-mobile { display: none; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .page-body { padding: 16px; }
  .page-header { padding: 12px 16px; }
  .kanban-grid { grid-template-columns: repeat(2, 1fr); }
  .board-columns { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pin-key { padding: 20px; font-size: 24px; }
}

@media (max-width: 768px) {
  .mobile-nav { display: block; }
}

/* ── Mobile UI helpers ─────────────────────────────────────── */
@media (max-width: 768px) {
  /* Hide elements on mobile */
  .hide-on-mobile { display: none !important; }

  /* Reports — Month / Year / Refresh equal width row */
  .reports-filters { display: flex; gap: 8px; width: 100%; }
  .reports-filters .filter-select,
  .reports-filters .btn { flex: 1; min-width: 0; }
}

/* ── Sticky filter bar — stays visible while scrolling orders ── */
.sticky-filters {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  padding-top: 8px;
  padding-bottom: 4px;
  margin-top: -8px;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE REFINEMENTS
   Fixes measured against the live stylesheet, not assumed:
   touch targets were 28–35px, inputs zoomed on iOS, the kanban ran
   two columns on a 360px phone, and only the bottom nav accounted
   for the iPhone home indicator.
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* No overflow-x on html/body. The app already sets it on
     .main-content, and adding it here turns <body> into a scroll
     container (html/body are height:100% at line 36), which breaks
     sticky positioning and can clip content on iOS. Nothing needs
     clipping now that the real overflows are fixed at source. */

  /* iOS zooms the page whenever a focused field is under 16px.
     This is the single most irritating thing about the current
     mobile experience: tap a field, the layout jumps. */
  .form-input, .form-select, .form-textarea,
  .filter-input, .filter-select, input, select, textarea {
    font-size: 16px;
  }

  /* Touch targets. WCAG asks for 44px; buttons were 28–35px. */
  .btn { padding: 12px 18px; font-size: 14px; min-height: 44px; }
  .btn-sm { padding: 10px 14px; font-size: 13px; min-height: 40px; }
  .btn-icon, .icon-btn { min-width: 44px; min-height: 44px; }
  .form-input, .form-select { min-height: 44px; }

  /* Small print. 10–11px is legible on a desk, not at arm's length
     in a workshop. Lift the floor without disturbing the hierarchy. */
  .page-body { font-size: 14px; }
  .form-label { font-size: 13px; }

  /* Modals become bottom sheets — thumb-reachable, and the natural
     pattern on a phone. They also scroll, which they did not before,
     so a long form could be unreachable below the fold. */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal {
    max-width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    animation: sheetUp .22s cubic-bezier(.32,.72,0,1) both;
  }
  @keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

  /* A grab handle, so it reads as a sheet that can be dismissed. */
  .modal::before {
    content: '';
    display: block;
    width: 36px; height: 4px;
    background: var(--border);
    border-radius: 99px;
    margin: -8px auto 16px;
  }

  /* Modal actions go full width and stack — side-by-side buttons at
     44px tall do not fit two across on a 360px screen. */
  .modal-footer { flex-direction: column-reverse; gap: 8px; }
  .modal-footer .btn { width: 100%; justify-content: center; }

  /* Sticky filter bar must clear the notch. */
  .sticky-filters { top: env(safe-area-inset-top, 0px); }

  /* Wide tables scroll inside their own box rather than stretching
     the page. */
  .table-wrap, .scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ── Small phones (iPhone SE, most Android) ──────────────────── */
@media (max-width: 480px) {
  /* Two kanban columns on a 360px screen leaves ~165px per card —
     the order number, customer and badges all collide. One column
     is honest about the space available. */
  .kanban-grid, .board-columns { grid-template-columns: 1fr; }

  .page-body { padding: 12px; }
  .page-header { padding: 10px 12px; }
  .card { padding: 14px; }

  /* Headings shrink before body text does — the content stays
     readable while the chrome gives up space. */
  .page-title { font-size: 18px; }
  .section-title { font-size: 14px; }

  /* Action rows stack so nothing is squeezed below a usable width. */
  .action-btn-row { flex-direction: column; }
  .action-btn-row .btn { width: 100%; }
}

/* ── Landscape phones: a bottom sheet would cover everything ── */
@media (max-width: 900px) and (orientation: landscape) {
  .modal-overlay { align-items: center; padding: 16px; }
  .modal { max-height: 88vh; border-radius: var(--radius-lg); }
  .modal::before { display: none; }
}

/* Respect a reduced-motion preference for the new sheet animation. */
@media (prefers-reduced-motion: reduce) {
  .modal { animation: none; }
}

/* ── Dispatched items step back ──────────────────────────────
   A part-shipped order should draw the eye to what is still to be
   made. The dispatched rows stay legible for checking, but lose
   contrast so they stop competing with the pending work. */
.item-detail-card.item-shipped {
  opacity: .55;
  background: var(--gray-light);
  border-style: dashed;
}
.item-detail-card.item-shipped .item-detail-img,
.item-detail-card.item-shipped .item-detail-img-placeholder {
  filter: grayscale(100%);
}
.item-detail-card.item-shipped .item-detail-name { text-decoration: line-through; }
.item-detail-card.item-shipped:hover { opacity: .9; }

/* ── Part-dispatch shipment card, mobile ─────────────────────────
   The three shipment buttons (Copy summary / Note / Label) sat in a
   flex row with flex-shrink:0 and no wrap. On a desktop that is
   correct — they should not squash. On a phone the mobile .btn-sm
   size above made each one noticeably wider, and three of them that
   can neither shrink nor wrap forced the whole card past the edge
   of the screen. That is why only orders WITH shipments were
   affected: this block renders nowhere else.
   Inline styles win over stylesheets, so these carry !important. */
@media (max-width: 768px) {
  .ship-actions {
    flex-wrap: wrap !important;
    flex-shrink: 1 !important;
    width: 100%;
    justify-content: flex-start;
  }
  .ship-actions .btn { flex: 1 1 auto; min-width: 0; justify-content: center; }

  /* Rush + status + late badges together are wider than a phone and
     were also pinned against shrinking. */
  .order-badges { flex-shrink: 1 !important; min-width: 0; max-width: 100%; }

  /* The order header row itself may wrap rather than push sideways. */
  .page-header { flex-wrap: wrap !important; }
}
/* ═══════════════════════════════════════════════════════════
   MOBILE — clean pass, 2026-09-27 (v2)

   Rules I am holding myself to after the last attempt:
   • Never `overflow-wrap: anywhere`. It is inherited AND it lets an
     element shrink to one character wide, which is what stacked
     every word vertically. `break-word` does neither.
   • Never put text rules on containers like .card or .page-body —
     they inherit into every table cell on the page.
   • Target the specific element that has the problem, nothing else.
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── Tables ───────────────────────────────────────────────
     A 4–6 column table cannot fit a phone. It already sits in
     .table-wrap, which scrolls — but nothing told the user that,
     so it just looked cut off. Give the columns room to breathe,
     keep each cell on one line, and fade the right edge so it
     reads as "there is more this way". */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    background:
      linear-gradient(to right, var(--card) 30%, transparent),
      linear-gradient(to left,  var(--card) 30%, transparent) 100% 0,
      linear-gradient(to right, rgba(0,0,0,.10), transparent),
      linear-gradient(to left,  rgba(0,0,0,.10), transparent) 100% 0;
    background-repeat: no-repeat;
    background-size: 36px 100%, 36px 100%, 14px 100%, 14px 100%;
    background-attachment: local, local, scroll, scroll;
  }
  .table-wrap table { min-width: max-content; }
  .table-wrap th,
  .table-wrap td { white-space: nowrap; }

  /* Buttons inside a table cell stay side by side rather than
     stacking into a tall, ragged row. */
  .table-wrap td .flex-gap { flex-wrap: nowrap; }
  .table-wrap td .btn { white-space: nowrap; }

  /* ── Status pills ─────────────────────────────────────────
     "● Active" was splitting between the dot and the word. */
  .status-badge, .role-badge, .delay-badge,
  .item-qty-badge, .branding-badge { white-space: nowrap; }

  /* ── Product cards ────────────────────────────────────────
     The name and the vendor badge sat in a nowrap row; on a
     narrow screen the badge was pushed past the edge. Let that
     row wrap so the badge drops under the name. */
  .item-detail-info > div:first-child { flex-wrap: wrap; }
  .item-detail-name { overflow-wrap: break-word; }
  .item-detail-meta { overflow-wrap: break-word; }

  /* Action rows inside a product card wrap instead of clipping. */
  .item-detail-info .flex-gap { flex-wrap: wrap; }
  .item-detail-info .flex-gap .btn { flex: 0 1 auto; }

  /* ── Long values that genuinely need to break ─────────────
     Only leaf text nodes, never a container. break-word keeps
     each element at least one word wide. */
  .info-value, .detail-value,
  .attachment-name, .timeline-notes { overflow-wrap: break-word; }
}

/* ── Small phones ───────────────────────────────────────────── */
@media (max-width: 400px) {
  /* Two label/value columns get tight below 400px. One column
     reads cleanly and costs only vertical space, which is free. */
  .info-grid { grid-template-columns: 1fr; gap: 12px 0; }
}

/* ── Product ready for dispatch ───────────────────────────────────
   Three states, each quieter than the last, but never identical:

     in production   normal card
     ready           green tag, card slightly lifted — clearly present
     dispatched      greyscale, struck through — clearly finished

   "Is this sent, or just packed?" has to be answerable at a glance.
   Making ready and dispatched look the same would trade one mistake
   for a worse one. */
.item-detail-card.item-ready { border-color: var(--green); }
.ready-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .4px;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--green-light);
  color: var(--green-text);
  border: 1px solid var(--green);
  white-space: nowrap;
}

/* ── Printed order sheet / delivery note ──────────────────────────
   The product list is a real table so the browser repeats its header
   on each page and never slices a row across a page break. Padding
   here is for the on-screen preview only; in print, @page owns the
   margins (see the rule inside the print view). */
/* The order sheet is drawn once and styled for two purposes: a paper
   preview on screen, the document itself in print. It used to be drawn
   twice, which doubled every product photo and stalled Save as PDF. */
.print-stage {
  padding: 32px;
  background: #e0ddd8;
  min-height: calc(100vh - 44px);
  display: flex;
  justify-content: center;
}
.print-paper {
  background: #fff;
  border: 1px solid #bbb;
  width: 794px;
  max-width: 100%;
  box-shadow: 2px 3px 12px rgba(0,0,0,.15);
}
.print-sheet { padding: 14mm; box-sizing: border-box; }
.print-items { width: 100%; border-collapse: collapse; margin-bottom: 4px; }
.print-items th {
  text-align: left;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #666;
  font-weight: 700;
  border-bottom: 1.5px solid #000;
  padding: 6px;
}
.print-items td {
  font-size: 11px;
  padding: 7px 6px;
  border-bottom: .5px solid #ddd;
  vertical-align: top;
  color: #000;
}
