/* ── DETAIL VIEW ── */
.detail-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: nowrap;
}
.detail-header-inner {
  display: flex; align-items: center; gap: 24px; flex: 1; min-width: 0;
}
.detail-nota {
  min-width: 80px; height: 80px; border-radius: 14px; padding: 0 10px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--surface2); border: 1px solid var(--border); flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}
.detail-nota .dn { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800; }
.detail-nota .dl { font-size: 9px; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; }
.detail-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.detail-field { background: var(--surface2); border-radius: 10px; padding: 14px; border: 1px solid var(--border); }
.detail-field .df-label { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 1.5px; font-family: 'Syne', sans-serif; margin-bottom: 4px; }
.detail-field .df-val { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 600; }
.detail-obs { background: var(--surface2); border-radius: 10px; padding: 16px; border: 1px solid var(--border); font-size: 13px; line-height: 1.7; color: var(--text2); }

/* Deixar os blocos internos mais opacos para legibilidade com qualquer capa */
.modal-overlay.has-cover .detail-nota,
.modal-overlay.has-cover .detail-field,
.modal-overlay.has-cover .detail-obs,
.modal-overlay.has-cover .status-btn,
.modal-overlay.has-cover .modal-close {
  background: rgba(6, 6, 14, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
}
.modal-overlay.has-cover .form-input {
  background: rgba(6, 6, 14, 0.78);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92) !important;
}
.modal-overlay.has-cover .form-input::placeholder { color: rgba(255, 255, 255, 0.35); }
.modal-overlay.has-cover .form-label {
  color: rgba(255, 255, 255, 0.55);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
.modal-overlay.has-cover .modal-header h2 {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  color: #fff;
}
.modal-overlay.has-cover .nota-display {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text3); }
.empty-state .emoji { font-size: 48px; margin-bottom: 16px; }
.empty-state .empty-icon { display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--text3); }
.empty-state .empty-icon svg,
.empty-state svg.empty-svg-icon { width: 48px; height: 48px; }
.empty-state p { font-family: 'Syne', sans-serif; font-size: 14px; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 10px; padding: 12px 18px;
  font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 600;
  transform: translateY(80px); opacity: 0; transition: all 0.3s; z-index: 200;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.toast.show  { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 3px solid var(--green); color: var(--green); }
.toast.error   { border-left: 3px solid var(--red);   color: var(--red); }

