:root {
  --brand-primary: #D0272F;
  --brand-primary-rgb: 208, 39, 47;
  --brand-soft: #F8DFE1;
  --brand-soft-strong: #F1BEC2;
  --brand-soft-text: #D0272F;
  --brand-info: #D0272F;
  --brand-success: #D0272F;
  --brand-warning: #F8DFE1;
  --brand-danger: #F8DFE1;
  --brand-primary-contrast: #ffffff;
  --brand-info-contrast: #ffffff;
  --brand-success-contrast: #ffffff;
  --brand-warning-contrast: #0f172a;
  --brand-danger-contrast: #0f172a;
  --brand-color: #D0272F;
  --brand-color-contrast: #ffffff;
  --bg-main: #F6F7F9;
}

/* Font Awesome compatibility (v5 class prefixes on v7 library) */
.fas,
.fa-solid {
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900;
}

.far,
.fa-regular {
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 400;
}

.fab,
.fa-brands {
  font-family: "Font Awesome 7 Brands", "Font Awesome 6 Brands", "Font Awesome 5 Brands";
  font-weight: 400;
}

.text-primary {
  color: var(--brand-primary) !important;
}

.sidebar {
  background: #FFFFFF !important;
  border-right: 0 !important;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.03) !important;
}

.sidebar .nav-item {
  padding: 0 12px;
}

.sidebar .nav-item .nav-link {
  margin: 6px 0;
  padding: 11px 14px;
  transition: background-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease !important;
  transform: none !important;
}

.sidebar .nav-item .collapse .collapse-inner .collapse-item,
.sidebar .nav-item .collapsing .collapse-inner .collapse-item {
  margin: 3px 0;
  padding-top: 8px;
  padding-bottom: 8px;
  transition: background-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease !important;
  transform: none !important;
}

.sidebar .nav-item.active .nav-link,
.sidebar .nav-item .nav-link.active {
  background: #F1F3F6 !important;
  color: #0f172a !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.sidebar .nav-item.active .nav-link span,
.sidebar .nav-item.active .nav-link .nav-link-text,
.sidebar .nav-item .nav-link.active span,
.sidebar .nav-item .nav-link.active .nav-link-text {
  color: #0f172a !important;
  font-weight: 600 !important;
}

.sidebar .nav-item.active .nav-link i,
.sidebar .nav-item .nav-link.active i {
  color: var(--brand-primary) !important;
}

.sidebar .nav-item.has-active-child > .nav-link,
.sidebar .nav-item.has-active-child > .nav-link[data-toggle="collapse"] {
  background: #F1F3F6 !important;
  color: #0f172a !important;
  font-weight: 600 !important;
}

.sidebar .nav-item.has-active-child > .nav-link span,
.sidebar .nav-item.has-active-child > .nav-link .nav-link-text {
  color: #0f172a !important;
  font-weight: 600 !important;
}

.sidebar .nav-item.has-active-child > .nav-link i,
.sidebar .nav-item.has-active-child > .nav-link[data-toggle="collapse"] i {
  color: var(--brand-primary) !important;
}

.sidebar .nav-item .collapse .collapse-inner .collapse-item.active,
.sidebar .nav-item .collapsing .collapse-inner .collapse-item.active {
  background: #F1F3F6 !important;
  font-weight: 600 !important;
}

.topbar {
  position: fixed;
  background: #FFFFFF !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03) !important;
}

.topbar::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: #FFFFFF;
  pointer-events: none;
}

.topbar .topbar-divider {
  display: none !important;
}

.app-breadcrumb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 20px;
}

.app-breadcrumb-toolbar .breadcrumb {
  margin: 0;
}

.app-breadcrumb-toolbar-left {
  min-width: 0;
  flex: 1 1 auto;
}

.app-breadcrumb-toolbar-right {
  margin-left: auto;
  flex: 0 0 auto;
}

.app-per-page-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 5px 10px;
  border: 1px solid #E4E7EC;
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.app-per-page-form:focus-within {
  border-color: rgba(var(--brand-primary-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.12);
}

.app-per-page-label {
  margin: 0;
  color: #667085;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
}

.app-per-page-select {
  min-width: 74px;
  height: 28px;
  padding: 3px 22px 3px 6px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  color: #344054;
  font-size: 0.77rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: none;
}

.app-per-page-select:focus {
  outline: none;
  border: 0;
  box-shadow: none;
}

#content .card,
#content .table-responsive {
  border-color: rgba(var(--brand-primary-rgb), 0.32) !important;
}

#content .card {
  background: #ffffff;
  border: 1px solid #E4E7EC !important;
  border-radius: 16px !important;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.04),
    0 4px 8px rgba(16, 24, 40, 0.06);
}

#content .card .card-body {
  padding: 22px 24px;
}

