/* jfpage — público + área reservada */

/* Títulos em formulários do painel: visual em maiúsculas enquanto se escreve */
.jf-input-titulo-maiusculas {
    text-transform: uppercase;
}

.jf-btn-primary {
    background-color: var(--jf-primary, #1b4332);
    border-color: var(--jf-primary, #1b4332);
    color: #fff;
}
.jf-btn-primary:hover {
    filter: brightness(1.08);
    color: #fff;
}

.jf-login-page {
    min-height: 100vh;
    background: #fff;
}
.jf-login-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.jf-login-card {
    border-radius: 1rem;
}
.jf-login-brand-logo {
    max-width: 100%;
    height: auto;
}

.jf-public-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.jf-hero {
    background: linear-gradient(135deg, var(--jf-hero-from, #2d6a4f), var(--jf-hero-to, #1b4332));
}
.jf-public-footer {
    background: var(--jf-footer-bg, #1b4332);
}

/* —— Site público: navbar, carrossel, faixas, serviços digitais, rodapé —— */

.jf-navbar .jf-logo-text,
.jf-dash-topbar .jf-logo-text {
    font-size: 1.1rem;
    line-height: 1.25;
}
.jf-navbar .jf-logo-text strong,
.jf-dash-topbar .jf-logo-text strong {
    font-size: 1.7rem;
    font-weight: 700;
}

@media (max-width: 576px) {
    .jf-brand {
        flex-direction: column;
        align-items: flex-start !important;
    }
}

/* Mobile / tablet: hamburger fixo no canto superior direito (Bootstrap usa flex !important no .container) */
@media (max-width: 991.98px) {
    .jf-navbar > .container,
    .jf-navbar > .container-fluid {
        position: relative;
    }
    .jf-navbar .navbar-brand {
        margin-right: 0;
        min-width: 0;
        max-width: 100%;
        padding-top: 0.25rem;
        /* reserva espaço para o botão absoluto não sobrepor o texto */
        padding-right: 3.5rem;
    }
    .jf-navbar .navbar-toggler {
        position: absolute;
        top: 0.5rem;
        right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
        z-index: 10;
        margin: 0;
        padding: 0.45rem 0.55rem;
        border: 1px solid #ced4da;
        border-radius: 0.375rem;
        background-color: #fff;
    }
    .jf-navbar .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
    }
}

.jf-navbar .nav-link:hover,
.jf-navbar .nav-link:focus {
    color: #0d6efd !important;
}
.jf-navbar .nav-link {
    font-size: 0.95rem;
}
.jf-navbar .dropdown-menu {
    min-width: 16rem;
    max-width: calc(100vw - 1rem);
}
.jf-navbar .dropdown-menu .dropdown-item {
    font-size: 0.92rem;
    white-space: normal;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (min-width: 992px) {
    .jf-navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
    .jf-navbar .nav-item.dropdown:last-child > .dropdown-menu {
        right: 0;
        left: auto;
    }
}

.jf-navbar .dropdown-item:hover,
.jf-navbar .dropdown-item:focus {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd !important;
}

.jf-carousel-container {
    max-width: 1320px;
    margin-top: 2rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

@media (max-width: 991.98px) {
    .jf-carousel-container {
        max-width: none;
        padding-left: 0;
        padding-right: 0;
        margin-top: 1rem;
    }
}

.jf-carousel {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
}

.jf-carousel-img {
    max-height: 840px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .jf-carousel-img {
        max-height: 640px;
    }
}

.jf-carousel-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.jf-carousel-content {
    position: absolute;
    left: 0;
    right: 0;
    top: 66%;
    transform: translateY(-50%);
    padding-left: calc(var(--bs-gutter-x, 0.75rem) + 0.75rem);
    padding-right: 0.75rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

@media (min-width: 992px) {
    .jf-carousel-content {
        padding-left: 3rem;
    }
}

.jf-carousel-line-small {
    font-size: 1.1rem;
    font-weight: 500;
}

.jf-carousel-line-main {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
}

.jf-carousel-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .jf-carousel-line-main {
        font-size: 1.45rem;
    }
    .jf-carousel-line-small {
        font-size: 0.95rem;
    }
    .jf-carousel-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .jf-carousel-line-main {
        font-size: 1.35rem;
    }
    .jf-carousel-line-small,
    .jf-carousel-subtitle {
        font-size: 0.88rem;
    }
}

.jf-quick-menu {
    background: transparent;
}

.jf-quick-item {
    background-color: #f1f3f5;
    border-radius: 0.375rem;
}

.jf-quick-item:hover {
    background-color: #e9ecef;
}

.jf-quick-title,
.jf-quick-icon {
    color: var(--jf-quick-accent, var(--jf-primary));
}


.jf-cards-strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #c1c7cd rgba(0, 0, 0, 0.06);
}

.jf-cards-strip__item {
    scroll-snap-align: start;
}

/* Secções «Últimas Notícias» e «Galeria»: largura fixa do cartão + scroll horizontal igual */
.jf-cards-strip--equal .jf-cards-strip__item {
    flex: 0 0 min(300px, 85vw);
    width: min(300px, 85vw);
}

.jf-cards-strip__thumb-wrap {
    height: 200px;
    overflow: hidden;
    border-radius: 0.375rem 0.375rem 0 0;
}

.jf-cards-strip__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jf-cards-strip::-webkit-scrollbar {
    height: 6px;
}
.jf-cards-strip::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.06);
    border-radius: 3px;
}
.jf-cards-strip::-webkit-scrollbar-thumb {
    background: #c1c7cd;
    border-radius: 3px;
}
.jf-cards-strip::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

.jf-ds-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    min-height: 420px;
    flex: 1;
}

@media (min-width: 992px) {
    .jf-ds-grid {
        grid-template-rows: repeat(2, 1fr);
    }
}

.jf-ds-card {
    display: flex;
    flex-direction: column;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    min-height: 0;
}

.jf-ds-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

.jf-ds-card-header {
    min-height: 3rem;
}

.jf-ds-card-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jf-ds-map {
    min-height: 420px;
    background: #e9ecef;
}

.jf-ds-map.jf-ds-map--embed {
    padding: 0;
    overflow: hidden;
    line-height: 0;
}

.jf-ds-map.jf-ds-map--embed iframe {
    display: block;
    width: 100%;
    min-height: 420px;
    height: 420px;
    border: 0;
}

@media (min-width: 992px) {
    .jf-ds-map.jf-ds-map--embed iframe {
        height: 100%;
        min-height: 420px;
    }
}

.jf-leaflet-marker span {
    display: block;
    width: 14px;
    height: 14px;
    background: var(--jf-primary);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.jf-footer {
    background-color: var(--jf-footer-bg, #1b4332);
}

/* Com imagem de fundo: só a foto — sem cor de tema por baixo nem véu CSS. */
.jf-footer--has-bg-image {
    background-color: transparent;
}

.jf-footer-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.jf-footer--has-bg-image .jf-footer-bg {
    filter: none;
}

.jf-footer-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(105deg, rgba(15, 60, 40, 0.92) 0%, rgba(30, 100, 70, 0.75) 45%, rgba(45, 120, 85, 0.55) 100%);
}

.jf-footer-deco {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 120px;
    height: 8px;
    background: linear-gradient(90deg, #f4d03f, #2d8659);
    border-radius: 0 0 4px 0;
    opacity: 0.95;
    pointer-events: none;
}

.jf-footer-inner {
    z-index: 3;
}

.jf-footer-place {
    font-size: 1.25rem;
}

.jf-footer-social {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
}
.jf-footer-social:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.jf-login-brand-name {
    font-size: 1.25rem;
}

.jf-login-reserved-intro {
    margin-top: 2.25rem;
    padding-top: 0.5rem;
}

/* Dashboard */
.jf-dash-page {
    min-height: 100vh;
    background: var(--jf-bg, #f8f9fa);
}
.jf-dash-layout {
    min-height: calc(100vh - 72px);
    align-items: stretch;
}
.jf-dash-topbar {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1030;
}
.jf-dash-topbar-user-photo {
    width: var(--jf-logo-height, 80px);
    height: var(--jf-logo-height, 80px);
    object-fit: cover;
    flex-shrink: 0;
}
.jf-dash-topbar-user-photo--placeholder {
    font-size: calc(var(--jf-logo-height, 80px) * 0.36);
    font-weight: 700;
    line-height: 1;
}
.jf-dash-topbar-user-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #212529;
    max-width: 16rem;
}
.jf-dash-sidebar {
    width: 200px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    min-height: calc(100vh - 72px);
}

.jf-dash-offcanvas {
    --bs-offcanvas-width: min(200px, 88vw);
}
.jf-dash-side-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
}
.jf-dash-side-link:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--jf-primary, #1b4332);
}
.jf-dash-side-link.active {
    background: rgba(27, 67, 50, 0.12);
    color: var(--jf-primary, #1b4332);
    font-weight: 600;
}
.jf-dash-side-group {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.jf-dash-side-group-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #6c757d;
    padding: 0.35rem 0.75rem 0.2rem;
    pointer-events: none;
}
.jf-dash-side-sublink {
    padding-left: 1.35rem;
    font-size: 0.85rem;
}
.jf-dash-main {
    background: var(--jf-bg, #f8f9fa);
}
.jf-dash-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.04);
}
.jf-dash-card-title {
    font-size: 1.15rem;
    font-weight: 600;
}
.jf-dash-card-sub {
    color: #6c757d;
    font-size: 0.875rem;
}
.jf-dash-avatar {
    width: 36px;
    height: 36px;
    object-fit: cover;
}
.jf-dash-btn-icon {
    padding: 0.2rem 0.45rem;
    line-height: 1;
}

/* Apagar utilizador: contorno vermelho vivo */
.jf-dash-btn-delete {
    --jf-delete-red: #ff003f;
    --jf-delete-red-hi: #ff4d73;
    --jf-delete-red-lo: #c40032;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 3px solid var(--jf-delete-red);
    border-color: var(--jf-delete-red-hi) var(--jf-delete-red-lo) var(--jf-delete-red-lo)
        var(--jf-delete-red-hi);
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 42%, #ececec 100%);
    color: #808080;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -2px 6px rgba(0, 0, 0, 0.06),
        0 0 0 1px var(--jf-delete-red-lo),
        0 3px 10px rgba(255, 0, 63, 0.35),
        0 5px 14px rgba(255, 0, 63, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, color 0.12s ease,
        filter 0.12s ease, border-color 0.12s ease;
}
.jf-dash-btn-delete .bi {
    font-size: 0.82rem;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.85)) drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.1));
}
.jf-dash-btn-delete:hover {
    color: #5a5a5a;
    border-color: #ff6b8a var(--jf-delete-red-lo) #a30028 #ff6b8a;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 42%, #eeeeee 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -2px 7px rgba(0, 0, 0, 0.07),
        0 0 0 1px var(--jf-delete-red-lo),
        0 4px 14px rgba(255, 0, 63, 0.45),
        0 6px 20px rgba(255, 0, 63, 0.2);
    transform: translateY(-1px);
}
.jf-dash-btn-delete:active {
    transform: translateY(1px);
    border-color: var(--jf-delete-red-lo) var(--jf-delete-red-hi) var(--jf-delete-red-hi)
        var(--jf-delete-red-lo);
    background: linear-gradient(180deg, #f5f5f5 0%, #ebebeb 55%, #e4e4e4 100%);
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(0, 0, 0, 0.05),
        0 0 0 1px var(--jf-delete-red),
        0 2px 6px rgba(255, 0, 63, 0.3);
}
.jf-dash-btn-delete:focus {
    outline: none;
}
.jf-dash-btn-delete:focus-visible {
    outline: 3px solid rgba(255, 0, 63, 0.55);
    outline-offset: 2px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -2px 6px rgba(0, 0, 0, 0.06),
        0 0 0 1px var(--jf-delete-red-lo),
        0 3px 10px rgba(255, 0, 63, 0.35),
        0 5px 14px rgba(255, 0, 63, 0.15);
}

/* Repor palavra-passe: mesmo relevo, contorno amarelo vivo */
.jf-dash-btn-reset-pass {
    --jf-pass-yellow: #ffdd00;
    --jf-pass-yellow-hi: #fff59d;
    --jf-pass-yellow-lo: #e6c200;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 3px solid var(--jf-pass-yellow);
    border-color: var(--jf-pass-yellow-hi) var(--jf-pass-yellow-lo) var(--jf-pass-yellow-lo)
        var(--jf-pass-yellow-hi);
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 42%, #ececec 100%);
    color: #808080;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -2px 6px rgba(0, 0, 0, 0.06),
        0 0 0 1px var(--jf-pass-yellow-lo),
        0 3px 10px rgba(255, 221, 0, 0.45),
        0 5px 14px rgba(255, 221, 0, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, color 0.12s ease,
        filter 0.12s ease, border-color 0.12s ease;
}
.jf-dash-btn-reset-pass .bi {
    font-size: 0.82rem;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.85)) drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.1));
}
.jf-dash-btn-reset-pass:hover {
    color: #5a5a5a;
    border-color: #fff9c4 var(--jf-pass-yellow-lo) #c9a500 #fff9c4;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 42%, #eeeeee 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -2px 7px rgba(0, 0, 0, 0.07),
        0 0 0 1px var(--jf-pass-yellow-lo),
        0 4px 14px rgba(255, 221, 0, 0.55),
        0 6px 20px rgba(255, 221, 0, 0.28);
    transform: translateY(-1px);
}
.jf-dash-btn-reset-pass:active {
    transform: translateY(1px);
    border-color: var(--jf-pass-yellow-lo) var(--jf-pass-yellow-hi) var(--jf-pass-yellow-hi)
        var(--jf-pass-yellow-lo);
    background: linear-gradient(180deg, #f5f5f5 0%, #ebebeb 55%, #e4e4e4 100%);
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(0, 0, 0, 0.05),
        0 0 0 1px var(--jf-pass-yellow),
        0 2px 6px rgba(255, 221, 0, 0.4);
}
.jf-dash-btn-reset-pass:focus {
    outline: none;
}
.jf-dash-btn-reset-pass:focus-visible {
    outline: 3px solid rgba(255, 215, 0, 0.75);
    outline-offset: 2px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -2px 6px rgba(0, 0, 0, 0.06),
        0 0 0 1px var(--jf-pass-yellow-lo),
        0 3px 10px rgba(255, 221, 0, 0.45),
        0 5px 14px rgba(255, 221, 0, 0.22);
}

/* Ciclo estado: mesmo formato que repor palavra-passe, contorno cinza metálico */
.jf-dash-btn-ciclo-estado {
    --jf-metal: #9aa3ad;
    --jf-metal-hi: #d4dbe3;
    --jf-metal-lo: #5c6572;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 3px solid var(--jf-metal);
    border-color: var(--jf-metal-hi) var(--jf-metal-lo) var(--jf-metal-lo) var(--jf-metal-hi);
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 42%, #ececec 100%);
    color: #808080;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -2px 6px rgba(0, 0, 0, 0.06),
        0 0 0 1px var(--jf-metal-lo),
        0 3px 10px rgba(92, 101, 114, 0.38),
        0 5px 14px rgba(92, 101, 114, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, color 0.12s ease,
        filter 0.12s ease, border-color 0.12s ease;
}
.jf-dash-btn-ciclo-estado .bi {
    font-size: 0.82rem;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.85)) drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.1));
}
.jf-dash-btn-ciclo-estado:hover {
    color: #5a5a5a;
    border-color: #e8eef5 var(--jf-metal-lo) #3d454f #e8eef5;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 42%, #eeeeee 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -2px 7px rgba(0, 0, 0, 0.07),
        0 0 0 1px var(--jf-metal-lo),
        0 4px 14px rgba(92, 101, 114, 0.48),
        0 6px 20px rgba(92, 101, 114, 0.26);
    transform: translateY(-1px);
}
.jf-dash-btn-ciclo-estado:active {
    transform: translateY(1px);
    border-color: var(--jf-metal-lo) var(--jf-metal-hi) var(--jf-metal-hi) var(--jf-metal-lo);
    background: linear-gradient(180deg, #f5f5f5 0%, #ebebeb 55%, #e4e4e4 100%);
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(0, 0, 0, 0.05),
        0 0 0 1px var(--jf-metal),
        0 2px 6px rgba(92, 101, 114, 0.35);
}
.jf-dash-btn-ciclo-estado:focus {
    outline: none;
}
.jf-dash-btn-ciclo-estado:focus-visible {
    outline: 3px solid rgba(120, 130, 145, 0.55);
    outline-offset: 2px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -2px 6px rgba(0, 0, 0, 0.06),
        0 0 0 1px var(--jf-metal-lo),
        0 3px 10px rgba(92, 101, 114, 0.38),
        0 5px 14px rgba(92, 101, 114, 0.2);
}

.jf-dash-btn-ciclo-estado:disabled,
.jf-dash-btn-delete:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
    filter: grayscale(0.2);
}

