/*!*****************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./templates/routes/user/dashboard/dashboard.css ***!
  \*****************************************************************************************************************************/
/* @import "overlayscrollbars/css/OverlayScrollbars.min.css"; */

.content {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start !important;
  padding-top: 0.5rem;
}

.card {
  border-radius: 0.75rem !important;
  /* overflow: hidden rimosso: clippava i modali position:fixed */
}

#istruzioni,
#certificazioni,
#targhe,
#abbonamenti,
#nucleo {
  border-radius: 0.75rem !important;
  width: 100%;
  margin: 0 !important;
}

/* Arrotonda header e footer delle card */
.card-header {
  border-top-left-radius: 0.75rem !important;
  border-top-right-radius: 0.75rem !important;
}

.card-footer {
  border-bottom-left-radius: 0.75rem !important;
  border-bottom-right-radius: 0.75rem !important;
}

/* Card interne */
#istruzioni .card,
#certificazioni .card,
#targhe .card,
#abbonamenti .card {
  border-radius: 0.75rem !important;
}

/* ============================================================
   MODAL FIX — backdrop-filter su .card crea un nuovo stacking
   context che intrappola i modali position:fixed rendendoli
   posizionati relativi alla card invece del viewport.
   Rimoviamo backdrop-filter solo dalle card che contengono modali.
   Il glass effect rimane visivo grazie al background semi-opaco.
   ============================================================ */
#main-section-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Assicura che il modal sia sempre centrato sul viewport */
.modal {
  z-index: 99999 !important;
}

/* ============================================================
   MODAL DESIGN — same glass style as section cards
   ============================================================ */
.modal-content {
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45) !important;
  border-radius: 0.85rem !important;
}

.modal-header {
  background: rgba(10, 25, 70, 0.07) !important;
  border-bottom: 1px solid rgba(10, 25, 70, 0.1) !important;
  border-radius: 0.85rem 0.85rem 0 0 !important;
  padding: 1rem 1.25rem !important;
}

.modal-title {
  color: #0f2456 !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
}

.modal-footer {
  background: rgba(10, 25, 70, 0.03) !important;
  border-top: 1px solid rgba(10, 25, 70, 0.08) !important;
  border-radius: 0 0 0.85rem 0.85rem !important;
  padding: 0.75rem 1.25rem !important;
  gap: 0.5rem;
}

/* Section headings inside modal body */
.modal-body h6.fw-bold.text-primary {
  color: #0f2456 !important;
  border-left: 3px solid #2c7be5;
  padding-left: 0.6rem;
}


hr {
  border: 1px solid #ccc;
  margin: 20px 0;
}

th,
td {
  width: 13.28%;
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
  font-weight: 500;
}

@media (max-width: 767.98px) {
  .card-header:not(.dash-card-header) {
    flex-direction: column;
  }
  .card-header:not(.dash-card-header) h5 {
    margin-bottom: 0.5rem !important;
  }
}

/* Su desktop (>= 768px) la sidebar è visibile: allarga il dialogo al 75% */
@media (min-width: 768px) {
  #requestModalCertsAndPlates .modal-dialog,
  #requestModalPlate .modal-dialog {
    width: 75%;
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Tablet (576px-767px): sidebar nascosta, larghezza ridotta, altezza ridotta */
@media (min-width: 576px) and (max-width: 767.98px) {
  #requestModalCertsAndPlates .modal-dialog,
  #requestModalPlate .modal-dialog,
  #requestModalCertificates .modal-dialog,
  #requestModalSubscriptions .modal-dialog {
    height: calc(100dvh - 9rem);
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Sotto 576px: modal-fullscreen-sm-down di Bootstrap gestisce tutto,
   nessun override qui per non interferire con il fullscreen */

.is-invalid ~ .custom.invalid-feedback {
  display: none;
}

[id$="icon"].dropzone-icon,
[id$="icon"][id*="dropzone"] {
  position: absolute !important;
  opacity: 0.5;
  height: 20rem;
  width: 20rem;
  right: 0%;
}

@media (max-width: 767.98px) {
  #requestModalCertsAndPlates img[id$="icon"],
  #requestModalPlate img[id$="icon"],
  #paymentModal img[id$="icon"] {
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    opacity: 0.2 !important;
  }
}

#plates_list div {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--falcon-300);
}

#plates_list div label {
  margin: 0 !important;
}

td.id,
.sort[data-sort|="id"] {
  display: none;
}

#pdfModal .modal-dialog {
  width: -webkit-fill-available;
  height: -webkit-fill-available;
  max-width: -webkit-fill-available;
  max-height: -webkit-fill-available;
}

.readonly {
  border-top: none;
  border-right: none;
  box-shadow: none;
  background-color: white !important;
  pointer-events: none;
}

.modal-dialog {
  margin-top: 5.1rem !important;
}

.valid-feedback {
  font-size: 100% !important;
}

