/* ITP helpdesk - modern look for the public pages (ITP colours: #FF6600 + navy).
   Linked from header.inc.php only for index.php, open.php, view.php and login.php,
   so every other client page keeps mtheme.css as is. CSS only: no markup changes. */

:root {
    --itp-primary: #ff6600;
    --itp-primary-dark: #e05500;
    --itp-primary-soft: #fff1e6;
    --itp-ink: #0e1e38;
    --itp-muted: #5d6478;
    --itp-line: #e6e8f0;
    --itp-bg: #f6f7fb;
    --itp-danger: #d92d43;
    --itp-header-h: 84px;
    --itp-radius: 4px;
}

html { background: var(--itp-bg); }
body {
    color: var(--itp-ink);
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    /* white header strip with a hairline, drawn behind the logo row */
    background-color: var(--itp-bg);
    background-image: linear-gradient(#fff, #fff), linear-gradient(var(--itp-line), var(--itp-line));
    background-size: 100% var(--itp-header-h), 100% calc(var(--itp-header-h) + 1px);
    background-repeat: no-repeat;
}

/* ---------- Header: logo row + nav in one bar ---------- */
nav.navbar + .container > .row:first-child {
    height: var(--itp-header-h);
    display: flex;
    align-items: center;
}
#logo { display: inline-flex; align-items: center; }
#logo img { width: auto; height: 52px; margin: 0; }
#logo .valign-helper { display: none; }

.navbar.navbar-inverse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    min-height: var(--itp-header-h);
    margin: 0;
    background: transparent;
    border: 0;
    pointer-events: none;
}
.navbar.navbar-inverse > .container { pointer-events: none; }
.navbar.navbar-inverse > .container > * { pointer-events: auto; }

.welcome-user {
    color: var(--itp-muted) !important;
    font-weight: 500;
    padding-top: 0;
    margin: 0;
}
.head-menu > li > a {
    color: var(--itp-ink) !important;
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    padding: 9px 18px !important;
    margin-left: 6px;
    transition: background .15s, color .15s, box-shadow .15s;
}
.head-menu > li > a:hover,
.head-menu > li > a:focus,
.head-menu > li > a.active {
    background: var(--itp-primary-soft) !important;
    color: var(--itp-primary) !important;
}
.head-menu > li > a.new {
    background: var(--itp-primary) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(255, 102, 0, .28);
}
.head-menu > li > a.new:hover,
.head-menu > li > a.new:focus {
    background: var(--itp-primary-dark) !important;
    color: #fff !important;
}
.head-menu .flag { margin-top: 0; vertical-align: middle; }

.navbar-inverse .navbar-toggle {
    border: 1px solid var(--itp-line);
    border-radius: 4px;
    background: #fff;
}
.navbar-inverse .navbar-toggle .icon-bar { background: var(--itp-ink); }
.navbar-inverse .navbar-toggle:hover,
.navbar-inverse .navbar-toggle:focus { background: var(--itp-primary-soft); }

.navbar .error_bar,
.navbar .warning_bar,
.navbar .notice_bar {
    position: relative;
    border-radius: 4px;
    margin-top: 6px;
}

@media (min-width: 768px) {
    .navbar.navbar-inverse > .container {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        height: var(--itp-header-h);
    }
    .navbar.navbar-inverse > .container:before,
    .navbar.navbar-inverse > .container:after { display: none; }
    .navbar-inverse .navbar-header { order: 0; float: none; }
    .navbar-inverse .navbar-collapse { order: 1; padding-right: 0; }
    .head-menu { display: flex; align-items: center; margin-right: 0; }
    .head-menu > li { float: none; }
}

/* ---------- Page titles & messages ---------- */
nav.navbar + .container h1 {
    background: none;
    color: var(--itp-ink);
    padding: 0;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 40px 0 8px;
}
nav.navbar + .container > h1,
nav.navbar + .container > h1 + p {
    text-align: center;
}
nav.navbar + .container > h1 + p {
    color: var(--itp-muted);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}
nav.navbar + .container > .alert {
    border: 0;
    border-radius: var(--itp-radius);
    margin: 20px auto 0;
    max-width: 960px;
}

/* ---------- Cards (.well) ---------- */
.login-page { margin-top: 28px; }
.login-page .well {
    background: #fff;
    border: 1px solid var(--itp-line);
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(14, 30, 56, .07);
    padding: 32px;
    margin-bottom: 24px;
}

