/* Compact PC management pages; all rules are scoped away from H5 and the editor. */
.pc-compact .pc-main { padding-top: 18px; padding-bottom: 16px; }
.pc-compact .pc-page-heading { gap: 12px; margin-bottom: 14px; }
.pc-compact .pc-page-heading h1 { font-size: 24px; margin-bottom: 3px; }
.pc-compact .pc-filter { padding: 8px; margin-bottom: 14px !important; border-radius: 10px; gap: 8px 0; --bs-gutter-x: 16px; }
.pc-compact .pc-filter .form-control, .pc-compact .pc-filter .form-select { min-height: 34px; padding-top: 6px; padding-bottom: 6px; }
.pc-compact .pc-filter .btn { padding-top: 6px; padding-bottom: 6px; }
.pc-compact .pc-card-grid { gap: 14px; }
.pc-compact .pc-pagination > nav { margin-top: 14px; padding: 10px 14px; }
.pc-compact .pc-empty-state { padding: 48px 20px; }
.pc-compact .pc-info-banner { padding: 12px 16px; margin-bottom: 14px; gap: 12px; border-radius: 12px; }
.pc-compact .pc-info-banner p { margin-top: 2px; }
.pc-compact .pc-info-banner .pc-feature-icon { width: 36px; height: 36px; font-size: 19px; }