.btn-primary,
.btn-primary:focus,
.btn-primary.focus {
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: var(--brand-primary-contrast) !important;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary.active {
  background-color: #B92229 !important;
  border-color: #B92229 !important;
  color: var(--brand-primary-contrast) !important;
}

/* Action icon buttons: lighter default, strong hover */
.btn.action-iconized:not(.action-cart-btn):not(.add_to_cart) {
  background: #ffffff !important;
  border: 1px solid #E4E7EC !important;
  color: var(--brand-primary) !important;
  box-shadow: none !important;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn.action-iconized:not(.action-cart-btn):not(.add_to_cart) .icon,
.btn.action-iconized:not(.action-cart-btn):not(.add_to_cart) .icon i,
.btn.action-iconized:not(.action-cart-btn):not(.add_to_cart)>i {
  color: var(--brand-primary) !important;
}

.btn.action-iconized:not(.action-cart-btn):not(.add_to_cart):hover,
.btn.action-iconized:not(.action-cart-btn):not(.add_to_cart):focus,
.btn.action-iconized:not(.action-cart-btn):not(.add_to_cart):active,
.btn.action-iconized:not(.action-cart-btn):not(.add_to_cart).active {
  background: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: #ffffff !important;
  opacity: 1;
}

.btn.action-iconized:not(.action-cart-btn):not(.add_to_cart):hover .icon,
.btn.action-iconized:not(.action-cart-btn):not(.add_to_cart):hover .icon i,
.btn.action-iconized:not(.action-cart-btn):not(.add_to_cart):hover>i,
.btn.action-iconized:not(.action-cart-btn):not(.add_to_cart):focus .icon,
.btn.action-iconized:not(.action-cart-btn):not(.add_to_cart):focus .icon i,
.btn.action-iconized:not(.action-cart-btn):not(.add_to_cart):focus>i,
.btn.action-iconized:not(.action-cart-btn):not(.add_to_cart):active .icon,
.btn.action-iconized:not(.action-cart-btn):not(.add_to_cart):active .icon i,
.btn.action-iconized:not(.action-cart-btn):not(.add_to_cart):active>i {
  color: #ffffff !important;
}

/* Upload dropzone: modern flat style */
.upload-dropzone {
  border: 1px solid #E4E7EC !important;
  border-radius: 14px;
  background: #F9FAFB !important;
  box-shadow: none !important;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.upload-dropzone:hover {
  border-color: #D0D5DD !important;
  background: #F2F4F7 !important;
  box-shadow: none !important;
  transform: none !important;
}

.upload-dropzone.is-dragover {
  border-style: solid !important;
  border-color: rgba(var(--brand-primary-rgb), 0.6) !important;
  background: rgba(var(--brand-primary-rgb), 0.06) !important;
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.12) !important;
}

.upload-dropzone.has-file {
  border-color: rgba(var(--brand-primary-rgb), 0.42) !important;
  background: #F9FAFB !important;
}

/* Sidebar logo: match login split logo size */
.sidebar .sidebar-brand.logo_nav {
  height: calc(var(--topbar-height) + 62px);
  min-height: calc(var(--topbar-height) + 62px);
  padding-top: 20px;
  padding-bottom: 12px;
}

.brand-logo-split {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  line-height: 1;
}

.brand-logo-split img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-logo-split .brand-logo-left {
  animation: brandLogoPulse 2.2s ease-in-out infinite;
  transform-origin: 60% 55%;
  will-change: transform, opacity;
}

.sidebar .sidebar-brand.logo_nav .brand-logo-split-sidebar img {
  max-height: 64px !important;
}

@keyframes brandLogoPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }

  35% {
    transform: scale(1.08);
    opacity: 0.95;
  }

  60% {
    transform: scale(1.02);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo-split .brand-logo-left {
    animation: none !important;
    transform: none !important;
  }
}

@media (min-width: 768px) {
  .sidebar.toggled .sidebar-brand.logo_nav .brand-logo-split-sidebar img {
    max-height: 56px;
  }
}

/* Topbar search input: additional 2x width increase */
.topbar-global-search {
  flex: 0 1 980px;
  width: clamp(620px, 54vw, 980px);
  min-width: 620px;
  max-width: 980px;
}

.topbar-global-search .topbar-search-field {
  width: 100%;
}

@media (max-width: 1599.98px) {
  .topbar-global-search {
    width: clamp(560px, 52vw, 880px);
    min-width: 560px;
    max-width: 880px;
  }
}

@media (max-width: 1399.98px) {
  .topbar-global-search {
    width: clamp(520px, 50vw, 760px);
    min-width: 520px;
    max-width: 760px;
  }
}

@media (max-width: 1199.98px) {
  .topbar-global-search {
    width: clamp(480px, 48vw, 680px);
    min-width: 480px;
    max-width: 680px;
  }
}

@media (max-width: 991.98px) {
  .topbar-global-search {
    width: clamp(420px, 54vw, 560px);
    min-width: 420px;
    max-width: 560px;
  }
}

/* Box headers with icons: centered + subtle side lines */
.card .card-header > div {
  float: none !important;
  width: 100%;
}

.card .card-header h6.m-0.font-weight-bold.text-primary {
  margin: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  font-weight: 500 !important;
}

.dashboard-section-header h6 {
  font-weight: 500 !important;
}

.card .card-header h6.m-0.font-weight-bold.text-primary::before,
.card .card-header h6.m-0.font-weight-bold.text-primary::after {
  content: "";
  flex: 1 1 auto;
  min-width: 24px;
  height: 1px;
}

.card .card-header h6.m-0.font-weight-bold.text-primary::before {
  background: linear-gradient(90deg,
    rgba(var(--brand-primary-rgb), 0) 0%,
    rgba(var(--brand-primary-rgb), 0.22) 30%,
    rgba(var(--brand-primary-rgb), 0.62) 100%);
}

.card .card-header h6.m-0.font-weight-bold.text-primary::after {
  background: linear-gradient(90deg,
    rgba(var(--brand-primary-rgb), 0.62) 0%,
    rgba(var(--brand-primary-rgb), 0.22) 70%,
    rgba(var(--brand-primary-rgb), 0) 100%);
}

@media (max-width: 575.98px) {
  .app-breadcrumb-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .app-breadcrumb-toolbar-right {
    margin-left: 0;
    align-self: flex-end;
  }

  .card .card-header h6.m-0.font-weight-bold.text-primary {
    gap: 8px;
  }

  .card .card-header h6.m-0.font-weight-bold.text-primary::before,
  .card .card-header h6.m-0.font-weight-bold.text-primary::after {
    min-width: 16px;
  }
}

/* Table card variant: title as top-border legend (test for event list) */
.table-card-legend {
  border: 1px solid rgba(var(--brand-primary-rgb), 0.32) !important;
  overflow: visible;
}

.table-card-legend > .card-header {
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 0 !important;
  background: transparent !important;
  overflow: visible;
}

.table-card-legend > .table-card-legend-header {
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 16px !important;
}

.table-card-legend > .card-header::before {
  display: none;
}

.table-card-legend > .card-header > div {
  display: flex;
  justify-content: center;
  width: 100%;
}

.table-card-legend > .card-header h6.m-0.font-weight-bold.text-primary {
  width: 100%;
  padding: 0;
  margin: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  background: transparent;
  transform: translateY(-50%);
  line-height: 1;
}

.table-card-legend .table-card-legend-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 28px;
  background: #F8F9FB;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(16,24,40,0.07);
  color: #344054;
  font-size: 0.83rem;
  font-weight: 500;
  line-height: 1.1;
  position: relative;
  z-index: 2;
}

.table-card-legend .table-card-legend-icon {
  color: rgba(var(--brand-primary-rgb), 0.72);
  font-size: 0.8rem;
}

.table-card-legend > .card-header h6.m-0.font-weight-bold.text-primary::before,
.table-card-legend > .card-header h6.m-0.font-weight-bold.text-primary::after {
  display: none !important;
  content: none !important;
}

.table-card-legend .card-body {
  padding-top: 58px;
}

.table-card-legend .table thead th,
.table-card-legend .table tfoot th {
  background: #fff !important;
  color: rgba(var(--brand-primary-rgb), 0.68) !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em;
  text-align: center !important;
}

.table-card-legend .table tbody td {
  text-align: center !important;
  vertical-align: middle !important;
}

.table-column-sortable thead th.is-sortable {
  position: relative;
  cursor: pointer;
  user-select: none;
  padding-right: 1.35rem !important;
}

.table-column-sortable thead th.is-sortable::after {
  content: "\f0dc";
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 0.48rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.68rem;
  color: rgba(16, 33, 63, 0.28);
  transition: color 0.18s ease;
}

.table-column-sortable thead th.is-sortable:hover::after {
  color: rgba(var(--brand-primary-rgb), 0.7);
}

.table-column-sortable thead th.is-sorted-asc::after {
  content: "\f0de";
  color: rgba(var(--brand-primary-rgb), 0.86);
}

.table-column-sortable thead th.is-sorted-desc::after {
  content: "\f0dd";
  color: rgba(var(--brand-primary-rgb), 0.86);
}

/* Tables: neutral subtle gray row highlight (override default blue/violet) */
#content .table.table-hover tbody tr:hover,
#content .table tbody tr:hover,
#content .table tbody tr:hover > td,
#content .table tbody tr:hover > th {
  background-color: #F8F9FB !important;
}

#content table.dataTable.stripe tbody tr.odd,
#content table.dataTable.display tbody tr.odd,
#content table.dataTable.stripe tbody tr.even,
#content table.dataTable.display tbody tr.even {
  background-color: #FFFFFF !important;
}

#content table.dataTable.hover tbody tr:hover,
#content table.dataTable.display tbody tr:hover,
#content table.dataTable.hover tbody tr:hover > td,
#content table.dataTable.display tbody tr:hover > td,
#content table.dataTable.hover tbody tr:hover > th,
#content table.dataTable.display tbody tr:hover > th,
#content table.dataTable tbody tr:hover > .sorting_1 {
  background-color: #F8F9FB !important;
}

#content table.dataTable tbody tr.selected,
#content table.dataTable tbody tr.selected > td,
#content table.dataTable tbody tr.selected > th,
#content table.dataTable tbody tr.selected > .sorting_1 {
  background-color: #F3F4F7 !important;
}

/* Sidebar submenu icons */
.sidebar .nav-item .collapse .collapse-inner .collapse-item,
.sidebar .nav-item .collapsing .collapse-inner .collapse-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar .nav-item .collapse .collapse-inner .collapse-item::before,
.sidebar .nav-item .collapsing .collapse-inner .collapse-item::before {
  content: none !important;
  display: none !important;
}

