
/* SHIELDHOSTING SERVICE V22 */

body.sh-app.sh-v22-detail {
  --svc-bg: #0b1425;
  --svc-card: #142239;
  --svc-border: #2a3e5b;
  --svc-text: #f1f5ff;
  --svc-muted: #a9bedb;
  --svc-blue: #3b82f6;
}

/* Spazio di lavoro */
body.sh-v22-detail #main-body > .container {
  width: calc(100% - 48px) !important;
  max-width: 1480px !important;
}

body.sh-v22-detail #main-body .primary-content.sh-v22-expanded {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

body.sh-v22-detail #main-body .sh-v22-hidden {
  display: none !important;
}

/* Intestazione pagina */
.sh-v22-page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.sh-v22-page-head a.sh-v22-back {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: #9cb9e3 !important;
  font-size: 12px;
  text-decoration: none !important;
}

.sh-v22-page-head a.sh-v22-back:hover {
  color: #fff !important;
}

/* Azioni servizio */
.sh-v22-actions {
  position: relative;
  color: #dce8f8;
  font-size: 12px;
}

.sh-v22-actions > summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 16px;
  border: 1px solid #365276;
  border-radius: 10px;
  background: #1b304f;
  color: #edf5ff;
  font-weight: 650;
}

.sh-v22-actions > summary::-webkit-details-marker {
  display: none;
}

.sh-v22-actions > summary:hover {
  background: #24436d;
}

.sh-v22-action-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 100;
  width: min(310px, 85vw);
  padding: 10px;
  background: #16263f;
  border: 1px solid #355071;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}

/* Compatibilità menu WHMCS spostati */
.sh-v22-action-list .card,
.sh-v22-action-list .panel,
.sh-v22-action-list .list-group-item {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.sh-v22-action-list .card-header,
.sh-v22-action-list .panel-heading {
  background: transparent !important;
  color: #9db5d6 !important;
  border: 0 !important;
  font-size: 11px;
}

.sh-v22-action-list a {
  display: block;
  padding: 9px 11px;
  color: #dce9fa !important;
  border-radius: 7px;
  text-decoration: none !important;
}

.sh-v22-action-list a:hover {
  background: #24436d;
}

/* Scheda principale */
body.sh-v22-detail #tabOverview > .card {
  background: var(--svc-card) !important;
  border: 1px solid var(--svc-border) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  overflow: hidden;
}

body.sh-v22-detail #tabOverview > .card > .card-body {
  background: var(--svc-card) !important;
  padding: 28px !important;
}

body.sh-v22-detail .product-details > .row {
  display: grid !important;
  grid-template-columns:
    minmax(260px, 1fr)
    minmax(260px, 1fr);
  align-items: start;
  gap: 30px;
  margin: 0 !important;
}

body.sh-v22-detail .product-details > .row > [class*="col-md-6"] {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding: 0 !important;
}

/* Identità prodotto */
body.sh-v22-detail .product-details .product-status {
  background: #101e34 !important;
  border: 1px solid #304666 !important;
  border-radius: 13px !important;
  padding: 24px !important;
  margin-bottom: 0 !important;
  overflow: hidden;
}

body.sh-v22-detail .product-details .product-icon {
  color: var(--svc-text) !important;
  background: transparent !important;
}

body.sh-v22-detail .product-details .product-icon .fa-stack {
  font-size: 22px !important;
  margin-bottom: 12px !important;
  color: #3b82f6 !important;
}

body.sh-v22-detail .product-details .product-icon .fa-circle {
  color: #244a80 !important;
}

body.sh-v22-detail .product-details .product-icon .fa-inverse {
  color: #fff !important;
}

body.sh-v22-detail .product-details .product-icon h3 {
  font-size: clamp(21px, 2vw, 27px) !important;
  font-weight: 750 !important;
  letter-spacing: -.5px;
  line-height: 1.2;
  margin: 10px 0 6px !important;
  color: #fff !important;
}

body.sh-v22-detail .product-details .product-icon h4 {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #9cb6d9 !important;
  margin: 0 0 18px !important;
}

body.sh-v22-detail .product-details .product-status-text {
  background: #263b59 !important;
  color: #e1eafa !important;
  border: 1px solid #385275 !important;
  border-radius: 8px !important;
  padding: 9px 13px !important;
  text-align: center;
  font-size: 12px !important;
  font-weight: 700 !important;
}

/* Dati di fatturazione */
body.sh-v22-detail .product-details > .row > .text-center {
  text-align: left !important;
  color: #d6e3f4 !important;
  line-height: 1.6 !important;
}

body.sh-v22-detail .product-details > .row > .text-center h4 {
  color: #91a9ca !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .065em;
  margin: 16px 0 3px !important;
}

body.sh-v22-detail .product-details > .row > .text-center h4:first-child {
  margin-top: 0 !important;
}

/* Azioni native di rinnovo e upgrade */
body.sh-v22-detail .product-actions-wrapper {
  margin-top: 16px !important;
  gap: 8px;
}

body.sh-v22-detail .product-actions-wrapper .btn {
  border-radius: 9px !important;
  font-weight: 650 !important;
}

/* Schede informazioni tecniche */
body.sh-v22-detail .product-details-tab-container {
  background: #142239 !important;
  color: #dce9f9 !important;
  border: 1px solid var(--svc-border) !important;
  border-radius: 0 12px 12px 12px !important;
  padding: 25px !important;
  min-height: 100px;
}

body.sh-v22-detail .product-details-tab-container .tab-pane {
  background: transparent !important;
  color: #dce9f9 !important;
}

body.sh-v22-detail .product-details-tab-container .row {
  margin-bottom: 0 !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid #293c57;
}

body.sh-v22-detail .product-details-tab-container .row:last-child {
  border-bottom: 0;
}

body.sh-v22-detail .product-details-tab-container .text-right {
  color: #a9bdd8 !important;
  text-align: left !important;
}

body.sh-v22-detail .product-details-tab-container .text-left,
body.sh-v22-detail .product-details-tab-container strong,
body.sh-v22-detail .product-details-tab-container p {
  color: #e6f0fc !important;
}

body.sh-v22-detail .product-details-tab-container .nav-link {
  color: #a9c8ef !important;
}

/* Schede secondarie e moduli */
body.sh-v22-detail #main-body .module-client-area,
body.sh-v22-detail #main-body .module-client-area .card {
  background: #142239 !important;
  color: #e2edfb !important;
  border-color: #2a415f !important;
}

body.sh-v22-detail #main-body .nav-tabs .nav-link.active {
  background: #1c3456 !important;
  border-color: #365479 !important;
  color: #fff !important;
}

body.sh-v22-detail #main-body .form-control {
  background: #101e34 !important;
  color: #f0f6ff !important;
  border-color: #385071 !important;
}

/* Evita grandi spazi vuoti */
body.sh-v22-detail #main-body .product-details,
body.sh-v22-detail #main-body .product-details-tab-container {
  box-shadow: none !important;
}

/* Tablet e smartphone */
@media(max-width: 900px) {
  body.sh-v22-detail .product-details > .row {
    grid-template-columns: minmax(0,1fr) !important;
    gap: 20px !important;
  }

  body.sh-v22-detail #main-body > .container {
    width: calc(100% - 24px) !important;
  }
}

@media(max-width: 600px) {
  body.sh-v22-detail #tabOverview > .card > .card-body {
    padding: 18px !important;
  }

  body.sh-v22-detail .product-details-tab-container {
    padding: 16px !important;
  }

  .sh-v22-action-list {
    right: auto;
    left: 0;
  }
}
