/* enhancements.css — estilos para drag-drop, busca global e modo lote */

/* ---- DROPZONE OVERLAY ---- */
#dz-overlay{
  position:fixed; inset:0; background:rgba(13,27,42,.78);
  display:none; align-items:center; justify-content:center;
  z-index:9000; backdrop-filter:blur(6px);
}
#dz-overlay.show{ display:flex; }
.dz-inner{
  border:2px dashed #fff; border-radius:18px; padding:48px 64px;
  text-align:center; color:#fff; max-width:520px;
}
.dz-icon{ font-size:64px; line-height:1; margin-bottom:12px; }
.dz-title{ font-size:22px; font-weight:600; margin-bottom:6px; }
.dz-sub{ opacity:.8; font-size:14px; }

/* ---- DIFF MODAL ---- */
.diff-cards{
  display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:14px 0 18px;
}
.diff-card{
  background:rgba(127,127,127,.08); border:1px solid rgba(127,127,127,.2);
  border-radius:10px; padding:12px; text-align:center;
}
.diff-card .num{ font-size:24px; font-weight:700; }
.diff-card.ok{ border-color:#16a34a55; background:#16a34a18; }
.diff-card.warn{ border-color:#f59e0b55; background:#f59e0b18; }
.diff-card.mut{ opacity:.7; }
.diff-tabs{ display:flex; gap:6px; border-bottom:1px solid rgba(127,127,127,.2); margin-bottom:10px; }
.diff-tab{
  background:transparent; border:none; padding:8px 14px; cursor:pointer;
  border-bottom:2px solid transparent; color:inherit; font:inherit;
}
.diff-tab.active{ border-bottom-color:currentColor; font-weight:600; }
.diff-body{ max-height:46vh; overflow:auto; }

/* ---- GLOBAL SEARCH (Ctrl+K) ---- */
.gs-backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.55);
  display:flex; align-items:flex-start; justify-content:center;
  z-index:9100; padding-top:12vh; backdrop-filter:blur(4px);
}
.gs-card{
  width:min(640px, 92vw); background:var(--bg, #0D1B2A); color:var(--fg,#fff);
  border:1px solid rgba(127,127,127,.3); border-radius:14px;
  box-shadow:0 20px 60px rgba(0,0,0,.5); overflow:hidden;
}
[data-theme="light"] .gs-card{ background:#fff; color:#0D1B2A; }
#gs-input{
  width:100%; padding:16px 18px; border:none; outline:none;
  background:transparent; color:inherit; font-size:16px;
  border-bottom:1px solid rgba(127,127,127,.2);
}
.gs-results{ max-height:55vh; overflow:auto; }
.gs-item{
  padding:10px 16px; border-bottom:1px solid rgba(127,127,127,.12);
  cursor:pointer;
}
.gs-item:hover{ background:rgba(127,127,127,.1); }
.gs-line1{ display:flex; gap:12px; align-items:baseline; }
.gs-pedido{ font-weight:700; font-family:monospace; }
.gs-paciente{ opacity:.9; }
.gs-line2{ display:flex; gap:14px; font-size:12px; opacity:.7; margin-top:3px; }
.gs-tag{ margin-left:auto; padding:1px 8px; border-radius:999px; background:rgba(127,127,127,.2); }
.gs-empty{ padding:18px; text-align:center; opacity:.6; }
.gs-hint{ padding:8px 16px; font-size:11px; opacity:.55; border-top:1px solid rgba(127,127,127,.15); }

/* ---- BULK MODE ---- */
#btn-bulk.active{ background:#16a34a; color:#fff; border-color:#16a34a; }
body.bulk-on table.dt th:first-child,
body.bulk-on table.dt td.bulk-cb{ width:36px; text-align:center; }
#bulk-bar{
  position:fixed; left:50%; bottom:18px; transform:translateX(-50%);
  background:#0D1B2A; color:#fff; padding:10px 16px; border-radius:999px;
  display:flex; gap:10px; align-items:center; z-index:8000;
  box-shadow:0 12px 36px rgba(0,0,0,.4);
}
[data-theme="light"] #bulk-bar{ background:#1B263B; }
#bulk-bar .btn{ padding:6px 12px; }

