/* ==========================================================================
   DoughNation admin — monochrome theme + accessibility fixes
   --------------------------------------------------------------------------
   Loaded LAST, after style.min.css and custom.css, so it wins on cascade
   order. style.min.css was hand-edited (its style.css source has none of the
   gold), so overriding here is safer than rewriting a minified vendor file.

   Brand tokens mirror the storefront: doughnation.me/public/assets/css/custom.css

   Deliberate exception to "monochrome": STATUS colour is kept. On an
   operations screen, paid/unpaid and delivered/cancelled are information, not
   decoration. Those hues are darkened to clear WCAG AA rather than flattened.
   ========================================================================== */

:root {
  --dn-ink:       #111111;
  --dn-ink-soft:  #5a5a5a;
  --dn-paper:     #ffffff;
  --dn-cream:     #f5f5f5;
  --dn-line:      #e2e2e2;
  --dn-sidebar-t: #c9c9c9;

  /* semantic — all >= 4.5:1 with #fff text, or on #fff ground */
  --dn-ok:        #0f7355;
  --dn-danger:    #a8322a;
  --dn-warn:      #8a5a00;
}

/* ---------- 1. flatten the gold on light surfaces ------------------------ */
a,
a:focus,
a:hover                       { color: var(--dn-ink); }
a:hover                       { text-decoration: underline; }
.text-themecolor              { color: var(--dn-ink) !important; }

.btn-info,
.btn-primary,
form .btn-success,
.page-item.active .page-link,
.pagination .active a,
.pagination li.active a {
  background-color: var(--dn-ink) !important;
  border-color:     var(--dn-ink) !important;
  color:            #ffffff !important;
}
.btn-info:hover,
.btn-primary:hover,
form .btn-success:hover {
  background-color: #ffffff !important;
  color:            var(--dn-ink) !important;
  border-color:     var(--dn-ink) !important;
}
.pagination a, .page-link     { color: var(--dn-ink-soft); }

/* breadcrumb "current page" was gold-on-white at 2.8:1 */
.breadcrumb-item.active,
.breadcrumb .active           { color: var(--dn-ink) !important; font-weight: 600; }

/* ---------- 2. dark surfaces must keep LIGHT text ------------------------
   Flattening the gold to #111 globally would have made these invisible.     */
.topbar,
.navbar-dark,
.left-sidebar,
.scroll-sidebar               { background-color: var(--dn-ink) !important; }

.navbar-dark .navbar-nav .nav-link          { color: #ffffff !important; }
.navbar-dark .navbar-nav .nav-link:hover    { color: var(--dn-cream) !important; }

.sidebar-nav ul li a,
#sidebarnav li a              { color: var(--dn-sidebar-t) !important; }
.sidebar-nav ul li a:hover,
#sidebarnav li a:hover,
.sidebar-nav ul li.active > a,
#sidebarnav li.active > a,
#sidebarnav li > a.active      { color: #ffffff !important; }
#sidebarnav li > a.active      { border-left: 3px solid #ffffff; }

/* ---------- 3. status colour, darkened to pass AA ------------------------ */
.label-success, .badge-success,
.btn-success:not(form .btn-success) {
  background-color: var(--dn-ok) !important;
  border-color:     var(--dn-ok) !important;
  color: #ffffff !important;
}
.label-danger, .badge-danger, .btn-danger {
  background-color: var(--dn-danger) !important;
  border-color:     var(--dn-danger) !important;
  color: #ffffff !important;
}
.label-warning, .badge-warning {
  background-color: var(--dn-warn) !important;
  color: #ffffff !important;
}
.text-success                 { color: var(--dn-ok) !important; }
.text-danger                  { color: var(--dn-danger) !important; }

/* badges were 10.5px at 2.30:1 — too small AND too pale to read */
.label, .label-table, .badge {
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .01em;
  padding: .32em .62em !important;
  border-radius: 3px;
}

/* ---------- 4. table legibility ----------------------------------------- */
table.table tbody td,
.dataTables_wrapper table tbody td   { font-weight: 400 !important; }
table.table thead th                 { font-weight: 600 !important; }
table.table td, table.table th       { vertical-align: middle; }
.dataTables_wrapper table            { font-variant-numeric: tabular-nums; }

/* ---------- 5. pin the row identity while scrolling sideways -------------
   THE safety fix: without this you scroll to the status dropdown and can no
   longer see which order you are changing.                                  */
#dataTableOrder th:first-child,
#dataTableOrder td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background-color: var(--dn-paper);
  box-shadow: 1px 0 0 var(--dn-line);
}
#dataTableOrder thead th:first-child {
  z-index: 3;
  background-color: var(--dn-cream);
}
#dataTableOrder.table-striped tbody tr:nth-of-type(odd) td:first-child {
  background-color: #f9f9f9;
}
#dataTableOrder tbody tr:hover td:first-child {
  background-color: #f1f1f1;
}

