/**
 * WHMCS Bootstrap Override Sheet
 *
 * These styles override Bootstrap's defaults.
 *
 * @author    WHMCS Limited <development@whmcs.com>
 * @copyright Copyright (c) WHMCS Limited 2005-2016
 * @license   http://www.whmcs.com/license/
 */

body,
input,
button,
select,
textarea {
  font-family: "Open Sans", Verdana, Tahoma, serif;
  color: #333333;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
}

.container-fluid.without-padding {
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
}

.navbar-main {
    margin-bottom: 0;
    background-color: #0e5077;
    border: 0;
    min-height: 38px;
    font-family: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
}
.navbar-main li.account {
    background-color: #043d5f;
}

.navbar-main .navbar-nav > li > a {
    color: #fff;
}

.navbar-main .navbar-nav > li > a {
    padding-top: 9px;
    padding-bottom: 9px;
}

.navbar-main .navbar-nav > li > a:hover,
.navbar-main .navbar-nav > li > a:focus,
.navbar-main .navbar-nav > .active > a,
.navbar-main .navbar-nav > .active > a:hover,
.navbar-main .navbar-nav > .active > a:focus,
.navbar-main .navbar-nav > .open > a,
.navbar-main .navbar-nav > .open > a:hover,
.navbar-main .navbar-nav > .open > a:focus {
    color: #eee;
    background-color: #043d5f;
}

#main-menu .navbar-nav {
    margin-left: -15px;
    margin-right: -15px;
}

.navbar-main .dropdown-menu {
    padding: 3px 0;
    border-top: 0;
    border-radius: 0;
}
.navbar-main .navbar-nav .dropdown-menu > li > a:hover,
.navbar-main .navbar-nav .dropdown-menu > li > a:focus,
.navbar-main .navbar-nav .dropdown-menu > .active > a,
.navbar-main .navbar-nav .dropdown-menu > .active > a:hover,
.navbar-main .navbar-nav .dropdown-menu > .active > a:focus,
.navbar-main .navbar-nav .dropdown-menu > .open > a,
.navbar-main .navbar-nav .dropdown-menu > .open > a:hover,
.navbar-main .navbar-nav .dropdown-menu > .open > a:focus {
    color: #333;
    background-color: #eee;
}

@media (max-width: 767px) {
    .navbar-main .navbar-nav .open .dropdown-menu > li > a {
        color: #ddd;
    }
    .navbar-main .navbar-nav .open .dropdown-menu > li > a:hover {
        color: #fff;
    }
}

@media (max-width: 991px) {
    .navbar-header {
        float: none;
    }
    .navbar-left,.navbar-right {
        float: none !important;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .navbar-fixed-top {
        top: 0;
        border-width: 0 0 1px;
    }
    .navbar-collapse.collapse {
        display: none!important;
    }
    .navbar-nav {
        float: none!important;
        margin-top: 7px;
    }
    .navbar-nav>li {
        float: none;
    }
    .navbar-nav>li>a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .collapse.in{
        display:block !important;
        margin-bottom: 10px;
    }
}

.panel {
  font-size: 0.9em;
}

.list-group {
  font-size: 0.9em;
}
.list-group-item {
    border-color: #f5f5f5;
}
.list-group-item .badge {
    background-color: transparent;
    color: #666;
}
a.list-group-item.active,
a.list-group-item.active:hover,
a.list-group-item.active:focus {
    background-color: #465054;
    border-color: #465054;
}


.pagination {
    font-size: 0.8em;
}

.pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus {
    color: white;
    background-color: #006687;
    border-color: #006687;
}

.navbar-main .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
    text-decoration: none;
    color: #fff;
    background-color: #006687;
}

.label {
    border-radius: 0;
}

input[type='file'].form-control {
    height: inherit;
    margin-bottom: 5px;
}

.list-group-item {
    padding: 7px 15px;
}
.panel-body {
    padding: 10px 15px;
}

/*
 * We use a larger font-size than the bootstrap default, which requires an increase
 * in the top offset to maintain correct alignment in form control feedback.
 */
.has-feedback label ~ .form-control-feedback {
    top: 27px !important;
}

.list-group-item > i.far.fa-circle {
    color: #808080;
}

