/* ═══════════════════════════════════════════════════════════════════════
   Kalnozolu koks — dizaina sistēma
   Pārstrādāts pēc "Kalnozolu Koks Dashboard" dizaina nodošanas (2026-08).
   Krāsas, tipogrāfija, atstarpes un rādiusi atbilst handoff specifikācijai.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* Virsmas */
  --bg: #f5ead8;
  --surface: #f9f4ed;
  --surface-alt: #ebddc5;
  --surface-tint: #eee7db;

  /* Līnijas */
  --line: #dcd3c4;
  --line-soft: #eee7db;
  --border: #c0b6a5;

  /* Teksts */
  --ink: #201e1d;
  --ink-2: #474238;
  --ink-3: #645c50;
  --muted: #82796a;

  /* Tumšā (sānjosla, toast) */
  --dark: #2e2b25;
  --dark-2: #474238;
  --dark-text: #eee7db;
  --dark-bright: #f9f4ed;
  --dark-muted: #a19786;
  --dark-label: #c0b6a5;

  /* Akcents */
  --accent: #c67139;
  --accent-hover: #b2622d;
  --accent-deep: #8c491a;
  --accent-soft: #ffe1d0;
  --accent-softer: #ffc6a5;
  --accent-mid: #d67f48;
  --alert-text: #643312;

  /* Zaļie */
  --green: #8fa073;
  --green-light: #aebf92;
  --green-pale: #e1eecc;
  --green-palest: #f0fae1;
  --green-text: #56633f;
  --avatar: #7a8a5e;

  /* Saderībai ar veco kodu */
  --card-bg: var(--surface);
  --text: var(--ink);
  --text-muted: var(--muted);
  --accent-dark: var(--accent-hover);
  --success: var(--green-text);
  --warning: var(--accent-hover);
  --danger: var(--accent-deep);
  --sidebar-bg: var(--dark);
  --sidebar-bg-light: var(--dark-2);
  --sidebar-text: var(--dark-label);
  --sidebar-text-active: var(--dark-bright);

  --font-display: var(--font-body);
  --font-body: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;

  --sidebar-width: 244px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent-hover); }

::selection { background: var(--accent-softer); }

*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes slidein { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }

/* ── Aplikācijas karkass ─────────────────────────────────────────────── */

.app-shell { display: flex; min-height: 100vh; background: var(--bg); }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.app-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 30px 18px;
  border-bottom: 1px solid rgba(32, 30, 29, 0.1);
}
.app-header-titles { flex: 1; min-width: 0; }
.app-crumb {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.app-header h1 { font-size: 27px; margin: 3px 0 0; }

.app-search {
  width: 290px;
  flex: none;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  color: var(--ink);
  font-family: inherit;
}
.app-search::placeholder { color: var(--muted); }

main {
  flex: 1;
  padding: 26px 30px 40px;
  animation: rise 0.28s ease both;
  min-width: 0;
}

/* ── Sānjosla ────────────────────────────────────────────────────────── */

.sidebar {
  width: var(--sidebar-width);
  flex: none;
  background: var(--dark);
  color: var(--dark-text);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; flex: none; }
.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 19px;
}
.brand-name { font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 1.1; color: var(--dark-bright); }
.brand-domain { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dark-muted); }

.sidebar-nav { display: flex; flex-direction: column; gap: 3px; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-label);
  text-decoration: none;
}
.sidebar-nav a svg { flex: none; width: 17px; height: 17px; opacity: 0.9; }
.sidebar-nav a span.nav-label { flex: 1; min-width: 0; }
.sidebar-nav a .nav-count {
  font-size: 11px;
  font-weight: 700;
  background: var(--dark-2);
  color: var(--dark-label);
  padding: 2px 8px;
  border-radius: 999px;
}
.sidebar-nav a:hover { background: var(--dark-2); color: var(--dark-bright); }
.sidebar-nav a.active { background: var(--dark-2); color: var(--dark-bright); }
.sidebar-nav a.active svg { opacity: 1; }
.sidebar-nav a.active .nav-count { background: var(--accent); color: var(--dark-bright); }

.nav-group-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-muted);
  padding: 14px 14px 6px;
}

.sidebar-week { margin-top: auto; background: var(--dark-2); border-radius: 20px; padding: 16px; flex: none; }
.sidebar-week .week-kicker {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-bottom: 6px;
}
.sidebar-week .week-value { font-size: 26px; font-weight: 700; color: var(--dark-bright); line-height: 1; }
.sidebar-week .week-sub { font-size: 12px; color: var(--dark-label); margin-top: 4px; }

