/* Exclusive CRM: visual layer and commercial cockpit */
:root {
    --ica-bg: #f4f7fb;
    --ica-card: #ffffff;
    --ica-text: #111827;
    --ica-muted: #64748b;
    --ica-border: #dbe4ef;
    --ica-primary: #2563eb;
    --ica-primary-dark: #1d4ed8;
    --ica-green: #16a34a;
    --ica-cyan: #0891b2;
    --ica-amber: #f59e0b;
    --ica-violet: #7c3aed;
    --ica-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

body:not(.authentication) {
    background: var(--ica-bg);
    color: var(--ica-text);
}

#wrapper,
.content {
    background: var(--ica-bg);
}

#side-menu,
.sidebar {
    background: #f8fafc !important;
    border-right: 1px solid var(--ica-border);
}

.sidebar-user-profile {
    margin-top: 78px !important;
    margin-left: 12px !important;
    margin-right: 12px !important;
}

.sidebar-user-profile > a.profile {
    display: block !important;
    padding: 11px 12px !important;
    border: 1px solid rgba(37, 99, 235, 0.18) !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: none !important;
}

.sidebar-user-profile > a.profile:hover,
.sidebar-user-profile > a.profile:focus,
.sidebar-user-profile.open > a.profile {
    background: #eff6ff !important;
    border-color: rgba(37, 99, 235, 0.35) !important;
    color: #0f172a !important;
}

.sidebar-user-profile .staff-profile-image-small {
    width: 34px;
    height: 34px;
    border: 2px solid rgba(37, 99, 235, 0.18);
    border-radius: 50%;
    background: #e0f2fe;
}

.sidebar-user-profile .profile span span:first-child {
    color: #0f172a !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.sidebar-user-profile .profile span span:last-child {
    color: #475569 !important;
    font-size: 12px;
    line-height: 1.25;
}

.sidebar-user-profile .dropdown-menu {
    margin-top: 8px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

#side-menu li > a {
    margin: 2px 10px;
    border-radius: 8px;
    color: #334155 !important;
    font-weight: 600;
}

#side-menu li > a:hover,
#side-menu li.active > a,
#side-menu li.mm-active > a {
    background: #e0edff !important;
    color: #0f172a !important;
}

#side-menu li > a i {
    color: #2563eb !important;
}

#side-menu li > a .menu-text,
#side-menu li > a span,
#side-menu li > a .fa,
#side-menu li > a .fa-solid,
#side-menu li > a .fa-regular,
#side-menu li > a .fa-brands {
    color: inherit !important;
}

#side-menu li .nav-second-level,
#side-menu li .nav-third-level {
    background: #eef4fb !important;
}

#side-menu li .nav-second-level li > a,
#side-menu li .nav-third-level li > a {
    color: #475569 !important;
}

.sidebar .close-customizer,
.sidebar .close-sidebar,
.sidebar .fa-times,
.sidebar .fa-xmark,
#side-menu .arrow,
#side-menu .menu-arrow {
    color: #64748b !important;
}

.navbar-default,
#header {
    border-bottom: 1px solid var(--ica-border);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.panel_s,
.panel_s > .panel-body,
.widget,
.panel-body {
    border-radius: 10px;
}

