/* Reviewed Site v6 presentation translated to native Nexus templates.
   WHMCS owns menu trees, account identity, statistics, forms and panel order. */
body.cully-client-area:not(.cully-public-home) {
    --cully-canvas: #f5f7fc;
    --cully-sidebar: 216px;
    font-family: var(--family-font);
    background: var(--cully-canvas);
}
.cully-client-area:not(.cully-public-home) :is(h1,h2,h3,.card-title,.navbar,button,input,select,textarea) { font-family: var(--family-font); }
.cully-client-area:not(.cully-public-home) :is(.card,.invoice-container) { box-shadow: 0 2px 7px #06153405; }
.cully-client-area:not(.cully-public-home) .card-header { padding: 17px 20px; }
.cully-client-area:not(.cully-public-home) .card-header :is(h3,.card-title) { font-size: 14px; }
.cully-client-area:not(.cully-public-home) .card-body { padding: 20px; }
.cully-client-area:not(.cully-public-home) .card-footer { padding: 14px 20px; background: #fbfcff; }
.cully-client-area:not(.cully-public-home) .cully-page-heading { margin-bottom: 24px; }
.cully-client-area:not(.cully-public-home) .cully-page-heading h1 { font-size: 30px; letter-spacing: -.85px; }
.cully-client-area:not(.cully-public-home) .table { font-size: 12px; line-height: 1.6; }
.cully-client-area:not(.cully-public-home) .table thead th { font-size: 10px; padding: 12px; background: #f3f7fc; letter-spacing: .45px; }
.cully-client-area:not(.cully-public-home) .table td { padding: 14px 12px; font-variant-numeric: tabular-nums; }
body.cully-client-area #tableInvoicesList :is(th,td):nth-child(4) { text-align: right; }
.cully-client-area:not(.cully-public-home) :is(.form-control,.custom-select) { font-size: 13px; border-color: #bacbdd; }
.cully-client-area:not(.cully-public-home) .nav-tabs .nav-link { font-size: 12px; }
.cully-client-area:not(.cully-public-home) .alert { font-size: 12px; padding: 13px 15px; }
.cully-client-area:not(.cully-public-home) :is(.label,.badge) { font-size: 10px; }
body.cully-client-area:not(.cully-public-home) #main-body { background: var(--cully-canvas); }
body.cully-workspace-shell #main-body .cully-support-prompt h3 { font-size: 20px; }
.cully-workspace-shell .cully-workspace-resources { display: grid; gap: 3px; border-top: 1px solid #233955; padding-top: 18px; margin-top: 20px; }
body.cully-workspace-shell #header .cully-workspace-resources a { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; font-size: 12px; color: #c4d2e6; border-radius: 4px; }
body.cully-workspace-shell #header .cully-workspace-resources a:hover { background: #102a50; color: #fff; text-decoration: none; }
.cully-workspace-family { padding: 28px 14px 18px; font-size: 12px; }
body.cully-workspace-shell #header .cully-workspace-family a { color: #c4d2e6; }
.cully-workspace-shell .master-breadcrumb { padding-block: 18px 20px; }
body.cully-workspace-shell #header { position: relative; z-index: 100; }
.cully-workspace-shell .cully-welcome { background: #061534; padding: 0; border-bottom: 1px solid #243858; }
.cully-workspace-shell .cully-welcome-inner { min-height: 158px; padding-block: 30px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.13fr); gap: 30px; }
.cully-workspace-shell .cully-welcome h1 { font-size: 30px; font-weight: 650; letter-spacing: -.85px; margin: 0 0 10px; }
.cully-workspace-shell .cully-welcome p { font-size: 12px; }
.cully-workspace-shell .cully-welcome .cully-welcome-label { font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: 1.25px; color: #abcaf6; margin: 0 0 10px; }
.cully-workspace-shell .cully-handoff { min-width: 0; gap: 16px; padding: 18px; border-color: #58708f; }
.cully-workspace-shell .cully-handoff > .cully-icon { color: #86bbff; width: 25px; height: 25px; flex-shrink: 0; }
.cully-workspace-shell .cully-handoff > div { min-width: 0; flex: 1; }
.cully-workspace-shell .cully-handoff strong { font-size: 12px; }
.cully-workspace-shell .cully-handoff span:not(.sr-only) { font-size: 11px; }
.cully-workspace-shell .cully-handoff .btn { font-size: 11px; }
.cully-dashboard .cully-section-heading h2 { font-size: 25px; font-weight: 650; letter-spacing: -.6px; }
.cully-dashboard .cully-section-heading { flex-wrap: wrap; margin-bottom: 24px; }
.cully-dashboard .cully-snapshot { padding: 20px 4px; box-shadow: 0 2px 7px #06153405; }
.cully-dashboard .cully-summary-grid { gap: 0; }
.cully-dashboard .cully-summary { border: 0; border-right: 1px solid var(--family-line); border-radius: 0; background: transparent; padding: 0 20px; gap: 6px; }
.cully-dashboard .cully-summary:last-child { border-right: 0; }
.cully-dashboard .cully-summary:hover { background: #f3f7fc; }
.cully-dashboard .cully-summary strong { font-size: 29px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.cully-dashboard .cully-summary span { font-size: 11px; }

/* Retain the native Bootstrap XL collapse breakpoint and a single menu tree.
   At desktop the same menu becomes a scrollable rail; no permission cloning. */
@media (min-width: 1200px) {
    body.cully-workspace-shell { padding-left: var(--cully-sidebar); }
    .cully-workspace-shell .container { max-width: 1496px; padding-inline: 28px; }
    body.cully-workspace-shell #header { display: grid; grid-template-columns: minmax(0,1fr) auto; background: #fff; border-color: var(--family-line); min-height: 72px; }
    body.cully-workspace-shell #header .topbar { order: 1; border: 0; padding: 0; background: transparent; }
    body.cully-workspace-shell #header .topbar > .container { height: 100%; padding-right: 0; }
    body.cully-workspace-shell #header .topbar > .container > .d-flex { height: 100%; flex-direction: row-reverse; gap: 12px; }
    body.cully-workspace-shell #header .topbar .mr-auto { margin-right: 0 !important; }
    body.cully-workspace-shell #header .topbar .ml-auto { margin-left: 0 !important; margin-right: auto; min-width: 0; }
    body.cully-workspace-shell #header .active-client { display: block; }
    body.cully-workspace-shell #header .active-client .input-group-prepend { display: block !important; }
    body.cully-workspace-shell #header .active-client .btn-group { margin-top: 0; }
    body.cully-workspace-shell #header .cully-brandbar .search { width: auto; }
    body.cully-workspace-shell #header .cully-brandbar .input-group.search { flex-wrap: nowrap; }
    body.cully-workspace-shell #header .cully-brandbar > .container > .form-inline { max-width: none; }
    body.cully-workspace-shell #header .cully-brandbar .search input { min-width: 0; width: 150px; }
    body.cully-workspace-shell #header .active-client .input-group-text { padding: 0; min-height: 16px; line-height: 16px; font-size: 10px; color: #4d6079; }
    body.cully-workspace-shell #header .btn-active-client { padding: 0; min-height: 32px; max-width: 280px; white-space: normal; overflow-wrap: anywhere; text-align: left; }
    body.cully-workspace-shell #header .active-client .btn-group { display: flex; align-items: center; gap: 6px; }
    body.cully-workspace-shell #header .cully-brandbar { order: 2; background: transparent; padding: 0; }
    body.cully-workspace-shell #header .cully-brandbar > .container { gap: 14px; padding-left: 12px; width: auto; }
    body.cully-workspace-shell #header .navbar-brand { position: fixed; left: 0; top: 0; width: var(--cully-sidebar); height: 96px; padding: 28px 23px; display: flex; align-items: center; background: #06152e; z-index: 103; }
    body.cully-workspace-shell #header .logo-img { width: 166px; max-width: 100%; }
    body.cully-workspace-shell #header .main-navbar-wrapper { position: fixed; inset: 96px auto 0 0; width: var(--cully-sidebar); padding: 14px; border-top: 0; border-right: 1px solid #203555; background: #06152e; overflow-y: auto; align-items: flex-start; z-index: 102; }
    body.cully-workspace-shell #header .main-navbar-wrapper > .container { display: block; padding: 0; }
    body.cully-workspace-shell #header .navbar-collapse { display: block !important; width: 100%; }
    body.cully-workspace-shell #header .main-navbar-wrapper .navbar-nav { display: flex; flex-direction: column; gap: 5px; margin: 0 !important; }
    body.cully-workspace-shell #header .main-navbar-wrapper .navbar-nav.ml-auto { margin-top: 18px !important; }
    body.cully-workspace-shell #header .main-navbar-wrapper .navbar-nav > li > a { white-space: normal; overflow-wrap: anywhere; border: 1px solid transparent; border-radius: 4px; padding: 11px 14px; min-height: 46px; }
    body.cully-workspace-shell #header .main-navbar-wrapper .navbar-nav > li.active > a { background: #1763e9; border-color: #3078f0; color: #fff; box-shadow: none; }
    body.cully-workspace-shell #header .main-navbar-wrapper .dropdown-menu { position: static; float: none; min-width: 0; max-width: 100%; background: #0b234b; border-color: #294367; box-shadow: none; margin-block: 5px; }
    body.cully-workspace-shell #header .main-navbar-wrapper .dropdown-menu :is(a,.dropdown-item) { color: #d4e2f4; white-space: normal; overflow-wrap: anywhere; }
    body.cully-workspace-shell #header .main-navbar-wrapper .dropdown-item:hover { background: #15365f; }
    body.cully-workspace-shell #header .toolbar .nav-link { color: #344a66; }
    body.cully-workspace-shell #header .search .form-control { width: clamp(120px,14vw,210px); }
    body.cully-workspace-shell #header .search :is(.form-control,.btn) { background: #fbfcff; border-color: var(--family-line); color: #4d6079; }
    body.cully-workspace-shell #header .search .form-control::placeholder { color: #4d6079; }
    body.cully-workspace-shell.cully-dashboard #header { background: #061121; border-color: #243858; }
    body.cully-workspace-shell.cully-dashboard #header .topbar .btn,
    body.cully-workspace-shell.cully-dashboard #header .toolbar .nav-link { color: #eff5ff; }
    body.cully-workspace-shell.cully-dashboard #header .topbar .input-group-text { color: #abcaf6; }
    body.cully-workspace-shell.cully-dashboard #header .search :is(.form-control,.btn) { background: #0b234b; border-color: #294367; color: #fff; }
    body.cully-workspace-shell.cully-dashboard #header .search .form-control::placeholder { color: #becde2; }
}
@media (max-width: 1199px) {
    .cully-workspace-shell .cully-welcome-inner { grid-template-columns: 1fr; gap: 22px; }
    .cully-workspace-shell .cully-handoff { max-width: 620px; }
    body.cully-workspace-shell #header .main-navbar-wrapper { max-height: 70vh; overflow-y: auto; }
    body.cully-workspace-shell.cully-dashboard #header .topbar { background: #061121; border-color: #243858; }
    body.cully-workspace-shell.cully-dashboard #header .topbar :is(.btn,.input-group-text) { color: #d8e6fa; }
}
@media (max-width: 767px) {
    body.cully-workspace-shell #domainForm > .btn-group { display: flex; flex-wrap: wrap; gap: 6px; }
    body.cully-workspace-shell #domainForm > .btn-group > .btn { flex: 0 1 auto; margin-left: 0; border-radius: 4px; }
    .cully-workspace-shell .cully-welcome-inner { padding-block: 24px; }
    .cully-workspace-shell .cully-welcome h1 { font-size: 27px; }
    .cully-workspace-shell .cully-handoff { display: grid; grid-template-columns: 25px minmax(0,1fr); gap: 14px; padding: 16px; }
    .cully-workspace-shell .cully-handoff > a { grid-column: 2; justify-self: start; }
    .cully-dashboard .cully-summary-grid { row-gap: 22px; }
    .cully-dashboard .cully-summary { padding-inline: 16px; }
    .cully-dashboard .cully-summary:nth-child(2) { border-right: 0; }
    .cully-dashboard .cully-section-heading h2 { font-size: 23px; }
    .cully-dashboard .cully-section-heading { gap: 14px; }
}
@media print {
    body.cully-client-area:not(.cully-public-home) { background: #fff; }
    body.cully-workspace-shell { padding-left: 0; }
    body.cully-workspace-shell #header { display: none; }
}