/* Resource title, tag and visible text actions. */
.pc-resource-list .pc-resource-card { padding: 10px; border-radius: 12px; }
.pc-resource-list .pc-resource-card .style3-img-wrapper > img { height: 130px; border-radius: 8px; }
.pc-resource-info { min-width: 0; padding-top: 8px; }
.pc-resource-info h6 { font-size: 14px; }
.pc-resource-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.pc-resource-tag { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #667b98; }
.pc-resource-tag.is-empty { color: #8492a6; }
.pc-resource-tag > i { margin-right: 3px; }
.pc-resource-list .pc-resource-card .style3-overlay { padding-top: 9px; }
.pc-resource-list .pc-resource-card .style3-actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; width: 100%; }
.pc-resource-list .pc-resource-card .style3-btn { width: auto; height: 30px; gap: 3px; padding: 0 3px; border-radius: 6px; font-size: 12px; white-space: nowrap; }
.pc-resource-list .pc-resource-card .style3-btn.danger:hover { color: #bd3346; background: #ffe7eb; }

/* Existing entity metadata fits below each title. */
.pc-compact .pc-work-card { padding: 12px; border-radius: 12px; }
.pc-compact .pc-work-card .card-img-top { height: 112px; border-radius: 8px; }
.pc-compact .pc-work-card .card-body { min-width: 0; padding: 9px 0 10px; }
.pc-compact .pc-work-card .style1-title { font-size: 15px; margin-bottom: 3px; }
.pc-work-address { margin: 0 0 7px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pc-work-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; color: #788aa3; font-size: 12px; line-height: 1.6; }
.pc-work-meta > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.pc-work-meta i, .pc-work-address i { color: #91a4c0; }
.pc-work-meta .pc-work-author { display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.pc-compact .pc-work-card .style1-actions { gap: 8px; }
.pc-compact .pc-work-card .style1-actions .btn { padding-top: 6px; padding-bottom: 6px; }
.pc-compact .pc-groups-grid .pc-work-card { grid-template-columns: 190px minmax(0, 1fr) 196px; gap: 16px; }
.pc-compact .pc-groups-grid .pc-work-card .card-img-top { height: 108px; }
.pc-compact .pc-groups-grid .pc-work-card .card-body { padding: 0; }
.pc-compact .pc-groups-grid .pc-work-card .style1-title { font-size: 16px; margin-bottom: 5px; }
.pc-compact .pc-groups-grid .pc-work-card .pc-work-address { margin-bottom: 10px; }

/* Fileinput retains its native actions, status and progress in horizontal rows. */
.pc-compact .pc-upload-layout { gap: 16px; }
.pc-compact .pc-upload-panel, .pc-compact .pc-upload-aside .pc-panel { padding: 16px; border-radius: 12px; }
.pc-compact .pc-upload-aside { gap: 14px; }
.pc-compact .pc-upload-aside h2 { margin: 10px 0 8px; font-size: 15px; }
.pc-compact .pc-upload-aside p { margin-bottom: 8px; }
.pc-compact .pc-upload-guide h2 { margin-top: 0; }
.pc-upload .pc-upload-panel .alert { padding: 10px 36px 10px 12px; margin-bottom: 12px; }
.pc-upload .pc-upload-panel .alert .btn-close { padding: 12px; }
.pc-upload-tag { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pc-upload-tag label { flex-shrink: 0; margin: 0; }
.pc-upload-tag .form-control { flex: 1; min-width: 0; }
.pc-upload .file-preview { margin: 12px 0; }
.pc-upload .file-drop-zone { min-height: 240px; padding: 8px; }
.pc-upload .file-drop-zone-title { padding: 36px 12px; font-size: 16px; }
.pc-upload .file-drop-zone-title::before { width: 48px; height: 48px; line-height: 46px; font-size: 30px; margin-bottom: 12px; }
.pc-upload .file-drop-zone:has(.file-preview-frame) { min-height: 0; }
.pc-upload .file-preview-thumbnails { display: flex; flex-direction: column; gap: 8px; }
.pc-upload .file-preview-frame.krajee-default { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 10px; float: none; width: 100%; margin: 0; padding: 8px; text-align: left; background: #fff; }
.pc-upload .file-preview-frame.krajee-default .kv-file-content { width: 72px; height: 54px; overflow: hidden; border-radius: 6px; background: #f2f6fc; }
.pc-upload .file-preview-frame .kv-file-content .kv-preview-data { width: 100% !important; height: 100% !important; max-width: 100%; max-height: 100%; object-fit: cover; }
.pc-upload .file-preview-frame .file-preview-other { padding: 0; }
.pc-upload .file-preview-frame .file-preview-other-frame { display: grid; place-items: center; width: 100%; height: 100%; }
.pc-upload .file-preview-frame .file-other-icon { font-size: 30px; line-height: 1; }
.pc-upload .file-preview-frame.krajee-default .file-thumbnail-footer { display: grid; grid-template-columns: minmax(0, 1fr) 16px auto; align-items: center; gap: 4px 10px; height: auto; min-width: 0; }
.pc-upload .file-preview-frame .file-footer-caption { min-width: 0; margin: 0; padding: 0; text-align: left; }
.pc-upload .file-preview-frame .file-caption-info, .pc-upload .file-preview-frame .file-size-info { width: auto; height: auto; margin: 0; line-height: 1.5; }
.pc-upload .file-preview-frame .file-caption-info { color: var(--pc-ink); font-size: 13px; font-weight: 600; }
.pc-upload .file-preview-frame .file-size-info { color: #8192ad; font-size: 11px; }
.pc-upload .file-preview-frame .file-upload-indicator { float: none; margin: 0; }
.pc-upload .file-preview-frame .file-footer-buttons { display: flex; gap: 4px; float: none; }
.pc-upload .file-preview-frame .file-footer-buttons .btn { justify-content: center; min-width: 28px; height: 28px; padding: 4px 6px; border-radius: 6px; }
.pc-upload .file-preview-frame .file-thumb-progress { position: static; grid-column: 1 / -1; grid-row: 2; }
.pc-upload .file-preview-frame .file-thumb-progress .progress { height: 12px; margin: 2px 0 0; }
.pc-upload .file-preview-frame .file-upload-stats { margin: 2px 0 0; text-align: left; }
.pc-upload .file-thumbnail-footer > .clearfix { display: none; }

/* Single-column group form, from details through scene selection to save. */
.pc-compact .pc-group-form { max-width: 960px; margin: 0; border-radius: 12px; }
.pc-compact .pc-group-form .card-header { padding: 13px 18px !important; }
.pc-compact .pc-group-form .card-body { padding: 16px 18px !important; }
.pc-group-form #mainForm { display: block; }
.pc-group-form .pc-group-field { margin-bottom: 14px; }
.pc-group-form .pc-group-details > .row { margin: 0 -4px 14px !important; }
.pc-group-form .form-label { margin-bottom: 6px; }
.pc-group-form .form-control { min-height: 36px; padding-top: 7px; padding-bottom: 7px; }
.pc-group-create .upload-drop-zone { width: 100%; height: 60px; flex-direction: row; gap: 8px; margin-bottom: 10px; border-radius: 8px; }
.pc-group-create .upload-drop-zone > i { font-size: 20px; }
.pc-group-create #previewContainer { max-height: 360px; }
.pc-group-create .img-preview-box { height: 100px; }
.pc-compact .pc-group-form .img-card .card-body { padding: 8px !important; }
.pc-group-form-actions { display: flex; justify-content: flex-end; border-top: 1px solid var(--pc-line); padding-top: 12px; margin-top: 14px; }
.pc-group-form-actions .btn { min-width: 140px; }
@media (min-width: 992px) {
    .pc-group-form #previewContainer > .col-6 { width: 33.333333%; }
}
@media (max-width: 991px) {
    .pc-compact .pc-groups-grid .pc-work-card { grid-template-columns: 150px minmax(0, 1fr); gap: 10px 14px; }
    .pc-compact .pc-groups-grid .pc-work-card .style1-actions { grid-column: 2; }
}
@media (max-width: 680px) {
    .pc-resource-list .pc-resources-grid { grid-template-columns: 1fr; }
    .pc-compact .pc-page-heading h1 { font-size: 22px; }
    .pc-compact .pc-groups-grid .pc-work-card { grid-template-columns: 1fr; }
    .pc-compact .pc-groups-grid .pc-work-card .style1-actions { grid-column: auto; }
    .pc-upload .file-preview-frame.krajee-default { grid-template-columns: 52px minmax(0, 1fr); gap: 8px; }
    .pc-upload .file-preview-frame.krajee-default .kv-file-content { width: 52px; height: 48px; }
    .pc-upload .file-preview-frame.krajee-default .file-thumbnail-footer { gap: 4px 6px; }
}
