/* mySIMAN Master C313 | Compact Penghapusan UI built specifically for C312 DOM.
   Scope: Update Excel modal and its two paginators only. No state, backend,
   data filtering, spreadsheet, DBR/DBL, QR, login or Main Table changes. */

/* SS1 — native Excel pagination: restrained buttons, sensible alignment. */
html body #syncExcelModal .sync-item-pagination {
  justify-content:flex-start !important;
  align-items:center !important;
  gap:8px !important;
  padding:9px 4px 7px !important;
  margin:0 !important;
}
html body #syncExcelModal .sync-item-pagination .sync-item-page-button {
  min-width:0 !important;
  min-height:34px !important;
  height:34px !important;
  padding:5px 13px !important;
  border-radius:9px !important;
  font-size:12px !important;
  font-weight:650 !important;
  color:#d4eff9 !important;
  border:1px solid #245777 !important;
  background:#0e2c42 !important;
  transition:background-color .15s,border-color .15s !important;
}
html body #syncExcelModal .sync-item-pagination .sync-item-page-button:disabled,
html body #syncExcelModal .c308-footer button:disabled { opacity:.43 !important;cursor:not-allowed !important;filter:none !important;}
html body #syncExcelModal .sync-item-pagination .sync-item-page-button:not(:disabled):hover,
html body #syncExcelModal .c308-footer button:not(:disabled):hover { background:#114456 !important;border-color:#3fc9d8 !important;}
html body #syncExcelModal .sync-item-pagination .sync-item-page-info {
  color:#e1eef8 !important;min-width:0 !important;font-size:12px !important;
  font-weight:650 !important;padding-inline:5px !important;
}
html body #syncExcelModal .sync-subtitle { display:none !important; }

/* SS3 — only the Penghapusan mode shrinks to content; Excel mode untouched. */
html body #syncExcelModal.sync-modal.show.c308-deletion-active {
  align-items:center !important;justify-content:center !important;
  padding:12px !important;
}
html body #syncExcelModal.sync-modal.show.c308-deletion-active > .sync-panel {
  width:min(1150px,calc(100vw - 24px)) !important;
  height:auto !important;
  min-height:0 !important;
  max-height:calc(100dvh - 24px) !important;
  display:flex !important;flex-direction:column !important;
  padding:0 !important;margin:auto !important;
  border-radius:17px !important;
  border:1px solid #24627d !important;
  background:#071b30 !important;
  box-shadow:0 20px 70px rgba(0,0,0,.44),0 0 0 1px rgba(5,221,227,.05) inset !important;
  overflow-x:hidden !important;overflow-y:auto !important;
  scrollbar-width:thin;
}
html body #syncExcelModal.c308-deletion-active .sync-header {
  flex:0 0 auto !important;min-height:58px !important;
  padding:9px 17px !important;margin:0 !important;
  position:sticky !important;top:0 !important;
  z-index:6 !important;background:#081d35 !important;
  border-bottom:1px solid #20485f !important;
  box-shadow:none !important;
}
html body #syncExcelModal.c308-deletion-active .sync-title {
  font-size:19px !important;line-height:1.2 !important;
  font-weight:760 !important;letter-spacing:-.025em !important;
}
html body #syncExcelModal.c308-deletion-active .sync-scroll-body-c143 {
  display:flex !important;flex-direction:column !important;
  flex:0 1 auto !important;min-height:0 !important;
  max-height:none !important;
  overflow-x:visible !important;overflow-y:visible !important;
  padding:13px 16px 15px !important;
  scrollbar-gutter:auto !important;
}
html body #syncExcelModal .c308-tabs {
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:8px !important;
  margin:0 0 10px !important;
  padding:0 !important;
}
html body #syncExcelModal .c308-tabs button {
  height:38px !important;min-height:38px !important;padding:7px 12px !important;
  border-radius:9px !important;font-size:13px !important;
  line-height:20px !important;font-weight:700 !important;
}
html body #syncExcelModal .c308-tabs button.on,
html body #syncExcelModal .c308-mode button.on {
  background:linear-gradient(180deg,#08788a,#086270) !important;
  border-color:#34d9e3 !important;color:#f4ffff !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12) !important;
}
html body #syncExcelModal.c308-deletion-active .c308-deletion-section {
  display:flex !important;flex:0 1 auto !important;flex-direction:column !important;
  min-height:0 !important;gap:8px !important;margin:0 !important;
  padding:0 !important;
}
html body #syncExcelModal.c308-deletion-active .c308-deletion-section[hidden] {display:none !important;}
html body #syncExcelModal .c308-del-head {
  display:flex !important;justify-content:flex-end !important;
  gap:8px !important;align-items:center !important;margin:0 !important;
}
html body #syncExcelModal .c313-search-label {
  color:#bedee8 !important;font-size:12px !important;font-weight:650 !important;white-space:nowrap !important;
}
html body #syncExcelModal .c308-del-head input {
  width:min(390px,100%) !important;max-width:100% !important;
  height:36px !important;min-height:36px !important;
  padding:7px 12px !important;border-radius:9px !important;
  border:1px solid #32728d !important;background:#091d32 !important;
  font-size:12px !important;color:#e8fbff !important;
}
html body #syncExcelModal .c308-del-head input:focus-visible,
html body #syncExcelModal .c308-deletion-section button:focus-visible,
html body #syncExcelModal .c308-asset input:focus-visible {
  outline:2px solid #66e8ec !important;outline-offset:2px !important;
}