/* ---------- Inputs with icon (email, username, password, ticket no.) ---------- */
#clientLogin .input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin-bottom: 16px !important;
    background: #fff;
    border: 1.5px solid var(--itp-line);
    border-radius: var(--itp-radius);
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
#clientLogin .input-group:hover { border-color: #cfd3e3; }
#clientLogin .input-group:focus-within {
    border-color: var(--itp-primary);
    box-shadow: 0 0 0 4px rgba(255, 102, 0, .14);
}
#clientLogin .input-group-addon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    flex: 0 0 50px;
    padding: 0;
    background: transparent !important;
    border: 0;
    color: #9aa0b4 !important;
    font-size: 15px;
    transition: color .15s;
}
#clientLogin .input-group:focus-within .input-group-addon { color: var(--itp-primary) !important; }
#clientLogin .input-group .form-control {
    flex: 1;
    height: 52px !important;
    padding: 0 16px 0 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    font-size: 15px;
    color: var(--itp-ink);
}
#clientLogin .input-group .form-control::placeholder { color: #9aa0b4; }
#clientLogin .input-group .form-control:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 40px #fff inset;
    -webkit-text-fill-color: var(--itp-ink);
}

/* ---------- Primary button ---------- */
#clientLogin input.btn-primary {
    height: 52px;
    margin-top: 8px;
    border: 0;
    border-radius: var(--itp-radius);
    background: var(--itp-primary);
    box-shadow: 0 10px 22px rgba(255, 102, 0, .28);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .01em;
    transition: background .15s, box-shadow .15s, transform .15s;
}
#clientLogin input.btn-primary:hover,
#clientLogin input.btn-primary:focus {
    background: var(--itp-primary-dark);
    box-shadow: 0 14px 28px rgba(255, 102, 0, .34);
    transform: translateY(-1px);
}
#clientLogin input.btn-primary:active { transform: none; }
#clientLogin > strong,
#clientLogin > div > strong { color: var(--itp-danger); display: block; }
#clientLogin > strong:not(:empty),
#clientLogin > div > strong:not(:empty) { margin-bottom: 12px; }

/* ---------- Sign in page (open.php / login.php) ---------- */
.login-only { margin-top: 24px; }
.login-only #loginbox { float: none; max-width: 460px; margin: 0 auto; }
.login-only #clientLogin { margin-bottom: 0; }

/* Google / Microsoft buttons */
#clientLogin > div[style*="flex"] {
    flex-direction: column;
    gap: 10px;
    padding: 0 !important;
    margin-top: 22px;
}
#clientLogin > div[style*="flex"]:not(:empty):before {
    content: "or";
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9aa0b4;
    font-size: 13px;
    margin-bottom: 4px;
    background: linear-gradient(var(--itp-line), var(--itp-line)) left center / calc(50% - 22px) 1px no-repeat,
                linear-gradient(var(--itp-line), var(--itp-line)) right center / calc(50% - 22px) 1px no-repeat;
    justify-content: center;
}
.external-auth { width: 100%; margin: 0; float: none; }
.external-auth a.external-sign-in {
    display: block;
    text-decoration: none !important;
}
.external-auth .external-auth-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0 16px;
    background: #fff;
    border: 1.5px solid var(--itp-line);
    border-radius: var(--itp-radius);
    color: var(--itp-ink);
    font-size: 15px;
    font-weight: 600;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.external-auth a:hover .external-auth-box,
.external-auth a:focus .external-auth-box {
    border-color: var(--itp-primary);
    background: #fffaf5;
    box-shadow: 0 6px 16px rgba(14, 30, 56, .06);
}
.external-auth .external-auth-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    border: 0;
    background: center / contain no-repeat;
}
.external-auth .external-auth-icon i { display: none; }
.external-auth .external-auth-name { padding: 0; margin: 0; color: inherit; font-weight: inherit; }
.external-auth a[title*="Google"] .external-auth-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.6 20.1H42V20H24v8h11.3C33.7 32.7 29.2 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.3-.1-2.6-.4-3.9z'/%3E%3Cpath fill='%23FF3D00' d='M6.3 14.7l6.6 4.8C14.7 15.1 19 12 24 12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 16.3 4 9.7 8.3 6.3 14.7z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.2 0 9.9-2 13.4-5.2l-6.2-5.2C29.2 35.1 26.7 36 24 36c-5.2 0-9.6-3.3-11.3-8l-6.5 5C9.5 39.6 16.2 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.6 20.1H42V20H24v8h11.3c-.8 2.2-2.2 4.2-4.1 5.6l6.2 5.2C37 39.2 44 34 44 24c0-1.3-.1-2.6-.4-3.9z'/%3E%3C/svg%3E");
}
.external-auth a[title*="Microsoft"] .external-auth-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Crect x='1' y='1' width='9' height='9' fill='%23f25022'/%3E%3Crect x='11' y='1' width='9' height='9' fill='%237fba00'/%3E%3Crect x='1' y='11' width='9' height='9' fill='%2300a4ef'/%3E%3Crect x='11' y='11' width='9' height='9' fill='%23ffb900'/%3E%3C/svg%3E");
}

