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

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1a1f3a 100%);
  color: #e2e8f0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

.app {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  gap: 0;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 280px;
  background: linear-gradient(180deg, #0f172a 0%, #1a1f3a 100%);
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.3);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
}

.brand img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
  transition: transform 0.2s;
}

.brand:hover img {
  transform: scale(1.05);
}

.brand h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

.sidebar nav {
  display: grid;
  gap: 8px;
}

.nav-btn {
  border: 1px solid transparent;
  background: transparent;
  color: #cbd5e1;
  text-align: left;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-btn:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
  color: #e2e8f0;
}

.nav-btn.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.15);
}

.count {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}

.side-bottom {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.user-card {
  background: rgba(51, 65, 85, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}

.user-card:hover {
  background: rgba(51, 65, 85, 0.7);
  border-color: rgba(148, 163, 184, 0.3);
}

.user-card div {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  font-size: 18px;
}

.user-card p {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-card b {
  color: #f1f5f9;
  font-size: 14px;
  font-weight: 600;
}

.user-card small {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

.theme-card, .logout-btn {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 12px;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  width: 100%;
  text-align: left;
}

.theme-card:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
  color: #e2e8f0;
}

.logout-btn {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fecaca;
}

/* ===== MAIN ===== */
.main {
  overflow-y: auto;
  padding: 32px;
  background: linear-gradient(180deg, #0f172a 0%, #1a1f3a 100%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  flex-wrap: wrap;
}

.topbar p {
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

.topbar p b {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(51, 65, 85, 0.5);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.menu-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

.btn, .login-card button {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 18px;
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  background: rgba(51, 65, 85, 0.5);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(51, 65, 85, 0.7);
}

.btn.primary {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-color: rgba(59, 130, 246, 0.3);
}

.btn.primary:hover {
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.btn.green {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: rgba(16, 185, 129, 0.3);
}

.btn.blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: rgba(59, 130, 246, 0.3);
}

.btn.red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: rgba(239, 68, 68, 0.3);
}

.btn.purple {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border-color: rgba(139, 92, 246, 0.3);
}

.btn.secondary {
  background: rgba(51, 65, 85, 0.5);
  border-color: rgba(148, 163, 184, 0.2);
}

.btn.small {
  padding: 8px 14px;
  font-size: 12px;
}

.top-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.page {
  display: none;
}

.active-page {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.card, .panel, .form-panel {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.2s;
}

.card {
  padding: 24px;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
}

.card span {
  display: block;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.card strong {
  display: block;
  font-size: 32px;
  font-weight: 700;
  margin-top: 12px;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.green-border {
  border-color: rgba(16, 185, 129, 0.3);
}

.green-border strong {
  background: linear-gradient(135deg, #10b981, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.purple-border {
  border-color: rgba(139, 92, 246, 0.3);
}

.purple-border strong {
  background: linear-gradient(135deg, #a78bfa, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.red-border {
  border-color: rgba(239, 68, 68, 0.3);
}

.red-border strong {
  background: linear-gradient(135deg, #f87171, #fca5a5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 0 0 24px;
}

.panel {
  padding: 28px;
}

.panel h1, .panel h2, .page-title h1 {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 700;
  color: #f1f5f9;
}

.stat-line {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  background: rgba(51, 65, 85, 0.3);
  transition: all 0.2s;
}

.stat-line:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.05);
}

.stat-line b {
  color: #cbd5e1;
  font-weight: 600;
}

.stat-line span {
  color: #94a3b8;
  font-size: 13px;
}

.stat-line strong {
  text-align: right;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.alert-item {
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(245, 158, 11, 0.05);
  transition: all 0.2s;
}

.alert-item:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
}

.alert-item b {
  color: #fbbf24;
  font-weight: 600;
}

.alert-item p {
  margin: 8px 0 0;
  color: #e2e8f0;
  font-size: 13px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.page-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 24px;
}

.page-title p {
  margin: 8px 0 0;
  color: #94a3b8;
  font-size: 14px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  margin-top: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 950px;
}

th, td {
  padding: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  text-align: left;
  white-space: nowrap;
}

th {
  background: rgba(51, 65, 85, 0.3);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tbody tr {
  transition: all 0.2s;
}

tbody tr:hover {
  background: rgba(59, 130, 246, 0.05);
}

.badge, .vip {
  display: inline-flex;
  border-radius: 6px;
  padding: 6px 10px;
  font-weight: 600;
  font-size: 12px;
  align-items: center;
  gap: 6px;
}

.active-b {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.expired-b {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.expiring-b {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.partner-d {
  background: rgba(139, 92, 246, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.partner-o {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.vip {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.form-panel {
  padding: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

label {
  font-weight: 600;
  color: #cbd5e1;
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
}

input, select, textarea {
  width: 100%;
  background: rgba(51, 65, 85, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  color: #e2e8f0;
  padding: 12px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(51, 65, 85, 0.7);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.inline-input {
  display: flex;
  gap: 0;
  margin: 8px 0 0;
}

.inline-input input {
  border-radius: 10px 0 0 10px;
  margin: 0;
}

.inline-input button {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: white;
  padding: 0 16px;
  border-radius: 0 10px 10px 0;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
}

.inline-input button:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.choice-box {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(51, 65, 85, 0.3);
}

.choice-box span {
  font-weight: 600;
  color: #cbd5e1;
}

.choice-box input[type=radio], .vip-box input {
  width: 18px;
  height: 18px;
  margin: 0 8px 0 0;
  cursor: pointer;
  accent-color: #60a5fa;
}

.payment-box {
  margin-top: 24px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 24px;
  background: rgba(59, 130, 246, 0.05);
}

.payment-box h2 {
  margin: 0 0 20px;
  color: #f1f5f9;
  font-size: 18px;
  font-weight: 700;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.pay-buttons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.pay {
  background: rgba(51, 65, 85, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
}

.pay:hover {
  background: rgba(51, 65, 85, 0.7);
  border-color: rgba(148, 163, 184, 0.3);
}

.pay.active {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-color: transparent;
  color: white;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.small-choice {
  display: grid;
  gap: 10px;
}

.small-choice label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(51, 65, 85, 0.3);
  cursor: pointer;
  transition: all 0.2s;
}

.small-choice label:hover {
  background: rgba(59, 130, 246, 0.1);
}

.small-choice b {
  font-size: 11px;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.vip-box {
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vip-box span {
  display: block;
  color: #fbbf24;
  font-weight: 600;
  margin: 8px 0 0;
  font-size: 14px;
}

.form-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.actions {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.icon-btn {
  background: rgba(51, 65, 85, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.icon-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 31, 58, 0.95));
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #e2e8f0;
  border-radius: 10px;
  padding: 16px 20px;
  z-index: 999;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1a1f3a 100%);
  padding: 20px;
}

.login-card {
  width: min(420px, 100%);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.login-card img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-card p {
  margin: 0 0 20px;
  color: #94a3b8;
  font-size: 14px;
}

.login-card label {
  display: block;
  margin: 16px 0 8px;
  color: #cbd5e1;
  font-weight: 600;
}

.login-card button {
  width: 100%;
  margin-top: 20px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border: none;
  padding: 12px;
  border-radius: 10px;
}

.login-card small {
  display: block;
  margin-top: 16px;
  color: #94a3b8;
  text-align: center;
  font-size: 13px;
}

.login-tools {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 16px;
}

.mini-control, .theme-select, .lang-btn {
  background: rgba(51, 65, 85, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.mini-control:hover, .theme-select:hover, .lang-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

.theme-select {
  min-width: 140px;
}

/* ===== THEMES ===== */
.theme-neon {
  background: linear-gradient(135deg, #0f172a 0%, #1a1f3a 100%);
  color: #e2e8f0;
}

.theme-ocean {
  background: linear-gradient(135deg, #0f2231 0%, #1a2a3a 100%);
  color: #d0f1ff;
}

.theme-emerald {
  background: linear-gradient(135deg, #0f1f1a 0%, #1a2f25 100%);
  color: #d4f5e9;
}

.theme-sunset {
  background: linear-gradient(135deg, #1f0f0a 0%, #2f1a15 100%);
  color: #fce8df;
}

.theme-light {
  background: #f8f9fa;
  color: #1f2937;
}

.theme-light body {
  background: #f8f9fa;
}

.theme-light .sidebar {
  background: #ffffff;
  border-right-color: #e5e7eb;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
}

.theme-light .sidebar nav {
  gap: 8px;
}

.theme-light .nav-btn {
  color: #4b5563;
}

.theme-light .nav-btn:hover {
  background: rgba(59, 130, 246, 0.08);
  color: #1f2937;
}

.theme-light .nav-btn.active {
  color: #3b82f6;
}

.theme-light .card,
.theme-light .panel,
.theme-light .form-panel {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #1f2937;
}

.theme-light input,
.theme-light select,
.theme-light textarea {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #1f2937;
}

.theme-light .user-card {
  background: #f3f4f6;
  border-color: #d1d5db;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .payment-grid {
    grid-template-columns: 1fr 1fr;
  }

  .filters {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 100;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .menu-btn {
    display: block;
  }

  .main {
    padding: 20px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .payment-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    font-size: 13px;
  }

  th, td {
    padding: 12px 8px;
  }
}

@media (max-width: 640px) {
  .sidebar {
    width: 100%;
  }

  .main {
    padding: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 0 0 20px;
    margin-bottom: 20px;
  }

  .top-actions {
    width: 100%;
  }

  .top-actions .btn {
    flex: 1;
  }

  .card {
    padding: 16px;
  }

  .card strong {
    font-size: 24px;
  }

  .panel {
    padding: 16px;
  }

  .form-panel {
    padding: 16px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .table-wrap {
    font-size: 12px;
  }

  th, td {
    padding: 10px 6px;
    white-space: normal;
  }

  .payment-box {
    padding: 16px;
  }

  .stat-line {
    grid-template-columns: auto 1fr;
    gap: 8px;
  }

  .stat-line strong {
    grid-column: 1 / -1;
    text-align: left;
  }
}

/* ===== RTL Support ===== */
.rtl {
  direction: rtl;
}

.rtl .sidebar {
  border-right: none;
  border-left: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: -2px 0 16px rgba(0, 0, 0, 0.3);
}

.rtl .nav-btn {
  text-align: right;
}

.rtl .topbar,
.rtl .panel-head,
.rtl .brand,
.rtl .user-card {
  flex-direction: row-reverse;
}

.rtl table {
  text-align: right;
}

/* ===== Stock & Additional Sections ===== */
.stock-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.stock-card h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
}

.stock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.stock-card textarea {
  width: 100%;
  min-height: 120px;
  background: rgba(51, 65, 85, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  color: #e2e8f0;
  padding: 12px;
  font-size: 13px;
  font-family: 'Monaco', 'Courier New', monospace;
}

.stock-pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
}

.stock-pill.available {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.3);
}

.stock-pill.sold {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}

.stock-service-card {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  overflow: hidden;
  margin-bottom: 12px;
}

.stock-service-head {
  width: 100%;
  border: none;
  background: transparent;
  color: #e2e8f0;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.stock-service-head:hover {
  background: rgba(59, 130, 246, 0.05);
}

.stock-service-head strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.stock-service-head span {
  color: #94a3b8;
  font-size: 13px;
}

.stock-service-counts {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sold-account-box {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  width: min(400px, calc(100vw - 36px));
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.sold-account-box h3 {
  margin: 0 0 16px;
  color: #f1f5f9;
  font-size: 16px;
  font-weight: 700;
}

.sold-account-box label {
  display: block;
  margin: 12px 0 6px;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 13px;
}

.sold-account-box input {
  width: 100%;
  margin: 6px 0 0;
}

.sold-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.order-view-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  z-index: 9999;
  padding: 20px;
}

.order-view-modal.hidden {
  display: none;
}

.order-view-card {
  width: min(800px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  padding: 28px;
  backdrop-filter: blur(10px);
}

.order-view-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.order-view-top h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #f1f5f9;
}

.order-view-top button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
  border-radius: 8px;
  color: #fca5a5;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.order-view-top button:hover {
  background: rgba(239, 68, 68, 0.15);
}


/* ===== Kurd Store VIP Requested Fixes ===== */

/* New customer highlight in Orders */
.new-order-row td,
.new-order-row {
  background: linear-gradient(90deg, rgba(255, 213, 79, 0.28), rgba(255, 213, 79, 0.10)) !important;
}

.new-order-row td:first-child {
  border-left: 5px solid #ffd43b;
}

.new-order-row:hover td,
.new-order-row:hover {
  background: linear-gradient(90deg, rgba(255, 213, 79, 0.38), rgba(255, 213, 79, 0.16)) !important;
}

.new-order-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 212, 59, 0.18);
  color: #fde68a;
  border: 1px solid rgba(255, 212, 59, 0.38);
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
}

/* Better account/details popup after Add Customer */
.sold-account-box {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  width: min(460px, calc(100vw - 40px));
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(24, 35, 56, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(14px);
}

.sold-box-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.sold-box-head h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 850;
}

.sold-box-head p {
  margin: 5px 0 0;
  color: #94a3b8;
  font-size: 13px;
}

.sold-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.10);
  color: #fecaca;
  cursor: pointer;
}

.sold-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0 16px;
}

.sold-summary-item {
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  padding: 12px;
}

.sold-summary-item span {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.sold-summary-item strong {
  display: block;
  color: #f8fafc;
  font-size: 14px;
  word-break: break-word;
}

.sold-account-box label {
  display: block;
  margin: 12px 0 6px;
  color: #cbd5e1;
  font-weight: 750;
  font-size: 13px;
}

.sold-account-box input {
  width: 100%;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 14px;
  color: #f8fafc;
  padding: 13px;
  font-size: 14px;
}

.sold-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.sold-actions button {
  flex: 1;
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.sold-actions button:last-child {
  background: rgba(51, 65, 85, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

/* Beautiful View Customer Details modal */
.order-view-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 22px;
}

.order-view-modal.hidden {
  display: none !important;
}

.order-view-card {
  width: min(980px, 100%);
  max-height: 90vh;
  overflow: auto;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 32%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
  padding: 28px;
}

.order-view-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.order-view-top h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 26px;
  font-weight: 900;
}

.order-view-top p {
  margin: 6px 0 0;
  color: #94a3b8;
  font-size: 14px;
}

.order-view-top button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.10);
  border-radius: 14px;
  color: #fecaca;
  font-size: 18px;
  cursor: pointer;
}

.order-view-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(96, 165, 250, 0.16);
}

.order-view-avatar {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 12px 34px rgba(59, 130, 246, 0.28);
}

.order-view-hero h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 24px;
  font-weight: 900;
}

.order-view-hero p {
  margin: 5px 0 0;
  color: #cbd5e1;
}

.order-view-status {
  justify-self: end;
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.order-box {
  border-radius: 18px;
  padding: 16px;
  background: rgba(30, 41, 59, 0.70);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.order-box.account-box {
  background: linear-gradient(145deg, rgba(21, 128, 61, 0.16), rgba(30, 41, 59, 0.76));
  border-color: rgba(34, 197, 94, 0.20);
}

.order-box span {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}

.order-box strong {
  display: block;
  color: #f8fafc;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
}

.order-box-full {
  grid-column: 1 / -1;
}

.copy-detail-btn {
  margin-top: 18px;
  width: 100%;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #10b981, #2563eb);
  border: none;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 640px) {
  .sold-account-box {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
  }

  .sold-summary-grid {
    grid-template-columns: 1fr;
  }

  .order-view-card {
    padding: 18px;
    border-radius: 22px;
  }

  .order-view-hero {
    grid-template-columns: 1fr;
  }

  .order-view-status {
    justify-self: start;
  }
}




/* Service icon system */
.service-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
}

.service-icon {
  width: 24px !important;
  height: 24px !important;
  border-radius: 7px !important;
  object-fit: cover !important;
  display: inline-block !important;
  vertical-align: middle !important;
  flex: 0 0 auto !important;
}

.service-brand-name {
  display: inline !important;
}

/* Professional Orders Actions */
.icon-btn {
  min-width: 68px !important;
  text-align: center !important;
  font-weight: 700 !important;
}

.action-view {
  color: #93c5fd !important;
  border-color: rgba(59,130,246,.35) !important;
}

.action-edit {
  color: #86efac !important;
  border-color: rgba(34,197,94,.35) !important;
}

.action-delete {
  color: #fecaca !important;
  border-color: rgba(239,68,68,.35) !important;
}

/* Items Icon service system */
.service-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
}

.service-icon {
  width: 24px !important;
  height: 24px !important;
  border-radius: 7px !important;
  object-fit: cover !important;
}

/* Stock form improvements */
.disabled-field {
  opacity: .45 !important;
  cursor: not-allowed !important;
}

.stock-note-field,
#stockNotes {
  grid-column: 1 / -1;
}

.stock-note-field textarea,
#stockNotes {
  min-height: 82px !important;
}

/* Professional stock cards */
.stock-pro-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
  padding: 8px;
}

.stock-pro-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, .96), rgba(30, 41, 59, .86));
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .24);
}

.stock-pro-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.stock-pro-id {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

.stock-pro-head h3 {
  margin: 6px 0 0;
  font-size: 17px;
  color: #f8fafc;
}

.stock-pro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stock-pro-grid div {
  background: rgba(15, 23, 42, .48);
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 13px;
  padding: 11px;
  min-width: 0;
}

.stock-pro-grid small {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.stock-pro-grid strong {
  display: block;
  color: #e2e8f0;
  font-size: 13px;
  word-break: break-word;
  white-space: normal;
}

.stock-pro-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.stock-pro-actions .btn {
  flex: 1;
  justify-content: center;
}

@media (max-width: 640px) {
  .stock-pro-list {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .stock-pro-grid {
    grid-template-columns: 1fr;
  }
}

/* Final Orders: remove top selected action buttons */
.orders-actions > #viewSelected,
.orders-actions > #editSelected,
.orders-actions > #deleteSelected,
.orders-actions > #allDataBtn {
  display: none !important;
}

.orders-actions {
  justify-content: flex-end;
}

/* Small row icons */
td .icon-btn,
.row-action-btn {
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  padding: 0 !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  display: inline-grid !important;
  place-items: center !important;
  margin: 0 3px !important;
  color: #cbd5e1 !important;
  background: rgba(51,65,85,.68) !important;
  border: 1px solid rgba(148,163,184,.25) !important;
  vertical-align: middle !important;
}

.row-action-btn:hover {
  background: rgba(59,130,246,.20) !important;
  border-color: rgba(59,130,246,.50) !important;
  color: #bfdbfe !important;
}

.row-action-btn.danger:hover {
  background: rgba(239,68,68,.18) !important;
  border-color: rgba(239,68,68,.50) !important;
  color: #fecaca !important;
}

.compact-actions,
.alert-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
}

.alert-actions {
  margin-left: 12px !important;
}

/* Professional dark details modal */
.demo-view-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(2, 6, 23, .76); backdrop-filter: blur(10px); padding: 22px;
}
.demo-view-modal.hidden { display: none !important; }
.demo-view-card {
  width: min(760px, 100%); max-height: 88vh; overflow: auto;
  border-radius: 24px; padding: 24px;
  background: radial-gradient(circle at top left, rgba(59,130,246,.22), transparent 34%),
              linear-gradient(145deg, rgba(15,23,42,.98), rgba(24,35,56,.98));
  border: 1px solid rgba(148,163,184,.18);
  box-shadow: 0 24px 80px rgba(0,0,0,.52);
}
.demo-view-head {
  display:flex; justify-content:space-between; gap:16px; align-items:flex-start;
  margin-bottom:18px; padding-bottom:16px; border-bottom:1px solid rgba(148,163,184,.12);
}
.demo-view-head h2 { margin:0; color:#f8fafc; font-size:22px; }
.demo-view-head p { margin:6px 0 0; color:#94a3b8; }
.demo-view-head button {
  border:1px solid rgba(96,165,250,.28); background:rgba(59,130,246,.12);
  color:#bfdbfe; border-radius:12px; padding:10px 14px; font-weight:800; cursor:pointer;
}
.demo-view-content { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.demo-view-box {
  background:rgba(15,23,42,.55); border:1px solid rgba(148,163,184,.14);
  border-radius:16px; padding:14px;
}
.demo-view-box span {
  display:block; color:#94a3b8; font-size:11px; text-transform:uppercase;
  letter-spacing:.06em; font-weight:900; margin-bottom:7px;
}
.demo-view-box strong { display:block; color:#e2e8f0; font-size:14px; word-break:break-word; }
@media (max-width:640px){ .demo-view-content{grid-template-columns:1fr;} }

/* Payment overdue rows */
.payment-overdue-row td, .payment-overdue-row {
  background: linear-gradient(90deg, rgba(239,68,68,.30), rgba(127,29,29,.18)) !important;
}
.payment-overdue-row td:first-child { border-left:5px solid #ef4444 !important; }

/* Stock custom service hidden unless Custom */
#stockCustomServiceBox.hidden, #manualStockCustomServiceBox.hidden { display:none !important; }

/* Orders filters with payment status */
.filters { grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr; }
@media (max-width:1200px){ .filters{ grid-template-columns:1fr 1fr 1fr; } }
@media (max-width:900px){ .filters{ grid-template-columns:1fr; } }

/* Dashboard actions restored */
.top-actions {
  display: flex !important;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

#themeModeBtn, #themeSelect, #refreshBtn, #reloadBtn, #backupNowBtn {
  display: inline-flex !important;
}

/* Orders row action icons */
.row-actions {
  display: inline-flex !important;
  gap: 6px !important;
  align-items: center !important;
}

td .icon-btn,
.row-action-btn {
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  padding: 0 !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  display: inline-grid !important;
  place-items: center !important;
  margin: 0 2px !important;
  color: #dbeafe !important;
  background: rgba(51,65,85,.75) !important;
  border: 1px solid rgba(148,163,184,.30) !important;
  vertical-align: middle !important;
}

.row-action-btn:hover {
  background: rgba(59,130,246,.22) !important;
  border-color: rgba(59,130,246,.55) !important;
  color: #bfdbfe !important;
}

.row-action-btn.danger:hover {
  background: rgba(239,68,68,.20) !important;
  border-color: rgba(239,68,68,.55) !important;
  color: #fecaca !important;
}

/* Payment overdue rows */
.payment-overdue-row td,
.payment-overdue-row {
  background: linear-gradient(90deg, rgba(239,68,68,.30), rgba(127,29,29,.18)) !important;
}

.payment-overdue-row td:first-child {
  border-left: 5px solid #ef4444 !important;
}

/* Orders filters */
.filters {
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
}

@media (max-width: 1200px) {
  .filters { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .filters { grid-template-columns: 1fr; }
}

/* Professional Add Customer */
.pro-customer-form {
  position: relative;
  overflow: hidden;
  border-radius: 24px !important;
  padding: 30px !important;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.18), transparent 34%),
    linear-gradient(145deg, rgba(15,23,42,.96), rgba(24,35,56,.96)) !important;
  border: 1px solid rgba(148,163,184,.18) !important;
  box-shadow: 0 24px 80px rgba(0,0,0,.26) !important;
}

.pro-form-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.pro-customer-form label {
  background: rgba(15,23,42,.42);
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 16px;
  padding: 13px;
  margin: 0 !important;
}

.pro-customer-form input,
.pro-customer-form select,
.pro-customer-form textarea {
  margin-top: 8px !important;
  border-radius: 13px !important;
  background: rgba(30,41,59,.72) !important;
  border-color: rgba(148,163,184,.18) !important;
}

.pro-customer-form input:focus,
.pro-customer-form select:focus,
.pro-customer-form textarea:focus {
  border-color: rgba(96,165,250,.55) !important;
  box-shadow: 0 0 0 4px rgba(59,130,246,.12) !important;
}

.pro-payment-box {
  border-radius: 22px !important;
  margin-top: 22px !important;
  background: rgba(59,130,246,.06) !important;
  border-color: rgba(96,165,250,.20) !important;
}

.pro-payment-box h2 {
  margin-bottom: 18px !important;
}

.payment-status-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.payment-status-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  width: auto !important;
  padding: 10px 14px !important;
  cursor: pointer;
}

.form-actions .btn {
  min-width: 180px;
  justify-content: center;
  border-radius: 14px !important;
  padding: 13px 18px !important;
}

@media (max-width: 1100px) {
  .pro-form-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 720px) {
  .pro-form-grid { grid-template-columns: 1fr !important; }
}

#stockCustomServiceBox.hidden,
#manualStockCustomServiceBox.hidden {
  display: none !important;
}



/* ===== Clean Professional Add Customer UI ===== */
#add .page-title {
  margin-bottom: 18px !important;
}

.customer-clean-form {
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 26px !important;
  padding: 28px !important;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, .16), transparent 32%),
    linear-gradient(145deg, rgba(15, 23, 42, .98), rgba(20, 31, 52, .98)) !important;
  border: 1px solid rgba(148, 163, 184, .16) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .30) !important;
}

.customer-clean-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 20px !important;
}

.customer-clean-form label {
  margin: 0 !important;
  padding: 14px !important;
  border-radius: 18px !important;
  background: rgba(15, 23, 42, .48) !important;
  border: 1px solid rgba(148, 163, 184, .13) !important;
  color: #dbeafe !important;
  font-weight: 800 !important;
  min-width: 0 !important;
}

.customer-clean-form input,
.customer-clean-form select,
.customer-clean-form textarea {
  height: 46px !important;
  margin-top: 9px !important;
  border-radius: 14px !important;
  background: rgba(30, 41, 59, .78) !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
  color: #f8fafc !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  box-shadow: none !important;
}

.customer-clean-form textarea {
  height: auto !important;
  min-height: 110px !important;
  padding: 14px !important;
}

.customer-clean-form input:focus,
.customer-clean-form select:focus,
.customer-clean-form textarea:focus {
  border-color: rgba(96, 165, 250, .65) !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .12) !important;
  outline: none !important;
}

.clean-inline-input {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  gap: 8px !important;
  margin-top: 9px !important;
  align-items: stretch !important;
}

.clean-inline-input input {
  margin-top: 0 !important;
  min-width: 0 !important;
  border-radius: 14px !important;
}

.clean-inline-input button {
  height: 46px !important;
  min-width: 70px !important;
  border-radius: 14px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(96, 165, 250, .25) !important;
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  color: white !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

#showPass {
  min-width: 46px !important;
  font-size: 0 !important;
}

#showPass::after {
  content: "Show";
  font-size: 12px;
}

.customer-payment-box {
  margin-top: 22px !important;
  padding: 24px !important;
  border-radius: 24px !important;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, .70), rgba(30, 41, 59, .55)) !important;
  border: 1px solid rgba(96, 165, 250, .18) !important;
}

.customer-payment-box h2 {
  margin: 0 0 18px !important;
  font-size: 21px !important;
  color: #f8fafc !important;
}

.customer-status-box {
  padding: 0 !important;
  margin-bottom: 20px !important;
}

.customer-status-box > label {
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin-bottom: 10px !important;
}

.payment-status-options {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.payment-status-chip {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  height: 48px !important;
  border-radius: 15px !important;
  padding: 0 14px !important;
  background: rgba(30, 41, 59, .74) !important;
  border: 1px solid rgba(148, 163, 184, .16) !important;
  cursor: pointer !important;
}

.payment-status-chip input {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  accent-color: #3b82f6 !important;
}

.payment-status-chip:has(input:checked),
.payment-status-chip.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, .34), rgba(139, 92, 246, .30)) !important;
  border-color: rgba(96, 165, 250, .50) !important;
}

.customer-payment-grid {
  display: grid !important;
  grid-template-columns: 1.4fr 1fr 1fr !important;
  gap: 16px !important;
  align-items: stretch !important;
}

.pay-buttons {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin-top: 10px !important;
}

.pay {
  min-width: 92px !important;
  height: 42px !important;
  border-radius: 13px !important;
  padding: 0 14px !important;
  background: rgba(30, 41, 59, .76) !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
  color: #dbeafe !important;
  font-weight: 900 !important;
}

.pay.active {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.small-choice,
.vip-box {
  border-radius: 18px !important;
  padding: 16px !important;
  background: rgba(15, 23, 42, .50) !important;
  border: 1px solid rgba(148, 163, 184, .14) !important;
}

.small-choice {
  display: grid !important;
  gap: 10px !important;
}

.small-choice > span,
.vip-box > span:first-child {
  color: #dbeafe !important;
  font-weight: 900 !important;
  margin: 0 0 6px !important;
}

.small-choice label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  height: 44px !important;
  padding: 0 12px !important;
  border-radius: 14px !important;
  background: rgba(30, 41, 59, .68) !important;
  border: 1px solid rgba(148, 163, 184, .12) !important;
}

.small-choice input,
.vip-box input {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  accent-color: #60a5fa !important;
}

.vip-box {
  display: flex !important;
  justify-content: center !important;
  gap: 12px !important;
  color: #fbbf24 !important;
}

#notes {
  grid-column: 1 / -1 !important;
}

.customer-payment-box > label[data-i18n="notesOptional"] {
  display: block !important;
  margin-top: 16px !important;
  grid-column: 1 / -1 !important;
}

.form-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  margin-top: 22px !important;
}

.form-actions .btn {
  min-width: 170px !important;
  height: 48px !important;
  border-radius: 15px !important;
  justify-content: center !important;
  font-weight: 900 !important;
}

@media (max-width: 1180px) {
  .customer-clean-grid,
  .customer-payment-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 760px) {
  .customer-clean-form {
    padding: 18px !important;
  }
  .customer-clean-grid,
  .customer-payment-grid,
  .payment-status-options {
    grid-template-columns: 1fr !important;
  }
  .clean-inline-input {
    grid-template-columns: 1fr !important;
  }
  .clean-inline-input button {
    width: 100% !important;
  }
  .form-actions {
    flex-direction: column !important;
  }
  .form-actions .btn {
    width: 100% !important;
  }
}

/* Order View cleanup */
.order-view-card .order-grid {
  align-items: stretch;
}

.password-box .password-view-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.password-box strong {
  min-width: 0;
  word-break: break-word;
}

.password-eye-btn {
  flex: 0 0 auto;
  border: 1px solid rgba(96, 165, 250, .32);
  background: rgba(59, 130, 246, .12);
  color: #bfdbfe;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.password-eye-btn:hover {
  background: rgba(59, 130, 246, .22);
  border-color: rgba(96, 165, 250, .55);
}



/* ===== Final Professional Add New Customer Form ===== */
#add {
  max-width: 1220px;
  margin: 0 auto;
}

.add-pro-main-title {
  max-width: 1220px;
  margin: 0 auto 16px;
  padding: 18px 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(59,130,246,.16), rgba(139,92,246,.10));
  border: 1px solid rgba(148,163,184,.16);
}

.add-pro-main-title h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 24px;
  font-weight: 900;
}

.add-pro-main-title p {
  margin: 6px 0 0;
  color: #94a3b8;
  font-size: 14px;
}

.add-pro-form {
  max-width: 1220px !important;
  margin: 0 auto 40px !important;
  padding: 28px !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.18), transparent 34%),
    linear-gradient(145deg, rgba(15,23,42,.98), rgba(19,30,50,.98)) !important;
  border: 1px solid rgba(148,163,184,.16) !important;
  box-shadow: 0 26px 80px rgba(0,0,0,.32) !important;
  overflow: visible !important;
}