.panel_s > .panel-body,
.widget .panel_s > .panel-body {
    border: 1px solid rgba(219, 228, 239, 0.9);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.btn {
    border-radius: 8px;
    font-weight: 700;
}

.btn-primary {
    background: var(--ica-primary);
    border-color: var(--ica-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--ica-primary-dark);
    border-color: var(--ica-primary-dark);
}

.table,
.table.dataTable {
    border-radius: 8px;
    overflow: hidden;
}

.table > thead > tr > th,
.table.dataTable > thead > tr > th {
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0;
}

.form-control {
    border-color: #cbd5e1;
    border-radius: 8px;
}

.form-control:focus {
    border-color: var(--ica-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.kan-ban-body .kan-ban-tab,
.proposals-pipeline .kan-ban-tab {
    padding-bottom: 12px;
}

.kan-ban-col {
    width: 342px;
    padding: 0 7px;
    border-radius: 12px;
    background: transparent;
}

.kan-ban-col-wrapper > .panel_s,
.kan-ban-col-wrapper > .border-right.panel_s {
    overflow: visible;
    border: 1px solid var(--ica-border);
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.kan-ban-col-wrapper,
.kan-ban-col .panel_s,
.kan-ban-col .panel-heading {
    position: relative;
}

.kan-ban-col .panel-heading {
    z-index: 5;
}

.kan-ban-col .popover {
    z-index: 1060;
    min-width: 220px;
}

.ica-kanban-popover {
    z-index: 2050;
    min-width: 240px;
}

.ica-kanban-popover .popover-content {
    padding: 14px;
}

.kan-ban-col .panel-heading {
    min-height: 64px;
    padding: 11px 14px 10px;
    border: 0;
    border-radius: 12px 12px 0 0;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0;
    color: #ffffff;
    text-shadow: 0 1px 1px rgba(15, 23, 42, 0.18);
    white-space: normal;
}

.kan-ban-col .panel-heading .heading,
.kan-ban-col .panel-heading a,
.kan-ban-col .panel-heading small,
.kan-ban-col .panel-heading span {
    letter-spacing: 0;
}

.kan-ban-col .panel-heading .heading {
    display: inline-block;
    max-width: calc(100% - 34px);
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    vertical-align: middle;
    white-space: normal;
    word-break: break-word;
}

.ica-kanban-heading-main {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    width: calc(100% - 34px);
    padding-right: 4px;
}

.ica-kanban-heading-main i {
    margin-top: 2px;
    flex: 0 0 auto;
}

.ica-kanban-heading-meta {
    display: block !important;
    width: calc(100% - 34px);
    padding-left: 21px;
}

.kan-ban-col .panel-heading .heading + * {
    font-size: 12px;
}

.kan-ban-col .panel-heading small,
.kan-ban-col .panel-heading .tw-text-sm {
    display: inline-block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 12px;
    font-weight: 800;
}

.kan-ban-col .panel-heading .fa-reorder,
.kan-ban-col .panel-heading .fa-bars,
.kan-ban-col .panel-heading .fa-grip-lines,
.kan-ban-col .panel-heading .fa {
    color: rgba(255, 255, 255, 0.95);
}

#proposals-pipeline .kan-ban-col .panel-heading,
#estimate-pipeline .kan-ban-col .panel-heading {
    min-height: 58px;
    border-bottom: 0;
    color: #ffffff !important;
    text-shadow: none;
}

#proposals-pipeline .kan-ban-col .panel-heading,
#proposals-pipeline .kan-ban-col .panel-heading a,
#proposals-pipeline .kan-ban-col .panel-heading span,
#estimate-pipeline .kan-ban-col .panel-heading,
#estimate-pipeline .kan-ban-col .panel-heading a,
#estimate-pipeline .kan-ban-col .panel-heading span {
    color: #ffffff !important;
}

#proposals-pipeline .kan-ban-col .panel-heading .tw-text-sm,
#proposals-pipeline .kan-ban-col .panel-heading small,
#estimate-pipeline .kan-ban-col .panel-heading .tw-text-sm,
#estimate-pipeline .kan-ban-col .panel-heading small {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 700;
}

#proposals-pipeline .kan-ban-col .panel-heading .fa,
#estimate-pipeline .kan-ban-col .panel-heading .fa {
    color: rgba(255, 255, 255, 0.95) !important;
}

#proposals-pipeline .panel-primary > .panel-heading,
#estimate-pipeline .panel-primary > .panel-heading {
    border-color: #2563eb;
    background: #2563eb !important;
}

#proposals-pipeline .panel-info > .panel-heading,
#estimate-pipeline .panel-info > .panel-heading {
    border-color: #0891b2;
    background: #0891b2 !important;
}

#proposals-pipeline .panel-success > .panel-heading,
#estimate-pipeline .panel-success > .panel-heading {
    border-color: #16a34a;
    background: #16a34a !important;
}

#proposals-pipeline .panel-warning > .panel-heading,
#estimate-pipeline .panel-warning > .panel-heading {
    border-color: #f59e0b;
    background: #f59e0b !important;
}

#proposals-pipeline .panel-danger > .panel-heading,
#estimate-pipeline .panel-danger > .panel-heading {
    border-color: #ef4444;
    background: #ef4444 !important;
}

#proposals-pipeline .panel-default > .panel-heading,
#estimate-pipeline .panel-default > .panel-heading {
    border-color: #cbd5e1;
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

#proposals-pipeline .panel-default > .panel-heading,
#proposals-pipeline .panel-default > .panel-heading a,
#proposals-pipeline .panel-default > .panel-heading span,
#estimate-pipeline .panel-default > .panel-heading,
#estimate-pipeline .panel-default > .panel-heading a,
#estimate-pipeline .panel-default > .panel-heading span {
    color: #0f172a !important;
}

