/*
 * nquare-v6a: nquare.pt header and footer for the Blesta client area.
 * Values measured from https://nquare.pt (LandPress + Elementor) on 2026-09-13.
 * Everything is prefixed .nq- so Blesta's own styles are untouched, except the
 * two layout rules marked "Blesta layout" below.
 */

@font-face {
    font-family: 'Figtree';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url(fonts/figtree-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Figtree';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url(fonts/figtree-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --nq-green: #26d16d;
    --nq-teal: #024550;
    --nq-border: #e2e6f0;
}

/* Blesta layout: keep the footer at the bottom of short pages */
.nq-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.nq-main {
    flex: 1 0 auto;
    padding-bottom: 60px;
}

/* Blesta layout: every login page (log in, reset, forgot, OTP) white; Blesta only whitens the main login page */
body[class^="client-client_login-"] {
    background-color: #fff;
}

/* Blesta layout: the language menu only holds short labels (PT, EN) */
.nav-content #language_switcher {
    min-width: 5rem;
}

/* Blesta layout: align Blesta's content width with the nquare.pt header (1200px) */
@media (min-width: 1200px) {
    .nq-page .container-md {
        max-width: 1230px;
    }
}

/* Shared */
.nq-header,
.nq-footer {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.nq-header ul,
.nq-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nq-header a,
.nq-footer a {
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease;
}
.nq-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.nq-header {
    position: relative;
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid var(--nq-border);
}
.nq-header-inner {
    display: flex;
    align-items: center;
    height: 70px;
}
.nq-logo {
    flex: 0 0 auto;
    display: block;
    line-height: 0;
}
.nq-logo img {
    width: 112px;
    height: auto;
}
.nq-nav {
    align-self: stretch;
    margin: 0 auto 0 48px;
}
.nq-menu {
    display: flex;
    height: 100%;
    gap: 30px;
}
.nq-menu-item {
    position: relative;
    display: flex;
    align-items: center;
}
.nq-menu-item > a {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 16px;
    color: var(--nq-teal);
    white-space: nowrap;
}
.nq-menu-item > a:hover,
.nq-menu-item > a:focus,
.nq-has-children:hover > a,
.nq-has-children:focus-within > a {
    color: var(--nq-green);
}
.nq-chevron {
    margin-left: 8px;
}
.nq-header .nq-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    padding: 20px 30px;
    background: #fff;
    border: 1px solid var(--nq-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nq-has-children:hover > .nq-dropdown,
.nq-has-children:focus-within > .nq-dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.nq-dropdown a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 16px;
    color: #000;
    white-space: nowrap;
}
.nq-dropdown a:hover,
.nq-dropdown a:focus {
    color: var(--nq-green);
}
.nq-buttons {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}
.nq-btn,
.nq-btn:hover,
.nq-btn:focus {
    display: inline-block;
    padding: 16px 22px;
    font-size: 16px;
    font-weight: 500;
    line-height: 16px;
    color: #fff;
    white-space: nowrap;
}
.nq-btn-primary {
    background: var(--nq-green);
}
.nq-btn-primary:hover,
.nq-btn-primary:focus {
    background: var(--nq-teal);
}
.nq-btn-secondary {
    background: var(--nq-teal);
}
.nq-btn-secondary:hover,
.nq-btn-secondary:focus {
    background: var(--nq-green);
}

/* Header: mobile toggler, hidden on desktop */
.nq-toggler {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    margin: 0 -9px 0 auto;
    padding: 9px;
    background: none;
    border: 0;
    cursor: pointer;
}
.nq-toggler span {
    display: block;
    height: 2px;
    background: var(--nq-teal);
    transition: transform .2s ease, opacity .2s ease;
}
.nq-toggler[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nq-toggler[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nq-toggler[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
.nq-mobile-menu {
    border-top: 1px solid var(--nq-border);
}
.nq-header .nq-mobile-menu > ul {
    padding: 20px;
}
.nq-mobile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nq-mobile-row a {
    display: block;
    flex: 1 1 auto;
    padding: 11px 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 20px;
    color: var(--nq-teal);
}
.nq-mobile-menu a:hover,
.nq-mobile-menu a:focus {
    color: var(--nq-green);
}
.nq-sub-toggler {
    width: 42px;
    height: 42px;
    margin-right: -12px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--nq-teal);
    cursor: pointer;
}
.nq-sub-toggler .nq-chevron {
    width: 14px;
    height: 10px;
    margin: 0;
    transition: transform .2s ease;
}
.nq-sub-toggler[aria-expanded="true"] .nq-chevron {
    transform: rotate(180deg);
}
.nq-header .nq-mobile-sub {
    padding-left: 16px;
}
.nq-mobile-sub a {
    display: block;
    padding: 9px 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    color: var(--nq-teal);
}

@media (max-width: 1024px) {
    .nq-nav,
    .nq-buttons {
        display: none;
    }
    .nq-toggler {
        display: flex;
    }
}
@media (min-width: 1025px) {
    .nq-header .nq-mobile-menu.collapse {
        display: none;
    }
}

/* Footer */
.nq-footer {
    color: #fff;
    background: var(--nq-teal);
    border-top: 1px solid rgba(255, 255, 255, .07);
}
.nq-footer-main {
    display: grid;
    grid-template-columns: 378fr 217fr 217fr 378fr;
    gap: 10px;
    padding: 80px 10px;
}
.nq-footer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
}
.nq-footer-brand img {
    width: 136px;
    height: auto;
}
.nq-footer-brand p {
    max-width: 80%;
    margin: 0;
    font-size: 16px;
    line-height: 28px;
    color: #fff;
}
.nq-footer-title {
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.44;
    letter-spacing: -.027em;
    color: #fff;
}
.nq-footer-links li + li {
    margin-top: 10px;
}
.nq-footer a {
    font-size: 16px;
    line-height: 25.6px;
    color: #fff;
}
.nq-footer a:hover,
.nq-footer a:focus {
    color: var(--nq-green);
}
.nq-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .07);
}
.nq-footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    padding-top: 29px;
    padding-bottom: 29px;
}
.nq-footer-bottom p {
    margin: 0;
    font-size: 16px;
    line-height: 28px;
    color: #fff;
}
.nq-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
}

