/* ==========================================================================
   RSC — KYC & Business Verification Platform
   Design system + component overrides (Bootstrap 5, DataTables, toastr)
   ========================================================================== */

:root {
    --brand-900: #021f40;
    --brand-800: #03305f;
    --brand-700: #043870;      /* TNBT navy */
    --brand-600: #0b4f96;
    --brand-500: #1d6fd1;
    --brand-400: #4c92ea;
    --brand-100: #e3eefb;
    --brand-50:  #f2f7fd;
    --teal-500: #12c2a0;
    --teal-600: #0ea58a;
    --teal-50:  #e7f8f4;
    --grad-x: linear-gradient(90deg, #2563eb 0%, #1a8fd0 50%, #12c2a0 100%);

    --ink-900: #0b1524;
    --ink-700: #2b3a4f;
    --ink-500: #5b6b80;
    --ink-400: #8593a6;
    --ink-300: #b7c1ce;

    --line: #e6ebf2;
    --line-strong: #d5dde8;
    --surface: #ffffff;
    --canvas: #f5f7fb;
    --canvas-2: #eef2f8;

    --success: #0f9f6e;
    --success-bg: #e6f6ef;
    --danger: #d9354a;
    --danger-bg: #fdecee;
    --warning: #c47a0b;
    --warning-bg: #fdf3e2;
    --info: #1d6fd1;
    --info-bg: #e7f0fc;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-xs: 0 1px 2px rgba(11, 21, 36, .05);
    --shadow-sm: 0 1px 3px rgba(11, 21, 36, .06), 0 1px 2px rgba(11, 21, 36, .04);
    --shadow-md: 0 8px 24px -6px rgba(11, 21, 36, .10), 0 2px 6px rgba(11, 21, 36, .04);
    --shadow-lg: 0 24px 60px -12px rgba(2, 31, 64, .25);
    --ring: 0 0 0 4px rgba(29, 111, 209, .15);

    --sidebar-w: 264px;
    --topbar-h: 68px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Base ---------- */
html, body { background: var(--canvas); }
body {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-700);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "cv11", "ss01";
    margin: 0;
}
h1, h2, h3, h4, h5, h6 { color: var(--ink-900); font-family: var(--font); font-weight: 650; letter-spacing: -.01em; }
a { color: var(--brand-500); text-decoration: none; }
a:hover { color: var(--brand-700); }
::selection { background: var(--brand-100); color: var(--brand-900); }
.text-muted { color: var(--ink-500) !important; }
.mono { font-family: var(--font-mono); font-size: .92em; letter-spacing: .01em; }

/* ---------- App shell ---------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w);
    background: var(--brand-900);
    background-image: radial-gradient(120% 50% at 0% 0%, rgba(29,111,209,.22), transparent 60%), radial-gradient(80% 40% at 100% 100%, rgba(18,194,160,.10), transparent 60%);
    color: #c9d6e6; display: flex; flex-direction: column; z-index: 1040;
    transition: transform .25s ease;
}
.sidebar-brand { height: var(--topbar-h); display: flex; align-items: center; gap: 12px; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.06); }
.brand-logo { height: 26px; width: auto; display: block; }
.brand-mark {
    width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 16px -4px rgba(29,111,209,.6);
    color: #fff;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-text { line-height: 1.1; }
.brand-text strong { display: block; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.brand-text span { font-size: 11px; color: #8ea4bf; letter-spacing: .04em; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 14px 12px 20px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.nav-section { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: #6f86a3; padding: 18px 12px 8px; }
.nav-item {
    display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin: 1px 0;
    border-radius: 9px; color: #c3d0e0; font-weight: 500; font-size: 13.5px;
    transition: background .15s, color .15s; position: relative; cursor: pointer; border: 0; background: none; width: 100%; text-align: left;
}
.nav-item svg { width: 18px; height: 18px; stroke-width: 1.8; flex-shrink: 0; opacity: .85; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: rgba(76,146,234,.16); color: #fff; }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, #4c92ea, var(--teal-500)); }
.nav-item.active svg { opacity: 1; color: #5fd3c0; }
.nav-item .chev { margin-left: auto; width: 15px; height: 15px; transition: transform .2s; }
.nav-item[aria-expanded="true"] .chev { transform: rotate(90deg); }
.nav-sub { padding: 2px 0 6px 30px; display: none; }
.nav-sub.open { display: block; }
.nav-sub a { display: block; padding: 7px 12px; font-size: 13px; color: #9fb2c9; border-radius: 7px; position: relative; }
.nav-sub a::before { content: ""; position: absolute; left: -2px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: #3d5575; transform: translateY(-50%); }
.nav-sub a:hover { color: #fff; background: rgba(255,255,255,.04); }
.nav-sub a.active { color: #fff; }
.nav-sub a.active::before { background: var(--brand-400); box-shadow: 0 0 0 3px rgba(76,146,234,.25); }

.sidebar-foot { padding: 14px; border-top: 1px solid rgba(255,255,255,.06); }
.sidebar-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px 14px; font-size: 12px; color: #9fb2c9; }
.sidebar-card b { color: #fff; font-weight: 600; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c58b; box-shadow: 0 0 0 3px rgba(34,197,139,.2); margin-right: 6px; }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }

.topbar {
    position: sticky; top: 0; z-index: 1030; height: var(--topbar-h);
    display: flex; align-items: center; gap: 16px; padding: 0 28px;
    background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.icon-btn {
    width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink-500); transition: all .15s;
}
.icon-btn:hover { color: var(--brand-700); border-color: var(--line-strong); background: var(--brand-50); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }

.cmdk {
    position: relative; flex: 0 1 420px; display: flex; align-items: center;
}
.cmdk svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--ink-400); pointer-events: none; }
.cmdk input {
    width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--canvas);
    padding: 0 60px 0 38px; font-size: 13.5px; color: var(--ink-900); outline: none; transition: all .15s;
}
.cmdk input:focus { background: #fff; border-color: var(--brand-400); box-shadow: var(--ring); }
.cmdk kbd { position: absolute; right: 10px; font-family: var(--font); font-size: 11px; background: #fff; color: var(--ink-500); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; box-shadow: none; }
.cmdk-results { position: absolute; top: 46px; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); padding: 6px; display: none; max-height: 360px; overflow: auto; }
.cmdk-results.open { display: block; }
.cmdk-results a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--ink-700); font-size: 13.5px; }
.cmdk-results a small { margin-left: auto; color: var(--ink-400); font-size: 11.5px; }
.cmdk-results a:hover, .cmdk-results a.hl { background: var(--brand-50); color: var(--brand-700); }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: all .15s; }
.user-chip:hover { border-color: var(--line-strong); box-shadow: var(--shadow-xs); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); color: #fff; font-weight: 600; font-size: 12.5px; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-chip .meta { line-height: 1.15; }
.user-chip .meta b { display: block; font-size: 13px; color: var(--ink-900); font-weight: 600; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip .meta span { font-size: 11.5px; color: var(--ink-500); }
.user-chip > svg { width: 15px; height: 15px; color: var(--ink-400); }

.dropdown-menu { border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); padding: 6px; font-size: 13.5px; min-width: 220px; }
.dropdown-item { border-radius: 8px; padding: 8px 10px; display: flex; align-items: center; gap: 10px; color: var(--ink-700); }
.dropdown-item svg { width: 16px; height: 16px; color: var(--ink-400); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--canvas); color: var(--ink-900); }
.dropdown-item.text-danger svg { color: var(--danger); }
.dropdown-header { padding: 8px 10px; }

.content { padding: 28px; flex: 1; max-width: 1560px; width: 100%; }
.app-footer { padding: 18px 28px; font-size: 12.5px; color: var(--ink-400); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); }
.app-footer a { color: var(--ink-500); font-weight: 500; }

.sidebar-backdrop { display: none; }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: 24px; margin: 0; font-weight: 700; letter-spacing: -.02em; }
.page-head p { margin: 4px 0 0; color: var(--ink-500); }
.crumbs { font-size: 12.5px; color: var(--ink-400); margin-bottom: 6px; }
.crumbs a { color: var(--ink-500); }

/* ---------- Cards (Bootstrap + legacy) ---------- */
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-xs); margin-bottom: 24px;
}
.card.mt-3, .card.mt-5 { margin-top: 0 !important; }
.card-header {
    background: transparent; border-bottom: 1px solid var(--line); padding: 18px 22px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important; gap: 12px; flex-wrap: wrap;
}
.card-header h4, .card-header h5 { font-size: 16px; font-weight: 650; margin: 0; color: var(--ink-900); }
.card-header p { margin: 2px 0 0; color: var(--ink-500); font-size: 13px; }
.card-body { padding: 22px; }
.card-footer { background: var(--canvas); border-top: 1px solid var(--line); padding: 14px 22px; border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important; }

