
.cdft-wrap{max-width:1200px;margin:20px auto}
.cdft-card,.cdft-dashboard .cdft-stat{background:#fff;border:1px solid #ddd;border-radius:12px;padding:18px;box-shadow:0 2px 10px rgba(0,0,0,.04)}
.cdft-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.cdft-form label{display:block;font-weight:600;margin:8px 0 6px}
.cdft-form input[type=text],.cdft-form input[type=date],.cdft-form input[type=file],.cdft-form select,.cdft-form textarea{width:100%;padding:10px;border:1px solid #ccc;border-radius:8px;background:#fff}
.cdft-form input[type=file]{padding:8px}
.cdft-actions,.cdft-form button{margin-top:12px}
.cdft-form button,.cdft-open-feed{background:#1f4b8f;color:#fff;border:none;border-radius:8px;padding:10px 14px;cursor:pointer}
.cdft-table{width:100%;border-collapse:collapse}
.cdft-table th,.cdft-table td{padding:10px;border-bottom:1px solid #eee;text-align:left;vertical-align:top}
.cdft-badge{display:inline-block;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700}
.cdft-pending{background:#fff3cd;color:#856404}
.cdft-in_progress{background:#d1ecf1;color:#0c5460}
.cdft-completed{background:#d4edda;color:#155724}
.cdft-pagination{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}
.cdft-pagination a{padding:8px 12px;border:1px solid #ccc;border-radius:8px;text-decoration:none}
.cdft-pagination a.active{background:#1f4b8f;color:#fff;border-color:#1f4b8f}
.cdft-dashboard{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-bottom:14px}
.cdft-stat span{display:block;color:#666}
.cdft-stat strong{font-size:28px}
.cdft-filters{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 16px}
.cdft-filters input,.cdft-filters select{padding:10px;border:1px solid #ccc;border-radius:8px}
.cdft-notice{margin-bottom:14px;padding:12px 14px;background:#e7f5ea;border:1px solid #b7e1c0;border-radius:10px}
.cdft-modal{display:none;position:fixed;inset:0;z-index:99999}
.cdft-modal.open{display:block}
.cdft-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.45)}
.cdft-modal-content{position:relative;max-width:900px;max-height:90vh;overflow:auto;margin:4vh auto;background:#fff;border-radius:14px;padding:20px;z-index:2}
.cdft-close{position:absolute;top:10px;right:10px;background:#eee;border:none;border-radius:50%;width:36px;height:36px;font-size:22px;cursor:pointer}
.cdft-thread{display:flex;flex-direction:column;gap:12px;margin:16px 0}
.cdft-msg{background:#f7f8fa;border:1px solid #e5e7eb;padding:12px;border-radius:10px}
.cdft-msg-main{background:#eef5ff}
.cdft-msg-meta{font-size:12px;color:#666;margin-bottom:6px}
.cdft-attachments{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.cdft-attachments a{font-size:13px;background:#f0f4ff;padding:6px 8px;border-radius:8px;text-decoration:none}
.cdft-thread-head p{margin:4px 0}
@media (max-width: 768px){
  .cdft-table-wrap{overflow:auto}
  .cdft-modal-content{margin:2vh 10px;max-height:96vh}
}

.cdft-inline-status-form,.cdft-quick-status-form{display:inline-block;margin-left:8px}
.cdft-small-btn{padding:8px 10px;font-size:12px;background:#1f4b8f;color:#fff;border:none;border-radius:8px;cursor:pointer}
.cdft-quick-status-wrap{margin:8px 0 14px}

.cdft-paste-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #666;
}

.cdft-paste-message {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #e8f7ec;
  border: 1px solid #b8e0c2;
  color: #1f6f35;
  font-size: 13px;
}

.cdft-paste-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.cdft-paste-thumb {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}

/* v1.1.4 paste/upload preview controls */
.cdft-paste-ui{margin-top:6px}.cdft-paste-ui .cdft-paste-hint{margin-top:6px;font-size:12px;color:#666}.cdft-paste-ui .cdft-paste-message{margin-top:6px;padding:8px 10px;border-radius:8px;font-size:13px}.cdft-paste-ui .cdft-paste-success{background:#e8f7ec;border:1px solid #b8e0c2;color:#1f6f35}.cdft-paste-ui .cdft-paste-error{background:#fff3cd;border:1px solid #f0d98c;color:#7a5b00}.cdft-paste-ui .cdft-paste-preview{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.cdft-paste-thumb-wrap{position:relative;width:82px;height:82px}.cdft-paste-thumb-wrap .cdft-paste-thumb{width:82px;height:82px;object-fit:cover;border:1px solid #ddd;border-radius:8px;background:#fff;display:block}.cdft-paste-remove{position:absolute;top:-7px;right:-7px;width:22px;height:22px;border-radius:50%;border:1px solid #b00020;background:#fff;color:#b00020;font-size:17px;line-height:18px;font-weight:700;cursor:pointer;padding:0;box-shadow:0 1px 4px rgba(0,0,0,.18)}.cdft-paste-remove:hover{background:#b00020;color:#fff}

/* v1.1.5 in-page image popup above feedback thread modal */
.cdft-image-popup{display:none;position:fixed;inset:0;z-index:1000000;align-items:center;justify-content:center;padding:24px;box-sizing:border-box}
.cdft-image-popup.open{display:flex}
.cdft-image-popup-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72)}
.cdft-image-popup-box{position:relative;z-index:2;max-width:min(96vw,1200px);max-height:92vh;background:#fff;border-radius:12px;padding:12px;box-shadow:0 18px 60px rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center}
.cdft-image-popup-img{max-width:calc(96vw - 48px);max-height:calc(92vh - 48px);object-fit:contain;display:block;border-radius:8px}
.cdft-image-popup-close{position:absolute;top:-14px;right:-14px;width:36px;height:36px;border-radius:50%;border:1px solid rgba(0,0,0,.15);background:#fff;color:#111;font-size:28px;line-height:30px;font-weight:700;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.25);padding:0}
.cdft-image-popup-close:hover{background:#f3f3f3}
@media (max-width:768px){.cdft-image-popup{padding:10px}.cdft-image-popup-box{max-width:98vw;max-height:94vh;padding:8px}.cdft-image-popup-img{max-width:calc(98vw - 24px);max-height:calc(94vh - 24px)}}
