:root {
  --saffron: #FF6B00;
  /* kesariya - primary importance */
  --saffron-dark: #E85D00;
  --saffron-light: #FFF3EA;
  --green: #138808;
  /* BJP/national green */
  --green-dark: #0F6B06;
  --ink: #1a1f2e;
  --muted: #6b7280;
  --line: #eceef2;
  --bg: #f5f6f8;
  --white: #fff;
  --danger: #dc2626;
  --blue: #2563eb;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-md: 0 4px 14px rgba(16, 24, 40, .08);
}

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

body {
  font-family: 'Poppins', 'Noto Sans Devanagari', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  -webkit-font-smoothing: antialiased
}

/* icons */
.ic {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: middle
}

/* ---- Login ---- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 55%, var(--green) 160%)
}

.login-card {
  background: #fff;
  padding: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .6);
  width: 370px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, .22)
}

.login-card h1 {
  font-size: 21px;
  color: var(--saffron);
  text-align: center;
  margin-bottom: 4px;
  font-weight: 700
}

.login-card p {
  text-align: center;
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 13px
}

/* ---- Login: 10-digit mobile number boxes ---- */
.digit-boxes {
  display: flex;
  gap: 5px;
  margin-bottom: 14px;
  width: 100%;
  direction: ltr;
}

.digit-box {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  padding: 9px 0;
  margin-bottom: 0;
  border: 1px solid #dfe3e9;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  transition: border-color .15s, box-shadow .15s;
}

.digit-box:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, .12);
}

/* ---- Layout ---- */
.layout {
  display: flex;
  min-height: 100vh
}

/* ---- Professional Executive Sidebar ---- */
.sidebar {
  width: 220px;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  background: #0f172a;
  /* Deep Slate Navy - Clean Professional */
  border-right: 1px solid #1e293b;
  box-shadow: 4px 0 20px rgba(0, 0, 0, .15);
  display: flex;
  flex-direction: column;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 8px;
}

.brand {
  padding: 12px 12px 12px 14px;
  border-bottom: 1px solid #1e293b;
  background: #0b1120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 2px;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.brand-text b {
  font-size: 14.5px;
  color: #f8fafc;
  letter-spacing: .3px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-text span {
  font-size: 9px;
  color: #94a3b8;
  letter-spacing: 0.6px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Quick Menu Trigger Button in Sidebar */
.btn-quick-menu {
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.35);
  color: #ff8533;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .2s ease;
  padding: 0;
}

.btn-quick-menu .ic {
  width: 15px;
  height: 15px;
}

.btn-quick-menu:hover {
  background: #ff6b00;
  border-color: #ff6b00;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35);
  transform: scale(1.05);
}

/* Topbar quick menu pill button */
.btn-topbar-quickmenu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ff6b00;
  background: rgba(255, 107, 0, 0.08);
  border: 1px solid rgba(255, 107, 0, 0.25);
  border-radius: 20px;
  cursor: pointer;
  transition: all .2s ease;
}

.btn-topbar-quickmenu .ic {
  width: 15px;
  height: 15px;
}

.btn-topbar-quickmenu:hover {
  background: #ff6b00;
  color: #ffffff;
  border-color: #ff6b00;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.25);
}

/* ============================================================
   TOP FULL-WIDTH QUICK MENU (MEGA DRAWER / MODAL)
   ============================================================ */
.quick-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  z-index: 10000;
  display: none;
}

.quick-menu-overlay.active {
  display: block;
}

.quick-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #0b1120;
  border-bottom: 3px solid #ff6b00;
  z-index: 10001;
  display: none;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.quick-menu-drawer.active {
  display: flex;
}

.quick-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: #080d19;
  border-bottom: 1px solid #1e293b;
  flex-shrink: 0;
}

.quick-menu-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-menu-badge {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff6b00 0%, #ea580c 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.35);
}

.quick-menu-badge .ic {
  width: 16px;
  height: 16px;
}

.quick-menu-title h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.2;
}

.quick-menu-title p {
  margin: 0;
  font-size: 11px;
  color: #94a3b8;
}

.quick-menu-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid #334155;
  color: #94a3b8;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s ease;
}