.add-pro-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin: 0 !important;
}

.add-pro-form label {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 14px !important;
  border-radius: 18px !important;
  background: rgba(15,23,42,.50) !important;
  border: 1px solid rgba(148,163,184,.13) !important;
  color: #dbeafe !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: .01em !important;
}

.add-pro-form input,
.add-pro-form select,
.add-pro-form textarea {
  width: 100% !important;
  height: 48px !important;
  margin-top: 9px !important;
  padding: 0 14px !important;
  border-radius: 15px !important;
  background: rgba(30,41,59,.82) !important;
  border: 1px solid rgba(148,163,184,.20) !important;
  color: #f8fafc !important;
  font-size: 14px !important;
  outline: none !important;
  box-shadow: none !important;
}

.add-pro-form select {
  appearance: auto !important;
  cursor: pointer !important;
}

.add-pro-form textarea {
  height: auto !important;
  min-height: 116px !important;
  padding: 14px !important;
  resize: vertical !important;
}

.add-pro-form input:focus,
.add-pro-form select:focus,
.add-pro-form textarea:focus {
  border-color: rgba(96,165,250,.65) !important;
  box-shadow: 0 0 0 4px rgba(59,130,246,.13) !important;
}

.add-pro-inline {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  gap: 8px !important;
  align-items: stretch !important;
  margin-top: 9px !important;
}