/* Saved state and current draft are distinct; never add drafts to saved totals. */
html body #syncExcelModal .c308-summary,
html body #syncExcelModal .c310-draft-totals {
  display:grid !important;grid-template-columns:minmax(130px,auto) minmax(0,1fr) !important;
  gap:11px !important;align-items:center !important;
  flex:0 0 auto !important;min-height:0 !important;
  padding:9px 12px !important;margin:0 !important;
  border:1px solid #265d72 !important;border-radius:9px !important;
  background:#0b2b3e !important;color:#e6f6fc !important;
  text-align:left !important;white-space:normal !important;
  line-height:1.35 !important;font-size:12px !important;font-weight:500 !important;
}
html body #syncExcelModal .c310-draft-totals {
  display:flex !important;flex-direction:column !important;align-items:stretch !important;
  gap:5px !important;background:#0a2a3a !important;border-color:#226f83 !important;
}
html body #syncExcelModal .c313-draft-row {
  display:grid;grid-template-columns:minmax(130px,auto) minmax(0,1fr);
  align-items:center;gap:11px;
}
html body #syncExcelModal .c313-draft-row + .c313-draft-row {
  border-top:1px solid #255366 !important;padding-top:6px !important;
}
html body #syncExcelModal .c313-metric-heading {
  font-size:11px !important;font-weight:750 !important;color:#81e7f0 !important;
  letter-spacing:.01em !important;
}
html body #syncExcelModal .c313-metric-values {
  display:flex !important;align-items:center !important;flex-wrap:wrap !important;
  justify-content:flex-start !important;column-gap:11px !important;row-gap:4px !important;
}
html body #syncExcelModal .c313-metric-item {
  display:inline-flex !important;align-items:baseline !important;gap:4px !important;
  white-space:nowrap !important;font-variant-numeric:tabular-nums !important;
}
html body #syncExcelModal .c313-metric-key {color:#b7d3de !important;font-size:11px !important;}
html body #syncExcelModal .c313-metric-value {color:#f0f9ff !important;font-size:11px !important;font-weight:750 !important;}

html body #syncExcelModal .c308-mode {
  display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:8px !important;margin:2px 0 0 !important;
}
html body #syncExcelModal .c308-mode button {
  height:37px !important;min-height:37px !important;border-radius:9px !important;
  padding:7px 11px !important;font-size:12px !important;line-height:20px !important;
}
html body #syncExcelModal .c308-commands {
  display:flex !important;align-items:center !important;
  flex:0 0 auto !important;gap:7px !important;
  padding:0 !important;margin:0 !important;min-height:34px !important;
}
html body #syncExcelModal .c308-commands button {
  height:32px !important;min-height:32px !important;
  padding:5px 10px !important;font-size:11px !important;
  border-radius:8px !important;font-weight:650 !important;
}
html body #syncExcelModal #c310SelectedBadge {
  min-height:31px !important;padding:5px 10px !important;border-radius:8px !important;
  font-size:11px !important;font-weight:700 !important;
}
html body #syncExcelModal #c308Count {
  margin-left:auto !important;min-width:0 !important;
  color:#a7c7d5 !important;font-size:11px !important;
  font-variant-numeric:tabular-nums !important;text-align:right !important;
}