.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 0 6px; flex: none; }
.user-avatar {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 999px;
  background: var(--avatar);
  color: var(--dark-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.user-meta { font-size: 12px; line-height: 1.3; flex: 1; min-width: 0; }
.user-name { color: var(--dark-bright); font-weight: 600; }
.user-role { color: var(--dark-muted); }
.logout-link {
  color: var(--dark-muted);
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: 999px;
}
.logout-link:hover { background: var(--dark-2); color: var(--dark-bright); }

/* ── Paneļi / kartītes ───────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: none;
  border-radius: 24px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: none;
}
.card.card-alt { background: var(--surface-alt); }

.card h2, .card h3 { margin-top: 0; }
.card h2 { font-size: 19px; margin-bottom: 14px; }
.card h3 { font-size: 15px; font-family: var(--font-body); font-weight: 700; margin-bottom: 10px; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.panel-head h2 { margin: 0; }
.panel-link { font-size: 13px; font-weight: 700; color: var(--accent-deep); }

.section-title {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin: 0 0 12px;
  font-weight: 700;
}

.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.muted { color: var(--muted); font-size: 13px; }
.empty-state { color: var(--muted); font-size: 14px; padding: 40px 6px; text-align: center; }

/* ── Tabulas ─────────────────────────────────────────────────────────── */

.table-scroll { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 13px 8px; border-bottom: 1px solid var(--line-soft); }
th {
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
tbody tr:hover { background: var(--surface-tint); }
tbody tr:last-child td { border-bottom: none; }

/* ── Statusa pilulas ─────────────────────────────────────────────────── */

.badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.badge-success { background: var(--green-palest); color: var(--ink-3); }
.badge-progress { background: var(--green-pale); color: var(--green-text); }
.badge-warning { background: var(--surface-tint); color: var(--ink-2); }
.badge-danger { background: var(--accent-soft); color: var(--accent-deep); }
.badge-neutral { background: var(--surface-tint); color: var(--ink-2); }

/* ── Pogas ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.3;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--dark-bright); box-shadow: 0 3px 10px rgba(46, 43, 37, 0.16); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-neutral { background: var(--surface); border-color: var(--border); color: var(--ink-2); }
.btn-neutral:hover { background: var(--surface-tint); border-color: var(--muted); }
.btn-success { background: transparent; border-color: var(--green); color: var(--green-text); }
.btn-success:hover { background: var(--green-pale); }
.btn-danger { background: transparent; border-color: var(--accent-hover); color: var(--accent-deep); }
.btn-danger:hover { background: var(--accent-softer); }
.btn-warning { background: var(--accent-mid); color: var(--dark-bright); }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Formas ──────────────────────────────────────────────────────────── */

input, select, textarea {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
}
textarea { border-radius: 16px; }
input[type="checkbox"] { width: auto; padding: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--muted); }

label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink-3);
}
.field { margin-bottom: 14px; }

/* ── Filtru čipi ─────────────────────────────────────────────────────── */

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
}
.chip:hover { border-color: var(--muted); }
.chip.active { background: var(--dark); border-color: var(--dark); color: var(--dark-bright); }