.add-pro-inline input {
  margin: 0 !important;
  min-width: 0 !important;
}

.add-pro-inline button {
  height: 48px !important;
  min-width: 76px !important;
  padding: 0 14px !important;
  border-radius: 15px !important;
  border: 1px solid rgba(96,165,250,.28) !important;
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  color: #fff !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

#showPass {
  min-width: 56px !important;
  font-size: 0 !important;
}

#showPass::after {
  content: "Show";
  font-size: 12px;
}

.add-pro-payment {
  margin-top: 24px !important;
  padding: 24px !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at top right, rgba(16,185,129,.10), transparent 30%),
    linear-gradient(145deg, rgba(15,23,42,.74), rgba(30,41,59,.58)) !important;
  border: 1px solid rgba(96,165,250,.20) !important;
}

.add-pro-payment h2 {
  margin: 0 0 20px !important;
  color: #f8fafc !important;
  font-size: 22px !important;
  font-weight: 950 !important;
}

.payment-status-box {
  margin: 0 0 20px !important;
}

.payment-status-box > label {
  display: block !important;
  padding: 0 !important;
  margin-bottom: 10px !important;
  background: transparent !important;
  border: 0 !important;
  color: #dbeafe !important;
}

.payment-status-options {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.payment-status-chip {
  height: 52px !important;
  padding: 0 14px !important;
  border-radius: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: rgba(15,23,42,.52) !important;
  border: 1px solid rgba(148,163,184,.16) !important;
  cursor: pointer !important;
}

.payment-status-chip input,
.small-choice input,
.vip-box input {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 999px !important;
  margin: 0 !important;
  background: rgba(248,250,252,.96) !important;
  border: 3px solid rgba(148,163,184,.38) !important;
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.96) !important;
  flex: 0 0 auto !important;
  cursor: pointer !important;
}

.payment-status-chip input:checked,
.small-choice input:checked,
.vip-box input:checked {
  background: #3b82f6 !important;
  border-color: #93c5fd !important;
  box-shadow: inset 0 0 0 5px #fff, 0 0 0 4px rgba(59,130,246,.16) !important;
}

.payment-status-chip.is-selected,
.payment-status-chip.active,
.small-choice label.is-selected,
.vip-box.is-selected {
  background: linear-gradient(135deg, rgba(59,130,246,.30), rgba(139,92,246,.24)) !important;
  border-color: rgba(96,165,250,.54) !important;
}

.add-pro-payment-grid {
  display: grid !important;
  grid-template-columns: 1.35fr 1fr 1fr !important;
  gap: 16px !important;
  align-items: stretch !important;
}

.add-pro-payment-grid > div,
.small-choice,
.vip-box {
  min-width: 0 !important;
  border-radius: 20px !important;
  padding: 16px !important;
  background: rgba(15,23,42,.50) !important;
  border: 1px solid rgba(148,163,184,.14) !important;
}

.pay-buttons {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 12px !important;
}

.pay {
  height: 44px !important;
  min-width: 98px !important;
  padding: 0 15px !important;
  border-radius: 14px !important;
  color: #dbeafe !important;
  font-weight: 950 !important;
  background: rgba(30,41,59,.78) !important;
  border: 1px solid rgba(148,163,184,.20) !important;
}

.pay.active {
  color: white !important;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
  border-color: transparent !important;
}

.small-choice {
  display: grid !important;
  gap: 10px !important;
}

.small-choice > span,
.vip-box > span:first-child {
  color: #f8fafc !important;
  font-weight: 950 !important;
  margin: 0 !important;
}

.small-choice label {
  height: 48px !important;
  padding: 0 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  border-radius: 16px !important;
  background: rgba(30,41,59,.64) !important;
  border: 1px solid rgba(148,163,184,.12) !important;
}

.vip-box {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 12px !important;
  color: #fbbf24 !important;
}

.vip-box > span:last-child {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
}

.add-pro-payment > label[data-i18n="notesOptional"] {
  display: block !important;
  margin-top: 16px !important;
  padding: 16px !important;
  border-radius: 20px !important;
  background: rgba(15,23,42,.50) !important;
  border: 1px solid rgba(148,163,184,.14) !important;
}

.form-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  margin-top: 24px !important;
}

.form-actions .btn {
  min-width: 180px !important;
  height: 50px !important;
  border-radius: 16px !important;
  justify-content: center !important;
  font-weight: 950 !important;
  font-size: 14px !important;
}

@media (max-width: 1180px) {
  .add-pro-grid,
  .add-pro-payment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .add-pro-form {
    padding: 18px !important;
  }
  .add-pro-grid,
  .add-pro-payment-grid,
  .payment-status-options {
    grid-template-columns: 1fr !important;
  }
  .add-pro-inline {
    grid-template-columns: 1fr !important;
  }
  .add-pro-inline button,
  .form-actions .btn {
    width: 100% !important;
  }
  .form-actions {
    flex-direction: column !important;
  }
}

