:root {
  --navy: #1a2a3a;
  --navy-700: #15222f;
  --navy-900: #0d1721;
  --gold: #d4a548;
  --gold-600: #b88a31;
  --gold-100: #f6ecd1;
  --bg: #f6f7f9;
  --text: #1a2a3a;
  --muted: #6b7785;
  --border: #e6e8ec;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Heebo', system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  min-height: 100%;
}

a {
  color: var(--navy);
  text-decoration: none;
}
a:hover {
  color: var(--gold-600);
}

/* ---- Header ---- */
.site-header {
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 10px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.brand-logo-link:hover {
  background: var(--gold-100);
  transform: translateY(-1px);
}
.brand-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}
.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .04em;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 12px rgba(26,42,58,.12);
}
@media (max-width: 540px) {
  .brand-logo { height: 40px; max-width: 100px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 14px; }
  .brand-tag { font-size: 11px; }
  .site-header { padding: 10px 0; }
  .site-header .d-flex { gap: 6px !important; }
}
.brand-mark.brand-mark-sm {
  width: 44px;
  height: 44px;
  font-size: 14px;
  border-radius: 10px;
}
.brand-text { line-height: 1.15; }
.brand-name {
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
}
.brand-tag {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.header-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #1a2744 !important;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(200, 168, 75, .55);
  text-decoration: none;
  font-family: "Heebo", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.header-nav-link:hover,
.header-nav-link:focus-visible {
  background: #fff8e8;
  border-color: #c8a84b;
  transform: translateY(-1px);
  outline: none;
  color: #1a2744 !important;
}
.header-nav-link svg { color: #c8a84b; }
@media (max-width: 540px) {
  .header-nav-link { padding: 7px 11px; font-size: 13px; }
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1a2744;
  color: #c8a84b !important;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(200, 168, 75, .35);
  text-decoration: none;
  font-family: "Heebo", "Segoe UI", Arial, sans-serif;
  line-height: 1;
  letter-spacing: .01em;
  box-shadow: 0 2px 8px rgba(26, 39, 68, .12);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.header-phone:hover,
.header-phone:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(26, 39, 68, .22);
  border-color: rgba(200, 168, 75, .85);
  background: #1f2e4f;
  color: #d4b770 !important;
  outline: none;
}
.header-phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(200, 168, 75, .15);
  color: #c8a84b;
  flex-shrink: 0;
}
.header-phone-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}
.header-phone-number {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #c8a84b;
}
@media (max-width: 540px) {
  .header-phone {
    padding: 7px 12px 7px 14px;
    gap: 8px;
  }
  .header-phone-label { display: none; }
  .header-phone-number { font-size: 14px; }
  .header-phone-icon { width: 22px; height: 22px; }
}

/* ---- Hero ---- */
.page { padding: 28px 0 60px; }
.hero {
  text-align: center;
  margin-bottom: 28px;
  padding: 0 8px;
}
.hero-badge {
  display: inline-block;
  background: var(--gold-100);
  color: var(--navy);
  border: 1px solid var(--gold);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
  letter-spacing: -.02em;
}
.hero-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Form Card ---- */
.form-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
.form-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 100%);
}

