/* Commercial Core v1 */
.commercial-page {
  min-height: calc(100vh - 8px);
  padding: 0 8px 22px;
  background: #f2f2f2;
  overflow: visible;
}
.embed-body .commercial-page {
  min-height: calc(100vh - 8px);
}
.commercial-page .accurate-inner-tabs {
  margin: -14px -14px 12px;
}
.commercial-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  border-radius: 6px;
}
.commercial-hero h1 {
  font-size: 1.7rem;
  margin: 2px 0 8px;
  color: #14365d;
  font-weight: 800;
}
.commercial-hero p {
  margin: 0;
  color: #596779;
  max-width: 780px;
}
.commercial-status-card {
  min-width: 190px;
  border-radius: 6px;
  padding: 14px 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.commercial-status-card span,
.commercial-status-card small {
  opacity: .9;
  font-size: .82rem;
}
.commercial-status-card strong {
  font-size: 1.28rem;
  line-height: 1.15;
}
.commercial-status-success { background: linear-gradient(135deg, #128a4b, #24b66b); }
.commercial-status-warning { background: linear-gradient(135deg, #b66d00, #ef9c1a); }
.commercial-status-danger { background: linear-gradient(135deg, #b42318, #dc3545); }
.commercial-status-secondary { background: linear-gradient(135deg, #56616f, #798491); }
.commercial-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.commercial-kpi {
  border-radius: 6px;
  padding: 13px 14px;
}
.commercial-kpi span {
  display: block;
  color: #667085;
  font-size: .82rem;
  margin-bottom: 4px;
}
.commercial-kpi strong {
  display: block;
  font-size: 1.02rem;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.commercial-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.commercial-side {
  position: sticky;
  top: 12px;
  border-radius: 6px;
  padding: 12px;
}
.commercial-side-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #14365d;
  border-bottom: 1px solid #e4e7ec;
  padding-bottom: 9px;
  margin-bottom: 9px;
}
.commercial-side a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: #344054;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 6px;
}
.commercial-side a:hover,
.commercial-side a.active {
  background: #f2f7ff;
  border-color: #c7dcff;
  color: #1768e5;
}
.commercial-side a i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #eef4ff;
}
.commercial-side a span,
.commercial-side a small {
  display: block;
  min-width: 0;
}
.commercial-side a small {
  color: #667085;
  font-size: .76rem;
  margin-top: 2px;
}
.commercial-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.commercial-form {
  padding: 0;
  border-radius: 6px;
  overflow: visible;
}
.commercial-section {
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 12px;
  scroll-margin-top: 16px;
}
.commercial-form .commercial-section {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  margin-bottom: 0;
}
.commercial-form .commercial-section:first-child {
  border-top: 0;
}
.commercial-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e4e7ec;
  padding-bottom: 9px;
  margin-bottom: 14px;
}
.commercial-section-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0;
  font-size: 1.18rem;
  font-weight: 800;
  color: #14365d;
}
.commercial-check-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
}
.commercial-check-row input {
  margin-top: 3px;
}
.commercial-check-row span,
.commercial-check-row small {
  display: block;
}
.commercial-check-row small {
  color: #667085;
  margin-top: 2px;
}
.commercial-notes-field {
  align-items: start;
}
.commercial-copy-box {
  border: 1px dashed #98a2b3;
  background: #f8fafc;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
}
.commercial-copy-box pre {
  margin: 0;
  white-space: pre-wrap;
}
.commercial-dev-key {
  border: 1px solid #dbeafe;
  background: #eff6ff;
  border-radius: 6px;
  padding: 12px;
}
.commercial-dev-key span,
.commercial-dev-key small {
  display: block;
  color: #475467;
}
.commercial-dev-key strong {
  display: block;
  font-size: 1.05rem;
  color: #175cd3;
  letter-spacing: .02em;
  margin: 2px 0;
}
.license-key-input {
  text-transform: uppercase;
  letter-spacing: .06em;
}
.commercial-savebar {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: #f8fafc;
  border-top: 1px solid #d0d5dd;
  padding: 12px;
  border-radius: 0 0 6px 6px;
  z-index: 5;
}
.commercial-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.commercial-info-grid > div {
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  padding: 11px 12px;
  background: #fcfcfd;
}
.commercial-info-grid span {
  display: block;
  color: #667085;
  font-size: .8rem;
  margin-bottom: 3px;
}
.commercial-info-grid strong {
  display: block;
  color: #111827;
  overflow-wrap: anywhere;
}
.commercial-module-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.commercial-module-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf0f2;
  padding: 8px 0;
}
.commercial-module-list > div:last-child {
  border-bottom: 0;
}
.commercial-module-list small {
  display: block;
  color: #667085;
  font-size: .76rem;
  margin-top: 2px;
}
.commercial-note-box {
  margin-top: 12px;
  border: 1px solid #e4e7ec;
  background: #f8fafc;
  border-radius: 6px;
  padding: 10px 12px;
  color: #475467;
}
.dash-commercial-license {
  border-left: 4px solid #1768e5;
}
.dash-commercial-license small {
  display: block;
  color: #667085;
}
@media (max-width: 1100px) {
  .commercial-layout {
    grid-template-columns: 1fr;
  }
  .commercial-side {
    position: static;
  }
  .commercial-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .commercial-hero {
    flex-direction: column;
  }
  .commercial-kpi-grid,
  .commercial-info-grid {
    grid-template-columns: 1fr;
  }
  .commercial-savebar {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Commercial Core v2 - Vendor Panel */
.vendor-page {
  min-height: calc(100vh - 8px);
  overflow: visible;
}
.vendor-tabs .inner-data-tab {
  padding-right: 14px;
}
.vendor-kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.vendor-list-section {
  margin-top: 0;
}
.vendor-table-wrap {
  max-height: calc(100vh - 230px);
  overflow: auto;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
}
.vendor-table-wrap table {
  margin-bottom: 0;
}
.vendor-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #5f7488 !important;
  color: #fff !important;
  white-space: nowrap;
}
.vendor-table-wrap td,
.vendor-table-wrap th {
  vertical-align: middle;
  white-space: nowrap;
}
.vendor-table-wrap td:nth-child(2),
.vendor-table-wrap td:last-child {
  white-space: normal;
}
.vendor-form {
  max-width: 1040px;
  margin: 0 auto 18px;
}
.vendor-payment-layout {
  grid-template-columns: 320px minmax(0, 1fr);
}
.vendor-payment-form label {
  font-size: .82rem;
  color: #475467;
  font-weight: 700;
  margin-bottom: 3px;
}
.vendor-payment-form .form-control,
.vendor-payment-form .form-select {
  min-height: 34px;
  border-radius: 4px;
}
@media (max-width: 1200px) {
  .vendor-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .vendor-kpi-grid,
  .vendor-payment-layout {
    grid-template-columns: 1fr;
  }
  .vendor-table-wrap {
    max-height: 520px;
  }
}

/* Production-ready commercial checklist */
.commercial-check-page {
  overflow: auto;
  min-height: calc(100vh - 8px);
}

.commercial-check-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1px solid #c7c7c7;
  border-radius: 6px;
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
}

.commercial-score {
  width: 128px;
  min-height: 88px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid #d1d5db;
  background: #f8fafc;
}

.commercial-score strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.commercial-score span {
  display: block;
  font-size: .8rem;
  color: #64748b;
}

.commercial-score.is-ready {
  background: #ecfdf3;
  border-color: #86efac;
  color: #166534;
}

.commercial-score.is-warning {
  background: #fffbeb;
  border-color: #facc15;
  color: #92400e;
}

.commercial-check-scroll {
  max-height: calc(100vh - 255px);
  min-height: 320px;
  overflow: auto;
}

.commercial-check-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 3;
}

@media(max-width: 900px) {
  .commercial-check-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .commercial-score {
    width: 100%;
  }
}

/* Vendor production workspace: pisahkan tampilan Vendor Panel dari Client App */
.vendor-shell .accurate-header {
  background: radial-gradient(circle at 78% -30%, rgba(14, 165, 233, .35), transparent 22%), linear-gradient(95deg, #f8fafc 0, #f8fafc 24%, #0f172a 58%, #111827 100%);
  border-bottom-color: #0f172a;
}

.vendor-shell .accurate-mark {
  background: #0f172a;
  color: #fff;
}

.vendor-shell .accurate-logo-text {
  color: #1f2937;
  font-size: 1.18rem;
  font-style: normal;
}

.vendor-iconbar {
  background: linear-gradient(180deg, #0f172a, #1e293b);
}

.vendor-shell .iconbar-btn.active,
.vendor-shell .iconbar-btn:hover {
  border-left-color: #38bdf8;
  background: rgba(56, 189, 248, .16);
}

.vendor-shell .app-tab.fixed-tab .tab-close,
.vendor-shell .tab-close {
  display: none !important;
}

.vendor-shell .app-tab span i {
  margin-right: 6px;
}

.vendor-shell .launcher-backdrop,
.vendor-shell .launcher-panel {
  display: none !important;
}

.vendor-shell .tab-pane-frame iframe {
  background: #eef2f7;
}

/* Vendor Panel UI polish v1.2.4 - help-page inspired scroll + clean cards */
body.kpri-vendor-body,
.embed-body.kpri-vendor-body {
  overflow: auto !important;
  height: auto !important;
  min-height: 100vh !important;
  background: #eef0f3 !important;
  scrollbar-width: thin;
}

body.kpri-vendor-body .embed-content,
.embed-body.kpri-vendor-body .embed-content {
  height: auto !important;
  min-height: 100vh !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 0 18px !important;
}

body.kpri-vendor-body .vendor-page,
.embed-body.kpri-vendor-body .vendor-page,
.vendor-page[data-vendor-page] {
  min-height: 100vh !important;
  overflow: visible !important;
  background: #eef0f3;
  padding: 10px 10px 28px !important;
}

.vendor-page .accurate-card,
.vendor-page .vendor-card-section,
.vendor-page .commercial-section,
.vendor-page .commercial-side {
  border-radius: 4px !important;
  border-color: #c8c8c8 !important;
  box-shadow: none !important;
}

.vendor-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: stretch;
  gap: 18px;
  background: radial-gradient(circle at 88% 0%, rgba(10, 166, 166, .14), transparent 30%), linear-gradient(135deg, #fff, #f7fbff) !important;
  margin-bottom: 10px !important;
  padding: 18px !important;
}

.vendor-hero .eyebrow,
.vendor-section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.vendor-hero h1 {
  font-size: 1.65rem;
  font-weight: 850;
  color: #172033;
  margin: 7px 0 8px;
  letter-spacing: -.02em;
}

.vendor-hero p,
.vendor-section-subtitle {
  margin: 0;
  color: #5f6f83;
  line-height: 1.55;
}

.vendor-section-subtitle {
  font-size: .88rem;
  margin-top: 5px;
  max-width: 780px;
}

.vendor-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.vendor-hero-actions .btn,
.vendor-section-head .btn,
.vendor-toolbar .btn,
.vendor-savebar .btn,
.vendor-payment-submit {
  border-radius: 4px;
  font-weight: 700;
}

.vendor-mode-card {
  min-height: 142px;
  border-radius: 4px !important;
}

.vendor-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.vendor-kpi {
  min-height: 82px;
  border: 1px solid #c7c7c7 !important;
  background: #fff;
  padding: 11px 13px !important;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
}

.vendor-kpi i {
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eff6ff;
  color: #1768e5;
  font-size: 1.2rem;
}

.vendor-kpi span {
  margin: 0 !important;
  color: #777;
  font-size: .82rem;
  line-height: 1.1;
}

.vendor-kpi strong {
  font-size: 1.02rem !important;
  color: #111 !important;
  line-height: 1.15;
}

.vendor-dashboard-layout,
.vendor-payment-layout {
  display: grid;
  gap: 10px;
  align-items: start;
}

.vendor-dashboard-layout {
  grid-template-columns: 240px minmax(0, 1fr) !important;
}

.vendor-payment-layout {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr) !important;
}

.vendor-side {
  position: sticky !important;
  top: 10px !important;
  max-height: calc(100vh - 20px);
  overflow: auto;
  padding: 10px !important;
  background: #fff;
}

.vendor-side .commercial-side-title {
  color: #333;
  border-bottom-color: #ddd;
  padding: 4px 2px 10px;
  margin-bottom: 8px;
}

.vendor-side a {
  border-radius: 4px !important;
  padding: 9px 10px !important;
  margin-bottom: 4px !important;
  color: #333 !important;
}

.vendor-side a:hover,
.vendor-side a.active {
  background: #e7f0ff !important;
  color: #1768e5 !important;
  border-color: #cfe0ff !important;
}

.vendor-side a i {
  border-radius: 10px !important;
  background: #eff6ff !important;
}

.vendor-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.vendor-card-section,
.vendor-form-section {
  background: #fff !important;
  border: 1px solid #c8c8c8 !important;
  padding: 14px !important;
  margin-bottom: 10px !important;
}

.vendor-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #ddd !important;
  padding-bottom: 10px !important;
  margin-bottom: 12px !important;
}

.vendor-section-head h2 {
  color: #172033 !important;
  font-size: 1.12rem !important;
  font-weight: 850 !important;
  margin: 2px 0 0 !important;
}

.vendor-list-head {
  align-items: center;
}

.vendor-toolbar {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e1e5ea;
  border-radius: 4px;
  padding: 8px;
}

.vendor-search-box {
  position: relative;
  flex: 1 1 auto;
  min-width: 240px;
}

.vendor-search-box i {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a97aa;
  pointer-events: none;
}

.vendor-search-box .form-control {
  padding-left: 34px;
  min-height: 36px;
  border-radius: 4px;
}

.vendor-table-wrap {
  border: 1px solid #d7d7d7 !important;
  border-radius: 4px !important;
  background: #fff;
  overflow: auto !important;
  max-height: none !important;
}

.vendor-table-wrap-list {
  max-height: calc(100vh - 210px) !important;
  min-height: 260px;
}

.vendor-table-wrap-sm {
  max-height: 360px !important;
}

.vendor-activation-table-wrap {
  max-height: calc(100vh - 205px) !important;
}

.vendor-table {
  margin-bottom: 0 !important;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
}

.vendor-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #5f7488 !important;
  color: #fff !important;
  border-bottom: 0 !important;
  font-size: .78rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 9px 10px !important;
}

.vendor-table td,
.vendor-table th {
  vertical-align: middle;
  padding: 9px 10px !important;
  border-color: #edf0f2 !important;
  white-space: nowrap;
}

.vendor-table tbody tr:hover td {
  background: #f8fbff;
}

.vendor-table code {
  color: #175cd3;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: .8rem;
}

.vendor-table td:nth-child(2),
.vendor-table .vendor-message-cell,
.vendor-table .vendor-domain-cell,
.vendor-table .vendor-license-cell {
  white-space: normal !important;
}

.vendor-license-cell code {
  display: block;
  max-width: 340px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.vendor-message-cell {
  min-width: 220px;
  max-width: 420px;
}

.vendor-status,
.vendor-soft-pill,
.vendor-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: .75rem;
  font-weight: 800;
  line-height: 1;
  border: 1px solid transparent;
  text-transform: capitalize;
}

.vendor-status-success { color: #087443; background: #ecfdf3; border-color: #abefc6; }
.vendor-status-danger { color: #b42318; background: #fef3f2; border-color: #fecdca; }
.vendor-status-warning { color: #93370d; background: #fffaeb; border-color: #fedf89; }
.vendor-status-info { color: #175cd3; background: #eff6ff; border-color: #bfdbfe; }
.vendor-status-secondary { color: #475467; background: #f2f4f7; border-color: #d0d5dd; }
.vendor-soft-pill { color: #344054; background: #f8fafc; border-color: #e4e7ec; }
.vendor-count-pill { color: #1768e5; background: #e7f0ff; border-color: #cfe0ff; min-width: 30px; }

.vendor-icon-action {
  width: 34px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 0 !important;
  border-radius: 4px !important;
}

.vendor-empty-state {
  min-height: 145px;
  display: grid;
  place-items: center;
  gap: 8px;
  color: #7d8da1;
  text-align: center;
}

.vendor-empty-state i {
  font-size: 2rem;
  color: #a4b0c0;
}

.vendor-note-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.vendor-note-box i {
  color: #1768e5;
  margin-top: 2px;
}

.vendor-info-grid > div {
  border-color: #d7d7d7 !important;
  border-radius: 4px !important;
}

.vendor-form {
  max-width: 1080px;
  margin: 0 auto 22px;
  overflow: visible !important;
  border: 1px solid #c8c8c8;
  background: #fff;
}

.vendor-form .commercial-section {
  border: 0 !important;
  margin-bottom: 0 !important;
}

.vendor-form-grid,
.vendor-payment-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.vendor-form-control {
  display: grid !important;
  grid-template-columns: 150px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px;
  margin: 0 !important;
}

.vendor-form-control-full {
  grid-column: 1 / -1;
}

.vendor-form-control label {
  color: #475467;
  font-weight: 800;
  font-size: .84rem;
  margin: 0 !important;
}

.vendor-form-control.required label::after,
.classic-field.required.vendor-form-control label::after {
  content: " *";
  color: #dc3545;
}

.vendor-form-control .form-control,
.vendor-form-control .form-select,
.vendor-payment-form .form-control,
.vendor-payment-form .form-select {
  min-height: 36px;
  border-radius: 4px;
}

.vendor-form-control textarea.form-control,
.vendor-payment-form textarea.form-control {
  min-height: 92px;
  height: auto !important;
  resize: vertical;
}

.vendor-online-check {
  grid-template-columns: 22px minmax(0, 1fr) !important;
  align-items: start !important;
}

.vendor-savebar {
  border-radius: 0 !important;
  background: #f8fafc !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 5;
}

.vendor-payment-side {
  max-height: calc(100vh - 20px);
}

.vendor-payment-form {
  display: grid;
  gap: 10px;
}

.vendor-payment-form-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.vendor-payment-form .vendor-form-control {
  grid-template-columns: 108px minmax(0, 1fr) !important;
}

.vendor-payment-submit {
  min-height: 38px;
}

@media(max-width:1200px) {
  .vendor-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .vendor-dashboard-layout,
  .vendor-payment-layout {
    grid-template-columns: 1fr !important;
  }
  .vendor-side {
    position: static !important;
    max-height: none;
  }
  .vendor-table-wrap-list,
  .vendor-activation-table-wrap {
    max-height: 560px !important;
  }
  .vendor-payment-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media(max-width:900px) {
  body.kpri-vendor-body .vendor-page,
  .embed-body.kpri-vendor-body .vendor-page,
  .vendor-page[data-vendor-page] {
    padding: 8px 8px 24px !important;
  }
  .vendor-hero {
    grid-template-columns: 1fr;
  }
  .vendor-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vendor-list-head,
  .vendor-section-head,
  .vendor-toolbar {
    display: grid !important;
    grid-template-columns: 1fr;
  }
  .vendor-search-box {
    min-width: 0;
  }
  .vendor-form-grid,
  .vendor-payment-form-grid {
    grid-template-columns: 1fr;
  }
  .vendor-form-control,
  .vendor-payment-form .vendor-form-control {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
    gap: 4px;
  }
}

@media(max-width:640px) {
  .vendor-kpi-grid {
    grid-template-columns: 1fr;
  }
  .vendor-hero h1 {
    font-size: 1.28rem;
  }
  .vendor-card-section,
  .vendor-form-section {
    padding: 12px !important;
  }
  .vendor-savebar {
    justify-content: stretch !important;
  }
  .vendor-savebar .btn {
    width: 100%;
  }
}

/* Vendor System page v1.2.6: clean internal tabs + iframe scroll fix */
body.kpri-commercial-body,
.embed-body.kpri-commercial-body {
  height: auto !important;
  min-height: 100vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: #eef0f3 !important;
  scrollbar-width: thin;
}

body.kpri-commercial-body .embed-content,
.embed-body.kpri-commercial-body .embed-content {
  height: auto !important;
  min-height: 100vh !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 0 18px !important;
}

body.kpri-commercial-body .commercial-page,
.embed-body.kpri-commercial-body .commercial-page,
.commercial-vendor-system[data-commercial-page] {
  min-height: 100vh !important;
  overflow: visible !important;
  overflow-x: hidden !important;
  background: #eef0f3;
  padding: 10px 10px 28px !important;
}

body.kpri-commercial-body .commercial-page .accurate-inner-tabs,
.commercial-vendor-system .accurate-inner-tabs {
  margin: 0 0 10px !important;
}

.commercial-vendor-system,
.commercial-vendor-system * {
  min-width: 0;
  box-sizing: border-box;
}

.commercial-vendor-system .accurate-card,
.commercial-vendor-system .commercial-section {
  border-radius: 4px !important;
  border-color: #c8c8c8 !important;
  box-shadow: none !important;
}

.commercial-vendor-system-tabs {
  display: flex !important;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px !important;
  background: #fff;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  scrollbar-width: thin;
}

.commercial-vendor-system-tabs .inner-data-tab {
  appearance: none;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  flex: 0 0 auto;
  border-radius: 4px;
  min-height: 34px;
  font-weight: 800;
}

.commercial-vendor-system-tabs .inner-data-tab.active,
.commercial-vendor-system-tabs .inner-data-tab:hover {
  background: #e7f0ff !important;
  border-color: #cfe0ff !important;
  color: #1768e5 !important;
}

.commercial-vendor-system-hero {
  margin-bottom: 10px !important;
  background: radial-gradient(circle at 88% 0%, rgba(10, 166, 166, .14), transparent 30%), linear-gradient(135deg, #fff, #f7fbff) !important;
}

.commercial-vendor-system .commercial-status-card {
  min-width: 210px;
}

.commercial-vendor-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 10px;
}

.vendor-system-panel.is-active {
  display: grid;
  gap: 10px;
}

.vendor-system-panel[hidden] {
  display: none !important;
}

.vendor-system-section {
  margin-bottom: 0 !important;
}

.vendor-system-info-layout {
  display: grid;
  gap: 10px;
}

.vendor-system-info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vendor-system-info-grid strong,
.vendor-system-check-list span,
.vendor-system-check-list small,
.vendor-system-copy pre,
.commercial-vendor-system .commercial-note-box,
.commercial-vendor-system code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.vendor-system-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e4e7ec;
}

.vendor-system-check-list > div {
  align-items: flex-start;
}

.vendor-system-check-list .badge {
  flex: 0 0 auto;
  margin-top: 2px;
}

.vendor-system-copy {
  max-width: 100%;
  overflow: auto;
}

.vendor-system-copy pre {
  white-space: pre-wrap;
  margin: 0;
}

@media(max-width: 900px) {
  .commercial-vendor-system-hero {
    flex-direction: column;
  }
  .commercial-vendor-system .commercial-status-card {
    width: 100%;
    min-width: 0;
  }
  .commercial-vendor-kpi-grid,
  .vendor-system-info-grid {
    grid-template-columns: 1fr;
  }
  .commercial-vendor-system .commercial-section-head {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media(max-width: 640px) {
  body.kpri-commercial-body .commercial-page,
  .embed-body.kpri-commercial-body .commercial-page,
  .commercial-vendor-system[data-commercial-page] {
    padding: 8px 8px 24px !important;
  }
  .commercial-vendor-system-tabs {
    padding: 6px !important;
  }
  .vendor-system-actions .btn {
    width: 100%;
  }
}


/* Client Commercial pages scroll fix v1.2.7
   Applies only to client-side commercial tabs: Lisensi Aplikasi, Informasi Sistem, Checklist Hosting.
   The global Accurate embed stylesheet locks iframe body overflow for data grids; these commercial pages need full-page vertical scroll. */
body.kpri-client-commercial-body,
.embed-body.kpri-client-commercial-body {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: auto !important;
  min-height: 100vh !important;
  background: #efefef !important;
  scrollbar-width: thin;
}

body.kpri-client-commercial-body .embed-content,
.embed-body.kpri-client-commercial-body .embed-content {
  height: auto !important;
  min-height: 100vh !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 0 22px !important;
}

body.kpri-client-commercial-body .commercial-page,
.embed-body.kpri-client-commercial-body .commercial-page,
body.kpri-client-commercial-body .commercial-check-page,
.embed-body.kpri-client-commercial-body .commercial-check-page {
  height: auto !important;
  max-height: none !important;
  min-height: 100vh !important;
  overflow: visible !important;
  background: #efefef !important;
  padding: 0 8px 28px !important;
}

body.kpri-client-commercial-body .commercial-page .accurate-inner-tabs,
.embed-body.kpri-client-commercial-body .commercial-page .accurate-inner-tabs,
body.kpri-client-commercial-body .commercial-check-page .accurate-inner-tabs,
.embed-body.kpri-client-commercial-body .commercial-check-page .accurate-inner-tabs {
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  flex: 0 0 auto !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: thin;
}

body.kpri-client-commercial-body .commercial-layout,
.embed-body.kpri-client-commercial-body .commercial-layout {
  min-height: 0 !important;
  overflow: visible !important;
}

body.kpri-client-commercial-body .commercial-main,
.embed-body.kpri-client-commercial-body .commercial-main {
  min-height: 0 !important;
  overflow: visible !important;
}

body.kpri-client-commercial-body .commercial-form,
.embed-body.kpri-client-commercial-body .commercial-form,
body.kpri-client-commercial-body .accurate-entry-form.commercial-form,
.embed-body.kpri-client-commercial-body .accurate-entry-form.commercial-form {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
}

body.kpri-client-commercial-body .commercial-section,
.embed-body.kpri-client-commercial-body .commercial-section,
body.kpri-client-commercial-body .commercial-hero,
.embed-body.kpri-client-commercial-body .commercial-hero,
body.kpri-client-commercial-body .commercial-kpi,
.embed-body.kpri-client-commercial-body .commercial-kpi,
body.kpri-client-commercial-body .commercial-side,
.embed-body.kpri-client-commercial-body .commercial-side {
  min-width: 0 !important;
}

body.kpri-client-commercial-body .commercial-side,
.embed-body.kpri-client-commercial-body .commercial-side {
  max-height: calc(100vh - 58px) !important;
  overflow: auto !important;
}

body.kpri-client-commercial-body .commercial-copy-box,
.embed-body.kpri-client-commercial-body .commercial-copy-box {
  max-width: 100% !important;
  overflow: auto !important;
}

body.kpri-client-commercial-body .commercial-copy-box pre,
.embed-body.kpri-client-commercial-body .commercial-copy-box pre {
  white-space: pre-wrap !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

body.kpri-client-commercial-body .commercial-savebar,
.embed-body.kpri-client-commercial-body .commercial-savebar {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 30 !important;
}

body.kpri-client-commercial-body .commercial-check-scroll,
.embed-body.kpri-client-commercial-body .commercial-check-scroll {
  max-height: none !important;
  height: auto !important;
  overflow: auto !important;
}

@media (max-width: 1100px) {
  body.kpri-client-commercial-body .commercial-side,
  .embed-body.kpri-client-commercial-body .commercial-side {
    position: static !important;
    max-height: none !important;
  }
}


/* v1.2.8 Auto Register Install + Client License Readonly */
.commercial-readonly-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.commercial-readonly-item {
  border: 1px solid #e4e7ec;
  background: #f8fafc;
  border-radius: 14px;
  padding: 12px 14px;
  min-width: 0;
}
.commercial-readonly-item span {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 5px;
}
.commercial-readonly-item strong {
  display: block;
  color: #101828;
  line-height: 1.35;
  word-break: break-word;
}
.commercial-readonly-item small,
.commercial-field-help {
  display: block;
  color: #667085;
  font-size: .82rem;
  margin-top: 4px;
  line-height: 1.35;
}
.commercial-client-note strong {
  white-space: normal;
  word-break: break-word;
}
.vendor-installation-table td,
.vendor-installation-table th {
  vertical-align: top;
}
.vendor-actions-cell {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 190px;
}
.vendor-actions-cell .btn {
  white-space: nowrap;
}
@media (max-width: 760px) {
  .commercial-readonly-grid { grid-template-columns: 1fr; }
  .vendor-installation-table thead { display: none; }
  .vendor-installation-table,
  .vendor-installation-table tbody,
  .vendor-installation-table tr,
  .vendor-installation-table td { display: block; width: 100%; }
  .vendor-installation-table tr {
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    padding: 10px;
    margin-bottom: 10px;
    background: #fff;
  }
  .vendor-installation-table td {
    border: 0 !important;
    padding: 7px 4px !important;
  }
  .vendor-installation-table td::before {
    content: attr(data-label);
    display: block;
    font-size: .72rem;
    font-weight: 800;
    color: #667085;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 3px;
  }
  .vendor-actions-cell { min-width: 0; }
}
