/* Area clienti — shell globale HPM */

/* Header → menu: zero gap */
body.customers .navbar.header {
  margin-bottom: 0 !important;
}

/* Logo: meno piccolo + allineato a sinistra come voce Home del submenu */
body.customers .navbar.header > .container > .navbar-header > a.navbar-brand.logo {
  margin-left: 0; /* Bootstrap lo tira a -15px fuori dal container */
  padding-left: 0;
  padding-top: 14px;
  padding-bottom: 14px;
}

body.customers .navbar.header a.navbar-brand.logo img {
  height: 48px; /* default tema: 34px */
  width: auto;
}

/* Header tools: ricerca FAQ + carrello (sempre fuori dal collapse) */
body.customers .navbar.header .hpm-header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  float: right;
  padding: 14px 0;
}

body.customers .navbar.header .customers-nav-item-hpm-kb-search {
  display: flex;
  align-items: center;
  padding: 0;
  flex: 0 1 auto;
}

/* Stesso schema della ricerca FAQ Perfex: input + btn Cerca */
body.customers .navbar.header .hpm-header-kb-search {
  margin: 0;
  display: block;
}

body.customers .navbar.header .hpm-header-kb-group {
  position: relative;
  width: 320px;
  max-width: 48vw;
  display: table;
  border-collapse: separate;
}

body.customers .navbar.header .hpm-header-kb-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  color: #64748b;
  font-size: 13px;
  pointer-events: none;
  line-height: 1;
}

body.customers .navbar.header .hpm-header-kb-group > .form-control {
  height: 36px;
  padding: 6px 12px 6px 34px;
  border: 1px solid #d0d5dd;
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background: #fff;
  font-size: 13px;
  color: #334155;
  box-shadow: none;
}

body.customers .navbar.header .hpm-header-kb-group > .form-control:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: none;
}

body.customers .navbar.header .hpm-header-kb-group > .input-group-btn {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}

body.customers .navbar.header .hpm-header-kb-submit {
  height: 36px;
  padding: 0 14px;
  margin: 0;
  border-radius: 0 6px 6px 0 !important;
  border: 1px solid #1e293b;
  background: #1e293b !important;
  color: #fff !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 34px;
}

body.customers .navbar.header .hpm-header-kb-submit:hover,
body.customers .navbar.header .hpm-header-kb-submit:focus {
  background: #0f172a !important;
  border-color: #0f172a;
  color: #fff !important;
}

body.customers .navbar.header .customers-nav-item-hpm-cart {
  display: flex;
  align-items: center;
  padding: 0;
  flex: 0 0 auto;
}

body.customers .navbar.header .hpm-header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
  color: #9aa3af !important;
  text-decoration: none !important;
  padding: 0 !important;
  line-height: 1;
}

body.customers .navbar.header .hpm-header-cart:hover,
body.customers .navbar.header .hpm-header-cart:focus {
  background: #f7f8fa;
  color: #1a4d80 !important;
}

body.customers .navbar.header .hpm-header-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #26a69a;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

/* FAQ breadcrumb — fuori dal pannello, navigabile anche mobile */
.hpm-kb-breadcrumb {
  margin: 0 0 12px;
  padding: 0;
}

.hpm-kb-breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  font-size: 13px;
  line-height: 1.4;
  color: #64748b;
}

.hpm-kb-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.hpm-kb-breadcrumb-item:not(:last-child)::after {
  content: "/";
  margin: 0 8px;
  color: #94a3b8;
  pointer-events: none;
}

