.dv-ghn-box{ margin: 0 0 12px; }
.dv-ghn-current small{ display:block; margin-top:6px; color:#555; }

.dv-ghn-modal{ display:none; }
.dv-ghn-modal.is-open{ display:block; position:fixed; inset:0; z-index:999999; }
.dv-ghn-modal__backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.45); }
.dv-ghn-modal__panel{
  position:relative;
  width:min(560px, calc(100% - 24px));
  margin: 6vh auto 0;
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 12px 30px rgba(0,0,0,.25);
}
.dv-ghn-modal__header{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px; border-bottom:1px solid #eee;
}
.dv-ghn-close{ background:transparent; border:0; font-size:22px; line-height:1; cursor:pointer; }
.dv-ghn-modal__body{ padding:14px; }
.dv-ghn-row{ margin: 0 0 10px; }
.dv-ghn-row label{ display:block; font-weight:600; margin-bottom:6px; }
.dv-ghn-row select, .dv-ghn-row input{ width:100%; padding:10px; border:1px solid #ddd; border-radius:8px; }
.dv-ghn-row--actions{ display:flex; gap:10px; justify-content:flex-end; margin-top:12px; }
.dv-ghn-status{ margin-top:10px; min-height:18px; font-size:13px; }
.dv-ghn-status.is-error{ color:#b00020; }
.dv-ghn-status.is-ok{ color:#0a7a32; }
/* ===== DV GHN Modal buttons ===== */
.dv-ghn-modal__panel{
  border-radius: 12px;
}

.dv-ghn-row--actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.dv-ghn-row--actions .button{
  appearance: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #344054;
  box-shadow: 0 1px 2px rgba(16,24,40,.06);
  transition: transform .05s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}

.dv-ghn-row--actions .button:hover{
  background: #f9fafb;
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(16,24,40,.10);
}

.dv-ghn-row--actions .button:active{
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(16,24,40,.10);
}

.dv-ghn-row--actions .button:focus{
  outline: none;
}

.dv-ghn-row--actions .button:focus-visible{
  outline: 3px solid rgba(59,130,246,.35);
  outline-offset: 2px;
}

/* Primary = Áp dụng */
.dv-ghn-row--actions .button-primary.dv-ghn-save{
  border-color: #1d4ed8;
  background: #2563eb;
  color: #fff;
}

.dv-ghn-row--actions .button-primary.dv-ghn-save:hover{
  background: #1d4ed8;
  border-color: #1e40af;
}

/* Secondary = Huỷ */
.dv-ghn-row--actions .button.dv-ghn-close{
  background: #fff;
  color: #111827;
}

/* ===== DV GHN Modal: make action buttons DMX-like ===== */
.dv-ghn-modal__panel{
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  letter-spacing: -0.1px;
}

/* Canh giữa 2 nút */
.dv-ghn-row.dv-ghn-row--actions{
  display:flex;
  justify-content:center;  /* từ flex-end -> center */
  align-items:center;
  gap:12px;
  margin-top:16px;
}

/* Base button style */
.dv-ghn-row.dv-ghn-row--actions .button{
  appearance:none;
  border-radius:14px;
  height:44px;
  min-width:140px;
  padding:0 18px;
  font-size:15px;
  font-weight:800;
  line-height:44px;
  cursor:pointer;
  transition: transform .08s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
}

/* Primary: Áp dụng */
.dv-ghn-row.dv-ghn-row--actions .button.button-primary,
.dv-ghn-row.dv-ghn-row--actions .dv-ghn-save{
  background: linear-gradient(180deg, #2f80ed 0%, #1f6fe6 100%);
  border:1px solid #1f6fe6;
  color:#fff;
  box-shadow: 0 12px 26px rgba(47, 128, 237, .28);
}

/* Secondary: Hủy */
.dv-ghn-row.dv-ghn-row--actions .dv-ghn-close{
  background:#fff;
  border:1px solid #d7dbe2;
  color:#111827;
  box-shadow: 0 8px 18px rgba(17, 24, 39, .10);
}

/* Hover / Active */
.dv-ghn-row.dv-ghn-row--actions .button:hover{
  box-shadow: 0 14px 30px rgba(17, 24, 39, .14);
}
.dv-ghn-row.dv-ghn-row--actions .button:active{
  transform: translateY(1px);
}

/* Mobile: full width giống DMX */
@media (max-width: 520px){
  .dv-ghn-row.dv-ghn-row--actions{
    flex-direction:column;
    align-items:stretch;
  }
  .dv-ghn-row.dv-ghn-row--actions .button{
    width:100%;
    min-width:0;
  }
}