.sidebar .collapse-item .collapse-item-icon {
  width: 14px;
  min-width: 14px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(16, 33, 63, 0.58);
  transition: color 0.14s ease;
}

.sidebar .collapse-item:hover .collapse-item-icon,
.sidebar .collapse-item.active .collapse-item-icon {
  color: var(--brand-primary);
}

/* Participant center */
.participant-center-page .participant-center-card {
  border-color: #e7ecf3;
}

.participant-center-page .participant-center-card.table-card-legend {
  border-color: rgba(var(--brand-primary-rgb), 0.32) !important;
}

.participant-center-page .participant-center-summary-card .card-body {
  padding-top: 44px;
}

.participant-center-page .participant-center-name {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
}

.participant-center-page .participant-center-description {
  color: #64748b;
  font-size: 0.9rem;
}

.participant-center-page .participant-center-meta-row {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.participant-center-page .participant-center-meta-row:last-child {
  margin-bottom: 0;
}

.participant-center-page .participant-center-meta-label {
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
  margin-right: 4px;
}

.participant-center-page .participant-center-badge {
  background: #f8fafc;
  border: 1px solid #dde6f2;
  color: #334155;
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.36rem 0.52rem;
}

.participant-center-page .participant-center-stat {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  height: 100%;
  background: #ffffff;
}

.participant-center-page .participant-center-stat-label {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.participant-center-page .participant-center-stat-value {
  font-size: 1.12rem;
  color: #0f172a;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 4px;
}

.participant-center-page .participant-center-table td {
  vertical-align: middle;
}

.participant-center-page .participant-center-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.participant-center-page .participant-center-action-btn {
  min-width: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767.98px) {
  .participant-center-page .participant-center-name {
    font-size: 1.18rem;
  }

  .participant-center-page .participant-center-stat-value {
    font-size: 1rem;
  }
}

/* Event application layout */
.event-application-page .event-application-title {
  font-size: 1.02rem;
  color: #344054;
  font-weight: 600;
}

.event-application-page>.card {
  margin-bottom: 30px !important;
}

.event-application-page .table-card-legend {
  border: 1px solid #E4E7EC !important;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.04),
    0 4px 8px rgba(16, 24, 40, 0.06) !important;
}

.event-application-page .table-card-legend>.card-body {
  padding-top: 62px;
}

.event-application-page .event-application-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid #e4e7ec;
  background: #ffffff;
  color: #667085;
  font-size: 0.72rem;
  font-weight: 600;
}

.event-application-page .event-application-summary-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.event-application-page .event-application-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.event-application-page .event-application-summary-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #344054;
  font-size: 0.88rem;
  font-weight: 600;
}

.event-application-page .event-application-summary-label i {
  color: var(--brand-primary);
}

.event-application-page .event-application-summary-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e4e7ec;
  background: #f8f9fb;
  color: #667085;
  font-size: 0.76rem;
  font-weight: 600;
}

.event-application-page .event-application-summary-grid {
  margin-bottom: 8px;
}

.event-application-page .event-application-accordion-toggle {
  color: #344054;
  text-decoration: none;
  padding: 0.2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  font-size: 0.86rem;
  font-weight: 500;
}

.event-application-page .event-application-accordion-toggle:hover,
.event-application-page .event-application-accordion-toggle:focus {
  color: #344054;
  text-decoration: none;
}

.event-application-page .event-application-chevron {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
  color: #98a2b3;
}

.event-application-page .event-application-accordion-toggle[aria-expanded="true"] .event-application-chevron {
  transform: rotate(180deg);
}

.event-application-page #eventApplicationCompaniesAccordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #EEF2F6;
}

.event-application-page .event-application-kv-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 7px;
  border-bottom: 1px dashed #eaecf0;
  align-items: baseline;
}

.event-application-page .event-application-summary-grid .col-lg-6 > .event-application-kv-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.event-application-page .event-application-kv-key {
  min-width: 120px;
  color: #667085;
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.event-application-page .event-application-kv-value {
  color: #344054;
  font-size: 0.84rem;
  font-weight: 500;
}

.event-application-page .event-application-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.event-application-page .event-application-summary-footer {
  margin-top: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.event-application-page .event-application-stats .badge {
  border: 1px solid #e4e7ec;
  background: #ffffff;
  color: #667085;
  padding: 0.42rem 0.62rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 500;
}

.event-application-page .event-application-stats .badge strong {
  color: #344054;
  font-weight: 600;
}

.event-application-page .event-application-seat-summary {
  margin-left: auto;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  min-width: 230px;
}

.event-application-page .event-application-seat-summary-label {
  display: block;
  color: #667085;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.3;
}

.event-application-page .event-application-seat-summary-value {
  margin-top: 8px;
  display: block;
  color: #344054;
  font-size: 1.42rem;
  font-weight: 600;
  line-height: 1.05;
}

.event-application-page .event-application-seat-summary-available {
  margin-top: 6px;
  display: block;
  color: #98A2B3;
  font-size: 0.76rem;
  font-weight: 500;
}

.event-application-page .event-application-search-card {
  border: 1px solid #e4e7ec !important;
  box-shadow: none !important;
}

.event-application-page .event-application-search-card .card-body {
  background: #ffffff;
  padding: 16px 20px;
}

.event-application-page .event-application-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #667085;
}

.event-application-page .event-company-item {
  border: 1px solid #E4E7EC !important;
  border-radius: 14px !important;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.05) !important;
  overflow: hidden;
  margin-bottom: 14px !important;
}

.event-application-page .event-company-item + .event-company-item {
  border-top: 0 !important;
}

.event-application-page .event-company-summary {
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.event-application-page .event-company-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.event-application-page .event-company-summary-title-wrap {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.event-application-page .event-company-summary-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid #E4E7EC;
  background: #F9FAFB;
  color: #667085;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  flex: 0 0 30px;
}

.event-application-page .event-company-summary-title-group {
  min-width: 0;
}

.event-application-page .event-company-summary-title {
  margin: 0;
  color: #344054;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.25;
}

.event-application-page .event-company-summary-subtitle {
  margin-top: 3px;
  color: #667085;
  font-size: 0.77rem;
  font-weight: 500;
}

.event-application-page .event-company-summary-subtitle strong {
  color: #475467;
  font-weight: 600;
}

.event-application-page .event-company-summary-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.event-application-page .event-company-summary-workers-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #E4E7EC;
  background: #F9FAFB;
  color: #667085;
  font-size: 0.74rem;
  font-weight: 600;
}

.event-application-page .event-company-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}

.event-application-page .event-company-summary-item {
  min-width: 0;
}

.event-application-page .event-company-summary-item-label {
  display: block;
  color: #98A2B3;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.event-application-page .event-company-summary-item-value {
  display: block;
  margin-top: 3px;
  color: #344054;
  font-size: 0.79rem;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.event-application-page .event-company-summary-footer {
  display: flex;
  justify-content: flex-end;
}

.event-application-page .event-company-list-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  border-radius: 10px !important;
  border: 1px solid #E4E7EC !important;
  background: #FFFFFF !important;
  color: #475467 !important;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 10px;
  box-shadow: none !important;
}

.event-application-page .event-company-list-toggle:hover,
.event-application-page .event-company-list-toggle:focus {
  border-color: rgba(var(--brand-primary-rgb), 0.5) !important;
  color: var(--brand-primary) !important;
  background: #FFF6F7 !important;
  text-decoration: none;
}

.event-application-page .event-company-list-toggle .event-company-list-toggle-hide {
  display: none;
}