/* legacy "project-list" title card on admin list pages */
.project-list .card { padding: 16px 22px; }
.project-list .card > .row { align-items: center; margin: 0; }
.project-list .card h4 { margin: 0; font-size: 18px; }
.project-list .card .col-md-6:last-child { display: flex; justify-content: flex-end; align-items: center; }
.project-list .card .form-group { display: none; }

/* ---------- Forms ---------- */
label, .form-label, .col-form-label { font-size: 13px; font-weight: 550; color: var(--ink-700); margin-bottom: 6px; }
.form-control, .form-select, select.form-control {
    height: 42px; border-radius: 10px; border: 1px solid var(--line-strong); background-color: #fff;
    font-size: 14px; color: var(--ink-900); padding: 8px 14px; box-shadow: var(--shadow-xs);
    transition: border-color .15s, box-shadow .15s;
}
textarea.form-control { height: auto; min-height: 96px; }
.form-control::placeholder { color: var(--ink-300); }
.form-control:focus, .form-select:focus { border-color: var(--brand-500); box-shadow: var(--ring); outline: 0; }
.form-control[readonly], .form-control:disabled { background: var(--canvas); color: var(--ink-500); box-shadow: none; }
select.form-control {
    appearance: none; -webkit-appearance: none; padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238593a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
}
.form-control[type="file"] { padding: 0; height: auto; line-height: 40px; overflow: hidden; }
.form-control[type="file"]::file-selector-button { height: 40px; margin: 0 14px 0 0; padding: 0 16px; border: 0; border-right: 1px solid var(--line); background: var(--canvas); color: var(--ink-700); font-weight: 550; }
.form-control.is-invalid { border-color: var(--danger); background-image: none; }
.form-control.is-invalid:focus { box-shadow: 0 0 0 4px rgba(217,53,74,.12); }
.text-danger { color: var(--danger) !important; font-size: 12.5px; }
.form-check-input { width: 18px; height: 18px; border: 1.5px solid var(--line-strong); margin-top: 1px; cursor: pointer; }
.form-check-input:checked { background-color: var(--brand-600); border-color: var(--brand-600); }
.form-check-input:focus { box-shadow: var(--ring); border-color: var(--brand-500); }
.form-check { padding: 12px 14px 12px 42px; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 10px; }
.form-check .form-check-input { margin-left: -28px; }
.form-check-label { font-weight: 450; color: var(--ink-700); cursor: pointer; margin: 0; }
.mb-3 { margin-bottom: 18px !important; }

