﻿:root {
  --brand-green: #18a14d;
  --brand-green-soft: #2fd16c;
  --brand-purple-1: #f3edff;
  --brand-purple-2: #e6d4ff;
  --brand-text: #222;
  --brand-muted: #5b5b5b;
  --surface: rgba(255, 255, 255, 0.95);
  --border-soft: rgba(24, 161, 77, 0.14);
  --shadow-soft: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.app-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #f6f1ff 0%, #eefaf1 100%);
}

.app-header {
  position: sticky;
}

.app-topbar {
  min-height: 72px;
}

.app-nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-nav-links a {
  color: #2f2f2f;
  font-weight: 700;
}

.app-nav-links a:hover {
  color: #b23b3b;
}

.app-main {
  padding-top: 120px;
  padding-bottom: 80px;
}

.app-hero-card,
.panel-card,
.track-filter-card,
.result-card {
  background: var(--surface);
  border: 1px solid rgba(140, 92, 212, 0.14);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.app-hero-card {
  padding: 28px;
  margin-bottom: 24px;
}

.app-hero-card h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--brand-green);
}

.app-hero-card p {
  color: var(--brand-muted);
  max-width: 850px;
}

.pedido-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 20px;
  align-items: start;
}

.section-title {
  font-size: 1.28rem;
  color: #212121;
  margin-bottom: 12px;
}

.section-title.small {
  margin-top: 18px;
  font-size: 1.05rem;
}

