/**
 * TECNOVALORE - STILE GLOBALE
 * Layout, struttura e regole comuni a tutti i componenti.
 * I colori NON sono mai hardcoded qui: usare sempre var() da colors.css.
 *
 * Importato dopo colors.css in index.html.
 */

/* =============================================
   RESET / BASE
   ============================================= */

* {
    font-family: 'Open Sans', sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    height: 100%;
    overflow-y: hidden;
}


/* =============================================
   LAYOUT PRINCIPALE
   ============================================= */

.content-wrapper {
    background-color: transparent !important;
}

.main-sidebar {
    border: none !important;
    background: none !important;
}

.content {
    padding-top: 0 !important;
}

.zero-padding {
    padding: 0 !important;
}


/* =============================================
   SFONDO APPLICAZIONE
   ============================================= */

.e-background {
    background-image: var(--color-bg-overlay-gradient), url(/assets/images/sfondo_verde.png);
    background-size: cover;
    background-repeat: no-repeat;
}

.e-bg-info{
    background-color: var(--primitive-green-50) !important;
}


/* =============================================
   UTILITY
   ============================================= */

.flex-center-horizontal {
    display: flex;
    justify-content: center;
}

.flex-center-vertical {
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
}

.full-height {
    height: 100% !important;
}

.full-height-login {
    height: 100%;
}

.full-width {
    width: 100% !important;
}


/* =============================================
   HOME PANEL LATERALE
   ============================================= */

.home-fixed-panel-toggle {
    position: fixed;
    top: 75px;
    left: 15px;
    width: 45px;
    margin-bottom: 15px;
}

.home-fixed-panel-toggle button:focus {
    outline: 0;
}

.home-fixed-panel {
    position: fixed;
    top: 125px;
    left: 15px;
    width: 120px;
    height: calc(100% - 177px);
}

.home-fixed-panel .list-group a {
    outline: 0;
}

.home-fixed-panel-small {
    width: 45px;
}

.home-fixed-panel-small .list-group-buttons button {
    margin-bottom: 5px;
    outline: 0;
}


/* =============================================
   HOME CONTENT PRINCIPALE
   ============================================= */

.home-fixed-content {
    position: fixed;
    top: 76px;
    left: 150px;
    min-width: 920px;
    width: calc(100% - 170px);
    height: calc(100% - 130px);
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border: 1px solid var(--color-border-default);
    transition: border .2s ease-in-out;
    -moz-transition: border .2s ease-in-out;
    -webkit-transition: border .2s ease-in-out;
}

.home-fixed-content-small {
    left: 75px !important;
    width: calc(100% - 95px) !important;
}

.home-fixed-content-no-panel {
    left: 15px !important;
    width: calc(100% - 30px) !important;
}

.home-fixed-content .content {
    height: 100%;
    width: 100%;
    padding-top: 50px;
    -webkit-border-bottom-right-radius: 4px;
    -webkit-border-bottom-left-radius: 4px;
    -moz-border-radius-bottomright: 4px;
    -moz-border-radius-bottomleft: 4px;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
}

.home-fixed-content .content > div {
    overflow: auto;
}

.home-fixed-content .toolbar {
    border-bottom: 1px solid var(--color-border-subtle);
    padding: 10px;
    height: 56px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-border-top-left-radius: 4px;
    -webkit-border-top-right-radius: 4px;
    -moz-border-radius-topleft: 4px;
    -moz-border-radius-topright: 4px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    z-index: 7;
}

.home-fixed-content .toolbar .input-filter {
    width: 250px;
    margin-right: 10px;
}

.home-fixed-content .toolbar .nav.nav-pills li a:focus {
    outline: 0;
}

.home-fixed-content .toolbar .nav.nav-pills,
.home-fixed-content .toolbar .nav.nav-pills li {
    height: 100%;
}

.home-fixed-content .toolbar .nav.nav-pills li a {
    padding: 7px 10px;
}