.quick-menu-close .ic {
  width: 15px;
  height: 15px;
}

.quick-menu-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  transform: rotate(90deg);
}

.quick-menu-body {
  padding: 14px 24px 18px;
  max-height: calc(90vh - 55px);
  overflow-y: auto;
  flex: 1;
}

.quick-menu-body::-webkit-scrollbar {
  width: 5px;
}

.quick-menu-body::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

.quick-menu-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

@media (max-width: 1400px) {
  .quick-menu-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .quick-menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .quick-menu-grid {
    grid-template-columns: 1fr;
  }
}

.qm-group-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease, background .15s ease;
}

.qm-group-card:hover {
  border-color: #3b82f6;
  background: rgba(30, 41, 59, 0.85);
}

.qm-group-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ff944d;
}

.qm-group-header .ic {
  width: 14px;
  height: 14px;
  color: #ff6b00;
  flex-shrink: 0;
}

.qm-group-header h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qm-group-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.qm-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 500;
  border-radius: 6px;
  transition: all .12s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qm-link .ic {
  width: 13px;
  height: 13px;
  opacity: 0.75;
  color: #94a3b8;
  flex-shrink: 0;
}

.qm-link:hover {
  background: rgba(255, 107, 0, 0.2);
  color: #ffffff;
}

.qm-link:hover .ic {
  opacity: 1;
  color: #ff6b00;
}

.qm-link.active {
  background: rgba(255, 107, 0, 0.25);
  color: #ffffff;
  font-weight: 600;
  border-left: 2.5px solid #ff6b00;
}

.qm-link.active .ic {
  color: #ff6b00;
  opacity: 1;
}

@media (max-width: 768px) {
  .quick-menu-header {
    padding: 12px 16px;
  }
  .quick-menu-body {
    padding: 16px;
  }
  .quick-menu-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.nav {
  padding: 10px 8px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

/* Category Sections - Clean & Divided without Accordion Hassle */
.nav-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  /* Muted Slate */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 4px;
}

.nav-section-label .ic {
  width: 12px;
  height: 12px;
  opacity: 0.7;
  color: #94a3b8;
}

.nav-section-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  font-size: 12.2px;
  border-radius: var(--radius-sm);
  transition: all .16s ease;
  white-space: nowrap;
}

.nav-item .ic {
  width: 14px;
  height: 14px;
  opacity: 0.8;
  transition: transform .15s ease, opacity .15s ease;
}

.nav-item:hover {
  background: #1e293b;
  color: #f8fafc;
  transform: translateX(2px);
}

.nav-item:hover .ic {
  opacity: 1;
  color: #FF6B00;
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(255, 107, 0, 0.2) 0%, rgba(255, 107, 0, 0.08) 100%);
  color: #ffffff;
  font-weight: 600;
  border-left: 3px solid #FF6B00;
  padding-left: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-item.active .ic {
  color: #FF6B00;
  opacity: 1;
}

/* Tab New Update Indicator Dot */
.nav-update-dot {
  width: 6px;
  height: 6px;
  background-color: #ef4444;
  /* Alert Red */
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25), 0 0 6px rgba(239, 68, 68, 0.7);
  animation: pulseDot 1.8s infinite ease-in-out;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }

  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0);
  }

  100% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Red Highlighted Logout Button */
.nav-footer {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #1e293b;
}

.nav-logout {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6.5px 10px;
  background: rgba(239, 68, 68, 0.12);
  /* Soft Red Background */
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  /* Bright Light Red */
  text-decoration: none;
  font-weight: 600;
  font-size: 11.5px;
  border-radius: var(--radius-sm);
  transition: all .2s ease;
}

.nav-logout .ic {
  width: 14px;
  height: 14px;
  color: #ef4444;
}