.event-application-page .event-company-list-toggle[aria-expanded="true"] .event-company-list-toggle-show {
  display: none;
}

.event-application-page .event-company-list-toggle[aria-expanded="true"] .event-company-list-toggle-hide {
  display: inline;
}

.event-application-page .event-company-list-toggle .event-application-chevron {
  color: #98A2B3;
}

.event-application-page .event-company-list-toggle[aria-expanded="true"] .event-application-chevron {
  transform: rotate(180deg);
}

.event-application-page .event-company-item > .collapse > .card-body,
.event-application-page .event-company-item > .collapsing > .card-body {
  background: #fff;
  padding: 12px 18px 16px;
  border-top: 1px solid #EEF2F6;
  border-radius: 0 !important;
}

.event-application-page #eventApplicationCompaniesAccordion {
  border-top: 0;
}

.event-application-page #eventApplicationCompaniesAccordion .event-company-item:first-child {
  border-top: 0 !important;
}

.event-application-page .event-company-item .table-responsive {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none;
  background: transparent;
}

.event-application-page .table-responsive {
  border-color: transparent !important;
}

.event-application-page .event-company-item > .card-header .event-application-accordion-toggle {
  min-height: 30px;
}

.event-application-page .event-company-item > .card-header .event-application-accordion-toggle > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.event-application-page .event-company-item > .card-header .event-application-accordion-toggle > span > i {
  margin-right: 2px;
}

.event-application-page .event-company-item .table-responsive + .table-responsive {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #EEF2F6;
}

.event-application-page .event-company-workers-head {
  margin-bottom: 10px;
}

.event-application-page .event-company-workers-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475467;
  font-size: 0.8rem;
  font-weight: 600;
}

.event-application-page .event-company-workers-title i {
  color: rgba(var(--brand-primary-rgb), 0.75);
  font-size: 0.8rem;
}

@media (max-width: 1199.98px) {
  .event-application-page .event-company-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .event-application-page .event-company-summary-grid {
    grid-template-columns: 1fr;
  }

  .event-application-page .event-company-summary-footer {
    justify-content: flex-start;
  }
}

/* Company applications list: no cell borders, only subtle row separators */
.event-application-page .event-company-item .event-application-table {
  border: 0 !important;
}

.event-application-page .event-company-item .event-application-table thead th,
.event-application-page .event-company-item .event-application-table tfoot th {
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-bottom: 1px solid #EAECF0 !important;
}

.event-application-page .event-company-item .event-application-table tbody td {
  border: 0 !important;
}

.event-application-page .event-company-item .event-application-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid #EEF2F6 !important;
}

.event-application-page .event-application-table thead th,
.event-application-page .event-application-table tfoot th {
  background: #ffffff !important;
  color: rgba(var(--brand-primary-rgb), 0.68) !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em;
  text-align: center !important;
}

.event-application-page .event-application-table tbody td {
  color: #475467;
  font-size: 0.83rem;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
}

.event-application-page .event-application-table tbody td a {
  font-weight: 500;
}

.event-application-page .event-application-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-decoration: none !important;
  transition: all 0.16s ease;
}

.event-application-page .event-application-status-badge.is-paid {
  background: #ECFDF3;
  border-color: #ABEFC6;
  color: #027A48;
}

.event-application-page .event-application-status-badge.is-unpaid {
  background: #FEF3F2;
  border-color: #FECDCA;
  color: #B42318;
}

.event-application-page a.event-application-status-badge:hover,
.event-application-page a.event-application-status-badge:focus {
  transform: translateY(-1px);
  filter: saturate(1.05);
}

.event-application-page .event-application-certificate-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.event-application-page .event-application-certificate-number {
  color: #344054;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
}

.event-application-page .event-application-certificate-regenerate {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid #E4E7EC;
  background: #FFFFFF;
  color: #667085;
  font-size: 0.66rem;
  line-height: 1;
  text-decoration: none !important;
  transition: all 0.14s ease;
}

.event-application-page .event-application-certificate-regenerate:hover,
.event-application-page .event-application-certificate-regenerate:focus {
  color: var(--brand-primary);
  border-color: rgba(var(--brand-primary-rgb), 0.5);
  background: #FFF6F7;
  outline: none;
}

.event-application-page .actions {
  justify-content: center;
  gap: 6px;
}

.event-application-page .actions .btn.btn-icon-split {
  min-height: 34px;
  border-radius: 10px !important;
  border: 1px solid #E4E7EC !important;
  background: #ffffff !important;
  color: #344054 !important;
  box-shadow: none !important;
}

.event-application-page .actions .btn.btn-icon-split .icon {
  min-width: auto;
  padding: 0 0 0 1px;
  background: transparent !important;
  color: var(--brand-primary) !important;
}

.event-application-page .actions .btn.btn-icon-split .icon i {
  color: var(--brand-primary) !important;
}

.event-application-page .actions .btn.btn-icon-split .text {
  font-size: 0.72rem;
  font-weight: 500;
  color: #344054;
}

.event-application-page .actions .btn.btn-icon-split:hover {
  border-color: var(--brand-primary) !important;
  background: var(--brand-primary) !important;
  color: #ffffff !important;
}

.event-application-page .actions .btn.btn-icon-split:hover .icon,
.event-application-page .actions .btn.btn-icon-split:hover .icon i,
.event-application-page .actions .btn.btn-icon-split:hover .text {
  color: #ffffff !important;
}

.event-application-page .event-application-empty-row td {
  background: #fff;
}

@media (max-width: 991.98px) {
  .event-application-page .event-application-summary-panel {
    padding: 0;
  }

  .event-application-page .event-application-kv-key {
    min-width: 98px;
  }

  .event-application-page .event-application-summary-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .event-application-page .event-application-seat-summary {
    margin-left: 0;
    min-width: 0;
    align-items: flex-start;
    text-align: left;
  }
}

/* Table event-name clamp + tooltip */
.table-event-name-cell {
  min-width: 220px;
}

.table-event-name-id {
  margin-bottom: 3px;
  color: #64748b;
  font-size: 0.73rem;
  font-weight: 500;
  line-height: 1.2;
}

.table-event-name-main {
  color: #334155;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.table-event-name-secondary {
  margin-top: 2px;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

@media (max-width: 991.98px) {
  .table-event-name-main {
    -webkit-line-clamp: 3;
  }
}

/* Event list metadata badges (Rodzaj / Typ / Dla kogo) */
.event-list-meta-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-list-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  border: 1px solid #E4E7EC;
  border-radius: 999px;
  background: #F8F9FB;
  color: #475467;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 5px 9px;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.event-list-meta-badge i {
  color: #98A2B3;
  font-size: 0.78rem;
}

.event-list-meta-badge-label {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-list-meta-badge:hover {
  border-color: #D0D5DD;
  background: #F2F4F7;
}

.event-list-meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #98A2B3;
  line-height: 1;
}

/* Certificate tests page */
.certificate-tests-page .certificate-tests-form label {
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.certificate-tests-page .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Dashboard: event spotlight cards */
.dashboard-home-page .dashboard-events-section {
  padding-top: 18px;
  margin-bottom: 44px !important;
}

.dashboard-home-page .dashboard-event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.dashboard-home-page .dashboard-event-card {
  position: relative;
  margin-top: 20px;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 28px;
  border: none;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.04),
    0 4px 8px rgba(16, 24, 40, 0.06);
  transition: all 0.2s ease;
  overflow: visible;
}

.dashboard-home-page .dashboard-event-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 6px rgba(16, 24, 40, 0.06),
    0 12px 20px rgba(16, 24, 40, 0.08);
}