@media (max-width: 1024px) {
    .nq-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
        padding-top: 50px;
        padding-bottom: 50px;
    }
}
@media (max-width: 767px) {
    .nq-footer-main {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .nq-footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

/* Order form plan listing: Blesta's title bar already shows the name, so hide the repeated heading */
body.plugin-orderclient-main-packages .section-title > h3 {
    display: none;
}

/*
 * Order form (all steps, body class plugin-orderclient-*): nquare buttons, plan cards,
 * headings and links. Blesta's theme sets button colours with !important, so the button
 * colours below need it too. Form fields are deliberately left as Blesta styles them.
 */
body[class^="plugin-orderclient-"] .nq-main .btn-success,
body[class^="plugin-orderclient-"] .nq-main .btn-secondary,
body[class^="plugin-orderclient-"] .nq-main .btn-light {
    border-radius: 0;
    box-shadow: none;
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
}
body[class^="plugin-orderclient-"] .nq-main .btn-success {
    color: #fff !important;
    background-color: var(--nq-green) !important;
    border-color: var(--nq-green) !important;
}
body[class^="plugin-orderclient-"] .nq-main .btn-success:hover,
body[class^="plugin-orderclient-"] .nq-main .btn-success:focus,
body[class^="plugin-orderclient-"] .nq-main .btn-success:active {
    color: #fff !important;
    background-color: var(--nq-teal) !important;
    border-color: var(--nq-teal) !important;
}
body[class^="plugin-orderclient-"] .nq-main .btn-secondary,
body[class^="plugin-orderclient-"] .nq-main .btn-light {
    color: var(--nq-teal) !important;
    background-color: #fff !important;
    border-color: var(--nq-teal) !important;
}
body[class^="plugin-orderclient-"] .nq-main .btn-secondary:hover,
body[class^="plugin-orderclient-"] .nq-main .btn-secondary:focus,
body[class^="plugin-orderclient-"] .nq-main .btn-secondary:active,
body[class^="plugin-orderclient-"] .nq-main .btn-light:hover,
body[class^="plugin-orderclient-"] .nq-main .btn-light:focus,
body[class^="plugin-orderclient-"] .nq-main .btn-light:active {
    color: #fff !important;
    background-color: var(--nq-teal) !important;
    border-color: var(--nq-teal) !important;
}
body[class^="plugin-orderclient-"] .package {
    border: 1px solid var(--nq-border);
    border-radius: 0;
    box-shadow: none;
}
body[class^="plugin-orderclient-"] .package .package-name,
body[class^="plugin-orderclient-"] .package .order {
    border-radius: 0;
}
body[class^="plugin-orderclient-"] .package > .card-header {
    color: var(--nq-teal);
    background: #f4fafa;
    border-bottom: 1px solid var(--nq-border);
}
body[class^="plugin-orderclient-"] .package.selected > .card-header {
    color: #fff;
    background: var(--nq-teal);
}
body[class^="plugin-orderclient-"] .package h4,
body[class^="plugin-orderclient-"] .section-title h3,
body[class^="plugin-orderclient-"] .order-listing h3 {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
}
body[class^="plugin-orderclient-"] .section-title h3,
body[class^="plugin-orderclient-"] .order-listing h3 {
    color: var(--nq-teal);
}
body[class^="plugin-orderclient-"] .package .order {
    background-color: #fff;
}
body[class^="plugin-orderclient-"] .order-listing .card {
    border-color: var(--nq-border);
    border-radius: 0;
}
body[class^="plugin-orderclient-"] .nq-main a:not(.btn) {
    color: var(--nq-teal);
}

/*
 * Visitor pages: knowledge base, ticket departments and 404. Same buttons, headings and links as
 * the order form. Blesta's theme sets button colours with !important, so those rules need it too.
 */
body[class^="plugin-support_managerclient-knowledgebase-"] .card-kb .btn-secondary,
body.client-404-index .nq-main .btn-secondary {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    color: #fff !important;
    background-color: var(--nq-green) !important;
    border-color: var(--nq-green) !important;
    box-shadow: none;
}
body[class^="plugin-support_managerclient-knowledgebase-"] .card-kb .btn-secondary:hover,
body[class^="plugin-support_managerclient-knowledgebase-"] .card-kb .btn-secondary:focus,
body.client-404-index .nq-main .btn-secondary:hover,
body.client-404-index .nq-main .btn-secondary:focus {
    color: #fff !important;
    background-color: var(--nq-teal) !important;
    border-color: var(--nq-teal) !important;
}
body.client-404-index .nq-main .btn-secondary {
    border-radius: 0;
}
body[class^="plugin-support_managerclient-knowledgebase-"] .section-title h3,
body.plugin-support_managerclient-client_tickets-departments .list-group-item h4 {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    color: var(--nq-teal);
}
body[class^="plugin-support_managerclient-knowledgebase-"] .nq-main a:not(.btn),
body.plugin-support_managerclient-client_tickets-departments .nq-main a:not(.btn) {
    color: var(--nq-teal);
}
body.plugin-support_managerclient-client_tickets-departments .list-group-item h4 {
    color: var(--nq-teal) !important;
}
body.plugin-support_managerclient-client_tickets-departments .card-blesta > .card-header {
    color: #fff;
    background: var(--nq-teal);
}

/* Login page (client_login.pdt): one centred box styled like nquare.pt */
.row.login {
    justify-content: center;
    padding-top: 64px;
}
.nq-login {
    max-width: 440px;
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.nq-login-title {
    margin: 0 0 8px;
    font-family: inherit;
    font-size: 34px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--nq-teal);
}
.nq-login-lead {
    margin: 0 0 28px;
    font-size: 16px;
    line-height: 26px;
    color: #1d3b45;
}
.nq-login-card {
    background: #fff;
    border: 1px solid var(--nq-border);
}
.nq-login-body {
    padding: 36px 36px 8px;
}
.nq-login-card label {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--nq-teal);
}
.nq-login-card .form-control {
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--nq-border);
    border-radius: 0;
    font-family: inherit;
    font-size: 16px;
    color: #1d3b45;
    box-shadow: none;
}
.nq-login-card .form-control:focus {
    border-color: var(--nq-green);
    box-shadow: 0 0 0 3px rgba(38, 209, 109, .15);
}
.nq-login-card .form-group {
    margin-bottom: 20px;
}
.nq-login-card .checkbox {
    margin: 4px 0 20px;
}
.nq-login-card .checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    color: #1d3b45;
}
.nq-login-card .checkbox input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--nq-green);
}
.nq-login-submit,
.nq-login-submit:hover,
.nq-login-submit:focus {
    height: 52px;
    border: 0;
    border-radius: 0;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}