/* Nasconde toolbar/content nel contesto home (override specifico) */
.home-fixed-content .toolbar {
    display: none;
}

.home-fixed-content .content {
    padding-top: 0 !important;
}


/* =============================================
   SUB-PANNELLI (subs)
   ============================================= */

.subs-container {
    position: absolute;
    width: 100%;
    left: 0;
    top: 100px;
    z-index: 4;
    overflow-y: auto;
    border-top: 1px solid var(--color-border-default);
    height: calc(100% - 100px);
    max-height: none;
}

.subs-overlay {
    position: absolute;
    left: 0;
    top: 56px;
    width: 100%;
    height: calc(100% - 56px);
    z-index: 3;
}

.subs-tab {
    opacity: 1 !important;
    position: absolute;
    height: 35px;
    width: 100%;
    top: 50px;
    left: 0;
    z-index: 6;
}

.subs-tab .fa-times {
    opacity: 0.8;
}

.subs-tab .fa-times:hover {
    opacity: 1;
}

.subs-title {
    position: absolute;
    top: 15px;
    left: 20px;
    z-index: 4;
    font-weight: bold;
}

.subs-close {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 4;
    cursor: pointer;
}


/* =============================================
   HEADER
   ============================================= */

.main-header {
    background-color: var(--primitive-green-900);
    color: whitesmoke;
}

.admin-navbar {
    background: transparent;
}

.navbar-transparency {
    background: transparent !important;
}

.navbar-default .navbar-nav > .open > a:focus {
    background-color: var(--color-brand-primary-mid);
}


/* =============================================
   SIDEBAR
   ============================================= */

.sidebar-flex {
    background-color: var(--color-bg-sidebar);
}

.sidebar-credits {
    border: none !important;
}


/* =============================================
   MENU
   ============================================= */

menu {
    margin: 0;
}

.admin-toggle:hover {
    border-radius: 0;
}

/* Voci menu colore base */
.sidebar .sidebar-menu li > a {
    color: var(--color-text-brand-nav) !important;
}

/* Voce menu attiva */
.sidebar .sidebar-menu li.menu-item-active > a {
    color: var(--color-text-brand-nav-active) !important;
}

.sidebar .sidebar-menu li.menu-item-active > a:hover {
    color: var(--color-text-nav-hover) !important;
}

.sidebar .sidebar-menu li > a:hover {
    color: var(--color-text-nav-hover) !important;
}


/* =============================================
   BREADCRUMB
   ============================================= */

.breadcrumb-custom {
    color: var(--primitive-green-50) !important;
    font-weight: 700;
}


/* =============================================
   LOGIN
   ============================================= */

.login-container {
    position: relative;
    top: 15%;
}


/* =============================================
   REGISTRATION
   ============================================= */

.registration-typeahead .dropdown-menu {
    height: auto;
    max-height: 200px;
    overflow-x: hidden;
}

@media only screen and (min-width: 760px) {
    .registration-container {
        height: 90vh;
    }
}

@media only screen and (min-width: 443px) {
    .registration-type-vertical {
        display: none;
    }
}

@media only screen and (max-width: 443px) {
    .registration-type-horizontal {
        display: none;
    }
}

.registration-sidebar {
    background-color: var(--color-registration-sidebar-bg);
    height: 100% !important;
    min-height: 100% !important;
}

.registration-element {
    cursor: pointer;
    margin: 20px;
    flex-direction: column;
    width: 200px;
    opacity: 0.8;
    border: 1px solid var(--color-text-primary);
    border-radius: 1px;
    padding: 20px;
}

.registration-element:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

.registration-element h5 {
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 200px;
}

.register-button {
    display: none !important;
}


/* =============================================
   DASHBOARD
   ============================================= */

.dashboard-h5 {
    border-radius: 5px 5px 0 0 !important;
    background-color: var(--color-dashboard-header-bg);
    color: var(--color-dashboard-header-text);
    border-bottom: 3px solid var(--color-dashboard-header-border);
    margin-bottom: 0;
    padding: 5px;
    font-size: 2em;
}

