/* fz-myqueue.css — My tasks floating queue (7 Okt 2026).
   Stacked ABOVE the chat FAB (fz-chat.css .fsw-chat-fab, right:20px
   bottom:86px, 54px, z 39), same 66px rhythm chat used above the assistant
   FAB (ops-theme.css .fsw-assist-fab, bottom:20px). Mobile follows the SAME
   decision already made for chat (7 Okt 2026): stays a plain floating
   button, pushed above the bottom tab bar when one is present — never
   pulled into the top icon row. */

.fsw-myq-fab {
  position: fixed; right: 20px; bottom: 152px; z-index: 38; /* one below chat's 39 */
  width: 54px; height: 54px; border-radius: var(--fz-r-pill);
  background: var(--fz-surface-1); color: var(--fz-text-1);
  border: 1px solid var(--fz-border-strong);
  display: grid; place-items: center; cursor: pointer; padding: 0;
  box-shadow: var(--fz-shadow-pop);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.fsw-myq-fab:hover { transform: translateY(-2px); }
.fsw-myq-fab:active { transform: scale(.96); }
.fsw-myq-fab.is-open { opacity: 0; pointer-events: none; }
.fsw-myq-badge {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--fz-r-pill); background: var(--fz-crit); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--fz-bg, var(--fz-surface-1));
}

/* Pil Prev/Next — menggantikan tombol bulat SELAMA antrean aktif, posisi
   dan tinggi yang sama supaya tidak melompat. */
.fsw-myq-nav {
  position: fixed; right: 20px; bottom: 152px; z-index: 38;
  height: 54px; padding: 0 var(--fz-s-2) 0 var(--fz-s-3);
  display: flex; align-items: center; gap: var(--fz-s-1);
  border-radius: var(--fz-r-pill); background: var(--fz-surface-1); border: 1px solid var(--fz-border-strong);
  box-shadow: var(--fz-shadow-pop);
}
.fsw-myq-nav-btn {
  width: 32px; height: 32px; border-radius: var(--fz-r-pill); border: 0; background: transparent;
  color: var(--fz-text-1); display: grid; place-items: center; cursor: pointer;
}
.fsw-myq-nav-btn:hover:not(:disabled) { background: var(--fz-surface-hover); }
.fsw-myq-nav-btn:disabled { opacity: .35; cursor: not-allowed; }
.fsw-myq-nav-n { font-size: 12.5px; font-weight: 650; color: var(--fz-text-2); font-variant-numeric: tabular-nums; min-width: 34px; text-align: center; }
.fsw-myq-nav-x { width: 24px; height: 24px; border-radius: var(--fz-r-pill); border: 0; background: var(--fz-surface-2); color: var(--fz-text-3); display: grid; place-items: center; cursor: pointer; margin-left: var(--fz-s-1); }
.fsw-myq-nav-x:hover { color: var(--fz-text-1); }

.fsw-myq-panel {
  position: fixed; right: 20px; bottom: 152px; z-index: 1200;
  width: 340px; max-width: calc(100vw - 32px);
  height: 480px; max-height: calc(100vh - 180px);
  background: var(--fz-surface-1); border: 1px solid var(--fz-border);
  border-radius: var(--fz-r-lg); box-shadow: var(--fz-shadow-pop);
  display: flex; flex-direction: column; overflow: hidden;
}
.fsw-myq-h {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--fz-s-3) var(--fz-s-4); border-bottom: 1px solid var(--fz-border);
  flex: 0 0 auto;
}
.fsw-myq-h-t { display: flex; align-items: center; gap: var(--fz-s-2); font-weight: 650; font-size: 14.5px; color: var(--fz-text-1); }
.fsw-myq-h-n {
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--fz-r-pill);
  background: var(--fz-surface-3); color: var(--fz-text-2); font-size: 11.5px; font-weight: 700;
  display: inline-grid; place-items: center;
}

.fsw-myq-list { flex: 1 1 auto; overflow-y: auto; padding: var(--fz-s-2); display: flex; flex-direction: column; gap: 2px; }
.fsw-myq-empty { margin: auto; color: var(--fz-text-3); font-size: 13px; text-align: center; padding: var(--fz-s-4); }

/* Satu baris = satu tugas — sengaja lebih tipis dari OpsMyQcCard (kartu
   katalog My Workload): "simplified view" eksplisit dari pemilik, panel ini
   untuk melesat cepat, bukan membaca detail. */
.fsw-myq-row {
  display: flex; align-items: center; gap: var(--fz-s-2); width: 100%; text-align: left;
  padding: var(--fz-s-2) var(--fz-s-2); border-radius: var(--fz-r-md); border: 0; background: transparent; cursor: pointer;
}
.fsw-myq-row:hover { background: var(--fz-surface-hover); }
.fsw-myq-row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fsw-myq-row-cl { font-size: 13px; font-weight: 650; color: var(--fz-text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsw-myq-row-sub { font-size: 11.5px; color: var(--fz-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 9 Okt 2026 — tanggal jatuh tempo + batch, baris ketiga (opsMyqMeta). Lebih
   kecil dan lebih redup dari fsw-myq-row-sub (langkah): urutan baca tetap
   klien → langkah → kapan/batch, bukan ketiganya sama berat. */
.fsw-myq-row-meta { font-size: 10.5px; color: var(--fz-text-3); opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fsw-myq-row.is-late .fsw-myq-row-meta { color: var(--fz-crit-ink, var(--fz-crit)); opacity: .9; }
.fsw-myq-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fz-crit); flex: 0 0 auto; }
.fsw-myq-go { color: var(--fz-text-3); flex: 0 0 auto; }
.fsw-myq-row.is-late .fsw-myq-row-cl { color: var(--fz-crit-ink, var(--fz-crit)); }

@media (max-width: 768px) {
  .fsw-myq-fab, .fsw-myq-nav { right: 16px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  body.has-fsw-bottombar .fsw-myq-fab, body.has-fsw-bottombar .fsw-myq-nav { bottom: calc(160px + env(safe-area-inset-bottom, 0px)); }
  .fsw-myq-fab:hover { transform: none; }
  .fsw-myq-panel {
    right: 16px; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: auto; height: min(560px, calc(100vh - 100px));
  }
}
