/* Components, buttons, cards, forms, tables, steps */

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.55rem 1rem;
  min-height: var(--control-h);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover { color: #fff; background: var(--green-dark); }

.btn-secondary {
  background: var(--blue);
  color: #fff;
}
.btn-secondary:hover { color: #fff; background: var(--blue-dark); }

.btn-outline {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--green); color: var(--green-deep); background: var(--green-soft); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 0.55rem 0.9rem;
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--text); }

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover { color: #fff; filter: brightness(1.08); }

.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; border-radius: var(--radius-sm); min-height: 36px; }
.btn-lg { padding: 0.75rem 1.35rem; font-size: 0.98rem; min-height: 48px; }
.btn-block { width: 100%; }

/* ===== Cards ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.card-hover:hover {
  border-color: var(--border-strong);
  background: var(--bg);
}
.card-link { display: block; color: inherit; }
.card-link:hover { color: inherit; }
[data-listing-board] [data-type].is-filter-hidden {
  display: none !important;
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.85rem;
  font-size: 1.25rem;
}
.card-icon.green { background: var(--green-soft); }
.card-icon.blue { background: var(--blue-soft); }
.card-title { margin-bottom: 0.4rem; }
.card-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.card-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.card-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 0.75rem;
}

/* Stat cards */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.stat-value {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 0.2rem;
  color: var(--text);
}
.stat-hint { font-size: 0.78rem; color: var(--success); margin-top: 0.35rem; font-weight: 500; }

/* Listing card */
.listing-card .listing-thumb {
  height: 120px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
  position: relative;
  color: var(--green-deep);
}
.listing-card .listing-thumb .badge {
  position: absolute; top: 0.65rem; right: 0.65rem;
}
.listing-price {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--green-deep);
}
.listing-price.free { color: var(--blue-dark); }