/* Editar perfil (lista): mesmo formato que repor palavra-passe, contorno azul vivo */
.jf-dash-btn-edit-perfil {
    --jf-edit-blue: #0088ff;
    --jf-edit-blue-hi: #5eb8ff;
    --jf-edit-blue-lo: #0066cc;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 3px solid var(--jf-edit-blue);
    border-color: var(--jf-edit-blue-hi) var(--jf-edit-blue-lo) var(--jf-edit-blue-lo)
        var(--jf-edit-blue-hi);
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 42%, #ececec 100%);
    color: #808080;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -2px 6px rgba(0, 0, 0, 0.06),
        0 0 0 1px var(--jf-edit-blue-lo),
        0 3px 10px rgba(0, 136, 255, 0.45),
        0 5px 14px rgba(0, 136, 255, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
    -webkit-appearance: none;
    appearance: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, color 0.12s ease,
        filter 0.12s ease, border-color 0.12s ease;
}
.jf-dash-btn-edit-perfil .bi {
    font-size: 0.82rem;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.85)) drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.1));
}
.jf-dash-btn-edit-perfil:hover {
    color: #5a5a5a;
    text-decoration: none;
    border-color: #7cc8ff var(--jf-edit-blue-lo) #004a99 #7cc8ff;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 42%, #eeeeee 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -2px 7px rgba(0, 0, 0, 0.07),
        0 0 0 1px var(--jf-edit-blue-lo),
        0 4px 14px rgba(0, 136, 255, 0.55),
        0 6px 20px rgba(0, 136, 255, 0.28);
    transform: translateY(-1px);
}
.jf-dash-btn-edit-perfil:active {
    transform: translateY(1px);
    border-color: var(--jf-edit-blue-lo) var(--jf-edit-blue-hi) var(--jf-edit-blue-hi)
        var(--jf-edit-blue-lo);
    background: linear-gradient(180deg, #f5f5f5 0%, #ebebeb 55%, #e4e4e4 100%);
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(0, 0, 0, 0.05),
        0 0 0 1px var(--jf-edit-blue),
        0 2px 6px rgba(0, 136, 255, 0.4);
}
.jf-dash-btn-edit-perfil:focus {
    outline: none;
}
.jf-dash-btn-edit-perfil:focus-visible {
    outline: 3px solid rgba(0, 136, 255, 0.65);
    outline-offset: 2px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -2px 6px rgba(0, 0, 0, 0.06),
        0 0 0 1px var(--jf-edit-blue-lo),
        0 3px 10px rgba(0, 136, 255, 0.45),
        0 5px 14px rgba(0, 136, 255, 0.22);
}

/* Tipo de utilizador: mesmo relevo que botões da lista; master = azul vivo, demais = verde vivo */
.jf-dash-tipo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.35rem;
    min-width: 5.35rem;
    max-width: 5.35rem;
    height: 30px;
    min-height: 30px;
    padding: 0 4px;
    border: 3px solid transparent;
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 42%, #ececec 100%);
    color: #000;
    font-weight: 800;
    font-size: 0.56rem;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    vertical-align: middle;
}
.jf-dash-tipo-badge--master {
    --jf-tipo-m-hi: #5eb8ff;
    --jf-tipo-m-lo: #0066cc;
    border-color: var(--jf-tipo-m-hi) var(--jf-tipo-m-lo) var(--jf-tipo-m-lo) var(--jf-tipo-m-hi);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 4px rgba(0, 0, 0, 0.05),
        0 0 0 1px var(--jf-tipo-m-lo),
        0 2px 6px rgba(0, 136, 255, 0.35),
        0 3px 10px rgba(0, 136, 255, 0.16);
}
.jf-dash-tipo-badge--utilizador {
    --jf-tipo-g-hi: #69f0ae;
    --jf-tipo-g-lo: #008f3c;
    border-color: var(--jf-tipo-g-hi) var(--jf-tipo-g-lo) var(--jf-tipo-g-lo) var(--jf-tipo-g-hi);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 4px rgba(0, 0, 0, 0.05),
        0 0 0 1px var(--jf-tipo-g-lo),
        0 2px 6px rgba(0, 200, 83, 0.35),
        0 3px 10px rgba(0, 200, 83, 0.16);
}