.disabled-btn {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

.choices__inner {
  min-height: 36px !important;
  height: 36px !important;
}

.choices__input {
  display: none !important;
}

.choices__item {
  background-color: var(--falcon-primary) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  color: white !important;
  text-align: center;
}

.choices__inner.is-invalid {
  border-color: #e63757;
  padding-right: calc(1.5em + 0.625rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23e63757'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23e63757' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.15625rem) center;
  background-size: calc(0.75em + 0.3125rem) calc(0.75em + 0.3125rem);
}

.choices .choices__list--multiple .choices__item {
  margin-top: 0px !important;
}

.card .table-responsive {
  border-radius: 0.5rem;
}

.email-verification-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.email-verification-banner {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: calc(100% - 4rem);
  padding: 2.5rem;
  text-align: center;
  animation: slideDown 0.3s ease-out;
  z-index: 2001;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dashboard-blurred {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}

/* ============================================================
   BOTTONE INFO
   Stile identico agli altri icon-item.
   Nascosto di default, mostrato via media query dove serve.
   ============================================================ */

.btn-mobile-info {
  display: none;
}

/* Bottone info dentro la cella Azioni:
   nascosto di default, visibile solo su mobile */
.btn-mobile-info-action {
  display: none;
}

/* ============================================================
   MOBILE  ≤ 767.98px
   ============================================================ */

@media (max-width: 767.98px) {

  /* 1. Navbar dashboard nascosta su mobile */
  #dashboard_nav {
    display: none !important;
  }

  .dash-hero {
    padding: 1rem 0.5rem 0.75rem !important; /* orizzontale = px-2 (0.5rem) per allinearsi al row */
  }

  .dash-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  /* 2. Nuovo header dash-card-header su mobile */
  .dash-card-header {
    padding: 0.75rem 0.9rem !important;
    gap: 0.5rem;
  }

  .dash-card-header-right {
    width: 100%;
    justify-content: flex-end;
  }

  .dash-search-wrap .form-control {
    min-width: 110px;
    font-size: 0.76rem;
  }

  .dash-add-btn .btn-label {
    display: none;
  }

  .dash-add-btn {
    padding: 0.3rem 0.6rem !important;
  }

  /* 3. Spazi card ridotti */
  .card-header:not(.dash-card-header) {
    padding: 0.75rem 1rem !important;
  }

  /* --------------------------------------------------------
     4. TRADUZIONI INTESTAZIONI COLONNE
     font-size:0 nasconde il testo originale,
     ::after mostra il testo italiano abbreviato
     -------------------------------------------------------- */

  /* CERTIFICAZIONI */
  #certificates thead th:nth-child(2)          { font-size: 0; }
  #certificates thead th:nth-child(2)::after   { content: "Stato";    font-size: 0.75rem; font-weight: 600; }
  #certificates thead th:nth-child(3)          { font-size: 0; }
  #certificates thead th:nth-child(3)::after   { content: "Tipo";     font-size: 0.75rem; font-weight: 600; }
  #certificates thead th.details-col           { font-size: 0.75rem !important; font-weight: 600 !important; text-align: center; }

  /* TARGHE */
  #platesRequest thead th:nth-child(2)         { font-size: 0; }
  #platesRequest thead th:nth-child(2)::after  { content: "Stato";    font-size: 0.75rem; font-weight: 600; }
  #platesRequest thead th:nth-child(3)         { font-size: 0; }
  #platesRequest thead th:nth-child(3)::after  { content: "Targa";    font-size: 0.75rem; font-weight: 600; }
  #platesRequest thead th.details-col          { font-size: 0.75rem !important; font-weight: 600 !important; text-align: center; }

  /* RICHIESTE ABBONAMENTI */
  #sub_requests thead th:nth-child(1)          { font-size: 0; }
  #sub_requests thead th:nth-child(1)::after   { content: "ID";       font-size: 0.75rem; font-weight: 600; }
  #sub_requests thead th:nth-child(2)          { font-size: 0; }
  #sub_requests thead th:nth-child(2)::after   { content: "Stato";    font-size: 0.75rem; font-weight: 600; }
  #sub_requests thead th:nth-child(5)          { font-size: 0; }
  #sub_requests thead th:nth-child(5)::after   { content: "Validità"; font-size: 0.75rem; font-weight: 600; }
  #sub_requests thead th.actions-th            { font-size: 0; }
  #sub_requests thead th.actions-th::after     { content: "Azioni";   font-size: 0.75rem; font-weight: 600; }

  #sub_requests thead th:nth-child(2),
  #sub_requests thead th:nth-child(5) {
    display: table-cell !important;
  }

  /* ABBONAMENTI ASSOCIATI */
  #subscriptions thead th:nth-child(1)         { font-size: 0; }
  #subscriptions thead th:nth-child(1)::after  { content: "ID";       font-size: 0.75rem; font-weight: 600; }
  #subscriptions thead th:nth-child(3)         { font-size: 0; }
  #subscriptions thead th:nth-child(3)::after  { content: "Stato";    font-size: 0.75rem; font-weight: 600; }
  #subscriptions thead th.actions-th           { font-size: 0; }
  #subscriptions thead th.actions-th::after    { content: "Azioni";   font-size: 0.75rem; font-weight: 600; }

  /* Colore e peso uniformi su tutte le intestazioni: sia testo originale sia ::after */
  #main-section-card thead th,
  #main-section-card thead th::after {
    color: #0f2456 !important;
    font-weight: 700 !important;
  }


  /* --------------------------------------------------------
     5. NASCONDI COLONNE NON ESSENZIALI
     -------------------------------------------------------- */

  /* CERTIFICAZIONI: nascondi Data(4) Note(5) */
  #certificates thead th:nth-child(4),
  #certificates thead th:nth-child(5),
  #certificates tbody td:nth-child(4),
  #certificates tbody td:nth-child(5) {
    display: none !important;
  }

  /* TARGHE: nascondi Marca(4) Modello(5) Data(6) Note(7) */
  #platesRequest thead th:nth-child(4),
  #platesRequest thead th:nth-child(5),
  #platesRequest thead th:nth-child(6),
  #platesRequest thead th:nth-child(7),
  #platesRequest tbody td:nth-child(4),
  #platesRequest tbody td:nth-child(5),
  #platesRequest tbody td:nth-child(6),
  #platesRequest tbody td:nth-child(7) {
    display: none !important;
  }

  /* RICHIESTE ABBONAMENTI: nascondi Data(3) Tipologia(4) Validità(5) Targa(6) col-info(8) Note(9) */
  #sub_requests thead th:nth-child(3),
  #sub_requests thead th:nth-child(4),
  #sub_requests thead th:nth-child(5),
  #sub_requests thead th:nth-child(6),
  #sub_requests thead th:nth-child(8),
  #sub_requests thead th:nth-child(9),
  #sub_requests tbody td:nth-child(3),
  #sub_requests tbody td:nth-child(4),
  #sub_requests tbody td:nth-child(5),
  #sub_requests tbody td:nth-child(6),
  #sub_requests tbody td:nth-child(8),
  #sub_requests tbody td:nth-child(9) {
    display: none !important;
  }

  /* ABBONAMENTI ASSOCIATI: nascondi Numero(2) Tipologia(4) Targa(5) Data(6) Validità(7) */
  #subscriptions thead th:nth-child(2),
  #subscriptions thead th:nth-child(4),
  #subscriptions thead th:nth-child(5),
  #subscriptions thead th:nth-child(6),
  #subscriptions thead th:nth-child(7),
  #subscriptions tbody td:nth-child(2),
  #subscriptions tbody td:nth-child(4),
  #subscriptions tbody td:nth-child(5),
  #subscriptions tbody td:nth-child(6),
  #subscriptions tbody td:nth-child(7) {
    display: none !important;
  }

  /* Cella Azioni su mobile visibile */
  #sub_requests tbody td.actions-td,
  #subscriptions tbody td.actions-td {
    display: table-cell;
  }

  /* Colonna Dettagli (cert + targhe) su mobile visibile */
  #certificates thead th.details-col,
  #certificates tbody td.details-col,
  #platesRequest thead th.details-col,
  #platesRequest tbody td.details-col {
    display: table-cell;
  }

  /* Nascondi colonne mobile-info-col eventualmente aggiunte da JS */
  .mobile-info-col,
  .mobile-info-header {
    display: none !important;
  }
  .mobile-info-col,
  .mobile-info-header {
    display: none !important;
  }

  /* --------------------------------------------------------
     6. BOTTONE INFO — attivo su mobile
     -------------------------------------------------------- */

  /* Colonna Dettagli (certificazioni + targhe) */
  .btn-mobile-info {
    display: inline-flex !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
    min-width: 1.5rem !important;
    min-height: 1.5rem !important;
    color: var(--falcon-primary, #2c7be5) !important;
    background-color: #fff !important;
    font-size: 0.65rem !important;
    padding: 0 !important;
  }

  /* Bottone info nelle Azioni su mobile */
  .btn-mobile-info-action {
    display: inline-flex !important;
  }

  /* Riduci i bottoni solo dentro le righe della tabella */
  .table .hover-actions .icon-item,
  .table .hover-actions .btn,
  .table .hover-actions .btn-mobile-info-action {
    width: 1.5rem !important;
    height: 1.5rem !important;
    min-width: 1.5rem !important;
    min-height: 1.5rem !important;
    font-size: 0.65rem !important;
  }

  /* Abbonamenti associati: prima riga 3 bottoni, seconda riga 2 bottoni */
  #subscriptions tbody .hover-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(1.5rem, auto)) !important;
    justify-content: center !important;
    justify-items: center !important;
    gap: 0.25rem !important;
    width: max-content !important;
    margin: 0 auto !important;
  }

  #subscriptions tbody .hover-actions .btn,
  #subscriptions tbody .hover-actions .btn-mobile-info-action {
    margin: 0 !important;
  }

  .modal-backdrop.show {
    opacity: 0.8 !important;
    background-color: rgba(0, 0, 0, 0.75) !important;
  }

  /* --------------------------------------------------------
     7. MODALE INFO — backdrop e stile
     -------------------------------------------------------- */

  #mobileInfoModal .modal-content {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45) !important;
    border-radius: 0.75rem !important;
  }

  #mobileInfoModal .modal-body dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 0.85rem;
    margin: 0;
  }

  #mobileInfoModal .modal-body dt {
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    font-size: 0.8rem;
  }

  #mobileInfoModal .modal-body dd {
    margin-bottom: 0.1rem;
    word-break: break-word;
    font-size: 0.85rem;
  }

  /* Scroll orizzontale tabelle */
  .table-responsive {
    overflow-x: auto;
  }
}