/* ===== Forms ===== */
.form-group { margin-bottom: 1.15rem; }
.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.form-hint { font-size: 0.8rem; color: var(--text-light); margin-top: 0.35rem; }
.form-control {
  width: 100%;
  min-height: var(--control-h);
  padding: 0.58rem 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-control:hover { border-color: var(--border-strong); }
.form-control:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: var(--ring);
  background: #fff;
}
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { min-height: 110px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A6B72' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-check {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.form-check input { margin-top: 0.2rem; accent-color: var(--green); width: 16px; height: 16px; }

.role-select {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
@media (max-width: 420px) {
  .role-select { grid-template-columns: 1fr; }
}
.role-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: 100%;
  border: 1.5px solid rgba(46, 122, 72, 0.14);
  border-radius: 14px;
  padding: 1rem 0.7rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  background: #f7faf8;
  color: var(--text);
  font: inherit;
}
.role-option:hover {
  border-color: rgba(86, 183, 120, 0.45);
  background: #fff;
  transform: translateY(-1px);
}
.role-option.selected {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: 0 0 0 3px rgba(86,183,120,0.16);
}
.role-option.selected.farmer {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 0 0 3px rgba(60,150,224,0.16);
}
.role-option .role-emoji { font-size: 2rem; margin-bottom: 0.5rem; }
.role-option strong {
  display: block;
  font-family: "Outfit", var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.role-option > span {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Filter bar */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}
.filter-bar .form-group { margin-bottom: 0; flex: 1; min-width: 140px; }
.filter-bar .form-label { font-size: 0.8rem; }

/* ===== Tables ===== */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: auto;
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th, td {
  padding: 0.95rem 1.05rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
th {
  font-weight: 800;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: linear-gradient(180deg, var(--bg-alt), #F5FAF7);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(232, 246, 238, 0.55); }

.alert {
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}
.alert-info { background: var(--blue-soft); color: var(--blue-dark); border-color: #BDDCF5; }
.alert-success { background: var(--green-soft); color: var(--green-deep); border-color: #C6E8D2; }
.alert-warning { background: #FFF3DF; color: #A56A10; border-color: #F5DCB0; }

.modal-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(20, 36, 30, 0.52);
  backdrop-filter: blur(4px);
  z-index: 300;
  align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-backdrop.is-open { display: flex; animation: fadeIn 0.2s; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  width: min(100%, 440px);
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.3s var(--ease);
  border: 1px solid var(--border);
}

.pill {
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface);
  transition: all 0.2s var(--ease);
  min-height: 36px;
}
.pill:hover, .pill.active {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-deep);
  box-shadow: 0 2px 8px rgba(86,183,120,0.15);
}

/* ===== Progress / Steps ===== */
.steps {
  display: flex; align-items: center;
  gap: 0;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.step {
  display: flex; align-items: center; gap: 0.5rem;
  flex-shrink: 0;
}
.step-n {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 2px solid var(--border);
}
.step.active .step-n {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.step.done .step-n {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
}
.step-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.step.active .step-label,
.step.done .step-label { color: var(--text); }
.step-line {
  width: 28px; height: 2px;
  background: var(--border);
  margin: 0 0.4rem;
  flex-shrink: 0;
}
.step.done + .step-line,
.step.done .step-line { background: var(--green); }

/* Timeline status */
.status-track {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  align-items: center;
  margin: 1rem 0;
}
.status-track .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}
.status-track .dot.on { background: var(--green); }
.status-track .line {
  width: 24px; height: 2px;
  background: var(--border);
}
.status-track .line.on { background: var(--green); }

/* ===== Auth panel ===== */
.auth-body {
  --auth-display: "Outfit", var(--font);
  --auth-body-font: "Figtree", var(--font);
  --auth-ink: #163028;
  position: relative;
  min-height: 100vh;
  font-family: var(--auth-body-font);
  color: var(--auth-ink);
  background: #f6faf7;
  isolation: isolate;
}
.auth-body h1 {
  font-family: var(--auth-display);
  color: var(--auth-ink);
  letter-spacing: -0.03em;
}
.auth-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 55% at 50% -8%, rgba(86, 183, 120, 0.26), transparent 55%),
    radial-gradient(ellipse 45% 40% at 100% 100%, rgba(60, 150, 224, 0.12), transparent 50%),
    linear-gradient(180deg, #eef7f1 0%, #f6faf7 45%, #eaf3ed 100%);
}
.auth-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%232E7A48' stroke-opacity='0.08' stroke-width='1'%3E%3Cpath d='M0 40h120M0 80h120M40 0v120M80 0v120'/%3E%3C/g%3E%3C/svg%3E");
}
.auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 2.5rem;
  gap: 1.1rem;
}
.auth-logo {
  display: block;
  line-height: 0;
  animation: authRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.auth-logo img,
.auth-logo-img {
  height: clamp(84px, 16vw, 112px);
  width: auto;
  max-width: min(250px, 70vw);
  object-fit: contain;
  display: block;
  margin-inline: auto;
  filter: drop-shadow(0 10px 22px rgba(46, 122, 72, 0.14));
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(46, 122, 72, 0.12);
  border-radius: 20px;
  padding: 1.65rem 1.45rem 1.4rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 16px 40px rgba(28, 60, 40, 0.08);
  backdrop-filter: blur(8px);
  animation: authRise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}
.auth-card-head {
  margin-bottom: 1.25rem;
  text-align: center;
}
.auth-card h1 {
  font-size: clamp(1.45rem, 3vw, 1.7rem);
  margin-bottom: 0.35rem;
  font-weight: 700;
}
.auth-lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #4a6358;
}
.auth-card .form-label {
  font-weight: 600;
  font-size: 0.82rem;
  color: #3d564a;
}
.auth-card .form-control {
  border-radius: 12px;
  border-color: rgba(46, 122, 72, 0.16);
  background: #fbfdfc;
  min-height: 46px;
}
.auth-card .form-control:focus {
  border-color: var(--green);
  background: #fff;
}
.auth-submit {
  margin-top: 0.35rem;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}
.auth-foot {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(46, 122, 72, 0.1);
}
.auth-footer {
  text-align: center;
  margin: 0;
  font-size: 0.88rem;
  color: #4a6358;
}
.auth-footer + .auth-footer { margin-top: 0.5rem; }
.auth-footer a {
  font-weight: 600;
  color: var(--green-deep);
}
.auth-footer a:hover { text-decoration: underline; }
.auth-footer--admin a {
  text-decoration: underline;
  font-weight: 500;
  color: #6b7f76;
}
.auth-footer--admin a:hover {
  color: var(--green-deep);
}
.auth-back {
  font-size: 0.85rem;
  font-weight: 500;
  color: #4a6358;
  animation: authRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}
.auth-back:hover { color: var(--green-deep); }
@keyframes authRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-logo,
  .auth-card,
  .auth-back { animation: none !important; }
}
/* Legacy split auth (unused) */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.auth-visual { display: none; }
.auth-panel { display: contents; }
.auth-box { display: none; }

@media (max-width: 420px) {
  .auth-card { padding: 1.35rem 1.1rem 1.2rem; border-radius: 16px; }
  .auth-logo img,
  .auth-logo-img { height: 76px; max-width: min(200px, 70vw); }
  .auth-card .form-row { grid-template-columns: 1fr; }
}

/* ===== Empty / Alert ===== */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 0.75rem; }

/* ===== Tabs ===== */
.tabs {
  display: flex; gap: 0.25rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.tab {
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color 0.2s;
}
.tab:hover { color: var(--green-deep); }
.tab.active {
  color: var(--green-deep);
  border-bottom-color: var(--green);
}

.modal h3 { margin-bottom: 0.5rem; }
.modal p { margin-bottom: 1.25rem; }
.modal-actions { display: flex; gap: 0.6rem; justify-content: flex-end; }

/* ===== Search ===== */
.search-box {
  position: relative;
  flex: 1;
  min-width: 180px;
}
.search-box input {
  width: 100%;
  padding: 0.6rem 0.9rem 0.6rem 2.4rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  min-height: 42px;
}
.search-box svg,
.search-box > .icon {
  position: absolute; left: 0.75rem; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--text-light);
}

/* Avatar */
.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(86,183,120,0.3);
}
.user-chip {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  border-radius: 999px;
  background: var(--bg-alt);
}
.user-chip .name { font-weight: 700; font-size: 0.88rem; }
.user-chip .sub { font-size: 0.72rem; color: var(--text-muted); }

/* Pill filters */
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }

