/*
 * Old CRM look (measured on crm.scaleeven.com, 26 Nov 2026).
 * Overrides Filament's own styles; change values here, not in Filament.
 */
:root { --crm-text:#373d3f; --crm-page:#f6f9fa; --crm-bar:#f8f9fa; --crm-link:rgba(0,0,0,.8); --crm-item:#6e7379; --crm-item-hover:#16181b; }

body.fi-body { font-family:Roboto,sans-serif; font-weight:300; color:var(--crm-text); background:var(--crm-page); }
.fi-main-ctn, .fi-layout { background:var(--crm-page); }

/* Top bar: 70px, light grey, shadow under it. */
.fi-topbar-ctn .fi-topbar { height:70px; min-height:70px; background:var(--crm-bar); box-shadow:0 2px 4px rgba(0,0,0,.4); border:0; padding:0 15px 0 0; }

/* Brand: logo + bold "CRM". */
.crm-brand { display:flex; align-items:center; padding:0 30px; height:70px; text-decoration:none; }
.crm-brand img { width:40px; margin-right:10px; }
.crm-brand span { font-weight:bold; color:var(--crm-link); font-size:20px; }

/* Dropdown triggers: "Report ▾". */
.fi-topbar .fi-topbar-item-btn { background:transparent !important; padding:8px 12px; height:66px; border-radius:0; gap:4px; }
.fi-topbar .fi-topbar-item-label { font-family:Roboto,sans-serif; font-size:17px; font-weight:300; color:var(--crm-link) !important; }
.fi-topbar .fi-topbar-item-btn > .fi-topbar-item-icon { display:none; }
.fi-topbar .fi-topbar-group-toggle-icon { width:auto; height:auto; display:inline-flex; }
.fi-topbar .crm-caret, .fi-topbar .fa-caret-down { color:var(--crm-link); font-size:14px; width:auto; height:auto; }

/* Dropdown panel and its items. */
.fi-dropdown-panel { border:1px solid rgba(120,130,140,.13); border-radius:4px; box-shadow:0 3px 12px rgba(0,0,0,.05); padding:8px 0; --tw-ring-shadow:0 0 #0000; }
.fi-dropdown-list { padding:0; }
.fi-dropdown-list-item { padding:12px; border-radius:0; gap:0; color:var(--crm-item); background:transparent; }
.fi-dropdown-list-item-label { font-family:Roboto,sans-serif; font-size:16px; font-weight:400; color:var(--crm-item); }
.fi-dropdown-list-item:hover, .fi-dropdown-list-item:focus { background:#adc1c8; }
.fi-dropdown-list-item:hover .fi-dropdown-list-item-label, .fi-dropdown-list-item:hover .crm-fa,
.fi-dropdown-list-item:focus .fi-dropdown-list-item-label, .fi-dropdown-list-item:focus .crm-fa { color:#343a40; }
.fi-dropdown-list-item .crm-fa { color:var(--crm-item); width:auto; font-size:16px; padding-right:8px; }
.fi-dropdown-list .fi-dropdown-list { border-top:1px solid #e9ecef; }

/* User menu trigger: "Name ▾" then the picture. */
.crm-user-trigger { display:flex; align-items:center; gap:4px; padding:8px 12px; font-family:Roboto,sans-serif; font-size:17px; font-weight:300; color:var(--crm-link); background:transparent; }
.crm-user-trigger .fi-avatar { margin-left:8px; }

/* ---- Page frame (old CRM: body #f5f5f5, content starts 80px down and 60px in, padding 0 15px) ---- */
body.fi-body { background:#f5f5f5; }
/* Old CRM: 60px strip on the left only below 1024px wide (style.css @media max-width:1023px). */
@media (max-width:1023px) { .fi-main-ctn { margin-left:60px; } }
.fi-main { max-width:none; padding:10px 15px 60px; }

/* ---- Dashboard (old /home, measured 26 Nov 2026) ---- */
.crm-dashboard .fi-header, .crm-dashboard .fi-page-header-main-ctn > .fi-header { display:none; }
.crm-dashboard .fi-page-header-main-ctn { padding-top:48px; row-gap:0; }
.crm-dashboard .fi-page-content, .crm-dashboard .fi-sc { gap:0 !important; row-gap:0 !important; }
.crm-dashboard .fi-grid { column-gap:30px; row-gap:0; }

.crm-card { background:#fff; border-radius:20px; box-shadow:rgb(55,61,63) .1px .1px 1px 0; margin-bottom:30px; display:flex; flex-direction:column; color:var(--crm-text); font-family:Roboto,sans-serif; font-weight:300; font-size:16px; line-height:24px; }
.crm-card-body { padding:20px; flex:1 1 auto; }
.crm-card-title { font-size:17px; font-weight:500; color:#2c2b2e; margin:0 0 12px; line-height:25.5px; }
.crm-card-title a { color:#007bff; text-decoration:none; }
.crm-card-title a:hover { color:#0056b3; text-decoration:underline; }
.crm-card-header { padding:10px; color:#fff; border-radius:3px 3px 0 0; box-shadow:grey .1px .1px 2px 0; }
.crm-card-header h5 { font-size:20px; font-weight:700; line-height:32px; color:#fff; margin:0 0 8px; }
.crm-card-text p { font-size:14px; line-height:21px; color:#333; margin:0 0 16px; }
.crm-blockquote-footer { font-size:12.8px; line-height:19.2px; color:#6c757d; }
.crm-blockquote-footer::before { content:"\2014 \00A0"; }

/* Seven target cards: 7 in a row on wide screens, 5 up to 1450px, 3 up to 1200px, 2 on phones. */
.crm-seven-row { display:flex; justify-content:space-around; flex-wrap:wrap; gap:8px; }
.crm-svn-col { width:13.5%; }
@media (max-width:1450px) { .crm-seven-row { justify-content:flex-start; } .crm-svn-col { width:19%; } }
@media (max-width:1200px) { .crm-svn-col { width:32%; } }
@media (max-width:767px) { .crm-svn-col { width:48%; } }
.crm-text-right { text-align:right; }
.crm-stat { font-size:32px; font-weight:300; line-height:41.6px; color:#2c2b2e; margin:0; }
.crm-muted { color:#90a4ae; }
.crm-progress { height:16px; background:#e9ecef; border-radius:4px; overflow:hidden; display:flex; }
.crm-progress-bar { background:#009efb; height:100%; transition:width .6s ease; }

/* Recent Top Activities. */
.crm-activity { padding:0 0 0 40px; margin:0 0 16px; list-style:none; }
.crm-activity li { display:flex; border:1px solid rgba(120,130,140,.13); padding:15px; margin:0 0 10px; }
.crm-activity img { max-height:50px; width:60px; height:50px; object-fit:cover; border-radius:50%; padding-right:10px; }
.crm-activity li > div { align-self:center; flex:1; }
.crm-activity h6 { font-size:16px; font-weight:400; color:#2c2b2e; line-height:25.6px; margin:0 0 8px; }
.crm-activity cite { font-style:italic; }

/* Personal Monthly Graph (looks like CanvasJS light2): 400px high. */
.crm-chart { height:400px; display:flex; flex-direction:column; font-family:Calibri,"Trebuchet MS",Roboto,sans-serif; color:#666; font-size:12px; }
.crm-chart-plot { flex:1; display:flex; min-height:0; }
.crm-chart-y { position:relative; width:32px; margin-right:6px; }
.crm-chart-y span { position:absolute; right:0; transform:translateY(50%); line-height:1; }
.crm-chart-area { position:relative; flex:1; display:flex; align-items:flex-end; border-bottom:1px solid #bfbfbf; }
.crm-chart-grid { position:absolute; left:0; right:0; border-top:1px solid #ddd; }
.crm-chart-slot { flex:1; height:100%; display:flex; align-items:flex-end; justify-content:center; position:relative; }
.crm-chart-col { width:60%; position:relative; min-height:0; }
.crm-chart-index { position:absolute; bottom:100%; left:50%; transform:translateX(-50%); padding-bottom:2px; color:#666; white-space:nowrap; }
.crm-chart-x { display:flex; margin-left:38px; padding-top:6px; }
.crm-chart-x span { flex:1; text-align:center; }
.crm-chart-legend { text-align:center; padding-top:10px; font-size:14px; }
.crm-chart-legend i { display:inline-block; width:10px; height:10px; background:grey; margin-right:6px; vertical-align:middle; }
/* Old col-md-8 / col-md-4: 15px padding each side, so 30px between the two columns. */
@media (min-width:768px) { .crm-dashboard .crm-row { margin:0 -15px; column-gap:0 !important; } .crm-col-left, .crm-col-right { padding:0 15px; } }

/* Top-bar dropdowns open right under the 70px bar and are as wide as their longest item, like the old CRM. */
.fi-topbar .fi-dropdown-panel { margin-top:-6px; width:max-content !important; min-width:10rem; }
.fi-topbar .fi-dropdown-list-item-label { white-space:nowrap; flex:none; line-height:24px; margin-left:7px; }
/* Old card-header has a 1px light-grey line under it (61px high). */
.crm-card-header { border-bottom:1px solid #d3d3d3; }

/* ---- Old Bootstrap page look (step ৯গ: Add Lead, Verify Lead, Google Search, All Keywords; measured at 1280px) ---- */
/* Page without Filament's heading: the card starts 80px down, like the old CRM. */
.crm-plain .fi-header, .crm-plain .fi-page-header-main-ctn > .fi-header { display:none; }
.crm-plain .fi-page-header-main-ctn { padding-top:0; row-gap:0; }
.crm-plain .fi-page-content { row-gap:0; }
.crm-bcard { background:#fff; border-radius:4px; padding:10px; margin-bottom:30px; color:var(--crm-text); font-family:Roboto,sans-serif; font-weight:300; font-size:16px; line-height:24px; }
.crm-bcard.crm-pad-30 { padding:30px; }
.crm-bcard-body { padding:20px; }
.crm-h2 { font-size:32px; font-weight:400; line-height:42px; color:#2c2b2e; text-align:center; margin:0 0 8px; font-family:Roboto,sans-serif; }
.crm-subtitle { color:#90a4ae; text-align:center; margin:0; }
.crm-brow { display:flex; flex-wrap:wrap; margin:0 -15px; }
.crm-bcol-2, .crm-bcol-4, .crm-bcol-6, .crm-bcol-8, .crm-bcol-12 { padding:0 15px; width:100%; }
@media (min-width:768px) {
  .crm-bcol-2 { width:16.6667%; } .crm-bcol-4 { width:33.3333%; } .crm-bcol-6 { width:50%; } .crm-bcol-8 { width:66.6667%; }
}
.crm-mb-20 { margin-bottom:20px; }
.crm-form-group { margin-bottom:25px; }
.crm-form-group > label { display:inline-block; margin:0 0 8px; color:#54667a; font-weight:700; }
.crm-control { display:block; width:100%; height:38px; padding:6px 12px; font-size:16px; font-weight:400; line-height:24px; color:#54667a; background:#fff; border:1px solid #ced4da; border-radius:4px; font-family:Roboto,sans-serif; }
textarea.crm-control { height:auto; }
.crm-control:focus { outline:0; border-color:#80bdff; box-shadow:0 0 0 .2rem rgba(0,123,255,.25); }
.crm-control::placeholder { color:#6c757d; opacity:1; }
.crm-control.is-invalid { border-color:#dc3545; }
.crm-invalid { color:#dc3545; font-size:80%; margin-top:4px; }
.crm-dup { color:red; font-style:italic; }
/* The old Add Lead form itself has class form-control: a thin grey box around all fields. */
.crm-form-box { border:1px solid #ced4da; border-radius:4px; padding:6px 12px; width:100%; }
.crm-btn { display:inline-block; font-family:Roboto,sans-serif; font-size:14px; font-weight:400; line-height:21px; padding:7px 12px; border-radius:4px; border:1px solid transparent; color:#fff; text-align:center; cursor:pointer; vertical-align:middle; }
.crm-btn:disabled { opacity:.65; cursor:default; }
.crm-btn-primary { background:#7460ee; border-color:#7460ee; }
.crm-btn-secondary { background:#868e96; border-color:#868e96; }
.crm-btn-success { background:#55ce63; border-color:#55ce63; }
.crm-btn-info { background:#009efb; border-color:#009efb; }
.crm-btn-default { background:#fff; border-color:#ced4da; color:#212529; }
.crm-btn-sm { font-size:12px; line-height:18px; padding:4px 8px; border-radius:3px; }

/* DataTables look (App\Support\DataTable). */
.crm-dt { color:var(--crm-text); font-family:Roboto,sans-serif; font-weight:300; font-size:16px; line-height:24px; }
.crm-dt-top, .crm-dt-bottom { display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:8px; }
.crm-dt-top { margin-bottom:8px; }
.crm-dt-length select { border:1px solid #767676; font-size:16px; height:23px; padding:0; margin:0 4px; background:#fff; color:#000; }
.crm-dt-filter input { border:1px solid #d9d9d9; height:28px; width:173px; padding:1px 2px; margin-left:8px; font-size:16px; color:#000; }
.crm-dt-scroll { overflow-x:auto; }
.crm-table { width:100%; border-collapse:collapse; margin:4px 0 16px; color:var(--crm-text); }
.crm-table-bordered { border:1px solid #dee2e6; }
.crm-table th { font-weight:500; padding:12px; text-align:left; vertical-align:bottom; white-space:nowrap; }
.crm-table td { padding:12px; vertical-align:top; border:1px solid #f3f1f1; }
.crm-table-striped tbody tr:nth-of-type(odd) { background:#f2f7f8; }
.crm-table th.crm-sortable { cursor:pointer; }
.crm-table th.crm-sortable::after { font-family:FontAwesome; content:"\f0dc"; margin-left:6px; opacity:.4; }
.crm-table th.crm-sort-asc::after { content:"\f0de"; opacity:1; }
.crm-table th.crm-sort-desc::after { content:"\f0dd"; opacity:1; }
.crm-dt-empty { text-align:center; }
.crm-dt-paginate { padding-top:4px; }
.crm-page-btn { display:inline-block; padding:8px 16px; margin-left:2px; border:1px solid transparent; border-radius:2px; color:#54667a; cursor:pointer; text-decoration:none; }
.crm-page-btn:hover:not(.disabled):not(.current) { background:#f2f7f8; }
.crm-page-btn.current { background:#009efb; border-color:#009efb; color:#fff; }
.crm-page-btn.disabled { cursor:default; }
.crm-page-ellipsis { padding:0 1em; }

/* Bootstrap-style modal (old "Edit Keyword"). */
.crm-modal-backdrop { position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:60; display:flex; align-items:flex-start; justify-content:center; padding:28px 16px; overflow-y:auto; }
.crm-modal { background:#fff; border-radius:4px; width:100%; max-width:60%; font-family:Roboto,sans-serif; color:var(--crm-text); }
@media (max-width:767px) { .crm-modal { max-width:100%; } }
.crm-modal-header { display:flex; justify-content:space-between; align-items:center; padding:15px; border-bottom:1px solid #e9ecef; }
.crm-modal-header h4 { font-size:18px; font-weight:500; margin:0; color:#2c2b2e; }
.crm-modal-close { font-size:24px; line-height:1; background:none; border:0; opacity:.5; cursor:pointer; }
.crm-modal-body { padding:15px; }
.crm-modal-footer { display:flex; justify-content:flex-end; padding:15px; border-top:1px solid #e9ecef; }
/* Old /verify shows a 'Processing...' row above its table, so its table sits ~20px lower. */
.crm-dt-gap .crm-table { margin-top:24px; }

/* ---- Step ৯ঘ: My Leads, My Followups, Contacted Leads, Assigned to Me (measured at 1280px) ---- */
.crm-btn-warning { background:#ffbc34; border-color:#ffbc34; }
.crm-btn-dark { background:#343a40; border-color:#343a40; }
.crm-btn-danger { background:#f62d51; border-color:#f62d51; }
.crm-btn-outline-primary { background:#fff; border-color:#7460ee; color:#7460ee; }
.crm-btn-outline-primary:hover { background:#7460ee; color:#fff; }
.crm-btn-sm { border-radius:3.2px; }
.crm-table td .crm-btn-sm { margin:0 0 0 0; }
.crm-link { color:#007bff; text-decoration:none; }
.crm-link:hover { text-decoration:underline; }
.crm-bcol-3 { padding:0 15px; width:100%; }
@media (min-width:768px) { .crm-bcol-3 { width:25%; } }
/* My Lead: "Mined by" and "Lead Status" boxes float right (col-md-2, 25px apart below). */
.crm-float-groups { display:flex; flex-direction:row-reverse; margin:0 -15px; }
.crm-float-groups > div { width:16.6667%; padding:0 15px; margin-bottom:25px; }
.crm-float-groups label { display:inline-block; margin-bottom:8px; }
.crm-mgroup { margin-bottom:5px; }
.crm-mgroup > label, .crm-modal-body label { display:inline-block; margin-bottom:8px; }
.crm-modal-h3 { font-size:21px; font-weight:400; margin:0 0 24px; color:#2c2b2e; }
.crm-modal-h4 { font-size:18px; font-weight:500; margin:0 0 8px; color:#2c2b2e; }
.crm-history { width:100%; overflow-y:scroll; border:solid black 1px; }
.crm-history-item { padding:4px 8px; border-bottom:1px solid #eee; }
/* Followup List date boxes: plain browser inputs with a calendar icon in front. */
.crm-datebox { display:inline-block; margin:15px; }
.crm-datebox i { width:15px; }
.crm-datebox input { width:175px; height:30px; padding:1px 2px; border:2px inset #767676; font-size:16px; margin-right:15px; }
.crm-check-row { margin-top:8px; }

/* ---- Step ৯ঙ: Lead Account (/account/{id}, measured at 1280px) ---- */
/* Old style.css gives every popup a brown header with a white bold title, round 10px corners. */
.crm-modal { border-radius:10px; overflow:hidden; box-shadow:0 4px 8px rgba(0,0,0,.1); font-weight:300; }
.crm-modal-header { background:#8f6251; padding:20px; border-bottom:1px solid #dee2e6; align-items:flex-start; }
.crm-modal-header h4 { font-size:20px; font-weight:700; line-height:30px; color:#fff; }
.crm-modal-close { color:#333; font-weight:700; padding:16px; margin:-16px -16px -16px auto; }
/* Popup width is a share of the window (Bootstrap .modal-dialog), so no side padding on wide screens. */
@media (min-width:768px) { .crm-modal-backdrop { padding:28px 0; } }
.crm-modal-body { padding:20px; }
.crm-modal-footer .crm-btn-default, .crm-btn-default { background:#efefef; border-color:transparent; color:#000; margin:0 5px; }
.crm-btn-custom { background:#8f6251; border:1px solid #432d26; color:#fff; }
.crm-btn-custom:hover { background:#54372d; opacity:.8; border-color:#8f6251; }
.crm-fg16 { margin-bottom:25px; }
.crm-modal hr { border:0; border-top:1px solid rgba(0,0,0,.1); margin:16px 0; }
.crm-modal-body input:not([class]) { height:30px; width:175px; border:2px inset #767676; padding:1px 2px; }
/* Three columns (col-md-6 col-lg-4), white cards 4px round, 20px inside; the page's own 15px gutter. */
.crm-acct { padding:0; margin:0; font-family:Roboto,sans-serif; color:#373d3f; font-weight:300; font-size:16px; line-height:24px; align-items:flex-start; }
.crm-acct-col { width:100%; padding:0 15px; margin-bottom:16px; }
@media (min-width:768px) { .crm-acct-col { width:50%; } }
@media (min-width:992px) { .crm-acct-col { width:33.3333%; } }
.crm-acct-card { background:#fff; border-radius:4px; padding:20px; }
.crm-acct p { margin:0 0 16px; }
.crm-acct p b, .crm-acct-card > p > b { color:#6c757d; font-weight:400; }
.crm-acct hr { border:0; border-top:1px solid rgba(0,0,0,.1); margin:16px 0; }
.crm-acct-h5 { font-size:20px; font-weight:400; line-height:32px; color:#2c2b2e; margin:0 0 8px; }
.crm-acct-line { border-bottom:1px solid #dee2e6; padding-bottom:8px; }
.crm-acct-btns { margin-bottom:16px; display:flex; flex-wrap:wrap; gap:4px; }
.crm-acct-tabs { display:flex; list-style:none; margin:0; padding:0; border-bottom:1px solid #dee2e6; }
.crm-acct-tabs a { display:block; white-space:nowrap; padding:8px 16px; margin-bottom:-1px; border:1px solid transparent; border-radius:4px 4px 0 0; color:#007bff; cursor:pointer; }
.crm-acct-tabs a.active { color:#495057; background:#fff; border-color:#dee2e6 #dee2e6 #fff; }
.crm-acct-comment { background:#fff; padding:8px; margin-bottom:30px; }
.crm-acct-comment p { color:#343a40; }
.crm-acct-comment footer { color:#6c757d; font-size:15px; line-height:22.5px; }
.crm-acct-comment footer::before { content:"\2014 \00A0"; }
.crm-acct-note { border-radius:4px; padding:24px; margin-bottom:30px; }
.crm-acct-warning { background:#ffbc34; }
.crm-acct-primary { background:#7460ee; color:#fff; }
.crm-acct-table { width:100%; border-collapse:collapse; margin-bottom:16px; }
.crm-acct-table th { font-weight:500; padding:12px; text-align:left; }
.crm-acct-table td { font-weight:400; padding:12px; border-top:1px solid #f3f1f1; vertical-align:top; }
.crm-acct-table p { margin:0; }
.crm-acct-emp { background:#fff; border-radius:4px; padding:20px; margin-bottom:24px; }
.crm-acct-emp-title { font-size:17px; font-weight:500; line-height:27.2px; color:#6c757d; margin:0 0 12px; }
.crm-acct-emp p { font-size:14px; line-height:21px; color:#333; margin:0 0 16px; }
.crm-acct-emp p b { color:#333; font-weight:400; }

/* ---- Step ৯চ: Directory pages (All Leads, Untouched, All Test Lead, Filtered Leads, All Contacts, Set Parent Company) ---- */
.crm-bcol-1, .crm-bcol-5, .crm-bcol-7, .crm-bcol-10 { padding:0 15px; width:100%; }
@media (min-width:768px) {
  .crm-bcol-1 { width:8.3333%; } .crm-bcol-5 { width:41.6667%; } .crm-bcol-7 { width:58.3333%; } .crm-bcol-10 { width:83.3333%; }
}
.crm-alert-info { color:#0c5460; background:#d1ecf1; border:1px solid #bee5eb; border-radius:4px; padding:12px 20px; margin-bottom:16px; }
.crm-date-row label { display:inline-block; margin-bottom:8px; }
.crm-btn.disabled { opacity:.65; pointer-events:none; cursor:default; }
.crm-trial-filters .crm-form-group > label { font-weight:300; color:inherit; margin:0 0 8px; }
.crm-trial-filters input[type=date].crm-control, .crm-date-row input[type=date].crm-control { height:40px; }
.crm-btn-circle { border-radius:50%; float:right; width:37px; height:37px; padding:7px 0; font-size:14px; }

/* ---- Step ৯জ: Report pages (Table, Target vs Achievement, Hourly, Country, Follow-up, Others, Revenue; measured at 1280px) ---- */
.crm-wrap-th th { white-space:normal; }
.crm-report-search { display:block; margin:0 0 8px; }
.crm-report-search b { font-weight:400; }
.crm-report-row { display:flex; flex-wrap:wrap; margin:0 -15px; }
.crm-report-row > div { padding:0 15px; margin-bottom:8px; }
.crm-report-row > div:last-child { margin-bottom:0; }
.crm-report-inline { display:flex; align-items:center; gap:4px; }
.crm-rdate { width:175px; height:30px; padding:1px 2px; border:2px inset #767676; border-radius:50px; font-size:16px; color:#000; background:#fff; font-family:Roboto,sans-serif; }
.crm-report-h2 { font-size:32px; font-weight:400; line-height:41.6px; color:#2c2b2e; margin:0 0 8px; font-family:Roboto,sans-serif; }
.crm-report p { margin:0 0 16px; }
/* Hourly: date box in a col-3, the table is display:block (old table-responsive class on the table). */
.crm-hour-date { width:25%; padding:0 15px; margin-bottom:25px; }
.crm-hour-date input { height:40px; }
.crm-hour-table { display:block; overflow-x:auto; }
.crm-hour-table th, .crm-hour-table td { white-space:normal; vertical-align:top; }
/* Others: Bootstrap nav-tabs. */
.crm-tabs { display:flex; list-style:none; margin:0; padding:0; border-bottom:1px solid #dee2e6; }
.crm-tabs a { display:block; padding:8px 16px; margin-bottom:-1px; border:1px solid transparent; border-radius:4px 4px 0 0; color:#007bff; cursor:pointer; text-decoration:none; }
.crm-tabs a.active { color:#495057; background:#fff; border-color:#dee2e6 #dee2e6 #fff; }
/* Target vs Achievement. */
.crm-tva { font-family:Roboto,sans-serif; color:var(--crm-text); font-weight:300; font-size:16px; line-height:24px; padding:0 24px; }
.crm-tva h2 { font-size:32px; font-weight:400; line-height:41.6px; color:#2c2b2e; text-align:center; margin:48px 0 8px; }
.crm-tva h5 { font-size:20px; font-weight:400; line-height:32px; color:#90a4ae; text-align:center; margin:0 0 48px; }
.crm-tva-card { background:#fff; border-radius:4px; box-shadow:0 4px 6px rgba(0,0,0,.1); margin-bottom:30px; }
.crm-tva-card.crm-tva-chart { margin-bottom:48px; padding:20px; }
.crm-tva-head { padding:10px; border-bottom:1px solid #dee2e6; }
.crm-tva-head h4 { font-size:24px; font-weight:400; line-height:36px; color:#7460ee; margin:0; }
.crm-tva table { width:100%; border-collapse:collapse; }
.crm-tva th, .crm-tva td { text-align:center; vertical-align:middle; padding:12px; border:1px solid #dee2e6; }
.crm-tva th { font-weight:500; }
.crm-tva tbody th { background:#f8f9fa; }
.crm-tva td.crm-pct { font-weight:700; }
.crm-tva td.crm-pct-low { background:#fa9775; color:#fff; }
/* Revenue. */
.crm-revenue-h1 { font-size:40px; font-weight:400; line-height:48px; color:#2c2b2e; text-align:center; margin:0 0 8px; }
.crm-revenue-sum { background:#709dae; border-radius:4px; padding:20px; color:#2c2b2e; }
.crm-revenue-sum h4 { font-size:24px; font-weight:400; line-height:36px; margin:0 0 8px; }
.crm-revenue-sum h5 { font-size:20px; font-weight:400; line-height:32px; margin:0 0 8px; }
.crm-modal-header.crm-header-success { background:#709dae; }
.crm-modal-header.crm-header-success .crm-modal-close { color:#fff; opacity:1; }
.crm-btn-blue { background:#00bfff; border-color:#00bfff; color:#000; }
.crm-view-h4 { font-size:24px; font-weight:400; line-height:36px; color:#2c2b2e; margin:0 0 8px; }
.crm-center th, .crm-center td { text-align:center; }
.crm-tva th, .crm-tva td { line-height:19px; }
.crm-tva-card.crm-tva-chart { height:490px; overflow:hidden; }
.crm-form-group > label.crm-plain-label { margin:0 0 8px; font-weight:300; color:inherit; }
/* ---- Step ৯ঝ: Analysis Home (old /analysisHome, measured at 1280px) ---- */
.crm-ah { padding:0 100px; font-family:Roboto,sans-serif; font-weight:300; font-size:16px; line-height:24px; }
.crm-ah h1 { font-size:40px; font-weight:400; line-height:48px; color:#2c2b2e; text-align:center; padding:30px 0; margin:0 0 24px; }
.crm-ah-row { display:flex; flex-wrap:wrap; margin:0 -15px; }
.crm-ah-block { width:100%; }
.crm-ah-hr { margin-bottom:33px; }
.crm-ah-col { width:100%; padding:0 15px; }
@media (min-width:768px) { .crm-ah-col { width:25%; } }
.crm-ah-link, .crm-ah-link:hover { display:block; color:#007bff; text-decoration:none; }
.crm-ah-card { background:#fff; border-radius:4px; margin-bottom:30px; box-shadow:0 4px 8px 0 rgba(0,0,0,.2), 0 6px 20px 0 rgba(0,0,0,.19); }
.crm-ah-card img { vertical-align:middle; width:100%; border-radius:3px 3px 0 0; }
.crm-ah-body { padding:20px; }
.crm-ah-body h4 { font-size:17px; font-weight:500; line-height:25.5px; color:#2c2b2e; margin:0 0 12px; }
.crm-ah-body p { font-size:14px; line-height:21px; color:#333; margin:0; }
/* Personal Analysis (old /analysis/personal-analysis): white card, no padding; report in the middle 8/12 at 24px. */
.crm-pa { background:#fff; border-radius:4px; margin-bottom:30px; font-family:Roboto,sans-serif; font-weight:300; font-size:16px; line-height:24px; color:var(--crm-text); }
.crm-pa-title { font-size:32px; font-weight:400; line-height:41.6px; color:#2c2b2e; text-align:center; padding:50px 50px 0; margin:0 0 8px; }
.crm-pa-sub { text-align:center; padding:0 0 50px; margin:0 0 16px; }
.crm-pa-row { display:flex; flex-wrap:wrap; margin:0 -15px; font-size:24px; line-height:36px; }
.crm-pa-row > div { padding:0 15px; width:100%; }
@media (min-width:768px) { .crm-pa-form .crm-pa-col4 { width:33.3333%; } .crm-pa-form .crm-pa-col3 { width:25%; } .crm-pa-form .crm-pa-col2 { width:16.6667%; } }
@media (min-width:1200px) { .crm-pa-out .crm-pa-side { width:16.6667%; } .crm-pa-out .crm-pa-main { width:66.6667%; } }
.crm-pa-form { margin-bottom:16px; }
.crm-pa-form input.crm-control { height:40px; }
.crm-pa-btn { display:flex; font-size:14px; font-weight:400; line-height:21px; padding:7px 12px; color:#fff; background:#7460ee; border:1px solid #7460ee; border-radius:4px; cursor:pointer; font-family:Roboto,sans-serif; }
.crm-pa-main { text-align:justify; }
.crm-pa-main h2.crm-pa-h2 { font-size:32px; font-weight:400; line-height:41.6px; color:#2c2b2e; text-align:center; margin:0 0 8px; }
.crm-pa-main h5.crm-pa-h5 { font-size:20px; font-weight:400; line-height:32px; color:#2c2b2e; text-align:center; margin:0 0 8px; }
.crm-pa-main h3 { font-size:28px; font-weight:400; line-height:39.2px; color:#2c2b2e; margin:0 0 8px; }
.crm-pa-main p { margin:0 0 16px; }
.crm-pa-main strong { font-weight:400; }
.crm-pa-main hr { margin:16px 0; border:0; border-top:1px solid rgba(0,0,0,.1); }
.crm-pa-link { color:#007bff; }

/* ---- step ৯ঝ-২: Analysis tools (Random Reports All, lead tables) ---- */
.crm-table td.text-center, .crm-table th.text-center { text-align:center; }
.crm-subtitle.crm-rra-sub { font-size:20px; font-weight:300; line-height:32px; margin:-6px 0 15px; }
.crm-h2.crm-h2-subtitle { font-weight:300; color:#90a4ae; margin:-6px 0 15px; }
.crm-table tfoot th, .crm-table tfoot td { padding:12px; vertical-align:top; font-weight:500; }
.crm-table tfoot td { font-weight:400; border:1px solid #f3f1f1; }
.crm-rra-row { display:flex; flex-wrap:wrap; margin:0 -15px; }
.crm-rra-col4, .crm-rra-col8 { width:100%; padding:0 15px; }
@media (min-width:768px) { .crm-rra-col4 { width:33.3333%; } .crm-rra-col8 { width:66.6667%; } }

/* ---- step ৯ঝ-৩: Followup List, Graphical Presentation, Sales Pipeline ---- */
.crm-intro-p { text-align:center; margin:0 0 16px; }
.crm-gp { padding-bottom:1px; }
.crm-gp-form { display:flex; flex-wrap:wrap; }
.crm-gp-form > div { width:100%; padding:0 15px; }
@media (min-width:768px) { .crm-gp-form .crm-gp-col3 { width:25%; } .crm-gp-form .crm-gp-col2 { width:16.6667%; } }
.crm-gp-form input.crm-control { height:38px; }
.crm-gp-submit { text-align:right; }
.crm-gp-chart { height:600px; width:80%; }
.crm-gp-chart .fi-section, .crm-gp-chart .fi-wi-chart { box-shadow:none; border:0; background:transparent; --tw-ring-shadow:0 0 #0000; }
.crm-gp-chart .fi-section-content { padding:0; }
.crm-sp-row { display:flex; flex-wrap:wrap; padding:30px; font-family:Roboto,sans-serif; font-weight:300; font-size:16px; line-height:24px; color:var(--crm-text); }
.crm-sp-col { width:100%; padding:0 15px; }
@media (min-width:768px) { .crm-sp-col { width:16.6667%; } }
.crm-sp-card { height:100%; display:flex; flex-direction:column; background:#fff; border:1px solid rgba(0,0,0,.125); border-radius:4px; overflow-wrap:break-word; }
.crm-sp-header { padding:12px 20px; color:#fff; border-bottom:1px solid rgba(0,0,0,.125); border-radius:3px 3px 0 0; }
.crm-sp-badge { display:inline-block; padding:3.6px 9.6px; font-size:75%; font-weight:500; line-height:1; border-radius:160px; background:#fff; color:#212529; }
.crm-bg-secondary { background:#868e96; } .crm-bg-dark { background:#343a40; } .crm-bg-info { background:#009efb; }
.crm-bg-success { background:#55ce63; } .crm-bg-primary { background:#7460ee; } .crm-bg-danger { background:#f62d51; }
.crm-sp-body { padding:20px; }
.crm-sp-site { font-size:20px; font-weight:400; line-height:24px; color:#2c2b2e; margin:0 0 8px; }
.crm-sp-line { margin:0 0 16px; }
.crm-sp-link { color:#009efb; }
.crm-sp-footer { padding:12px 20px; background:rgba(0,0,0,.03); border-top:1px solid rgba(0,0,0,.125); }

/* Step 9i-4: Long Time No Update (h5 subtitle), Chasing Companies (h3 subtitle), Analysis Comments (input groups). */
.crm-subtitle.crm-h3-sub { font-size:21px; font-weight:300; line-height:30px; margin:-6px 0 15px; }
.crm-subtitle.crm-ac-sub { font-weight:300; margin:-6px 0 15px; }
.crm-clearfix::after { content:""; display:table; clear:both; }
.crm-input-group { display:flex; align-items:stretch; width:100%; margin-bottom:16px; }
.crm-input-group .crm-control { flex:1 1 auto; width:1%; border-top-right-radius:0; border-bottom-right-radius:0; }
.crm-input-group .crm-btn { border-top-left-radius:0; border-bottom-left-radius:0; white-space:nowrap; }

/* ---- Step ৯ঝ-৫: old /randomReports (.row.mainrow padding 0 60px, h1/h4 text-center mb-4) ---- */
.crm-rr-main { padding:0; }
@media (min-width:768px) { .crm-rr-main { padding:0 60px; } }
.crm-rr-h1 { font-size:36px; font-weight:400; line-height:43px; color:#2c2b2e; text-align:center; margin:0 0 24px; padding:30px 0 0; font-family:Roboto,sans-serif; }
.crm-rr-h4 { font-size:18px; font-weight:400; line-height:22px; color:#2c2b2e; text-align:center; margin:0 0 24px; font-family:Roboto,sans-serif; }
.crm-rr-p { margin:0 0 16px; }
.crm-rr-list { margin:0 0 16px; padding-left:40px; }
.crm-rr-list li { list-style-type:none; padding:5px 0; }
/* FAQ, old /faq (step ৯ঝ-৬): Bootstrap 4 .card-columns (3 columns from 576px, gap 1.25rem; cards inline-block, 12px apart). */
.crm-faq { padding:0 15px; }
.crm-faq-h2 { font-size:32px; line-height:42px; font-weight:700; text-align:center; padding:20px; margin:0 0 8px; color:#2c2b2e; font-family:Roboto,sans-serif; }
.crm-faq-hr { margin:16px 0; border:0; border-top:1px solid rgba(0,0,0,.1); }
.crm-faq-columns { margin:0 -15px; }
@media (min-width:576px) { .crm-faq-columns { column-count:3; column-gap:1.25rem; orphans:1; widows:1; } }
.crm-faq-columns .crm-faq-card { display:inline-block; width:calc(100% - 30px); margin:0 15px 12px; }
.crm-faq-text { margin:0 0 16px; }
.crm-faq-mbody { padding:0 15px; }
.crm-faq-row { margin-bottom:16px; }
.crm-faq-row > label { margin-bottom:8px; }

/* Step ৯ঞ-৩: Lookup Tables (old .page-title-box, tab buttons, "… List" card) */
.crm-lookup-title { font-size:18px; font-weight:500; line-height:27px; color:#2c2b2e; margin:0 0 16px; font-family:Roboto,sans-serif; }
.crm-lookup-card { padding:0; margin-bottom:16px; }
.crm-lookup-bar { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px; }
.crm-lookup-tabs { display:flex; flex-wrap:wrap; gap:10px; }
.crm-lookup-list { font-size:18px; font-weight:500; line-height:27px; color:#2c2b2e; margin:0 0 16px; }
.crm-lookup .crm-table td .crm-btn-sm { margin-right:2px; }

/* Step ৯ঞ-৩: User Management (old h2 inline + float-right button, striped condensed 14px table) */
.crm-users-h2 { display:inline-block; font-size:30px; font-weight:400; line-height:36px; color:#2c2b2e; margin:0 0 8px; font-family:Roboto,sans-serif; }
.crm-users-add { float:right; }
.crm-users-table { border:0; font-size:14px; }
.crm-users-table th, .crm-users-table td { border-left:0; border-right:0; padding:5px; }
.crm-users-table td .crm-btn-sm { margin-right:2px; }
.crm-btn-lg { font-size:18px; line-height:27px; padding:8px 16px; }
.crm-users-target-name { display:block; width:100%; text-align:center; border:1px solid #767676; padding:1px 2px; }
/* Step ৯ঞ-৩: Monthly Target Log */
.crm-targets-h3 { font-size:24px; font-weight:700; line-height:30px; text-align:center; color:#2c2b2e; margin:0 0 8px; font-family:Roboto,sans-serif; }
.crm-control.crm-picked { background:#7c9; color:#fff; }
/* Step ৯ঞ-৪: Communication (/notice) */
.crm-notice-box { padding:0 15px; }
.crm-bcard.crm-notice-head { padding:2px; }
.crm-notice-h2 { font-size:32px; line-height:42px; font-weight:400; text-align:center; margin:0 0 8px; color:#2c2b2e; font-family:Roboto,sans-serif; }
.crm-notice-head .crm-btn + .crm-btn { margin-left:4px; }
.crm-notice-columns { margin:0 -15px; }
@media (min-width:576px) { .crm-notice-columns { column-count:3; column-gap:1.25rem; } }
.crm-notice-item { padding:0 15px; }
.crm-notice-card { background:#fff; border:1px solid #d9d9d9; border-radius:10px; box-shadow:0 2px 5px rgba(0,0,0,.1); margin-bottom:20px; display:inline-block; width:100%; color:var(--crm-text); font-family:Roboto,sans-serif; font-weight:300; font-size:16px; line-height:24px; }
.crm-notice-text { font-size:14px; line-height:21px; color:#333; margin:0 0 16px; overflow-wrap:anywhere; }
.crm-notice-h5 { font-size:20px; }
.crm-notice-msg { display:flex; gap:12px; justify-content:space-between; align-items:flex-start; padding:8px; border-radius:4px; }
.crm-notice-unread { background:#eef7fe; }
.crm-modal-body .crm-form-group > label[for^="im-"] { font-weight:300; color:inherit; margin:0 0 8px; }
.crm-modal-body .crm-table th, .crm-modal-body .crm-table td { border:0; border-top:1px solid #f3f1f1; }
/* Step ৯ঞ-৪: Login Branding */
.crm-lb { padding:0 15px; }
.crm-lb-title { font-size:24px; line-height:36px; font-weight:400; color:#2c2b2e; margin:0 0 8px; font-family:Roboto,sans-serif; }
.crm-lb .crm-bcard { padding:0; margin-top:16px; }
.crm-lb-h4 { font-size:24px; line-height:36px; font-weight:400; color:#2c2b2e; margin:0 0 16px; }
.crm-lb-box { border:1px solid #dee2e6; border-radius:4px; background:#f8f9fa; }
.crm-lb-label { display:inline-block; margin-bottom:8px; }
.crm-lb-label strong { font-weight:700; }
.crm-lb .crm-form-group > label { color:inherit; font-weight:400; margin:0 0 8px; }
.crm-lb input[type=file].crm-control { height:auto; }
.crm-lb-help { display:block; margin-top:4px; font-size:12.8px; line-height:19.2px; color:#90a4ae; font-weight:400; }
.crm-lb-check { display:flex; gap:6px; align-items:center; font-weight:400; }
/* Step ৯ঞ-৫: Change Logs, Revenue Count */
.crm-cl { padding:0 15px; }
.crm-cl-h1 { font-size:40px; line-height:48px; font-weight:400; color:#333; padding:50px 0; margin:0; font-family:Roboto,sans-serif; }
.crm-cl-container { display:flex; flex-wrap:wrap; gap:20px; }
.crm-cl-card { flex:1 1 calc(33.333% - 20px); min-width:300px; background:#fff; border-radius:10px; box-shadow:0 4px 8px rgba(0,0,0,.1); margin-bottom:20px; font-family:Roboto,sans-serif; }
.crm-cl-title { background:#f8f9fa; font-size:20px; font-weight:700; line-height:30px; padding:15px; border-radius:10px 10px 0 0; color:#2c2b2e; }
.crm-cl-body { padding:20px; }
.crm-cl-title + .crm-cl-body { padding:0; }
.crm-cl-h5 { font-size:20px; font-weight:400; line-height:30px; color:#2c2b2e; margin:0 0 12px; }
.crm-cl-list { list-style:none; margin:0; padding:0; }
.crm-cl-list li { font-size:16px; line-height:24px; color:#555; padding:10px 15px; border-bottom:1px solid rgba(0,0,0,.125); font-weight:300; }
.crm-cl-list li:last-child { border-bottom:0; }
.crm-cl-badge { display:inline-block; font-size:14.4px; line-height:1; font-weight:500; padding:5px 10px; border-radius:4px; color:#fff; vertical-align:baseline; }
.crm-cl-warning { background:#ffbc34; color:#212529; } .crm-cl-info { background:#009efb; } .crm-cl-success { background:#55ce63; }
.crm-rc-card { background:#fff; border-radius:4px; margin-bottom:30px; color:var(--crm-text); font-family:Roboto,sans-serif; font-weight:300; font-size:16px; line-height:24px; }
.crm-rc-header { background:#009efb; padding:10px; border-radius:3px 3px 0 0; display:flex; flex-wrap:wrap; align-items:center; }
.crm-rc-half { width:50%; }
.crm-rc-title { font-size:17px; font-weight:500; line-height:25.5px; color:#fff; margin:0; }
.crm-rc-h4 { font-size:21px; font-weight:400; line-height:31.5px; color:#fff; margin:0; }
.crm-rc-table .crm-table-bordered { border:0; }
.crm-rc-table .crm-table th, .crm-rc-table .crm-table td { text-align:center; border:0; border-top:1px solid #f3f1f1; }
.crm-rc-form .crm-form-group > label.crm-rc-label { color:inherit; font-weight:400; margin:0 0 8px; }
.crm-text-danger { color:#f62d51; }

/* ধাপ ১০: old Add Lead form-groups are 25px apart and labels have no top margin. */
.crm-form-box .crm-form-group { margin-bottom:25px; }
.crm-form-box .crm-form-group > label { margin-top:0; }
.crm-form-box textarea.crm-control { display:inline-block; }
/* ধাপ ১০: old User Management popups: plain labels, 25px between rows; big Update button. */
.crm-users-form .crm-form-group { margin-bottom:25px; }
.crm-users-form .crm-form-group > label { margin:0; font-weight:400; color:#373d3f; }
.crm-users-form .crm-modal-body .crm-brow .crm-form-group > label[for^="t-"] { margin-bottom:8px; }
.crm-users-form .crm-btn-lg { font-size:20px; line-height:30px; padding:12px 24px; border-radius:4.8px; }
/* ধাপ ১০: Lookup Tables measured again on the old CRM: 15px side gutter, 24px titles, cards 46px apart. */
.crm-lookup { padding:0 15px; }
.crm-lookup-title { font-size:24px; font-weight:400; line-height:36px; margin:0 0 8px; }
.crm-lookup-list { font-size:24px; font-weight:400; line-height:36px; margin:0 0 16px; }
.crm-lookup-card { margin-bottom:46px; }
.crm-lookup-card + .crm-lookup-card { margin-bottom:30px; }
/* ধাপ ১০: old /notice puts the heading AND the notices inside one white card (x15, padding 2px). */
.crm-notice-box { padding:2px; background:#fff; border-radius:4px; margin-bottom:30px; }
.crm-bcard.crm-notice-head { padding:0; margin:0; background:transparent; }
.crm-notice-head .crm-btn + .crm-btn { margin-left:0; }
/* ধাপ ১০: Revenue Count header measured again: title 27.2px tall + 12px below, items at the top (header 60px). */
.crm-rc-header { align-items:flex-start; }
.crm-rc-title { line-height:27.2px; margin:0 0 12px; }
/* ধাপ ১০: Monthly Target Log: 28px heading, labels sit right on the select, 25px under each group. */
.crm-targets-h3 { font-size:28px; line-height:39.2px; }
.crm-targets-h3 + .crm-brow .crm-form-group { margin-bottom:25px; }
.crm-targets-h3 + .crm-brow .crm-form-group > label.crm-plain-label { margin:0; }
/* ধাপ ১০: old Revenue filter groups have 25px under them. */
.crm-revenue-h1 + .crm-brow .crm-form-group { margin-bottom:25px; }
/* ধাপ ১০: old h2.card-title (17px) is 22.1px tall. */
h2.crm-card-title { line-height:22.1px; }
/* ধাপ ১০: old Lookup popup: 10px between Create/Update and Close. */
.crm-lookup-footer > .crm-btn:first-child { margin-right:5px; }
/* ধাপ ১০: old Communication popups: rows 25px apart, textareas sit inline (7px gap under them). */
.crm-notice-form .crm-faq-row { margin-bottom:25px; }
.crm-notice-form textarea.crm-control, #im-msg { display:inline-block; }
/* ধাপ ১০: old modal footers give each button 5px on both sides. */
.crm-modal-footer > .crm-btn { margin:0 5px; }
/* ধাপ ১০: Login Branding measured again: card 140px from top, file boxes 44px, checkbox text 20px in (Bootstrap form-check). */
.crm-lb .crm-bcard { margin-top:24px; }
.crm-lb input[type=file].crm-control { height:44px; }
.crm-lb .crm-form-group > label.crm-lb-check { display:block; position:relative; padding-left:20px; margin:0; }
.crm-lb-check input { position:absolute; left:0; top:5px; margin:0; }