#proposals-pipeline .panel-default > .panel-heading .tw-text-sm,
#proposals-pipeline .panel-default > .panel-heading small,
#estimate-pipeline .panel-default > .panel-heading .tw-text-sm,
#estimate-pipeline .panel-default > .panel-heading small,
#proposals-pipeline .panel-default > .panel-heading .fa,
#estimate-pipeline .panel-default > .panel-heading .fa {
    color: #475569 !important;
}

.kan-ban-col .kanban-stage-color-picker {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 8;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
    text-align: center;
    line-height: 28px;
    float: none !important;
    margin: 0;
}

.kan-ban-col .kanban-stage-color-picker:hover,
.kan-ban-col .kanban-stage-color-picker:focus {
    background: rgba(255, 255, 255, 0.28);
}

.kan-ban-col .kanban-stage-color-picker i {
    line-height: 28px;
}

.kan-ban-content-wrapper {
    padding: 10px;
    border-radius: 0 0 12px 12px;
    background: #f8fafc;
    max-height: none !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

.kan-ban-content {
    min-height: calc(100vh - 330px) !important;
    border: 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    overflow: visible !important;
}

.kan-ban-content > ul {
    min-height: calc(100vh - 360px) !important;
    padding: 0;
    overflow: visible !important;
}

.kan-ban-content > ul > li:not(.kanban-empty):not(.kanban-load-more) {
    margin-bottom: 10px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.kan-ban-content > ul > li:not(.kanban-empty):not(.kanban-load-more):hover {
    transform: translateY(-1px);
    border-color: #bfdbfe;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.11);
}

.kan-ban-content .panel-body,
.lead-kan-ban .lead-body {
    padding: 10px 12px;
    border-radius: 10px;
    background: #ffffff;
}

.lead-kan-ban.current-user-lead {
    border-color: #93c5fd !important;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.14) !important;
}

.lead-kan-ban.current-user-lead .lead-body {
    border-left: 4px solid var(--ica-primary);
}

.ica-lead-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.ica-lead-card-title {
    min-width: 0;
}

.ica-lead-card-title a {
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.ica-lead-card-title a span {
    margin-right: 4px;
    color: #64748b;
    font-size: 12.5px;
    font-weight: 800;
}

.ica-lead-card-title small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ica-lead-card-owner {
    flex: 0 0 auto;
}

.ica-lead-card-owner > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #64748b;
}

.ica-lead-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 7px;
}

.ica-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 22px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.2;
}

.ica-chip.is-source {
    background: #e0f2fe;
    color: #0369a1;
}

.ica-chip.is-warm {
    background: #fef3c7;
    color: #92400e;
}

.ica-chip.is-stale {
    background: #fee2e2;
    color: #b91c1c;
}

.ica-priority-chip {
    border: 1px solid transparent;
}

.ica-priority-chip.is-hot {
    background: #fee2e2;
    border-color: #fecaca;
    color: #b91c1c;
}

.ica-priority-chip.is-warm-lead {
    background: #ffedd5;
    border-color: #fed7aa;
    color: #c2410c;
}

.ica-priority-chip.is-cold {
    background: #e0f2fe;
    border-color: #bae6fd;
    color: #0369a1;
}

.ica-priority-chip.is-paused {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

.ica-next-action-chip {
    border: 1px solid transparent;
}

.ica-next-action-chip.is-planned-action {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #15803d;
}

.ica-next-action-chip.is-late-action {
    background: #fee2e2;
    border-color: #fecaca;
    color: #b91c1c;
}

.ica-next-action-chip.is-missing-action {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.lead-kan-ban.is-late-action {
    border-color: #fecaca !important;
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.12) !important;
}

.lead-kan-ban.is-missing-action {
    border-color: #fde68a !important;
}

.ica-lead-card-actions,
.ica-lead-card-quick-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.ica-lead-card-actions a,
.ica-lead-card-quick-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid #dbe4ef;
    border-radius: 7px;
    background: #ffffff;
    color: #2563eb;
    font-size: 12px;
    text-decoration: none;
}

