/* =========================================================
   Monix Dashboard — Main Stylesheet
   Breakpoints: mobile-first → tablet (600px) → desktop (1024px)
   ========================================================= */

/* =========================================================
   MONIX MAIN COLUMN
   ========================================================= */
.monix-wrapper {
  display: grid;
  grid-template-columns: 4fr 1fr;
  gap: 2rem;
}
.monix-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0; /* prevents grid blowout */
}

.business-title {
  font-size: 20px;
  font-weight: 600;
  color: #0f1117;
}

/* =========================================================
   STAT CARDS
   ========================================================= */
.business-stats-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .business-stats-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.business-stats-card {
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

.business-stats-card p {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.business-stats-card h2 {
  font-size: 17px;
  font-weight: 600;
  font-family: var(--paragraph, system-ui, sans-serif);
  display: flex;
  align-items: center;
  gap: 6px;
}

.business-stats-card h2::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.revenue h2 {
  color: #0f6e56;
}
.revenue h2::before {
  background: #1d9e75;
}

.expenditure h2 {
  color: #993c1d;
}
.expenditure h2::before {
  background: #d85a30;
}

/* =========================================================
   DAILY REPORT
   ========================================================= */
.daily-report-stat {
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.daily-report-stat > h2 {
  font-size: 14px;
  font-weight: 600;
  color: #0f1117;
  margin-bottom: 0.75rem;
}
.daily-header {
  display: flex;
  flex-direction: column;
  gap: var(--sizing-2);
  padding: var(--sizing-1) 0;
}
.daily-header input {
  border-radius: var(--sizing-1);
  padding: var(--sizing-1) 10px;
  font-size: 13px;
  font-family: var(--paragraph);
  background: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.1s;
  border: 0.5px solid rgba(0, 0, 0, 0.18);
  color: #1a1a1a;
}
.daily-header button {
  border-radius: var(--sizing-1);
  padding: var(--sizing-1) 10px;
  font-size: 13px;
  font-family: var(--paragraph);
  background: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.1s;
  border: 0.5px solid rgba(0, 0, 0, 0.18);
  color: #1a1a1a;
}
.daily-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0f2f5;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.9rem;
}

.daily-title h3 {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
}

.daily-title p {
  font-size: 16px;
  font-weight: 600;
  color: #0f1117;
}

.daily-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

.daily-column > h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  font-weight: 500;
}

.daily-column > p {
  font-size: 18px;
  font-weight: 600;
  color: #0f1117;
}

#sales-column > p {
  color: #0f6e56;
}
#expense-column > p {
  color: #993c1d;
}

.daily-column h4 {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
}

.daily-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.daily-column ul li {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #374151;
  padding: 4px 0;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.07);
}

.daily-report-stat hr {
  border: none;
  border-top: 0.5px solid rgba(0, 0, 0, 0.1);
  margin: 1rem 0 0.75rem;
}

/* Not paid */
.daily-report-stat > h3 {
  font-size: 12px;
  font-weight: 600;
  color: #0f1117;
  margin-bottom: 0.5rem;
}

.not-paid-cards {
  display: flex;
  flex-direction: column;
}

.not-paid-card {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  font-size: 12px;
  color: #374151;
  padding: 5px 0;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.07);
  gap: 4px;
}

.not-paid-header p {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.submit-button {
  background: #0f1117;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s;
}

.submit-button:hover {
  background: #2a2f3d;
}

/* =========================================================
   Charts
   ========================================================= */
.dashboard-charts {
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
}
.chart-tiles {
}

/* Add button (lives inside the h2 of recent transactions) */
.add-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #0f1117;
  color: #fff;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
}

.add-button:hover {
  background: #2a2f3d;
}

/* =========================================================
   RIGHT SIDEBAR
   ========================================================= */
.side-details-section {
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 1.25rem 1rem;
}

@media (min-width: 1024px) {
  .side-details-section {
    position: sticky;
    top: 1.5rem;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
  }
  .daily-header {
    flex-direction: row;
  }
}

.side-details-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.payments,
.birthdays {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin-bottom: 0.5rem;
  font-family: var(--paragraph, system-ui, sans-serif);
}

.side-details-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-details-card {
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
}

.card-title {
  font-size: 12px;
  font-weight: 500;
  color: #0f1117;
  margin-bottom: 2px;
}
.card-amount {
  font-size: 13px;
  font-weight: 600;
  color: #993c1d;
}
.card-date {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}