.nav-logout:hover {
  background: #ef4444;
  border-color: #dc2626;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}

.nav-logout:hover .ic {
  color: #ffffff;
}

.main {
  margin-left: 220px;
  flex: 1;
  padding: 16px 20px;
  width: calc(100% - 220px)
}

/* ---- Topbar ---- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px
}

.topbar h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.2px
}

.topbar .user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  background: #fff;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 500
}

.topbar .user .ic {
  width: 17px;
  height: 17px;
  color: var(--saffron)
}

/* ---- Cards / stats ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 24px
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--saffron);
  transition: transform .16s, box-shadow .16s
}

.stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md)
}

a.stat,
a.stat:hover,
a.stat:focus,
a.stat:active,
a.stat * {
  text-decoration: none !important;
  color: inherit;
}

a.stat {
  text-decoration: none !important;
  color: inherit;
  display: block;
  cursor: pointer;
}

a.stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.09);
  text-decoration: none !important;
}

.stat:nth-child(2) {
  border-top-color: var(--green)
}

.stat:nth-child(3) {
  border-top-color: var(--blue)
}

.stat:nth-child(4) {
  border-top-color: var(--danger)
}

.stat .num {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1
}

.stat .lbl {
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin-bottom: 20px;
  max-width: 100%
}

.card h3 {
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -.1px;
  display: flex;
  align-items: center;
  gap: 8px
}

.card h3 .ic {
  width: 18px;
  height: 18px;
  color: var(--saffron)
}

/* ---- Table ---- */
.table-responsive,
.dataTables_wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch
}

table {
  width: 100% !important;
  border-collapse: collapse
}

th,
td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px
}

th {
  color: var(--muted);
  background: #f8fafc;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .4px;
  white-space: nowrap;
  border-bottom: 1px solid #dfe3e9
}

tbody tr:last-child td {
  border-bottom: none
}

tbody tr:hover {
  background: #fafbfc
}

/* ---- Badges ---- */
.badge {
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  display: inline-block
}

.badge.submitted {
  background: #fef3c7;
  color: #92400e
}

.badge.assigned {
  background: #dbeafe;
  color: #1e40af
}

.badge.in_progress {
  background: #e0e7ff;
  color: #3730a3
}

.badge.resolved {
  background: #dcfce7;
  color: #166534
}

.badge.rejected {
  background: #fee2e2;
  color: #991b1b
}

/* ---- Forms + buttons ---- */
input,
select,
textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #dfe3e9;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 14px;
  font-family: inherit;
  background: #fff;
  transition: border-color .15s, box-shadow .15s
}

input[type="checkbox"],
input[type="radio"] {
  width: auto !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
  height: auto !important;
  cursor: pointer
}

.wa-chk-lbl {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 13px !important;
  margin-bottom: 0 !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  color: var(--ink) !important
}

.wa-chk-lbl input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  accent-color: #25D366 !important
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, .12)
}

.btn {
  background: var(--saffron);
  color: #fff;
  border: none;
  padding: 10px 17px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background .15s, box-shadow .15s, transform .15s;
  text-decoration: none
}

.btn .ic {
  width: 16px;
  height: 16px
}

.btn:hover {
  background: var(--saffron-dark);
  box-shadow: 0 3px 10px rgba(255, 107, 0, .28)
}

.btn-green {
  background: var(--green)
}

.btn-green:hover {
  background: var(--green-dark);
  box-shadow: 0 3px 10px rgba(19, 136, 8, .28)
}

.btn-red {
  background: var(--danger)
}

.btn-red:hover {
  background: #b91c1c;
  box-shadow: 0 3px 10px rgba(220, 38, 38, .28)
}

.btn-ghost {
  background: #f3f4f6;
  color: #374151
}

.btn-ghost:hover {
  background: #e5e7eb
}

.btn-sm {
  padding: 7px 13px;
  font-size: 12px
}

.btn-block {
  width: 100%;
  justify-content: center
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  align-items: center
}

.filters input,
.filters select {
  margin-bottom: 0;
  width: auto;
  min-width: 160px
}

.filter-card {
  padding: 16px 20px !important;
  margin-top: 14px
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 16px;
  align-items: end
}

.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 0
}

.filter-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: .3px;
  white-space: nowrap
}

.filter-group input,
.filter-group select,
.filter-group .select2-container {
  margin-bottom: 0 !important;
  font-size: 13px;
  width: 100% !important
}

.filter-group input {
  height: 38px;
  padding: 6px 12px
}

