/* Vanpay Blue UI V2 — Phase 4D.2 Ticket Center Mobile */
body[data-vp-page="data-tiket"],
body[data-vp-page="tiket-baru"] {
  --vp-ticket-blue: #08a6df;
  --vp-ticket-blue-dark: #047fae;
  --vp-ticket-ink: #17283b;
  --vp-ticket-muted: #718090;
  --vp-ticket-border: #d8e7ed;
  --vp-ticket-soft: #f2f9fc;
  --vp-ticket-white: #ffffff;
}

.vp-ticket-heading,
.vp-ticket-new-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.vp-ticket-heading p,
.vp-ticket-new-heading p {
  color: var(--vp-ticket-muted);
  font-size: .92rem;
}

.vp-ticket-new-button {
  white-space: nowrap;
}

.vp-ticket-filter-form {
  margin-bottom: 22px;
}

.vp-ticket-search-group .input-group-text {
  background: var(--vp-ticket-white);
  border-color: var(--vp-ticket-border);
  color: var(--vp-ticket-muted);
  padding-inline: 16px;
}

.vp-ticket-search-group .form-control,
.vp-ticket-search-group .btn {
  min-height: 50px;
}

.vp-ticket-filter-panel {
  margin-top: 12px;
  border: 1px solid var(--vp-ticket-border);
  border-radius: 14px;
  background: var(--vp-ticket-soft);
  overflow: hidden;
}

.vp-ticket-filter-panel > summary,
.vp-ticket-help-card > summary {
  list-style: none;
  cursor: pointer;
}

.vp-ticket-filter-panel > summary::-webkit-details-marker,
.vp-ticket-help-card > summary::-webkit-details-marker {
  display: none;
}

.vp-ticket-filter-panel > summary {
  min-height: 48px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--vp-ticket-blue-dark);
  font-weight: 700;
}

.vp-ticket-filter-panel[open] .vp-ticket-filter-chevron,
.vp-ticket-help-card[open] .vp-ticket-help-chevron {
  transform: rotate(180deg);
}

.vp-ticket-filter-chevron,
.vp-ticket-help-chevron {
  transition: transform .2s ease;
}

.vp-ticket-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  padding: 0 16px 16px;
  align-items: end;
}

.vp-ticket-filter-actions {
  display: flex;
  gap: 8px;
}

.vp-ticket-mobile-list {
  display: none;
}

.vp-ticket-empty-state {
  padding: 52px 20px;
  text-align: center;
  border: 1px dashed #b9dbe8;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fdff 0%, #eef9fd 100%);
}

.vp-ticket-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: #dff6fd;
  color: var(--vp-ticket-blue-dark);
  font-size: 1.75rem;
}

.vp-ticket-empty-state h5 {
  margin-bottom: 8px;
  color: var(--vp-ticket-ink);
}

.vp-ticket-empty-state p {
  max-width: 470px;
  margin: 0 auto 20px;
  color: var(--vp-ticket-muted);
}

.vp-ticket-pagination-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.vp-ticket-count {
  color: var(--vp-ticket-muted);
  font-size: .9rem;
}

.vp-ticket-new-page .form-group {
  margin-bottom: 20px;
}

.vp-ticket-new-page .form-label {
  color: #32475a;
  font-weight: 700;
}

.vp-ticket-new-form .form-control,
.vp-ticket-new-form .select2-container .select2-selection--single {
  min-height: 52px;
  border-color: var(--vp-ticket-border);
  border-radius: 14px;
}

.vp-ticket-new-form textarea.form-control {
  min-height: 155px;
  padding-top: 14px;
  resize: vertical;
}

.vp-ticket-heading-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--vp-ticket-blue-dark);
  background: #def6fd;
  font-size: 1.25rem;
}

.vp-ticket-new-heading {
  justify-content: flex-start;
}

.vp-ticket-field-help {
  display: block;
  margin-top: 7px;
  color: var(--vp-ticket-muted);
}

.vp-ticket-submit-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #e5edf1;
}

.vp-ticket-reset-button {
  color: #5a6f7e;
  border: 1px solid var(--vp-ticket-border);
  background: #f3f7f9;
}

.vp-ticket-submit-button {
  min-width: 170px;
}

.vp-ticket-help-card {
  overflow: hidden;
}

.vp-ticket-help-card > summary.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--vp-ticket-ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.vp-ticket-help-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: #f3f9fc;
}

.vp-ticket-help-item + .vp-ticket-help-item {
  margin-top: 10px;
}