.menu-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-category-block {
  background: var(--surface);
  border: 1px solid rgba(140, 92, 212, 0.12);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.menu-category-block h3 {
  margin-bottom: 12px;
  color: #303030;
}

.menu-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.menu-product-card {
  border: 1px solid rgba(24, 161, 77, 0.16);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.menu-product-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.menu-product-content {
  padding: 12px;
}

.menu-product-content .tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-green);
  background: rgba(24, 161, 77, 0.1);
  border: 1px solid rgba(24, 161, 77, 0.22);
  padding: 3px 8px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.menu-product-content h3 {
  margin-bottom: 4px;
  font-size: 1.08rem;
}

.menu-product-content p {
  color: var(--brand-muted);
  min-height: 48px;
  margin-bottom: 10px;
  font-size: 0.94rem;
}

.menu-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-panel {
  position: sticky;
  top: 92px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(24, 161, 77, 0.16);
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
}

.cart-item {
  border: 1px solid rgba(24, 161, 77, 0.14);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-item p {
  font-size: 0.9rem;
  color: #5c5c5c;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-control button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(24, 161, 77, 0.2);
  background: #f7fff9;
  cursor: pointer;
}

.cart-total {
  margin: 12px 0 4px;
  font-weight: 800;
  color: #202020;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-form label,
.track-form label,
.panel-header label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
  color: #2e2e2e;
}

.order-form input,
.order-form textarea,
.track-form input,
.panel-header select {
  border: 1px solid rgba(140, 92, 212, 0.2);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
}

.full {
  width: 100%;
}

.hint {
  margin-top: 10px;
  font-size: 0.88rem;
  color: #666;
}

.hidden {
  display: none;
}

.result-card {
  margin-top: 20px;
  padding: 18px;
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.track-filter-card {
  padding: 16px;
  margin-bottom: 16px;
}

.track-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(24, 161, 77, 0.2);
  box-shadow: var(--shadow-soft);
  padding: 14px;
}

.order-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.order-card-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 14px;
}

.order-card h4 {
  margin-bottom: 6px;
}

.order-card ul {
  list-style: none;
}

.order-card li {
  margin-bottom: 4px;
}

.status-pill {
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 800;
  color: #116e37;
  background: rgba(24, 161, 77, 0.12);
  border: 1px solid rgba(24, 161, 77, 0.26);
  display: inline-block;
}

.timeline {
  margin-top: 12px;
  border-top: 1px solid rgba(24, 161, 77, 0.16);
  padding-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.timeline-item {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 8px;
}

.timeline-item.active {
  border-color: rgba(24, 161, 77, 0.35);
  background: rgba(24, 161, 77, 0.08);
}

.timeline-item span {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
}

.timeline-item small {
  color: #666;
}

.empty,
.empty-block {
  color: #666;
  font-size: 0.92rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.cp-board {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(140, 92, 212, 0.16);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.cp-board-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.cp-board-top h1 {
  font-size: 2rem;
  margin: 0;
}

.cp-board-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cp-pill-btn {
  border-radius: 999px;
  border: 1px solid rgba(140, 92, 212, 0.2);
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
}

.cp-pill-btn.cp-pill-open {
  color: #137a3b;
  border-color: rgba(24, 161, 77, 0.35);
  background: rgba(24, 161, 77, 0.12);
}

.cp-pill-btn.cp-pill-closed {
  color: #a23434;
  border-color: rgba(178, 59, 59, 0.35);
  background: rgba(178, 59, 59, 0.12);
}

.cp-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: auto;
}

.cp-column {
  background: rgba(246, 244, 250, 0.9);
  border: 1px solid rgba(140, 92, 212, 0.15);
  border-radius: 8px;
  min-height: 470px;
  padding: 14px;
}

.cp-column h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.cp-column-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cp-order-card {
  background: #ffffff;
  border: 1px solid rgba(140, 92, 212, 0.2);
  border-radius: 16px;
  padding: 12px;
}

.cp-order-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cp-order-card p {
  margin: 0 0 6px;
}

.cp-order-card.urgent {
  border-color: #d26f54;
}

.tag-urgent {
  background: #f9dfd7;
  color: #a33922;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.85rem;
  font-weight: 700;
}

.tag-soft {
  display: inline-block;
  background: #dcebe2;
  color: #19633f;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 700;
  font-size: 0.85rem;
}

.cp-order-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.cp-action-btn {
  width: fit-content;
  min-width: 90px;
}

.stat-card {
  border-radius: 16px;
  border: 1px solid rgba(24, 161, 77, 0.16);
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 14px;
}

.stat-card h3 {
  font-size: 0.92rem;
  color: #666;
  margin-bottom: 6px;
}

.stat-card strong {
  font-size: 1.4rem;
  color: #1c1c1c;
}

.panel-card {
  padding: 16px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 10px;
}

.table-wrap {
  overflow: auto;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.orders-table th,
.orders-table td {
  border-bottom: 1px solid #ececec;
  text-align: left;
  padding: 10px;
  vertical-align: top;
}

.orders-table td:last-child {
  min-width: 170px;
}

.orders-table td:last-child .mini {
  margin: 2px 6px 2px 0;
}

.order-row-waiting td {
  background: rgba(255, 214, 102, 0.15);
}

.pending-alert {
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(178, 59, 59, 0.35);
  background: rgba(255, 224, 224, 0.95);
  color: #7a1111;
  font-weight: 700;
}

.pending-alert.blink {
  animation: pendingPulse 1.05s linear infinite;
}

@keyframes pendingPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.44;
    transform: scale(0.995);
  }
}

.mini {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.84rem;
}

.btn-cancel {
  display: inline-block;
  border: 1px solid #b23b3b;
  background: #b23b3b;
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  line-height: 1.1;
  transition: 0.2s ease;
  cursor: pointer;
  box-shadow: 0 8px 14px rgba(178, 59, 59, 0.3);
}

.btn-cancel:hover {
  transform: translateY(-1px);
  filter: brightness(0.96);
}

.btn-cancel:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.kitchen-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  overflow: auto;
  align-items: start;
}

.kitchen-column {
  background: #fff;
  border: 1px solid rgba(140, 92, 212, 0.15);
  border-radius: 14px;
  min-height: 180px;
}

.kitchen-column h2 {
  font-size: 1rem;
  padding: 10px;
  border-bottom: 1px solid #efefef;
  color: #242424;
}

.kitchen-column-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}

.kitchen-card {
  border: 1px solid rgba(24, 161, 77, 0.18);
  border-radius: 10px;
  padding: 10px;
  background: #fbfffd;
}

.kitchen-card header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.kitchen-card ul {
  list-style: none;
  margin-bottom: 8px;
}

.kitchen-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1080px) {
  .pedido-layout {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
  }

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

  .cp-columns {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .app-main {
    padding-top: 105px;
  }

  .app-nav-links {
    display: none;
  }

  .menu-category-grid,
  .order-card-grid,
  .track-form {
    grid-template-columns: 1fr;
  }

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

  .cp-board {
    padding: 14px;
  }

  .cp-board-top {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .cp-column {
    min-height: 0;
  }
}

.cp-page {
  background: linear-gradient(
    135deg,
    #f1e8ff 0%,
    #e6d4ff 48%,
    #ecfaef 100%
  );
}

.cp-shell-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(140, 92, 212, 0.14);
  box-shadow: 0 2px 16px rgba(25, 25, 25, 0.08);
}

.cp-shell-bar {
  padding: 14px 0;
  display: grid;
  gap: 12px;
}

.cp-shell-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1f1f1f;
  font-size: 1.4rem;
  font-weight: 800;
}

.cp-shell-brand img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 16px rgba(25, 25, 25, 0.14);
}

