:root {
    --lc-header-height: 72px;
    --lc-subheader-height: 56px;
    --lc-sidebar-width: 220px;
}

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

/* SIDEBAR: fixed logo on top, scrollable nav below it */
.lc-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--lc-sidebar-width);
    height: 100vh;
    background: #0f2340;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.lc-logo {
    flex: 0 0 auto;
    min-height: calc(var(--lc-header-height) + var(--lc-subheader-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    box-sizing: border-box;
}
.lc-logo img {
    max-width: 180px;
    width: 100%;
    height: auto;
}
.lc-nav-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
}
.lc-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}
.lc-nav li a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
}
.lc-nav li a:hover {
    background: rgba(255,255,255,.08);
}
.lc-nav-section {
    color: #7f95b3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 18px 20px 8px;
    text-transform: uppercase;
}
.lc-nav-scroll::-webkit-scrollbar {
    width: 8px;
}
.lc-nav-scroll::-webkit-scrollbar-track {
    background: #0f2340;
}
.lc-nav-scroll::-webkit-scrollbar-thumb {
    background: #1e3a5f;
    border-radius: 4px;
}
.lc-nav-scroll::-webkit-scrollbar-thumb:hover {
    background: #2a527f;
}

/* TOP BAR: fixed, sits only over the content column (not the sidebar) */
#header {
    position: fixed;
    top: 0;
    left: var(--lc-sidebar-width);
    width: calc(100% - var(--lc-sidebar-width));
    height: var(--lc-header-height);
    margin-left: 0 !important;
    z-index: 9998;
    display: flex;
    align-items: center;
    background: #0f2340 !important;
    border: 0 !important;
}
#header .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 24px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
#header .top-nav {
    float: none;
    margin: 0;
    display: flex;
    align-items: center;
}
#header .top-nav > li > a {
    color: #fff !important;
}

#main-menu {
    position: fixed;
    top: var(--lc-header-height);
    left: var(--lc-sidebar-width);
    width: calc(100% - var(--lc-sidebar-width));
    height: var(--lc-subheader-height);
    margin-left: 0 !important;
    z-index: 9997;
    display: block !important;
    background: #0f2340 !important;
    border: 0 !important;
}
#main-menu .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 24px;
    box-sizing: border-box;
    height: 100%;
}
#main-menu #nav,
#main-menu .navbar-main {
    background: #0f2340 !important;
    border: 0 !important;
    height: 100%;
}
#main-menu #primary-nav {
    display: block !important;
    width: 100% !important;
    height: 100%;
}
#main-menu ul.navbar-right {
    position: absolute !important;
    top: 50% !important;
    right: 24px !important;
    transform: translateY(-50%) !important;
    float: none !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    background: transparent !important;
    background-image: none !important;
}
#main-menu ul.navbar-right > li {
    background: transparent !important;
    background-image: none !important;
    padding: 0 !important;
}
#main-menu .navbar-nav:first-child {
    display: none !important;
}
#main-menu #Secondary_Navbar-Account {
    background: transparent !important;
}
#main-menu #Secondary_Navbar-Account > a.dropdown-toggle {
    background: #1e3a5f !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    color: #fff !important;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
}
.navbar-main .navbar-nav:first-child {
    display: none !important;
}
.navbar-header {
    display: none !important;
}

/* MAIN CONTENT: offset by sidebar + header, scrolls independently */
#main-body {
    margin-left: var(--lc-sidebar-width) !important;
    margin-top: calc(var(--lc-header-height) + var(--lc-subheader-height)) !important;
    height: calc(100vh - var(--lc-header-height) - var(--lc-subheader-height)) !important;
    overflow-y: auto;
    box-sizing: border-box;
}
#main-body .container {
    width: auto !important;
    max-width: none !important;
    margin-right: 20px !important;
}

#main-body [class*="pull-md-"],
#main-body [class*="push-md-"] {
    right: auto !important;
    left: auto !important;
    position: static !important;
}


/* Footer would otherwise sit off-screen below the locked viewport.
   Hidden by default -- tell me if you want it visible inside #main-body instead. */
#footer {
    display: none;
}

/* Flatten any rounded corners in the header/sidebar seam --
   the base Six theme applies border-radius to some of these by default. */
#header,
#header .container,
#header .top-nav,
.lc-sidebar,
.lc-logo,
#main-body,
#main-body .container {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* ============================================
   PRODUCT DETAILS PAGE (clientareaproductdetails.tpl override)
   ============================================ */

