:root {
  --bg-primary: #121214;
  --bg-secondary: #1a1a1e;
  --bg-card: #23232a;
  --accent-color: #d4af37;
  --accent-hover: #b89628;
  --text-main: #f3f3f5;
  --text-muted: #a0a0ab;
  --border-color: #33333d;
  --success-color: #2e7d32;
  --danger-color: #c62828;
  --info-color: #0288d1;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-primary); color: var(--text-main); display: flex; min-height: 100vh; }

.sidebar { width: 250px; background-color: var(--bg-secondary); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; }
.brand { padding: 24px; display: flex; align-items: center; gap: 12px; color: var(--accent-color); border-bottom: 1px solid var(--border-color); }
.nav-menu { display: flex; flex-direction: column; padding: 12px; gap: 6px; }
.nav-btn { background: transparent; border: none; color: var(--text-muted); padding: 12px 16px; text-align: left; font-size: 14px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 12px; transition: all 0.2s; }
.nav-btn:hover, .nav-btn.active { background-color: var(--accent-color); color: #000; font-weight: 600; }

.main-content { flex: 1; padding: 24px; overflow-y: auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.status-badge { background-color: rgba(46, 125, 50, 0.2); color: #66bb6a; padding: 6px 12px; border-radius: 20px; font-size: 13px; }

.tab-content { display: none; }
.tab-content.active { display: block; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background-color: var(--bg-card); padding: 20px; border-radius: 12px; border: 1px solid var(--border-color); display: flex; align-items: center; gap: 16px; }
.stat-card i { font-size: 26px; padding: 12px; border-radius: 8px; background: rgba(255,255,255,0.05); }
.icon-cash { color: #4caf50; } .icon-expense { color: #f44336; } .icon-appt { color: #2196f3; } .icon-point { color: #ffeb3b; }
.stat-card h3 { font-size: 13px; color: var(--text-muted); }
.stat-card p { font-size: 20px; font-weight: 700; margin-top: 4px; }

.card { background-color: var(--bg-card); padding: 20px; border-radius: 12px; border: 1px solid var(--border-color); margin-bottom: 20px; }
.dashboard-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.data-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.data-table th, .data-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border-color); }
.data-table th { color: var(--text-muted); font-size: 13px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
input, select, textarea { width: 100%; padding: 10px 12px; background-color: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-main); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-color); }
.form-row { display: flex; gap: 12px; }

.btn { padding: 10px 16px; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.btn-primary { background-color: var(--accent-color); color: #000; }
.btn-primary:hover { background-color: var(--accent-hover); }
.btn-success { background-color: var(--success-color); color: #fff; }
.btn-danger { background-color: var(--danger-color); color: #fff; }
.btn-block { width: 100%; justify-content: center; margin-top: 10px; }

.action-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.staff-filter { margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.staff-filter select { width: 200px; }

.pos-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.radio-group { display: flex; gap: 16px; margin-top: 6px; }
.alert-info { background-color: rgba(2, 136, 209, 0.2); border: 1px solid var(--info-color); padding: 10px; border-radius: 6px; font-size: 13px; margin-bottom: 12px; }
.hidden { display: none !important; }

.appointments-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.appt-card { background-color: var(--bg-secondary); border-left: 4px solid var(--accent-color); padding: 14px; border-radius: 6px; }
.appt-card.cancelled { border-left-color: var(--danger-color); opacity: 0.6; }
.appt-card.completed { border-left-color: var(--success-color); }
.appt-card header { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 8px; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); justify-content: center; align-items: center; z-index: 1000; }
.modal-content { background-color: var(--bg-card); padding: 24px; border-radius: 12px; width: 90%; max-width: 500px; position: relative; border: 1px solid var(--border-color); }
.close-btn { position: absolute; top: 12px; right: 16px; font-size: 24px; cursor: pointer; color: var(--text-muted); }

@media (max-width: 768px) {
  body { flex-direction: column; }
  .sidebar { width: 100%; }
  .nav-menu { flex-direction: row; overflow-x: auto; }
  .nav-btn { font-size: 12px; padding: 8px 10px; white-space: nowrap; }
  .dashboard-sections, .pos-layout { grid-template-columns: 1fr; }
}

/* =========================================================
   HAIRWORKS V3 - LOGO / PUAN / RAPORLAR
   ========================================================= */
.main-content { position: relative; }
.main-content::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("logo.png") center center / min(560px, 55vw) auto no-repeat;
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}
.main-content > * { position: relative; z-index: 1; }
.brand { min-height: 92px; }
.brand-logo { width: 58px; height: 58px; object-fit: contain; flex: 0 0 auto; }
.brand h2 { line-height: 1; letter-spacing: 1px; }
.brand small { color: var(--text-muted); font-size: 9px; letter-spacing: 3px; }
.gold-text { color: var(--accent-color); font-weight: 700; }
.point-box { background: rgba(212,175,55,.08); border: 1px solid rgba(212,175,55,.25); border-radius: 10px; padding: 14px; margin: 4px 0 16px; }
.point-box > div { display:flex; justify-content:space-between; gap:12px; padding: 4px 0; }
.point-box strong { color: var(--accent-color); }
.point-box small { display:block; color:var(--text-muted); margin-top:8px; }
.customer-point-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.action-cell { min-width: 260px; }
.action-cell .btn { margin: 2px; }
.report-filters { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.report-filters input { width:150px; }
.muted-badge { background:rgba(255,255,255,.06); border:1px solid var(--border-color); padding:6px 10px; border-radius:999px; color:var(--text-muted); font-size:12px; }
.table-scroll { overflow-x:auto; }
.field-help { color:var(--text-muted); font-size:11px; display:block; margin-top:5px; }
.money-positive { color:#66bb6a; font-weight:700; }
.money-negative { color:#ef5350; font-weight:700; }
.empty-cell { text-align:center !important; color:var(--text-muted); padding:24px !important; }
.modal-wide { max-width: 900px; }
.points-summary { padding:12px 14px; border:1px solid var(--border-color); border-radius:8px; background:var(--bg-secondary); margin:12px 0; }
.receipt-logo { width:90px; height:90px; object-fit:contain; display:block; margin:0 auto 8px; }
#hairworks-print-area { display:none; }
.btn:disabled { opacity:.6; cursor:not-allowed; }

@media (max-width: 768px) {
  .main-content { padding: 14px; }
  .topbar { gap:10px; }
  .topbar h1 { font-size:20px; }
  .form-row { flex-direction: column; gap:0; }
  .report-filters { align-items:stretch; }
  .report-filters input, .report-filters .btn { width:100%; }
  .brand { justify-content:center; }
  .action-cell { min-width:220px; }
}

@media print {
  body > *:not(#hairworks-print-area) { display:none !important; }
  #hairworks-print-area { display:block !important; position:static; }
  .receipt-print { width:80mm; margin:0 auto; color:#000; background:#fff; font-family:Arial,sans-serif; padding:8mm; }
  .receipt-print hr { border:0; border-top:1px dashed #000; margin:10px 0; }
  .receipt-print h3 { margin:10px 0; }
}


/* V4.5.1 Firebase Auth */
#hairworks-auth-overlay { position:fixed; inset:0; z-index:99999; display:flex; align-items:center; justify-content:center; background:rgba(8,8,12,.96); backdrop-filter:blur(8px); }
#hairworks-auth-overlay.hidden { display:none; }
.hw-auth-card { width:min(420px,calc(100% - 32px)); padding:32px; border:1px solid #3b3b46; border-radius:18px; background:#23232b; box-shadow:0 25px 80px rgba(0,0,0,.55); text-align:center; }
.hw-auth-logo { color:#fff; font-weight:900; font-size:25px; line-height:.82; letter-spacing:-1px; margin-bottom:18px; }
.hw-auth-logo span { font-size:28px; }
.hw-auth-logo small { display:block; font-size:8px; letter-spacing:3px; margin-top:8px; }
.hw-auth-card h2 { margin:0; color:#d9b43a; letter-spacing:2px; }
.hw-auth-subtitle { color:#aaa; margin:7px 0 24px; }
.hw-auth-card form { text-align:left; }
.hw-auth-card label { display:block; margin:13px 0 7px; color:#bbb; font-size:13px; }
.hw-auth-card input { width:100%; box-sizing:border-box; padding:13px 14px; border-radius:8px; border:1px solid #4b4b58; background:#19191f; color:#fff; outline:none; }
.hw-auth-card input:focus { border-color:#d9b43a; }
#hw-login-btn { width:100%; margin-top:18px; padding:13px; border:0; border-radius:8px; background:#d9b43a; color:#111; font-weight:800; cursor:pointer; }
#hw-login-btn:disabled { opacity:.65; cursor:wait; }
.hw-auth-error { min-height:20px; margin-top:10px; color:#ff6464; font-size:13px; line-height:1.35; }
.hw-locked .sidebar, .hw-locked .main-content { pointer-events:none; user-select:none; }

/* =========================================================
   HAIRWORKS V5 - SALON KULLANIMI
   ========================================================= */
:root { --accent-color:#d4af37; --accent-hover:#b89628; }
.quick-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:14px; }
.quick-actions.card { margin-bottom:16px; }
.btn-secondary { background:#2b2b34; color:var(--text-main); border:1px solid var(--border-color); }
.btn-secondary:hover { border-color:var(--accent-color); color:var(--accent-color); }
.today-chip { margin-left:auto; color:var(--text-muted); font-size:13px; display:flex; align-items:center; gap:7px; }
.icon-net { color:#b388ff; }
.section-subtitle { color:var(--text-muted); margin-top:5px; font-size:13px; }
.points-checkout-box { background:linear-gradient(180deg,rgba(212,175,55,.09),rgba(255,255,255,.025)); border:1px solid rgba(212,175,55,.25); border-radius:10px; padding:12px 14px; margin:4px 0 16px; }
.points-checkout-box > div { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:7px 0; color:var(--text-muted); }
.points-checkout-box strong { color:var(--accent-color); font-size:15px; }
.points-checkout-box input { width:120px; text-align:right; }
.points-checkout-box .payable-row { border-top:1px solid rgba(212,175,55,.25); margin-top:5px; padding-top:12px; color:var(--text-main); font-weight:700; }
.points-checkout-box .payable-row strong { font-size:22px; }
.report-toolbar { margin-top:18px; }
.report-filters { align-items:end; }
.report-filters > div { min-width:150px; }
.report-filters label { display:block; color:var(--text-muted); font-size:11px; margin-bottom:5px; }
.report-filters input { width:100%; }
.mini-report-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.mini-report-grid .card { display:flex; justify-content:space-between; align-items:center; margin:0; }
.mini-report-grid span { color:var(--text-muted); }
.mini-report-grid strong { color:var(--accent-color); }
.appt-actions .btn-warning { background:#8a6512; color:#fff; }
.appt-card { transition:transform .15s ease, border-color .15s ease; }
.appt-card:hover { transform:translateY(-2px); border-color:var(--accent-color); }
.item-list { list-style:none; display:flex; flex-direction:column; gap:8px; margin-top:12px; }
.item-list li { padding:9px 10px; border-radius:8px; background:var(--bg-secondary); border:1px solid rgba(255,255,255,.04); font-size:13px; }
.table-scroll { scrollbar-width:thin; }
@media (max-width: 768px) {
  .quick-actions { align-items:stretch; }
  .quick-actions .btn { flex:1 1 100%; justify-content:center; }
  .today-chip { margin-left:0; width:100%; justify-content:center; padding-top:3px; }
  .mini-report-grid { grid-template-columns:1fr; }
  .points-checkout-box input { width:100px; }
  .report-filters > div { width:100%; min-width:0; }
  .report-filters .btn { width:100%; justify-content:center; }
  .data-table { min-width:720px; }
  .data-table th,.data-table td { white-space:nowrap; }
}

/* V5.7 - Adisyon, kasa kapanış ve haftalık takip */
.adisyon-box{border:1px solid var(--border-color,#34343d);border-radius:12px;padding:14px;margin:12px 0;background:rgba(255,255,255,.015)}
.adisyon-title{margin-bottom:10px}.adisyon-title h4{margin:0}.adisyon-title small{color:#9b9ba6}
.adisyon-line{display:grid;grid-template-columns:34px minmax(0,1fr) 125px;gap:9px;align-items:center;margin:8px 0}
.adisyon-line .line-no{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#e3b72f;color:#111;font-weight:800}
.adisyon-line select,.adisyon-line input{width:100%}
.cash-close-card{margin-top:20px}.cash-period-buttons{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 14px}.cash-period-btn.active{background:#e3b72f;color:#111;border-color:#e3b72f}
.cash-grid,.payment-breakdown-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.cash-grid>div,.payment-breakdown-grid>div{border:1px solid #34343d;border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:5px;background:rgba(255,255,255,.02)}
.cash-grid span,.payment-breakdown-grid span{font-size:12px;color:#aaa}.cash-grid strong,.payment-breakdown-grid strong{font-size:18px}.cash-grid .cash-net{grid-column:1/-1;border-color:#e3b72f}.cash-count{margin-top:10px;color:#aaa;font-size:13px}
.payment-breakdown-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.report-filters select{min-width:150px}
@media(max-width:780px){.adisyon-line{grid-template-columns:30px 1fr}.adisyon-line input{grid-column:2}.payment-breakdown-grid{grid-template-columns:1fr}.cash-grid{grid-template-columns:1fr}.cash-grid .cash-net{grid-column:auto}}

/* V5.8 - Salon otomasyon geliştirmeleri */
.adisyon-line-rich{grid-template-columns:34px minmax(0,1.4fr) minmax(120px,.8fr) 120px}
.checkout-adjustments{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.split-payment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.split-payment-grid label{display:flex;flex-direction:column;gap:6px;color:var(--text-muted)}
.quick-pay-buttons{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.debt-toggle{display:flex;align-items:center;gap:8px;margin:10px 0;color:#f5c45b}
.payment-status-row{display:grid;grid-template-columns:1fr auto 1fr auto;gap:10px;align-items:center;border-top:1px solid var(--border-color);padding-top:10px}
.payment-status-row strong{color:var(--accent-color)}
.cash-close-history{margin-top:12px;border-top:1px solid var(--border-color);padding-top:10px}.cash-close-history h4{margin:0 0 8px}.close-history-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;padding:7px 0;border-bottom:1px solid rgba(255,255,255,.05);font-size:12px}.close-history-row strong{text-align:right;color:var(--accent-color)}
.comparison-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.comparison-grid>div{padding:12px;border:1px solid var(--border-color);border-radius:10px;display:flex;flex-direction:column;gap:5px}.comparison-grid span{color:var(--text-muted);font-size:12px}.comparison-grid strong{font-size:18px;color:var(--accent-color)}
.appt-status-row{display:flex;align-items:center;gap:8px}.appt-status-select{max-width:180px}.sale-inactive{opacity:.6}.status-badge{display:inline-block;padding:3px 7px;border-radius:999px;background:rgba(255,255,255,.08);font-size:11px}
@media(max-width:900px){.adisyon-line-rich{grid-template-columns:30px 1fr}.adisyon-line-rich .pos-line-staff,.adisyon-line-rich input{grid-column:2}.split-payment-grid,.checkout-adjustments,.comparison-grid{grid-template-columns:1fr}.payment-status-row{grid-template-columns:1fr auto}}


/* V5.10 - Randevu düzenleme, arama ve filtreleme */
.appointment-filter-card{margin-top:12px}
.appointment-filter-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:12px;align-items:end}
.appointment-filter-grid .form-group{margin-bottom:0}
.appointment-filter-grid input,.appointment-filter-grid select{width:100%}
.appointment-quick-row{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin-top:12px}
.appointment-quick-row .active{outline:2px solid var(--accent-color);outline-offset:1px}
.appointment-filter-summary{margin-left:auto;font-size:12px}
.appt-actions{margin-top:10px;display:flex;gap:5px;flex-wrap:wrap}
.appt-note{padding:7px 9px;border-radius:5px;background:rgba(255,255,255,.04)}
.appt-rescheduled{font-size:12px;color:var(--text-muted)}
.empty-state{grid-column:1/-1;text-align:center;padding:30px;color:var(--text-muted)}
.appt-card a{color:inherit;text-decoration:underline;text-underline-offset:2px}
#appt-note{width:100%;resize:vertical;min-height:70px}
@media (max-width:900px){.appointment-filter-grid{grid-template-columns:1fr 1fr}.appointment-filter-summary{width:100%;margin-left:0}}
@media (max-width:600px){.appointment-filter-grid{grid-template-columns:1fr}.appointment-quick-row .btn{flex:1}.appt-actions .btn{flex:1 1 calc(50% - 5px)}}

/* =========================================================
   V5.11 - TEK CİHAZ PERSONEL / YÖNETİCİ YETKİLENDİRME
   ========================================================= */
.role-hidden { display: none !important; }

.hw-role-locked .sidebar,
.hw-role-locked .main-content { pointer-events: none; user-select: none; filter: blur(1px); }

.hw-role-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 7, 10, .92);
  backdrop-filter: blur(10px);
}

.hw-role-card {
  width: min(440px, calc(100vw - 32px));
  padding: 30px;
  border: 1px solid #3b3b46;
  border-radius: 18px;
  background: #23232b;
  box-shadow: 0 25px 80px rgba(0,0,0,.58);
  text-align: center;
}

.hw-role-card h2 { margin: 0 0 10px; color: #d9b43a; }
.hw-role-note { margin: 0 0 20px; color: #bbb; line-height: 1.55; }
.hw-role-card form { text-align: left; }
.hw-role-card label { display:block; margin: 12px 0 7px; color:#bbb; font-size:13px; }
.hw-role-card input {
  width:100%;
  box-sizing:border-box;
  padding:13px 14px;
  border-radius:8px;
  border:1px solid #4b4b58;
  background:#19191f;
  color:#fff;
  outline:none;
  font-size:18px;
  letter-spacing:3px;
}
.hw-role-card input:focus { border-color:#d9b43a; }

.hw-role-switch {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin: 0 0 18px;
  padding:5px;
  border:1px solid #3b3b46;
  border-radius:12px;
  background:#18181e;
}
.hw-role-switch button {
  border:0;
  border-radius:8px;
  padding:12px 8px;
  background:transparent;
  color:#aaa;
  cursor:pointer;
  font-weight:700;
}
.hw-role-switch button.active { background:#d9b43a; color:#111; }

.hw-role-primary {
  width:100%;
  margin-top:12px;
  border:0;
  border-radius:9px;
  padding:13px;
  background:#d9b43a;
  color:#111;
  font-weight:800;
  cursor:pointer;
}

.hw-role-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:18px;
  color:#888;
  font-size:12px;
}
.hw-link-btn { background:none; border:0; color:#d9b43a; cursor:pointer; padding:0; }
.hw-role-device { display:block; margin-top:18px; color:#777; }

body[data-role="staff"] .topbar .status-badge { border-color: rgba(217,180,58,.45); }
body[data-role="admin"] .topbar .status-badge { border-color: rgba(61,191,104,.45); }

@media (max-width: 700px) {
  .hw-role-card { padding:24px 18px; }
  .hw-role-footer { flex-direction:column; }
}
.hw-role-secondary {
  width:100%;
  margin-top:8px;
  border:1px solid #4b4b58;
  border-radius:9px;
  padding:11px;
  background:#19191f;
  color:#ddd;
  font-weight:700;
  cursor:pointer;
}
.staff-only-note { display:none; margin:10px 0 14px; padding:10px 12px; border:1px solid #4b4b58; border-radius:9px; background:#19191f; color:#bbb; font-size:12px; line-height:1.45; }
body[data-role="staff"] .staff-only-note { display:block; }
.role-readonly { opacity:.72; cursor:not-allowed; }


/* =========================================================
   HAIRWORKS V5.12 - LOGO + DİNAMİK ADİSYON
   ========================================================= */
.brand { justify-content:center; padding:12px 16px; min-height:104px; }
.brand-logo-main { width:168px; max-width:100%; height:76px; object-fit:contain; display:block; }
.hw-auth-logo-img { width:150px; height:120px; object-fit:contain; display:block; margin:0 auto 12px; }
.adisyon-title { gap:12px; align-items:center; }
.adisyon-title .btn { flex:0 0 auto; }
.adisyon-lines { display:flex; flex-direction:column; gap:9px; }
.adisyon-line-dynamic { display:grid; grid-template-columns:minmax(210px,1.45fr) minmax(145px,.85fr) 125px 42px; gap:9px; align-items:center; padding:10px; border:1px solid var(--border-color); border-radius:9px; background:rgba(255,255,255,.018); }
.adisyon-line-dynamic select,.adisyon-line-dynamic input { width:100%; }
.adisyon-line-dynamic .btn-remove-pos-line { width:42px; height:40px; padding:0; justify-content:center; }
.adisyon-line-dynamic .btn-remove-pos-line:disabled { visibility:hidden; }
.adisyon-empty-note { color:var(--text-muted); text-align:center; padding:15px; border:1px dashed var(--border-color); border-radius:9px; }
@media(max-width:900px){
  .adisyon-line-dynamic { grid-template-columns:1fr 1fr; }
  .adisyon-line-dynamic .pos-line-price { grid-column:1; }
  .adisyon-line-dynamic .btn-remove-pos-line { grid-column:2; justify-self:end; }
}
@media(max-width:600px){
  .adisyon-title { align-items:stretch; flex-direction:column; }
  .adisyon-title .btn { width:100%; justify-content:center; }
  .adisyon-line-dynamic { grid-template-columns:1fr; }
  .adisyon-line-dynamic .pos-line-price,.adisyon-line-dynamic .btn-remove-pos-line { grid-column:auto; }
  .adisyon-line-dynamic .btn-remove-pos-line { width:100%; }
}


/* =========================================================
   HAIRWORKS V5.13 - MOD GEÇİŞİ + FIREBASE DURUMU
   ========================================================= */
.user-info { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.hw-firebase-ok { background:rgba(46,125,50,.20); color:#66bb6a; border:1px solid rgba(102,187,106,.25); }
.hw-firebase-loading { background:rgba(2,136,209,.14); color:#64b5f6; border:1px solid rgba(100,181,246,.25); }
.hw-firebase-warn { background:rgba(212,175,55,.14); color:#e3c64d; border:1px solid rgba(227,198,77,.30); }
.hw-firebase-error { background:rgba(198,40,40,.16); color:#ef5350; border:1px solid rgba(239,83,80,.30); }
@media(max-width:760px){
  .topbar { align-items:flex-start; gap:10px; }
  .user-info { justify-content:flex-start; }
  .user-info .btn { padding:8px 10px; }
}

/* V5.14 - Dinamik adisyon sütun başlıkları */
.adisyon-column-headings {
  display:grid;
  grid-template-columns:minmax(210px,1.45fr) minmax(145px,.85fr) 125px 42px;
  gap:9px;
  padding:0 10px 6px;
  color:var(--text-muted);
  font-size:12px;
  font-weight:600;
}
@media (max-width: 900px) {
  .adisyon-column-headings { display:none; }
}