/* Stock Accounts: one professional form */
.stock-one-form {
  display: grid !important;
  grid-template-columns: 1.15fr .85fr !important;
  gap: 18px !important;
  margin-bottom: 22px !important;
}

.stock-one-form .stock-card {
  margin: 0 !important;
  border-radius: 24px !important;
  padding: 22px !important;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.16), transparent 34%),
    linear-gradient(145deg, rgba(15,23,42,.96), rgba(24,35,56,.92)) !important;
  border: 1px solid rgba(148,163,184,.16) !important;
  box-shadow: 0 16px 46px rgba(0,0,0,.24) !important;
}

.stock-one-form .stock-card h2 {
  font-size: 21px !important;
  font-weight: 950 !important;
  margin-bottom: 8px !important;
}

.stock-one-form .stock-card p {
  color: #94a3b8 !important;
  margin-bottom: 16px !important;
}

.stock-one-form .stock-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.stock-one-form label {
  margin: 0 !important;
  padding: 13px !important;
  border-radius: 17px !important;
  background: rgba(15,23,42,.46) !important;
  border: 1px solid rgba(148,163,184,.12) !important;
  color: #dbeafe !important;
  font-weight: 900 !important;
}

.stock-one-form input,
.stock-one-form select,
.stock-one-form textarea {
  margin-top: 8px !important;
  height: 46px !important;
  border-radius: 14px !important;
  background: rgba(30,41,59,.78) !important;
  border: 1px solid rgba(148,163,184,.18) !important;
  color: #f8fafc !important;
}

.stock-one-form textarea {
  height: auto !important;
  min-height: 104px !important;
  padding: 14px !important;
}

.stock-one-form .btn {
  height: 48px !important;
  border-radius: 15px !important;
  font-weight: 950 !important;
  justify-content: center !important;
  margin-top: 14px !important;
}

@media (max-width: 1050px) {
  .stock-one-form {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  .stock-one-form .stock-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Grouped stock list: no duplicate services */
.stock-group-list {
  display: grid;
  gap: 14px;
  padding: 8px;
}

.stock-service-group {
  border: 1px solid rgba(148,163,184,.15);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(15,23,42,.92), rgba(30,41,59,.72));
  overflow: hidden;
  box-shadow: 0 14px 38px rgba(0,0,0,.22);
}

.stock-service-summary {
  width: 100%;
  border: 0;
  padding: 18px;
  background: transparent;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  text-align: left;
}

.stock-service-title {
  display: grid;
  gap: 6px;
}

.stock-service-title .service-brand-name {
  font-size: 18px !important;
  font-weight: 950 !important;
}

.stock-service-title p {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
}

.stock-service-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stock-service-meta b {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(59,130,246,.14);
  color: #bfdbfe;
  border: 1px solid rgba(96,165,250,.28);
  font-size: 12px;
}

.stock-group-accounts {
  padding: 0 18px 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 14px;
}

.stock-mini-account {
  border: 1px solid rgba(148,163,184,.13);
  border-radius: 18px;
  background: rgba(15,23,42,.58);
  padding: 14px;
}

.stock-mini-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stock-mini-top strong {
  color: #f8fafc;
}

.stock-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stock-mini-grid div {
  min-width: 0;
  padding: 10px;
  border-radius: 13px;
  background: rgba(30,41,59,.55);
  border: 1px solid rgba(148,163,184,.10);
}

.stock-mini-grid small {
  display: block;
  color: #94a3b8;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 5px;
  font-weight: 900;
}

.stock-mini-grid b {
  color: #e2e8f0;
  font-size: 12px;
  word-break: break-word;
}

.stock-mini-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 680px) {
  .stock-service-summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .stock-group-accounts,
  .stock-mini-grid {
    grid-template-columns: 1fr;
  }
}

/* Modal Copy button */
.demo-view-head {
  align-items: flex-start !important;
}

.demo-view-head > button {
  margin-left: 8px !important;
}

/* Custom payment filter dropdown for iPad/Safari */
.custom-pay-filter {
  position: relative;
  min-width: 155px;
  z-index: 50;
}

.custom-pay-filter-btn {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(51, 65, 85, .58);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.custom-pay-filter-btn:hover,
.custom-pay-filter.open .custom-pay-filter-btn {
  border-color: rgba(96, 165, 250, .55);
  background: rgba(30, 41, 59, .88);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .10);
}

.custom-pay-filter-btn b {
  color: #93c5fd;
  font-size: 16px;
}

.custom-pay-filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 100%;
  min-width: 190px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(15, 23, 42, .98);
  border: 1px solid rgba(148, 163, 184, .18);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .45);
  backdrop-filter: blur(14px);
  z-index: 9999;
}

.custom-pay-filter-menu.hidden {
  display: none !important;
}

.custom-pay-filter-menu button {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #e2e8f0;
  text-align: left;
  padding: 0 12px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.custom-pay-filter-menu button:hover {
  background: rgba(59, 130, 246, .18);
  color: #bfdbfe;
}

.filters .custom-pay-filter {
  width: 100%;
}

@media (max-width: 900px) {
  .custom-pay-filter-menu {
    left: 0;
    right: auto;
  }
}



/* Remove dark/theme controls from header */
#themeModeBtn,
#themeSelect,
#loginThemeBtn,
#themeLabel {
  display: none !important;
}

/* Professional compact Order View modal */
.order-view-modal {
  padding: 14px !important;
  align-items: center !important;
}

.order-view-card {
  width: min(760px, calc(100vw - 28px)) !important;
  max-height: 88vh !important;
  padding: 20px !important;
  border-radius: 22px !important;
}

.order-view-top {
  margin-bottom: 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(148, 163, 184, .12) !important;
}

.order-view-top h2 {
  font-size: 22px !important;
}

.order-view-top p {
  font-size: 13px !important;
}

.order-view-hero {
  padding: 16px !important;
  border-radius: 18px !important;
  margin-bottom: 14px !important;
  gap: 12px !important;
}

.order-view-avatar {
  width: 58px !important;
  height: 58px !important;
  border-radius: 17px !important;
  font-size: 26px !important;
}

.order-view-hero h3 {
  font-size: 20px !important;
  margin: 0 0 4px !important;
}

.order-view-hero p {
  font-size: 13px !important;
}

.order-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.order-box {
  padding: 12px !important;
  border-radius: 15px !important;
  min-height: auto !important;
}

.order-box span {
  font-size: 10px !important;
  margin-bottom: 6px !important;
}

.order-box strong {
  font-size: 13px !important;
  line-height: 1.35 !important;
}

.order-box-full {
  grid-column: 1 / -1 !important;
}

.copy-detail-btn {
  height: 42px !important;
  margin-top: 14px !important;
  border-radius: 14px !important;
  font-size: 13px !important;
}

.password-eye-btn {
  padding: 6px 9px !important;
  font-size: 11px !important;
}

/* Tablet/mobile */
@media (max-width: 780px) {
  .order-view-card {
    width: min(560px, calc(100vw - 20px)) !important;
    padding: 16px !important;
    border-radius: 20px !important;
  }

  .order-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  .order-view-hero {
    padding: 14px !important;
  }

  .order-view-avatar {
    width: 52px !important;
    height: 52px !important;
    font-size: 22px !important;
  }

  .order-view-hero h3 {
    font-size: 18px !important;
  }
}

@media (max-width: 520px) {
  .order-view-modal {
    padding: 8px !important;
    align-items: flex-start !important;
  }

  .order-view-card {
    width: calc(100vw - 16px) !important;
    max-height: 94vh !important;
    padding: 14px !important;
    margin-top: 8px !important;
    border-radius: 18px !important;
  }

  .order-view-top h2 {
    font-size: 19px !important;
  }

  .order-view-hero {
    display: grid !important;
    grid-template-columns: 48px 1fr auto !important;
    align-items: center !important;
    padding: 12px !important;
  }

  .order-view-avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 15px !important;
    font-size: 20px !important;
  }

  .order-grid {
    grid-template-columns: 1fr !important;
  }

  .order-box {
    padding: 11px !important;
  }
}

/* Ensure service filter includes custom service names and looks consistent */
#serviceFilter {
  min-width: 160px !important;
}

/* Latest customer row - yellow background */
#orders .latest-customer-row td {
  background: linear-gradient(90deg, rgba(245, 158, 11, .42), rgba(250, 204, 21, .20)) !important;
}

#orders .latest-customer-row td:first-child {
  border-left: 5px solid #facc15 !important;
}

#orders .latest-customer-row .new-order-badge {
  background: rgba(250, 204, 21, .18) !important;
  color: #fde68a !important;
  border: 1px solid rgba(250, 204, 21, .48) !important;
}

/* Dashboard Kurdish / English language switch */
.dashboard-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(15, 23, 42, .56);
  border: 1px solid rgba(148, 163, 184, .16);
}

.dashboard-lang-switch button {
  min-width: 86px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #cbd5e1;
  font-weight: 900;
  cursor: pointer;
}

.dashboard-lang-switch button.active,
.dashboard-lang-switch button:hover {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
}

/* Modern footer dark mode controls */
.modern-footer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  margin: 10px 0;
  border-radius: 18px;
  background: rgba(15, 23, 42, .58);
  border: 1px solid rgba(148, 163, 184, .16);
}

.modern-footer-controls button {
  flex: 1 1 auto;
  min-width: 72px;
  height: 38px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 13px;
  background: rgba(30, 41, 59, .72);
  color: #dbeafe;
  font-weight: 900;
  cursor: pointer;
}

.modern-footer-controls button:hover,
.modern-footer-controls button.active {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-color: transparent;
  color: #fff;
}

#footerDarkModeBtn {
  flex-basis: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.mode-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .14);
}

@media (max-width: 720px) {
  .dashboard-lang-switch {
    width: 100%;
    justify-content: center;
  }
  .dashboard-lang-switch button {
    flex: 1;
  }
}

/* Latest added customer/order must always be yellow */
#orders .latest-customer-row td,
#orders .latest-customer-row.payment-overdue-row td {
  background: linear-gradient(90deg, rgba(245, 158, 11, .55), rgba(250, 204, 21, .25)) !important;
}

#orders .latest-customer-row td:first-child,
#orders .latest-customer-row.payment-overdue-row td:first-child {
  border-left: 5px solid #facc15 !important;
}

#orders .latest-customer-row .status-badge,
#orders .latest-customer-row .badge {
  box-shadow: 0 0 0 1px rgba(250, 204, 21, .22) inset;
}

/* Final: newest added customer/order yellow */
#orders .latest-customer-row td,
#orders .latest-customer-row.payment-overdue-row td {
  background: linear-gradient(90deg, rgba(245, 158, 11, .55), rgba(250, 204, 21, .25)) !important;
}
#orders .latest-customer-row td:first-child {
  border-left: 5px solid #facc15 !important;
}

/* Customer Account Ready modal */
.customer-ready-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 6, 23, .72);
  backdrop-filter: blur(10px);
}

.customer-ready-modal.hidden {
  display: none !important;
}

.customer-ready-card {
  width: min(520px, 100%);
  border-radius: 24px;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.20), transparent 34%),
    linear-gradient(145deg, rgba(15,23,42,.98), rgba(24,35,56,.98));
  border: 1px solid rgba(148,163,184,.18);
  box-shadow: 0 24px 70px rgba(0,0,0,.50);
}

.customer-ready-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.customer-ready-head h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 22px;
}

.customer-ready-head p {
  margin: 6px 0 0;
  color: #94a3b8;
}

.customer-ready-head button,
.customer-ready-actions .btn {
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(51,65,85,.72);
  color: #e2e8f0;
  border-radius: 14px;
  padding: 11px 14px;
  font-weight: 900;
  cursor: pointer;
}

.customer-ready-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.customer-ready-grid div,
.customer-ready-card label {
  background: rgba(15,23,42,.55);
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 16px;
  padding: 13px;
}

.customer-ready-grid span,
.customer-ready-card label {
  color: #94a3b8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 900;
}

.customer-ready-grid strong {
  display: block;
  margin-top: 7px;
  color: #f8fafc;
  font-size: 14px;
}

.customer-ready-card label {
  display: block;
  margin-top: 10px;
}

.customer-ready-card input {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  border-radius: 13px;
  border: 1px solid rgba(96,165,250,.25);
  background: rgba(15,23,42,.76);
  color: #e2e8f0;
  padding: 0 12px;
}

.customer-ready-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.customer-ready-actions .primary {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  border-color: transparent;
}

