/* ============================================================
   B2B Purchase Billing System — Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #e0e7ff;
    --primary-glow: rgba(99, 102, 241, 0.15);
    --success: #10b981;
    --success-light: #ecfdf5;
    --success-dark: #059669;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --danger-dark: #dc2626;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --warning-dark: #d97706;
    --info: #06b6d4;
    --info-light: #ecfeff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-450: #94a3b8;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --sidebar-w: 240px;
    --topbar-h: 64px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-sm: 6px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(99, 102, 241, 0.08), 0 10px 10px -5px rgba(99, 102, 241, 0.02);
    --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--gray-50); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-450); }

body { 
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif; 
    background: #f8fafc; 
    color: var(--gray-800); 
    font-size: 14px; 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased;
}

/* ---- Topbar ---- */
.topbar { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    height: var(--topbar-h); 
    background: #090d16; 
    color: #fff; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0 24px; 
    z-index: 100; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); 
}
.topbar-brand { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    font-family: 'Outfit', sans-serif; 
    font-size: 18px; 
    font-weight: 700; 
    letter-spacing: -0.02em; 
    background: linear-gradient(135deg, #c7d2fe 0%, #818cf8 100%); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}
.brand-icon { font-size: 22px; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-user { font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, 0.85); }
.btn-logout { 
    background: rgba(239, 68, 68, 0.1); 
    color: #fca5a5; 
    border: 1px solid rgba(239, 68, 68, 0.3); 
    padding: 6px 16px; 
    border-radius: 8px; 
    text-decoration: none; 
    font-size: 13px; 
    font-weight: 600; 
    transition: var(--transition); 
}
.btn-logout:hover { 
    background: rgba(239, 68, 68, 0.25); 
    color: #fff; 
    border-color: #ef4444; 
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.2); 
}

/* ---- Layout ---- */
.layout { display: flex; padding-top: var(--topbar-h); min-height: 100vh; }

/* ---- Sidebar ---- */
.sidebar { 
    width: var(--sidebar-w); 
    background: #090d16; 
    border-right: 1px solid rgba(255, 255, 255, 0.08); 
    position: fixed; 
    top: var(--topbar-h); 
    bottom: 0; 
    overflow-y: auto; 
    padding: 20px 0; 
}
.nav-section { 
    font-family: 'Outfit', sans-serif; 
    font-size: 11px; 
    font-weight: 700; 
    text-transform: uppercase; 
    color: #818cf8; 
    padding: 16px 24px 6px; 
    letter-spacing: .08em; 
    opacity: 0.8; 
}
.nav-link { 
    display: block; 
    padding: 10px 24px; 
    color: rgba(255, 255, 255, 0.65); 
    text-decoration: none; 
    font-size: 14px; 
    font-weight: 500; 
    transition: var(--transition); 
    border-left: 3px solid transparent; 
}
.nav-link:hover { 
    color: #fff; 
    background: rgba(255, 255, 255, 0.04); 
}
.nav-link.active { 
    color: #fff; 
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.02) 100%); 
    font-weight: 600; 
    border-left: 3px solid var(--primary); 
}
.nav-link.sub { padding-left: 38px; font-size: 13px; color: rgba(255, 255, 255, 0.45); }

/* ---- Main Content ---- */
.content { margin-left: var(--sidebar-w); flex: 1; padding: 32px; min-width: 0; }

/* ---- Page Header ---- */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.page-title { font-family: 'Outfit', sans-serif; font-size: 24px; font-weight: 700; color: var(--gray-900); letter-spacing: -0.02em; }
.page-subtitle { color: var(--gray-500); font-size: 13.5px; margin-top: 4px; }
.breadcrumb { font-size: 12.5px; color: var(--gray-450); margin-bottom: 8px; font-weight: 500; }
.breadcrumb a { color: var(--primary); text-decoration: none; transition: var(--transition); }
.breadcrumb a:hover { color: var(--primary-dark); text-decoration: underline; }