/* ---------- Buttons ---------- */
.btn {
    font-family: var(--font); font-weight: 600; font-size: 13.5px; border-radius: 10px; padding: 9px 16px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.3;
    transition: all .15s; border-width: 1px; letter-spacing: 0;
}
.btn svg { width: 16px; height: 16px; }
.btn:focus-visible { box-shadow: var(--ring) !important; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn-primary, .btn-success {
    background: var(--brand-700) !important; border-color: var(--brand-700) !important; color: #fff !important;
    box-shadow: 0 1px 2px rgba(2,31,64,.2), inset 0 1px 0 rgba(255,255,255,.08);
}
.btn-primary:hover, .btn-success:hover { background: var(--brand-800) !important; border-color: var(--brand-800) !important; transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(4,56,112,.55); }
.btn-primary:disabled, .btn-success:disabled { opacity: .6; transform: none; }
/* Row-level secondary actions inside tables read better as soft buttons */
table .btn-success, table .btn-primary, .dataTable .btn-success, .dataTable .btn-primary {
    background: var(--brand-50) !important; color: var(--brand-700) !important; border-color: var(--brand-100) !important; box-shadow: none; white-space: nowrap;
}
table .btn-success:hover, table .btn-primary:hover { background: var(--brand-100) !important; transform: none; box-shadow: none; }
.btn-secondary, .btn-light, .btn-outline-primary {
    background: #fff !important; color: var(--ink-700) !important; border-color: var(--line-strong) !important; box-shadow: var(--shadow-xs);
}
.btn-secondary:hover, .btn-light:hover, .btn-outline-primary:hover { background: var(--canvas) !important; color: var(--ink-900) !important; }
.btn-danger { background: #fff !important; color: var(--danger) !important; border-color: #f3c3ca !important; }
.btn-danger:hover { background: var(--danger-bg) !important; }
.btn-warning, .btn-info { background: #fff !important; color: var(--ink-700) !important; border-color: var(--line-strong) !important; }
.btn-warning:hover, .btn-info:hover { background: var(--canvas) !important; }
.btn-close { border-radius: 8px; opacity: .5; }
.btn-close:hover { opacity: 1; }
.me-3 { margin-right: 0 !important; }

/* ---------- Badges ---------- */
.badge { font-weight: 600; font-size: 11.5px; padding: 4px 9px; border-radius: 999px; letter-spacing: .01em; }
.badge.bg-success { background: var(--success-bg) !important; color: var(--success) !important; }
.badge.bg-danger  { background: var(--danger-bg) !important; color: var(--danger) !important; }
.badge.bg-warning { background: var(--warning-bg) !important; color: var(--warning) !important; }
.badge.bg-info, .badge.bg-primary { background: var(--info-bg) !important; color: var(--info) !important; }
.badge.bg-secondary { background: var(--canvas-2) !important; color: var(--ink-500) !important; }

/* ---------- Tables ---------- */
.table-responsive { border-radius: 12px; }
table.table, table.display, table.dataTable {
    width: 100% !important; border-collapse: separate !important; border-spacing: 0; font-size: 13.5px; color: var(--ink-700); margin: 0 !important;
}
table.table thead th, table.display thead th, table.dataTable thead th, table.dataTable thead td {
    background: var(--canvas) !important; color: var(--ink-500); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
    border-bottom: 1px solid var(--line) !important; border-top: 0 !important; padding: 12px 14px !important; white-space: nowrap; vertical-align: middle;
}
table.table thead th:first-child, table.dataTable thead th:first-child { border-top-left-radius: 10px; }
table.table thead th:last-child, table.dataTable thead th:last-child { border-top-right-radius: 10px; }
table.table tbody td, table.display tbody td, table.dataTable tbody td, table.dataTable tbody th {
    padding: 13px 14px !important; border-top: 0 !important; border-bottom: 1px solid var(--line) !important; vertical-align: middle; background: #fff !important;
}
table.dataTable tbody tr, table.dataTable.display tbody tr.odd, table.dataTable.display tbody tr.even { background: #fff !important; }
table.dataTable.display tbody tr.odd > .sorting_1, table.dataTable.display tbody tr.even > .sorting_1,
table.dataTable.order-column.stripe tbody tr > .sorting_1 { background: #fff !important; }
table.dataTable tbody tr:hover td, table.table tbody tr:hover td { background: var(--brand-50) !important; }
table.dataTable.no-footer { border-bottom: 0 !important; }
table.table-bordered, table.table-bordered td, table.table-bordered th { border-left: 0 !important; border-right: 0 !important; }
table.table-bordered { border: 1px solid var(--line) !important; border-radius: 10px; overflow: hidden; }
table.table-sm td, table.table-sm th { padding: 9px 12px !important; }
table.dataTable thead .sorting, table.dataTable thead .sorting_asc, table.dataTable thead .sorting_desc {
    background-image: none !important; position: relative; padding-right: 26px !important; cursor: pointer;
}
table.dataTable thead .sorting::after, table.dataTable thead .sorting_asc::after, table.dataTable thead .sorting_desc::after {
    content: ""; position: absolute; right: 10px; top: 50%; width: 8px; height: 10px; transform: translateY(-50%); opacity: .35;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 10'%3E%3Cpath d='M4 0 7.5 4h-7zM4 10 .5 6h7z' fill='%235b6b80'/%3E%3C/svg%3E") no-repeat center;
}
table.dataTable thead .sorting_asc::after { opacity: .9; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 10'%3E%3Cpath d='M4 0 7.5 4h-7z' fill='%23043870'/%3E%3C/svg%3E") no-repeat center; }
table.dataTable thead .sorting_desc::after { opacity: .9; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 10'%3E%3Cpath d='M4 10 .5 6h7z' fill='%23043870'/%3E%3C/svg%3E") no-repeat center; }
td img { border-radius: 8px; object-fit: contain; border: 1px solid var(--line); background: #fff; }

/* DataTables chrome */
.dataTables_wrapper { font-size: 13.5px; color: var(--ink-500); }
.dataTables_wrapper::after { content: ""; display: block; clear: both; }
.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter { margin-bottom: 16px; }
.dataTables_wrapper .dataTables_length select {
    height: 36px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 8px; margin: 0 6px; background: #fff; color: var(--ink-900);
}
.dataTables_wrapper .dataTables_filter label { font-size: 0; position: relative; margin: 0; }
.dataTables_wrapper .dataTables_filter input {
    font-size: 13.5px; height: 38px; width: 260px; margin: 0 !important; border: 1px solid var(--line-strong); border-radius: 10px;
    padding: 0 12px 0 36px; outline: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238593a6' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m14 14-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center;
    transition: all .15s;
}
.dataTables_wrapper .dataTables_filter input::placeholder { color: var(--ink-400); }
.dataTables_wrapper .dataTables_filter input:focus { border-color: var(--brand-500); box-shadow: var(--ring); }
.dataTables_wrapper .dt-buttons { float: left; display: flex; gap: 8px; margin-bottom: 16px; }
.dataTables_wrapper .dt-buttons .dt-button, button.dt-button, a.dt-button {
    margin: 0 !important; background: #fff !important; border: 1px solid var(--line-strong) !important; border-radius: 10px !important;
    color: var(--ink-700) !important; font-family: var(--font); font-weight: 600; font-size: 13px; padding: 8px 14px 8px 34px !important;
    box-shadow: var(--shadow-xs); position: relative; background-image: none !important; line-height: 1.4;
}
.dataTables_wrapper .dt-buttons .dt-button::before {
    content: ""; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23043870' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3'/%3E%3C/svg%3E") no-repeat center / contain;
}
.dataTables_wrapper .dt-buttons .dt-button:hover { background: var(--canvas) !important; border-color: var(--ink-300) !important; }
.dataTables_wrapper .dataTables_info { padding-top: 18px !important; color: var(--ink-500); font-size: 13px; }
.dataTables_wrapper .dataTables_paginate { padding-top: 14px !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px !important; border: 1px solid transparent !important; padding: 6px 12px !important; margin-left: 4px !important;
    color: var(--ink-700) !important; font-weight: 550; min-width: 34px; background: transparent !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover { background: var(--canvas) !important; border-color: var(--line) !important; color: var(--ink-900) !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--brand-700) !important; border-color: var(--brand-700) !important; color: #fff !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover { color: var(--ink-300) !important; background: transparent !important; border-color: transparent !important; }
.dataTables_wrapper .dataTables_processing { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-md); }
.dataTables_empty { padding: 48px 14px !important; color: var(--ink-400); text-align: center; }

/* ---------- Modals ---------- */
.modal-backdrop.show { opacity: .45; background: var(--brand-900); }
.modal-content { border: 0; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-header { padding: 18px 24px; border-bottom: 1px solid var(--line); }
.modal-title { font-size: 17px; font-weight: 650; }
.modal-body { padding: 24px; }
.modal-body h6 { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); margin: 0 0 10px; }
.modal-footer { border-top: 1px solid var(--line); background: var(--canvas); padding: 14px 24px; }

/* ---------- Toastr ---------- */
#toast-container > div {
    opacity: 1 !important; border-radius: 12px !important; box-shadow: var(--shadow-md) !important; font-family: var(--font); font-size: 13.5px;
    padding: 14px 16px 14px 50px !important; background-position: 16px center !important; width: 340px !important; border: 1px solid transparent;
}
#toast-container > .toast-success { background-color: #0b3d2c !important; }
#toast-container > .toast-error { background-color: #5a1320 !important; }
#toast-container > .toast-info { background-color: var(--brand-800) !important; }
#toast-container > .toast-warning { background-color: #5c3a05 !important; }
.toast-title { font-weight: 650; }

/* ---------- SweetAlert2 ---------- */
.swal2-popup { border-radius: 18px !important; font-family: var(--font) !important; padding: 28px !important; }
.swal2-title { font-size: 20px !important; color: var(--ink-900) !important; }
.swal2-html-container { color: var(--ink-500) !important; font-size: 14px !important; }
.swal2-styled { border-radius: 10px !important; font-weight: 600 !important; font-size: 14px !important; padding: 10px 20px !important; }
.swal2-styled.swal2-confirm { background: var(--brand-700) !important; }
.swal2-styled.swal2-cancel { background: #fff !important; color: var(--ink-700) !important; border: 1px solid var(--line-strong) !important; }

/* ---------- Dashboard components ---------- */
.hero {
    position: relative; overflow: hidden; border-radius: 20px; padding: 28px 30px; color: #dbe7f5; margin-bottom: 24px;
    background: linear-gradient(120deg, var(--brand-900) 0%, var(--brand-700) 55%, var(--brand-600) 100%);
    box-shadow: var(--shadow-md);
}
.hero::after {
    content: ""; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(18,194,160,.35), transparent); pointer-events: none;
}
.hero .grid-bg { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(90deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); }
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: 24px; font-weight: 700; margin: 0 0 6px; letter-spacing: -.02em; }
.hero p { margin: 0; max-width: 560px; color: #b8cbe2; }
.hero .btn-hero { background: #fff; color: var(--brand-800); border: 0; }
.hero .btn-hero:hover { background: var(--brand-50); color: var(--brand-900); transform: translateY(-1px); }
.hero .btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #7fe0cd; margin-bottom: 10px; }

.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; height: 100%; box-shadow: var(--shadow-xs); }
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.stat-label { font-size: 13px; color: var(--ink-500); font-weight: 500; }
.stat-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
.stat-icon svg { width: 18px; height: 18px; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--ink-900); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 12.5px; color: var(--ink-400); margin-top: 8px; }
.trend { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-size: 12px; padding: 2px 7px; border-radius: 999px; }
.trend.up { color: var(--success); background: var(--success-bg); }
.trend.flat { color: var(--ink-500); background: var(--canvas-2); }

.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: 10px; }
.chart-bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.chart-bars .bar i { display: block; width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px; background: linear-gradient(0deg, var(--brand-500), var(--teal-500)); min-height: 3px; position: relative; transition: opacity .15s; }
.chart-bars .bar i.zero { background: var(--canvas-2); }
.chart-bars .bar:hover i { opacity: .85; }
.chart-bars .bar i::after { content: attr(data-v); position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 600; background: var(--ink-900); color: #fff; padding: 2px 6px; border-radius: 5px; opacity: 0; transition: opacity .15s; white-space: nowrap; }
.chart-bars .bar:hover i::after { opacity: 1; }
.chart-bars .bar span { font-size: 11px; color: var(--ink-400); }

.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.svc {
    display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
    color: var(--ink-700); transition: all .18s; position: relative;
}
.svc:hover { border-color: var(--brand-400); box-shadow: 0 10px 24px -12px rgba(4,56,112,.35); transform: translateY(-2px); color: var(--ink-700); }
.svc-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--brand-50); color: var(--brand-600); border: 1px solid var(--brand-100); }
.svc-ico svg { width: 20px; height: 20px; }
.svc h6 { margin: 0 0 3px; font-size: 14px; font-weight: 650; }
.svc p { margin: 0; font-size: 12.5px; color: var(--ink-500); line-height: 1.45; }
.svc .go { position: absolute; right: 14px; top: 16px; width: 16px; height: 16px; color: var(--ink-300); transition: all .18s; }
.svc:hover .go { color: var(--brand-500); transform: translateX(2px); }

.list-clean { list-style: none; margin: 0; padding: 0; }
.list-clean li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-clean li:last-child { border-bottom: 0; }
.list-clean .li-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--canvas); display: grid; place-items: center; color: var(--ink-500); flex-shrink: 0; }
.list-clean .li-ico svg { width: 16px; height: 16px; }
.list-clean .li-main { min-width: 0; flex: 1; }
.list-clean .li-main b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-clean .li-main span { font-size: 12px; color: var(--ink-400); }
.list-clean .li-end { font-size: 12px; color: var(--ink-400); white-space: nowrap; }

.meter { height: 6px; border-radius: 999px; background: var(--canvas-2); overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--grad-x); }

.empty { text-align: center; padding: 36px 16px; color: var(--ink-400); }
.empty .empty-ico { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px; display: grid; place-items: center; background: var(--canvas); color: var(--ink-400); }
.empty b { display: block; color: var(--ink-700); font-weight: 600; margin-bottom: 2px; }

/* ---------- Profile (legacy markup) ---------- */
.user-profile .hovercard { text-align: left !important; padding: 0; overflow: hidden; }
.user-profile .hovercard > div[style] { margin: 0 !important; height: 110px; background: linear-gradient(120deg, var(--brand-900), var(--brand-600)); }
.user-profile .user-image { margin: -48px 0 0 28px; }
.user-profile .user-image .avatar { width: 96px; height: 96px; border: 4px solid #fff; box-shadow: var(--shadow-md); background: #fff; }
.user-profile .info { padding: 16px 28px 28px; }
.user-profile .ttl-info h6 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-400); font-weight: 600; margin-bottom: 4px; }
.user-profile .ttl-info h6 i { display: none; }
.user-profile .ttl-info span { color: var(--ink-900); font-weight: 500; }
.user-profile .user-designation .title a { font-size: 20px; font-weight: 700; color: var(--ink-900); }
.user-profile .user-designation .desc { color: var(--ink-500); }
.user-profile hr { border-color: var(--line); opacity: 1; }
.user-profile .social-media { display: none; }

