:root {
  --color-bg: #f5f6f2;
  --color-surface: #ffffff;
  --color-surface-soft: #f1f4ed;
  --color-border: #d9e0d2;
  --color-border-strong: #c5d0ba;
  --color-text: #1f241e;
  --color-muted: #6a7368;
  --color-brand: #1f4a2d;
  --color-brand-soft: #edf4ef;
  --color-accent: #f4ce18;
  --color-success: #197447;
  --color-danger: #b33d3d;
  --shadow-sm: 0 10px 28px rgba(26, 45, 31, 0.06);
  --shadow-md: 0 16px 36px rgba(26, 45, 31, 0.1);
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --nav-height: 78px;
  --font-base: "Outfit", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background:
    radial-gradient(circle at top right, rgba(244, 206, 24, 0.18), transparent 20rem),
    linear-gradient(180deg, #fafbf8 0%, var(--color-bg) 100%);
}

button,
input,
select,
a {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.admin-app {
  width: min(1180px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 16px 0 calc(var(--nav-height) + 28px);
}

.admin-topbar,
.panel,
.metric-card,
.order-card,
.driver-card,
.detail-card,
.empty-card,
.selected-order-pill {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
}

.admin-topbar,
.panel,
.order-card,
.driver-card,
.detail-card {
  padding: var(--space-5);
}

.admin-topbar {
  display: grid;
  gap: var(--space-4);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-accent);
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy h1 {
  font-size: clamp(1.45rem, 6vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.brand-subcopy,
.panel-copy,
.panel-feedback,
.order-meta,
.driver-meta,
.detail-copy,
.detail-notes,
.detail-state,
.metric-subtext,
.timeline-note,
label span {
  color: var(--color-muted);
  line-height: 1.5;
}

.selected-order-pill {
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  color: var(--color-brand);
  font-weight: 700;
}

.guide-callout,
.guide-card,
.checklist-card,
.help-balloon,
.group-tip,
.detail-guide-card {
  border-radius: 18px;
  border: 1px solid var(--color-border);
}

.guide-callout {
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(248, 250, 245, 0.96) 0%, rgba(255, 255, 255, 0.96) 100%);
  display: grid;
  gap: 8px;
}

.guide-callout p,
.guide-card p,
.checklist-card li,
.help-balloon p,
.group-tip,
.detail-guide-card p {
  color: var(--color-muted);
  line-height: 1.45;
}

.guide-callout-neutral {
  border-color: rgba(31, 74, 45, 0.12);
  background: linear-gradient(180deg, rgba(244, 248, 241, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.guide-strip,
.guide-checklist,
.detail-guide-shell {
  display: grid;
  gap: var(--space-4);
}

.guide-strip-duo,
.guide-strip-triple {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.guide-card {
  padding: 16px 18px;
  background: #fff;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.guide-card-orders {
  background: linear-gradient(180deg, #fff8dc 0%, #fffef7 100%);
  border-color: rgba(244, 206, 24, 0.28);
}

.guide-card-accounts {
  background: linear-gradient(180deg, #edf5ff 0%, #fbfdff 100%);
  border-color: rgba(40, 117, 208, 0.22);
}

.guide-card-neutral,
.detail-guide-card {
  background: linear-gradient(180deg, rgba(241, 244, 237, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.guide-icon {
  min-width: 34px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.guide-card-orders .guide-icon {
  background: #f4ce18;
  color: var(--color-brand);
}

.guide-card-accounts .guide-icon {
  background: #2875d0;
}

.guide-checklist {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.checklist-card {
  padding: 16px 18px;
  background: #fff;
  display: grid;
  gap: 10px;
}

.checklist-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

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

.notifications-status {
  margin-top: 12px;
  color: var(--color-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.notifications-status.is-success {
  color: var(--color-success);
}

.notifications-status.is-error {
  color: var(--color-danger);
}

.pwa-pocket-button {
  position: fixed;
  right: 0;
  top: 58%;
  z-index: 74;
  width: 40px;
  height: 46px;
  padding: 0;
  transform: translateY(-50%);
  border-radius: 18px 0 0 18px;
  border: 1px solid rgba(31, 74, 45, 0.14);
  border-right: 0;
  background: var(--color-brand);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(20, 30, 18, 0.2);
  font-size: 0.78rem;
  font-weight: 900;
}

.pwa-pocket-button.is-ready {
  background: var(--color-success);
}

.pwa-pocket-panel[hidden] {
  display: none;
}

.pwa-pocket-panel {
  position: fixed;
  right: 12px;
  bottom: 72px;
  z-index: 92;
  width: min(310px, calc(100vw - 24px));
}

.pwa-pocket-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(31, 74, 45, 0.12);
  background: #ffffff;
  box-shadow: 0 20px 56px rgba(20, 30, 18, 0.18);
}

.pwa-pocket-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.pwa-pocket-head h2 {
  margin: 2px 0 0;
  font-size: 1rem;
  line-height: 1.1;
  color: var(--color-brand);
}

.pwa-pocket-copy {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.pwa-pocket-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pwa-pocket-actions #install-app-button {
  grid-column: 1 / -1;
}

.notifications-floating-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(31, 74, 45, 0.14);
  background: var(--color-brand);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(20, 30, 18, 0.16);
  font-size: 0.78rem;
  font-weight: 900;
}

.notifications-floating-button:disabled {
  background: #e9eee5;
  color: var(--color-muted);
  box-shadow: none;
}

.notifications-floating-button.is-light {
  background: #ffffff;
  color: var(--color-brand);
  border-color: #dfe7da;
}

.notifications-floating-status[hidden] {
  display: none;
}

.notifications-floating-status {
  margin: 0;
  padding: 9px 12px;
  border-radius: 12px;
  background: #f7faf4;
  color: var(--color-brand);
  border: 1px solid #dfe7da;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.35;
}

.notifications-floating-status.is-error {
  color: var(--color-danger);
}

.notifications-floating-status.is-success {
  color: var(--color-success);
}

.order-alarm-banner[hidden] {
  display: none;
}

.order-alarm-banner {
  position: fixed;
  left: 50%;
  top: 14px;
  z-index: 95;
  width: min(560px, calc(100vw - 24px));
  min-height: 68px;
  padding: 12px 12px 12px 16px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  border: 2px solid #ffb000;
  background: #fff2bd;
  color: #3b2800;
  box-shadow: 0 18px 60px rgba(120, 72, 0, 0.28);
}

.order-alarm-banner strong {
  display: block;
  font-size: 1rem;
  font-weight: 950;
}

.order-alarm-banner p {
  margin-top: 2px;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
}

.order-alarm-stop {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: #1f4a2d;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
}

.install-app-modal[hidden] {
  display: none;
}

.install-app-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
}

.install-app-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 20, 17, 0.52);
}

.install-app-card {
  position: relative;
  width: min(460px, 100%);
  max-height: min(680px, calc(100vh - 36px));
  overflow: auto;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(31, 74, 45, 0.12);
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(10, 20, 12, 0.28);
  display: grid;
  gap: 14px;
}

.install-app-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.install-app-eyebrow {
  margin: 0 0 4px;
  color: var(--color-brand);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.install-app-head h2 {
  margin: 0;
  font-size: 1.22rem;
  letter-spacing: 0;
}

.install-app-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--color-surface-soft);
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 900;
}

.install-app-copy {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.install-app-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.install-steps {
  display: grid;
  gap: 8px;
}

.install-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px;
  border: 1px solid #e5ece1;
  border-radius: 12px;
  background: #f8faf6;
}

.install-step span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--color-brand);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
}

.install-step p {
  margin: 0;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.topbar-meta-row {
  display: grid;
  gap: 14px;
}

.utility-button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-soft);
  color: var(--color-brand);
  font-weight: 800;
  border: 1px solid var(--color-border);
}

.admin-system-nav {
  margin: 16px 0 18px;
  padding: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
}

.admin-system-link {
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  color: var(--color-brand);
  font-weight: 800;
}

.admin-system-link.is-active {
  background: var(--color-brand);
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 74, 45, 0.16);
}

.mobile-orders-bar,
.mobile-step-nav {
  display: none;
}

.mini-nav {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface-soft);
  overflow: hidden;
}

.mini-nav summary {
  list-style: none;
  min-height: 42px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-brand);
  font-weight: 800;
  cursor: pointer;
}

.mini-nav summary::-webkit-details-marker {
  display: none;
}

.mini-nav summary::after {
  content: '+';
  font-size: 1rem;
}

.mini-nav[open] summary::after {
  content: '-';
}

.mini-nav-menu {
  display: grid;
  gap: 1px;
  padding: 0 10px 10px;
}

.mini-nav-menu a {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  background: #fff;
  color: var(--color-brand);
  font-weight: 700;
}

.top-tabs {
  display: flex;
  gap: 10px;
  padding: 12px 0 8px;
}

.top-tab {
  min-height: 42px;
  flex: 1;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--color-border);
  color: var(--color-brand);
  font-weight: 800;
}

.top-tab.is-active {
  background: var(--color-brand);
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 74, 45, 0.16);
}

.admin-pages {
  position: relative;
}

.admin-page {
  display: none;
}

.admin-page.is-active {
  display: block;
}

.panel-head {
  margin-bottom: var(--space-4);
}

.panel-head h2 {
  font-size: clamp(1.15rem, 4vw, 1.55rem);
  letter-spacing: -0.04em;
}

.compact-head {
  margin-bottom: 0;
}

.report-grid,
.orders-list,
.drivers-list,
.timeline-grid,
.detail-items-list,
.quick-actions,
.steps-grid {
  display: grid;
  gap: var(--space-3);
}

.orders-groups {
  display: grid;
  gap: var(--space-4);
}

.command-center-panel {
  display: grid;
  gap: var(--space-4);
}

.command-center-grid,
.command-alerts-grid,
.attention-list {
  display: grid;
  gap: var(--space-4);
}

.command-center-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.command-alerts-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.command-alerts-panel {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 244, 237, 0.98) 100%);
  display: grid;
  gap: 14px;
}

.attention-link {
  display: block;
}

.attention-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--color-border);
  background: #fff;
  display: grid;
  gap: 8px;
}

