.label-text {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    width: fit-content;
    line-height: 1.4;
    white-space: nowrap;
}

.label-text b {
    display: inline;
    color: var(--danger);
    line-height: inherit;
}

.required-note {
    margin: -6px 0 16px;
    color: var(--muted);
    font-size: 13px;
}

.required-note b {
    color: var(--danger);
}

.upload-field input[type="file"] {
    padding: 10px;
    background: #f8faff;
}

.gallery-title {
    margin-top: 22px !important;
}

.study-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.study-gallery a {
    min-width: 0;
    color: var(--text);
}

.study-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.study-gallery small {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-section {
    grid-column: 1 / -1;
    padding: 10px 16px;
    background: #eef4ff;
    color: var(--blue);
    font-weight: 700;
}

.review-item b {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.pdf-export {
    margin-left: 12px;
    margin-bottom: 10px;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.panel-table-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
}

.panel-table-actions strong,
.panel-table-actions small {
    display: block;
}

.panel-table-actions small {
    color: var(--muted);
}

.btn-sm {
    padding: 6px 9px;
    border-radius: 7px;
    font-size: 12px;
    white-space: nowrap;
}

.btn-view {
    color: var(--blue);
    background: var(--blue-soft);
}

.btn-pdf {
    color: #6042b7;
    background: #f0ebff;
    border-color: #ddd2ff;
}

.row-actions .btn-delete {
    color: #fff;
    background: var(--danger);
    border: 1px solid var(--danger);
    padding: 6px 9px;
}

.row-actions .btn-delete:hover {
    color: #fff;
    background: #a92f3d;
    border-color: #a92f3d;
}

.action-icon {
    font-size: 14px;
    line-height: 1;
}

.inline-delete-form {
    display: inline-flex !important;
    margin: 0;
}

.row-actions .option-delete-button {
    color: var(--danger);
}

.row-actions .option-delete-button:hover {
    color: #a92f3d;
    text-decoration: underline;
}

@media (max-width: 700px) {
    .panel-table-actions {
        align-items: stretch;
        flex-direction: column;
    }
}
