/* =============================================================
   modules.css — Acois ERP
   Extracted from view templates:
   attendance, auth, bank, campaign, client, contact,
   currency, dashboard, doc
   Include via: <link rel="stylesheet" href="{{ Asset('assets/vendor/css/modules.css') }}">
   ============================================================= */


/* ──────────────────────────────────────────────────────────────
   STAT ICON CIRCLES
   Circular icon containers used in summary/stat cards.
   Used by: attendance/history, attendance/index, campaign/index
   ────────────────────────────────────────────────────────────── */

.stat-icon-circle {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Small — 40px (attendance history page) */
.stat-icon-sm { width: 40px; height: 40px; min-width: 40px; }

/* Medium — 48px (attendance index, campaign index) */
.stat-icon-md { width: 48px; height: 48px; min-width: 48px; }


/* ──────────────────────────────────────────────────────────────
   GRADIENT ICON BACKGROUNDS
   Solid gradient fills for attendance status icon circles.
   ────────────────────────────────────────────────────────────── */

.bg-grad-green  { background: linear-gradient(135deg, #22c55e, #16a34a); }
.bg-grad-red    { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.bg-grad-amber  { background: linear-gradient(135deg, #f59e0b, #d97706); }
.bg-grad-blue   { background: linear-gradient(135deg, #4669FA, #3b56d4); }


/* ──────────────────────────────────────────────────────────────
   SOFT RGBA ICON BACKGROUNDS
   Semi-transparent tinted backgrounds for campaign stat icons.
   ────────────────────────────────────────────────────────────── */

.bg-soft-primary { background: rgba(70, 105, 250, 0.12); }
.bg-soft-success { background: rgba(34, 197, 94,  0.12); }
.bg-soft-slate   { background: rgba(100, 116, 139, 0.12); }
.bg-soft-warning { background: rgba(249, 158, 11,  0.12); }
.bg-soft-danger  { background: rgba(239, 68,  68,  0.12); }


/* ──────────────────────────────────────────────────────────────
   ATTENDANCE MODULE
   ────────────────────────────────────────────────────────────── */

/* Date picker input in the attendance page header */
.attendance-date-input { width: 160px; }


/* ──────────────────────────────────────────────────────────────
   AUTH MODULE
   ────────────────────────────────────────────────────────────── */

/* Google sign-in button logo icon */
.auth-google-icon { width: 25px; }


/* ──────────────────────────────────────────────────────────────
   BANK MODULE
   ────────────────────────────────────────────────────────────── */

/* Notes paragraph inside bank card (card/grid view) */
.bank-card-notes {
    display: block;
    margin-top: 15px;
    font-size: 14px;
}

/* Notes paragraph inside bank list table row */
.bank-list-notes {
    margin-top: 5px;
    font-size: 13px;
}

/* Transaction ID shown as sub-line under bank name */
.trans-id-note { margin-top: 5px; }

/* Dashboard — top clients avatar circle */
.dash-client-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .03em;
    background: #4669FA;
    border: 3px solid rgba(70,105,250,0.25);
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}
.dash-client-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(70,105,250,0.4);
}

/* Summary stat card border on bank transactions page */
.trans-summary-card { border: 1px solid #e2e8f0; }

/* Label above stat value (e.g. TOTAL CREDIT) */
.trans-stat-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 6px;
}

/* Large numeric stat value */
.trans-stat-value {
    font-size: 22px;
    font-weight: 700;
}

/* Credit (positive) value colour */
.trans-stat-credit { color: #16a34a; }

/* Debit (negative) value colour */
.trans-stat-debit  { color: #dc2626; }


/* ──────────────────────────────────────────────────────────────
   CAMPAIGN MODULE
   ────────────────────────────────────────────────────────────── */

/* AI email writer trigger button */
.ai-write-btn {
    background: linear-gradient(135deg, #6366f1, #4669FA);
    border: none;
    cursor: pointer;
}

/* AI prompt panel wrapper and body background */
.ai-prompt-panel { background: #f8f9ff; }

/* Header bar inside the AI prompt panel */
.ai-prompt-header { background: linear-gradient(135deg, #6366f1, #4669FA); }

/* Campaign delivery log — footer summary row cells */
.campaign-log-footer        { background: #0f172a; }
.campaign-log-footer-label  { color: #ffffff; background: #0f172a; }
.campaign-log-footer-sent   { color: #4ade80; background: #0f172a; }
.campaign-log-footer-failed { color: #f87171; background: #0f172a; }


/* ──────────────────────────────────────────────────────────────
   SHARED TABLE UTILITIES
   ────────────────────────────────────────────────────────────── */

/* Right-align table header or cell */
.th-right,
.td-right { text-align: right; }

/* Left-align table cell (contact/index custom table) */
.contact-th { text-align: left; padding: 10px 16px; }
.contact-td { text-align: left; padding: 12px 16px; }
.contact-th-right { text-align: right; padding: 10px 16px; }
.contact-td-right { text-align: right; padding: 12px 16px; }

/* Vertical align middle (used in table cells) */
.va-middle { vertical-align: middle; }


/* ──────────────────────────────────────────────────────────────
   CLIENT MODULE
   ────────────────────────────────────────────────────────────── */

/* Download link in import page */
.import-link { color: blue; }

/* Lowercase email / website display */
.text-lowercase { text-transform: lowercase; }

/* Audit trail note (added/updated by) */
.audit-note { font-size: 12px; }


/* ──────────────────────────────────────────────────────────────
   CURRENCY MODULE
   ────────────────────────────────────────────────────────────── */

/* Fixed-width columns in currency table */
.currency-col-num    { width: 60px; }
.currency-col-symbol { width: 100px; }
.currency-col-code   { width: 100px; }
.currency-col-primary { width: 140px; }
.currency-col-action  { width: 110px; }

/* Empty state icon in currency list */
.currency-empty-icon { font-size: 48px; }

/* Empty state icon in doc list */
.doc-empty-icon { font-size: 52px; }


/* ──────────────────────────────────────────────────────────────
   DASHBOARD — BANK CARD (dashboard/bank.blade.php)
   ────────────────────────────────────────────────────────────── */

/* Visa-style card: bank logo icon */
.bank-card-logo { width: 50px; }

/* Bank card account name / balance heading */
.bank-card-title { font-size: 25px; }

/* View Detail link floated right inside bank card */
.bank-card-detail-link { float: right; }


/* ──────────────────────────────────────────────────────────────
   DASHBOARD — HOME (dashboard/home.blade.php)
   ────────────────────────────────────────────────────────────── */

/* Subscription upgrade banner button */
.btn-upgrade {
    background: #f59e0b;
    color: #fff;
    border: none;
}

/* 44px stat icon circles (home page widgets) */
.stat-icon-44 { width: 44px; height: 44px; min-width: 44px; }

/* 42px stat icon circles (home page widgets) */
.stat-icon-42 { width: 42px; height: 42px; min-width: 42px; }

/* Profile avatar circle */
.profile-avatar-circle { overflow: hidden; }

/* Expense/AR card hero strip */
.expense-hero-card {
    background: linear-gradient(to right, #F1595C, #b91c1c);
}

/* Expense card "view all" link */
.expense-card-link { color: rgba(255,255,255,0.85); }

/* AR receivable chart spacing */
.ar-chart-wrap { margin-top: 24px; }

/* Month selector pill (dashboard AR chart) */
.month-pill {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: #4669FA;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity .15s;
}
.month-pill:hover { opacity: .8; }


/* ──────────────────────────────────────────────────────────────
   DASHBOARD — PARTIALS (latest, due, overview, quote, payment)
   ────────────────────────────────────────────────────────────── */

/* "View All" float-right link inside card headers */
.card-header-link { float: right !important; }

/* Small sub-caption below card header */
.card-header-caption { display: block; color: gray; font-size: 12px; }

/* Card section divider line */
.card-section-border { border-bottom: 1px solid #f3f3f3; }

/* Invoice / quote link colour */
.link-primary { color: #296fda; }

/* Overdue date colour (due.blade.php) */
.text-overdue { color: red; }

/* Payment note info */
.payment-info-note { font-size: 14px; }

/* Bank detail "for offline" badge */
.bank-offline-note {
    float: right;
    font-size: 14px;
    font-weight: normal;
    color: red;
}


/* ──────────────────────────────────────────────────────────────
   DASHBOARD — SETTINGS
   ────────────────────────────────────────────────────────────── */

/* Logo / favicon preview images */
.setting-logo-preview  { height: 50px; }
.setting-sig-preview   {
    height: 60px;
    border: 1px dashed #ccc;
    padding: 4px;
    background: repeating-conic-gradient(#eee 0% 25%, white 0% 50%) 0 0 / 10px 10px;
}

/* Float-right small label on logo upload */
.setting-label-hint { float: right; }

/* Profile avatar wrapper */
.profile-avatar-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e2e8f0;
}
.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Inline code inside setting text */
.code-inline {
    background: #f1f5f9;
    padding: 1px 5px;
    border-radius: 4px;
}
.code-inline-sm {
    font-size: 11px;
    background: #f1f5f9;
    padding: 1px 5px;
    border-radius: 4px;
}

/* Terms / invoice notes textarea */
.textarea-tall    { height: 400px !important; }
.textarea-medium  { height: 100px !important; }


/* ──────────────────────────────────────────────────────────────
   DASHBOARD — NO DATA STATE
   ────────────────────────────────────────────────────────────── */

/* Centred no-data image (dashboard/no.blade.php) */
.no-data-img { width: 20%; margin: auto; }


/* ──────────────────────────────────────────────────────────────
   DASHBOARD — DOCS / HOW-IT-WORKS / WHATSAPP DOCS
   Component CSS shared by how_it_works and whatsapp_docs pages.
   ────────────────────────────────────────────────────────────── */

/* ── Table of contents sidebar ── */
.manual-toc a { display:block; padding:6px 12px; border-radius:6px; font-size:13px; color:#64748b; text-decoration:none; transition:all .15s; border-left:2px solid transparent; }
.manual-toc a:hover { background:#f1f5f9; color:#4669FA; border-left-color:#4669FA; }
.manual-toc a.active { background:#eef2ff; color:#4669FA; border-left-color:#4669FA; font-weight:600; }
.manual-toc .toc-group { font-size:10px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:#94a3b8; padding:14px 12px 4px; }

/* ── Section card ── */
.section-card { background:#fff; border-radius:12px; padding:32px; margin-bottom:28px; border:1px solid #e2e8f0; box-shadow:0 1px 4px rgba(0,0,0,0.04); scroll-margin-top:80px; }
.section-header { display:flex; align-items:center; gap:14px; margin-bottom:22px; padding-bottom:18px; border-bottom:1px solid #f1f5f9; }
.section-icon { width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:22px; flex-shrink:0; }
.section-title { font-size:20px; font-weight:700; color:#0f172a; }
.section-sub { font-size:13px; color:#64748b; margin-top:2px; }

/* ── Section icon background color tokens ── */
.section-icon--indigo  { background: #eef2ff; }
.section-icon--amber   { background: #fef3c7; }
.section-icon--green   { background: #f0fdf4; }
.section-icon--purple  { background: #faf5ff; }
.section-icon--blue    { background: #eff6ff; }
.section-icon--red     { background: #fef2f2; }
.section-icon--slate   { background: #f1f5f9; }
.section-icon--teal    { background: #f0fdfa; }
.section-icon--orange  { background: #fff7ed; }
.section-icon--wa      { background: #e6faf0; }

/* ── Section icon foreground colour tokens ── */
.icon-indigo  { color: #6366f1; }
.icon-amber   { color: #d97706; }
.icon-green   { color: #16a34a; }
.icon-purple  { color: #9333ea; }
.icon-blue    { color: #1d4ed8; }
.icon-red     { color: #dc2626; }
.icon-slate   { color: #64748b; }
.icon-teal    { color: #0d9488; }
.icon-orange  { color: #ea580c; }
.icon-wa      { color: #25D366; }

/* ── Step cards and step numbers ── */
.step-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:16px; }
@media(max-width:768px){ .step-grid{grid-template-columns:1fr;} }
.step-card { background:#f1f5f9; border:1px solid #e2e8f0; border-radius:10px; padding:14px 16px; display:flex; gap:12px; align-items:flex-start; }
.step-num { width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; color:#fff; flex-shrink:0; margin-top:1px; }
.step-text h4 { font-size:13px; font-weight:600; color:#1e293b; margin-bottom:3px; }
.step-text p  { font-size:12px; color:#64748b; line-height:1.6; }

/* ── Step number background colour tokens ── */
.step-num--indigo  { background: #6366f1; }
.step-num--green   { background: #16a34a; }
.step-num--amber   { background: #d97706; }
.step-num--purple  { background: #9333ea; }
.step-num--blue    { background: #3b82f6; }
.step-num--red     { background: #dc2626; }
.step-num--slate   { background: #94a3b8; }
.step-num--teal    { background: #0d9488; }
.step-num--orange  { background: #ea580c; }
.step-num--wa      { background: #25D366; }

/* ── Tip boxes ── */
.tip-box { border-radius:8px; padding:12px 16px; margin:14px 0; font-size:12px; line-height:1.6; display:flex; gap:10px; align-items:flex-start; }
.tip-box.blue   { background:#eff6ff; border:1px solid #bfdbfe; color:#1d4ed8; }
.tip-box.green  { background:#f0fdf4; border:1px solid #bbf7d0; color:#15803d; }
.tip-box.yellow { background:#fffbeb; border:1px solid #fde68a; color:#92400e; }
.tip-box.red    { background:#fef2f2; border:1px solid #fecaca; color:#dc2626; }
.tip-box .tip-icon { font-size:16px; flex-shrink:0; margin-top:1px; }

/* ── Field reference table ── */
.field-table { width:100%; border-collapse:collapse; margin-top:12px; font-size:12px; }
.field-table th { background:#f8fafc; padding:8px 12px; text-align:left; font-weight:600; color:#475569; border-bottom:2px solid #e2e8f0; }
.field-table td { padding:8px 12px; border-bottom:1px solid #f1f5f9; color:#334155; vertical-align:top; }
.field-table td:first-child { font-weight:600; color:#1e293b; white-space:nowrap; }

/* ── Misc doc components ── */
.badge-pill { display:inline-block; padding:2px 8px; border-radius:99px; font-size:11px; font-weight:600; }
.workflow-steps { display:flex; align-items:center; gap:0; margin:16px 0; flex-wrap:wrap; }
.workflow-step  { background:#f8fafc; border:1px solid #e2e8f0; border-radius:8px; padding:8px 14px; font-size:12px; font-weight:600; color:#475569; white-space:nowrap; }
.workflow-arrow { color:#94a3b8; font-size:16px; padding:0 6px; }
.report-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:16px; }
@media(max-width:768px){ .report-grid{grid-template-columns:1fr;} }
.report-card { border:1px solid #e2e8f0; border-radius:10px; padding:14px; }
.report-card .r-icon  { width:36px; height:36px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:16px; margin-bottom:8px; }
.report-card .r-title { font-size:13px; font-weight:700; color:#1e293b; margin-bottom:4px; }
.report-card .r-desc  { font-size:11px; color:#64748b; line-height:1.5; }

/* Quick-reference dark card overrides */
.qr-card .qr-title       { font-size:20px; font-weight:700; color:#ffffff !important; }
.qr-card .qr-sub         { font-size:13px; color:rgba(255,255,255,0.7) !important; margin-top:2px; }
.qr-card .qr-group-label { font-size:10px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:rgba(255,255,255,0.5); margin-bottom:10px; }
.qr-card .qr-row  { display:flex; align-items:center; gap:10px; }
.qr-card .qr-text { font-size:13px; color:#ffffff !important; }

/* ── Hero banners ── */
.docs-hero {
    border-radius: 16px;
    margin-bottom: 32px;
    padding: 40px 48px;
}
.docs-hero--hiw { background: linear-gradient(135deg, #4669FA, #6366f1); }
.docs-hero--wa  { background: linear-gradient(135deg, #25D366, #128C7E); }

.docs-hero-icon-wrap {
    width: 64px; height: 64px; min-width: 64px;
    background: rgba(255,255,255,0.18);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #fff; flex-shrink: 0;
}
.docs-hero-title   { font-size:28px; font-weight:700; color:#fff; margin-bottom:8px; line-height:1.2; }
.docs-hero-desc    { font-size:14px; color:rgba(255,255,255,0.82); line-height:1.6; }

/* ── Search bar inside docs pages ── */
.hiw-search-icon-wrap {
    position: absolute; left: 16px; top: 50%;
    transform: translateY(-50%);
    color: #94a3b8; font-size: 18px; pointer-events: none;
}
.hiw-search-input {
    width: 100%; padding: 13px 16px 13px 46px;
    border: 2px solid #e2e8f0; border-radius: 10px;
    font-size: 14px; outline: none; font-family: inherit;
    transition: border-color .2s; background: #f8fafc;
}
.hiw-search-clear {
    position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%);
    cursor: pointer; color: #94a3b8; font-size: 18px;
}
.hiw-search-meta { margin-top: 8px; font-size: 12px; color: #64748b; padding-left: 4px; }

/* ── No-results state inside docs pages ── */
.hiw-no-results-icon  { font-size:48px; color:#cbd5e1; display:block; margin:0 auto 12px; }
.hiw-no-results-title { font-size:16px; font-weight:600; color:#475569; margin-bottom:6px; }
.hiw-no-results-desc  { font-size:13px; color:#94a3b8; }

/* ── Docs prose text ── */
.docs-text       { font-size:13px; color:#475569; margin-bottom:16px; line-height:1.7; }
.docs-subheading { font-size:13px; font-weight:600; color:#1e293b; margin:18px 0 10px; }

/* ── FAQ Page ─────────────────────────────────────────────────────────── */

/* Hero banner */
.faq-hero {
    background: linear-gradient(135deg, #4669FA 0%, #6366f1 100%);
    border-radius: 16px;
    padding: 48px 24px 40px;
    margin-bottom: 24px;
    text-align: center;
}
.faq-hero-icon-wrap {
    width: 56px; height: 56px;
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.faq-hero-icon    { font-size: 28px; color: #fff; }
.faq-hero-title   { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.faq-hero-desc    { font-size: 14px; color: rgba(255,255,255,0.7); max-width: 520px; margin: 0 auto 20px; }

/* Search */
.faq-search-wrap {
    position: relative;
    max-width: 520px;
    margin: 20px auto 0;
}
.faq-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    pointer-events: none;
}
#faq_search {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border-radius: 10px;
    border: 1.5px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, background .2s;
}
#faq_search::placeholder { color: rgba(255,255,255,0.55); }
#faq_search:focus {
    border-color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.22);
}

/* Category pills */
.cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.cat-pill {
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: #f1f5f9;
    color: #64748b;
    border: 1.5px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
    user-select: none;
}
.cat-pill:hover  { background: #e2e8f0; color: #334155; }
.cat-pill.active { background: #4669FA; color: #fff; border-color: #4669FA; }
.dark .cat-pill         { background: #1e293b; color: #94a3b8; }
.dark .cat-pill:hover   { background: #293548; color: #cbd5e1; }
.dark .cat-pill.active  { background: #4669FA; color: #fff; }

/* No results */
.no-results {
    display: none;
    text-align: center;
    padding: 40px 16px;
    color: #94a3b8;
}
.faq-no-results-icon  { font-size: 48px; display: block; margin-bottom: 12px; }
.faq-no-results-title { font-size: 15px; font-weight: 600; color: #64748b; margin-bottom: 4px; }
.faq-no-results-desc  { font-size: 13px; }

/* FAQ groups */
.faq-group { margin-bottom: 28px; }
.faq-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #64748b;
    margin-bottom: 10px;
    padding: 0 2px;
}

/* FAQ items (accordion) */
.faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: box-shadow .15s;
}
.faq-item:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.dark .faq-item { background: #1e293b; border-color: #334155; }

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    cursor: pointer;
    gap: 12px;
    user-select: none;
}
.faq-q:hover { background: #f8fafc; }
.dark .faq-q:hover { background: #243447; }

.faq-q-text {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
    line-height: 1.45;
}
.dark .faq-q-text { color: #e2e8f0; }

.faq-q-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #64748b;
    transition: transform .2s, background .15s;
}
.dark .faq-q-icon { background: #334155; color: #94a3b8; }

.faq-item.open .faq-q { background: #f8fafc; }
.dark .faq-item.open .faq-q { background: #243447; }
.faq-item.open .faq-q-icon {
    transform: rotate(45deg);
    background: #4669FA;
    color: #fff;
}

/* Answer panel */
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    font-size: 14px;
    color: #475569;
    line-height: 1.65;
}
.dark .faq-a { color: #94a3b8; }
.faq-a.show  { max-height: 1200px; }
.faq-a-body { padding: 4px 18px 18px; }
.faq-a code {
    font-size: 12px;
    background: #f1f5f9;
    border-radius: 4px;
    padding: 1px 5px;
    color: #4669FA;
}
.dark .faq-a code { background: #334155; color: #93c5fd; }

.cat-icon-size { font-size: 15px; }


/* ──────────────────────────────────────────────────────────────
   CONTACT MODULE
   ────────────────────────────────────────────────────────────── */

/* Recipient info panel in bulk-email modal */
.recipient-info-panel {
    background: #f0f4ff;
    border: 1px solid #c7d2fe;
}
.recipient-info-label { color: #3730a3; }
.recipient-count      { color: #4669FA; }
.recipient-batch-warn { color: #d97706; }

/* No-email warning panel */
.no-email-warn {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

/* Bulk email modal dialog width */
.modal-dialog-wide { max-width: 680px; }


/* ──────────────────────────────────────────────────────────────
   DOC MODULE
   ────────────────────────────────────────────────────────────── */

/* Folder icon in list view */
.doc-folder-icon { font-size: 120px; }

/* File links */
.doc-file-link   { color: #296fda; }
.doc-remove-link {
    display: block;
    margin-top: 5px;
    color: red;
}
.doc-remove-link-lg {
    display: block;
    margin-top: 15px;
    color: red;
    margin-left: 10px;
}

/* Audit trail paragraph */
.doc-audit-note { font-size: 12px; }

/* Existing files grid margin */
.doc-files-grid { margin-top: 40px; }

/* Float-right action buttons in card header */
.card-header-actions { float: right; }

/* ──────────────────────────────────────────────────────────────
   ENQUIRY MODULE — KANBAN BOARD
   ────────────────────────────────────────────────────────────── */

.kanban-board     { display:flex; gap:16px; overflow-x:auto; padding-bottom:16px; align-items:flex-start; }
.kanban-col       { flex:none; width:272px; display:flex; flex-direction:column; }
.kanban-header    { border-radius:12px 12px 0 0; padding:12px 16px; display:flex; align-items:center; justify-content:space-between; }
.kanban-body      { background:#f1f5f9; border-radius:0 0 12px 12px; padding:10px; min-height:160px; max-height:calc(100vh - 300px); overflow-y:auto; display:flex; flex-direction:column; gap:8px; }
.kanban-card      { background:#fff; border-radius:10px; padding:14px; box-shadow:0 1px 4px rgba(0,0,0,0.06); border:1px solid #f1f5f9; cursor:grab; transition:box-shadow .15s,transform .15s; user-select:none; }
.kanban-card:hover{ box-shadow:0 4px 16px rgba(0,0,0,0.10); transform:translateY(-1px); }
.kanban-card.sortable-ghost  { opacity:.4; background:#e0e7ff; }
.kanban-card.sortable-chosen { box-shadow:0 8px 24px rgba(70,105,250,0.18); transform:rotate(1.5deg) scale(1.02); cursor:grabbing; }
.kanban-empty     { text-align:center; padding:28px 12px; color:#cbd5e1; font-size:13px; border:2px dashed #e2e8f0; border-radius:8px; }
.kanban-board::-webkit-scrollbar        { height:6px; }
.kanban-board::-webkit-scrollbar-track  { background:#f1f5f9; border-radius:3px; }
.kanban-board::-webkit-scrollbar-thumb  { background:#cbd5e1; border-radius:3px; }
.kanban-body::-webkit-scrollbar         { width:4px; }
.kanban-body::-webkit-scrollbar-thumb   { background:#e2e8f0; border-radius:2px; }
.priority-dot { width:8px; height:8px; border-radius:50%; flex:none; margin-top:5px; }

/* Kanban filter bar input widths */
.kanban-filter-wide { min-width:200px; flex:1; }
.kanban-filter-md   { min-width:160px; }

/* Column count pill sizing */
.col-count { min-width:22px; height:22px; padding:0 6px; }

/* Card title text wrap */
.kanban-card-title { word-break:break-word; }

/* ──────────────────────────────────────────────────────────────
   GOAL MODULE
   ────────────────────────────────────────────────────────────── */

/* Empty-state icon in goal list */
.goal-empty-icon {
    font-size: 56px;
    color: #cbd5e1;
    display: block;
    margin: 0 auto 16px;
}


/* ── Enquiry module — lost reason modal ── */
.lost-modal-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.45);
    align-items: center; justify-content: center;
}
.lost-modal-dialog {
    background: #fff; border-radius: 16px;
    width: 420px; max-width: calc(100vw - 32px);
    padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.lost-modal-icon {
    width: 40px; height: 40px; min-width: 40px;
    border-radius: 50%; background: #fef2f2;
    display: flex; align-items: center; justify-content: center;
}
.lost-modal-title { margin: 0; font-size: 16px; font-weight: 700; color: #1e293b; }
.lost-modal-sub   { margin: 0; font-size: 13px; color: #94a3b8; }

/* ── Enquiry show — followup timeline dot gradients ── */
.timeline-dot-meeting { background: linear-gradient(135deg, #4669FA, #3b56d4); }
.timeline-dot-other   { background: linear-gradient(135deg, #64748b, #475569); }


/* ── HIW hero gradient banner (uses Tailwind rounded-2xl / mb-8) ── */
.hiw-hero {
    background: linear-gradient(135deg, #4669FA, #6366f1);
    padding: 40px 48px;
}
.hiw-hero-icon-wrap {
    width: 64px; height: 64px; min-width: 64px;
    background: rgba(255,255,255,0.18);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #fff; flex-shrink: 0;
}
.hiw-hero-title { font-size:28px; font-weight:700; color:#fff; margin-bottom:8px; line-height:1.2; }
.hiw-hero-desc  { font-size:14px; color:rgba(255,255,255,0.82); line-height:1.6; }

/* Search highlight mark (JS-injected) */
.manual-highlight { background:#fef08a; color:#713f12; border-radius:3px; padding:0 2px; }

/* ── Docs prose text and subheading ── */
.docs-text       { font-size:13px; color:#475569; margin-bottom:16px; line-height:1.7; }
.docs-subheading { font-size:13px; font-weight:600; color:#1e293b; margin:18px 0 10px; }

/* ── WhatsApp Docs: permission rows ── */
.perm-row  { display:flex; align-items:flex-start; gap:12px; padding:10px 14px; border-radius:8px; border:1px solid #e2e8f0; background:#f8fafc; margin-bottom:8px; }
.perm-code { font-family:monospace; font-size:11px; color:#25D366; background:#e6faf0; padding:3px 8px; border-radius:6px; white-space:nowrap; flex-shrink:0; margin-top:1px; }
.perm-desc { font-size:12px; color:#64748b; line-height:1.5; }

/* ── WhatsApp Docs: troubleshooting issue blocks ── */
.issue-block { border-radius:8px; overflow:hidden; margin-bottom:12px; border:1px solid #e2e8f0; }
.issue-head  { padding:10px 14px; font-size:12px; font-weight:600; display:flex; align-items:center; gap:8px; }
.issue-head--red    { background:#fef2f2; color:#dc2626; }
.issue-head--yellow { background:#fffbeb; color:#92400e; }
.issue-head--blue   { background:#eff6ff; color:#1d4ed8; }
.issue-body { padding:12px 14px; background:#fff; font-size:12px; color:#475569; line-height:1.6; }
.issue-body strong  { color:#1e293b; }

/* ── Invoice module ── */
.paid          { display:block; margin-top:10px; color:green }
.inv-rec-label { display:block; margin-top:5px; color:red }
.inv-item-grid { display:grid; grid-template-columns:3fr 1.5fr 0.8fr 1.5fr 1.5fr 40px; gap:10px; margin-bottom:16px; align-items:end }
.inv-link-right { float:right; color:#296fda }
.inv-submit-btn { float:right; margin-right:20px }
.inv-ai-send-btn { width:10%; margin-left:90% }
.inv-rec-hint   { color:red; float:right }

/* ── Meeting module ── */
.meeting-avatar { width:26px; height:26px; min-width:26px; background:#4669FA; }

/* ── Purchase Order module ── */
.po-billed-label { display:block; margin-top:5px; color:green }

/* ── Quote module ── */
.toggle-sm           { width:2.5rem; height:1.25rem; cursor:pointer }
.quote-tl-heading    { font-size:15px; font-weight:600; margin-bottom:20px; display:flex; align-items:center; gap:8px }
.quote-tl-icon       { color:#4361ee; font-size:20px }
.quote-tl-row        { display:flex; align-items:flex-start; gap:12px; margin-bottom:16px }
.quote-tl-card       { flex:1; background:#f8fafc; border:1px solid #e2e8f0; border-radius:8px; padding:10px 14px }
.quote-tl-text       { margin:0; font-size:13px; font-weight:500; color:#1e293b }
.quote-tl-meta       { margin:4px 0 0; font-size:11px; color:#94a3b8 }
.quote-tl-empty      { text-align:center; padding:36px 0; color:#94a3b8 }
.quote-tl-empty-icon { font-size:36px; opacity:0.4; display:block; margin:0 auto 8px }
.quote-tl-empty-text { margin:0; font-size:13px }
.quote-tl-empty-hint { margin:4px 0 0; font-size:11px }

/* ── Report module ── */
.rpt-pdf-btn           { background:#F1595C; color:#fff; border:none }
.stmt-summary-card     { border-radius:12px; padding:18px 22px }
.ledger-credit td      { background:#f0fdf4 }
.ledger-debit td       { background:#fff5f5 }
.ledger-opening td, .ledger-closing td { font-weight:700 }
.ledger-opening td     { background:#eff6ff; color:#1d4ed8; font-style:italic }
.ledger-closing td     { background:#0f172a !important; color:#fff !important }
.stmt-card-label       { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:#94a3b8; margin-bottom:6px }
.stmt-card-val--blue   { font-size:22px; font-weight:700; color:#1d4ed8 }
.stmt-card-val--green  { font-size:22px; font-weight:700; color:#16a34a }
.stmt-card-val--red    { font-size:22px; font-weight:700; color:#dc2626 }
.stmt-card-note        { font-size:11px; color:#94a3b8; margin-top:3px }
.stmt-dot-green        { width:6px; height:6px; border-radius:50%; background:#16a34a; flex-shrink:0; display:inline-block }
.stmt-dot-red          { width:6px; height:6px; border-radius:50%; background:#dc2626; flex-shrink:0; display:inline-block }
.rpt-td-dark           { background:#0f172a; color:white }
.rpt-td-dark-green     { background:#0f172a; color:#4ade80 }
.rpt-td-dark-red       { background:#0f172a; color:#f87171 }
.rpt-td-dark-empty     { background:#0f172a }
.rpt-donut-wrap        { width:140px; height:140px }
.rpt-client-avatar     { width:64px; height:64px; min-width:64px }
.rpt-td-dark-amber     { background:#0f172a; color:#fbbf24 }

/* ── Role module ── */
.role-empty-body      { padding:80px 40px; text-align:center }
.role-empty-icon-wrap { display:flex; justify-content:center; margin-bottom:20px }
.role-empty-icon      { font-size:56px; color:#e2e8f0 }
.role-empty-text      { max-width:420px; margin-left:auto; margin-right:auto }

/* ── Social module ── */
.social-msg-grid        { height:calc(100vh - 200px); min-height:500px }
.fb-msg-avatar          { background:#1877F2; min-width:40px }
.fb-msg-avatar-sm       { background:#1877F2; min-width:36px }
.ig-gradient-avatar-lg  { background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); opacity:0.85 }
.ig-msg-avatar          { background:linear-gradient(45deg,#f09433,#e6683c,#dc2743); min-width:40px }
.ig-msg-avatar-sm       { background:linear-gradient(45deg,#f09433,#e6683c,#dc2743); min-width:36px }
.pin-preview-box        { min-height:200px; background:#fce4e4 }

/* ── Sub module ── */
.badge-soft-danger   { background:#fee2e2; color:#dc2626 }
.badge-soft-warning  { background:#fef3c7; color:#92400e }
.badge-soft-success  { background:#dcfce7; color:#16a34a }
.sub-cancel-btn      { background:#fee2e2; color:#dc2626; border:1px solid #fca5a5 }

/* ── Support module ── */
.support-avatar      { background:#4669FA; min-width:40px }
.badge-soft-primary  { background:#eef2ff; color:#4669FA }
.badge-soft-amber    { background:#fef3c7; color:#d97706 }

/* ── Team module ── */
.act-log-icon-blue  { min-width:48px; min-height:48px; background:linear-gradient(135deg,#4669FA,#3451d1) }
.act-log-icon-green { min-width:48px; min-height:48px; background:linear-gradient(135deg,#22c55e,#16a34a) }
.act-log-icon-amber { min-width:48px; min-height:48px; background:linear-gradient(135deg,#f59e0b,#d97706) }

/* ── Todo module ── */
.bg-grad-slate { background:linear-gradient(135deg,#64748b,#475569) }

/* ── User module ── */
.user-submit-btn { float:right; margin-bottom:20px }

/* ── Global icon & button alignment ── */
iconify-icon { display: inline-flex; align-items: center; vertical-align: middle; }
.btn { align-items: center; }

/* ── Acois AI Chat ── */
#acois-btn {
    position: fixed; bottom: 28px; right: 28px; z-index: 9999;
    width: 56px; height: 56px; border-radius: 50%;
    background: #4669FA;
    border: none; cursor: pointer; box-shadow: 0 4px 20px rgba(70,105,250,0.45);
    display: flex; align-items: center; justify-content: center;
    transition: transform .2s, box-shadow .2s;
}
#acois-btn:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(70,105,250,0.6); }
#acois-btn .chat-icon { display: block; }
#acois-btn .close-icon { display: none; }
#acois-btn.open .chat-icon { display: none; }
#acois-btn.open .close-icon { display: block; }

#acois-window {
    position: fixed; bottom: 96px; right: 28px; z-index: 9998;
    width: 360px; height: 620px;
    background: #fff; border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    display: flex; flex-direction: column; overflow: hidden;
    transform: scale(0.85) translateY(20px); transform-origin: bottom right;
    opacity: 0; pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}
#acois-window.visible {
    opacity: 1; pointer-events: all;
    transform: scale(1) translateY(0);
}

#acois-header {
    background: #000000;
    padding: 14px 16px; display: flex; align-items: center; gap: 10px;
}
#acois-header .avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
#acois-header .info .name { font-size: 14px; font-weight: 700; color: #fff; }
#acois-header .info .status { font-size: 11px; color: rgba(255,255,255,0.75); display: flex; align-items: center; gap: 4px; }
#acois-header .info .status::before { content:''; width:7px; height:7px; border-radius:50%; background:#4ade80; display:inline-block; }

#acois-messages {
    flex: 1; overflow-y: auto; padding: 14px 14px 6px;
    background: #f8fafc; display: flex; flex-direction: column; gap: 10px;
    scroll-behavior: smooth;
}
#acois-messages::-webkit-scrollbar { width: 4px; }
#acois-messages::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }

.acois-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 88%; }
.acois-msg.bot { align-self: flex-start; }
.acois-msg.user { align-self: flex-end; flex-direction: row-reverse; }

.acois-msg .bubble {
    padding: 9px 13px; border-radius: 14px; font-size: 13px; line-height: 1.5;
    white-space: pre-wrap; word-break: break-word;
}
.acois-msg.bot .bubble {
    background: #fff; color: #1e293b; border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.acois-msg.user .bubble {
    background: #4669FA;
    color: #fff; border-bottom-right-radius: 4px;
}
.acois-msg .avatar-sm {
    width: 28px; height: 28px; border-radius: 50%;
    background: #4669FA;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; flex-shrink: 0; color: #fff;
}

.acois-typing { display: flex; gap: 4px; align-items: center; padding: 10px 14px; }
.acois-typing span {
    width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1;
    animation: acois-bounce 1s infinite;
}
.acois-typing span:nth-child(2) { animation-delay: .15s; }
.acois-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes acois-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

#acois-footer {
    padding: 10px 12px; background: #fff; border-top: 1px solid #f1f5f9;
    display: flex; gap: 8px; align-items: flex-end;
}
#acois-input {
    flex: 1; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 9px 12px; font-size: 13px; outline: none; resize: none;
    max-height: 90px; line-height: 1.4; font-family: inherit;
    transition: border-color .2s;
}
#acois-input:focus { border-color: #4669FA; }
#acois-send {
    width: 38px; height: 38px; border-radius: 10px; border: none; cursor: pointer;
    background: #4669FA;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: opacity .2s;
}
#acois-send:hover { opacity: .85; }
#acois-send svg { width: 17px; height: 17px; }
