/* =========================================================================
   M2 — Support & Knowledgebase pages (Batch D)
   Applies to: supportticketsubmit-stepone, supportticketsubmit-confirm,
               supportticketslist, knowledgebase
   ========================================================================= */

:root {
  --m2-sup-border: rgba(11, 22, 34, 0.08);
  --m2-sup-muted: #5a6975;
  --m2-sup-cyan: #48c0d8;
  --m2-sup-cyan-deep: #2c8aa0;
  --m2-sup-radius: 14px;
  --m2-sup-radius-sm: 10px;
  --m2-sup-success: #28a745;
  --m2-sup-warn: #ffc107;
}

/* ---------- Support pages: single card canvas (no double white box) ---------- */
body.m2-page-support #main-body {
  padding-bottom: 2rem;
}

body.m2-page-support .main-page-contents.m2-support-page-canvas {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0.35rem 0 1.25rem !important;
  margin-bottom: 0 !important;
  text-align: start !important;
}

body.m2-page-support .main-page-contents.m2-support-page-canvas::before {
  display: none !important;
}

body.m2-page-support .main-page-contents.m2-support-page-canvas .card {
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  background: transparent !important;
}

body.m2-page-support .main-page-contents.m2-support-page-canvas .card::before {
  display: none !important;
}

body.m2-page-support .main-page-contents.m2-support-page-canvas .card-body {
  padding: 0 !important;
}

/* =========================================================================
   D.2 — Ticket creation success (confirm)
   ========================================================================= */
.m2-ticket-confirm {
  border: 1px solid var(--m2-sup-border);
  border-radius: var(--m2-sup-radius);
  box-shadow: 0 4px 20px rgba(11, 22, 34, 0.04);
}

.m2-ticket-confirm__icon {
  font-size: 4rem;
  color: var(--m2-sup-success);
  line-height: 1;
  animation: m2-ticket-pop 0.4s ease-out;
}

@keyframes m2-ticket-pop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.m2-ticket-confirm__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0b1622;
  line-height: 1.5;
}

.m2-ticket-confirm__tid {
  color: var(--m2-sup-cyan-deep);
  direction: ltr;
  display: inline-block;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.m2-ticket-confirm__desc {
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 440px;
  margin-inline: auto;
}

.m2-ticket-confirm .btn i {
  margin-inline-end: 0.35rem;
}

/* =========================================================================
   D.1 — Department selection (clickable cards)
   ========================================================================= */
.m2-ticket-stepone__head {
  text-align: start;
}

.m2-ticket-stepone__title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #0b1622;
  text-align: start;
}

.m2-ticket-stepone__head p {
  text-align: start;
}

.m2-ticket-departments {
  margin-inline: 0;
}

.m2-ticket-dept-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--m2-sup-border);
  border-radius: var(--m2-sup-radius);
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.m2-ticket-dept-card:hover,
.m2-ticket-dept-card:focus {
  text-decoration: none;
  color: inherit;
  border-color: rgba(72, 192, 216, 0.4);
  box-shadow: 0 8px 24px rgba(72, 192, 216, 0.1);
  transform: translateY(-2px);
}

.m2-ticket-dept-card__icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--m2-sup-radius-sm);
  background: rgba(72, 192, 216, 0.12);
  color: var(--m2-sup-cyan-deep);
  font-size: 1.3rem;
}

.m2-ticket-dept-card__body {
  flex: 1 1 auto;
  min-width: 0;
}

.m2-ticket-dept-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: #0b1622;
  margin: 0 0 0.25rem 0;
  text-align: start;
}

.m2-ticket-dept-card__desc {
  font-size: 0.85rem;
  color: var(--m2-sup-muted);
  line-height: 1.45;
  margin: 0;
  text-align: start;
}