.cp-shell-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cp-shell-nav a,
.cp-shell-user button,
.cp-shell-user span {
  border-radius: 999px;
  border: 1px solid rgba(140, 92, 212, 0.22);
  background: rgba(255, 255, 255, 0.88);
  color: #1d1d1d;
  padding: 9px 16px;
  font-weight: 600;
}

.cp-shell-nav a.active {
  color: #ffffff;
  background: linear-gradient(135deg, #2fd16c 0%, #23b95b 100%);
  border-color: rgba(35, 185, 91, 0.5);
}

.cp-shell-user {
  display: flex;
  gap: 10px;
}

.cp-shell-user button {
  cursor: pointer;
}

.cp-workspace {
  padding-top: 26px;
  padding-bottom: 60px;
}

/* CP SIDEBAR LAYOUT */
.cp-page {
  --cp-sidebar-width: 278px;
  --cp-sidebar-collapsed-width: 94px;
  --cp-shell-gap: 24px;
}

.cp-page .cp-shell-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--cp-sidebar-width);
  z-index: 1000;
  border-right: 1px solid rgba(140, 92, 212, 0.16);
  border-bottom: none;
  padding: 14px 12px;
  overflow-y: auto;
}

.cp-page .cp-shell-bar.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cp-page .cp-shell-brand {
  border-radius: 14px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.75);
}

.cp-page .cp-shell-brand img {
  width: 44px;
  height: 44px;
}

.cp-page .cp-shell-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cp-nav-toggle {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(140, 92, 212, 0.24);
  background: rgba(255, 255, 255, 0.88);
  color: #343434;
  font-weight: 700;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: 0.2s ease;
}

.cp-nav-toggle:hover {
  background: #ffffff;
}

.cp-nav-toggle span {
  display: inline-flex;
  transition: transform 0.2s ease;
}

.cp-page .cp-shell-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  border: 1px solid rgba(140, 92, 212, 0.22);
  background: rgba(255, 255, 255, 0.88);
  color: #1d1d1d;
  padding: 10px 12px;
  font-weight: 600;
}

.cp-page .cp-shell-nav a::before {
  content: attr(data-cp-icon);
  width: 22px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1;
}

.cp-page .cp-shell-nav a.active {
  color: #ffffff;
  background: linear-gradient(135deg, #2fd16c 0%, #23b95b 100%);
  border-color: rgba(35, 185, 91, 0.5);
}

.cp-page .cp-shell-user {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cp-page .cp-shell-user span,
.cp-page .cp-shell-user button {
  border-radius: 12px;
  border: 1px solid rgba(140, 92, 212, 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: #1d1d1d;
  padding: 9px 12px;
  font-weight: 600;
}

.cp-page .cp-shell-user button {
  cursor: pointer;
}

.cp-page .cp-workspace.container {
  width: auto;
  max-width: none;
  margin: 0 var(--cp-shell-gap) 0 calc(var(--cp-sidebar-width) + var(--cp-shell-gap));
  padding-top: 26px;
}

.cp-page.cp-sidebar-collapsed .cp-shell-header {
  width: var(--cp-sidebar-collapsed-width);
}

.cp-page.cp-sidebar-collapsed .cp-shell-brand span,
.cp-page.cp-sidebar-collapsed #cpUserBadge {
  display: none;
}

.cp-page.cp-sidebar-collapsed .cp-nav-toggle {
  text-align: center;
  padding-left: 0;
  padding-right: 0;
}

.cp-page.cp-sidebar-collapsed .cp-nav-toggle span {
  transform: rotate(180deg);
}

.cp-page.cp-sidebar-collapsed .cp-shell-nav a {
  justify-content: center;
  font-size: 0;
  padding-left: 0;
  padding-right: 0;
}

.cp-page.cp-sidebar-collapsed .cp-shell-nav a::before {
  font-size: 1.15rem;
}

.cp-page.cp-sidebar-collapsed .cp-shell-user button {
  font-size: 0;
}

.cp-page.cp-sidebar-collapsed .cp-shell-user button::before {
  content: "\21A9";
  font-size: 1rem;
}

.cp-page.cp-sidebar-collapsed .cp-workspace.container {
  margin-left: calc(var(--cp-sidebar-collapsed-width) + var(--cp-shell-gap));
}

@media (max-width: 992px) {
  .cp-page .cp-shell-header {
    position: sticky;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(140, 92, 212, 0.14);
    padding: 10px 0;
  }

  .cp-page .cp-shell-bar.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 0;
  }

  .cp-page .cp-shell-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cp-page .cp-shell-nav a {
    width: auto;
    padding: 9px 14px;
    font-size: 0.95rem;
  }

  .cp-page .cp-shell-nav a::before {
    width: auto;
  }

  .cp-nav-toggle {
    display: none;
  }

  .cp-page .cp-shell-user {
    margin-top: 0;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cp-page .cp-workspace.container,
  .cp-page.cp-sidebar-collapsed .cp-workspace.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
  }
}

.cp-section-description {
  margin-bottom: 14px;
  color: #505050;
}

.cp-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.cp-placeholder-card {
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(140, 92, 212, 0.2);
  border-radius: 12px;
  padding: 14px;
}

.cp-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.cp-action-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(140, 92, 212, 0.22);
  border-radius: 14px;
  padding: 14px;
  color: #222;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: 0.25s ease;
}