/* ============================================================
   DESKTOP  ≥ 768px — nascondi tutto il mobile-only
   ============================================================ */

@media (min-width: 768px) {

  /* Bottone info nelle colonne Dettagli */
  .btn-mobile-info {
    display: none !important;
  }

  /* Colonna Dettagli nel Twig (cert + targhe) */
  #certificates thead th.details-col,
  #certificates tbody td.details-col,
  #platesRequest thead th.details-col,
  #platesRequest tbody td.details-col {
    display: none !important;
  }

  /* Bottone info nelle Azioni */
  .btn-mobile-info-action {
    display: none !important;
  }

  /* Colonne mobile-info aggiunte da JS */
  .mobile-info-col,
  .mobile-info-header {
    display: none !important;
  }
}

/* ============================================================
   DASH HERO — welcome banner
   ============================================================ */
.dash-hero {
  width: 100%;
  padding: 1.75rem 1.5rem 1.5rem; /* orizzontale = px-lg-4 (1.5rem) per allinearsi al row */
  margin-bottom: 1.25rem;
}

.dash-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.dash-hero-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dash-hero-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2c7be5 0%, #1a5cbf 100%);
  color: white;
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(44, 123, 229, 0.45);
}

.dash-hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 0.15rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.dash-hero-title span {
  color: #93c5fd;
}