.lc-product-card {
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.lc-product-card-top {
    display: flex;
    flex-wrap: wrap;
}
.lc-product-icon-col {
    flex: 1 1 280px;
    background: #f0f1f3;
    padding: 28px 20px;
    text-align: center;
}
.lc-product-icon-col .fa-stack {
    font-size: 1.6em;
}
.lc-product-icon-col h3 {
    margin: 10px 0 2px;
}
.lc-product-icon-col h4 {
    margin: 0;
    font-weight: 400;
    color: #7f95b3;
}
.lc-product-info-col {
    flex: 2 1 380px;
    background: #f7f8fa;
    padding: 24px 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 16px;
    column-gap: 24px;
    align-content: center;
}
.lc-info-item h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #7f95b3;
    font-weight: 700;
    margin: 0 0 2px;
    text-align: left;
}
.lc-info-item p {
    font-size: 14px;
    margin: 0;
    text-align: left;
    color: #333;
}

.lc-status-bar {
    text-align: center;
    color: #fff;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 10px;
}
.lc-status-active {
    background: #5cb85c;
}
.lc-status-suspended,
.lc-status-pending {
    background: #f0ad4e;
}
.lc-status-terminated,
.lc-status-cancelled,
.lc-status-fraud {
    background: #d9534f;
}

/* Turn the stacked full-width action buttons into a proportional row */
.product-actions-wrapper {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 0;
}
.product-actions-wrapper > [class*="col-"] {
    width: auto !important;
    flex: 1 1 180px;
    padding: 0 !important;
}
.product-actions-wrapper .btn {
    width: 100%;
    border-radius: 4px;
}

/* De-emphasize routine actions so Cancellation is the only "loud" button */
.product-actions-wrapper .btn-success,
.product-actions-wrapper .btn-info {
    background: #fff !important;
    border: 1px solid #d7dde3 !important;
    color: #33475b !important;
}
.product-actions-wrapper .btn-success:hover,
.product-actions-wrapper .btn-info:hover {
    background: #f4f6f8 !important;
}
.product-actions-wrapper .btn-danger {
    background: #d9534f !important;
    border: 1px solid #d9534f !important;
}

/* Shrink the hostname changer input -- no reason for it to span the full page width */
input[name="hostname"].form-control {
    max-width: 280px;
    display: block;
    margin: 0 auto;
}






#main-body > .container > .row {
    max-width: 1300px;
    margin-left: auto !important;
    margin-right: auto !important;
}

#main-body > .container > .row > .col-md-3.sidebar {
    float: left !important;
    width: 280px !important;
    position: static !important;
}

#main-body > .container > .row > .col-md-9.pull-md-right {
    float: right !important;
    width: calc(100% - 280px) !important;
    position: static !important;
}

.sidebar.sidebar-secondary {
    clear: left !important;
}



.panel {
    font-size: 1.2em;
}




# Added for mobile

/* ============================================
   MOBILE SIDEBAR (<=767px)
   ============================================ */
.lc-sidebar-toggle {
    display: none;
}
@media (max-width: 767px) {
    .lc-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        width: 260px; /* a bit wider than desktop for touch targets */
    }
    body.lc-sidebar-open .lc-sidebar {
        transform: translateX(0);
    }
    /* header/subheader/content go full width, no offset */
    #header,
    #main-menu,
    #main-body {
        left: 0 !important;
        width: 100% !important;
        margin-left: 0 !important;
    }
    /* hamburger button, shown only on mobile */
    .lc-sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: 0;
        color: #fff;
        font-size: 22px;
        cursor: pointer;
        margin-right: auto; /* push it to the left of #header's flex row */
    }
    /* dim backdrop behind the open sidebar */
    .lc-sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 9998; /* below sidebar (9999), above header/content */
    }
    body.lc-sidebar-open .lc-sidebar-backdrop {
        display: block;
    }
    /* body no longer needs the hard viewport lock on mobile;
       let the whole page scroll normally instead of just #main-body */
    body.lc-sidebar-open {
        overflow: hidden; /* prevent background scroll while drawer is open */
    }
}

@media (max-width: 767px) {
    #main-body > .container > .row > .col-md-3.sidebar,
    #main-body > .container > .row > .col-md-9.pull-md-right,
    #main-body .main-content {
        float: none !important;
        width: 100% !important;
    }
}



@media (max-width: 767px) {
    #main-menu ul.navbar-right .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        float: none !important;
        width: auto !important;
        min-width: 180px !important;
        margin-top: 2px !important;
        background-color: #1e3a5f !important;
        border: 1px solid rgba(0,0,0,.15) !important;
        border-radius: 4px !important;
        box-shadow: 0 6px 12px rgba(0,0,0,.175) !important;
        z-index: 10000 !important;
    }
}



.popover {
    z-index: 10000 !important;
}


