/* snol.css — SNOL packet builder, ported from EquiCopy employee app, adapted to
   Juris Sync dark theme (var(--navy) heading-text -> var(--text)). @media wrappers
   preserved (responsive #panel-snol overrides only apply at their breakpoints).
   Reuses .mtc-upload-* from mtc.css. */

/* ═══════════════════════════════════════════════════════════
   SNOL EDITOR MODAL
   ═══════════════════════════════════════════════════════════ */
.snol-edit-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 35, 0.62);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.snol-edit-inner {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(13, 43, 78, 0.35);
  width: 100%;
  max-width: 1000px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.snol-edit-header {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface2) 100%);
}
.snol-edit-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 10px;
}
.snol-edit-close:hover { color: var(--danger); }
.snol-edit-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-wrap: wrap;
}
.snol-edit-canvas-wrap {
  flex: 1;
  overflow: auto;
  background: #e9edf5;
  padding: 18px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}
.snol-edit-canvas-wrap canvas {
  display: block;
  box-shadow: 0 4px 20px rgba(13, 43, 78, 0.18);
  border-radius: 2px;
  background: #fff;
}
.snol-edit-overlay-layer {
  position: absolute;
  /* Exactly over the canvas — populated by JS */
  top: 18px;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}
.snol-overlay {
  position: absolute;
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  padding: 6px 8px;
  font-family: 'Helvetica', Arial, sans-serif;
  font-size: 11px;
  line-height: 1.35;
  color: #111;
  cursor: move;
  white-space: pre-wrap;
  pointer-events: auto;
  user-select: none;
  box-shadow: 0 2px 8px rgba(13, 43, 78, 0.15);
  overflow: hidden;
}
.snol-overlay:hover { border-color: var(--navy-light); }
.snol-overlay .snol-overlay-remove {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.snol-overlay .snol-overlay-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  cursor: nwse-resize;
  background:
    linear-gradient(135deg, transparent 0 50%, var(--accent) 50% 100%);
  border-bottom-right-radius: 4px;
}
.snol-overlay.dragging { opacity: 0.88; border-style: dashed; }
/* ── Main panels — tighter padding ── */
  main,
  #panel-crm main,
  #panel-records main,
  #panel-mtc main,
  #panel-imr main,
  #panel-snol main,
  #panel-chat main { padding: 16px 12px 60px; }
/* ── SNOL ── */
  .snol-fields-grid { grid-template-columns: 1fr !important; }
/* ═══════════════════════════════════════════════════════════
   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; }
#panel-snol .dropzone .dz-logo { width: 84px; margin-bottom: 10px; }
#panel-snol .dropzone .dz-title { font-size: 0.78rem; }
#panel-snol .dropzone .dz-sub { font-size: 0.63rem; }
#panel-snol .dz-tag { font-size: 0.6rem; padding: 2px 10px; }
#panel-snol .slot-required,
#panel-snol .slot-optional,
#panel-snol .slot-done { font-size: 0.6rem; padding: 1px 6px; }
