/* utility classes */
.amp-need-header h1,
.amp-support-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

h3.h3-24,
.amp-empty-state h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 24px;
    color: #0A0A0A;
    margin: 0 0 8px 0;
}

p.p-14,
span.p-14,
input::placeholder,
.amp-page-header p,
.amp-need-meta span,
.amp-detail-label,
.amp-empty-state p>small {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 14px;
    line-height: 20px;
    font-weight: normal;
    color: #65758B;
}

.amp-detail-value,
.amp-info-item strong,
.amp-description {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #0A0A0A;
}

.amp-pending-needs-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 15px 0;
}

.amp-pending-need-item .amp-need-title {
    font-weight: 600;
    font-size: 14px;
}

.amp-detail-value.amp-value {
    color: #059669;
    font-weight: 600;
}

.amp-need-title,
.amp-support-title,
.amp-empty-state p,
.cc-message-subject-row .cc-message-subject-text {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    line-height: 28px;
}

.amp-need-description,
.amp-support-description {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 14px;
    line-height: 20px;
    color: #0A0A0A !important;
    margin-bottom: 20px;
    font-weight: normal !important;
}

.amp-btn,
.cc-settings-btn {
    padding: 8px 16px !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
    text-align: center !important;
    line-height: 20px !important;
    color: #fff !important;
}

.amp-btn-primary,
.cc-settings-btn-primary,
.amp-status-badge.fulfilled {
    background: #072B55 !important;
    color: white !important;
}

.amp-btn-primary:hover,
.cc-settings-btn-primary:hover {
    background-color: hsl(212 85% 18% / .9);
    transform: translateY(-1px);
}

.amp-btn-outline,
.amp-btn-secondary,
.cc-settings-btn-secondary {
    background: #fff !important;
    color: #0A0A0A !important;
    border: 1px solid #d1d5db !important;
}

.amp-btn-outline:hover,
.amp-btn-secondary:hover,
.cc-settings-btn-secondary:hover {
    background-color: hsl(357 71% 52%) !important;
    color: #fff !important;
}

.amp-page-actions {
    text-align: center;
}

.amp-detail-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.overdue,
.expired {
    color: #dc2626;
    font-weight: 600;
}

.amp-need-card-actions,
.amp-support-card-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.amp-pending-needs-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}



.amp-pending-needs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.amp-pending-need-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
}

.amp-need-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.amp-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.amp-back-navigation {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 80px auto 20px!important;
}

/* ----------------------------------------------------Styles for Needs and support pages -------------------------------------------------- */

.amp-filter-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: end;
}

.amp-filter-row-search {
    grid-template-columns: repeat(3, 1fr);

}

.amp-search-input-wrapper,
.amp-filter-group {
    position: relative;
}

.amp-search-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #9ca3af;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.amp-search-input {
    padding-left: 40px !important;
}

.filter-icon {
    width: 16px;
    height: 16px;
}

.amp-search-form input[type="text"],
.amp-search-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid #E7E5FF;
    border-radius: 12px;
    outline: none;
    background-color: transparent;
    color: inherit;
    width: 100%;
    padding-top: 8px;
    padding-bottom: 8px;
}

.amp-select-arrow {
    pointer-events: none;
}

.amp-search-select::-ms-expand {
    display: none;
}

.amp-search-form input[type="text"]:focus,
.amp-search-form select:focus {
    outline: none;
    box-shadow: none;
    border-color: inherit;
}

.amp-search-form input[type="text"]:hover,
.amp-search-form select:hover {
    border-color: inherit;
    background-color: transparent;
}

.amp-search-form input[type="text"]:active,
.amp-search-form select:active {
    background-color: transparent;
    border-color: inherit;
    box-shadow: none;
}

.amp-search-form select option:hover,
.amp-search-form select option:focus {
    background-color: transparent;
    color: inherit;
}

.amp-select-wrapper {
    position: relative;
}

.amp-search-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 40px !important;
}

.amp-select-arrow {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: #9ca3af;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.amp-search-filters {
    background-color: #fff;
}

.amp-results-container {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, 1fr);

}

.amp-results-container-search {
    grid-template-columns: 1fr;

}

.amp-need-item,
.amp-support-item,
.priority-medium {
    border: 1px solid #E7E5FF;
}

.amp-need-item,
.amp-need-card,
.amp-support-card {
    display: flex;
    flex-direction: column;
}