/* ---------- Check ticket status (view.php) ---------- */
.login-page.row:not(.login-only) {
    display: flex;
    flex-wrap: wrap;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}
.login-page.row:not(.login-only) > [class*="col-"] { display: flex; }
.login-page.row:not(.login-only) .well { width: 100%; }
.login-page.row:not(.login-only) > [class*="col-"]:last-child .well {
    background: linear-gradient(160deg, #fff6ef 0%, #fff 70%);
    box-shadow: none;
    display: flex;
    align-items: center;
}
.login-page .list-unstyled { margin: 0; line-height: 1.6 !important; color: var(--itp-muted); }
.login-page .list-unstyled li {
    position: relative;
    padding-left: 40px;
    margin: 0 0 18px;
}
.login-page .list-unstyled li:last-child { margin-bottom: 0; }
.login-page .list-unstyled li .fa-check {
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--itp-primary-soft);
    color: var(--itp-primary) !important;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-page .list-unstyled a,
#clientLogin a { color: var(--itp-primary); font-weight: 600; }
.login-page .list-unstyled a:hover,
#clientLogin a:hover { color: var(--itp-primary-dark); }

/* ---------- New ticket form (open.php, signed-in users) ---------- */
#ticketForm {
    background: #fff;
    border: 1px solid var(--itp-line);
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(14, 30, 56, .07);
    padding: 32px;
    margin: 24px 0 32px;
}
#ticketForm hr { border-color: var(--itp-line); }
#ticketForm .form-control:not(.richtext) {
    border: 1.5px solid var(--itp-line);
    border-radius: 4px;
    box-shadow: none;
    min-height: 44px;
    transition: border-color .15s, box-shadow .15s;
}
#ticketForm .form-control:not(.richtext):focus {
    border-color: var(--itp-primary);
    box-shadow: 0 0 0 4px rgba(255, 102, 0, .14);
}
#ticketForm .buttons { margin: 8px 0 0; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
#ticketForm .buttons .btn {
    height: 48px;
    padding: 0 26px;
    border-radius: var(--itp-radius);
    font-weight: 600;
    font-size: 15px;
    border: 0;
    transition: background .15s, box-shadow .15s;
}
#ticketForm .buttons .btn-success {
    background: var(--itp-primary);
    box-shadow: 0 10px 22px rgba(255, 102, 0, .28);
}
#ticketForm .buttons .btn-success:hover { background: var(--itp-primary-dark); }
#ticketForm .buttons .btn-warning,
#ticketForm .buttons .btn-danger {
    background: #fff;
    box-shadow: inset 0 0 0 1.5px var(--itp-line);
}
#ticketForm .buttons .btn-warning { color: var(--itp-ink) !important; }
#ticketForm .buttons .btn-danger { color: var(--itp-danger) !important; }
#ticketForm .buttons .btn-warning:hover,
#ticketForm .buttons .btn-danger:hover { background: var(--itp-bg); }

/* ---------- Footer at the bottom of the screen when the page is short ---------- */
body.itp-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body.itp-page > .container { width: 100%; }
@media (min-width: 768px) { body.itp-page > .container { max-width: 750px; } }
@media (min-width: 992px) { body.itp-page > .container { max-width: 970px; } }
@media (min-width: 1200px) { body.itp-page > .container { max-width: 1170px; } }
.itp-page:not(.itp-index) nav.navbar + .container { padding-bottom: 40px; }
.itp-main { display: block; width: 100%; }
.itp-page .itp-footer { margin-top: auto; }

/* ---------- Language switch (SQ | EN) ---------- */
.head-menu > li.itp-lang {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    margin-right: 10px;
    background: #fff;
    border: 1px solid var(--itp-line);
    border-radius: 4px;
}
.head-menu > li.itp-lang > a {
    padding: 5px 11px !important;
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.4;
    color: var(--itp-muted) !important;
    border-radius: 4px;
    box-shadow: none;
}
.head-menu > li.itp-lang > a.on,
.head-menu > li.itp-lang > a.on:hover,
.head-menu > li.itp-lang > a.on:focus {
    background: var(--itp-primary) !important;
    color: #fff !important;
}
.head-menu > li.itp-lang > a:not(.on):hover,
.head-menu > li.itp-lang > a:not(.on):focus {
    background: var(--itp-primary-soft) !important;
    color: var(--itp-primary) !important;
}
html[lang="sq"] #clientLogin > div[style*="flex"]:not(:empty):before { content: "ose"; }