.form-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 6px;
}
.req {
  color: #c0392b;
  font-weight: 700;
  margin-inline-start: 2px;
}
.opt {
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
  margin-inline-start: 4px;
}
.form-control, .form-select {
  border-radius: 10px;
  border: 1.5px solid var(--border);
  padding: 12px 16px;
  font-size: 15px;
  min-height: 48px;
  transition: border-color .2s ease, box-shadow .2s ease;
  background: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 .2rem rgba(212,165,72,.18);
}
.form-control::placeholder { color: #9aa3ad; }

textarea.form-control { resize: vertical; min-height: 90px; }

@media (max-width: 767px) {
  .form-control, .form-select {
    padding: 14px 16px;
    font-size: 16px;
    min-height: 52px;
  }
  .form-card .card-body { padding: 20px 16px !important; }
  .form-card .row.g-3 > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
  .btn-primary-cta {
    padding: 16px 28px;
    font-size: 17px;
    min-height: 56px;
  }
  .consent-box { padding: 12px 14px; }
  .consent-box .form-check-label { font-size: 13px; }
}

.consent-box {
  background: #fbf8ee;
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 14px 18px;
}
.consent-box .form-check { padding-inline-start: 1.8em; }
.consent-box .form-check-input {
  width: 1.2em;
  height: 1.2em;
  margin-top: .15em;
  margin-inline-start: -1.8em;
  border: 1.5px solid var(--gold-600);
  cursor: pointer;
}
.consent-box .form-check-input:checked {
  background-color: var(--navy);
  border-color: var(--navy);
}
.consent-box .form-check-input:focus {
  box-shadow: 0 0 0 .2rem rgba(212,165,72,.25);
}
.consent-box .form-check-label {
  color: var(--navy);
  font-size: 14px;
  line-height: 1.6;
  cursor: pointer;
}

/* ---- Buttons ---- */
.btn-primary-cta {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  border: 1.5px solid var(--gold);
  font-size: 16px;
  min-height: 52px;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary-cta:hover:not(:disabled) {
  background: var(--navy-700);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(26,42,58,.18);
}
.btn-primary-cta:disabled { opacity: .65; cursor: not-allowed; }

.btn-outline-navy {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 10px;
  transition: all .2s ease;
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: #fff;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border: 1.5px solid var(--gold-600);
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 10px;
  transition: all .2s ease;
}
.btn-gold:hover {
  background: var(--gold-600);
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
  font-weight: 500;
  border-radius: 10px;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.7);
}

/* ---- Success ---- */
.success-panel {
  text-align: center;
  padding: 30px 16px;
}
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--navy);
  border: 2px solid var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.success-title {
  color: var(--navy);
  font-weight: 800;
  font-size: 26px;
  margin-bottom: 10px;
}
.success-text {
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.5;
}
.success-subtext {
  color: var(--muted);
  margin-bottom: 22px;
  font-size: 14px;
}

/* ---- Alerts ---- */
.alert-danger {
  background: #fdecec;
  border-color: #e8b8b8;
  color: #842029;
  border-radius: 10px;
}
.alert-success {
  background: #e8f3ec;
  border-color: #b6dcc4;
  color: #14532d;
  border-radius: 10px;
}
.alert-warning {
  background: #fdf6e0;
  border-color: var(--gold);
  color: #6b5111;
  border-radius: 10px;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--navy);
  color: #cdd5dd;
  padding: 22px 0;
  border-top: 4px solid var(--gold);
  text-align: center;
  font-size: 14px;
}
.site-footer a { color: var(--gold); }
.site-footer a:hover { color: #fff; }
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 14px;
}
.footer-nav a { color: var(--gold); text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-line { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 14px; }
.footer-sep { color: var(--gold); opacity: .6; }
.footer-credit {
  margin-top: 8px;
  font-size: 12px;
  color: #8b95a3;
}

/* ---- Legal pages (privacy / terms / accessibility) ---- */
.legal-body { background: var(--bg); }
.legal-topbar {
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
  border-bottom: 1px solid var(--border);
}
.legal-topbar .btn-back { font-weight: 600; }
.legal-topbar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.legal-topbar-brand .brand-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
}
.legal-topbar-brand .brand-tag {
  font-size: 12px;
  color: var(--muted);
}
.legal-page { min-height: calc(100vh - 220px); }
.legal-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}
.legal-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 100%);
}
.legal-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 12px;
  letter-spacing: -.01em;
}
.legal-lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.legal-section { margin-bottom: 22px; }
.legal-section:last-of-type { margin-bottom: 0; }
.legal-h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px;
  padding-inline-start: 12px;
  border-inline-start: 4px solid var(--gold);
  line-height: 1.4;
}
.legal-section p,
.legal-section ul {
  color: #2a3a4d;
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 10px;
}
.legal-section ul {
  padding-inline-start: 22px;
}
.legal-section ul li { margin-bottom: 4px; }
.legal-section a {
  color: var(--gold-600);
  font-weight: 600;
}
.legal-section a:hover { color: var(--navy); text-decoration: underline; }
.legal-contact {
  background: #fbf8ee;
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 6px;
}
.legal-updated {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.admin-footer { margin-top: 0; }

@media (max-width: 540px) {
  .legal-topbar-brand { align-items: flex-start; }
  .legal-card .card-body { padding: 20px 18px; }
  .legal-title { font-size: 1.5rem; }
  .legal-lead { font-size: 14px; }
  .legal-section p, .legal-section ul { font-size: 14px; }
}

/* ============================== ADMIN ============================== */
.admin-body {
  background: #f1f3f6;
}
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%);
  padding: 20px;
}
.login-card {
  width: 100%;
  max-width: 420px;
  border: none;
  border-radius: 18px;
  border-top: 4px solid var(--gold);
  background: #fff;
}