.hpm-kb-breadcrumb-item a {
  color: #1a4d80;
  text-decoration: none;
  font-weight: 500;
  padding: 4px 0;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.hpm-kb-breadcrumb-item a:hover,
.hpm-kb-breadcrumb-item a:focus {
  color: #0f2f4d;
  text-decoration: underline;
}

.hpm-kb-breadcrumb-item.is-current span {
  color: #334155;
  font-weight: 600;
  padding: 4px 0;
  word-break: break-word;
}

@media (max-width: 767px) {
  .hpm-kb-breadcrumb {
    margin-bottom: 10px;
  }

  .hpm-kb-breadcrumb-list {
    font-size: 12px;
  }

  .hpm-kb-breadcrumb-item a {
    min-height: 36px;
  }
}

@media (max-width: 767px) {
  body.customers .navbar.header .hpm-header-tools {
    float: none;
    clear: both;
    width: 100%;
    justify-content: flex-start;
    padding: 0 15px 12px;
  }

  body.customers .navbar.header .customers-nav-item-hpm-kb-search {
    flex: 1 1 auto;
    min-width: 0;
  }

  body.customers .navbar.header .hpm-header-kb-group {
    width: 100%;
    max-width: none;
  }
}

/* Submenu: subito sotto header, barra distinta */
.hpm-submenu {
  background: #1a4d80;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Desktop: barra blu sempre visibile (anche con classe collapse BS3) */
@media (min-width: 768px) {
  .hpm-submenu.collapse {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    visibility: visible !important;
  }
}

/* Mobile: menù blu solo via hamburger (#hpm-submenu-collapse) */
@media (max-width: 767px) {
  .hpm-submenu .hpm-submenu-inner {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
  }

  .hpm-submenu-nav {
    flex-direction: column;
    width: 100%;
    flex-wrap: nowrap;
  }

  .hpm-submenu-account {
    margin-left: 0;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .hpm-submenu-nav > li > a {
    padding: 12px 15px;
  }

  .hpm-submenu .hpm-nav-dropdown-menu,
  .hpm-submenu .hpm-account-menu {
    position: static !important;
    float: none !important;
    width: 100%;
    margin: 0 !important;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.15);
  }

  .hpm-submenu .hpm-nav-dropdown-menu > li > a,
  .hpm-submenu .hpm-account-menu > li > a {
    color: #fff;
    padding-left: 28px;
  }

  .hpm-submenu .hpm-nav-dropdown-menu > li > a:hover,
  .hpm-submenu .hpm-nav-dropdown-menu > li > a:focus,
  .hpm-submenu .hpm-account-menu > li > a:hover,
  .hpm-submenu .hpm-account-menu > li > a:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .hpm-submenu .dropdown-submenu > .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100%;
    margin: 0 !important;
    border: 0;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.2);
  }
}

.hpm-submenu .hpm-submenu-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-between;
}

.hpm-submenu-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  flex: 0 1 auto;
}

.hpm-submenu-account {
  flex: 0 0 auto;
  margin-left: auto;
}

.hpm-submenu-nav > li {
  margin: 0;
  padding: 0;
}