/* Tabular asset layout — counts, depreciation and book value now all visible. */
html body #syncExcelModal #c308List {
  flex:0 1 auto !important;align-self:stretch !important;
  min-height:0 !important;height:auto !important;
  max-height:min(51dvh,570px) !important;
  overflow-y:auto !important;overflow-x:hidden !important;
  display:flex !important;flex-direction:column !important;gap:3px !important;
  scrollbar-width:thin !important;margin:1px 0 0 !important;
  border-radius:9px !important;
}
html body #syncExcelModal .c313-asset-header,
html body #syncExcelModal .c308-asset {
  display:grid !important;
  grid-template-columns:25px minmax(180px,2.3fr) repeat(3,minmax(93px,1fr)) minmax(86px,.85fr) !important;
  column-gap:10px !important;align-items:center !important;
}
html body #syncExcelModal .c313-asset-header {
  position:sticky !important;top:0 !important;z-index:2 !important;
  flex:0 0 auto !important;min-height:30px !important;
  padding:6px 11px !important;border-radius:8px 8px 0 0 !important;
  color:#c0e2f0 !important;font-size:11px !important;font-weight:750 !important;
  background:#143c52 !important;border:1px solid #245c75 !important;
  text-align:right !important;
}
html body #syncExcelModal .c313-asset-header > span:nth-child(2) {text-align:left !important;}
html body #syncExcelModal .c308-asset {
  min-height:51px !important;flex:0 0 auto !important;
  padding:7px 11px !important;border-radius:8px !important;
  border:1px solid #21536c !important;background:#0a263a !important;
  transition:background-color .15s ease,border-color .15s ease !important;
}
html body #syncExcelModal .c308-asset:hover {background:#10384a !important;border-color:#3589a0 !important;}
html body #syncExcelModal .c308-asset.c313-asset-selected {background:#0d4450 !important;border-color:#2ad1d1 !important;}
html body #syncExcelModal .c308-asset input[type="checkbox"] {
  width:17px !important;height:17px !important;margin:0 !important;
  accent-color:#20d6d8 !important;
}
html body #syncExcelModal .c308-asset-name {
  text-align:left !important;min-width:0 !important;
  font-size:12px !important;line-height:1.3 !important;font-weight:700 !important;
  color:#f0fbff !important;
}
html body #syncExcelModal .c308-asset-name small {
  margin-top:2px !important;display:block !important;
  font-size:10px !important;line-height:1.3 !important;
  font-weight:450 !important;color:#a9c7d8 !important;
  overflow-wrap:anywhere !important;
}
html body #syncExcelModal .c313-asset-value {
  display:block !important;text-align:right !important;
  color:#ecf9ff !important;font-size:11px !important;font-weight:750 !important;
  font-variant-numeric:tabular-nums !important;white-space:nowrap !important;
}
html body #syncExcelModal .c313-asset-status {
  justify-self:end !important;
  background:#0b483f !important;color:#9bf6d3 !important;
  border:1px solid #168d7c !important;border-radius:7px !important;
  padding:5px 8px !important;white-space:nowrap !important;
  font-size:10px !important;font-weight:750 !important;
}
html body #syncExcelModal .c313-status-deleted {
  background:#483223 !important;color:#ffdaa5 !important;border-color:#976b38 !important;
}
html body #syncExcelModal .c313-empty {
  border:1px dashed #2b5c73 !important;border-radius:9px !important;
  background:#0b2739 !important;padding:15px !important;margin:0 !important;
  color:#c5e1ec !important;font-size:12px !important;text-align:center !important;
}

/* Footer: no giant blank area between data and pagination. */
html body #syncExcelModal .c308-footer {
  display:flex !important;flex-wrap:wrap !important;justify-content:space-between !important;
  flex:0 0 auto !important;align-items:center !important;
  gap:8px !important;margin-top:2px !important;
  padding:8px 0 0 !important;min-height:0 !important;
  border-top:1px solid #244d65 !important;
  position:relative !important;bottom:auto !important;background:#071b30 !important;
}
html body #syncExcelModal .c308-footer > div {gap:7px !important;}
html body #syncExcelModal .c308-footer button {
  min-height:32px !important;height:32px !important;
  padding:5px 11px !important;font-size:11px !important;line-height:20px !important;
  border-radius:8px !important;
}
html body #syncExcelModal #c308Page,
html body #syncExcelModal #c308Message {color:#b9d7e5 !important;font-size:11px !important;}
html body #syncExcelModal #c308Message {max-width:270px !important;}
html body #syncExcelModal #c308Save {
  min-height:35px !important;height:35px !important;
  padding:6px 15px !important;font-size:12px !important;font-weight:800 !important;
  background:linear-gradient(180deg,#08a9bb,#078295) !important;
  color:#f7ffff !important;border:1px solid #33e4e2 !important;
  box-shadow:none !important;
}
html body #syncExcelModal #c308Save:disabled {opacity:.48 !important;cursor:not-allowed !important;}