.ica-lead-card-actions a:hover,
.ica-lead-card-actions a:focus,
.ica-lead-card-quick-actions a:hover,
.ica-lead-card-quick-actions a:focus {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.ica-lead-card-quick-actions {
    padding-top: 6px;
}

.ica-mobile-stage-actions {
    display: none;
}

.ica-lead-card-value {
    padding: 4px 6px;
    border-radius: 7px;
    background: #ecfdf5;
    color: #047857;
    font-size: 11px;
    font-weight: 900;
}

.ica-lead-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.ica-lead-card-contact {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.ica-lead-card-contact a,
.ica-lead-card-contact span {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.ica-lead-card-contact a {
    color: #2563eb;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.ica-lead-card-contact i {
    width: 12px;
    color: #94a3b8;
    text-align: center;
}

.ica-lead-card-count {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 26px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.ica-lead-summary {
    display: grid;
    grid-template-columns: minmax(180px, 1.1fr) minmax(280px, 2fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #f8fafc;
}

.ica-lead-summary-main {
    min-width: 0;
}

.ica-lead-summary-kicker,
.ica-lead-summary-grid span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ica-lead-summary-main strong {
    display: block;
    margin-top: 3px;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ica-lead-summary-main small {
    display: block;
    margin-top: 3px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.ica-lead-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: 8px;
}

.ica-lead-summary-grid > div {
    min-height: 54px;
    padding: 9px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.ica-lead-summary-grid strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ica-lead-summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: flex-end;
}

.ica-lead-summary-actions .btn {
    border-radius: 8px;
    font-weight: 800;
}

.ica-next-action-box {
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #eff6ff;
}

.ica-next-action-box.is-late {
    border-color: #fecaca;
    background: #fef2f2;
}

.ica-next-action-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.ica-next-action-head span {
    display: block;
    color: #2563eb;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.ica-next-action-box.is-late .ica-next-action-head span {
    color: #dc2626;
}

.ica-next-action-head strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
}

.ica-next-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.ica-next-action-box .form-group {
    margin-bottom: 10px;
}

.ica-agenda-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #f8fafc;
}

.ica-agenda-header h3 {
    margin: 2px 0 4px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
}

.ica-agenda-header p {
    margin: 0;
    color: #64748b;
    font-weight: 700;
}

.ica-agenda-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.ica-agenda-filters {
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #ffffff;
}

.ica-agenda-filter-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr 0.8fr;
    gap: 10px;
    align-items: end;
}

.ica-agenda-filters .form-group {
    margin-bottom: 0;
}

.ica-agenda-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.ica-agenda-metrics > div {
    padding: 14px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #ffffff;
}

.ica-agenda-metrics span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.ica-agenda-metrics strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 900;
}

.ica-agenda-metrics .is-late {
    border-color: #fecaca;
    background: #fef2f2;
}

.ica-agenda-metrics .is-today {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.ica-agenda-metrics .is-upcoming {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.ica-agenda-metrics .is-missing {
    border-color: #fde68a;
    background: #fffbeb;
}

.ica-agenda-panel {
    margin-bottom: 16px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
}

.ica-agenda-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.ica-agenda-panel-head h4 {
    margin: 2px 0 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
}

.ica-agenda-list {
    padding: 10px;
}

.ica-agenda-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.ica-agenda-item + .ica-agenda-item {
    margin-top: 8px;
}

.ica-agenda-item.is-late {
    border-color: #fecaca;
}

.ica-agenda-item.is-missing {
    border-color: #fde68a;
}

.ica-agenda-item strong,
.ica-agenda-item small,
.ica-agenda-item em {
    display: block;
}

.ica-agenda-item strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.ica-agenda-item small {
    margin-top: 2px;
    color: #475569;
    font-weight: 700;
}

.ica-agenda-item em {
    margin-top: 4px;
    color: #64748b;
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.ica-agenda-item p {
    margin: 7px 0 0;
    color: #334155;
    overflow-wrap: anywhere;
}

.ica-agenda-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ica-agenda-empty {
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    text-align: center;
    font-weight: 800;
}

.lead-name a,
.pipeline-heading a {
    color: #0f172a;
    font-weight: 800;
}

.lead-name a:hover,
.pipeline-heading a:hover {
    color: var(--ica-primary);
}

.kanban-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 10px;
}

.kanban-tags .tag {
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-weight: 700;
}

.kan-ban-expand-top {
    width: 26px;
    height: 26px;
    margin-top: 0;
    border-radius: 7px;
    background: #f1f5f9;
    text-align: center;
    line-height: 26px;
}

.kanban-load-more .btn {
    border-radius: 9px;
    background: #eef4fb;
    color: #334155;
}

.kanban-empty {
    margin: 10px 0 0 !important;
    padding: 24px 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    color: var(--ica-muted);
    background: #ffffff;
}

.kanban-empty h4 {
    margin: 0;
    color: var(--ica-muted);
    font-size: 14px;
    font-weight: 700;
}

.ica-cockpit {
    margin-bottom: 22px;
}

.ica-cockpit a,
.ica-cockpit a:hover,
.ica-cockpit a:focus {
    text-decoration: none;
}

.ica-cockpit-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #102033 0%, #123d55 48%, #1f6f5c 100%);
    border-radius: 12px;
    color: #ffffff;
    box-shadow: var(--ica-shadow);
}

.ica-cockpit-hero h2 {
    margin: 4px 0 8px;
    color: #ffffff;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 0;
}

.ica-cockpit-hero p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.ica-kicker {
    display: block;
    color: #60a5fa;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ica-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.ica-actions .btn-default {
    color: #0f172a;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.92);
}

.ica-metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.ica-metric-card {
    display: grid;
    gap: 6px;
    min-height: 122px;
    padding: 16px;
    background: var(--ica-card);
    border: 1px solid var(--ica-border);
    border-radius: 10px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
    color: var(--ica-text);
}

.ica-metric-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--ica-shadow);
}

.ica-metric-card strong {
    font-size: 28px;
    line-height: 1;
}

.ica-metric-card small,
.ica-metric-label {
    color: var(--ica-muted);
}

.ica-metric-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #ffffff;
}

