/*
 * Webcore HostBill client-area stylesheet
 *
 * This file is the Git-managed source of truth for Webcore-specific HostBill
 * styling. It includes the useful legacy rules that previously lived in the
 * HostBill theme editor, followed by the new Webcore client-area components.
 */

/* -------------------------------------------------------------------------
   Legacy HostBill compatibility
   ------------------------------------------------------------------------- */

.nav {
    margin-bottom: 20px;
    margin-left: 0;
    list-style: none;
}
.nav > li > a { display: block; }
.nav-tabs > li > a,
.nav-pills > li > a {
    padding-right: 12px;
    padding-left: 12px;
    margin-right: 2px;
    line-height: 14px;
}
.nav-tabs > li { margin-bottom: -1px; }
.nav-tabs > li,
.nav-pills > li { float: left; }
.nav-tabs > li > a {
    padding-top: 8px;
    padding-bottom: 8px;
    line-height: 20px;
    color: #555;
    border: 1px solid transparent;
    border-radius: 4px 4px 0 0;
}
.nav-tabs > .active > a,
.nav-tabs > .active > a:hover,
.nav-tabs > .active > a:focus {
    color: #555;
    cursor: default;
    background-color: #fff;
    border: 1px solid #ddd;
    border-bottom-color: transparent;
}
.nav-tabs-wrapper .nav-tabs .slider { margin: 0; }
.nav-tabs-wrapper .nav-tabs .slider .indicator { background-color: #ff5e00; }

.alert.alert-warning {
    color: #806122;
    background-color: #fdf1a9;
    border-color: #d4ad5d;
}

/* Tables */
.table thead tr { background: #f9f9f9; }
table.display thead th,
table thead th {
    color: #666 !important;
    background: #f3f3f3;
    border-bottom: 1px solid #ccc !important;
    border-radius: 0;
    text-shadow: 0 1px 1px #fff;
}
table.display thead th {
    border: 1px solid #ccc;
    font-size: 16px;
}
table.display thead tr {
    color: #666;
    background: #f3f3f3;
    border: 1px solid #ccc;
    text-shadow: 0 1px 1px #fff;
}
table.display { border-radius: 0; }
.table-responsive.table-borders { border: .07rem solid #ccc; }
tr.odd { background-color: #f5f5f5; }

/* Navbar */
.navbar .navbar-search-results .navbar-dropdown-item,
.navbar .dropdown-order-items .navbar-dropdown-item { color: #6c757d; }
.navbar-menu-user .text-dark { color: #fff !important; }
.navbar .navbar-body .navbar-menu .nav-link { border-left: 1px solid #666; }

/* Labels and badges */
.label.label-Active,
.label.label-Accepted,
.label.label-Paid,
.label.label-Receiptpaid,
.label.label-Opened,
.label.label-Open,
.label.label-success.label-styled,
.badge.badge-Active,
.badge.badge-Accepted,
.badge.badge-Paid,
.badge.badge-Receiptpaid,
.badge.badge-Opened,
.badge.badge-Open,
.badge.badge-success.badge-styled,
.badge.badge-Answered {
    color: #fff;
    background-color: #00a67c;
}
.label.label-Suspended,
.label.label-Answered,
.label.label-warning.label-styled {
    color: #fff;
    background-color: #f6bb42;
}
.badge { padding: 10px; }
.badge.badge-Pending,
.badge.badge-Sent,
.badge.badge-In-Progress,
.badge.badge-primary.badge-styled {
    color: #212529;
    background-color: #e5e5e5;
}
.badge-warning {
    color: #806122;
    background-color: #fdf1a9;
}
.badge.badge-Unpaid,
.badge.badge-Receiptunpaid,
.badge.badge-Terminated,
.badge.badge-danger.badge-styled,
.badge.badge-Fraud,
.badge.badge-secondary.badge-styled,
.badge.badge-Expired,
.badge.expired {
    color: #fff;
    background-color: #e4514d;
}
.badge.badge-Canceled,
.badge.badge-Dead,
.badge.badge-Cancelled,
.badge.badge-Receiptcanceled,
.badge.badge-Close,
.badge.badge-Closed {
    color: #212529;
    background-color: #e5e5e5;
}

/* Legacy buttons */
select { padding: .5rem; }
.btn {
    display: inline-block;
    padding: .5rem .6rem;
    font-size: .8125rem;
    line-height: 1.25;
    font-weight: 400;
    letter-spacing: .4px;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border-width: 0;
    border-radius: 0;
    transition: color .15s ease-in-out, background-color .15s ease-in-out,
                border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.btn-primary {
    border: 1px solid !important;
    border-color: #0275d8;
}
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    background-color: #0260b2;
    border: 1px solid !important;
    border-color: #fff;
}
.btn-secondary:hover,
.btn-secondary:active,
.btn-secondary:focus {
    background-color: #0260b2;
    border-color: #fff;
}
.btn.btn-sm,
.btn-group-sm > .btn,
.btn.btn-xs { padding: .6rem; }
.btn_pay { color: #fff !important; }
.btn-danger {
    color: #e4514d;
    background-color: #fff;
    border: 1px solid #e4514d !important;
}
.btn-danger:hover,
.btn-danger:active,
.btn-danger:focus,
.btn-danger:not(:disabled):not(.disabled):active,
.btn-danger:not(:disabled):not(.disabled).active,
.show > .btn-danger.dropdown-toggle {
    color: #e4514d;
    background-color: #eee;
    border: 1px solid #e4514d !important;
}

a.fs11 {
    display: inline;
    margin: 2px;
    padding: 10px !important;
    color: #fff;
    background-color: #0275d8;
    background-image: none;
    border: 0;
    font-size: 12px;
    font-weight: 400;
    text-align: center;
    text-shadow: none;
    cursor: pointer;
}
a.fs11:hover { background-color: #09729f; background-image: none; }
a.fs11:focus { border-color: #1e96c9; box-shadow: none; outline: 0; }
input.fs11[type="submit"],
input.blue[type="button"] {
    color: #fff;
    background-color: #1e96c9;
    background-image: none;
    border: 0;
    text-shadow: none;
}
input.fs11[type="submit"]:hover,
input.blue[type="button"]:hover {
    background-color: #1e96c9;
    background-image: none;
}
input.fs11[type="submit"],
input.btn[type="button"],
input.gray[type="submit"],
input.gray[type="button"] {
    display: inline;
    margin: 2px;
    padding: 12px !important;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}
a.lmore {
    padding: 10px 12px;
    color: #373737;
    background: #dedede;
    font-weight: 400;
    line-height: 21px;
}
a.lmore:hover { background: #d5d5d5; }

/* Legacy navigation and form helpers */
.icons > ul > li > a { border: none !important; }
.leftnavigation-box .nav-item .nav-link { color: #464851; }
.leftnavigation-box .nav-item {
    margin: 0;
    padding: 4px 0 4px 20px;
    color: #464851 !important;
    background-color: #f9f9f9;
    border: .07rem solid #e3e4e8;
    vertical-align: middle;
}
.form-credentials { margin: 150px auto 0; }
ul.service-header-menu li a .widg-image.widg_eppcode::before { content: "supervisor_account"; }
.material-icons.icon-info-color { color: #0275d8; }
.material-icons.icon-btn-color { color: #fff; }

/* -------------------------------------------------------------------------
   Webcore login / credential pages
   ------------------------------------------------------------------------- */

body.template_2019 .section-signin,
body.template_2019 .section-passreminder {
    min-height: calc(100vh - 64px);
    padding: 72px 24px 48px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

body.template_2019 .section-signin .form-credentials,
body.template_2019 .section-passreminder .form-credentials {
    width: 100%;
    max-width: 440px;
    margin: 0 auto !important;
    padding: 36px 38px 34px;
    align-items: stretch !important;
    background: #fff;
    border: 1px solid #dfe3e6;
    border-radius: 4px;
    box-shadow: 0 8px 28px rgba(28, 39, 49, .06);
}

body.template_2019 .section-signin .form-credentials > a,
body.template_2019 .section-passreminder .form-credentials > a {
    width: 200px;
    height: 58px;
    min-width: 200px;
    min-height: 58px;
    flex: 0 0 auto;
    align-self: center;
    margin-bottom: 24px;
    display: block;
    font-size: 0;
    line-height: 0;
    background: none !important;
}

body.template_2019 .section-signin .form-credentials > a::before,
body.template_2019 .section-passreminder .form-credentials > a::before {
    content: "";
    width: 200px;
    height: 58px;
    display: block;
    background-image: url('../../images/new-logo-black-medium.png') !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: contain !important;
}

body.template_2019 .section-signin .form-credentials > a img,
body.template_2019 .section-passreminder .form-credentials > a img {
    display: none !important;
}

body.template_2019 .section-signin .form-credentials h1,
body.template_2019 .section-passreminder .form-credentials h1 {
    margin: 0 0 10px !important;
    color: #303940;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 400;
    text-align: center;
}

body.template_2019 .section-signin .form-credentials > small,
body.template_2019 .section-passreminder .form-credentials > small {
    display: block;
    margin: 0 auto 20px;
    color: #6e7882;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

body.template_2019 .section-signin .form-credentials form,
body.template_2019 .section-passreminder .form-credentials form {
    width: 100%;
}

body.template_2019 .section-signin .form-label-group,
body.template_2019 .section-passreminder .form-label-group {
    margin-top: 12px !important;
}

body.template_2019 .section-signin .form-control,
body.template_2019 .section-passreminder .form-control {
    min-height: 46px;
    padding: 11px 12px;
    color: #303940;
    background: #fff;
    border: 1px solid #d8dde0;
    border-radius: 3px;
    box-shadow: none;
    font-size: 13px;
}

body.template_2019 .section-signin .form-control:focus,
body.template_2019 .section-passreminder .form-control:focus {
    border-color: #0b82df;
    box-shadow: 0 0 0 2px rgba(11,130,223,.08);
}

body.template_2019 .section-signin .form-label-placeholder,
body.template_2019 .section-passreminder .form-label-placeholder {
    color: #7b858e;
    font-size: 12px;
}

body.template_2019 .section-signin .form-group,
body.template_2019 .section-passreminder .form-group,
body.template_2019 .section-signin .form-groups,
body.template_2019 .section-passreminder .form-groups {
    margin: 18px 0;
}

body.template_2019 .section-signin .form-group > label,
body.template_2019 .section-passreminder .form-group > label,
body.template_2019 .section-signin .form-groups > label,
body.template_2019 .section-passreminder .form-groups > label {
    color: #4b5660;
    font-size: 12px;
    font-weight: 600;
}

body.template_2019 .section-signin .capcha,
body.template_2019 .section-passreminder .capcha {
    border: 1px solid #d8dde0;
    border-radius: 3px;
}

body.template_2019 .section-signin .btn-link,
body.template_2019 .section-passreminder .btn-link {
    color: #0b82df;
    font-size: 11px;
    text-decoration: none;
}

body.template_2019 .section-signin form > .d-flex.justify-content-between,
body.template_2019 .section-passreminder form > .d-flex.justify-content-between {
    margin-top: 22px;
    gap: 18px;
}

body.template_2019 .section-signin form > .d-flex.justify-content-between .text-small,
body.template_2019 .section-passreminder form > .d-flex.justify-content-between .text-small {
    font-size: 11px;
    line-height: 1.6;
}

body.template_2019 .section-signin form > .d-flex.justify-content-between .btn-primary,
body.template_2019 .section-passreminder form > .d-flex.justify-content-between .btn-primary {
    min-height: 44px;
    padding: 10px 18px;
    color: #fff !important;
    background: #0b82df !important;
    border: 1px solid #0b82df !important;
    border-radius: 3px !important;
    box-shadow: none;
    font-size: 13px;
    font-weight: 600;
}

body.template_2019 .section-signin form > .d-flex.justify-content-between .btn-primary:hover,
body.template_2019 .section-passreminder form > .d-flex.justify-content-between .btn-primary:hover {
    background: #0874c8 !important;
    border-color: #0874c8 !important;
}

/* Normalise HostBill/browser-injected password reveal controls if present. */
body.template_2019 .section-signin button[class*="show"],
body.template_2019 .section-signin a[class*="show"],
body.template_2019 .section-signin span[class*="show"],
body.template_2019 .section-signin input + button {
    color: #0b82df !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: 11px !important;
}

/* -------------------------------------------------------------------------
   New Webcore client area
   ------------------------------------------------------------------------- */

.webcore-dashboard { max-width: 1240px; margin: 0 auto; }
.webcore-dashboard-heading { margin: .25rem 0 2.75rem; }
.webcore-eyebrow {
    margin-bottom: .65rem;
    color: #6b7280;
    font-size: .75rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.webcore-dashboard-heading h1 {
    margin: 0 0 .6rem;
    color: #1f2937;
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 700;
}
.webcore-dashboard-heading p {
    max-width: 760px;
    margin: 0;
    color: #6b7280;
    font-size: .95rem;
}
.webcore-section { margin-bottom: 2.75rem; }
.webcore-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}
.webcore-section-heading h2 {
    margin: 0 0 .25rem;
    color: #1f2937;
    font-size: 1.15rem;
    font-weight: 700;
}
.webcore-section-heading p {
    margin: 0;
    color: #7a8491;
    font-size: .85rem;
}
.webcore-service-list { display: grid; gap: 1rem; }
.webcore-service-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.35rem 1.5rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .45rem;
    box-shadow: 0 1px 2px rgba(15,23,42,.035);
}
.webcore-service-card::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: #d8dde3;
}
.webcore-service-card--wordpress::before { background: #1683d8; }
.webcore-service-main {
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    align-items: center;
    gap: 1rem;
    min-width: 0;
}
.webcore-service-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: #1683d8;
    background: #eef6fc;
    border: 1px solid #d8eaf8;
    border-radius: .35rem;
}
.webcore-service-icon .material-icons { font-size: 22px; }
.webcore-wp-mark {
    width: 23px;
    height: 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #1683d8;
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}
.webcore-service-copy { min-width: 0; }
.webcore-service-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
}
.webcore-service-title {
    overflow: hidden;
    color: #202a35;
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.webcore-service-meta {
    margin-top: .28rem;
    overflow: hidden;
    color: #7a8491;
    font-size: .8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.webcore-service-description {
    margin-top: .35rem;
    color: #7a8491;
    font-size: .78rem;
}
.webcore-service-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .65rem;
}
.webcore-service-card .btn {
    min-width: 138px;
    padding: .62rem .9rem;
    border-radius: .25rem;
    box-shadow: none;
    font-size: .8rem;
    font-weight: 600;
}
.webcore-service-card .btn-primary {
    color: #fff;
    background: #1683d8;
    border-color: #1683d8;
}
.webcore-service-card .btn-primary:hover,
.webcore-service-card .btn-primary:focus {
    background: #0e72bf;
    border-color: #0e72bf;
}
.webcore-service-card .btn-outline-secondary {
    color: #4b5563;
    background: #fff;
    border-color: #d1d5db;
}
.webcore-service-card .btn-outline-secondary:hover,
.webcore-service-card .btn-outline-secondary:focus {
    color: #1f2937;
    background: #f8fafc;
    border-color: #c4cad1;
}
.webcore-service-card .badge {
    padding: .32rem .48rem;
    border-radius: .2rem;
    font-size: .65rem;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
}
.webcore-service-card .badge-Active { color:#fff; background:#08aa83; }
.webcore-service-card .badge-Pending { color:#725500; background:#fff0b3; }
.webcore-service-card .badge-Suspended,
.webcore-service-card .badge-Terminated { color:#fff; background:#d94841; }

@media (max-width: 767.98px) {
    .webcore-dashboard { padding: 0 .25rem; }
    .webcore-dashboard-heading { margin-bottom: 2rem; }
    .webcore-dashboard-heading h1 { font-size: 1.65rem; }
    .webcore-section { margin-bottom: 2rem; }
    .webcore-service-card {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.1rem;
    }
    .webcore-service-actions { width: 100%; }
    .webcore-service-card .btn { width: 100%; }
}