.hpm-submenu-nav > li > a {
  display: block;
  padding: 12px 18px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.hpm-submenu-nav > li > a:hover,
.hpm-submenu-nav > li > a:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

.hpm-submenu-nav > li.is-active > a,
.hpm-submenu-nav > li.is-active > a:hover,
.hpm-submenu-nav > li.is-active > a:focus {
  background: rgba(0, 0, 0, 0.18) !important;
  color: #fff !important;
}

.hpm-submenu-nav > li > a .fa-caret-down,
.hpm-submenu-nav > li.hpm-account > a .fa-caret-down {
  margin-left: 6px;
  font-size: 12px;
}

/* Dropdown voci menù (Assistenza, …) */
.hpm-nav-dropdown {
  position: relative;
}

.hpm-nav-dropdown-menu {
  margin-top: 0 !important;
  border-radius: 4px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  padding: 6px 0;
}

.hpm-nav-dropdown-menu > li > a {
  padding: 8px 16px;
  color: #1a3a5c;
  font-size: 14px;
}

.hpm-nav-dropdown-menu > li > a:hover,
.hpm-nav-dropdown-menu > li > a:focus {
  background: #f5f7fa;
  color: #1a3a5c;
}

.hpm-account-menu {
  margin-top: 0 !important;
  border-radius: 4px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  padding: 6px 0;
}

.hpm-account-menu > li > a {
  padding: 8px 16px;
  color: #1a3a5c;
  font-size: 14px;
}

.hpm-account-menu > li > a:hover,
.hpm-account-menu > li > a:focus {
  background: #f5f7fa;
  color: #1a3a5c;
}

.hpm-account-menu .dropdown-submenu {
  position: relative;
}

.hpm-account-menu .dropdown-submenu > a .fa-caret-right {
  margin-top: 3px;
  color: #888;
}

.hpm-account-menu .dropdown-submenu > .dropdown-menu {
  top: 0;
  left: auto;
  right: 100%;
  margin-top: -1px;
  margin-right: -1px;
  border-radius: 4px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  display: none;
}

.hpm-account-menu .dropdown-submenu:hover > .dropdown-menu,
.hpm-account-menu .dropdown-submenu.open > .dropdown-menu {
  display: block;
}

/* Profilo header duplicato: nascosto (account nel submenu HPM) */
body.customers .navbar.header .customers-nav-item-profile {
  display: none !important;
}

/* Stesso .container per tile + contenuto pagina */
.hpm-page {
  padding-top: 20px;
  padding-bottom: 20px;
}


.hpm-tiles {
  margin: 0 0 24px;
  border: 1px solid #ddd;
  background: #fff;
  overflow: hidden;
}

.hpm-tiles .row {
  margin: 0;
}

.hpm-tiles [class*="col-"] {
  padding: 0;
}

.hpm-tile {
  display: block;
  position: relative;
  padding: 14px 18px 16px;
  background: #f8f8f8;
  border-right: 1px solid #ccc;
  text-decoration: none !important;
  color: inherit;
  min-height: 110px;
  transition: background 0.2s ease;
}

.hpm-tiles .row > [class*="col-"]:last-child .hpm-tile {
  border-right: 0;
}

.hpm-tile:hover,
.hpm-tile:focus {
  background: #f2f2f2;
  color: inherit;
}

.hpm-tile .hpm-tile-stat {
  margin-top: 22px;
  font-size: 36px;
  line-height: 1;
  font-weight: 600;
  color: #333;
}

.hpm-tile .hpm-tile-title {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hpm-tile .hpm-tile-highlight {
  margin-top: 8px;
  height: 2px;
  border-radius: 2px;
}

.hpm-tile .hpm-tile-icon {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 48px;
  line-height: 1;
  color: #d0d0d0;
  transition: font-size 0.2s ease, color 0.2s ease;
}

.hpm-tile:hover .hpm-tile-icon {
  font-size: 58px;
  color: #bdbdbd;
}

.hpm-bg-blue { background-color: #5bc0de; }
.hpm-bg-green { background-color: #5cb85c; }
.hpm-bg-red { background-color: #d9534f; }
.hpm-bg-gold { background-color: #f0ad4e; }

.hpm-home-cards.panel,
.hpm-home-cards .panel {
  margin-bottom: 20px;
  border-color: #ddd;
  box-shadow: none;
}

.panel.panel-default.hpm-home-cards {
  margin-bottom: 20px;
  border-color: #ddd;
  box-shadow: none;
}

.hpm-home-cards > .panel-heading,
.hpm-home-cards .panel-heading {
  background: #fff;
  border-bottom: 0;
  padding: 12px 15px 8px;
}

.hpm-home-cards > .panel-heading .panel-title,
.hpm-home-cards .panel-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  line-height: 28px;
}

.hpm-home-cards .panel-title i {
  margin-right: 6px;
  color: #777;
}

.hpm-home-cards .panel-heading .btn {
  margin-top: -2px;
}

.hpm-home-cards .panel-footer {
  background: #fff;
  border-top: 0;
  padding: 10px 15px 14px;
}

.hpm-service-list {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  max-height: 280px;
  overflow: auto;
}

.hpm-service-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.hpm-service-item:last-child {
  border-bottom: 0;
}

.hpm-service-status .label {
  display: inline-block;
  min-width: 64px;
  text-align: center;
  font-size: 11px;
  padding: 4px 8px;
}

.hpm-service-name {
  flex: 1;
  min-width: 0;
}

.hpm-service-name .hpm-product {
  display: block;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hpm-service-name .hpm-domain {
  display: block;
  color: #888;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hpm-service-actions {
  margin-left: auto;
  white-space: nowrap;
}

.hpm-service-actions .btn {
  margin-left: 4px;
}

.hpm-empty {
  padding: 18px 15px;
  color: #888;
  margin: 0;
  border-top: 1px solid #ddd;
}

/* Ticket summary — stessa larghezza shell, no Tailwind cards */
.hpm-ticket-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hpm-ticket-status-card {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  background: #fafafa;
  text-decoration: none !important;
  color: inherit;
  min-width: 120px;
}

.hpm-ticket-status-card:hover,
.hpm-ticket-status-card:focus {
  background: #f2f2f2;
  color: inherit;
}

.hpm-ticket-status-card.is-current {
  background: #fff;
  border-color: #bbb;
}

.hpm-ticket-status-name {
  font-weight: 600;
  font-size: 13px;
}

.hpm-ticket-status-total {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  line-height: 1;
}

.hpm-detail-table {
  margin-bottom: 15px;
}

.hpm-detail-table th {
  width: 40%;
  background: #fafafa;
  font-weight: 600;
  vertical-align: top;
}

.hpm-detail-table td {
  word-break: break-word;
}

/* Webmail — arancio richiesto */
.btn.hpm-btn-webmail,
a.btn.hpm-btn-webmail,
button.btn.hpm-btn-webmail {
  background-color: #FF7A00 !important;
  border-color: #FF7A00 !important;
  color: #fff !important;
}

.btn.hpm-btn-webmail:hover,
.btn.hpm-btn-webmail:focus,
a.btn.hpm-btn-webmail:hover,
a.btn.hpm-btn-webmail:focus {
  background-color: #e66e00 !important;
  border-color: #e66e00 !important;
  color: #fff !important;
}

.btn.hpm-btn-webmail[disabled],
.btn.hpm-btn-webmail.disabled {
  background-color: #ffb366 !important;
  border-color: #ffb366 !important;
  color: #fff !important;
  opacity: 1;
}

@media (max-width: 991px) {
  .hpm-tiles .row > [class*="col-"]:nth-child(2) .hpm-tile {
    border-right: 0;
  }

  .hpm-tiles .row > [class*="col-"]:nth-child(1) .hpm-tile,
  .hpm-tiles .row > [class*="col-"]:nth-child(2) .hpm-tile {
    border-bottom: 1px solid #ccc;
  }

  .hpm-tiles .row > [class*="col-"]:nth-child(3) .hpm-tile {
    border-right: 1px solid #ccc;
  }
}

@media (max-width: 767px) {
  .hpm-service-item {
    flex-wrap: wrap;
  }

  .hpm-service-actions {
    width: 100%;
    margin-left: 0;
    margin-top: 6px;
  }

  .hpm-service-actions .btn {
    margin-left: 0;
    margin-right: 4px;
  }
}

/* Stato network — pallini servizi */
.hpm-network-ok {
  padding: 24px 16px;
  text-align: center;
  font-size: 15px;
  color: #2e7d32;
  font-weight: 500;
}
.hpm-network-table .hpm-svc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.hpm-network-table .hpm-svc-label {
  font-size: 12px;
  color: #555;
}

.hpm-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #bdbdbd;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.hpm-dot-up {
  background: #2e7d32;
}

.hpm-dot-down {
  background: #c62828;
}

.hpm-dot-unknown {
  background: #bdbdbd;
}

.hpm-network-table tr.is-loading td {
  opacity: 0.65;
}

/* Statistiche utilizzo — compatte sotto tabella sinistra */
.hpm-usage-compact {
  margin-top: 8px;
  padding: 8px 6px 6px;
  border: 1px solid #e5e5e5;
  background: #fafafa;
}

.hpm-usage-compact-title {
  font-size: 12px;
  font-weight: 600;
  color: #444;
  margin: 0 0 4px;
  text-align: center;
}

.hpm-usage-compact-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  gap: 4px;
}

.hpm-usage-col {
  flex: 1 1 50%;
  text-align: center;
  min-width: 0;
}

.hpm-usage-label {
  font-size: 11px;
  font-weight: 600;
  color: #555;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hpm-gauge-wrap {
  display: flex;
  justify-content: center;
}

.hpm-gauge {
  width: 96px;
  height: 56px;
  display: block;
}

.hpm-gauge-pct {
  font-size: 22px;
  font-weight: 600;
  fill: #555;
}

.hpm-gauge-pct.is-high {
  fill: #c62828;
}

.hpm-usage-values {
  margin-top: 0;
  font-size: 11px;
  color: #666;
  line-height: 1.2;
}

.hpm-usage-footer {
  margin-top: 4px;
  text-align: center;
  font-size: 10px;
  color: #00838f;
}

/* Order form (WHMCS standard_cart-inspired) */
#order-standard_cart {
  margin: 0;
  padding: 0 0 40px 0;
  font-size: 14px;
}

#order-standard_cart .cart-sidebar {
  float: left;
  width: 25%;
  position: relative;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
}

#order-standard_cart .cart-body {
  float: right;
  width: 75%;
  position: relative;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
}

#order-standard_cart .row::after {
  display: table;
  clear: both;
  content: "";
}