.dash-hero-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.52);
  margin: 0;
}

.dash-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.dash-hero-tabs {
  display: flex;
  gap: 0;
  background: transparent;
  border-radius: 12px;
  padding: 0;
}

.hero-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}

.hero-tab:hover {
  color: #fff;
  background: rgba(255,255,255,0.15);
  text-decoration: none;
}

.hero-tab.active {
  color: #0f2456;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-tab.active:hover {
  background: #fff;
  color: #0f2456;
}

/* ============================================================
   NAV DASHBOARD — pill chips glassmorphism su sfondo scuro
   ============================================================ */
#dashboard_nav .nav-link {
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 50px !important;
  padding: 0.35rem 1.1rem !important;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

#dashboard_nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-1px);
  color: #ffffff !important;
}

#dashboard_nav .nav-link span,
#dashboard_nav .nav-link .fas {
  color: inherit !important;
}

/* ============================================================
   TABELLE — rimuovi bordi spessi e strisce grigie
   ============================================================ */
.table-bordered {
  --bs-table-border-color: transparent !important;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: transparent;
  background-color: transparent !important;
}

.table tbody tr:not(:last-child) td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.table tbody tr:hover td {
  background-color: rgba(44, 123, 229, 0.04) !important;
  transition: background-color 0.12s;
}

/* ============================================================
   ISTRUZIONI — step numerati più curati
   ============================================================ */
#istruzioni .card-body .fw-bold.text-primary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  margin-top: 0.5rem;
  border-radius: 0.5rem;
  background: rgba(44, 123, 229, 0.06);
}

#istruzioni .badge.bg-primary.rounded-circle {
  width: 1.6rem;
  height: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  padding: 0;
}

/* ============================================================
   DASH STEPS — sezione istruzioni 3-step
   ============================================================ */
#istruzioni .card-header {
  background: rgba(10, 25, 70, 0.06) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
}

#istruzioni .card-header h5 {
  color: #0f2456 !important;
  font-weight: 700 !important;
}

.dash-guide-link {
  color: #2c7be5 !important;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.dash-guide-link:hover {
  text-decoration: underline;
}

.dash-steps-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.dash-step-card {
  flex: 1;
  background: rgba(10, 25, 70, 0.03);
  border: 1px solid rgba(10, 25, 70, 0.08);
  border-radius: 0.75rem;
  padding: 1.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.dash-step-card:not(.dash-step-card--muted):hover {
  box-shadow: 0 4px 18px rgba(44, 123, 229, 0.12);
  transform: translateY(-2px);
}

.dash-step-card--muted {
  opacity: 0.5;
}

.dash-step-card--waiting {
  border-color: rgba(245, 166, 35, 0.35) !important;
  background: rgba(245, 166, 35, 0.04) !important;
}

.dash-step-card--waiting .dash-step-num {
  background: linear-gradient(135deg, #f5a623, #e67e22);
  animation: step-pulse 2s ease-in-out infinite;
}

.dash-step-badge-pending {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.3);
  color: #b07800;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  width: 100%;
}

@keyframes step-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(245, 166, 35, 0); }
}

