.email-body img {
    max-width: 200px !important;
    height: auto !important;
    border-radius: 0.5rem !important;
}

.email-body {
    max-height: 400px !important;
    overflow: hidden !important;
    transition: max-height 0.3s;
    padding: 0.5rem !important;
/*    border: 1px solid #e5e7eb !important; */
    border-radius: 0.5rem !important;
}

/*
.dark .email-body {
    background: rgba(80, 80, 80, 0.8);
}
 */

.email-body.expanded {
    max-height: 2000px !important;
}

.f-minimal {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    font-size: 1rem !important;
    min-height: unset !important;
}
.f-minimal-section {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}
.f-minimal .fi-fo-field-wrp,
.f-minimal .fi-fo-field,
.f-minimal .fi-fo-label,
.f-minimal .fi-fo-control {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}
.fi-fo-section {
    margin-bottom: 0 !important;
}

/* Public record styles */
.dark .fi-ta-record-public {
    background-color: rgba(80, 80, 80, 0.3) !important;
    border-left-width: 4px !important;
    border-left-color: rgb(80, 80, 80) !important;
}

.dark .fi-ta-record-public[class*="bg-gray-50"],
.dark .fi-ta-record-public[class*="bg-white"] {
    background-color: rgba(80, 80, 80, 0.3) !important;
}

/* Filament table record styles */
.fi-ta-record-private {
    background-color: rgb(255 237 213) !important;
    border-left-width: 4px !important;
    border-left-color: rgb(249 115 22) !important;
}

.dark .fi-ta-record-private {
    /* background-color: rgba(154, 52, 18, 0.5) !important; */
    border: 4px solid rgba(154, 52, 18, 0.5) !important;
    background-color: rgba(80, 80, 80, 0.3) !important;
    border-left-color: rgb(251 146 60) !important;
}

.fi-ta-record-private[class*="bg-gray-50"],
.fi-ta-record-private[class*="bg-white"] {
    background-color: rgb(255 237 213) !important;
}

.dark .fi-ta-record-private[class*="bg-gray-50"],
.dark .fi-ta-record-private[class*="bg-white"] {
    /* background-color: rgba(154, 52, 18, 0.3) !important; */
    background-color: rgba(80, 80, 80, 0.3) !important;
}

.fi-ta-record-third-party {
    background-color: rgb(243 232 255) !important;
    border-left-width: 4px !important;
    border-left-color: rgb(168 85 247) !important;
}

.dark .fi-ta-record-third-party {
    /* background-color: rgba(107, 33, 168, 0.5) !important; */
    /* background-color: rgba(144, 71, 205, 0.4) !important; */
    border: 4px solid rgba(107, 33, 168, 0.5) !important;
    background-color: rgba(80, 80, 80, 0.3) !important;

    border-left-color: rgb(192 132 252) !important;
}

.fi-ta-record-third-party[class*="bg-gray-50"],
.fi-ta-record-third-party[class*="bg-white"] {
    background-color: rgb(243 232 255) !important;
}

.dark .fi-ta-record-third-party[class*="bg-gray-50"],
.dark .fi-ta-record-third-party[class*="bg-white"] {
    /* background-color: rgba(144, 71, 205, 0.4) !important; */
    /* background-color: rgba(107, 33, 168, 0.2) !important; */
    background-color: rgba(80, 80, 80, 0.3) !important;
}

/* Custom select text color for priority badges in dark mode */
body.dark select[style*="background-color: rgba(244, 193, 55"] {
    color: rgb(202, 138, 4) !important;
}
body.dark select[style*="background-color: rgba(34, 197, 94"] {
    color: rgb(21, 128, 61) !important;
}
body.dark select[style*="background-color: rgba(248, 108, 113"] {
    color: rgb(220, 38, 38) !important;
}

.email-body-preview {
    max-height: 400px !important;
    overflow: hidden;
    transition: max-height 0.3s;
    white-space: pre-wrap;
}
.email-body-preview.expanded {
    max-height: 2000px;
}

.show-more,
.show-less {
    color:#2563eb;
    margin-left:0.5em;
    font-size:0.75em;
    font-weight:bold;
    display:block;
    margin-top:0.5em;
}
