* { box-sizing: border-box; }
:root {
  --bg: #030507;
  --bg-soft: #070b10;
  --panel: #0a111b;
  --panel-2: #0d1724;
  --line: rgba(244, 239, 230, .12);
  --line-strong: rgba(216, 155, 84, .32);
  --text: #f6efe4;
  --muted: rgba(246, 239, 228, .62);
  --soft: rgba(246, 239, 228, .42);
  --gold: #d89b54;
  --gold-2: #f2c17d;
  --blue: #4ea3d8;
  --green: #74e4a4;
  --red: #ff8f8f;
  --shadow: 0 24px 70px rgba(0,0,0,.42);
}
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 76% -10%, rgba(216,155,84,.14), transparent 30%),
    radial-gradient(circle at 18% 0%, rgba(78,163,216,.12), transparent 34%),
    linear-gradient(180deg, #020304 0%, #05080c 55%, #020304 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--gold-2); }
.shell {
  width: min(1480px, calc(100% - 34px));
  margin: 0 auto;
  padding: 28px 0 56px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.topbar {
  order: 0;
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
  background: rgba(3,5,7,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(246,239,228,.08);
}
.brand {
  position: relative;
  padding-left: 46px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.brand::before {
  content: "L";
  position: absolute;
  left: 0;
  top: 50%;
  width: 32px;
  height: 32px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(216,155,84,.56);
  color: var(--gold-2);
  font-size: 13px;
}
.nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.card {
  background:
    linear-gradient(180deg, rgba(13,23,36,.84), rgba(7,11,16,.92)),
    var(--panel);
  border: 1px solid var(--line);
  padding: 20px;
  margin: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset;
}
.shell > .alert { order: 1; }
.shell > .card:not(.compact-board):not(.calendar-card):not(.admin-history):not(.month-manager) {
  order: 2;
}
.compact-board { order: 3; }
.calendar-card { order: 4; }
.admin-sections { order: 5; }
.month-manager { order: 6; }
.admin-history { order: 7; }
summary { list-style: none; }
summary::marker { content: ""; font-size: 0; }
summary::-webkit-details-marker { display: none; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.04; letter-spacing: -.01em; }
h1 { font-size: clamp(36px, 5vw, 72px); max-width: 920px; }
h2 { font-size: clamp(22px, 2.1vw, 34px); }
h3 { font-size: 18px; }
p, li { color: var(--muted); }
.muted { color: var(--muted); }
.shell > .card:nth-of-type(1) {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(90deg, rgba(5,8,12,.96), rgba(9,17,27,.76)),
    linear-gradient(135deg, rgba(216,155,84,.12), transparent 48%);
  border-color: rgba(216,155,84,.18);
}
.shell > .card:nth-of-type(1) h1 {
  font-size: clamp(34px, 4.8vw, 64px);
}
label {
  display: block;
  margin: 12px 0 6px;
  color: rgba(246,239,228,.78);
  font-size: 12px;
  font-weight: 850;
}
input, textarea, select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(246,239,228,.14);
  background: rgba(2,5,9,.76);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(216,155,84,.58);
  box-shadow: 0 0 0 3px rgba(216,155,84,.1);
}
input[type="color"] {
  width: 58px;
  min-height: 38px;
  padding: 4px;
}
textarea { min-height: 105px; resize: vertical; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid transparent;
  background: var(--gold);
  color: #08090b;
  padding: 0 16px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: .01em;
}
button:hover, .button:hover { background: var(--gold-2); }
button:disabled { opacity: .45; cursor: not-allowed; }
.button.secondary, button.secondary {
  background: rgba(246,239,228,.02);
  color: var(--text);
  border-color: rgba(246,239,228,.15);
}
.button.secondary:hover, button.secondary:hover {
  border-color: rgba(216,155,84,.42);
  background: rgba(216,155,84,.1);
}
.alert {
  padding: 14px 16px;
  border: 1px solid rgba(216,155,84,.42);
  background: rgba(216,155,84,.1);
}
.alert p { margin: 0; }
.error { border-color: rgba(255,110,110,.55); background: rgba(255,110,110,.1); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.section-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 14px; }
.section-head p { margin: 0; }
.compact-board {
  display: grid;
  grid-template-columns: 92px repeat(3, 118px) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  padding: 12px;
}
.compact-board::before {
  content: "Ahora";
  align-self: center;
  padding: 0 8px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.board-stat {
  min-height: 76px;
  border: 1px solid rgba(246,239,228,.1);
  padding: 12px;
  background: rgba(2,5,9,.48);
}
.board-stat strong,
.board-stat span { display: block; }
.board-stat strong { font-size: 30px; line-height: 1; }
.board-stat span {
  margin-top: 7px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.assignment-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.assignment-chip {
  min-width: 170px;
  border: 1px solid rgba(246,239,228,.1);
  padding: 10px;
  background: rgba(2,5,9,.4);
}
.assignment-chip.pending { border-left: 3px solid var(--gold); }
.assignment-chip.accepted { border-left: 3px solid var(--green); }
.assignment-chip span,
.assignment-chip strong,
.assignment-chip em { display: block; }
.assignment-chip span { color: var(--gold-2); font-size: 11px; font-weight: 900; }
.assignment-chip strong { margin-top: 4px; font-size: 12px; }
.assignment-chip em { margin-top: 3px; color: var(--muted); font-size: 11px; font-style: normal; }
.tech-assignment-list {
  display: grid;
  gap: 14px;
}
.tech-assignment-card h2 {
  font-size: 24px;
}
.tech-assignment-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(246,239,228,.08);
}
.tech-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.tech-job-meta span,
.tech-job-meta a {
  border: 1px solid rgba(246,239,228,.12);
  padding: 7px 9px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.tech-report-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(216,155,84,.18);
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}
.copy-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 12px; }
.copy-link input { font-size: 13px; }
.calendar-card {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(10,17,27,.92), rgba(3,5,7,.94)),
    var(--panel);
  border-color: rgba(216,155,84,.22);
  box-shadow: var(--shadow);
}
.calendar-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.calendar-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 54px);
}
.icon-button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216,155,84,.38);
  background: rgba(216,155,84,.08);
  color: transparent;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.icon-button::before {
  content: "";
  width: 10px;
  height: 10px;
  border-left: 2px solid var(--gold-2);
  border-bottom: 2px solid var(--gold-2);
  transform: rotate(45deg);
}
.calendar-head .icon-button:nth-child(3)::before {
  transform: rotate(225deg);
}
.icon-button:hover { background: rgba(216,155,84,.16); }
.calendar-jump {
  display: flex;
  gap: 8px;
  align-items: center;
}
.calendar-jump input,
.calendar-jump select,
.calendar-jump button {
  min-height: 38px;
}
.bulk-panel {
  margin: 0 0 12px;
  border: 1px solid rgba(246,239,228,.1);
  background: rgba(2,5,9,.42);
}
.bulk-panel summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--gold-2);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.bulk-toolbar {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) 58px 120px auto auto;
  gap: 8px;
  align-items: center;
  padding: 0 12px 12px;
}
.bulk-toolbar input,
.bulk-toolbar select,
.bulk-toolbar button {
  min-height: 34px;
  font-size: 12px;
}
.bulk-help {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 13px;
}
.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 50%;
}
.legend-dot.accepted { background: var(--green); }
.legend-dot.pending { background: var(--gold-2); }
.legend-dot.unassigned { background: #8ea1bd; }
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.calendar-weekday {
  padding: 8px 8px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.calendar-day {
  padding: 8px;
  border: 1px solid rgba(246,239,228,.09);
  min-height: 118px;
  background: rgba(8,14,22,.76);
}
.calendar-day:hover {
  border-color: rgba(216,155,84,.28);
  background: rgba(12,20,31,.88);
}
.calendar-day.empty { opacity: .18; }
.calendar-day.today {
  border-color: rgba(242,193,125,.68);
  box-shadow: inset 0 0 0 1px rgba(242,193,125,.16);
}
.day-number {
  display: inline-flex;
  min-height: 24px;
  margin-bottom: 5px;
  padding: 0 8px;
  border: 0;
  background: rgba(216,155,84,.92);
  color: #050507;
  font-size: 12px;
  font-weight: 950;
}
.job-select-wrap {
  position: relative;
  display: block;
  margin-top: 6px;
}
.job-select-wrap input.calendar-job-check {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  width: 13px;
  height: 13px;
  min-height: 13px;
  margin: 0;
  padding: 0;
  accent-color: var(--gold);
}
.job-pill {
  display: grid;
  gap: 1px;
  padding: 7px 23px 7px 9px;
  border-left: 3px solid var(--job-color, var(--gold));
  background: rgba(17,35,54,.74);
  color: var(--text);
  font-size: 10px;
  line-height: 1.2;
  text-decoration: none;
}
.job-pill.accepted { box-shadow: inset 0 0 0 1px rgba(116,228,164,.22); }
.job-pill.pending { box-shadow: inset 0 0 0 1px rgba(242,193,125,.22); }
.job-title { font-weight: 900; }
.job-kind {
  width: fit-content;
  padding: 1px 5px;
  margin-top: 2px;
  background: rgba(216,155,84,.15);
  color: var(--gold-2);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}
.job-rate, .job-flags { color: var(--gold-2); font-size: 9px; font-weight: 900; }
.job-meta, .job-status { color: rgba(246,239,228,.58); font-size: 9.5px; }
.admin-sections {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.tool-section { min-width: 0; }
.tool-section > summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(246,239,228,.1);
  background: rgba(8,14,22,.74);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}
.tool-section > summary:hover {
  border-color: rgba(216,155,84,.28);
  background: rgba(216,155,84,.08);
}
.tool-section[open] {
  grid-column: 1 / -1;
}
.tool-section[open] > summary {
  width: fit-content;
  min-height: 38px;
  margin-bottom: 10px;
  border-color: rgba(216,155,84,.34);
  color: var(--gold-2);
}
.template-form,
.import-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 110px;
  gap: 12px;
  align-items: end;
}
.import-form { grid-template-columns: minmax(0, 1fr) 220px 88px auto; align-items: start; }
.span-2 { grid-column: span 2; }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}
.check-row {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 12px;
}
.check-row input,
.preview-item input { width: auto; min-height: 0; }
.color-row { display: flex; gap: 12px; align-items: center; }
.color-swatch {
  display: inline-block;
  width: 28px;
  height: 18px;
  border: 1px solid rgba(246,239,228,.22);
  vertical-align: middle;
}
.template-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.template-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(246,239,228,.1);
  background: rgba(2,5,9,.42);
}
.template-item strong,
.template-item span { display: block; }
.template-item span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.template-edit > summary {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(246,239,228,.14);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}
.template-edit-form {
  position: absolute;
  left: max(17px, calc((100vw - 1480px) / 2));
  right: max(17px, calc((100vw - 1480px) / 2));
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 76px;
  gap: 10px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(242,193,125,.26);
  background: #05080c;
  box-shadow: var(--shadow);
}
.template-edit-form label { margin: 0 0 -4px; }
.template-edit-form input,
.template-edit-form textarea { min-height: 36px; }
.preview-import {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(246,239,228,.1);
}
.preview-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}
.preview-list {
  display: grid;
  max-height: 300px;
  overflow: auto;
  border: 1px solid rgba(246,239,228,.1);
}
.preview-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(246,239,228,.07);
  cursor: pointer;
}
.preview-item strong,
.preview-item small { display: block; }
.preview-item small { margin-top: 3px; color: var(--muted); }
.danger-zone {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,110,110,.2);
}
.rider-form {
  display: grid;
  gap: 16px;
}
.rider-app-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  min-height: 190px;
  background:
    linear-gradient(100deg, rgba(3,5,7,.97), rgba(8,14,22,.7)),
    url("../../assets/hero-concert-lighting.png") center 44% / cover;
  border-color: rgba(216,155,84,.28);
}
.rider-app-head p { margin-bottom: 0; }
.rider-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.rider-dashboard article {
  padding: 16px;
  border: 1px solid rgba(246,239,228,.1);
  background: rgba(8,14,22,.74);
}
.rider-dashboard strong,
.rider-dashboard span { display: block; }
.rider-dashboard strong {
  font-size: 34px;
  line-height: 1;
  color: var(--gold-2);
}
.rider-dashboard span {
  margin-top: 7px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rider-example {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-color: rgba(216,155,84,.22);
  background:
    linear-gradient(90deg, rgba(13,23,36,.92), rgba(2,5,9,.72)),
    var(--panel);
}
.rider-example p {
  margin-bottom: 0;
}
.rider-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.rider-saved-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(246,239,228,.1);
  background: rgba(2,5,9,.46);
}
.rider-example-card {
  border-color: rgba(216,155,84,.34);
  background:
    linear-gradient(135deg, rgba(216,155,84,.14), rgba(2,5,9,.54)),
    rgba(2,5,9,.46);
}
.rider-saved-card span {
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 900;
}
.rider-saved-card h3 { margin: 5px 0 0; }
.rider-saved-card p {
  margin: 6px 0 0;
  font-size: 13px;
}
.rider-saved-card > strong {
  color: var(--muted);
  font-size: 12px;
}
.rider-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.rider-card-actions form { margin: 0; }
.rider-card-actions .button,
.rider-card-actions button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 11px;
}
.danger-button {
  border-color: rgba(255,143,143,.34) !important;
  color: var(--red) !important;
  background: rgba(255,143,143,.06) !important;
}
.danger-button:hover {
  border-color: rgba(255,143,143,.62) !important;
  background: rgba(255,143,143,.13) !important;
}
.rider-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.rider-builder {
  display: grid;
  gap: 12px;
}
.rider-section-block {
  border: 1px solid rgba(246,239,228,.1);
  background: rgba(2,5,9,.38);
  overflow-x: auto;
}
.rider-section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(246,239,228,.09);
}
.rider-section-title h3 { margin: 0; color: var(--gold-2); }
.material-catalog {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(246,239,228,.08);
}
.material-chip {
  min-height: 28px;
  padding: 0 9px;
  border-color: rgba(246,239,228,.12);
  background: rgba(246,239,228,.03);
  color: rgba(246,239,228,.84);
  font-size: 11px;
  font-weight: 800;
}
.material-chip:hover {
  border-color: rgba(216,155,84,.34);
  background: rgba(216,155,84,.1);
  color: var(--gold-2);
}
.rider-row-list { display: grid; }
.rider-row-grid {
  display: grid;
  grid-template-columns: 34px 190px 122px 130px 130px 132px 170px 230px 88px 210px;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(246,239,228,.06);
  min-width: 1410px;
}
.rider-row-grid:last-child { border-bottom: 0; }
.rider-row-grid input,
.rider-row-grid select { min-height: 36px; }
.rider-row-grid input[type="hidden"] { display: none !important; }
.rider-row-grid .remove-rider-row {
  justify-self: center;
  align-self: center;
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  padding: 0 !important;
  border-radius: 50%;
  border: 1px solid rgba(255,143,143,.55) !important;
  background: rgba(255,143,143,.08) !important;
  color: var(--red) !important;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}