@media (max-width: 520px) {
  .customer-ready-grid,
  .customer-ready-actions {
    grid-template-columns: 1fr;
  }
}

/* Bulk buttons only */
.trash-bulk-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
  align-items: center;
}
.trash-bulk-actions button {
  height: 42px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 13px;
  background: rgba(51,65,85,.72);
  color: #e2e8f0;
  font-weight: 900;
  padding: 0 16px;
  cursor: pointer;
}
.trash-bulk-actions button:hover {
  background: rgba(59,130,246,.18);
  border-color: rgba(96,165,250,.42);
}
.trash-bulk-actions button.danger {
  background: rgba(239,68,68,.14);
  border-color: rgba(239,68,68,.34);
  color: #fecaca;
}
.trash-check {
  width: 20px;
  height: 20px;
  accent-color: #3b82f6;
  cursor: pointer;
}

/* Trash bulk buttons */
.trash-bulk-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
  align-items: center;
}
.trash-bulk-actions button {
  height: 42px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 13px;
  background: rgba(51,65,85,.72);
  color: #e2e8f0;
  font-weight: 900;
  padding: 0 16px;
  cursor: pointer;
}
.trash-bulk-actions button.danger {
  background: rgba(239,68,68,.14);
  border-color: rgba(239,68,68,.34);
  color: #fecaca;
}
.trash-check {
  width: 20px;
  height: 20px;
  accent-color: #3b82f6;
  cursor: pointer;
}



/* Trash Select All / Delete Selected toolbar */
.trash-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 10px;
}

.trash-tool-btn {
  height: 42px;
  border: 1px solid rgba(148, 163, 184, .20);
  border-radius: 13px;
  background: rgba(51, 65, 85, .72);
  color: #e2e8f0;
  font-weight: 900;
  padding: 0 16px;
  cursor: pointer;
  transition: .2s ease;
}

.trash-tool-btn:hover {
  background: rgba(59, 130, 246, .18);
  border-color: rgba(96, 165, 250, .45);
}

.trash-tool-btn.danger {
  color: #fecaca;
  background: rgba(239, 68, 68, .14);
  border-color: rgba(239, 68, 68, .35);
}

.trash-tool-btn.danger:hover {
  background: rgba(239, 68, 68, .22);
}

.trash-row-check {
  width: 22px;
  height: 22px;
  accent-color: #3b82f6;
  cursor: pointer;
}

.compact-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}


/* Working Trash toolbar */
.trash-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 10px;
}
.trash-tool-btn {
  height: 42px;
  border: 1px solid rgba(148, 163, 184, .20);
  border-radius: 13px;
  background: rgba(51, 65, 85, .72);
  color: #e2e8f0;
  font-weight: 900;
  padding: 0 16px;
  cursor: pointer;
}
.trash-tool-btn.danger {
  color: #fecaca;
  background: rgba(239, 68, 68, .14);
  border-color: rgba(239, 68, 68, .35);
}
.trash-row-check {
  width: 22px;
  height: 22px;
  accent-color: #3b82f6;
  cursor: pointer;
}
.compact-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}


/* REAL working Trash toolbar */
.trash-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 10px;
}
.trash-tool-btn {
  height: 42px;
  border: 1px solid rgba(148, 163, 184, .20);
  border-radius: 13px;
  background: rgba(51, 65, 85, .72);
  color: #e2e8f0;
  font-weight: 900;
  padding: 0 16px;
  cursor: pointer;
}
.trash-tool-btn.danger {
  color: #fecaca;
  background: rgba(239, 68, 68, .14);
  border-color: rgba(239, 68, 68, .35);
}
.trash-row-check {
  width: 22px;
  height: 22px;
  accent-color: #3b82f6;
  cursor: pointer;
}
.compact-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}


/* Trash checkbox inside ID column - no extra Select column */
.trash-id-cell {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.trash-id-cell .trash-row-check {
  width: 22px;
  height: 22px;
  accent-color: #3b82f6;
  cursor: pointer;
  flex: 0 0 auto;
}

.trash-row-check {
  width: 22px;
  height: 22px;
  accent-color: #3b82f6;
  cursor: pointer;
}

/* FINAL CLEAN Trash: one checkbox only inside ID column */
#trash th:first-child,
#trash td:first-child {
  width: 170px;
}

.trash-id-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trash-id-cell .trash-row-check,
.trash-row-check {
  width: 22px;
  height: 22px;
  accent-color: #3b82f6;
  cursor: pointer;
  flex: 0 0 auto;
}

.trash-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 10px;
}

.trash-tool-btn {
  height: 42px;
  border: 1px solid rgba(148, 163, 184, .20);
  border-radius: 13px;
  background: rgba(51, 65, 85, .72);
  color: #e2e8f0;
  font-weight: 900;
  padding: 0 16px;
  cursor: pointer;
}

.trash-tool-btn.danger {
  color: #fecaca;
  background: rgba(239, 68, 68, .14);
  border-color: rgba(239, 68, 68, .35);
}

.compact-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* FINAL DELETE EXTRA FIRST CHECK COLUMN */
#trash table thead tr th:nth-child(6) {
  display: none !important;
}

#trash table tbody tr td:first-child:has(input.trash-row-check:only-child) {
  display: none !important;
}

#trash table tbody tr:has(td:nth-child(6)) td:first-child {
  display: none !important;
}

#trash table thead th:first-child,
#trash table tbody td:first-child {
  width: 170px;
}

.trash-id-cell {
  min-width: 170px;
}

.trash-id-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  white-space: nowrap !important;
  margin: 0 !important;
  color: inherit !important;
  font-weight: inherit !important;
}

.trash-row-check {
  width: 22px !important;
  height: 22px !important;
  accent-color: #3b82f6;
  cursor: pointer;
  flex: 0 0 auto;
}

/* FINAL: Stock Trash + Trash Select All/Delete All */
.trash-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 10px;
}

.trash-tool-btn {
  height: 42px;
  border: 1px solid rgba(148, 163, 184, .20);
  border-radius: 13px;
  background: rgba(51, 65, 85, .72);
  color: #e2e8f0;
  font-weight: 900;
  padding: 0 16px;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.trash-tool-btn.danger,
.trash-bulk-actions button.danger {
  color: #fecaca;
  background: rgba(239, 68, 68, .14);
  border-color: rgba(239, 68, 68, .35);
}

.trash-id-cell {
  min-width: 170px;
}

.trash-id-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  white-space: nowrap !important;
  margin: 0 !important;
  color: inherit !important;
  font-weight: inherit !important;
}

.trash-row-check,
.stock-trash-row-check {
  width: 22px !important;
  height: 22px !important;
  accent-color: #3b82f6;
  cursor: pointer;
  flex: 0 0 auto;
}



/* Payment status edit fix */
.payment-status-chip { cursor: pointer; }
.payment-status-chip input[type="radio"] { pointer-events: none; }
.payment-status-chip.active {
  border-color: rgba(96, 165, 250, .75) !important;
  background: linear-gradient(135deg, rgba(59,130,246,.28), rgba(139,92,246,.28)) !important;
}

/* Stock Accounts + Trash bulk buttons */
.trash-toolbar,
.stock-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 10px;
}

.trash-tool-btn {
  height: 42px;
  border: 1px solid rgba(148, 163, 184, .20);
  border-radius: 13px;
  background: rgba(51, 65, 85, .72);
  color: #e2e8f0;
  font-weight: 900;
  padding: 0 16px;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.trash-tool-btn.danger {
  color: #fecaca;
  background: rgba(239, 68, 68, .14);
  border-color: rgba(239, 68, 68, .35);
}

.trash-id-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

.stock-row-check,
.trash-row-check {
  width: 22px !important;
  height: 22px !important;
  accent-color: #3b82f6;
  cursor: pointer;
}

/* REAL FIX styles for Trash and Stock Trash */
.trash-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 10px;
}
.trash-tool-btn {
  height: 42px;
  border: 1px solid rgba(148, 163, 184, .20);
  border-radius: 13px;
  background: rgba(51, 65, 85, .72);
  color: #e2e8f0;
  font-weight: 900;
  padding: 0 16px;
  cursor: pointer !important;
  pointer-events: auto !important;
}
.trash-tool-btn.danger {
  color: #fecaca;
  background: rgba(239, 68, 68, .14);
  border-color: rgba(239, 68, 68, .35);
}
.trash-id-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  white-space: nowrap !important;
  margin: 0 !important;
}
.trash-row-check,
.stock-trash-row-check {
  width: 22px !important;
  height: 22px !important;
  accent-color: #3b82f6;
  cursor: pointer;
}
.compact-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}



/* Login fix */
.hidden { display: none !important; }
#loginBtn {
  cursor: pointer !important;
  pointer-events: auto !important;
}

/* JAKKRAW CLEAN WORKING */
#loginPage { display:none !important; }
#app { display:grid !important; }
.hidden { display:none !important; }
.page { display:none; }
.page.active-page { display:block; }
button, .btn, .nav-btn, .row-action-btn, .trash-tool-btn { pointer-events:auto !important; cursor:pointer !important; }
.trash-toolbar,.stock-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0 10px}
.trash-tool-btn{height:42px;border:1px solid rgba(148,163,184,.2);border-radius:13px;background:rgba(51,65,85,.72);color:#e2e8f0;font-weight:900;padding:0 16px}
.trash-tool-btn.danger{color:#fecaca;background:rgba(239,68,68,.14);border-color:rgba(239,68,68,.35)}
.trash-id-wrap{display:inline-flex!important;align-items:center!important;gap:12px!important;white-space:nowrap!important;margin:0!important}
.stock-row-check,.stock-trash-row-check,.trash-row-check{width:22px!important;height:22px!important;accent-color:#3b82f6;cursor:pointer}
.compact-actions{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.row-action-btn{border:1px solid rgba(148,163,184,.2);border-radius:8px;background:rgba(51,65,85,.6);color:#e2e8f0;padding:8px 10px}
.row-action-btn.danger{color:#fecaca;background:rgba(239,68,68,.16)}
.service-brand{display:inline-flex;align-items:center;gap:8px}
.service-icon{width:28px;height:28px;border-radius:8px;display:inline-grid;place-items:center;background:rgba(59,130,246,.18);font-size:11px;font-weight:900}



/* Payment filter fixed */
.payment-badge{
  display:inline-flex;
  border-radius:999px;
  padding:5px 10px;
  font-size:12px;
  font-weight:800;
  border:1px solid rgba(148,163,184,.25);
}
.payment-paid{color:#86efac;background:rgba(34,197,94,.14);border-color:rgba(34,197,94,.35)}
.payment-unpaid{color:#fecaca;background:rgba(239,68,68,.14);border-color:rgba(239,68,68,.35)}
.payment-pending{color:#fde68a;background:rgba(245,158,11,.14);border-color:rgba(245,158,11,.35)}

/* Service logo from items icon folder */
.service-brand{
  display:inline-flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
}
.service-logo-img{
  width:24px;
  height:24px;
  border-radius:6px;
  object-fit:contain;
  background:rgba(255,255,255,.06);
  flex:0 0 auto;
}
#orders .table-wrap{ overflow-x:auto; }
#orders table{ min-width:1450px; table-layout:auto; }
#orders th,#orders td{ white-space:nowrap; vertical-align:middle; }
#orders th:nth-child(1),#orders td:nth-child(1){ min-width:105px; }
#orders th:nth-child(2),#orders td:nth-child(2){ min-width:170px; }
#orders th:nth-child(3),#orders td:nth-child(3){ min-width:135px; }
#orders th:nth-child(4),#orders td:nth-child(4){ min-width:145px; }
#orders th:nth-child(12),#orders td:nth-child(12){ min-width:190px; }

/* FINAL Orders table and service logos */
#orders table th,
#orders table td{
  display: table-cell !important;
  white-space: nowrap;
  vertical-align: middle;
}

#orders .table-wrap{
  overflow-x: auto;
}

#orders table{
  min-width: 1500px;
  table-layout: auto;
}

#orders th:nth-child(1), #orders td:nth-child(1){ min-width: 105px; }
#orders th:nth-child(2), #orders td:nth-child(2){ min-width: 180px; }
#orders th:nth-child(3), #orders td:nth-child(3){ min-width: 140px; }
#orders th:nth-child(4), #orders td:nth-child(4){ min-width: 160px; }
#orders th:nth-child(12), #orders td:nth-child(12){ min-width: 210px; }

.service-brand{
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
}

.service-logo-img{
  display: inline-block !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  border-radius: 6px !important;
  object-fit: contain !important;
  background: rgba(255,255,255,.08) !important;
}

.stat-line{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid rgba(148,163,184,.12);
}

/* Dashboard clickable cards */
.dashboard-click-card{
  cursor:pointer !important;
  transition:transform .15s ease, border-color .15s ease;
}
.dashboard-click-card:hover{
  transform:translateY(-2px);
  border-color:rgba(96,165,250,.55) !important;
}

/* Stock Accounts card design */
#stock table thead{
  display: table-header-group;
}

#stockBody .stock-service-row > td{
  padding: 14px 24px !important;
  background: transparent !important;
}

.stock-service-card{
  border:1px solid rgba(148,163,184,.14);
  border-radius:24px;
  background:linear-gradient(135deg,rgba(15,23,42,.72),rgba(30,41,59,.50));
  box-shadow:0 18px 45px rgba(0,0,0,.18);
  padding:22px;
}

.stock-service-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.stock-service-title{
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:22px;
  font-weight:900;
}

.stock-service-title .service-brand{
  font-size:22px;
  font-weight:900;
}

.stock-service-sub{
  color:#94a3b8;
  font-size:14px;
  font-weight:600;
}

.stock-service-actions{
  display:flex;
  align-items:center;
  gap:12px;
}

.stock-available-pill,
.stock-status-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  padding:9px 13px;
  font-weight:900;
  color:#6ee7b7;
  background:rgba(16,185,129,.13);
  border:1px solid rgba(16,185,129,.35);
}

.stock-open-btn{
  border:1px solid rgba(59,130,246,.38);
  border-radius:18px;
  padding:11px 22px;
  color:#dbeafe;
  background:rgba(37,99,235,.18);
  font-weight:900;
  cursor:pointer;
}

.stock-account-grid{
  margin-top:22px;
  display:grid;
  grid-template-columns:repeat(3,minmax(250px,1fr));
  gap:18px;
}

.stock-account-grid.hidden{
  display:none !important;
}

.stock-account-card{
  border:1px solid rgba(148,163,184,.14);
  border-radius:18px;
  background:rgba(15,23,42,.62);
  padding:18px;
}

.stock-account-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:16px;
  font-size:18px;
}

.stock-info-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.stock-info-grid div{
  border:1px solid rgba(148,163,184,.10);
  border-radius:13px;
  background:rgba(30,41,59,.48);
  padding:13px;
}

.stock-info-grid small{
  display:block;
  color:#94a3b8;
  text-transform:uppercase;
  letter-spacing:.09em;
  font-size:11px;
  margin-bottom:8px;
}

.stock-info-grid b{
  color:#e5e7eb;
  font-size:14px;
  word-break:break-word;
}

.stock-card-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:16px;
}

@media (max-width: 1100px){
  .stock-account-grid{ grid-template-columns:repeat(2,minmax(220px,1fr)); }
}

@media (max-width: 720px){
  .stock-service-head{ align-items:flex-start; flex-direction:column; }
  .stock-service-actions{ width:100%; justify-content:space-between; }
  .stock-account-grid{ grid-template-columns:1fr; }
}

/* Stock Accounts layout fix: no Open button, no overlap */
.stock-open-btn{
  display:none !important;
}

#stockBody .stock-service-row > td{
  padding:16px 28px !important;
  overflow:visible !important;
}