#order-standard_cart .header-lined {
  margin: 0 0 20px 0;
}

#order-standard_cart .header-lined h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  color: #333;
}

#order-standard_cart .panel-sidebar {
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 3px;
  box-shadow: none;
}

#order-standard_cart .panel-sidebar > .panel-heading {
  padding: 10px 15px;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
}

#order-standard_cart .panel-sidebar .panel-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

#order-standard_cart .panel-sidebar .panel-title i {
  margin-right: 6px;
}

#order-standard_cart .cart-sidebar .list-group {
  margin: 0;
}

#order-standard_cart .cart-sidebar .list-group-item {
  margin: 0;
  padding: 8px 15px;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  color: #333;
}

#order-standard_cart .cart-sidebar .list-group-item:last-child {
  border-bottom: 0;
}

#order-standard_cart .cart-sidebar .list-group-item.active,
#order-standard_cart .cart-sidebar .list-group-item.active:hover,
#order-standard_cart .cart-sidebar .list-group-item.active:focus {
  z-index: 2;
  background: #555;
  border-color: #555;
  color: #fff;
}

#order-standard_cart .cart-sidebar .list-group-item i {
  margin-right: 6px;
  width: 14px;
  text-align: center;
}

#order-standard_cart .products {
  margin: 10px 0;
}

