/* 智能报表：输入框附带图片。颜色全部复用 smartreport.css 的 --sr-* 变量 */
.sr-att-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sr-att-item { position: relative; height: 48px; min-width: 48px; border-radius: 10px; overflow: hidden; background: var(--sr-fill); border: 1px solid var(--sr-line-2); cursor: zoom-in; outline: none; flex-shrink: 0; }
.sr-att-item img { display: block; height: 100%; width: auto; max-width: 96px; object-fit: cover; }
.sr-att-item:hover, .sr-att-item:focus-visible { border-color: var(--sr-iris); box-shadow: var(--sr-glow-sel); }
.sr-att-x { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: rgba(17, 20, 32, .72); color: #fff; font-size: 15px; line-height: 20px; text-align: center; cursor: pointer; opacity: .8; transition: opacity .15s, background .15s; }
.sr-att-item:hover .sr-att-x, .sr-att-item:focus-visible .sr-att-x, .sr-att-x:focus-visible { opacity: 1; }
.sr-att-cnt { font-size: 12px; color: var(--sr-t3); white-space: nowrap; }
.sr-att-x:hover { opacity: 1; background: var(--sr-bad); }
.sr-att-wait { display: flex; align-items: center; justify-content: center; cursor: progress; border-style: dashed; }
.sr-att-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--sr-line-3); border-top-color: var(--sr-iris); animation: sr-att-rot .8s linear infinite; }
@keyframes sr-att-rot { to { transform: rotate(360deg); } }
.sr-att-mask { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; background: var(--sr-cover); backdrop-filter: blur(6px); cursor: zoom-out; outline: none; }
.sr-att-mask img { max-width: 92vw; max-height: 90vh; border-radius: 12px; box-shadow: var(--sr-sh-pop); background: #fff; cursor: default; }
.sr-att-close { position: absolute; top: 16px; right: 20px; width: 36px; height: 36px; border: 1px solid var(--sr-line-2); border-radius: 50%; background: var(--sr-pop-bg); color: var(--sr-t1); font-size: 22px; line-height: 32px; cursor: pointer; }
/* 附图按钮 / 拖入高亮（集成时使用） */
.sr-att-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--sr-t3); cursor: pointer; }
.sr-att-btn:hover:not(:disabled) { background: var(--sr-fill-2); color: var(--sr-t1); }
.sr-att-btn:disabled { opacity: .45; cursor: not-allowed; }
.sr-att-over { box-shadow: var(--sr-glow-sel) !important; outline: 1px dashed var(--sr-iris-line); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { .sr-att-spin { animation-duration: 2.4s; } }