.attention-card.is-warning {
  border-color: rgba(244, 206, 24, 0.38);
  background: #fff8dc;
}

.attention-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.attention-card p,
.attention-card small {
  color: var(--color-muted);
  line-height: 1.4;
}

.attention-action {
  min-height: 38px;
  margin-top: 2px;
}

.orders-group {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 248, 242, 0.96) 100%);
}

.orders-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.orders-group-head h3 {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.group-tip {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  border: 1px dashed rgba(31, 74, 45, 0.14);
  font-size: 0.84rem;
}

.group-copy {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.4;
  max-width: 28ch;
}

.group-count {
  min-width: 34px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-soft);
  color: var(--color-brand);
  font-weight: 800;
  font-size: 0.82rem;
}

.orders-group-step-1 {
  border-color: rgba(244, 206, 24, 0.28);
}

.orders-group-step-2 {
  border-color: rgba(63, 154, 93, 0.22);
}

.orders-group-step-3 {
  border-color: rgba(40, 117, 208, 0.2);
}

.orders-group-step-4 {
  border-color: rgba(241, 115, 47, 0.22);
}

.report-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card {
  padding: var(--space-4);
  border-radius: var(--radius-md);
}

.metric-card.is-highlight {
  background: linear-gradient(180deg, #1f4a2d 0%, #29593a 100%);
  border-color: rgba(31, 74, 45, 0.2);
  color: #fff;
}

.metric-card.is-highlight p,
.metric-card.is-highlight .metric-subtext {
  color: rgba(255, 255, 255, 0.82);
}

.metric-card p {
  font-size: 0.84rem;
}

.metric-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.metric-card.wide {
  grid-column: 1 / -1;
}

.metric-subtext {
  margin-top: 8px;
  font-size: 0.85rem;
}

.filter-form,
.driver-form,
.assign-form,
.status-form,
.payment-form {
  display: grid;
  gap: var(--space-3);
}

.field-inline,
label {
  display: grid;
  gap: 8px;
}

label span {
  font-size: 0.86rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--color-border-strong);
  background: #fff;
  color: var(--color-text);
}

input:focus,
select:focus {
  outline: 0;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 4px rgba(31, 74, 45, 0.08);
}

.inline-toggle {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.inline-toggle input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.button-primary,
.orders-list button,
.driver-form button,
.assign-form button,
.status-form button,
.payment-form button {
  min-height: 48px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: var(--color-brand);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(31, 74, 45, 0.16);
}

.button-ghost {
  min-height: 48px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-soft);
  color: var(--color-brand);
  font-weight: 800;
  border: 1px solid var(--color-border);
}

.button-danger {
  min-height: 48px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: rgba(179, 61, 61, 0.12);
  color: var(--color-danger);
  font-weight: 800;
  border: 1px solid rgba(179, 61, 61, 0.18);
}

.panel-feedback {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-soft);
  margin-bottom: var(--space-4);
}

.panel-feedback.is-error {
  color: var(--color-danger);
  border-color: rgba(179, 61, 61, 0.18);
  background: rgba(255, 242, 242, 0.96);
}

.panel-feedback.is-success {
  color: var(--color-success);
  border-color: rgba(25, 116, 71, 0.18);
  background: rgba(240, 255, 246, 0.96);
}

.empty-card {
  padding: var(--space-5);
  text-align: center;
  color: var(--color-muted);
}

.order-card,
.driver-card {
  display: grid;
  gap: 10px;
}

.order-card-header,
.driver-card-header,
.detail-code-row,
.detail-summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.status-badge {
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  background: #eef2eb;
  color: var(--color-brand);
}