.filter-group .select2-container .select2-selection--single {
  height: 38px !important;
  padding: 4px 8px !important;
  border-radius: var(--radius-sm) !important;
  border-color: #dfe3e9 !important;
  display: flex !important;
  align-items: center !important
}

.filter-group .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 36px !important
}

.filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto
}

.filter-actions .btn {
  height: 38px;
  padding: 0 16px;
  white-space: nowrap
}

.search-group {
  grid-column: span 2
}

@media(max-width:1100px) {
  .filter-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .search-group {
    grid-column: span 2
  }
}

@media(max-width:600px) {
  .filter-grid {
    grid-template-columns: 1fr
  }

  .search-group {
    grid-column: span 1
  }
}

.row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap
}

.col {
  flex: 1;
  min-width: 220px
}

.flash {
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px
}

.flash.err {
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b
}

.flash.ok {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #166534
}

/* ---- Inline action buttons in lists ---- */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px
}

.list-item:last-child {
  border-bottom: none
}

.list-item .li-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis
}

.list-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto
}

.icon-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #374151;
  transition: all .15s
}

.icon-btn .ic {
  width: 15px;
  height: 15px
}

.icon-btn:hover {
  background: #e5e7eb
}

.icon-btn.edit:hover {
  background: #dbeafe;
  color: var(--blue)
}

.icon-btn.del:hover {
  background: #fee2e2;
  color: var(--danger)
}

.mobile-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0
}

@media(max-width:768px) {
  .sidebar {
    width: 0;
    display: none
  }

  .main {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 12px 14px !important
  }

  .topbar {
    margin-bottom: 12px !important;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line)
  }

  .topbar h2 {
    font-size: 18px !important
  }

  .topbar .user span {
    display: none
  }

  .card {
    padding: 15px 13px !important;
    margin-bottom: 12px !important;
    border-radius: var(--radius) !important;
  }

  .card h3 {
    font-size: 15px !important;
    margin-bottom: 12px !important;
    padding-bottom: 10px !important
  }

  .stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin: 10px 0 !important
  }

  .stat {
    padding: 13px !important;
    border-radius: var(--radius) !important
  }

  .stat .num {
    font-size: 22px !important
  }

  .stat .lbl {
    font-size: 11.5px !important
  }

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

  .mobile-bar {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px !important;
    margin: 12px 0 !important
  }

  .mobile-bar .btn,
  .mobile-bar .tabs-btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center
  }

  .tabs-btn {
    display: flex;
    width: 100%
  }

  .tabs-btn .btn {
    flex: 1;
    text-align: center;
    justify-content: center
  }

  th,
  td {
    padding: 9px 10px !important;
    font-size: 12px !important
  }

  .table-responsive {
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    margin-top: 6px
  }

  div[style*="margin:16px 22px 0"],
  div[style*="margin:12px 22px 0"],
  div[style*="margin:14px 22px 0"] {
    margin: 10px 0 !important
  }
}

/* ============================================================
   PHASE 2 ADDITIONS (locations, directory, staff, tracking,
   dev progress, schemes, complaints modal, mobile responsive)
   ============================================================ */

/* full-width content wrappers used by new pages (they render own margins) */
.main>.card,
.main>.stats,
.main>.flash,
.main>.tabs-btn,
.main>.pane,
.main>section {}

/* grid form layout */
.grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 16px
}

.grid2>div {
  display: flex;
  flex-direction: column
}

.grid2 label {
  margin-bottom: 4px
}

/* ghost / red button aliases (new pages use .btn.ghost, .btn.btn-red) */
.btn.ghost {
  background: #f3f4f6;
  color: #374151
}

.btn.ghost:hover {
  background: #e5e7eb
}

/* sub-tab button strip */
.tabs-btn {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px
}

.tabsw {
  opacity: .65
}

.tabsw.active {
  opacity: 1;
  box-shadow: 0 2px 8px rgba(255, 107, 0, .25)
}

/* permission / field checkbox grid */
.perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px
}

.perm {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin: 0
}

.perm:hover {
  border-color: var(--saffron);
  background: var(--saffron-light)
}

.perm input {
  width: auto;
  margin: 0
}

/* avatar (directory / staff) */
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line)
}