.stock-service-card{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}

.stock-service-head{
  min-height:64px;
}

.stock-account-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap:18px !important;
  width:100% !important;
  box-sizing:border-box !important;
  align-items:start !important;
}

.stock-account-card{
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}

.stock-info-grid{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  gap:12px !important;
  width:100% !important;
}

.stock-info-grid .stock-field,
.stock-info-grid div{
  min-width:0 !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}

.stock-info-grid b{
  display:block !important;
  max-width:100% !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}

.stock-service-actions{
  flex-shrink:0 !important;
}

@media (max-width: 850px){
  .stock-account-grid{
    grid-template-columns:1fr !important;
  }
  .stock-info-grid{
    grid-template-columns:1fr !important;
  }
}

/* Stock group click open/close */
.stock-service-head{
  width:100% !important;
  border:0 !important;
  background:rgba(15,23,42,.18) !important;
  color:inherit !important;
  cursor:pointer !important;
  text-align:left !important;
  border-radius:16px !important;
  padding:18px !important;
}

.stock-service-head:hover{
  background:rgba(37,99,235,.13) !important;
}

.stock-chevron{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:12px;
  background:rgba(51,65,85,.7);
  color:#dbeafe;
  font-weight:900;
}

.stock-account-grid.hidden{
  display:none !important;
}

.stock-account-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap:18px !important;
  width:100% !important;
  box-sizing:border-box !important;
  align-items:start !important;
}

.stock-info-grid{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  gap:12px !important;
}

.stock-info-grid b{
  display:block !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}

/* Stock group select checkbox */
.stock-service-head{
  display:flex !important;
  align-items:center !important;
  gap:16px !important;
  width:100% !important;
  padding:18px !important;
  border-radius:18px !important;
  background:rgba(15,23,42,.18) !important;
}

.stock-service-toggle{
  flex:1 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:18px !important;
  border:0 !important;
  background:transparent !important;
  color:inherit !important;
  cursor:pointer !important;
  text-align:left !important;
  padding:0 !important;
}

.stock-group-select{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:28px !important;
  height:28px !important;
  flex:0 0 28px !important;
  cursor:pointer !important;
}

.stock-group-select input{
  width:22px !important;
  height:22px !important;
  accent-color:#3b82f6 !important;
  cursor:pointer !important;
}

.stock-service-row.group-selected .stock-service-card{
  border-color:rgba(59,130,246,.65) !important;
  box-shadow:0 0 0 1px rgba(59,130,246,.24), 0 18px 45px rgba(0,0,0,.18) !important;
}

.stock-service-row.group-selected .stock-service-head{
  background:rgba(37,99,235,.14) !important;
}

/* Custom service inputs */
.custom-service-input{
  margin-top:10px !important;
  width:100% !important;
  height:48px !important;
  border-radius:14px !important;
  border:1px solid rgba(96,165,250,.35) !important;
  background:rgba(15,23,42,.74) !important;
  color:#e5e7eb !important;
  padding:0 14px !important;
  font-weight:800 !important;
}
.custom-service-input.hidden{
  display:none !important;
}



/* Add Customer Custom Service input */
.custom-service-input{
  display:block;
  margin-top:12px !important;
  width:100% !important;
  height:52px !important;
  border-radius:14px !important;
  border:1px solid rgba(96,165,250,.45) !important;
  background:rgba(15,23,42,.82) !important;
  color:#e5e7eb !important;
  padding:0 16px !important;
  font-weight:800 !important;
  outline:none !important;
}
.custom-service-input:focus{
  border-color:#60a5fa !important;
  box-shadow:0 0 0 3px rgba(96,165,250,.16) !important;
}
.custom-service-input.hidden{
  display:none !important;
}



/* ===== Full Style: Add Customer Custom Service ===== */
#customServiceBox.custom-service-box{
  position: relative !important;
  display: block;
  grid-column: span 1;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 14px !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at top left, rgba(96,165,250,.16), transparent 42%),
    linear-gradient(145deg, rgba(15,23,42,.68), rgba(30,41,59,.54)) !important;
  border: 1px solid rgba(96,165,250,.30) !important;
  color: #dbeafe !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: .01em !important;
  box-shadow: 0 14px 34px rgba(2,6,23,.18) !important;
}

#customServiceBox.custom-service-box.hidden{
  display: none !important;
}

#customServiceBox.custom-service-box::before{
  content: "CUSTOM";
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(59,130,246,.18);
  border: 1px solid rgba(96,165,250,.28);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
}

#customService.custom-service-input,
#customServiceBox #customService{
  width: 100% !important;
  height: 52px !important;
  margin-top: 10px !important;
  padding: 0 16px !important;
  border-radius: 16px !important;
  background: rgba(15,23,42,.86) !important;
  border: 1px solid rgba(96,165,250,.42) !important;
  color: #f8fafc !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  outline: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important;
}

#customService.custom-service-input::placeholder,
#customServiceBox #customService::placeholder{
  color: #64748b !important;
  font-weight: 700 !important;
}

#customService.custom-service-input:focus,
#customServiceBox #customService:focus{
  border-color: rgba(96,165,250,.86) !important;
  box-shadow:
    0 0 0 4px rgba(59,130,246,.16),
    inset 0 1px 0 rgba(255,255,255,.05) !important;
}

@media (max-width: 720px){
  #customServiceBox.custom-service-box{
    grid-column: 1 / -1 !important;
  }
}



/* ===== Permanent Latest Customer Yellow Highlight ===== */
#ordersBody tr.latest-customer-row,
#ordersBody tr.latest-customer-row td,
#ordersBody tr.new-order-row,
#ordersBody tr.new-order-row td{
  background: linear-gradient(90deg, rgba(255, 213, 79, .46), rgba(255, 193, 7, .24)) !important;
  color: #fff7cc !important;
}

#ordersBody tr.latest-customer-row td:first-child,
#ordersBody tr.new-order-row td:first-child{
  border-left: 6px solid #ffd43b !important;
}

#ordersBody tr.latest-customer-row:hover,
#ordersBody tr.latest-customer-row:hover td,
#ordersBody tr.new-order-row:hover,
#ordersBody tr.new-order-row:hover td{
  background: linear-gradient(90deg, rgba(255, 213, 79, .60), rgba(255, 193, 7, .34)) !important;
}

#ordersBody .new-order-badge{
  display:inline-flex !important;
  align-items:center !important;
  margin-left:8px !important;
  padding:3px 8px !important;
  border-radius:999px !important;
  background:rgba(250,204,21,.24) !important;
  border:1px solid rgba(250,204,21,.60) !important;
  color:#fde68a !important;
  font-size:10px !important;
  font-weight:950 !important;
  letter-spacing:.05em !important;
  text-transform:uppercase !important;
}



/* ===== Professional View Customer Modal ===== */
.order-view-modal{
  position:fixed !important;
  inset:0 !important;
  z-index:10000 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:22px !important;
  background:rgba(2,6,23,.78) !important;
  backdrop-filter:blur(10px) !important;
}
.order-view-modal.hidden{ display:none !important; }

.order-view-card{
  width:min(1040px,100%) !important;
  max-height:90vh !important;
  overflow:auto !important;
  border-radius:28px !important;
  padding:28px !important;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.24), transparent 33%),
    linear-gradient(145deg, rgba(15,23,42,.98), rgba(17,24,39,.98)) !important;
  border:1px solid rgba(148,163,184,.18) !important;
  box-shadow:0 28px 90px rgba(0,0,0,.58) !important;
}