.m2-ticket-dept-card__arrow {
  flex: 0 0 auto;
  color: var(--m2-sup-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.m2-ticket-dept-card__arrow i {
  transition: transform 0.2s ease;
  display: inline-block;
}

.m2-ticket-dept-card:hover .m2-ticket-dept-card__arrow {
  color: var(--m2-sup-cyan-deep);
}

/* LTR arrow: move right on hover */
.m2-ticket-dept-card:hover .m2-ticket-dept-card__arrow i {
  transform: translateX(3px);
}

/* RTL: arrow points left, and moves further left on hover */
[dir="rtl"] .m2-ticket-dept-card__arrow i {
  transform: scaleX(-1);
}

[dir="rtl"] .m2-ticket-dept-card:hover .m2-ticket-dept-card__arrow i {
  transform: scaleX(-1) translateX(3px);
}

/* =========================================================================
   Step 2 — Premium ticket submit form
   ========================================================================= */
.m2-ticket-form {
  font-family: 'Cairo', 'Inter', sans-serif;
}

.m2-ticket-form-shell {
  background: #fff;
  border: 1px solid var(--m2-sup-border);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(11, 22, 34, 0.06);
  overflow: hidden;
}

.m2-ticket-form-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "icon body steps"
    "icon body steps";
  align-items: start;
  gap: 0.85rem 1.15rem;
  padding: 1.35rem 1.5rem;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(72, 192, 216, 0.14) 0%, transparent 55%),
    linear-gradient(135deg, #05141f 0%, #0a2744 55%, #0f3580 120%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.m2-ticket-form-head__icon {
  grid-area: icon;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(72, 192, 216, 0.18);
  color: #6dd4ef;
  font-size: 1.35rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.m2-ticket-form-head__body {
  grid-area: body;
  min-width: 0;
}

.m2-ticket-form-head__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  text-align: start;
  line-height: 1.3;
}

.m2-ticket-form-head__sub {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  text-align: start;
  max-width: 640px;
}

.m2-ticket-form-steps {
  grid-area: steps;
  align-self: start;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 600;
  max-width: 100%;
  flex-wrap: wrap;
}

.m2-ticket-form-steps__item {
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.m2-ticket-form-steps__item.is-done {
  color: rgba(109, 212, 239, 0.95);
}

.m2-ticket-form-steps__item.is-active {
  color: #fff;
}

.m2-ticket-form-steps__item i {
  margin-inline-end: 0.25rem;
  font-size: 0.72rem;
}

.m2-ticket-form-steps__sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.65rem;
}

[dir="rtl"] .m2-ticket-form-steps__sep i {
  transform: scaleX(-1);
}

.m2-ticket-form-alert {
  padding: 1rem 1.5rem 0;
}

.m2-ticket-form-alert .alert {
  margin-bottom: 0;
  border-radius: 12px;
}

.m2-ticket-form-section {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(11, 22, 34, 0.06);
  background: #fff;
}

.m2-ticket-form-section:nth-of-type(even) {
  background: rgba(248, 251, 253, 0.72);
}

.m2-ticket-form-section:last-of-type {
  border-bottom: none;
}

.m2-ticket-form-section__title {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0b1622;
  text-align: start;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.45rem;
  line-height: 1.35;
}

.m2-ticket-form-section__title i {
  color: var(--m2-sup-cyan-deep);
  font-size: 0.88rem;
  flex-shrink: 0;
  line-height: 1;
}

.m2-ticket-form-grid {
  margin-inline: 0;
}

.m2-ticket-field {
  margin-bottom: 0;
}

.m2-ticket-field + .m2-ticket-field,
.m2-ticket-form-grid > [class*="col-"] + [class*="col-"] .m2-ticket-field {
  margin-top: 0;
}

.m2-ticket-form-grid > [class*="col-"]:not(:last-child) .m2-ticket-field {
  margin-bottom: 0.85rem;
}

@media (min-width: 768px) {
  .m2-ticket-form-grid > [class*="col-"] .m2-ticket-field {
    margin-bottom: 0;
  }
}

.m2-ticket-label {
  display: block;
  margin-bottom: 0.32rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0b1622;
  text-align: start;
  line-height: 1.3;
}

.m2-ticket-input-wrap {
  position: relative;
  display: block;
}

.m2-ticket-input-wrap__icon {
  position: absolute;
  top: 50%;
  inset-inline-end: 0.72rem;
  transform: translateY(-50%);
  color: var(--m2-sup-muted);
  font-size: 0.82rem;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
  width: 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.m2-ticket-input-wrap--select .m2-ticket-input-wrap__icon {
  display: none;
}

.m2-ticket-input,
.m2-ticket-form input.form-control.m2-ticket-input,
.m2-ticket-form select.form-control.m2-ticket-input,
.m2-ticket-form textarea.form-control.m2-ticket-input {
  border: 1px solid rgba(11, 22, 34, 0.12) !important;
  border-radius: 10px !important;
  padding-block: 0.48rem !important;
  padding-inline: 0.85rem !important;
  font-size: 0.875rem !important;
  line-height: 1.35 !important;
  height: auto !important;
  min-height: 38px;
  background: #fff !important;
  color: #0b1622 !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  text-align: start;
}

.m2-ticket-input-wrap:not(.m2-ticket-input-wrap--select) .m2-ticket-input,
.m2-ticket-form .m2-ticket-input-wrap:not(.m2-ticket-input-wrap--select) input.form-control.m2-ticket-input {
  padding-inline-end: 2.15rem !important;
}

.m2-ticket-input-wrap--select .m2-ticket-input,
.m2-ticket-form select.form-control.m2-ticket-input {
  padding-inline: 0.85rem 2rem !important;
  appearance: auto;
  cursor: pointer;
}

.m2-ticket-input:focus,
.m2-ticket-form input.form-control.m2-ticket-input:focus,
.m2-ticket-form select.form-control.m2-ticket-input:focus,
.m2-ticket-form textarea.form-control.m2-ticket-input:focus {
  border-color: var(--m2-sup-cyan) !important;
  box-shadow: 0 0 0 3px rgba(72, 192, 216, 0.18) !important;
  outline: none !important;
}

.m2-ticket-input-wrap--locked .m2-ticket-input,
.m2-ticket-input-wrap--locked .m2-ticket-input:disabled {
  background: rgba(11, 22, 34, 0.03) !important;
  color: var(--m2-sup-muted) !important;
  cursor: not-allowed;
}

.m2-ticket-textarea {
  min-height: 150px !important;
  padding-block: 0.65rem !important;
  padding-inline: 0.85rem !important;
  line-height: 1.5 !important;
  resize: vertical;
}

.m2-ticket-field--message .m2-ticket-input-wrap__icon {
  top: 0.65rem;
  transform: none;
}

.m2-ticket-field--message .m2-ticket-textarea {
  padding-inline-end: 2.15rem !important;
}

.m2-ticket-editor-wrap {
  border: 1px solid rgba(11, 22, 34, 0.12);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.m2-ticket-editor-wrap:focus-within {
  border-color: var(--m2-sup-cyan);
  box-shadow: 0 0 0 3px rgba(72, 192, 216, 0.18);
}

.m2-ticket-editor-wrap .md-header {
  background: rgba(11, 22, 34, 0.03);
  border-bottom: 1px solid rgba(11, 22, 34, 0.08);
  padding: 0.35rem 0.5rem;
}

.m2-ticket-editor-wrap .md-header .btn {
  border-radius: 8px;
  border-color: transparent;
  color: var(--m2-sup-muted);
}

.m2-ticket-editor-wrap .md-header .btn:hover {
  background: rgba(72, 192, 216, 0.12);
  color: var(--m2-sup-cyan-deep);
}

.m2-ticket-editor-wrap .md-editor {
  border: none !important;
  border-radius: 0 !important;
}

.m2-ticket-editor-wrap textarea.m2-ticket-input,
.m2-ticket-editor-wrap textarea.markdown-editor {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0.85rem 1rem !important;
  min-height: 200px !important;
}

.m2-ticket-editor-wrap .md-preview {
  padding: 0.85rem 1rem;
}

.m2-ticket-input-wrap--custom input,
.m2-ticket-input-wrap--custom select,
.m2-ticket-input-wrap--custom textarea {
  width: 100%;
  border: 1px solid rgba(11, 22, 34, 0.12);
  border-radius: 12px;
  padding: 0.72rem 0.95rem;
  font-size: 0.92rem;
  min-height: 46px;
}

.m2-ticket-field-hint {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: var(--m2-sup-muted);
  text-align: start;
}

/* Attachments */
.m2-ticket-attach__row {
  margin-bottom: 0.5rem;
  align-items: stretch !important;
}

.m2-ticket-attach__row .input-group-append {
  display: flex;
}

.m2-ticket-attach__file {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
}

.m2-ticket-attach__file.custom-file {
  height: 38px !important;
}

.m2-ticket-attach__file .custom-file-label {
  border: 1px dashed rgba(72, 192, 216, 0.45);
  border-radius: 10px;
  padding: 0.48rem 0.85rem;
  background: rgba(72, 192, 216, 0.04);
  color: var(--m2-sup-muted);
  font-size: 0.84rem;
  line-height: 1.35;
  text-align: start;
  min-height: 38px;
  height: 38px !important;
  display: flex;
  align-items: center;
  margin: 0;
}

.m2-ticket-attach__file .custom-file-input {
  height: 38px !important;
  min-height: 38px;
}

.m2-ticket-attach__file .custom-file-label::after {
  height: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0.48rem 0.85rem;
  line-height: 1.35;
  border-radius: 0 10px 10px 0;
}

.m2-ticket-attach__file .custom-file-input:focus ~ .custom-file-label {
  border-color: var(--m2-sup-cyan);
  box-shadow: 0 0 0 3px rgba(72, 192, 216, 0.18);
}

.m2-ticket-attach__add {
  border-radius: 10px !important;
  border: 1px solid rgba(72, 192, 216, 0.35) !important;
  background: rgba(72, 192, 216, 0.1) !important;
  color: var(--m2-sup-cyan-deep) !important;
  font-weight: 600;
  font-size: 0.84rem !important;
  padding: 0.48rem 0.85rem !important;
  min-height: 38px;
  height: 100%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.m2-ticket-attach__add:hover {
  background: rgba(72, 192, 216, 0.18) !important;
  color: #0b1622 !important;
}

.m2-ticket-attach__hint {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--m2-sup-muted);
  text-align: start;
}

.m2-ticket-attach__hint i {
  color: var(--m2-sup-cyan-deep);
  margin-inline-end: 0.3rem;
}

.m2-ticket-form-captcha {
  padding: 0.75rem 1.5rem 0;
}

.m2-ticket-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.25rem;
  background: rgba(11, 22, 34, 0.02);
  border-top: 1px solid rgba(11, 22, 34, 0.06);
}

[dir="rtl"] .m2-ticket-form-footer {
  flex-direction: row-reverse;
}

[dir="ltr"] .m2-ticket-form-footer {
  flex-direction: row;
}

.m2-ticket-btn {
  min-width: 132px;
  padding: 0.55rem 1.15rem !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.m2-ticket-btn--ghost {
  background: #fff !important;
  border: 1px solid rgba(11, 22, 34, 0.14) !important;
  color: var(--m2-sup-muted) !important;
}

.m2-ticket-btn--ghost:hover {
  border-color: rgba(11, 22, 34, 0.22) !important;
  color: #0b1622 !important;
  transform: translateY(-1px);
}

.m2-ticket-btn--primary {
  border: none !important;
  background: linear-gradient(135deg, #6dd4ef 0%, var(--m2-sup-cyan) 45%, var(--m2-sup-cyan-deep) 100%) !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(72, 192, 216, 0.35);
}

.m2-ticket-btn--primary:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(72, 192, 216, 0.42);
}

@media (max-width: 767.98px) {
  .m2-ticket-form-head {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon body"
      "steps steps";
  }

  .m2-ticket-form-steps {
    justify-self: stretch;
    justify-content: center;
    margin-top: 0.15rem;
  }

  .m2-ticket-form-head {
    padding: 1.1rem 1rem;
  }

  .m2-ticket-form-section {
    padding: 1rem;
  }

  .m2-ticket-form-footer {
    flex-direction: column;
    padding: 1rem;
  }

  .m2-ticket-btn {
    width: 100%;
    min-width: 0;
  }

  .m2-ticket-stepone-body {
    padding: 1rem;
  }
}

.m2-ticket-stepone-body {
  padding: 1.35rem 1.5rem 1.5rem;
  background: #fff;
}

.m2-ticket-stepone-shell .m2-ticket-departments {
  margin-inline: 0;
}

.m2-ticket-stepone__head {
  display: none;
}

/* Legacy action class fallback */
.m2-ticket-submit-actions {
  display: none;
}

/* =========================================================================
   D.3 — Tickets list table
   ========================================================================= */
.m2-support-tickets-empty {
  padding: 1.75rem 1.25rem 2rem;
}

body.m2-page-support .m2-support-tickets-empty .m2-ca-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
}

body.m2-page-support .m2-support-tickets-empty .m2-ca-empty-state__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  font-size: 1.35rem;
}

body.m2-page-support .m2-support-tickets-empty .m2-ca-empty-state__title {
  margin: 0 0 0.45rem;
  font-family: var(--m2-sup-font, inherit);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: #0b1622;
}

body.m2-page-support .m2-support-tickets-empty .m2-ca-empty-state__text {
  margin: 0 0 1.1rem;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--m2-sup-muted);
}

