/* ============================================
   Freebuff POS — Neobrutalism Theme
   ============================================ */

:root {
  --bg: #FFFDF7;
  --bg-card: #FFFFFF;
  --black: #1a1a1a;
  --border: #1a1a1a;
  --accent: #FF6B6B;
  --accent2: #4ECDC4;
  --accent3: #FFE66D;
  --accent4: #A78BFA;
  --success: #22C55E;
  --success-bg: #DCFCE7;
  --error: #EF4444;
  --error-bg: #FEE2E2;
  --text: #1a1a1a;
  --text-muted: #6B7280;
  --border-w: 3px;
  --radius: 14px;
  --shadow: 4px 4px 0px var(--black);
  --shadow-sm: 3px 3px 0px var(--black);
  --shadow-accent: 4px 4px 0px var(--accent);
  --shadow-success: 4px 4px 0px #16a34a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100%;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* ============================================
   Layout
   ============================================ */
.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  background: var(--bg);
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--accent3);
  border-bottom: var(--border-w) solid var(--border);
  flex-shrink: 0;
}

.header-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.5px;
}

.header-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-card);
  border: var(--border-w) solid var(--border);
  color: var(--black);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.1s;
}
.header-btn:active {
  box-shadow: none;
  transform: translate(3px, 3px);
}

/* Views */
.views-container {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.view {
  display: none;
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 14px;
  padding-bottom: 80px;
}
.view.active {
  display: block;
}

/* Bottom Tab Bar */
.tab-bar {
  display: flex;
  background: var(--bg-card);
  border-top: var(--border-w) solid var(--border);
  flex-shrink: 0;
  padding-bottom: env(safe-area-inset-bottom);
}

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: color 0.1s;
}
.tab-btn.active {
  color: var(--black);
  background: var(--accent3);
}
.tab-btn svg {
  width: 24px;
  height: 24px;
}
.tab-btn .tab-label {
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Cart Badge */
.badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 22px);
  min-width: 20px;
  height: 20px;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--black);
}
.badge.pulse {
  animation: badgePulse 0.2s ease;
}
@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ============================================
   Menu View
   ============================================ */

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.search-bar svg {
  color: var(--text-muted);
  flex-shrink: 0;
}
.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}
.search-bar input::placeholder {
  color: #B0B0B0;
}

/* Category Pills */
.category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.category-pills::-webkit-scrollbar { display: none; }

.pill {
  flex-shrink: 0;
  padding: 7px 18px;
  border-radius: 10px;
  background: var(--bg-card);
  border: var(--border-w) solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.1s;
  box-shadow: var(--shadow-sm);
}
.pill.active {
  background: var(--accent);
  color: white;
  box-shadow: 3px 3px 0px #c0392b;
}
.pill:active {
  box-shadow: none;
  transform: translate(3px, 3px);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product-card {
  background: var(--bg-card);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  padding: 16px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.1s;
  text-align: center;
  box-shadow: var(--shadow);
}
.product-card:active {
  box-shadow: none;
  transform: translate(4px, 4px);
}

.product-icon {
  font-size: 34px;
  line-height: 1;
}
.product-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--black);
  line-height: 1.3;
}
.product-price {
  font-size: 13px;
  color: var(--accent);
  font-weight: 900;
  background: var(--accent3);
  padding: 2px 8px;
  border-radius: 6px;
  border: 2px solid var(--black);
}
.product-hpp-tag {
  font-size: 10px;
  color: var(--accent4);
  font-weight: 700;
  margin-top: 2px;
}

/* ============================================
   Cart View
   ============================================ */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.cart-item-name {
  font-size: 14px;
  font-weight: 700;
}
.cart-item-price {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 600;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-card);
  border: var(--border-w) solid var(--border);
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
  box-shadow: 2px 2px 0px var(--black);
}
.qty-btn:active {
  box-shadow: none;
  transform: translate(2px, 2px);
}
.qty-btn.delete {
  background: var(--error-bg);
  border-color: var(--error);
  box-shadow: 2px 2px 0px var(--error);
}