/* ---------- Footer (from itp-ks.eu, in the helpdesk colours) ---------- */
.itp-footer {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, .84);
    font-size: 14px;
    line-height: 1.6;
    /* ITP navy, as on itp-prizren.com */
    background:
        radial-gradient(900px 320px at 0% 0%, rgba(255, 102, 0, .35), transparent 60%),
        radial-gradient(800px 300px at 100% 100%, rgba(0, 214, 201, .08), transparent 60%),
        linear-gradient(135deg, #0e1e38 0%, #0b1526 100%);
}
.itp-footer a { color: #fff; }
.itp-footer-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr 1.25fr;
    gap: 40px;
    padding: 56px 0 44px;
}
.itp-footer-logo { display: inline-block; }
.itp-footer-logo img { display: block; width: auto; height: 54px; filter: brightness(0) invert(1); } /* all-white logo on the navy footer */
.itp-footer-brand p { margin: 18px 0 22px; max-width: 300px; }
.itp-social { display: flex; flex-wrap: wrap; gap: 10px; }
.itp-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 15px;
    text-decoration: none !important;
    transition: background .15s, border-color .15s, transform .15s;
}
.itp-social a:hover,
.itp-social a:focus {
    background: #fff;
    border-color: #fff;
    color: var(--itp-primary);
    transform: translateY(-2px);
}
.itp-footer-col h4 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}
.itp-footer-col h5 {
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
}
.itp-footer-col p {
    display: flex;
    gap: 10px;
    margin: 16px 0 0;
}
.itp-footer-col p + p { margin-top: 10px; }
.itp-footer-col p i {
    flex: 0 0 14px;
    width: 14px;
    margin-top: 4px;
    text-align: center;
    color: #ff8a3d;
}
.itp-footer-col a:hover,
.itp-footer-col a:focus { color: #ff8a3d; }
.itp-footer-map {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 12px 30px rgba(20, 10, 90, .25);
    align-self: start;
}
.itp-footer-map iframe { display: block; width: 100%; height: 200px; border: 0; }
.itp-footer-bottom {
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, .16);
    background: rgba(20, 10, 90, .14);
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, .75);
}

@media (max-width: 991px) {
    .itp-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 767px) {
    .itp-footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 32px; }
    .head-menu > li.itp-lang { display: inline-flex; margin: 6px 0 10px 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .itp-social a { transition: none; }
    .itp-social a:hover { transform: none; }
}

/* ---------- Short desktop screens: keep everything on one screen ---------- */
@media (min-width: 768px) and (max-height: 800px) {
    :root { --itp-header-h: 72px; }
    #logo img { height: 46px; }
    nav.navbar + .container h1 { margin-top: 24px; font-size: 26px; }
    .login-page, .login-only { margin-top: 18px; }
    .login-page .well { padding: 24px 28px; }
    #clientLogin .input-group { margin-bottom: 12px !important; }
    #clientLogin .input-group .form-control { height: 46px !important; }
    #clientLogin input.btn-primary { height: 46px; }
    .external-auth .external-auth-box { height: 44px; }
    #clientLogin > div[style*="flex"] { margin-top: 16px; gap: 8px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    :root { --itp-header-h: 68px; }
    #logo img { height: 40px; }
    .navbar.navbar-inverse > .container > .navbar-header { margin: 0 !important; pointer-events: none; }
    .navbar-inverse .navbar-toggle { pointer-events: auto; margin-top: 16px; margin-right: 15px; }
    .welcome-user { display: none !important; }
    .navbar-inverse .navbar-collapse {
        background: #fff;
        border: 1px solid var(--itp-line) !important;
        border-radius: 4px;
        box-shadow: 0 16px 40px rgba(14, 30, 56, .12);
        margin: 4px 15px 0 !important;
        padding: 8px;
        max-height: none;
    }
    .head-menu { margin: 0; }
    .head-menu > li > a { margin: 2px 0; }
    nav.navbar + .container h1 { font-size: 24px; margin-top: 28px; }
    .login-page .well { padding: 24px 20px; border-radius: 6px; }
    #ticketForm { padding: 22px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    #clientLogin input.btn-primary { transition: none; }
    #clientLogin input.btn-primary:hover { transform: none; }
}

