.crt-38e23b4e-wrapper {
    width: 100%;
}

.crt-38e23b4e-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin: 0;
    padding: 0;
    background: transparent; /* Prevent default user-agent or theme grey tables */
}

/* Ensure no browser-inherited or theme grey backgrounds on table rows */
.crt-38e23b4e-table tr,
.crt-38e23b4e-table td {
    background-color: inherit;
}

.crt-38e23b4e-table th {
    font-weight: 600;
}

.crt-38e23b4e-table td {
    word-break: break-word;
    vertical-align: top;
    height: auto; /* Allow auto dynamic heights instead of collapsing */
}

/* Placed wrapper to align badge and multiline text seamlessly */
.crt-38e23b4e-placed-cell {
    vertical-align: top;
}

.crt-38e23b4e-placed-wrapper {
    display: flex;
    align-items: flex-start; /* Align badge to top of text lines if they break */
    gap: 8px;
    flex-wrap: wrap;
}

.crt-38e23b4e-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    margin-top: 2px; /* Slight alignment offset for badge alongside first line of text */
}

/* Default Mobile Stacked Cards (Hidden on Desktop) */
.crt-38e23b4e-cards-container {
    display: none;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.crt-38e23b4e-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
}

.crt-38e23b4e-card-header {
    background-color: #f3f4f6;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.crt-38e23b4e-card-title {
    font-weight: 700;
    color: #1f2937;
}

.crt-38e23b4e-card-body {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.crt-38e23b4e-card-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.crt-38e23b4e-card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: 0.05em;
}

.crt-38e23b4e-card-val {
    color: #4b5563;
    font-size: 0.9rem;
}

/* RESPONSIVE LAYOUTS */
@media (max-width: 767px) {
    /* Horizontal Scroll Layout Option */
    .crt-38e23b4e-mobile-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .crt-38e23b4e-mobile-scroll .crt-38e23b4e-table {
        min-width: 600px;
    }
    
    /* Stacked Cards Layout Option */
    .crt-38e23b4e-mobile-cards .crt-38e23b4e-table {
        display: none !important;
    }
    .crt-38e23b4e-mobile-cards .crt-38e23b4e-cards-container {
        display: flex;
    }
}