/* ---------- Loader ---------- */
.page-loader { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 9999; background: var(--grad-x); transform-origin: left; animation: load 1.2s ease-out forwards; transition: opacity .3s; pointer-events: none; }
.page-loader.done { opacity: 0; }
@keyframes load { from { transform: scaleX(0); } to { transform: scaleX(.85); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
    body.nav-open .sidebar { transform: none; }
    body.nav-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(2,31,64,.45); z-index: 1035; }
    .main { margin-left: 0; }
    .menu-toggle { display: inline-grid; }
}
@media (max-width: 767.98px) {
    .topbar { padding: 0 16px; gap: 10px; }
    .content { padding: 20px 16px; }
    .cmdk kbd, .user-chip .meta, .user-chip > svg { display: none; }
    .user-chip { padding: 3px; }
    .page-head h1 { font-size: 20px; }
    .card-body { padding: 18px; }
    .card-header { padding: 16px 18px; }
    .hero { padding: 22px; }
    .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dt-buttons { float: none; text-align: left; }
    .dataTables_wrapper .dataTables_filter input { width: 100%; }
    .dataTables_wrapper .dataTables_filter label { display: block; }
    .app-footer { padding: 16px; }
}

/* ==========================================================================
   Internal pages
   ========================================================================== */
.content > .container-fluid { padding: 0; }
.page-ico {
    width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0;
    background: #fff; border: 1px solid var(--line); color: var(--brand-600); box-shadow: var(--shadow-xs);
}
.page-ico svg { width: 22px; height: 22px; }
.page-head .crumbs { margin-bottom: 2px; font-weight: 500; }
.page-head .btn svg { width: 16px; height: 16px; }