.ica-blue { background: var(--ica-primary); }
.ica-green { background: var(--ica-green); }
.ica-cyan { background: var(--ica-cyan); }
.ica-amber { background: var(--ica-amber); }
.ica-violet { background: var(--ica-violet); }

.ica-row {
    margin-bottom: 16px;
}

.ica-panel {
    height: 100%;
    padding: 18px;
    background: var(--ica-card);
    border: 1px solid var(--ica-border);
    border-radius: 10px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.ica-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.ica-panel-heading h3 {
    margin: 3px 0 0;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0;
}

.ica-panel-heading > a {
    color: var(--ica-primary);
    font-weight: 700;
    white-space: nowrap;
}

.ica-pipeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 10px;
}

.ica-stage {
    position: relative;
    display: grid;
    gap: 8px;
    min-height: 96px;
    padding: 14px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: var(--ica-text);
}

.ica-stage-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.ica-stage-name {
    color: var(--ica-muted);
    font-weight: 700;
}

.ica-stage strong {
    align-self: end;
    font-size: 24px;
}

.ica-list {
    display: grid;
    gap: 8px;
}

.ica-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    color: var(--ica-text);
}

.ica-list-item small,
.ica-list-item em {
    display: block;
    color: var(--ica-muted);
    font-size: 12px;
    font-style: normal;
}

.ica-empty {
    padding: 18px;
    color: var(--ica-muted);
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
}

.ica-actions-panel {
    margin-bottom: 12px;
}

.ica-workflow {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 10px;
}

.ica-workflow a {
    display: flex;
    min-height: 72px;
    align-items: center;
    gap: 12px;
    padding: 14px;
    color: var(--ica-text);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    font-weight: 800;
}

.ica-workflow i {
    color: var(--ica-primary);
    font-size: 18px;
}

.ica-lead-cnpj-lookup {
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #eff6ff;
}

.ica-lead-cnpj-responsible {
    padding: 12px;
    margin-bottom: 14px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #f8fafc;
}

.ica-lead-cnpj-lookup label,
.ica-lead-cnpj-responsible label {
    color: #1e3a8a;
    font-weight: 800;
}

.ica-cnpj-feedback {
    min-height: 18px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
}

.ica-convert-document-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
    margin-bottom: 14px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #eff6ff;
}

.ica-convert-document-box span {
    display: block;
    color: #1e40af;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ica-convert-document-box strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ica-convert-cnpj-feedback {
    min-height: 18px;
    margin-top: -8px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
}

.lead-modal,
.lead-modal .modal-content,
.lead-modal .modal-body,
.lead-modal #leadViewWrapper,
.lead-modal #lead-latest-activity,
.lead-modal .activity-feed,
.lead-modal .feed-item,
.lead-modal .feed-item .text {
    max-width: 100%;
}