.botton-rounded {
    border-radius: 0 0 5px 5px;
}

.dashboard-first-right {
    border-radius: 0 0 5px 0;
}

.home-components-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
}


/* =============================================
   COMPONENTI
   ============================================= */

.component-disabled {
    opacity: 0.3 !important;
    pointer-events: none !important;
}

.component-container {
    top: 60px;
    position: relative;
}


/* =============================================
   TOOLBAR TRANSPARENCY / IMPIANTI
   ============================================= */

.toolbar-transparency {
    border-radius: 0 0 5px 5px;
    border-top: none;
    width: 90% !important;
}

.impianti-transparency {
      margin: 0px 0 0px 0px;
    border-radius: 0px;
    background: var(--color-bg-surface);
    overflow: none  ; /* il border-radius si vede anche sui figli */
}

/* Pannello con bordo tondo per agenda/appointments:
   stesso aspetto di .impianti-transparency ma senza padding-top
   perché la searchbar ha già il suo padding interno */
.panel-transparency {
      margin: 0px 0 0px 0px;
    border-radius: 0px;
    background: var(--color-bg-surface);
    overflow: hidden; /* il border-radius si vede anche sui figli */
}

.grid-toolbar-container {
    position: initial;
}

.agenda-filter,
.appointments-filter {
    border-radius: 5px 5px 0 0;
    background: var(--color-bg-surface);
}

#transparency-p {
    display: block !important;
    height: 5px;
    background: var(--color-bg-surface);
    border-radius: 0 0 5px 5px;
}

#impianti-container {
    background: var(--color-bg-surface);
    left: 15px;
    border-radius: 5px 5px 0 0;
}

#patch-element {
    width: 100%;
    height: 45px;
    background: var(--color-bg-surface);
    border-radius: 0 0 5px 5px;
}

.appointment-heigth {
    height: 90% !important;
}


/* =============================================
   NOTIFICHE
   ============================================= */

.ui-notification-custom-tpl {
    cursor: default;
}

.ui-notification-custom-tpl .notif-title {
    margin-left: 10px;
}

.ui-notification-custom-tpl .notif-close {
    cursor: pointer;
    font-size: 150%;
    margin-top: 10px;
}


/* =============================================
   FOOTER
   ============================================= */

customfooter {
    position: fixed;
    width: 100%;
    bottom: 0;
}


/* =============================================
   TICKET
   ============================================= */

.ticket-section-title {
    display: none !important;
}


/* =============================================
   MAPPA GOOGLE (PAC / Places Autocomplete)
   ============================================= */

#map {
    height: 100%;
}

.pac-card {
    margin: 10px 10px 0 0;
    border-radius: 2px 0 0 2px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    background-color: var(--color-bg-surface);
    font-family: Roboto;
}

#pac-container {
    padding-bottom: 12px;
    margin-right: 12px;
}

.pac-controls {
    display: inline-block;
    padding: 5px 11px;
}

.pac-controls label {
    font-family: Roboto;
    font-size: 13px;
    font-weight: 300;
}

#pac-input {
    background-color: var(--color-bg-surface);
    font-family: Roboto;
    font-size: 15px;
    font-weight: 300;
    margin-left: 12px;
    padding: 0 11px 0 13px;
    text-overflow: ellipsis;
    width: 400px;
}

#pac-input:focus {
    border-color: var(--color-map-input-focus);
}

#title {
    color: var(--color-text-on-dark);
    background-color: var(--color-map-title-bg);
    font-size: 25px;
    font-weight: 500;
    padding: 6px 12px;
}

.pac-container {
    z-index: 10000 !important;
}

#description {
    font-family: Roboto;
    font-size: 15px;
    font-weight: 300;
}

#infowindow-content .title {
    font-weight: bold;
}

#infowindow-content {
    display: none;
}

#map #infowindow-content {
    display: inline;
}
