/* ===================================
   Sally App — Light operations theme
   =================================== */

.text-emerald { color: #10b981 !important; }
.bg-emerald { background-color: #10b981 !important; }
.border-emerald { border-color: #10b981 !important; }

.sally-page {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.sally-page-head {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.sally-title {
  color: #0f172a;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
}

.sally-subtitle {
  color: #64748b;
  font-size: 0.92rem;
  margin: 0.25rem 0 0;
}

.sally-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.sally-toolbar {
  align-items: stretch;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem;
}

.sally-toolbar-main {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  min-width: 0;
  width: 100%;
}

.sally-toolbar-secondary {
  width: 100%;
}

.product-filter-search-button,
.product-filter-toggle,
.product-filter-clear-button {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.4rem;
  min-height: 2.5rem;
}

.product-filter-search-button {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
  width: 2.75rem;
}

.product-filter-search-button span {
  display: none;
}

.product-filter-clear-button {
  background: #ffffff;
  border: 1px solid #fecaca;
  border-radius: 0.75rem;
  color: #dc2626;
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
  width: 2.5rem;
}

.product-filter-clear-button:hover,
.product-filter-clear-button:focus {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.product-filter-toggle {
  background: #e5e7eb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  color: #1f2937;
  font-weight: 850;
  padding: 0.55rem 0.8rem;
}

.product-filter-toggle strong {
  align-items: center;
  background: #047857;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.68rem;
  height: 1.15rem;
  justify-content: center;
  margin-left: 0.1rem;
  min-width: 1.15rem;
  padding: 0 0.28rem;
}

.product-filter-toggle:hover,
.product-filter-toggle:focus,
.product-filter-toggle.is-open {
  background: #dbe4ee;
  border-color: #cbd5e1;
  color: #0f172a;
}

.product-filter-panel {
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 0.85rem;
  padding: 0.85rem;
}

.product-filter-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.product-filter-actions {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 0.8rem;
}

.product-filter-actions-end {
  justify-content: flex-end;
}

.product-filter-action-buttons {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.5rem;
}

.sally-search {
  flex: 1 1 auto;
  min-width: 0;
}

.sally-search .form-control {
  border-color: transparent !important;
  box-shadow: none !important;
}

.sally-search-icon {
  align-items: center;
  color: #10b981;
  display: inline-flex;
  justify-content: center;
  width: 2.5rem;
}

.sally-category-filter {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  min-height: 2.5rem;
}

.sally-status-badge-filter {
  align-items: center;
  display: inline-flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sally-status-filter-badge {
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 999px;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  min-height: 2.25rem;
  padding: 0.45rem 0.75rem;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.sally-status-filter-badge:hover,
.sally-status-filter-badge:focus,
.sally-status-filter-badge.is-active {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
}

.quote-qty {
  max-width: 5.5rem;
}

.quote-money {
  max-width: 7rem;
}

.quote-itbms-badge {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #64748b;
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1;
  padding: 0.22rem 0.42rem;
  white-space: nowrap;
}

.quote-itbms-badge:hover {
  background: #e2e8f0;
  color: #334155;
}

.quote-summary-panel {
  position: sticky;
  top: 1rem;
}

.quote-selected-item {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
}

.quote-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
}

.quote-card {
  background: #ffffff;
  border: 1px solid #dbe4ef;
  border-radius: 0.9rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: 1.25rem;
}

.quote-card-head {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.quote-card-kicker {
  color: #475569;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.quote-card-number {
  color: #111827;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0.35rem 0 0;
}

.quote-card-status {
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 0.36rem 0.78rem;
}

.quote-card-status .bi-circle-fill {
  font-size: 0.48rem;
}

.quote-card-client {
  align-items: center;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 2.9rem 1fr;
  margin-bottom: 1.1rem;
}

.quote-card-avatar {
  align-items: center;
  background: #e7f5ef;
  border-radius: 999px;
  color: #047857;
  display: flex;
  font-size: 1.35rem;
  height: 2.9rem;
  justify-content: center;
  width: 2.9rem;
}

.quote-card-client-name {
  color: #111827;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.quote-card-client-phone {
  align-items: center;
  color: #334155;
  display: flex;
  font-size: 0.86rem;
  gap: 0.35rem;
  line-height: 1.3;
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
}

.quote-card-meta {
  display: grid;
  gap: 0.9rem;
}

.quote-card-event-summary {
  align-items: center;
  color: #1f2937;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.86rem;
  gap: 0.75rem 1.25rem;
  line-height: 1.35;
}

.quote-card-event-summary > span {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
  min-width: 0;
}

.quote-card-event-summary i {
  color: #53627a;
  flex: 0 0 auto;
  font-size: 1.08rem;
}

.quote-card-meta-row {
  align-items: flex-start;
  color: #1f2937;
  display: grid;
  font-size: 0.88rem;
  gap: 0.8rem;
  grid-template-columns: 1.4rem 1fr;
  line-height: 1.45;
  min-width: 0;
}

.quote-card-meta-row i {
  color: #475569;
  font-size: 1.12rem;
  line-height: 1.3;
}

.quote-card-meta-row span {
  overflow-wrap: anywhere;
}

.quote-card-divider {
  border-top: 1px solid #e5e7eb;
  margin: 1.25rem 0;
}

.quote-card-money {
  background: #f5f7f9;
  border-radius: 0.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 0.75rem;
  overflow: hidden;
  padding: 0.85rem 0;
}

.quote-card-money > div {
  min-width: 0;
  padding: 0 0.65rem;
  text-align: center;
}

.quote-card-money > div + div {
  border-left: 1px solid #dfe5eb;
}

.quote-card-money span {
  color: #64748b;
  display: block;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.1;
}

.quote-card-money strong {
  color: #047857;
  display: block;
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1.2;
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
}

.quote-card-money .quote-card-balance {
  color: #ef4444;
}

.quote-card-money .quote-card-balance-zero {
  color: #64748b;
}

.quote-card-actions {
  background: #fbfcfe;
  border-top: 1px solid #edf2f7;
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
  margin: auto -1.25rem -1.25rem;
  padding: 1.15rem 1.5rem;
}

.quote-card-action {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  color: #53627a;
  display: inline-flex;
  font-size: 1.28rem;
  height: 3.25rem;
  justify-content: center;
  padding: 0;
  width: 3.25rem;
}

.quote-card-action:hover,
.quote-card-action:focus {
  background: #e2e8f0;
  color: #334155;
}

.client-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
}

.client-card {
  background: #ffffff;
  border: 1px solid #dbe4ef;
  border-radius: 0.95rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.client-card-main {
  padding: 1.65rem 2rem 1.35rem;
}

.client-card-head {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.45rem;
}

.client-card-identity {
  align-items: center;
  display: grid;
  gap: 1.35rem;
  grid-template-columns: 4.25rem 1fr;
  min-width: 0;
}

.client-card-avatar {
  align-items: center;
  background: #e7f5ef;
  border: 1px solid #b7d8cf;
  border-radius: 999px;
  color: #047857;
  display: flex;
  font-size: 1.9rem;
  height: 4.25rem;
  justify-content: center;
  width: 4.25rem;
}

.client-card-company {
  color: #111827;
  font-size: 1.35rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
  overflow-wrap: anywhere;
}

.client-card-name {
  color: #3f4b46;
  font-size: 1.02rem;
  line-height: 1.25;
  margin: 0.35rem 0 0;
  overflow-wrap: anywhere;
}

.client-card-details {
  display: grid;
  gap: 0.85rem;
}

.client-card-row {
  align-items: flex-start;
  color: #1f2937;
  display: grid;
  font-size: 1.03rem;
  gap: 0.85rem;
  grid-template-columns: 1.6rem 1fr;
  line-height: 1.3;
}

.client-card-row i {
  color: #53627a;
  font-size: 1.2rem;
  line-height: 1.35;
}

.client-card-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.client-card-actions {
  align-items: center;
  background: #fbfcfe;
  border-top: 1px solid #edf2f7;
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  margin-top: auto;
  padding: 1.15rem 1.5rem;
}

.client-card-status-switch {
  align-items: center;
  background: transparent;
  border: 0;
  color: #334155;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 850;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0;
}

.client-card-status-switch:hover,
.client-card-status-switch:focus {
  color: #0f172a;
}

.client-card-switch-track {
  align-items: center;
  background: #cbd5e1;
  border-radius: 999px;
  display: inline-flex;
  height: 1.35rem;
  padding: 0.13rem;
  transition: background-color 0.16s ease;
  width: 2.45rem;
}

.client-card-switch-thumb {
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
  display: block;
  height: 1.08rem;
  transform: translateX(0);
  transition: transform 0.16s ease;
  width: 1.08rem;
}

.client-card-status-switch.is-active .client-card-switch-track {
  background: #047857;
}

.client-card-status-switch.is-active .client-card-switch-thumb {
  transform: translateX(1.1rem);
}

.client-card-status-switch.is-inactive {
  color: #64748b;
}

.client-card-action-group {
  display: flex;
  flex: 0 0 auto;
  gap: 0.8rem;
}

.client-card-action {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  color: #53627a;
  display: inline-flex;
  font-size: 1.28rem;
  height: 3.25rem;
  justify-content: center;
  padding: 0;
  width: 3.25rem;
}

.client-card-action:hover,
.client-card-action:focus {
  background: #f1f5f9;
  color: #334155;
}

.client-card-action-danger {
  color: #dc2626;
}

.client-card-action-danger:hover,
.client-card-action-danger:focus {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.user-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
}

.user-card {
  background: #ffffff;
  border: 1px solid #b7d8cf;
  border-radius: 0.95rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.user-card-main {
  padding: 1.65rem 2rem 1.35rem;
}

.user-card-head {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.45rem;
}

.user-card-identity {
  align-items: center;
  display: grid;
  gap: 1.35rem;
  grid-template-columns: 4.25rem 1fr;
  min-width: 0;
}

.user-card-avatar {
  align-items: center;
  background: #e7f5ef;
  border: 1px solid #10b981;
  border-radius: 999px;
  color: #10b981;
  display: flex;
  font-size: 1.9rem;
  height: 4.25rem;
  justify-content: center;
  width: 4.25rem;
}

.user-card-name {
  color: #111827;
  font-size: 1.35rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 0.6rem;
  overflow-wrap: anywhere;
}

.user-card-role {
  background: #dfe7ff;
  border-radius: 0.4rem;
  color: #64708a;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
  max-width: 100%;
  overflow: hidden;
  padding: 0.42rem 0.72rem;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.user-card-details {
  display: grid;
  gap: 0.85rem;
}

.user-card-row {
  align-items: center;
  color: #1f2937;
  display: grid;
  font-size: 1.03rem;
  gap: 0.85rem;
  grid-template-columns: 1.6rem 1fr;
  line-height: 1.3;
}

.user-card-row i {
  color: #53627a;
  font-size: 1.2rem;
}

.user-card-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.user-card-actions {
  align-items: center;
  background: #fbfcfe;
  border-top: 1px solid #edf2f7;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: auto;
  padding: 1.15rem 2rem;
}

.user-card-status-switch {
  align-items: center;
  background: transparent;
  border: 0;
  color: #334155;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 850;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0;
}

.user-card-status-switch:hover,
.user-card-status-switch:focus {
  color: #0f172a;
}

.user-card-switch-track {
  align-items: center;
  background: #cbd5e1;
  border-radius: 999px;
  display: inline-flex;
  height: 1.35rem;
  padding: 0.13rem;
  transition: background-color 0.16s ease;
  width: 2.45rem;
}

.user-card-switch-thumb {
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
  display: block;
  height: 1.08rem;
  transform: translateX(0);
  transition: transform 0.16s ease;
  width: 1.08rem;
}

.user-card-status-switch.is-active .user-card-switch-track {
  background: #047857;
}

.user-card-status-switch.is-active .user-card-switch-thumb {
  transform: translateX(1.1rem);
}

.user-card-status-switch.is-inactive {
  color: #64748b;
}

.user-card-action-group {
  display: flex;
  flex: 0 0 auto;
  gap: 1rem;
}

.user-card-action {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  color: #53627a;
  display: inline-flex;
  font-size: 1.28rem;
  height: 3.25rem;
  justify-content: center;
  padding: 0;
  width: 3.25rem;
}

.user-card-action:hover,
.user-card-action:focus {
  background: #f1f5f9;
  color: #334155;
}

.user-card-action-danger {
  color: #dc2626;
}

.user-card-action-danger:hover,
.user-card-action-danger:focus {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.user-delete-modal-icon {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.expense-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.expense-card {
  background: #ffffff;
  border: 1px solid #dbe4ef;
  border-radius: 0.75rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.expense-card-main {
  padding: 1rem 1rem 0.9rem;
}

.expense-card-head {
  align-items: center;
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.expense-card-category {
  background: #dfe7ff;
  border-radius: 999px;
  color: #64708a;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  max-width: 12rem;
  overflow: hidden;
  padding: 0.35rem 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expense-card-status {
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 0.34rem 0.7rem;
}

.expense-card-body {
  align-items: flex-start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.expense-card-date {
  color: #53627a;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.expense-card-title {
  color: #111827;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.32;
  margin: 0 0 0.5rem;
  overflow-wrap: anywhere;
}

.expense-card-provider {
  align-items: center;
  color: #334155;
  display: flex;
  font-size: 0.86rem;
  gap: 0.35rem;
  line-height: 1.3;
  min-width: 0;
}

.expense-card-provider span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expense-card-total {
  flex: 0 0 auto;
  text-align: right;
}

.expense-card-total strong {
  color: #dc2626;
  display: block;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.05;
}

.expense-card-total span {
  color: #53627a;
  display: block;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.1;
  margin-top: 0.45rem;
  text-transform: uppercase;
}

.expense-card-foot {
  align-items: center;
  background: #fbfcfe;
  border-top: 1px solid #edf2f7;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: auto;
  padding: 1rem 2rem;
}

.expense-card-processed {
  align-items: center;
  color: #334155;
  display: flex;
  font-size: 0.84rem;
  gap: 0.45rem;
  min-width: 0;
}

.expense-card-processed i {
  color: #047857;
}

.expense-card-processed span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expense-card-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 1rem;
}

.expense-card-action {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dbe4ef;
  border-radius: 0.8rem;
  color: #374151;
  display: inline-flex;
  font-size: 1.25rem;
  height: 3.25rem;
  justify-content: center;
  padding: 0;
  width: 3.25rem;
}

.expense-card-action:hover,
.expense-card-action:focus {
  background: #f1f5f9;
  color: #111827;
}

.expense-card-action-danger {
  border-color: #fecaca;
  color: #dc2626;
}

.expense-card-action-danger:hover,
.expense-card-action-danger:focus {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.company-config-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr));
}

.company-config-card {
  background: #ffffff;
  border: 1px solid #dbe4ef;
  border-radius: 0.95rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.company-config-main {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.company-config-head {
  align-items: center;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 3.6rem 1fr;
  min-width: 0;
}

.company-config-logo {
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 0.9rem;
  color: #047857;
  display: inline-flex;
  font-size: 1.5rem;
  height: 3.6rem;
  justify-content: center;
  overflow: hidden;
  width: 3.6rem;
}

.company-config-logo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.company-config-title {
  color: #111827;
  font-size: 1.1rem;
  font-weight: 950;
  line-height: 1.2;
  margin: 0;
  overflow-wrap: anywhere;
}

.company-config-lema {
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 750;
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
}

.company-config-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
}

.company-config-section-title {
  align-items: center;
  color: #475569;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  gap: 0.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.company-config-fields {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.company-config-fields span {
  min-width: 0;
}

.company-config-fields strong {
  color: #64748b;
  display: block;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.company-config-fields em {
  color: #111827;
  display: block;
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 750;
  margin-top: 0.12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-config-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.company-config-social span {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #94a3b8;
  display: inline-flex;
  height: 2.15rem;
  justify-content: center;
  width: 2.15rem;
}

.company-config-social span.is-filled {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #047857;
}

.company-config-actions {
  align-items: center;
  background: #fbfcfe;
  border-top: 1px solid #edf2f7;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: auto;
  padding: 1rem 1.25rem;
}

.company-config-form-sections {
  display: grid;
  gap: 1rem;
}

.company-config-form-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.95rem;
  padding: 1rem;
}

.company-config-form-title {
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.85rem;
}

.company-config-form-title > i {
  align-items: center;
  background: #ecfdf5;
  border-radius: 0.7rem;
  color: #047857;
  display: inline-flex;
  flex: 0 0 auto;
  height: 2.3rem;
  justify-content: center;
  width: 2.3rem;
}

.company-config-form-title strong {
  color: #0f172a;
  display: block;
  font-weight: 900;
}

.company-config-form-title span {
  color: #64748b;
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.12rem;
}

.company-config-page-form {
  display: grid;
  gap: 1rem;
}

.company-config-save-bar {
  align-items: center;
  background: #fbfcfe;
  border: 1px solid #edf2f7;
  border-radius: 0.95rem;
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
}

.yappy-config-save-bar {
  justify-content: center;
}

.company-config-map {
  height: 340px;
  min-height: 280px;
}

.furniture-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.furniture-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.furniture-card-main {
  align-items: flex-start;
  display: grid;
  gap: 1rem;
  grid-template-columns: 3.9rem 1fr;
  padding: 1.25rem 1.45rem 1rem;
}

.furniture-card-thumb {
  align-items: center;
  background: #e7f5ef;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #047857;
  display: flex;
  font-size: 1.75rem;
  height: 3.9rem;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  width: 3.9rem;
}

button.furniture-card-thumb {
  cursor: pointer;
}

button.furniture-card-thumb:hover,
button.furniture-card-thumb:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 0.18rem rgba(16, 185, 129, 0.12);
}

.furniture-card-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.furniture-card-content {
  min-width: 0;
}

.furniture-card-title-row {
  align-items: flex-start;
  display: flex;
  gap: 0.9rem;
  justify-content: space-between;
  min-width: 0;
}

.furniture-card-title {
  color: #111827;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.furniture-card-price {
  color: #047857;
  flex: 0 0 auto;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.15;
}

.furniture-card-description {
  color: #475569;
  display: -webkit-box;
  font-size: 0.86rem;
  line-height: 1.3;
  margin: 0.28rem 0 0.6rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.furniture-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.furniture-card-category,
.furniture-card-quantity {
  align-items: center;
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #475569;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  min-height: 1.45rem;
  padding: 0.33rem 0.62rem;
}

.furniture-card-quantity {
  background: #ffffff;
  border-color: #7fc8ad;
  color: #059669;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 950;
  justify-content: center;
  min-height: 1.8rem;
  min-width: 3.9rem;
  padding: 0.36rem 0.9rem;
}

.furniture-card-quantity:hover,
.furniture-card-quantity:focus {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
}

.furniture-card-actions {
  align-items: center;
  background: #fbfcfe;
  border-top: 1px solid #edf2f7;
  display: flex;
  gap: 0.7rem;
  justify-content: space-between;
  margin-top: auto;
  padding: 0.85rem 1.45rem;
}

.furniture-card-status-switch {
  align-items: center;
  background: transparent;
  border: 0;
  color: #334155;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 850;
  gap: 0.6rem;
  min-height: 2.55rem;
  padding: 0;
}

.furniture-card-status-switch:hover,
.furniture-card-status-switch:focus {
  color: #0f172a;
}

.furniture-card-switch-track {
  align-items: center;
  background: #cbd5e1;
  border-radius: 999px;
  display: inline-flex;
  height: 1.35rem;
  padding: 0.13rem;
  transition: background-color 0.16s ease;
  width: 2.45rem;
}

.furniture-card-switch-thumb {
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
  display: block;
  height: 1.08rem;
  transform: translateX(0);
  transition: transform 0.16s ease;
  width: 1.08rem;
}

.furniture-card-status-switch.is-active .furniture-card-switch-track {
  background: #047857;
}

.furniture-card-status-switch.is-active .furniture-card-switch-thumb {
  transform: translateX(1.1rem);
}

.furniture-card-status-switch.is-inactive {
  color: #64748b;
}

.furniture-card-action-group {
  display: flex;
  flex: 0 0 auto;
  gap: 0.7rem;
}

.furniture-card-action {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dbe4ef;
  border-radius: 0.55rem;
  color: #53627a;
  display: inline-flex;
  font-size: 1rem;
  height: 2.55rem;
  justify-content: center;
  padding: 0;
  width: 2.55rem;
}

.furniture-card-action:hover,
.furniture-card-action:focus {
  background: #f1f5f9;
  color: #334155;
}

.furniture-card-action-danger {
  border-color: #fecaca;
  color: #dc2626;
}

.furniture-card-action-danger:hover,
.furniture-card-action-danger:focus {
  background: #fef2f2;
  color: #b91c1c;
}

.menu-product-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
}

.menu-product-card {
  background: #ffffff;
  border: 1px solid #b7d8cf;
  border-radius: 0.95rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.menu-product-card-main {
  align-items: flex-start;
  display: grid;
  gap: 1.35rem;
  grid-template-columns: 7.25rem 1fr;
  padding: 2rem 2rem 1.45rem;
}

.menu-product-card-thumb {
  align-items: center;
  aspect-ratio: 1;
  background: #e7f5ef;
  border: 1px solid #dbe4ef;
  border-radius: 0.65rem;
  color: #047857;
  display: flex;
  font-size: 2rem;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

button.menu-product-card-thumb {
  cursor: pointer;
}

button.menu-product-card-thumb:hover,
button.menu-product-card-thumb:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 0.18rem rgba(16, 185, 129, 0.12);
}

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

.menu-product-card-content {
  min-width: 0;
}

.menu-product-card-title-row {
  align-items: flex-start;
  display: flex;
  min-width: 0;
}

.menu-product-card-title {
  color: #111827;
  font-size: 1.35rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
  overflow-wrap: anywhere;
}

.menu-product-card-metrics {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.menu-product-card-quantity {
  align-items: center;
  background: #ffffff;
  border: 1px solid #64748b;
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 850;
  justify-content: center;
  min-height: 2.2rem;
  min-width: 4.4rem;
  padding: 0.35rem 0.9rem;
}

.menu-product-card-quantity:hover,
.menu-product-card-quantity:focus {
  background: #f8fafc;
  border-color: #334155;
  color: #0f172a;
}

.menu-product-card-price {
  color: #047857;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
}

.menu-product-card-description {
  color: #334155;
  display: -webkit-box;
  font-size: 1rem;
  line-height: 1.45;
  margin: 0.55rem 0 0.85rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.menu-product-card-badges {
  border-top: 1px solid #edf2f7;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding-top: 0.8rem;
}

.menu-product-card-category,
.menu-product-card-day {
  align-items: center;
  background: #e7f5ef;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  color: #047857;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1;
  padding: 0.55rem 0.8rem;
}

.menu-product-card-category {
  background: #f1f5f9;
  color: #475569;
}

.menu-product-card-actions {
  align-items: center;
  background: #fbfcfe;
  border-top: 1px solid #edf2f7;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: auto;
  padding: 1rem 2rem;
}

.menu-product-card-status-switch {
  align-items: center;
  background: transparent;
  border: 0;
  display: inline-flex;
  min-height: 1.4rem;
  padding: 0;
}

.menu-product-card-status-switch:hover,
.menu-product-card-status-switch:focus {
  box-shadow: none;
  outline: none;
}

.menu-product-card-switch-track {
  align-items: center;
  background: #cbd5e1;
  border-radius: 999px;
  display: inline-flex;
  height: 1rem;
  padding: 0.12rem;
  transition: background-color 0.16s ease, box-shadow 0.16s ease;
  width: 1.9rem;
}

.menu-product-card-switch-thumb {
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
  display: block;
  height: 0.76rem;
  transform: translateX(0);
  transition: transform 0.16s ease;
  width: 0.76rem;
}

.menu-product-card-status-switch.is-active .menu-product-card-switch-track {
  background: #10b981;
}

.menu-product-card-status-switch.is-active .menu-product-card-switch-thumb {
  transform: translateX(0.9rem);
}

.menu-product-card-status-switch:hover .menu-product-card-switch-track,
.menu-product-card-status-switch:focus .menu-product-card-switch-track {
  box-shadow: 0 0 0 0.16rem rgba(16, 185, 129, 0.14);
}

.menu-product-card-action-group {
  display: flex;
  flex: 0 0 auto;
  gap: 1rem;
}

.menu-product-card-action {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dbe4ef;
  border-radius: 0.8rem;
  color: #374151;
  display: inline-flex;
  font-size: 1.25rem;
  height: 3.25rem;
  justify-content: center;
  padding: 0;
  width: 3.25rem;
}

.menu-product-card-action:hover,
.menu-product-card-action:focus {
  background: #f1f5f9;
  color: #111827;
}

.menu-product-card-action-danger {
  border-color: #fecaca;
  color: #dc2626;
}

.menu-product-card-action-danger:hover,
.menu-product-card-action-danger:focus {
  background: #fef2f2;
  color: #b91c1c;
}

.white-space-pre-line {
  white-space: pre-line;
}

.sally-table-wrap {
  overflow: hidden;
}

.sally-table {
  margin-bottom: 0;
}

.sally-table thead th {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0.95rem 1rem;
  text-transform: uppercase;
}

.sally-table tbody td {
  border-color: #edf2f7;
  color: #334155;
  padding: 1rem;
  vertical-align: middle;
}

.sally-table tbody tr {
  transition: background 0.16s ease;
}

.sally-table tbody tr:hover {
  background: #fbfefc;
}

.sally-table tbody tr.sally-order-row-registered,
.sally-table tbody tr.sally-order-row-registered > td {
  background: #fef2f2;
}

.sally-table tbody tr.sally-order-row-registered:hover,
.sally-table tbody tr.sally-order-row-registered:hover > td {
  background: #fee2e2;
}

.sally-table tbody tr.sally-order-row-delivered,
.sally-table tbody tr.sally-order-row-delivered > td {
  background: #ecfdf5;
}

.sally-table tbody tr.sally-order-row-delivered:hover,
.sally-table tbody tr.sally-order-row-delivered:hover > td {
  background: #d1fae5;
}

.sally-table tbody tr.sally-order-row-prepared,
.sally-table tbody tr.sally-order-row-prepared > td {
  background: #fef9c3;
}

.sally-table tbody tr.sally-order-row-prepared:hover,
.sally-table tbody tr.sally-order-row-prepared:hover > td {
  background: #fef08a;
}

.sally-table tbody tr.sally-order-row-sent,
.sally-table tbody tr.sally-order-row-sent > td {
  background: #eff6ff;
}

.sally-table tbody tr.sally-order-row-sent:hover,
.sally-table tbody tr.sally-order-row-sent:hover > td {
  background: #dbeafe;
}

.sally-order-closed-toggle {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  padding: 0;
  width: 2rem;
}

.sally-order-closed-toggle.is-closed {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.sally-order-closed-toggle.is-closed:hover,
.sally-order-closed-toggle.is-closed:focus {
  background: #fecaca;
  border-color: #fca5a5;
  color: #b91c1c;
}

.sally-order-closed-toggle.is-open {
  background: transparent;
  border: 1px solid #22c55e;
  color: #16a34a;
}

.sally-order-closed-toggle.is-open:hover,
.sally-order-closed-toggle.is-open:focus {
  background: #ecfdf5;
  border-color: #16a34a;
  color: #15803d;
}

.orders-filter-form {
  background: #f8fafc;
  border: 1px solid #dbe4ee;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem;
}

.orders-section-compact {
  margin-bottom: 0.25rem;
}

.orders-filter-main {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.orders-filter-search {
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 0.75rem;
  flex: 1 1 auto;
  min-width: 0;
}

.orders-filter-search .input-group {
  border-radius: inherit;
  overflow: hidden;
}

.orders-filter-search .input-group-text {
  color: #64748b;
}

.orders-filter-search .form-control {
  box-shadow: none !important;
  min-height: 2.55rem;
}

.orders-filter-badges {
  padding: 0.1rem 0;
}

.orders-filter-search-button {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.4rem;
  min-height: 2.55rem;
}

.orders-filter-toggle {
  align-items: center;
  background: #e5e7eb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  color: #1f2937;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 850;
  gap: 0.45rem;
  min-height: 2.55rem;
  padding: 0.55rem 0.8rem;
}

.orders-filter-toggle strong {
  align-items: center;
  background: #047857;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.68rem;
  height: 1.15rem;
  justify-content: center;
  min-width: 1.15rem;
  padding: 0 0.28rem;
}

.orders-filter-toggle:hover,
.orders-filter-toggle:focus,
.orders-filter-toggle.is-open {
  background: #dbe4ee;
  border-color: #cbd5e1;
  color: #0f172a;
}

.orders-filter-panel {
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 0.85rem;
  padding: 0.85rem;
}

.orders-filter-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.orders-filter-actions {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: minmax(0, 1fr) auto auto;
  margin-top: 1rem;
}

.orders-filter-actions .btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 2.75rem;
}

.orders-filter-actions .btn-emerald {
  gap: 0.4rem;
}

.orders-bulk-panel {
  padding: 0.85rem 1rem;
}

.orders-summary-panel {
  padding: 0.8rem 1rem;
}

.orders-summary-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.orders-list-panel {
  padding: 0.15rem 0.15rem 0.05rem;
}

.orders-list-empty {
  border: 1px dashed #dbe4ee;
  border-radius: 0.85rem;
  padding: 1.5rem 1rem;
}

.orders-list-pagination {
  margin-top: 0.1rem;
}

.orders-summary-amount {
  color: #0f766e;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.orders-summary-amount-neutral {
  color: #0f172a;
}

.orders-bulk-panel .d-flex {
  gap: 0.75rem !important;
}

.orders-bulk-panel .sally-row-title {
  line-height: 1.15;
}

.orders-bulk-panel .sally-row-muted {
  line-height: 1.2;
  margin-top: 0.15rem;
}

.orders-bulk-panel .btn {
  min-height: 2.4rem;
  padding-bottom: 0.45rem;
  padding-top: 0.45rem;
}

.orders-card-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
}

.orders-summary-panel + .orders-list-panel {
  margin-top: -0.7rem;
}

.order-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.order-card-head {
  align-items: flex-start;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 6.2rem;
  padding: 1.35rem 1.45rem;
}

.order-card-registered .order-card-head {
  background: #fef2f2;
  border-bottom-color: #fecaca;
}

.order-card-delivered .order-card-head {
  background: #ecfdf5;
  border-bottom-color: #bbf7d0;
}

.order-card-prepared .order-card-head {
  background: #fef9c3;
  border-bottom-color: #fde68a;
}

.order-card-sent .order-card-head {
  background: #eff6ff;
  border-bottom-color: #bfdbfe;
}

.order-card-title {
  color: #047857;
  font-size: 1.26rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 0.55rem;
  overflow-wrap: anywhere;
}

.order-card-time {
  align-items: center;
  color: #334155;
  display: flex;
  font-size: 1rem;
  gap: 0.38rem;
  line-height: 1.2;
}

.order-card-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.75rem;
}

.order-icon-button {
  align-items: center;
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: 0.8rem;
  color: #047857;
  display: inline-flex;
  font-size: 1.2rem;
  height: 3.25rem;
  justify-content: center;
  padding: 0;
  width: 3.25rem;
}

.order-icon-button:hover,
.order-icon-button:focus {
  background: #e2e8f0;
  color: #065f46;
}

.order-card-client {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 2.4rem 1fr;
  padding: 1.45rem 1.45rem 1rem;
}

.order-card-avatar {
  align-items: center;
  background: #dbe4ff;
  border-radius: 999px;
  color: #1f2937;
  display: flex;
  font-size: 1.1rem;
  height: 2.4rem;
  justify-content: center;
  width: 2.4rem;
}

.order-card-client-name {
  color: #1f2937;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.order-card-client-line {
  color: #3f4b46;
  font-size: 1.02rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.order-card-notes {
  background: #f8fafc;
  border-left: 0.28rem solid #c7ded8;
  border-radius: 0.65rem;
  margin: 0.75rem 1.45rem 1.25rem;
  padding: 1rem 1.1rem;
}

.order-card-notes-label {
  align-items: center;
  color: #475569;
  display: flex;
  font-size: 0.76rem;
  font-weight: 850;
  gap: 0.55rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.order-card-notes p {
  color: #1f2937;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
}

.order-card-divider {
  border-top: 1px solid #e5e7eb;
  margin: 0 1.45rem;
}

.order-card-payment {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.25rem 1.45rem 0.7rem;
}

.order-card-pay-method {
  align-items: center;
  color: #1f2937;
  display: flex;
  font-size: 0.95rem;
  font-weight: 850;
  gap: 0.55rem;
  margin-top: 0.55rem;
  overflow-wrap: anywhere;
}

.order-card-total {
  color: #334155;
  flex: 0 0 auto;
  text-align: right;
}

.order-card-total span {
  display: block;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.order-card-total strong {
  color: #047857;
  display: block;
  font-size: 1.42rem;
  font-weight: 950;
  line-height: 1.05;
}

.order-card-products {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 850;
  padding: 0 1.45rem 0.65rem;
}

.order-card-controls {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: auto;
  padding: 0.6rem 1.45rem 0.85rem;
}

.order-card-controls .sally-state-select {
  background-color: #f1f5f9;
  border-color: transparent;
  color: #334155;
  font-weight: 800;
  min-height: 3rem;
  min-width: 0;
  width: 100%;
}

.order-card-state-form {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(0, 1fr) 3rem;
  min-width: 0;
}

.order-card-submit {
  align-items: center;
  display: inline-flex;
  height: 3rem;
  justify-content: center;
  padding: 0;
  width: 3rem;
}

.order-card-print-btn {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
  height: 3rem;
  justify-content: center;
  padding: 0 0.9rem;
  width: 100%;
}

.order-card-readonly {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  color: #475569;
  display: flex;
  font-weight: 800;
  min-height: 3rem;
  overflow-wrap: anywhere;
  padding: 0.55rem 0.75rem;
}

@media (max-width: 575.98px) {
  .menu-product-card-main {
    gap: 1rem;
    grid-template-columns: 5.4rem 1fr;
    padding: 1.2rem 1rem 1rem;
  }

  .menu-product-card-title {
    font-size: 1.08rem;
  }

  .menu-product-card-metrics {
    gap: 0.45rem;
    margin-top: 0.55rem;
  }

  .menu-product-card-price {
    font-size: 0.95rem;
  }

  .menu-product-card-description {
    font-size: 0.9rem;
    margin: 0.55rem 0 0.8rem;
  }

  .menu-product-card-badges {
    gap: 0.45rem;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
  }

  .menu-product-card-category,
  .menu-product-card-day {
    font-size: 0.76rem;
    padding: 0.42rem 0.62rem;
  }

  .menu-product-card-actions {
    gap: 0.75rem;
    padding: 0.9rem 1rem;
  }

  .menu-product-card-action-group {
    gap: 0.55rem;
  }

  .menu-product-card-action {
    height: 2.9rem;
    width: 2.9rem;
  }

  .furniture-card-main {
    gap: 0.85rem;
    grid-template-columns: 3.35rem 1fr;
    padding: 1rem 1rem 0.85rem;
  }

  .furniture-card-thumb {
    font-size: 1.45rem;
    height: 3.35rem;
    width: 3.35rem;
  }

  .furniture-card-title-row {
    gap: 0.6rem;
  }

  .furniture-card-actions {
    gap: 0.8rem;
    padding: 0.8rem 1rem;
  }

  .furniture-card-action-group {
    gap: 0.55rem;
  }

  .user-card-main {
    padding: 1.15rem 1.2rem 1rem;
  }

  .user-card-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 1.1rem;
  }

  .user-card-identity {
    gap: 1rem;
    grid-template-columns: 3.5rem 1fr;
  }

  .user-card-avatar {
    font-size: 1.55rem;
    height: 3.5rem;
    width: 3.5rem;
  }

  .user-card-name {
    font-size: 1.18rem;
  }

  .user-card-details {
    gap: 0.75rem;
  }

  .user-card-actions {
    gap: 0.8rem;
    padding: 0.95rem 1.1rem;
  }

  .user-card-action-group {
    gap: 0.55rem;
  }

  .user-card-action {
    height: 2.9rem;
    width: 2.9rem;
  }

  .quote-card-actions {
    padding: 0.95rem 1.1rem;
  }

  .quote-card-action {
    height: 2.9rem;
    width: 2.9rem;
  }

  .expense-card-body {
    gap: 0.75rem;
  }

  .expense-card-category {
    max-width: 10rem;
  }

  .expense-card-foot {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.9rem 1rem;
  }

  .expense-card-actions {
    justify-content: flex-end;
    width: 100%;
  }

  .client-card-main {
    padding: 1.15rem 1.2rem 1rem;
  }

  .client-card-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 1.1rem;
  }

  .client-card-identity {
    gap: 1rem;
    grid-template-columns: 3.5rem 1fr;
  }

  .client-card-avatar {
    font-size: 1.55rem;
    height: 3.5rem;
    width: 3.5rem;
  }

  .client-card-company {
    font-size: 1.18rem;
  }

  .client-card-details {
    gap: 0.75rem;
  }

  .client-card-actions {
    gap: 0.8rem;
    padding: 0.95rem 1.1rem;
  }

  .client-card-action-group {
    gap: 0.55rem;
  }

  .client-card-action {
    height: 2.9rem;
    width: 2.9rem;
  }

  .order-card-head {
    min-height: 0;
    padding: 1.1rem;
  }

  .order-card-title {
    font-size: 1.12rem;
  }

  .order-card-actions {
    gap: 0.55rem;
  }

  .order-icon-button {
    border-radius: 0.7rem;
    height: 2.75rem;
    width: 2.75rem;
  }

  .order-card-client {
    gap: 0.7rem;
    grid-template-columns: 2.2rem 1fr;
    padding: 1.15rem 1.1rem 0.85rem;
  }

  .order-card-avatar {
    font-size: 1rem;
    height: 2.2rem;
    width: 2.2rem;
  }

  .order-card-notes {
    margin: 0.55rem 1.1rem 1rem;
  }

  .order-card-divider {
    margin: 0 1.1rem;
  }

  .order-card-payment {
    padding: 1rem 1.1rem 0.65rem;
  }

  .order-card-total strong {
    font-size: 1.28rem;
  }

  .order-card-products {
    padding: 0 1.1rem 0.85rem;
  }

  .order-card-controls {
    grid-template-columns: 1fr;
    padding: 0.65rem 1.1rem 1.1rem;
  }

  .order-product-row {
    grid-template-columns: 38px 46px 1fr;
  }

  .order-product-row .text-end {
    grid-column: 1 / -1;
    text-align: left !important;
  }
}

.sally-empty {
  color: #64748b;
  padding: 2rem 1rem;
  text-align: center;
}

.gasto-provider-suggestions {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  margin-top: 0.35rem;
  max-height: 11rem;
  overflow-y: auto;
  padding: 0.3rem;
  position: absolute;
  width: calc(100% - 1.5rem);
  z-index: 1080;
}

.gasto-provider-suggestion {
  background: transparent;
  border: 0;
  border-radius: 0.45rem;
  color: #334155;
  display: block;
  font-weight: 700;
  padding: 0.5rem 0.65rem;
  text-align: left;
  width: 100%;
}

.gasto-provider-suggestion:hover,
.gasto-provider-suggestion:focus {
  background: #ecfdf5;
  color: #047857;
  outline: none;
}

.sally-row-title {
  color: #0f172a;
  font-weight: 850;
}

.sally-row-muted {
  color: #64748b;
  font-size: 0.84rem;
}

.sally-avatar {
  align-items: center;
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 0.9rem;
  color: #059669;
  display: inline-flex;
  flex: 0 0 auto;
  height: 2.55rem;
  justify-content: center;
  width: 2.55rem;
}

.sally-product-thumb {
  overflow: hidden;
}

.sally-product-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.product-image-button {
  appearance: none;
  cursor: pointer;
  padding: 0;
}

.product-image-button:hover,
.product-image-button:focus-visible {
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.14);
}

.product-image-modal-body {
  align-items: center;
  background: #f8fafc;
  display: flex;
  justify-content: center;
  min-height: min(70vh, 42rem);
  padding: 1rem;
}

.product-image-modal-img {
  border-radius: 0.5rem;
  max-height: 72vh;
  max-width: 100%;
  object-fit: contain;
}

.product-image-upload {
  max-width: 11.25rem;
}

.product-image-upload-title {
  color: #6b7280;
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.product-image-dropzone {
  align-items: center;
  aspect-ratio: 1;
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 0.75rem;
  color: #334155;
  cursor: pointer;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
  position: relative;
  text-align: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  width: 100%;
}

.product-image-dropzone:hover,
.product-image-dropzone:focus-within,
.product-image-dropzone.is-dragover {
  background: #f8fafc;
  border-color: #93c5fd;
  box-shadow: 0 0 0 0.22rem rgba(59, 130, 246, 0.1);
}

.product-image-dropzone.has-image {
  border-style: solid;
  padding: 0;
}

.product-image-upload-placeholder {
  align-items: center;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.product-image-upload-icon {
  align-items: center;
  background: #dbeafe;
  border-radius: 999px;
  color: #2563eb;
  display: inline-flex;
  font-size: 1.1rem;
  height: 2.5rem;
  justify-content: center;
  margin-bottom: 0.8rem;
  width: 2.5rem;
}

.product-image-upload-main {
  color: #1f2937;
  font-size: 0.88rem;
  font-weight: 700;
}

.product-image-upload-help,
.product-image-upload-ratio {
  color: #64748b;
  font-size: 0.78rem;
  margin-top: 0.25rem;
}

.product-image-upload-preview {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.product-image-upload-input {
  height: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.product-list-table {
  table-layout: fixed;
  width: 100%;
}

.product-list-page,
.product-list-table-wrap,
.product-list-table-wrap .table-responsive {
  min-width: 0;
}

.product-list-table-wrap {
  overflow-x: auto !important;
  overflow-y: hidden;
}

.product-list-table .product-image-column {
  width: 4.25rem;
}

.product-list-table .product-price-column {
  width: 6.25rem;
}

.product-list-table .product-quantity-column {
  width: 6.25rem;
}

.product-list-table .product-state-column {
  width: 8.25rem;
}

.product-list-table .product-actions-column {
  width: 7.5rem;
}

.product-list-table .sally-action-group {
  gap: 0.35rem;
  justify-content: flex-end;
  width: 100%;
}

.product-list-table .sally-action {
  flex: 0 0 2rem;
  font-size: 1.45rem;
  height: 2rem;
  width: 2rem;
}

.product-list-table .product-info-column {
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-list-table .product-info-cell {
  min-width: 0;
  width: 100%;
}

.product-list-table .product-info-content {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.product-list-table .sally-row-title {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-list-table .sally-row-muted {
  display: block;
  max-width: 100%;
  overflow: visible;
  white-space: normal;
}

.product-days-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.product-day-badge {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
  font-size: 0.68rem;
  padding: 0.25rem 0.5rem;
}

.sally-badge {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 850;
  gap: 0.35rem;
  padding: 0.34rem 0.68rem;
}

.sally-badge-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.24);
  color: #047857;
}

.sally-badge-danger {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.24);
  color: #b91c1c;
}

.sally-badge-info {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.24);
  color: #1d4ed8;
}

.sally-badge-button {
  cursor: pointer;
  font-family: inherit;
}

.sally-badge-button:hover {
  filter: brightness(0.96);
}

.sally-badge-muted {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}

.sally-state-select {
  min-width: 150px;
}

.payment-state-modal .modal-content {
  border-radius: 18px;
}

.payment-state-icon {
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  color: #047857;
  display: inline-flex;
  font-size: 1.55rem;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.payment-state-kicker {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.payment-state-title {
  color: #0f172a;
  font-weight: 850;
}

.payment-state-summary {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  padding: 0.85rem 1rem;
}

.payment-state-summary > span {
  color: #64748b;
  font-weight: 850;
}

.payment-state-summary strong {
  align-items: center;
  color: #0f172a;
  display: inline-flex;
  gap: 0.45rem;
}

.preparation-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.preparation-filter-form {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dbe4ee;
  border-radius: 1rem;
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
  padding: 0.55rem;
}

.preparation-filter-search {
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 0.78rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.preparation-filter-search .input-group-text {
  color: #64748b;
  padding-left: 0.75rem;
  padding-right: 0.35rem;
}

.preparation-filter-search .form-control {
  box-shadow: none !important;
  font-size: 0.92rem;
  min-height: 2.35rem;
  padding-bottom: 0.4rem;
  padding-top: 0.4rem;
}

.preparation-filter-button,
.preparation-filter-clear-button {
  align-items: center;
  border-radius: 0.78rem;
  display: inline-flex;
  flex: 0 0 auto;
  height: 2.45rem;
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
  width: 2.5rem;
}

.preparation-filter-clear-button {
  background: #ffffff;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.preparation-filter-clear-button:hover,
.preparation-filter-clear-button:focus {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.preparation-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.preparation-card-head {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.preparation-time {
  align-items: center;
  color: #334155;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 800;
  gap: 0.35rem;
  line-height: 1.2;
  margin-top: 0.28rem;
}

.preparation-time i {
  color: #64748b;
  font-size: 0.95rem;
}

.preparation-meta {
  color: #64748b;
  display: grid;
  gap: 0.45rem;
  font-size: 0.86rem;
}

.preparation-meta span {
  align-items: center;
  display: flex;
  gap: 0.45rem;
}

.preparation-notes {
  background: #f8fafc;
  border-left: 4px solid #a7f3d0;
  border-radius: 0.85rem;
  color: #0f172a;
  display: grid;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
}

.preparation-notes-title {
  align-items: center;
  color: #475569;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 0.45rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.preparation-notes p {
  color: #1f2937;
  font-size: 1rem;
  font-style: italic;
  font-weight: 750;
  line-height: 1.35;
  margin: 0;
}

.preparation-products {
  display: grid;
  gap: 0.65rem;
}

.preparation-product {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 48px 1fr;
  padding: 0.7rem;
}

.preparation-product-qty {
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  color: #047857;
  display: flex;
  font-size: 1.2rem;
  font-weight: 900;
  height: 44px;
  justify-content: center;
}

.preparation-product-name {
  color: #0f172a;
  font-weight: 850;
}

.order-products-list {
  display: grid;
  gap: 0.7rem;
}

.order-product-row {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 44px 52px 1fr auto;
  padding: 0.72rem;
}

.order-product-qty {
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  color: #047857;
  display: flex;
  font-weight: 900;
  height: 40px;
  justify-content: center;
}

.order-product-name {
  color: #0f172a;
  font-weight: 850;
}

.order-product-image {
  align-items: center;
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 10px;
  color: #059669;
  display: flex;
  height: 52px;
  justify-content: center;
  overflow: hidden;
  width: 52px;
}

.order-product-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.sally-action-group {
  display: inline-flex;
  gap: 1rem;
}

.sally-action {
  align-items: center;
  border-radius: 0.5rem !important;
  display: inline-flex;
  height: 2.25rem;
  justify-content: center;
  padding: 0 !important;
  width: 2.25rem;
}

.sally-action-plain {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #6f7a83 !important;
  font-size: 1.65rem;
}

.sally-action:hover {
  color: #374151 !important;
  transform: translateY(-1px);
}

.sally-form-shell {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.sally-form-grid {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  padding: 1rem;
}

.sally-field {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  height: 100%;
  padding: 0.95rem;
}

.sally-field .form-label {
  align-items: center;
  color: #334155;
  display: flex;
  font-size: 0.8rem;
  font-weight: 850;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.sally-field .form-label .bi {
  color: #10b981;
}

.sally-switch {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  display: flex;
  gap: 0.7rem;
  padding: 0.95rem;
}

.sally-switch .form-check-input {
  height: 1.25rem;
  margin: 0;
  width: 2.35rem;
}

.sally-modal-body {
  max-height: min(72vh, 720px);
  overflow-y: auto;
}

.user-modal-body .form-label {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.user-modal-body .form-label i {
  color: #10b981;
}

.user-modal-body .form-control,
.user-modal-body .form-select {
  border-radius: 0.7rem;
  font-size: 0.9rem;
  min-height: 2.55rem;
}

.user-modal-body textarea.form-control {
  min-height: 5rem;
}

.product-schedule {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-ingredients {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.product-schedule-head {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.product-schedule-title {
  align-items: center;
  color: #4b5563;
  display: flex;
  font-size: 1rem;
  font-weight: 900;
  gap: 0.6rem;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: uppercase;
}

.product-schedule-title i {
  color: #10b981;
  font-size: 1.25rem;
}

.product-schedule-add {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.55rem;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1rem;
}

.product-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product-ingredient-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sally-pos-page {
  color: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: calc(100vh - 155px);
  min-height: 560px;
  overflow: hidden;
}

.sally-pos-head {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.sally-pos-title {
  font-size: 1.55rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
}

.online-order-title {
  align-items: center;
  display: inline-flex;
  gap: 0.65rem;
}

.online-order-title-link {
  border-radius: 0.85rem;
  display: inline-flex;
  flex: 0 0 auto;
  outline: none;
}

.online-order-title-link:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.22);
}

.online-order-title-logo {
  flex: 0 0 auto;
  height: 80px;
  object-fit: contain;
  width: 160px;
}

.sally-pos-subtitle,
.sally-pos-count {
  color: #64748b;
  font-size: 0.86rem;
  margin: 0;
}

.sally-pos-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.6rem;
}

.sally-pos-shell {
  display: grid;
  flex: 1 1 auto;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 0;
}

.sally-pos-products,
.sally-pos-cart {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  min-height: 0;
}

.sally-pos-products {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sally-pos-toolbar,
.sally-pos-cart-head,
.sally-pos-client-head {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.9rem;
}

.sally-pos-client {
  border-bottom: 1px solid #e2e8f0;
}

.sally-stock-switch {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
  min-height: 1.5rem;
}

.sally-stock-switch .form-check-input {
  background-color: #e5e7eb;
  border-color: #d1d5db;
  cursor: pointer;
  height: 0.8rem;
  margin: 0;
  width: 1.45rem;
}

.sally-stock-switch .form-check-input:checked {
  background-color: #16a34a;
  border-color: #16a34a;
}

.sally-stock-switch .form-check-label {
  color: #334155;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.sally-pos-client-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 0.9rem 0.9rem;
}

.sally-pos-field-wide {
  grid-column: 1 / -1;
}

.sally-pos-section-title {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
}

.products-availability-label {
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #86efac;
  border-radius: 0.5rem;
  color: #166534;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1.2;
  padding: 0.35rem 0.6rem;
}

.products-availability-day {
  background: #ecfdf5;
  border: 1px solid #86efac;
  border-radius: 0.45rem;
  color: #166534;
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.15;
  padding: 0.25rem 0.45rem;
  vertical-align: middle;
}

.online-products-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.online-products-category-filter {
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem 0.9rem 0.1rem;
}

.online-products-filter-btn {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 0.55rem;
  color: #475569;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 750;
  gap: 0.4rem;
  line-height: 1.15;
  padding: 0.38rem 0.55rem;
}

.online-products-filter-btn strong {
  color: #0f172a;
  font-size: 0.8rem;
}

.online-products-filter-btn.is-active {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
}

.online-products-filter-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.sally-pos-card-item.is-filtered-out,
.sally-pos-card.is-filtered-out {
  display: none;
}

.sally-pos-search {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  max-width: 340px;
  overflow: hidden;
}

.sally-pos-search .input-group-text,
.sally-pos-search .form-control {
  background: #f8fafc !important;
  box-shadow: none !important;
}

.sally-pos-search .bi {
  color: #10b981;
}

.sally-pos-carousel {
  align-items: stretch;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  padding: 0 0.9rem 0.9rem;
}

.sally-pos-carousel-head {
  align-items: center;
  display: flex;
  justify-content: flex-end;
}

.sally-pos-carousel-actions {
  display: inline-flex;
  gap: 0.45rem;
}

.sally-pos-carousel-btn {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  color: #047857;
  display: inline-flex;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

.sally-pos-carousel-btn:hover,
.sally-pos-carousel-btn:focus {
  background: #ecfdf5;
  border-color: rgba(16, 185, 129, 0.45);
  outline: none;
}

.sally-pos-grid {
  display: flex;
  gap: 0.75rem;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.sally-pos-grid::-webkit-scrollbar {
  height: 0.45rem;
}

.sally-pos-grid::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.sally-pos-card-item {
  display: flex;
  flex: 0 0 210px;
  scroll-snap-align: start;
}

.sally-pos-card {
  align-items: stretch;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  color: inherit;
  cursor: pointer;
  display: grid;
  flex: 1 1 auto;
  gap: 0.75rem;
  grid-template-rows: 132px minmax(0, 1fr);
  min-height: 248px;
  padding: 0.85rem;
  position: relative;
  text-align: left;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
  width: 100%;
}

.sally-pos-card:hover,
.sally-pos-card.selected {
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.sally-pos-card-media {
  align-items: center;
  align-self: auto;
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 0.75rem;
  display: flex;
  justify-content: center;
  min-height: 132px;
  overflow: hidden;
}

.sally-pos-card-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.sally-pos-card-icon {
  align-items: center;
  color: #059669;
  display: inline-flex;
  flex: 0 0 auto;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.sally-pos-card-icon i {
  font-size: 1.45rem;
}

.sally-pos-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.sally-pos-card-name {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.2;
}

.sally-pos-card-desc {
  color: #64748b;
  font-size: 0.78rem;
  margin-top: 0.18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sally-pos-card-desc-online {
  -webkit-line-clamp: 4;
}

.sally-pos-card-online {
  min-height: 292px;
}

.sally-pos-card-meta {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  justify-content: space-between;
  margin-top: auto;
}

.sally-pos-card-meta strong {
  color: #047857;
  font-size: 0.95rem;
}

.sally-pos-card-meta small {
  color: #64748b;
  font-size: 0.72rem;
}

.sally-pos-card-qty {
  align-items: center;
  background: #10b981;
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 1.65rem;
  justify-content: center;
  min-width: 1.65rem;
  padding: 0 0.35rem;
  position: absolute;
  right: 0.55rem;
  top: 0.55rem;
}

.sally-pos-card-qty[hidden] {
  display: none;
}

.sally-pos-cart {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.9rem;
}

.sally-pos-total-box {
  background: #0f172a;
  border-radius: 0.85rem;
  color: #ffffff;
  padding: 0.9rem 1rem;
}

.sally-pos-total-box span {
  color: #cbd5e1;
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sally-pos-total-box strong {
  display: block;
  font-size: 2.35rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  margin-top: 0.35rem;
}

.sally-pos-cart-head {
  padding: 0;
}

.sally-pos-cart-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 92px;
  overflow: auto;
}

.sally-pos-empty {
  align-items: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 0.8rem;
  color: #94a3b8;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  font-weight: 800;
  gap: 0.45rem;
  justify-content: center;
  min-height: 92px;
}

.sally-pos-empty i {
  font-size: 1.55rem;
}

.sally-pos-cart-item {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  display: flex;
  gap: 0.7rem;
  justify-content: space-between;
  padding: 0.65rem;
}

.sally-pos-cart-item strong {
  color: #0f172a;
  display: block;
  font-size: 0.86rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sally-pos-cart-item span {
  color: #64748b;
  display: block;
  font-size: 0.75rem;
}

.sally-pos-cart-controls {
  align-items: center;
  display: grid;
  flex: 0 0 auto;
  gap: 0.35rem;
  grid-template-columns: 2rem 2rem 2rem;
}

.sally-pos-cart-controls .btn {
  align-items: center;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  padding: 0;
  width: 2rem;
}

.sally-pos-cart-controls span {
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 900;
  text-align: center;
}

.sally-pos-payments {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr 1fr;
}

.sally-pos-field {
  min-width: 0;
}

.sally-pos-field label {
  align-items: center;
  color: #334155;
  display: flex;
  font-size: 0.74rem;
  font-weight: 900;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.sally-pos-field label i {
  color: #10b981;
}

.sally-location-summary {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.4rem;
}

.sally-location-map {
  background: #f8fafc;
  border: 1px solid #dfece7;
  border-radius: 0.85rem;
  height: min(62vh, 460px);
  min-height: 320px;
  overflow: hidden;
  width: 100%;
}

.sally-location-panel {
  display: grid;
  gap: 0.85rem;
}

.sally-pos-change {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  color: #334155;
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0.85rem;
}

.sally-pos-keypad {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, 1fr);
  padding: 0.75rem;
  position: fixed;
  width: min(330px, calc(100vw - 24px));
  z-index: 1080;
}

.sally-pos-keypad-backdrop {
  background: rgba(15, 23, 42, 0.08);
  inset: 0;
  position: fixed;
  z-index: 1070;
}

.sally-pos-keypad-backdrop[hidden] {
  display: none;
}

.sally-pos-keypad[hidden] {
  display: none;
}

.sally-pos-keypad-head {
  align-items: center;
  color: #334155;
  display: flex;
  font-size: 0.82rem;
  font-weight: 900;
  grid-column: span 3;
  justify-content: space-between;
  padding: 0.15rem 0.15rem 0.25rem;
}

.sally-pos-keypad-head button {
  background: transparent;
  border: 0;
  color: #64748b;
  min-height: 1.8rem;
  width: 1.8rem;
}

.sally-pos-keypad > button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dbe5ef;
  border-radius: 0.7rem;
  color: #0f172a;
  display: inline-flex;
  font-size: 1.02rem;
  font-weight: 900;
  justify-content: center;
  min-height: 2.55rem;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}

.sally-pos-keypad > button:hover,
.sally-pos-keypad > button:focus {
  background: #ecfdf5;
  border-color: rgba(16, 185, 129, 0.45);
  outline: none;
  transform: translateY(-1px);
}

.sally-pos-keypad-wide {
  color: #047857 !important;
  grid-column: span 3;
}

.sally-pos-keypad-done {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
}

.sally-pos-change strong {
  color: #0f172a;
  font-size: 1rem;
}

.sally-pos-notes {
  min-height: 58px;
  resize: none;
}

.sally-pos-secondary-action {
  background: #ffffff;
  border: 1px solid #047857;
  border-radius: 0.75rem;
  color: #047857;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.65rem;
  min-height: 3.5rem;
  padding-bottom: 1rem !important;
  padding-top: 1rem !important;
}

.sally-pos-secondary-action i {
  color: #047857;
  font-size: 1.1rem;
}

.sally-pos-secondary-action:hover,
.sally-pos-secondary-action:focus {
  background: #f0fdf4;
  border-color: #047857;
  color: #047857;
}

@media (max-width: 1199.98px) {
  .sally-pos-page {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .sally-pos-shell {
    grid-template-columns: 1fr;
  }

  .sally-pos-cart-list {
    max-height: none;
    overflow: visible;
  }

  .sally-pos-grid {
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }
}

@media (max-width: 767.98px) {
  .sally-pos-head,
  .sally-pos-toolbar,
  .sally-pos-client-head {
    align-items: stretch;
    flex-direction: column;
  }

  .sally-pos-actions,
  .sally-pos-search {
    max-width: none;
    width: 100%;
  }

  .sally-pos-actions .btn {
    flex: 1 1 0;
    justify-content: center;
  }

  .sally-pos-payments {
    grid-template-columns: 1fr;
  }

  .sally-pos-client-grid {
    grid-template-columns: 1fr;
  }

  .sally-pos-card-item {
    flex-basis: 190px;
  }

  .sally-pos-card {
    grid-template-rows: 118px minmax(0, 1fr);
    min-height: 232px;
  }
}

.product-schedule-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem;
}

.product-ingredient-card {
  align-items: end;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(10rem, 1.4fr) minmax(6.5rem, 0.65fr) minmax(7.5rem, 0.75fr) auto;
  padding: 0.85rem;
}

.product-ingredient-main {
  min-width: 0;
}

.product-ingredient-empty {
  align-items: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 0.85rem;
  color: #64748b;
  display: flex;
  font-size: 0.88rem;
  font-weight: 750;
  justify-content: center;
  min-height: 4.25rem;
  padding: 1rem;
  text-align: center;
}

.product-schedule-label {
  color: #4b5563;
  font-size: 0.88rem;
  font-weight: 800;
  margin: 0;
}

.product-schedule-days {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-schedule-day-option {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.7rem;
  color: #334155;
  display: inline-flex;
  font-size: 0.83rem;
  font-weight: 750;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.45rem 0.55rem;
}

.product-schedule-day-option .form-check-input {
  flex: 0 0 auto;
  margin: 0;
}

.product-schedule-time {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-schedule-time .form-select {
  border-radius: 0 !important;
  min-width: 0;
}

.product-schedule-time .form-select:first-child {
  border-radius: 0.7rem 0 0 0.7rem !important;
}

.product-schedule-time .form-select:last-child {
  border-radius: 0 0.7rem 0.7rem 0 !important;
}

.product-schedule-row {
  align-items: center;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.product-schedule-delete {
  align-items: center;
  border: 1px solid #ef4444;
  border-radius: 0.7rem;
  color: #dc2626;
  display: inline-flex;
  flex: 0 0 auto;
  height: 3rem;
  justify-content: center;
  padding: 0;
  width: 3rem;
}

.product-schedule-delete:hover,
.product-schedule-delete:focus {
  background: #fef2f2;
  border-color: #dc2626;
  color: #b91c1c;
}

.product-ingredient-delete {
  margin-bottom: 0;
}

.user-modal-body .form-check {
  padding: 0.85rem !important;
}

.user-modal-body .form-text {
  font-size: 0.76rem;
}

.modal-footer .btn {
  border-radius: 0.7rem;
  font-size: 0.9rem;
  min-height: 2.45rem;
}

@media (max-width: 767.98px) {
  .user-modal-body {
    padding: 1rem !important;
  }

  .user-modal-body .row {
    --bs-gutter-y: 0.75rem;
  }

  .user-modal-body .form-control,
  .user-modal-body .form-select {
    font-size: 0.86rem;
    min-height: 2.4rem;
  }

  .product-schedule-head {
    align-items: stretch;
    flex-direction: column;
  }

  .product-schedule-add {
    width: 100%;
  }

  .product-schedule-card {
    padding: 0.85rem;
  }

  .product-ingredient-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .product-schedule-row {
    gap: 0.55rem;
  }

  .product-schedule-delete {
    height: 2.75rem;
    width: 2.75rem;
  }

  .product-ingredient-delete {
    justify-self: end;
  }

  .modal-header,
  .modal-footer {
    padding: 0.8rem 1rem;
  }
}

.sally-login-body {
  background: linear-gradient(90deg, #172725 0%, #15191f 55%, #15171d 100%);
  min-height: 100vh;
}

.sally-login-main {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(1rem, 3vw, 2rem);
}

.sally-login-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  max-width: 430px;
  overflow: hidden;
  width: 100%;
}

.sally-login-brand {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, #0f766e 0%, #164e63 54%, #172554 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.sally-login-brand-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.sally-login-brand h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 0.95;
  margin: 0 0 1rem;
}

.sally-login-brand p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  max-width: 25rem;
}

.sally-login-mark {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1rem;
  display: inline-flex;
  font-size: 1.55rem;
  height: 3.25rem;
  justify-content: center;
  width: 3.25rem;
}

.sally-login-highlights {
  display: grid;
  gap: 0.75rem;
}

.sally-login-highlights div {
  align-items: center;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.8rem;
  display: flex;
  gap: 0.75rem;
  min-height: 3.1rem;
  padding: 0.75rem 0.9rem;
}

.sally-login-highlights i {
  color: #a7f3d0;
  font-size: 1.1rem;
}

.sally-login-highlights span {
  font-weight: 800;
}

.sally-login-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

.sally-login-heading {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
  text-align: center;
}

.sally-login-heading h1 {
  color: #f8fafc;
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
  margin: 0.85rem 0 0;
}

.sally-login-heading p {
  color: #58bf8d;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  margin: 0;
  text-transform: uppercase;
}

.sally-login-logo {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #58bf8d;
  display: flex;
  flex: 0 0 auto;
  font-size: 1.75rem;
  height: auto;
  justify-content: center;
  width: auto;
}

.sally-login-logo img {
  display: block;
  max-height: 3rem;
  max-width: 8.5rem;
  object-fit: contain;
}

.sally-login-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.sally-login-mode-switch {
  background: #111722;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  display: grid;
  gap: 0.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.25rem;
}

.sally-login-mode-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0.55rem;
  color: #8a93a1;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  gap: 0.45rem;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.35rem 0.5rem;
}

.sally-login-mode-item.active {
  background: #58bf8d;
  box-shadow: none;
  color: #ffffff;
}

.sally-login-form .form-label {
  align-items: center;
  color: #c6cbd4;
  display: flex;
  font-size: 0.8rem;
  font-weight: 900;
  gap: 0.45rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.sally-login-form .form-label i {
  color: #58bf8d;
}

.sally-login-form .form-control,
.sally-login-inline-form .form-control {
  min-height: 3.1rem;
}

.sally-login-form .form-control {
  background: #111722;
  border: 1px solid #3a4659;
  border-radius: 0.75rem;
  color: #eef2f7;
  font-size: 0.95rem;
  font-weight: 750;
}

.sally-login-form .form-control:focus {
  background: #111722;
  border-color: #58bf8d;
  box-shadow: 0 0 0 0.2rem rgba(88, 191, 141, 0.18);
  color: #ffffff;
}

.sally-login-form .form-control::placeholder {
  color: #5d6573;
}

.sally-input-wrap {
  position: relative;
}

.sally-input-icon {
  color: #7e8796;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.sally-input-icon-left {
  left: 1rem;
}

.sally-input-icon-right {
  align-items: center;
  color: #7e8796;
  display: inline-flex;
  height: 2.2rem;
  justify-content: center;
  right: 0.5rem;
  width: 2.2rem;
}

.sally-input-with-icon {
  padding-left: 2.8rem;
}

.sally-input-with-action {
  padding-right: 2.7rem;
}

.sally-login-submit {
  align-items: center;
  display: inline-flex;
  gap: 0.55rem;
  justify-content: center;
  min-height: 3.25rem;
  margin-top: 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.98rem;
  font-weight: 900;
}

.sally-login-submit.btn-emerald {
  background: #58bf8d;
  border-color: #58bf8d;
  color: #ffffff;
}

.sally-login-submit.btn-emerald:hover,
.sally-login-submit.btn-emerald:focus {
  background: #4bad7e;
  border-color: #4bad7e;
  color: #ffffff;
}

.sally-login-divider {
  align-items: center;
  color: #334155;
  display: flex;
  font-size: 0.72rem;
  font-weight: 850;
  gap: 0.75rem;
  letter-spacing: 0.08em;
  margin: 1.35rem 0;
  text-transform: uppercase;
}

.sally-login-divider::before,
.sally-login-divider::after {
  background: #2b333a;
  content: "";
  flex: 1;
  height: 1px;
}

.sally-login-restriction {
  align-items: center;
  background: rgba(34, 51, 48, 0.62);
  border: 1px solid rgba(88, 191, 141, 0.18);
  border-radius: 0.55rem;
  color: #a9afb9;
  display: flex;
  font-size: 0.82rem;
  font-weight: 900;
  gap: 0.55rem;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  text-align: center;
}

.sally-login-restriction i {
  color: #58bf8d;
}

.sally-login-footer {
  color: #6f757d;
  font-size: 0.8rem;
  font-weight: 800;
  margin-top: 1.1rem;
  text-align: center;
}

.sally-login-footer p {
  margin: 0.35rem 0 0;
}

.sally-login-inline-form {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.sally-login-inline-form .btn {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
  justify-content: center;
  min-height: 3rem;
}

.sally-login-recovery {
  margin-top: 0.7rem;
}

.sally-login-card .alert {
  background: rgba(127, 29, 29, 0.28);
  border-color: rgba(248, 113, 113, 0.32);
  border-radius: 0.85rem;
  color: #fecaca;
  font-weight: 750;
  margin-bottom: 1.25rem;
}

.sally-login-card .alert-success {
  background: rgba(20, 83, 45, 0.28);
  border-color: rgba(88, 191, 141, 0.32);
  color: #bbf7d0;
}

.sally-login-pin-card {
  display: block;
  max-width: 460px;
  min-height: 0;
  padding: 1.35rem;
}

.sally-login-pin-card .sally-login-logo {
  display: inline-flex;
  height: 4rem;
  width: 4rem;
}

@media (max-width: 820px) {
  .sally-login-card:not(.sally-login-pin-card) {
    max-width: 31rem;
  }

  .sally-login-brand {
    gap: 1.25rem;
    padding: 1.35rem;
  }

  .sally-login-brand h1 {
    font-size: 2.25rem;
    margin-bottom: 0.55rem;
  }

  .sally-login-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sally-login-highlights div {
    align-items: center;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 4.25rem;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .sally-login-main {
    align-items: center;
    padding: 2rem;
  }

  .sally-login-card:not(.sally-login-pin-card) {
    border: 0;
    border-radius: 0;
    min-height: 0;
  }

  .sally-login-pin-card {
    align-self: center;
    margin: 1rem;
    width: calc(100% - 2rem);
  }

  .sally-login-brand {
    padding: 1.1rem;
  }

  .sally-login-brand p {
    font-size: 0.92rem;
  }

  .sally-login-form-panel {
    justify-content: flex-start;
    padding: 1.25rem 0;
  }

  .sally-login-inline-form {
    grid-template-columns: 1fr;
  }
}

.seller-hero {
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.22), transparent 18rem),
    linear-gradient(135deg, #ffffff 0%, #f0fdf7 100%);
  border: 1px solid #dcefe7;
  border-radius: 1.15rem;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
  padding: 1.15rem;
}

.seller-icon {
  align-items: center;
  border-radius: 1rem;
  display: inline-flex;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.seller-icon-success {
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.24);
  color: #059669;
}

.seller-stat-value {
  color: #0f172a;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  letter-spacing: 0;
}

.seller-stat-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 185, 129, 0.16);
  border-radius: 1rem;
  height: 100%;
  padding: 1rem;
}

.seller-stat-card > .bi {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.seller-label,
.seller-muted {
  color: #64748b;
}

.seller-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.055);
  padding: 1.05rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.seller-card:hover {
  border-color: rgba(16, 185, 129, 0.36);
  box-shadow: 0 18px 36px rgba(16, 185, 129, 0.11);
  transform: translateY(-2px);
}

.users-title {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  letter-spacing: 0;
}

.users-card {
  padding: 0;
}

.users-card .table > :not(caption) > * > * {
  padding: 1rem;
}

.users-card thead th {
  color: #6c757d;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ===================================
   VENTAS POS — Light Theme (matches app palette)
   =================================== */

/* --- Botón FAB destacado para vendedores --- */
.fab-venta-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4), 0 0 40px rgba(16, 185, 129, 0.15);
  animation: fab-pulse 2s infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
}

.fab-venta-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(16, 185, 129, 0.5);
}

@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(16, 185, 129, 0.7), 0 0 50px rgba(16, 185, 129, 0.2); }
}

/* --- Section Labels --- */
.pos-section-label {
  color: #10b981;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.pos-loteria-count {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.16);
  border-radius: 999px;
  color: #047857;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  min-width: 1.55rem;
  padding: 0.24rem 0.42rem;
  text-align: center;
}

.pos-loteria-filters {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.28rem;
  margin-inline: -0.1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.05rem 0.1rem 0.28rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.pos-loteria-filters::-webkit-scrollbar {
  display: none;
}

.pos-loteria-filter {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #475569;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.66rem;
  font-weight: 900;
  gap: 0.25rem;
  line-height: 1;
  max-width: 130px;
  min-height: 25px;
  padding: 0.28rem 0.5rem;
  scroll-snap-align: start;
  white-space: nowrap;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.pos-loteria-filter:not(:first-child) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.pos-loteria-filter span {
  align-items: center;
  background: #ffffff;
  border-radius: 999px;
  color: #64748b;
  display: inline-flex;
  font-size: 0.58rem;
  justify-content: center;
  min-width: 1.1rem;
  padding: 0.12rem 0.28rem;
}

.pos-loteria-filter:hover {
  border-color: rgba(16, 185, 129, 0.5);
  color: #047857;
  transform: translateY(-1px);
}

.pos-loteria-filter.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
  color: #ffffff;
}

.pos-loteria-filter.active span {
  color: #047857;
}

/* --- Lottery Cards Carousel --- */
.pos-loterias-grid {
  display: flex;
  gap: 0.55rem;
  margin-inline: -0.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.1rem 0.25rem 0.55rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.pos-loterias-grid::-webkit-scrollbar {
  height: 6px;
}

.pos-loterias-grid::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 999px;
}

.pos-loterias-grid::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.45);
  border-radius: 999px;
}

.pos-loteria-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  flex: 0 0 min(78vw, 250px);
  min-height: 88px;
  padding: 0.56rem;
  cursor: pointer;
  scroll-snap-align: start;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pos-loteria-card:hover {
  border-color: rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.pos-loteria-card.selected {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.04);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.pos-loteria-card-head {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  min-width: 0;
}

.pos-loteria-card .card-name {
  color: #0f172a;
  flex: 1 1 auto;
  font-weight: 600;
  font-size: 0.8rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-loteria-card .card-price {
  color: #64748b;
  font-size: 0.66rem;
}

.pos-loteria-card .card-time {
  display: inline-block;
  flex: 0 0 auto;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  font-size: 0.58rem;
  font-weight: 600;
  padding: 0.14rem 0.34rem;
  border-radius: 6px;
}

.pos-game-time {
  background: rgba(16, 185, 129, 0.1);
  border-radius: 6px;
  color: #059669;
  display: inline-block;
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.25rem 0.45rem;
  white-space: nowrap;
}

.pos-loteria-games {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin: 0.34rem 0 0.3rem;
  overflow: visible;
}

.pos-game-detail {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.14rem;
  max-width: 100%;
  padding: 0.13rem 0.18rem 0.13rem 0.36rem;
}

.pos-game-detail-title {
  color: #334155;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.pos-game-price-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.1rem;
}

.pos-game-price-pill {
  background: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 999px;
  color: #047857;
  font-size: 0.54rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.13rem 0.26rem;
  white-space: nowrap;
}

.pos-game-price-free {
  color: #64748b;
}

@media (min-width: 768px) {
  .pos-loteria-card {
    flex-basis: 250px;
  }
}

@media (max-width: 576px) {
  .pos-loteria-card {
    flex-basis: min(82vw, 270px);
    padding: 0.55rem;
  }

  .pos-game-detail {
    border-radius: 14px;
    flex: 1 1 100%;
    justify-content: space-between;
    padding: 0.24rem 0.3rem;
  }

  .pos-game-price-list {
    justify-content: flex-end;
  }
}

/* --- Number Input --- */
.pos-number-input {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px;
  color: #0f172a !important;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 0.5rem 0.75rem;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pos-number-input:focus {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
  outline: none;
}

.pos-number-input::placeholder {
  color: #94a3b8;
  letter-spacing: 0.1em;
}

/* --- Azar Button --- */
.pos-btn-azar {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.pos-btn-azar:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  color: white;
}

.pos-btn-share {
  background: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  color: #ffffff;
  font-weight: 700;
  padding: 0.85rem 1rem;
  transition: all 0.2s ease;
}

.pos-btn-share:hover:not(:disabled) {
  background: #111827;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  color: #ffffff;
  transform: translateY(-1px);
}

.pos-btn-share:disabled {
  cursor: wait;
  opacity: 0.75;
}

/* --- Type Detection Badge --- */
.pos-tipo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #059669;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
}

/* --- Quantity Controls --- */
.pos-qty-btn {
  background: rgba(16, 185, 129, 0.1);
  border: none;
  border-radius: 8px;
  color: #059669;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
}

.pos-qty-btn:hover {
  background: #10b981;
  color: white;
}

.pos-qty-display {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  min-width: 40px;
  text-align: center;
}

.pos-price-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
  max-width: min(100%, 320px);
}

.pos-price-chip {
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #dbe7e2;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
  color: #17362b;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  min-height: 23px;
  min-width: 48px;
  padding: 0.24rem 0.44rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.pos-price-chip:hover {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.12);
  transform: translateY(-1px);
}

.pos-price-chip.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.24);
  color: #ffffff;
}

@media (max-width: 576px) {
  .pos-price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
    max-width: none;
    width: 100%;
  }

  .pos-price-chip {
    min-width: 0;
    width: 100%;
  }
}

/* --- Total Display --- */
.pos-total {
  color: #059669;
  font-size: 1.5rem;
  font-weight: 800;
}

/* --- Add Button --- */
.pos-btn-add {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem;
  width: 100%;
  transition: all 0.2s ease;
}

.pos-btn-add:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  color: white;
}

.pos-btn-add:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pos-validation-message {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 0.75rem;
  color: #b91c1c;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  padding: 0.75rem 0.85rem;
}

/* --- Cart Items --- */
.pos-cart-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.875rem;
  transition: all 0.2s ease;
}

.pos-cart-item:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pos-cart-item .cart-delete {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pos-cart-item .cart-delete:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* --- Client Input --- */
.pos-client-input {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px;
  color: #0f172a !important;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pos-client-input:focus {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
  outline: none;
}

.pos-client-input::placeholder {
  color: #94a3b8;
}

.pos-paid-check {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dbe7e2;
  border-radius: 0.8rem;
  display: flex;
  gap: 0.75rem;
  padding: 0.8rem;
}

.pos-paid-check .form-check-input {
  border-color: #10b981;
  cursor: pointer;
  flex: 0 0 auto;
  height: 1.15rem;
  margin: 0;
  width: 1.15rem;
}

.pos-paid-check .form-check-label {
  color: #0f172a;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.pos-paid-check small {
  color: #64748b;
}

.pos-payment-badge {
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
}

.pos-payment-badge-paid {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.pos-payment-badge-pending {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

/* --- Footer Buttons --- */
.pos-footer {
  background: linear-gradient(180deg, transparent 0%, #f8fafc 20%);
  padding: 1rem 1.25rem 1.5rem;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.pos-btn-cancel {
  background: transparent;
  border: 1.5px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #ef4444;
  font-weight: 600;
  padding: 0.6rem;
  font-size: 0.9rem;
  width: 100%;
  transition: all 0.2s ease;
}

.pos-btn-cancel:hover {
  background: rgba(239, 68, 68, 0.06);
  border-color: #ef4444;
}

.pos-btn-finish {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem;
  width: 100%;
  transition: all 0.2s ease;
}

.pos-btn-finish:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  color: white;
}

.pos-btn-finish:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* --- Cart Counter Badge --- */
.pos-cart-count {
  background: #10b981;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.4rem;
}

/* --- Divider --- */
.pos-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 0.75rem 0;
}

/* --- Empty State --- */
.pos-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #94a3b8;
}

.pos-empty i {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
  opacity: 0.5;
}

/* --- Factura/Receipt Styles --- */
.pos-factura {
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.12), transparent 34rem),
    linear-gradient(180deg, #f8fafc 0%, #eef7f2 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.pos-factura .pos-header {
  background: #ffffff;
  border: 1px solid #dbe7e2;
  border-radius: 1rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
  margin-bottom: 1rem;
  padding: 1rem;
}

.pos-factura .text-white {
  color: #0f172a !important;
}

.pos-factura .text-secondary {
  color: #64748b !important;
}

.pos-factura .text-emerald,
.text-emerald {
  color: #047857 !important;
}

.pos-factura .factura-icon-44,
.pos-factura .factura-icon-70 {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pos-factura .pos-close-btn {
  align-items: center;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.22);
  color: #ffffff;
  display: inline-flex;
  height: 2.4rem;
  justify-content: center;
  width: 2.4rem;
}

.pos-factura .pos-close-btn:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.pos-factura #facturaBody {
  padding: 1rem !important;
}

.pos-factura .receipt-card {
  background: #ffffff;
  border: 1px solid #dbe7e2;
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.pos-factura .receipt-header {
  text-align: center;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.pos-factura .receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.pos-factura .receipt-row span:last-child {
  color: #0f172a;
  text-align: right;
}

.pos-factura .receipt-total {
  font-size: 1.5rem;
  font-weight: 800;
  color: #059669;
}

.pos-factura .qr-container {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  display: inline-block;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.pos-factura .pos-cart-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.pos-factura .pos-cart-item.factura-winning-item {
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.95), rgba(240, 253, 244, 0.98));
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.12);
}

.pos-factura .factura-winner-badge {
  align-items: center;
  background: #10b981;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 800;
  gap: 0.25rem;
  letter-spacing: 0.02em;
  padding: 0.22rem 0.5rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.pos-factura .factura-winning-number {
  background: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 8px;
  color: #065f46 !important;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
}

.pos-factura .factura-prize-line {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  color: #047857;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
}

.pos-factura .factura-number {
  color: #475569 !important;
}

/* --- Animations --- */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.pos-animate-in {
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* --- Layout Utility Classes (migrated from inline styles) --- */
.pos-wrapper {
  border-radius: 1.1rem;
  overflow: hidden;
  background: #ffffff;
  position: relative;
  margin-top: 1rem;
}

.ventas-page-shell {
  background: #ffffff;
  margin-top: 1rem;
}

.ventas-app-header {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding: 0.5rem 1.5rem;
}

.ventas-app-title {
  color: #10b981;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
}

.ventas-back-btn {
  align-items: center;
  border: 0;
  box-shadow: none;
  color: #10b981;
  display: inline-flex;
  flex: 0 0 auto;
  padding: 0;
  text-decoration: none;
}

.ventas-back-btn:hover,
.ventas-back-btn:focus {
  color: #059669;
  text-decoration: none;
}

.ventas-back-btn i {
  -webkit-text-stroke: 1px;
}

.ventas-page-content {
  padding: 1rem;
}

.pos-factura {
  max-width: 760px;
  padding: 0;
}

.pos-btn-back {
  top: 40px;
  left: 15px;
  z-index: 10;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pos-body-padded {
  padding-top: 10px !important;
}

.pos-qty-input-small {
  width: 30px;
  font-size: 1rem;
  box-shadow: none;
  outline: none;
}

.pos-divider-vertical {
  height: 20px;
}

.pos-label-small {
  font-size: 0.75rem;
}

.pos-total-amount {
  font-size: 1.1rem;
}

/* --- Seller Dashboard & Sold Tickets --- */
.seller-dashboard,
.tickets-page {
  color: #1f2933;
}

.seller-dashboard {
  min-height: 60vh;
  overflow: visible;
  padding: 0.35rem 0 1rem;
}

.seller-balance-card {
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.18), transparent 18rem),
    linear-gradient(145deg, #ffffff 0%, #f0fbf6 58%, #f8fafc 100%);
  border: 1px solid #dbe7e2;
  border-radius: 1.3rem;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  padding: 1.2rem;
}

.admin-period-selector {
  background: #fbfdfc;
  border: 1px solid #dbe7e2;
  border-radius: 0.9rem;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  margin-bottom: 0.85rem;
  padding: 0.25rem;
  overflow-x: auto;
}

.admin-period-option {
  align-items: center;
  border-radius: 0.7rem;
  color: #64748b;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  font-weight: 900;
  gap: 0.04rem;
  justify-content: center;
  line-height: 1.1;
  min-height: 3.05rem;
  padding: 0.45rem 0.55rem;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.admin-period-option-title,
.admin-period-option-subtitle {
  display: block;
  text-transform: uppercase;
}

.admin-period-option-title {
  font-size: 0.72rem;
  line-height: 1;
}

.admin-period-option-subtitle {
  font-size: 0.58rem;
  line-height: 1;
  opacity: 0.9;
}

.admin-period-option:hover,
.admin-period-option:focus {
  background: #ecfdf5;
  color: #047857;
}

.admin-period-option.active {
  background: #10b981;
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.18);
  color: #ffffff;
}

.admin-dashboard-overview {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.admin-dashboard-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.admin-dashboard-metrics {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-dashboard-card {
  background: #ffffff;
  border: 1px solid #e6eeea;
  border-radius: 1.05rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 8.6rem;
  padding: 1rem 1.05rem;
}

.admin-dashboard-card-label {
  align-items: center;
  color: #64748b;
  display: inline-flex;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.admin-dashboard-card-icon {
  align-items: center;
  border-radius: 0.6rem;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.78rem;
  height: 1.55rem;
  justify-content: center;
  width: 1.55rem;
}

.admin-dashboard-card-icon-sales {
  background: #e8faf1;
  color: #22a06b;
}

.admin-dashboard-card-icon-expenses {
  background: #fff3ec;
  color: #f97316;
}

.admin-dashboard-card-icon-balance {
  background: #f1ebff;
  color: #7c67f8;
}

.admin-dashboard-card-icon-payable {
  background: #fff1f2;
  color: #ef4444;
}

.admin-dashboard-card-icon-receivable {
  background: #ecfdf3;
  color: #16a34a;
}

.admin-dashboard-card .seller-balance-value {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  letter-spacing: 0;
  margin-top: auto;
}

.admin-dashboard-card-balance .seller-balance-value {
  margin-top: 1.1rem;
}

.admin-dashboard-card .text-emerald {
  color: #18a86b !important;
}

.admin-dashboard-card .text-danger {
  color: #de4a54 !important;
}

.admin-dashboard-card-split {
  justify-content: space-between;
}

.admin-dashboard-split-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-dashboard-split-row .seller-balance-value {
  font-size: clamp(1.55rem, 3.5vw, 2.05rem);
  margin-top: 0;
}

.admin-dashboard-split-divider {
  background: #e8eeeb;
  height: 1px;
  width: 100%;
}

.seller-balance-eyebrow {
  color: #52657a;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 850;
  line-height: 1.15;
}

.seller-balance-title {
  color: #17202a;
  font-size: clamp(1.65rem, 4.6vw, 2.3rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

.seller-balance-add {
  align-items: center;
  background: #10b981;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 16px 30px rgba(16, 185, 129, 0.22);
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.5rem;
  height: 3.65rem;
  justify-content: center;
  text-decoration: none;
  width: 3.65rem;
}

.seller-balance-add:hover,
.seller-balance-add:focus {
  background: #059669;
  color: #ffffff;
  transform: translateY(-1px);
}

.seller-balance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 1.25rem;
}

.seller-balance-grid-admin {
  column-gap: 1.15rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 0.45rem;
}

.seller-balance-metric {
  min-width: 0;
  padding: 1rem;
}

.seller-balance-grid-admin .seller-balance-metric {
  padding: 0.55rem 0.75rem;
}

.seller-balance-card-compact {
  padding: 1rem;
}

.seller-balance-grid-compact {
  column-gap: 0.85rem;
  row-gap: 0.35rem;
}

.seller-balance-grid-compact .seller-balance-metric {
  padding: 0.45rem 0.65rem;
}

.seller-balance-grid-compact .seller-label {
  margin-top: 0.35rem !important;
}

.repartidor-delivery-table {
  table-layout: fixed;
}

.repartidor-delivery-table th:first-child,
.repartidor-delivery-table td:first-child {
  width: 34%;
}

.repartidor-delivery-row {
  cursor: pointer;
}

.repartidor-delivery-row td {
  padding-bottom: 0.65rem;
  padding-top: 0.65rem;
}

.repartidor-location-text {
  line-height: 1.2;
  min-width: 0;
}

.repartidor-map-link {
  align-items: center;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  padding: 0;
  width: 2rem;
}

.repartidor-map-icon {
  display: block;
  height: 1.25rem;
  object-fit: contain;
  width: 1.25rem;
}

.repartidor-phone-link {
  align-items: center;
  color: #047857;
  display: inline-flex;
  gap: 0.35rem;
  text-decoration: none;
}

.repartidor-phone-link:hover,
.repartidor-phone-link:focus {
  color: #065f46;
  text-decoration: underline;
}

.repartidor-payment-form {
  align-items: center;
  display: grid;
  gap: 0.4rem;
  grid-template-columns: auto minmax(8.75rem, 1fr);
  max-width: 20rem;
}

.repartidor-delivery-detail {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 0.85rem;
}

.repartidor-detail-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.online-order-page {
  margin: 0 auto;
  max-width: 1480px;
  padding: 1rem;
}

.online-order-form {
  height: auto;
  min-height: auto;
  overflow: visible;
}

.online-order-steps {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.online-order-step {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  justify-content: center;
  min-width: 0;
  padding: 0.65rem 0.4rem;
  text-align: center;
}

.online-order-step span {
  align-items: center;
  background: #f1f5f9;
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-weight: 950;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.online-order-step strong {
  color: inherit;
  font-size: 0.82rem;
  line-height: 1.1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.online-order-step.is-active {
  border-color: #10b981;
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.14);
  color: #047857;
}

.online-order-step.is-active span {
  background: #10b981;
  color: #ffffff;
}

.online-order-stage[hidden] {
  display: none !important;
}

.online-success-stage {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  min-height: 0;
  padding: 1rem;
}

.online-success-card {
  background:
    radial-gradient(circle at 18% 12%, rgba(16, 185, 129, 0.14), transparent 32%),
    linear-gradient(145deg, #ffffff, #f8fafc);
  border: 1px solid #d1fae5;
  border-radius: 1.35rem;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.11);
  color: #0f172a;
  max-width: 680px;
  padding: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
  width: min(100%, 680px);
}

.online-success-icon {
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  color: #059669;
  display: inline-flex;
  font-size: 3.2rem;
  height: 5rem;
  justify-content: center;
  margin-bottom: 1rem;
  width: 5rem;
}

.online-success-kicker {
  color: #047857;
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.online-success-card h2 {
  color: #0f172a;
  font-size: clamp(1.75rem, 5vw, 2.55rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 0.8rem;
}

.online-success-card p {
  color: #475569;
  font-size: 1.04rem;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 520px;
}

.online-success-detail {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  font-size: 0.94rem !important;
  font-weight: 800;
  margin-top: 1rem !important;
  padding: 0.75rem 1rem;
}

.online-success-actions {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.online-product-list {
  -webkit-overflow-scrolling: touch;
  display: block;
  max-height: 494px;
  overscroll-behavior-y: auto;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 0.9rem 0.9rem;
  scrollbar-gutter: stable;
}

.online-product-card {
  align-items: start;
  appearance: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  box-shadow: none;
  box-sizing: border-box;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 74px minmax(0, 1fr);
  inline-size: 100%;
  margin: 0 0 0.65rem;
  max-inline-size: 100%;
  min-width: 0;
  min-block-size: 118px;
  min-inline-size: 0;
  outline: none;
  overflow: hidden;
  padding: 0.85rem;
  position: relative;
  text-align: left;
  transform: none;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.online-product-card:hover,
.online-product-card:focus,
.online-product-card:active,
.online-product-card.selected {
  border-color: rgba(16, 185, 129, 0.58);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.24);
  outline: none;
  transform: none;
}

.online-product-media {
  align-items: center;
  align-self: start;
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 0.75rem;
  block-size: 86px;
  display: flex;
  inline-size: 74px;
  justify-content: center;
  min-block-size: 86px;
  overflow: hidden;
  position: relative;
}

.online-product-media img {
  block-size: 100%;
  inline-size: 100%;
  object-fit: cover;
}

.online-product-body {
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
  overflow: hidden;
}

.online-product-desc {
  display: block;
  max-inline-size: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
  word-break: break-word;
}

.online-product-meta {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.15rem;
  justify-content: flex-start;
  margin-top: 0.45rem;
}

.online-product-meta small {
  max-inline-size: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.online-product-qty {
  display: inline-flex;
  inset-inline-end: 0.35rem;
  inset-block-start: 0.35rem;
}

.online-product-list::-webkit-scrollbar {
  width: 0.45rem;
}

.online-product-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.online-delivery-shell {
  display: block;
}

.online-delivery-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.online-delivery-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

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

.online-location-row {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.online-continue-button {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
}

.online-location-map {
  height: 320px;
  min-height: 320px;
}

.online-location-map-wrap {
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}

.online-location-search {
  display: flex;
  flex-wrap: nowrap;
  left: 0.75rem;
  max-width: calc(100% - 1.5rem);
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  width: auto;
  z-index: 500;
}

.online-location-search .form-control {
  min-width: 0;
}

.online-location-search .form-control,
.online-location-search .btn {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.online-location-search .btn {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
  flex: 0 0 2.85rem;
  padding-left: 0;
  padding-right: 0;
  width: 2.85rem;
}

.online-location-search .btn:hover,
.online-location-search .btn:focus {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}

.online-location-permission {
  color: #047857;
  font-size: 0.86rem;
  font-weight: 800;
  margin-top: 0.35rem;
  padding: 0;
  text-decoration: none;
}

.online-location-permission:hover,
.online-location-permission:focus {
  color: #065f46;
  text-decoration: underline;
}

.online-location-permission:disabled {
  color: #64748b;
  opacity: 0.8;
  text-decoration: none;
}

.online-location-map .leaflet-top.leaflet-left {
  bottom: 0.75rem;
  left: auto;
  right: 0.75rem;
  top: auto;
}

.online-location-status {
  font-size: 1.75rem !important;
}

.online-payment-options {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 0.9rem 0.9rem;
}

.online-payment-total {
  align-items: center;
  background: #0f172a;
  border-radius: 0.85rem;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  margin: 0 0.9rem 0.9rem;
  padding: 0.85rem 1rem;
}

.online-payment-total span {
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.online-payment-total strong {
  font-size: 1.9rem;
  font-weight: 950;
  line-height: 1;
}

.online-customer-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0.9rem 0.9rem;
  padding: 0.8rem 0.9rem;
}

.online-customer-summary-item {
  align-items: center;
  color: #334155;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
}

.online-customer-summary-item i {
  color: #10b981;
  font-size: 1.05rem;
}

.online-customer-summary-item span {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.online-customer-summary-item small {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.online-customer-summary-item strong {
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.online-customer-summary-time {
  grid-column: 1 / -1;
}

.online-payment-products {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  display: grid;
  gap: 0.45rem;
  margin: 0 0.9rem 0.9rem;
  padding: 0.8rem 0.9rem;
}

.online-payment-product-item {
  align-items: center;
  color: #17202a;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: auto minmax(0, 1fr);
  line-height: 1.2;
}

.online-payment-product-item strong {
  align-items: center;
  background: #dcfce7;
  border-radius: 999px;
  color: #047857;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 950;
  height: 1.7rem;
  justify-content: center;
  min-width: 1.7rem;
  padding: 0 0.45rem;
}

.online-payment-product-item span,
.online-payment-products-empty {
  color: #475569;
  font-size: 0.9rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.online-payment-option {
  min-width: 0;
}

.online-payment-option span,
.online-payment-option-control {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  color: #334155;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0.75rem;
  text-align: left;
  width: 100%;
}

.online-payment-option i,
.online-payment-option-control i {
  color: #10b981;
  font-size: 1.15rem;
}

.online-payment-option strong,
.online-payment-option-control strong {
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 1.15;
}

.online-payment-option small,
.online-payment-option-control small {
  color: #64748b;
  flex-basis: 100%;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  padding-left: 1.7rem;
}

.online-payment-option btn-yappy {
  display: none;
}

.online-payment-option .btn-check:checked + span {
  background: #ecfdf5;
  border-color: #10b981;
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.14);
  color: #047857;
}

.online-payment-option .btn-check:checked + .online-payment-option-control {
  background: #ecfdf5;
  border-color: #10b981;
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.14);
  color: #047857;
}

.online-payment-option .btn-check:checked + span small,
.online-payment-option .btn-check:checked + .online-payment-option-control small {
  color: #059669;
}

.yappy-overlay-close {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  color: #0f172a;
  display: inline-flex;
  font-size: 1rem;
  height: 2.75rem;
  justify-content: center;
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  top: max(1rem, env(safe-area-inset-top));
  width: 2.75rem;
  z-index: 2147483647;
}

.yappy-overlay-close:hover,
.yappy-overlay-close:focus-visible {
  background: #f8fafc;
  border-color: #94a3b8;
}

.yappy-overlay-close[hidden] {
  display: none;
}

.online-payment-actions {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 1fr);
  padding: 0 0.9rem 0.9rem;
}

@media (max-width: 575.98px) {
  .online-order-page {
    padding: 0.75rem;
  }

  .online-order-steps {
    gap: 0.5rem;
  }

  .online-order-step {
    border-radius: 0.75rem;
    padding: 0.55rem 0.25rem;
  }

  .online-order-step span {
    height: 1.85rem;
    width: 1.85rem;
  }

  .online-order-step strong {
    font-size: 0.76rem;
  }

  .online-product-list {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .online-product-card {
    grid-template-columns: 68px minmax(0, 1fr);
    inline-size: 100%;
    max-inline-size: 100%;
  }

  .online-product-media {
    block-size: 78px;
    inline-size: 68px;
    min-block-size: 78px;
  }

  .online-product-qty {
    inset-inline-end: 0.3rem;
    inset-block-start: 0.3rem;
  }

  .online-delivery-grid,
  .online-location-row {
    grid-template-columns: 1fr;
  }

  .online-location-search {
    left: 0.5rem;
    max-width: calc(100% - 1rem);
    right: 0.5rem;
    top: 0.5rem;
  }

  .online-location-search .form-control {
    font-size: 0.92rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .online-location-search .btn {
    flex-basis: 2.7rem;
    width: 2.7rem;
  }

  .online-success-stage {
    padding: 0.25rem;
  }

  .online-success-actions {
    grid-template-columns: 1fr;
  }

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

  .online-payment-total {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }
}

.seller-balance-grid-admin .seller-label {
  margin-top: 0.35rem;
}

.seller-balance-value {
  color: #0f172a;
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.seller-dashboard-action {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2eae6;
  border-radius: 1.05rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  color: #1f2933;
  display: flex;
  gap: 1rem;
  min-width: 0;
  padding: 1rem;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

a.seller-dashboard-action:hover,
a.seller-dashboard-action:focus {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 16px 34px rgba(15, 118, 86, 0.1);
  color: #1f2933;
  transform: translateY(-2px);
}

.seller-dashboard-action-muted {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-style: dashed;
}

.seller-action-icon {
  align-items: center;
  background: #dcfce7;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 0.9rem;
  color: #047857;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.25rem;
  height: 3.25rem;
  justify-content: center;
  width: 3.25rem;
}

.seller-action-icon-prize {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.seller-action-icon-history {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.seller-action-content {
  flex: 1 1 auto;
  min-width: 0;
}

.seller-action-value {
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.1;
}

.seller-action-title {
  color: #17231f;
  font-size: 1rem;
  font-weight: 800;
  margin-top: 0.18rem;
}

.seller-dashboard-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.seller-dashboard-section-title {
  color: #047857;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 0.1rem 0.25rem;
  text-transform: uppercase;
}

.seller-action-chevron {
  color: #10b981;
  flex: 0 0 auto;
  font-size: 1.15rem;
}

.seller-action-grid {
  align-items: center;
  background: #10b981;
  border: 0.25rem solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.16);
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.45rem;
  height: 4rem;
  justify-content: center;
  width: 4rem;
}

.seller-notification-badge {
  align-items: center;
  background: #ef4444;
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.28);
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 900;
  height: 1.65rem;
  justify-content: center;
  min-width: 1.65rem;
  padding: 0 0.45rem;
}

.seller-action-status {
  background: #e2e8f0;
  border-radius: 999px;
  color: #64748b;
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.32rem 0.55rem;
  text-transform: uppercase;
}

.seller-hero,
.tickets-header {
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.16), transparent 18rem),
    linear-gradient(135deg, rgba(16, 185, 129, 0.09), rgba(14, 165, 233, 0.06)),
    #ffffff;
  border: 1px solid #dbe7e2;
  border-radius: 1.15rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  margin-top: 0;
  padding: 1.15rem;
}

.tickets-link-btn {
  align-items: center;
  align-self: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 253, 245, 0.94));
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(15, 118, 86, 0.12);
  color: #047857;
  display: inline-flex;
  font-weight: 800;
  gap: 0.55rem;
  padding: 0.5rem 0.85rem 0.5rem 0.55rem;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
  white-space: nowrap;
}

.tickets-link-btn:hover,
.tickets-link-btn:focus {
  background: #ffffff;
  border-color: rgba(16, 185, 129, 0.48);
  box-shadow: 0 14px 28px rgba(15, 118, 86, 0.16);
  color: #065f46;
  text-decoration: none;
  transform: translateY(-1px);
}

.tickets-link-btn:focus-visible {
  outline: 3px solid rgba(16, 185, 129, 0.24);
  outline-offset: 2px;
}

.tickets-link-icon {
  align-items: center;
  background: #dff8ed;
  border-radius: 999px;
  color: #059669;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.seller-card,
.seller-activity,
.ticket-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e6ece9;
  border-radius: 0.9rem;
  color: #1f2933;
  padding: 0.9rem;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.seller-card > .d-flex,
.seller-activity {
  min-width: 0;
}

.seller-card > .d-flex > .min-w-0,
.seller-activity > .min-w-0 {
  flex: 1 1 auto;
}

.seller-card > .d-flex > .text-end,
.seller-activity > .text-end {
  min-width: 0;
}

.dashboard-record {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-width: 0;
}

.dashboard-record-main {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: 1rem;
  min-width: 0;
}

.dashboard-record-content {
  flex: 1 1 auto;
  min-width: 0;
}

.dashboard-record-aside {
  flex: 0 1 auto;
  min-width: 0;
  text-align: right;
}

.dashboard-record-meta,
.dashboard-record-detail {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-activity,
.ticket-card {
  padding: 0.85rem;
}

.seller-card:hover,
.seller-activity:hover,
.ticket-card:hover {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  color: #1f2933;
  transform: translateY(-2px);
}

.seller-icon,
.ticket-icon {
  align-items: center;
  background: rgba(16, 185, 129, 0.14);
  border-radius: 0.75rem;
  color: #059669;
  display: inline-flex;
  height: 2.75rem;
  justify-content: center;
  width: 2.75rem;
}

.seller-icon-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.seller-muted,
.ticket-muted {
  color: #52657a;
}

.seller-label,
.ticket-label {
  color: #52657a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.seller-stat-value {
  color: #0f172a;
  font-size: 1.65rem;
  line-height: 1.1;
}

.seller-kpi-value {
  color: #0f172a;
  font-size: 1.45rem;
  line-height: 1.1;
}

.manager-limit-progress {
  background: #e5edf0;
  border-radius: 999px;
  height: 0.45rem;
  overflow: hidden;
}

.manager-mini-stat {
  background: #f8fafc;
  border: 1px solid #e6ece9;
  border-radius: 0.75rem;
  padding: 0.65rem;
}

/* --- Cash transfers: seller and supervisor --- */
.cash-vendor-shell {
  margin-inline: auto;
}

.cash-vendor-balance {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
}

.cash-vendor-shell .cash-page {
  gap: 1rem;
  padding: 1rem;
}

.cash-vendor-shell .cash-standard-card,
.cash-vendor-shell .cash-stat,
.cash-vendor-shell .cash-callout {
  border-color: #e6ece9;
  border-radius: 0.9rem;
  box-shadow: none;
}

.cash-page {
  color: #17231f;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0.35rem 0 1rem;
}

.cash-standard-shell {
  gap: 1.5rem;
}

.cash-standard-hero {
  align-items: flex-end;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.18), transparent 35%),
    linear-gradient(135deg, #f8fbf7 0%, #eef6f1 52%, #fff9ec 100%);
  border: 1px solid rgba(20, 83, 45, 0.1);
  border-radius: 1.25rem;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding: 2rem;
}

.cash-standard-hero-main {
  min-width: 0;
}

.cash-standard-hero-main h1 {
  color: #17231f;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 0.7rem 0 0.4rem;
}

.cash-standard-hero-main p {
  color: #64748b;
  margin: 0;
  max-width: 46rem;
}

.cash-standard-balance {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #dfeae3;
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(24, 52, 38, 0.07);
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  min-width: 15rem;
  padding: 1rem 1.2rem;
}

.cash-standard-balance span,
.cash-standard-balance small {
  color: #64748b;
}

.cash-standard-balance > span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cash-standard-balance strong {
  color: #10231c;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.cash-standard-card {
  border-color: #e4ece6;
  border-radius: 1.25rem;
  box-shadow: 0 14px 35px rgba(24, 52, 38, 0.07);
}

.cash-hero {
  align-items: center;
  background: linear-gradient(135deg, #063f32, #08765b);
  border-radius: 1.35rem;
  box-shadow: 0 20px 45px rgba(6, 78, 59, 0.2);
  color: #fff;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  overflow: hidden;
  padding: 1.55rem;
  position: relative;
}

.cash-hero::after {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
  height: 15rem;
  position: absolute;
  right: -5rem;
  top: -7rem;
  width: 15rem;
}

.cash-hero-supervisor {
  background: linear-gradient(135deg, #0f2942, #075985 58%, #047857);
}

.cash-hero h1 {
  font-size: clamp(1.55rem, 4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 0.2rem 0 0.35rem;
}

.cash-hero p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.cash-eyebrow,
.cash-panel-heading span,
.cash-section-title span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cash-eyebrow {
  color: #a7f3d0;
}

.cash-hero-balance {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  min-width: 15rem;
  padding: 1rem 1.2rem;
  position: relative;
  z-index: 1;
}

.cash-hero-balance span,
.cash-hero-balance small {
  color: rgba(255, 255, 255, 0.74);
}

.cash-hero-balance strong {
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.cash-summary-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.cash-stat {
  align-items: center;
  background: #fff;
  border: 1px solid #e2eae6;
  border-radius: 1.15rem;
  box-shadow: 0 14px 35px rgba(24, 52, 38, 0.06);
  display: flex;
  gap: 0.85rem;
  min-width: 0;
  padding: 1rem;
}

.cash-stat > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cash-stat small {
  color: #64748b;
  font-weight: 700;
}

.cash-stat strong {
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 900;
}

.cash-stat-icon,
.cash-movement-icon {
  align-items: center;
  border-radius: 0.8rem;
  display: inline-flex;
  flex: 0 0 auto;
  height: 2.8rem;
  justify-content: center;
  width: 2.8rem;
}

.cash-icon-blue { background: #e8f2ff; color: #2563eb; }
.cash-icon-green { background: #dcfce7; color: #059669; }
.cash-icon-red { background: #fee2e2; color: #dc2626; }
.cash-icon-orange { background: #ffedd5; color: #ea580c; }

.cash-callout {
  align-items: center;
  border: 1px solid #bbf7d0;
  border-radius: 1rem;
  display: flex;
  gap: 1rem;
  padding: 1rem 1.2rem;
}

.cash-callout-success { background: linear-gradient(135deg, #ecfdf5, #f0fdf4); }
.cash-callout-danger { background: linear-gradient(135deg, #fff1f2, #fff7ed); border-color: #fecdd3; }

.cash-callout-icon {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 15px rgba(15, 23, 42, 0.08);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.2rem;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.cash-callout > div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.7rem;
}

.cash-callout small { color: #64748b; font-weight: 800; grid-column: 1; }
.cash-callout strong { font-size: 1.35rem; font-weight: 900; grid-column: 1; }
.cash-callout p { align-self: center; color: #52657a; grid-column: 2; grid-row: 1 / 3; margin: 0; }

.cash-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cash-panel,
.cash-history,
.cash-supervisor-action {
  background: #fff;
  border: 1px solid #e2eae6;
  border-radius: 1.1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  padding: 1.15rem;
}

.cash-panel-heading,
.cash-section-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.cash-panel-heading span,
.cash-section-title span {
  color: #059669;
}

.cash-panel-heading h2,
.cash-section-title h2 {
  font-size: 1.1rem;
  font-weight: 900;
  margin: 0.12rem 0 0;
}

.cash-panel-heading > i,
.cash-section-title > i {
  color: #059669;
  font-size: 1.35rem;
}

.cash-panel-help {
  color: #64748b;
  font-size: 0.84rem;
  margin: 0.7rem 0 1rem;
}

.cash-action-toggle {
  background: #f1f5f9;
  border: 1px solid #dbe5e1;
  border-radius: 0.85rem;
  display: grid;
  gap: 0.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.85rem;
  padding: 0.25rem;
}

.cash-action-toggle-btn {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0.65rem;
  color: #64748b;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 850;
  gap: 0.45rem;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.55rem 0.65rem;
}

.cash-action-toggle-btn.is-active {
  background: #ffffff;
  box-shadow: 0 0.45rem 1.2rem rgba(15, 23, 42, 0.08);
  color: #047857;
}

.cash-action-pane {
  margin-top: 0.95rem;
}

.cash-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cash-form label,
.cash-supervisor-form label {
  color: #334155;
  font-size: 0.78rem;
  font-weight: 800;
}

.cash-money-input {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dbe5e1;
  border-radius: 0.75rem;
  display: flex;
  overflow: hidden;
}

.cash-money-input:focus-within {
  border-color: #10b981;
  box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.12);
}

.cash-money-input span {
  color: #059669;
  font-size: 1.2rem;
  font-weight: 900;
  padding-left: 0.9rem;
}

.cash-money-input input {
  background: transparent;
  border: 0;
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 800;
  outline: 0;
  padding: 0.7rem;
  width: 100%;
}

.cash-submit { margin-top: 0.45rem; }

.cash-count {
  align-items: center;
  background: #ecfdf5;
  border-radius: 999px;
  color: #047857 !important;
  display: inline-flex;
  font-size: 0.78rem !important;
  height: 2rem;
  justify-content: center;
  min-width: 2rem;
  padding: 0 0.6rem;
}

.cash-notification-count {
  background: #ef4444;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.22);
  color: #ffffff !important;
}

.cash-empty {
  align-items: center;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  justify-content: center;
  min-height: 9rem;
  text-align: center;
}

.cash-empty i { color: #10b981; font-size: 1.8rem; }
.cash-empty strong { color: #334155; }
.cash-empty span { font-size: 0.82rem; }

.cash-history {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cash-movement-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.cash-history-scroll {
  max-height: 23.1rem;
  overflow-y: auto;
  padding-right: 0.65rem;
  scrollbar-color: #10b981 #e2e8f0;
  scrollbar-width: auto;
}

.cash-history-scroll::-webkit-scrollbar { width: 0.75rem; }
.cash-history-scroll::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 999px;
}
.cash-history-scroll::-webkit-scrollbar-thumb {
  background: #10b981;
  border: 2px solid #e2e8f0;
  border-radius: 999px;
}

.cash-history-scroll::-webkit-scrollbar-thumb:hover { background: #059669; }

.cash-movement {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e7eeeb;
  border-radius: 0.9rem;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 2.8rem minmax(0, 1fr) max-content;
  min-width: 0;
  padding: 0.85rem;
}

.cash-movement-pending {
  background: #fffbeb;
  border-color: #fde68a;
}

.cash-movement-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cash-movement-body > strong {
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.cash-movement-body small,
.cash-movement-body p {
  color: #64748b;
  font-size: 0.76rem;
  margin: 0;
  overflow-wrap: anywhere;
}

.cash-movement-side {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 100%;
  min-width: 0;
}

.cash-movement-side > strong { font-size: 1.05rem; font-weight: 900; }

.cash-movement-side form {
  margin: 0;
  max-width: 100%;
  width: 100%;
}

.cash-movement-side .btn,
.cash-link-danger {
  overflow-wrap: anywhere;
  white-space: normal;
}

.cash-status {
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 0.25rem 0.5rem;
  text-transform: uppercase;
}

.cash-status-pendiente { background: #fef3c7; color: #92400e; }
.cash-status-recibido { background: #dcfce7; color: #047857; }
.cash-status-cancelado { background: #fee2e2; color: #b91c1c; }

.cash-link-danger {
  background: transparent;
  border: 0;
  color: #dc2626;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0;
}

.cash-confirm-modal .modal-content {
  border: 1px solid #dfeae3;
  border-radius: 1.1rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.cash-confirm-modal .modal-header,
.cash-confirm-modal .modal-body,
.cash-confirm-modal .modal-footer {
  padding-inline: 1.25rem;
}

.cash-confirm-modal .modal-title {
  color: #17231f;
  font-weight: 900;
  margin: 0.15rem 0 0;
}

.cash-modal-eyebrow {
  color: #059669;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cash-confirm-icon {
  align-items: center;
  background: #dcfce7;
  border-radius: 1rem;
  color: #059669;
  display: inline-flex;
  font-size: 1.55rem;
  height: 3.4rem;
  justify-content: center;
  margin-bottom: 0.9rem;
  width: 3.4rem;
}

.cash-confirm-copy {
  color: #52657a;
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

.cash-confirm-summary {
  background: #f8fafc;
  border: 1px solid #e7eeeb;
  border-radius: 0.9rem;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.85rem;
}

.cash-confirm-summary span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cash-confirm-summary small {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cash-confirm-summary strong {
  color: #17231f;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.cash-supervisor-form {
  align-items: end;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1.4fr 0.8fr 1.2fr auto;
}

.cash-supervisor-form > div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cash-seller-grid {
  display: flex;
  gap: 0.9rem;
  margin-top: 0.8rem;
  overflow-x: auto;
  padding: 0.1rem 0.1rem 0.75rem;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-color: #a7d9c2 #edf5f1;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.cash-seller-grid::-webkit-scrollbar {
  height: 0.45rem;
}

.cash-seller-grid::-webkit-scrollbar-track {
  background: #edf5f1;
  border-radius: 999px;
}

.cash-seller-grid::-webkit-scrollbar-thumb {
  background: #a7d9c2;
  border-radius: 999px;
}

.cash-seller-card {
  background: #fff;
  border: 1px solid #e2eae6;
  border-radius: 1.15rem;
  box-shadow: 0 14px 35px rgba(24, 52, 38, 0.06);
  flex: 0 0 clamp(17.5rem, 27vw, 21rem);
  padding: 0.85rem;
  scroll-snap-align: start;
}

.cash-seller-needs { border-left: 4px solid #ef4444; }
.cash-seller-positive { border-left: 4px solid #10b981; }

.cash-seller-head {
  align-items: center;
  display: flex;
  gap: 0.7rem;
}

.cash-seller-head > div {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.cash-seller-head small { color: #64748b; font-size: 0.72rem; }

.cash-avatar {
  align-items: center;
  background: #dcfce7;
  border-radius: 50%;
  color: #047857;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 900;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

.cash-seller-balance {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0;
}

.cash-seller-balance small { color: #64748b; }
.cash-seller-balance strong { font-size: 1.45rem; font-weight: 900; letter-spacing: -0.04em; }

.cash-seller-details {
  border-top: 1px solid #e7eeeb;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 0.75rem;
}

.cash-seller-details span { display: flex; flex-direction: column; }
.cash-seller-details small { color: #64748b; font-size: 0.68rem; }
.cash-seller-details strong { font-size: 0.82rem; }

/* --- Daily cash close --- */
.cash-close-page {
  gap: 1.1rem;
}

.cash-close-hero {
  background:
    radial-gradient(circle at 88% 15%, rgba(52, 211, 153, 0.22), transparent 28%),
    linear-gradient(135deg, #102a43, #075985 52%, #047857);
}

.cash-close-status strong {
  align-items: center;
  display: flex;
  gap: 0.55rem;
}

.cash-close-status strong span {
  color: inherit;
}

.cash-close-action {
  overflow: hidden;
  padding: 1rem 1.15rem;
  position: relative;
}

.cash-close-action::before {
  background: linear-gradient(90deg, #10b981, #0ea5e9);
  content: "";
  height: 3px;
  inset: 0 0 auto;
  position: absolute;
}

.cash-close-ready {
  align-items: center;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  color: #c2410c;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
}

.cash-close-ready span {
  color: inherit;
  font-size: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.cash-close-ready-ok {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.cash-close-action-grid {
  align-items: center;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(0, 1fr) minmax(24rem, 1fr);
  margin-top: 0.75rem;
}

.cash-close-warning,
.cash-close-success {
  border-radius: 0.95rem;
  display: flex;
  gap: 0.7rem;
  padding: 0.75rem 0.85rem;
}

.cash-close-warning {
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
  border: 1px solid #fde68a;
  color: #78350f;
}

.cash-close-success {
  align-items: center;
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border: 1px solid #bbf7d0;
  color: #065f46;
}

.cash-close-success > i {
  font-size: 1.55rem;
}

.cash-close-success div {
  display: flex;
  flex-direction: column;
}

.cash-close-success span {
  color: #477568;
  font-size: 0.8rem;
}

.cash-close-warning-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 0.75rem;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.2rem;
  height: 2.3rem;
  justify-content: center;
  width: 2.3rem;
}

.cash-close-warning strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.cash-close-requirement {
  align-items: flex-start;
  color: #8a5a20;
  display: flex;
  font-size: 0.8rem;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.cash-close-requirement i {
  font-size: 0.35rem;
  margin-top: 0.42rem;
}

.cash-close-form {
  align-items: end;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.95rem;
  display: grid;
  gap: 0.45rem 0.65rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.75rem;
}

.cash-close-form label {
  color: #334155;
  font-size: 0.8rem;
  font-weight: 800;
  grid-column: 1 / -1;
}

.cash-close-form label span {
  color: #94a3b8;
  font-weight: 600;
}

.cash-close-form textarea {
  font-size: 0.85rem;
  min-height: 2.65rem;
  resize: none;
}

.cash-close-form .btn {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
  justify-content: center;
  min-height: 2.65rem;
  white-space: nowrap;
}

.cash-close-form small {
  color: #64748b;
  font-size: 0.7rem;
  grid-column: 1 / -1;
  line-height: 1.35;
}

.cash-close-sellers {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.8rem;
}

.cash-close-seller {
  background: #fff;
  border: 1px solid #e2eae6;
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
  overflow: hidden;
  padding: 1rem;
  position: relative;
}

.cash-close-seller::before {
  background: #10b981;
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 3px;
}

.cash-close-seller-negative::before {
  background: #ef4444;
}

.cash-close-seller-head {
  align-items: center;
  display: flex;
  gap: 0.7rem;
}

.cash-close-seller-head > div:nth-child(2) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.cash-close-seller-head > div:nth-child(2) > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cash-close-seller-head > div:nth-child(2) small {
  color: #64748b;
  font-size: 0.72rem;
}

.cash-close-seller-balance {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
}

.cash-close-seller-balance small {
  color: #94a3b8;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cash-close-seller-balance strong {
  font-size: 1.2rem;
  font-weight: 900;
}

.cash-close-cascade {
  align-items: center;
  background: #f1f5f9;
  border-radius: 0.65rem;
  color: #52657a;
  display: flex;
  font-size: 0.68rem;
  gap: 0.45rem;
  line-height: 1.4;
  margin: 0.85rem 0;
  padding: 0.55rem 0.65rem;
}

.cash-close-cascade i {
  color: #059669;
  flex: 0 0 auto;
}

.cash-close-metrics {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cash-close-metrics span {
  background: #f8fafc;
  border: 1px solid #edf2f0;
  border-radius: 0.65rem;
  display: flex;
  flex-direction: column;
  padding: 0.55rem;
}

.cash-close-metrics small {
  color: #64748b;
  font-size: 0.65rem;
}

.cash-close-metrics strong {
  color: #17231f;
  font-size: 0.85rem;
}

.cash-close-transfers {
  border-top: 1px solid #e7eeeb;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.7rem;
}

.cash-close-transfers span {
  color: #64748b;
  font-size: 0.7rem;
}

.cash-close-transfers i {
  color: #059669;
}

.cash-close-transfers strong {
  color: #334155;
  margin-left: 0.2rem;
}

@media (max-width: 992px) {
  .cash-summary-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cash-supervisor-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cash-close-action-grid { grid-template-columns: 1fr; }
  .cash-close-form { grid-template-columns: 1fr auto; }
  .cash-standard-hero { align-items: stretch; flex-direction: column; }
  .cash-standard-balance { min-width: 0; }
  .cash-history-scroll {
    overflow-x: hidden;
  }
  .cash-history-scroll .cash-movement {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    padding: 0.8rem;
  }
  .cash-history-scroll .cash-movement-icon {
    grid-column: 1;
    grid-row: 1;
    height: 2.75rem;
    width: 2.75rem;
  }
  .cash-history-scroll .cash-movement-body {
    grid-column: 2;
    grid-row: 1;
  }
  .cash-history-scroll .cash-movement-body > strong {
    font-size: 0.95rem;
    line-height: 1.2;
  }
  .cash-history-scroll .cash-movement-body small,
  .cash-history-scroll .cash-movement-body p {
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .cash-history-scroll .cash-movement-side {
    align-items: stretch;
    display: grid;
    gap: 0.35rem;
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }
  .cash-history-scroll .cash-movement-side > strong {
    align-self: center;
  }
  .cash-history-scroll .cash-movement-side .cash-status {
    align-self: center;
    justify-self: end;
  }
  .cash-history-scroll .cash-movement-side form {
    grid-column: 1 / -1;
  }
  .cash-history-scroll .cash-movement-side .btn,
  .cash-history-scroll .cash-link-danger {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .cash-hero { align-items: stretch; flex-direction: column; gap: 1rem; }
  .cash-hero-balance { min-width: 0; }
  .cash-summary-grid,
  .cash-summary-grid-four,
  .cash-layout,
  .cash-supervisor-form { grid-template-columns: 1fr; }
  .cash-seller-card { flex-basis: min(82vw, 19rem); }
  .cash-vendor-shell .cash-page {
    padding: 0.75rem;
  }
  .cash-vendor-balance {
    padding: 1rem;
  }
  .cash-vendor-balance .h4 {
    font-size: 1.75rem;
  }
  .cash-vendor-balance .ticket-muted {
    font-size: 0.9rem;
    line-height: 1.35;
  }
  .cash-stat {
    min-height: 0;
    padding: 0.8rem;
  }
  .cash-stat strong {
    font-size: 1.05rem;
    line-height: 1.15;
  }
  .cash-action-toggle {
    grid-template-columns: 1fr;
  }
  .cash-action-toggle-btn {
    justify-content: flex-start;
    min-height: 2.55rem;
    padding-inline: 0.85rem;
  }
  .cash-callout > div { display: block; }
  .cash-callout p { margin-top: 0.25rem; }
  .cash-history-scroll {
    max-height: 24.7rem;
    padding-right: 0.55rem;
  }
  .cash-history-scroll .cash-movement-icon {
    height: 2.6rem;
    width: 2.6rem;
  }
  .cash-history-scroll .cash-movement-body > strong { font-size: 0.9rem; }
  .cash-history-scroll .cash-movement-side > strong { font-size: 0.95rem; }
  .cash-history-scroll .cash-status { font-size: 0.58rem; }
  .cash-close-sellers { grid-template-columns: 1fr; }
  .cash-close-ready span { display: none; }
  .cash-close-action { padding: 1rem; }
  .cash-standard-hero { padding: 1.35rem; }
  .cash-close-form { grid-template-columns: 1fr; }
  .cash-close-form .btn { width: 100%; }
}

.seller-dashboard .text-secondary {
  color: #52657a !important;
}

.seller-dashboard .text-danger {
  color: #dc2626 !important;
}

@media (max-width: 576px) {
  .seller-dashboard {
    padding-top: 0;
    margin-top: 1rem;
  }

  .admin-period-selector {
    gap: 0.2rem;
    flex-wrap: nowrap;
  }

  .admin-period-option {
    min-height: 2.9rem;
    padding: 0.4rem 0.45rem;
  }

  .admin-period-option-title {
    font-size: 0.68rem;
  }

  .admin-period-option-subtitle {
    font-size: 0.56rem;
  }

  .admin-dashboard-metrics {
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-dashboard-card {
    min-height: auto;
    padding: 0.9rem;
  }

  .admin-dashboard-card .seller-balance-value {
    font-size: clamp(1.65rem, 7vw, 2.1rem);
  }

  .admin-dashboard-split-row .seller-balance-value {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }

  .seller-balance-card {
    border-radius: 1rem;
    padding: 1rem;
  }

  .seller-balance-metric {
    padding: 0.85rem 0.7rem;
  }

  .seller-balance-grid-admin {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 0.35rem;
  }

  .seller-balance-grid-admin .seller-balance-metric {
    padding: 0.45rem 0.55rem;
  }

  .seller-balance-card-compact {
    padding: 0.85rem;
  }

  .seller-balance-grid-compact {
    row-gap: 0.25rem;
  }

  .seller-balance-grid-compact .seller-balance-metric {
    padding: 0.35rem 0.5rem;
  }

  .repartidor-delivery-table th,
  .repartidor-delivery-table td {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .repartidor-detail-grid {
    grid-template-columns: 1fr;
  }

  .repartidor-payment-form {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .seller-dashboard-action {
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .seller-action-icon {
    border-radius: 0.8rem;
    height: 2.8rem;
    width: 2.8rem;
  }

  .seller-action-status {
    display: none;
  }

  .seller-hero,
  .tickets-header {
    border-radius: 1rem;
    padding: 1rem;
    margin-top: 1rem;
  }

  .ventas-app-header {
    margin-top: 1rem;
    padding: 0.6rem 1rem;
  }

  .ventas-app-title {
    font-size: 1.1rem;
  }

  .tickets-link-btn {
    gap: 0.4rem;
    padding: 0.45rem 0.65rem 0.45rem 0.45rem;
  }

  .tickets-link-icon {
    height: 1.85rem;
    width: 1.85rem;
  }

  .tickets-link-text {
    display: inline;
    font-size: 0.82rem;
  }

  .seller-stat-value {
    font-size: 1.35rem;
  }

  .seller-kpi-value {
    font-size: 1.25rem;
  }

  .seller-card,
  .seller-activity,
  .ticket-card {
    padding: 0.8rem;
  }

  .seller-card > .d-flex.align-items-center.justify-content-between,
  .seller-activity {
    align-items: flex-start !important;
    flex-wrap: wrap;
  }

  .dashboard-record {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .dashboard-record-aside {
    flex: 1 1 100%;
    padding-left: calc(2.45rem + 1rem);
    text-align: left;
  }

  .seller-card > .d-flex > .text-end,
  .seller-activity > .text-end {
    flex: 1 1 100%;
    text-align: left !important;
    padding-left: calc(2.45rem + 1rem);
  }

  .seller-card > .d-flex > .text-end .seller-muted,
  .seller-activity > .text-end .seller-muted {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.ticket-total {
  color: #059669;
  font-size: 1.15rem;
  line-height: 1.1;
}

.ticket-sale-card {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-width: 0;
}

.ticket-sale-main {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: 1rem;
  min-width: 0;
}

.ticket-sale-actions {
  align-items: flex-end;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
}

.ticket-sale-buttons {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ticket-action-link {
  color: #047857;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.ticket-action-link:hover {
  color: #065f46;
  text-decoration: underline;
}

.ticket-paid-btn {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 999px;
  color: #047857;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  min-height: 2.2rem;
  padding: 0.46rem 0.9rem;
}

.ticket-paid-btn:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.5);
}

.ticket-paid-btn-secondary {
  background: #ffffff;
  border-color: #d4ddd9;
  color: #64748b;
}

.ticket-paid-btn-secondary:hover {
  background: #f8fafc;
  border-color: #9aa8a2;
  color: #334155;
}

@media (max-width: 576px) {
  .ticket-sale-card {
    align-items: stretch;
    flex-direction: column;
  }

  .ticket-sale-actions {
    align-items: center;
    border-top: 1px solid #eef2f7;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 0.75rem;
    text-align: left;
    width: 100%;
  }

  .ticket-sale-buttons {
    align-items: flex-end;
  }

  .ticket-paid-btn {
    padding-inline: 0.75rem;
  }
}

/* --- QR reader --- */
.qr-reader-page {
  margin-inline: auto;
  max-width: 920px;
}

.qr-reader-header {
  background: linear-gradient(135deg, #ecfdf5 0%, #dff8f1 100%);
  border: 1px solid #d1fae5;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  padding: 1.25rem;
}

.qr-reader-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  padding: 1rem;
}

.qr-camera-card {
  background: linear-gradient(180deg, #f8fffc 0%, #ffffff 100%);
}

.qr-camera-shell {
  align-items: center;
  background:
    radial-gradient(circle at center, rgba(16, 185, 129, 0.16), transparent 34%),
    linear-gradient(135deg, #07130f 0%, #020617 100%);
  border-radius: 18px;
  display: flex;
  justify-content: center;
  min-height: 320px;
  overflow: hidden;
  position: relative;
}

.qr-video {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.qr-frame {
  border: 0;
  height: min(48vw, 210px);
  max-height: 210px;
  max-width: 210px;
  pointer-events: none;
  position: absolute;
  width: min(48vw, 210px);
  z-index: 2;
}

.qr-frame::before,
.qr-frame::after {
  border: 4px solid #10b981;
  border-radius: 24px;
  content: "";
  inset: 0;
  position: absolute;
}

.qr-frame::before {
  box-shadow: 0 0 34px rgba(16, 185, 129, 0.35);
  clip-path: polygon(0 0, 36% 0, 36% 12%, 12% 12%, 12% 36%, 0 36%, 0 0,
      64% 0, 100% 0, 100% 36%, 88% 36%, 88% 12%, 64% 12%,
      64% 88%, 88% 88%, 88% 64%, 100% 64%, 100% 100%, 64% 100%,
      36% 100%, 0 100%, 0 64%, 12% 64%, 12% 88%, 36% 88%);
}

.qr-frame::after {
  border-color: rgba(209, 250, 229, 0.14);
}

.qr-camera-placeholder {
  align-items: center;
  color: #d1fae5;
  display: flex;
  flex-direction: column;
  font-weight: 700;
  gap: 0.75rem;
  padding: 1.5rem;
  position: relative;
  text-align: center;
  z-index: 3;
}

.qr-camera-placeholder i {
  font-size: 3rem;
}

.qr-status {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 0.85rem;
}

.qr-status-success {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #047857;
}

.qr-status-warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.qr-status-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.qr-code-input {
  border-color: #cbd5e1;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.8rem 1rem;
  text-transform: uppercase;
}

.qr-code-chip {
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  color: #047857;
  display: inline-flex;
  font-weight: 800;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
}

.qr-actions-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qr-action-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  color: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 170px;
  padding: 1rem;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.qr-action-card:hover:not(:disabled) {
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 18px 36px rgba(16, 185, 129, 0.12);
  transform: translateY(-2px);
}

.qr-action-card:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.qr-action-icon {
  align-items: center;
  border-radius: 16px;
  display: inline-flex;
  font-size: 1.4rem;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.qr-action-icon-sale {
  background: #ecfdf5;
  color: #059669;
}

.qr-action-icon-check {
  background: #eff6ff;
  color: #2563eb;
}

.qr-action-title {
  font-size: 1rem;
  font-weight: 900;
}

.qr-action-text {
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.qr-result {
  border-radius: 22px;
  padding: 1rem;
}

.qr-result-winner {
  background: linear-gradient(135deg, #ecfdf5 0%, #dcfce7 100%);
  border: 1px solid #86efac;
}

.qr-result-loser {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
}

.qr-result-pending {
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.qr-result-head {
  align-items: center;
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.qr-result-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  display: flex;
  font-size: 1.35rem;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.qr-result-title {
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 900;
}

.qr-result-message {
  color: #475569;
  font-size: 0.9rem;
  font-weight: 700;
}

.qr-result-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qr-result-grid div {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  padding: 0.7rem;
}

.qr-result-grid span {
  color: #64748b;
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qr-result-grid strong {
  color: #0f172a;
  display: block;
  font-size: 0.95rem;
  margin-top: 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .qr-reader-page {
    gap: 1rem !important;
  }

  .qr-reader-header {
    border-radius: 18px;
    padding: 1rem;
  }

  .qr-reader-card,
  .qr-action-card,
  .qr-result {
    border-radius: 16px;
  }

  .qr-camera-shell {
    min-height: 300px;
  }

  .qr-frame {
    height: min(54vw, 190px);
    width: min(54vw, 190px);
  }

  .qr-camera-placeholder {
    font-size: 0.95rem;
    max-width: 240px;
  }

  .qr-camera-placeholder i {
    font-size: 2.4rem;
  }

  .qr-camera-card .btn {
    justify-content: center;
    width: 100%;
  }

  .qr-actions-grid,
  .qr-result-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Super Admin owner dashboard --- */
.super-owner-dashboard {
  --owner-ink: #0f172a;
  --owner-muted: #52657a;
  --owner-green: #10b981;
  --owner-sky: #0ea5e9;
}

.owner-hero {
  background:
    radial-gradient(circle at 88% 18%, rgba(16, 185, 129, 0.24), transparent 18rem),
    linear-gradient(135deg, #f0fdf4 0%, #ecfeff 52%, #ffffff 100%);
}

.fw-black {
  font-weight: 900;
}

.owner-hero-icon {
  border-radius: 1rem;
  height: 3rem;
  width: 3rem;
}

.owner-chart-card,
.owner-metric-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #dfece7;
  border-radius: 1.2rem;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.owner-chart-card {
  padding: 1rem 0.65rem 1rem 0.65rem;
  overflow: visible;
}

.owner-chart-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-inline: 0.35rem;
}

.owner-chart-legend {
  align-items: center;
  color: var(--owner-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 0.75rem;
}

.owner-dot {
  border-radius: 999px;
  display: inline-block;
  height: 0.65rem;
  margin-right: 0.35rem;
  width: 0.65rem;
}

.owner-dot-profit {
  background: var(--owner-green);
}

.owner-dot-sales {
  background: var(--owner-sky);
}

.owner-chart-wrap {
  background:
    radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.1), transparent 20rem),
    #f8fafc;
  border: 1px solid #e2ebe7;
  border-radius: 1rem;
  min-height: 300px;
  overflow: visible;
  position: relative;
}

.owner-trend-chart {
  display: block;
  height: 300px;
  overflow: visible;
  width: 100%;
}

.owner-grid-line {
  stroke: rgba(82, 101, 122, 0.18);
  stroke-width: 1;
}

.owner-axis-line {
  stroke: rgba(82, 101, 122, 0.26);
  stroke-width: 1.4;
}

.owner-axis-label {
  fill: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
}

.owner-axis-y {
  letter-spacing: -0.02em;
}

.owner-axis-x {
  fill: #475569;
}

.owner-area {
  fill: url(#ownerProfitFill);
  stroke: none;
}

.owner-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.owner-line-profit {
  filter: drop-shadow(0 8px 12px rgba(16, 185, 129, 0.18));
  stroke: var(--owner-green);
}

.owner-line-sales {
  stroke: rgba(14, 165, 233, 0.72);
  stroke-dasharray: 8 10;
  stroke-width: 4;
}

.owner-point {
  fill: #ffffff;
  stroke: var(--owner-green);
  stroke-width: 4;
}

.owner-point-sales {
  fill: #ffffff;
  stroke: var(--owner-sky);
  stroke-width: 3;
}

.owner-hit-point {
  cursor: pointer;
  fill: transparent;
  stroke: transparent;
}

.owner-hover-line {
  opacity: 0;
  pointer-events: none;
  stroke: rgba(15, 23, 42, 0.08);
  stroke-width: 1;
}

.owner-chart-tooltip {
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.85rem;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.24);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 176px;
  padding: 0.75rem 0.85rem;
  pointer-events: none;
  position: absolute;
  transform: none;
  z-index: 4;
}

.owner-chart-tooltip::after {
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid rgba(15, 23, 42, 0.94);
  bottom: -7px;
  content: "";
  left: var(--tooltip-arrow-left, 50%);
  position: absolute;
  transform: translateX(-50%);
}

.owner-chart-tooltip-bottom {
  transform: none;
}

.owner-chart-tooltip-bottom::after {
  border-bottom: 7px solid rgba(15, 23, 42, 0.94);
  border-top: 0;
  bottom: auto;
  top: -7px;
}

.owner-chart-tooltip div {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  justify-content: space-between;
}

.owner-chart-tooltip div + div {
  margin-top: 0.35rem;
}

.owner-chart-tooltip strong {
  font-weight: 900;
}

.owner-tooltip-date {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #d1fae5;
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
  padding-bottom: 0.45rem;
}

.owner-metric-card {
  padding: 1rem;
}

.owner-metric-primary {
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.2), transparent 10rem),
    #ffffff;
}

.owner-metric-value {
  color: var(--owner-ink);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0.35rem 0;
}

/* --- Orders dashboard --- */
.orders-dashboard-charts {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.orders-chart-panel {
  background: #ffffff;
  border: 1px solid #dfece7;
  border-radius: 1rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
  padding: 1rem;
}

.orders-chart-panel-wide {
  grid-column: 1 / -1;
}

.orders-chart-head {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.orders-chart-head > i {
  align-items: center;
  background: #ecfdf5;
  border-radius: 0.85rem;
  color: #047857;
  display: inline-flex;
  font-size: 1.25rem;
  height: 2.65rem;
  justify-content: center;
  width: 2.65rem;
}

.orders-chart-title {
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 900;
  margin: 0;
}

.orders-line-chart {
  background:
    linear-gradient(to top, rgba(148, 163, 184, 0.16) 1px, transparent 1px) 0 0 / 100% 25%,
    #f8fafc;
  border: 1px solid #e2ebe7;
  border-radius: 0.85rem;
  height: 260px;
  overflow: hidden;
  padding: 0.35rem;
  position: relative;
}

.orders-line-chart svg {
  display: block;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.orders-line-grid {
  stroke: rgba(100, 116, 139, 0.16);
  stroke-width: 0.45;
}

.orders-line-area {
  fill: rgba(16, 185, 129, 0.14);
}

.orders-line-path {
  fill: none;
  stroke: #059669;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.orders-line-path-expenses {
  stroke: #dc2626;
}

.orders-chart-legend {
  align-items: center;
  color: #475569;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.85rem;
  margin: -0.35rem 0 0.75rem;
}

.orders-chart-legend span {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
}

.orders-legend-dot {
  border-radius: 999px;
  display: inline-block;
  height: 0.55rem;
  width: 0.55rem;
}

.orders-legend-orders {
  background: #059669;
}

.orders-legend-expenses {
  background: #dc2626;
}

.orders-line-labels {
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.orders-line-marker {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  position: absolute;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 2;
}

.orders-line-amount {
  background: rgba(248, 250, 252, 0.9);
  border-radius: 999px;
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.1rem 0.28rem;
  transform: translateY(-0.25rem);
}

.orders-line-amount-expenses {
  color: #991b1b;
}

.orders-line-point {
  background: #ffffff;
  border: 2px solid #047857;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.13);
  display: block;
  height: 0.75rem;
  width: 0.75rem;
}

.orders-line-point-expenses {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.13);
}

.orders-line-date {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(0.25rem);
}

.orders-ranked-chart {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.orders-ranked-label {
  align-items: baseline;
  color: #0f172a;
  display: flex;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.orders-ranked-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-ranked-label strong {
  color: #047857;
  flex: 0 0 auto;
  font-weight: 900;
}

.orders-ranked-track {
  background: #e8f3ee;
  border-radius: 999px;
  height: 0.7rem;
  overflow: hidden;
}

.orders-ranked-track span {
  background: linear-gradient(90deg, #10b981, #0ea5e9);
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 0.25rem;
}

.orders-payment-chart .orders-ranked-track span {
  background: linear-gradient(90deg, #0ea5e9, #6366f1);
}

.orders-payment-count {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 800;
  margin-top: 0.25rem;
}

.orders-empty-chart {
  align-items: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 0.85rem;
  color: #64748b;
  display: flex;
  font-weight: 800;
  justify-content: center;
  min-height: 140px;
}

@media (max-width: 767.98px) {
  .owner-chart-header {
    flex-direction: column;
  }

  .owner-chart-wrap {
    min-height: 240px;
  }

  .owner-trend-chart {
    height: 240px;
  }

  .owner-axis-label {
    font-size: 0.68rem;
  }

  .orders-dashboard-charts {
    grid-template-columns: 1fr;
  }

  .orders-daily-chart {
    gap: 0.15rem;
    height: 180px;
    padding: 0.65rem;
  }

  .orders-chart-head {
    align-items: center;
  }
}

@media (max-width: 767.98px) {
  .orders-filter-main {
    align-items: stretch;
  }

  .orders-filter-toggle {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .orders-filter-search-button span {
    display: none;
  }

  .orders-filter-grid {
    grid-template-columns: 1fr;
  }

  .orders-filter-actions {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .sally-page-head,
  .users-header {
    align-items: stretch;
    flex-direction: column;
  }

  .sally-page-head .btn,
  .users-header .btn,
  .sally-toolbar-main .btn {
    justify-content: center;
    width: 100%;
  }

  .users-title {
    font-size: 1.65rem;
    padding-bottom: 0.75rem !important;
    padding-top: 0.75rem !important;
  }

  .sally-toolbar {
    background: #ffffff;
  }

  .sally-toolbar-main {
    align-items: stretch;
    flex-direction: column;
  }

  .product-filter-form .sally-toolbar-main {
    align-items: center;
    flex-direction: row;
  }

  .product-filter-form .sally-toolbar-main .btn,
  .product-filter-form .sally-toolbar-main .product-filter-clear-button {
    width: auto;
  }

  .product-filter-form .product-filter-search-button {
    flex: 0 0 2.75rem;
  }

  .product-filter-grid {
    grid-template-columns: 1fr;
  }

  .product-filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .product-filter-actions > .btn,
  .product-filter-action-buttons {
    justify-content: center;
    width: 100%;
  }

  .sally-category-filter {
    flex-basis: auto;
    width: 100%;
  }

  .sally-status-badge-filter {
    flex-wrap: wrap;
    width: 100%;
  }

  .sally-status-filter-badge {
    flex: 1 1 0;
  }

  .quote-summary-panel {
    position: static;
  }

  #mobile-table {
    margin-bottom: 5.75rem;
    padding: 0.75rem;
  }

  #mobile-table table,
  #mobile-table thead,
  #mobile-table tbody,
  #mobile-table tr,
  #mobile-table th,
  #mobile-table td {
    display: block;
    width: 100%;
  }

  #mobile-table thead tr {
    left: -9999px;
    position: absolute;
    top: -9999px;
  }

  #mobile-table tbody tr {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.6rem;
    margin-bottom: 0.85rem;
    overflow: hidden;
  }

  #mobile-table tbody td {
    align-items: center;
    border: 0;
    border-bottom: 1px solid #f1f3f5;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    min-height: 3.25rem;
    padding: 0.75rem 0.85rem 0.75rem 48%;
    position: relative;
    text-align: right !important;
  }

  #mobile-table tbody td:last-child {
    border-bottom: 0;
  }

  #mobile-table tbody td::before {
    color: #6c757d;
    content: attr(data-title);
    font-size: 0.72rem;
    font-weight: 800;
    left: 0.85rem;
    letter-spacing: 0.06em;
    max-width: calc(48% - 1.25rem);
    overflow: hidden;
    position: absolute;
    text-align: left;
    text-overflow: ellipsis;
    text-transform: uppercase;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
  }

  #mobile-table tbody td > div {
    justify-content: flex-end;
    margin-left: auto;
    min-width: 0;
    text-align: right;
  }

  #mobile-table tbody td > form {
    justify-content: flex-end;
    margin-left: auto;
    min-width: 0;
    text-align: right;
  }

  #mobile-table .sally-state-select {
    max-width: min(100%, 12rem);
  }

  #mobile-table .js-order-products-button {
    flex: 0 0 auto;
  }

  #mobile-table .order-client-cell {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    line-height: 1.25;
    max-width: 100%;
  }

  #mobile-table .order-client-cell .sally-row-title,
  #mobile-table .order-client-cell .sally-row-muted {
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: right;
    white-space: normal;
  }

  #mobile-table .product-info-cell {
    justify-content: flex-end;
    max-width: 100%;
  }

  #mobile-table .product-info-content {
    text-align: right;
  }

  #mobile-table .product-list-table .sally-row-title,
  #mobile-table .product-list-table .sally-row-muted {
    white-space: normal;
  }

  #mobile-table .sally-avatar {
    display: none;
  }

  #mobile-table .product-image-column {
    display: flex;
    min-height: 4.5rem;
  }

  #mobile-table .product-image-column .sally-avatar {
    display: inline-flex;
    height: 3.25rem;
    width: 3.25rem;
  }

  #mobile-table .sally-action-group {
    justify-content: flex-end;
  }
}