/* ── KPI kartītes ────────────────────────────────────────────────────── */

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi-card { background: var(--surface-alt); border-radius: 24px; padding: 20px 22px; }
.kpi-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.kpi-figure { display: flex; align-items: baseline; gap: 8px; }
.kpi-value { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.kpi-delta { font-size: 12px; font-weight: 700; }
.kpi-delta.pos { color: var(--green-text); }
.kpi-delta.warn { color: var(--accent-hover); }
.kpi-delta.neutral { color: var(--ink-3); }
.kpi-note { font-size: 12px; color: var(--ink-3); margin-top: 6px; }

/* ── Brīdinājuma josla ───────────────────────────────────────────────── */

.alert-bar {
  background: var(--accent-soft);
  border: none;
  border-radius: 24px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--alert-text);
  font-size: 13px;
  margin-bottom: 20px;
}
.alert-mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff2eb;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.alert-body { flex: 1; min-width: 220px; }
.alert-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.btn-ghost {
  border: 1px solid var(--accent-hover);
  background: transparent;
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.btn-ghost:hover { background: var(--accent-softer); }

/* ── Līmeņa joslas ───────────────────────────────────────────────────── */

.level-bar { height: 8px; border-radius: 999px; background: var(--surface-tint); overflow: hidden; }
.level-fill { height: 100%; border-radius: 999px; }
.level-caption { font-size: 11px; color: var(--muted); margin-top: 5px; }
.level-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.level-qty { font-weight: 700; }

.stock-list { display: flex; flex-direction: column; gap: 16px; }

/* ── "Šodien cehā" rindas ────────────────────────────────────────────── */

.today-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  background: var(--surface-alt);
  border-radius: 18px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.today-name { font-size: 14px; font-weight: 700; }
.today-meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* ── Pasūtījuma detaļu panelis ───────────────────────────────────────── */

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.detail-layout.collapsed { grid-template-columns: minmax(0, 1fr) 0px; }
.detail-layout.collapsed .detail-aside { display: none; }

.detail-aside {
  background: var(--surface-alt);
  border-radius: 24px;
  padding: 22px;
  position: sticky;
  top: 26px;
  animation: slidein 0.24s ease both;
}
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.detail-kicker { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.detail-title { font-family: var(--font-display); font-size: 21px; margin: 2px 0 0; line-height: 1.2; font-weight: 700; }
.detail-close {
  width: 30px;
  height: 30px;
  flex: none;
  border: none;
  border-radius: 999px;
  background: var(--line);
  color: var(--ink-2);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}
.detail-close:hover { background: var(--border); }
.detail-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.detail-tile { background: var(--surface); border-radius: 16px; padding: 12px 14px; }
.detail-tile .tile-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.detail-tile .tile-value { font-size: 15px; font-weight: 700; margin-top: 3px; }
.detail-section {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin: 20px 0 8px;
}
.detail-item {
  background: var(--surface);
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.detail-item .di-name { font-weight: 600; }
.detail-item .di-qty { font-size: 12px; color: var(--ink-3); }
.detail-item .di-sum { font-weight: 700; white-space: nowrap; }
.detail-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.detail-actions .btn { flex: 1; text-align: center; }

/* ── Ražošanas posmi (kanban) ────────────────────────────────────────── */

.stage-board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; align-items: start; }
.stage-col { background: var(--surface); border: none; border-radius: 24px; padding: 16px; min-height: 120px; }
.stage-col h4 {
  font-family: var(--font-display);
  margin: 0 0 12px;
  font-size: 15px;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.stage-col h4::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 999px;
  background: var(--stage-dot, var(--border));
}
.stage-col .stage-count { margin-left: auto; font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--ink-3); }

.batch-card {
  background: var(--surface-alt);
  border: none;
  border-radius: 20px;
  padding: 14px 16px;
  margin-bottom: 10px;
  font-size: 13px;
  cursor: pointer;
}
.batch-card:hover { background: var(--line); }
.batch-card .bc-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.batch-card .bc-name { font-size: 15px; font-weight: 700; margin-top: 7px; }
.batch-card .bc-meta { font-size: 12px; color: var(--ink-3); margin-top: 3px; }

/* ── Ražošanas plāns ─────────────────────────────────────────────────── */

.plan-draft-list { display: flex; flex-wrap: wrap; gap: 10px; }
.plan-draft-card {
  background: var(--surface-alt);
  border: 1px dashed var(--accent);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}
.plan-draft-card:hover { background: var(--accent-soft); border-style: solid; }

.plan-pipeline { display: flex; align-items: stretch; overflow-x: auto; padding: 4px 0 10px; }
.plan-stage { flex: 1 1 0; min-width: 210px; }
.plan-stage-box { border: none; border-radius: 24px; padding: 16px; background: var(--surface); min-height: 170px; height: 100%; }
.plan-stage-box h4 {
  font-family: var(--font-display);
  margin: 0 0 12px;
  font-size: 15px;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-stage-box h4::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 999px;
  background: var(--stage-dot, var(--border));
}
.plan-connector {
  flex: 0 0 26px;
  align-self: center;
  height: 0;
  border-top: 2px dashed var(--border);
  position: relative;
  margin: 0 3px;
}
.plan-connector::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -5px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--border);
}
.plan-batch-card {
  background: var(--surface-alt);
  border: none;
  border-radius: 20px;
  padding: 14px 16px;
  margin-bottom: 10px;
  font-size: 13px;
  cursor: pointer;
}
.plan-batch-card:hover { background: var(--line); }

