/*!
 * HyperDC compat styles
 *
 * 1) Global: classes WHMCS's own JavaScript toggles (w-hidden, has-error…), the Bootstrap-shaped
 *    #modalAjax / module modals, tooltip & popover bubbles, usage dials, phone input.
 * 2) Scoped to .hdc-module: Bootstrap 3/4 class names emitted by server modules, gateways and hooks.
 *    Our own templates never use these classes.
 * Generated parts (grid) come from tools/build_compat_css.py.
 */

/* ---------- 1. Global helpers WHMCS JS relies on ---------- */
/* .w-hidden stays non-important: WHMCS JS reveals such elements with jQuery .show() (inline display). */
.w-hidden { display: none; }
.hidden, .d-none { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.disabled, [disabled] { cursor: not-allowed; }
a.disabled, .btn.disabled { opacity: .55; pointer-events: none; }
.has-error .hdc-input, .has-error .form-control, .form-control.is-invalid, .hdc-input.is-invalid { border-color: var(--hdc-danger) !important; }
.field-error-msg, .invalid-feedback { display: none; margin-top: .3rem; color: var(--hdc-danger-text); font-size: var(--hdc-fs-xs); }
.has-error .field-error-msg, .is-invalid ~ .invalid-feedback { display: block; }
.text-danger { color: var(--hdc-danger-text) !important; }
.text-success { color: var(--hdc-success-text) !important; }
.text-warning { color: var(--hdc-warning-text) !important; }
.text-info { color: var(--hdc-info-text) !important; }
.text-muted { color: var(--hdc-text-3) !important; }

/* Full-page overlay used by WHMCS during payment redirects */
#fullpage-overlay { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: var(--hdc-overlay); color: #fff; backdrop-filter: blur(3px); }
#fullpage-overlay.w-hidden { display: none; }
#fullpage-overlay .outer-wrapper { display: grid; place-items: center; gap: 1rem; text-align: center; }
#fullpage-overlay .msg { font-weight: 600; }

/* ---------- Modals (Bootstrap-shaped markup driven by hdc-compat.js) ---------- */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 1055; display: none; overflow-x: hidden; overflow-y: auto; outline: 0; padding: 1rem; }
.modal-dialog { position: relative; width: min(560px, 100%); margin: 6vh auto; pointer-events: none; transform: translateY(12px) scale(.98); opacity: 0; transition: transform var(--hdc-dur-3) var(--hdc-ease), opacity var(--hdc-dur-2) var(--hdc-ease); }
.modal.show .modal-dialog { transform: none; opacity: 1; }
.modal-lg .modal-dialog, .modal-dialog.modal-lg { width: min(860px, 100%); }
.modal-xl .modal-dialog, .modal-dialog.modal-xl { width: min(1140px, 100%); }
.modal-sm .modal-dialog, .modal-dialog.modal-sm { width: min(380px, 100%); }
.modal-dialog-centered { display: flex; align-items: center; min-height: calc(100% - 12vh); }
.modal-content { position: relative; display: flex; flex-direction: column; width: 100%; pointer-events: auto; border: 1px solid var(--hdc-border); border-radius: var(--hdc-r-xl); background: var(--hdc-surface-raised); color: var(--hdc-text); box-shadow: var(--hdc-shadow-lg); overflow: hidden; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--hdc-border); }
.modal-title { margin: 0; color: var(--hdc-heading); font-size: var(--hdc-fs-lg); font-weight: 650; }
.modal-header .close, .modal .close { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: var(--hdc-r-sm); background: transparent; color: var(--hdc-text-3); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.modal-header .close:hover { background: var(--hdc-bg-muted); color: var(--hdc-heading); }
.modal-body { position: relative; flex: 1 1 auto; padding: 1.4rem; }
.modal-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem; padding: 1rem 1.4rem; border-top: 1px solid var(--hdc-border); background: var(--hdc-surface-sunken); }
.modal-footer .loader { margin-inline-end: auto; display: inline-flex; align-items: center; gap: .5rem; color: var(--hdc-text-3); font-size: var(--hdc-fs-sm); }
.modal-backdrop { position: fixed; inset: 0; z-index: 1050; background: var(--hdc-overlay); backdrop-filter: blur(3px); opacity: 0; transition: opacity var(--hdc-dur-2) var(--hdc-ease); }
.modal-backdrop.show { opacity: 1; }