/* ---------- 6. make the horizontal scroll discoverable ------------------- */
.table-responsive {
  scrollbar-width: thin;
  scrollbar-color: #9a9a9a var(--dn-cream);
}
.table-responsive::-webkit-scrollbar        { height: 11px; }
.table-responsive::-webkit-scrollbar-track  { background: var(--dn-cream); border-radius: 6px; }
.table-responsive::-webkit-scrollbar-thumb  { background: #9a9a9a; border-radius: 6px; }
.table-responsive::-webkit-scrollbar-thumb:hover { background: #6f6f6f; }

.dn-scroll-hint {
  font-size: 12px;
  color: var(--dn-ink-soft);
  margin: 0 0 .5rem;
  display: none;
}
.dn-scroll-hint.is-visible { display: block; }

/* ---------- 7. destructive actions need breathing room ------------------- */
td .btn-danger                { margin-left: .5rem; }

/* ---------- 8. keyboard focus was invisible ------------------------------ */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--dn-ink);
  outline-offset: 2px;
}
.left-sidebar a:focus-visible,
.topbar a:focus-visible       { outline-color: #ffffff; }

/* ---------- 9. dashboard: one accent, not eight -------------------------- */
.dn-kpi-group                 { margin-bottom: 1.75rem; }
.dn-kpi-group > h5 {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dn-ink-soft);
  font-weight: 700;
  margin: 0 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--dn-line);
}
.dn-kpi .card {
  border: 1px solid var(--dn-line);
  border-bottom: 3px solid var(--dn-ink);
  box-shadow: none;
  height: 100%;
}
.dn-kpi .card-body            { padding: 1.1rem 1.25rem; }
.dn-kpi h6 {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dn-ink-soft) !important;
  margin-bottom: .35rem;
  font-weight: 600;
}
.dn-kpi h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dn-ink);
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.dn-kpi h3 small              { font-size: .55em; color: var(--dn-ink-soft); font-weight: 600; }
.dn-kpi .dn-sub               { font-size: 12px; color: var(--dn-ink-soft); margin: .3rem 0 0; }
.dn-kpi--lead .card           { background: var(--dn-ink); border-color: var(--dn-ink); }
.dn-kpi--lead h6              { color: rgba(255,255,255,.72) !important; }
.dn-kpi--lead h3              { color: #ffffff; }
.dn-kpi--lead h3 small,
.dn-kpi--lead .dn-sub         { color: rgba(255,255,255,.72); }

/* charts + panels share one quiet frame */
.card                         { border: 1px solid var(--dn-line); box-shadow: none; }
.card-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--dn-ink);
}

/* ---------- 10. print: invoices shouldn't waste toner ------------------- */
@media print {
  .left-sidebar, .topbar, .dn-scroll-hint, .no-print { display: none !important; }
  .page-wrapper { margin-left: 0 !important; }
}

/* ---------- 11. order detail: totals block ------------------------------ */
.checkout-total-row p            { white-space: nowrap; margin-bottom: .35rem; }
.checkout-total-row .col-md-1,
.checkout-total-row .col-md-2,
.checkout-total-row .col-md-3    { flex: 0 0 auto; max-width: none; }

/* ---------- 12. order detail: status control ---------------------------- */
.dn-status-control              { display: block; margin: 0; text-align: left; }
.dn-status-control label        { display: block; margin: 0 0 .28rem; font-size: 11px; font-weight: 700;
                                  letter-spacing: .1em; text-transform: uppercase; color: var(--dn-ink-soft); }