.dash-step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #2c7be5;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-step-icon-wrap {
  font-size: 2rem;
  color: #2c7be5;
  line-height: 1;
  margin: 0.1rem 0;
}

.dash-step-title {
  font-weight: 700;
  color: #0f2456;
  margin: 0;
  font-size: 0.95rem;
}

.dash-step-desc {
  font-size: 0.82rem;
  color: #4a5568;
  margin: 0;
  flex: 1;
}

.dash-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  color: #2c7be5;
  font-size: 1rem;
  flex-shrink: 0;
  opacity: 0.5;
}

.dash-steps-footer {
  font-size: 0.82rem;
  color: #4a5568;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 0.75rem;
}

/* Desktop: il wrapper è trasparente — i figli partecipano direttamente
   al flex column della card come se il div non esistesse */
.dash-step-content {
  display: contents;
}

.dash-steps-footer a {
  color: #2c7be5;
  font-weight: 600;
}

/* ============================================================
   DASH CARD HEADER — layout flex uniforme per tutte le sezioni
   ============================================================ */
.dash-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.85rem 1.25rem !important;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: rgba(10, 25, 70, 0.06) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
}

.dash-card-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.dash-card-header-left h5 {
  color: #0f2456 !important;
  font-weight: 700 !important;
  margin: 0 !important;
  white-space: nowrap;
}

.dash-section-icon {
  color: #2c7be5;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.dash-card-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Search input */
.dash-search-wrap {
  position: relative;
}

.dash-search-wrap .form-control {
  padding-right: 2rem;
  border-radius: 50px !important;
  border: 1px solid rgba(10, 25, 70, 0.15) !important;
  background: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.8rem;
  min-width: 140px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dash-search-wrap .form-control:focus {
  border-color: #2c7be5 !important;
  box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.12) !important;
  background: white !important;
}

.dash-search-icon {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: #8a97b0;
  font-size: 0.72rem;
  pointer-events: none;
}

/* Add button */
.dash-add-btn {
  border-radius: 50px !important;
  font-size: 0.78rem !important;
  padding: 0.3rem 0.85rem !important;
  white-space: nowrap;
}

/* ============================================================
   THEAD — stile navy leggero per tutte le tabelle sezione
   ============================================================ */
#certificazioni th,
#targhe th,
#abbonamenti th,
#nucleo th {
  background: white !important;
  color: #0f2456 !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  border-bottom: 1px solid rgba(10, 25, 70, 0.1) !important;
  text-align: center !important;
  padding: 0.6rem 0.75rem !important;
  white-space: nowrap;
}

/* ============================================================
   PAGINAZIONE — stile moderno, responsive
   ============================================================ */
[id^="table_pagination"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  padding: 0.75rem 1rem !important;
  flex-wrap: wrap;
  position: relative;
}

/* Su mobile i div assoluti tornano statici */
@media (max-width: 767.98px) {
  [id^="table_pagination"] .col-auto[style*="position: absolute"] {
    position: static !important;
  }

  /* Paginazione: bottoni leggermente più piccoli su mobile */
  [id^="table_pagination"] .btn-falcon-default {
    width: 1.65rem !important;
    height: 1.65rem !important;
    font-size: 0.65rem !important;
  }

  [id^="table_pagination"] .pagination .page,
  [id^="table_pagination"] .pagination li button {
    min-width: 1.65rem;
    height: 1.65rem;
    font-size: 0.7rem;
    padding: 0 0.35rem !important;
  }

  /* "Guida completa" va sotto il titolo, allineata a sinistra */
  #istruzioni .card-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.25rem !important;
  }

  #istruzioni .card-header .dash-guide-link {
    margin-left: 0 !important;
  }
}

[id^="table_pagination"] .btn-falcon-default {
  background: rgba(10, 25, 70, 0.06) !important;
  border: 1px solid rgba(10, 25, 70, 0.12) !important;
  border-radius: 50px !important;
  color: #0f2456 !important;
  width: 2rem !important;
  height: 2rem !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.72rem !important;
  transition: background 0.15s;
}

[id^="table_pagination"] .btn-falcon-default:hover {
  background: rgba(44, 123, 229, 0.1) !important;
  border-color: #2c7be5 !important;
  color: #2c7be5 !important;
}

[id^="table_pagination"] .pagination {
  gap: 0.2rem;
  margin: 0 !important;
}

[id^="table_pagination"] .pagination .page,
[id^="table_pagination"] .pagination li button {
  background: transparent;
  border: 1px solid rgba(10, 25, 70, 0.1) !important;
  border-radius: 50px !important;
  color: #0f2456 !important;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem !important;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.15s;
}

[id^="table_pagination"] .pagination li.active .page,
[id^="table_pagination"] .pagination li.active button {
  background: #2c7be5 !important;
  border-color: #2c7be5 !important;
  color: white !important;
}

[id^="table_pagination"] .elem_number {
  font-size: 0.75rem;
  color: #6b7c97;
  border: none !important;
  background: transparent !important;
  min-width: auto;
  width: auto;
  padding: 0 !important;
}