#order-standard_cart .products .row {
  display: flex;
  flex-wrap: wrap;
}

#order-standard_cart .products .row > [class*="col-"] {
  display: flex;
}

#order-standard_cart .products .product {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  padding: 0 0 12px 0;
  margin: 0 0 20px 0;
  background: #fff;
  border-radius: 3px;
  border: 1px solid #ddd;
  overflow: hidden;
}

#order-standard_cart .products .product:before,
#order-standard_cart .products .product:after {
  content: none;
  display: none;
}

#order-standard_cart .products .product header {
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  /* padding + 2 righe titolo → altezza stabile tra card */
  padding: 10px 20px;
  margin: 0;
  min-height: calc(20px + (2 * 1.3 * (1.2em - 2px)));
  background: #f8f8f8;
  border-radius: 3px 3px 0 0;
}

#order-standard_cart .products .product header span {
  margin: 0;
  color: #333;
  font-size: calc(1.2em - 2px);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-height: calc(2 * 1.3em);
}

#order-standard_cart .products .product div.product-desc {
  float: none !important;
  clear: both;
  display: block;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  margin: 0;
  font-size: calc(0.85em + 2px);
  line-height: 1.45;
  color: #666;
  height: 160px;
  min-height: 160px;
  max-height: 160px;
  overflow-x: hidden;
  overflow-y: auto;
}