.dn-status-control select       { width: 100%; min-width: 0; }
/* Full width was for the old layout, where this button sat alone in a narrow
   floated column. It now shares a line with the status control, so stretching
   it pushed it straight out of the card. Scoped to leave that one alone. */
.printableArea .btn-info:not(.dn-od-print) { width: 100%; text-align: center; }

/* ---------- 13. leaks found by sweeping computed styles ----------------- */
/* .btn-warning was white on #f0ad4e - 1.95:1, the worst ratio in the admin */
.btn-warning, .btn-warning:not(:disabled):not(.disabled) {
  background-color: var(--dn-warn) !important;
  border-color:     var(--dn-warn) !important;
  color: #ffffff !important;
}
.btn-warning:hover {
  background-color: #ffffff !important;
  color: var(--dn-warn) !important;
  border-color: var(--dn-warn) !important;
}
/* the active sidebar item's icon was the last gold left standing */
#sidebarnav li.active > a i,
.sidebar-nav li.active > a i,
#sidebarnav li > a.active i     { color: #ffffff !important; }

/* ---------- 14. mobile: stacked KPI cards need vertical rhythm ----------
   Bootstrap gutters are horizontal only, so once the columns stack the cards
   sit flush and read as one block. Margin goes on the column, not the card,
   so .dn-kpi .card { height:100% } still equalises heights on desktop.       */
@media (max-width: 991px) {
  .dn-kpi [class*="col-"]       { margin-bottom: 1rem; }
  .dn-kpi-group                 { margin-bottom: 1.25rem; }
}
@media (max-width: 767px) {
  .dn-status-control            { text-align: left; margin-bottom: 1rem; }
  .printableArea .col-md-3[style*="float"] { float: none !important; width: 100%; margin-bottom: 1rem; }
  .checkout-total-row p         { margin-bottom: .2rem; }
}

/* ---------- 15. mobile drawer: scrim + tap-outside-to-dismiss -----------
   The template opens the sidebar as an overlay drawer (position:absolute,
   z-index:20) but only the hamburger closes it again, and there is no scrim,
   so it is not obvious the content behind is inert. z-index sits below the
   sidebar's 20 and above page content.                                      */
@media (max-width: 767px) {
  body.show-sidebar .page-wrapper::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, .45);
    z-index: 15;
  }
}
/* ==========================================================================
   dn-admin refinements — orders/data tables
   Loaded after dn-admin.css. Everything here serves one idea: the orders
   table is a work queue, so the only thing allowed to carry colour is where
   an order has got to. Everything else goes quiet so that reads at a glance.
   ========================================================================== */

/* ---------- money reads as money ---------------------------------------
   Amounts were left-aligned strings, so decimals never lined up and you
   could not compare two rows by eye. Right-aligned and tabular, the column
   becomes scannable. Applies to the amount columns of the orders table. */
#dataTableOrder td:nth-child(4),
#dataTableOrder td:nth-child(5),
#dataTableOrder td:nth-child(6),
#dataTableOrder th:nth-child(4),
#dataTableOrder th:nth-child(5),
#dataTableOrder th:nth-child(6) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* the unit is not data; let the number lead */
#dataTableOrder .dn-unit { color: var(--dn-muted, #6b6b6b); font-size: 11px; margin-left: 2px; }

/* ---------- density -----------------------------------------------------
   72px rows meant six orders on a laptop screen. The kitchen needs the
   queue, not the whitespace. */
/* Applied to every admin table, not just orders: 17 of them share #example23,
   and a header that reads differently from page to page is just noise. Only
   the typographic and density rules generalise — alignment and status colour
   depend on which column is which, so those stay scoped to the orders table. */
#dataTableOrder tbody td, #example23 tbody td {
  padding-top: 10px !important; padding-bottom: 10px !important;
}
#dataTableOrder thead th, #example23 thead th {
  padding-top: 10px !important; padding-bottom: 10px !important;
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #5a5a5a;
}

/* order number is the row's identity: make it read as one */
#dataTableOrder td:first-child a {
  font-variant-numeric: tabular-nums; font-weight: 600; color: var(--dn-ink, #111);
  text-decoration: none; border-bottom: 1px solid rgba(17,17,17,.22);
}
#dataTableOrder td:first-child a:hover { border-bottom-color: var(--dn-ink, #111); }

