/*Login*/
.LoginPage .page-logo {
    background-image: none;
}
/* Header */
.page-logo img {
    width: 150px;
    height: auto;
}
/* Loading */
.loadingpanel {
    pointer-events: none;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999999;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loadingpanel_nobg {
    background:none;
}
.isloading .loadingpanel {
    opacity:1;
    pointer-events:auto;
}
/*Tables*/
.table td, .table th {
    padding-left: 20px;
    padding-right: 20px;
}
.checkbox-column {
    width: 150px !important;
}
/* Datepicker */
.datepicker {
    z-index: 1000 !important;
}
/*Mobile Menu toggler*/
.header-btn[data-class='mobile-nav-on'] {
    background: #04858a !important;
    border-color: #04858a !important;
}

/*Panels only accessible to admins (e.g. Configuracoes: Categoria do Utilizador, Criar Acesso)*/
.panel.panel-admin {
    border: 2px solid #fd7e14;
}


/*Header user icon by category (header.js): SuperAdmin red, Admin orange. Also beats the theme's
  !important grey while the user menu is open*/
.header-icon:not(.btn)[data-toggle="dropdown"] > i.user-icon-superadmin:first-child,
.header-icon:not(.btn)[data-toggle="dropdown"][aria-expanded="true"] > i.user-icon-superadmin:first-child {
    color: #dc3545 !important;
}
.header-icon:not(.btn)[data-toggle="dropdown"] > i.user-icon-admin:first-child,
.header-icon:not(.btn)[data-toggle="dropdown"][aria-expanded="true"] > i.user-icon-admin:first-child {
    color: #fd7e14 !important;
}


/*Dashboard (Dashboard.js): section titles, summary tiles (label, value, context line, link), compact lists*/
.db-section-title {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #868e96;
    margin: .25rem 0 .75rem;
}
.db-kpi {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .09);
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
.db-kpi-label {
    font-size: .8125rem;
    color: #6c757d;
}
.db-kpi-value {
    margin: .35rem 0 .15rem;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.15;
    color: #212529;
}
.db-kpi-context {
    flex: 1;
    min-height: 1.25rem;
    font-size: .8125rem;
    color: #6c757d;
}
.db-kpi-link {
    margin-top: .6rem;
    font-size: .8125rem;
}
.db-table th {
    font-weight: 600;
    color: #6c757d;
    border-top: 0;
}
.db-table td, .db-table th {
    vertical-align: middle;
}
.db-row-toggle {
    cursor: pointer;
}
.db-detail > td {
    padding: 0 0 .5rem 1.75rem;
    background: #fafafa;
}
.db-status {
    font-weight: 500;
}
.db-empty {
    padding: .5rem 0;
    color: #6c757d;
}
.db-more {
    padding-top: .5rem;
    font-size: .8125rem;
    color: #6c757d;
}
.db-clip {
    display: inline-block;
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

/*MED-TRACK in the menu (sidebar.js, class nav-medtrack): a filled button in the theme's primary color with white text,
  icon and arrow - the menu that works with the cabinets. Only the group itself: its submenu keeps the normal look*/
.nav-menu > li.nav-medtrack > a {
    background: #04858a !important;
    border-radius: 4px;
}
.nav-menu > li.nav-medtrack > a,
.nav-menu > li.nav-medtrack > a .nav-link-text,
.nav-menu > li.nav-medtrack > a > [class*='fa-'],
.nav-menu > li.nav-medtrack > a > .collapse-sign {
    color: #fff !important;
}
.nav-menu > li.nav-medtrack:hover > a,
.nav-menu > li.nav-medtrack > a:focus,
.nav-menu > li.nav-medtrack.active > a {
    background: #036a6e !important;
}
@media (min-width: 992px) {
    /*Top menu: a button inside the bar instead of the full bar height; the "current page" dot is the darker color instead*/
    .nav-function-top .page-sidebar .primary-nav .nav-menu > li.nav-medtrack {
        display: flex;
        align-items: center;
        margin-left: .5rem;
    }
    .nav-function-top .page-sidebar .primary-nav .nav-menu > li.nav-medtrack > a {
        height: auto;
        padding: .5rem 2rem .5rem .85rem;
    }
    .nav-function-top .page-sidebar .primary-nav .nav-menu > li.nav-medtrack.active > a:before {
        display: none;
    }
}

/*MED-TRACK label preview (MedTrack_LabelPreview.js, Impressão de etiquetas): the label to scale on its grey liner, the printable area
  dashed, each printed line clipped to the usable width like the Zebra ^FB. The font approximates Zebra font 0 (condensed bold)*/
.mt-label-wrap {
    display: inline-block;
    padding: 14px 18px;
    background: #e9ecef;
    border-radius: 6px;
}
.mt-label {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 0 0 1px #c8ccd0, 0 1px 3px rgba(0, 0, 0, .12);
    font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue Condensed", Arial, sans-serif;
    font-weight: 700;
    color: #111;
}
.mt-label-area {
    position: absolute;
    border: 1px dashed rgba(4, 133, 138, .35);
}
.mt-label-line {
    position: absolute;
    overflow: hidden;
    white-space: pre;
    letter-spacing: -.01em;
}
.mt-label-void {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .7);
    color: #c82333;
    font-family: inherit;
    font-size: 1.1rem;
    letter-spacing: .12em;
}
.mt-label-caption,
.mt-label-epc {
    margin-top: .4rem;
    font-size: .8125rem;
    font-weight: 400;
    color: #6c757d;
}
.mt-label-table code {
    white-space: pre;
}

/*Common finish of every page (2026-11-19, design only): heading with its description on its own line, panels with soft
  corners and shadow, clearer table headers. One block: removing it brings back the theme as it was.
  .panel.panel-admin (orange border) keeps winning: it is more specific than .panel*/
.page-breadcrumb {
    font-size: .8125rem;
}
.subheader {
    margin-bottom: 1.25rem;
}
.subheader-title small {
    display: block;
    max-width: 62rem;
    margin-top: .35rem;
    line-height: 1.45;
}
.panel {
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.panel > .panel-hdr {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}
.panel-hdr h2 {
    font-weight: 500;
    color: #434a51;
}
.panel-hdr h2 > .fal,
.panel-hdr h2 > .fas {
    color: #04858a;
}
.panel-content .table thead:not([class*="bg-"]) th {
    font-weight: 600;
    color: #495057;
}
@media (min-width: 768px) {
    /*The theme cuts every breadcrumb item at 80 px ("Registar Interven..."): in full on wider screens, cut on phones as before*/
    .page-wrapper .page-content .breadcrumb > li.breadcrumb-item {
        max-width: none;
    }
}
@media (max-width: 767.98px) {
    /*Phones: the heading and its description take the whole width; the buttons next to it (Sincronizar, Criar...) go below and wrap*/
    .subheader {
        flex-wrap: wrap;
    }
    .subheader-title {
        flex: 1 1 100%;
        margin-bottom: .75rem;
    }
    .subheader > .btn,
    .subheader > [data-partial] {
        margin-bottom: .5rem;
    }
}

/*Login (login.html, 2026-11-19): split screen. The brand on the left in the Daylife colour, the form on the right.
  On narrower screens the brand panel is hidden and the logo shows above the form*/
.LoginPage {
    min-height: 100vh;
    background: #f4f6f7;
}
.login-split {
    display: flex;
    min-height: 100vh;
}
.login-brand {
    position: relative;
    display: flex;
    flex: 0 0 46%;
    flex-direction: column;
    justify-content: space-between;
    padding: 3.5rem 4rem 2rem;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(150deg, #04858a 0%, #036a6e 55%, #024b4e 100%);
}
.login-brand::before,
.login-brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
}
.login-brand::before {
    top: -140px;
    left: -100px;
    width: 360px;
    height: 360px;
}
.login-brand::after {
    right: -160px;
    bottom: -160px;
    width: 480px;
    height: 480px;
}
.login-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 30rem;
    margin: auto 0;
}
.login-brand-logo {
    width: 170px;
    margin-bottom: 2.75rem;
    /*the teal and grey logo in white*/
    filter: brightness(0) invert(1);
}
.login-brand-title {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -.01em;
    color: #fff;
}
.login-brand-subtitle {
    margin: .25rem 0 2.75rem;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, .8);
}
.login-brand-points {
    margin: 0;
    padding: 0;
    list-style: none;
}
.login-brand-points li {
    display: flex;
    align-items: center;
    margin-bottom: 1.1rem;
    font-size: .9375rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, .92);
}
.login-brand-points i {
    display: flex;
    flex: 0 0 2.5rem;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    margin-right: 1rem;
    border-radius: 8px;
    font-size: 1.05rem;
    color: #fff;
    background: rgba(255, 255, 255, .13);
}
.login-brand-footer {
    position: relative;
    z-index: 1;
    font-size: .8125rem;
    color: rgba(255, 255, 255, .65);
}
.login-main {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
}
.login-card {
    width: 100%;
    max-width: 400px;
}
.login-card-logo {
    display: none;
    width: 150px;
    margin: 0 auto 2.25rem;
}
.login-title {
    margin: 0 0 .35rem;
    font-size: 1.75rem;
    font-weight: 600;
    color: #212529;
}
.login-subtitle {
    margin-bottom: 1.75rem;
    color: #6c757d;
}
.LoginPage .form-label {
    font-weight: 500;
    color: #495057;
}
.LoginPage .input-group-text {
    width: 3rem;
    justify-content: center;
    color: #868e96;
    background: #fff;
}
.LoginPage .input-group .form-control {
    border-left: 0;
}
.LoginPage .input-group .input-group-text {
    border-right: 0;
}
.LoginPage .input-group:focus-within .input-group-text {
    color: #04858a;
    border-color: #04858a;
}
.LoginPage .input-group:focus-within .form-control {
    border-color: #04858a;
}
.LoginPage .btn-lg {
    padding: .75rem 1rem;
    font-size: 1rem;
}
@media (max-width: 991.98px) {
    .login-brand {
        display: none;
    }
    .login-card-logo {
        display: block;
    }
}
.login-main,
.login-card {
    min-width: 0;
}
.LoginPage .custom-control-label {
    white-space: normal;
}
.LoginPage .input-group .form-control {
    padding-left: .35rem;
}