.admin-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--gold);
}
.admin-title { font-weight: 700; font-size: 18px; line-height: 1.2; }
.admin-sub { font-size: 12px; color: var(--gold); margin-top: 2px; }

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
}
.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 700;
}
.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  margin-top: 4px;
}

.toolbar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}

.table-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.table-card .table {
  margin: 0;
  font-size: 14px;
}
.table-card thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  border: none;
  white-space: nowrap;
  padding: 12px 14px;
  font-size: 13px;
}
.table-card tbody td {
  border-color: var(--border);
  vertical-align: middle;
}
.table-card tbody tr:hover {
  background: #fbfaf3;
}
.row-actions { display: inline-flex; gap: 6px; }
.btn-sm-detail {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 5px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s ease;
}
.btn-sm-detail:hover { background: var(--gold-600); color: #fff; }
.btn-sm-delete {
  background: transparent;
  color: #b3261e;
  border: 1px solid #e0b8b6;
  padding: 5px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s ease;
}
.btn-sm-delete:hover { background: #b3261e; color: #fff; border-color: #b3261e; }

/* Modal styling */
.modal-content {
  border-radius: 14px;
  border: none;
  border-top: 4px solid var(--gold);
}
.modal-header {
  background: var(--navy);
  color: #fff;
  border-radius: 0;
}
.modal-header .btn-close {
  filter: invert(1) brightness(2);
}
.modal-title { font-weight: 700; }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.detail-grid .row-pair {
  display: grid;
  grid-template-columns: 200px 1fr;
}
.detail-grid .row-pair:nth-child(even) { background: #fbfaf3; }
.detail-grid .row-pair .label {
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13px;
}
.detail-grid .row-pair .value {
  padding: 10px 14px;
  color: var(--navy);
  font-size: 14px;
  word-break: break-word;
}
@media (max-width: 540px) {
  .detail-grid .row-pair { grid-template-columns: 1fr; }
  .detail-grid .row-pair .label { padding: 6px 12px; font-size: 12px; }
}

/* ---- Hero stat (total submissions) ---- */
.hero-stat-card {
  background: linear-gradient(135deg, #1a2a3a 0%, #15222f 60%, #0d1721 100%);
  border-radius: 16px;
  padding: 22px 26px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(26,42,58,.18);
}
.hero-stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 20%, rgba(212,165,72,.18), transparent 40%),
    radial-gradient(circle at 92% 80%, rgba(212,165,72,.12), transparent 40%);
  pointer-events: none;
}
.hero-stat-card::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-600) 100%);
}
.hero-stat-inner { position: relative; z-index: 1; }
.hero-stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .04em;
}
.hero-stat-value {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  margin: 4px 0 12px 0;
  color: #fff;
  font-feature-settings: "tnum";
  letter-spacing: -.02em;
}
.hero-stat-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill-mini {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(212,165,72,.35);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.pill-mini strong {
  color: var(--gold);
  font-weight: 700;
  margin-inline-start: 2px;
}
.pill-mini .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}
.pill-mini .dot-today { background: #4ade80; }
.pill-mini .dot-week { background: #60a5fa; }

/* ---- Status breakdown (4-up grid) ---- */
.status-breakdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.status-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}
.status-stat::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 4px;
  height: 100%;
}
.status-stat.status-new::after { background: #5b8def; }
.status-stat.status-progress::after { background: var(--gold); }
.status-stat.status-submitted::after { background: #8b5cf6; }
.status-stat.status-done::after { background: #16a34a; }
.status-stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .04em;
}
.status-stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-top: 2px;
  font-feature-settings: "tnum";
}

/* ---- Date filter buttons ---- */
.date-filter {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
}
.date-filter-btn {
  background: transparent;
  border: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 9px;
  cursor: pointer;
  transition: all .15s ease;
}
.date-filter-btn:hover { background: var(--gold-100); }
.date-filter-btn.active {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26,42,58,.2);
}
.date-filter-btn.active:hover { background: var(--navy-700); }