/* Verification form */
.verify-card .card-body { max-width: 720px; }
.verify-actions { display: flex; justify-content: flex-start; margin-top: 6px; }
.verify-actions .btn { min-width: 180px; height: 44px; }
.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--canvas-2); border-radius: 12px; margin-bottom: 20px; }
.seg button {
    border: 0; background: transparent; color: var(--ink-500); font-weight: 600; font-size: 13.5px;
    padding: 8px 16px; border-radius: 9px; display: inline-flex; align-items: center; gap: 8px; transition: all .15s;
}
.seg button svg { width: 16px; height: 16px; }
.seg button:hover { color: var(--ink-900); }
.seg button.on { background: #fff; color: var(--brand-700); box-shadow: var(--shadow-sm); }
#single_entry_div .form-control { height: 46px; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; }
#single_entry_div .form-control::placeholder { text-transform: none; letter-spacing: 0; }

/* File inputs become dropzones */
.form-control[type="file"].dz {
    height: auto; min-height: 120px; padding: 44px 16px 16px; line-height: 1.4; text-align: center; cursor: pointer;
    border: 1.5px dashed var(--line-strong); background: var(--canvas) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%231d6fd1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12'/%3E%3C/svg%3E") no-repeat center 16px;
    color: var(--ink-500); box-shadow: none;
}
.form-control[type="file"].dz:hover { border-color: var(--brand-400); background-color: var(--brand-50); }
.form-control[type="file"].dz::file-selector-button { height: 34px; margin: 0 10px 0 0; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }
.dz-hint { font-size: 12.5px; color: var(--ink-400); margin-top: 6px; }

/* Admin forms */
.form-card .card-body { max-width: 860px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 18px; margin-top: 6px; border-top: 1px solid var(--line); }
.form-check.form-switch { background: transparent; border: 0; padding: 4px 0 4px 52px; }
.form-check.form-switch .form-check-input { width: 40px; height: 22px; margin-left: -52px; margin-top: 0; border-radius: 999px; }
.form-select { height: 42px; border-radius: 10px; border: 1px solid var(--line-strong); font-size: 14px; color: var(--ink-900); box-shadow: var(--shadow-xs); }
.alert { border-radius: 12px; border: 1px solid transparent; font-size: 13.5px; margin-top: 12px; }
.alert-success { background: var(--success-bg); color: #0b6b4b; border-color: #bfe8d6; }
.alert-danger { background: var(--danger-bg); color: #a3263a; border-color: #f5c6cd; }
.alert ul { margin: 0; padding-left: 18px; }

/* Row action icon buttons */
ul.action { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
ul.action li a {
    width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px;
    border: 1px solid var(--line); background: #fff; color: var(--ink-500); transition: all .15s;
}
ul.action li a svg { width: 15px; height: 15px; }
ul.action li.edit a:hover { color: var(--brand-600); border-color: var(--brand-100); background: var(--brand-50); }
ul.action li.delete a:hover { color: var(--danger); border-color: #f3c3ca; background: var(--danger-bg); }

/* Profile */
.profile-card { overflow: hidden; }
.profile-cover { height: 120px; background: linear-gradient(115deg, var(--brand-900) 0%, var(--brand-700) 55%, #0f7f86 100%); }
.profile-main { display: flex; align-items: flex-end; gap: 18px; padding: 0 24px; margin-top: -44px; flex-wrap: wrap; }
.profile-avatar { width: 96px; height: 96px; font-size: 30px; border: 4px solid #fff; box-shadow: var(--shadow-md); background: #fff; color: var(--brand-700); }
.profile-avatar img { object-fit: contain; background: #fff; }
.profile-id { padding-bottom: 6px; }
.profile-id h2 { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.detail { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); }
.detail span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-400); font-weight: 500; margin-bottom: 4px; }
.detail span svg { width: 14px; height: 14px; }
.detail b { font-weight: 600; color: var(--ink-900); word-break: break-word; }

/* ==========================================================================
   Partner Onboarding
   ========================================================================== */
/* Wizard */
.wsteps { display: flex; list-style: none; margin: 0 0 24px; padding: 0; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.wsteps::-webkit-scrollbar { display: none; }
.wstep { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; white-space: nowrap; transition: all .15s; }
.wstep .wnum { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--canvas-2); color: var(--ink-500); font-size: 12px; font-weight: 700; flex-shrink: 0; }
.wstep .wlabel { font-size: 13.5px; font-weight: 550; color: var(--ink-500); }
.wstep:hover { border-color: var(--line-strong); }
.wstep.done .wnum { background: var(--success-bg); color: var(--success); }
.wstep.done .wlabel { color: var(--ink-700); }
.wstep.on { border-color: var(--brand-500); box-shadow: var(--ring); }
.wstep.on .wnum { background: var(--brand-700); color: #fff; }
.wstep.on .wlabel { color: var(--ink-900); font-weight: 650; }
.wpane { display: none; }
.wpane.on { display: block; }

/* PAN lookup */
.lookup-box { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; padding: 18px; border-radius: 14px; background: linear-gradient(120deg, var(--brand-50), var(--teal-50)); border: 1px solid var(--brand-100); }
.lookup-input { flex: 1 1 260px; }
.lookup-input .form-control { height: 46px; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; background: #fff; }
.lookup-box .btn { height: 46px; }
.sum-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.sum-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--canvas); }
.sum-item span { display: block; font-size: 11.5px; color: var(--ink-400); margin-bottom: 3px; }
.sum-item b { font-size: 13.5px; color: var(--ink-900); font-weight: 600; word-break: break-word; }
.tagrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.tag-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-400); font-weight: 600; }
.tagchip { font-family: var(--font-mono); font-size: 12px; padding: 5px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--ink-700); }

/* Verification chips */
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.vchip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--canvas-2); color: var(--ink-500); }
.vchip svg { width: 14px; height: 14px; }
.vchip.on { background: var(--success-bg); color: var(--success); }

/* Contacts + editable rows */
.contact-row, .row-edit { display: grid; gap: 8px; margin-bottom: 10px; align-items: center; }
.contact-row { grid-template-columns: 130px 1.2fr 1fr 1.3fr 1fr 40px; }
.chain-row { grid-template-columns: 1.6fr 1fr 110px 40px; }
.doc-edit-row { grid-template-columns: 1fr 1.6fr 120px 40px; }
.row-edit .form-control, .contact-row .form-control { height: 40px; }
.switch-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; margin: 0; }
.chiplist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip-edit { display: inline-flex; align-items: center; gap: 4px; }
.chip-edit .form-control { height: 36px; width: 170px; }
.chip-edit .btn { padding: 4px 9px; line-height: 1; }

/* Bank verification */
.bank-verify { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: 12px; border: 1px dashed var(--line-strong); background: var(--canvas); }
.bank-verify.ok { border-style: solid; border-color: #bfe8d6; background: var(--success-bg); }

/* Documents */
.doc-list { display: grid; gap: 10px; }
.doc-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.doc-row.has { border-color: #bfe8d6; background: var(--success-bg); }
.doc-row.busy { opacity: .6; pointer-events: none; }
.doc-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--canvas); color: var(--ink-500); flex-shrink: 0; }
.doc-row.has .doc-ico { background: #fff; color: var(--success); }
.doc-ico svg { width: 17px; height: 17px; }
.doc-main { flex: 1; min-width: 0; }
.doc-main b { display: block; font-size: 13.5px; color: var(--ink-900); }
.doc-meta { font-size: 12px; color: var(--ink-500); }
.doc-row label.btn { margin: 0; }

/* Declaration + submit */
.declaration { padding: 16px 18px; border-radius: 12px; background: var(--canvas); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-700); }
.submit-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; padding: 18px; border-radius: 14px; border: 1px solid var(--brand-100); background: var(--brand-50); }
.missing-list { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--danger); }
.missing-list:empty { display: none; }

