.es-hosting-relations {
    --relations-surface: #f6fbfe;
    --relations-line: #d5e7ee;
    --relations-text: #123549;
    --relations-accent: #076d83;
    --relations-tag: #def3f8;
    clear: both;
    margin: 0 0 24px;
    padding: 18px 20px;
    border: 1px solid var(--relations-line);
    border-left: 4px solid var(--relations-accent);
    border-radius: 12px;
    background: var(--relations-surface);
    color: var(--relations-text);
    text-align: left;
}

html[data-es-theme="dark"] .es-hosting-relations {
    --relations-surface: #102e3c;
    --relations-line: #305464;
    --relations-text: #e9f7fb;
    --relations-accent: #8be6ef;
    --relations-tag: #173e4e;
}

.es-hosting-relations h3 {
    margin: 0 0 10px;
    color: var(--relations-text);
    text-align: left;
    text-transform: none;
    font-size: 1.2em;
}

.es-hosting-relations p { margin: 0; }
.es-hosting-relations-list { padding: 0; margin: 0; list-style: none; }

.es-hosting-relations-list > li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 10px 0;
    border-top: 1px solid var(--relations-line);
    overflow-wrap: anywhere;
}

.es-hosting-relations-list > li:last-child { padding-bottom: 0; }
.es-hosting-relations-list small { display: block; margin-top: 2px; }
.es-hosting-relations a.es-hosting-relations-name { color: var(--relations-accent); text-decoration: underline; }
.es-hosting-relations-name { font-weight: 700; }
.es-hosting-relations-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.es-hosting-relations-tag {
    padding: 3px 8px;
    border-radius: 8px;
    background: var(--relations-tag);
    color: var(--relations-text);
    font-size: .82em;
}

#es-hosting-domains-title .es-hosting-relations-tag {
    display: inline-block;
    margin-inline-start: .4em;
    font-size: .72em;
}

.es-hosting-domains-disclosure {
    margin-top: 12px;
    border: 1px solid var(--relations-line);
    border-radius: 8px;
}

.es-hosting-domains-disclosure summary {
    padding: 9px 12px;
    color: var(--relations-accent);
    cursor: pointer;
    font-weight: 700;
}

.es-hosting-domains-disclosure:not([open]) .es-hosting-domains-close,
.es-hosting-domains-disclosure[open] .es-hosting-domains-open,
.es-hosting-domains-disclosure [hidden] {
    display: none !important;
}

.es-hosting-domains-disclosure[open] { padding: 0 12px 12px; }
.es-hosting-domains-disclosure[open] summary { padding-inline: 0; }

.es-hosting-domain-filter {
    width: min(100%, 330px);
    margin: 0 0 10px;
    padding: 7px 10px;
    border: 1px solid var(--relations-line);
    border-radius: 7px;
    background: var(--relations-surface);
    color: var(--relations-text);
}

.es-hosting-domain-filter::placeholder { color: var(--relations-text); opacity: .75; }
.es-hosting-domains-disclosure summary:focus-visible,
.es-hosting-domain-filter:focus-visible { outline: 2px solid var(--relations-accent); outline-offset: 2px; }

.es-hosting-domains-scroll {
    max-height: min(48vh, 400px);
    padding-inline-end: 8px;
    overflow: auto;
}

/* Bootstrap's clearfix would otherwise occupy cells in this two-column grid. */
.hook-clientarea #tabOverview > .product-details > .row::before,
.hook-clientarea #tabOverview > .product-details > .row::after {
    display: none;
}

.hook-clientarea #tabOverview .product-details-tab-container #domain > .row {
    font-size: 16px;
    line-height: 1.55;
}

.hook-clientarea #tabOverview .module-client-area .lu-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 118px), 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.hook-clientarea #tabOverview .module-client-area .lu-tiles > div {
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 0;
}

.hook-clientarea #tabOverview .module-client-area .lu-tiles .lu-tile {
    height: 100%;
    min-height: 106px;
    margin: 0;
    padding: 12px 6px;
    border-radius: 8px;
}

.hook-clientarea #tabOverview .module-client-area .vue-app-main-container > .lu-h4 {
    margin: 18px 0 10px !important;
    text-align: left;
}

.hook-clientarea #tabOverview .module-client-area .vue-app-main-container > .lu-row:not(.lu-tiles) {
    margin-inline: 0;
}

.hook-clientarea #tabOverview .module-client-area #accountDetailsTable { padding-inline: 0; }

html[data-es-theme="dark"] .hook-clientarea #tabOverview .module-client-area .vue-app-main-container > .lu-h4,
html[data-es-theme="dark"] .hook-clientarea #tabOverview .module-client-area .lu-tile .lu-tile__title {
    color: #e9f7fb !important;
    overflow-wrap: anywhere;
}

html[data-es-theme="dark"] .hook-clientarea #tabOverview .module-client-area .lu-tile,
html[data-es-theme="dark"] .hook-clientarea #tabOverview .module-client-area #accountDetailsTable .lu-widget {
    border: 1px solid #305464 !important;
    background: #102e3c !important;
    color: #e9f7fb !important;
}

html[data-es-theme="dark"] .hook-clientarea #tabOverview .module-client-area .lu-tile:hover,
html[data-es-theme="dark"] .hook-clientarea #tabOverview .module-client-area .lu-tile:focus-visible {
    border-color: #5cb9cb !important;
    background: #173e4e !important;
}

html[data-es-theme="dark"] .hook-clientarea #tabOverview .module-client-area #accountDetailsTable .lu-top__title,
html[data-es-theme="dark"] .hook-clientarea #tabOverview .module-client-area #accountDetailsTable th,
html[data-es-theme="dark"] .hook-clientarea #tabOverview .module-client-area #accountDetailsTable td {
    border-color: #305464 !important;
    background: #102e3c !important;
    color: #e9f7fb !important;
}
