/* ═══ ভিসা ক্লায়েন্ট ম্যানেজার — স্টাইলশিট ═══ */
:root {
  --green: #0E5C3F;
  --green-dark: #0A4630;
  --saffron: #F2A33C;
  --ink: #1D2B24;
  --muted: #7A8578;
  --paper: #F6F4EE;
  --card: #FFFFFF;
  --line: #E4DFD2;
  --soft: #FBFAF6;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --sidebar-width: 250px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
}
a { text-decoration: none; color: inherit; }

/* ─── সাইডবার লেআউট ─── */
.has-sidebar { 
  display: flex; 
  min-height: 100vh; 
}

.sidebar {
  width: var(--sidebar-width); 
  flex-shrink: 0; 
  background: var(--green); 
  color: #fff;
  display: flex; 
  flex-direction: column; 
  position: sticky; 
  top: 0; 
  height: 100vh;
  overflow-y: auto;
}
.sidebar-brand {
  display: flex; gap: 10px; align-items: center; padding: 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.brand-icon { font-size: 24px; color: var(--saffron); }
.brand-name { display: block; font-size: 17px; font-weight: 700; line-height: 1.25; }
.brand-sub { display: block; font-size: 11.5px; opacity: .8; margin-top: 2px; }

.sidebar-nav { flex: 1; padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; }
.sidebar-section {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; opacity: .55;
  padding: 12px 10px 5px; text-transform: uppercase;
}
.side-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 9px; font-size: 14.5px; font-weight: 600; color: #DCEAE2;
  transition: background .15s;
}
.side-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.side-link.active { background: var(--saffron); color: #3A2A08; }
.side-icon { width: 22px; text-align: center; flex-shrink: 0; }

.sidebar-footer { padding: 12px 10px; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar-user { display: flex; gap: 10px; align-items: center; padding: 8px 10px 12px; }
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--saffron);
  color: #3A2A08; font-weight: 700; font-size: 16px; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.user-info { display: flex; flex-direction: column; line-height: 1.3; }
.user-info strong { font-size: 14px; }
.user-info small { font-size: 11.5px; opacity: .75; }
.side-logout { color: #FFD3D3; }
.side-logout:hover { background: rgba(166,34,34,.35); color: #fff; }

.main-area { 
  flex: 1; 
  min-width: 0; 
  display: flex; 
  flex-direction: column; 
  width: calc(100% - var(--sidebar-width));
}

/* ─── পেজ হেডার (প্রতিটি অ্যাডমিন/স্টাফ পেজে) ─── */
.page-header {
  background: linear-gradient(120deg, var(--green) 0%, #0A4630 100%);
  color: #fff; padding: 10px 22px;
  display: flex; align-items: center; justify-content: flex-end;
  gap: 8px; flex-wrap: wrap;
}
.page-header-chip {
  font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.14);
  padding: 6px 13px; border-radius: 20px;
}

@media (max-width: 560px) {
  .page-header { padding: 9px 14px; justify-content: center; }
}

/* ─── মোবাইল টপবার ─── */
.mobile-topbar {
  display: none; background: var(--green); color: #fff; padding: 12px 14px;
  align-items: center; gap: 12px; position: sticky; top: 0; z-index: 40;
}
.hamburger {
  background: rgba(255,255,255,.14); border: none; color: #fff; font-size: 19px;
  padding: 6px 12px; border-radius: 8px; cursor: pointer;
}
.mobile-brand { font-size: 16px; font-weight: 700; }
.sidebar-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 45;
}
.sidebar-overlay.show { display: block; }

@media (max-width: 860px) {
  .has-sidebar { display: block; }
  .mobile-topbar { display: flex; }
  .sidebar {
    position: fixed; left: -270px; top: 0; z-index: 50; height: 100vh;
    transition: left .22s ease; box-shadow: 4px 0 24px rgba(0,0,0,.2);
  }
  .sidebar.open { left: 0; }
  .main-area { width: 100%; }
}

/* ─── লেআউট ─── */
.container { 
  width: 100%; 
  max-width: 100%; /* পুরো প্রস্থ */ 
  padding: 20px 24px 60px; 
  flex: 1; 
}
@media (max-width: 600px) {
  .container { padding: 12px 12px 40px; }
}

.footer { text-align: center; padding: 18px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }

.flash {
  background: #E5F5E9; color: #1E7A3C; border: 1px solid #BFE3C9;
  padding: 11px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600;
}
.flash-error { background: #FDE8E8; color: #A62222; border-color: #F0C4C4; }

/* ─── ইনপুট ও বাটন ─── */
.input {
  width: 100%; padding: 5px 10px; border: 1.5px solid #D8D2C4; border-radius: 8px;
  font-size: 15px; background: #fff; font-family: inherit; color: var(--ink);
  transition: all 0.2s;
}
.input:focus { 
  outline: none; 
  border-color: var(--green); 
  box-shadow: 0 0 0 3px rgba(14,92,63,.12); 
}
.field-label { 
  display: block; 
  font-size: 13px; 
  font-weight: 700; 
  margin: 0 0 5px; 
  color: #4A5A50; 
}
.field-label .required { color: #A62222; }

.btn {
  display: inline-block; padding: 10px 24px; border-radius: 8px; border: none;
  font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; text-align: center;
  transition: all 0.2s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(14,92,63,.3); }
.btn-ghost { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-ghost:hover { background: rgba(14,92,63,.07); }
.btn-sm { padding: 6px 14px; font-size: 13.5px; }
.btn-del { color: #A62222; border-color: #E8B7B7; }
.btn-del:hover { background: #FDE8E8; }
.btn-block { width: 100%; margin-top: 14px; }

/* ─── পরিসংখ্যান ─── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-bottom: 18px; margin-top: 18px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat-num { font-size: 27px; font-weight: 700; }
.stat-label { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ─── ফিল্টার ─── */
.filter-bar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-bar .input[name="q"] { flex: 1 1 240px; }
.filter-bar select { width: auto; }

/* ─── ক্লায়েন্ট কার্ড ─── */
.client-list { display: grid; gap: 12px; }
.client-card { background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px; }
.client-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.client-name-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.client-name { font-size: 16.5px; font-weight: 700; }
.client-name:hover { color: var(--green); text-decoration: underline; }
.badge { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.client-meta { font-size: 13px; color: #5C6B61; margin-top: 4px; display: flex; gap: 14px; flex-wrap: wrap; }
.client-meta .due { color: #A62222; font-weight: 700; }
.client-actions { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }

.progress-row { margin-top: 12px; }
.progress-labels { display: flex; justify-content: space-between; font-size: 12px; color: #5C6B61; margin-bottom: 4px; font-weight: 600; }
.progress-track { height: 7px; background: #EEE9DC; border-radius: 20px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 20px; transition: width .3s; }
.missing-docs { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: 11.5px; background: #FDF2E4; color: #8A5200; border: 1px solid #F0DCBC;
  padding: 2px 10px; border-radius: 20px; font-weight: 600; display: inline-block;
}
.chip-opt { background: #FFF3E0; color: #9A5B00; border: none; margin-left: 6px; }
.chip-med { background: #E3F0FF; color: #1B5AA6; border: none; margin-left: 6px; }
.note-box {
  margin-top: 10px; font-size: 13.5px; color: #5C6B61; background: var(--soft);
  border-left: 3px solid var(--saffron); padding: 8px 12px; border-radius: 0 8px 8px 0;
}

/* ─── খালি অবস্থা ─── */
.empty-state {
  background: var(--card); border: 1.5px dashed #D8D2C4; border-radius: 14px;
  padding: 48px 20px; text-align: center;
}
.empty-icon { font-size: 38px; margin-bottom: 8px; }
.empty-state h3 { margin: 0 0 4px; }
.empty-state p { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }

/* ─── প্যানেল (ফর্ম / ভিউ) ─── */
.panel { 
  background: var(--card); 
  border: 1px solid var(--line); 
  border-radius: var(--radius); 
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 100%; /* পুরো প্রস্থ */
}
.panel-head { 
  padding: 18px 24px; 
  border-bottom: 1px solid #EEE9DC; 
  background: #9FE2BF; 
}
.panel-head h2 { margin: 0; font-size: 19px; }
.panel-head p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.panel-body { 
  padding: 24px; 
  display: grid; 
  gap: 20px; 
}

/* ─── ফর্ম গ্রিড - ৩ কলাম ─── */
.form-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 18px 24px; 
}
@media (max-width: 1200px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .panel-body { padding: 16px; }
}

.form-actions { 
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap; 
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

/* ─── চেকলিস্ট ─── */
.docs-section { 
  margin-top: 4px; 
}
.docs-section h3 { 
  margin: 0 0 3px; 
  font-size: 16px; 
  display: flex;
  align-items: center;
  gap: 8px;
}
.docs-section .hint { 
  margin: 0 0 12px; 
  font-size: 12.5px; 
  color: var(--muted); 
}

.doc-list { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 8px 16px; 
}
@media (max-width: 992px) {
  .doc-list { grid-template-columns: 1fr; }
}

.doc-item {
  display: flex; 
  align-items: flex-start; 
  gap: 11px; 
  padding: 10px 13px;
  border-radius: 9px; 
  cursor: pointer; 
  border: 1.5px solid var(--line);
  background: var(--soft); 
  font-size: 14px; 
  transition: all .15s;
}
.doc-item input { 
  width: 19px; 
  height: 19px; 
  margin-top: 2px; 
  accent-color: var(--green); 
  cursor: pointer; 
  flex-shrink: 0; 
}
.doc-item.checked { 
  border-color: var(--green); 
  background: #EDF6F0; 
  font-weight: 600; 
}

/* ─── চেকলিস্ট আইটেমের ভেতরে ফাইল আপলোড ─── */
.doc-block { 
  display: block; 
  cursor: default; 
  padding: 0; 
  overflow: hidden; 
}
.doc-check {
  display: flex; 
  align-items: flex-start; 
  gap: 11px; 
  padding: 12px 13px;
  cursor: pointer; 
  font-size: 14px;
}
.doc-check input { 
  width: 19px; 
  height: 19px; 
  margin-top: 2px; 
  accent-color: var(--green); 
  cursor: pointer; 
  flex-shrink: 0; 
}
.doc-upload {
 margin-top: 10px;
}
.doc-file-input { 
  max-width: 300px; 
  padding: 10px 10px; 
  font-size: 13px; 
  background: #fff; 
  border-radius: 6px;
  border: 1px solid #D8D2C4;
}
.doc-file-hint { 
  font-size: 12px; 
  color: var(--muted); 
}
.doc-existing { 
  display: flex; 
  gap: 5px; 
  flex-wrap: wrap; 
}
.chip-file { 
  background: #E3F0FF; 
  color: #1B5AA6; 
  border: 1px solid #C4DCF5; 
}
a.chip-file:hover { 
  background: #CFE4FA; 
  text-decoration: none;
}
.doc-upload-mini { display: inline-block; margin: 2px 0; }
.doc-upload-mini .chip-btn { border: 1px dashed #B9C9BE; background: #F3F7F4; color: #2C5C42; }
.doc-nofile { font-size: 11.5px; color: var(--muted); margin-left: 4px; }

/* ─── BGD ফর্ম সেকশন ─── */
.bgd-fields { 
  margin-top: 16px; 
  padding: 20px; 
  background: #f8fafc; 
  border-radius: 10px; 
  border: 1px solid #e2e8f0; 
}
.bgd-fields .form-grid { 
  grid-template-columns: 1fr 1fr 1fr; 
  gap: 16px; 
}
@media (max-width: 1200px) {
  .bgd-fields .form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .bgd-fields .form-grid { grid-template-columns: 1fr; }
}

/* ─── ইউজার ট্র্যাকিং লিস্ট ─── */
.card-complete { border-color: #A9D7B7; box-shadow: 0 0 0 1px #A9D7B7; }
.badge-100 { background: #1E7A3C; color: #fff; }
.chip-done { background: #E5F5E9; color: #1E7A3C; border: 1px solid #BFE3C9; }
.doc-track-chip { display: inline-block; }
.doc-track-chip summary { cursor: pointer; list-style: none; }
.doc-track-chip summary::-webkit-details-marker { display: none; }
.doc-track-chip[open] summary.chip { background: #1E7A3C; color: #fff; }
.doc-track-files {
  display: flex; flex-direction: column; gap: 5px; margin: 7px 0 4px;
  padding: 9px 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 9px;
}
.doc-track-file { display: flex; gap: 10px; align-items: center; font-size: 13px; flex-wrap: wrap; }
.doc-track-file small { color: var(--muted); }

/* ─── পাবলিক রেজিস্ট্রেশন ─── */
.public-wrap { max-width: 760px; margin: 0 auto; padding: 26px 16px 50px; }
.public-head { text-align: center; margin-bottom: 20px; }
.public-head h1 { margin: 0; font-size: 22px; color: var(--green); }
.public-head p { margin: 5px auto 0; font-size: 14px; color: var(--muted); max-width: 480px; }

/* ─── ডিটেইল ভিউ ─── */
.view-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.view-actions { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.print-agency { display: none; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.detail-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
  gap: 12px; 
}

.detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-grid {
    background: #e8f5e9;
    padding: 18px;
    border-radius: 14px;
}

.detail-item {
    background: #f1f8f4;
    border: 1px solid #b7dfc3;
    border-left: 4px solid #198754;
    border-radius: 12px;
    padding: 16px 18px;
}

.detail-item > span {
    color: #4f6f5a;
}

.detail-item > strong {
    color: #14532d;
}

.detail-item:hover {
    background: #dcfce7;
    border-color: #22c55e;
}
.detail-item { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.detail-item span { display: block; font-size: 12px; color: var(--muted); }
.detail-item strong { font-size: 15.5px; }
.section-title { margin: 6px 0 0; font-size: 15.5px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc-table th, .doc-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid #EEE9DC; }
.doc-table th { background: var(--soft); font-size: 12.5px; color: #4A5A50; }
.doc-table .ok { color: #1E7A3C; font-weight: 700; }
.doc-table .pending { color: #9A5B00; font-weight: 700; }
.print-sign { display: none; }

/* ─── ইনলাইন ফর্ম (পেমেন্ট / আপলোড) ─── */
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.muted-hint { font-size: 13px; color: var(--muted); }
.table-link { color: var(--green); font-weight: 600; }
.table-link:hover { text-decoration: underline; }
.doc-table tfoot td { border-top: 2px solid var(--line); background: var(--soft); }

/* ─── ফাইল গ্রিড ─── */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.file-card { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--soft); }
.file-thumb { display: block; height: 120px; background: #EEE9DC; text-align: center; overflow: hidden; }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-pdf { line-height: 120px; font-size: 17px; font-weight: 700; color: #8A5200; }
.file-info { padding: 9px 11px; display: grid; gap: 4px; }
.file-name { font-size: 13px; font-weight: 700; color: var(--green); word-break: break-all; }
.file-name:hover { text-decoration: underline; }
.file-meta { font-size: 11.5px; color: var(--muted); }

/* ─── SMS ─── */
.sms-form { display: grid; gap: 8px; }
.sms-templates { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn { cursor: pointer; font-family: inherit; }
.chip-btn:hover { background: #F6E3C4; }
.sms-history { margin-top: 12px; }
.sms-history summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--green); margin-bottom: 8px; }

/* ─── রিপোর্ট ─── */
.report-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.bar-report { display: grid; gap: 7px; }
.bar-row { display: grid; grid-template-columns: 92px 1fr 150px; gap: 10px; align-items: center; padding: 5px 8px; border-radius: 8px; }
.bar-row:hover { background: var(--soft); }
.bar-active { background: #EDF6F0; }
.bar-label { font-size: 12.5px; font-weight: 700; color: #4A5A50; }
.bar-track { height: 14px; background: #EEE9DC; border-radius: 20px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #1E7A3C); border-radius: 20px; }
.bar-value { font-size: 12.5px; font-weight: 700; text-align: right; }
.bar-value small { color: var(--muted); font-weight: 500; }

/* ─── রেজিস্ট্রেশন পেজ ও ট্র্যাকিং ─── */
.reg-wrap { max-width: 760px; margin: 0 auto; padding: 28px 16px 60px; }
.reg-head { text-align: center; margin-bottom: 20px; }
.reg-head h1 { margin: 0; font-size: 22px; }
.reg-head p { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); }
.card-complete { border-color: #7FC494; background: #F4FBF6; }
.badge-complete { background: #1E7A3C; color: #fff; }
.track-details { margin-top: 10px; }
.track-details summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--green); }
.file-actions-inline { display: inline-flex; gap: 0; margin: 2px 4px 2px 0; }
.file-actions-inline .chip-file { border-radius: 20px 0 0 20px; border-right: none; }
.chip-dl {
  font-size: 11.5px; background: #0E5C3F; color: #fff; padding: 2px 9px;
  border-radius: 0 20px 20px 0; font-weight: 700; display: inline-block;
  border: 1px solid #0E5C3F;
}
.chip-dl:hover { background: #0A4630; }

/* ─── পাবলিক পোর্টাল: হেডার ও ফুটার ─── */
.public-body { display: flex; flex-direction: column; min-height: 100vh; }
.public-header { background: var(--green); color: #fff; }
.public-header-inner {
  max-width: 980px; margin: 0 auto; padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.public-brand { display: flex; gap: 10px; align-items: center; }
.public-nav { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.public-nav .nav-user { font-size: 13.5px; opacity: .9; }
.public-btn { color: #fff; border-color: rgba(255,255,255,.5); }
.public-btn:hover { background: rgba(255,255,255,.12); }
.public-btn-danger { color: #FFD3D3; border-color: rgba(255,211,211,.5); }
.public-btn-solid { background: var(--saffron); color: #3A2A08; font-weight: 700; padding: 8px 16px; }
.public-btn-solid:hover { background: #E29225; }

.public-main { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 26px 16px 50px; }

.public-footer { background: #133B2C; color: #C9DCD1; margin-top: auto; }
.public-footer-inner {
  max-width: 980px; margin: 0 auto; padding: 26px 18px 14px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
}
.public-footer strong { color: #fff; display: block; margin-bottom: 5px; font-size: 14.5px; }
.public-footer p { margin: 0; font-size: 13px; line-height: 1.7; }
.public-footer a { color: #A8D8BC; }
.public-footer a:hover { color: #fff; text-decoration: underline; }
.public-footer-bottom {
  text-align: center; padding: 12px; font-size: 12px; opacity: .7;
  border-top: 1px solid rgba(255,255,255,.12);
}

/* ─── auth কার্ড (ইউজার রেজিস্ট্রেশন / লগইন) ─── */
.auth-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px; max-width: 440px; margin: 10px auto;
}
.auth-card h2 { margin: 0 0 4px; font-size: 20px; }
.auth-sub { margin: 0 0 16px; font-size: 13.5px; color: var(--muted); }
.auth-card .field-label { margin-top: 12px; }
.auth-alt { text-align: center; font-size: 13.5px; margin: 14px 0 0; }

/* ─── পোর্টাল ─── */
.portal-panel { max-width: 1860px; margin: 0 auto; }

/* স্ট্যাটাস ধাপ */
.status-steps { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 4px 0 8px; }
.status-step { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 82px; }
.step-dot {
  width: 34px; height: 34px; border-radius: 50%; background: #EEE9DC; color: var(--muted);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
  border: 2px solid #E0DACB;
}
.status-step.step-done .step-dot { background: #1E7A3C; border-color: #1E7A3C; color: #fff; }
.status-step.step-now .step-dot { box-shadow: 0 0 0 4px rgba(30,122,60,.2); }
.step-label { font-size: 11.5px; font-weight: 700; color: var(--muted); text-align: center; }
.status-step.step-done .step-label { color: #1E7A3C; }
.step-line { flex: 1; min-width: 18px; height: 3px; background: #EEE9DC; border-radius: 3px; margin-bottom: 20px; }
.step-line.step-done { background: #1E7A3C; }

@media (max-width: 560px) {
  .status-steps { justify-content: center; }
  .step-line { display: none; }
}

/* ─── লগইন ─── */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.login-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px; width: 100%; max-width: 380px; }
.login-head { text-align: center; margin-bottom: 20px; }
.login-icon { font-size: 34px; color: var(--saffron); background: var(--green); width: 64px; height: 64px; line-height: 64px; border-radius: 16px; margin: 0 auto 12px; }
.login-head h1 { margin: 0; font-size: 20px; }
.login-head p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.login-card .field-label { margin-top: 12px; }
.login-hint { text-align: center; font-size: 12px; color: var(--muted); margin: 14px 0 0; }

/* ─── প্রিন্ট ─── */
@media print {
  .sidebar, .mobile-topbar, .sidebar-overlay, .topbar, .footer, .page-header, .admin-footer, .no-print, .flash { display: none !important; }
  .has-sidebar { display: block; }
  body { background: #fff; }
  .container { padding: 0; max-width: none; }
  .panel { border: none; box-shadow: none; }
  .print-agency { display: block; }
  .print-sign {
    display: flex; justify-content: space-between; margin-top: 70px; font-size: 13px;
  }
  .print-sign div { text-align: center; }
  .print-sign span { display: block; width: 180px; border-top: 1px solid #333; margin-bottom: 6px; }
}

@media (max-width: 560px) {
  .client-top { flex-direction: column; }
  .panel-body { padding: 16px; }
  .container { padding: 12px; }
}

/* ─── পেশা গ্রুপ হেডিং ─── */
.doc-group-head {
  font-size: 13px; font-weight: 700; color: #1B5AA6;
  background: #E3F0FF; border: 1px dashed #A8CCF0; border-radius: 9px;
  padding: 8px 13px; margin: 4px 0 -2px;
}
.doc-table .doc-group-row td {
  background: #E3F0FF; color: #1B5AA6; font-weight: 700; font-size: 13px;
}
.chip-group { background: #E3F0FF; color: #1B5AA6; border: 1px solid #A8CCF0; }

/* ─── কাগজের সমস্যা ফ্ল্যাগ ─── */
.chip-flag { background: #FDE8E8; color: #A62222; border: 1px solid #F0C4C4; font-weight: 700; }
.chip-warn { background: #FFF3E0; color: #9A5B00; border: 1px dashed #E8C48A; }
.chip-resolve { background: #E5F5E9; color: #1E7A3C; border: 1px solid #BFE3C9; }
.row-flagged td { background: #FFF7F7; }

/* ─── পরিবারের সদস্য ট্যাব (পোর্টাল) ─── */
.member-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; max-width: 860px; margin-left: auto; margin-right: auto; }
.member-tab {
  padding: 9px 16px; border-radius: 24px; font-size: 13.5px; font-weight: 700;
  background: var(--card); border: 1.5px solid var(--line); color: #4A5A50;
  cursor: pointer; font-family: inherit;
}
.member-tab:hover { border-color: var(--green); color: var(--green); }
.member-tab.active { background: var(--green); border-color: var(--green); color: #fff; }
.member-add { border-style: dashed; color: var(--green); background: #EDF6F0; }

/* ─── BGD সেকশন কাস্টম ─── */
.bgd-section {
  margin-top: 24px;
  border-top: 2px dashed var(--line);
  padding-top: 24px;
}

/* ─── ডকুমেন্ট সেকশনের মধ্যে স্পেস ─── */
.docs-section + .docs-section {
  margin-top: 24px;
}

/* ─── ছোট হেল্পার ─── */
.text-muted { color: var(--muted); }
.text-sm { font-size: 13px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ─── অ্যানিমেশন ─── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.panel { animation: fadeIn 0.3s ease; }

/* ─── স্ক্রলবার কাস্টম ─── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--soft);
}
::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}




/* ─── অ্যাডমিন ফুটার ─── */
.admin-footer {
  background: var(--green-dark);
  color: #C9DCD1;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.08);
}
.admin-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 40px;
  align-items: center;
}
.admin-footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.admin-footer-brand img {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  padding: 4px 8px;
}
.admin-footer-brand div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-footer-brand strong {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.admin-footer-brand span {
  font-size: 12px;
  opacity: .7;
}
.admin-footer-info {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
}
.admin-footer-info span {
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: .85;
}
.admin-footer-info a {
  color: #A8D8BC;
  transition: color .2s;
}
.admin-footer-info a:hover {
  color: #fff;
  text-decoration: underline;
}
.admin-footer-bottom {
  text-align: center;
  padding: 12px 24px;
  font-size: 12.5px;
  opacity: .6;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ফুটার রেসপন্সিভ */
@media (max-width: 768px) {
  .admin-footer-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 18px 12px;
    text-align: center;
  }
  .admin-footer-brand {
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }
  .admin-footer-info {
    justify-content: center;
    gap: 12px;
    font-size: 12.5px;
  }
  .admin-footer-bottom {
    padding: 10px 18px;
    font-size: 11.5px;
  }
}

@media (max-width: 480px) {
  .admin-footer-info {
    flex-direction: column;
    gap: 6px;
  }
  .admin-footer-brand img {
    height: 32px;
  }
}