/* Basic layout and status styling for the MVP */
/* Cache-bust marker: 2026-01-22 */
:root {
  --bg: #edf1f6;
  --ink: #1f2937;
  --muted: #6b7280;
  --brand: #f97316;
  --accent: #1d4ed8;
  --card: #ffffff;
  --border: #e5e7eb;
  --danger: #b42318;
  --ok: #027a48;
  --warn: #b54708;
  --info: #175cd3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

header {
  padding: 16px 20px;
  background: #1f2a3a;
  color: #f9fafb;
}

header h1 {
  margin: 0;
  font-size: 20px;
}

nav {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

nav a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 14px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: 1fr;
}

@media (min-width: 980px) {
  .grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  background: #f9fafb;
}

button {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
}

button.secondary {
  background: #2d2d2d;
}

button.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
}

button.link-button {
  background: transparent;
  color: var(--muted);
  padding: 4px 0;
  font-weight: 500;
  font-size: 12px;
  text-align: left;
}

button.link-button:hover {
  color: var(--accent);
  text-decoration: underline;
}

.link-inline {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}

.link-inline:hover {
  color: var(--accent);
  text-decoration: underline;
}

.grid-span {
  grid-column: 1 / -1;
}

.collapse-card {
  border: none;
}

.collapse-card summary {
  list-style: none;
  cursor: pointer;
}

.collapse-card summary::-webkit-details-marker {
  display: none;
}

.collapse-card summary::after {
  content: "Ver";
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  float: right;
}

.collapse-card[open] summary::after {
  content: "Ocultar";
}

.collapse-body {
  margin-top: 8px;
}

.form-msg {
  margin-top: 8px;
  font-size: 13px;
}

.form-msg.is-error {
  color: var(--danger);
}

.form-msg.is-success {
  color: var(--ok);
}

button:disabled,
button.secondary:disabled {
  background: #bdbdbd;
  cursor: not-allowed;
}

button.ghost:disabled {
  border-color: #d0d0d0;
  color: #9a9a9a;
  cursor: not-allowed;
}

.is-hidden {
  display: none !important;
}

.schedule-card {
  border: 1px solid rgba(249, 115, 22, 0.25);
  background: linear-gradient(145deg, #ffffff 0%, #fff7ed 100%);
  position: relative;
  overflow: hidden;
  animation: scheduleFadeUp 0.35s ease-out;
}

.schedule-card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.18), rgba(249, 115, 22, 0));
}

.schedule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.schedule-header h2 {
  margin: 0 0 6px;
}

.schedule-badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: #fed7aa;
  color: #9a3412;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.schedule-options {
  display: grid;
  gap: 12px;
}

.schedule-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(249, 115, 22, 0.25);
  background: #ffffff;
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.schedule-option input[type="radio"] {
  accent-color: #f97316;
  width: 18px;
  height: 18px;
}

.schedule-option label {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.schedule-option .schedule-meta {
  font-size: 12px;
  color: var(--muted);
}

.schedule-option select {
  max-width: 180px;
  background: #ffffff;
  border: 1px solid rgba(249, 115, 22, 0.35);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.schedule-option select:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.18);
  transform: translateY(-1px);
}

.schedule-option.is-active {
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.18);
  transform: translateY(-2px);
}

.schedule-option.is-disabled {
  opacity: 0.6;
}

.schedule-option.is-disabled select {
  background: #f3f4f6;
  cursor: not-allowed;
}