/* ---------- Footer bottom bar: copyright + social icons ---------- */
.itp-footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.itp-footer-bottom .itp-social { gap: 8px; }
.itp-footer-bottom .itp-social a { width: 32px; height: 32px; border-radius: 4px; font-size: 13px; }
@media (max-width: 767px) {
    .itp-footer-bottom .container { flex-direction: column-reverse; justify-content: center; }
}

/* ---------- Compact desktop: the whole page, footer included, on one screen ---------- */
@media (min-width: 992px) {
    :root { --itp-header-h: 68px; }
    #logo img { height: 44px; }
    nav.navbar + .container h1 { margin: 22px 0 4px; font-size: 26px; }
    nav.navbar + .container > h1 + p { font-size: 14px; }
    .login-page, .login-only { margin-top: 16px; }
    .login-page .well { padding: 22px 26px; margin-bottom: 0; border-radius: 6px; }
    #clientLogin .input-group { margin-bottom: 10px !important; }
    #clientLogin .input-group .form-control { height: 44px !important; }
    #clientLogin input.btn-primary { height: 44px; margin-top: 4px; font-size: 15px; }
    #clientLogin > div[style*="flex"] { margin-top: 14px; gap: 8px; }
    .external-auth .external-auth-box { height: 42px; }
    .itp-page:not(.itp-index) nav.navbar + .container { padding-bottom: 24px; }

    .itp-footer { font-size: 13px; line-height: 1.5; }
    .itp-footer-grid {
        grid-template-columns: 1fr 1.1fr 1.1fr .95fr;
        gap: 28px;
        padding: 22px 0 16px;
        align-items: start;
    }
    .itp-footer-logo img { height: 36px; }
    .itp-footer-brand p { margin: 10px 0 0; max-width: 270px; }
    .itp-footer-col h4 { font-size: 13.5px; margin-bottom: 2px; }
    .itp-footer-col h5 { font-size: 12.5px; }
    .itp-footer-col p { margin-top: 8px; }
    .itp-footer-col p + p { margin-top: 4px; }
    .itp-footer-map iframe { height: 118px; }
    .itp-footer-bottom { padding: 8px 0; font-size: 12.5px; }
}

/* Compact sign-in card: Google and Microsoft side by side */
@media (min-width: 992px) {
    .login-only { margin-top: 10px; }
    .login-only #loginbox { max-width: 540px; }
    .login-only .well { padding: 18px 24px; }
    .itp-open nav.navbar + .container > h1,
    .itp-login nav.navbar + .container > h1 { margin-top: 16px; }
    #clientLogin .input-group .form-control { height: 42px !important; }
    #clientLogin input.btn-primary { height: 42px; }
    #clientLogin > div[style*="flex"] { flex-direction: row; flex-wrap: wrap; margin-top: 10px; }
    #clientLogin > div[style*="flex"]:not(:empty):before { flex: 0 0 100%; margin-bottom: 0; }
    #clientLogin > div[style*="flex"] > .external-auth { flex: 1 1 0; width: auto; min-width: 0; }
    .external-auth .external-auth-box { gap: 8px; padding: 0 10px; font-size: 14px; }
}
.itp-footer-bottom .container:before,
.itp-footer-bottom .container:after { display: none; }

/* Home page: the cards already offer "Open a New Ticket", so the header button is not repeated */
.itp-index .head-menu > li > a.new { display: none !important; }

/* Footer quick links (in place of the map) */
.itp-footer-links ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 6px 22px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}
.itp-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, .85);
    text-decoration: none !important;
    transition: color .15s;
}
.itp-footer-links a i { font-size: 11px; color: #ff8a3d; transition: transform .15s; }
.itp-footer-links a:hover,
.itp-footer-links a:focus { color: #fff; }
.itp-footer-links a:hover i { transform: translateX(2px); }
.itp-footer-col p a { color: #fff; }

/* Footer: three columns (brand, address, contact) */
.itp-footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
@media (max-width: 991px) { .itp-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .itp-footer-grid { grid-template-columns: 1fr; } }

/* ITP: the old theme adds space under the logo row */
nav.navbar + .container > .row:first-child { margin-bottom: 0; }
/* Home page: the cards already offer these, so the header links are not repeated */
.itp-index .head-menu > li > a.home,
.itp-index .head-menu > li > a.status { display: none !important; }