body.m2-page-support .m2-support-tickets-empty .m2-ca-empty-state__btn.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.5rem 1.15rem;
  border: none;
  border-radius: var(--m2-sup-radius-sm);
  background: linear-gradient(135deg, var(--m2-sup-cyan) 0%, var(--m2-sup-cyan-deep) 100%);
  box-shadow: 0 4px 14px rgba(72, 192, 216, 0.28);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
  transition: var(--m2-sup-transition, 0.2s ease);
}

body.m2-page-support .m2-support-tickets-empty .m2-ca-empty-state__btn.btn-primary:hover,
body.m2-page-support .m2-support-tickets-empty .m2-ca-empty-state__btn.btn-primary:focus {
  filter: brightness(1.03);
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(72, 192, 216, 0.35);
}

.m2-tickets-container--sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.m2-tickets-container.loading {
  position: relative;
  min-height: 160px;
}

.m2-tickets-container.loading .table {
  opacity: 0;
}

.m2-tickets-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.85);
  z-index: 2;
}

.m2-tickets-loader__spinner {
  color: var(--m2-sup-cyan-deep);
}

.m2-tickets-loader__label {
  font-size: 0.85rem;
  color: var(--m2-sup-muted);
  font-weight: 500;
}

.m2-tickets-container:not(.loading) .m2-tickets-loader {
  display: none;
}

