@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@500;600;700;800;900&family=Poppins:wght@500;600;700;800;900&display=swap');

:root {
  --primary-green: #059669;
  --dark-green: #064e3b;
  --bg-slate: #f1f5f9;
  --card-bg: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --border-ui: #cbd5e1;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #0284c7;
  --whatsapp: #25d366;
  --sidebar-width: 275px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 5px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.12);
}

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
  font-family: 'Hind Siliguri', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif; 
}

body { 
  background-color: var(--bg-slate); 
  color: var(--text-dark); 
  line-height: 1.45; 
  font-size: 15px;
  font-weight: 600;
  -webkit-font-smoothing: antialiased; 
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
input[type=number] {
  -moz-appearance: textfield;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #e2e8f0; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-green); }

.toast {
  position: fixed; bottom: 24px; right: 24px; background: #0f172a; color: #fff; padding: 12px 22px; border-radius: var(--radius-md); font-size: 14.5px; font-weight: 800; z-index: 999999; display: none; border-left: 5px solid var(--primary-green); box-shadow: var(--shadow-lg);
}

/* ============ LOGIN PAGE — redesigned ============ */
.login-overlay {
  position: fixed; inset: 0; overflow: hidden;
  background: linear-gradient(135deg, #022c22 0%, #064e3b 45%, #0f172a 100%);
  display: flex; justify-content: center; align-items: center; z-index: 99999; padding: 16px;
}
.login-orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.35; pointer-events: none;
  animation: loginOrbFloat 9s ease-in-out infinite;
}
.login-orb-1 { width: 420px; height: 420px; background: #10b981; top: -120px; left: -100px; }
.login-orb-2 { width: 360px; height: 360px; background: #0ea5e9; bottom: -120px; right: -90px; animation-delay: -4.5s; }
@keyframes loginOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.08); }
}

.login-card {
  position: relative; z-index: 2;
  display: flex; width: 100%; max-width: 820px; min-height: 480px;
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 70px -15px rgba(0,0,0,0.55);
  animation: loginCardRise 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes loginCardRise {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Left brand panel */
.login-brand-panel {
  flex: 1 1 42%; position: relative; display: flex; align-items: center; justify-content: center;
  padding: 40px 32px; color: #fff; text-align: center;
  background: linear-gradient(160deg, #059669 0%, #047857 55%, #064e3b 100%);
  overflow: hidden;
}
.login-brand-panel::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.14) 1.5px, transparent 1.5px);
  background-size: 22px 22px; opacity: 0.5;
}
.login-brand-inner { position: relative; z-index: 1; }
.login-brand-logo { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px rgba(255,255,255,0.18), 0 12px 26px rgba(0,0,0,0.3); margin-bottom: 16px; }
.login-brand-inner h2 { font-size: 23px; font-weight: 900; letter-spacing: 0.6px; }
.login-brand-tag { font-size: 13px; opacity: 0.9; font-weight: 700; margin-top: 2px; margin-bottom: 22px; }
.login-brand-points { list-style: none; text-align: left; display: inline-flex; flex-direction: column; gap: 11px; }
.login-brand-points li { font-size: 13px; font-weight: 700; opacity: 0.96; display: flex; align-items: center; gap: 9px; }
.login-brand-points li i { color: #6ee7b7; font-size: 14px; }

/* Right form panel */
.login-form-panel { flex: 1 1 58%; padding: 40px 38px; display: flex; flex-direction: column; justify-content: center; }
.login-form-head { text-align: center; margin-bottom: 22px; }
.login-lock-icon {
  width: 50px; height: 50px; margin: 0 auto 12px; border-radius: 14px;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #047857;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.login-form-head h3 { font-size: 20px; font-weight: 900; color: #0f172a; }
.login-form-head p { font-size: 13px; color: #64748b; font-weight: 600; margin-top: 2px; }

.login-body { display: flex; flex-direction: column; gap: 18px; }

.login-input-group { position: relative; }
.login-input-group input {
  width: 100%; padding: 15px 14px 15px 42px; border: 1.5px solid #e2e8f0; border-radius: 12px;
  font-size: 14.5px; font-weight: 700; color: #0f172a; background: #f8fafc;
  outline: none; transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.login-input-group input:focus { border-color: var(--primary-green); background: #fff; box-shadow: 0 0 0 4px rgba(5,150,105,0.12); }
.login-input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 15px; transition: color 0.18s; }
.login-input-group input:focus ~ .login-input-icon { color: var(--primary-green); }

.login-input-group label {
  position: absolute; left: 42px; top: 15px; font-size: 14.5px; font-weight: 700; color: #94a3b8;
  pointer-events: none; transition: all 0.16s ease; background: transparent; padding: 0 4px;
}
.login-input-group input:focus + label,
.login-input-group input:not(:placeholder-shown) + label {
  top: -9px; left: 10px; font-size: 11.5px; color: var(--primary-green); background: #fff; border-radius: 4px;
}

.toggle-password-btn {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  cursor: pointer; color: #94a3b8; font-size: 15px; user-select: none; transition: color 0.15s;
}
.toggle-password-btn:hover { color: var(--primary-green); }

.btn-login-submit {
  background: linear-gradient(135deg, #059669, #047857); color: #fff; padding: 14px;
  border: none; border-radius: 12px; font-size: 15px; font-weight: 800; cursor: pointer;
  display: flex; justify-content: center; align-items: center; gap: 8px;
  box-shadow: 0 8px 20px rgba(5,150,105,0.32); transition: transform 0.15s, box-shadow 0.15s;
}
.btn-login-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(5,150,105,0.4); }
.btn-login-submit:active { transform: translateY(0); }

.login-footnote { text-align: center; font-size: 11.5px; color: #94a3b8; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; }

@media (max-width: 720px) {
  .login-card { flex-direction: column; max-width: 420px; min-height: 0; }
  .login-brand-panel { padding: 28px 24px; }
  .login-brand-logo { width: 68px; height: 68px; margin-bottom: 10px; }
  .login-brand-points { display: none; }
  .login-form-panel { padding: 30px 26px; }
}

.app-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  background: #0f172a;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 999;
  box-shadow: 4px 0 16px rgba(0,0,0,0.18);
  transition: transform 0.25s ease;
}

.sidebar-header {
  padding: 18px 16px;
  background: linear-gradient(135deg, #064e3b 0%, #0f172a 100%);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-brand h2 { font-size: 18px; color: #a7f3d0; font-weight: 900; letter-spacing: 0.5px; }
.sidebar-brand p { font-size: 12px; color: #cbd5e1; font-weight: 700; }
.sidebar-menu { flex: 1; padding: 12px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }

.nav-btn {
  border: none;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 15.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, filter 0.2s ease;
  text-align: left;
  width: 100%;
}
.nav-btn i { font-size: 18px !important; }
.nav-btn:hover { transform: translateX(4px); filter: brightness(1.18); }

.btn-nav-dash { background: linear-gradient(135deg, #10b981, #047857); }
.btn-nav-ebill { background: linear-gradient(135deg, #f59e0b, #d97706); }
.btn-nav-tracker { background: linear-gradient(135deg, #06b6d4, #0e7490); }
.btn-nav-allcust { background: linear-gradient(135deg, #64748b, #334155); }
.btn-nav-passport { background: linear-gradient(135deg, #22c55e, #15803d); }
.btn-nav-nid { background: linear-gradient(135deg, #f43f5e, #be123c); }
.btn-nav-birth { background: linear-gradient(135deg, #a855f7, #6b21a8); }
.btn-nav-license { background: linear-gradient(135deg, #f59e0b, #b45309); }
.btn-nav-police { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.btn-nav-other { background: linear-gradient(135deg, #6366f1, #4338ca); }
.btn-nav-helpdesk { background: linear-gradient(135deg, #fb7185, #e11d48); }
.btn-nav-agent { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.btn-nav-broadcast { background: linear-gradient(135deg, #c084fc, #9333ea); }
.btn-nav-users { background: linear-gradient(135deg, #ef4444, #991b1b); }
.btn-nav-logs { background: linear-gradient(135deg, #475569, #1e293b); }

.nav-btn.active {
  outline: 3px solid #ffffff;
  outline-offset: 1px;
  font-weight: 900 !important;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.45);
}

.main-wrapper { flex: 1; margin-left: var(--sidebar-width); display: flex; flex-direction: column; min-width: 0; }

.top-header { background: #ffffff; border-bottom: 2px solid var(--border-ui); padding: 12px 24px; position: sticky; top: 0; z-index: 99; box-shadow: var(--shadow-sm); }
.header-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.mobile-toggle-btn { display: none; background: #0f172a; color: #fff; border: none; padding: 8px 12px; border-radius: 8px; font-size: 18px; cursor: pointer; }
.brand-info h1 { font-size: 19px; color: var(--dark-green); font-weight: 900; }
.brand-info p { font-size: 13px; color: var(--text-muted); font-weight: 700; }
.user-badge { display: flex; align-items: center; gap: 10px; }
#currentUserDisplay { background: #ecfdf5; color: var(--dark-green); padding: 6px 14px; border-radius: 20px; font-size: 13.5px; font-weight: 800; border: 1.5px solid #a7f3d0; }
.btn-logout { background: #fee2e2; color: var(--danger); border: 1.5px solid #fecaca; padding: 6px 12px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 800; cursor: pointer; }

.container { padding: 18px; flex: 1; }
.page-content { display: none; }
.page-content.active-page { display: block; }

.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 18px; }
.kpi-card { background: #ffffff; padding: 16px 20px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 16px; border: 2px solid transparent; }
.kpi-card .card-icon { font-size: 28px; padding: 14px; border-radius: 12px; }
.kpi-card span { font-size: 13px; color: var(--text-muted); font-weight: 800; text-transform: uppercase; }
.kpi-card h2 { font-size: 26px; font-weight: 900; margin-top: 2px; }

.card-green { border-color: #a7f3d0; }
.card-green .card-icon { background: #dcfce7; color: #15803d; }
.card-green h2 { color: #15803d; }

.card-amber { border-color: #fde68a; }
.card-amber .card-icon { background: #fef3c7; color: #b45309; }
.card-amber h2 { color: #b45309; }

.card-red { border-color: #fecaca; }
.card-red .card-icon { background: #fee2e2; color: #dc2626; }
.card-red h2 { color: #dc2626; }

.card-cyan { border-color: #bae6fd; }
.card-cyan .card-icon { background: #e0f2fe; color: #0369a1; }
.card-cyan h2 { color: #0369a1; }

.card-purple { border-color: #e9d5ff; }
.card-purple .card-icon { background: #f3e8ff; color: #7e22ce; }
.card-purple h2 { color: #7e22ce; }

.ebill-kpi-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.ebill-mini-kpi {
  background: #ffffff;
  border: 1.5px solid var(--border-ui);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.ebill-mini-kpi i {
  font-size: 20px;
  padding: 10px;
  border-radius: 8px;
}
.ebill-mini-kpi span {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  display: block;
}
.ebill-mini-kpi strong {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
}
.kpi-orange i { background: #fef3c7; color: #d97706; }
.kpi-green i { background: #dcfce7; color: #059669; }
.kpi-amber i { background: #fee2e2; color: #dc2626; }
.kpi-blue i { background: #e0f2fe; color: #0284c7; }

.ebill-form-grid-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: flex-end;
}
.ebill-btn-wrap {
  grid-column: span 1;
}

.card-box { background: #ffffff; border-radius: var(--radius-lg); border: 2px solid var(--border-ui); box-shadow: var(--shadow-md); overflow: hidden; margin-bottom: 18px; }
.card-header { padding: 14px 20px; font-weight: 900; font-size: 15.5px; color: #ffffff; display: flex; align-items: center; gap: 10px; }
.card-body { padding: 20px; }
.d-flex-between { display: flex; justify-content: space-between; align-items: center; }

.bg-gradient-green { background: linear-gradient(135deg, #059669, #047857); }
.bg-gradient-cyan { background: linear-gradient(135deg, #0284c7, #0369a1); }
.bg-gradient-red { background: linear-gradient(135deg, #e11d48, #be123c); }
.bg-gradient-purple { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.bg-gradient-amber { background: linear-gradient(135deg, #d97706, #b45309); }
.bg-gradient-blue { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.bg-gradient-indigo { background: linear-gradient(135deg, #6366f1, #4338ca); }
.bg-gradient-rose { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.bg-gradient-teal { background: linear-gradient(135deg, #0d9488, #0f766e); }
.bg-dark { background: #1e293b; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13.5px; font-weight: 800; color: #1e293b; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 2px solid var(--border-ui); border-radius: var(--radius-md); font-size: 14.5px; font-weight: 700; outline: none; background: #ffffff; color: #0f172a;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary-green); box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2); background: #f0fdf4;
}

.form-grid-3-large { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.form-grid-2-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.side-to-side-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 18px; }

.input-slim {
  padding: 8px 12px !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
}
.month-year-inline-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 6px;
}
.select-slim {
  padding: 8px 10px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
}

.ebill-wide-search {
  width: 260px !important;
}
.ebill-modern-table {
  width: 100% !important;
  font-size: 14px !important;
}
.ebill-modern-table th {
  padding: 12px 10px !important;
  font-size: 13.5px !important;
}
.ebill-modern-table td {
  padding: 10px !important;
  vertical-align: middle !important;
}

.service-section-ultra { background: #f8fafc; border: 2px solid #cbd5e1; border-radius: var(--radius-lg); padding: 18px; }
.service-header-banner-ultra { font-size: 16px; font-weight: 800; color: var(--dark-green); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.services-container-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }

.service-card-item { display: flex; flex-wrap: wrap; gap: 8px; background: #ffffff; padding: 10px; border-radius: var(--radius-md); border: 2px solid #cbd5e1; align-items: center; }
.service-card-item select, .service-card-item input { font-size: 14px; font-weight: 800; padding: 9px; }
.service-cost-price { background: #fef2f2 !important; border-color: #fca5a5 !important; color: #b91c1c !important; }

.subcat-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.subcat-custom-input {
  border-color: #6366f1 !important;
  background: #eef2ff !important;
  color: #3730a3 !important;
}

.btn-add-service-ultra { background: #ecfdf5; color: var(--primary-green); border: 2.5px dashed var(--primary-green); padding: 12px; width: 100%; border-radius: var(--radius-md); font-size: 15px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-remove-modern { background: #fee2e2; color: var(--danger); border: 1.5px solid #fecaca; height: 38px; width: 38px; border-radius: var(--radius-sm); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 15px; }

.minimal-upload-strip {
  background: #f0fdf4;
  border: 2px dashed var(--primary-green);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}
.minimal-upload-strip:hover {
  background: #dcfce7;
  border-color: #047857;
}
.minimal-upload-strip input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.upload-strip-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.upload-strip-info i {
  font-size: 22px;
  color: var(--primary-green);
}
.upload-strip-info strong {
  font-size: 14px;
  color: #065f46;
}
.upload-strip-info span {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.calc-box-ultra { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; background: #f8fafc; border: 2px solid var(--border-ui); padding: 16px; border-radius: var(--radius-lg); }
.input-calc-readonly { background: #e2e8f0 !important; font-weight: 800; }
.input-calc-bold { font-size: 16px !important; font-weight: 800; color: #064e3b !important; background: #dcfce7 !important; }
.input-calc-due { font-size: 16px !important; font-weight: 800; color: var(--danger) !important; background: #fee2e2 !important; }
.wallet-pay-banner { background: #dcfce7; padding: 12px 16px; border-radius: var(--radius-md); border: 1.5px solid #86efac; font-size: 14.5px; }

.button-group-form { display: flex; gap: 12px; }
.btn-save, .btn-btn-delete, .btn-cancel-edit, .btn-whatsapp { padding: 11px 18px; border: none; border-radius: var(--radius-md); font-size: 14px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; box-shadow: var(--shadow-sm); }
.btn-save { background: linear-gradient(135deg, #10b981, #047857); color: #ffffff; }
.btn-big-submit { flex: 1; padding: 14px; font-size: 15.5px; }
.btn-whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); color: #ffffff; }
.btn-cancel-edit { background: #64748b; color: #ffffff; }
.btn-btn-delete { background: var(--danger); color: #ffffff; padding: 6px 10px; font-size: 12.5px; }

.table-responsive { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { background: #f8fafc; color: #334155; font-weight: 800; padding: 8px 8px; border-bottom: 2px solid var(--border-ui); white-space: nowrap; font-size: 14px; }
.data-table td { padding: 6px 8px; border-bottom: 1px solid #e2e8f0; color: #0f172a; vertical-align: middle; font-weight: 600; }
.data-table tbody tr:hover { background: #f0fdf4 !important; }
.search-input-top { padding: 6px 14px; font-size: 13px; font-weight: 700; border-radius: 20px; border: 1px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.2); color: #fff; outline: none; }

.ebill-filter-bar {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1.5px solid var(--border-ui);
  align-items: center;
}
.ebill-filter-btn {
  background: #ffffff;
  border: 1.5px solid var(--border-ui);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  transition: all 0.2s ease;
}
.ebill-filter-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.ebill-filter-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: var(--shadow-sm);
}
.btn-filter-unpaid.active {
  background: #d97706 !important;
  border-color: #d97706 !important;
  color: #ffffff !important;
}
.btn-filter-paid.active {
  background: #059669 !important;
  border-color: #059669 !important;
  color: #ffffff !important;
}

.status-select-dynamic {
  padding: 4px 6px;
  border-radius: 6px;
  font-weight: 800 !important;
  font-size: 12.5px !important;
  border: 1.5px solid transparent;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}
.status-style-submit { background: #f1f5f9; color: #334155; border-color: #cbd5e1; }
.status-style-pending { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.status-style-processing { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.status-style-biometric { background: #f3e8ff; color: #7e22ce; border-color: #e9d5ff; }
.status-style-approved { background: #dcfce7; color: #15803d; border-color: #86efac; }
.status-style-printing { background: #ccfbf1; color: #0f766e; border-color: #99f6e4; }
.status-style-ready { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }
.status-style-delivered { background: #10b981; color: #ffffff; border-color: #059669; }
.status-style-rejected { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }

.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99998; display: none; backdrop-filter: blur(2px); }
.drawer-overlay.active { display: block; }
.slide-drawer {
  position: fixed; top: 0; bottom: 0; right: 0; width: 100%; max-width: 440px; background: #ffffff; z-index: 99999; box-shadow: -6px 0 24px rgba(0,0,0,0.2); transform: translateX(100%); transition: transform 0.25s ease-in-out; display: flex; flex-direction: column;
}
.slide-drawer.open { transform: translateX(0); }
.drawer-header { padding: 18px 20px; background: linear-gradient(135deg, #059669, #047857); color: #fff; display: flex; justify-content: space-between; align-items: center; }
.drawer-header h3 { font-size: 17px; font-weight: 800; }
.drawer-body { padding: 18px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.drawer-info-group { background: #f8fafc; border: 1.5px solid var(--border-ui); border-radius: var(--radius-md); padding: 12px 14px; font-size: 14px; }

.status-timeline { display: flex; justify-content: space-between; position: relative; margin: 20px 0 12px; }
.status-timeline::before { content: ''; position: absolute; top: 16px; left: 12px; right: 12px; height: 5px; background: #e2e8f0; z-index: 1; }
.step-item { position: relative; z-index: 2; text-align: center; flex: 1; }
.step-icon { width: 32px; height: 32px; background: #e2e8f0; color: #64748b; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 5px; font-size: 12.5px; font-weight: bold; }
.step-item.active .step-icon { background: var(--primary-green); color: #fff; box-shadow: 0 0 0 4px #a7f3d0; }
.step-label { font-size: 11px; font-weight: 800; color: #64748b; }
.step-item.active .step-label { color: var(--dark-green); font-weight: 800; }

.btn-copy-chip {
  background: #e0f2fe; color: #0369a1; border: 1.5px solid #bae6fd; padding: 2px 6px; border-radius: 4px; font-size: 11.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; font-weight: 800; user-select: none;
}
.btn-copy-chip:hover { background: #0284c7; color: #ffffff; }
.btn-copy-chip:active { transform: scale(0.92); }

.passport-red-signal { background: #fee2e2 !important; color: #b91c1c !important; font-weight: 800 !important; padding: 3px 8px; border-radius: 6px; border: 1.5px solid #f87171; animation: blinkAlert 1.2s infinite; display: inline-block; font-size: 12px; }
@keyframes blinkAlert { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(0.98); } }

.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(2px); display: none; justify-content: center; align-items: center; z-index: 10000; padding: 14px; }
.modal-content { background: #ffffff; border-radius: var(--radius-lg); width: 100%; box-shadow: var(--shadow-lg); }
.modal-compact { max-width: 380px; padding: 20px; }
.modal-invoice-compact { max-width: 480px; padding: 16px; max-height: 95vh; overflow-y: auto; }
.invoice-actions-top { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 10px; }

.dual-invoice-container { display: flex; flex-direction: column; gap: 0; }
.invoice-single-copy { border: 1px dashed #64748b; padding: 14px; border-radius: 6px; font-size: 11.5px; background: #ffffff; color: #000; font-weight: 600; }
.shop-copy-only { display: none; }
.invoice-header-flex { display: flex; align-items: center; gap: 8px; }
.invoice-logo { width: 40px; height: 40px; object-fit: contain; }
.header-text-info h2 { font-size: 15px; color: #064e3b; font-weight: 800; margin: 0; }
.header-text-info p { font-size: 9.5px; color: #475569; margin: 0; font-weight: 600; }
.copy-tag-badge { display: inline-block; background: #0284c7; color: #fff; padding: 2px 8px; font-size: 9px; font-weight: 800; border-radius: 3px; margin-top: 3px; }
.bg-shop-tag { background: #334155; }
.invoice-details { margin: 8px 0; padding: 6px 10px; background: #f8fafc; border-radius: 4px; display: grid; grid-template-columns: 1fr 1fr; font-size: 10px; border: 1px solid #e2e8f0; }
.invoice-table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.invoice-table th, .invoice-table td { border-bottom: 1px solid #e2e8f0; padding: 5px; text-align: left; font-size: 10px; }
.invoice-table th:last-child, .invoice-table td:last-child { text-align: right; }
.invoice-summary { margin-top: 8px; border-top: 1px solid #cbd5e1; padding-top: 4px; display: grid; grid-template-columns: 1fr 1fr; font-size: 10px; }
.invoice-summary p { display: flex; justify-content: space-between; margin: 0; }
.barcode-qr-row { display: flex !important; justify-content: space-between !important; align-items: center !important; margin-top: 8px !important; padding-top: 6px !important; border-top: 1px dashed #94a3b8 !important; }
.barcode-svg { height: 38px !important; max-width: 170px !important; }
.qrcode-box img { width: 70px !important; height: 70px !important; display: block !important; }

@media print {
  html, body { width: 210mm !important; height: 100% !important; margin: 0 !important; padding: 0 !important; background: #ffffff !important; display: block !important; }
  body * { visibility: hidden !important; }
  #invoiceModal, #invoiceModal * { visibility: visible !important; }
  #invoiceModal { position: fixed !important; left: 0 !important; top: 0 !important; width: 100% !important; height: auto !important; background: transparent !important; display: block !important; padding: 0 !important; margin: 0 !important; }
  .invoice-actions-top, .modal-buttons, .toast { display: none !important; }
  .modal-invoice-compact { max-width: 100% !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; border: none !important; background: transparent !important; }
  .dual-invoice-container { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 6mm !important; width: 100% !important; padding: 4mm 6mm 0 6mm !important; margin: 0 !important; }
  .shop-copy-only { display: block !important; }
  .invoice-single-copy { border: 1px dashed #000000 !important; padding: 8px 10px !important; border-radius: 4px !important; background: #ffffff !important; font-size: 9.5px !important; }
  @page { size: A4 portrait; margin: 4mm 0 0 0; }
}

@media (max-width: 992px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar-overlay.active { display: block; }
  .main-wrapper { margin-left: 0; }
  .mobile-toggle-btn { display: inline-flex; }
  .side-to-side-grid { grid-template-columns: 1fr; }
  .service-card-item { grid-template-columns: 1fr; }
  .service-card-item .btn-remove-modern { width: 100%; }
}

/* পাসপোর্ট টেবিল: নো-স্ক্রোল ভিউ ও বড় ফন্ট */
.passport-no-scroll-table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

.passport-no-scroll-table th,
.passport-no-scroll-table td {
  white-space: normal !important;
  word-wrap: break-word !important;
  padding: 4px 6px !important;
  font-size: 14.5px !important;
  vertical-align: middle !important;
  line-height: 1.25 !important;
}

.passport-no-scroll-table th {
  font-size: 14.5px !important;
  font-weight: 900 !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  padding: 7px 6px !important;
}

.pass-cust-meta {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #334155;
  margin-top: 1px;
  display: block;
}

.pass-gmail-chip {
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 1px 5px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 2px;
  word-break: break-all;
}

.tracker-filter-bar button {
  font-size: 13px !important;
  font-weight: 800 !important;
}
.btn-nav-reports { background: linear-gradient(135deg, #0284c7, #0369a1); }

@media print {
  #printableReportArea, #printableReportArea * { visibility: visible !important; }
  #printReportHeader { display: block !important; }
}