/* ------------------------------------------------------------------
   Agen Telur Kareem — the sheet, in a desktop browser
   One 1380x860 window; everything scales from that box. Same take
   engine and conventions as site/.
   ------------------------------------------------------------------ */

:root{
  --green:#0f9d58;
  --blue:#1a73e8;
  --blue-soft:#e8f0fe;
  --blue-head:#d2e3fc;
  --ink:#202124;
  --ink-2:#3c4043;
  --muted:#5f6368;
  --rule:#e2e4e7;
  --rule-soft:#eceef0;
  --grid-bg:#fff;
  --sheet-font:Arial,"Helvetica Neue",Helvetica,sans-serif;
}

*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{margin:0;height:100%}
body{
  display:grid;place-items:center;
  min-height:100svh;padding:20px 28px;overflow:hidden;
  background:radial-gradient(120% 85% at 50% -10%,#f7f5fb 0%,#ece9f3 55%,#e2dfec 100%);
  font-family:Roboto,system-ui,-apple-system,"Segoe UI",sans-serif;
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
}

/* ---------- stage ---------- */
.desk{--s:1;width:1380px;height:860px;transform:scale(var(--s));transform-origin:50% 50%}
.win{
  position:relative;
  width:1380px;height:860px;
  display:flex;flex-direction:column;
  border-radius:12px;overflow:hidden;
  background:#fff;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.12),
    0 18px 40px -12px rgba(24,20,50,.34),
    0 44px 90px -30px rgba(24,20,50,.4);
  opacity:1;transition:opacity .5s ease;
}
.win.is-fading{opacity:.12}

@media (max-width:1460px){.desk{--s:.9}}
@media (max-width:1340px){.desk{--s:.8}}
@media (max-height:940px){.desk{--s:.86}}
@media (max-height:812px){.desk{--s:.76}}
@media (max-height:700px){.desk{--s:.66}}
@media (max-width:1100px){.desk{--s:.62}}
@media (max-width:900px){.desk{--s:.5}}

/* ---------- browser chrome ---------- */
.chrome{background:#dee1e6;flex:none}
.chrome__top{display:flex;align-items:flex-end;height:38px;padding:0 10px;gap:10px}
.lights{display:flex;gap:8px;padding-bottom:12px}
.lights i{width:12px;height:12px;border-radius:50%;background:#ff5f57;box-shadow:inset 0 0 0 .5px rgba(0,0,0,.15)}
.lights i:nth-child(2){background:#febc2e}
.lights i:nth-child(3){background:#28c840}
.tabs{display:flex;align-items:flex-end;gap:2px;min-width:0}
.tabx{
  display:flex;align-items:center;gap:8px;
  height:30px;padding:0 10px 0 11px;max-width:330px;
  border-radius:9px 9px 0 0;
  font-size:12px;color:#3c4043;
}
.tabx.is-active{background:#f7f8fa;box-shadow:0 -1px 0 rgba(0,0,0,.06)}
.tabx--idle{max-width:190px;color:#5f6368}
.tabx--idle .tabx__name{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tabx__name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tabx__fav{width:14px;height:14px;flex:none;display:grid;place-items:center;border-radius:2px}
.tabx__fav.is-loading{animation:spin .9s linear infinite}
.tabx__x{color:#5f6368;font-size:14px;line-height:1;padding:0 2px}
.tabx__plus{color:#5f6368;font-size:17px;padding:0 8px 5px;align-self:center}
@keyframes spin{to{transform:rotate(360deg)}}

.chrome__bar{display:flex;align-items:center;gap:10px;height:42px;padding:0 12px 6px;background:#dee1e6}
.navi{display:flex;gap:14px;color:#5f6368;font-size:15px;font-style:normal;padding-left:2px}
.navi i{font-style:normal}
.navi__reload{font-size:13px;color:#9aa0a6}
.omni{
  flex:1;display:flex;align-items:center;gap:9px;height:30px;padding:0 10px;
  background:#f8f9fa;border-radius:15px;font-size:12px;color:#3c4043;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.04);
}
.omni__url{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.omni__star{color:#5f6368;font-size:14px}
.chrome__right{display:flex;align-items:center;gap:14px;color:#5f6368}
.avatar{
  width:22px;height:22px;border-radius:50%;display:grid;place-items:center;
  background:#7b1fa2;color:#fff;font-size:11px;font-weight:600;flex:none;
}
.avatar--sm{background:#0b8043}
.kebab{font-size:15px}

/* ---------- sheets app ---------- */
.sheets{
  flex:1;min-height:0;display:flex;flex-direction:column;background:#fff;
  opacity:0;transition:opacity .7s ease;
}
.win.is-ready .sheets{opacity:1}

.appbar{display:flex;align-items:center;gap:10px;height:46px;padding:0 14px;flex:none}
.doc__name{font-size:17px;color:var(--ink);letter-spacing:.1px}
.doc__badges{display:flex;gap:10px;color:#5f6368;font-size:13px;margin-left:2px}
.cloud{color:#5f6368}
.appbar__right{margin-left:auto;display:flex;align-items:center;gap:12px}
.tap{display:grid;place-items:center;width:26px;height:26px;border-radius:50%}
.share{
  display:flex;align-items:center;gap:6px;
  height:30px;padding:0 15px;border-radius:15px;background:#c2e7ff;
  font-size:13px;font-weight:500;color:#001d35;
}
.share__lock{width:8px;height:8px;border-radius:50%;background:#001d35;opacity:.75}

.menurow{display:flex;align-items:center;gap:2px;height:32px;padding:0 12px;font-size:13px;color:#3c4043;flex:none}
.menurow span{padding:3px 8px;border-radius:4px}
.menurow span:hover{background:#f1f3f4}
.menurow__note{margin-left:auto;color:#5f6368;font-size:11.5px;padding-right:6px}
.menurow__note.is-pulse{animation:pulseNote .9s ease-out}
@keyframes pulseNote{0%{color:var(--green)}100%{color:#5f6368}}

.toolbar{display:flex;align-items:center;gap:1px;height:36px;padding:0 8px;flex:none;color:#444746}
.tb{
  display:grid;place-items:center;min-width:24px;height:24px;padding:0 4px;
  border-radius:4px;font-size:13px;line-height:1;color:#444746;
}
.tb--wide{gap:5px;display:flex;align-items:center;padding:0 7px;font-size:12px}
.tb--wide i{font-style:normal;font-size:9px;color:#5f6368}
.tb--narrow{min-width:38px}
.tb--b{font-weight:800}.tb--i{font-style:italic;font-family:Georgia,serif}.tb--s{text-decoration:line-through}
.tb__bar{display:none}
.sep{width:1px;height:18px;background:#e0e0e0;margin:0 6px}

.fbar{display:flex;align-items:center;gap:8px;height:32px;padding:0 8px 0 0;flex:none;border-bottom:1px solid var(--rule)}
.fbar__name{
  width:110px;height:26px;margin-left:4px;display:flex;align-items:center;padding:0 8px;
  border:1px solid #dadce0;border-radius:2px;font-size:12px;color:var(--ink);font-family:Arial,sans-serif;
}
.fbar__fx{color:#5f6368;font-style:italic;font-family:Georgia,serif;font-size:13px;padding:0 2px}
.fbar__input{flex:1;font-size:12.5px;font-family:Arial,sans-serif;color:var(--ink);white-space:nowrap;overflow:hidden}

/* ---------- grid ---------- */
.grid{position:relative;flex:1;min-height:0;display:flex}
.grid__scroll{
  flex:1;min-width:0;overflow:auto;background:var(--grid-bg);
  transform:scale(1.014);transform-origin:50% 0;opacity:.35;
  transition:transform 1s cubic-bezier(.2,.7,.2,1),opacity .8s ease;
}
.win.is-settled .grid__scroll{transform:none;opacity:1}
.scrollpad{height:200px}
.grid__scroll::-webkit-scrollbar{width:11px;height:11px}
.grid__scroll::-webkit-scrollbar-thumb{background:#c4c7c5;border-radius:8px;border:3px solid #fff}
.grid__scroll::-webkit-scrollbar-corner{background:#fff}

.sheet{display:none;border-collapse:separate;border-spacing:0;table-layout:fixed;font-family:var(--sheet-font)}
.sheet.is-on{display:table}
.sheet td,.sheet th{
  height:24px;padding:0 6px;margin:0;
  font-size:12.5px;font-weight:400;color:var(--ink);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  border-right:1px solid var(--rule-soft);border-bottom:1px solid var(--rule-soft);
  background:#fff;
}
.sheet thead th{
  height:24px;background:#f8f9fa;color:#5f6368;font-size:11px;font-weight:400;
  text-align:center;position:sticky;top:0;z-index:3;border-right:1px solid #e6e8ea;
}
.sheet th.rh{
  position:sticky;left:0;z-index:2;width:44px;min-width:44px;
  background:#f8f9fa;color:#5f6368;font-size:11px;font-weight:400;text-align:center;
  padding:0;border-right:1px solid #e6e8ea;
}
.sheet thead th.corner{position:sticky;left:0;z-index:4;width:44px;background:#f8f9fa}
.sheet td.num{text-align:right;font-variant-numeric:tabular-nums}
.sheet td.wrap{white-space:normal}

/* row kinds — month tab */
.sheet tr.k-head td{font-weight:700;color:#3c4043;background:#f8f9fa}
.sheet tr.k-day td{font-weight:700;background:#f1f3f4}
.sheet tr.k-sumhead td{font-weight:700;color:#5f6368;background:#fbfcfd}
.sheet tr.k-sum td{color:var(--ink-2)}
.sheet tr.k-total td{font-weight:700;background:#fbfcfd}
.sheet tr.k-monthtotal td{font-weight:700;background:var(--blue-soft);border-top:2px solid var(--blue);border-bottom:1px solid var(--blue)}
.sheet tr.k-gap td{background:#fff}
.sheet tr.k-new td{background:#fff}

/* report tab */
.sheet tr.r-title td{font-size:15px;font-weight:700;height:34px;padding-top:8px;border-right:0}
.sheet tr.r-meta td{color:#5f6368;font-size:11px;height:20px}
.sheet tr.r-legend td{color:#5f6368;font-style:italic;font-size:11px;height:20px;border-right:0}
.sheet tr.r-section td{font-weight:700;font-size:12.5px;color:#174ea6;background:#eef3fe;height:28px;border-right:0}
.sheet tr.r-sub td{color:#5f6368;font-size:11.5px;height:20px}
.sheet tr.r-head td{font-weight:700;color:#5f6368;background:#f8f9fa;font-size:11.5px}
.sheet tr.r-row td{height:22px}
.sheet tr.r-total td{font-weight:700;background:#f8f9fa;border-top:1px solid #dadce0;border-bottom:1px solid #dadce0}
.sheet tr.r-gap td{height:16px;border-right:0}

/* selection */
.sheet td.is-cellsel{box-shadow:inset 0 0 0 2px var(--blue);background:#fff;position:relative;z-index:1}
.sheet tr.is-rowselected td{background:var(--blue-soft)}
.sheet tr.is-rowselected th.rh{background:var(--blue-head);color:#174ea6}
.sheet thead th.is-colhead{background:var(--blue-head);color:#174ea6}
.sheet th.rh.is-rowhead{background:var(--blue-head);color:#174ea6}
.sheet td.is-match{background:#ceead6}
.sheet td.is-match-current{background:#b7e1cd;box-shadow:inset 0 0 0 1.5px #188038}
.sheet tr.is-hover td{background:#f6f9fe}

/* the hub's write */
.sheet tr.is-new td{animation:newRow 1.9s ease-out both}
@keyframes newRow{
  0%{background:#b7e1cd}
  55%{background:#d7f0dd}
  100%{background:#fff}
}
.sheet tr.is-new th.rh{background:#b7e1cd!important}
.sheet tr.is-flash td{animation:totalFlash 2.2s ease-out}
@keyframes totalFlash{
  0%{background:#b7e1cd;color:#0b5c2e}
  60%{background:#e6f4ea}
  100%{background:var(--blue-soft);color:inherit}
}

/* ---------- find box ---------- */
.find{
  position:absolute;top:6px;right:26px;width:340px;z-index:12;
  background:#fff;border-radius:8px;
  box-shadow:0 1px 3px rgba(60,64,67,.3),0 8px 20px -6px rgba(60,64,67,.35);
  font-size:12.5px;
  opacity:0;transform:translateY(-6px);pointer-events:none;
  transition:opacity .18s ease,transform .18s ease;
}
.find.is-on{opacity:1;transform:none}
.find__row{display:flex;align-items:center;gap:6px;padding:8px 10px;border-bottom:1px solid var(--rule-soft)}
.find__q{font-family:Arial,sans-serif;font-size:12.5px;min-height:17px}
.find__caret{width:1px;height:15px;background:#1a73e8;margin-left:-4px;animation:blink 1s steps(1) infinite}
@keyframes blink{50%{opacity:0}}
.find__count{margin-left:auto;color:#5f6368;font-size:11.5px;padding-right:6px}
.find__btns{display:flex;gap:2px}
.find__btns i{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;font-style:normal;color:#444746;font-size:14px}
.find__btns i:hover{background:#f1f3f4}
.find__opts{display:flex;gap:14px;padding:7px 12px;color:#5f6368;font-size:11.5px}
.find__opts .is-on{color:#1a73e8;border-bottom:2px solid #1a73e8;padding-bottom:4px;margin-bottom:-5px}
.find__more{margin-left:auto}

/* ---------- tab bar ---------- */
.tabbar{display:flex;align-items:flex-end;gap:4px;height:34px;padding:0 8px;background:#f8f9fa;border-top:1px solid var(--rule);flex:none}
.tabbar__all{color:#5f6368;font-size:15px;padding:0 8px 7px}
.tabbar__tabs{display:flex;align-items:flex-end;gap:2px;overflow:hidden;flex:1}
.shtab{
  position:relative;
  display:flex;align-items:center;height:28px;padding:0 14px;
  font-size:11.5px;color:#5f6368;background:#eceff1;
  border-radius:6px 6px 0 0;white-space:nowrap;
  transition:background .2s ease,color .2s ease;
}
.shtab.is-on{background:#fff;color:var(--ink);font-weight:600;box-shadow:0 -1px 0 rgba(0,0,0,.05)}
.shtab.is-on::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:3px;
  background:var(--green);border-radius:2px 2px 0 0;
}
.shtab.is-touched{background:#dfe3e6}
.tabbar__add{color:#5f6368;font-size:17px;padding:0 10px 6px}

/* ---------- cursor + collaborator ---------- */
.cursor{
  position:absolute;left:0;top:0;z-index:40;pointer-events:none;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.35));
  opacity:0;
  transition:left .55s cubic-bezier(.2,.8,.2,1),top .55s cubic-bezier(.2,.8,.2,1),opacity .3s ease,transform .09s ease;
}
.cursor.is-on{opacity:1}
.cursor.is-click{transform:scale(.86)}
.hub{
  position:absolute;z-index:41;pointer-events:none;
  padding:2px 8px 3px;border-radius:2px 10px 10px 10px;
  background:#0b8043;color:#fff;font-size:11px;font-weight:600;letter-spacing:.2px;
  opacity:0;transform:translate(6px,16px);
  transition:left .7s cubic-bezier(.2,.8,.2,1),top .7s cubic-bezier(.2,.8,.2,1),opacity .25s ease;
}
.hub.is-on{opacity:1}

/* ---------- stills / reduced motion ---------- */
html.is-still *{transition:none!important;animation:none!important}
html.is-still .grid__scroll{scroll-behavior:auto}
@media (prefers-reduced-motion:reduce){
  *{transition:none!important;animation:none!important}
}

/* ---------- embedded in the case carousel ----------
   The home stage shows the sheet at 100% inside a 1100px window: no
   browser chrome, no scaling, and the UUID column collapsed (it is 176px
   of noise and the only thing keeping the rupiah columns off-screen). */
html.is-embedded,html.is-embedded body{background:transparent}
html.is-embedded body{display:block;padding:0;overflow:hidden;justify-items:start;align-items:start;place-items:initial}
html.is-embedded .desk{width:1380px;height:100%;transform:none}
html.is-embedded .win{height:100%;border-radius:0;box-shadow:none}
html.is-embedded .chrome,
html.is-embedded .menurow,
html.is-embedded .toolbar{display:none}
/* keep a little runway so the two rows the hub inserts still land above
   the tab bar after the timeline's last scroll */
html.is-embedded .scrollpad{height:64px}
/* hide B (UUID, 176px), E (Keterangan, 112px) and G (Satuan, 66px): the
   three that push Laba past the 20%-phone sliver */
html.is-embedded #tableMonth col:nth-child(3),
html.is-embedded #tableMonth col:nth-child(6),
html.is-embedded #tableMonth col:nth-child(8){width:0!important}
html.is-embedded #tableMonth th:nth-child(3),
html.is-embedded #tableMonth td:nth-child(3),
html.is-embedded #tableMonth th:nth-child(6),
html.is-embedded #tableMonth td:nth-child(6),
html.is-embedded #tableMonth th:nth-child(8),
html.is-embedded #tableMonth td:nth-child(8){
  width:0!important;max-width:0!important;padding:0!important;
  border:0!important;overflow:hidden!important;color:transparent!important;
}