.amp-need-header,
.amp-need-description,
.amp-need-details,
.amp-need-footer {
    flex-shrink: 0;
}

.amp-need-footer,
.amp-need-card-content,
.amp-support-card-content {
    flex: 1;
}

.amp-need-actions,
.amp-support-card-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.amp-priority-badge {
    text-transform: capitalize;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
}

span.amp-type-badge,
span.priority-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.amp-priority-badge.priority-low,
.pa-frontend-badge.pa-frontend-badge-audience {
    background: #fff;
    color: #0A0A0A;
    border: 1px solid #E7E5FF;
}

.amp-priority-badge.priority-medium,
.category-badge,
.amp-category-badge,
.cc-container .cc-message-priority.normal {
    background: #fff;
    color: #0A0A0A;
    border: 1px solid #E7E5FF;
}

.amp-priority-badge.priority-high,
.cc-message-priority.high,
.amp-status-badge {
    background: #F1F5F8 !important;
    color: #072B55 !important;
}

.amp-priority-badge.priority-critical,
.cc-message-priority.urgent,
.pa-frontend-badge.pa-frontend-badge-priority-high {
    background: #EF4343 !important;
    color: #fff !important;
}

.amp-type-badge.type-give_away {
    background: #f0fdf4;
    color: #16a34a;
}

.amp-need-item .amp-need-details {
    padding: 0;
    margin: 0 !important;
}

.amp-detail-badge,
.category-badge,
.amp-category-badge {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
    border: 1px solid #E7E5FF;
    border-radius: 50px;
    padding: 2px 10px;
    font-weight: 600;
    width: fit-content;

}

.status-badge {
    border-radius: 50px;
    padding: 2px 10px;
    background-color: #072B55;
    color: #fff;
    font-weight: 600;
}

.amp-need-item .amp-need-details {
    display: flex;
}


.amp-need-location span {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 12px;
    line-height: 16px;
    font-weight: normal;
    color: #65758B;
}

.amp-need-footer,
.amp-support-footer {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 14px;
    line-height: 20px;
    font-weight: normal;
    color: #65758B;
}

.amp-need-footer .amp-need-value,
.amp-support-value {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #072B55;
}


.amp-need-actions .amp-btn-primary {
    /* width: 47%; */
    flex: 1 1 25%;
}

.amp-need-actions .amp-btn-secondary,
.amp-need-actions .amp-btn-outline {
    /* min-width: 24%; */
    flex: 1 1 25%;
}

/* .amp-need-actions .amp-create-matching-support-btn {
    width: 100%;
} */

.amp-support-actions .amp-btn-primary {
    width: 37%;
}

.amp-support-actions .amp-btn-secondary,
.amp-support-actions .amp-btn-outline {
    width: 20%;
}

@media (max-width: 768px) {
    .amp-filter-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .amp-need-header,
    .amp-support-header {
        flex-direction: row;
    }

    .amp-need-actions,
    .amp-support-actions {
        flex-direction: column;
    }

    .amp-need-item .amp-need-actions {
        flex-wrap: nowrap;
    }

    .amp-results-container {
        grid-template-columns: 1fr;

    }

    .amp-need-footer,
    .amp-support-footer {
        font-size: 12px;
        line-height: 16px;
        flex-direction: row;
    }


    .amp-need-actions .amp-btn-primary,
    .amp-need-actions .amp-btn-secondary,
    .amp-need-actions .amp-btn-outline,
    .amp-support-actions .amp-btn-primary,
    .amp-support-actions .amp-btn-secondary,
    .amp-support-actions .amp-btn-outline,
    .amp-support-card-actions .amp-btn-primary,
    .amp-support-card-actions .amp-btn-secondary,
    .amp-support-card-actions .amp-btn-outline {
        width: 100%;
    }

    .amp-support-card-actions {
        flex-direction: column;
    }

}

/* ----------------------------------------------------Styles for Needs and support details pages ------------------------------------------ */

.amp-info-grid,
.amp-support-stats,
.amp-needs-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.status-active {
    color: #46b450;
    font-weight: bold;
}

.status-pending {
    color: #ffb900;
    font-weight: bold;
}

.status-fulfilled {
    color: #00a0d2;
    font-weight: bold;
}

.priority-critical {
    background: #fef2f2;
    color: #dc2626;
}

.priority-high {
    background: #fef3c7;
    color: #d97706;
}