/* Assignment notifications (producer / farmer) */
.notify-wrap { position: relative; }
.notify-btn {
  position: relative;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-alt) 100%);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.12s;
}
.notify-btn:hover {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: 0 2px 10px rgba(86, 183, 120, 0.18);
  transform: translateY(-1px);
}
.notify-wrap.has-unread .notify-btn {
  border-color: rgba(86, 183, 120, 0.5);
  background: var(--green-soft);
}
.notify-wrap.is-open .notify-btn {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: 0 0 0 3px rgba(86, 183, 120, 0.22);
  transform: none;
}
.notify-btn .icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.notify-wrap.has-unread .notify-btn .icon,
.notify-btn:hover .icon,
.notify-wrap.is-open .notify-btn .icon {
  color: var(--green-deep);
}
.notify-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e85555 0%, var(--danger) 100%);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  border: 2px solid var(--surface);
  box-shadow: 0 1px 4px rgba(214, 69, 69, 0.35);
  pointer-events: none;
}
.notify-wrap.has-unread .notify-badge {
  animation: notify-badge-pulse 2.2s ease-in-out infinite;
}
@keyframes notify-badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.notify-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  width: min(360px, calc(100vw - 1.5rem));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(28, 36, 40, 0.12);
  z-index: 80;
  overflow: visible;
  animation: notify-panel-in 0.2s ease-out;
}
.notify-panel::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 14px;
  width: 10px;
  height: 10px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
  border-radius: 2px 0 0 0;
}
@keyframes notify-panel-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.notify-wrap.is-open .notify-panel { display: block; }
.notify-panel-head {
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: linear-gradient(180deg, var(--green-soft) 0%, var(--surface) 100%);
  border-radius: var(--radius) var(--radius) 0 0;
}
.notify-head-left {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.notify-head-left .icon {
  width: 18px;
  height: 18px;
  color: var(--green-deep);
}
.notify-panel-head strong { font-size: 0.9rem; font-weight: 600; }
.notify-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-alt);
}
.notify-wrap.has-unread .notify-count {
  color: var(--green-deep);
  background: rgba(86, 183, 120, 0.2);
}
.notify-list {
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
}
.notify-item {
  padding: 0.85rem 0.95rem 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--green);
  background: var(--surface);
  transition: background 0.12s;
}
.notify-item:hover { background: var(--bg); }
.notify-item:last-child { border-bottom: none; }
.notify-item .notify-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.notify-item .notify-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.notify-item .notify-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  line-height: 1.45;
  padding-left: 0.95rem;
}
.notify-item .notify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-left: 0.95rem;
}
.notify-empty {
  padding: 1.35rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.notify-empty::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 1rem;
  font-weight: 700;
}

.request-sent-notice {
  border-color: rgba(86, 183, 120, 0.45);
  background: var(--green-soft);
  color: var(--green-deep);
}
.request-sent-notice strong { color: var(--green-deep); }

/* Delivery QR (Active requests) */
.delivery-qr-btn .icon { width: 16px; height: 16px; }
.modal.modal-qr {
  width: min(100%, 400px);
  padding: 1.25rem 1.25rem 1.15rem;
}
.qr-role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin: 0.75rem 0 1rem;
}
.qr-role-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.3;
  min-height: 0;
}
.qr-role-btn strong {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 600;
}
.qr-role-btn:hover {
  border-color: var(--green);
  background: var(--green-soft);
}
.qr-role-btn.active {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px var(--green);
  color: var(--green-deep);
}
.qr-role-btn.active strong { color: var(--green-deep); }
.qr-stage {
  text-align: center;
  margin-bottom: 0.85rem;
}
.qr-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 168px;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.fake-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--green-deep);
  user-select: none;
}
.fake-qr.mode-pickup { color: var(--green-deep); }
.fake-qr.mode-receiver { color: var(--blue-dark); }
.qr-caption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.qr-caption strong { color: var(--text); display: block; margin-bottom: 0.15rem; }
.qr-steps {
  display: flex;
  gap: 0.35rem;
  margin: 0 0 0.9rem;
}
.qr-step {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  padding: 0.35rem 0.25rem;
  border-radius: 6px;
  background: var(--bg-alt);
  border: 1px solid transparent;
}
.qr-step.on {
  color: var(--green-deep);
  background: var(--green-soft);
  border-color: #C8E6D3;
}
.qr-step.done {
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-color: #C5DCF5;
}
.delivery-progress {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.delivery-progress .dp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  flex-shrink: 0;
}
.delivery-progress .dp-dot.on { background: var(--green); }
.delivery-progress .dp-dot.done { background: var(--blue); }