.qty-value {
  width: 30px;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
}

/* Cart Footer */
.cart-footer {
  background: var(--bg-card);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 14px;
  box-shadow: var(--shadow);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.cart-total-label {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 700;
}
.cart-total-value {
  font-size: 24px;
  font-weight: 900;
  color: var(--accent);
}

.cart-notes {
  width: 100%;
  background: var(--bg);
  border: var(--border-w) solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  resize: none;
  outline: none;
  margin-bottom: 14px;
  font-family: inherit;
}
.cart-notes:focus {
  border-color: var(--accent);
  box-shadow: 3px 3px 0px var(--accent);
}
.cart-notes::placeholder {
  color: #B0B0B0;
}

.btn-checkout {
  width: 100%;
  padding: 16px;
  background: var(--success);
  color: white;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.1s;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: var(--shadow-success);
}
.btn-checkout:active {
  box-shadow: none;
  transform: translate(4px, 4px);
}
.btn-checkout:disabled {
  background: #E5E7EB;
  color: #9CA3AF;
  box-shadow: 3px 3px 0px #D1D5DB;
  cursor: not-allowed;
}

/* HPP badge */
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--accent4);
  color: white;
  margin-left: 4px;
  vertical-align: middle;
  border: 1.5px solid var(--black);
}

/* ============================================
   Orders View
   ============================================ */
.order-card {
  background: var(--bg-card);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.1s;
  box-shadow: var(--shadow-sm);
}
.order-card:active {
  box-shadow: none;
  transform: translate(3px, 3px);
}

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

.order-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.order-status {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--success-bg);
  color: #16a34a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid var(--border);
}

.order-total {
  font-size: 20px;
  font-weight: 900;
  color: var(--accent);
}

.order-card-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 2px dashed var(--border);
  font-weight: 500;
}

/* Order Action Buttons */
.order-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--border);
}
.order-action-btn {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 2px 2px 0px var(--black);
  transition: all 0.1s;
}
.order-action-btn:active {
  box-shadow: none;
  transform: translate(2px, 2px);
}
.order-action-btn.edit {
  background: var(--accent3);
}
.order-action-btn.delete {
  background: var(--error-bg);
  border-color: var(--error);
  box-shadow: 2px 2px 0px var(--error);
}

/* Modal Tall */
.modal-tall {
  max-height: 90vh;
}

/* Edit Order */
.edit-order-section {
  margin-bottom: 18px;
}
.edit-order-section-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--black);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.edit-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
}
.edit-order-item-name {
  font-size: 14px;
  font-weight: 700;
}
.edit-order-item-price {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
.edit-order-item-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}
.edit-order-total-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--accent);
  border-top: 2px solid var(--border);
  margin-top: 8px;
}

/* Product Picker for Edit */
.edit-order-add-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}
.edit-order-add-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.1s;
  box-shadow: 2px 2px 0px var(--black);
  color: var(--black);
}
.edit-order-add-item:active {
  box-shadow: none;
  transform: translate(2px, 2px);
  border-color: var(--accent);
}
.edit-order-add-name {
  font-size: 13px;
  font-weight: 700;
}
.edit-order-add-price {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  text-align: center;
}
.empty-icon {
  font-size: 52px;
  margin-bottom: 14px;
}
.empty-state p {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 600;
}
.empty-sub {
  color: #B0B0B0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  margin-top: 6px;
}

.loading {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ============================================
   Modals
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.4);
  z-index: 100;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: var(--border-w) solid var(--border);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 22px 18px;
  animation: slideUp 0.2s ease;
  padding-bottom: calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 0px var(--black);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.modal-title {
  font-size: 20px;
  font-weight: 900;
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg);
  border: var(--border-w) solid var(--border);
  color: var(--black);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0px var(--black);
}
.modal-close:active {
  box-shadow: none;
  transform: translate(2px, 2px);
}

