/* ==========================================================================
   guide-jadwal.css — video modul "Jadwal & roster shift" (app/views/guide/jadwal/*.php), prefiks mjd-.
   Tiap langkah: teks kiri (.gv-copy, guide.css) + satu grup visual berukuran tetap (.mjd-xx.gv-cam) di kanan (x ±880–1840).
   Tiruan UI mengikuti halaman asli: Admin › Jadwal (Shift, Pola tetap, Libur, Roster), Persetujuan, /me/jadwal, /me/tukar-shift.
   Chip shift = .shift-chip aplikasi (kode berwarna); draf = garis putus-putus (keterangan roster asli). Elemen yang bergerak dengan
   `transform` tidak memakai transform statis.
   ========================================================================== */

.mjd-sh, .mjd-po, .mjd-ro, .mjd-tb, .mjd-tk { position: absolute; transform-origin: 0 0; }

/* --- Bagian bersama ------------------------------------------------------------------------------------------------- */

.mjd-chip { --chip: var(--teal); display: inline-grid; place-items: center; flex: none; min-width: 46px; height: 30px; padding: 0 8px; border-radius: 8px;
    background: var(--chip); color: #FFFFFF; font-size: 17px; font-weight: 750; letter-spacing: .02em; }
.mjd-chip.is-p { --chip: #FE7F2D; }
.mjd-chip.is-s { --chip: #619B8A; }
.mjd-chip.is-m { --chip: #233D4D; }
.mjd-chip.is-k { --chip: #6F9A4F; }
.mjd-chip.is-draft { background: transparent; color: var(--chip); border: 2px dashed var(--chip); }
.mjd-glow { display: inline-flex; border-radius: 10px; }
.mjd-url { margin-left: auto; }
.mjd-tabs { display: flex; gap: 6px; margin: -4px 0 16px; }
.mjd-tabs span { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 11px; color: var(--ink-3); font-size: 18px; font-weight: 650; }
.mjd-tabs .is-on { background: #FFFFFF; color: var(--ink); box-shadow: 0 0 0 1px rgba(27, 35, 41, .1), 0 2px 6px -3px rgba(27, 35, 41, .25); }
.mjd-muted { color: var(--ink-3); }
.mjd-tr .mjd-muted { font-size: 17px; white-space: nowrap; }
/* Angka berhitung / teks diketik: tetap tampil sebelum waktunya (tanpa animasi bawaan gv-up). */
.mjd-num { --an: mjd-none; }
@keyframes mjd-none { from { opacity: 1; } to { opacity: 1; } }
/* Ketukan jari: tidak terlihat sebelum waktunya (0% = transparan). */
.mjd-tap { --an: mjd-tap; --d: .7s; }
@keyframes mjd-tap { 0% { opacity: 0; transform: scale(.2); } 1% { opacity: .9; transform: scale(.2); } 100% { opacity: 0; transform: scale(1.9); } }
.mjd-press { position: relative; display: inline-flex; }
.mjd-press > .gv-tap { left: 50%; top: 50%; }

/* --- 1. Template shift ---------------------------------------------------------------------------------------------- */

.mjd-sh { left: 880px; top: 96px; width: 960px; height: 860px; }
.mjd-sh-win { left: 0; top: 0; width: 960px; height: 420px; }
.mjd-th, .mjd-tr { display: grid; grid-template-columns: 190px 220px 120px minmax(0, 1fr) 100px; align-items: center; gap: 12px; padding: 0 20px; }
.mjd-th { height: 46px; color: var(--ink-3); font-size: 17px; font-weight: 700; box-shadow: inset 0 -1px 0 #F0EFEA; }
.mjd-tr { min-height: 64px; font-size: 19px; }
.mjd-tr + .mjd-tr { box-shadow: inset 0 1px 0 #F0EFEA; }
.mjd-sname { display: inline-flex; align-items: center; gap: 12px; }
.mjd-sname b { font-size: 20px; font-weight: 700; }
.mjd-hours { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 650; }
.mjd-plus { height: 30px; padding: 0 10px; font-size: 17px; }
.mjd-tl { position: absolute; left: 0; top: 452px; width: 960px; }
.mjd-tl-body { position: relative; padding: 4px 22px 0; }
.mjd-days { position: relative; display: block; height: 34px; margin-left: 186px; }
.mjd-day { position: absolute; top: 0; display: flex; justify-content: center; font-size: 18px; font-weight: 700; color: var(--ink-2); }
.mjd-day b { padding: 2px 12px; border-radius: 10px; font-weight: 750; }
.mjd-day.is-a { left: 0; width: 69.23%; }
.mjd-day.is-b { left: 69.23%; width: 30.77%; }
.mjd-lanes { position: relative; display: grid; gap: 12px; }
.mjd-midnight { position: absolute; z-index: 2; top: -8px; bottom: -8px; left: calc(186px + (100% - 186px) * .6923); display: block; width: 0; border-left: 3px dashed #C2463C; }
.mjd-lane { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 16px; }
.mjd-lane-n { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; }
.mjd-track { position: relative; height: 46px; border-radius: 12px; background: repeating-linear-gradient(90deg, #F1EFE9 0 1px, transparent 1px calc(100% / 26)), #F7F6F2;
    box-shadow: inset 0 0 0 1px #ECEAE3; }
.mjd-blk { position: absolute; top: 5px; bottom: 5px; display: block; border-radius: 9px; transform-origin: 0 50%; }
.mjd-blk.is-p { left: 7.69%; width: 30.77%; background: #FE7F2D; }
.mjd-blk.is-s { left: 30.77%; width: 30.77%; background: #619B8A; }
.mjd-blk.is-m { left: 61.54%; width: 30.77%; background: #233D4D; }
.mjd-blk-t { position: absolute; top: 5px; bottom: 5px; display: grid; place-items: center; color: #FFFFFF; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mjd-blk-t.is-p { left: 7.69%; width: 30.77%; }
.mjd-blk-t.is-s { left: 30.77%; width: 30.77%; }
.mjd-blk-t.is-m { left: 61.54%; width: 30.77%; }
.mjd-blk-plus { position: absolute; z-index: 3; left: calc(92.31% + 8px); top: 50%; height: 32px; margin-top: -16px; padding: 0 10px; font-size: 17px; }
.mjd-ticks { position: relative; height: 34px; margin: 6px 0 0 186px; }
.mjd-ticks span { position: absolute; top: 4px; width: 80px; margin-left: -40px; color: var(--ink-3); font-size: 17px; font-weight: 650; text-align: center; font-variant-numeric: tabular-nums; }
.mjd-ticks .is-0 { left: 0; margin-left: 0; text-align: left; }
.mjd-ticks .is-1 { left: 23.08%; }
.mjd-ticks .is-2 { left: 46.15%; }
.mjd-ticks .is-3 { left: 69.23%; color: #A8392F; font-weight: 750; }
.mjd-ticks .is-4 { left: 92.31%; }
.mjd-tl-note { display: flex; align-items: center; gap: 12px; margin: 10px 22px 22px; padding: 12px 16px; border-radius: 14px; background: var(--info-bg); color: var(--info);
    font-size: 19px; font-weight: 700; }
.mjd-tl-note .icon { flex: none; width: 24px; height: 24px; }

/* --- 2. Pola tetap & libur ----------------------------------------------------------------------------------------- */

.mjd-po { left: 880px; top: 196px; width: 960px; height: 700px; }
.mjd-week { position: absolute; left: 0; top: 0; width: 960px; }
.mjd-week .gk-card-title > .gk-badge { margin-left: 0; }
.mjd-users { display: inline-flex; align-items: center; margin-left: auto; color: var(--ink-3); font-size: 18px; font-weight: 650; }
.mjd-users .gk-av { width: 40px; height: 40px; margin-right: -8px; font-size: 17px; font-style: normal; box-shadow: 0 0 0 3px #FFFFFF; }
.mjd-users span { margin-left: 18px; }
.mjd-week-sub { padding: 0 22px 12px; color: var(--ink-3); font-size: 18px; }
.mjd-tiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; padding: 0 22px 22px; }
.mjd-tile { position: relative; display: grid; align-content: start; justify-items: center; gap: 12px; height: 186px; padding: 16px 8px; border-radius: 16px; background: #F7F6F2;
    box-shadow: inset 0 0 0 1px #ECEAE3; text-align: center; }
.mjd-tile.is-off { background: #F1EFEA; }
.mjd-tile-d { display: grid; gap: 0; line-height: 1.1; }
.mjd-tile-d b { font-size: 19px; font-weight: 750; }
.mjd-tile-d span { color: var(--ink-3); font-size: 26px; font-weight: 750; font-variant-numeric: tabular-nums; }
.mjd-tile-s { display: grid; justify-items: center; gap: 8px; }
.mjd-tile-s .mono { color: var(--ink-2); font-size: 17px; font-weight: 650; letter-spacing: -.04em; }
.mjd-tile-off { margin-top: 10px; color: #8A939A; font-size: 18px; font-weight: 700; }
.mjd-tile-x { justify-items: center; }
.mjd-tile-h { display: grid; justify-items: center; gap: 6px; color: var(--hot); }
.mjd-tile-h .icon { width: 28px; height: 28px; }
.mjd-tile-h b { font-size: 17px; font-weight: 750; line-height: 1.2; }
.mjd-tile-glow { position: absolute; inset: 0; display: block; border-radius: 16px; pointer-events: none; }
.mjd-tile.is-xmas { z-index: 1; }
.mjd-hol { position: absolute; left: 0; top: 380px; width: 960px; }
.mjd-hol-add { margin-left: auto; }
.mjd-hrow { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 22px; font-size: 19px; }
.mjd-hrow + .mjd-hrow { box-shadow: inset 0 1px 0 #F0EFEA; }
.mjd-hrow b { font-weight: 700; }
.mjd-hdate { color: var(--ink-2); font-weight: 650; font-variant-numeric: tabular-nums; }
.mjd-hrow.is-new { margin: 0 10px 10px; padding: 14px 12px; border-radius: 14px; background: var(--info-bg); box-shadow: none; }

/* --- 3. Roster mingguan (Admin › Jadwal › Roster) -------------------------------------------------------------------- */

.mjd-ro { left: 880px; top: 170px; width: 960px; height: 760px; }
.mjd-ro-win { left: 0; top: 0; width: 960px; height: 652px; }
.mjd-ro-week { margin-left: auto; color: var(--ink-3); font-size: 17px; font-weight: 600; }
.mjd-ro-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 48px; }
.mjd-ro-count { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 18px; font-weight: 600; white-space: nowrap; }
.mjd-ro-count b { color: var(--ink); font-weight: 800; }
.mjd-ro-acts { display: inline-flex; gap: 8px; }
.mjd-grid { display: grid; grid-template-columns: 210px repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.mjd-gh { display: flex; align-items: flex-end; height: 46px; padding-bottom: 8px; color: var(--ink-3); font-size: 17px; font-weight: 700; }
.mjd-gh.is-day { justify-content: center; }
.mjd-gh b { margin-left: 5px; color: var(--ink); }
.mjd-who { display: flex; align-items: center; gap: 10px; min-width: 0; height: 66px; }
.mjd-who .gk-av { width: 38px; height: 38px; font-size: 17px; font-style: normal; }
.mjd-who b { overflow: hidden; font-size: 18px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.mjd-cell { position: relative; display: grid; place-items: center; height: 66px; border-radius: 12px; background: #FFFFFF; box-shadow: inset 0 0 0 1px #ECEAE3; color: #CFCBC1; }
.mjd-cell > .icon { width: 20px; height: 20px; }
.mjd-fill { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 3px; border-radius: 12px; background: #FFFFFF;
    box-shadow: inset 0 0 0 1px #ECEAE3; }
.mjd-fill small { color: var(--ink-2); font-size: 17px; font-weight: 650; }
.mjd-warn { position: absolute; z-index: 2; right: -10px; top: -12px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #FCCA46;
    color: #5C3F00; box-shadow: 0 0 0 3px #FFFFFF, 0 6px 12px -4px rgba(0, 0, 0, .35); }
.mjd-warn .icon { width: 22px; height: 22px; stroke-width: 2.4; }
.mjd-ro-note { margin-top: 14px; color: var(--ink-3); font-size: 17px; line-height: 1.35; }
.mjd-pop { position: absolute; z-index: 5; left: 244px; top: 212px; display: grid; gap: 2px; width: 350px; padding: 8px; border-radius: 16px; background: #FFFFFF;
    box-shadow: 0 0 0 1px rgba(27, 35, 41, .1), 0 24px 44px -18px rgba(27, 35, 41, .5); transform-origin: 20% 0; }
.mjd-opt { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 10px; border-radius: 10px; font-size: 18px; }
.mjd-opt b { font-weight: 700; }
.mjd-opt .mono { margin-left: auto; color: var(--ink-3); font-size: 17px; }
.mjd-opt.is-pick { background: #FFF1E7; box-shadow: inset 0 0 0 1.5px #FAD7BF; }
.mjd-opt.is-empty { color: var(--ink-3); font-weight: 600; }
.mjd-tip { position: absolute; z-index: 4; left: 520px; top: 366px; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 14px; background: #1B2329;
    color: #FFFFFF; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .45); }
.mjd-tip::before { content: ""; position: absolute; left: 62px; top: -7px; width: 14px; height: 14px; background: #1B2329; transform: rotate(45deg); }
.mjd-tip .icon { flex: none; width: 24px; height: 24px; color: #FCCA46; }
.mjd-tip b { display: block; font-size: 18px; font-weight: 750; }
.mjd-tip small { display: block; color: rgba(255, 255, 255, .75); font-size: 17px; }
.mjd-ro-cur { --an: mjd-cur-ro; --ae: linear; }
@keyframes mjd-cur-ro {
    0% { opacity: 0; transform: translate(640px, 470px); animation-timing-function: cubic-bezier(.45, .05, .2, 1); }
    8% { opacity: 1; }
    25% { transform: translate(282px, 168px); }
    28% { transform: translate(282px, 168px) scale(.82); }
    31% { transform: translate(282px, 168px); animation-timing-function: cubic-bezier(.45, .05, .2, 1); }
    45% { transform: translate(340px, 238px); }
    48% { transform: translate(340px, 238px) scale(.82); }
    51% { transform: translate(340px, 238px); animation-timing-function: cubic-bezier(.45, .05, .2, 1); }
    85% { transform: translate(478px, 44px); }
    90% { transform: translate(478px, 44px) scale(.82); }
    95%, 100% { opacity: 1; transform: translate(478px, 44px); }
}

/* --- Bagian bersama: layar HP karyawan (/me) -------------------------------------------------------------------------- */

.mjd-panel { display: grid; gap: 12px; padding: 18px; border-radius: 20px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(27, 35, 41, .07), 0 6px 14px -10px rgba(27, 35, 41, .3); }
.mjd-ptitle { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 720; letter-spacing: -.015em; }
.mjd-ptitle .icon { flex: none; width: 22px; height: 22px; color: var(--ink-3); }
.mjd-panel .gk-field { gap: 4px; padding: 10px 14px; }
.mjd-panel .gk-field > b { font-size: 19px; line-height: 1.3; }
.mjd-press.is-block { display: block; }
.mjd-nav { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: 98px;
    padding: 10px 8px 22px; background: #FFFFFF; box-shadow: 0 -1px 0 #ECEAE3; }
.mjd-nav span { display: grid; justify-items: center; align-content: center; gap: 4px; min-width: 0; color: var(--ink-3); font-size: 17px; font-weight: 600;
    letter-spacing: -.025em; white-space: nowrap; }
.mjd-nav .icon { width: 26px; height: 26px; }
.mjd-nav .is-on { color: var(--navy); font-weight: 750; }
.mjd-nav .is-on .icon { color: var(--orange); }
.mjd-toast { position: absolute; z-index: 3; left: 16px; right: 16px; top: 4px; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 18px;
    background: #1B2329; color: rgba(255, 255, 255, .82); font-size: 17px; line-height: 1.3; box-shadow: 0 18px 34px -14px rgba(15, 27, 34, .65); }
.mjd-toast .icon { flex: none; width: 24px; height: 24px; margin-top: 1px; color: var(--orange); }
.mjd-toast b { display: block; color: #FFFFFF; font-size: 18px; font-weight: 750; }
.mjd-acts { justify-items: end; }
.mjd-acts-row { display: inline-flex; gap: 8px; }

/* --- 4. Terbitkan roster --------------------------------------------------------------------------------------------- */

.mjd-tb { left: 880px; top: 60px; width: 960px; height: 960px; }
.mjd-mini { left: 0; top: 170px; width: 500px; height: 372px; }
.mjd-mini-state { margin-left: auto; }
.mjd-mini-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: 18px; font-weight: 600; }
.mjd-mgrid { display: grid; grid-template-columns: 64px repeat(7, minmax(0, 1fr)); align-items: center; gap: 6px; }
.mjd-mgh { color: var(--ink-3); font-size: 17px; font-weight: 700; text-align: center; }
.mjd-mname { font-size: 18px; font-weight: 700; }
.mjd-mcell { display: grid; place-items: center; height: 52px; border-radius: 10px; background: #FFFFFF; box-shadow: inset 0 0 0 1px #ECEAE3; }
.mjd-mcell > * { grid-area: 1 / 1; }
.mjd-mini .mjd-chip { min-width: 40px; padding: 0 5px; }
.mjd-tb-cur { --an: mjd-cur-tb; --ae: cubic-bezier(.45, .05, .2, 1); }
@keyframes mjd-cur-tb { 0% { opacity: 0; transform: translate(250px, 250px); } 15% { opacity: 1; } 80% { transform: translate(392px, 44px); }
    88% { transform: translate(392px, 44px) scale(.82); } 100% { opacity: 1; transform: translate(392px, 44px); } }
.mjd-tb-notif { position: absolute; left: 0; top: 562px; width: 500px; }
.mjd-tb-notif .gk-wa-text { font-size: 19px; }
.mjd-tb-phone { left: 520px; top: 40px; }
/* Layar kunci HP: jam besar, pesan WhatsApp masuk, diketuk → terbuka ke /me/jadwal. */
.mjd-lock { position: absolute; z-index: 5; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 120px 18px 0; border-radius: 52px;
    background: radial-gradient(420px 380px at 20% 10%, rgba(97, 155, 138, .55), transparent 70%), radial-gradient(420px 420px at 90% 90%, rgba(254, 127, 45, .35), transparent 70%),
    linear-gradient(170deg, #1E3646 0%, #13222B 100%); color: #FFFFFF; }
.mjd-lock-time { font-size: 92px; font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.mjd-lock-date { margin-top: 10px; color: rgba(255, 255, 255, .8); font-size: 20px; font-weight: 600; }
.mjd-lock-wa { width: 100%; margin-top: 54px; text-align: left; }
.mjd-lock-wa .gk-wa-text { font-size: 18px; }
.mjd-lock-tap { left: 50%; top: 360px; }
.mjd-days-list { display: grid; overflow: hidden; border-radius: 20px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(27, 35, 41, .07), 0 6px 14px -10px rgba(27, 35, 41, .3); }
.mjd-drow { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 64px; padding: 8px 16px; }
.mjd-drow + .mjd-drow { box-shadow: inset 0 1px 0 #F0EFEA; }
.mjd-ddate { display: grid; line-height: 1.2; }
.mjd-ddate b { font-size: 18px; font-weight: 720; }
.mjd-ddate small { color: var(--ink-3); font-size: 17px; }
.mjd-dshift { display: inline-flex; align-items: center; gap: 10px; }
.mjd-dshift > span:last-child { display: grid; line-height: 1.2; }
.mjd-dshift b { font-size: 18px; font-weight: 700; }
.mjd-dshift small { color: var(--ink-2); font-size: 17px; }
.mjd-doff { color: var(--ink-3); font-size: 18px; font-weight: 600; }

/* --- 5. Tukar shift --------------------------------------------------------------------------------------------------- */

.mjd-tk { left: 880px; top: 60px; width: 960px; height: 960px; }
.mjd-tk-phone { left: 0; top: 30px; }
.mjd-req-row { display: grid; justify-items: start; gap: 4px; }
.mjd-req-row b { font-size: 19px; font-weight: 720; }
.mjd-req-row small { color: var(--ink-3); font-size: 17px; }
.mjd-req-row .gk-swap { margin-top: 6px; }
.mjd-tk-mate { position: absolute; left: 490px; top: 70px; width: 470px; }
.mjd-tk-mate .gk-wa-text { font-size: 18px; }
.mjd-tk-mate .mjd-acts { display: grid; justify-items: start; margin-top: 8px; }
.mjd-tk-boss { position: absolute; left: 490px; top: 340px; width: 470px; }
.mjd-tk-boss .gk-row { align-items: center; padding: 10px 22px 20px; }
.mjd-tk-boss .gk-grow small { white-space: normal; }
.mjd-tk-roster { position: absolute; left: 490px; top: 590px; width: 470px; }
.mjd-tk-roster .gk-row { padding: 12px 22px; }
.mjd-tk-roster .gk-av { width: 44px; height: 44px; font-size: 17px; }