.dashboard-home-page .dashboard-event-corner-badge {
  position: absolute;
  top: 20px;
  left: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border: 1px solid rgba(var(--brand-primary-rgb), 0.4);
  border-radius: 999px;
  background: rgba(var(--brand-primary-rgb), 0.08);
  color: var(--brand-primary);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.dashboard-home-page .dashboard-event-corner-badge.is-ended {
  background: #f8fafc;
  color: #475569;
  border-color: #dbe5f2;
}

.dashboard-home-page .dashboard-event-countdown {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid #E4E7EC;
  border-radius: 999px;
  background: #FFFFFF;
  color: #475467;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
}

.dashboard-home-page .dashboard-event-countdown i {
  color: rgba(var(--brand-primary-rgb), 0.62);
  font-size: 0.78rem;
}

.dashboard-home-page .dashboard-event-card-head {
  padding: 28px 18px 30px;
  text-align: center;
}

.dashboard-home-page .dashboard-event-card-title {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--brand-primary);
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.3;
}

.dashboard-home-page .dashboard-event-card-title::before,
.dashboard-home-page .dashboard-event-card-title::after {
  content: "";
  flex: 1 1 auto;
  min-width: 72px;
  height: 1px;
}

.dashboard-home-page .dashboard-event-card-title::before {
  background: linear-gradient(90deg, rgba(var(--brand-primary-rgb), 0) 0%, rgba(var(--brand-primary-rgb), 0.55) 100%);
}

.dashboard-home-page .dashboard-event-card-title::after {
  background: linear-gradient(90deg, rgba(var(--brand-primary-rgb), 0.55) 0%, rgba(var(--brand-primary-rgb), 0) 100%);
}

.dashboard-home-page .dashboard-event-floating-date {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 3;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 230px;
  max-width: calc(100% - 28px);
  padding: 10px 28px;
  border: 0;
  border-radius: 999px;
  background: #F8F9FB;
  box-shadow: 0 4px 12px rgba(16,24,40,0.07);
  text-align: center;
  opacity: 0;
  animation: dashboardFloatingHeaderFadeIn 0.2s ease-out forwards;
}

.dashboard-home-page .dashboard-event-floating-inline-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  white-space: nowrap;
  color: #344054;
  font-size: 0.83rem;
  font-weight: 500;
  line-height: 1.1;
}

.dashboard-home-page .dashboard-event-floating-inline-separator {
  color: rgba(var(--brand-primary-rgb), 0.62);
  font-size: 0.88rem;
  line-height: 1;
}

.dashboard-home-page .dashboard-event-floating-date i {
  color: rgba(var(--brand-primary-rgb), 0.72);
  font-size: 0.8rem;
}

@keyframes dashboardFloatingHeaderFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.dashboard-home-page .dashboard-event-card-body {
  padding: 36px 0 0;
}

.dashboard-home-page .dashboard-event-main {
  padding: 12px 0;
}

.dashboard-home-page .dashboard-event-name {
  margin: 0;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.dashboard-home-page .dashboard-event-tags {
  margin-top: 11px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.dashboard-home-page .dashboard-event-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e1e8f2;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 5px 9px;
}

.dashboard-home-page .dashboard-event-tag .event-list-meta-icon {
  font-size: 0.85rem;
  color: #98A2B3;
}

.dashboard-home-page .dashboard-event-tag .event-list-meta-icon i {
  color: #98A2B3;
}

.dashboard-home-page .dashboard-event-footer {
  margin-top: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-home-page .dashboard-event-seat-summary {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.dashboard-home-page .dashboard-event-seat-summary-label {
  display: block;
  color: #667085;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.3;
}

.dashboard-home-page .dashboard-event-seat-summary-value {
  margin-top: 8px;
  display: block;
  color: #344054;
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.05;
}

.dashboard-home-page .dashboard-event-actions {
  margin: 0 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  width: auto;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dashboard-home-page .dashboard-event-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 11px;
  border: 1px solid #E4E7EC !important;
  background: #fff !important;
  color: var(--brand-primary) !important;
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: none;
}

.dashboard-home-page .dashboard-event-actions .btn .icon {
  color: var(--brand-primary);
}

.dashboard-home-page .dashboard-event-actions .btn:hover {
  background: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: #ffffff !important;
}

.dashboard-home-page .dashboard-event-actions .btn:hover .icon,
.dashboard-home-page .dashboard-event-actions .btn:hover .icon i {
  color: #ffffff !important;
}

.dashboard-home-page .dashboard-event-empty {
  padding: 22px 16px 24px;
  color: #64748b;
  font-size: 0.84rem;
  text-align: center;
}

/* Dashboard: import directly on page */
.dashboard-import-section-header h6.m-0.font-weight-bold.text-primary {
  justify-content: flex-start;
  text-align: left;
  gap: 10px;
}

.dashboard-import-section-header h6.m-0.font-weight-bold.text-primary::before {
  display: none;
}

.dashboard-import-section-header h6.m-0.font-weight-bold.text-primary::after {
  min-width: 44px;
}

.dashboard-home-page .dashboard-import-live-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
}

.dashboard-home-page .dashboard-card-group {
  padding: 0 30px 0;
}

.dashboard-home-page .dashboard-section:not(.dashboard-events-section) .dashboard-card-group {
  padding-top: 0;
}

.dashboard-home-page .dashboard-import-card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 28px;
  border: none;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.04),
    0 4px 8px rgba(16, 24, 40, 0.06);
  transition: all 0.2s ease;
  overflow: visible;
}

.dashboard-home-page .dashboard-import-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 6px rgba(16, 24, 40, 0.06),
    0 12px 20px rgba(16, 24, 40, 0.08);
}

.dashboard-home-page .dashboard-import-card-head {
  height: 0;
  min-height: 0;
  margin: -28px 0 44px;
  padding: 0;
  overflow: visible;
}

.dashboard-home-page .dashboard-import-card-title {
  margin: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding-left: 0;
  transform: translateY(-50%);
  line-height: 1;
}

.dashboard-home-page .dashboard-import-card-title::before,
.dashboard-home-page .dashboard-import-card-title::after {
  display: none !important;
  content: none !important;
}

.dashboard-home-page .dashboard-import-title-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 28px;
  border: 0;
  border-radius: 999px;
  background: #F8F9FB;
  box-shadow: 0 4px 12px rgba(16,24,40,0.07);
  color: #344054;
  font-size: 0.83rem;
  font-weight: 500;
  line-height: 1.1;
  position: relative;
  z-index: 2;
}

.dashboard-home-page .dashboard-import-title-pill i {
  color: rgba(var(--brand-primary-rgb), 0.72);
  font-size: 0.8rem;
}

.dashboard-home-page .dashboard-import-card-desc {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.45;
  text-align: center;
}

.dashboard-home-page .dashboard-import-form .form-group {
  margin-bottom: 0.7rem !important;
}

.dashboard-home-page .dashboard-import-form {
  margin: 0;
}

.dashboard-home-page .dashboard-import-form > :last-child {
  margin-bottom: 0 !important;
}

.dashboard-home-page .dashboard-certificate-event-group {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 0.45rem !important;
}

.dashboard-home-page .dashboard-certificate-event-group .app-form-label {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
}

.dashboard-home-page .dashboard-certificate-event-group .form-control {
  min-height: 34px;
  height: 34px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 0.78rem;
}

.dashboard-home-page .dashboard-import-form .form-control {
  min-height: 40px;
  border-radius: 11px;
  border-color: #e2e8f0;
  font-size: 0.84rem;
}

.dashboard-home-page .dashboard-upload-zone {
  min-height: 80px;
  background: #F9FAFB !important;
  border: 1px solid #E4E7EC !important;
  box-shadow: none !important;
  padding-top: 14px;
  padding-bottom: 14px;
}

