/* Auto-paired 1:1 with js/quickmode.js — edit styles for that module here */

.qm-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(15, 36, 55, .6);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 1; visibility: visible;
  transition: opacity .18s ease, visibility .18s ease;
}

.qm-overlay.hide { opacity: 0; visibility: hidden; pointer-events: none; }

.qm-modal {
  width: 100%; max-width: 440px;
  background: #322c318a; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 20px 60px -18px rgba(0,0,0,.45);
  padding: 22px 22px 18px;
}

.qm-modal.np-modal {
  max-width: 420px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.np-shell {
  position: relative;
  background: #e8f5e9;
  border: 6px solid #4caf50;
  border-radius: 28px;
  padding: 28px 18px 14px;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.35);
}

.np-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #69f0ae;
  color: #1b5e20;
  font: 700 13px var(--body);
  padding: 4px 16px;
  border-radius: 999px;
  border: 2px solid #2e7d32;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(0,0,0,.08);
}

.np-textarea {
  display: block;
  width: 100%;
  min-height: 220px;
  resize: vertical;
  border: 2px solid #a5d6a7;
  border-radius: 12px 12px 4px 12px;
  background: #fff;
  padding: 14px 16px;
  font: 600 16px/1.45 var(--mono);
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.04);
}

.np-textarea:focus {
  border-color: #43a047;
  box-shadow: 0 0 0 3px rgba(76,175,80,.22);
}

.np-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.np-btn {
  border: 0;
  border-radius: 8px;
  padding: 8px 18px;
  font: 700 13px var(--body);
  cursor: pointer;
  transition: transform .12s, filter .12s;
  box-shadow: 0 2px 0 rgba(0,0,0,.12);
}

.np-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }

.np-btn:active { transform: translateY(1px); box-shadow: none; }

.np-btn-copy {
  background: #fff;
  color: #374151;
  border: 1.5px solid #cbd5e1;
}

.np-btn-save {
  background: #22c55e;
  color: #fff;
}

.np-btn-clear {
  background: #ef4444;
  color: #fff;
}

.np-hint {
  margin: 10px 4px 2px;
  font: 500 11px var(--mono);
  color: #2e7d32;
  text-align: center;
  line-height: 1.4;
}

.np-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  color: #4b5563;
  font-size: 14px;
  cursor: pointer;
}

.np-close:hover { background: #fff; color: #111; }

[data-theme="dark"] .np-shell {
  background: #1b3a24;
  border-color: #2e7d32;
}

[data-theme="dark"] .np-textarea {
  background: #0f1a12;
  border-color: #2e7d32;
  color: #e8f5e9;
}

[data-theme="dark"] .np-hint { color: #a5d6a7; }

[data-theme="dark"] .np-badge {
  background: #2e7d32;
  color: #e8f5e9;
  border-color: #69f0ae;
}

.qm-title { font: 800 18px var(--disp); color: var(--ink); margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }

.qm-title .bolt { font-size: 20px; }

.qm-sub { font: 12.5px var(--mono); color: var(--mut); margin-bottom: 16px; line-height: 1.5; }

.qm-row { margin-bottom: 12px; }

.qm-label { display: block; font: 600 11.5px var(--mono); letter-spacing: .5px; text-transform: uppercase; color: var(--mut); margin-bottom: 6px; }

.qm-choices { display: flex; gap: 8px; flex-wrap: wrap; }

.qm-choices button {
  flex: 1; min-width: 70px; padding: 12px 10px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fbfcfd; color: var(--ink2);
  font: 700 14px var(--mono); cursor: pointer; transition: .15s;
}

.qm-choices button:hover { border-color: var(--amber); color: var(--ink); }

.qm-choices button.on { border-color: var(--amber); background: rgba(217,119,6,.1); color: var(--amber); }

.qm-slot { border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: #fbfcfd; }

.qm-slot .qm-label { margin-bottom: 4px; }

.qm-slot select, .qm-slot input {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font: 500 14px var(--body); color: var(--ink); background: #fff;
}

.qm-slot select { margin-bottom: 8px; }

.qm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

.qm-actions .btn { padding: 10px 18px; }

.qm-time-dropdown {
  position: absolute; z-index: 60; min-width: 150px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); padding: 6px; margin-top: 4px;
}

.qm-time-dropdown button {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 8px 10px; border-radius: 6px; font: 600 13px var(--mono); color: var(--ink2); cursor: pointer;
}

.qm-time-dropdown button:hover { background: var(--green-bg); color: var(--green-d); }

table.log.qm-cepat1 .col-panggil,
table.log.qm-cepat1 .col-teknik,
table.log.qm-cepat1 .col-selesai,
table.log.qm-cepat1 .col-masalah,
table.log.qm-cepat1 .col-disposisi,
table.log.qm-cepat1 .col-wo {
  display: none !important;
}

table.log.qm-cepat2 .col-panggil,
table.log.qm-cepat2 .col-teknik,
table.log.qm-cepat2 .col-kegiatan,
table.log.qm-cepat2 .col-masalah,
table.log.qm-cepat2 .col-disposisi,
table.log.qm-cepat2 .col-wo {
  display: none !important;
}