.view-hero{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:18px;
  align-items:center;
  margin-bottom:22px;
  padding:18px;
  border-radius:22px;
  background:linear-gradient(135deg, rgba(59,130,246,.16), rgba(139,92,246,.12));
  border:1px solid rgba(96,165,250,.16);
}
.view-avatar{
  width:74px;
  height:74px;
  border-radius:22px;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:30px;
  font-weight:950;
  background:linear-gradient(135deg,#3b82f6,#8b5cf6);
  box-shadow:0 12px 34px rgba(59,130,246,.28);
}
.view-hero h3{ margin:0; color:#f8fafc; font-size:24px; font-weight:950; }
.view-hero p{ margin:5px 0 0; color:#cbd5e1; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.view-status-area{ display:flex; flex-direction:column; gap:9px; align-items:flex-end; }

.view-section-title{
  margin:18px 0 12px;
  color:#bfdbfe;
  font-weight:950;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-size:12px;
}
.view-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:14px;
}
.view-box{
  border-radius:18px;
  padding:16px;
  background:rgba(30,41,59,.70);
  border:1px solid rgba(148,163,184,.12);
  min-width:0;
}
.view-box.account-box{
  background:linear-gradient(145deg, rgba(21,128,61,.16), rgba(30,41,59,.76));
  border-color:rgba(34,197,94,.20);
}
.view-box span{
  display:block;
  color:#94a3b8;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.07em;
  margin-bottom:8px;
}
.view-box strong{
  display:block;
  color:#f8fafc;
  font-size:15px;
  line-height:1.5;
  word-break:break-word;
}
.order-box-full{ grid-column:1 / -1; }

.password-view-box{
  position:relative;
  padding-right:82px;
}
.view-mini-btn{
  position:absolute;
  right:12px;
  bottom:14px;
  border:1px solid rgba(96,165,250,.32);
  background:rgba(59,130,246,.12);
  color:#bfdbfe;
  border-radius:10px;
  padding:7px 10px;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}
.view-payment{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:6px 11px;
  font-size:12px;
  font-weight:950;
  border:1px solid rgba(148,163,184,.18);
}
.view-payment.payment-paid{ color:#86efac; background:rgba(34,197,94,.15); border-color:rgba(34,197,94,.35); }
.view-payment.payment-unpaid{ color:#fecaca; background:rgba(239,68,68,.15); border-color:rgba(239,68,68,.35); }
.view-payment.payment-pending{ color:#fde68a; background:rgba(245,158,11,.15); border-color:rgba(245,158,11,.35); }

.view-actions{
  display:flex;
  gap:12px;
  justify-content:flex-end;
  margin-top:22px;
  flex-wrap:wrap;
}
.view-actions button{
  min-width:140px;
  height:46px;
  border:0;
  border-radius:15px;
  color:#fff;
  font-weight:950;
  cursor:pointer;
  background:linear-gradient(135deg,#3b82f6,#8b5cf6);
}
.view-actions button.danger{
  background:linear-gradient(135deg,#ef4444,#dc2626);
}

@media(max-width:700px){
  .order-view-card{ padding:18px !important; border-radius:22px !important; }
  .view-hero{ grid-template-columns:1fr; }
  .view-status-area{ align-items:flex-start; }
  .view-actions{ flex-direction:column; }
  .view-actions button{ width:100%; }
}



/* ===== Compact Professional View Modals - All Sections ===== */
.order-view-card{
  width:min(900px, calc(100vw - 28px)) !important;
  max-height:88vh !important;
  padding:22px !important;
  border-radius:24px !important;
}

.order-view-top{
  margin-bottom:14px !important;
  padding-bottom:12px !important;
}

.order-view-top h2,
#viewModalTitle{
  font-size:20px !important;
  line-height:1.2 !important;
}

.order-view-top p,
#viewModalSubtitle{
  font-size:12px !important;
}

.view-hero.compact{
  grid-template-columns:auto 1fr auto !important;
  gap:14px !important;
  padding:14px !important;
  border-radius:18px !important;
  margin-bottom:16px !important;
}

.view-avatar{
  width:56px !important;
  height:56px !important;
  border-radius:17px !important;
  font-size:23px !important;
}

.view-hero h3{
  font-size:20px !important;
}

.view-hero p{
  font-size:13px !important;
}

.view-section-title{
  margin:14px 0 9px !important;
  font-size:11px !important;
}

.view-grid.compact-grid,
.view-grid{
  grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)) !important;
  gap:10px !important;
}

.view-box{
  border-radius:14px !important;
  padding:12px !important;
}

.view-box span{
  font-size:10px !important;
  margin-bottom:6px !important;
}

.view-box strong{
  font-size:13px !important;
}

.password-view-box{
  padding-right:74px !important;
}

.view-mini-btn{
  right:10px !important;
  bottom:11px !important;
  padding:6px 9px !important;
  font-size:11px !important;
}

.view-actions{
  margin-top:16px !important;
  gap:9px !important;
}

.view-actions button{
  min-width:118px !important;
  height:40px !important;
  border-radius:12px !important;
  font-size:13px !important;
}

.stock-avatar{
  background:linear-gradient(135deg,#10b981,#3b82f6) !important;
}

.trash-avatar{
  background:linear-gradient(135deg,#ef4444,#f97316) !important;
}

.stock-hero{
  background:linear-gradient(135deg, rgba(16,185,129,.13), rgba(59,130,246,.10)) !important;
}

.trash-hero{
  background:linear-gradient(135deg, rgba(239,68,68,.14), rgba(249,115,22,.09)) !important;
}

@media(max-width:700px){
  .order-view-card{ padding:16px !important; }
  .view-hero.compact{ grid-template-columns:1fr !important; }
  .view-status-area{ align-items:flex-start !important; }
  .view-grid.compact-grid,
  .view-grid{ grid-template-columns:1fr !important; }
}


/* ===== Full bilingual KU/EN polish ===== */
.dashboard-lang-switch button.active{
  background: linear-gradient(135deg,#3b82f6,#8b5cf6) !important;
  color:#fff !important;
  border-color:transparent !important;
}
body.rtl{ direction:rtl; text-align:right; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif; }
body.rtl .app{ direction:rtl; }
body.rtl .sidebar{ border-right:0 !important; border-left:1px solid rgba(148,163,184,.12) !important; }
body.rtl .main{ direction:rtl; }
body.rtl .topbar, body.rtl .panel-head, body.rtl .page-title, body.rtl .brand, body.rtl .user-card{ flex-direction:row-reverse; }
body.rtl .top-actions, body.rtl .dashboard-lang-switch{ direction:rtl; }
body.rtl th, body.rtl td{ text-align:right; }
body.rtl .nav-btn{ text-align:right; }
body.rtl input, body.rtl textarea, body.rtl select{ text-align:right; }
body.rtl .compact-actions, body.rtl .view-actions, body.rtl .stock-card-actions{ direction:rtl; }
body.rtl .order-view-card, body.rtl .sold-account-box{ direction:rtl; text-align:right; }
body.rtl .order-view-top, body.rtl .view-hero{ direction:rtl; }
body.rtl .view-status-area{ align-items:flex-start; }
body.rtl .new-order-badge{ margin-left:0 !important; margin-right:8px !important; }
body.rtl .service-brand{ direction:rtl; }
body.rtl .payment-status-options, body.rtl .pay-buttons{ direction:rtl; }



/* ===== KU/EN no-mix language styles ===== */
.dashboard-lang-switch button.active-lang,#langKuBtn.active-lang,#langEnBtn.active-lang{background:linear-gradient(135deg,#3b82f6,#8b5cf6)!important;color:#fff!important;border-color:rgba(96,165,250,.55)!important}
body.rtl{direction:rtl;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,Arial,sans-serif}
body.rtl .main,body.rtl .panel,body.rtl .form-panel,body.rtl .card,body.rtl input,body.rtl select,body.rtl textarea,body.rtl table{direction:rtl;text-align:right}
body.rtl .topbar,body.rtl .panel-head,body.rtl .page-title,body.rtl .stock-service-toggle,body.rtl .stock-service-head{direction:rtl}
body.rtl .top-actions,body.rtl .dashboard-lang-switch,body.rtl .compact-actions,body.rtl .stock-card-actions,body.rtl .view-actions{direction:rtl}
body.rtl .sidebar{direction:rtl}
body.rtl .nav-btn{text-align:right}
body.rtl th,body.rtl td{text-align:right}
body.rtl .service-brand{direction:rtl}
body.rtl .new-order-badge{margin-left:0!important;margin-right:8px!important}



/* Add Customer labels safe layout */
.pro-form-grid label,
.add-pro-grid label,
.form-grid label{
  display:block !important;
}
.pro-form-grid label > input,
.pro-form-grid label > select,
.pro-form-grid label > textarea,
.add-pro-grid label > input,
.add-pro-grid label > select,
.add-pro-grid label > textarea,
.form-grid label > input,
.form-grid label > select,
.form-grid label > textarea{
  margin-top:10px !important;
}



/* Custom Plan Days hidden until Plan = Custom */
#customPlanBox.hidden{
  display:none !important;
}
#customPlanBox{
  display:block;
}







/* ===== Logo + Partner Accounting PRO ===== */
.brand img.brand-logo,
.login-card img.login-logo,
img.brand-logo,
img.login-logo{
  display:block !important;
}

.brand-logo{
  width:58px !important;
  height:58px !important;
  object-fit:cover !important;
  border-radius:16px !important;
  box-shadow:0 10px 30px rgba(14,165,233,.22), 0 0 0 1px rgba(250,204,21,.22) !important;
  margin-right:12px !important;
  flex:0 0 auto !important;
}

.login-logo{
  width:96px !important;
  height:96px !important;
  object-fit:cover !important;
  border-radius:24px !important;
  margin:0 auto 16px !important;
  box-shadow:0 14px 44px rgba(14,165,233,.25), 0 0 0 1px rgba(250,204,21,.26) !important;
}

.partner-finance-panel{
  margin-bottom:24px !important;
  border-color:rgba(16,185,129,.20) !important;
  background:radial-gradient(circle at top left, rgba(16,185,129,.10), transparent 35%), rgba(15,23,42,.82) !important;
}

.finance-summary-grid{
  display:grid !important;
  grid-template-columns:repeat(4,1fr) !important;
  gap:14px !important;
  margin:18px 0 !important;
}

.finance-card{
  padding:18px !important;
  border-radius:18px !important;
  background:rgba(30,41,59,.62) !important;
  border:1px solid rgba(148,163,184,.14) !important;
}

.finance-card span{
  display:block !important;
  color:#94a3b8 !important;
  font-size:12px !important;
  font-weight:900 !important;
  text-transform:uppercase !important;
  letter-spacing:.06em !important;
  margin-bottom:8px !important;
}

.finance-card strong{
  color:#f8fafc !important;
  font-size:22px !important;
  font-weight:950 !important;
  background:none !important;
  -webkit-text-fill-color:initial !important;
}

.partner-invest-form{
  display:grid !important;
  grid-template-columns:1.2fr 1fr auto !important;
  gap:12px !important;
  align-items:end !important;
  padding:14px !important;
  border-radius:18px !important;
  background:rgba(2,6,23,.22) !important;
  border:1px solid rgba(148,163,184,.12) !important;
}

.partner-finance-table table{ min-width:900px !important; }

.partner-stat-pro{
  display:grid !important;
  grid-template-columns:1fr auto !important;
  gap:8px 14px !important;
  align-items:center !important;
  padding:14px !important;
  margin:10px 0 !important;
  border-radius:16px !important;
  background:rgba(30,41,59,.55) !important;
  border:1px solid rgba(148,163,184,.14) !important;
}

.partner-stat-pro b{ color:#f8fafc !important; font-size:15px !important; }
.partner-stat-pro span{ display:block !important; color:#94a3b8 !important; font-size:12px !important; margin-top:2px !important; }
.partner-stat-pro strong{ color:#86efac !important; font-size:15px !important; }
.partner-stat-pro small{ grid-column:1 / -1 !important; color:#cbd5e1 !important; font-size:12px !important; }

.finance-profit{ color:#86efac !important; font-weight:900 !important; }
.finance-balance{ color:#bfdbfe !important; font-weight:900 !important; }
.finance-negative{ color:#fecaca !important; font-weight:900 !important; }

#customPartnerBox.hidden{ display:none !important; }

@media(max-width:1100px){
  .finance-summary-grid{grid-template-columns:repeat(2,1fr)!important}
  .partner-invest-form{grid-template-columns:1fr!important}
}

@media(max-width:640px){
  .finance-summary-grid{grid-template-columns:1fr!important}
  .brand-logo{width:46px!important;height:46px!important}
}



/* ===== ADMIN EXPENSES STYLE ===== */
.orange-border,.admin-cost-card{border-color:rgba(245,158,11,.35)!important}
.orange-border strong,.admin-cost-card strong{background:linear-gradient(135deg,#f59e0b,#facc15)!important;-webkit-background-clip:text!important;-webkit-text-fill-color:transparent!important;background-clip:text!important}
.admin-expense-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:0 0 22px}
.admin-expense-stat{padding:18px;border-radius:18px;background:rgba(15,23,42,.72);border:1px solid rgba(148,163,184,.14);box-shadow:0 12px 28px rgba(0,0,0,.20)}
.admin-expense-stat span{display:block;color:#94a3b8;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px}
.admin-expense-stat strong{display:block;color:#f8fafc;font-size:25px;font-weight:950}
.admin-expense-stat.pending{border-color:rgba(245,158,11,.35);background:linear-gradient(145deg,rgba(245,158,11,.12),rgba(15,23,42,.78))}
.admin-expense-stat.admins{border-color:rgba(59,130,246,.35)}
.admin-expense-stat.month{border-color:rgba(139,92,246,.35)}
.admin-expense-stat.returned{border-color:rgba(34,197,94,.35)}
.admin-expense-form{padding:20px;border-radius:18px;background:rgba(30,41,59,.50);border:1px solid rgba(148,163,184,.14);margin-bottom:22px}
.admin-expense-form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.admin-expense-note{grid-column:1/-1}
.admin-expense-note textarea{min-height:80px}
.admin-summary-panel{padding:18px;border-radius:18px;background:rgba(15,23,42,.58);border:1px solid rgba(148,163,184,.12);margin-bottom:18px}
.admin-summary-panel h2{margin:0 0 14px;font-size:18px;color:#f8fafc}
.admin-expense-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}
.admin-summary-card{text-align:left;border:1px solid rgba(245,158,11,.26);border-radius:16px;padding:14px;background:linear-gradient(145deg,rgba(245,158,11,.12),rgba(30,41,59,.55));cursor:pointer;transition:.2s;color:#e2e8f0}
.admin-summary-card:hover{transform:translateY(-2px);border-color:rgba(245,158,11,.55)}
.admin-summary-card span{display:block;color:#fde68a;font-weight:900;margin-bottom:7px}
.admin-summary-card strong{display:block;color:#f8fafc;font-size:21px;margin-bottom:4px}
.admin-summary-card small{color:#94a3b8;font-weight:700}
.admin-expense-filters{grid-template-columns:2fr 1fr!important}
.admin-expense-badge{display:inline-flex;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:900;border:1px solid}
.admin-expense-badge.pending{color:#fde68a;background:rgba(245,158,11,.14);border-color:rgba(245,158,11,.35)}
.admin-expense-badge.paid{color:#86efac;background:rgba(34,197,94,.14);border-color:rgba(34,197,94,.35)}
.pending-money{color:#fde68a}.paid-money{color:#86efac}.empty-mini{color:#94a3b8;padding:12px}
@media(max-width:1100px){.admin-expense-cards{grid-template-columns:repeat(2,1fr)}.admin-expense-form-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.admin-expense-cards,.admin-expense-form-grid,.admin-expense-filters{grid-template-columns:1fr!important}}

/* Admin Spending simplified */
.admin-expense-stat.returned span::after{
  content:"";
}
#adminExpenseStatusFilter,
label[for="adminExpenseReturnedInput"]{
  display:none !important;
}
.admin-expense-filters{
  grid-template-columns:1fr !important;
}

/* ===== ADMIN SPENDING TRASH AND VIEW ===== */
.admin-spending-hero{
  background:linear-gradient(135deg, rgba(245,158,11,.14), rgba(59,130,246,.10)) !important;
}
.admin-spending-avatar{
  background:linear-gradient(135deg,#f59e0b,#8b5cf6) !important;
}
.admin-expenses-page .trash-toolbar{
  margin-bottom:16px;
}
.admin-expenses-page .trash-id-wrap{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0;
}
.admin-expenses-page .trash-id-wrap input{
  width:16px;
  height:16px;
}

/* ===== FINAL PROFESSIONAL UI FIXES ===== */
.trash-tool-btn.danger span,
#stockTrashDeleteAllBtn span,
#trashDeleteAllBtn span,
#adminTrashDeleteAllBtn span{
  letter-spacing:.01em;
}

/* Custom warranty hidden until Plan = Custom */
#customWarrantyBox.hidden{
  display:none !important;
}
#customWarrantyBox{
  display:block;
}

/* Professional consistent controls */
.btn,
.trash-tool-btn,
.row-action-btn,
.icon-btn,
.pay,
.custom-pay-filter-btn,
.admin-summary-card,
button{
  min-height:42px;
  border-radius:14px !important;
  font-weight:850 !important;
  letter-spacing:.01em;
}

input, select, textarea{
  min-height:48px;
  border-radius:14px !important;
}

textarea{
  min-height:92px;
}

.form-actions .btn{
  min-width:150px;
  justify-content:center;
}

/* Admin Spending polished layout */
.admin-expenses-page{
  padding:30px !important;
}

.admin-expense-cards{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin:0 0 24px;
}

.admin-expense-stat{
  min-height:118px;
  padding:20px;
  border-radius:22px;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.16), transparent 45%),
    rgba(15,23,42,.74);
  border:1px solid rgba(148,163,184,.16);
  box-shadow:0 18px 44px rgba(0,0,0,.24);
}

.admin-expense-stat span{
  display:block;
  color:#94a3b8;
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.075em;
  margin-bottom:12px;
}

.admin-expense-stat strong{
  display:block;
  color:#f8fafc;
  font-size:25px;
  font-weight:950;
  line-height:1.25;
}

.admin-expense-stat.pending{
  border-color:rgba(245,158,11,.34);
  background:linear-gradient(145deg,rgba(245,158,11,.13),rgba(15,23,42,.82));
}

.admin-expense-stat.admins{
  border-color:rgba(59,130,246,.34);
}

.admin-expense-stat.month{
  border-color:rgba(139,92,246,.34);
}

.admin-expense-stat.returned{
  border-color:rgba(16,185,129,.34);
}

.admin-expense-form{
  padding:24px;
  border-radius:24px;
  background:
    radial-gradient(circle at top right, rgba(139,92,246,.13), transparent 38%),
    rgba(15,23,42,.60);
  border:1px solid rgba(148,163,184,.16);
  margin-bottom:24px;
}

.admin-expense-form-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  align-items:start;
}

.admin-expense-form-grid label{
  padding:16px;
  border-radius:20px;
  background:rgba(15,23,42,.45);
  border:1px solid rgba(148,163,184,.12);
  margin:0;
}

.admin-expense-form-grid label input,
.admin-expense-form-grid label select,
.admin-expense-form-grid label textarea{
  margin-top:10px;
}

.admin-expense-note{
  grid-column:1 / -1;
}

.admin-summary-panel{
  padding:22px;
  border-radius:24px;
  background:rgba(15,23,42,.55);
  border:1px solid rgba(148,163,184,.14);
  margin-bottom:22px;
}

.admin-summary-panel h2{
  margin:0 0 16px;
  color:#f8fafc;
  font-size:20px;
  font-weight:950;
}

.admin-expense-summary{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:14px;
}

.admin-summary-card{
  text-align:left;
  padding:17px;
  border:1px solid rgba(245,158,11,.28);
  background:linear-gradient(145deg,rgba(245,158,11,.13),rgba(30,41,59,.58));
  color:#e2e8f0;
  transition:.2s ease;
  cursor:pointer;
}

.admin-summary-card:hover{
  transform:translateY(-2px);
  border-color:rgba(245,158,11,.58);
  box-shadow:0 14px 36px rgba(0,0,0,.24);
}

.admin-summary-card span{
  display:block;
  color:#fde68a;
  font-weight:950;
  margin-bottom:8px;
}

.admin-summary-card strong{
  display:block;
  color:#f8fafc;
  font-size:22px;
  margin-bottom:4px;
}

.admin-summary-card small{
  color:#94a3b8;
  font-weight:800;
}

.admin-money,
.pending-money{
  color:#fde68a !important;
  font-weight:950 !important;
}

.admin-spending-hero{
  background:linear-gradient(135deg,rgba(245,158,11,.16),rgba(59,130,246,.11)) !important;
}

.admin-spending-avatar{
  background:linear-gradient(135deg,#f59e0b,#8b5cf6) !important;
}

.admin-spending-amount-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  color:#fde68a;
  background:rgba(245,158,11,.16);
  border:1px solid rgba(245,158,11,.36);
  font-weight:950;
  white-space:nowrap;
}

.admin-expenses-page .trash-toolbar{
  margin-bottom:18px;
  gap:12px;
}

.admin-expenses-page .trash-id-wrap{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0;
}

.admin-expenses-page .trash-id-wrap input{
  width:16px;
  height:16px;
  min-height:16px;
}

.order-view-card{
  width:min(960px, calc(100vw - 32px)) !important;
  border-radius:28px !important;
}

.view-grid.compact-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:14px;
}

.view-box{
  border-radius:18px;
  padding:16px;
  background:rgba(30,41,59,.70);
  border:1px solid rgba(148,163,184,.12);
}

.view-box span{
  display:block;
  color:#94a3b8;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.07em;
  margin-bottom:8px;
}

.view-box strong{
  display:block;
  color:#f8fafc;
  font-size:15px;
  line-height:1.5;
  word-break:break-word;
}

.view-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:20px;
}

.view-actions button{
  min-width:130px;
  padding:12px 16px;
  border:1px solid rgba(96,165,250,.25);
  background:rgba(51,65,85,.65);
  color:#e2e8f0;
  cursor:pointer;
}

.view-actions button.danger{
  color:#fecaca;
  border-color:rgba(239,68,68,.35);
  background:rgba(239,68,68,.12);
}

@media(max-width:1100px){
  .admin-expense-cards{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .admin-expense-form-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:700px){
  .admin-expense-cards,
  .admin-expense-form-grid{
    grid-template-columns:1fr;
  }
  .admin-expenses-page{
    padding:18px !important;
  }
  .view-actions button{
    width:100%;
  }
}



/* ===== ADD CUSTOMER COPY BOX STYLE ===== */
.add-customer-copy-box{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:99999;
  width:min(470px, calc(100vw - 44px));
  padding:22px;
  border-radius:24px;
  background:
    radial-gradient(circle at top left, rgba(16,185,129,.22), transparent 36%),
    linear-gradient(145deg, rgba(15,23,42,.98), rgba(30,41,59,.98));
  border:1px solid rgba(148,163,184,.18);
  box-shadow:0 28px 90px rgba(0,0,0,.55);
  transform:translateY(18px);
  opacity:0;
  pointer-events:none;
  transition:.25s ease;
  backdrop-filter:blur(14px);
}

.add-customer-copy-box.show{
  transform:translateY(0);
  opacity:1;
  pointer-events:auto;
}

.add-copy-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:16px;
}

.add-copy-head h3{
  margin:0;
  color:#f8fafc;
  font-size:20px;
  font-weight:950;
}

.add-copy-head p{
  margin:5px 0 0;
  color:#94a3b8;
  font-size:13px;
}

.add-copy-head button{
  width:38px;
  height:38px;
  border-radius:14px;
  border:1px solid rgba(239,68,68,.30);
  background:rgba(239,68,68,.10);
  color:#fecaca;
  font-size:18px;
  cursor:pointer;
}

.add-copy-preview{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-bottom:14px;
}

.add-copy-preview div{
  background:rgba(15,23,42,.60);
  border:1px solid rgba(148,163,184,.14);
  border-radius:16px;
  padding:12px;
  min-width:0;
}

.add-copy-preview .full{
  grid-column:1 / -1;
}

.add-copy-preview span{
  display:block;
  color:#94a3b8;
  font-size:11px;
  font-weight:900;
  letter-spacing:.07em;
  text-transform:uppercase;
  margin-bottom:6px;
}

.add-copy-preview strong{
  display:block;
  color:#f8fafc;
  font-size:14px;
  font-weight:850;
  word-break:break-word;
}

#addCustomerCopyText{
  width:100%;
  min-height:210px;
  resize:none;
  border-radius:18px;
  padding:14px;
  background:rgba(2,6,23,.72);
  border:1px solid rgba(96,165,250,.22);
  color:#e2e8f0;
  font-family:"SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size:13px;
  line-height:1.6;
  margin:0 0 14px;
}

.add-copy-actions{
  display:flex;
  gap:12px;
}

.add-copy-actions button{
  flex:1;
  min-height:46px;
  border-radius:16px;
  border:0;
  color:#fff;
  font-weight:950;
  cursor:pointer;
}

.copy-main-btn{
  background:linear-gradient(135deg,#10b981,#2563eb);
}

.copy-close-btn{
  background:rgba(51,65,85,.85);
  border:1px solid rgba(148,163,184,.18) !important;
}

@media(max-width:640px){
  .add-customer-copy-box{
    right:14px;
    left:14px;
    bottom:14px;
    width:auto;
    padding:18px;
  }
  .add-copy-preview{
    grid-template-columns:1fr;
  }
  .add-copy-actions{
    flex-direction:column;
  }
}

/* ===== GET STOCK FINAL FIX STYLE ===== */
#getStockBtn{
  min-width:96px;
  white-space:nowrap;
}
#selectedStockId:not([value=""]) ~ *{
  --stock-selected: 1;
}

/* ===== LOGIN SHEET CONNECTION FIX ===== */
.login-msg{
  display:block;
  min-height:20px;
  margin-top:12px !important;
  color:#fbbf24 !important;
  text-align:center;
  font-weight:800;
}
#app.hidden,
#loginPage.hidden{
  display:none !important;
}
.login-page{
  min-height:100vh !important;
  display:grid;
  place-items:center;
}

/* ===== EMERGENCY LOGIN FIX ===== */
#loginPage{
  display:grid !important;
  min-height:100vh !important;
  place-items:center !important;
  opacity:1 !important;
  visibility:visible !important;
}
#loginPage.hidden{
  display:none !important;
}
#app.hidden{
  display:none !important;
}
.login-msg{
  display:block;
  min-height:22px;
  margin-top:12px !important;
  color:#fbbf24 !important;
  text-align:center;
  font-weight:800;
}

/* FINAL REAL SHEET ONLY FIX */
.login-msg{display:block;min-height:22px;margin-top:12px!important;color:#fbbf24!important;text-align:center;font-weight:800;}#app.hidden,#loginPage.hidden{display:none!important;}