.priority-medium {
    background: #dbeafe;
    color: #2563eb;
}

.priority-low {
    background: #f0fdf4;
    color: #16a34a;
}

.amp-need-details .amp-need-actions,
.amp-support-details .amp-need-actions {
    justify-content: center;
    margin-top: 30px;
}

.amp-need-details .amp-btn-primary,
.amp-need-details .amp-btn-outline,
.amp-support-details .amp-btn-primary,
.amp-support-details .amp-btn-outline {
    width: auto;
}

.amp-connected-support h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.amp-section-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.amp-support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.amp-support-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.amp-support-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.amp-support-header h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    flex: 1;
    padding-right: 1rem;
}

/* Support Type Badge */
.amp-support-type {
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}


.amp-support-type.give_away {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    text-transform: capitalize;
}

.amp-support-type.provide_service {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Support Details */
.amp-support-details {
    margin-bottom: 1rem;
    flex: 1;
}

.amp-support-details>p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.amp-support-details strong {
    color: #374151;
    font-weight: 600;
    min-width: 80px;
}

/* Support Description */
.amp-support-description {
    background: #fff;
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    margin-top: auto;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
}

.amp-my-need-details.amp-need-details .amp-support-details {
    margin: 0 !important;
}


@media (max-width: 768px) {

    .amp-info-grid,
    .amp-support-stats,
    .amp-needs-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

}


/* ----------------------------------------------------Styles for listing pages -------------------------------------------------- */

.amp-my-active-needs,
.amp-active-support,
.amp-my-fulfilled-needs,
.amp-fulfilled-support,
.amp-my-pending-needs,
.amp-pending-support,
.amp-my-rejected-needs,
.amp-rejected-support,
.amp-my-urgent-needs,
.amp-need-details .amp-support-details,
.amp-need-details,
.amp-support-details,
.amp-agency-active-needs,
.amp-staff-performance-monitor {
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.amp-page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.amp-page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.amp-needs-grid,
.amp-support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.amp-need-card,
.amp-support-card,
.amp-info-item,
.amp-description,
.amp-location,
.amp-videos,
.amp-documents {
    border: 1px solid #E7E5FF;
    background: white;
    border-radius: 12px;
    padding: 24px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.amp-description,
.amp-location,
.amp-videos,
.amp-documents {
    margin: 30px 0
}

.amp-info-item strong {
    display: block;
}

.amp-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #E7E5FF;
    transition: box-shadow 0.2s, border-color 0.2s;

}

.amp-need-card:hover,
.amp-support-card:hover,
.amp-empty-state:hover,
.amp-info-item:hover,
.amp-description:hover,
.amp-location:hover,
.amp-videos:hover,
.amp-documents:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.amp-need-card-header,
.amp-support-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.amp-need-details-grid,
.amp-support-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}


@media (max-width: 768px) {

    .amp-needs-grid,
    .amp-support-grid {
        grid-template-columns: 1fr;
    }
}



/* ----------------------------------------------------- messages pages styles ------------------------------------------------------------- */

/* .cc-container {
    margin: 20px auto !important;
    max-width: 1280px;
    border: none;
    overflow: hidden;
    box-shadow: none;
}

.cc-header {
    padding: 0;
    border-bottom: none;
    text-align: left;
}

.cc-nav-tabs {
    justify-content: flex-start;
    padding: 4px !important;
    width: 28rem;
    height: 2.5rem;
    border-radius: 6px;
    background-color: #F1F5F8;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 20px;
}

.cc-main-content {
    border: 2px solid #F5F7FA;
    border-radius: 8px;
}

button.cc-tab-btn {
    background-color: #F1F5F8 !important;
    color: #506683 !important;
    border: none !important;
    border-radius: 4px;
    font-size: 14px;
    line-height: 20px;
    padding: 0;
    justify-content: center;
}

button.cc-tab-btn.active {
    background-color: #fff !important;
    color: #072B55 !important;
    border: none !important;
    font-weight: 500;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);

}

button.cc-tab-btn:hover {
    color: #072B55 !important;
    border: none !important;
}

button {
    outline: none !important;
}

.cc-container input[type=text],
input[type=email],
input[type=url],
input[type=password],
input[type=search],
input[type=number],
input[type=tel],
input[type=date],
input[type=month],
input[type=week],
input[type=time],
input[type=datetime],
input[type=datetime-local],
input[type=color],
.site textarea {
    border: 2px solid #e6eaf0 !important;
    border-radius: 8px !important;
    color: #072B55 !important;
    line-height: 20px !important;
    padding: 12px 16px !important;
    margin: 0 2px !important;
    max-width: 100% !important;
}

.cc-container input[type=text]:focus,
input[type=email]:focus,
input[type=url]:focus,
input[type=password]:focus,
input[type=search]:focus,
input[type=number]:focus,
input[type=tel]:focus,
input[type=date]:focus,
input[type=month]:focus,
input[type=week]:focus,
input[type=time]:focus,
input[type=datetime]:focus,
input[type=datetime-local]:focus,
input[type=color]:focus,
.site textarea:focus {
    outline: none !important;
}

.cc-search-box input[type=text] {
    padding-left: 40px !important;
}

.cc-no-messages {
    padding: 20px 22px 0;
} */

.cc-container {
    margin: 70px auto !important;
    max-width: 1280px;
    border: none;
    overflow: hidden;
    box-shadow: none;
}

.cc-header {
    padding: 0;
    border-bottom: none;
    text-align: left;
    margin-bottom: 20px;
}

.cc-title {
    font-size: 32px;
    font-weight: 700;
    color: #0A0A0A;
    margin: 0 0 8px 0;
}

.cc-subtitle {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 16px;
    line-height: 20px;
    color: #65758B;
    margin: 0;
}

.cc-nav-tabs {
    justify-content: flex-start;
    padding: 4px !important;
    width: 28rem;
    height: 2.5rem;
    border-radius: 6px;
    background-color: #F1F5F8;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 20px;
    border: none;
}

button.cc-tab-btn {
    background-color: #F1F5F8 !important;
    color: #506683 !important;
    border: none !important;
    border-radius: 4px;
    font-size: 14px;
    line-height: 20px;
    padding: 0;
    justify-content: center;
    cursor: pointer;
    font-weight: 500;
}

button.cc-tab-btn.active {
    background-color: #fff !important;
    color: #072B55 !important;
    border: none !important;
    font-weight: 600;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
}

button.cc-tab-btn:hover {
    color: #072B55 !important;
    border: none !important;
}

.cc-main-content {
    border: 2px solid #F5F7FA;
    border-radius: 8px;
    background: white;
}

.cc-messages-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    min-height: 70vh;
    max-height: 80vh;
}

