/* Usage Hosting child theme. Parent Twenty-One CSS and JavaScript remain intact.
   V6 palette/spacing adapted for account workflows; no external font dependency. */
:root {
    --uh-primary: #27834a;
    --uh-primary-hover: #206c3e;
    --uh-forest: #0b3d2b;
    --uh-deep: #06291d;
    --uh-mint: #eaf7f1;
    --uh-pale: #f5fbf8;
    --uh-ink: #14231d;
    --uh-muted: #52665b;
    --uh-line: #dbe8e1;
    --uh-shadow: 0 8px 28px rgba(6, 41, 29, .06);
    --primary: var(--uh-primary);
    --primary-lifted: var(--uh-primary-hover);
    --primary-accented: var(--uh-forest);
}
html { font-size: 14px; }
body.uh-portal {
    color: var(--uh-ink);
    background: var(--uh-pale);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}
.uh-portal h1, .uh-portal h2, .uh-portal h3, .uh-portal h4 {
    color: var(--uh-deep);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.25;
}
.uh-portal h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.uh-portal a:where(:not(.btn, .badge, .list-group-item, .nav-link, .dropdown-item, .page-link, .alert-link)) { color: var(--uh-primary-hover); }
.uh-portal a:where(:not(.btn, .badge, .list-group-item, .nav-link, .dropdown-item, .page-link, .alert-link)):hover { color: var(--uh-forest); }
.uh-portal a:focus-visible, .uh-portal button:focus-visible,
.uh-portal input:focus-visible, .uh-portal select:focus-visible,
.uh-portal textarea:focus-visible {
    outline: 3px solid var(--uh-primary);
    outline-offset: 3px;
}
.uh-skip-link { position: absolute; left: 1rem; top: -8rem; z-index: 1100; padding: .75rem 1rem; background: #fff; }
.uh-skip-link:focus { top: .5rem; }
.uh-portal #header { background: #fff; border-bottom: 1px solid var(--uh-line); }
.uh-portal #header .topbar { background: var(--uh-mint); border-bottom: 1px solid var(--uh-line); }
.uh-portal #header .topbar, .uh-portal #header .topbar .btn,
.uh-portal #header .topbar .input-group-text { color: var(--uh-forest); }
.uh-portal #header .navbar-light { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.uh-portal #header .navbar-brand { display: inline-flex; align-items: center; padding: 0; }
.uh-portal #header .logo-img { width: 250px; max-width: 100%; height: auto; max-height: none; }
.uh-portal #header .main-navbar-wrapper { background: #fff; border-top: 1px solid var(--uh-line); }
.uh-portal #header .navbar-nav .nav-link { color: var(--uh-forest); font-weight: 600; }
.uh-portal #header .navbar-nav .nav-link:hover,
.uh-portal #header .navbar-nav .active > .nav-link { background: var(--uh-mint); color: var(--uh-deep); border-radius: .5rem; }
.uh-portal #header .navbar-nav .nav-link.disabled { color: #65756b; opacity: .65; background: transparent; }
.uh-portal .dropdown-menu { border: 1px solid var(--uh-line); border-radius: .7rem; box-shadow: var(--uh-shadow); }
.uh-portal .dropdown-item { padding: .55rem 1rem; }
.uh-portal .dropdown-item:hover, .uh-portal .dropdown-item:focus { background: var(--uh-mint); color: var(--uh-deep); }
.uh-brand-strip { background: linear-gradient(110deg, var(--uh-mint), #fff); border-bottom: 1px solid var(--uh-line); color: var(--uh-forest); font-size: .9rem; }
.uh-brand-strip .container { display: flex; gap: 1rem; align-items: center; padding-top: .85rem; padding-bottom: .85rem; }
.uh-portal-label { font-weight: 700; white-space: nowrap; padding-right: 1rem; border-right: 1px solid #b6d2c2; }
.uh-portal .master-breadcrumb { background: transparent; border: 0; }
.uh-portal .master-breadcrumb .breadcrumb { background: transparent; }
.uh-portal .master-breadcrumb .breadcrumb { padding-top: 1.2rem; padding-bottom: .6rem; }
.uh-portal #main-body { min-height: 55vh; padding-top: 1.5rem; padding-bottom: 3.5rem; background: transparent; }
.uh-portal .primary-content { min-width: 0; }
.uh-portal .card, .uh-portal .panel.panel-default, .uh-portal .logincontainer {
    border: 1px solid var(--uh-line);
    border-radius: 1rem;
    box-shadow: var(--uh-shadow);
    background: #fff;
}
.uh-portal .card-header, .uh-portal .panel-default > .panel-heading {
    background: #fff;
    border-bottom: 1px solid var(--uh-line);
    color: var(--uh-forest);
    padding: 1rem 1.25rem;
    font-weight: 600;
    border-radius: 1rem 1rem 0 0;
}
.uh-portal .card-body, .uh-portal .panel-body { padding: 1.5rem; }
.uh-portal .sidebar .list-group-item { padding: .85rem 1.1rem; border-color: var(--uh-line); }
.uh-portal .sidebar .list-group-item.active { background: var(--uh-primary); border-color: var(--uh-primary); color: #fff; }
.uh-portal .sidebar .list-group-item:not(.active):hover { background: var(--uh-mint); }
.uh-portal .btn { border-radius: .6rem; font-weight: 600; padding: .6rem 1rem; }
.uh-portal .btn-sm, .uh-portal .btn-xs { padding: .3rem .65rem; }
.uh-portal .btn-primary, .uh-portal .btn-primary.disabled, .uh-portal .btn-primary:disabled {
    background-color: var(--uh-primary); border-color: var(--uh-primary); color: #fff;
}
.uh-portal .btn-primary:not(:disabled):not(.disabled):hover,
.uh-portal .btn-primary:not(:disabled):not(.disabled):active,
.uh-portal .btn-primary:focus { background: var(--uh-primary-hover); border-color: var(--uh-primary-hover); color: #fff; }
.uh-portal .btn-default { background: #fff; border: 1px solid #9bb8a8; color: var(--uh-forest); }
.uh-portal .btn-default:hover { background: var(--uh-mint); }
/* Keep warning, danger, disabled and SSL semantic styles supplied by WHMCS. */
.uh-portal .form-control, .uh-portal .custom-select {
    border-color: #a8bcb1; border-radius: .55rem; color: var(--uh-ink); min-height: 2.85rem;
}
.uh-portal textarea.form-control { min-height: 8rem; }
.uh-portal .form-control:focus, .uh-portal .custom-select:focus { border-color: var(--uh-primary); box-shadow: 0 0 0 .2rem rgba(39, 131, 74, .15); }
.uh-portal .form-control[readonly], .uh-portal .form-control:disabled { background: #eef2ef; }
.uh-portal label { font-weight: 600; }
.uh-portal .text-muted { color: var(--uh-muted) !important; }
.uh-portal .nav-tabs { border-color: var(--uh-line); gap: .2rem; }
.uh-portal .nav-tabs .nav-link { color: var(--uh-forest); padding: .9rem 1rem; }
.uh-portal .nav-tabs .nav-link.active { border-color: var(--uh-line) var(--uh-line) #fff; color: var(--uh-deep); font-weight: 700; }
.uh-portal .nav-tabs .nav-link.disabled { color: #65756b; }
.uh-portal .product-details-tab-container { border: 1px solid var(--uh-line); border-top: 0; border-radius: 0 0 1rem 1rem; padding: 1.5rem; }
.uh-portal .product-details-tab-container .row { padding-top: .4rem; padding-bottom: .4rem; overflow-wrap: anywhere; }
.uh-portal .table { color: var(--uh-ink); }
.uh-portal .table thead th { border-top: 0; background: var(--uh-mint); color: var(--uh-forest); font-weight: 600; }
.uh-portal .table td, .uh-portal .table th { padding: .85rem; border-color: var(--uh-line); }
.uh-portal .pagination .page-item.active .page-link { background: var(--uh-primary); border-color: var(--uh-primary); }
.uh-portal .pagination .page-link { color: var(--uh-primary-hover); }
.uh-portal .ticket-reply { border: 1px solid var(--uh-line); border-radius: .9rem; margin-bottom: 1.25rem; overflow-wrap: anywhere; }
.uh-portal .ticket-reply .posted-by { background: var(--uh-mint); color: var(--uh-forest); }
.uh-portal #registration .sub-heading span { background: var(--uh-pale); color: var(--uh-forest); }
.uh-portal #footer { background: var(--uh-deep); color: #dbe8e1; border-top: 0; padding-top: 2.5rem; padding-bottom: 2rem; }
.uh-portal #footer a, .uh-portal #footer .btn { color: #dbe8e1; }
.uh-portal #footer a:hover { color: #fff; text-decoration: underline; }
@media (min-width: 1200px) { .uh-portal .container { max-width: 1160px; } }
@media (max-width: 1199.98px) { .uh-portal #mainNavbar { padding-top: 1rem; padding-bottom: 1rem; } }
@media (max-width: 767.98px) {
    .uh-portal #header .logo-img { width: 205px; }
    .uh-portal #header .navbar-light { padding-top: 1rem; padding-bottom: 1rem; }
    .uh-portal #header .active-client .btn { max-width: 11rem; overflow: hidden; text-overflow: ellipsis; }
    .uh-brand-strip .container { align-items: flex-start; flex-direction: column; gap: .2rem; }
    .uh-portal-label { border: 0; padding: 0; }
    /* Keep padding wider than Bootstrap's 15px negative row gutters. */
    .uh-portal .card-body, .uh-portal .panel-body, .uh-portal .product-details-tab-container { padding: 1.25rem; }
    .uh-portal .nav-tabs .nav-link { padding: .7rem; }
    .uh-portal .logincontainer { max-width: 100%; }
    .uh-portal .table-responsive { border: 1px solid var(--uh-line); border-radius: .6rem; }
}
@media (max-width: 374px) {
    .uh-portal #header .logo-img { width: 175px; }
    .uh-portal #header .toolbar .nav-item { margin-left: .35rem !important; }
}
@media (prefers-reduced-motion: reduce) {
    .uh-portal *, .uh-portal *::before, .uh-portal *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