.rider-row-grid .remove-rider-row:hover {
  border-color: rgba(255,143,143,.85) !important;
  background: rgba(255,143,143,.18) !important;
}
.rider-check {
  min-height: 36px;
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0;
  padding: 0 8px;
  border: 1px solid rgba(246,239,228,.12);
  background: rgba(2,5,9,.54);
  font-size: 11px;
}
.rider-check input {
  width: auto;
  min-height: 0;
  accent-color: var(--gold);
}
.rider-row-head {
  color: var(--soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rider-list {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(246,239,228,.1);
}
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.table-actions form { margin: 0; }
.rider-print {
  background: #fff;
  color: #111;
  padding: 34px;
  border: 1px solid rgba(17,17,17,.14);
}
.rider-print h1,
.rider-print h2,
.rider-print p { color: #111; }
.rider-print-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 3px solid #111;
}
.rider-brand-block {
  display: grid;
  gap: 8px;
}
.rider-logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.rider-logo-mark img {
  width: 36px;
  height: 36px;
  display: block;
}
.rider-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.rider-print-head h1 {
  margin: 0 0 8px;
  font-size: 36px;
}
.rider-print-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rider-print-meta span {
  border: 1px solid #111;
  padding: 4px 8px;
  color: #111;
  font-size: 12px;
  font-weight: 800;
}
.rider-client-box {
  border: 1px solid #111;
  padding: 14px;
}
.rider-client-box small {
  display: block;
  margin-bottom: 6px;
  color: #111;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.rider-client-box strong,
.rider-client-box span {
  display: block;
  color: #111;
}
.rider-client-box span {
  margin-top: 5px;
  font-size: 13px;
}
.rider-print-section {
  margin-top: 22px;
}
.rider-print-section h2 {
  margin: 0 0 8px;
  font-size: 20px;
  text-transform: uppercase;
  padding: 6px 9px;
  background: #111;
  color: #f2c17d;
}
.rider-print-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.rider-print-summary article {
  border: 1px solid #111;
  padding: 9px;
}
.rider-print-summary span,
.rider-print-summary strong {
  display: block;
  color: #111;
}
.rider-print-summary span {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.rider-print-summary strong {
  margin-top: 4px;
  font-size: 22px;
}
.rider-print-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.rider-print-overview > div {
  border: 1px solid #222;
  padding: 8px;
}
.rider-print-overview h2 {
  margin: 0 0 6px;
  padding: 0;
  background: transparent;
  color: #111;
  font-size: 11px;
}
.rider-print-overview span {
  display: block;
  color: #111;
  font-size: 10px;
  line-height: 1.35;
}
.rider-table th,
.rider-table td {
  color: #111;
  border: 1px solid #222;
  padding: 6px 7px;
  font-size: 10px;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: top;
}
.rider-table th {
  background: #eee;
  font-size: 9px;
}
.rider-table td:nth-child(1) { min-width: 95px; }
.rider-table td:nth-child(8) { text-align: center; width: 34px; }
.rider-table th:nth-child(1), .rider-table td:nth-child(1) { width: 18%; }
.rider-table th:nth-child(2), .rider-table td:nth-child(2) { width: 6%; }
.rider-table th:nth-child(3), .rider-table td:nth-child(3) { width: 9%; }
.rider-table th:nth-child(4), .rider-table td:nth-child(4) { width: 7%; }
.rider-table th:nth-child(5), .rider-table td:nth-child(5) { width: 7%; }
.rider-table th:nth-child(6), .rider-table td:nth-child(6) { width: 18%; }
.rider-table th:nth-child(7), .rider-table td:nth-child(7) { width: 22%; }
.rider-table th:nth-child(8), .rider-table td:nth-child(8) { width: 4%; }
.rider-table th:nth-child(9), .rider-table td:nth-child(9) { width: 9%; }
.rider-table tfoot td {
  background: #111;
  color: #f2c17d;
  font-weight: 900;
  text-align: right;
}
.rider-total-consumption {
  border: 2px solid #111;
  background: #111;
  color: #f2c17d;
  padding: 14px;
  font-size: 24px;
  font-weight: 900;
  text-align: right;
}
.rider-notes {
  white-space: normal;
  border: 1px solid #222;
  padding: 12px;
  color: #111;
}
table { width: 100%; border-collapse: collapse; }
th, td {
  border-bottom: 1px solid rgba(246,239,228,.09);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.status { display: inline-block; padding: 4px 8px; font-size: 11px; font-weight: 900; }
.pending { background: rgba(242,193,125,.15); color: var(--gold-2); }
.accepted { background: rgba(116,228,164,.14); color: var(--green); }
.cancelled { background: rgba(255,110,110,.12); color: var(--red); }
.context-menu {
  position: absolute;
  z-index: 100;
  width: min(260px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid rgba(242,193,125,.34);
  background: #05080c;
  box-shadow: var(--shadow);
}
.context-menu strong {
  display: block;
  margin: 2px 4px 8px;
  color: var(--gold-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.context-menu button {
  width: 100%;
  justify-content: flex-start;
  gap: 9px;
  margin-top: 6px;
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(246,239,228,.12);
}
.month-manager {
  padding: 0;
  background: rgba(8,14,22,.72);
  border-color: rgba(216,155,84,.18);
}
.month-manager > summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  color: var(--gold-2);
}
.month-job-list {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
}
.month-job {
  border: 1px solid rgba(246,239,228,.1);
  background: rgba(2,5,9,.42);
}
.month-job > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(160px, auto);
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  cursor: pointer;
}
.month-job > summary span:last-child {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}
.edit-job-form {
  display: grid;
  grid-template-columns: 145px minmax(240px, 1fr) 145px minmax(240px, 1fr);
  gap: 12px 10px;
  align-items: center;
  padding: 16px;
  border-top: 1px solid rgba(246,239,228,.09);
}
.edit-job-form label {
  margin: 0;
  color: rgba(246,239,228,.72);
  font-size: 12px;
  text-align: left;
}
.edit-job-form input,
.edit-job-form select,
.edit-job-form textarea { min-height: 36px; }
.edit-job-form .span-2 {
  grid-column: 1 / -1;
}
.edit-job-form .check-row {
  grid-column: 3 / -1;
  margin-top: 0;
  align-self: center;
}
.edit-job-form input[type="color"] {
  width: 58px;
}
.assignment-actions {
  margin: 0 16px 16px;
  padding: 14px;
  border-top: 1px solid rgba(246,239,228,.09);
  border: 1px solid rgba(216,155,84,.18);
  background: rgba(2,5,9,.28);
}
.assignment-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.assignment-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
}
.assignment-line {
  margin-top: 10px;
  padding: 10px 0 0;
  border-top: 1px solid rgba(246,239,228,.07);
}
.assignment-line small {
  grid-column: 1 / -1;
  color: var(--muted);
}
.delete-job-form {
  margin: 0 16px 16px;
  padding: 12px 0 0;
  border-top: 1px solid rgba(255,143,143,.18);
}
.admin-history { display: block; }
.contract {
  white-space: pre-wrap;
  background: rgba(2,5,9,.72);
  border: 1px solid rgba(246,239,228,.13);
  padding: 16px;
  color: rgba(246,239,228,.78);
}
.accept-contract { margin-bottom: 18px; }
.accept-contract > summary { cursor: pointer; color: var(--muted); font-weight: 900; }
.accept-contract .contract { margin-top: 12px; }
.selected-row {
  outline: 2px solid rgba(242,193,125,.72);
  outline-offset: -2px;
  background: rgba(242,193,125,.08);
}
@media (max-width: 1100px) {
  .compact-board { grid-template-columns: repeat(3, 1fr); }
  .compact-board::before { display: none; }
  .assignment-strip { grid-column: 1 / -1; }
  .calendar-head { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .calendar-jump { grid-column: 1 / -1; justify-content: center; }
  .admin-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rider-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rider-app-head { display: grid; }
  .rider-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rider-print-head { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .shell { width: min(100% - 20px, 720px); padding-top: 14px; }
  .topbar { position: static; display: block; }
  .nav { margin-top: 14px; }
  .grid, .grid-3, .template-form, .import-form, .edit-job-form, .rider-meta { grid-template-columns: 1fr; }
  .admin-sections { grid-template-columns: 1fr; }
  .rider-dashboard,
  .rider-card-grid,
  .rider-example { grid-template-columns: 1fr; }
  .bulk-toolbar { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .template-item { grid-template-columns: auto minmax(0, 1fr); }
  .template-item form { grid-column: 1 / -1; }
  .template-edit-form { position: static; grid-template-columns: 1fr; }
  .calendar { grid-template-columns: 1fr; }
  .calendar-weekday, .calendar-day.empty { display: none; }
  .calendar-day { min-height: auto; }
  .copy-link { grid-template-columns: 1fr; }
  .month-job > summary { grid-template-columns: auto minmax(0, 1fr); }
  .month-job > summary span:last-child { grid-column: 1 / -1; text-align: left; }
  table { display: block; overflow-x: auto; }
  .rider-print { padding: 18px; }
  .rider-print-head h1 { font-size: 28px; }
}
@media print {
  @page { size: A4 landscape; margin: 6mm; }
  html,
  body {
    background: #fff !important;
    color: #111 !important;
  }
  .shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0;
    padding: 0;
  }
  .no-print,
  .topbar,
  .alert {
    display: none !important;
  }
  .rider-print {
    padding: 0;
    border: 0;
    width: 100% !important;
    max-width: none !important;
  }
  .rider-print-head {
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom-width: 2px;
    background: #111 !important;
    color: #fff !important;
    padding: 7px;
  }
  .rider-print-head h1 {
    color: #fff !important;
    font-size: 20px;
    margin-bottom: 4px;
  }
  .rider-logo-mark {
    color: #f2c17d !important;
    gap: 6px;
    font-size: 8px;
  }
  .rider-logo-mark img {
    width: 23px;
    height: 23px;
  }
  .rider-kicker {
    color: #f2c17d !important;
    font-size: 8px;
    margin-bottom: 3px;
  }
  .rider-print-meta {
    gap: 4px;
  }
  .rider-print-meta span {
    border-color: rgba(242,193,125,.65);
    color: #fff !important;
    padding: 2px 4px;
    font-size: 7.5px;
  }
  .rider-client-box {
    border-color: rgba(242,193,125,.65);
    padding: 6px;
  }
  .rider-client-box small,
  .rider-client-box strong,
  .rider-client-box span {
    color: #fff !important;
  }
  .rider-client-box small {
    color: #f2c17d !important;
    font-size: 6px;
    margin-bottom: 2px;
  }
  .rider-client-box strong {
    font-size: 8px;
  }
  .rider-client-box span {
    font-size: 8px;
    margin-top: 2px;
  }
  .rider-print-section {
    margin-top: 9px;
  }
  .rider-print-summary {
    gap: 4px;
    margin-top: 6px;
  }
  .rider-print-summary article {
    padding: 4px;
  }
  .rider-print-summary span {
    font-size: 5.5px;
  }
  .rider-print-summary strong {
    margin-top: 1px;
    font-size: 13px;
  }
  .rider-print-overview {
    gap: 4px;
    margin-top: 5px;
  }
  .rider-print-overview > div {
    padding: 4px;
  }
  .rider-print-overview h2 {
    font-size: 6.5px;
    margin-bottom: 3px;
  }
  .rider-print-overview span {
    font-size: 5.8px;
    line-height: 1.2;
  }
  .rider-print-section h2 {
    background: #111 !important;
    color: #f2c17d !important;
    font-size: 12px;
    margin-bottom: 4px;
    padding: 3px 5px;
  }
  .rider-table {
    table-layout: fixed;
    width: 100%;
  }
  .rider-table th,
  .rider-table td {
    padding: 2.5px 4px;
    font-size: 6.4px;
    line-height: 1.15;
  }
  .rider-table th {
    font-size: 5.8px;
  }
  .rider-table th:nth-child(1), .rider-table td:nth-child(1) { width: 18%; }
  .rider-table th:nth-child(2), .rider-table td:nth-child(2) { width: 6%; }
  .rider-table th:nth-child(3), .rider-table td:nth-child(3) { width: 9%; }
  .rider-table th:nth-child(4), .rider-table td:nth-child(4) { width: 7%; }
  .rider-table th:nth-child(5), .rider-table td:nth-child(5) { width: 7%; }
  .rider-table th:nth-child(6), .rider-table td:nth-child(6) { width: 18%; }
  .rider-table th:nth-child(7), .rider-table td:nth-child(7) { width: 22%; }
  .rider-table th:nth-child(8), .rider-table td:nth-child(8) { width: 4%; }
  .rider-table th:nth-child(9), .rider-table td:nth-child(9) { width: 9%; }
  .rider-total-consumption {
    padding: 6px;
    font-size: 13px;
  }
  .rider-notes {
    padding: 6px;
    font-size: 8px;
  }
  .rider-print-section {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  table {
    display: table;
    overflow: visible;
  }
  a { color: #111; }
}
