/* NYXLABS Admin — light theme matching public site */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --bg: #f7f1e8;
  --bg1: #faf6f0;
  --card: #ffffff;
  --line: #e8dccb;
  --line-2: #dfd2c0;
  --text: #1c1917;
  --muted: #6b6560;
  --muted-2: #8a8178;
  --accent: #e56b1f;
  --accent-2: #c45f1a;
  --accent-soft: rgba(229, 107, 31, 0.1);
  --ok: #15803d;
  --ok-bg: rgba(34, 160, 107, 0.1);
  --ok-line: rgba(34, 160, 107, 0.28);
  --danger: #c2410c;
  --danger-bg: rgba(194, 65, 12, 0.08);
  --danger-line: rgba(194, 65, 12, 0.28);
  --shadow: 0 12px 32px rgba(60, 40, 20, 0.07);
  --shadow-soft: 0 8px 20px rgba(60, 40, 20, 0.05);
  --radius: 16px;
  --font: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
code {
  font-size: 0.8rem;
  background: #f3ebe0;
  color: #3f3832;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--line);
}

/* —— Login —— */
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(700px 320px at 80% 0%, rgba(229, 107, 31, 0.12), transparent 60%),
    var(--bg);
}
.login-card {
  width: min(400px, 100%);
  display: grid;
  gap: 0.9rem;
  padding: 1.5rem 1.4rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.brand-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.15rem;
}
.brand-row img {
  height: 40px;
  width: auto;
  display: block;
  border-radius: 8px;
}
.brand-row strong {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-row .muted { font-size: 0.86rem; }

/* —— Header —— */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(252, 247, 240, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.top-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text) !important;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1rem;
}
.brand img {
  height: 28px;
  width: auto;
  display: block;
  border-radius: 6px;
}
.brand:hover { color: var(--text) !important; opacity: 0.9; }

.top nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
}
.top nav a {
  color: var(--muted);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.top nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
}
.top nav a.active {
  color: var(--accent-2);
  background: var(--accent-soft);
}

/* —— Layout —— */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.35rem 1rem 2.75rem;
}
.wrap.narrow { max-width: 680px; }
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}
.page-head h1 {
  margin: 0 0 0.3rem;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--text);
}
h2 {
  font-family: var(--display);
  letter-spacing: -0.02em;
  color: var(--text);
}

/* —— Cards —— */
.login-card,
.form-card,
.table-card,
.empty {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow-soft);
  color: var(--text);
}
.form-card { display: grid; gap: 0.9rem; }
.empty {
  text-align: center;
  padding: 2.25rem 1.25rem;
  color: var(--muted);
}

/* —— Forms —— */
label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}
label strong,
label span strong {
  color: var(--text);
}
input,
textarea,
select {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  padding: 0.72rem 0.85rem;
  color: var(--text);
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder,
textarea::placeholder { color: #a8a29e; }
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 107, 31, 0.14);
}
.check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--muted);
  flex-direction: row;
  font-weight: 500;
}
.check input {
  width: auto;
  margin-top: 0.2rem;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1.5px solid var(--line-2);
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 0.62rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, filter .15s ease;
}
.btn:hover {
  border-color: rgba(229, 107, 31, 0.35);
  box-shadow: 0 4px 12px rgba(60, 40, 20, 0.06);
}
.btn.primary {
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
  box-shadow: 0 8px 20px rgba(229, 107, 31, 0.22);
}
.btn.primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  filter: none;
  color: #fff;
}
.btn.small {
  padding: 0.4rem 0.75rem;
  font-size: 0.84rem;
  border-radius: 10px;
}
.btn.small.primary {
  display: inline-flex;
  min-width: 4.75rem;
  justify-content: center;
}
.btn.danger {
  color: var(--danger);
  border-color: var(--danger-line);
  background: var(--danger-bg);
}
.btn.danger:hover {
  border-color: var(--danger);
}

/* —— Alerts —— */
.alert {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-size: 0.92rem;
  margin-bottom: 1rem;
  font-weight: 550;
}
.alert.ok {
  background: var(--ok-bg);
  border: 1px solid var(--ok-line);
  color: var(--ok);
}
.alert.err {
  background: var(--danger-bg);
  border: 1px solid var(--danger-line);
  color: var(--danger);
}

/* —— Tables —— */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th, td {
  text-align: left;
  padding: 0.8rem 0.6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
th {
  color: var(--muted-2);
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(247, 241, 232, 0.45); }

.thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f3ebe0;
}
.thumb.placeholder {
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: var(--muted);
}