/* Approval timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 18px; }
.timeline li::before { content: ""; position: absolute; left: -22px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--line-strong); }
.timeline li.tl-approved::before { border-color: var(--success); background: var(--success); }
.timeline li.tl-rejected::before { border-color: var(--danger); background: var(--danger); }
.timeline li.tl-queried::before { border-color: var(--warning); background: var(--warning); }
.timeline b { display: block; font-size: 13.5px; color: var(--ink-900); }
.timeline span { font-size: 12.5px; color: var(--ink-500); }
.timeline em { display: block; margin-top: 4px; font-style: normal; font-size: 12.5px; color: var(--ink-700); background: var(--canvas); border-radius: 8px; padding: 6px 10px; }

.act-card { border-color: var(--brand-400); box-shadow: 0 10px 30px -18px rgba(4, 56, 112, .45); }

@media (max-width: 991.98px) {
    .contact-row, .chain-row, .doc-edit-row { grid-template-columns: 1fr 1fr; }
    .contact-row > :last-child, .row-edit > :last-child { grid-column: span 2; justify-self: end; }
}
@media (max-width: 575.98px) {
    .contact-row, .chain-row, .doc-edit-row { grid-template-columns: 1fr; }
    .contact-row > :last-child, .row-edit > :last-child { grid-column: auto; }
    .doc-row { flex-wrap: wrap; }
    .wstep .wlabel { display: none; }
    .wstep.on .wlabel { display: inline; }
}
.lookup-progress { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 16px; border-radius: 11px; background: var(--brand-50); border: 1px solid var(--brand-100); font-size: 13.5px; color: var(--brand-800); }

/* Round 2: bank help, hints, camera */
.ifsc-hint, .field-hint { display: block; font-size: 12.5px; color: var(--ink-500); margin-top: 6px; }
.ifsc-hint.bad { color: var(--danger); }
.how-pd { margin: 4px 0 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 12px 16px; font-size: 13.5px; }
.how-pd summary { cursor: pointer; font-weight: 600; color: var(--ink-900); display: flex; align-items: center; gap: 8px; list-style: none; }
.how-pd summary::-webkit-details-marker { display: none; }
.how-pd summary svg { width: 16px; height: 16px; color: var(--brand-500); }
.how-pd ol { margin: 12px 0 8px; padding-left: 20px; color: var(--ink-700); }
.how-pd li { margin-bottom: 6px; }
.how-pd p { margin: 0; color: var(--ink-500); }
.cam-btn svg { width: 15px; height: 15px; }
@media (min-width: 992px) { .cam-btn { display: none; } }   /* camera capture is for phones and tablets */
@media (max-width: 575.98px) {
    .doc-row { gap: 10px; }
    .doc-row .doc-main { flex-basis: calc(100% - 50px); }
    .doc-row .btn { flex: 1; }
    .page-head { align-items: flex-start; }
    .page-head .d-flex.gap-2 { width: 100%; }
    .page-head .btn { flex: 1; }
    .lookup-box .btn { width: 100%; }
    .submit-box .btn { width: 100%; }
    .bank-verify .btn { width: 100%; }
    .form-actions { flex-direction: column-reverse; }
    .form-actions .btn { width: 100%; }
    .card-header { padding: 14px 16px; }
    .card-body { padding: 16px; }
}
.doc-edit-wrap { border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 4px; margin-bottom: 10px; }
.doc-edit-wrap .row-edit { margin-bottom: 6px; }
.tpl-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; padding: 2px 4px 6px; }
.tpl-row svg { width: 14px; height: 14px; color: var(--ink-400); }
.tpl-row .btn-link { padding: 0 4px; font-size: 12.5px; color: var(--brand-500); box-shadow: none; }
.perm-table td, .perm-table th { vertical-align: middle; }
.perm-table td:first-child { min-width: 260px; }
.nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--teal-500); color: #021f40; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.alert-info { background: var(--info-bg); color: var(--brand-800); border-color: var(--brand-100); }