.input-help {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.schedule-preview {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(249, 115, 22, 0.08);
  color: #9a3412;
  font-size: 13px;
  font-weight: 600;
}

@keyframes scheduleFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-mini {
  padding: 5px 10px!important;
  font-size: 10px!important;
  line-height: 1.1;
  border-radius: 20px!important;
}

.btn-mini.edit {
  background:#819fb5 !important;
  color: #fff!important;
}

.item-editor {
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed var(--border);
  border-radius: 6px;
  background: #fafafa;
}

.item-editor input {
  flex: 1;
  min-width: 160px;
}

.item-edit-list {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.item-edit-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
}

.status-CREADA { background: #d7ebff; color: #175cd3; }
.status-LISTA_PARA_ENVIO { background: #fff4cc; color: #b54708; }
.status-EN_TRANSITO { background: #ffe2c3; color: #b54708; }
.status-ALMACENADA { background: #d3f8df; color: #027a48; }
.status-SOLICITADA_DEVOLUCION { background: #e0e7ff; color: #3538cd; }
.status-DEVUELTA { background: #e2e2e2; color: #4b4b4b; }

.muted {
  color: var(--muted);
  font-size: 13px;
}

.cost-invoice {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(31, 41, 55, 0.02);
  overflow: hidden;
  margin-bottom: 10px;
}

.cost-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px dashed var(--border);
  background: linear-gradient(120deg, #fff4e6 0%, #fffaf5 100%);
}

.cost-header h3 {
  margin: 0;
}

.cost-table {
  background: #f8fafc;
}

.cost-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.cost-row:last-child {
  border-bottom: none;
}

.cost-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.cost-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  color: #b54708;
  fill: none;
  stroke: currentColor;
}

.cost-label {
  flex: 1 1 auto;
  color: var(--muted);
  font-size: 13px;
}

.cost-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.cost-row.cost-total {
  background: #fff3e6;
}

.cost-row.cost-total .cost-label {
  color: #b54708;
}

.cost-row.cost-total .cost-value {
  color: #b54708;
  font-size: 16px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--border);
}

.admin-box-cell {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  vertical-align: top;
}

.admin-box-qr {
  flex: 0 0 auto;
  width: 64px;
}

.admin-box-qr canvas {
  display: block;
  border: 1px solid var(--border);
  background: #fff;
}

.admin-box-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.admin-box-title {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.admin-box-lines {
  display: grid;
  gap: 2px;
  font-size: 12px;
  color: var(--muted);
}

.admin-box-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-items-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--ink);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.admin-items-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.admin-items-toggle.is-open svg,
.admin-items-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.admin-box-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-box-actions {
  margin-top: 8px;
}

.admin-box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px 12px;
}

.admin-box-info {
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #eef0f4;
  background: #fbfcfe;
}

.admin-box-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-box-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.admin-box-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.admin-box-sub {
  font-size: 12px;
  color: var(--muted);
}

.badge {
  background: #f0f0f0;
  color: #333;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.admin-status-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.admin-status-summary .status-pill {
  font-size: 11px;
  padding: 2px 8px;
}

.qr-box {
  width: 140px;
  height: 140px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.notice {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: 13px;
}

.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.send-select {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: var(--ink);
}

.send-select input {
  width: auto;
  margin: 0;
}

.send-select input:disabled {
  accent-color: #bdbdbd;
}

.send-select.disabled {
  color: #9a9a9a;
}

.box-checks {
  margin-top: 10px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.box-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.box-title-row h3 {
  margin: 0;
}

.box-name-with-image {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.box-name-image {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.big-select {
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  width: 100%;
}

.big-select input {
  width: 16px;
  height: 16px;
}

.send-select.big-select {
  justify-content: flex-start;
  font-weight: 600;
  border: none;
  box-shadow: 0 10px 16px rgba(15, 23, 42, 0.12);
}

.send-select.big-select input {
  accent-color: #16a34a;
}

.send-select.big-select.return {
  background: #dbeafe;
  color: #1d4ed8;
}

.send-select.big-select.return input {
  accent-color: #2563eb;
}

.send-select.big-select.send {
  background: #dcfce7;
  color: #15803d;
}

.send-select.big-select.send input {
  accent-color: #16a34a;
}

.send-select.big-select.disabled {
  background: #f1f5f9;
  color: #94a3b8;
  box-shadow: none;
}

.send-select.big-select.disabled input {
  accent-color: #94a3b8;
}

[data-items-list] li {
  background: #ffffff;
  border-radius: 8px;
  padding: 6px 10px;
  box-shadow: 0 8px 14px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
}

[data-items-list] li + li {
  margin-top: 6px;
}

.footer {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 20px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 30;
}

.modal.is-open {
  display: flex;
}

.modal-card {
  width: min(520px, 100%);
  margin: 0;
}

.modal-info {
  display: grid;
  gap: 10px;
  margin: 10px 0 12px;
}

.modal-info-row {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}

.modal-info-label {
  font-weight: 600;
  color: #111827;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.4px;
}

.modal-info-value {
  color: #111827;
  font-size: 14px;
}

.modal-info-sub {
  font-size: 12px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

/* Dashboard layout inspired by reference */

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f97316;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.6px;
}

.brand-name {
  font-size: 14px;
  letter-spacing: 0.3px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.top-nav a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.top-nav a:hover {
  color: #fff;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.user-avatar {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f97316;
  display: inline-block;
}

body[data-page="dashboard"] .container {
  max-width: 1200px;
}

.dashboard {
  padding-top: 24px;
  padding-bottom: 40px;
}

.dashboard-header {
  margin-bottom: 16px;
}

.dashboard-header h2 {
  margin: 6px 0 8px;
  font-size: 24px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.column-left,
.column-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

body[data-page="dashboard"] .card {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.card-head h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.card-head .muted {
  margin: 0;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  color: #6b7280;
  margin: 0;
}

.stats-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}

.stats-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #4b5563;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
}

.stats-list strong {
  font-size: 14px;
  color: #111827;
}

.stat-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #f97316;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 12px;
  height: 12px;
}

.stat-foot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.stat-foot .label {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  color: #6b7280;
}

.stat-foot .value {
  margin: 4px 0 0;
  font-weight: 700;
  font-size: 15px;
  color: #111827;
}

.mini-card .label {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  color: #6b7280;
}

.mini-card .value {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 700;
}

.list-card #boxes .card {
  margin-bottom: 12px;
  box-shadow: none;
  border-color: #e5e7eb;
}

.list-scroll {
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
  scroll-behavior: smooth;
}

.list-scroll .card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.list-scroll .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 18px rgba(15, 23, 42, 0.12);
}

.action-card .inline-actions {
  margin-top: 12px;
}

.primary-action {
  background: #fff7ed;
  border-color: #fed7aa;
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  background: #f97316;
  color: #fff;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 600;
  margin-top: 12px;
}

.action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
}

.action-icon svg {
  width: 16px;
  height: 16px;
}

.hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: #6b7280;
}

.label {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  color: #6b7280;
}

.small {
  font-size: 12px;
}

.profile-grid {
  margin-top: 8px;
}

.payment-active {
  margin-top: 10px;
}

.payment-breakdown {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.payment-breakdown p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  font-size: 13px;
}

.payment-history {
  margin-top: 16px;
}

.payment-help {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.payment-steps {
  margin: 8px 0 0 18px;
  display: grid;
  gap: 6px;
  color: #4b5563;
}

.portal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  margin-top: 10px;
}

.portal-button.is-loading,
.portal-button.is-disabled {
  pointer-events: none;
  opacity: 0.7;
}

.portal-button:hover {
  filter: brightness(0.95);
}

.payment-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
}

.payment-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.payment-list span {
  display: block;
}

.faq-card .card-head {
  margin-bottom: 6px;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item summary {
  font-weight: 600;
}

.faq-item .collapse-body p {
  margin: 6px 0 0;
}

.contact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.contact-header h2 {
  margin: 0 0 6px;
}

.contact-select {
  min-width: 220px;
}

.contact-select label {
  margin-bottom: 4px;
}

.contact-invoice {
  margin: 0;
}

.payment-cta {
  width: 100%;
  padding: 16px 18px;
  font-size: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.payment-cta:hover {
  filter: brightness(1.03);
}

.note-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
  color: #4b5563;
  font-size: 13px;
}

.admin-users-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.admin-user-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
  display: grid;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-user-card.is-active {
  border-color: #93c5fd;
  box-shadow: 0 10px 16px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.admin-user-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.admin-user-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f3f4f6;
  font-size: 11px;
  color: #374151;
}

.carrier-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.carrier-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: #ffffff;
  display: grid;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.carrier-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.1);
}

.carrier-card.is-active {
  border-color: var(--accent);
  box-shadow: 0 10px 18px rgba(29, 78, 216, 0.16);
}

.carrier-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.carrier-tag {
  background: #f1f5f9;
  color: #1f2937;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.carrier-tag.active {
  background: #dcfce7;
  color: #15803d;
}

.carrier-tag.inactive {
  background: #fee2e2;
  color: #991b1b;
}

.carrier-active {
  align-items: center;
  gap: 8px;
}

.carrier-active input {
  width: auto;
}

body[data-page="dashboard"] button {
  background: #f97316;
  border-radius: 6px;
  font-weight: 600;
}

body[data-page="dashboard"] button.secondary {
  background: #111827;
}

body[data-page="dashboard"] button.ghost {
  border: 1px solid #d1d5db;
  color: #1f2937;
}

body[data-page="dashboard"] button:disabled,
body[data-page="dashboard"] button.secondary:disabled {
  background: #cbd5e1;
  color: #ffffff;
}

body[data-page="dashboard"] button.ghost:disabled {
  border-color: #e5e7eb;
  color: #9ca3af;
}

.btn-quick {
  background: #f97316;
}

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

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .list-scroll {
    max-height: none;
  }
}

@media (max-width: 680px) {
  .dashboard-header h2 {
    font-size: 20px;
  }

  .top-nav {
    gap: 10px;
  }

  .top-nav a {
    font-size: 12px;
  }
}
