.q-toolbar {
    margin: 0;
}

.question-description {
    margin-bottom:20px;
}

/* Attachments */
.q-attachments-box {
    margin-top:15px;
}

.q-file-item {
    margin-bottom: 15px;
    display: block;
    width: 100%;
}
.q-file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.q-file-delete {
    cursor:pointer;
    margin-left:8px;
    font-weight:bold;
}

.pe-popup {
    position: fixed;
    top:0; left:0; bottom:0; right:0;
    background: rgba(0,0,0,0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    max-width: none;
}
.pe-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    width: 320px;
}

/* POPUP EDIT */
.pe-popup input,
.pe-popup textarea {
    width: 100% !important;
    padding: 10px !important;
    border: 1px solid #aaa !important;
    border-radius: 6px !important;
    margin-bottom: 14px !important;
    font-size: 14px !important;
    font-family: 'Source Serif Pro', serif !important;
    box-sizing: border-box !important;
}

body .container:has(.pe-wrapper) {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Inline image */
.inline-img {
    max-width: 90vw !important;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 10px;
}

/* Inline button */
.q-actions {
    display:flex;
    flex: auto;
    align-items:center;
    gap:10px;
    flex-shrink:0;
}

.file-btn {
    margin-left: 10px;
    padding: 2px 8px;
    font-size: 13px;
    border: 0px solid #000;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.file-btn:hover {
    background: #e8e8e8;
}

/* Delete X */
.q-file-delete {
    cursor: pointer;
    margin-left: 0;
    font-weight: bold;
}

/* Tooltip */
.q-file-delete[title] {
    position: relative;
}

.q-file-delete[title]:hover::after {
    content: attr(title);
    position: absolute;
    top: -28px;
    left: -5px;
    background: #111;
    color: #fff;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 9999;
}
