@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

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

:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-light: #f5f3ff;
  --primary-border: #ddd6fe;
  --success: #059669;
  --success-light: #ecfdf5;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --warning: #d97706;
  --warning-light: #fffbeb;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --bg: #f8fafc;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
}

body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c4b5fd; border-radius: 99px; }

/* ─── LAYOUT ─── */
.layout { display: flex; height: 100vh; overflow: hidden; }

/* ─── SIDEBAR ─── */
.sidebar {
  width: 256px;
  background: var(--white);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex-shrink: 0;
  transition: width 0.2s;
}

.sidebar-logo {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 0.875rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(124,58,237,0.3);
}

.sidebar-logo-name { font-weight: 800; color: var(--text); font-size: 0.9375rem; line-height: 1.2; }
.sidebar-logo-sub { font-size: 0.7rem; color: var(--text-muted); margin-top: 1px; }

.sidebar-branch {
  padding: 0.625rem 1rem;
  background: var(--primary-light);
  border-bottom: 1px solid var(--primary-border);
  display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; color: var(--primary-dark); font-weight: 600;
}

.sidebar-nav { flex: 1; padding: 0.875rem 0.75rem; }

.nav-section {
  font-size: 0.65rem; font-weight: 700; color: var(--text-muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.875rem 0.5rem 0.375rem;
}

.sidebar-link {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s;
  margin-bottom: 2px;
}
.sidebar-link:hover { background: var(--primary-light); color: var(--primary); }
.sidebar-link.active { background: var(--primary); color: white; box-shadow: 0 2px 8px rgba(124,58,237,0.35); }
.sidebar-link .icon { width: 20px; text-align: center; font-size: 1rem; flex-shrink: 0; }

.sidebar-user {
  padding: 0.875rem 1rem;
  border-top: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 0.625rem;
}

.avatar {
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
}
.avatar-sm { width: 30px; height: 30px; font-size: 0.7rem; }
.avatar-md { width: 38px; height: 38px; font-size: 0.875rem; }
.avatar-lg { width: 48px; height: 48px; font-size: 1rem; }
.avatar-purple { background: #ede9fe; color: #6d28d9; }
.avatar-amber { background: #fef3c7; color: #b45309; }
.avatar-green { background: #d1fae5; color: #065f46; }
.avatar-blue { background: #dbeafe; color: #1d4ed8; }

.user-name { font-size: 0.875rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 0.7rem; color: var(--text-muted); }
.logout-btn { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 1.1rem; margin-right: auto; padding: 4px; border-radius: 6px; transition: all 0.15s; }
.logout-btn:hover { background: var(--danger-light); color: var(--danger); }

/* ─── MAIN ─── */
.main { flex: 1; overflow-y: auto; display: flex; flex-direction: column; min-width: 0; }

.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
  box-shadow: 0 1px 0 var(--border-light);
}

.page-title { font-size: 1.0625rem; font-weight: 700; color: var(--text); }
.page-subtitle { font-size: 0.75rem; color: var(--text-muted); margin-top: 1px; }
.topbar-right { display: flex; align-items: center; gap: 0.75rem; }
.topbar-date { font-size: 0.8rem; color: var(--text-muted); background: var(--bg); padding: 4px 12px; border-radius: var(--radius-full); border: 1px solid var(--border); }

.content { padding: 1.5rem; flex: 1; }

/* ─── CARDS ─── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.card-p0 {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* KPI Cards */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.kpi-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 4px; height: 100%;
  background: var(--border);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.kpi-card.purple::before { background: var(--primary); }
.kpi-card.green::before { background: var(--success); }
.kpi-card.amber::before { background: var(--warning); }
.kpi-card.blue::before { background: #3b82f6; }
.kpi-card.purple { background: linear-gradient(135deg, #faf5ff, var(--white)); border-color: var(--primary-border); }
.kpi-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 0.875rem; }
.kpi-icon.purple { background: #ede9fe; }
.kpi-icon.green { background: #d1fae5; }
.kpi-icon.amber { background: #fef3c7; }
.kpi-icon.blue { background: #dbeafe; }
.kpi-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; margin-bottom: 4px; }
.kpi-value { font-size: 1.75rem; font-weight: 800; color: var(--text); line-height: 1; }
.kpi-value .unit { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); margin-right: 2px; }
.kpi-value.purple { color: var(--primary); }
.kpi-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.kpi-sub .up { color: var(--success); }
.kpi-sub .down { color: var(--danger); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 600;
  font-family: 'Cairo', sans-serif;
  cursor: pointer; border: none;
  transition: all 0.15s;
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 2px 6px rgba(124,58,237,0.3); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(124,58,237,0.4); }
.btn-secondary { background: var(--white); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg); border-color: #cbd5e1; }
.btn-success { background: var(--success); color: white; box-shadow: 0 2px 6px rgba(5,150,105,0.3); }
.btn-success:hover { background: #047857; }
.btn-danger { background: var(--white); color: var(--danger); border: 1px solid #fecaca; }
.btn-danger:hover { background: var(--danger-light); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg); }
.btn-sm { padding: 0.35rem 0.875rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-icon { padding: 0.5rem; border-radius: var(--radius-sm); width: 36px; height: 36px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

/* ─── FORMS ─── */
.form-group { margin-bottom: 1rem; }
.form-label { font-size: 0.8125rem; color: var(--text-secondary); display: block; margin-bottom: 5px; font-weight: 600; }
.form-label .req { color: var(--danger); margin-right: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5625rem 0.875rem;
  font-size: 0.875rem;
  outline: none;
  font-family: 'Cairo', sans-serif;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: #cbd5e1; }
.form-select { cursor: pointer; }
.form-textarea { resize: none; line-height: 1.6; }
.form-hint { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.875rem; }

/* Range Slider */
.range-wrap { display: flex; align-items: center; gap: 0.75rem; }
input[type="range"] { flex: 1; -webkit-appearance: none; height: 5px; border-radius: 99px; background: var(--border); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); cursor: pointer; box-shadow: 0 2px 6px rgba(124,58,237,0.4); }
.range-val { font-weight: 700; color: var(--primary); min-width: 48px; text-align: center; font-size: 1rem; }

/* ─── TABLES ─── */
.table { width: 100%; font-size: 0.875rem; border-collapse: collapse; }
.table th {
  text-align: right; padding: 0.75rem 1.125rem;
  font-size: 0.75rem; color: var(--text-muted);
  font-weight: 600; background: #fafafa;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background 0.1s; }
.table tbody tr:hover td { background: #fdfbff; }
.table-footer { padding: 0.75rem 1.125rem; border-top: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }

/* ─── BADGES ─── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600;
  white-space: nowrap;
}
.badge-green { background: #d1fae5; color: #065f46; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-gray { background: #f1f5f9; color: #475569; }

/* ─── ALERTS ─── */
.alert {
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 8px;
  font-weight: 500;
}
.alert-success { background: var(--success-light); border: 1px solid #a7f3d0; color: #065f46; }
.alert-error { background: var(--danger-light); border: 1px solid #fecaca; color: #991b1b; }
.alert-warning { background: var(--warning-light); border: 1px solid #fde68a; color: #92400e; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* ─── MODALS ─── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(15,23,42,0.5);
  align-items: center; justify-content: center;
  z-index: 100; padding: 1rem;
  backdrop-filter: blur(2px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: 16px;
  width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-md);
  animation: modalIn 0.2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(-12px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal-sm { max-width: 420px; }
.modal-md { max-width: 540px; }
.modal-lg { max-width: 720px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-light); }
.modal-title { font-weight: 700; color: var(--text); font-size: 1rem; }
.modal-close { background: var(--bg); border: none; color: var(--text-muted); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: all 0.15s; }
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-body { padding: 1.5rem; }
.modal-footer { display: flex; gap: 0.75rem; padding: 1rem 1.5rem; border-top: 1px solid var(--border-light); }

/* ─── BRANCHES ─── */
.branches-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.branch-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.375rem;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.branch-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #a855f7);
  transform: scaleX(0);
  transition: transform 0.2s;
  transform-origin: right;
}
.branch-card:hover { border-color: var(--primary-border); box-shadow: 0 6px 20px rgba(124,58,237,0.1); transform: translateY(-2px); }
.branch-card:hover::after { transform: scaleX(1); }
.branch-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.875rem; }
.branch-name { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.branch-address { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }
.branch-meta { display: flex; gap: 1rem; margin: 0.875rem 0; padding: 0.75rem; background: var(--bg); border-radius: var(--radius-sm); }
.branch-meta-item { display: flex; align-items: center; gap: 5px; font-size: 0.8125rem; color: var(--text-secondary); }
.branch-actions { display: flex; gap: 0.5rem; padding-top: 0.875rem; border-top: 1px solid var(--border-light); }

/* ─── POS ─── */
.pos-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; align-items: start; }
.service-section-title {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px; border-radius: var(--radius-full);
  font-size: 0.8125rem; font-weight: 700;
  margin-bottom: 1rem;
}
.service-section-title.purple { background: #ede9fe; color: #6d28d9; }
.service-section-title.green { background: #d1fae5; color: #065f46; }
.service-section-title.amber { background: #fef3c7; color: #92400e; }

.service-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.875rem;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--white);
}
.service-card:hover { border-color: #c4b5fd; background: #faf5ff; transform: translateY(-1px); }
.service-card.selected { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }

.car-type-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.125rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--white);
}
.car-type-card:hover { border-color: #c4b5fd; }
.car-type-card.selected { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 4px rgba(124,58,237,0.1); }

.cart-panel { position: sticky; top: 76px; }

/* ─── GPS / CHECKIN ─── */
.geo-ok { background: var(--success-light); border: 1px solid #a7f3d0; color: #065f46; border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.8125rem; font-weight: 500; }
.geo-fail { background: var(--danger-light); border: 1px solid #fecaca; color: #991b1b; border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.8125rem; font-weight: 500; }

.checkin-card { max-width: 420px; margin: 0 auto; }
.checkin-status-card { text-align: center; padding: 2rem 1.5rem; }
.checkin-emoji { font-size: 3.5rem; margin-bottom: 0.75rem; display: block; }
.checkin-times { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1.125rem; }
.checkin-time-box { padding: 0.875rem; border-radius: 10px; }
.checkin-time-box.in { background: var(--success-light); }
.checkin-time-box.out { background: var(--bg); }
.checkin-time-label { font-size: 0.7rem; font-weight: 600; margin-bottom: 3px; }
.checkin-time-val { font-weight: 800; font-size: 1.0625rem; }
.checkin-time-box.in .checkin-time-label { color: var(--success); }
.checkin-time-box.in .checkin-time-val { color: #047857; }
.checkin-time-box.out .checkin-time-label { color: var(--text-muted); }
.checkin-time-box.out .checkin-time-val { color: var(--text); }

.loc-card { display: flex; flex-direction: column; gap: 6px; }
.loc-header { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-green { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
.dot-red { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.2); }
.dot-gray { background: var(--text-muted); }
.dot-pulse { animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ─── LOGIN ─── */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #ddd6fe 100%); padding: 1rem; }
.login-box { width: 100%; max-width: 400px; }
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo-icon { width: 72px; height: 72px; background: linear-gradient(135deg, var(--primary), #a855f7); border-radius: 20px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 1.375rem; margin: 0 auto 1rem; box-shadow: 0 8px 24px rgba(124,58,237,0.35); }
.login-logo-name { font-size: 1.25rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.login-logo-sub { font-size: 0.875rem; color: var(--text-muted); }
.login-card { background: var(--white); border-radius: 20px; border: 1px solid var(--border); padding: 2rem; box-shadow: 0 8px 32px rgba(0,0,0,0.08); }

/* ─── SECTION HEADER ─── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.125rem; }
.section-title { font-size: 0.9375rem; font-weight: 700; color: var(--text); }
.section-link { font-size: 0.8rem; color: var(--primary); text-decoration: none; font-weight: 500; }
.section-link:hover { text-decoration: underline; }

/* ─── PROGRESS ─── */
.progress-bar { width: 100%; background: var(--border-light); border-radius: 99px; height: 6px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #a855f7); border-radius: 99px; transition: width 0.4s ease; }

/* ─── UTILITY ─── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.p-0 { padding: 0; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.0625rem; }
.text-xl { font-size: 1.25rem; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.divider { border: none; border-top: 1px solid var(--border-light); margin: 1rem 0; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); font-size: 0.875rem; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .pos-layout { grid-template-columns: 1fr; }
  .cart-panel { position: static; }
}
@media (max-width: 768px) {
  .sidebar { display: none; }
  .branches-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .content { padding: 1rem; }
}