.status-badge.status-nuevo { background: #f1f4ef; color: #53644f; }
.status-badge.status-confirmado { background: #ecf7ef; color: #1f6b3e; }
.status-badge.status-en_preparacion { background: #fff6de; color: #926400; }
.status-badge.status-listo { background: #e9f5ff; color: #165b8a; }
.status-badge.status-en_ruta { background: #efe9ff; color: #5f39a3; }
.status-badge.status-entregado { background: #e5f8ed; color: #177246; }
.status-badge.status-cancelado { background: #fdecec; color: #a13f3f; }
.status-badge.status-pagado { background: #e5f8ed; color: #177246; }
.status-badge.status-pendiente { background: #fff6de; color: #926400; }

.order-card.is-scheduled {
  border-style: dashed;
}

.order-chip-scheduled,
.order-chip-receipt,
.age-chip.is-scheduled {
  background: #fff8dc;
  color: #735400;
  border: 1px solid rgba(244, 206, 24, 0.34);
}

.detail-guide-card-scheduled {
  background: linear-gradient(180deg, #fff8dc 0%, #fffef7 100%);
  border-color: rgba(244, 206, 24, 0.28);
}

.order-card.is-selected {
  border-color: rgba(31, 74, 45, 0.26);
  box-shadow: var(--shadow-md);
}

.order-card-main {
  display: grid;
  gap: 4px;
}

.order-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-card-title {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.order-status-icon,
.mini-info-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

.order-status-icon svg,
.mini-info-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-card-code {
  font-size: 1.05rem;
  font-weight: 800;
}

.order-card-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-chip {
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-soft);
  color: var(--color-brand);
  font-size: 0.8rem;
  font-weight: 700;
}

.order-card .button-primary {
  margin-top: 4px;
}

.order-card.is-status-nuevo {
  background: #fff8d8;
  border-color: rgba(244, 206, 24, 0.5);
}

.order-card.is-status-confirmado,
.order-card.is-status-en_preparacion {
  background: #eaf4ff;
  border-color: rgba(90, 153, 230, 0.36);
}

.order-card.is-status-listo {
  background: #f4eaff;
  border-color: rgba(155, 96, 220, 0.34);
}

.order-card.is-status-en_ruta {
  background: #e7f8ee;
  border-color: rgba(68, 174, 104, 0.36);
}

.order-card.is-status-cancelado {
  background: #fdecec;
  border-color: rgba(179, 61, 61, 0.28);
}

.order-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 94px 78px;
  gap: 10px;
  margin-top: 4px;
}

.button-delete-order {
  width: auto;
  white-space: nowrap;
  padding: 0 10px;
}

.delete-detail-order-button {
  margin-top: 8px;
}

.summary-badges,
.role-chip-row,
.access-session-actions,
.pagination-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-form-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}

.pedidos-layout,
.pedidos-workspace,
.access-grid,
.role-cards,
.workflow-strip {
  display: grid;
  gap: var(--space-4);
}

.pedidos-workspace {
  align-items: start;
}

.workflow-strip {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.workflow-card,
.role-card,
.access-session-box {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-soft);
  display: grid;
  gap: 10px;
}

.workflow-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  align-content: start;
}

.workflow-card::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 5px;
  border-radius: 999px;
  background: rgba(31, 74, 45, 0.14);
}

.workflow-card strong {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.workflow-card p {
  font-size: 1rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.help-balloon {
  margin-top: auto;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: grid;
  gap: 6px;
}

.help-balloon strong {
  font-size: 0.86rem;
  letter-spacing: -0.02em;
}

.help-balloon p {
  font-size: 0.86rem;
}

.help-balloon-step-1 {
  border-color: rgba(244, 206, 24, 0.3);
}

.help-balloon-step-2 {
  border-color: rgba(63, 154, 93, 0.22);
}

.help-balloon-step-3 {
  border-color: rgba(40, 117, 208, 0.22);
}

.help-balloon-step-4 {
  border-color: rgba(241, 115, 47, 0.24);
}

.workflow-card-step-1 {
  background: linear-gradient(180deg, #fff8dc 0%, #fffef7 100%);
}

.workflow-card-step-1::after,
.orders-group-step-1 .group-count {
  background: #f4ce18;
  color: var(--color-brand);
}

.workflow-card-step-2 {
  background: linear-gradient(180deg, #edf9f0 0%, #fbfefb 100%);
}

.workflow-card-step-2::after,
.orders-group-step-2 .group-count {
  background: #3f9a5d;
  color: #fff;
}

.workflow-card-step-3 {
  background: linear-gradient(180deg, #edf5ff 0%, #fbfdff 100%);
}

.workflow-card-step-3::after,
.orders-group-step-3 .group-count {
  background: #2875d0;
  color: #fff;
}

.workflow-card-step-4 {
  background: linear-gradient(180deg, #fff1e8 0%, #fffaf7 100%);
}

.workflow-card-step-4::after,
.orders-group-step-4 .group-count {
  background: #f1732f;
  color: #fff;
}

.workflow-step,
.role-kicker {
  width: fit-content;
  min-height: 30px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--color-brand);
  font-size: 0.8rem;
  font-weight: 800;
}

.role-head-copy {
  display: grid;
  gap: 8px;
}

.role-spot {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.role-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  gap: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.role-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(31, 74, 45, 0.1);
}

.role-card::after {
  content: '';
  position: absolute;
  inset: auto 22px 0 22px;
  height: 5px;
  border-radius: 999px;
  background: rgba(31, 74, 45, 0.14);
}

.role-card-orders,
.role-card-local {
  border-color: rgba(244, 206, 24, 0.28);
  background: linear-gradient(180deg, #fff8dc 0%, #fffef7 100%);
}

.role-card-orders .role-spot,
.role-card-orders .role-enter-button,
.role-card-local .role-spot,
.role-card-local .role-enter-button {
  background: linear-gradient(180deg, #f4ce18 0%, #e2b70d 100%);
  color: var(--color-brand);
}

.role-card-orders::after,
.role-card-local::after {
  background: #f4ce18;
}

.role-card-accounts,
.role-card-entregas {
  border-color: rgba(40, 117, 208, 0.22);
  background: linear-gradient(180deg, #edf5ff 0%, #fbfdff 100%);
}

.role-card-accounts .role-spot,
.role-card-accounts .role-enter-button,
.role-card-entregas .role-spot,
.role-card-entregas .role-enter-button {
  background: linear-gradient(180deg, #2875d0 0%, #1d5fae 100%);
  color: #fff;
}

.role-card-accounts::after,
.role-card-entregas::after {
  background: #2875d0;
}

.role-card-administrador {
  border-color: rgba(31, 74, 45, 0.22);
  background: linear-gradient(180deg, #eef8f1 0%, #fbfdfb 100%);
}

.role-card-administrador .role-spot,
.role-card-administrador .role-enter-button {
  background: linear-gradient(180deg, #1f4a2d 0%, #173722 100%);
  color: #fff;
}

.role-card-administrador::after {
  background: #1f4a2d;
}

.role-card.is-active {
  border-width: 2px;
  box-shadow: 0 20px 42px rgba(31, 74, 45, 0.12);
}

.role-active-note {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(31, 74, 45, 0.1);
  color: var(--color-brand);
  font-size: 0.82rem;
  font-weight: 800;
}

.role-enter-button {
  min-width: 168px;
  width: auto;
  box-shadow: 0 16px 28px rgba(31, 74, 45, 0.12);
}

.access-login-box {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(31, 74, 45, 0.14);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff, rgba(247, 251, 246, 0.92));
}

.access-login-head {
  margin-bottom: 12px;
}

.access-login-form {
  display: grid;
  gap: 12px;
}

.access-login-form .button-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.workflow-panel {
  border-color: rgba(31, 74, 45, 0.14);
}

.compact-turn-panel {
  padding-bottom: 18px;
}

.turn-live-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.turn-live-actions .utility-button {
  width: auto;
  min-height: 40px;
}

.compact-workflow-strip {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.compact-workflow-card {
  min-height: 118px;
  padding: 14px;
}

.compact-workflow-card strong {
  font-size: 1.02rem;
}

.compact-workflow-card p {
  font-size: 0.9rem;
}

.admin-guide-panel {
  display: grid;
  gap: 18px;
}

.workflow-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.workflow-caption {
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #245a37 0%, #1f4a2d 100%);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.role-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.role-card h3 {
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.access-panel {
  align-content: start;
}

.access-grid-single {
  grid-template-columns: 1fr;
}

.admin-access-app .admin-topbar {
  position: static;
}

.admin-access-app .brand-logo {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  margin: 0;
  transform: none;
}

.admin-access-app .brand-copy {
  min-width: 0;
}

.admin-access-app .brand-copy h1 {
  overflow-wrap: anywhere;
}

.access-inline-session {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(241, 244, 237, 0.96) 0%, rgba(250, 252, 247, 0.96) 100%);
  display: grid;
  gap: 10px;
}

.role-enter-button {
  width: auto;
  min-width: 146px;
}

.panel-copy {
  margin-top: 6px;
}

.pagination-copy {
  display: grid;
  gap: 2px;
}

.pagination-size {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-muted);
  font-weight: 700;
}

.pagination-size select {
  min-height: 40px;
  width: auto;
}

.panel-pagination {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.role-card .button-ghost,
.access-session-actions .button-ghost,
.access-session-actions .button-danger,
.panel-pagination .button-ghost {
  width: auto;
}

.pedidos-topbar {
  border-color: rgba(31, 74, 45, 0.14);
  background:
    radial-gradient(circle at top right, rgba(244, 206, 24, 0.2), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 252, 247, 0.98) 100%);
}

.hero-brand-row {
  align-items: center;
}

.hero-brand-mark {
  width: 86px;
  height: 86px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffe21b 0%, #f4ce18 100%);
  box-shadow: 0 18px 32px rgba(244, 206, 24, 0.24);
}

.hero-brand-mark .brand-logo {
  width: 62px;
  height: 62px;
  border-width: 0;
  box-shadow: none;
}

.hero-brand-copy {
  gap: 6px;
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 74, 45, 0.08);
  color: var(--color-brand);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-pill {
  background: linear-gradient(180deg, #1f4a2d 0%, #2a5f3b 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 18px 36px rgba(31, 74, 45, 0.18);
}

.hero-actions .utility-button {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(31, 74, 45, 0.12);
  box-shadow: 0 12px 28px rgba(31, 74, 45, 0.06);
}

.detail-state {
  min-height: 240px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border-strong);
  background: rgba(255, 255, 255, 0.68);
}

.detail-content,
.detail-card,
.detail-actions {
  display: grid;
  gap: var(--space-4);
}

.detail-card {
  gap: var(--space-3);
}

.detail-mini-grid,
.timeline-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-info,
.timeline-chip,
.detail-item-row,
.detail-block,
.action-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-soft);
}

.mini-info {
  min-width: 0;
}

.locked-action {
  min-height: 48px;
  padding: 12px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(244, 206, 24, 0.14);
  color: var(--color-brand);
  font-weight: 850;
  text-align: center;
}

.detail-state-closed {
  min-height: 120px;
}

.detail-guide-shell {
  margin-bottom: var(--space-4);
}

.detail-guide-card {
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.detail-guide-card-primary {
  border-color: rgba(31, 74, 45, 0.18);
  background: linear-gradient(180deg, rgba(232, 245, 236, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.mini-info strong,
.timeline-chip strong {
  display: block;
  margin-top: 4px;
}

.detail-item-row strong {
  display: block;
  margin-bottom: 4px;
}

.detail-summary-row {
  padding: 16px;
  border-radius: 18px;
  background: var(--color-brand);
  color: #fff;
}

.detail-next-step {
  border-color: rgba(244, 206, 24, 0.42);
  background: #fff8db;
}

.action-card h3,
.detail-block h3 {
  margin-bottom: 10px;
  font-size: 0.98rem;
}

.detail-guidance-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.action-card .wide-field {
  grid-column: 1 / -1;
}

.payment-fast-action,
.payment-ready-note {
  margin-bottom: var(--space-3);
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(244, 206, 24, 0.4);
  background: #fff8db;
}

.payment-fast-action {
  display: grid;
  gap: 10px;
}

.payment-fast-action p,
.payment-ready-note {
  color: var(--color-brand);
  font-weight: 800;
}

.payment-receipt-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(31, 74, 45, 0.14);
  background: #fff;
}

.payment-receipt-box.is-ready {
  border-color: rgba(31, 74, 45, 0.22);
  background: #f7fbf4;
}

.payment-receipt-box.is-missing {
  border-color: rgba(179, 61, 61, 0.16);
  background: rgba(179, 61, 61, 0.06);
}

.payment-receipt-box strong {
  color: var(--color-brand);
}

.payment-receipt-box p {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.payment-receipt-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--color-brand);
  color: #fff;
  font-weight: 850;
}

.payment-receipt-image {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: #fff;
}

.payment-receipt-warning {
  color: var(--color-danger) !important;
}

.dispatch-notice {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(244, 206, 24, 0.42);
  background: #fff8db;
  display: grid;
  gap: 6px;
}

.dispatch-notice strong {
  color: var(--color-brand);
}

.dispatch-notice p {
  color: var(--color-text-muted);
}

.dispatch-notice.is-ready {
  border-color: rgba(31, 74, 45, 0.18);
  background: rgba(232, 245, 236, 0.98);
}

.quick-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-action-button {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  color: var(--color-brand);
  font-weight: 800;
}

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

.step-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: #fff;
}

.step-chip-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--color-surface-soft);
  color: var(--color-brand);
}

.step-chip strong {
  font-size: 0.93rem;
  line-height: 1.3;
}

.step-chip.is-done {
  background: #edf7f0;
  border-color: rgba(25, 116, 71, 0.18);
}

.step-chip.is-done .step-chip-number {
  background: var(--color-success);
  color: #fff;
}

.step-chip.is-current {
  background: #fff7d6;
  border-color: rgba(244, 206, 24, 0.42);
}

.step-chip.is-current .step-chip-number {
  background: var(--color-accent);
  color: var(--color-brand);
}

.metric-card.is-warning {
  border-color: rgba(244, 206, 24, 0.38);
  background: linear-gradient(180deg, #fff8dd 0%, #ffffff 100%);
}

.detail-actions .action-card {
  padding-top: 14px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 24px));
  min-height: var(--nav-height);
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--color-border);
  border-radius: 28px;
  box-shadow: 0 22px 44px rgba(20, 30, 18, 0.16);
  backdrop-filter: blur(12px);
  z-index: 30;
}

.bottom-nav-button {
  min-height: 54px;
  border-radius: 20px;
  background: transparent;
  color: var(--color-muted);
  font-weight: 800;
}

.bottom-nav-button.is-active {
  background: var(--color-brand);
  color: #fff;
}

@media (min-width: 760px) {
  .admin-app {
    padding-bottom: 28px;
  }

  .report-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .filter-form {
    grid-template-columns: minmax(0, 1fr) 120px;
    align-items: end;
  }

  .filter-form-grid {
    grid-template-columns: 1.35fr 0.95fr 0.95fr 0.95fr 0.78fr 160px;
  }

  .driver-form,
  .payment-form,
  .assign-form,
  .status-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .driver-form .inline-toggle,
  .driver-form button,
  .payment-form button,
  .assign-form button,
  .status-form button {
    grid-column: 1 / -1;
  }

  .detail-mini-grid,
  .timeline-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bottom-nav {
    position: static;
    transform: none;
    width: 260px;
    margin-top: 18px;
  }

  .access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .topbar-meta-row {
    grid-template-columns: minmax(320px, 1fr) auto;
    align-items: center;
  }
}

@media (max-width: 759px) {
  body {
    background: #f6f7f4;
    font-size: 14px;
  }

  .admin-app {
    width: 100%;
    padding: 6px 6px 18px;
  }

  .pedidos-topbar,
  body[data-required-role="pedidos"] .admin-system-nav,
  body[data-required-role="pedidos"] .command-center-panel,
  body[data-required-role="pedidos"] .compact-turn-panel,
  body[data-required-role="pedidos"] .detail-panel > .panel-head,
  body[data-required-role="pedidos"] .detail-guide-shell {
    display: none;
  }

  .panel,
  .orders-group,
  .order-card,
  .detail-card,
  .action-card,
  .mini-info,
  .timeline-chip,
  .detail-item-row,
  .detail-block {
    border-radius: 10px;
    box-shadow: none;
  }

  .panel,
  .detail-card {
    padding: 10px;
  }

  .pedidos-layout,
  .pedidos-workspace,
  .orders-groups,
  .orders-list,
  .detail-content,
  .detail-card,
  .detail-actions {
    gap: 8px;
  }

  .panel-head {
    margin-bottom: 8px;
  }

  .panel-head h2 {
    font-size: 1rem;
    letter-spacing: 0;
  }

  body[data-required-role="pedidos"] .panel-copy,
  body[data-required-role="pedidos"] .summary-badges,
  body[data-required-role="pedidos"] .group-copy,
  body[data-required-role="pedidos"] .group-tip,
  body[data-required-role="pedidos"] .pagination-copy span {
    display: none;
  }

  .filter-form-grid {
    grid-template-columns: 1fr 120px 72px;
    gap: 6px;
  }

  .filter-form-grid label:nth-of-type(3),
  .filter-form-grid label:nth-of-type(4),
  .filter-form-grid label:nth-of-type(5) {
    display: none;
  }

  label span {
    font-size: 0.72rem;
  }

  input,
  select {
    min-height: 38px;
    padding: 0 9px;
    border-radius: 9px;
    font-size: 0.88rem;
  }

  .button-primary,
  .button-ghost,
  .orders-list button,
  .assign-form button,
  .status-form button,
  .payment-form button,
  .quick-action-button {
    min-height: 38px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 0.86rem;
    box-shadow: none;
  }

  .orders-group {
    padding: 8px;
    gap: 6px;
  }

  .orders-group-head h3 {
    font-size: 0.9rem;
  }

  .group-count {
    min-width: 28px;
    min-height: 24px;
    font-size: 0.76rem;
  }

  .order-card {
    padding: 8px;
    gap: 6px;
    border-left: 4px solid var(--color-border);
  }

  .order-card.is-age-fresh {
    border-left-color: var(--color-success);
  }

  .order-card.is-age-warning {
    border-left-color: #c28a00;
  }

  .order-card.is-age-danger {
    border-left-color: var(--color-danger);
  }

  .order-card-topline,
  .orders-group-head,
  .detail-code-row {
    align-items: center;
  }

  .order-card-code {
    font-size: 0.95rem;
  }

  .order-meta {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .order-card-quick {
    gap: 4px;
  }

  .order-chip,
  .status-badge,
  .age-chip {
    min-height: 23px;
    padding: 0 7px;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .age-chip {
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    font-weight: 900;
  }

  .age-chip.is-fresh {
    background: #e5f8ed;
    color: #177246;
  }

  .age-chip.is-warning {
    background: #fff2c7;
    color: #8a6200;
  }

  .age-chip.is-danger {
    background: #fdecec;
    color: #a13f3f;
  }

  .order-card-actions {
    grid-template-columns: minmax(0, 1fr) 70px 66px;
    gap: 6px;
  }

  .button-delete-order {
    padding: 0 8px;
  }

  .quick-driver-row {
    display: grid;
    grid-template-columns: 1fr 84px;
    gap: 6px;
  }

  .detail-panel {
    padding: 8px;
  }

  .detail-mini-grid,
  .timeline-grid,
  .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .mini-info,
  .timeline-chip,
  .detail-item-row,
  .detail-block,
  .action-card {
    padding: 8px;
  }

  .detail-block h3,
  .action-card h3 {
    margin-bottom: 6px;
  }

  .detail-guidance-list,
  .steps-grid,
  .detail-guide-shell,
  .detail-next-step,
  .detail-block:has(.steps-grid),
  .detail-block:has(.timeline-grid) {
    display: none;
  }

  .panel-pagination {
    margin-top: 8px;
    padding-top: 8px;
  }
}

@media (max-width: 759px) {
  body[data-required-role="pedidos"] {
    background: #111413;
    color: #f4f7f2;
  }

  body[data-required-role="pedidos"] .admin-app {
    padding: 0 0 74px;
  }

  body[data-required-role="pedidos"] .mobile-orders-bar {
    min-height: 54px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 42;
    background: #111413;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  body[data-required-role="pedidos"] .mobile-orders-bar div {
    display: grid;
    gap: 1px;
  }

  body[data-required-role="pedidos"] .mobile-orders-bar span {
    color: #9aa39c;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  body[data-required-role="pedidos"] .mobile-orders-bar strong {
    color: #f7faf6;
    font-size: 1.05rem;
    line-height: 1;
  }

  body[data-required-role="pedidos"] .mobile-refresh-button {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #243729;
    color: #f8fbf7;
    font-size: 0.82rem;
    font-weight: 900;
  }

  body[data-required-role="pedidos"] .admin-system-nav {
    margin: 0;
    padding: 8px 12px 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 44;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px 18px 0 0;
    background: rgba(20, 23, 22, 0.98);
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.28);
  }

  body[data-required-role="pedidos"] .admin-system-link {
    min-height: 42px;
    padding: 0 10px;
    border-radius: 16px;
    border: 0;
    background: transparent;
    color: #b8c0ba;
    font-size: 0.86rem;
  }

  body[data-required-role="pedidos"] .admin-system-link.is-active {
    background: #2d5039;
    color: #fff;
    box-shadow: none;
  }

  body[data-required-role="pedidos"] .pedidos-layout,
  body[data-required-role="pedidos"] .pedidos-workspace {
    display: block;
  }

  body[data-required-role="pedidos"] .pedidos-workspace > .panel:first-child {
    padding: 0 8px 8px;
    border: 0;
    background: transparent;
  }

  body[data-required-role="pedidos"] .pedidos-workspace > .panel:first-child > .panel-head {
    display: none;
  }

  body[data-required-role="pedidos"] .mobile-step-nav {
    margin: 0 -2px 8px;
    padding: 8px 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    position: sticky;
    top: 54px;
    z-index: 41;
    background: #111413;
  }

  body[data-required-role="pedidos"] .mobile-step-link {
    min-height: 58px;
    padding: 6px 4px;
    display: grid;
    place-items: center;
    gap: 2px;
    border-radius: 14px;
    background: #1a1e1c;
    color: #cad2cc;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  body[data-required-role="pedidos"] .mobile-step-count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eef5ec;
    color: #163f25;
    font-size: 0.72rem;
    font-weight: 950;
    line-height: 1;
  }

  body[data-required-role="pedidos"] .mobile-step-link span:not(.mobile-step-count) {
    font-size: 0.62rem;
    color: #8f9891;
    line-height: 1;
  }

  body[data-required-role="pedidos"] .mobile-step-link strong {
    max-width: 100%;
    color: #f4f7f2;
    font-size: 0.75rem;
    line-height: 1.05;
    white-space: nowrap;
  }

  body[data-required-role="pedidos"] .filter-form-grid {
    margin-bottom: 8px;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 106px 58px;
    gap: 6px;
  }

  body[data-required-role="pedidos"] .filter-form-grid label span {
    display: none;
  }

  body[data-required-role="pedidos"] input,
  body[data-required-role="pedidos"] select {
    min-height: 36px;
    border: 0;
    background: #1b1f1d;
    color: #f5f8f4;
    font-size: 0.84rem;
  }

  body[data-required-role="pedidos"] input::placeholder {
    color: #848d86;
  }

  body[data-required-role="pedidos"] .filter-form-grid .button-primary {
    min-height: 36px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 0.76rem;
    background: #315b3f;
    color: #fff;
  }

  body[data-required-role="pedidos"] .orders-groups {
    display: grid;
    gap: 8px;
  }

  body[data-required-role="pedidos"] .orders-group {
    padding: 8px;
    border: 0;
    background: #151817;
  }

  body[data-required-role="pedidos"] .orders-group-head {
    margin-bottom: 6px;
  }

  body[data-required-role="pedidos"] .orders-group-head h3 {
    color: #f4f7f2;
    font-size: 0.86rem;
    font-weight: 900;
  }

  body[data-required-role="pedidos"] .group-count {
    min-width: 24px;
    min-height: 20px;
    background: #eef5ec;
    color: #143d24;
    font-size: 0.7rem;
    font-weight: 950;
  }

  body[data-required-role="pedidos"] .orders-list {
    gap: 5px;
  }

  body[data-required-role="pedidos"] .order-card,
  body[data-required-role="pedidos"] .empty-card {
    background: #1b1f1d;
    border-color: rgba(255, 255, 255, 0.05);
    color: #f5f8f4;
  }

  body[data-required-role="pedidos"] .order-card {
    padding: 9px 9px 8px;
    border-radius: 9px;
    gap: 6px;
  }

  body[data-required-role="pedidos"] .order-card.is-status-nuevo {
    background: #312b17;
    border-color: rgba(244, 206, 24, 0.34);
    border-left-color: #f4ce18;
  }

  body[data-required-role="pedidos"] .order-card.is-status-confirmado,
  body[data-required-role="pedidos"] .order-card.is-status-en_preparacion {
    background: #162536;
    border-color: rgba(125, 183, 255, 0.28);
    border-left-color: #7db7ff;
  }

  body[data-required-role="pedidos"] .order-card.is-status-listo {
    background: #2c2036;
    border-color: rgba(215, 162, 255, 0.28);
    border-left-color: #d7a2ff;
  }

  body[data-required-role="pedidos"] .order-card.is-status-en_ruta {
    background: #193025;
    border-color: rgba(91, 215, 138, 0.26);
    border-left-color: #5bd78a;
  }

  body[data-required-role="pedidos"] .order-card-title {
    gap: 6px;
  }

  body[data-required-role="pedidos"] .order-status-icon {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: #27302a;
    color: #eaf2ec;
  }

  body[data-required-role="pedidos"] .order-status-icon svg {
    width: 14px;
    height: 14px;
  }

  body[data-required-role="pedidos"] .order-card-code {
    font-size: 0.9rem;
    line-height: 1;
  }

  body[data-required-role="pedidos"] .order-meta {
    max-width: 100%;
    overflow: hidden;
    color: #a8b0aa;
    font-size: 0.74rem;
    line-height: 1.15;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  body[data-required-role="pedidos"] .order-card-quick {
    gap: 4px;
    overflow: hidden;
  }

  body[data-required-role="pedidos"] .order-chip,
  body[data-required-role="pedidos"] .status-badge,
  body[data-required-role="pedidos"] .age-chip {
    min-height: 21px;
    padding: 0 6px;
    font-size: 0.66rem;
    font-weight: 900;
  }

  body[data-required-role="pedidos"] .order-chip {
    background: #252a27;
    color: #dce4de;
  }

  body[data-required-role="pedidos"] .order-card-actions {
    grid-template-columns: minmax(0, 1fr) 58px 58px;
    gap: 6px;
    margin-top: 2px;
  }

  body[data-required-role="pedidos"] .button-delete-order {
    padding: 0 6px;
  }

  body[data-required-role="pedidos"] .button-primary,
  body[data-required-role="pedidos"] .button-ghost,
  body[data-required-role="pedidos"] .quick-action-button {
    min-height: 34px;
    border-radius: 9px;
    font-size: 0.78rem;
  }

  body[data-required-role="pedidos"] .button-primary {
    background: #2f6a44;
    color: #fff;
  }

  body[data-required-role="pedidos"] .button-ghost {
    background: #262b28;
    color: #d8e0da;
    border-color: rgba(255, 255, 255, 0.06);
  }

  body[data-required-role="pedidos"] .quick-driver-row {
    grid-template-columns: minmax(0, 1fr) 72px;
  }

  body[data-required-role="pedidos"] .detail-panel {
    margin: 8px;
    border: 0;
    background: #151817;
    color: #f5f8f4;
  }

  body[data-required-role="pedidos"] .detail-card,
  body[data-required-role="pedidos"] .detail-block,
  body[data-required-role="pedidos"] .action-card,
  body[data-required-role="pedidos"] .mini-info,
  body[data-required-role="pedidos"] .detail-item-row {
    background: #1b1f1d;
    border-color: rgba(255, 255, 255, 0.06);
    color: #f5f8f4;
  }

  body[data-required-role="pedidos"] .detail-copy,
  body[data-required-role="pedidos"] .detail-state,
  body[data-required-role="pedidos"] .detail-notes,
  body[data-required-role="pedidos"] .detail-item-row span {
    color: #a8b0aa;
  }

  body[data-required-role="pedidos"] .detail-mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  body[data-required-role="pedidos"] .mini-info {
    min-height: 74px;
    padding: 7px 6px;
    align-content: start;
    gap: 3px;
    overflow: hidden;
  }

  body[data-required-role="pedidos"] .mini-info-icon {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: #27302a;
    color: #eaf2ec;
  }

  body[data-required-role="pedidos"] .mini-info-icon svg {
    width: 14px;
    height: 14px;
  }

  body[data-required-role="pedidos"] .mini-info p {
    color: #88928b;
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
  }

  body[data-required-role="pedidos"] .mini-info strong {
    margin-top: 0;
    color: #f5f8f4;
    font-size: 0.72rem;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  body[data-required-role="pedidos"] .detail-actions {
    gap: 6px;
  }

  body[data-required-role="pedidos"] .action-card {
    padding: 8px;
  }

  body[data-required-role="pedidos"] .action-card h3 {
    margin: 0 0 6px;
    font-size: 0.82rem;
  }

  body[data-required-role="pedidos"] .payment-fast-action,
  body[data-required-role="pedidos"] .payment-ready-note {
    margin-bottom: 6px;
    padding: 7px;
    border-radius: 9px;
    background: #20291f;
  }

  body[data-required-role="pedidos"] .payment-fast-action p {
    display: none;
  }

  body[data-required-role="pedidos"] .payment-form,
  body[data-required-role="pedidos"] .assign-form,
  body[data-required-role="pedidos"] .status-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
  }

  body[data-required-role="pedidos"] .action-card label span {
    display: none;
  }

  body[data-required-role="pedidos"] .payment-form .wide-field,
  body[data-required-role="pedidos"] #change-given-input,
  body[data-required-role="pedidos"] label:has(#change-given-input) {
    display: none;
  }

  body[data-required-role="pedidos"] .payment-form button,
  body[data-required-role="pedidos"] .assign-form button,
  body[data-required-role="pedidos"] .status-form button {
    grid-column: auto;
    min-height: 36px;
    padding: 0 8px;
  }

  body[data-required-role="pedidos"] .status-form label,
  body[data-required-role="pedidos"] .assign-form label {
    grid-column: 1 / -1;
  }

  body[data-required-role="pedidos"] .status-form button,
  body[data-required-role="pedidos"] .assign-form button {
    grid-column: 1 / -1;
  }

  body[data-required-role="pedidos"] .locked-action {
    min-height: 36px;
    padding: 8px;
    border-radius: 9px;
    background: #24251d;
    color: #d2c88d;
    font-size: 0.74rem;
  }

  body[data-required-role="pedidos"] .detail-state-closed {
    min-height: 100px;
    padding: 12px;
    border-style: solid;
    background: #1b1f1d;
  }
}

@media (min-width: 1040px) {
  .admin-app {
    width: min(1480px, calc(100vw - 48px));
  }

  .orders-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .pedidos-workspace {
    grid-template-columns: minmax(0, 1.55fr) minmax(420px, 0.95fr);
  }

  .detail-panel {
    position: sticky;
    top: 138px;
    max-height: calc(100vh - 158px);
    overflow: auto;
  }

  .workflow-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .command-alerts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Human-first admin refresh: both main panels stay white, compact and quiet. */
body,
body[data-required-role="pedidos"] {
  background: #ffffff;
}

.admin-topbar,
.pedidos-topbar,
.panel,
.orders-group,
.detail-panel,
.order-card,
.detail-card,
.action-card,
.mini-info,
.timeline-chip,
.detail-item-row,
.detail-block,
.empty-card,
.admin-system-nav,
.selected-order-pill {
  box-shadow: none;
}

.pedidos-topbar {
  background: #ffffff;
}

.hero-brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  box-shadow: none;
}

.hero-brand-mark .brand-logo {
  width: 50px;
  height: 50px;
}

.hero-kicker {
  display: none;
}

.brand-copy h1 {
  font-size: clamp(1.22rem, 4vw, 1.7rem);
  letter-spacing: 0;
}

.brand-subcopy,
.panel-copy,
.group-copy,
.group-tip,
.detail-copy,
.detail-notes,
.detail-state,
.order-meta {
  font-size: 0.88rem;
}

.panel-head h2 {
  font-size: 1.12rem;
  letter-spacing: 0;
}

.workflow-card,
.role-card,
.access-session-box,
.guide-card,
.checklist-card,
.detail-guide-card,
.command-alerts-panel {
  border-radius: 12px;
  background: #ffffff;
}

@media (max-width: 759px) {
  body,
  body[data-required-role="pedidos"] {
    background: #ffffff;
    color: var(--color-text);
    font-size: 12px;
  }

  body[data-required-role="pedidos"] .admin-app {
    padding: 0 0 64px;
  }

  body[data-required-role="pedidos"] .pwa-pocket-button {
    top: auto;
    right: 0;
    bottom: 132px;
    width: 34px;
    height: 42px;
    transform: none;
    border-radius: 16px 0 0 16px;
    font-size: 0.68rem;
  }

  body[data-required-role="pedidos"] .pwa-pocket-panel {
    right: 8px;
    bottom: 126px;
    width: min(284px, calc(100vw - 16px));
  }

  body[data-required-role="pedidos"] .notifications-floating-button,
  body[data-required-role="pedidos"] .notifications-floating-status {
    font-size: 0.72rem;
  }

  .order-alarm-banner {
    top: 8px;
    width: calc(100vw - 16px);
    min-height: 58px;
    padding: 9px 9px 9px 12px;
    border-radius: 13px;
  }

  .order-alarm-banner strong {
    font-size: 0.9rem;
  }

  .order-alarm-banner p,
  .order-alarm-stop {
    font-size: 0.72rem;
  }

  .install-app-modal {
    align-items: end;
    padding: 12px;
  }

  .install-app-card {
    max-height: calc(100vh - 24px);
    border-radius: 16px;
    padding: 16px;
  }

  .install-app-actions {
    grid-template-columns: 1fr;
  }

  body[data-required-role="pedidos"] .mobile-orders-bar {
    min-height: 48px;
    padding: 7px 10px;
    background: #ffffff;
    border-bottom: 1px solid #e9eee5;
  }

  body[data-required-role="pedidos"] .mobile-orders-bar span {
    color: #7a837b;
    font-size: 0.58rem;
  }

  body[data-required-role="pedidos"] .mobile-orders-bar strong {
    color: var(--color-text);
    font-size: 0.9rem;
  }

  body[data-required-role="pedidos"] .mobile-refresh-button {
    min-height: 32px;
    padding: 0 11px;
    background: var(--color-brand);
    color: #ffffff;
    font-size: 0.7rem;
  }

  body[data-required-role="pedidos"] .admin-system-nav {
    padding: 7px 10px 9px;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #e6ece2;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -8px 24px rgba(20, 30, 18, 0.08);
  }

  body[data-required-role="pedidos"] .admin-system-link {
    min-height: 38px;
    border: 1px solid #e3eadf;
    background: #f7f9f5;
    color: var(--color-brand);
    font-size: 0.74rem;
  }

  body[data-required-role="pedidos"] .admin-system-link.is-active {
    background: var(--color-brand);
    color: #ffffff;
  }

  body[data-required-role="pedidos"] .mobile-step-nav {
    top: 48px;
    margin: 0 0 6px;
    padding: 7px 8px;
    background: #ffffff;
    border-bottom: 1px solid #edf1ea;
  }

  body[data-required-role="pedidos"] .mobile-step-link {
    min-height: 50px;
    padding: 5px 3px;
    border-radius: 10px;
    background: #f8faf7;
    color: var(--color-brand);
    border: 1px solid #e5ece1;
  }

  body[data-required-role="pedidos"] .mobile-step-count {
    min-width: 21px;
    height: 20px;
    background: var(--color-brand);
    color: #ffffff;
    font-size: 0.62rem;
  }

  body[data-required-role="pedidos"] .mobile-step-link span:not(.mobile-step-count) {
    color: #7c877d;
    font-size: 0.54rem;
  }

  body[data-required-role="pedidos"] .mobile-step-link strong {
    color: var(--color-text);
    font-size: 0.66rem;
  }

  body[data-required-role="pedidos"] .filter-form-grid {
    padding: 0 8px;
    grid-template-columns: minmax(0, 1fr) 96px 54px;
  }

  body[data-required-role="pedidos"] input,
  body[data-required-role="pedidos"] select {
    min-height: 34px;
    border: 1px solid #e2e9df;
    background: #ffffff;
    color: var(--color-text);
    font-size: 0.72rem;
  }

  body[data-required-role="pedidos"] input::placeholder {
    color: #8b938c;
  }

  body[data-required-role="pedidos"] .filter-form-grid .button-primary {
    min-height: 34px;
    background: var(--color-brand);
  }

  body[data-required-role="pedidos"] .orders-group {
    margin: 0 8px;
    background: #ffffff;
    border: 1px solid #edf1ea;
  }

  body[data-required-role="pedidos"] .orders-group-head h3,
  body[data-required-role="pedidos"] .order-card-code,
  body[data-required-role="pedidos"] .detail-card,
  body[data-required-role="pedidos"] .detail-block,
  body[data-required-role="pedidos"] .action-card,
  body[data-required-role="pedidos"] .mini-info,
  body[data-required-role="pedidos"] .detail-item-row {
    color: var(--color-text);
  }

  body[data-required-role="pedidos"] .orders-group-head h3 {
    font-size: 0.78rem;
  }

  body[data-required-role="pedidos"] .order-card-code {
    font-size: 0.8rem;
  }

  body[data-required-role="pedidos"] .order-meta {
    font-size: 0.66rem;
  }

  body[data-required-role="pedidos"] .order-chip,
  body[data-required-role="pedidos"] .status-badge,
  body[data-required-role="pedidos"] .age-chip {
    font-size: 0.58rem;
  }

  body[data-required-role="pedidos"] .button-primary,
  body[data-required-role="pedidos"] .button-ghost,
  body[data-required-role="pedidos"] .quick-action-button {
    font-size: 0.68rem;
  }

  body[data-required-role="pedidos"] .action-card h3,
  body[data-required-role="pedidos"] .detail-block h3 {
    font-size: 0.74rem;
  }

  body[data-required-role="pedidos"] .order-card,
  body[data-required-role="pedidos"] .empty-card,
  body[data-required-role="pedidos"] .detail-card,
  body[data-required-role="pedidos"] .detail-block,
  body[data-required-role="pedidos"] .action-card,
  body[data-required-role="pedidos"] .mini-info,
  body[data-required-role="pedidos"] .detail-item-row {
    background: #ffffff;
    border-color: #e7ece4;
    color: var(--color-text);
  }

  body[data-required-role="pedidos"] .order-card.is-status-nuevo {
    background: #fff6ca;
    border-color: #eed26d;
    border-left-color: #d7aa08;
  }

  body[data-required-role="pedidos"] .order-card.is-status-confirmado,
  body[data-required-role="pedidos"] .order-card.is-status-en_preparacion {
    background: #eaf4ff;
    border-color: #c9def5;
    border-left-color: #377ec4;
  }

  body[data-required-role="pedidos"] .order-card.is-status-listo {
    background: #f2e9ff;
    border-color: #ded0f2;
    border-left-color: #8053bb;
  }

  body[data-required-role="pedidos"] .order-card.is-status-en_ruta {
    background: #e8f7ef;
    border-color: #cfe7d8;
    border-left-color: #2f9355;
  }

  body[data-required-role="pedidos"] .order-meta,
  body[data-required-role="pedidos"] .detail-copy,
  body[data-required-role="pedidos"] .detail-state,
  body[data-required-role="pedidos"] .detail-notes,
  body[data-required-role="pedidos"] .detail-item-row span {
    color: #6a7368;
  }

  body[data-required-role="pedidos"] .order-status-icon,
  body[data-required-role="pedidos"] .mini-info-icon,
  body[data-required-role="pedidos"] .order-chip,
  body[data-required-role="pedidos"] .button-ghost {
    background: #f3f6f1;
    color: var(--color-brand);
    border-color: #e1e8de;
  }

  body[data-required-role="pedidos"] .button-primary,
  body[data-required-role="pedidos"] .quick-action-button {
    background: var(--color-brand);
    color: #ffffff;
  }

  body[data-required-role="pedidos"] .detail-panel {
    margin: 8px;
    background: #ffffff;
    border: 1px solid #edf1ea;
  }

  body[data-required-role="pedidos"] .mini-info p {
    color: #7a837b;
  }

  body[data-required-role="pedidos"] .mini-info strong {
    color: var(--color-text);
  }

  body[data-required-role="pedidos"] .payment-fast-action,
  body[data-required-role="pedidos"] .payment-ready-note,
  body[data-required-role="pedidos"] .locked-action {
    background: #fff8db;
    color: var(--color-brand);
  }
}

.utility-button,
.admin-system-link,
.attention-link,
.attention-action,
.role-enter-button,
.bottom-nav-button,
.quick-action-button,
.button-primary,
.button-ghost,
.button-danger,
.orders-list button,
.driver-form button,
.assign-form button,
.status-form button,
.payment-form button {
  min-height: 36px;
  padding: 0 11px;
  border-radius: 11px;
  font-size: 0.8rem;
  font-weight: 780;
  box-shadow: none;
}

.access-login-form .button-primary,
.filter-form-grid .button-primary,
.panel-pagination .button-ghost,
.access-session-actions .button-ghost,
.access-session-actions .button-danger {
  min-height: 40px;
  font-size: 0.86rem;
}

.admin-system-link,
.utility-button,
.bottom-nav-button {
  border-radius: var(--radius-pill);
}

body[data-required-role="pedidos"] .button-primary,
body[data-required-role="pedidos"] .button-ghost,
body[data-required-role="pedidos"] .quick-action-button,
body[data-required-role="pedidos"] .payment-form button,
body[data-required-role="pedidos"] .assign-form button,
body[data-required-role="pedidos"] .status-form button {
  min-height: 32px;
  padding: 0 9px;
  border-radius: 9px;
  font-size: 0.74rem;
}