.m2-tickets-table .m2-tickets-tid {
  font-weight: 600;
  color: var(--m2-sup-cyan-deep);
  font-variant-numeric: tabular-nums;
}

.m2-tickets-subject-link {
  color: inherit;
  text-decoration: none;
}

.m2-tickets-subject-link:hover {
  color: var(--m2-sup-cyan-deep);
  text-decoration: none;
}

.m2-tickets-table .ticket-subject.unread {
  font-weight: 700;
  color: #0b1622;
}

/* Mobile: stack rows with data-label headers */
@media (max-width: 767.98px) {
  .m2-tickets-table thead {
    display: none;
  }
  .m2-tickets-table,
  .m2-tickets-table tbody,
  .m2-tickets-table tr,
  .m2-tickets-table td {
    display: block;
    width: 100%;
  }
  .m2-tickets-table tr {
    margin-bottom: 0.75rem;
    border: 1px solid var(--m2-sup-border);
    border-radius: var(--m2-sup-radius-sm);
    padding: 0.5rem 0.75rem;
    background: #fff;
  }
  .m2-tickets-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border: none;
    text-align: start;
  }
  .m2-tickets-table td:not(:last-child) {
    border-bottom: 1px dashed rgba(11, 22, 34, 0.06);
  }
  .m2-tickets-table td::before {
    content: attr(data-label);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--m2-sup-muted);
    font-weight: 500;
    flex: 0 0 40%;
  }
  .m2-tickets-table td > * {
    flex: 1 1 auto;
    text-align: end;
    min-width: 0;
  }
}

