/* =====================================================================
   Data Sole — v5.1 style fixes (loaded last, after every other sheet)
   One palette everywhere: cream / white / amber / ink. No stray blues,
   greens or pinks except where they mean something (status pills).
   ===================================================================== */

/* ---------- 1. Client area: same warm palette as the public site ---------- */
:root, html[data-dsa-theme="light"] {
    --dsa-bg: #fbf7f0;
    --dsa-surface: #ffffff;
    --dsa-surface-2: #fcf8f1;
    --dsa-surface-3: #f3ebdd;
    --dsa-line: #ece2d3;
    --dsa-line-2: #e0d2bc;
    --dsa-text: #241f1a;
    --dsa-text-2: #5a4f44;
    --dsa-text-3: #93846f;
    --dsa-info: #c97f0c;
}

/* stat tiles: one icon style, not four random colours */
html.dsc .tiles .tile > i,
html.dsc .tiles .col-6:nth-child(n) .tile > i { background: var(--dsa-accent-soft) !important; color: var(--dsa-accent-ink) !important; }
html.dsc .tiles .row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (min-width: 992px) { html.dsc .tiles .row { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }

/* dashboard: the shell already has a menu, so drop the duplicate left column */
html.dsc body.ds-page-clientareahome #main-body .col-lg-4.col-xl-3 { display: none !important; }
html.dsc body.ds-page-clientareahome #main-body .col-lg-8.col-xl-9 { flex: 0 0 100% !important; max-width: 100% !important; }

/* empty card footers showed as grey strips */
html.dsc .card-footer:not(:has(*)) { display: none !important; }
html.dsc #announcementsPanel .list-group-item,
html.dsc .client-home-cards .list-group-item { padding: 12px 20px !important; }
html.dsc .client-home-cards .card-header .card-title { display: flex; align-items: center; gap: 8px; width: 100%; }
html.dsc .client-home-cards .card-header .card-title > .float-right { float: none !important; order: 2; margin-left: auto !important; flex: 0 0 auto; }

/* sidebar sub-menu items were almost invisible */
html.dsc .dsa-sub a { color: var(--dsa-text-2) !important; opacity: 1 !important; }
html.dsc .dsa-sub a:hover, html.dsc .dsa-sub a.is-active { color: var(--dsa-accent-ink) !important; }

/* top bar: search stays usable, never overlaps the pills */
html.dsc .dsa-search { min-width: 0 !important; flex: 1 1 240px !important; }
html.dsc .dsc-kb-form .input-group.d-none { display: flex !important; }
@media (max-width: 767px) { html.dsc .dsa-search { display: none !important; } }

/* phone: Bootstrap rows were 3px wider than the screen */
html.dsc .dsa-main { overflow-x: clip; }
@media (max-width: 767px) { html.dsc #main-body .container { padding-left: 3px !important; padding-right: 3px !important; } }

/* tables: dates on one line */
html.dsc #tableServicesList td.text-center, html.dsc #tableInvoicesList td.text-center { white-space: nowrap; }
html.dsc .dataTables_wrapper, .listtable { overflow-x: auto; }

/* ---------- 2. Bootstrap leftovers in brand colours ---------- */
.alert-info { background: #fff8eb !important; border-color: #f0d6a8 !important; color: #7a4d06 !important; }
.alert-info a { color: #c97f0c !important; }
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success,
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary { background: #f2a31e !important; color: #241f1a !important; }
.dsh-status-dot { background: #4e9f5b; } /* green = "online", intentional */

/* ---------- 3. Store / cart ---------- */
/* dedicated & VM configure: name-server prefixes aren't used, keep hostname + password */
#order-standard_cart #inputNs1prefix, #order-standard_cart #inputNs2prefix { display: none; }
#order-standard_cart .form-group:has(#inputNs1prefix), #order-standard_cart .form-group:has(#inputNs2prefix),
#order-standard_cart [class*="col-"]:has(> .form-group #inputNs1prefix), #order-standard_cart [class*="col-"]:has(> .form-group #inputNs2prefix) { display: none !important; }

/* product box on the configure page: readable spec list */
#order-standard_cart .product-info { font-size: 14px; line-height: 1.6; }

/* domain search button: room for the icon */
html body #order-standard_cart .dsr-hero .dsd-btn-go,
html body #order-standard_cart .domain-check-availability { width: auto !important; min-width: 0 !important; padding: 0 22px !important; white-space: nowrap; overflow: visible !important; display: inline-flex !important; align-items: center; gap: 8px; }

/* TLD price table: no blue rules, header lined up with the rows */
html body #order-standard_cart .domain-pricing .tld-row > div,
html body #order-standard_cart .domain-pricing .tld-row .col-md-4,
html body #order-standard_cart .domain-pricing .tld-row .col-md-8 { border: 0 !important; }
html body #order-standard_cart .domain-pricing .tld-pricing-header div { border-bottom: 0 !important; background: transparent !important; }
html body #order-standard_cart .domain-pricing .tld-pricing-header { background: #f6efe3 !important; }
html body #order-standard_cart .domain-pricing .tld-row { align-items: center; }
@media (max-width: 767px) {
    html body #order-standard_cart .domain-pricing .tld-pricing-header .tld-column { display: none; }
    html body #order-standard_cart .domain-pricing .tld-row .col-md-4 { padding: 10px 16px 0 !important; }
}

/* ---------- 4. Homepage ---------- */
#faq .dsh-split { align-items: start !important; }
.dsh-loc-all { background: var(--dsh-navy) !important; border-color: var(--dsh-navy) !important; }
.dsh-loc-all strong, .dsh-loc-all em { color: #fff !important; }
.dsh-loc-all small, .dsh-loc-all .dsh-loc-meta { color: rgba(255, 255, 255, .7) !important; }
.dsh-loc-all:hover { background: #000 !important; }

/* ---------- 5. v5.2 — rounded cards, cart buttons ---------- */
/* cards: list rows / active item no longer poke out past the rounded corners */
.cart-sidebar .card, .sidebar .card, .card-sidebar { overflow: hidden; }
.card > .card-header:first-child,
.card > .list-group:first-child,
.card > .list-group:first-child > .list-group-item:first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.card > :last-child,
.card > .list-group:last-child > .list-group-item:last-child { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
#order-standard_cart .cart-sidebar .list-group-item:last-child { border-bottom: 0 !important; }

/* view cart: "Empty Cart" was standard_cart's dark-blue tab */
html body #order-standard_cart .empty-cart { text-align: right; margin: 12px 0 8px !important; line-height: 1; }
html body #order-standard_cart .empty-cart .btn,
html body #order-standard_cart #btnEmptyCart {
    background: transparent !important; border: 1px solid var(--ds-line) !important; color: var(--ds-ink-2) !important;
    border-radius: 999px !important; padding: 7px 16px !important; font-size: 13px !important; font-weight: 500; box-shadow: none !important;
    display: inline-flex; align-items: center; gap: 7px; text-decoration: none !important;
}
html body #order-standard_cart .empty-cart .btn i { opacity: 1 !important; color: inherit !important; }
html body #order-standard_cart .empty-cart .btn:hover,
html body #order-standard_cart #btnEmptyCart:hover { background: rgba(214, 69, 69, .06) !important; border-color: rgba(214, 69, 69, .45) !important; color: #c43c3c !important; }