/* ---- Customer number cell ---- */
.customer-no {
  display: inline-block;
  background: var(--gold-100);
  color: var(--navy);
  border: 1px solid var(--gold);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  font-feature-settings: "tnum";
}

/* ---- Status select dropdown (color-coded) ---- */
.status-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-width: 96px;
  background-color: #fff;
  background-position: left 8px center;
  transition: all .15s ease;
}
.status-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212,165,72,.25);
}
.status-select:disabled { opacity: .55; cursor: wait; }
.status-select.status-new { background-color: #eef3ff; color: #1e3a8a; border-color: #bcd0ff; }
.status-select.status-progress { background-color: #fef3c7; color: #78350f; border-color: var(--gold); }
.status-select.status-submitted { background-color: #f3e8ff; color: #5b21b6; border-color: #d8b4fe; }
.status-select.status-done { background-color: #dcfce7; color: #14532d; border-color: #86efac; }

/* ---- Business-type category: row backgrounds + select coloring ---- */
.admin-table tbody tr.cat-patur  { background-color: #FFF9C4; }
.admin-table tbody tr.cat-murshe { background-color: #DBEAFE; }
.admin-table tbody tr.cat-hevra  { background-color: #EDE9FE; }
.admin-table tbody tr.cat-lo     { background-color: #F3F4F6; }
.admin-table tbody tr.cat-patur:hover  { background-color: #FFF59D; }
.admin-table tbody tr.cat-murshe:hover { background-color: #BFDBFE; }
.admin-table tbody tr.cat-hevra:hover  { background-color: #DDD6FE; }
.admin-table tbody tr.cat-lo:hover     { background-color: #E5E7EB; }

.category-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-width: 120px;
  background-color: #fff;
  background-position: left 8px center;
  transition: all .15s ease;
}
.category-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212,165,72,.25);
}
.category-select:disabled { opacity: .55; cursor: wait; }
.category-select.cat-patur  { background-color: #FEF3C7; color: #78350f; border-color: #FCD34D; }
.category-select.cat-murshe { background-color: #DBEAFE; color: #1e3a8a; border-color: #93C5FD; }
.category-select.cat-hevra  { background-color: #EDE9FE; color: #5b21b6; border-color: #C4B5FD; }
.category-select.cat-lo     { background-color: #F3F4F6; color: #374151; border-color: #D1D5DB; }

/* ---- WhatsApp action button ---- */
.btn-sm-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #25D366;
  color: #fff;
  border: 1px solid #1FB855;
  text-decoration: none;
  transition: background-color .15s ease, transform .1s ease;
  cursor: pointer;
}
.btn-sm-wa:hover { background: #1FB855; color: #fff; transform: translateY(-1px); }
.btn-sm-wa:focus { outline: none; box-shadow: 0 0 0 3px rgba(37,211,102,.35); }
.btn-sm-wa svg { display: block; }

/* ---- Row badges: claim # + grant amount ---- */
.badge-claim {
  display: inline-block;
  margin-inline-start: 6px;
  font-size: 14px;
  cursor: help;
}
.badge-amount {
  display: inline-block;
  margin-inline-start: 6px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  white-space: nowrap;
}

/* ---- Responsive: stacked card layout for mobile ---- */
@media (max-width: 768px) {
  .stat-value { font-size: 26px; }
  .hero-stat-value { font-size: 44px; }
  .table-card .table { font-size: 13px; }
  .table-card thead th { padding: 10px 8px; }
  .status-breakdown { grid-template-columns: repeat(2, 1fr); }
  .date-filter { width: 100%; justify-content: stretch; }
  .date-filter-btn { flex: 1; padding: 10px 8px; font-size: 13px; }
}

/* ---- Mobile (<768px): compact table layout, hide non-essential columns, touch-friendly ---- */
@media (max-width: 767.98px) {
  /* Stack toolbar filters vertically */
  .toolbar .row > [class*="col-"] { width: 100%; flex: 0 0 100%; max-width: 100%; }
  .toolbar .d-flex.gap-2 { flex-wrap: wrap; }
  .toolbar .d-flex.gap-2 > * { flex: 1 1 auto; }

  /* Touch-friendly form controls + toolbar buttons */
  .toolbar .form-control,
  .toolbar .form-select { min-height: 44px; font-size: 15px; }
  .toolbar .btn { min-height: 44px; padding: 10px 14px; font-size: 14px; }

  /* In-row dropdowns (status / category) — bigger tap area */
  .status-select, .category-select { min-height: 44px; font-size: 14px; padding: 8px 12px; }

  /* Action buttons: 44x44 minimum tap target */
  .row-actions { gap: 8px; flex-wrap: wrap; }
  .row-actions .btn-sm-detail,
  .row-actions .btn-sm-delete {
    min-height: 44px;
    min-width: 44px;
    padding: 8px 12px;
    font-size: 14px;
  }
  .row-actions .btn-sm-wa {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  .row-actions .btn-sm-wa svg { width: 20px; height: 20px; }

  /* Allow horizontal scroll as fallback for the table */
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Hide non-essential columns; keep: לקוח, סטטוס, קטגוריה, שם מלא, טלפון, פעולות */
  .admin-table thead th:nth-child(2),  /* תאריך */
  .admin-table thead th:nth-child(7),  /* ת.ז */
  .admin-table thead th:nth-child(8),  /* אימייל */
  .admin-table thead th:nth-child(9),  /* בנק */
  .admin-table thead th:nth-child(10), /* סניף */
  .admin-table thead th:nth-child(11), /* חשבון */
  .admin-table tbody td[data-label="תאריך"],
  .admin-table tbody td[data-label="ת.ז"],
  .admin-table tbody td[data-label="אימייל"],
  .admin-table tbody td[data-label="בנק"],
  .admin-table tbody td[data-label="סניף"],
  .admin-table tbody td[data-label="חשבון"] { display: none !important; }
}

/* On very small phones, transform table rows into stacked cards for thumb-friendly browsing. */
@media (max-width: 720px) {
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td {
    display: block;
    width: 100%;
  }
  .admin-table tr {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 12px 14px;
    box-shadow: 0 1px 3px rgba(26,42,58,.05);
  }
  .admin-table tbody tr:hover { background: #fff; }
  .admin-table td {
    border: none !important;
    padding: 6px 0 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .admin-table td > * {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .admin-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .admin-table td[data-label="לקוח"] {
    border-bottom: 1px solid var(--border) !important;
    padding-bottom: 10px !important;
    margin-bottom: 6px;
  }
  .admin-table td[data-label="לקוח"]::before { display: none; }
  .admin-table td[data-label="לקוח"] { justify-content: flex-start; }
  .admin-table td[data-label="פעולות"] { justify-content: flex-end; padding-top: 10px !important; border-top: 1px solid var(--border) !important; margin-top: 6px; }
  .admin-table td[data-label="פעולות"]::before { display: none; }
  .table-card { background: transparent; border: none; box-shadow: none !important; }
  .table-card .table-responsive { overflow: visible; }
  .row-actions { width: 100%; justify-content: flex-end; }
  .status-select { width: 100%; max-width: 160px; }
}

/* ===== Shagat-Hari additions ===== */

/* New status colors */
.status-stat.status-total::after { background: #1a2a3a; }
.status-stat.status-approved::after { background: #16a34a; }
.status-stat.status-rejected::after { background: #dc2626; }

.status-select.status-approved {
  background-color: #dcfce7; color: #14532d; border-color: #86efac;
}
.status-select.status-rejected {
  background-color: #fee2e2; color: #7f1d1d; border-color: #fca5a5;
}

/* Notes/Files modal helpers */
.dot-indicator { color: var(--gold); font-size: 18px; line-height: 1; vertical-align: middle; }

.files-list .file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border, #e6e9ee);
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fff;
}
.files-list .file-name {
  font-weight: 600;
  color: #1a2a3a;
  text-decoration: none;
  word-break: break-word;
}
.files-list .file-name:hover { text-decoration: underline; color: #b88a31; }
.files-list .file-meta { margin-top: 4px; }

.upload-area {
  margin-top: 12px;
  padding: 14px;
  background: #f6f7f9;
  border: 1px dashed #c9cdd4;
  border-radius: 10px;
}
.upload-title { font-size: 14px; font-weight: 700; color: #1a2a3a; margin: 0 0 10px; }

/* Header nav link for shagat (reuse .header-nav-link styles) */
.header-nav-link.shagat { background: linear-gradient(135deg, #d4a548 0%, #c8a84b 100%); color: #1a2a3a; }