/* =========================================================================
   D.4 — Knowledgebase
   ========================================================================= */
.m2-kb__title {
  font-size: 1.7rem;
  font-weight: 600;
  color: #0b1622;
}

.m2-kb__title i {
  color: var(--m2-sup-cyan-deep);
  margin-inline-end: 0.4rem;
}

.m2-kb__subtitle {
  font-size: 0.95rem;
  max-width: 600px;
  margin-inline: auto;
}

/* --- Search bar --- */
.m2-kb-search {
  max-width: 680px;
  margin-inline: auto;
}

.m2-kb-search > .input-group.input-group-lg {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  height: 48px;
  min-height: 48px;
  border: 1px solid rgba(11, 22, 34, 0.14);
  border-radius: var(--m2-sup-radius-sm);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(11, 22, 34, 0.04);
}

.m2-kb-search .input-group-prepend,
.m2-kb-search .input-group-append {
  display: flex;
  margin: 0;
  height: 100%;
}

.m2-kb-search .input-group-prepend .input-group-text,
.m2-kb-search .input-group-append .btn {
  height: 100%;
}

.m2-kb-search .input-group-text.m2-kb-search__icon {
  background: #fff;
  color: var(--m2-sup-muted);
  border: 0 !important;
  border-radius: 0 !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 0.9rem !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.m2-ca-active .m2-ca-page .m2-kb-search .form-control.m2-kb-search__input,
.m2-kb-search .form-control.m2-kb-search__input {
  flex: 1 1 auto;
  align-self: stretch;
  width: 1%;
  min-width: 0;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-inline: 0.85rem !important;
  line-height: 48px !important;
  font-size: 0.9375rem !important;
}

body.m2-ca-active .m2-ca-page .m2-kb-search .form-control.m2-kb-search__input:focus,
.m2-kb-search .form-control.m2-kb-search__input:focus {
  box-shadow: none !important;
  border-color: transparent !important;
}

.m2-kb-search .btn.m2-kb-search__btn {
  border: 0 !important;
  border-radius: 0 !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.75rem;
  padding: 0 1.35rem !important;
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  line-height: 1 !important;
}

.m2-kb-search > .input-group.input-group-lg:focus-within {
  border-color: var(--m2-sup-cyan);
  box-shadow: 0 0 0 3px rgba(72, 192, 216, 0.12);
}

[dir="rtl"] .m2-kb-search .btn.m2-kb-search__btn {
  border-inline-end: 1px solid rgba(11, 22, 34, 0.08) !important;
}

[dir="ltr"] .m2-kb-search .btn.m2-kb-search__btn {
  border-inline-start: 1px solid rgba(11, 22, 34, 0.08) !important;
}

[dir="rtl"] .m2-kb-search .input-group-text.m2-kb-search__icon {
  border-inline-start: 1px solid rgba(11, 22, 34, 0.08) !important;
}

[dir="ltr"] .m2-kb-search .input-group-text.m2-kb-search__icon {
  border-inline-end: 1px solid rgba(11, 22, 34, 0.08) !important;
}

/* --- Section headers --- */
.m2-kb-section__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #0b1622;
  margin-bottom: 0.3rem;
  text-align: start;
}

.m2-kb-section__title i {
  color: var(--m2-sup-cyan-deep);
  margin-inline-end: 0.4rem;
}

.m2-kb-section--popular .m2-kb-section__title i {
  color: #e36414;
}

.m2-kb-section__subtitle {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-align: start;
}

/* --- Category cards grid --- */
.m2-kb-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 0.85rem;
  align-items: stretch;
}

.m2-kb-cat-card-wrap {
  position: relative;
  display: flex;
  min-width: 0;
}

.m2-kb-cat-card-wrap .m2-kb-cat-card {
  flex: 1 1 auto;
  width: 100%;
}

.m2-kb-cat-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  padding-inline-end: 2.65rem;
  min-height: 96px;
  background: #fff;
  border: 1px solid var(--m2-sup-border);
  border-radius: var(--m2-sup-radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.m2-kb-cat-card:hover,
.m2-kb-cat-card:focus {
  text-decoration: none;
  color: inherit;
  border-color: rgba(72, 192, 216, 0.4);
  box-shadow: 0 6px 20px rgba(72, 192, 216, 0.1);
  transform: translateY(-2px);
}

.m2-kb-cat-card__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--m2-sup-radius-sm);
  background: rgba(72, 192, 216, 0.1);
  color: var(--m2-sup-cyan-deep);
  font-size: 1.1rem;
}

.m2-kb-cat-card__body {
  flex: 1 1 auto;
  min-width: 0;
}