/* Left Sidebar */
.cc-sidebar {
    border-right: 1px solid #E5E7EB;
    overflow-y: auto;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.cc-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    padding: 16px;
    flex-shrink: 0;
}


.cc-sidebar-header h3 {
    margin: 0;
}

.cc-compose-btn {
    background: #072B55 !important;
    color: white !important;
    border: none;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.cc-compose-btn:hover {
    background: #4b5563 !important;
    transform: translateY(-1px);
}

.cc-compose-btn:before {
    content: "✉️";
    font-size: 16px;
}

.cc-search-box {
    position: relative;
    margin-bottom: 16px;
    padding: 0 16px;
    padding-bottom: 0;
    border-bottom: none;
    flex-shrink: 0;
}

.cc-container .cc-search-box input[type="text"] {
    width: 100%;
    padding: 8px 16px 8px 40px !important;
    border: 2px solid #e6eaf0 !important;
    border-radius: 8px !important;
    color: #072B55 !important;
    line-height: 20px !important;
    font-size: 14px;
    background: white;
}

.cc-search-box:before {
    content: "";
    position: absolute;
    left: 35px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    z-index: 1;
    pointer-events: none;
}

.cc-filter-box {
    margin-bottom: 20px;
    padding: 0 16px;
    flex-shrink: 0;
}

.cc-filter-select {
    width: 100%;
    padding: 12px 16px !important;
    border: 2px solid #e6eaf0 !important;
    border-radius: 8px !important;
    color: #072B55 !important;
    line-height: 20px !important;
    font-size: 14px;
    background: white;
    appearance: none;
}

/* Messages List */
.cc-messages-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 16px;
    padding-bottom: 70px;
    flex: 1;
    overflow-y: auto;
    max-height: calc(80vh - 200px);

}

.cc-message-item {
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    margin-bottom: 8px;
    background: white;
    border: 1px solid #E5E7EB;

}

.cc-message-item:hover,
.cc-message-item.focus {
    background: #F8FAFC;
    border-color: #D1D5DB;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left-width: 4px;
    border-left-color: #072B55;
}