.dashboard-home-page .dashboard-upload-zone:hover,
.dashboard-home-page .dashboard-upload-zone.has-file {
  background: #F9FAFB !important;
  border-color: #E4E7EC !important;
  box-shadow: none !important;
  transform: none !important;
}

.dashboard-home-page .dashboard-upload-zone .upload-dropzone-content {
  max-width: 270px;
}

.dashboard-home-page .dashboard-upload-zone .upload-dropzone-title {
  font-size: 0.78rem;
}

.dashboard-home-page .dashboard-upload-zone .upload-dropzone-hint {
  font-size: 0.7rem;
}

.dashboard-home-page .dashboard-import-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.dashboard-home-page .dashboard-import-actions-with-select {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-home-page .dashboard-import-inline-select {
  flex: 1 1 auto;
  max-width: 360px;
  min-width: 0;
}

.dashboard-home-page .dashboard-import-inline-select .form-control {
  min-height: 38px;
  height: 38px;
  font-size: 0.8rem;
}

@media (max-width: 1199.98px) {
  .dashboard-home-page .dashboard-event-grid,
  .dashboard-home-page .dashboard-import-live-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .dashboard-home-page .dashboard-card-group {
    padding: 0 18px 0;
  }

  .dashboard-home-page .dashboard-section:not(.dashboard-events-section) .dashboard-card-group {
    padding-top: 0;
  }
}

@media (max-width: 767.98px) {
  .dashboard-home-page .dashboard-import-actions-with-select {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-home-page .dashboard-import-inline-select {
    max-width: 100%;
    width: 100%;
  }

  .dashboard-home-page .dashboard-import-actions-with-select .btn {
    width: 100%;
  }

  .dashboard-home-page .dashboard-events-section {
    margin-bottom: 32px !important;
  }

  .dashboard-home-page .dashboard-event-card-title {
    gap: 9px;
    font-size: 0.88rem;
  }

  .dashboard-home-page .dashboard-event-card-title::before,
  .dashboard-home-page .dashboard-event-card-title::after {
    min-width: 24px;
  }

  .dashboard-home-page .dashboard-event-floating-date {
    min-width: 0;
    width: calc(100% - 26px);
    padding-left: 12px;
    padding-right: 12px;
  }

  .dashboard-home-page .dashboard-event-countdown {
    right: 12px;
    top: 16px;
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  .dashboard-home-page .dashboard-event-floating-inline-value {
    font-size: 0.76rem;
    gap: 6px;
  }

  .dashboard-home-page .dashboard-event-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .dashboard-home-page .dashboard-event-actions {
    width: 100%;
    margin-left: 0;
    max-width: 100%;
  }
}

/* Form standard 2026 */
.app-form-layout {
  margin: 0;
}

.app-form-shell {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 8px 0 2px;
}

.app-form-shell-wide {
  max-width: 720px;
}

.app-form-header {
  margin-bottom: 20px;
}

.app-form-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.app-form-subtitle {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.45;
}

/* Unified form headers (add/edit views) */
#content .app-form-shell {
  background: #ffffff;
  border: 1px solid #E4E7EC;
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.04),
    0 4px 8px rgba(16, 24, 40, 0.06);
  padding: 0 22px 22px;
  overflow: visible;
}

#content .app-form-header {
  margin: 0 0 22px;
  text-align: center;
}

#content .app-form-title {
  margin: -18px auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 28px;
  background: #F8F9FB;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(16,24,40,0.07);
  color: #344054;
  font-size: 0.83rem;
  font-weight: 500;
  line-height: 1.1;
  position: relative;
  z-index: 2;
}

#content .app-form-title i {
  color: rgba(var(--brand-primary-rgb), 0.72);
  font-size: 0.82rem;
}

#content .app-form-subtitle {
  margin: 12px 0 0;
  text-align: center;
}

#content .app-form-section-header {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 0;
  min-height: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

#content .app-form-section-title {
  margin: 0 auto;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  padding: 9px 24px;
  background: #F8F9FB;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(16,24,40,0.07);
  color: #344054;
  font-size: 0.83rem;
  font-weight: 500;
  line-height: 1.1;
  transform: translateY(-50%);
  position: relative;
  white-space: nowrap;
}

#content .app-form-section-title .app-form-section-title-icon {
  color: rgba(var(--brand-primary-rgb), 0.72);
  font-size: 0.8rem;
}

#content .app-form-section-title::before,
#content .app-form-section-title::after {
  display: none;
  content: none;
}

.app-form-sections {
  display: block;
  padding-top: 12px;
}

.app-form-section {
  position: relative;
  overflow: visible;
  padding: 36px 20px 20px;
  background: #ffffff;
  border: 1px solid #E4E7EC;
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.04),
    0 4px 8px rgba(16, 24, 40, 0.04);
}

.app-form-section + .app-form-section {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 0;
}

.app-form-section-header {
  margin-bottom: 14px;
}

.app-form-section-title {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 600;
  color: #0f172a;
}

.app-form-section-desc {
  margin: 0 0 20px;
  text-align: center;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.4;
}

.app-form-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.app-form-fields-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-form-fields-three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-form-field {
  min-width: 0;
}

.app-form-label,
.app-form .app-form-label,
.app-form-field > label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  text-transform: none;
}

.app-form-control,
.app-form .form-control,
.app-form input[type="text"],
.app-form input[type="number"],
.app-form input[type="email"],
.app-form input[type="password"],
.app-form input[type="date"],
.app-form input[type="search"],
.app-form input[type="file"],
.app-form select,
.app-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  padding: 14px 15px;
  box-shadow: none !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.app-form textarea.app-form-control,
.app-form textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.app-form input::placeholder,
.app-form textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
  font-weight: 400;
}

.app-form .app-form-control:focus,
.app-form .form-control:focus,
.app-form select:focus,
.app-form textarea:focus,
.app-form input:focus {
  border-color: rgba(var(--brand-primary-rgb), 0.7) !important;
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.16) !important;
}

/* Select controls: unify native + Select2 arrow spacing and style */
#content .app-form select.form-control:not([multiple]):not([size]):not(.select2-hidden-accessible),
#content .app-form select.app-form-control:not([multiple]):not([size]):not(.select2-hidden-accessible),
#content .dashboard-home-page select.form-control:not([multiple]):not([size]):not(.select2-hidden-accessible) {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.75rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 4.35L6 8.15l3.8-3.8' fill='none' stroke='%2398A2B3' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 12px;
}

#content .app-form select.form-control::-ms-expand,
#content .app-form select.app-form-control::-ms-expand,
#content .dashboard-home-page select.form-control::-ms-expand {
  display: none;
}

#content .select2-container--default .select2-selection--single .select2-selection__rendered,
#content .app-form .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-right: 2rem !important;
}

#content .select2-container--default .select2-selection--single .select2-selection__arrow,
#content .app-form .select2-container--default .select2-selection--single .select2-selection__arrow {
  right: 14px !important;
  width: 18px;
}

.app-form .select2-container {
  width: 100% !important;
}

.app-form .select2-container .select2-selection--single,
.app-form .select2-container .select2-selection--multiple {
  min-height: 48px;
  border-radius: 12px !important;
  border: 1px solid #e5e7eb !important;
  padding: 5px 13px;
  background: #fff;
}

.app-form .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 36px;
  color: #0f172a;
  font-size: 0.88rem;
  padding-left: 0;
}

.app-form .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px;
  right: 14px !important;
}

.app-form .select2-container.select2-container--open .select2-selection--single,
.app-form .select2-container.select2-container--open .select2-selection--multiple,
.app-form-field.is-open .select2-selection {
  border-color: rgba(var(--brand-primary-rgb), 0.7) !important;
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.16) !important;
}