#order-standard_cart .products .product div.product-desc p {
  margin: 0 0 0.4em;
}

#order-standard_cart .products .product div.product-desc p:last-child {
  margin-bottom: 0;
}

#order-standard_cart .products .product div.product-pricing,
#order-standard_cart .products .product div.product-pricing span.price {
  margin: 0;
  padding: 0;
  background: none !important;
  background-color: transparent !important;
  border: 0;
  box-shadow: none;
}

#order-standard_cart .products .product div.product-pricing span.price {
  display: block;
  font-size: 1.4em;
  font-weight: 600;
  color: #333;
  line-height: 1.2;
}

#order-standard_cart .products .product div.product-pricing span.billing-cycle {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: #888;
  line-height: 1.2;
}

#order-standard_cart .products .product footer {
  float: none !important;
  clear: both;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 8px 14px;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 0.85em;
  text-align: left;
  background: none !important;
}

#order-standard_cart .products .product .btn-order-now {
  flex: 0 0 auto;
  white-space: nowrap;
  background: #5cb85c;
  border-color: #4cae4c;
}

#order-standard_cart .products .product .btn-order-now:hover,
#order-standard_cart .products .product .btn-order-now:focus {
  background: #449d44;
  border-color: #398439;
}

#order-standard_cart .products .product .product-more-info {
  clear: both;
  float: none;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0 14px 4px;
  margin: 0;
}

#order-standard_cart .products .product .product-more-info a {
  font-size: 13px;
}

@media only screen and (max-width: 991px) {
  #order-standard_cart .cart-sidebar,
  #order-standard_cart .cart-body {
    float: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  /*
   * Allinea card e box Categorie:
   * la .row Bootstrap ha margin -15px; con padding colonne a 0 le card uscivano
   * oltre il pannello categorie. Stessa larghezza utile.
   */
  #order-standard_cart .products .row {
    margin-left: 0;
    margin-right: 0;
  }

  #order-standard_cart .products .row > [class*="col-"] {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  #order-standard_cart .products .product {
    width: 100%;
    max-width: 100%;
  }

  #order-standard_cart .products .product div.product-desc,
  #order-standard_cart .products .product footer {
    float: none !important;
    width: 100% !important;
    text-align: left;
  }
}

/* Cart view */
.hpm-cart-items {
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
  margin-bottom: 20px;
}

.hpm-cart-items-header {
  padding: 10px 16px;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
  font-weight: 600;
  color: #555;
}

.hpm-cart-item {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}

.hpm-cart-item:last-child {
  border-bottom: 0;
}

.hpm-cart-col-product {
  float: left;
  width: 70%;
}

.hpm-cart-col-price {
  float: right;
  width: 30%;
  text-align: right;
  font-size: 1.15em;
  padding-top: 2px;
}

.hpm-cart-cycle {
  font-size: 12px;
  margin-top: 2px;
}

.hpm-cart-item-actions {
  margin-top: 6px;
  font-size: 12px;
}

.hpm-cart-summary {
  margin-top: 10px;
}

.hpm-cart-totals {
  float: right;
  font-size: 16px;
  margin-bottom: 16px;
  min-width: 260px;
  text-align: right;
}

.hpm-cart-total-row {
  margin-bottom: 6px;
}

.hpm-cart-total-row span {
  margin-right: 10px;
  color: #666;
}

.hpm-cart-total-tax {
  font-size: 14px;
}

.hpm-cart-total-due {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e5e5e5;
}

.hpm-cart-actions {
  clear: both;
  text-align: right;
}