/* Bank verification: penny-less button with penny drop as the quieter option */
.bank-verify-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.bank-verify-actions .btn-link{color:#4a5d78;text-decoration:underline;padding:0 4px;font-size:12.5px}
.bank-verify-actions .btn-link:hover{color:#0b3566}
@media (max-width:575.98px){.bank-verify-actions{width:100%;justify-content:flex-start}}

/* Collapsible sidebar sections (Verification APIs) */
.nav-section-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: calc(100% - 8px); margin: 0 4px; background: none; border: 0; cursor: pointer; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: #6f86a3; padding: 18px 12px 8px; }
.nav-section-toggle:hover { color: #9fb2c9; }
.nav-section-toggle .chev { width: 13px; height: 13px; transition: transform .15s ease; }
.nav-section-toggle[aria-expanded="true"] .chev { transform: rotate(90deg); }
.nav-group { display: none; }
.nav-group.open { display: block; }

/* Demo instance banner */
.demo-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; padding: 12px 16px; border-radius: 12px; background: #fff7e6; border: 1px solid #f0d9a8; color: #6b4e12; font-size: 13.5px; }
.demo-banner b { color: #5a3f08; }
.demo-banner .demo-left { margin-left: auto; font-weight: 600; background: #fff; border: 1px solid #f0d9a8; border-radius: 999px; padding: 4px 12px; }