.avatar.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--saffron-light);
  color: var(--saffron);
  font-weight: 700;
  font-size: 17px
}

/* thumbnail (before/after, media) */
.thumb {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line)
}

/* drag handle */
.drag {
  cursor: grab;
  color: #9ca3af;
  font-size: 18px;
  text-align: center;
  width: 30px;
  user-select: none
}

.dir-table tr[draggable] {
  transition: background .12s
}

.dir-table tr[draggable]:active {
  cursor: grabbing
}

/* progress bar */
.pbar {
  width: 90px;
  height: 8px;
  background: #eef0f3;
  border-radius: 8px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle
}

.pbar>span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--saffron), var(--green));
  border-radius: 8px
}

/* modal */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto
}

.modal-bg.show {
  display: flex
}

.modal {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  width: 100%;
  max-width: 460px;
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
  animation: pop .18s ease
}

@keyframes pop {
  from {
    transform: translateY(12px);
    opacity: 0
  }

  to {
    transform: translateY(0);
    opacity: 1
  }
}

.modal h3 {
  margin-bottom: 14px
}

.modal input[type=range] {
  padding: 0
}

/* input[type=range] */
input[type=range] {
  -webkit-appearance: none;
  height: 8px;
  border-radius: 8px;
  background: #eef0f3;
  padding: 0;
  margin: 10px 0 4px
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--saffron);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255, 107, 0, .4)
}

/* ---- Mobile responsive: working hamburger + overlay ---- */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 6px;
  margin-right: 8px
}

.hamburger .ic {
  width: 24px;
  height: 24px
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  z-index: 998
}

@media(max-width:768px) {

  /* override old rule that fully hid sidebar */
  .sidebar {
    display: block;
    width: 220px;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 999
  }

  body.sidebar-open .sidebar {
    transform: translateX(0)
  }

  body.sidebar-open .sidebar-overlay {
    display: block
  }

  .main {
    margin-left: 0;
    width: 100%;
    padding: 12px 0;
  }

  .hamburger {
    display: inline-flex
  }

  .topbar {
    margin-bottom: 16px
  }

  .topbar h2 {
    font-size: 17px
  }

  .topbar .user span {
    display: none
  }

  .card {
    padding: 16px
  }

  .stats {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px
  }

  .stat .num {
    font-size: 24px
  }

  .filters input,
  .filters select {
    min-width: 130px;
    flex: 1
  }

  /* horizontal scroll for wide tables */
  .card>table {
    display: block;
    overflow-x: auto;
    white-space: nowrap
  }

  .grid2 {
    grid-template-columns: 1fr
  }
}

/* DataTables + Select2 polish to match theme */
.dataTables_wrapper .top-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.dataTables_wrapper .dt-top-pagination {
  margin-left: auto;
  margin-bottom: 0;
}

.dataTables_wrapper .dt-top-pagination .dataTables_paginate {
  margin: 0 !important;
  padding: 0 !important;
}

.dataTables_wrapper .dt-buttons {
  margin-bottom: 0;
  display: inline-flex;
  gap: 6px;
}

.dataTables_filter {
  margin-bottom: 0;
}

.dataTables_filter input {
  min-width: 200px;
  margin-left: 8px;
}

table.dataTable thead th {
  border-bottom: 2px solid var(--line)
}

.select2-container--default .select2-selection--single {
  height: 40px;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 38px
}

.select2-container {
  min-width: 160px
}

.select2-dropdown {
  border-color: var(--line)
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--saffron)
}

/* ---- Button Spacing & Gap Rules ---- */
.tabs-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.mobile-bar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  margin: 16px 0 18px 0 !important;
}

td.no-export,
td.actions {
  white-space: nowrap !important;
}

td.no-export .btn,
td.no-export form,
td.actions .btn,
td.actions form {
  margin-right: 6px !important;
  display: inline-block !important;
}

td.no-export .btn:last-child,
td.no-export form:last-child,
td.actions .btn:last-child,
td.actions form:last-child {
  margin-right: 0 !important;
}