.has-error button {
    border-color: #a94442;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}

/*
 * Language strings which are too long to fit into buttons should be "chopped off" inside the div
 * of that button, instead of "overflowing" outside of the button.  CORE-9272
 */
.btn {
    overflow: hidden;
}

/* ============================================
   EXPANDABLE INLINE SERVICE CARDS
   Accordion-style quick-view panels
   ============================================ */

/* --- Panel Container --- */
.ent-expand-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                padding 0.3s ease;
    background: #f8f9fa;
    border-left: 3px solid #6c5ce7;
    margin: 0;
    padding: 0 16px;
}
.ent-expand-panel.ent-expand-open {
    max-height: 600px;
    opacity: 1;
    padding: 20px 16px;
    margin: 2px 0 4px;
}

/* --- Mini Gradient Header --- */
.ent-expand-header {
    background: linear-gradient(135deg, #6c5ce7, #00cec9);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.ent-expand-header-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.ent-expand-header-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.ent-expand-header-domain {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ent-expand-status-pill {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.ent-expand-status-active {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.ent-expand-status-pending {
    background: rgba(255,193,7,0.3);
    color: #fff;
}
.ent-expand-status-suspended,
.ent-expand-status-cancelled,
.ent-expand-status-terminated {
    background: rgba(255,71,87,0.3);
    color: #fff;
}

/* --- Info Grid --- */
.ent-expand-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.ent-expand-info-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 14px;
    transition: box-shadow 0.2s ease;
}
.ent-expand-info-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.ent-expand-info-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 4px;
}
.ent-expand-info-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    word-break: break-word;
}

/* --- Action Buttons --- */
.ent-expand-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ent-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.ent-expand-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.ent-expand-btn-primary {
    background: linear-gradient(135deg, #6c5ce7, #00cec9);
    color: #fff;
}
.ent-expand-btn-primary:hover,
.ent-expand-btn-primary:focus {
    color: #fff;
    opacity: 0.9;
}
.ent-expand-btn-secondary {
    background: #e9ecef;
    color: #495057;
}
.ent-expand-btn-secondary:hover,
.ent-expand-btn-secondary:focus {
    background: #dee2e6;
    color: #333;
}
.ent-expand-btn-danger {
    background: #fff5f5;
    color: #e74c3c;
    border: 1px solid #fecaca;
}
.ent-expand-btn-danger:hover,
.ent-expand-btn-danger:focus {
    background: #fee2e2;
    color: #c0392b;
}

/* --- Chevron Icon --- */
.ent-expand-chevron {
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.3s ease;
    font-size: 11px;
    color: #6c757d;
}
.ent-expand-chevron.ent-expand-chevron-open {
    transform: rotate(90deg);
}

/* --- Loading Spinner --- */
.ent-expand-loading {
    text-align: center;
    padding: 30px 0;
    color: #6c757d;
}
.ent-expand-loading i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
    color: #6c5ce7;
}
.ent-expand-loading span {
    font-size: 13px;
}

/* --- Error Fallback --- */
.ent-expand-error {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}
.ent-expand-error p {
    margin-bottom: 10px;
    font-size: 13px;
}

/* --- Dashboard list-group-item tweaks --- */
.list-group-item.ent-expandable-item {
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}
.list-group-item.ent-expandable-item:hover {
    background-color: #f8f9fa;
}
.list-group-item.ent-expandable-item.ent-expand-active {
    background-color: #f0f0ff;
    border-left: 3px solid #6c5ce7;
}

/* --- My Services Table Expand Row --- */
.ent-expand-tr {
    display: none;
}
.ent-expand-tr.ent-expand-tr-open {
    display: table-row;
}
.ent-expand-tr > td {
    padding: 0 !important;
    border-top: none !important;
}
.ent-expand-tr .ent-expand-panel {
    margin: 0;
    border-left: none;
    border-top: 1px solid #e9ecef;
}
tr.ent-service-row-active {
    background-color: #f0f0ff !important;
}

/* --- Mobile Service Card Expandable --- */
.ent-service-card-expandable {
    cursor: pointer;
    transition: all 0.2s ease;
}
.ent-service-card-expandable:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.ent-service-card-expandable.ent-expand-active {
    border-color: #6c5ce7;
}
.ent-service-card-expand-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                padding 0.3s ease;
    padding: 0 15px;
}
.ent-service-card-expand-body.ent-expand-open {
    max-height: 500px;
    opacity: 1;
    padding: 15px;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .ent-expand-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 575px) {
    .ent-expand-info-grid {
        grid-template-columns: 1fr;
    }
    .ent-expand-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .ent-expand-actions {
        flex-direction: column;
    }
    .ent-expand-actions .ent-expand-btn {
        width: 100%;
        justify-content: center;
    }
    .ent-expand-panel.ent-expand-open {
        padding: 14px 12px;
    }
}