/* Checkout Modal */
.checkout-items {
  margin-bottom: 10px;
}
.checkout-item-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 2px dashed #E5E7EB;
}
.checkout-item-row:last-child {
  border-bottom: none;
}

.checkout-line {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}
.checkout-line.total {
  border-bottom: none;
  padding-top: 14px;
  font-size: 22px;
  font-weight: 900;
  color: var(--accent);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.btn-primary {
  flex: 1;
  padding: 14px;
  background: var(--success);
  color: white;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-success);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-primary:active {
  box-shadow: none;
  transform: translate(4px, 4px);
}
.btn-primary:disabled {
  background: #E5E7EB;
  color: #9CA3AF;
  box-shadow: 3px 3px 0px #D1D5DB;
  cursor: not-allowed;
}

.btn-secondary {
  padding: 14px 22px;
  background: var(--bg);
  border: var(--border-w) solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.btn-secondary:active {
  box-shadow: none;
  transform: translate(3px, 3px);
}

/* Order Detail Modal */
.order-detail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 2px dashed #E5E7EB;
}

.order-detail-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-detail-item-name {
  font-size: 14px;
  font-weight: 700;
}
.order-detail-item-qty {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
.order-detail-item-subtotal {
  font-size: 14px;
  font-weight: 800;
  color: var(--black);
}

.order-detail-total {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  font-size: 20px;
  font-weight: 900;
  color: var(--accent);
}

/* ============================================
   Admin
   ============================================ */
.admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.admin-item-name {
  font-size: 14px;
  font-weight: 700;
}
.admin-item-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 600;
}
.admin-item-actions {
  display: flex;
  gap: 6px;
}

.admin-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: var(--border-w) solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.1s;
  box-shadow: 2px 2px 0px var(--black);
}
.admin-btn:active {
  box-shadow: none;
  transform: translate(2px, 2px);
}
.admin-btn.delete {
  background: var(--error-bg);
  border-color: var(--error);
  box-shadow: 2px 2px 0px var(--error);
}

.btn-add-product {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 14px;
  box-shadow: var(--shadow-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-add-product:active {
  box-shadow: none;
  transform: translate(4px, 4px);
}

.inactive-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  background: #F3F4F6;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 6px;
  border: 1.5px solid var(--border);
}

.btn-add-cat {
  width: 100%;
  padding: 10px;
  background: var(--bg);
  border: 2px dashed var(--border);
  color: var(--text-muted);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 6px;
}
.btn-add-cat:active {
  background: #F3F4F6;
}

/* Form */
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-input, .form-select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: var(--border-w) solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  outline: none;
}
.form-input:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 3px 3px 0px var(--accent);
}
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='3'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.form-toggle input[type="checkbox"] {
  width: 48px;
  height: 26px;
  appearance: none;
  -webkit-appearance: none;
  background: #E5E7EB;
  border: var(--border-w) solid var(--border);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}
.form-toggle input[type="checkbox"]::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--black);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: all 0.2s;
}
.form-toggle input[type="checkbox"]:checked {
  background: var(--success);
}
.form-toggle input[type="checkbox"]:checked::after {
  left: 24px;
  background: white;
}
.toggle-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ============================================
   Toast
   ============================================ */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--black);
  color: white;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  border: var(--border-w) solid var(--black);
  box-shadow: 6px 6px 0px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
  z-index: 200;
  max-width: 340px;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.error {
  background: var(--error);
  border-color: #B91C1C;
  box-shadow: 6px 6px 0px rgba(185,28,28,0.3);
}

/* ============================================
   Scrollbar
   ============================================ */
.view::-webkit-scrollbar {
  width: 4px;
}
.view::-webkit-scrollbar-track {
  background: transparent;
}
.view::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* ============================================
   Responsive — Tablet+
   ============================================ */