/* ---------- Tooltip & popover bubbles ---------- */
.hdc-tooltip-bubble { position: absolute; z-index: 1070; max-width: 280px; padding: .45rem .65rem; border-radius: var(--hdc-r-sm); background: var(--hdc-gray-900); color: #fff; font-size: var(--hdc-fs-xs); font-weight: 500; line-height: 1.4; box-shadow: var(--hdc-shadow-md); pointer-events: none; animation: hdc-fade var(--hdc-dur-2) var(--hdc-ease); }
.hdc-popover__body { color: var(--hdc-text-2); }
.hdc-popover__body img { max-width: 100%; height: auto; }

/* ---------- Usage dials (knob shim) ---------- */
.hdc-knob { position: relative; display: inline-block; aspect-ratio: 1; max-width: 100%; }
.hdc-knob svg { display: block; width: 100%; height: 100%; }
.hdc-knob circle { fill: none; stroke-linecap: round; }
.hdc-knob__track { stroke: var(--hdc-bg-muted); }
.hdc-knob__value { stroke: var(--hdc-primary); transition: stroke-dasharray .8s var(--hdc-ease); }
.hdc-knob--warning .hdc-knob__value { stroke: var(--hdc-warning); }
.hdc-knob--danger .hdc-knob__value { stroke: var(--hdc-danger); }
.hdc-knob__label { position: absolute; inset: 0; display: grid; place-items: center; color: var(--hdc-heading); font: 700 var(--hdc-fs-sm)/1 var(--hdc-font-mono); }

/* ---------- Phone input (intlTelInput shim) ---------- */
.hdc-phone { display: flex; align-items: stretch; width: 100%; }
.hdc-phone__cc { flex: 0 0 auto; width: auto; min-width: 104px; min-height: 44px; padding: .5rem 2rem .5rem .7rem; border: 1px solid var(--hdc-border-input); border-inline-end: 0; border-radius: var(--hdc-r-sm) 0 0 var(--hdc-r-sm); background: var(--hdc-bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366768b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .55rem center/14px; color: var(--hdc-heading); font: 600 var(--hdc-fs-sm)/1.2 var(--hdc-font-mono); appearance: none; cursor: pointer; }
[dir="rtl"] .hdc-phone__cc { border-radius: 0 var(--hdc-r-sm) var(--hdc-r-sm) 0; border-inline-end: 1px solid var(--hdc-border-input); border-inline-start: 0; background-position: left .55rem center; }
.hdc-phone__cc:focus { outline: none; border-color: var(--hdc-primary); box-shadow: var(--hdc-focus-ring); position: relative; z-index: 1; }
.hdc-phone > input { flex: 1 1 auto; min-width: 0; border-start-start-radius: 0 !important; border-end-start-radius: 0 !important; }

/* ---------- 2. Module output: Bootstrap 3/4 subset, scoped ---------- */
.hdc-module { color: var(--hdc-text); }
.hdc-module h1, .hdc-module h2, .hdc-module h3, .hdc-module h4, .hdc-module h5 { color: var(--hdc-heading); }
.hdc-module .row { display: flex; flex-wrap: wrap; margin-inline: -.75rem; }
.hdc-module .row > * { position: relative; width: 100%; padding-inline: .75rem; }
.hdc-module .no-gutters { margin-inline: 0; }
.hdc-module .no-gutters > * { padding-inline: 0; }
.hdc-module .clearfix::after, .hdc-module .row::after { content: ""; display: table; clear: both; }


/* Grid (generated) */
.hdc-module .col-1{flex:0 0 8.3333%;max-width:8.3333%}
.hdc-module .col-2{flex:0 0 16.6667%;max-width:16.6667%}
.hdc-module .col-3{flex:0 0 25%;max-width:25%}
.hdc-module .col-4{flex:0 0 33.3333%;max-width:33.3333%}
.hdc-module .col-5{flex:0 0 41.6667%;max-width:41.6667%}
.hdc-module .col-6{flex:0 0 50%;max-width:50%}
.hdc-module .col-7{flex:0 0 58.3333%;max-width:58.3333%}
.hdc-module .col-8{flex:0 0 66.6667%;max-width:66.6667%}
.hdc-module .col-9{flex:0 0 75%;max-width:75%}
.hdc-module .col-10{flex:0 0 83.3333%;max-width:83.3333%}
.hdc-module .col-11{flex:0 0 91.6667%;max-width:91.6667%}
.hdc-module .col-12{flex:0 0 100%;max-width:100%}
.hdc-module .col{flex:1 0 0%;max-width:100%}
.hdc-module .col-auto{flex:0 0 auto;width:auto;max-width:100%}
.hdc-module .offset-1{margin-inline-start:8.3333%}
.hdc-module .offset-2{margin-inline-start:16.6667%}
.hdc-module .offset-3{margin-inline-start:25%}
.hdc-module .offset-4{margin-inline-start:33.3333%}
.hdc-module .offset-5{margin-inline-start:41.6667%}
.hdc-module .offset-6{margin-inline-start:50%}
.hdc-module .offset-7{margin-inline-start:58.3333%}
.hdc-module .offset-8{margin-inline-start:66.6667%}
.hdc-module .offset-9{margin-inline-start:75%}
.hdc-module .offset-10{margin-inline-start:83.3333%}
.hdc-module .offset-11{margin-inline-start:91.6667%}
.hdc-module .col-xs-1{flex:0 0 8.3333%;max-width:8.3333%}
.hdc-module .col-xs-2{flex:0 0 16.6667%;max-width:16.6667%}
.hdc-module .col-xs-3{flex:0 0 25%;max-width:25%}
.hdc-module .col-xs-4{flex:0 0 33.3333%;max-width:33.3333%}
.hdc-module .col-xs-5{flex:0 0 41.6667%;max-width:41.6667%}
.hdc-module .col-xs-6{flex:0 0 50%;max-width:50%}
.hdc-module .col-xs-7{flex:0 0 58.3333%;max-width:58.3333%}
.hdc-module .col-xs-8{flex:0 0 66.6667%;max-width:66.6667%}
.hdc-module .col-xs-9{flex:0 0 75%;max-width:75%}
.hdc-module .col-xs-10{flex:0 0 83.3333%;max-width:83.3333%}
.hdc-module .col-xs-11{flex:0 0 91.6667%;max-width:91.6667%}
.hdc-module .col-xs-12{flex:0 0 100%;max-width:100%}
.hdc-module .col-xs{flex:1 0 0%;max-width:100%}
.hdc-module .col-xs-auto{flex:0 0 auto;width:auto;max-width:100%}
.hdc-module .offset-xs-1,.hdc-module .col-xs-offset-1{margin-inline-start:8.3333%}
.hdc-module .offset-xs-2,.hdc-module .col-xs-offset-2{margin-inline-start:16.6667%}
.hdc-module .offset-xs-3,.hdc-module .col-xs-offset-3{margin-inline-start:25%}
.hdc-module .offset-xs-4,.hdc-module .col-xs-offset-4{margin-inline-start:33.3333%}
.hdc-module .offset-xs-5,.hdc-module .col-xs-offset-5{margin-inline-start:41.6667%}
.hdc-module .offset-xs-6,.hdc-module .col-xs-offset-6{margin-inline-start:50%}
.hdc-module .offset-xs-7,.hdc-module .col-xs-offset-7{margin-inline-start:58.3333%}
.hdc-module .offset-xs-8,.hdc-module .col-xs-offset-8{margin-inline-start:66.6667%}
.hdc-module .offset-xs-9,.hdc-module .col-xs-offset-9{margin-inline-start:75%}
.hdc-module .offset-xs-10,.hdc-module .col-xs-offset-10{margin-inline-start:83.3333%}
.hdc-module .offset-xs-11,.hdc-module .col-xs-offset-11{margin-inline-start:91.6667%}
@media (min-width:576px){
  .hdc-module .col-sm-1{flex:0 0 8.3333%;max-width:8.3333%}
  .hdc-module .col-sm-2{flex:0 0 16.6667%;max-width:16.6667%}
  .hdc-module .col-sm-3{flex:0 0 25%;max-width:25%}
  .hdc-module .col-sm-4{flex:0 0 33.3333%;max-width:33.3333%}
  .hdc-module .col-sm-5{flex:0 0 41.6667%;max-width:41.6667%}
  .hdc-module .col-sm-6{flex:0 0 50%;max-width:50%}
  .hdc-module .col-sm-7{flex:0 0 58.3333%;max-width:58.3333%}
  .hdc-module .col-sm-8{flex:0 0 66.6667%;max-width:66.6667%}
  .hdc-module .col-sm-9{flex:0 0 75%;max-width:75%}
  .hdc-module .col-sm-10{flex:0 0 83.3333%;max-width:83.3333%}
  .hdc-module .col-sm-11{flex:0 0 91.6667%;max-width:91.6667%}
  .hdc-module .col-sm-12{flex:0 0 100%;max-width:100%}
  .hdc-module .col-sm{flex:1 0 0%;max-width:100%}
  .hdc-module .col-sm-auto{flex:0 0 auto;width:auto;max-width:100%}
  .hdc-module .offset-sm-1,.hdc-module .col-sm-offset-1{margin-inline-start:8.3333%}
  .hdc-module .offset-sm-2,.hdc-module .col-sm-offset-2{margin-inline-start:16.6667%}
  .hdc-module .offset-sm-3,.hdc-module .col-sm-offset-3{margin-inline-start:25%}
  .hdc-module .offset-sm-4,.hdc-module .col-sm-offset-4{margin-inline-start:33.3333%}
  .hdc-module .offset-sm-5,.hdc-module .col-sm-offset-5{margin-inline-start:41.6667%}
  .hdc-module .offset-sm-6,.hdc-module .col-sm-offset-6{margin-inline-start:50%}
  .hdc-module .offset-sm-7,.hdc-module .col-sm-offset-7{margin-inline-start:58.3333%}
  .hdc-module .offset-sm-8,.hdc-module .col-sm-offset-8{margin-inline-start:66.6667%}
  .hdc-module .offset-sm-9,.hdc-module .col-sm-offset-9{margin-inline-start:75%}
  .hdc-module .offset-sm-10,.hdc-module .col-sm-offset-10{margin-inline-start:83.3333%}
  .hdc-module .offset-sm-11,.hdc-module .col-sm-offset-11{margin-inline-start:91.6667%}
}
@media (min-width:768px){
  .hdc-module .col-md-1{flex:0 0 8.3333%;max-width:8.3333%}
  .hdc-module .col-md-2{flex:0 0 16.6667%;max-width:16.6667%}
  .hdc-module .col-md-3{flex:0 0 25%;max-width:25%}
  .hdc-module .col-md-4{flex:0 0 33.3333%;max-width:33.3333%}
  .hdc-module .col-md-5{flex:0 0 41.6667%;max-width:41.6667%}
  .hdc-module .col-md-6{flex:0 0 50%;max-width:50%}
  .hdc-module .col-md-7{flex:0 0 58.3333%;max-width:58.3333%}
  .hdc-module .col-md-8{flex:0 0 66.6667%;max-width:66.6667%}
  .hdc-module .col-md-9{flex:0 0 75%;max-width:75%}
  .hdc-module .col-md-10{flex:0 0 83.3333%;max-width:83.3333%}
  .hdc-module .col-md-11{flex:0 0 91.6667%;max-width:91.6667%}
  .hdc-module .col-md-12{flex:0 0 100%;max-width:100%}
  .hdc-module .col-md{flex:1 0 0%;max-width:100%}
  .hdc-module .col-md-auto{flex:0 0 auto;width:auto;max-width:100%}
  .hdc-module .offset-md-1,.hdc-module .col-md-offset-1{margin-inline-start:8.3333%}
  .hdc-module .offset-md-2,.hdc-module .col-md-offset-2{margin-inline-start:16.6667%}
  .hdc-module .offset-md-3,.hdc-module .col-md-offset-3{margin-inline-start:25%}
  .hdc-module .offset-md-4,.hdc-module .col-md-offset-4{margin-inline-start:33.3333%}
  .hdc-module .offset-md-5,.hdc-module .col-md-offset-5{margin-inline-start:41.6667%}
  .hdc-module .offset-md-6,.hdc-module .col-md-offset-6{margin-inline-start:50%}
  .hdc-module .offset-md-7,.hdc-module .col-md-offset-7{margin-inline-start:58.3333%}
  .hdc-module .offset-md-8,.hdc-module .col-md-offset-8{margin-inline-start:66.6667%}
  .hdc-module .offset-md-9,.hdc-module .col-md-offset-9{margin-inline-start:75%}
  .hdc-module .offset-md-10,.hdc-module .col-md-offset-10{margin-inline-start:83.3333%}
  .hdc-module .offset-md-11,.hdc-module .col-md-offset-11{margin-inline-start:91.6667%}
}
@media (min-width:992px){
  .hdc-module .col-lg-1{flex:0 0 8.3333%;max-width:8.3333%}
  .hdc-module .col-lg-2{flex:0 0 16.6667%;max-width:16.6667%}
  .hdc-module .col-lg-3{flex:0 0 25%;max-width:25%}
  .hdc-module .col-lg-4{flex:0 0 33.3333%;max-width:33.3333%}
  .hdc-module .col-lg-5{flex:0 0 41.6667%;max-width:41.6667%}
  .hdc-module .col-lg-6{flex:0 0 50%;max-width:50%}
  .hdc-module .col-lg-7{flex:0 0 58.3333%;max-width:58.3333%}
  .hdc-module .col-lg-8{flex:0 0 66.6667%;max-width:66.6667%}
  .hdc-module .col-lg-9{flex:0 0 75%;max-width:75%}
  .hdc-module .col-lg-10{flex:0 0 83.3333%;max-width:83.3333%}
  .hdc-module .col-lg-11{flex:0 0 91.6667%;max-width:91.6667%}
  .hdc-module .col-lg-12{flex:0 0 100%;max-width:100%}
  .hdc-module .col-lg{flex:1 0 0%;max-width:100%}
  .hdc-module .col-lg-auto{flex:0 0 auto;width:auto;max-width:100%}
  .hdc-module .offset-lg-1,.hdc-module .col-lg-offset-1{margin-inline-start:8.3333%}
  .hdc-module .offset-lg-2,.hdc-module .col-lg-offset-2{margin-inline-start:16.6667%}
  .hdc-module .offset-lg-3,.hdc-module .col-lg-offset-3{margin-inline-start:25%}
  .hdc-module .offset-lg-4,.hdc-module .col-lg-offset-4{margin-inline-start:33.3333%}
  .hdc-module .offset-lg-5,.hdc-module .col-lg-offset-5{margin-inline-start:41.6667%}
  .hdc-module .offset-lg-6,.hdc-module .col-lg-offset-6{margin-inline-start:50%}
  .hdc-module .offset-lg-7,.hdc-module .col-lg-offset-7{margin-inline-start:58.3333%}
  .hdc-module .offset-lg-8,.hdc-module .col-lg-offset-8{margin-inline-start:66.6667%}
  .hdc-module .offset-lg-9,.hdc-module .col-lg-offset-9{margin-inline-start:75%}
  .hdc-module .offset-lg-10,.hdc-module .col-lg-offset-10{margin-inline-start:83.3333%}
  .hdc-module .offset-lg-11,.hdc-module .col-lg-offset-11{margin-inline-start:91.6667%}
}
@media (min-width:1200px){
  .hdc-module .col-xl-1{flex:0 0 8.3333%;max-width:8.3333%}
  .hdc-module .col-xl-2{flex:0 0 16.6667%;max-width:16.6667%}
  .hdc-module .col-xl-3{flex:0 0 25%;max-width:25%}
  .hdc-module .col-xl-4{flex:0 0 33.3333%;max-width:33.3333%}
  .hdc-module .col-xl-5{flex:0 0 41.6667%;max-width:41.6667%}
  .hdc-module .col-xl-6{flex:0 0 50%;max-width:50%}
  .hdc-module .col-xl-7{flex:0 0 58.3333%;max-width:58.3333%}
  .hdc-module .col-xl-8{flex:0 0 66.6667%;max-width:66.6667%}
  .hdc-module .col-xl-9{flex:0 0 75%;max-width:75%}
  .hdc-module .col-xl-10{flex:0 0 83.3333%;max-width:83.3333%}
  .hdc-module .col-xl-11{flex:0 0 91.6667%;max-width:91.6667%}
  .hdc-module .col-xl-12{flex:0 0 100%;max-width:100%}
  .hdc-module .col-xl{flex:1 0 0%;max-width:100%}
  .hdc-module .col-xl-auto{flex:0 0 auto;width:auto;max-width:100%}
  .hdc-module .offset-xl-1,.hdc-module .col-xl-offset-1{margin-inline-start:8.3333%}
  .hdc-module .offset-xl-2,.hdc-module .col-xl-offset-2{margin-inline-start:16.6667%}
  .hdc-module .offset-xl-3,.hdc-module .col-xl-offset-3{margin-inline-start:25%}
  .hdc-module .offset-xl-4,.hdc-module .col-xl-offset-4{margin-inline-start:33.3333%}
  .hdc-module .offset-xl-5,.hdc-module .col-xl-offset-5{margin-inline-start:41.6667%}
  .hdc-module .offset-xl-6,.hdc-module .col-xl-offset-6{margin-inline-start:50%}
  .hdc-module .offset-xl-7,.hdc-module .col-xl-offset-7{margin-inline-start:58.3333%}
  .hdc-module .offset-xl-8,.hdc-module .col-xl-offset-8{margin-inline-start:66.6667%}
  .hdc-module .offset-xl-9,.hdc-module .col-xl-offset-9{margin-inline-start:75%}
  .hdc-module .offset-xl-10,.hdc-module .col-xl-offset-10{margin-inline-start:83.3333%}
  .hdc-module .offset-xl-11,.hdc-module .col-xl-offset-11{margin-inline-start:91.6667%}
}

/* Components */
.hdc-module .card, .hdc-module .panel, .hdc-module .well {
  margin-bottom: 1.25rem;
  border: 1px solid var(--hdc-border);
  border-radius: var(--hdc-r-lg);
  background: var(--hdc-surface);
  box-shadow: var(--hdc-shadow-xs);
  overflow: hidden;
}
.hdc-module .well { padding: 1.1rem 1.25rem; background: var(--hdc-surface-sunken); box-shadow: none; }
.hdc-module .card-header, .hdc-module .panel-heading { padding: .9rem 1.25rem; border-bottom: 1px solid var(--hdc-border); background: var(--hdc-surface-sunken); }
.hdc-module .card-title, .hdc-module .panel-title { margin: 0; color: var(--hdc-heading); font-size: var(--hdc-fs-base); font-weight: 650; }
.hdc-module .card-body, .hdc-module .panel-body { padding: 1.25rem; }
.hdc-module .card-footer, .hdc-module .panel-footer { padding: .85rem 1.25rem; border-top: 1px solid var(--hdc-border); background: var(--hdc-surface-sunken); }
/* Server-module templates print both .panel (BS3) and .card (BS4) wrappers; avoid a double frame. */
.hdc-module .panel .card, .hdc-module .card .panel { border: 0; box-shadow: none; margin: 0; border-radius: 0; }

.hdc-module .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 40px; padding: 0 1rem;
  border: 1px solid var(--hdc-border-strong); border-radius: var(--hdc-r-sm);
  background: var(--hdc-surface); color: var(--hdc-heading) !important;
  font: 600 var(--hdc-fs-sm)/1.2 var(--hdc-font-sans);
  text-decoration: none !important; cursor: pointer; white-space: nowrap;
  transition: background-color var(--hdc-dur-1), border-color var(--hdc-dur-1), color var(--hdc-dur-1);
}
.hdc-module .btn:hover { background: var(--hdc-surface-hover); }
.hdc-module .btn:focus-visible { outline: none; box-shadow: var(--hdc-focus-ring); }
.hdc-module .btn-primary, .hdc-module .btn-info { border-color: var(--hdc-primary-fill); background: var(--hdc-primary-fill); color: var(--hdc-on-primary) !important; }
.hdc-module .btn-primary:hover, .hdc-module .btn-info:hover { border-color: var(--hdc-primary-fill-hover); background: var(--hdc-primary-fill-hover); }
.hdc-module .btn-success { border-color: var(--hdc-green-600); background: var(--hdc-green-600); color: #fff !important; }
.hdc-module .btn-danger { border-color: var(--hdc-red-600); background: var(--hdc-red-600); color: #fff !important; }
.hdc-module .btn-warning { border-color: var(--hdc-amber-500); background: var(--hdc-amber-500); color: #1d2533 !important; }
.hdc-module .btn-link { border-color: transparent; background: transparent; color: var(--hdc-link) !important; }
.hdc-module .btn-sm, .hdc-module .btn-xs { min-height: 32px; padding: 0 .7rem; font-size: var(--hdc-fs-xs); }
.hdc-module .btn-lg { min-height: 50px; padding: 0 1.4rem; font-size: var(--hdc-fs-base); }
.hdc-module .btn-block { display: flex; width: 100%; }
.hdc-module .btn-group { display: inline-flex; flex-wrap: wrap; gap: .4rem; }

.hdc-module .alert { display: block; margin-bottom: 1rem; padding: .85rem 1rem; border: 1px solid color-mix(in srgb, var(--hdc-info) 22%, transparent); border-radius: var(--hdc-r-md); background: var(--hdc-info-soft); color: var(--hdc-info-text); font-size: var(--hdc-fs-sm); }
.hdc-module .alert-success { border-color: color-mix(in srgb, var(--hdc-success) 24%, transparent); background: var(--hdc-success-soft); color: var(--hdc-success-text); }
.hdc-module .alert-warning { border-color: color-mix(in srgb, var(--hdc-warning) 30%, transparent); background: var(--hdc-warning-soft); color: var(--hdc-warning-text); }
.hdc-module .alert-danger, .hdc-module .alert-error { border-color: color-mix(in srgb, var(--hdc-danger) 24%, transparent); background: var(--hdc-danger-soft); color: var(--hdc-danger-text); }

.hdc-module .table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; font-size: var(--hdc-fs-sm); }
.hdc-module .table th, .hdc-module .table td { padding: .7rem .85rem; border-bottom: 1px solid var(--hdc-border); text-align: start; vertical-align: middle; }
.hdc-module .table thead th { color: var(--hdc-text-3); font-size: var(--hdc-fs-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: var(--hdc-surface-sunken); }
.hdc-module .table-striped tbody tr:nth-child(odd) { background: var(--hdc-surface-sunken); }
.hdc-module .table-responsive { width: 100%; overflow-x: auto; }

.hdc-module .form-group { margin-bottom: 1rem; }
.hdc-module label, .hdc-module .control-label { display: inline-block; margin-bottom: .35rem; color: var(--hdc-heading); font-size: var(--hdc-fs-sm); font-weight: 600; }
.hdc-module .form-control, .hdc-module select, .hdc-module textarea, .hdc-module input[type="text"], .hdc-module input[type="email"], .hdc-module input[type="password"], .hdc-module input[type="number"], .hdc-module input[type="tel"], .hdc-module input[type="url"] {
  width: 100%; min-height: 42px; padding: .5rem .8rem;
  border: 1px solid var(--hdc-border-input); border-radius: var(--hdc-r-sm);
  background: var(--hdc-surface); color: var(--hdc-heading);
  font: 400 var(--hdc-fs-sm)/1.4 var(--hdc-font-sans);
}
.hdc-module .form-control:focus, .hdc-module select:focus, .hdc-module textarea:focus, .hdc-module input:focus { outline: none; border-color: var(--hdc-primary); box-shadow: var(--hdc-focus-ring); }
.hdc-module .form-control-sm, .hdc-module .input-sm { min-height: 34px; padding: .3rem .6rem; font-size: var(--hdc-fs-xs); }
.hdc-module .form-inline { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.hdc-module .input-group { display: flex; align-items: stretch; }
.hdc-module .input-group > .form-control { flex: 1 1 auto; min-width: 0; }
.hdc-module .input-group-addon, .hdc-module .input-group-text, .hdc-module .input-group-prepend, .hdc-module .input-group-append { display: inline-flex; align-items: center; padding: 0 .75rem; border: 1px solid var(--hdc-border-input); background: var(--hdc-bg-soft); color: var(--hdc-text-2); font-size: var(--hdc-fs-sm); }
.hdc-module .help-block, .hdc-module .form-text { display: block; margin-top: .3rem; color: var(--hdc-text-3); font-size: var(--hdc-fs-xs); }
.hdc-module .checkbox label, .hdc-module .radio label, .hdc-module .form-check-label { font-weight: 500; }

.hdc-module .badge, .hdc-module .label { display: inline-flex; align-items: center; height: 22px; padding: 0 .55rem; border-radius: var(--hdc-r-pill); background: var(--hdc-bg-muted); color: var(--hdc-text-2); font-size: var(--hdc-fs-2xs); font-weight: 700; }
.hdc-module .badge-success, .hdc-module .label-success { background: var(--hdc-success-soft); color: var(--hdc-success-text); }
.hdc-module .badge-danger, .hdc-module .label-danger { background: var(--hdc-danger-soft); color: var(--hdc-danger-text); }
.hdc-module .badge-warning, .hdc-module .label-warning { background: var(--hdc-warning-soft); color: var(--hdc-warning-text); }
.hdc-module .badge-info, .hdc-module .badge-primary, .hdc-module .label-info, .hdc-module .label-primary { background: var(--hdc-primary-soft); color: var(--hdc-primary-text); }

.hdc-module .list-group { display: flex; flex-direction: column; margin: 0; padding: 0; border: 1px solid var(--hdc-border); border-radius: var(--hdc-r-md); overflow: hidden; }
.hdc-module .list-group-item { display: block; padding: .7rem 1rem; border-bottom: 1px solid var(--hdc-border); color: var(--hdc-text) !important; background: var(--hdc-surface); }
.hdc-module .list-group-item:last-child { border-bottom: 0; }
.hdc-module a.list-group-item:hover { background: var(--hdc-surface-hover); }
.hdc-module .list-group-item.active { background: var(--hdc-primary-soft); color: var(--hdc-primary-text) !important; font-weight: 600; }

.hdc-module .nav, .hdc-module .nav-tabs, .hdc-module .nav-pills { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.hdc-module .nav-tabs { border-bottom: 1px solid var(--hdc-border); }
.hdc-module .nav-tabs .nav-link, .hdc-module .nav-tabs > li > a, .hdc-module .nav-pills .nav-link { display: block; padding: .6rem .9rem; border-radius: var(--hdc-r-sm) var(--hdc-r-sm) 0 0; color: var(--hdc-text-2) !important; font-size: var(--hdc-fs-sm); font-weight: 600; }
.hdc-module .nav-tabs .active, .hdc-module .nav-tabs .nav-link.active, .hdc-module .nav-tabs > li.active > a { color: var(--hdc-primary-text) !important; box-shadow: inset 0 -2px 0 var(--hdc-primary); }
.hdc-module .nav-pills .nav-link.active { border-radius: var(--hdc-r-pill); background: var(--hdc-primary); color: #fff !important; }
.hdc-module .tab-content > .tab-pane { display: none; }
.hdc-module .tab-content > .tab-pane.active { display: block; }

.hdc-module .progress { height: 8px; overflow: hidden; border-radius: var(--hdc-r-pill); background: var(--hdc-bg-muted); }
.hdc-module .progress-bar { height: 100%; background: var(--hdc-primary); }
.hdc-module .progress-bar-success, .hdc-module .bg-success { background: var(--hdc-success) !important; }
.hdc-module .progress-bar-warning, .hdc-module .bg-warning { background: var(--hdc-warning) !important; }
.hdc-module .progress-bar-danger, .hdc-module .bg-danger { background: var(--hdc-danger) !important; }

.hdc-module .dropdown, .hdc-module .btn-group { position: relative; }
.hdc-module .dropdown-menu { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 60; display: none; min-width: 200px; margin: 0; padding: .35rem; list-style: none; border: 1px solid var(--hdc-border); border-radius: var(--hdc-r-md); background: var(--hdc-surface-raised); box-shadow: var(--hdc-shadow-lg); }
.hdc-module .dropdown-menu.show { display: block; }
.hdc-module .dropdown-menu-right { inset-inline-start: auto; inset-inline-end: 0; }
.hdc-module .dropdown-item, .hdc-module .dropdown-menu > li > a { display: block; width: 100%; padding: .5rem .7rem; border: 0; border-radius: var(--hdc-r-sm); background: none; color: var(--hdc-text) !important; font-size: var(--hdc-fs-sm); text-align: start; }
.hdc-module .dropdown-item:hover, .hdc-module .dropdown-menu > li > a:hover { background: var(--hdc-bg-soft); }
.hdc-module .dropdown-divider, .hdc-module .divider { height: 1px; margin: .35rem 0; background: var(--hdc-border); }

.hdc-module .collapse:not(.show):not(.in) { display: none; }
.hdc-module .fade:not(.show):not(.in) { opacity: 0; }
.hdc-module .media { display: flex; align-items: flex-start; gap: 1rem; }
.hdc-module .img-responsive, .hdc-module .img-fluid { max-width: 100%; height: auto; }
.hdc-module .usage-dial-container, .hdc-module .usage-stats { text-align: center; }

/* Bootstrap utility subset frequently used by module templates */
.hdc-module .text-center { text-align: center !important; }
.hdc-module .text-right, .hdc-module .text-end { text-align: end !important; }
.hdc-module .text-left, .hdc-module .text-start { text-align: start !important; }
.hdc-module .float-right, .hdc-module .pull-right { float: inline-end; }
.hdc-module .float-left, .hdc-module .pull-left { float: inline-start; }
.hdc-module .d-block { display: block !important; }
.hdc-module .d-inline-block { display: inline-block !important; }
.hdc-module .d-flex { display: flex !important; }
.hdc-module .align-items-center { align-items: center !important; }
.hdc-module .justify-content-between { justify-content: space-between !important; }
.hdc-module .justify-content-center { justify-content: center !important; }
.hdc-module .w-100 { width: 100% !important; }
.hdc-module .font-weight-bold, .hdc-module strong { font-weight: 650; }
.hdc-module .small, .hdc-module small { font-size: var(--hdc-fs-sm); }
.hdc-module .m-0 { margin: 0 !important; } .hdc-module .p-0 { padding: 0 !important; }
.hdc-module .mt-1 { margin-top: .25rem !important; } .hdc-module .mt-2 { margin-top: .5rem !important; } .hdc-module .mt-3 { margin-top: 1rem !important; } .hdc-module .mt-4 { margin-top: 1.5rem !important; }
.hdc-module .mb-1 { margin-bottom: .25rem !important; } .hdc-module .mb-2 { margin-bottom: .5rem !important; } .hdc-module .mb-3 { margin-bottom: 1rem !important; } .hdc-module .mb-4 { margin-bottom: 1.5rem !important; }
.hdc-module .mb-0 { margin-bottom: 0 !important; } .hdc-module .mt-0 { margin-top: 0 !important; }
.hdc-module .p-2 { padding: .5rem !important; } .hdc-module .p-3 { padding: 1rem !important; }
.hdc-module .bg-light { background: var(--hdc-bg-soft) !important; }
.hdc-module .border { border: 1px solid var(--hdc-border) !important; }
.hdc-module .rounded { border-radius: var(--hdc-r-md) !important; }
@media (max-width: 767.98px) { .hdc-module .hidden-xs, .hdc-module .d-none.d-md-block { display: none !important; } }
@media (min-width: 768px) { .hdc-module .visible-xs, .hdc-module .d-md-none { display: none !important; } .hdc-module .d-md-block { display: block !important; } }