@media (max-width:800px){
  html body #syncExcelModal .c308-summary,
  html body #syncExcelModal .c313-draft-row {grid-template-columns:1fr !important;gap:6px !important;}
  html body #syncExcelModal .c313-metric-values {gap:5px 12px !important;}
  html body #syncExcelModal .c313-asset-header,
  html body #syncExcelModal .c308-asset {
    grid-template-columns:24px minmax(135px,2fr) repeat(3,minmax(78px,1fr)) minmax(82px,.85fr) !important;
    column-gap:6px !important;
  }
}
@media (max-width:650px){
  html body #syncExcelModal.sync-modal.show.c308-deletion-active {padding:5px !important;}
  html body #syncExcelModal.sync-modal.show.c308-deletion-active > .sync-panel {
    width:calc(100vw - 10px) !important;max-height:calc(100dvh - 10px) !important;
    border-radius:11px !important;
  }
  html body #syncExcelModal.c308-deletion-active .sync-header {min-height:52px !important;padding:8px 12px !important;}
  html body #syncExcelModal.c308-deletion-active .sync-title {font-size:17px !important;}
  html body #syncExcelModal.c308-deletion-active .sync-scroll-body-c143 {padding:9px !important;}
  html body #syncExcelModal .c308-tabs {gap:5px !important;margin-bottom:7px !important;}
  html body #syncExcelModal .c308-tabs button {font-size:12px !important;height:35px !important;min-height:35px !important;}
  html body #syncExcelModal .c308-del-head {justify-content:stretch !important;}
  html body #syncExcelModal .c313-search-label {display:none !important;}
  html body #syncExcelModal .c308-del-head input {width:100% !important;}
  html body #syncExcelModal .c308-summary,
  html body #syncExcelModal .c310-draft-totals {padding:7px 9px !important;}
  html body #syncExcelModal .c313-metric-heading {font-size:10px !important;}
  html body #syncExcelModal .c313-metric-key,
  html body #syncExcelModal .c313-metric-value {font-size:10px !important;}
  html body #syncExcelModal .c308-mode button {font-size:11px !important;}
  html body #syncExcelModal .c308-commands {gap:5px !important;}
  html body #syncExcelModal .c308-commands button {font-size:10px !important;padding:5px 8px !important;}
  html body #syncExcelModal #c308Count {width:100% !important;text-align:left !important;margin:0 !important;}
  html body #syncExcelModal .c313-asset-header {display:none !important;}
  html body #syncExcelModal .c308-asset {
    grid-template-columns:21px repeat(3,minmax(0,1fr)) !important;
    grid-template-areas:'check name name status' 'check cost depr book' !important;
    gap:6px 7px !important;
    padding:8px 9px !important;
    min-height:72px !important;
  }
  html body #syncExcelModal .c313-asset-check {grid-area:check !important;}
  html body #syncExcelModal .c308-asset-name {grid-area:name !important;font-size:11px !important;}
  html body #syncExcelModal .c308-asset-name small {font-size:9px !important;}
  html body #syncExcelModal .c313-col-cost {grid-area:cost !important;}
  html body #syncExcelModal .c313-col-depr {grid-area:depr !important;}
  html body #syncExcelModal .c313-col-book {grid-area:book !important;}
  html body #syncExcelModal .c313-asset-value {text-align:left !important;white-space:normal !important;font-size:10px !important;}
  html body #syncExcelModal .c313-asset-value::before {
    content:attr(data-label);display:block;font-size:9px;color:#97bfcc;font-weight:500;
    margin-bottom:2px;
  }
  html body #syncExcelModal .c313-asset-status {grid-area:status !important;font-size:9px !important;padding:4px 6px !important;}
  html body #syncExcelModal #c308List {max-height:49dvh !important;}
  html body #syncExcelModal .c308-save-side {width:100% !important;justify-content:space-between !important;margin:0 !important;}
  html body #syncExcelModal .c308-footer > div {flex-wrap:wrap !important;}
  html body #syncExcelModal #c308Save {margin-left:auto !important;}
  html body #syncExcelModal .sync-item-pagination {flex-wrap:wrap !important;gap:6px !important;}
}
@media(prefers-reduced-motion:reduce){
  html body #syncExcelModal .sync-item-pagination .sync-item-page-button,
  html body #syncExcelModal .c308-asset{transition:none !important;}
}
