/**
 * TFISOFT CMS FREE 
 * www.tfisoft.com.br
 * @version 1.0.0
 * @author Moreira / DevKinG 
 * @copyright (c) 2026 TFISFOT, All Rights Reserved
 *
 */
/* Extraido de modules/usercp/tfi_support.php - bloco 1 */
.tfi-ticket {
    color: #f4eee8;
}
.tfi-ticket .panelx {
    background: #171820;
    border: 1px solid #4b3d32;
    border-radius: 12px;
    padding: 16px;
    margin: 14px 0;
}
.tfi-ticket input,
.tfi-ticket select,
.tfi-ticket textarea {
    width: 100%;
    padding: 10px;
    background: #0c0d13;
    border: 1px solid #78664f;
    color: white;
    border-radius: 7px;
    margin: 6px 0 12px;
}
.tfi-ticket button {
    background: #a78250;
    color: #0e0b0b;
    border: 0;
    padding: 10px 18px;
    border-radius: 7px;
}
.tfi-ticket a {
    color: #e8c38b;
}
.tfi-ticket .msg {
    border-left: 3px solid #d9b177;
    padding: 10px;
    margin: 8px 0;
    background: #24202b;
    white-space: pre-wrap;
}

/* Extraido de modules/usercp/tfi_support.php - bloco 2 */

/* TFI Tickets V3: scoped, responsive chat presentation */
.tfi-ticket .tfi-conversation,
.tfisup .tfi-conversation {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 18px 0;
}
.tfi-ticket .msg,
.tfisup .msg {
    width: fit-content;
    max-width: min(88%, 720px);
    min-width: 180px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(217, 177, 119, 0.25);
    background: #24252f;
    color: #f4eee8;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    margin: 0;
    overflow-wrap: anywhere;
}
.tfi-ticket .msg.tfi-player,
.tfisup .msg.tfi-player {
    align-self: flex-end;
    background: #28352e;
    border-left: 0;
    border-right: 3px solid #69a782;
}
.tfi-ticket .msg.tfi-staff,
.tfisup .msg.tfi-staff {
    align-self: flex-start;
    background: #292630;
    border-left: 3px solid #d9b177;
}
.tfi-ticket .tfi-msg-meta,
.tfisup .tfi-msg-meta {
    font-size: 12px;
    color: #d9b177;
    margin-bottom: 8px;
}
.tfi-ticket .tfi-media,
.tfisup .tfi-media {
    margin-top: 12px;
    max-width: 100%;
}
.tfi-ticket .tfi-media img,
.tfisup .tfi-media img {
    display: block;
    max-width: 100%;
    max-height: 360px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 9px;
    cursor: zoom-in;
}
.tfi-ticket .tfi-media video,
.tfisup .tfi-media video {
    display: block;
    width: 100%;
    max-width: 540px;
    max-height: 360px;
    border-radius: 9px;
    background: #080808;
}
.tfi-ticket .tfi-media-caption,
.tfisup .tfi-media-caption {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 5px;
    overflow-wrap: anywhere;
}
@media (max-width: 600px) {
    .tfi-ticket .msg,
    .tfisup .msg {
        max-width: 96%;
        min-width: 0;
        padding: 11px;
    }
    .tfi-ticket .panelx,
    .tfisup .panelx {
        padding: 11px;
    }
}

/* Extraido de modules/usercp/tfi_support.php - bloco 3 */
.tfi-live-notice {
    padding: 12px 15px;
    border: 1px solid #d9b177;
    background: #30281c;
    color: #fff4dc;
    border-radius: 9px;
    margin: 12px 0;
}
.tfi-live-notice[hidden] {
    display: none !important;
}
.tfi-live-notice button {
    margin-left: 10px;
    background: #d9b177;
    color: #17120d;
    border: 0;
    border-radius: 6px;
    padding: 7px 12px;
    cursor: pointer;
}

/* Extraido de modules/usercp/tfi_support.php - bloco 4 */

.tfi-ticket {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}
.tfi-ticket *,
.tfi-ticket *::before,
.tfi-ticket *::after {
    box-sizing: border-box;
}
.tfi-ticket .panelx {
    max-width: 100%;
    min-width: 0;
}
.tfi-ticket .tfi-create-panel[hidden] {
    display: none !important;
}
.tfi-ticket .tfi-support-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin: 16px 0;
}
.tfi-ticket #tfi-toggle-create {
    font-weight: 700;
    background: #d9b177;
    color: #15141d;
    padding: 13px 20px;
    cursor: pointer;
}
.tfi-ticket .tfi-support-hint {
    font-size: 13px;
    color: #bcb7b0;
}
.tfi-ticket .tfi-create-heading,
.tfi-ticket .tfi-list-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.tfi-ticket .tfi-create-heading h3,
.tfi-ticket .tfi-list-head h3 {
    margin: 0 0 10px;
}
.tfi-ticket #tfi-close-create {
    background: transparent;
    color: #e8c38b;
    border: 1px solid #7d684c;
    cursor: pointer;
}
.tfi-ticket input,
.tfi-ticket select,
.tfi-ticket textarea {
    display: block;
    max-width: 100%;
    min-width: 0;
    font-size: 16px;
}
.tfi-ticket input[type="file"] {
    white-space: normal;
    overflow: hidden;
}
.tfi-ticket .tfi-ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    padding: 14px 12px;
    border: 1px solid #453a31;
    border-radius: 10px;
    margin-top: 10px;
    background: #1d1c25;
    min-width: 0;
}
.tfi-ticket .tfi-ticket-item:hover {
    background: #292631;
    border-color: #d9b177;
}
.tfi-ticket .tfi-ticket-main {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    overflow-wrap: anywhere;
}
.tfi-ticket .tfi-ticket-main strong {
    font-size: 14px;
    color: #e8c38b;
}
.tfi-ticket .tfi-ticket-main small,
.tfi-ticket .tfi-list-head > span,
.tfi-ticket .tfi-empty {
    color: #bcb7b0;
}
.tfi-ticket .tfi-unread-pill {
    flex: none;
    background: #a33a42;
    color: white;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.tfi-ticket .tfi-conversation {
    min-width: 0;
}
@media (max-width: 767px) {
    .tfi-ticket .panelx {
        padding: 12px;
    }
    .tfi-ticket .tfi-ticket-item {
        align-items: flex-start;
        flex-direction: column;
    }
    .tfi-ticket .msg {
        max-width: 96%;
    }
    .tfi-ticket .tfi-support-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .tfi-ticket #tfi-toggle-create {
        width: 100%;
    }
    .tfi-ticket h2 {
        font-size: 23px;
    }
    .tfi-ticket .tfi-editor-tools {
        max-width: 100%;
        gap: 6px;
    }
}