.m2-kb-cat-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.m2-kb-cat-card__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0b1622;
  margin: 0;
  text-align: start;
  flex: 1 1 auto;
  min-width: 0;
}

.m2-kb-cat-card__desc {
  font-size: 0.82rem;
  color: var(--m2-sup-muted);
  line-height: 1.5;
  margin: 0;
  text-align: start;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m2-kb-cat-card__badge {
  flex: 0 0 auto;
  font-weight: 600;
  font-size: 0.72rem;
  line-height: 1.2;
  padding: 0.28rem 0.55rem !important;
  white-space: nowrap;
  background: rgba(85, 200, 232, 0.16) !important;
  color: var(--m2-sup-cyan-deep) !important;
  border: 1px solid rgba(85, 200, 232, 0.3);
}

.m2-kb-cat-card__edit {
  position: absolute;
  top: 0.55rem;
  inset-inline-end: 0.55rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--m2-sup-radius-sm);
  font-size: 0.78rem;
  line-height: 1;
}

/* --- Empty state --- */
.m2-kb-empty__icon {
  max-width: 220px;
  margin: 0 auto;
}

.m2-kb-empty__icon svg {
  width: 100%;
  height: auto;
  max-height: 180px;
}

.m2-kb-empty__title {
  color: var(--m2-sup-muted);
  font-weight: 500;
}

/* --- Most-viewed articles list --- */
.m2-kb-articles {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.m2-kb-article-row-wrap {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
}

.m2-kb-article-row-wrap .m2-kb-article-row {
  flex: 1 1 auto;
  min-width: 0;
}

.m2-kb-article-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--m2-sup-border);
  border-radius: var(--m2-sup-radius-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.m2-kb-article-row:hover,
.m2-kb-article-row:focus {
  text-decoration: none;
  color: inherit;
  border-color: rgba(72, 192, 216, 0.35);
  background: rgba(72, 192, 216, 0.02);
}

.m2-kb-article-row__icon {
  flex: 0 0 auto;
  color: var(--m2-sup-muted);
  font-size: 1.1rem;
  margin-top: 0.1rem;
}

.m2-kb-article-row__body {
  flex: 1 1 auto;
  min-width: 0;
}

.m2-kb-article-row__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0b1622;
  margin: 0 0 0.2rem 0;
  text-align: start;
}

.m2-kb-article-row__excerpt {
  font-size: 0.82rem;
  color: var(--m2-sup-muted);
  line-height: 1.45;
  margin: 0;
  text-align: start;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m2-kb-article-row__arrow {
  flex: 0 0 auto;
  color: var(--m2-sup-muted);
  font-size: 0.8rem;
}

/* RTL: flip chevron */
[dir="rtl"] .m2-kb-article-row__arrow .fa-chevron-right {
  transform: scaleX(-1);
}

/* Mobile KB adjustments */
@media (max-width: 575.98px) {
  .m2-kb__title {
    font-size: 1.4rem;
  }
  .m2-kb-categories {
    grid-template-columns: 1fr;
  }
}

/* --- KB article view --- */
.m2-kb-article {
  background: #fff;
  border: 1px solid var(--m2-sup-border);
  border-radius: var(--m2-sup-radius);
  padding: 1.15rem 1.25rem 1.35rem;
}

.m2-kb-article__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--m2-sup-border);
}

.m2-kb-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.m2-kb-article__tag {
  background: rgba(85, 200, 232, 0.14) !important;
  color: var(--m2-sup-cyan-deep) !important;
  border: 1px solid rgba(85, 200, 232, 0.28);
  font-weight: 600;
  font-size: 0.75rem;
}

.m2-kb-article__useful {
  font-size: 0.82rem;
  color: var(--m2-sup-muted);
}

.m2-kb-article__print {
  border-radius: var(--m2-sup-radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
}

.m2-kb-article__content {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #0b1622;
}

.m2-kb-article__vote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(11, 22, 34, 0.08);
}

.m2-kb-article__vote-label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0b1622;
}

.m2-kb-article__vote-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.m2-kb-section--related {
  margin-top: 1.25rem;
}

.m2-kb-article-row__edit {
  flex: 0 0 auto;
  align-self: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--m2-sup-radius-sm);
  font-size: 0.78rem;
  line-height: 1;
}

.m2-kb-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding-top: 0.25rem;
}