.nq-login-submit {
    background: var(--nq-green);
}
.nq-login-submit:hover,
.nq-login-submit:focus {
    background: var(--nq-teal);
}
.nq-login-footer {
    padding: 18px 36px 32px;
    text-align: center;
}
.nq-login-footer a {
    font-size: 15px;
    color: var(--nq-teal);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.nq-login-footer a:hover,
.nq-login-footer a:focus {
    color: var(--nq-green);
}
.nq-login-signup {
    margin: 20px 0 0;
    font-size: 15px;
    text-align: center;
    color: #1d3b45;
}
.nq-login-signup a {
    font-weight: 500;
    color: var(--nq-teal);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.nq-login-signup a:hover,
.nq-login-signup a:focus {
    color: var(--nq-green);
}
@media (max-width: 575px) {
    .row.login {
        padding-top: 40px;
    }
    .nq-login-title {
        font-size: 30px;
    }
    .nq-login-body {
        padding: 24px 20px 4px;
    }
    .nq-login-footer {
        padding: 14px 20px 24px;
    }
}

/* Printing: only Blesta's content */
@media print {
    .nq-header,
    .nq-footer {
        display: none;
    }
    .nq-page {
        min-height: 0;
    }
    .nq-main {
        padding-bottom: 0;
    }
}

/* Tickets: no "Deixar comentários" button on closed tickets. Blesta has no setting for it and
   the plugin view cannot be overridden; the feedback page itself still exists. */
a[href*="/client_tickets/feedback/"] {
    display: none;
}