.pill {
  display: inline-block;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--muted);
  background: #faf6f0;
}
.pill.ok {
  color: var(--accent-2);
  border-color: rgba(229, 107, 31, 0.3);
  background: var(--accent-soft);
}

.actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}
.actions form { margin: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* —— Orders —— */
.orders-table-card {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
}
.orders-table {
  table-layout: fixed;
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.orders-table thead th {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
  background: #faf6f0;
}
.orders-table tbody td {
  padding: 0.85rem 0.75rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.orders-table .col-id { width: 22%; }
.orders-table .col-status { width: 16%; }
.orders-table .col-customer { width: 22%; }
.orders-table .col-job { width: 16%; }
.orders-table .col-when { width: 14%; }
.orders-table .col-actions {
  width: 10%;
  text-align: right;
  white-space: nowrap;
}
.orders-table th.col-actions { text-align: right; }
.orders-table .id-cell {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
}
.orders-table .id-cell code {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.orders-table .cell-strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
  color: var(--text);
}
.orders-table .cell-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.orders-table .nowrap { white-space: nowrap; }
.orders-table .row-new {
  background: rgba(229, 107, 31, 0.05);
}
.orders-table .pill.new {
  flex-shrink: 0;
  background: var(--danger-bg);
  border-color: var(--danger-line);
  color: var(--danger);
  font-weight: 800;
  font-size: 0.68rem;
  margin-top: 0.15rem;
}

.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  margin-left: 0.2rem;
}

.current-img {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.current-img img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f3ebe0;
}

/* Library settings helper cards inherit .table-card */
.table-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.brand-mark { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.brand-mark svg { display: block; }
.brand-row .brand-mark { flex-shrink: 0; }

/* —— Order detail (v4) —— */
.order-detail { padding-bottom: 2.5rem; }
.order-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.order-detail h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}
.order-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin: 0.45rem 0 0;
}
.page-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.order-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 800px) {
  .order-grid { grid-template-columns: 1fr; }
}

.order-card {
  margin: 0;
  gap: 0.95rem;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.order-card:hover {
  box-shadow: var(--shadow);
  border-color: #e2d4c0;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}
.card-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.info-block { display: grid; gap: 0.45rem; }
.info-block.soft {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: var(--bg1);
  border: 1px solid var(--line);
}
.info-name {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--text);
}
.info-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.25rem;
}
.info-rows { display: grid; gap: 0.35rem; }
.info-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text) !important;
  font-weight: 500;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.info-row:hover {
  background: var(--accent-soft);
  border-color: rgba(229, 107, 31, 0.18);
  color: var(--accent-2) !important;
}
.info-ico {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 800;
}
.info-address {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 650;
  color: #44403c;
}
.tag-soft {
  display: inline-flex;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 750;
}

.link-box {
  display: grid;
  gap: 0.4rem;
  padding-top: 0.15rem;
  border-top: 1px solid var(--line);
}
.link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Payment */
.payment-card {
  background: linear-gradient(165deg, #fff 0%, #fffaf4 100%);
  border-color: rgba(229, 107, 31, 0.22);
}
.payment-card.is-paid {
  background: linear-gradient(165deg, #fff 0%, #f0fdf4 100%);
  border-color: var(--ok-line);
}
.payment-card.is-unpaid {
  background: linear-gradient(165deg, #fff 0%, #fff7ed 100%);
}
.payment-card.is-quote {
  background: linear-gradient(165deg, #fff 0%, #faf6f0 100%);
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); }
.badge-warn { background: rgba(229, 107, 31, 0.12); color: #c45f1a; border: 1px solid rgba(229, 107, 31, 0.28); }
.badge-muted { background: #f3ebe0; color: var(--muted); border: 1px solid var(--line); }

.pay-amount { display: grid; gap: 0.2rem; }
.pay-big {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
}
.pay-big small {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--muted);
}
.pay-sub { color: var(--muted); font-size: 0.88rem; }
.pay-note {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}
.pay-cta { justify-self: start; }
.pay-stripe { margin: 0; word-break: break-all; }

/* Status picker */
.status-card { margin-top: 0; }
.status-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
}
.status-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-align: left;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}
.status-option:hover {
  border-color: rgba(229, 107, 31, 0.4);
  background: #fffaf4;
  transform: translateY(-1px);
}
.status-option.is-selected {
  border-color: var(--accent);
  background: rgba(229, 107, 31, 0.1);
  box-shadow: 0 0 0 3px rgba(229, 107, 31, 0.15);
  color: var(--accent-2);
}
.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--line-2);
  flex-shrink: 0;
}
.status-option.is-selected .status-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 107, 31, 0.2);
}
.status-option-label { line-height: 1.2; }