.m2-kb-actions__back,
.m2-kb-actions__edit {
  border-radius: var(--m2-sup-radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.m2-kb-actions__edit {
  background: linear-gradient(135deg, var(--m2-sup-cyan) 0%, var(--m2-sup-cyan-deep) 100%);
  border: none;
}

body.m2-page-support .m2-ca-page__body .m2-kb-search {
  margin-top: 0.15rem;
}

body.m2-page-support .m2-ca-page__body .m2-kb-section:first-of-type {
  margin-top: 0;
}

/* =========================================================================
   D.5 — Announcements
   ========================================================================= */
.m2-announcements-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.m2-announcement-card {
  border: 1px solid var(--m2-sup-border);
  border-radius: var(--m2-sup-radius);
  background: linear-gradient(180deg, #fff 0%, rgba(72, 192, 216, 0.03) 100%);
  padding: 1.1rem 1.2rem 1.15rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.m2-announcement-card:hover {
  border-color: rgba(72, 192, 216, 0.35);
  box-shadow: 0 6px 20px rgba(72, 192, 216, 0.08);
}

.m2-announcement-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.m2-announcement-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.m2-announcement-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(85, 200, 232, 0.16);
  border: 1px solid rgba(85, 200, 232, 0.35);
  color: var(--m2-sup-cyan-deep);
  font-size: 0.68rem;
  font-weight: 700;
}

.m2-announcement-card__date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--m2-sup-muted);
}

.m2-announcement-card__edit {
  flex: 0 0 auto;
  border-radius: var(--m2-sup-radius-sm);
  font-size: 0.75rem;
  white-space: nowrap;
}

.m2-announcement-card__title {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  color: #0b1622;
}

.m2-announcement-card__title a {
  color: inherit;
  text-decoration: none;
}

.m2-announcement-card__title a:hover {
  color: var(--m2-sup-cyan-deep);
  text-decoration: none;
}

.m2-announcement-card__excerpt {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--m2-sup-muted);
  margin-bottom: 0.75rem;
}

.m2-announcement-card__excerpt strong {
  color: #0b1622;
  font-weight: 700;
}

.m2-announcement-card__readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--m2-sup-cyan-deep) !important;
  text-decoration: none !important;
}

.m2-announcement-card__readmore:hover {
  color: #0b1622 !important;
  text-decoration: none !important;
}

[dir="rtl"] .m2-announcement-card__readmore .fa-chevron-right {
  transform: scaleX(-1);
}

.m2-announcements-empty {
  padding: 1.75rem 1.25rem 2rem;
}

body.m2-page-support .m2-announcements-empty .m2-ca-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
}

body.m2-page-support .m2-announcements-empty .m2-ca-empty-state__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: rgba(72, 192, 216, 0.12);
  color: var(--m2-sup-cyan-deep);
  font-size: 1.35rem;
}

body.m2-page-support .m2-announcements-empty .m2-ca-empty-state__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0b1622;
}

.m2-announcements-pagination {
  margin-top: 1.25rem;
}

.m2-announcements-pagination .pagination {
  justify-content: center;
  gap: 0.35rem;
}

.m2-announcements-pagination .page-link {
  border-radius: var(--m2-sup-radius-sm);
  border-color: var(--m2-sup-border);
  color: var(--m2-sup-cyan-deep);
  font-size: 0.8125rem;
  font-weight: 600;
}

.m2-announcements-pagination .page-item.active .page-link {
  background: var(--m2-sup-cyan-deep);
  border-color: var(--m2-sup-cyan-deep);
}

.m2-announcement-view {
  background: #fff;
  border: 1px solid var(--m2-sup-border);
  border-radius: var(--m2-sup-radius);
  padding: 1.15rem 1.25rem 1.35rem;
}

.m2-announcement-view--comments {
  margin-top: 0.85rem;
}

.m2-announcement-view__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--m2-sup-border);
}

.m2-announcement-view__date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--m2-sup-muted);
}

.m2-announcement-view__body {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #0b1622;
}

.m2-announcement-view__social {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(11, 22, 34, 0.08);
}

/* =========================================================================
   D.6 — Downloads library
   ========================================================================= */
.m2-dl-cat-card__icon {
  background: linear-gradient(135deg, rgba(72, 192, 216, 0.18) 0%, rgba(11, 22, 34, 0.04) 100%);
}

.m2-dl-file-row__icon img {
  width: 1.35rem;
  height: auto;
}

.m2-dl-file-row__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.15rem;
}

.m2-dl-file-row__head .m2-kb-article-row__title {
  margin: 0;
}

.m2-dl-file-row__lock {
  font-size: 0.68rem;
  font-weight: 700;
}

.m2-dl-file-row__meta {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--m2-sup-muted);
}

.m2-dl-file-row__meta strong {
  color: #0b1622;
  font-weight: 700;
}

.m2-dl-denied {
  text-align: center;
  padding: 1.5rem 1.25rem 1.75rem;
  border: 1px solid var(--m2-sup-border);
  border-radius: var(--m2-sup-radius);
  background: #fff;
}

.m2-dl-denied__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: rgba(220, 53, 69, 0.1);
  color: #c82333;
  font-size: 1.35rem;
}

.m2-dl-denied__text {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #0b1622;
}

.m2-dl-denied__form {
  margin-top: 0.75rem;
}

.m2-dl-denied__form .btn-primary {
  background: linear-gradient(135deg, var(--m2-sup-cyan) 0%, var(--m2-sup-cyan-deep) 100%);
  border: none;
  border-radius: var(--m2-sup-radius-sm);
  font-weight: 700;
}

/* =========================================================================
   D.7 — Network / Server Status
   ========================================================================= */