@media (max-width: 768px) {
  .mobile-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    margin: 14px 0 18px 0 !important;
    width: 100% !important;
  }

  .mobile-bar .tabs-btn,
  .tabs-btn {
    display: flex !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .mobile-bar .tabs-btn .btn,
  .tabs-btn .btn {
    flex: 1 !important;
    text-align: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  .mobile-bar .btn {
    width: 100% !important;
    justify-content: center !important;
    margin-top: 4px !important;
  }
}

.btn-ghost,
.ghost {
  background: #f3f4f6 !important;
  color: #374151 !important;
  border: 1px solid #e5e7eb !important;
}

.btn-ghost:hover,
.ghost:hover {
  background: #e5e7eb !important;
  color: #111827 !important;
}

/* Table action buttons explicit gap */
td.no-export,
td.actions {
  white-space: nowrap !important;
}

td.no-export>div,
td.actions>div {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

td.no-export .btn+form,
td.no-export form+.btn,
td.no-export form+form,
td.no-export .btn+.btn {
  margin-left: 8px !important;
}

/* ============================================================
   OFFICIAL DATATABLES RESPONSIVE MOBILE STYLING
   ============================================================ */
table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control::before,
table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control::before {
  background-color: var(--saffron, #FF6B00) !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td.dtr-control::before,
table.dataTable.dtr-inline.collapsed>tbody>tr.parent>th.dtr-control::before {
  background-color: var(--danger, #dc2626) !important;
}

table.dataTable>tbody>tr.child ul.dtr-details {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 10px 4px !important;
}

table.dataTable>tbody>tr.child ul.dtr-details>li {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  border-bottom: 1px dashed var(--line, #eceef2) !important;
  padding-bottom: 6px !important;
  font-size: 13px !important;
}

table.dataTable>tbody>tr.child ul.dtr-details>li:last-child {
  border-bottom: none !important;
}

table.dataTable>tbody>tr.child span.dtr-title {
  font-weight: 600 !important;
  color: var(--muted, #6b7280) !important;
  font-size: 12px !important;
  flex: 0 0 40% !important;
}

table.dataTable>tbody>tr.child span.dtr-data {
  flex: 1 !important;
  text-align: right !important;
  color: var(--ink, #1a1f2e) !important;
  word-break: break-word !important;
}

/* ============================================================
   CLEANER / PROFESSIONAL POLISH + RESPONSIVE REFINEMENTS
   ============================================================ */

/* Tablet & small laptop: tighten the canvas */
@media (max-width: 1180px) {
  .main {
    padding: 16px 16px;
    width: calc(100% - 220px);
  }

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

  .filter-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

/* Neat table shell inside cards */
.card>.table-responsive,
.card>table {
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden
}

.card>table thead th {
  background: #f8fafc
}

/* Consistent small radii for loose page widgets */
.thumb,
.pbar,
.pbar>span {
  border-radius: 4px
}

/* Focus visibility for keyboard users */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.icon-btn:focus-visible {
  outline: 2px solid rgba(255, 107, 0, .55);
  outline-offset: 2px
}

/* Very small screens */
@media (max-width: 480px) {
  .stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important
  }

  .stat {
    padding: 11px !important
  }

  .stat .num {
    font-size: 20px !important
  }

  .card h3 {
    font-size: 14px !important
  }

  .btn {
    padding: 9px 14px;
    font-size: 13px
  }

  .btn-sm {
    padding: 6px 10px;
    font-size: 11.5px
  }

  .filters input,
  .filters select {
    min-width: 120px
  }
}

/* ============================================================
   DASHBOARD COMPONENTS (index.php)
   ============================================================ */

/* card header row: title + right action */
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line)
}

.card-head h3 {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: none !important;
  font-size: 15.5px
}

.card-head .btn {
  flex: 0 0 auto
}

/* KPI secondary line */
.stat .sub {
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--muted);
  padding-top: 7px;
  border-top: 1px dashed var(--line)
}

/* resolution rate */
.rate-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px
}

.rate-bar {
  flex: 1;
  height: 10px;
  background: #eef0f3;
  border-radius: var(--radius-sm);
  overflow: hidden
}

.rate-bar>span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--saffron), var(--green));
  border-radius: var(--radius-sm);
  transition: width .5s ease
}

.rate-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  min-width: 56px;
  text-align: right
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px
}

.mini-stats .ms {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px
}

