/* =====================================================================
   PICKER GUDANG & KALENDER — gaya mandiri (px, tidak bergantung --u)
   Dipakai oleh modal #gudangPick dan #rangePick di topbar.
   ===================================================================== */
.overlay { --u: 1px; }               /* fallback: modal berada di luar .app */
.pick-modal { max-width: 472px; }
.pick-modal .modal-head { padding: 15px 18px; }
.pick-modal .modal-head h3 { font-size: 14.5px; letter-spacing: -.2px; }
.pick-modal .modal-body { padding: 14px 18px 16px; }
.pick-modal .modal-foot { padding: 12px 18px; }

/* ---------- ringkasan + pencarian (gudang) ---------- */
.pick-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.pick-count { font-size: 10.5px; font-weight: 800; letter-spacing: .45px; text-transform: uppercase; color: #9a86ad; }
.pick-total { font-size: 11px; font-weight: 800; color: #8b1fa8; background: #fbeaff; border-radius: 99px; padding: 4px 9px; white-space: nowrap; }

.pick-search { position: relative; margin-bottom: 10px; }
.pick-search .svg-i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #a48cba; pointer-events: none; }
.pick-search input {
  width: 100%; height: 40px; border: 1.5px solid #ece0f6; border-radius: 11px; background: #fcfaff;
  padding: 0 12px 0 35px; font-family: inherit; font-size: 12.5px; font-weight: 600; color: #2b173c; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.pick-search input::placeholder { color: #ab9bbd; font-weight: 500; }
.pick-search input:focus { border-color: #c026d3; background: #fff; box-shadow: 0 0 0 3px #f9edff; }

/* ---------- daftar pilihan ---------- */
.pick-modal .pick-list {
  display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 1px 2px 1px 1px;
  max-height: min(58vh, 458px); overflow-y: auto; overscroll-behavior: contain;
}
.pick-modal .pick-list::-webkit-scrollbar { width: 6px; }
.pick-modal .pick-list::-webkit-scrollbar-track { background: transparent; }
.pick-modal .pick-list::-webkit-scrollbar-thumb { background: #e6d7f3; border-radius: 99px; }
.pick-modal .pick-list::-webkit-scrollbar-thumb:hover { background: #d6c0ea; }

.pick-modal .pick-item {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 18px; align-items: center;
  gap: 11px; width: 100%; text-align: left; padding: 9px 11px; cursor: pointer;
  border: 1.5px solid #efe6f8; border-radius: 13px; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s;
}
.pick-modal .pick-item:hover { border-color: #dfc2f2; background: #fdfaff; }
.pick-modal .pick-item.on { border-color: #c026d3; background: #fdf5ff; box-shadow: 0 0 0 3px #f9ecff; }
.pick-modal .pick-item[hidden] { display: none; }
.pick-modal .pick-list.fade-b {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent 100%);
}

.pick-modal .pick-item .ic {
  width: 36px; height: 36px; border-radius: 11px; background: #f7ecff; color: #9b1fb8;
  display: grid; place-items: center; flex: 0 0 auto;
}
.pick-modal .pick-item .ic .svg-i { width: 18px; height: 18px; }
.pick-modal .pick-item.on .ic { background: #f3d9ff; color: #86128f; }

.pick-tx { min-width: 0; display: block; }
.pick-modal .pick-item .t {
  display: flex; align-items: center; gap: 6px; font-size: 12.6px; font-weight: 800;
  color: #2b173c; line-height: 1.25; letter-spacing: -.15px;
}
.pick-modal .pick-item .t .kode {
  font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .4px; color: #8b5aab;
  background: #f5ebfd; padding: 2px 5px; border-radius: 5px; flex: 0 0 auto;
}
.pick-modal .pick-item .s {
  display: block; font-size: 10.8px; font-weight: 600; color: #9482a8; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pick-r { text-align: right; line-height: 1.15; }
.pick-r b { display: block; font-size: 12px; font-weight: 800; color: #2b173c; letter-spacing: -.2px; }
.pick-r em { font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #a08db4; }

.pick-modal .pick-item .radio {
  margin-left: 0; width: 17px; height: 17px; border-radius: 50%; border: 2px solid #ddcfea; background: #fff; flex: 0 0 auto;
}
.pick-modal .pick-item.on .radio { border-color: #c026d3; background: #c026d3; box-shadow: inset 0 0 0 3px #fff; }

.pick-empty { padding: 22px 10px; text-align: center; font-size: 12px; font-weight: 600; color: #a08db4; }

/* ---------- kalender ---------- */
.cal-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 13px; }
.cal-presets button {
  font-family: inherit; font-size: 10.8px; font-weight: 700; color: #6b5478;
  background: #f8f3fd; border: 1.5px solid transparent; border-radius: 99px; padding: 6px 11px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.cal-presets button:hover { background: #f4e7fd; color: #8b1fa8; }
.cal-presets button.on { background: #fbeaff; border-color: #e9bff7; color: #9b1fb8; }

.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.cal-nav b { font-size: 12.5px; font-weight: 800; color: #2b173c; letter-spacing: -.2px; }
.cal-nav button {
  width: 28px; height: 28px; display: grid; place-items: center; cursor: pointer;
  border: 1.5px solid #efe6f8; border-radius: 9px; background: #fff; color: #6b5478; font-size: 15px; line-height: 1;
  transition: border-color .15s, color .15s, background .15s;
}
.cal-nav button:hover { border-color: #dcbff0; background: #fdf8ff; color: #9b1fb8; }

.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow span { text-align: center; font-size: 9.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #a08db4; padding: 1px 0 6px; }
.cal-grid button {
  height: 34px; border: 0; background: transparent; border-radius: 9px; cursor: pointer;
  font-family: inherit; font-size: 11.8px; font-weight: 700; color: #453057; display: grid; place-items: center;
  transition: background .12s, color .12s;
}
.cal-grid button:hover { background: #f7ecff; color: #8b1fa8; }
.cal-grid button.today { box-shadow: inset 0 0 0 1.5px #e2c6f4; }
.cal-grid button.in { background: #fbeaff; color: #9b1fb8; border-radius: 0; }
.cal-grid button.start, .cal-grid button.end {
  background: #c026d3; color: #fff; border-radius: 9px; box-shadow: 0 3px 8px rgba(192, 38, 211, .26);
}
.cal-grid button.start:hover, .cal-grid button.end:hover { background: #a91cbb; color: #fff; }
.cal-blank { display: grid; place-items: center; height: 34px; font-size: 11.5px; font-weight: 600; color: #d6c8e4; }

.cal-sum {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px;
  padding: 10px 12px; border-radius: 11px; background: #faf6fe; border: 1.5px dashed #ecdcf8;
}
.cal-sum .lb { font-size: 9.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #a08db4; }
.cal-sum b { display: block; font-size: 12.2px; font-weight: 800; color: #2b173c; margin-top: 2px; letter-spacing: -.2px; }
.cal-sum .days { font-size: 10.5px; font-weight: 800; color: #9b1fb8; background: #fbeaff; padding: 4px 9px; border-radius: 8px; white-space: nowrap; }

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  .pick-modal { max-width: 100%; }
  .pick-modal .modal-body { padding: 12px 14px 14px; }
  .pick-modal .pick-list { max-height: 52vh; }
  .pick-modal .pick-item { grid-template-columns: 32px minmax(0, 1fr) auto 17px; gap: 9px; padding: 9px 10px; }
  .pick-modal .pick-item .ic { width: 32px; height: 32px; border-radius: 10px; }
  .cal-grid button, .cal-blank { height: 36px; font-size: 12.5px; }
  .cal-presets button { font-size: 10.5px; padding: 6px 10px; }
}