.m2-status-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: var(--m2-sup-radius-sm);
  margin-bottom: 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.m2-status-alert i {
  flex: 0 0 auto;
  margin-top: 0.1rem;
  font-size: 1rem;
}

.m2-status-alert--ok {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.25);
  color: #1e5631;
}

.m2-status-alert--info {
  background: rgba(72, 192, 216, 0.1);
  border: 1px solid rgba(72, 192, 216, 0.28);
  color: #0b1622;
}

.m2-status-alert__link {
  font-weight: 700;
  color: var(--m2-sup-cyan-deep) !important;
  text-decoration: none !important;
}

.m2-status-alert__link:hover {
  color: #0b1622 !important;
}

.m2-status-servers-table {
  margin-top: 0.35rem;
}

.m2-status-issues {
  margin-top: 1.65rem;
  padding-top: 0.25rem;
}

.m2-status-table td.m2-status-stat--na {
  color: var(--m2-sup-muted);
  font-weight: 600;
  font-size: 0.78rem;
}

.m2-status-table td.m2-status-stat--ok {
  color: #1e5631;
  font-weight: 700;
  font-size: 0.8125rem;
}

.m2-status-table td.m2-status-port--online {
  color: #1e5631;
  font-weight: 700;
}

.m2-status-table td.m2-status-port--offline {
  color: #b21f2d;
  font-weight: 700;
}

.m2-status-table thead th {
  white-space: nowrap;
  font-size: 0.72rem;
}

.m2-status-table tbody td {
  vertical-align: middle;
  font-size: 0.8125rem;
}

.m2-status-table tbody td a {
  color: var(--m2-sup-cyan-deep);
  font-weight: 600;
}

.m2-status-issues-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.m2-status-issue-card {
  border: 1px solid var(--m2-sup-border);
  border-radius: var(--m2-sup-radius);
  background: #fff;
  padding: 1rem 1.1rem 1.1rem;
}

.m2-status-issue-card--affected {
  border-color: rgba(220, 53, 69, 0.35);
  box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.08);
}

.m2-status-issue-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.m2-status-issue-card__title {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  color: #0b1622;
}

.m2-status-issue-card__status {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--m2-sup-muted);
}

.m2-status-issue-card__priority {
  flex: 0 0 auto;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
}

.m2-status-issue-card__priority--critical {
  background: rgba(220, 53, 69, 0.14);
  color: #b21f2d;
}

.m2-status-issue-card__priority--high {
  background: rgba(255, 193, 7, 0.18);
  color: #856404;
}

.m2-status-issue-card__priority--medium {
  background: rgba(72, 192, 216, 0.16);
  color: var(--m2-sup-cyan-deep);
}

.m2-status-issue-card__priority--low {
  background: rgba(40, 167, 69, 0.14);
  color: #1e5631;
}

.m2-status-issue-card__scope {
  margin: 0 0 0.55rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #0b1622;
}

.m2-status-issue-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-bottom: 0.65rem;
  font-size: 0.75rem;
  color: var(--m2-sup-muted);
}

.m2-status-issue-card__affected {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--m2-sup-radius-sm);
  background: rgba(255, 193, 7, 0.14);
  border: 1px solid rgba(255, 193, 7, 0.35);
  color: #856404;
  font-size: 0.75rem;
  font-weight: 700;
}

.m2-status-issue-card__body {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #0b1622;
}

.m2-status-empty {
  padding: 1.5rem 1rem 1.75rem;
}

body.m2-page-support .m2-status-empty .m2-ca-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
}

body.m2-page-support .m2-status-empty .m2-ca-empty-state__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: rgba(40, 167, 69, 0.12);
  color: #1e5631;
  font-size: 1.35rem;
}

body.m2-page-support .m2-status-empty .m2-ca-empty-state__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--m2-sup-muted);
}

.m2-status-pagination {
  margin-top: 1.25rem;
}

.m2-status-pagination .pagination {
  justify-content: center;
  gap: 0.35rem;
}

.m2-status-pagination .page-link {
  border-radius: var(--m2-sup-radius-sm);
  border-color: var(--m2-sup-border);
  color: var(--m2-sup-cyan-deep);
  font-size: 0.8125rem;
  font-weight: 600;
}

.m2-status-pagination .page-item.active .page-link,
.m2-status-pagination .page-item.disabled .page-link {
  opacity: 0.65;
}

@media (max-width: 767.98px) {
  .m2-status-table thead {
    display: none;
  }

  .m2-status-table tbody tr {
    display: block;
    margin-bottom: 0.75rem;
    border: 1px solid var(--m2-sup-border);
    border-radius: var(--m2-sup-radius-sm);
    overflow: hidden;
  }

  .m2-status-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-top: 1px solid rgba(11, 22, 34, 0.06);
  }

  .m2-status-table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--m2-sup-muted);
    font-size: 0.72rem;
  }

  .m2-status-table tbody tr td:first-child {
    background: rgba(72, 192, 216, 0.06);
    font-weight: 700;
  }
}