.side-details-card.birthday {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e6f1fb;
  color: #185fa5;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-info .name {
  font-size: 12px;
  font-weight: 500;
  color: #0f1117;
}
.avatar-info .when {
  font-size: 11px;
  color: #9ca3af;
}

/* =========================================================
   SCROLLBAR STYLING (webkit)
   ========================================================= */
.transaction-cards::-webkit-scrollbar,
.side-details-section::-webkit-scrollbar {
  width: 4px;
}

.transaction-cards::-webkit-scrollbar-track,
.side-details-section::-webkit-scrollbar-track {
  background: transparent;
}

.transaction-cards::-webkit-scrollbar-thumb,
.side-details-section::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

/* =========================================================
   UTILITY
   ============url(index.css)============================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* =========================================================
   MONIX ORDERS
   ========================================================= */
.monix-orders {
  background: white;
  padding: var(--sizing-2) var(--sizing-1);
}

.monix-tabs {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.monix-tabs .tab-btn {
  background: white;
  border: none;
  padding: var(--sizing-1) var(--sizing-2);
  cursor: pointer;
  border-radius: 6px 6px 0px 0px;
}
.tab-btn.active {
  background: rgba(0, 0, 0, 0.07);
}
.monix-order-content {
}
.order-content {
  display: none;
}
.order-content.active {
  display: block;
}

/* =========================================================
   FORM SHARED STYLES
   ========================================================= */
.orderForm {
  width: 60%;
  padding: var(--sizing-2) 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

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

.form-column > p:first-child {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

.form-column input,
.form-column select {
  border: 0.5px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: #1a1a1a;
  font-family: var(--paragraph, system-ui, sans-serif);
  background: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  width: 100%;
}

.form-column input:focus,
.form-column select:focus {
  outline: none;
  border-color: #6c8fff;
  box-shadow: 0 0 0 3px rgba(108, 143, 255, 0.12);
}

/* Balance display */
#balance {
  font-size: 18px;
  font-weight: 600;
  color: #0f6e56;
  padding: 6px 0;
}

/* =========================================================
   ORDER ITEMS (Add Transaction tab)
   ========================================================= */
.order-item-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1rem;
}

.order-item-row {
  background: #f8f9fb;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 1rem;
}

.order-item-row:nth-child(even) {
  background: #f0f2f5;
}

.order-item {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  align-items: end;
}

@media (max-width: 540px) {
  .order-item {
    grid-template-columns: 1fr;
  }
}

/* Labels inside order items */
.order-item > p:nth-child(odd) {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 4px;
}

.order-item select,
.order-item input[type="number"] {
  border: 0.5px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: #1a1a1a;
  font-family: var(--paragraph, system-ui, sans-serif);
  background: #fff;
  width: 100%;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.order-item select:focus,
.order-item input:focus {
  outline: none;
  border-color: #6c8fff;
  box-shadow: 0 0 0 3px rgba(108, 143, 255, 0.12);
}

/* Price display */
.price-display {
  font-size: 15px;
  font-weight: 600;
  color: #0f6e56;
  padding: 8px 0;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.add-row-button {
  background: #f0f2f5;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  color: #0f1117;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--paragraph, system-ui, sans-serif);
  transition: background 0.15s;
  margin-right: 8px;
}

.add-row-button:hover {
  background: #e2e5ea;
}

.submit-button {
  background: #0f1117;
  border: none;
  border-radius: 8px;
  color: #fff;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--paragraph, system-ui, sans-serif);
  transition: background 0.15s;
}

.submit-button:hover {
  background: #2a2f3d;
}

/* =========================================================
   EXPENSES TAB
   ========================================================= */
.expenses .form-column input,
.expenses .form-column select {
  width: 100%;
}

/* =========================================================
   WAITER DEBT TAB
   ========================================================= */
.balance-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1rem;
}

.balance-card {
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.balance-card:nth-child(even) {
  background: #f8f9fb;
}

.balance-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
}
.menu-items {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

@media (max-width: 540px) {
  .balance-row {
    grid-template-columns: 1fr;
  }
}

.balance-row p {
  font-size: 13px;
  font-weight: 500;
  color: #0f1117;
}

.balance-row span {
  font-size: 12px;
  color: #993c1d;
  font-weight: 600;
}

.balance-row input {
  border: 0.5px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: var(--paragraph, system-ui, sans-serif);
  width: 100%;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.balance-row input:focus {
  outline: none;
  border-color: #6c8fff;
  box-shadow: 0 0 0 3px rgba(108, 143, 255, 0.12);
}