.field-label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--text);
}
.field-label input {
  background: #fff !important;
  border: 1.5px solid var(--line-2) !important;
  color: var(--text) !important;
}

.toggle-list { display: grid; gap: 0.55rem; }
.toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg1);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.toggle:hover {
  border-color: rgba(229, 107, 31, 0.35);
  background: #fff;
}
.toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.toggle-ui {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  border-radius: 999px;
  background: #d6ccc0;
  border: 1px solid #cbbfac;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.toggle-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.15s ease;
}
.toggle input:checked + .toggle-ui {
  background: var(--accent);
  border-color: var(--accent-2);
}
.toggle input:checked + .toggle-ui::after {
  transform: translateX(1.05rem);
}
.toggle-text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.toggle-text strong {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 700;
}
.toggle-text em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted);
}

.btn-block { width: 100%; }
.btn.primary.is-dirty {
  box-shadow: 0 0 0 3px rgba(229, 107, 31, 0.2), 0 8px 20px rgba(229, 107, 31, 0.25);
}

/* Status pill in header */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 750;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}
.timeline li {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 0.75rem;
  padding: 0 0 1rem;
  position: relative;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child) .timeline-dot::after {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 1rem;
  bottom: -0.15rem;
  width: 2px;
  background: var(--line);
}
.timeline-dot {
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.25rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 107, 31, 0.15);
  position: relative;
}
.timeline-body {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.timeline-body strong {
  font-size: 0.95rem;
  color: var(--text);
}
.timeline-note {
  margin: 0.25rem 0 0;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: var(--bg1);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Override any dark form controls on order pages */
.order-detail input,
.order-detail select,
.order-detail textarea {
  background: #fff !important;
  border: 1.5px solid var(--line-2) !important;
  color: var(--text) !important;
}
.order-detail input:focus,
.order-detail select:focus,
.order-detail textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(229, 107, 31, 0.12) !important;
  outline: none;
}





/* —— Portfolio list rows (v7) — no <table>, full-width lines always —— */
.plist {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.plist-head,
.plist-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.6fr) minmax(0, 0.85fr) 110px 56px 150px;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.85rem 1.15rem;
  width: 100%;
  box-sizing: border-box;
}
.plist-head {
  background: #faf6f0;
  border-bottom: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.plist-row {
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: background 0.12s ease;
}
.plist-row:last-child {
  border-bottom: none;
}
.plist-row:hover {
  background: #faf7f2;
}
.plist-c-title strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.plist-c-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
}
.plist-del {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
.plist-c-sort {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.plist-c-mat {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .plist-head { display: none; }
  .plist-row {
    grid-template-columns: 56px 1fr;
    grid-template-areas:
      "img title"
      "img mat"
      "img status"
      "img actions";
    gap: 0.35rem 0.85rem;
    padding: 0.9rem 1rem;
  }
  .plist-c-img { grid-area: img; align-self: start; }
  .plist-c-title { grid-area: title; }
  .plist-c-mat { grid-area: mat; }
  .plist-c-status { grid-area: status; }
  .plist-c-sort { display: none; }
  .plist-c-actions {
    grid-area: actions;
    justify-content: flex-start;
    margin-top: 0.25rem;
  }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.orders-form { display: grid; gap: 0.75rem; }
.orders-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
}
.orders-toolbar .toolbar-check { margin: 0; align-items: center; }
.orders-toolbar .btn:disabled { opacity: .45; cursor: not-allowed; }
.orders-table .col-select { width: 42px; text-align: center; }
.orders-table td.col-select, .orders-table th.col-select { padding-right: 0.35rem; padding-left: 0.55rem; }
.orders-table .col-select input { width: auto; margin: 0; accent-color: #e56b1f; }
.orders-table .col-id { width: 20%; }
.orders-table .col-status { width: 15%; }
.orders-table .col-customer { width: 21%; }
.orders-table .col-job { width: 15%; }
.orders-table .col-when { width: 13%; }

.files-card { margin-bottom: 1rem; }
.file-lead { margin: 0; font-size: 1rem; }
.files-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.files-table th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 0.35rem 0.4rem;
  border-bottom: 1px solid var(--line);
}
.files-table td {
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.files-table code { font-size: 0.85rem; }