a.ms,
a.ms:hover,
a.ms:focus,
a.ms:active,
a.ms * {
  text-decoration: none !important;
  color: inherit;
}

a.ms {
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}

a.ms:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  text-decoration: none !important;
}

.mini-stats .ms i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 4px
}

.mini-stats .ms b {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1
}

.mini-stats .ms span {
  font-size: 11px;
  color: var(--muted)
}

/* quick actions */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px
}

.qa-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  transition: all .15s ease
}

.qa-item .ic {
  width: 20px;
  height: 20px;
  color: var(--saffron)
}

.qa-item:hover {
  background: var(--saffron-light);
  border-color: var(--saffron);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md)
}

.qa-item:hover .ic {
  color: var(--saffron-dark)
}

/* module overview tiles */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 10px
}

.mod-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  transition: all .15s ease;
  min-width: 0
}

.mod-tile:hover {
  border-color: var(--saffron);
  background: var(--saffron-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md)
}

.mod-ic {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  background: var(--saffron-light);
  color: var(--saffron);
  display: flex;
  align-items: center;
  justify-content: center
}

.mod-ic .ic {
  width: 17px;
  height: 17px
}

.mod-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2
}

.mod-body b {
  font-size: 17px;
  font-weight: 700
}

.mod-body span {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.mod-sub {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--muted);
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 3px 6px;
  white-space: nowrap;
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis
}

/* upcoming events list */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 9px
}

.event-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm)
}

.event-date {
  width: 46px;
  flex: 0 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 5px 0;
  line-height: 1.15
}

.event-date b {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--saffron)
}

.event-date span {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .4px
}

.event-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px
}

.event-body b {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.event-body span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

/* shared empty state */
.empty {
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 18px 8px;
  background: #f8fafc;
  border: 1px dashed #d8dde5;
  border-radius: var(--radius-sm)
}

.badge.reopened {
  background: #f3e8ff;
  color: #6b21a8
}

/* dashboard responsive */
@media (max-width: 900px) {
  .mini-stats {
    grid-template-columns: repeat(2, 1fr)
  }

  .mod-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr))
  }
}

@media (max-width: 480px) {
  .qa-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px
  }

  .qa-item {
    padding: 10px 4px;
    font-size: 11.5px
  }

  .mod-grid {
    grid-template-columns: 1fr
  }

  .mod-sub {
    max-width: 40%
  }

  .rate-num {
    font-size: 18px
  }
}

/* KPI strip: 6 balanced columns on desktop */
.stats.stats-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px
}

@media (max-width: 1300px) {
  .stats.stats-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media (max-width: 1000px) {
  .stats.stats-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

/* fixed-height chart host so doughnut & line chart stay the same size */
.chart-box {
  position: relative;
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-box canvas {
  margin: 0 auto !important;
  display: block !important;
  max-width: 100% !important;
}

/* full-height side card (events) */
.card-fill {
  display: flex;
  flex-direction: column
}

.card-fill .event-list {
  flex: 1
}

.event-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line)
}

.event-foot .mini-stats {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px
}

.event-foot .mini-stats .ms {
  padding: 8px 6px
}

/* .row / .col: below 860px stack columns full-width (prevents horizontal overflow) */
@media (max-width: 860px) {
  .row {
    gap: 14px
  }

  .col {
    flex: 1 1 100%;
    min-width: 0
  }
}

/* Global Modern Modal System */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.modal-overlay.active {
  display: flex !important;
}
.modal-box {
  background: #ffffff;
  border-radius: 14px;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  position: relative;
  border: 1px solid #e2e8f0;
  animation: modalScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}
.modal-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-close {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: all 0.18s ease;
  padding: 0;
}
.modal-close:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: rotate(90deg);
}
@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Quick Location Editable Tag Styling */
.loc-quick-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  text-decoration: none;
}
.loc-quick-tag:hover {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #7dd3fc;
  box-shadow: 0 2px 5px rgba(3, 105, 161, 0.15);
  transform: translateY(-1px);
}
.loc-quick-tag .edit-icon {
  font-size: 11px;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.loc-quick-tag:hover .edit-icon {
  opacity: 1;
}