.app-form-field-error {
  margin-top: 6px;
  min-height: 18px;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #64748b;
}

.app-form-field-error.has-server-error,
.app-form-field.is-invalid .app-form-field-error {
  color: #dc2626;
}

.app-form-field.is-invalid .app-form-control,
.app-form-field.is-invalid .form-control,
.app-form-field.is-invalid .select2-selection {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.13) !important;
}

.app-form-password-wrap {
  position: relative;
}

.app-form-password-wrap .app-form-control,
.app-form-password-wrap .form-control {
  padding-right: 84px;
}

.app-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--brand-primary);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
}

.app-password-toggle:hover,
.app-password-toggle:focus {
  background: rgba(var(--brand-primary-rgb), 0.08);
  outline: none;
}

.app-form-field-check .app-check-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  min-height: 48px;
  cursor: pointer;
  margin: 0;
}

.app-form-field-check .app-check-option:hover {
  border-color: rgba(var(--brand-primary-rgb), 0.5);
}

.app-check-input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: 0 0 18px;
}

.app-check-label {
  font-size: 0.82rem;
  color: #1e293b;
  line-height: 1.4;
}

.app-form-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.app-form-file-remove {
  margin-bottom: 10px;
}

.app-form-file-remove .app-check-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.app-form-file-remove .app-check-input {
  margin: 0;
}

.app-form-file-remove .app-check-label {
  font-size: 0.8rem;
  color: #667085;
}

.app-form-file-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  padding: 6px 8px;
  text-decoration: none !important;
}

.app-form-file-item img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}

.app-form-file-link {
  color: #334155;
  font-size: 0.76rem;
  line-height: 1.3;
}

.app-color-control {
  min-height: 48px;
  padding: 6px;
}

.app-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid #e8edf3;
}

.app-form-actions-left,
.app-form-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-form-actions-right {
  margin-left: auto;
}

.app-form .app-form-actions .btn,
.app-form .app-form-submit,
.app-form .app-form-secondary-action {
  width: auto !important;
  min-width: 0;
}

.app-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 164px;
}

.app-form-submit.is-loading {
  pointer-events: none;
  opacity: 0.88;
}

.app-form-submit-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: appFormSpin 0.7s linear infinite;
}

.app-form-unsaved {
  position: sticky;
  bottom: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  border-radius: 10px;
  border: 1px solid rgba(var(--brand-primary-rgb), 0.25);
  background: rgba(var(--brand-primary-rgb), 0.08);
  color: var(--brand-primary);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 8px 10px;
}

.app-form-unsaved.is-visible {
  display: inline-flex;
}

/* CMS forms: 2-column desktop layout */
.app-form-layout-cms .app-form-shell {
  max-width: 1200px;
  padding-top: 4px;
}

/* CMS forms: avoid "box in box" (sections should sit directly on page background) */
#content .app-form-layout-cms .app-form-shell {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.app-form-layout-cms .app-form-header {
  margin-bottom: 16px;
}

.app-form-layout-cms .app-form-section {
  padding-top: 36px;
}

.app-form-layout-cms .app-form-section + .app-form-section {
  margin-top: 44px;
  padding-top: 36px;
}

.app-form-layout-cms .app-form-section-header {
  margin: 0;
}

.app-form-layout-cms .app-form-fields,
.app-form-layout-cms .app-form-fields-cms {
  gap: 12px;
}

.app-form-layout-cms .app-form-actions {
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 14px;
}

.app-form-layout-cms .app-form-actions-left {
  display: none;
}

.app-form-layout-cms .app-form-actions .btn,
.app-form-layout-cms .app-form-submit {
  width: auto !important;
  min-width: 168px;
  max-width: none;
}

@media (min-width: 1024px) {
  .app-form-layout-cms .app-form-sections.app-form-sections-has-compact-pairs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
    align-items: start;
  }

  .app-form-layout-cms .app-form-sections.app-form-sections-has-compact-pairs .app-form-section {
    margin-top: 0 !important;
  }

  .app-form-layout-cms .app-form-sections.app-form-sections-has-compact-pairs .app-form-section:not(.app-form-section-compact) {
    grid-column: 1 / -1;
  }

  .app-form-layout-cms .app-form-sections.app-form-sections-has-compact-pairs .app-form-section.app-form-section-compact {
    grid-column: auto;
  }

  .app-form-layout-cms .app-form-sections.app-form-sections-has-compact-pairs .app-form-section.app-form-section-compact .app-form-fields,
  .app-form-layout-cms .app-form-sections.app-form-sections-has-compact-pairs .app-form-section.app-form-section-compact .app-form-fields-cms,
  .app-form-layout-cms .app-form-sections.app-form-sections-has-compact-pairs .app-form-section.app-form-section-compact .app-form-fields.app-form-fields-schedule,
  .app-form-layout-cms .app-form-sections.app-form-sections-has-compact-pairs .app-form-section.app-form-section-compact .app-form-fields-cms.app-form-fields-schedule {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .app-form-layout-cms .app-form-fields,
  .app-form-layout-cms .app-form-fields-cms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .app-form-layout-cms .app-form-fields.app-form-fields-schedule,
  .app-form-layout-cms .app-form-fields-cms.app-form-fields-schedule {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .app-form-layout-cms .app-form-field.app-form-field-full,
  .app-form-layout-cms .app-form-field.app-form-field-check {
    grid-column: 1 / -1;
  }

  .app-form-layout-cms .app-form-fields > .app-form-field:only-child,
  .app-form-layout-cms .app-form-fields-cms > .app-form-field:only-child,
  .app-form-layout-cms .app-form-fields.app-form-fields-schedule > .app-form-field:only-child,
  .app-form-layout-cms .app-form-fields-cms.app-form-fields-schedule > .app-form-field:only-child,
  .app-form-layout-cms .app-form-fields > .app-form-field:last-child:nth-child(odd),
  .app-form-layout-cms .app-form-fields-cms > .app-form-field:last-child:nth-child(odd),
  .app-form-layout-cms .app-form-fields.app-form-fields-schedule > .app-form-field:last-child:nth-child(odd),
  .app-form-layout-cms .app-form-fields-cms.app-form-fields-schedule > .app-form-field:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1023.98px) {
  .app-form-layout-cms .app-form-sections.app-form-sections-has-compact-pairs {
    display: block;
  }

  .app-form-layout-cms .app-form-fields,
  .app-form-layout-cms .app-form-fields-cms,
  .app-form-layout-cms .app-form-fields.app-form-fields-schedule,
  .app-form-layout-cms .app-form-fields-cms.app-form-fields-schedule {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar .nav-item .nav-link,
  .sidebar .nav-item .collapse .collapse-inner .collapse-item,
  .sidebar .nav-item .collapsing .collapse-inner .collapse-item {
    transition: none !important;
  }

  .dashboard-home-page .dashboard-event-floating-date {
    animation: none !important;
    opacity: 1 !important;
  }
}

@keyframes appFormSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 991.98px) {
  .app-form-shell {
    max-width: 100%;
  }

  .app-form-fields-three-col,
  .app-form-fields-two-col {
    grid-template-columns: 1fr;
  }
}

/* Newsletter preview: realistic email client frame */
.newsletter-preview-page .newsletter-preview-card {
  overflow: visible;
}

.newsletter-preview-page .newsletter-preview-standalone {
  width: 100%;
  margin: 0 0 14px;
}

.newsletter-preview-shell {
  border: 1px solid #E4E7EC;
  border-radius: 16px;
  background: #FCFCFD;
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.07);
  overflow: hidden;
}