/* ---- Cards ---- */
.card { 
    background: #fff; 
    border-radius: var(--radius-lg); 
    border: 1px solid var(--gray-200); 
    box-shadow: var(--shadow); 
    margin-bottom: 24px; 
    overflow: hidden; 
    transition: var(--transition); 
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header { 
    padding: 16px 24px; 
    border-bottom: 1px solid var(--gray-100); 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    font-family: 'Outfit', sans-serif; 
    font-weight: 600; 
    font-size: 15px; 
    color: var(--gray-900); 
    background: #fafafa; 
}
.card-body { padding: 24px; }

/* ---- Stat Cards ---- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card { 
    background: #fff; 
    border-radius: var(--radius-lg); 
    border: 1px solid var(--gray-200); 
    padding: 24px; 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
    position: relative; 
    overflow: hidden; 
    transition: var(--transition); 
    box-shadow: var(--shadow); 
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-icon { font-size: 28px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; margin-bottom: 4px; }
.stat-label { font-size: 12px; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.stat-value { font-family: 'Outfit', sans-serif; font-size: 24px; font-weight: 700; color: var(--gray-900); }
.stat-card.blue { border-left: 4px solid var(--primary); }
.stat-card.blue .stat-icon { background: var(--primary-light); color: var(--primary); }
.stat-card.green { border-left: 4px solid var(--success); }
.stat-card.green .stat-icon { background: var(--success-light); color: var(--success); }
.stat-card.orange { border-left: 4px solid var(--warning); }
.stat-card.orange .stat-icon { background: var(--warning-light); color: var(--warning); }
.stat-card.red { border-left: 4px solid var(--danger); }
.stat-card.red .stat-icon { background: var(--danger-light); color: var(--danger); }

/* ---- Tables ---- */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--gray-200); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th { 
    background: #f8fafc; 
    padding: 12px 18px; 
    text-align: left; 
    font-family: 'Outfit', sans-serif; 
    font-weight: 600; 
    color: var(--gray-700); 
    border-bottom: 2px solid var(--gray-200); 
    white-space: nowrap; 
}
tbody td { padding: 12px 18px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; color: var(--gray-700); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafafa; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.fw-bold { font-weight: 600; }

/* ---- Badges ---- */
.badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-danger  { background: var(--danger-light);  color: var(--danger); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-info    { background: var(--info-light);    color: var(--info); }
.badge-gray    { background: var(--gray-100);      color: var(--gray-700); }

/* ---- Buttons ---- */
.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 6px; 
    padding: 8px 18px; 
    border-radius: 8px; 
    font-size: 13.5px; 
    font-weight: 600; 
    cursor: pointer; 
    border: 1px solid transparent; 
    text-decoration: none; 
    transition: var(--transition); 
    white-space: nowrap; 
}
.btn:hover { transform: translateY(-1px); }
.btn-primary  { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2); }
.btn-primary:hover  { background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: 0 6px 14px rgba(99, 102, 241, 0.3); }
.btn-success  { background: var(--success); color: #fff; box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2); }
.btn-success:hover  { background: var(--success-dark); box-shadow: 0 6px 14px rgba(16, 185, 129, 0.3); }
.btn-danger   { background: var(--danger); color: #fff; box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2); }
.btn-danger:hover   { background: var(--danger-dark); box-shadow: 0 6px 14px rgba(239, 68, 68, 0.3); }
.btn-warning  { background: var(--warning); color: #fff; box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2); }
.btn-warning:hover  { background: var(--warning-dark); box-shadow: 0 6px 14px rgba(245, 158, 11, 0.3); }
.btn-outline  { background: #fff; color: var(--gray-700); border-color: var(--gray-300); }
.btn-outline:hover  { background: var(--gray-50); border-color: var(--gray-450); }
.btn-sm { padding: 5px 12px; font-size: 12.5px; border-radius: 6px; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- Forms ---- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.form-group label .req { color: var(--danger); margin-left: 2px; }
.form-control { 
    border: 1px solid var(--gray-300); 
    border-radius: 8px; 
    padding: 8px 14px; 
    font-size: 13.5px; 
    color: var(--gray-900); 
    background: #fff; 
    transition: var(--transition); 
    width: 100%; 
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }
.form-control[readonly] { background: var(--gray-50); color: var(--gray-500); border-color: var(--gray-200); }
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { cursor: pointer; }

/* ---- Items Table (Purchase / Return) ---- */
.items-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.items-table thead th { 
    background: linear-gradient(135deg, #090d16 0%, #1e293b 100%); 
    color: #fff; 
    padding: 12px 14px; 
    font-family: 'Outfit', sans-serif; 
    font-weight: 500; 
}
.items-table tbody td { padding: 8px 8px; vertical-align: middle; }
.items-table tbody tr { border-bottom: 1px solid var(--gray-100); }
.items-table .input-sm { 
    padding: 6px 10px; 
    border: 1px solid var(--gray-300); 
    border-radius: 6px; 
    font-size: 13px; 
    width: 100%; 
    transition: var(--transition); 
}
.items-table .input-sm:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.items-table input[type="number"] { text-align: right; }

/* ---- Totals Box ---- */
.totals-box { 
    background: #fafafa; 
    border: 1px solid var(--gray-200); 
    border-radius: 12px; 
    padding: 20px; 
    min-width: 300px; 
    margin-left: auto; 
    box-shadow: var(--shadow-sm); 
}
.totals-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13.5px; border-bottom: 1px solid var(--gray-200); color: var(--gray-700); }
.totals-row:last-child { border-bottom: none; }
.totals-row.grand-total { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 700; color: var(--primary); padding-top: 14px; margin-top: 6px; }

/* ---- Alerts ---- */
.alert { padding: 14px 20px; border-radius: 8px; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; font-weight: 500; }
.alert-success { background: var(--success-light); color: var(--success); border: 1px solid #a7f3d0; }
.alert-danger  { background: var(--danger-light);  color: var(--danger);  border: 1px solid #fecaca; }
.alert-warning { background: var(--warning-light); color: var(--warning); border: 1px solid #fde68a; }
.alert-info    { background: var(--info-light);    color: var(--info);    border: 1px solid #c5f2f7; }
.alert-close   { background: none; border: none; cursor: pointer; font-size: 18px; color: inherit; opacity: .7; }

.print-only { display: none !important; }

/* ---- Print Bill ---- */
@media print {
    .print-only { display: block !important; }
    .sidebar, .topbar, .btn-group, .no-print, .filter-bar, .page-header, .breadcrumb, .alert { display: none !important; }
    .content { margin: 0 !important; padding: 0 !important; }
    .card { box-shadow: none; border: none; }
    body { background: #fff; }
}
.print-bill { max-width: 800px; margin: 0 auto; padding: 30px; font-size: 13px; }
.bill-header { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #0f2460; padding-bottom: 16px; margin-bottom: 16px; }
.bill-company { font-size: 18px; font-weight: 700; color: #0f2460; }
.bill-meta table td { padding: 3px 8px; font-size: 13px; }
.bill-section-title { font-weight: 700; background: linear-gradient(135deg, #0f2460 0%, #1a56db 100%); color: #fff; padding: 6px 12px; font-size: 13px; margin-bottom: 0; }
.bill-items-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.bill-items-table th { background: #e8f0fe; padding: 7px 10px; text-align: left; font-size: 12.5px; border: 1px solid #c7d2fe; }
.bill-items-table td { padding: 7px 10px; border: 1px solid var(--gray-200); font-size: 13px; }
.bill-totals { float: right; min-width: 260px; border: 1px solid var(--gray-200); border-radius: 6px; overflow: hidden; }
.bill-totals table { width: 100%; border-collapse: collapse; }
.bill-totals td { padding: 6px 12px; font-size: 13px; border-bottom: 1px solid var(--gray-100); }
.bill-total-final { background: linear-gradient(135deg, #0f2460 0%, #1a56db 100%); color: #fff; font-weight: 700; font-size: 14px; }
.bill-footer { clear: both; border-top: 1px solid var(--gray-200); padding-top: 12px; margin-top: 12px; font-size: 12px; color: var(--gray-500); }

/* ---- Login ---- */
.login-page { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: radial-gradient(circle at top left, #1e1b4b, #090d16); 
}
.login-card { 
    background: rgba(255, 255, 255, 0.98); 
    border-radius: var(--radius-lg); 
    padding: 48px 40px; 
    width: 380px; 
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
}
.login-logo { text-align: center; font-size: 36px; margin-bottom: 12px; }
.login-title { font-family: 'Outfit', sans-serif; text-align: center; font-size: 22px; font-weight: 800; color: #0f172a; margin-bottom: 6px; letter-spacing: -0.02em; }
.login-subtitle { text-align: center; font-size: 13.5px; color: var(--gray-500); margin-bottom: 32px; font-weight: 500; }
.login-card .form-group { margin-bottom: 20px; }

/* ---- Misc ---- */
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 24px 0; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); }
.empty-state .empty-icon { font-size: 44px; margin-bottom: 12px; color: var(--gray-450); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--gray-100); color: var(--gray-700); }
.filter-bar { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 20px; }
.filter-bar .form-group { min-width: 160px; }

/* ============================================================
   INVOICE / BILL PRINT STYLES
   Matches vendor invoice format exactly
   ============================================================ */

/* Print: hide UI chrome */
@media print {
    .sidebar,.topbar,.no-print,.btn-group,.page-header,.breadcrumb,.alert { display:none!important; }
    .content { margin:0!important; padding:0!important; background:#fff!important; }
    body { background:#fff!important; font-size:11px; }
    .inv-wrap { box-shadow:none!important; border:1.5px solid #000!important; margin:0!important; max-width:100%!important; }
    @page { margin:6mm 5mm; size:A4 portrait; }
}

/* ---- Outer wrapper ---- */
.inv-wrap {
    max-width: 900px;
    margin: 0 auto 30px;
    background: #fff;
    border: 2px solid #000;
    font-family: 'Times New Roman', Times, serif;
    font-size: 11px;
    color: #000;
    box-shadow: 0 4px 20px rgba(0,0,0,.13);
}

/* ---- Top title strip ---- */
.inv-title-bar {
    text-align: center;
    border-bottom: 1px solid #000;
    padding: 4px 6px 2px;
    font-size: 10.5px;
    letter-spacing: 1.5px;
}
.inv-doc-type {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    border-bottom: 1px solid #000;
    padding: 3px;
    color: #c00;
}

/* ---- Row1: Seller/Buyer left | Meta right ---- */
.inv-row1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #000;
    min-height: 130px;
}
.inv-seller {
    padding: 6px 8px;
    border-right: 1px solid #000;
    line-height: 1.55;
    font-size: 10.5px;
}
.inv-seller-name { font-weight: 700; font-size: 12px; margin-bottom: 1px; }
.inv-buyer-name  { font-weight: 700; font-size: 11.5px; }
.inv-label-small {
    font-size: 9.5px;
    font-weight: 700;
    text-decoration: underline;
    margin-bottom: 2px;
    color: #000;
}

/* ---- Meta table (right of row1) ---- */
.inv-meta { overflow: hidden; }
.inv-meta-tbl {
    width: 100%;
    border-collapse: collapse;
    height: 100%;
}
.inv-meta-tbl td {
    padding: 2px 6px;
    font-size: 10.5px;
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #ccc;
    vertical-align: middle;
}
.inv-meta-tbl td:first-child { border-left: none; }
.mlab { font-size: 9px; color: #333; }
.mval { font-size: 11px; }
.bold { font-weight: 700; }

/* ---- Items table ---- */
.inv-tbl {
    width: 100%;
    border-collapse: collapse;
    border-bottom: 1px solid #000;
}
.inv-tbl thead th {
    background: #efefef;
    border: 1px solid #999;
    padding: 4px 3px;
    font-size: 9.5px;
    font-weight: 700;
    text-align: center;
    vertical-align: bottom;
    line-height: 1.3;
}
.inv-tbl tbody td {
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #eee;
    padding: 4px 4px;
    vertical-align: top;
    font-size: 10.5px;
}
.inv-tbl tfoot td {
    border: 1px solid #999;
    padding: 5px 5px;
    font-size: 11.5px;
    background: #efefef;
    font-weight: 700;
}
.desc-main { font-weight: 700; font-size: 10.5px; }
.desc-sub  { font-style: italic; font-size: 9.5px; color: #222; margin-top:1px; }
.filler td { height: 15px; border-right: 1px solid #ccc; border-bottom: none; }
.sub-row td { border-right: none; border-bottom: none; padding: 1px 4px; }
.tot-row td { font-weight: 700; background: #efefef; }

/* Column widths */
.c-sl   { width: 24px; }
.c-marks{ width: 64px; }
.c-kind { width: 52px; }
.c-desc { min-width: 150px; }
.c-hsn  { width: 56px; }
.c-gst  { width: 34px; }
.c-qty  { width: 86px; }
.c-rate { width: 54px; }
.c-per  { width: 30px; }
.c-disc { width: 36px; }
.c-amt  { width: 80px; }

/* Alignment helpers */
.ta-c { text-align: center; }
.ta-r { text-align: right; }
.ta-l { text-align: left; }

/* ---- Amount in words ---- */
.inv-words-row {
    padding: 4px 8px;
    border-bottom: 1px solid #000;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}
.inv-words-label { font-size: 9px; color: #555; }
.inv-eoe { margin-left: auto; font-size: 9.5px; font-style: italic; }
.inv-words-val { width: 100%; font-weight: 700; font-size: 11px; }

/* ---- HSN tax summary table ---- */
.inv-hsn-tbl {
    width: 100%;
    border-collapse: collapse;
    border-bottom: 1px solid #000;
}
.inv-hsn-tbl th,
.inv-hsn-tbl td {
    border: 1px solid #bbb;
    padding: 3px 8px;
    font-size: 10.5px;
}
.inv-hsn-tbl thead th {
    background: #efefef;
    font-size: 9.5px;
    font-weight: 700;
}
.inv-hsn-tbl tfoot td { font-weight: 700; background: #f5f5f5; }

/* ---- Tax in words ---- */
.inv-tax-words {
    padding: 4px 8px;
    font-size: 10.5px;
    border-bottom: 1px solid #000;
}

/* ---- Bottom: Declaration | Bank ---- */
.inv-bottom {
    display: grid;
    grid-template-columns: 3fr 2fr;
    border-bottom: 1px solid #000;
    min-height: 90px;
}
.inv-decl {
    padding: 6px 8px;
    border-right: 1px solid #000;
    font-size: 8.5px;
    line-height: 1.55;
}
.inv-bank { padding: 6px 8px; font-size: 10px; }
.inv-bank-tbl { width: 100%; border-collapse: collapse; }
.inv-bank-tbl td { padding: 1px 3px; font-size: 10px; line-height: 1.7; }
.inv-for-name { margin-top: 8px; font-size: 10px; font-weight: 600; }

/* ---- Signature row ---- */
.inv-sig-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 6px 10px 8px;
}
.inv-sig-box { text-align: right; }
.inv-sig-line {
    display: inline-block;
    border-top: 1px solid #000;
    padding-top: 3px;
    min-width: 150px;
    text-align: center;
    font-size: 10.5px;
    font-weight: 700;
    margin-top: 36px;
}

/* ---- Dropdowns ---- */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: #fff;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    z-index: 1000;
    overflow: hidden;
}
.dropdown-menu.show { display: block; }
.dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 16px;
    font-size: 13.5px;
    color: var(--gray-700);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.dropdown-item:hover { background: var(--gray-50); color: var(--primary); }
.dropdown-item.text-danger { color: var(--danger); }
.dropdown-item.text-danger:hover { background: var(--danger-light); color: var(--danger); }
.dropdown-divider { border-top: 1px solid var(--gray-100); margin: 4px 0; }

