/* ============================================================================
   Home (E): "Today's work" on the left, the month's figures, what's coming up
   and plan usage on the right, then "This month" - the chart and breakdown.
   ============================================================================ */

.work { padding: 0; overflow: hidden; }

/* ============================================================================
   Orders drawer (E): a click on a row opens the order beside the list.
   Markup: app/views/orders/panel.html.erb; behaviour: bootOrderDrawer.
   ============================================================================ */
.odrawer-scrim {
  position: fixed;
  inset: var(--topbar-height) 0 0 0;
  z-index: 64;
  background: rgba(22, 24, 26, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.odrawer-scrim.is-open { opacity: 1; visibility: visible; }

.odrawer {
  position: fixed;
  top: var(--topbar-height);
  right: 0;
  bottom: 0;
  z-index: 65;
  width: min(var(--drawer-width, 640px), 92vw);
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-pop);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.24s var(--ease), visibility 0.24s;
  outline: none;
}
.odrawer.is-open { transform: translateX(0); visibility: visible; }
.odrawer-loading { padding: 28px 24px; color: var(--muted); font-size: 14px; }

.odrawer-body { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.odrawer-title { margin: 0; font-family: var(--font-mono); font-size: 18px; font-weight: 600; }
.odrawer-send { margin: 0; }
.odrawer-status { margin: 0; font-size: 13px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--panel-subtle); color: var(--muted); }

/* The invoice itself, the same markup /orders/invoice renders, shrunk to fit. */
.odrawer-doc { flex: 1; min-height: 0; overflow: auto; padding: 20px; background: var(--hover); }
.odrawer-doc .template-preview { position: relative; top: auto; zoom: 0.72; box-shadow: none; border: 1px solid var(--line); }

html.drawer-open { overflow: hidden; }