.cp-action-card strong {
  color: #18a14d;
}

.cp-action-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.cp-sub-actions {
  margin-bottom: 14px;
}

.cp-subtitle {
  margin: 18px 0 10px;
  color: #303030;
}

.cp-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.cp-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 600;
}

.cp-form-grid input,
.cp-form-grid select {
  border: 1px solid rgba(140, 92, 212, 0.26);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
}

.cp-form-grid textarea {
  border: 1px solid rgba(140, 92, 212, 0.26);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  resize: vertical;
}

.cp-form-grid button {
  align-self: end;
}

.cp-inline-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 600;
}

.cp-inline-filter select {
  border: 1px solid rgba(140, 92, 212, 0.26);
  border-radius: 10px;
  padding: 8px 10px;
}

.cp-checkbox {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  align-self: end;
}

.cp-record-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cp-record-card {
  background: #fff;
  border: 1px solid rgba(140, 92, 212, 0.2);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.cp-config-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(120px, auto) minmax(170px, 220px) minmax(170px, 220px);
  align-items: center;
  gap: 10px;
}

.cp-config-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
}

.cp-config-row input[type=\"number\"],
.cp-config-row input[type=\"time\"] {
  border: 1px solid rgba(140, 92, 212, 0.26);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
}

.cp-feedback-error {
  color: #b83434;
}

@media (max-width: 900px) {
  .cp-config-row {
    grid-template-columns: 1fr;
  }
}

.cp-record-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(140, 92, 212, 0.2);
  flex-shrink: 0;
}

.cp-menu-item-card {
  justify-content: space-between;
  align-items: center;
}

.cp-menu-item-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cp-menu-item-main > div {
  min-width: 0;
}

.cp-record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cp-promo-mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(140, 92, 212, 0.22);
  background: rgba(255, 255, 255, 0.78);
}

.cp-promo-mode-btn {
  border: 1px solid transparent;
  background: transparent;
  color: #404040;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cp-promo-mode-btn.active {
  border-color: rgba(24, 161, 77, 0.28);
  background: rgba(24, 161, 77, 0.12);
  color: #17653a;
}

.promo-field-hidden {
  display: none !important;
}

.kitchen-board-lg {
  grid-template-columns: repeat(3, minmax(280px, 1fr));
}

.cp-item-highlight {
  border: 1px solid #d4c8b7;
  border-radius: 12px;
  padding: 8px 10px;
}

.cp-item-list {
  margin: 0;
  padding: 8px 10px 8px 22px;
  border: 1px solid #d4c8b7;
  border-radius: 12px;
  background: #fffdf9;
}

.cp-item-list li {
  margin: 0;
  line-height: 1.4;
}

.cp-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.cp-login-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(140, 92, 212, 0.2);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.cp-login-card h1 {
  margin-bottom: 6px;
}

.cp-login-form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cp-login-form input {
  width: 100%;
  border: 1px solid rgba(140, 92, 212, 0.26);
  border-radius: 10px;
  padding: 10px;
}

.cp-mode-hint {
  margin-top: 8px;
  color: #6b665e;
}

.cp-feedback {
  margin-top: 10px;
  color: #2b6c2e;
}

.cp-feedback.error {
  color: #9f2626;
}

.cp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.44);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cp-modal {
  width: min(900px, 100%);
  max-height: 82vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
  padding: 16px;
}

.cp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.financeiro-locked .cp-workspace {
  filter: blur(4px);
  pointer-events: none;
}

.stock-row-ok {
  background: rgba(24, 161, 77, 0.08);
}

.stock-row-atencao {
  background: rgba(245, 158, 11, 0.14);
}

.stock-row-critico {
  background: rgba(178, 59, 59, 0.14);
}

.stock-ingredient-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stock-ingredient-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

@media (max-width: 992px) {
  .cp-placeholder-grid {
    grid-template-columns: 1fr;
  }
}