[id^="table_pagination"] .form-select {
  border-radius: 50px !important;
  border: 1px solid rgba(10, 25, 70, 0.15) !important;
  font-size: 0.75rem !important;
  padding: 0.2rem 1.8rem 0.2rem 0.6rem !important;
  height: auto !important;
  background-color: rgba(255, 255, 255, 0.7) !important;
}

/* ============================================================
   MOBILE — hero su schermi piccoli
   ============================================================ */
@media (max-width: 767.98px) {
  .dash-hero-avatar {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .dash-hero-title {
    font-size: 1.15rem;
  }

  .dash-hero-right {
    align-items: flex-start;
    width: 100%;
  }

  .dash-hero-tabs {
    align-self: center;
  }

  .hero-tab {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .dash-steps-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .dash-step-arrow {
    transform: rotate(90deg);
    padding: 0;
    align-self: center;
  }

  .dash-step-card {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }

  .dash-step-card .dash-step-num {
    flex-shrink: 0;
    margin-top: 0.1rem;
  }

  .dash-step-card .dash-step-icon-wrap {
    display: none;
  }

  /* Il contenuto testuale (titolo, desc, bottone) diventa una colonna
     che occupa lo spazio rimasto dopo il cerchio-numero */
  .dash-step-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 0.4rem;
  }

  .dash-step-card .btn {
    width: 100% !important;
  }
}

/* ============================================================
   TABELLE — celle responsive (override layout.css white-space)
   ============================================================ */
#certificazioni td,
#targhe td,
#abbonamenti td,
#nucleo td {
  white-space: normal !important;
  word-break: break-word;
}

/* Tieni le colonne azioni su una sola riga */
#tab-abbonamenti td.actions-td,
#tab-abbonamenti .hover-actions,
#tab-targhe td.actions-td,
#tab-targhe .hover-actions {
  white-space: nowrap !important;
}

/* Separatori interni eleganti */
#tab-targhe hr,
#tab-richieste hr {
  border: none !important;
  border-top: 1px solid rgba(10, 25, 70, 0.07) !important;
  margin: 0 !important;
}

/* ============================================================
   TABELLA TARGHE ASSOCIATE — compatta
   ============================================================ */
#tab-targhe .card.mt-3 {
  box-shadow: none !important;
  border: 1px solid rgba(10, 25, 70, 0.08) !important;
}

/* ============================================================
   MOBILE ≤ 576px — compatta ulteriormente
   ============================================================ */
@media (max-width: 575.98px) {
  .row.g-3.w-100 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  #certificazioni td,
  #targhe td,
  #abbonamenti td,
  #nucleo td {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.5rem !important;
  }

  #certificazioni th,
  #targhe th,
  #abbonamenti th,
  #nucleo th {
    font-size: 0.72rem !important;
    padding: 0.5rem 0.5rem !important;
  }
}

/* ============================================================
   MAIN TABBED SECTION — dash-tabs-header / dash-main-tabs
   ============================================================ */
/* Card principale: bianco puro */
#main-section-card {
  background: white !important;
  background-color: white !important;
}

.dash-tabs-header {
  padding: 0 !important;
  background: white !important;
  border-bottom: 1px solid rgba(10, 25, 70, 0.1) !important;
  border-radius: 0.75rem 0.75rem 0 0 !important;
  -webkit-overflow-scrolling: touch;
}

.dash-main-tabs {
  flex-wrap: nowrap;
  border-bottom: none;
  padding: 0 0.75rem;
}

.dash-main-tabs .nav-link {
  color: #6c757d;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.75rem 0.9rem;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.dash-main-tabs .nav-link:hover {
  color: #0f2456;
  border-bottom-color: rgba(44, 123, 229, 0.35);
  background: transparent;
}

.dash-main-tabs .nav-link.active {
  color: #2c7be5;
  border-bottom-color: #2c7be5;
  background: transparent;
}

/* Sub-header row inside each tab pane — 3 colonne: titolo | ricerca (centrata) | azioni */
.dash-tab-subheader {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(10, 25, 70, 0.07);
  background: transparent;
}

.dash-tab-subheader > :last-child {
  justify-self: end;
}

/* Titolo sottosezione (es. "Richieste" / "Associati") */
.dash-subsection-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f2456;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Barra di ricerca: centrata tramite grid, larghezza moderata */
.dash-search-wrap {
  width: 220px;
  max-width: 100%;
  position: relative;
}

.dash-search-wrap .search {
  width: 100%;
  font-size: 0.82rem;
  padding: 0.3rem 2rem 0.3rem 0.65rem;
  border: 1px solid rgba(10, 25, 70, 0.15);
  border-radius: 0.4rem;
}

.dash-search-icon {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  color: #adb5bd;
  font-size: 0.72rem;
  pointer-events: none;
}

.dash-tab-subheader .btn {
  flex-shrink: 0;
  font-size: 0.8rem;
}