.plan-card-split { display: flex; gap: 10px; }
.plan-card-left { flex: 1; min-width: 0; border-right: 1px dashed var(--border); padding-right: 10px; }
.plan-card-left .pc-number { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.plan-card-left .pc-name { font-size: 14px; font-weight: 700; margin-top: 4px; }
.plan-card-right { flex: 1; min-width: 0; font-size: 12px; color: var(--ink-3); }

/* ── Iepakošanas rinda ─────────────────────────────────────────────── */
.packing-head, .packing-order-head, .packing-actions { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.packing-order { border-left: 5px solid var(--border); }
.packing-order:has(.badge-success) { border-left-color: var(--green); }
.packing-order:has(.badge-danger) { border-left-color: var(--accent); }
.packing-order-head h2 { margin:3px 0 0; }
.packing-kicker { color:var(--ink-3); font-size:12px; text-transform:uppercase; letter-spacing:.06em; }
.packing-products { display:flex; flex-wrap:wrap; gap:10px; margin:16px 0; }
.packing-products > div { background:var(--surface-alt); border-radius:14px; padding:10px 14px; }
.packing-products span { display:block; color:var(--ink-3); font-size:12px; margin-top:3px; }
.packing-check { display:inline-block; width:20px; height:20px; border:2px solid var(--border); border-radius:4px; }
.packing-missing { background:var(--accent-soft); }
.packing-actions { justify-content:flex-end; margin-top:16px; }

/* ── Tabi ────────────────────────────────────────────────────────────── */

.tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tab-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
}
.tab-btn:hover { border-color: var(--muted); }
.tab-btn.active { background: var(--dark); border-color: var(--dark); color: var(--dark-bright); }

/* ── Toast ───────────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: var(--dark-bright);
  font-size: 13px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(46, 43, 37, 0.28);
  z-index: 50;
  animation: rise 0.2s ease both;
}

/* ── Ātrās saites ────────────────────────────────────────────────────── */

.quick-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.quick-link-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: var(--surface-alt);
  border: none;
  border-radius: 20px;
  padding: 18px 12px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
.quick-link-tile:hover { transform: translateY(-2px); background: var(--line); color: var(--ink); }
.quick-link-tile .quick-link-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--accent);
}

/* ── Pieteikšanās ────────────────────────────────────────────────────── */

.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--dark); }
.login-card { width: 360px; margin-bottom: 0; }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }

.error { color: var(--accent-deep); font-size: 13px; margin-top: 10px; }

/* ── Produktu attēli ─────────────────────────────────────────────────── */

.sku-row { display: flex; align-items: center; gap: 8px; min-height: 84px; }
.sku-row:not(:last-child) { margin-bottom: 6px; }
.sku-stack { display: flex; flex-direction: column; gap: 6px; }
.order-thumb { width: 84px; height: 84px; border-radius: 16px; object-fit: cover; border: 1px solid var(--line); flex-shrink: 0; }

.product-image-preview { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; border: 1px solid var(--line); background: var(--surface-tint); }
.product-image-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  background: var(--surface-tint);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  text-align: center;
  flex-shrink: 0;
}

/* ── Dienas plāns / drukāšana ────────────────────────────────────────── */

.sheet-header { text-align: center; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 16px; }
.sheet-brand { font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-size: 11px; }
.sheet-date { color: var(--muted); }

.task-list { padding-left: 22px; line-height: 2.1; font-size: 15px; }
.task-list li { margin-bottom: 4px; }

.task-add-row { display: flex; gap: 8px; margin: 14px 0; }
.task-add-row input { flex: 1; }

.handwrite-lines { margin-top: 10px; }
.hw-line { border-bottom: 1px solid var(--line); height: 32px; }

/* ── Pašizmaksas kalkulators ─────────────────────────────────────────── */

.auto-overhead-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-alt);
}
.auto-overhead-box a { color: var(--accent-deep); font-size: 13px; }
.cost-value { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cost-total td { font-weight: 700; }
.cost-highlight td { font-weight: 700; color: var(--accent-deep); font-size: 16px; }

.low-stock-pill-list { display: flex; flex-direction: column; gap: 8px; }
.low-stock-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface-alt);
  font-size: 13px;
  font-weight: 600;
}

/* ── Atsaucīga tabula → kartītes mobilajā skatā ──────────────────────── */

@media (max-width: 720px) {
  table.responsive-table thead { display: none; }
  table.responsive-table, table.responsive-table tbody, table.responsive-table tr, table.responsive-table td {
    display: block;
    width: 100%;
  }
  table.responsive-table tr {
    margin-bottom: 14px;
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    background: var(--surface-alt);
  }
  table.responsive-table tr:hover { background: var(--surface-alt); }
  table.responsive-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    text-align: right;
  }
  table.responsive-table td:last-child { border-bottom: none; }
  table.responsive-table td:empty { display: none; }
  table.responsive-table td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    text-align: left;
    flex-shrink: 0;
  }
  table.responsive-table .sku-row { justify-content: flex-end; }
  table.responsive-table .sku-stack { align-items: flex-end; width: 100%; }
}

