/* Base */
body {
    background: #fff;
    height: 100vh;
    font-weight: lighter;
}

html {
    min-height: 100%;
    position: relative;
}

p {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: bold;
    line-height: 1.2;
}

h1 {
    padding: 5px 0;
    font-size: 28px;
    color: #0473aa;
}

a:hover,
.link:hover {
    border-bottom: 1px dotted #0072bc;
    margin-bottom: 1px;
    cursor: pointer;
}

hr {
    margin-top: 10px;
}

.error {
    color: red;
}

/* Page shell */
#container {
    background: #fff;
    width: 100%;
    margin: 0 auto !important;
}

#content {
    max-width: 1320px;
    margin: 0 auto 20px;
    padding-bottom: 80px;
    min-height: 0;
}

#footer {
    background: #ebebeb;
    font-size: 15px;
    position: fixed;
    bottom: 0 !important;
    width: 100%;
    visibility: hidden;
}

#footer.is-ready {
    visibility: visible;
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-top: 4px solid #0065b3;
}

.site-footer-inner p {
    flex: 1 1 240px;
    text-align: center;
    margin: 0;
}

.site-footer-inner img {
    width: 130px;
    height: auto;
}

/* Header */
#header {
    background: #003476;
    color: #fff;
}

#logo img {
    width: 340px;
    margin-top: -5px;
}

#header a {
    color: #acd1e9;
}

#header a:hover,
#header .link:hover {
    border-bottom: 1px solid #fff;
    color: #fff;
}

#nav {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 16px;
    margin: 0;
    padding: 4px 16px;
    background: #0065b3;
}

#nav a {
    color: #fff;
    text-decoration: none;
}

#nav a.active,
#nav a:hover,
#nav a:focus {
    background: transparent;
    color: #fff;
    text-decoration: underline;
}

.flag {
    display: inline-block !important;
    padding: 0 !important;
    margin-right: 7px;
    margin-top: 15px;
}

.rtl #logo img {
    float: left;
}

/* Home */
.home-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.home-intro > * {
    flex: 1 1 280px;
}

.home-intro .thread-bod {
    text-align: justify;
}

.home-intro-image {
    text-align: center;
}

.home-intro-image img {
    max-width: 100%;
    height: auto;
}

.thread-body h1 {
    margin-top: 0 !important;
}

.fp-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 16px;
    margin-top: 22px;
    margin-bottom: 22px;
}

.fp-cards .outer_box {
    flex: 1 1 240px;
    max-width: 380px;
    padding: 12px;
}

.outer_box {
    border-radius: 15px;
}

.outer_box_green {
    border: 2px solid #4caf50;
}

.outer_box_orange {
    border: 2px solid #ec971f;
}

.outer_box_blue {
    border: 2px solid #0473aa;
}

.box-body {
    text-align: center;
}

.box-body h1 {
    font-size: 25px;
}

.box-body p {
    padding: 5px 20px;
    line-height: 22px;
    font-weight: lighter;
}

.fp-cards-icon {
    display: block !important;
    width: 50px;
    height: 50px;
    margin-right: auto !important;
    margin-left: auto !important;
}

/* Forms and login */
#ticketForm {
    display: block;
    margin: 30px 0;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
    background: url('../../assets/default/images/lock.png?1319655200') 95% 50% no-repeat #f6f6f6;
}

#ticketForm div input[type='email'],
#ticketForm div input[type='text'] {
    width: 75%;
}

#ticketForm div input[class='phone'] {
    width: 50%;
}

#clientLogin {
    margin: 10px 0;
    background: url('../../assets/default/images/lock.png?1319655200') 95% 70% no-repeat #f6f6f6;
}

#clientLogin .instructions {
    padding-left: 10px;
    padding-right: 55px;
}

#clientLogin .login-box,
#clientLogin hr,
#clientLogin div:has(> a[href="account.php?do=create"]),
#clientLogin div:has(> a[href$="scp/"]),
h1:has(+ p + form#clientLogin),
h1:has(+ p + form#clientLogin) + p {
    display: none;
}

.button,
.button:visited,
.green.button,
.green.button:visited {
    background-color: #224c8b;
}

.green.button:hover {
    background-color: #17335c;
}

.action-button {
    height: 35px;
}

.external-auth-box {
    vertical-align: middle;
    border-radius: 4px;
    border: 1px solid #17335c;
    background-color: #224c8b;
}

.external-auth-icon {
    display: inline-block;
    width: 30px;
    padding: 0;
    color: #fff;
    border-right: 1px solid #ddd;
}

.external-auth-name {
    width: 100px;
    padding: 5px 10px;
    color: #fff;
    line-height: 30px;
    font-size: 11pt;
}

.select2-container .select2-selection--single {
    height: 35px;
    border: 1px solid #ccc;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 32px;
}

.captchaRow label {
    padding-top: 5px;
}

.filedrop .file {
    height: 35px !important;
}

.filedrop .file .cancel {
    display: block !important;
}

.filedrop .file .cancel:before {
    font-family: FontAwesome;
    content: "\f014";
}

#msg_error {
    margin: 0 0 10px;
    padding: 5px 10px 5px 36px;
    height: auto;
    line-height: 16px;
    border: 1px solid #a00;
    background: url('../../assets/default/images/icons/error.png') 10px 50% no-repeat #fff0f0;
}

/* Tickets */
.search {
    display: inline-block;
    width: -webkit-fill-available;
    margin: 10px 0 20px;
    padding: 14px;
    background-color: #e5e8ec;
    border-radius: 5px;
}

.search input {
    width: 80%;
    height: 40px;
    float: left;
    border-radius: 2px;
}

.search button {
    width: 20%;
    height: 40px;
    border-radius: 0;
    font-weight: bold;
    font-size: 16px;
}

#ticketTable {
    width: 100%;
}

#ticketTable thead tr td {
    background-color: #0473aa;
}

#ticketTable thead tr td a {
    color: #fff;
}

#ticketTable tr td:first-child {
    width: 10%;
}

/* Knowledge base */
#kb {
    margin-top: -18px;
    margin-bottom: 52px;
}

#kb .fa-folder-open {
    font-size: 84px;
    color: #0473aa;
    padding-left: 12px;
}

#kb .list-group-item {
    margin-top: 20px;
}

#faq {
    margin-top: 20px !important;
    margin-bottom: 50px;
}

.faded {
    color: #a8a8a8;
}

@media (max-width: 767px) {
    #logo img {
        width: 300px;
        margin-left: 5px;
    }

    h1 {
        margin-top: 10px;
    }

    .outer_box_green {
        margin-bottom: 17px;
    }

    .outer_box_blue {
        margin-bottom: 48px;
    }

    .search {
        padding-bottom: 12px;
    }

    .search button {
        padding-left: 5px;
    }

    .flag {
        margin-left: 15px;
    }

    #kb .fa-folder-open {
        font-size: 61px;
        padding-left: 0;
    }

    #ticketSearchForm .search-container {
        margin-bottom: 16px;
    }

    #ticketSearchForm .search-container input {
        width: 75%;
        height: 45px;
        float: left;
    }

    #ticketSearchForm .search-container button {
        width: 50px;
        height: 45px;
    }

    #ticketSearchForm .states {
        margin-top: 16px;
    }
}