/* Tab pane table wrappers */
#tab-abbonamenti td,
#tab-certificazioni td,
#tab-targhe td,
#tab-nucleo td {
  white-space: normal !important;
  word-break: break-word;
}

/* Intestazioni senza sfondo — siedono sulla card bianca.
   font-size senza !important: le regole mobile (font-size:0 + ::after)
   hanno specificità maggiore e possono sovrascriverlo. */
#main-section-card th {
  background: transparent !important;
  background-color: transparent !important;
  color: #0f2456 !important;
  font-weight: 700 !important;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(10, 25, 70, 0.1) !important;
  text-align: center !important;
  padding: 0.6rem 0.75rem !important;
  white-space: nowrap;
}

/* Targhe associate sub-section separator */
#tab-targhe hr {
  border: none !important;
  border-top: 1px solid rgba(10, 25, 70, 0.07) !important;
  margin: 0 !important;
}

/* Tab responsive (≤ 767px): icone nascoste, etichette visibili, nessuno scroll */
@media (max-width: 767.98px) {
  .dash-tabs-header {
    overflow-x: hidden;
  }

  .dash-main-tabs {
    flex-wrap: wrap;
    padding: 0;
  }

  .dash-main-tabs .nav-item {
    flex: 1;
  }

  .dash-main-tabs .nav-link {
    width: 100%;
    text-align: center;
    white-space: normal;
    padding: 0.55rem 0.3rem;
    font-size: 0.7rem;
    line-height: 1.2;
  }

  .dash-main-tabs .nav-link .fas {
    display: none !important;
  }

  .dash-main-tabs .nav-link .tab-label {
    display: inline !important;
  }
}

@media (max-width: 575.98px) {
  #tab-abbonamenti td,
  #tab-certificazioni td,
  #tab-targhe td,
  #tab-nucleo td {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.5rem !important;
  }

  /* Su mobile la subheader torna flex e la ricerca si comprime */
  .dash-tab-subheader {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .dash-tab-subheader > :last-child {
    justify-self: unset;
    margin-left: auto;
  }

  .dash-search-wrap {
    width: 100%;
    max-width: 100%;
    order: 2;
  }
}

/* ===================================================
   MODAL REDESIGN — sidebar + form layout
   =================================================== */

/* Two-column layout inside modal-content */
.modal-content.modal-split {
  flex-direction: row !important;
  overflow: hidden !important;
}

/* Left sidebar */
.modal-sidebar {
  width: 260px;
  background: linear-gradient(155deg, #dbeafe 0%, #eff6ff 55%, #e8edfe 100%);
  padding: 2rem 1.5rem;
  overflow-y: auto;
  position: relative;
}

.modal-sidebar-icon-wrap {
  width: 68px;
  height: 68px;
  background: white;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(44, 123, 229, 0.18);
  margin-bottom: 1.25rem;
  font-size: 1.6rem;
  color: #2c7be5;
}

.modal-sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f2456;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.modal-sidebar-desc {
  font-size: 0.8rem;
  color: #5a6780;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.modal-sidebar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(44, 123, 229, 0.12);
  color: #2c7be5;
  border-radius: 20px;
  padding: 0.22rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  width: fit-content;
}

/* Steps */
.modal-steps { padding-top: 0.25rem; }

.modal-step {
  display: flex;
  gap: 0.7rem;
  position: relative;
  padding-bottom: 1rem;
  align-items: flex-start;
}

.modal-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: 0;
  border-left: 2px dashed rgba(44, 123, 229, 0.22);
}

.modal-step-num,
.modal-step-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2c7be5;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.modal-step-body strong {
  display: block;
  font-size: 0.8rem;
  color: #0f2456;
  font-weight: 600;
}

.modal-step-body small {
  display: block;
  font-size: 0.74rem;
  color: #6b7a99;
  margin-top: 0.08rem;
  line-height: 1.4;
}

/* Right panel */
.modal-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.modal-panel .modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  max-height: calc(100dvh - 17rem);
}

@media (max-width: 575.98px) {
  .modal-panel .modal-body {
    max-height: calc(100dvh - 12rem);
  }
}

@media (min-width: 768px) {
  .modal-panel .modal-body {
    max-height: calc(100dvh - 15rem);
  }
}

/* Override: icone nei nuovi dz-box sono flow-normali, non assolute. */
#requestModalPlate .modal-dz-box [id$="icon"],
#requestModalCertsAndPlates .modal-dz-box [id$="icon"],
#requestModalCertificates .modal-dz-box [id$="icon"],
#requestModalSubscriptions .modal-dz-box [id$="icon"],
.modal-dz-box [id$="icon"][id*="dropzone"],
.modal-dz-box [id$="icon"].dropzone-icon {
  position: static !important;
  height: 36px !important;
  width: 36px !important;
  opacity: 1 !important;
  right: auto !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
}