.lead-modal #lead-latest-activity,
.lead-modal .activity-feed .feed-item .text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.lead-modal #lead-latest-activity {
    max-height: 170px;
    overflow: auto;
    padding-right: 10px;
}

.lead-modal .activity-feed .feed-item .text {
    overflow-x: hidden;
}

.ica-timeline {
    position: relative;
    padding: 4px 0 8px 0;
}

.ica-timeline-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #f8fafc;
}

.ica-timeline-head h4 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
}

.ica-timeline-head p {
    margin: 3px 0 0 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.ica-timeline-empty {
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    color: #64748b;
    text-align: center;
    font-weight: 800;
}

.ica-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.ica-timeline-item:before {
    content: "";
    position: absolute;
    left: 16px;
    top: 34px;
    bottom: -12px;
    width: 2px;
    background: #e2e8f0;
}

.ica-timeline-item:last-child:before {
    display: none;
}

.ica-timeline-icon {
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
}

.ica-timeline-card {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.ica-timeline-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.ica-timeline-card-head strong,
.ica-timeline-card-head a {
    color: #0f172a;
    font-size: 13.5px;
    font-weight: 900;
    line-height: 1.25;
}

.ica-timeline-card-head span {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.ica-timeline-body {
    margin-top: 8px;
    color: #334155;
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
}

.ica-timeline-item.is-bomchat .ica-timeline-icon {
    background: #dcfce7;
    color: #16a34a;
}

.ica-timeline-item.is-note .ica-timeline-icon {
    background: #fef3c7;
    color: #d97706;
}

.ica-timeline-item.is-task .ica-timeline-icon {
    background: #eef2ff;
    color: #4f46e5;
}

.ica-timeline-item.is-proposal .ica-timeline-icon {
    background: #ede9fe;
    color: #7c3aed;
}

.ica-timeline-item.is-serasa .ica-timeline-icon {
    background: #fce7f3;
    color: #be185d;
}

.ica-timeline-item.is-outcome .ica-timeline-icon {
    background: #dcfce7;
    color: #15803d;
}

.ica-timeline-item.is-next-action .ica-timeline-icon {
    background: #dbeafe;
    color: #2563eb;
}

.ica-timeline-item.is-file .ica-timeline-icon {
    background: #f1f5f9;
    color: #475569;
}

@media (max-width: 1199px) {
    .ica-lead-summary {
        grid-template-columns: 1fr;
    }

    .ica-lead-summary-actions {
        justify-content: flex-start;
    }

    .ica-metric-grid {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }

    .ica-workflow {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }
}

@media (max-width: 767px) {
    body.kan-ban-body {
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.kan-ban-body .kan-ban-tab {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        padding-bottom: 18px;
    }

    body.kan-ban-body .kan-ban-content-wrapper {
        max-height: calc(100vh - 295px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    body.kan-ban-body .kan-ban-content,
    body.kan-ban-body .kan-ban-content > ul {
        min-height: 360px !important;
        overflow: visible !important;
    }

    body.kan-ban-body .lead-kan-ban,
    body.kan-ban-body .lead-body {
        touch-action: pan-y;
    }

    .ica-mobile-stage-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #e2e8f0;
    }

    .ica-mobile-stage-actions .btn {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 11.5px;
        font-weight: 900;
    }

    .ica-mobile-stage-actions .btn:only-child {
        grid-column: 1 / -1;
    }

    .ica-lead-summary-grid {
        grid-template-columns: 1fr;
    }

    .ica-next-action-head {
        display: block;
    }

    .ica-next-action-head .btn {
        margin-top: 10px;
    }

    .ica-next-action-grid {
        grid-template-columns: 1fr;
    }

    .ica-agenda-header {
        display: block;
    }

    .ica-agenda-header .btn-group {
        margin-top: 12px;
        width: 100%;
    }

    .ica-agenda-header .btn-group .btn {
        width: 50%;
    }

    .ica-agenda-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ica-agenda-filter-grid {
        grid-template-columns: 1fr;
    }

    .ica-agenda-filter-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .ica-agenda-item {
        grid-template-columns: 1fr;
    }

    .ica-agenda-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .ica-convert-document-box {
        grid-template-columns: 1fr;
    }

    .ica-cockpit-hero,
    .ica-panel-heading,
    .ica-list-item {
        display: block;
    }

    .ica-actions {
        justify-content: flex-start;
        margin-top: 16px;
    }

    .ica-metric-grid,
    .ica-workflow {
        grid-template-columns: 1fr;
    }
}