.vp-ticket-help-item > i {
  margin-top: 3px;
  color: var(--vp-ticket-blue-dark);
}

.vp-ticket-help-item p {
  margin: 4px 0 0;
  color: var(--vp-ticket-muted);
  font-size: .88rem;
  line-height: 1.55;
}

.vp-ticket-help-item.is-warning {
  background: #fff8e7;
}

.vp-ticket-help-item.is-warning > i {
  color: #d99700;
}

@media (min-width: 768px) {
  .vp-ticket-filter-panel > summary {
    display: none;
  }

  .vp-ticket-filter-panel:not([open]) > .vp-ticket-filter-grid {
    display: grid;
  }

  .vp-ticket-filter-panel {
    padding-top: 16px;
  }
}

@media (max-width: 767.98px) {
  body[data-vp-page="data-tiket"] .pc-container,
  body[data-vp-page="tiket-baru"] .pc-container {
    padding-bottom: 30px;
  }

  .vp-ticket-shell,
  .vp-ticket-form-card,
  .vp-ticket-help-card {
    border-radius: 20px;
  }

  .vp-ticket-heading,
  .vp-ticket-new-heading {
    padding: 18px 20px;
  }

  .vp-ticket-heading {
    align-items: flex-start;
  }

  .vp-ticket-heading h4,
  .vp-ticket-new-heading h4 {
    font-size: 1.18rem;
  }

  .vp-ticket-heading p,
  .vp-ticket-new-heading p {
    font-size: .82rem;
    line-height: 1.45;
  }

  .vp-ticket-new-button {
    padding: 10px 13px;
    font-size: .84rem;
  }

  .vp-ticket-body,
  .vp-ticket-form-card > .card-body {
    padding: 18px;
  }

  .vp-ticket-filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .vp-ticket-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .vp-ticket-desktop-table {
    display: none !important;
  }

  .vp-ticket-mobile-list {
    display: grid;
    gap: 14px;
  }

  .vp-ticket-card {
    padding: 17px;
    border: 1px solid var(--vp-ticket-border);
    border-radius: 18px;
    background: var(--vp-ticket-white);
    box-shadow: 0 6px 20px rgba(20, 78, 105, .06);
  }

  .vp-ticket-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .vp-ticket-card-id {
    color: var(--vp-ticket-ink);
    font-size: 1.05rem;
    font-weight: 800;
  }

  .vp-ticket-unread {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-left: 5px;
    border-radius: 50%;
    color: #ba7900;
    background: #fff0c7;
    font-size: .72rem;
  }

  .vp-ticket-status {
    padding: 7px 11px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
    white-space: nowrap;
  }

  .vp-ticket-card.is-waiting .vp-ticket-status {
    color: #9a6900;
    background: #fff0c6;
  }

  .vp-ticket-card.is-user-reply .vp-ticket-status {
    color: #586676;
    background: #eaf0f4;
  }

  .vp-ticket-card.is-responded .vp-ticket-status {
    color: #007a62;
    background: #d9f8ef;
  }

  .vp-ticket-card.is-closed .vp-ticket-status {
    color: #64707c;
    background: #eef1f3;
  }

  .vp-ticket-subject {
    margin: 14px 0 9px;
    color: var(--vp-ticket-ink);
    font-size: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .vp-ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 15px;
    color: var(--vp-ticket-muted);
    font-size: .8rem;
  }

  .vp-ticket-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .vp-ticket-open-button {
    width: 100%;
  }

  .vp-ticket-pagination-row {
    flex-direction: column;
    text-align: center;
  }

  .vp-ticket-empty-state {
    padding: 42px 20px;
  }

  .vp-ticket-new-page > [class*="col-"] + [class*="col-"] {
    margin-top: 14px;
  }

  .vp-ticket-new-heading {
    align-items: flex-start;
  }

  .vp-ticket-heading-icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 14px;
  }

  .vp-ticket-submit-row {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
  }

  .vp-ticket-submit-row .btn {
    min-width: 0;
    min-height: 50px;
  }

  .vp-ticket-help-card > summary.card-header {
    min-height: 68px;
    padding: 18px 20px;
  }

  .vp-ticket-help-card:not([open]) > .card-body {
    display: none;
  }
}

@media (max-width: 420px) {
  .vp-ticket-heading {
    display: grid;
  }

  .vp-ticket-new-button {
    width: 100%;
  }

  .vp-ticket-filter-grid {
    grid-template-columns: 1fr;
  }

  .vp-ticket-filter-actions {
    grid-column: auto;
  }
}