.newsletter-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #E4E7EC;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.newsletter-preview-toolbar-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.newsletter-preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 10px;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.newsletter-preview-dot--red {
  background: #ff5f57;
}

.newsletter-preview-dot--yellow {
  background: #ffbd2e;
}

.newsletter-preview-dot--green {
  background: #28c840;
}

.newsletter-preview-toolbar-title {
  margin-left: 6px;
  color: #344054;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.newsletter-preview-toolbar-right {
  flex: 0 0 auto;
}

.newsletter-preview-toolbar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #E4E7EC;
  background: #FFFFFF;
  color: #667085;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.newsletter-preview-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding: 16px;
  border-bottom: 1px solid #EAECF0;
  background: #FFFFFF;
}

.newsletter-preview-meta-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.newsletter-preview-meta-label {
  width: 78px;
  color: #667085;
  font-size: 0.78rem;
  font-weight: 600;
  flex: 0 0 78px;
}

.newsletter-preview-meta-value {
  color: #101828;
  font-size: 0.82rem;
  font-weight: 500;
  min-width: 0;
  overflow-wrap: anywhere;
}

.newsletter-preview-attachments {
  padding: 14px 16px;
  border-bottom: 1px solid #EAECF0;
  background: #FFFFFF;
}

.newsletter-preview-attachments-label {
  margin-bottom: 8px;
  color: #667085;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.newsletter-preview-attachments-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.newsletter-preview-attachment-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid #E4E7EC;
  border-radius: 999px;
  background: #F9FAFB;
  color: #475467;
  font-size: 0.75rem;
  font-weight: 500;
}

.newsletter-preview-attachment-pill i {
  color: rgba(var(--brand-primary-rgb), 0.82);
  font-size: 0.75rem;
}

.newsletter-preview-canvas-wrap {
  padding: 20px 18px 24px;
  background: linear-gradient(180deg, #F8FAFC 0%, #F2F4F7 100%);
}

.newsletter-preview-canvas {
  max-width: 900px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid #EAECF0;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
  overflow: auto;
}

.newsletter-send-preview {
  margin-top: 26px;
}

.newsletter-preview-canvas-iframe {
  overflow: hidden;
  background: #F6F7F9;
}

.newsletter-preview-iframe {
  display: block;
  width: 100%;
  min-height: 920px;
  border: 0;
  background: #F6F7F9;
}

.newsletter-preview-canvas > *:first-child {
  margin-top: 0;
}

.newsletter-preview-canvas img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 991.98px) {
  .newsletter-preview-meta {
    grid-template-columns: 1fr;
  }

  .newsletter-preview-meta-label {
    width: 70px;
    flex-basis: 70px;
  }

  .newsletter-preview-toolbar-title {
    max-width: 180px;
  }
}

/* Flash alerts: subtle, readable, with icons */
.app-alert {
  position: relative;
  display: block;
  margin: 0 0 12px;
  padding: 11px 14px 11px 42px;
  border: 1px solid #E4E7EC;
  border-radius: 10px;
  background: #F8FAFC;
  color: #344054;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 4px 10px rgba(16, 24, 40, 0.04);
}

.app-alert:last-child {
  margin-bottom: 0;
}

.app-alert::before {
  content: "\f05a";
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 0.82rem;
  color: #667085;
}

.app-alert a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.app-alert.app-alert-success {
  background: #ECFDF3;
  border-color: #ABEFC6;
  color: #067647;
}

.app-alert.app-alert-success::before {
  content: "\f058";
  color: #12B76A;
}

.app-alert.app-alert-danger {
  background: #FEF3F2;
  border-color: #FECDCA;
  color: #B42318;
}

.app-alert.app-alert-danger::before {
  content: "\f06a";
  color: #F04438;
}

.app-alert.app-alert-warning {
  background: #FFFAEB;
  border-color: #FEDF89;
  color: #B54708;
}

.app-alert.app-alert-warning::before {
  content: "\f071";
  color: #F79009;
}

.app-alert.app-alert-info {
  background: #EFF8FF;
  border-color: #B2DDFF;
  color: #175CD3;
}

.app-alert.app-alert-info::before {
  content: "\f05a";
  color: #2E90FA;
}

/* Reports */
.report-page .report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.report-page .report-kpi-card {
  background: #FFFFFF;
  border: 1px solid #EAECF0;
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.04),
    0 4px 10px rgba(16, 24, 40, 0.06);
  padding: 14px 14px 12px;
  min-height: 108px;
}

.report-page .report-kpi-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #667085;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-page .report-kpi-label i {
  color: rgba(var(--brand-primary-rgb), 0.78);
  font-size: 0.76rem;
}

.report-page .report-kpi-value {
  margin-top: 10px;
  color: #344054;
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.15;
}

.report-page .report-kpi-value.is-danger {
  color: #B42318;
}

.report-page .report-kpi-meta {
  margin-top: 8px;
  color: #98A2B3;
  font-size: 0.77rem;
  font-weight: 500;
}

.report-page .report-card {
  border: 1px solid #E4E7EC !important;
}

.report-page .report-card .card-body {
  padding-top: 56px;
}

.report-page .report-chart-wrap {
  position: relative;
  width: 100%;
  min-height: 280px;
}

.report-page .report-chart-wrap.report-chart-wrap-donut {
  min-height: 300px;
}

.report-page .report-source-summary {
  display: grid;
  gap: 8px;
}

.report-page .report-source-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #EEF2F6;
}

.report-page .report-source-summary-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.report-page .report-source-summary-label {
  color: #667085;
  font-size: 0.8rem;
  font-weight: 600;
}

.report-page .report-source-summary-value {
  color: #344054;
  font-size: 0.82rem;
  font-weight: 600;
}

.report-page .report-events-table thead th {
  white-space: nowrap;
}

.report-page .report-events-table td {
  vertical-align: middle !important;
}

.report-page .report-table-event-name {
  min-width: 260px;
  max-width: 360px;
  color: #344054;
  font-weight: 500;
}

.report-page .report-table-money {
  white-space: nowrap;
  color: #475467;
  font-weight: 500;
}

.report-page .report-table-money.is-danger {
  color: #B42318;
}

.report-page .report-table-money.is-strong {
  color: #1D2939;
  font-weight: 600;
}

.report-page .report-events-table .action-iconized {
  min-height: 32px;
  border-radius: 10px !important;
}

@media (max-width: 1599.98px) {
  .report-page .report-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .report-page .report-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .report-page .report-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.certificate-import-page .certificate-queue-status-card {
  border: 1px solid #E4E7EC;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.05);
}

.certificate-import-page .certificate-queue-meta {
  display: grid;
  gap: 6px;
  color: #475467;
  font-size: 0.9rem;
}

.certificate-import-page .certificate-queue-progress {
  height: 12px;
  border-radius: 999px;
  background: #EEF2F6;
  overflow: hidden;
}

.certificate-import-page .certificate-queue-progress .progress-bar {
  background: #D0272F;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 12px;
  text-align: right;
  padding-right: 8px;
}

.certificate-import-page .certificate-queue-counters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.certificate-import-page .certificate-queue-counters .badge {
  border: 1px solid #E4E7EC;
  background: #F8F9FB;
  color: #475467;
  font-weight: 500;
  border-radius: 999px;
  padding: 7px 12px;
}

.certificate-import-page .certificate-queue-issues h4 {
  color: #344054;
  font-weight: 600;
}

.certificate-import-page .certificate-queue-issues ul {
  margin: 0;
  padding-left: 18px;
  color: #475467;
  font-size: 0.88rem;
}

.certificate-import-page .certificate-queue-issues li {
  margin-bottom: 6px;
}
