/* mtc.css — Motion-to-Compel packet styling, ported from the EquiCopy employee
   app and adapted to Juris Sync's dark theme. The packet's legal deposition-officer
   entity remains Equicopy (see brand.js); only the app UI is Juris-themed.
   Adaptation: employee `color:var(--navy)` (dark heading text on white) remapped to
   `var(--text)`. @media wrappers preserved so the mobile 1-column upload grid only
   applies at its breakpoint (was previously leaking to all widths). */

.tool-blurb { font-size:0.85rem; line-height:1.6; color:var(--text-muted); margin-bottom:18px; }

.case-info-full { grid-column: 1 / -1; }
/* MTC Tab styles */
.mtc-timeline-entry {
  display: grid;
  grid-template-columns: 120px 130px 140px 1fr 160px 28px;
  gap: 6px;
  align-items: start;
  margin-bottom: 6px;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}
.mtc-timeline-entry input, .mtc-timeline-entry select {
  width: 100%;
  padding: 4px 6px;
  font-size: 0.78rem;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  background: white;
}
.mtc-timeline-header {
  display: grid;
  grid-template-columns: 120px 130px 140px 1fr 160px 28px;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #555;
  padding: 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.mtc-remove-btn {
  background: #e53e3e;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 4px 6px;
  line-height: 1;
}
.mtc-remove-btn:hover { background: #c53030; }
.mtc-doc-check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 0.8rem;
}
.mtc-doc-check-item.present { background: #f0fff4; color: #276749; }
.mtc-doc-check-item.missing { background: #fff5f5; color: #c53030; }
.mtc-warn-banner {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: #856404;
  margin-top: 6px;
}
.mtc-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #f0f4f8;
  border-radius: 5px;
  margin-bottom: 4px;
  font-size: 0.8rem;
  color: #2d3748;
}
.mtc-file-item .mtc-file-type {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mtc-file-item .mtc-file-type.pdf { background:#fee2e2;color:#991b1b; }
.mtc-file-item .mtc-file-type.docx { background:#dbeafe;color:#1e40af; }
.mtc-file-item .mtc-file-type.txt { background:#dcfce7;color:#166534; }
.mtc-file-item .mtc-file-remove { margin-left:auto;cursor:pointer;color:#e53e3e;font-size:1rem;line-height:1; }
/* === MTC CLASSIFICATION BADGE === */
.mtc-doc-class { display:inline-block; padding:1px 8px; border-radius:4px; font-size:0.71rem; font-weight:700; margin-left:6px; text-transform:uppercase; }
.mtc-doc-class.subpoena { background:#d4edda; color:#155724; }
.mtc-doc-class.declaration { background:#cce5ff; color:#004085; }
.mtc-doc-class.hipaa-auth { background:#d1ecf1; color:#0c5460; }
.mtc-doc-class.due-diligence { background:#fff3cd; color:#856404; }
.mtc-doc-class.proof-of-service { background:#e2d9f3; color:#432874; }
.mtc-doc-class.follow-up { background:#fde8d8; color:#7d3c00; }
.mtc-doc-class.non-compliance { background:#f8d7da; color:#721c24; }
.mtc-doc-class.unknown { background:#e9ecef; color:#495057; }
.mtc-missing-warning { background:#fff3cd; border:1px solid #ffc107; border-radius:6px; padding:10px 14px; font-size:0.82rem; margin-bottom:8px; }
.mtc-missing-warning .miss-label { font-weight:700; color:#856404; }
.mtc-packet-preview { border:1px solid #dde3ec; border-radius:8px; overflow:hidden; margin-top:12px; }
.mtc-packet-preview summary { padding:10px 16px; font-weight:700; font-size:0.88rem; cursor:pointer; background:#f0f4fa; }
.mtc-packet-preview-body { padding:14px 18px; font-size:0.83rem; white-space:pre-wrap; line-height:1.7; font-family:'DM Sans',sans-serif; }
/* === MTC PACKET CREATOR === */
.mtc-upload-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.mtc-upload-card { border:1.5px solid var(--border); border-radius:12px; padding:20px; background:var(--surface); }
.mtc-upload-card-title { font-size:0.95rem; font-weight:700; color:var(--text); margin-bottom:4px; }
.mtc-upload-card-desc { font-size:0.78rem; color:var(--text-muted); margin-bottom:14px; }
.mtc-dropzone { padding:32px 20px !important; }
.mtc-dd-toggle { display:flex; gap:6px; margin-bottom:14px; }
.mtc-dd-toggle .method-btn {
  padding:6px 16px; font-size:0.8rem; font-weight:600;
  border:1.5px solid var(--border); border-radius:20px; background:var(--surface);
  color:var(--text-muted); cursor:pointer; transition:all 0.15s;
}
.mtc-dd-toggle .method-btn.active { background:var(--navy); color:#fff; border-color:var(--text); }
.mtc-dd-toggle .method-btn:hover:not(.active) { background:var(--surface2); }
#mtc-dd-text {
  width:100%; padding:12px 16px; border:1.5px solid var(--border); border-radius:10px;
  font-family:'DM Sans',sans-serif; font-size:0.88rem; color:var(--text);
  background:var(--surface2); resize:vertical; outline:none; box-sizing:border-box;
  line-height:1.6;
}
#mtc-dd-text:focus { border-color:var(--accent); background:#fff; }
.mtc-progress-item {
  display:flex; align-items:center; gap:12px; padding:10px 14px;
  border-bottom:1px solid var(--surface2); transition:background 0.2s;
}
.mtc-progress-item:last-child { border-bottom:none; }
/* Attorney save/load row */
.mtc-atty-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-bottom: 10px;
}
.mtc-atty-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mtc-atty-actions { margin-left: auto; }
.mtc-atty-load {
  padding: 7px 32px 7px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.84rem;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235a7a9e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  cursor: pointer;
  color: var(--text);
  font-weight: 500;
  outline: none;
  transition: border-color .15s;
}
.mtc-atty-load:hover, .mtc-atty-load:focus { border-color: var(--accent); }
.mtc-atty-save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px !important;
  font-size: 0.88rem !important;
}
.mtc-atty-save.mtc-atty-saved {
  background: var(--success) !important;
  border-color: var(--success) !important;
}
.mtc-atty-help {
  display: inline-block;
  margin-left: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}
.mtc-progress-icon {
  width:28px; height:28px; border-radius:50%; display:flex; align-items:center;
  justify-content:center; font-size:0.75rem; font-weight:700; flex-shrink:0;
  transition:all 0.3s;
}
.mtc-progress-icon.waiting { background:#e5e7eb; color:#9ca3af; }
.mtc-progress-icon.working { background:var(--accent); color:#fff; animation:mtc-pulse 1.2s ease-in-out infinite; }
.mtc-progress-icon.complete { background:#10b981; color:#fff; }
.mtc-progress-icon.error { background:#ef4444; color:#fff; }
.mtc-progress-label { flex:1; font-size:0.88rem; font-weight:600; color:var(--text); }
.mtc-progress-status { font-size:0.78rem; color:var(--text-muted); font-weight:500; min-width:100px; text-align:right; }
.mtc-progress-status.complete { color:#10b981; }
.mtc-progress-status.error { color:#ef4444; }
@keyframes mtc-pulse { 0%,100%{opacity:1;} 50%{opacity:0.6;} }
.mtc-preview-exhibit { background:var(--surface2); border:1px solid var(--border); border-radius:8px; padding:14px 18px; font-size:0.83rem; color:var(--text-muted); text-align:center; }
@media (max-width:700px) {
  .mtc-upload-grid { grid-template-columns:1fr; }
}
/* ═══════════════════════════════════════════════════════════
   SNOL tab — uniform 15% size reduction on upload boxes
   ═══════════════════════════════════════════════════════════ */
#panel-snol .mtc-upload-grid { gap: 14px; }
#panel-snol .mtc-upload-card { padding: 15px; border-radius: 12px; }
#panel-snol .mtc-upload-card-title { font-size: 0.81rem; }
#panel-snol .mtc-upload-card-desc { font-size: 0.66rem; margin-bottom: 10px; }
#panel-snol .mtc-dropzone { padding: 20px 14px !important; }


/* .ti-ico — inline icons in upload-card titles (not mtc-prefixed; added manually). */
.ti-ico { width: 15px; height: 15px; vertical-align: -2px; margin-right: 7px; color: var(--accent, #06b6d4); }

/* Dropzone logo sizing: Juris styles `.dz-logo-img`, the ported markup uses `.dz-logo`. */
#panel-mtc .dropzone .dz-logo { width: 84px; height: auto; display: block; margin: 0 auto 10px; pointer-events: none; }

/* Record Extraction dropzone logo (markup uses .dz-logo; Juris styles .dz-logo-img). */
#panel-scraper .dropzone .dz-logo { width: 46px; height: auto; display: block; margin: 0 auto 8px; pointer-events: none; }

/* Records Summary dropzone logo. */
#panel-records-summary .dropzone .dz-logo { width: 46px; height: auto; display: block; margin: 0 auto 8px; pointer-events: none; }
