:root {
  --brand-primary: #0078ff;
  --brand-primary-dark: #0056d2;
  --brand-primary-soft: #e8f0fe;
  --brand-bg: #f5f8ff;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e5edf7;
  --text: #0f172a;
  --muted: #64748b;
  --success: #00c16a;
  --warning: #ffb020;
  --danger: #ef4444;
  --shadow-lg: 0 20px 50px rgba(0, 70, 180, 0.12);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f7fbff 0%, #f2f7ff 100%);
  color: var(--text);
}
.app-bg {
  background:
    radial-gradient(circle at top right, rgba(0, 120, 255, 0.08), transparent 25%),
    linear-gradient(180deg, #f8fbff 0%, #f4f8ff 100%);
}
.login-screen {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.16), transparent 25%),
    radial-gradient(circle at bottom right, rgba(255,255,255,.1), transparent 20%),
    linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
}
.glass-card, .panel-card, .table-card, .hero-card, .metric-card, .machine-card, .product-card, .online-order-card, .laundry-order-card, .cart-panel, .modal-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(229, 237, 247, 0.95);
  box-shadow: var(--shadow-md);
}
.glass-card { border-radius: 32px; box-shadow: var(--shadow-lg); }
.brand-logo, .brand-badge, .hero-icon {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: white; box-shadow: 0 16px 30px rgba(0,120,255,.25);
}
.brand-logo { width: 88px; height: 88px; border-radius: 28px; font-size: 2rem; }
.brand-badge { width: 48px; height: 48px; border-radius: 18px; }
.hero-icon { width: 52px; height: 52px; border-radius: 18px; font-size: 1.25rem; }
.label { display:block; font-size:.875rem; font-weight:600; color:#334155; margin-bottom:8px; }
.helper-card,.status-chip,.status-pill,.subtle-btn,.payment-method-btn,.table-footer-btn,.module-tab,.header-icon-btn,.header-pill-btn {
  display: inline-flex; align-items:center; justify-content:center;
}
.helper-card,.status-chip {
  gap:8px; padding:10px 14px; border-radius:999px; background: rgba(255,255,255,.75);
  border:1px solid var(--border); color:#475569;
}
.status-chip.warning { background:#fff7e8; color:#9a6700; border-color:#ffe2a6; }
.gcash-input,.search-input {
  width:100%; padding:12px 16px; border:1.5px solid var(--border); border-radius:16px;
  font-size:14px; background:white; transition:.2s ease;
}
.search-input { padding-left:42px; }
.gcash-input:focus,.search-input:focus {
  outline:none; border-color:var(--brand-primary); box-shadow:0 0 0 4px rgba(0,120,255,.12);
}
.gcash-btn,.subtle-btn,.clock-btn,.table-footer-btn {
  border:none; cursor:pointer; transition:.2s ease; border-radius:18px; font-weight:700;
}
.gcash-btn {
  background:linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color:white; padding:12px 20px; box-shadow:0 14px 28px rgba(0,120,255,.22);
}
.gcash-btn.compact { padding:10px 16px; border-radius:16px; }
.gcash-btn:hover,.subtle-btn:hover,.header-icon-btn:hover,.header-pill-btn:hover,.payment-method-btn:hover,.machine-card:hover,.product-card:hover,.online-order-card:hover,.laundry-order-card:hover { transform: translateY(-1px); }
.subtle-btn { background:#f8fbff; color:#334155; border:1px solid var(--border); padding:11px 14px; }
.subtle-btn.danger { color:var(--danger); border-color:#fecaca; background:#fff8f8; }
.ghost-action { background:transparent; border:none; color:var(--muted); cursor:pointer; font-weight:600; }
.topbar { background:linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%); box-shadow:0 14px 30px rgba(0,120,255,.18); z-index:10; }
.header-icon-btn,.header-pill-btn { color:white; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.18); }
.header-icon-btn { width:42px; height:42px; border-radius:16px; }
.header-pill-btn { padding:10px 14px; border-radius:16px; font-size:.78rem; }
.status-pill {
  gap:8px; padding:9px 14px; border-radius:999px; font-size:.78rem;
  background:rgba(255,255,255,.14); color:white; border:1px solid rgba(255,255,255,.18);
}
.online-dot {
  width:8px; height:8px; border-radius:999px; background:#00d26a;
  box-shadow: 0 0 0 0 rgba(0,210,106,.4); animation: pulse-green 1.5s infinite;
}
.module-tabs { display:flex; gap:8px; padding:0 16px 12px; overflow-x:auto; }
.module-tab {
  gap:8px; white-space:nowrap; padding:11px 16px; border-radius:999px; background:transparent;
  color:rgba(255,255,255,.78); border:1px solid transparent; font-size:.88rem; font-weight:700; cursor:pointer;
}
.module-tab.active,.module-tab:hover { background:rgba(255,255,255,.16); color:white; border-color:rgba(255,255,255,.1); }
.page-toolbar,.section-header,.filter-strip { background:rgba(255,255,255,.72); backdrop-filter:blur(12px); border-bottom:1px solid var(--border); }
.page-toolbar,.section-header { padding:16px; }
.section-header { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.section-title-row { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.section-title { display:inline-flex; align-items:center; gap:10px; font-weight:800; color:var(--text); }
.search-icon { position:absolute; left:16px; top:50%; transform:translateY(-50%); color:#94a3b8; }
.secondary-icon-btn {
  min-width:48px; height:48px; border-radius:16px; border:1px solid var(--border); background:white;
  color:var(--brand-primary); cursor:pointer; box-shadow:0 8px 20px rgba(15,23,42,.04);
}
.pos-layout { display:grid; grid-template-columns:minmax(0,1fr) 390px; height:100%; }
.cart-panel { border-left:1px solid var(--border); display:flex; flex-direction:column; border-radius:0; }
.cart-header { display:flex; justify-content:space-between; align-items:center; padding:16px; border-bottom:1px solid var(--border); }
.cart-summary {
  padding:16px; border-top:1px solid var(--border);
  background: linear-gradient(180deg, rgba(248,251,255,.95) 0%, rgba(255,255,255,.95) 100%);
  display:grid; gap:12px;
}
.summary-row,.summary-total { display:flex; justify-content:space-between; }
.summary-row { color:#475569; }
.summary-total {
  padding-top:12px; border-top:1px solid var(--border); font-size:1.25rem; font-weight:800; color:var(--brand-primary);
}
.product-card,.online-order-card,.laundry-order-card,.machine-card { border-radius:18px; }
.product-card { padding:14px; cursor:pointer; }
.product-thumb {
  width:100%; height:132px; border-radius:16px; background:linear-gradient(180deg,#f4f8ff 0%,#eef4ff 100%);
  display:flex; align-items:center; justify-content:center; margin-bottom:12px; overflow:hidden;
}
.empty-state {
  display:flex; flex-direction:column; align-items:center; justify-content:center; color:#94a3b8;
  text-align:center; padding:48px 20px;
}
.empty-state.small { padding:32px 12px; }
.empty-state i { font-size:3rem; margin-bottom:12px; }
.table-card { border-radius:24px; overflow:hidden; }
.data-table { width:100%; border-collapse:collapse; }
.data-table th {
  background:#f8fbff; color:#64748b; font-size:.72rem; letter-spacing:.04em; text-transform:uppercase;
  padding:16px 20px; border-bottom:1px solid var(--border); text-align:left;
}
.data-table td { padding:16px 20px; border-bottom:1px solid #edf2f7; }
.data-table tbody tr:hover { background:#fafcff; }
.stats-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.metric-card { padding:18px; border-radius:22px; text-align:center; }
.metric-icon { width:46px; height:46px; border-radius:16px; margin:0 auto 10px; display:flex; align-items:center; justify-content:center; }
.metric-icon.blue { background:#e8f0fe; color:var(--brand-primary); }
.metric-icon.green { background:#e8fff3; color:var(--success); }
.metric-icon.amber { background:#fff7e8; color:#d97706; }
.metric-icon.violet { background:#f4f0ff; color:#7c3aed; }
.metric-value { font-size:1.7rem; font-weight:800; }
.metric-label { font-size:.82rem; color:var(--muted); }
.machine-card { padding:14px; text-align:center; cursor:pointer; border:1px solid var(--border); }
.machine-card.available { border-left:4px solid var(--success); }
.machine-card.in-use { border-left:4px solid var(--brand-primary); }
.machine-icon { font-size:2.2rem; margin-bottom:8px; }
.filter-strip { display:flex; gap:8px; overflow-x:auto; padding:12px 16px; }
.laundry-status-filter {
  padding:8px 14px; border-radius:999px; font-size:12px; cursor:pointer; background:#f3f7fb;
  color:#64748b; border:1px solid var(--border);
}
.laundry-status-filter.active { background:var(--brand-primary); color:white; border-color:transparent; }
.count-badge {
  display:inline-flex; align-items:center; justify-content:center; min-width:24px; height:24px; padding:0 8px;
  font-size:.75rem; color:white; background:var(--brand-primary); border-radius:999px;
}
.report-card { padding:20px; border-radius:22px; color:white; box-shadow:var(--shadow-md); }
.report-card.blue { background:linear-gradient(135deg,#1278ff 0%, #005ad8 100%); }
.report-card.green { background:linear-gradient(135deg,#16c784 0%, #0ea765 100%); }
.report-card.violet { background:linear-gradient(135deg,#7c3aed 0%, #6d28d9 100%); }
.report-title { font-size:.92rem; opacity:.9; }
.report-value { font-size:1.85rem; font-weight:800; margin-top:6px; }
.chart-shell { background:white; border:1px solid var(--border); border-radius:22px; padding:18px; min-height:340px; }
.clock-card {
  background:linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  border-radius:28px; padding:28px; text-align:center; color:white; box-shadow:var(--shadow-lg);
}
.clock-display {
  font-size: clamp(2rem, 6vw, 3.4rem); font-weight:800; letter-spacing:.06em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.clock-btn { margin-top:14px; background:rgba(255,255,255,.16); color:white; padding:12px 18px; }
.table-footer-btn {
  width:100%; background:#f8fbff; color:var(--brand-primary); padding:14px; border-top:1px solid var(--border);
}
.dropdown-menu {
  position:absolute; right:0; top:calc(100% + 8px); min-width:220px; background:white;
  border:1px solid var(--border); border-radius:18px; box-shadow:var(--shadow-lg); padding:10px;
}
.dropdown-menu.show { display:block !important; }
.dropdown-menu a,.dropdown-menu label {
  display:flex; align-items:center; gap:12px; padding:11px 12px; border-radius:12px; color:#334155; text-decoration:none;
}
.dropdown-menu a:hover,.dropdown-menu label:hover { background:#f8fbff; }
.dropdown-menu .danger-link { color:var(--danger); }
.modal-shell {
  position:fixed; inset:0; background:rgba(15,23,42,.42); display:flex; align-items:center; justify-content:center;
  padding:16px; z-index:70;
}
.modal-card { width:100%; background:white; border-radius:28px; padding:24px; }
.modal-title { font-size:1.35rem; font-weight:800; margin-bottom:16px; }
.modal-actions { display:flex; gap:12px; margin-top:16px; flex-wrap:wrap; }
.payment-method-btn {
  flex-direction:column; gap:8px; min-height:82px; border:2px solid var(--border);
  border-radius:18px; background:white; cursor:pointer;
}
.payment-method-btn.active { border-color:var(--brand-primary); background:var(--brand-primary-soft); color:var(--brand-primary); }
.image-preview {
  width:132px; height:132px; border-radius:24px; background:#f8fbff; border:2px dashed #cfe0ff;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.camera-btn {
  margin-top:10px; width:38px; height:38px; border:none; border-radius:999px;
  background:var(--brand-primary); color:white; cursor:pointer;
}
.thermal-paper {
  background:white; width:80mm; max-width:100%; padding:12px; font-family:"Courier New", monospace;
  font-size:11px; margin:0 auto; border-radius:12px; border:1px solid var(--border);
}
.scanner-input { position:fixed; top:-1000px; left:-1000px; }
.toast {
  display:flex; align-items:center; gap:10px; padding:12px 14px; background:rgba(15,23,42,.95); color:white;
  border-radius:16px; box-shadow:var(--shadow-lg);
}
.toast i { color:#93c5fd; }
.product-chip {
  white-space:nowrap; padding:10px 14px; background:white; border:1px solid var(--border);
  color:#334155; border-radius:999px; font-size:.85rem; cursor:pointer;
}
@keyframes pulse-green {
  0%,100% { box-shadow:0 0 0 0 rgba(0,210,106,.35); }
  50% { box-shadow:0 0 0 8px rgba(0,210,106,0); }
}
::-webkit-scrollbar { width:8px; height:8px; }
::-webkit-scrollbar-thumb { background:#cbdcf5; border-radius:999px; }
@media (max-width: 1200px) { .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 1024px) {
  .pos-layout { grid-template-columns:1fr; }
  .cart-panel {
    position:fixed; top:0; right:-100%; width:min(420px,100%); height:100%; z-index:80; transition:.25s ease;
  }
  .cart-panel.active { right:0; }
}
@media (max-width:768px) {
  .stats-grid { grid-template-columns:1fr 1fr; }
  .section-header,.page-toolbar { padding:14px; }
  .modal-card { padding:20px; border-radius:24px; }
}
@media (max-width:520px) { .stats-grid { grid-template-columns:1fr; } }
@media print {
  body * { visibility:hidden; }
  .thermal-paper,.thermal-paper * { visibility:visible; }
  .thermal-paper { position:absolute; left:0; top:0; }
}


.online-admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(380px, 1.15fr);
  gap: 1rem;
}
.online-orders-map {
  width: 100%;
  min-height: 430px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top right, rgba(0, 120, 255, 0.08), transparent 25%),
    linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
}
.map-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.875rem;
}
.customer-checkout-card {
  position: sticky;
  bottom: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 32px rgba(15, 23, 42, 0.08);
}
.customer-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.customer-location-shell {
  border: 1px dashed rgba(0, 120, 255, .35);
  background: rgba(232,240,254,.55);
  border-radius: 20px;
  padding: 14px;
}
.customer-mini-map {
  width: 100%;
  min-height: 190px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
}
.online-order-meta {
  display: grid;
  gap: 6px;
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 0.875rem;
}
.online-order-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
@media (max-width: 1024px) {
  .online-admin-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .customer-field-grid {
    grid-template-columns: 1fr;
  }
}