/* .cc-message-item.active {
    background: white;
    border-color: #072B55;
    box-shadow: 0 2px 8px rgba(7, 43, 85, 0.1);
} */

.cc-message-item.unread {
    background: white;
    border-color: #E5E7EB;
}

.cc-message-item.unread .cc-sender-name {
    font-weight: 600;
}

.cc-message-sender {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.cc-sender-avatar {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: #EF4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    font-weight: 600;
}

.cc-sender-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    flex: 1;
}

.cc-message-priority {
    margin-left: auto;
}

.cc-priority-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: lowercase;
}

/* .cc-priority-badge.urgent {
    background: #EF4444;
    color: white;
}

.cc-priority-badge.high {
    background: #3B82F6;
    color: white;
}

.cc-priority-badge.normal {
    background: #6B7280;
    color: white;
} */

.cc-message-subject {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cc-message-preview {
    font-size: 13px;
    color: #6B7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    margin-bottom: 8px;
}

.cc-message-date {
    font-size: 12px;
    color: #9CA3AF;
    text-align: right;
}

/* Content Area */
.cc-content-area {
    background: white;
    position: relative;
    overflow-y: auto;
    max-height: 80vh;
}

.cc-no-message-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #6B7280;
}

.cc-no-message-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.cc-no-message-selected h3 {
    font-size: 20px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.cc-no-message-selected p {
    font-size: 16px;
    color: #6B7280;
    margin: 0;
}

/* Message Thread */
.cc-message-thread {
    height: 100%;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.cc-message-display {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    max-height: calc(80vh - 100px);
}

.cc-message-header-line {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E5E7EB;
    align-items: center;
}

.cc-message-avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.cc-message-header-content {
    flex: 1;
}

.cc-message-subject-row {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 0;
}

.cc-message-subject-text {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    flex: 1;
}

.cc-message-menu {
    position: relative;
    transform: rotate(90deg);
    background: #fff;
}

.cc-menu-trigger {
    background: #fff !important;
    color: #0A0A0A !important;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.cc-menu-trigger:hover {
    background: #EF4444;
    color: #fff;
}

.cc-menu-dropdown {
    transform: rotate(270deg);
    right: -110px;
}

.cc-menu-dropdown.show {
    animation: none
}

.cc-message-from-line {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

.cc-from-label {
    font-weight: 500;
}

.cc-from-value {
    color: #111827;
    font-weight: 500;
}

.cc-message-meta-lines,
.cc-message-actions {
    margin-bottom: 24px;
    padding-left: 0;
}

.cc-meta-line {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 14px;
}

.cc-meta-label {
    font-weight: 500;
    color: #6B7280;
    min-width: 40px;
}

.cc-meta-value {
    color: #111827;
}

.cc-message-body {
    background: #F9FAFB;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #E5E7EB;
}

.cc-message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #111827;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: auto;
}

.cc-message-actions {
    display: flex;
    gap: 12px;
}

.cc-action-btn {
    background: #072B55 !important;
    color: white !important;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.cc-action-btn:hover {
    background: #4b5563 !important;
    transform: translateY(-1px);
}

/* Form Styling */
.cc-container input[type=text],
.cc-container input[type=email],
.cc-container input[type=url],
.cc-container input[type=password],
.cc-container input[type=search],
.cc-container input[type=number],
.cc-container input[type=tel],
.cc-container input[type=date],
.cc-container select,
.cc-container textarea {
    border: 2px solid #e6eaf0 !important;
    border-radius: 8px !important;
    color: #072B55 !important;
    line-height: 20px !important;
    padding: 8px 16px !important;
    margin: 0 2px !important;
    max-width: 100% !important;
    font-family: ui-sans-serif, system-ui, sans-serif;
}

.cc-container input[type=text]:focus,
.cc-container input[type=email]:focus,
.cc-container input[type=url]:focus,
.cc-container input[type=password]:focus,
.cc-container input[type=search]:focus,
.cc-container input[type=number]:focus,
.cc-container input[type=tel]:focus,
.cc-container input[type=date]:focus,
.cc-container select:focus,
.cc-container textarea:focus {
    outline: none !important;
    border-color: #072B55 !important;
}

/* Loading States */
.cc-loading {
    text-align: center;
    padding: 40px;
    color: #6B7280;
    font-style: italic;
}

.cc-no-messages {
    padding: 40px 20px;
    text-align: center;
    color: #6B7280;
}

.cc-no-messages h4 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.cc-no-messages p {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

/* Compose Form Container */
.cc-compose-container {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(80vh - 60px);
    display: flex;
    flex-direction: column;
}

/* Form Wrapper for Compose */
.cc-compose-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    min-height: fit-content;
    padding-bottom: 50px;
}

/* Form Groups */
.cc-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cc-form-group label {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.cc-form-group textarea {
    min-height: 200px;
    resize: vertical;
}

/* Form Actions */
.cc-form-actions {
    display: flex !important;
    gap: 12px;
    justify-content: space-between;
    margin-top: 20px;
    padding: 20px 0;
    border-top: 1px solid #E5E7EB;
    background: white;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.cc-form-action-buttons {
    display: flex;
    gap: 12px;
}


/* Settings Tab */
.cc-settings-container {
    padding: 32px;
    overflow-y: auto;
    max-height: calc(80vh - 60px);
    display: flex;
    flex-direction: column;
}

/* Make sure settings form actions are also visible */
.cc-settings-container .cc-form-actions {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    margin-top: auto;
    flex-shrink: 0;
}

/* Ensure the form content area expands properly */
.cc-compose-form-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.cc-settings-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E5E7EB;
}

.cc-settings-icon {
    font-size: 32px;
}

.cc-settings-title h3 {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.cc-settings-title p {
    font-size: 16px;
    color: #6B7280;
    margin: 0;
}

/* Settings Form Layout */
.cc-settings-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: unset;
}

.cc-settings-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.cc-settings-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cc-settings-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

/* Toggle Switches */
.cc-settings-toggles {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    margin: 24px 0;
}

.cc-toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}


/* Settings Actions */
.cc-settings-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 24px;
    border-top: 1px solid #E5E7EB;
    margin-top: auto;
}

.cc-reset-btn {
    background: #fff !important;
    color: #374151 !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cc-reset-btn:hover {
    background: #F9FAFB !important;
    border-color: #9CA3AF !important;
    color: #111827 !important;
}

.cc-save-btn {
    background: #072B55 !important;
    color: white !important;
    border: none !important;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cc-save-btn:hover {
    background: #1e3a8a !important;
    transform: translateY(-1px);
}

/* Full width single column for phone */
.cc-settings-row.cc-single-column {
    grid-template-columns: 1fr;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cc-messages-layout {
        grid-template-columns: 320px 1fr;
    }
}

@media (max-width: 768px) {
    .cc-messages-layout {
        grid-template-columns: 1fr;
    }

    .cc-sidebar {
        border-right: none;
        border-bottom: 1px solid #E5E7EB;
    }

    .cc-nav-tabs {
        width: 100%;
    }

    .cc-message-subject-row {
        flex-direction: column;
        gap: 8px;
    }

    .cc-message-subject-text {
        font-size: 20px;
    }

    .cc-message-actions {
        flex-direction: column;
    }

    .cc-settings-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cc-settings-container {
        padding: 20px;
    }

    .cc-toggle-group {
        padding: 0;
        margin: 0;
    }

    .cc-settings-toggles {
        flex-direction: column;
        margin: 0;
    }

    .cc-settings-actions {
        flex-direction: column-reverse;
    }

    .cc-reset-btn,
    .cc-save-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Hide specific inline styles */
.cc-container button {
    outline: none !important;
}

.cc-container .cc-no-messages {
    padding: 20px 22px 0;
}


/* connected needs table  */


.amp-needs-table {
    /* background: #fff;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center; */

    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
}


table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #F8FAFC;
    border-bottom: 1px solid #E5E7EB;
}

table td {
    padding: 16px 20px;
    border-bottom: 1px solid #F3F4F6;
    font-size: 14px;
    color: #1f2937;
    vertical-align: middle;
}

.amp-support-details .amp-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.amp-support-details .amp-action-buttons button.amp-btn-success,
.amp-support-details .amp-action-buttons button.amp-btn-danger {
    width: 100%;
    margin-right: 0 !important;
}


.amp-support-details .amp-action-buttons button.amp-btn-success:hover,
.amp-support-details .amp-action-buttons button.amp-btn-danger:hover {
    background: #E5E7EB;
    border-color: #D1D5DB !important;
    color: #0A0A0A !important;
}