.hpm-cart-actions .btn {
  margin-left: 6px;
  margin-top: 4px;
}

@media only screen and (max-width: 767px) {
  .hpm-cart-col-product,
  .hpm-cart-col-price {
    float: none;
    width: 100%;
    text-align: left;
  }

  .hpm-cart-col-price {
    margin-top: 8px;
  }

  .hpm-cart-totals,
  .hpm-cart-actions {
    float: none;
    text-align: left;
  }

  .hpm-cart-totals {
    min-width: 0;
  }

  .hpm-cart-actions .btn {
    margin-left: 0;
    margin-right: 6px;
  }
}

.hpm-cart-tax {
  font-size: 12px;
  margin-top: 4px;
}

.hpm-cart-forfettario-note {
  clear: both;
  margin-top: 20px;
  margin-bottom: 0;
  width: 100%;
  color: #6d8a99;
}

.hpm-cart-domain {
  font-size: 13px;
  margin-top: 2px;
}

.hpm-cart-domain-product {
  margin-bottom: 16px;
}

.hpm-cart-domain-hint {
  margin-top: 12px;
  margin-bottom: 20px;
}

#order-standard_cart .domain-selection-options {
  margin: 15px 0;
}

#order-standard_cart .domain-selection-options .option {
  margin-bottom: 2px;
  padding: 10px 16px;
  border-radius: 6px;
  background-color: #f8f8f8;
}

#order-standard_cart .domain-selection-options .option-selected {
  background-color: #efefef;
}

#order-standard_cart .domain-selection-options .option label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

#order-standard_cart .domain-input-group {
  margin: 10px 0 4px;
}

#order-standard_cart .domains-row {
  margin-right: -2px;
  margin-left: -2px;
}

#order-standard_cart .domains-row > [class*="col-"] {
  padding-right: 2px;
  padding-left: 2px;
}

/* Abbinamento piano hosting: card stile ordine, 3 per riga */
#order-standard_cart .hpm-domain-hosting-attach .hpm-hosting-attach-none {
  margin: 10px 0 8px;
}

#order-standard_cart .hpm-domain-hosting-attach .hpm-hosting-attach-none-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 600;
  cursor: pointer;
}

#order-standard_cart .hpm-domain-hosting-attach .hpm-hosting-attach-products {
  margin-top: 0;
}

#order-standard_cart .hpm-domain-hosting-attach .hpm-hosting-attach-product {
  margin-bottom: 20px;
}

#order-standard_cart .hpm-domain-hosting-attach .hpm-hosting-attach-product.option-selected {
  border-color: #5cb85c;
  box-shadow: 0 0 0 1px #5cb85c;
}

#order-standard_cart .hpm-domain-hosting-attach .hpm-hosting-attach-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  flex-shrink: 0;
  white-space: nowrap;
  cursor: pointer;
}

#order-standard_cart .hpm-domain-hosting-attach .hpm-hosting-attach-product.option-selected .hpm-hosting-attach-pick {
  background: #449d44;
  border-color: #398439;
}

#order-standard_cart .hpm-domain-hosting-attach .hpm-hosting-attach-pick input[type="radio"] {
  margin: 0;
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

#order-standard_cart .hpm-domain-service-options .option.hpm-svc-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* Servizi aggiuntivi dominio: tabella 3 colonne, prezzo sotto */
#order-standard_cart .hpm-domain-service-options .hpm-domain-service-table {
  margin-top: 12px;
  margin-bottom: 0;
  background: #fff;
}

#order-standard_cart .hpm-domain-service-options .hpm-domain-service-table > tbody > tr > td.option {
  padding: 14px 10px;
  background-color: #f8f8f8;
}

#order-standard_cart .hpm-domain-service-options .hpm-domain-service-table > tbody > tr > td.option-selected {
  background-color: #efefef;
}

#order-standard_cart .hpm-domain-service-options .hpm-domain-service-table label {
  font-weight: 600;
}