/* Redesigned dropzone upload boxes */
.modal-dz-box {
  border: 1.5px dashed rgba(44, 123, 229, 0.3) !important;
  border-radius: 0.6rem !important;
  background: rgba(44, 123, 229, 0.03) !important;
  padding: 1.5rem 1rem !important;
  text-align: center !important;
  cursor: pointer !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 150px;
  transition: border-color 0.2s, background 0.2s;
  width: 100% !important;
  overflow: visible !important;
}

.modal-dz-box:hover {
  border-color: #2c7be5 !important;
  background: rgba(44, 123, 229, 0.06) !important;
}

.modal-dz-box--green {
  border-color: rgba(0, 184, 148, 0.3) !important;
  background: rgba(0, 184, 148, 0.03) !important;
}

.modal-dz-box--green:hover {
  border-color: #00b894 !important;
  background: rgba(0, 184, 148, 0.06) !important;
}

/* Green-tinted cloud icon */
.dz-icon-green {
  filter: hue-rotate(100deg) saturate(1.5);
}

/* Subscription modal: info cards */
.modal-info-card {
  border: 1px solid rgba(10, 25, 70, 0.1);
  border-radius: 0.6rem;
  padding: 1rem 1.1rem;
  background: white;
}

/* No-plates warning box */
.modal-no-plates-box {
  border: 1.5px dashed rgba(220, 53, 69, 0.3);
  border-radius: 0.5rem;
  background: rgba(220, 53, 69, 0.04);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Individual plate radio item */
.modal-plate-item {
  background: white;
  transition: background 0.15s, border-color 0.15s;
  border-color: rgba(10, 25, 70, 0.12) !important;
}

.modal-plate-item:has(input:checked) {
  background: rgba(44, 123, 229, 0.06) !important;
  border-color: #2c7be5 !important;
}

/* City skyline decoration below steps in modal sidebar */
.modal-sidebar-cityline {
  display: block;
  width: calc(100% + 3rem);
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  margin-top: 1.5rem;
  opacity: 0.18;
  filter: invert(1);
  pointer-events: none;
  user-select: none;
  object-fit: cover;
}

/* ============================================================
   RESPONSIVE — Tab scroll, subheader tablet, modal split mobile
   ============================================================ */

/* Tab navigation: scroll orizzontale silenzioso su schermi stretti */
.dash-tabs-header {
  overflow-x: auto;
  scrollbar-width: none;
}
.dash-tabs-header::-webkit-scrollbar {
  display: none;
}

/* Nucleo tab: subheader con sola ricerca — centrala */
#tab-nucleo .dash-tab-subheader {
  display: flex !important;
  justify-content: center;
}
#tab-nucleo .dash-tab-subheader .dash-search-wrap {
  width: 280px;
  max-width: 100%;
  order: unset !important;
}

/* Subheader: estendi il layout flex a tutti gli schermi < 768px */
@media (max-width: 767.98px) {
  .dash-tab-subheader {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }

  .dash-tab-subheader > :last-child {
    justify-self: unset;
    margin-left: auto;
  }

  .dash-search-wrap {
    width: 100% !important;
    max-width: 100% !important;
    order: 2;
  }
}

/* Ripristina grid e larghezza ricerca su desktop */
@media (min-width: 768px) {
  .dash-tab-subheader {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
  }

  .dash-search-wrap {
    order: unset;
    width: 220px !important;
    max-width: 100%;
  }

  /* Mantieni il nucleo centrato su desktop */
  #tab-nucleo .dash-tab-subheader .dash-search-wrap {
    width: 280px !important;
    order: unset !important;
  }
}

/* Fix: modal-dialog-scrollable height */
.modal-dialog.modal-dialog-scrollable {
  height: calc(100dvh - 5.1rem - 1.75rem);
}

/* Header e footer nel panel non si riducono mai */
.modal-panel .modal-header,
.modal-panel .modal-footer {
  flex-shrink: 0;
}

/* Mobile (< 576px): modale compatto */
@media (max-width: 575.98px) {
  .modal-dialog.modal-fullscreen-sm-down {
    margin: 3rem auto 1rem !important;
    width: 92vw !important;
    max-width: 92vw !important;
    height: calc(100dvh - 4rem) !important;
  }
}

/* Modal split: layout a colonna quando la sidebar è nascosta (< md) */
@media (max-width: 767.98px) {
  .modal-content.modal-split {
    flex-direction: column !important;
  }
}

/* requestModalCertificates: padding top primo row */
#requestModalCertificates .modal-body > .row:first-child > .col-12:first-child {
  padding-top: 0.75rem;
}

/* ============================================================
   MODAL FOOTER — bottoni responsive
   ============================================================ */

@media (max-width: 767.98px) {
  #requestModalCertsAndPlates .modal-footer .btn,
  #requestModalPlate .modal-footer .btn,
  #requestModalCertificates .modal-footer .btn,
  #requestModalSubscriptions .modal-footer .btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
}

@media (max-width: 767.98px) {
  #requestModalCertificates .modal-body .row.mb-3 {
    margin-bottom: 0.25rem !important;
  }

  #requestModalCertificates .modal-dz-box {
    min-height: 110px;
  }
}

