.dayo-attachment-layer{position:fixed;inset:0;z-index:40000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(15,23,42,.55);isolation:isolate}
.dayo-attachment-card{display:flex;flex-direction:column;width:min(100%,1100px);height:min(88dvh,900px);min-height:0;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 20px 80px #0004}
.dayo-attachment-card.dayo-attachment-info-only{width:min(100%,700px);height:auto;max-height:90dvh}
.dayo-attachment-card>header,.dayo-attachment-card>footer{display:flex;align-items:center;gap:12px;padding:14px 18px;flex-shrink:0;border-bottom:1px solid #e2e8f0}
.dayo-attachment-card>header b{flex:1;min-width:0;overflow-wrap:anywhere}
.dayo-attachment-card>header button,.dayo-attachment-card>footer a{display:inline-flex;padding:10px 14px;min-height:42px;border:1px solid #cbd5e1;border-radius:8px;background:white;color:#075e65;text-decoration:none;cursor:pointer;flex-shrink:0}
.dayo-attachment-stage{display:flex;flex-direction:column;flex:1;min-height:0;overflow:auto;padding:16px;gap:12px}
.dayo-attachment-stage>p{margin:0;overflow-wrap:anywhere;line-height:1.6}
.dayo-attachment-stage>img{display:block;max-width:100%;min-height:0;flex:1;object-fit:contain}
.dayo-attachment-stage>iframe{width:100%;min-height:240px;flex:1;border:0}
.dayo-attachment-card>footer{border-top:1px solid #e2e8f0;border-bottom:0;flex-wrap:wrap}
.attachment-error,#stPoAmountError{color:#b42318;white-space:normal;overflow-wrap:anywhere}
.attachment-count{white-space:nowrap;cursor:pointer;margin-left:6px;background:transparent;border:0;color:#087f8c}
.unified-attachment-name{min-width:0;overflow-wrap:anywhere}.unified-attachment-actions{flex-wrap:wrap}
.dayo-pending-attachments{display:flex;flex-direction:column;gap:9px;padding:12px;border:1px dashed #a8b7c9;border-radius:8px;background:#f8fbff}.dayo-pending-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.dayo-pending-head label{cursor:pointer}.dayo-pending-head input{display:none}.dayo-pending-attachments>small{color:#64748b}.dayo-pending-attachments .unified-attachment-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #e2e8f0}.dayo-pending-attachments .unified-attachment-item:last-child{border-bottom:0}.dayo-pending-attachments .unified-attachment-name{display:flex;flex-direction:column}.dayo-pending-attachments .unified-attachment-actions{display:flex;gap:6px}
.dayo-upload-summary,.batch1-attachment-retry,.it-attachment-retry{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;padding:8px 10px;border:1px solid #f59e0b;background:#fffbeb;color:#92400e;border-radius:6px;font-size:12px}
[data-upload-status="failed"]{border-color:#fca5a5!important;background:#fff7f7!important}
[data-upload-status="uploaded"]{border-color:#86efac!important;background:#f0fdf4!important}
.dayo-excel-preview{display:flex;flex:1;min-height:0;flex-direction:column;border:1px solid #dce3ec;border-radius:8px;background:#fff;overflow:hidden}
.dayo-excel-tabs{display:flex;gap:4px;flex:0 0 auto;overflow-x:auto;padding:8px;background:#f4f7fb;border-bottom:1px solid #dce3ec}
.dayo-excel-tab{min-height:32px;padding:5px 12px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#334155;white-space:nowrap;cursor:pointer}
.dayo-excel-tab.active{border-color:#1677ff;background:#1677ff;color:#fff}
.dayo-excel-table-wrap{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.dayo-excel-table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;font-size:13px;line-height:1.4}
.dayo-excel-table th,.dayo-excel-table td{min-width:96px;max-width:360px;padding:7px 9px;border-right:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left;vertical-align:top;background:#fff}
.dayo-excel-table th{position:sticky;top:0;z-index:2;background:#edf5ff;color:#1e3a5f;font-weight:650}
.dayo-excel-empty,.dayo-excel-limit{margin:12px;color:#64748b}
@media(max-width:760px){
 .dayo-attachment-layer{padding:0}
 .dayo-attachment-card{width:100%;height:100dvh;border-radius:0}
 .dayo-attachment-card>header{padding:12px}.dayo-attachment-card>header b{font-size:14px}
 .dayo-attachment-card>footer{padding-bottom:calc(12px + env(safe-area-inset-bottom))}
 .dayo-attachment-stage{padding:12px}.dayo-attachment-stage iframe{min-height:180px}
 .dayo-excel-table{font-size:12px}.dayo-excel-table th,.dayo-excel-table td{min-width:84px;padding:6px 7px}
 .dayo-pending-head,.dayo-pending-attachments .unified-attachment-item{align-items:stretch;flex-direction:column}.dayo-pending-attachments .unified-attachment-actions{width:100%}
}
