/* v0.21.0: Kiểm duyệt, thông báo, nhập mẫu, font, khung cài đặt Mẫu báo giá. */
.ap-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px;border-bottom:1px solid #eaecf0}
.ap-tabs button{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;font-weight:600;color:#475467;cursor:pointer}
.ap-tabs button[aria-selected=true]{border-bottom-color:var(--brand,#1f5fbf);color:var(--brand,#1f5fbf)}
.ap-tabs em{font-style:normal;font-size:12px;min-width:18px;padding:0 6px;border-radius:999px;background:#f2f4f7;color:#475467}
.ap-tabs em:empty{display:none}
.ap-table td{vertical-align:top}
.ap-kind{display:inline-flex;align-items:center;gap:6px;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
.ap-kind .solid-icon{width:14px;height:14px}
.ap-kind.publish{background:#eaf1fb;color:#1f5fbf}
.ap-kind.delete{background:#fef3f2;color:#b42318}
.ap-status{display:inline-block;padding:1px 8px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}
.ap-status.pending{background:#fffaeb;color:#b54708}
.ap-status.approved{background:#ecfdf3;color:#067647}
.ap-status.rejected{background:#fef3f2;color:#b42318}
.ap-status.cancelled{background:#f2f4f7;color:#475467}
.ap-note{margin-top:4px;padding:6px 8px;border-left:3px solid #f04438;border-radius:4px;background:#fff6f5;color:#912018;font-size:13px;white-space:pre-wrap}
.ap-date{white-space:nowrap}
.ap-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.ap-actions .small{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.ap-actions .solid-icon{width:14px;height:14px}
.ap-approve{border-color:#12b76a;color:#067647}
.ap-approve:hover{background:#12b76a;color:#fff}
#dialog.ap-dialog{width:min(1200px,calc(100vw - 32px))}
.ap-info{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:10px}
.ap-paper{max-height:60vh;overflow:auto;border:1px solid #eaecf0;border-radius:8px}
.ap-detail{display:grid;grid-template-columns:max-content 1fr;gap:6px 16px;margin:0}
.ap-detail dt{color:#667085}
.ap-detail dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.ap-asset{max-width:260px;max-height:200px;border-radius:8px;margin-bottom:10px;object-fit:contain;background:#f2f4f7}
.ap-banner{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:12px 14px;border-radius:10px;flex-wrap:wrap}
.ap-banner>.solid-icon{width:22px;height:22px;flex:none}
.ap-banner>div:first-of-type{flex:1;min-width:220px}
.ap-banner.pending{background:#fffaeb;border:1px solid #fedf89;color:#93370d}
.ap-banner.rejected{background:#fef3f2;border:1px solid #fecdca;color:#912018}
.ap-banner-actions{display:flex;gap:8px}
.bell-approval,.bell-notice{display:block;width:100%;text-align:left;border:0;background:none;cursor:pointer;font:inherit;color:inherit}
.bell-notice.unread{background:#eff4ff}
.bell-notice.unread .bell-title::before{content:"";display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:50%;background:var(--brand,#1f5fbf)}
.bell-more{display:block;padding:6px 14px 10px;font-size:13px;font-weight:600}
.bell-readall{border:0;background:none;padding:0;color:var(--brand,#1f5fbf);font-size:12px;cursor:pointer}
/* Mẫu báo giá: nhập mẫu, font, khung cài đặt */
.lb-import{display:inline-flex;align-items:center;gap:6px;cursor:pointer;margin:0}
.lb-import .solid-icon{width:16px;height:16px}
#dialog.lb-import-dialog{width:min(1280px,calc(100vw - 32px))}
.lb-import-notes{display:grid;gap:4px;margin-bottom:10px}
.lb-import-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:16px;align-items:start}
.lb-import-grid h3{margin:6px 0 8px;font-size:15px}
.lb-import-cols input{min-width:120px;margin:0}
.lb-import-cols select{min-width:140px;margin:0}
.lb-import-cols tr.unmatched td{background:#fffaeb}
.lb-import-fields td{padding:5px 8px;font-size:13px}
.lb-import-fields tr.missing td{color:#667085}
.lb-import-swatch{display:inline-block;width:14px;height:14px;margin-right:6px;border:1px solid #0002;border-radius:3px;vertical-align:-2px}
.lb-import-preview{position:sticky;top:0}
.lb-import-thumb{position:relative;height:420px;overflow:hidden;border:1px solid #e4e7ec;border-radius:10px;background:#eef1f5}
.lb-import-thumb .lb-thumb-inner{position:absolute;top:12px;left:50%;width:1123px;transform:translateX(-50%) scale(.46);transform-origin:top center;pointer-events:none}
.lb-import-thumb.portrait .lb-thumb-inner{width:794px;transform:translateX(-50%) scale(.5)}
.lb-import-thumb .quote-paper{min-width:0;box-shadow:0 8px 30px #0002}
.font-files{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.lb-font-tools{display:grid;gap:6px}
.lb-font-tools>button{justify-self:start;display:inline-flex;align-items:center;gap:6px}
.lb-font-tools .solid-icon{width:14px;height:14px}
.lb-font-list{display:grid;gap:4px}
.lb-font-item{display:flex;align-items:center;gap:8px;padding:4px 8px;border:1px solid #eaecf0;border-radius:6px;font-size:13px}
.lb-font-item span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lb-font-item .icon-btn{width:28px;height:28px}
.lb-panel-width{padding:0 4px 8px;border-bottom:1px solid #eaecf0;margin-bottom:4px}
@media (max-width:900px){.lb-import-grid{grid-template-columns:1fr}.font-files{grid-template-columns:1fr}}