/* ---------- where the order has got to ---------------------------------
   The one place colour survives. A state-coloured edge on the control, so
   a glance down the column shows the shape of the queue without reading. */
.dn-status-select { position: relative; }
#dataTableOrder select.order-status-dropdown {
  border-left: 3px solid var(--dn-line, #d9d9d9);
  padding-left: 8px; min-width: 168px;
}
#dataTableOrder select.dn-st-1 { border-left-color: #8a5a00; }  /* Order Received */
#dataTableOrder select.dn-st-4 { border-left-color: #b45309; }  /* Preparing      */
#dataTableOrder select.dn-st-7 { border-left-color: #0f7355; }  /* Ready          */
#dataTableOrder select.dn-st-5 { border-left-color: #14532d; } /* Dispatched */
#dataTableOrder select.dn-st-6 { border-left-color: #d9d9d9; }  /* Delivered — done, stop shouting */
#dataTableOrder select.dn-st-0 { border-left-color: #a8322a; }  /* Cancelled      */
#dataTableOrder select.order-status-dropdown[disabled] { background: transparent; color: #6b6b6b; }

/* ---------- channel, without the paintbox -------------------------------
   The source pill was a saturated green for Android and a brown for the
   app, which put the loudest colour on the page next to a customer's name
   and fought the monochrome palette everywhere else. */
