/* Groomish Hair Studio — POS Stylesheet */
:root {
  --primary:        #9B6B1F;
  --primary-dark:   #7A5118;
  --primary-light:  #F5ECD9;
  --sidebar-bg:     #0D0805;
  --sidebar-text:   #E8D5B0;
  --sidebar-active: #C49A3C;
  --bg:             #FFFFFF;
  --bg-soft:        #FAF7F2;
  --border:         #EDE0C8;
  --border-strong:  #D4C09A;
  --text-dark:      #1A1208;
  --text-muted:     #8C7450;
  --success:        #2D9960;
  --danger:         #C0392B;
  --warning:        #D4850A;
  --info:           #2472A4;
  --sidebar-w:      240px;
  --topbar-h:       60px;
  --radius:         10px;
  --shadow:         0 2px 16px rgba(80,50,10,.10);
  --shadow-lg:      0 8px 40px rgba(80,50,10,.18);
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { font-size:15px; scroll-behavior:smooth; }
body { font-family:'DM Sans',system-ui,sans-serif; background:var(--bg-soft); color:var(--text-dark); min-height:100vh; display:flex; }

::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:3px; }

/* SIDEBAR */
.sidebar { width:var(--sidebar-w); min-height:100vh; background:var(--sidebar-bg); display:flex; flex-direction:column; position:fixed; top:0; left:0; bottom:0; z-index:100; transition:transform .3s ease; }
.sidebar-brand { display:flex; align-items:center; justify-content:center; padding:20px 16px; border-bottom:1px solid rgba(255,255,255,.06); min-height:80px; }
.sidebar-brand img { max-width:190px; max-height:70px; width:100%; object-fit:contain; }
.sidebar-nav { flex:1; padding:12px 0; overflow-y:auto; }
.nav-section { padding:2px 0; }
.nav-label { font-size:.63rem; text-transform:uppercase; letter-spacing:.1em; color:rgba(255,255,255,.25); padding:12px 20px 4px; }
.nav-item { display:flex; align-items:center; gap:10px; padding:10px 20px; color:var(--sidebar-text); text-decoration:none; font-size:.87rem; transition:all .18s; border-left:3px solid transparent; }
.nav-item:hover { background:rgba(255,255,255,.07); color:#fff; border-left-color:rgba(255,255,255,.2); }
.nav-item.active { background:rgba(155,107,31,.2); color:var(--sidebar-active); border-left-color:var(--primary); font-weight:600; }
.nav-icon { font-size:.95rem; width:20px; text-align:center; flex-shrink:0; }
.sidebar-footer { padding:16px 20px; border-top:1px solid rgba(255,255,255,.06); display:flex; align-items:center; gap:10px; }
.user-info { display:flex; align-items:center; gap:10px; flex:1; min-width:0; }
.user-avatar { width:34px; height:34px; background:linear-gradient(135deg,var(--primary),var(--primary-dark)); border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:.85rem; flex-shrink:0; }
.user-details { min-width:0; }
.user-name { font-size:.82rem; font-weight:600; color:#fff; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.user-role { font-size:.7rem; color:rgba(255,255,255,.4); display:block; text-transform:capitalize; }
.logout-btn { color:rgba(255,255,255,.4); text-decoration:none; font-size:1.1rem; padding:6px; border-radius:6px; transition:all .18s; flex-shrink:0; }
.logout-btn:hover { color:var(--danger); background:rgba(192,57,43,.12); }

/* LAYOUT */
.main-wrapper { margin-left:var(--sidebar-w); flex:1; display:flex; flex-direction:column; min-height:100vh; }
.topbar { height:var(--topbar-h); background:#fff; border-bottom:1px solid var(--border); display:flex; align-items:center; padding:0 24px; gap:16px; position:sticky; top:0; z-index:50; box-shadow:0 1px 6px rgba(0,0,0,.05); }
.menu-toggle { display:none; background:none; border:none; font-size:1.3rem; cursor:pointer; color:var(--text-dark); padding:6px; border-radius:6px; }
.menu-toggle:hover { background:var(--bg-soft); }
.topbar-title { font-family:'Cormorant Garamond',serif; font-size:1.15rem; font-weight:600; color:var(--text-dark); flex:1; }
.topbar-right { display:flex; align-items:center; gap:16px; }
.topbar-date { font-size:.8rem; color:var(--text-muted); }
.topbar-alert { font-size:.78rem; background:#fff8e6; color:var(--warning); border:1px solid #ffe0a0; padding:4px 10px; border-radius:20px; text-decoration:none; }
.content { flex:1; padding:24px; }

/* CARDS */
.card { background:#fff; border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); margin-bottom:20px; }
.card-header { padding:16px 20px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; }
.card-header h2,.card-header h3 { font-family:'Cormorant Garamond',serif; font-size:1.12rem; font-weight:600; }
.card-body { padding:20px; }

/* STATS */
.stats-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:16px; margin-bottom:24px; }
.stat-card { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow); display:flex; align-items:center; gap:16px; }
.stat-icon { width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:1.3rem; flex-shrink:0; }
.stat-icon.gold   { background:linear-gradient(135deg,#9B6B1F,#7A5118); color:#fff; }
.stat-icon.copper { background:linear-gradient(135deg,#C49A3C,#9B7820); color:#fff; }
.stat-icon.green  { background:linear-gradient(135deg,#27ae60,#219653); color:#fff; }
.stat-icon.blue   { background:linear-gradient(135deg,#2980b9,#2472a4); color:#fff; }
.stat-icon.rose   { background:linear-gradient(135deg,#C49A3C,#9B6B1F); color:#fff; }
.stat-icon.dark   { background:linear-gradient(135deg,#3d2b1f,#1a0f08); color:#C49A3C; }
.stat-label { font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; color:var(--text-muted); font-weight:600; }
.stat-value { font-family:'Cormorant Garamond',serif; font-size:1.5rem; font-weight:700; color:var(--text-dark); line-height:1.2; }
.stat-sub { font-size:.74rem; color:var(--text-muted); margin-top:2px; }

/* TABLES */
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:.88rem; }
thead th { background:var(--bg-soft); font-size:.7rem; text-transform:uppercase; letter-spacing:.06em; color:var(--text-muted); font-weight:600; padding:10px 14px; border-bottom:2px solid var(--border); text-align:left; white-space:nowrap; }
tbody td { padding:12px 14px; border-bottom:1px solid var(--border); vertical-align:middle; }
tbody tr:last-child td { border-bottom:none; }
tbody tr:hover { background:var(--bg-soft); }

/* BUTTONS */
.btn { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border-radius:8px; border:1.5px solid var(--border); background:#fff; color:var(--text-dark); font-family:inherit; font-size:.85rem; font-weight:500; cursor:pointer; text-decoration:none; transition:all .18s; white-space:nowrap; }
.btn:hover { border-color:var(--primary); color:var(--primary); }
.btn-primary { background:linear-gradient(135deg,var(--primary),var(--primary-dark)); border-color:transparent; color:#fff; }
.btn-primary:hover { opacity:.9; color:#fff; }
.btn-danger  { background:var(--danger);  border-color:transparent; color:#fff; }
.btn-danger:hover  { opacity:.88; color:#fff; }
.btn-success { background:var(--success); border-color:transparent; color:#fff; }
.btn-success:hover { opacity:.88; color:#fff; }
.btn-sm { padding:5px 12px; font-size:.78rem; }
.btn-lg { padding:12px 28px; font-size:.98rem; }

/* FORMS */
.form-group { margin-bottom:16px; }
.form-group label { display:block; font-size:.74rem; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:.05em; margin-bottom:6px; }
.form-control { width:100%; padding:9px 14px; border:1.5px solid var(--border); border-radius:8px; font-family:inherit; font-size:.9rem; color:var(--text-dark); background:#fff; transition:border-color .2s; outline:none; }
.form-control:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(155,107,31,.1); }
select.form-control { cursor:pointer; }
textarea.form-control { resize:vertical; min-height:80px; }

/* BADGES */
.badge { display:inline-block; padding:3px 10px; border-radius:20px; font-size:.7rem; font-weight:600; }
.badge-success { background:#d4edda; color:#155724; }
.badge-danger  { background:#f8d7da; color:#721c24; }
.badge-warning { background:#fff3cd; color:#856404; }
.badge-info    { background:#d1ecf1; color:#0c5460; }
.badge-primary { background:var(--primary-light); color:var(--primary-dark); }

/* ALERTS */
.alert { padding:12px 18px; border-radius:8px; margin-bottom:16px; font-size:.88rem; border:1px solid transparent; }
.alert-success { background:#d4edda; border-color:#c3e6cb; color:#155724; }
.alert-danger  { background:#f8d7da; border-color:#f5c6cb; color:#721c24; }
.alert-warning { background:#fff3cd; border-color:#ffeeba; color:#856404; }
.alert-info    { background:#d1ecf1; border-color:#bee5eb; color:#0c5460; }

/* MODALS */
.modal { display:none; position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:1000; align-items:center; justify-content:center; padding:20px; }
.modal.show { display:flex; }
.modal-content { background:#fff; border-radius:14px; box-shadow:var(--shadow-lg); width:100%; max-height:90vh; overflow-y:auto; animation:mIn .2s ease; }
@keyframes mIn { from{opacity:0;transform:scale(.96) translateY(8px);} to{opacity:1;transform:scale(1) translateY(0);} }
.modal-header { display:flex; align-items:center; justify-content:space-between; padding:18px 22px; border-bottom:1px solid var(--border); }
.modal-header h3 { font-family:'Cormorant Garamond',serif; font-size:1.1rem; font-weight:600; }
.modal-close { background:none; border:none; font-size:1.1rem; cursor:pointer; color:var(--text-muted); padding:4px 8px; border-radius:6px; }
.modal-close:hover { background:var(--bg-soft); color:var(--danger); }
.modal-body { padding:20px 22px; }
.modal-footer { display:flex; gap:10px; justify-content:flex-end; padding:16px 22px; border-top:1px solid var(--border); }

/* LAYOUT HELPERS */
.dash-grid   { display:grid; grid-template-columns:1fr 360px; gap:20px; }
.dash-grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.grid-2      { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.grid-3      { display:grid; grid-template-columns:1fr 1fr 1fr; gap:16px; }
.chart-wrap  { position:relative; height:240px; }

/* RESPONSIVE */
@media(max-width:900px) {
  .sidebar { transform:translateX(-100%); }
  .sidebar.open { transform:translateX(0); }
  .main-wrapper { margin-left:0; }
  .menu-toggle { display:flex; }
  .dash-grid,.dash-grid-3,.grid-2,.grid-3 { grid-template-columns:1fr; }
}
@media(max-width:600px) {
  .content { padding:14px; }
  .stats-grid { grid-template-columns:1fr 1fr; }
}
.staff-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
gap:18px;
margin-top:10px;
}

.staff-card{
background:#fff;
border:1px solid var(--border);
border-radius:12px;
padding:16px;
display:flex;
align-items:center;
gap:12px;
box-shadow:0 2px 10px rgba(0,0,0,.05);
}

.staff-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
gap:18px;
margin-top:10px;
}

.staff-card{
background:#fff;
border:1px solid var(--border);
border-radius:12px;
padding:16px;
display:flex;
align-items:center;
gap:12px;
box-shadow:0 2px 10px rgba(0,0,0,.05);
}

.staff-avatar{
width:42px;
height:42px;
border-radius:50%;
background:var(--primary);
color:#fff;
display:flex;
align-items:center;
justify-content:center;
font-weight:700;
font-size:1.1rem;
}

.staff-info{
flex:1;
}

.staff-name{
font-weight:600;
font-size:.95rem;
}

.staff-role{
font-size:.8rem;
color:#777;
}

.staff-meta{
font-size:.8rem;
color:#999;
}

.staff-actions{
text-align:right;
}
/* ---------- Form Layout Fix ---------- */

.form-row{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:16px;
margin-bottom:12px;
}

.form-group{
display:flex;
flex-direction:column;
gap:8px;
padding:3px;
}

.form-group label{
font-size:.72rem;
text-transform:uppercase;
letter-spacing:.05em;
color:var(--text-muted);
font-weight:600;
}

.form-control{
width:100%;
padding:10px 14px;
border:1.5px solid var(--border);
border-radius:8px;
font-family:inherit;
font-size:.9rem;
background:#fff;
transition:all .2s;
}

.form-control:focus{
outline:none;
border-color:var(--primary);
box-shadow:0 0 0 2px var(--primary-light);
}

/* Modal improvements */

.modal-content{
background:#fff;
border-radius:14px;
box-shadow:0 20px 60px rgba(0,0,0,.25);
overflow:hidden;
padding: 10px;
width: 1000px;
}

.modal-header{
display:flex;
align-items:center;
justify-content:space-between;
padding:18px 22px;
border-bottom:1px solid var(--border);
}

.modal-footer{
display:flex;
justify-content:flex-end;
gap:10px;
padding:16px 20px;
border-top:1px solid var(--border);
}

.modal-body{
padding:20px;
}
/* ============================================================
   GROOMISH HAIR STUDIO — Main Stylesheet
   Aesthetic: Luxury Refined / Rose & Gold
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */

:root {
  --primary:        #C4956A;   /* warm gold */
  --primary-dark:   #A07548;
  --primary-light:  #F0DDD0;
  --rose:           #D4A5A5;
  --rose-light:     #F8EDEE;
  --sidebar-bg:     #1C1410;
  --sidebar-text:   #E8D8CC;
  --sidebar-active: #C4956A;
  --bg:             #FFFFFF;
  --bg-soft:        #FBF7F5;
  --border:         #EDE3DC;
  --border-strong:  #D4C4BB;
  --text-dark:      #1A1210;
  --text-muted:     #8C7468;
  --success:        #2D9960;
  --danger:         #C0392B;
  --warning:        #D4850A;
  --info:           #2472A4;
  --sidebar-w:      240px;
  --topbar-h:       60px;
  --radius:         10px;
  --shadow:         0 2px 16px rgba(100,60,40,0.10);
  --shadow-lg:      0 8px 40px rgba(100,60,40,0.18);
}

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

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg-soft);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
}

/* ── SCROLLBARS ─────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

/* ── SIDEBAR ────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand-icon {
  font-size: 1.4rem;
  color: var(--primary);
  flex-shrink: 0;
}
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: white;
  display: block;
  line-height: 1.2;
}
.brand-tagline {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sidebar-nav { flex: 1; padding: 16px 0; overflow-y: auto; }

.nav-section { padding: 4px 0; }

.nav-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
  padding: 12px 20px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.nav-item:hover { color: white; background: rgba(255,255,255,0.05); }
.nav-item.active {
  color: var(--primary);
  background: rgba(196,149,106,0.12);
  border-left-color: var(--primary);
  font-weight: 500;
}
.nav-icon { font-size: 0.9rem; opacity: 0.8; width: 16px; text-align: center; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-avatar {
  width: 34px; height: 34px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: white; flex-shrink: 0;
}
.user-details { flex: 1; min-width: 0; }
.user-name { font-size: 0.85rem; color: white; display: block; font-weight: 500; }
.user-role { font-size: 0.72rem; color: rgba(255,255,255,0.4); display: block; }
.logout-btn {
  color: rgba(255,255,255,0.3); font-size: 1.1rem; text-decoration: none;
  transition: color 0.2s;
}
.logout-btn:hover { color: var(--danger); }

/* ── MAIN WRAPPER ───────────────────── */
.main-wrapper {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: var(--topbar-h);
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  position: sticky;
  top: 0; z-index: 50;
}
.menu-toggle {
  background: none; border: none; cursor: pointer;
  font-size: 1.2rem; color: var(--text-muted); display: none;
}
.topbar-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 600; color: var(--text-dark); flex: 1;
}
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-date { font-size: 0.82rem; color: var(--text-muted); }
.topbar-alert {
  font-size: 0.8rem; color: var(--warning); text-decoration: none;
  padding: 4px 10px; background: rgba(212,133,10,0.08); border-radius: 20px;
}

.content { flex: 1; padding: 28px; max-width: 1600px; }

/* ── ALERTS ─────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: var(--radius);
  margin-bottom: 20px; font-size: 0.88rem; font-weight: 500;
}
.alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.alert-error   { background: #fff5f5; border: 1px solid #fca5a5; color: #dc2626; }
.alert-warning { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }
.alert-info    { background: #eff6ff; border: 1px solid #93c5fd; color: #1e40af; }

/* ── CARDS ──────────────────────────── */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; font-weight: 600; color: var(--text-dark);
}
.card-body { padding: 20px; }
.card-body.p0 { padding: 0; }

/* ── METRIC CARDS ───────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.metric-card {
  border-radius: var(--radius);
  padding: 20px;
  position: relative; overflow: hidden;
}
.metric-card::before {
  content: ''; position: absolute; top: -20px; right: -20px;
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.metric-icon { font-size: 1.3rem; margin-bottom: 10px; opacity: 0.7; }
.metric-value { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.metric-label { font-size: 0.8rem; opacity: 0.75; }
.metric-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; }
.metric-rose    { background: linear-gradient(135deg, #D4A5A5, #B88080); color: white; }
.metric-gold    { background: linear-gradient(135deg, #E8C16A, #C4956A); color: white; }
.metric-soft    { background: var(--primary-light); color: var(--text-dark); }
.metric-success { background: linear-gradient(135deg, #27AE60, #1E8449); color: white; }
.metric-danger  { background: linear-gradient(135deg, #E74C3C, #C0392B); color: white; }
.metric-warning { background: linear-gradient(135deg, #F39C12, #D68910); color: white; }

/* ── DASHBOARD ROW ──────────────────── */
.dashboard-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.dashboard-chart-card { overflow: visible; }

.top-service-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.top-service-item:last-child { border-bottom: none; }
.top-service-rank {
  width: 28px; height: 28px; background: var(--primary-light);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: var(--primary); flex-shrink: 0;
}
.top-service-info { flex: 1; }
.top-service-name { font-weight: 500; font-size: 0.9rem; }
.top-service-count { display: block; font-size: 0.78rem; color: var(--text-muted); }
.top-service-revenue { font-weight: 600; color: var(--primary); font-size: 0.9rem; }

.low-stock-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; font-size: 0.85rem;
}
.section-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 8px; }

/* ── TABLES ─────────────────────────── */
.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
  vertical-align: middle;
}
.table tbody tr:hover { background: var(--bg-soft); }
.table tbody tr:last-child td { border-bottom: none; }
.table .actions { white-space: nowrap; }
.row-warning td { background: rgba(212,133,10,0.04); }
.row-danger  td { background: rgba(192,57,43,0.04); }
.row-success td { background: rgba(45,153,96,0.04); }
.table-footer-row td { background: var(--bg-soft); font-weight: 600; }
.empty-state {
  text-align: center; padding: 40px; color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}

/* ── BUTTONS ────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  background: white; border: 1.5px solid var(--border-strong);
  border-radius: 8px; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 500;
  color: var(--text-dark); text-decoration: none;
  transition: all 0.18s; white-space: nowrap;
}
.btn:hover { background: var(--bg-soft); border-color: var(--primary); }
.btn-sm { padding: 6px 12px; font-size: 0.82rem; border-radius: 6px; }
.btn-primary {
  background: var(--primary); border-color: var(--primary); color: white;
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-success {
  background: var(--success); border-color: var(--success); color: white;
}
.btn-danger  {
  background: var(--danger); border-color: var(--danger); color: white;
}
.btn-link {
  background: none; border: none; cursor: pointer; color: var(--primary);
  font-size: 0.82rem; padding: 0; font-family: inherit; text-decoration: underline;
}

/* ── FORMS ──────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--text-dark); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.form-control {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
  color: var(--text-dark); background: white;
  transition: border-color 0.2s;
}
.form-control:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196,149,106,0.12);
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; cursor: pointer; }
.checkbox-label input { width: auto; }

/* ── BADGES ─────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 600; text-transform: capitalize; white-space: nowrap;
}
.badge-success    { background: #d1fae5; color: #065f46; }
.badge-danger     { background: #fee2e2; color: #991b1b; }
.badge-warning    { background: #fef3c7; color: #92400e; }
.badge-info       { background: #dbeafe; color: #1e40af; }
.badge-secondary  { background: #f3f4f6; color: #6b7280; }
.badge-soft       { background: var(--primary-light); color: var(--primary-dark); }
.badge-admin      { background: #ede9fe; color: #5b21b6; }
.badge-receptionist { background: #dbeafe; color: #1e40af; }
.badge-beautician { background: var(--rose-light); color: #9b3a3a; }

/* ── MODALS ─────────────────────────── */
.modal {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  justify-content: center; align-items: center; padding: 20px;
}
.modal.show { display: flex; animation: fadeIn 0.2s ease; }
.modal-content {
  background: white; border-radius: 14px;
  width: 100%; max-width: 600px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.25s ease;
}
.modal-lg { max-width: 800px; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.modal-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 600; color: var(--text-dark);
}
.modal-close {
  background: none; border: none; cursor: pointer;
  font-size: 1rem; color: var(--text-muted); padding: 4px 8px;
  border-radius: 6px; transition: background 0.15s;
}
.modal-close:hover { background: var(--bg-soft); }
.modal-content form { padding: 24px; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding-top: 20px; margin-top: 8px;
  border-top: 1px solid var(--border);
}

@keyframes fadeIn  { from { opacity:0 } to { opacity:1 } }
@keyframes slideUp { from { transform:translateY(20px); opacity:0 } to { transform:translateY(0); opacity:1 } }

/* ── PAGE ACTIONS ───────────────────── */
.page-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.search-wrap { display: flex; align-items: center; gap: 10px; flex: 1; }
.search-input {
  padding: 9px 16px; border: 1.5px solid var(--border);
  border-radius: 8px; font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; min-width: 240px;
}
.search-input:focus { outline: none; border-color: var(--primary); }

/* ── FILTER PILLS ───────────────────── */
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  padding: 5px 14px; border: 1.5px solid var(--border);
  border-radius: 20px; background: white; cursor: pointer;
  font-size: 0.82rem; color: var(--text-muted); transition: all 0.15s;
}
.pill:hover { border-color: var(--primary); color: var(--primary); }
.pill.active { background: var(--primary); border-color: var(--primary); color: white; }

/* ── POS LAYOUT ─────────────────────── */
.pos-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  height: calc(100vh - var(--topbar-h) - 56px);
}
.pos-left { display: flex; flex-direction: column; overflow: hidden; }
.pos-right {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); display: flex;
  flex-direction: column; overflow-y: auto; box-shadow: var(--shadow);
}

.pos-search-bar { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 12px; }
.pos-search-bar input {
  width: 100%; border: none; outline: none;
  font-size: 0.95rem; font-family: 'DM Sans',sans-serif;
  background: var(--bg-soft); padding: 8px 12px; border-radius: 6px;
  color: var(--text-dark); margin-bottom: 10px;
}
.pos-tabs { display: flex; gap: 6px; }
.pos-tab {
  padding: 5px 14px; border: 1.5px solid var(--border);
  border-radius: 6px; background: white; cursor: pointer;
  font-size: 0.82rem; transition: all 0.15s;
}
.pos-tab.active { background: var(--primary); border-color: var(--primary); color: white; }

.pos-items-grid {
  flex: 1; overflow-y: auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px; align-content: start;
}
.pos-item {
  background: white; border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 14px; cursor: pointer;
  transition: all 0.18s; position: relative; overflow: hidden;
}
.pos-item:hover { border-color: var(--primary); box-shadow: 0 2px 12px rgba(196,149,106,0.2); transform: translateY(-2px); }
.pos-item-category { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 4px; }
.pos-item-name { font-weight: 600; font-size: 0.88rem; line-height: 1.3; margin-bottom: 6px; }
.pos-item-price { font-size: 0.9rem; color: var(--primary); font-weight: 600; }
.pos-item-badge {
  position: absolute; top: 8px; right: 8px;
  font-size: 0.65rem; padding: 2px 7px; border-radius: 20px; font-weight: 600;
}
.service-badge { background: var(--rose-light); color: #9b3a3a; }
.product-badge { background: #e0f2fe; color: #0369a1; }

.pos-cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.pos-cart-header h2 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.1rem;
}
.pos-section { padding: 12px 20px; border-bottom: 1px solid var(--border); }
.pos-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; display: block; }
.pos-select, .pos-input {
  width: 100%; padding: 9px 12px; border: 1.5px solid var(--border);
  border-radius: 8px; font-family: 'DM Sans',sans-serif; font-size: 0.88rem;
}
.pos-input-sm { width: 80px; padding: 6px 10px; border: 1.5px solid var(--border); border-radius: 6px; font-family: inherit; }
.pos-customer-row { display: flex; gap: 8px; }
.pos-customer-row select { flex: 1; }

.pos-cart { flex: 1; overflow-y: auto; min-height: 120px; }
.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; color: var(--text-muted); font-size: 0.85rem; height: 100%; min-height: 120px; }
.cart-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-bottom: 1px solid var(--border);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 500; font-size: 0.88rem; }
.cart-item-meta { font-size: 0.78rem; color: var(--text-muted); }
.cart-item-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.qty-btn {
  width: 26px; height: 26px; border: 1.5px solid var(--border);
  border-radius: 6px; cursor: pointer; background: white;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  font-weight: 600; transition: all 0.15s;
}
.qty-btn:hover { background: var(--primary); border-color: var(--primary); color: white; }
.qty-val { font-weight: 600; font-size: 0.88rem; min-width: 22px; text-align: center; }
.cart-item-total { font-weight: 600; font-size: 0.88rem; color: var(--primary); min-width: 70px; text-align: right; }
.btn-remove { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 0.85rem; padding: 2px 6px; border-radius: 4px; transition: color 0.15s; }
.btn-remove:hover { color: var(--danger); }

.pos-calc-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.88rem; padding: 4px 0; }
.subtotal-row { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; }
.grand-row { border-top: 1.5px solid var(--border-strong); margin-top: 4px; padding-top: 8px; font-size: 1rem; }

.payment-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.pay-tab {
  flex: 1; padding: 8px; border: 1.5px solid var(--border);
  border-radius: 8px; background: white; cursor: pointer;
  font-size: 0.82rem; text-align: center; transition: all 0.15s;
}
.pay-tab.active { background: var(--primary); border-color: var(--primary); color: white; }
.payment-section { padding-top: 4px; }

.pos-checkout-btn {
  margin: 16px; padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; border: none; border-radius: 10px; cursor: pointer;
  font-family: 'DM Sans',sans-serif; font-size: 1rem; font-weight: 600;
  width: calc(100% - 32px); transition: opacity 0.18s;
}
.pos-checkout-btn:hover { opacity: 0.9; }

.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger) !important; }
.fw-bold      { font-weight: 700; }

/* ── RECEIPT ────────────────────────── */
.receipt { padding: 24px; font-family: 'Courier New', monospace; font-size: 0.85rem; }
.receipt-body { max-width: 340px; margin: 0 auto; }
.receipt-salon { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; text-align: center; margin-bottom: 4px; }
.receipt-address, .receipt-phone { font-size: 0.78rem; text-align: center; color: var(--text-muted); }
.receipt-divider { text-align: center; margin: 12px 0; color: var(--text-muted); }
.receipt-meta { font-size: 0.8rem; margin: 8px 0; }
.receipt-meta div { margin-bottom: 4px; }
.receipt-items { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 0.78rem; }
.receipt-items th, .receipt-items td { padding: 4px 0; text-align: left; }
.receipt-items th:last-child, .receipt-items td:last-child { text-align: right; }
.receipt-totals { margin-top: 10px; font-size: 0.82rem; }
.receipt-totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.receipt-grand { font-weight: 700; font-size: 1rem; border-top: 1px solid #333; padding-top: 6px !important; }
.receipt-footer { text-align: center; margin-top: 12px; font-size: 0.78rem; color: var(--text-muted); font-family: 'DM Sans',sans-serif; }

@media print {
  body * { visibility: hidden; }
  #receiptModal, #receiptModal * { visibility: visible; }
  #receiptModal { position: absolute; left: 0; top: 0; }
}

/* ── APPOINTMENTS ───────────────────── */
.appt-filter { display: flex; align-items: center; gap: 10px; }
.appointments-list { display: flex; flex-direction: column; gap: 12px; }
.appt-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
  display: flex; gap: 20px; align-items: flex-start;
  border-left: 4px solid var(--border);
  box-shadow: var(--shadow);
}
.appt-pending   { border-left-color: var(--warning); }
.appt-confirmed { border-left-color: var(--info); }
.appt-completed { border-left-color: var(--success); }
.appt-cancelled { border-left-color: var(--danger); opacity: 0.7; }
.appt-no_show   { border-left-color: #9ca3af; }

.appt-time { text-align: center; flex-shrink: 0; width: 56px; }
.appt-hour { font-size: 1.3rem; font-weight: 700; color: var(--text-dark); line-height: 1; }
.appt-ampm { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; }
.appt-duration { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }

.appt-body { flex: 1; }
.appt-customer { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.appt-service { color: var(--primary); font-size: 0.88rem; margin-bottom: 2px; }
.appt-staff, .appt-notes { font-size: 0.82rem; color: var(--text-muted); }
.appt-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }

/* ── STAFF CARDS ────────────────────── */
.staff-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow);
}
.staff-avatar {
  width: 44px; height: 44px; background: var(--primary);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 1rem;
  color: white; flex-shrink: 0;
}
.staff-info { flex: 1; }
.staff-name { font-weight: 600; font-size: 0.9rem; }
.staff-role { font-size: 0.78rem; color: var(--primary); }
.staff-meta { font-size: 0.78rem; color: var(--text-muted); }
.staff-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* ── CUSTOMER PROFILE ───────────────── */
.customer-hero {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 20px; box-shadow: var(--shadow);
}
.customer-avatar-lg {
  width: 64px; height: 64px; background: var(--primary);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem; font-weight: 700;
  color: white; flex-shrink: 0;
}
.customer-hero-info { flex: 1; }
.customer-hero-info h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; margin-bottom: 6px; }
.customer-hero-stats { display: flex; gap: 20px; }
.stat-box { text-align: center; }
.stat-val { font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); }

/* ── EXPENSES ───────────────────────── */
.expense-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 8px; }
.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.expense-category-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.88rem; padding: 6px 0; }
.progress-bar-wrap { background: var(--border); border-radius: 4px; height: 4px; margin-bottom: 8px; overflow: hidden; }
.progress-bar { background: var(--primary); height: 100%; border-radius: 4px; transition: width 0.5s; }

/* ── REPORTS ────────────────────────── */
.reports-layout { display: grid; grid-template-columns: 200px 1fr; gap: 20px; }
.report-types { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; height: fit-content; box-shadow: var(--shadow); }
.report-type-btn {
  display: block; padding: 9px 14px; border-radius: 8px;
  color: var(--text-muted); text-decoration: none;
  font-size: 0.88rem; transition: all 0.15s; margin-bottom: 4px;
}
.report-type-btn:hover { background: var(--bg-soft); color: var(--text-dark); }
.report-type-btn.active { background: var(--primary-light); color: var(--primary-dark); font-weight: 600; }
.report-header-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.report-header-bar h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; }
.report-total { font-size: 0.88rem; color: var(--text-muted); margin-top: 2px; }
.report-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.report-content { min-width: 0; }

/* ── UTILITIES ──────────────────────── */
code { font-size: 0.82rem; background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; color: var(--text-dark); }
small { font-size: 0.78rem; color: var(--text-muted); }
strong { font-weight: 600; }

/* ── RESPONSIVE ─────────────────────── */
@media (max-width: 1100px) {
  .pos-layout { grid-template-columns: 1fr 340px; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-wrapper { margin-left: 0; }
  .menu-toggle { display: block; }
  .pos-layout { grid-template-columns: 1fr; }
  .dashboard-row { grid-template-columns: 1fr; }
  .reports-layout { grid-template-columns: 1fr; }
  .expense-summary { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .content { padding: 16px; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .customer-hero { flex-direction: column; text-align: center; }
  .expense-summary { grid-template-columns: 1fr; }
}