/* ── Atsaucība ───────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-2 { grid-template-columns: 1fr; }
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-aside { position: static; }
  .stage-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --sidebar-width: 68px; }
  .sidebar { padding: 18px 10px; gap: 16px; }
  .brand-name, .brand-domain, .sidebar-nav a .nav-label, .sidebar-week, .user-meta, .nav-group-label { display: none; }
  .sidebar-brand { justify-content: center; padding: 0; }
  .sidebar-nav a { justify-content: center; padding: 11px 0; position: relative; }
  .sidebar-nav a .nav-count { position: absolute; top: 2px; right: 4px; padding: 1px 5px; font-size: 10px; }
  .sidebar-user { justify-content: center; margin-top: auto; flex-direction: column; gap: 6px; }
  .app-header { flex-wrap: wrap; padding: 18px 18px 14px; gap: 12px; }
  .app-search { width: 100%; order: 3; }
  main { padding: 20px 18px 32px; }
  .card { padding: 18px; border-radius: 20px; }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-value { font-size: 26px; }
  .stage-board { grid-template-columns: 1fr; }
  .app-header h1 { font-size: 22px; }
}

/* ── Druka ───────────────────────────────────────────────────────────── */

@media print {
  @page { size: A4; margin: 1.5cm; }
  .no-print, .sidebar, .app-header, .toast { display: none !important; }
  body, html { background: #fff; }
  .app-shell { display: block; }
  main { margin: 0; padding: 0; animation: none; }
  .card { box-shadow: none; border: none; padding: 0; margin-bottom: 0; background: #fff; }
  .hw-line { border-bottom: 1px solid #999; }
}

/* ── Pārskata izkārtojums ────────────────────────────────────────────── */

.kpi-grid { margin-bottom: 20px; }

.overview-split {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin-bottom: 20px;
}
.overview-split .card { margin-bottom: 0; }

@media (max-width: 1100px) {
  .overview-split { grid-template-columns: 1fr; }
}

/* ── Toast darbības poga ─────────────────────────────────────────────── */

.toast { display: flex; align-items: center; gap: 14px; }
.toast-action {
  border: 1px solid var(--dark-muted);
  background: transparent;
  color: var(--accent-softer);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.toast-action:hover { background: var(--dark-2); color: var(--dark-bright); }

/* ── Plānotājs (noslodzes matrica) ───────────────────────────────────── */

.planner-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.planner-head h2 { font-size: 19px; }
.week-nav { display: flex; gap: 8px; flex-wrap: wrap; }

.planner-scroll { overflow-x: auto; background: var(--surface); border-radius: 24px; }
.planner-matrix { display: grid; min-width: 900px; }

.pm-corner {
  padding: 14px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.pm-dayhead { padding: 14px 16px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line-soft); }
.pm-dayname { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.pm-daydate { font-size: 11px; color: var(--muted); margin-top: 2px; }
.pm-dayhead.today .pm-dayname { color: var(--accent-deep); }

.pm-rowhead { position: relative; padding: 16px; border-bottom: 1px solid var(--line-soft); }
.pm-stagename { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding-right: 22px; }
.pm-capacity { font-size: 11px; color: var(--muted); margin-top: 3px; }

.pm-cell {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
  min-height: 96px;
}
.pm-cell.today { background: rgba(198, 113, 57, 0.05); }
.pm-cell.overloaded { background: var(--accent-soft); }
.pm-cell.drop-target { background: var(--accent-soft); outline: 2px dashed var(--accent); outline-offset: -4px; }

.pm-cell-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 11px; color: var(--muted); }
.pm-load { font-weight: 700; }
.pm-pct { margin-left: auto; font-weight: 700; }
.pm-cell.overloaded .pm-load,
.pm-cell.overloaded .pm-pct { color: var(--accent-deep); }

.pm-add, .pm-stage-edit {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 999px;
}
.pm-add { font-size: 15px; font-weight: 700; }
.pm-add:hover, .pm-stage-edit:hover { background: var(--surface-alt); color: var(--accent-deep); }
.pm-stage-edit { position: absolute; top: 14px; right: 12px; font-size: 12px; }

.pt-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--ink-2);
  border-radius: 12px;
  padding: 9px 10px;
  margin-bottom: 8px;
  cursor: grab;
}
.pt-card:active { cursor: grabbing; }
.pt-card.dragging { opacity: 0.4; }
.pt-card:last-child { margin-bottom: 0; }
.pt-sku { font-size: 12px; font-weight: 700; }
.pt-qty { font-size: 12px; font-weight: 700; }
.pt-ref { font-size: 10px; color: var(--muted); letter-spacing: 0.04em; margin-top: 2px; }

.pt-card.active { background: var(--dark); border-color: var(--dark); color: var(--dark-bright); }
.pt-card.active .pt-ref { color: var(--dark-label); }
.pt-card.related { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }


.planner-hint { margin-top: 14px; }

/* Modālais logs (uzdevuma / posma forma) */
.picker-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(46, 43, 37, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 20px;
  animation: rise 0.18s ease both;
}
.picker-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 24px;
  width: 360px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.picker-card .btn { width: 100%; text-align: center; margin-bottom: 8px; }
.picker-card .btn:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .planner-head { align-items: flex-start; }
}

/* ── Plānotāja drukas skats (A4 ainavas orientācijā) ─────────────────
   @page ar orientāciju ir planner.html iekšā, jo to nevar piesaistīt
   selektoram. Šeit ir viss pārējais. Drukā rēķināmies, ka lapa var būt
   melnbalta — tāpēc pārslodze tiek rādīta ne tikai ar fonu, bet arī ar
   biezāku rāmi un treknu tekstu. */

.print-only { display: none; }

@media print {
  body.page-planner .print-only { display: block; }

  /* Lapas malas: @page margin ir 0 (skat. planner.html), tāpēc atkāpi no
     papīra malas dod šis padding. Tipiskā printera nedrukājamā zona ir
     ~5 mm, tā ka 18 mm ir ar rezervi. */
  body.page-planner main { padding: 18mm; animation: none; }

  .planner-print-head { margin-bottom: 6mm; }
  .pph-brand {
    font-size: 9pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-bottom: 1.5pt solid #000;
    padding-bottom: 2mm;
    margin-bottom: 2.5mm;
  }
  .pph-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10mm; }
  .pph-week { font-size: 14pt; font-weight: 700; }
  .pph-meta { font-size: 9pt; color: #555; }

  /* Matrica drukā aizņem visu lapu — gan platumā, gan augstumā. Kolonnu
     platumus JS uzliek inline ekrānam, tāpēc te vajag !important; rindu
     skaits nāk no --planner-rows, lai posmu rindas izstiepjas vienādi un
     lapas apakša nepaliek tukša. */
  body.page-planner .planner-scroll { overflow: visible; background: transparent; border-radius: 0; }
  body.page-planner .planner-matrix {
    min-width: 0;
    width: 100%;
    border: 1pt solid #000;
    grid-template-columns: 32mm repeat(var(--planner-cols, 5), 1fr) !important;
  }

  body.page-planner .pm-corner,
  body.page-planner .pm-dayhead,
  body.page-planner .pm-rowhead,
  body.page-planner .pm-cell {
    border-color: #000;
    padding: 2.5mm 3mm;
    break-inside: avoid;
  }
  body.page-planner .pm-corner,
  body.page-planner .pm-dayhead { border-bottom: 1pt solid #000; }
  body.page-planner .pm-dayhead,
  body.page-planner .pm-cell { border-left: 0.5pt solid #000; }
  body.page-planner .pm-rowhead,
  body.page-planner .pm-cell { border-bottom: 0.5pt solid #000; }

  body.page-planner .pm-corner { font-size: 7pt; }
  body.page-planner .pm-dayname { font-size: 9pt; }
  body.page-planner .pm-daydate { font-size: 7.5pt; color: #333; }
  body.page-planner .pm-stagename { font-size: 9pt; padding-right: 0; }
  body.page-planner .pm-capacity { font-size: 7.5pt; color: #333; }
  /* Rindas augstums tā, lai posmi kopā aizpilda lapu neatkarīgi no to
     skaita (--planner-rows uzliek JS). Apzināti min-height, nevis 1fr uz
     režģa rindām: ar 1fr viena pārpildīta šūna izstieptu visas rindas
     vienādi un plāns aizietu uz otro lapu. Šādi aug tikai tā rinda, kurā
     tiešām ir vairāk darbu. */
  body.page-planner .pm-cell,
  body.page-planner .pm-rowhead { min-height: calc(128mm / var(--planner-rows, 4)); }

  /* Režģis drīkst dalīties starp lapām; nedalāmas ir tikai atsevišķas
     šūnas. Bez tā Chrome pārceļ VISU tabulu uz nākamo lapu, tiklīdz tā
     par milimetru nesatilpst — tieši tā gadījās ar 138 mm rindām, kur
     saturs aizņēma tieši 100 % lapas augstuma. */
  body.page-planner .planner-matrix,
  body.page-planner .planner-scroll { break-inside: auto; }
  body.page-planner .pm-cell-head { font-size: 7.5pt; color: #333; margin-bottom: 2mm; }
  body.page-planner .pm-cell.today { background: transparent; }
  /* Tukša šūna bez noteiktas jaudas drukā paliek pilnīgi balta. Šūnas
     galvenē ekrānā ir arī "+" poga, tāpēc to slēpjam tikai drukā un tikai
     tad, ja noslodzes teksta nav (t.i. jauda nav noteikta un darbu nav). */
  body.page-planner .pm-cell-head:has(.pm-load:empty) { display: none; }

  body.page-planner .pm-cell.overloaded { border: 1.5pt solid #000; }
  body.page-planner .pm-cell.overloaded .pm-load,
  body.page-planner .pm-cell.overloaded .pm-pct { color: #000; font-weight: 700; text-decoration: underline; }

  body.page-planner .pt-card {
    border: 0.5pt solid #000;
    border-radius: 1mm;
    padding: 1.5mm 2mm;
    margin-bottom: 1.5mm;
    background: transparent;
    color: #000;
    break-inside: avoid;
  }
  body.page-planner .pt-card.active,
  body.page-planner .pt-card.related { background: transparent; color: #000; border-color: #000; box-shadow: none; }
  body.page-planner .pt-sku { font-size: 8.5pt; }
  body.page-planner .pt-qty { font-size: 8.5pt; }
  body.page-planner .pt-ref { font-size: 7pt; color: #333; }

  /* Pogas un tukšo šūnu domuzīmes drukā nav vajadzīgas. */
  body.page-planner .pm-add,
  body.page-planner .pm-stage-edit,
  body.page-planner .picker-backdrop { display: none !important; }
  body.page-planner .pm-cell.drop-target { outline: none; }
}

/* ── Dienas plāns ────────────────────────────────────────────────────── */

.day-input { width: auto; padding: 8px 14px; font-size: 12px; }

.day-stage {
  background: var(--surface);
  border-radius: 24px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
.day-stage-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.day-stage-name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}
.day-stage-count { font-size: 12px; color: var(--muted); }

.day-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.day-table th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  padding: 0 8px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.day-table td { padding: 11px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.day-table tbody tr:last-child td { border-bottom: none; }
.day-table tbody tr:hover { background: transparent; }

.ds-check { width: 28px; }
.ds-box {
  display: block;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--ink-2);
  border-radius: 3px;
}
.ds-what { font-weight: 700; }
.ds-qty { width: 78px; white-space: nowrap; }
.ds-cnc { width: 22%; color: var(--ink-3); }
.ds-finish { width: 18%; color: var(--ink-3); }
.ds-done { width: 84px; }
.ds-split { width: 44px; height: 24px; display: block; color: var(--ink-2); }
.ds-split rect, .ds-split line { stroke-width: 1; }

.ds-tag {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
}
.ds-remove {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 999px;
}
.ds-remove:hover { background: var(--accent-softer); color: var(--accent-deep); }

.sheet-notes h3 { margin-bottom: 12px; }

/* ── Ražošanas vajadzības ──────────────────────────────────────────── */

.needs-toolbar,
.needs-section-head,
.needs-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.needs-toolbar { margin-bottom: 20px; }
.needs-toolbar h2, .needs-section-head h2 { margin-bottom: 4px; }
.needs-section-head { align-items: flex-start; margin-bottom: 10px; }
.needs-select-all { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; }
.needs-used-by { min-width: 220px; font-size: 12px; color: var(--ink-3); }
.needs-issue-alert { align-items: flex-start; }
.needs-issue-alert table { background: rgba(255, 255, 255, 0.35); }
.needs-link-product { display: flex; align-items: center; gap: 8px; min-width: 360px; }
.needs-link-product select { min-width: 260px; }
.needs-created { border: 2px solid var(--green); }
.needs-check-box { display: inline-block; width: 18px; height: 18px; border: 1.5px solid currentColor; vertical-align: middle; }
.needs-signoff { margin-top: 10mm; grid-template-columns: repeat(3, 1fr); gap: 8mm; font-size: 10pt; }
.needs-print-head { margin-bottom: 7mm; }
.needs-print-brand { font-size: 9pt; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; border-bottom: 1.5pt solid #000; padding-bottom: 2mm; }
.needs-print-title { font-size: 16pt; font-weight: 700; margin-top: 3mm; }
.needs-print-meta { color: #444; font-size: 8pt; margin-top: 1mm; }

@media (max-width: 720px) {
  .needs-actions { width: 100%; }
  .needs-actions .btn { flex: 1; text-align: center; }
}

@media print {
  body.page-production-needs.printing-needs-sheet .print-only { display: block; }
  body.page-production-needs.printing-needs-sheet th.print-only,
  body.page-production-needs.printing-needs-sheet td.print-only { display: table-cell; }
  body.page-production-needs.printing-needs-sheet .needs-signoff { display: grid; }
  body.page-production-needs.printing-needs-sheet .needs-screen > :not(.needs-parts-card) { display: none !important; }
  body.page-production-needs.printing-needs-sheet .needs-parts-card { display: block; }
  body.page-production-needs.printing-needs-sheet .needs-parts-card .needs-section-head { display: none; }
  body.page-production-needs.printing-needs-sheet .needs-print-hidden { display: none; }
  body.page-production-needs main { padding: 0; }
  body.page-production-needs .needs-table { font-size: 9pt; }
  body.page-production-needs .needs-table th { font-size: 7pt; border-color: #000; padding: 2mm; }
  body.page-production-needs .needs-table td { border-color: #999; padding: 2.5mm 2mm; }
  body.page-production-needs .needs-table tr { break-inside: avoid; }
  body.page-production-needs .needs-used-by { min-width: 0; font-size: 7.5pt; }
  body.page-production-needs .muted { font-size: 7.5pt; color: #333; }
}

/* ── Dienas plāna izdruka (A4 portrets) ─────────────────────────────── */

@media print {
  body.page-daily .print-only { display: block; }

  /* Malas dod saturs, jo @page margin ir 0 — skat. daily-plan.html. */
  body.page-daily main { padding: 15mm; animation: none; }

  .sheet-print-head { margin-bottom: 6mm; }

  body.page-daily .card { background: #fff; padding: 0; margin: 0 0 4mm; border-radius: 0; }
  body.page-daily .day-stage {
    background: #fff;
    border: 0.75pt solid #000;
    border-radius: 0;
    padding: 2.5mm 4mm;
    margin-bottom: 3.5mm;
    break-inside: avoid;
  }
  body.page-daily .day-stage-head { margin-bottom: 1.5mm; }
  body.page-daily .day-stage-name { font-size: 10pt; }
  body.page-daily .day-stage-count { font-size: 8pt; color: #333; }

  body.page-daily .day-table { font-size: 9pt; }
  body.page-daily .day-table th {
    font-size: 7pt;
    color: #333;
    border-bottom: 0.75pt solid #000;
    padding: 0 2mm 1.5mm;
  }
  body.page-daily .day-table td {
    padding: 1.8mm 2mm;
    border-bottom: 0.5pt solid #999;
  }
  body.page-daily .ds-box { width: 4mm; height: 4mm; border: 0.75pt solid #000; }
  body.page-daily .ds-cnc, body.page-daily .ds-finish { color: #333; }
  /* Tukšs lauciņš atzīmēšanai ar roku. */
  body.page-daily .ds-done { border-left: 0.5pt solid #999; }
  /* Apdarē un slīpēšanā lauciņš dalīts horizontāli — divas puses, katra
     ~4,5 mm augsta, lai ķeksītim pietiek vietas. */
  body.page-daily .ds-split { width: 16mm; height: 9mm; color: #000; }
  body.page-daily .ds-split rect, body.page-daily .ds-split line { stroke-width: 0.75; }
  body.page-daily .ds-tag {
    background: transparent;
    color: #000;
    border: 0.5pt solid #000;
    padding: 0.5mm 1.5mm;
  }

  body.page-daily .sheet-notes h3 { font-size: 9pt; text-transform: uppercase; letter-spacing: 0.06em; }
  body.page-daily .hw-line { border-bottom: 0.5pt solid #999; height: 7mm; }
}


strong, b { font-weight: 700; }
.brand-mark { font-weight: 700; }
button, input, select, textarea { font-family: var(--font-body); }
