/* Nebula R&D — shared website layer for document pages (toolbar, fillable fields, WhatsApp button).
   Screen-only UI is marked [data-nrd-ui] and hidden in print. */

@media screen {
  body.nrd-doc { padding-top: 76px !important; }
  body.nrd-doc .controls { top: 76px; }          /* quote calculator side panel */
  body.nrd-admin .nrd-bar { background: rgba(30, 27, 75, .97); }  /* admin pages: indigo bar */
}

.nrd-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: rgba(15, 23, 42, .96); backdrop-filter: blur(8px);
  font-family: 'Inter', system-ui, sans-serif; font-size: 14px; color: #e2e8f0;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .18);
}
.nrd-bar a, .nrd-bar button { font: inherit; }
.nrd-home { color: #fff; text-decoration: none; font-weight: 800; white-space: nowrap; }
.nrd-home b { color: #5eead4; }
.nrd-title { color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.nrd-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.nrd-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.25); background: transparent;
  color: #e2e8f0; padding: 7px 12px; border-radius: 8px; cursor: pointer; text-decoration: none; font-weight: 600; font-size: 13px; white-space: nowrap;
}
.nrd-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.nrd-btn.wa { background: #25d366; border-color: #25d366; color: #052e16; }
.nrd-btn.wa:hover { background: #1fbe5a; color: #052e16; }
.nrd-saved { font-size: 12px; color: #5eead4; opacity: 0; transition: opacity .3s; white-space: nowrap; }
.nrd-saved.show { opacity: 1; }

.nrd-hint {
  max-width: 210mm; margin: 0 auto 12px; background: #ecfeff; border: 1px solid #a5f3fc; color: #155e75;
  border-radius: 10px; padding: 10px 14px; font: 13px/1.5 'Inter', system-ui, sans-serif;
}
.nrd-hint b { color: #0e7490; }

/* Floating WhatsApp button */
.nrd-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 999; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); text-decoration: none; transition: transform .15s;
}
.nrd-fab:hover { transform: scale(1.07); }
.nrd-fab svg { width: 30px; height: 30px; fill: #fff; }
.nrd-fab-tip {
  position: fixed; right: 86px; bottom: 30px; z-index: 999; background: #fff; color: #0f172a; border-radius: 10px;
  padding: 7px 12px; font: 600 13px 'Inter', system-ui, sans-serif; box-shadow: 0 4px 14px rgba(0,0,0,.15); pointer-events: none;
}

/* Fillable fields */
.nrd-edit, .nrd-blank { outline: none; cursor: text; }
.nrd-blank {
  display: inline-block; min-width: 70px; border-bottom: 1px solid #94a3b8; padding: 0 3px; line-height: 1.3; vertical-align: baseline;
}
@media screen {
  .nrd-edit { background: #fbfffe; transition: background .15s; }
  .nrd-edit:hover, .nrd-blank:hover { background: #f0fdfa; }
  .nrd-edit:focus, .nrd-blank:focus { background: #ecfeff; box-shadow: inset 0 0 0 2px #14b8a6; }
  .nrd-edit:empty::before { content: attr(data-ph); color: #94a3b8; font-style: italic; }
  .nrd-blank:empty::before { content: '\00a0'; }
}
.opt.nrd-tick, .nrd-box, .nrd-chip { cursor: pointer; user-select: none; }
.opt.nrd-tick.on::before { content: "\2611"; font-weight: 700; }
.opt.nrd-tick.on { color: #0f766e; font-weight: 600; }
@media screen { .opt.nrd-tick:hover { color: #0d9488; } }
.nrd-box { color: #0d9488; font-size: 1.15em; }
.nrd-box.on { font-weight: 700; }
.nrd-chip {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; margin: 1px 2px;
  border: 1px solid #cbd5e1; border-radius: 50%; font-size: 8.5pt;
}
.nrd-chip.on { background: #0d9488; border-color: #0d9488; color: #fff; font-weight: 700; }
td.nrd-pick { cursor: pointer; }
@media screen { td.nrd-pick:hover { background: #f0fdfa; } }

@media print {
  [data-nrd-ui] { display: none !important; }
  .nrd-edit, .nrd-blank { background: none !important; box-shadow: none !important; }
}

@media (max-width: 720px) {
  .nrd-title, .nrd-saved, .nrd-btn .lbl-long { display: none; }
  .nrd-bar { gap: 8px; padding: 8px 10px; }
  .nrd-actions { flex: 1; justify-content: flex-end; overflow-x: auto; }
  .nrd-btn { padding: 7px 9px; }
  .nrd-fab-tip { display: none; }
  .nrd-hint { margin: 0 8px 10px; }
}