#order-standard_cart .hpm-domain-service-options .hpm-svc-price {
  font-size: 13px;
}

.hpm-domain-price-label {
  margin: 0;
  font-weight: 600;
  color: #333;
  min-height: 34px;
  line-height: 34px;
}

.hpm-domain-price-note {
  margin-bottom: 0;
  font-size: 13px;
}

.hpm-cart-epp {
  font-size: 12px;
  margin-top: 2px;
}

/* Anteprima fattura cliente: sfondo bianco */
body.viewinvoice,
body.viewinvoice #wrapper {
  background: #fff !important;
}

body.viewinvoice footer {
  background: #fff !important;
  border-top-color: #eee;
}

/* Dedicated payment page */
.hpm-pay .hpm-pay-panel {
  margin-top: 10px;
}

.hpm-pay .hpm-pay-amount {
  font-size: 2em;
  font-weight: 700;
  color: #333;
  margin: 8px 0 16px;
}

.hpm-pay .hpm-pay-methods {
  margin: 16px 0 24px;
}

.hpm-pay .hpm-pay-method {
  display: block;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  background: #fff;
}

.hpm-pay .hpm-pay-method:hover {
  border-color: #5cb85c;
}

.hpm-pay .hpm-pay-method input[type="radio"] {
  margin-right: 10px;
  vertical-align: middle;
}

.hpm-pay .hpm-pay-method-name {
  font-weight: 600;
  font-size: 16px;
  vertical-align: middle;
}

.hpm-pay .hpm-pay-method-desc {
  display: block;
  margin-top: 6px;
  margin-left: 24px;
  color: #777;
  font-size: 13px;
}

.hpm-pay .hpm-pay-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/*
 * DataTables area clienti — mobile
 * tailwind.css forza .dataTables_length { float/position:absolute } → sovrapposizione
 * con “Cerca” (anche su device reale, non solo emulatore).
 */
@media (max-width: 991px) {
  body.customers div.dataTables_wrapper {
    position: relative;
  }

  body.customers div.dataTables_wrapper > .row {
    display: block;
    margin-left: 0;
    margin-right: 0;
  }

  body.customers div.dataTables_wrapper > .row > [class*="col-"] {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0;
    padding-right: 0;
    clear: both;
  }

  body.customers div.dataTables_wrapper div.dataTables_length,
  body.customers div.dataTables_wrapper div.dataTables_filter {
    float: none !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
    margin: 0 0 12px 0 !important;
    clear: both;
  }

  body.customers div.dataTables_wrapper div.dataTables_length label,
  body.customers div.dataTables_wrapper div.dataTables_filter label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin: 0;
    white-space: normal !important;
  }

  body.customers div.dataTables_wrapper div.dataTables_length select {
    display: inline-block;
    float: none !important;
    width: auto;
    min-width: 70px;
    max-width: 100%;
  }

  body.customers div.dataTables_wrapper div.dataTables_filter input,
  body.customers .dataTables_filter input {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    box-sizing: border-box;
  }

  body.customers div.dataTables_wrapper div.dataTables_filter .input-group {
    width: 100%;
    display: table;
  }

  body.customers div.dataTables_wrapper div.dataTables_filter .form-control {
    width: 100%;
  }

  body.customers .dataTables_wrapper .table-responsive,
  body.customers .panel-body .dataTables_wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Proforma/estimate HTML: indirizzi non sfalzati su mobile */
@media (max-width: 767px) {
  .transaction-html-info-col-left,
  .transaction-html-info-col-right {
    float: none !important;
    width: 100% !important;
    max-width: 100%;
    display: block;
    text-align: left !important;
  }

  .transaction-html-info-col-right {
    margin-top: 16px;
  }

  .invoice-html-customer-billing-info,
  .invoice-html-company-info,
  .invoice-html-date,
  .invoice-html-duedate,
  .invoice-html-sale-agent,
  .invoice-html-project {
    text-align: left !important;
  }
}