/* Novo utilizador: igual ao badge «utilizador» (verde vivo, relevo, texto preto negrito maiúsculas) */
.jf-dash-btn-novo-utilizador {
    --jf-tipo-g-hi: #69f0ae;
    --jf-tipo-g-lo: #008f3c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 30px;
    padding: 0 12px;
    border: 3px solid transparent;
    border-color: var(--jf-tipo-g-hi) var(--jf-tipo-g-lo) var(--jf-tipo-g-lo) var(--jf-tipo-g-hi);
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 42%, #ececec 100%);
    color: #000;
    font-weight: 800;
    font-size: 0.56rem;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    box-sizing: border-box;
    vertical-align: middle;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 4px rgba(0, 0, 0, 0.05),
        0 0 0 1px var(--jf-tipo-g-lo),
        0 2px 6px rgba(0, 200, 83, 0.35),
        0 3px 10px rgba(0, 200, 83, 0.16);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
button.jf-dash-btn-novo-utilizador {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    font-family: inherit;
}
.jf-dash-btn-novo-utilizador .bi {
    font-size: 0.75rem;
    flex-shrink: 0;
}
.jf-dash-btn-novo-utilizador:hover {
    color: #000;
    text-decoration: none;
    border-color: #b9f6ca var(--jf-tipo-g-lo) #006b2e #b9f6ca;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 5px rgba(0, 0, 0, 0.06),
        0 0 0 1px var(--jf-tipo-g-lo),
        0 3px 8px rgba(0, 200, 83, 0.42),
        0 4px 12px rgba(0, 200, 83, 0.2);
    transform: translateY(-1px);
}
.jf-dash-btn-novo-utilizador:active {
    transform: translateY(0);
    border-color: var(--jf-tipo-g-lo) var(--jf-tipo-g-hi) var(--jf-tipo-g-hi) var(--jf-tipo-g-lo);
    box-shadow:
        inset 0 1px 4px rgba(0, 0, 0, 0.08),
        0 0 0 1px var(--jf-tipo-g-lo),
        0 1px 4px rgba(0, 200, 83, 0.3);
}
.jf-dash-btn-novo-utilizador:focus {
    outline: none;
}
.jf-dash-btn-novo-utilizador:focus-visible {
    outline: 3px solid rgba(0, 200, 83, 0.5);
    outline-offset: 2px;
}

/* Cancelar (editar perfil): mesmo modelo «Novo utilizador», vermelho vivo (como apagar) */
.jf-dash-btn-cancelar-perfil {
    --jf-can-r-hi: #ff4d73;
    --jf-can-r-lo: #c40032;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 30px;
    padding: 0 12px;
    border: 3px solid transparent;
    border-color: var(--jf-can-r-hi) var(--jf-can-r-lo) var(--jf-can-r-lo) var(--jf-can-r-hi);
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 42%, #ececec 100%);
    color: #000;
    font-weight: 800;
    font-size: 0.56rem;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    box-sizing: border-box;
    vertical-align: middle;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 4px rgba(0, 0, 0, 0.05),
        0 0 0 1px var(--jf-can-r-lo),
        0 2px 6px rgba(255, 0, 63, 0.35),
        0 3px 10px rgba(255, 0, 63, 0.16);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.jf-dash-btn-cancelar-perfil .bi {
    font-size: 0.75rem;
    flex-shrink: 0;
}
.jf-dash-btn-cancelar-perfil:hover {
    color: #000;
    text-decoration: none;
    border-color: #ff6b8a var(--jf-can-r-lo) #a30028 #ff6b8a;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 5px rgba(0, 0, 0, 0.06),
        0 0 0 1px var(--jf-can-r-lo),
        0 3px 8px rgba(255, 0, 63, 0.42),
        0 4px 12px rgba(255, 0, 63, 0.2);
    transform: translateY(-1px);
}
.jf-dash-btn-cancelar-perfil:active {
    transform: translateY(0);
    border-color: var(--jf-can-r-lo) var(--jf-can-r-hi) var(--jf-can-r-hi) var(--jf-can-r-lo);
    box-shadow:
        inset 0 1px 4px rgba(0, 0, 0, 0.08),
        0 0 0 1px var(--jf-can-r-lo),
        0 1px 4px rgba(255, 0, 63, 0.3);
}
.jf-dash-btn-cancelar-perfil:focus {
    outline: none;
}
.jf-dash-btn-cancelar-perfil:focus-visible {
    outline: 3px solid rgba(255, 0, 63, 0.55);
    outline-offset: 2px;
}

/* Ver site (carrossel): mesmo modelo «Novo utilizador», azul claro vivo */
.jf-dash-btn-ver-site {
    --jf-vs-b-hi: #7cd9ff;
    --jf-vs-b-lo: #0066cc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 30px;
    padding: 0 12px;
    border: 3px solid transparent;
    border-color: var(--jf-vs-b-hi) var(--jf-vs-b-lo) var(--jf-vs-b-lo) var(--jf-vs-b-hi);
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 42%, #ececec 100%);
    color: #000;
    font-weight: 800;
    font-size: 0.56rem;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    box-sizing: border-box;
    vertical-align: middle;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 4px rgba(0, 0, 0, 0.05),
        0 0 0 1px var(--jf-vs-b-lo),
        0 2px 6px rgba(0, 136, 255, 0.45),
        0 3px 10px rgba(0, 136, 255, 0.22);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.jf-dash-btn-ver-site .bi {
    font-size: 0.75rem;
    flex-shrink: 0;
}
.jf-dash-btn-ver-site:hover {
    color: #000;
    text-decoration: none;
    border-color: #b3e8ff var(--jf-vs-b-lo) #004a99 #b3e8ff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 5px rgba(0, 0, 0, 0.06),
        0 0 0 1px var(--jf-vs-b-lo),
        0 3px 8px rgba(0, 136, 255, 0.55),
        0 4px 12px rgba(0, 136, 255, 0.28);
    transform: translateY(-1px);
}
.jf-dash-btn-ver-site:active {
    transform: translateY(0);
    border-color: var(--jf-vs-b-lo) var(--jf-vs-b-hi) var(--jf-vs-b-hi) var(--jf-vs-b-lo);
    box-shadow:
        inset 0 1px 4px rgba(0, 0, 0, 0.08),
        0 0 0 1px var(--jf-vs-b-lo),
        0 1px 4px rgba(0, 136, 255, 0.4);
}
.jf-dash-btn-ver-site:focus {
    outline: none;
}
.jf-dash-btn-ver-site:focus-visible {
    outline: 3px solid rgba(0, 136, 255, 0.55);
    outline-offset: 2px;
}

/* Sair: mesmo modelo que «Novo utilizador», contorno vermelho escuro */
form.jf-logout-form {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: middle;
}

button.jf-dash-btn-sair {
    appearance: none;
    cursor: pointer;
    font: inherit;
    margin: 0;
}

.jf-dash-btn-sair {
    --jf-sair-hi: #c75d6e;
    --jf-sair-lo: #4a0f18;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border: 3px solid transparent;
    border-color: var(--jf-sair-hi) var(--jf-sair-lo) var(--jf-sair-lo) var(--jf-sair-hi);
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 42%, #ececec 100%);
    color: #000;
    font-weight: 800;
    font-size: 0.56rem;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    box-sizing: border-box;
    vertical-align: middle;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 4px rgba(0, 0, 0, 0.05),
        0 0 0 1px var(--jf-sair-lo),
        0 2px 6px rgba(74, 15, 24, 0.38),
        0 3px 10px rgba(74, 15, 24, 0.18);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.jf-dash-btn-sair:hover {
    color: #000;
    text-decoration: none;
    border-color: #d67a88 var(--jf-sair-lo) #3a0b12 #d67a88;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 5px rgba(0, 0, 0, 0.06),
        0 0 0 1px var(--jf-sair-lo),
        0 3px 8px rgba(74, 15, 24, 0.45),
        0 4px 12px rgba(74, 15, 24, 0.22);
    transform: translateY(-1px);
}
.jf-dash-btn-sair:active {
    transform: translateY(0);
    border-color: var(--jf-sair-lo) var(--jf-sair-hi) var(--jf-sair-hi) var(--jf-sair-lo);
    box-shadow:
        inset 0 1px 4px rgba(0, 0, 0, 0.08),
        0 0 0 1px var(--jf-sair-lo),
        0 1px 4px rgba(74, 15, 24, 0.32);
}
.jf-dash-btn-sair:focus {
    outline: none;
}
.jf-dash-btn-sair:focus-visible {
    outline: 3px solid rgba(110, 30, 42, 0.55);
    outline-offset: 2px;
}

.jf-dash-side-nav .jf-dash-btn-sair {
    width: 100%;
    justify-content: flex-start;
}

.jf-dash-status-ativo {
    color: #34c759;
}
.jf-dash-status-inativo {
    color: #dc3545;
}
.jf-dash-status-outro {
    color: #f5b041;
}

.jf-dash-table th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
    border-bottom-width: 1px;
}

/* Coluna «Tipo»: largura mínima para não roubar espaço às outras colunas */
.jf-dash-table td.jf-dash-user-cell {
    vertical-align: middle;
}

.jf-dash-table .jf-dash-user-text {
    gap: 0.15rem;
    min-width: 0;
}

.jf-dash-table td.jf-dash-org-cell {
    vertical-align: middle;
}

.jf-dash-table .jf-dash-org-text {
    gap: 0.15rem;
    min-width: 0;
}

.jf-dash-table th.jf-dash-col-tipo,
.jf-dash-table td.jf-dash-col-tipo {
    width: 1%;
    white-space: nowrap;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

/* Estado + ciclo: uma linha; acções: editar / senha / apagar sem quebrar */
.jf-dash-table th.jf-dash-col-estado,
.jf-dash-table td.jf-dash-col-estado {
    width: 1%;
    white-space: nowrap;
    vertical-align: middle;
}

.jf-dash-table th.jf-dash-col-acoes,
.jf-dash-table td.jf-dash-col-acoes {
    width: 1%;
    white-space: nowrap;
    vertical-align: middle;
    min-width: 11.5rem;
}

.jf-dash-table .jf-dash-lista-acoes {
    flex-wrap: nowrap;
}

.jf-dash-offcanvas .jf-dash-side-link {
    margin-bottom: 0.25rem;
}

/* Editar perfil: garantir campos visíveis mesmo com CSS de terceiros agressivo */
.jf-perfil-edit-page .form-control,
.jf-perfil-edit-page .form-label {
    display: block;
    width: 100%;
}
.jf-perfil-edit-page input.form-control {
    min-height: calc(1.5em + 0.75rem + 2px);
    opacity: 1;
    visibility: visible;
}
.jf-perfil-foto-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.jf-perfil-foto-block .jf-perfil-foto-trigger {
    cursor: pointer;
    line-height: 0;
    box-shadow: 0 0 0 2px rgba(27, 67, 50, 0.15);
    transition: box-shadow 0.15s ease;
}
.jf-perfil-foto-block .jf-perfil-foto-trigger:hover {
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.35);
}
.jf-perfil-foto-block .jf-perfil-foto-trigger:focus-within {
    outline: 2px solid var(--jf-primary, #1b4332);
    outline-offset: 4px;
}
.jf-perfil-foto-img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    display: block;
    background: #f1f3f5;
}