.dn-src {
  display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 3px;
  border: 1px solid rgba(17,17,17,.18); color: #4a4a4a; background: transparent;
  margin-left: 6px; vertical-align: middle; white-space: nowrap;
}
.dn-src--ios, .dn-src--android, .dn-src--app {
  border-color: rgba(17,17,17,.75); color: var(--dn-ink, #111);
}

/* ---------- actions: the safe one first ---------------------------------
   Detail and Delete were the same size and Delete was the brightest thing
   in the row. Reversed: Detail is the button, Delete recedes until wanted. */
#dataTableOrder td:last-child, #example23 td:last-child { white-space: nowrap; }
#dataTableOrder .btn, #example23 .btn { padding: .28rem .7rem; font-size: 12.5px; }
#dataTableOrder .btn-danger, #example23 .btn-danger {
  background: transparent !important; border-color: rgba(168,50,42,.45) !important;
  color: var(--dn-danger, #a8322a) !important;
}
#dataTableOrder .btn-danger:hover,  #example23 .btn-danger:hover,
#dataTableOrder .btn-danger:focus,  #example23 .btn-danger:focus {
  background: var(--dn-danger, #a8322a) !important; color: #fff !important;
  border-color: var(--dn-danger, #a8322a) !important;
}

/* ---------- zero is not news -------------------------------------------
   Most orders carry no discount, so a column of "0 KD" trains the eye to
   skip it — and then a real discount gets skipped too. Zeros recede to a
   dash so only the rows that actually had one draw attention. */
#dataTableOrder .dn-zero { color: #b0b0b0; }

/* ---------- product list --------------------------------------------------
   Rows were 121px because each held a 100px product photo and a 100px QR
   image. The QR column is gone (it duplicated the row's own download button
   while calling a third-party service per row); the photo becomes a thumbnail. */
.dn-thumb {
  width: 44px; height: 44px; object-fit: cover; border-radius: 4px;
  border: 1px solid rgba(17,17,17,.10); background: #f4f4f2; display: block;
}

/* Numbers line up wherever they appear, not just on the orders table. */
td.dn-num, th.dn-num {
  text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* ---------- chips: the common case should not shout ----------------------
   199 of 200 products are "Featured" and 163 of 200 are "Active". Rendering
   those as filled success badges put 300+ saturated pills on screen, all
   saying "normal", which is exactly the state nobody needs to find. The
   ordinary case is an outline; only the exception carries colour. */
.dn-chip {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .03em;
  padding: 2px 8px; border-radius: 3px; white-space: nowrap;
  border: 1px solid rgba(17,17,17,.20); color: #4a4a4a; background: transparent;
}
.dn-chip--alert {
  border-color: var(--dn-warn, #8a5a00); color: var(--dn-warn, #8a5a00);
  background: rgba(138,90,0,.06);
}

/* The status toggle rendered solid green for "Make Inactive" and solid amber
   for "Make Active" — saturated colour on the two loudest hues, for a control
   that just flips a switch. Worse, green read as "good" on the button that
   turns a product off. The Status chip already says which state the row is in,
   so the toggle is neutral; colour stays reserved for the destructive action. */
#example23 .btn-success, #example23 .btn-warning {
  background: transparent !important;
  border-color: rgba(17,17,17,.22) !important;
  color: var(--dn-ink, #111) !important;
}
#example23 .btn-success:hover, #example23 .btn-warning:hover,
#example23 .btn-success:focus, #example23 .btn-warning:focus {
  background: var(--dn-ink, #111) !important; color: #fff !important;
  border-color: var(--dn-ink, #111) !important;
}

/* ---------- order detail -------------------------------------------------
   The page was a single flat column: two 24px headings larger than anything
   they labelled, order metadata as bold-prefixed prose, and customer and
   address stacked down the left edge of a 1400px page. Rebuilt as a header
   band, a row of labelled facts, and two columns. */
.dn-od-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding-bottom: 14px;
  border-bottom: 1px solid var(--dn-line, #e6e6e6); margin-bottom: 18px;
}
.dn-od-label {
  display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: #6b6b6b; margin-bottom: 2px;
}
.dn-od-num {
  font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--dn-ink, #111);
  font-variant-numeric: tabular-nums;
}
.dn-od-actions { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.dn-od-actions .dn-status-control { margin: 0; min-width: 200px; }
.dn-od-print { white-space: nowrap; }

/* Facts read as label-over-value pairs in a row, so scanning is horizontal
   instead of a paragraph of "Label: value" lines. */
.dn-facts { display: flex; flex-wrap: wrap; gap: 10px 40px; margin: 0 0 22px; }
.dn-facts > div { min-width: 110px; }
.dn-facts dt, .dn-stack dt {
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: #6b6b6b; font-weight: 600; margin: 0;
}
.dn-facts dd, .dn-stack dd { margin: 2px 0 0; font-size: 14px; color: var(--dn-ink, #111); }

/* minmax(0,1fr), not 1fr: a grid track defaults to min-width:auto, so one long
   unbreakable value — a customer's email — pushes the column wider than the
   card and the text is clipped off the side of a phone screen. */
.dn-od-cols { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; margin-bottom: 8px; }
@media (max-width: 767px) { .dn-od-cols { grid-template-columns: minmax(0,1fr); gap: 22px; } }

/* Section labels sit *under* the order number in the hierarchy — they were
   24px, larger than the number they belonged to. */
.dn-od-h {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  color: #6b6b6b; margin: 0 0 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--dn-line, #ececec);
}
.dn-stack > div { display: grid; grid-template-columns: 108px minmax(0,1fr); gap: 10px; padding: 3px 0; }
.dn-stack dt { padding-top: 2px; }
/* Long values (emails) break rather than run off the edge. */
.dn-stack dd, .dn-facts dd { overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .dn-stack > div { grid-template-columns: 92px minmax(0,1fr); gap: 8px; }
}
.dn-od-maps { display: inline-block; margin-top: 10px; font-size: 13px; }
.dn-od-note { margin-top: 22px; }
.dn-od-note p { font-size: 14px; margin: 0; }

.dn-od-items tbody td { padding-top: 8px !important; padding-bottom: 8px !important; }
.dn-od-items thead th {
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #5a5a5a;
}

/* ---------- order totals -------------------------------------------------
   A narrow ledger pinned to the right of the items table, so the figures sit
   directly under the column they summarise. Only one number is emphasised:
   the amount the customer actually paid. */
.dn-totals-wrap {
  /* Column, not row: the ledger and the donation block stack, both pinned to
     the right edge so they line up with the items table's Total column. */
  display: flex; flex-direction: column; align-items: flex-end; margin-top: 18px;
}
.dn-totals { width: 320px; border-collapse: collapse; }
.dn-totals th, .dn-totals td { padding: 7px 0; font-size: 14px; font-weight: 400; }
.dn-totals th { text-align: left;  color: #5a5a5a; }
.dn-totals td { text-align: right; font-variant-numeric: tabular-nums; color: var(--dn-ink, #111); }
.dn-totals tr + tr th, .dn-totals tr + tr td { border-top: 1px solid var(--dn-line, #ececec); }
.dn-totals__charged th, .dn-totals__charged td {
  border-top: 1.5px solid var(--dn-ink, #111) !important;
  font-weight: 700; font-size: 16px; color: var(--dn-ink, #111); padding-top: 10px;
}

/* The donation is what the business is named for. On this page it was the
   last line of a broken grid, in the same weight as the discount. Given its
   own block: the figure is the point, the percentage is the footnote. */
.dn-donation {
  width: 320px; margin-top: 14px; padding: 12px 14px;
  border: 1px solid var(--dn-ink, #111); border-radius: 3px;
}
.dn-donation__label {
  display: block;
  font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  font-weight: 700; color: var(--dn-ink, #111);
}
.dn-donation__value {
  display: block;
  font-size: 21px; font-weight: 700; text-align: right;
  font-variant-numeric: tabular-nums; color: var(--dn-ink, #111);
}
.dn-donation__unit { font-size: 12px; font-weight: 600; }
.dn-donation__note { display: block; font-size: 11.5px; color: #6b6b6b; margin-top: 2px; }

@media (max-width: 767px) {
  .dn-totals-wrap { display: block; }
  .dn-totals, .dn-donation { width: 100%; }
}

/* ---------- order detail: balance the header and the two columns ---------
   The Print button carries Bootstrap's d-lg-block, so it rendered full width
   underneath the status control and pushed the header to 120px with a void
   beside it. Side by side, the band is half the height. */
/* The status control and Print sit on one line. They were wrapping because the
   actions area only claimed its content width (337px) while the two controls
   needed ~362px, which put the button on its own row and left a void beside the
   order number. */
.dn-od-print {
  display: inline-flex !important; align-items: center; justify-content: center;
  width: auto; flex: 0 0 auto; white-space: nowrap; margin-left: 0 !important;
  /* Flex drops whitespace-only nodes, so the space between the icon and the
     label in the markup vanished and they ran together. */
  gap: 7px;
  /* Matched to the select it stands beside: same height, same radius, same
     type size. They were 34px and 38px, which read as two unrelated things
     that happened to land near each other. */
  height: 38px; padding: 0 14px; border-radius: .25rem;
  font-size: 14px; font-weight: 600; line-height: 1;
  /* Outlined, not filled. Changing the status is what staff come here to do;
     printing is occasional. A solid black button gave the lesser action the
     louder voice. */
  background: transparent !important;
  color: var(--dn-ink, #111) !important;
  border: 1px solid rgba(17,17,17,.28) !important;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.dn-od-print:hover, .dn-od-print:focus {
  background: var(--dn-ink, #111) !important; color: #fff !important;
  border-color: var(--dn-ink, #111) !important;
}
.dn-od-print i { font-size: 13px; line-height: 1; }
.dn-od-actions { align-items: flex-end; flex-wrap: nowrap; flex: 0 1 auto; }
.dn-od-actions .dn-status-control { flex: 0 1 auto; min-width: 190px; }

/* The address has eight short fields against the customer's three, so a single
   column left a hole down the left of the card. Two-up, it is four rows and the
   two sides come out close to level. */
.dn-stack--pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; }
.dn-stack--pairs > div { grid-template-columns: 92px minmax(0, 1fr); }
.dn-stack--pairs > .dn-wide { grid-column: 1 / -1; grid-template-columns: 92px minmax(0, 1fr); }

/* Address gets the wider half, since it carries more of the content. */
.dn-od-cols { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); }

@media (max-width: 991px) {
  .dn-stack--pairs { grid-template-columns: minmax(0, 1fr); }
  .dn-stack--pairs > div, .dn-stack--pairs > .dn-wide { grid-template-columns: 92px minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .dn-od-cols { grid-template-columns: minmax(0, 1fr); }
  /* nowrap keeps the two controls on one line on a desktop; on a phone that
     would squash them, so let them stack again. */
  .dn-od-actions { flex-wrap: wrap; width: 100%; }
  .dn-od-actions .dn-status-control { width: 100%; }
  .dn-od-print { width: 100% !important; justify-content: center; }
}