@media (min-width: 481px) {
  .app {
    border-left: var(--border-w) solid var(--border);
    border-right: var(--border-w) solid var(--border);
  }
}

/* ============================================
   Daily Summary View
   ============================================ */
.summary-date-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}
.summary-date-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-card);
  border: var(--border-w) solid var(--border);
  color: var(--black);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.1s;
}
.summary-date-btn:active {
  box-shadow: none;
  transform: translate(3px, 3px);
}
.summary-date-input {
  background: var(--bg-card);
  border: var(--border-w) solid var(--border);
  border-radius: 10px;
  color: var(--black);
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  box-shadow: var(--shadow-sm);
}
.summary-date-input:focus {
  border-color: var(--accent);
  box-shadow: 3px 3px 0px var(--accent);
}

.summary-header {
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 700;
}

.summary-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.summary-card {
  background: var(--bg-card);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow);
}
.summary-card.accent {
  border-color: var(--accent);
  background: #FFF5F5;
  box-shadow: 4px 4px 0px var(--accent);
}
.summary-card-value {
  font-size: 22px;
  font-weight: 900;
  color: var(--black);
  margin-bottom: 4px;
}
.summary-card.accent .summary-card-value {
  color: var(--accent);
  font-size: 17px;
}
.summary-card-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 800;
}

.summary-section-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--black);
  margin-bottom: 12px;
  margin-top: 8px;
}

/* Hourly Chart */
.hourly-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 110px;
  background: var(--bg-card);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  padding: 14px 10px 28px;
  margin-bottom: 22px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.hourly-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  position: relative;
  justify-content: flex-end;
}
.hourly-bar {
  width: 100%;
  max-width: 26px;
  background: var(--accent2);
  border: 2px solid var(--black);
  border-radius: 6px 6px 0 0;
  min-height: 4px;
  transition: height 0.3s;
}
.hourly-label {
  font-size: 9px;
  color: var(--text-muted);
  position: absolute;
  bottom: -20px;
  white-space: nowrap;
  font-weight: 700;
}

/* Product Breakdown */
.product-breakdown {
  margin-bottom: 22px;
}
.breakdown-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: var(--border-w) solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.breakdown-rank {
  font-size: 14px;
  font-weight: 900;
  color: var(--accent);
  width: 28px;
  text-align: center;
}
.breakdown-info {
  flex: 1;
}
.breakdown-name {
  font-size: 14px;
  font-weight: 700;
}
.breakdown-qty {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}
.breakdown-revenue {
  font-size: 14px;
  font-weight: 900;
  color: var(--accent);
}

/* Profit Card */
.summary-profit-card {
  background: var(--bg-card);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.summary-profit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}
.summary-profit-row.total {
  padding-top: 8px;
}
.summary-profit-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}
.summary-profit-row.total .summary-profit-label {
  font-size: 16px;
  font-weight: 900;
  color: var(--black);
  text-transform: uppercase;
}
.summary-profit-value {
  font-size: 16px;
  font-weight: 800;
}
.summary-profit-value.revenue {
  color: var(--accent2);
}
.summary-profit-value.cost {
  color: var(--error);
}
.summary-profit-value.profit {
  font-size: 22px;
  font-weight: 900;
}
.summary-profit-value.profit.positive {
  color: #16a34a;
}
.summary-profit-value.profit.negative {
  color: var(--error);
}
.summary-profit-divider {
  height: 2px;
  background: var(--black);
  margin: 8px 0;
}

/* Summary Orders List */
.summary-orders-list {
  margin-bottom: 22px;
}
.summary-order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-card);
  border: var(--border-w) solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.1s;
  box-shadow: 2px 2px 0px var(--black);
}
.summary-order-row:active {
  box-shadow: none;
  transform: translate(2px, 2px);
  border-color: var(--accent);
}
.summary-order-time {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 700;
}
.summary-order-total {
  font-size: 15px;
  font-weight: 900;
  color: var(--accent);
}
