﻿.communication-platform-hero {
    border-radius: 24px;
    background: radial-gradient(circle at top left, rgba(37, 183, 177, 0.20), transparent 32%), linear-gradient(135deg, #0b3c5d 0%, #12264b 52%, #17203a 100%);
    color: white;
    overflow: hidden;
}

.communication-platform-hero-kicker {
    color: #7ee0da;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.communication-platform-hero-title {
    max-width: 820px;
    font-weight: 800;
    line-height: 1.1;
}

.communication-platform-hero-subtitle {
    max-width: 900px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
}

.communication-platform-stat-card {
    height: 100%;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.communication-platform-stat-value {
    color: white;
    font-weight: 800;
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.15;
}

.communication-platform-stat-label {
    color: rgba(255, 255, 255, 0.75);
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.communication-platform-filter-panel {
    border-radius: 18px;
    border: 1px solid rgba(11, 60, 93, 0.10);
    background: #ffffff;
}

.communication-platform-filter-toggle {
    border-radius: 10px !important;
    text-transform: none !important;
    font-weight: 800 !important;
    color: #0b3c5d !important;
    border-color: rgba(37, 183, 177, 0.45) !important;
}

.communication-platform-filter-toggle .mud-button-label {
    white-space: nowrap;
}

.communication-platform-tabs {
    border-radius: 8px;
    border: 1px solid rgba(11, 60, 93, 0.10);
    background: #f8fafc;
}

.communication-platform-tab-list {
    width: 100%;
}

.communication-platform-tab-button {
    flex: 1 1 220px;
    min-height: 44px;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    color: #334155 !important;
    background: transparent !important;
    text-transform: none !important;
    font-weight: 600 !important;
    justify-content: flex-start !important;
    padding-inline: 16px !important;
}

.communication-platform-tab-button-active {
    background: #ffffff !important;
    border-color: rgba(37, 183, 177, 0.55) !important;
    color: #0b3c5d !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.communication-platform-section-title {
    color: #0b3c5d;
    font-weight: 800;
}

.communication-platform-advanced-panels {
    border-radius: 8px;
    overflow: hidden;
}

.communication-platform-advanced-header {
    background: linear-gradient(90deg, rgba(37, 183, 177, 0.16), rgba(11, 60, 93, 0.06));
    border-bottom: 1px solid rgba(37, 183, 177, 0.18);
}

.communication-platform-advanced-title {
    color: #0b3c5d;
    font-weight: 800;
    font-size: 0.95rem;
}

.communication-platform-advanced-content {
    display: grid;
    gap: 14px;
    padding-top: 12px;
}

.communication-platform-filter-section {
    border-radius: 8px;
    border: 1px solid rgba(11, 60, 93, 0.08);
    background: #ffffff;
    padding: 14px;
}

.communication-platform-filter-section-title {
    margin-bottom: 12px;
    color: #0b3c5d;
    font-size: 0.88rem;
    font-weight: 800;
}

.communication-platform-range-filter {
    height: 100%;
    border-radius: 8px;
    border: 1px solid rgba(11, 60, 93, 0.10);
    background: #f8fafc;
    padding: 12px;
}

.communication-platform-range-filter-title {
    margin-bottom: 10px;
    color: #0b3c5d;
    font-size: 0.88rem;
    font-weight: 800;
}

.communication-platform-results-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px 16px;
}

.communication-platform-results-count {
    min-width: 0;
}

.communication-platform-results-settings {
    justify-self: end;
    min-width: max-content;
}

.communication-platform-active-filters {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.communication-platform-card-settings-button {
    flex: 0 1 auto;
    max-width: 100%;
    border-radius: 12px !important;
    text-transform: none !important;
    font-weight: 800 !important;
    color: #0b3c5d !important;
    border-color: rgba(37, 183, 177, 0.45) !important;
}

.communication-platform-card-settings-button .mud-button-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.communication-platform-card-settings-title {
    color: #0b3c5d !important;
    font-weight: 800 !important;
    opacity: 1 !important;
}

.communication-platform-card-settings-item {
    min-width: 260px;
}

.communication-platform-card-settings-item .mud-checkbox {
    width: 100%;
}

.communication-platform-active-filter-pill {
    appearance: none;
    display: inline-grid;
    grid-template-columns: minmax(0, 1fr) 20px;
    align-items: center;
    gap: 6px;
    max-width: min(360px, 100%);
    min-width: 0;
    height: 36px;
    overflow: hidden;
    padding: 0 6px 0 12px;
    background: #f8fafc;
    color: #334155;
    border: 1px solid rgba(11, 60, 93, 0.12);
    border-radius: 0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.communication-platform-active-filter-pill:hover {
    border-color: rgba(37, 183, 177, 0.55);
    background: #ffffff;
}

.communication-platform-active-filter-label {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.communication-platform-active-filter-close {
    display: inline-flex;
    width: 20px;
    height: 20px;
    padding: 2px;
    border-radius: 50%;
    color: #ffffff !important;
    background: #334155;
}

.communication-platform-pagination {
    flex-wrap: wrap;
    gap: 14px;
}

.communication-platform-page-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.communication-platform-page-search-input {
    width: 150px;
}

.communication-platform-page-search-button {
    height: 40px;
    border-radius: 10px !important;
    text-transform: none !important;
    font-weight: 800 !important;
}

.communication-platform-project-card {
    border-radius: 22px;
    border: 1px solid rgba(11, 60, 93, 0.10);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    cursor: pointer;
    overflow: hidden;
}

    .communication-platform-project-card:hover {
        transform: translateY(-2px);
        border-color: rgba(37, 183, 177, 0.7);
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
    }

.communication-platform-project-title {
    color: #0b3c5d;
    font-weight: 800;
    font-size: 1.08rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.communication-platform-project-description {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.55;
    min-height: 66px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.communication-platform-parameter-tooltip-trigger {
    display: inline-flex;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.communication-platform-project-meta .communication-platform-parameter-tooltip-trigger,
.communication-platform-finance-box .communication-platform-parameter-tooltip-trigger {
    display: block;
    width: 100%;
    max-width: 100%;
}

.communication-platform-parameter-tooltip,
.mud-tooltip.communication-platform-parameter-tooltip,
.communication-platform-parameter-tooltip .mud-tooltip,
.mud-tooltip:has(.communication-platform-parameter-tooltip-content),
.mud-popover:has(.communication-platform-parameter-tooltip-content) .mud-tooltip {
    max-width: min(360px, calc(100vw - 32px)) !important;
    max-height: min(260px, calc(100vh - 96px)) !important;
    padding: 0 !important;
    border-radius: 8px !important;
    border: none !important;
    background: transparent !important;
    color: #0f172a !important;
    box-shadow: none !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    overflow: visible !important;
    text-align: left !important;
}

.communication-platform-parameter-tooltip-content {
    display: grid;
    gap: 6px;
    width: max-content;
    max-width: min(360px, calc(100vw - 32px));
    max-height: min(260px, calc(100vh - 96px));
    overflow-y: auto;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(37, 183, 177, 0.24);
    background: #f8fafc;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
}

.communication-platform-parameter-tooltip-title {
    color: #0f766e;
    font-size: 0.74rem;
    font-weight: 800;
    text-align: left;
}

.communication-platform-parameter-tooltip-value {
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: left;
}

.communication-platform-results-panel {
    position: relative;
    min-height: 180px;
}

.communication-platform-results-loader {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 64px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(2px);
}

.communication-platform-results-grid {
    min-height: 120px;
}

.communication-platform-project-meta {
    color: #475569;
    font-size: 0.875rem;
}

.communication-platform-project-meta .mud-grid-item {
    min-width: 0;
    overflow: hidden;
}

.communication-platform-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

    .communication-platform-meta-item span {
        display: block;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.86rem;
        line-height: 1.25;
    }

    .communication-platform-project-meta .mud-icon-root {
        flex: 0 0 auto;
        color: #25b7b1;
        vertical-align: middle;
    }

.communication-platform-budget {
    color: #0b3c5d;
    font-weight: 800;
    font-size: 0.98rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.communication-platform-progress .mud-progress-linear-bar {
    background-color: #25b7b1 !important;
}

.communication-platform-chip-area {
    background: #e0f7f5 !important;
    color: #0f766e !important;
    font-weight: 700 !important;
}

.communication-platform-chip-scale {
    background: #eef2ff !important;
    color: #3730a3 !important;
    font-weight: 700 !important;
}

.communication-platform-chip-type {
    background: #f1f5f9 !important;
    color: #334155 !important;
    font-weight: 700 !important;
}

.communication-platform-chip-state {
    background: #fefce8 !important;
    color: #854d0e !important;
    font-weight: 700 !important;
}

.communication-platform-chip-territory {
    background: #ecfeff !important;
    color: #155e75 !important;
    font-weight: 700 !important;
}

.communication-platform-chip-jobs {
    background: #f0fdf4 !important;
    color: #166534 !important;
    font-weight: 700 !important;
}

.communication-platform-project-card .mud-chip {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    max-width: min(100%, 190px);
    min-width: 0;
    min-height: 24px;
    text-align: left;
    font-size: 0.74rem !important;
    line-height: 1.2 !important;
}

.communication-platform-project-card .mud-chip .mud-chip-content,
.communication-platform-project-card .mud-chip .mud-chip-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
    text-align: left;
}

.communication-platform-project-card-compact .mud-card-content {
    display: flex;
    flex-direction: column;
    min-height: 190px;
}

.communication-platform-project-card-compact .communication-platform-project-title {
    margin-top: 0 !important;
}

.communication-platform-project-card-compact .communication-platform-project-description {
    -webkit-line-clamp: 7;
    min-height: 108px;
}

.communication-platform-status {
    font-weight: 700 !important;
    max-width: 100%;
    font-size: 0.76rem !important;
}

.communication-platform-status-funding {
    background: #fff7ed !important;
    color: #c2410c !important;
}

.communication-platform-status-executor {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

.communication-platform-status-progress {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

.communication-platform-status-done {
    background: #ecfdf5 !important;
    color: #047857 !important;
}

.communication-platform-status-cancelled {
    background: #f1f5f9 !important;
    color: #64748b !important;
}

.communication-platform-button-secondary {
    border-radius: 12px;
    text-transform: none;
    color: #0b3c5d;
    border-color: rgba(11, 60, 93, 0.25);
}

.communication-platform-button-primary {
    border-radius: 12px;
    text-transform: none;
    background: #0b3c5d !important;
    color: #ffffff !important;
    font-weight: 700;
}

.communication-platform-filter-actions {
    border-top: 1px solid rgba(11, 60, 93, 0.08);
    padding-top: 12px;
}

.communication-platform-card-action {
    text-transform: none;
    font-weight: 700;
    color: #0b3c5d;
    font-size: 0.92rem;
}

.communication-platform-finance-box {
    border-radius: 8px;
    border: 1px solid rgba(11, 60, 93, 0.10);
    background: #f8fafc;
    padding: 14px;
}

.communication-platform-finance-collected {
    text-align: right;
    min-width: 0;
}

.communication-platform-finance-collected-value {
    color: #0f766e;
    font-weight: 800;
    font-size: 1.04rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.communication-platform-funding-percent {
    color: #0f766e;
    font-weight: 800;
}

.communication-platform-chip-source {
    background: #fff7ed !important;
    color: #9a3412 !important;
    font-weight: 700 !important;
}

.communication-platform-detail-page {
    color: #0f172a;
}

.communication-platform-detail-hero,
.communication-platform-detail-section {
    border-radius: 8px;
    border: 1px solid rgba(11, 60, 93, 0.10);
    background: #ffffff;
}

.communication-platform-detail-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    overflow: hidden;
}

.communication-platform-detail-chip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
}

.communication-platform-detail-title {
    color: #0b3c5d;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.communication-platform-detail-muted {
    color: #64748b;
    overflow-wrap: anywhere;
}

.communication-platform-detail-lead {
    max-width: 980px;
    color: #334155;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.communication-platform-detail-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.communication-platform-detail-kpi {
    min-width: 0;
    border-radius: 8px;
    border: 1px solid rgba(11, 60, 93, 0.10);
    background: #ffffff;
    padding: 14px;
}

.communication-platform-detail-kpi-collected {
    border-color: rgba(37, 183, 177, 0.35);
    background: rgba(37, 183, 177, 0.08);
}

.communication-platform-detail-kpi-label,
.communication-platform-detail-field-label,
.communication-platform-detail-finance-label {
    display: block;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
}

.communication-platform-detail-kpi-value {
    display: block;
    margin-top: 6px;
    color: #0b3c5d;
    font-size: 1.08rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.communication-platform-detail-section {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.communication-platform-detail-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.communication-platform-detail-section-header .mud-icon-root {
    color: #25b7b1;
}

.communication-platform-detail-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.communication-platform-detail-field-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.communication-platform-detail-field {
    min-width: 0;
    border-radius: 8px;
    border: 1px solid rgba(11, 60, 93, 0.08);
    background: #f8fafc;
    padding: 12px;
}

.communication-platform-detail-field-wide {
    grid-column: 1 / -1;
}

.communication-platform-detail-field-value {
    display: block;
    margin-top: 6px;
    color: #0f172a;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.communication-platform-detail-text {
    color: #334155;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

.communication-platform-detail-finance-card {
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid rgba(11, 60, 93, 0.08);
    padding: 14px;
}

.communication-platform-detail-finance-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.communication-platform-detail-finance-budget {
    text-align: right;
}

.communication-platform-detail-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.communication-platform-detail-progress-row strong {
    color: #0f766e;
}

.communication-platform-detail-finance-list {
    display: grid;
    gap: 8px;
}

.communication-platform-detail-finance-row,
.communication-platform-detail-source-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    border-bottom: 1px solid rgba(11, 60, 93, 0.08);
    padding-bottom: 8px;
}

.communication-platform-detail-finance-row:last-child,
.communication-platform-detail-source-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.communication-platform-detail-finance-value {
    flex: 0 0 auto;
    max-width: 50%;
    color: #0b3c5d;
    text-align: right;
    overflow-wrap: anywhere;
}

.communication-platform-detail-source-note {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.communication-platform-detail-subtitle {
    color: #0b3c5d;
    font-weight: 800;
}

@media (max-width: 960px) {
    .communication-platform-detail-kpis,
    .communication-platform-detail-field-grid,
    .communication-platform-detail-finance-head {
        grid-template-columns: minmax(0, 1fr);
    }

    .communication-platform-detail-finance-budget {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .communication-platform-filter-toggle {
        width: 100%;
        justify-content: center !important;
    }

    .communication-platform-detail-finance-row,
    .communication-platform-detail-source-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .communication-platform-detail-finance-value {
        max-width: 100%;
        text-align: left;
    }
}
