/* ===================================================
   FIELDS LIST (Vertical)  –  Prefix: fxfl-
   Replaces the old grid layout in TicketDetails Fields tab
   =================================================== */

.fxfl-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fxfl-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(109, 40, 217, .06);
    transition: background .15s;
}

.fxfl-row:last-child {
    border-bottom: none;
}

.fxfl-row:hover {
    background: rgba(109, 40, 217, .025);
}

/* ===== Label Side ===== */
.fxfl-label-side {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    max-width: 320px;
    flex-shrink: 0;
}

.fxfl-label-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(109, 40, 217, .07), rgba(109, 40, 217, .03));
    border: 1.5px solid rgba(109, 40, 217, .12);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #4B3E7B;
    white-space: nowrap;
}

.fxfl-label-pill.fxfl-rtl {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

.fxfl-label-icon {
    font-size: 16px !important;
    color: #7C3AED !important;
    flex-shrink: 0;
}

/* ===== Value Side ===== */
.fxfl-value-side {
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 36px;
    padding-top: 4px;
}

.fxfl-val {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #1F2937;
    line-height: 1.5;
}

.fxfl-val.fxfl-empty {
    color: #D1D5DB;
    font-style: italic;
}

/* Number values */
.fxfl-number {
    font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #2D2350 !important;
    letter-spacing: -.3px;
}

/* Long text */
.fxfl-longtext {
    white-space: pre-wrap;
    word-break: break-word;
    background: rgba(0, 0, 0, .02);
    border-radius: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, .04);
    font-size: 14px;
    line-height: 1.65;
    width: 100%;
}

/* URL */
.fxfl-url {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6D28D9;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 8px;
    background: rgba(109, 40, 217, .05);
    border: 1px solid rgba(109, 40, 217, .1);
    transition: all .15s;
}

.fxfl-url:hover {
    background: rgba(109, 40, 217, .1);
    border-color: rgba(109, 40, 217, .2);
}

/* Chips for dropdown values */
.fxfl-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fxfl-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #4B3E7B;
    background: rgba(109, 40, 217, .06);
    border: 1px solid rgba(109, 40, 217, .12);
}

/* Checkbox boolean */
.fxfl-bool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.fxfl-bool-yes {
    color: #15803D;
    background: rgba(34, 197, 94, .08);
    border: 1px solid rgba(34, 197, 94, .15);
}

.fxfl-bool-no {
    color: #DC2626;
    background: rgba(220, 38, 38, .06);
    border: 1px solid rgba(220, 38, 38, .1);
}

/* Date */
.fxfl-date {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

/* File / Image row */
.fxfl-file-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(109, 40, 217, .03);
    border: 1px solid rgba(109, 40, 217, .08);
}

.fxfl-file-name {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2D2350;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fxfl-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    text-decoration: none;
    transition: all .15s;
    flex-shrink: 0;
}

.fxfl-file-view {
    color: #6D28D9;
    background: rgba(109, 40, 217, .06);
    border: 1px solid rgba(109, 40, 217, .12);
}

.fxfl-file-view:hover {
    background: rgba(109, 40, 217, .14);
    border-color: rgba(109, 40, 217, .25);
}

.fxfl-file-download {
    color: #0EA5E9;
    background: rgba(14, 165, 233, .06);
    border: 1px solid rgba(14, 165, 233, .12);
}

.fxfl-file-download:hover {
    background: rgba(14, 165, 233, .14);
    border-color: rgba(14, 165, 233, .25);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .fxfl-row {
        flex-direction: column;
        gap: 8px;
        padding: 14px 16px;
    }

    .fxfl-label-side {
        min-width: unset;
        max-width: unset;
        width: 100%;
    }

    .fxfl-value-side {
        padding-left: 4px;
        width: 100%;
    }

    .fxfl-file-row {
        flex-wrap: wrap;
    }

    .fxfl-file-name {
        flex: unset;
        width: 100%;
        margin-bottom: 4px;
    }
}
