#view-inputTabel {
  display: none;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--bg-primary);
  padding: 5px;
}

#view-inputTabel.active {
  display: flex;
}

/* ── TOOLBAR ── */
.it-toolbar {
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: var(--bg-card);
  border-bottom: 1.5px solid var(--border-color);
  z-index: 10;
}

.it-back {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.it-back:active { opacity: 0.6; }

.it-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
}

.it-search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  border-radius: 20px;
  padding: 0 10px;
  height: 34px;
  gap: 6px;
  border: 1px solid var(--border-color);
}

.it-search-icon {
  font-size: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.it-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 12px;
  color: var(--text-primary);
  outline: none;
}

.it-search-input::placeholder {
  color: var(--text-secondary);
}

.it-search-clear {
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 11px;
  padding: 0;
  cursor: pointer;
  display: none;
  flex-shrink: 0;
}

/* ── ZOOM CONTROLS ── */
.it-zoom-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.it-zoom-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}
.it-zoom-btn:active { opacity: 0.6; }

.it-zoom-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 30px;
  text-align: center;
}

/* ── SCROLL WRAP ── */
.it-canvas-wrap {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.it-scroll-wrap {
  flex: 1;
  width: 100%;
  overflow: scroll;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  will-change: scroll-position;
}

/* ── TABLE ── */
.it-table {
  border-collapse: collapse;
  font-size: 11px;
  font-family: sans-serif;
  white-space: nowrap;
  table-layout: fixed;
  transform-origin: top left;
}

/* ── HEADER ── */
.it-th {
  padding: 5px 6px;
  text-align: center;
  font-weight: 700;
  border: 1.5px solid #6b584b;
  position: sticky;
  z-index: 3;
  font-size: 10px;
}

.it-th-row1 {
  top: 0;
}

.it-th-row2 {
  top: 25px;
}

.it-th-accent {
  background: var(--accent);
  color: #fff;
}

.it-th-v {
  font-size: 9px;
  font-weight: 600;
}

/* ── CELLS ── */
.it-td {
  padding: 5px 5px;
  border: 1.5px solid #8a7a6a;
  text-align: center;
  font-size: 10px;
  color: var(--text-heading);
  font-weight: 500;
}

.it-row:hover td {
  background: rgba(179, 135, 79, 0.15) !important;
  cursor: pointer;
}

.it-td-no {
  color: var(--text-secondary);
  width: 28px;
  min-width: 28px;
}

.it-td-nama {
  text-align: left;
  width: 110px;
  min-width: 110px;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  color: var(--text-heading);
}

.it-td-v {
  width: 30px;
  min-width: 30px;
}
/* ── BADGES ── */
.it-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  color: #fff;
  margin-left: 3px;
  vertical-align: middle;
}
.it-badge-fee {
  background: #10b981;
}
.it-badge-disable {
  background: #ef4444;
}

.it-td-ket {
  width: 48px;
  min-width: 48px;
  font-weight: 700;
}

.it-td-pay {
  width: 80px;
  min-width: 80px;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 9px;
}

/* ── TOTAL BAR ── */
.it-total-wrap {
  flex-shrink: 0;
  border-top: 2px solid var(--accent);
  overflow-x: hidden;
}

.it-total-scroll {
  overflow-x: scroll;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.it-table-total {
  border-collapse: collapse;
  font-size: 11px;
  font-family: sans-serif;
  white-space: nowrap;
  table-layout: fixed;
  transform-origin: top left;
}

.it-total td {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 5px 5px;
  text-align: center;
  font-size: 10px;
}

.it-td-total-label {
  text-align: left !important;
  padding-left: 8px !important;
}

.it-td-total {
  font-size: 10px;
}
