* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "segoe ui", roboto, oxygen, ubuntu, cantarell, "fira sans", "droid sans", "helvetica neue", Arial, sans-serif;
    font-size: 16px;
}

@media (max-width: 1366px) {
    * {
        box-sizing: border-box;
        font-family: -apple-system, BlinkMacSystemFont, "segoe ui", roboto, oxygen, ubuntu, cantarell, "fira sans", "droid sans", "helvetica neue", Arial, sans-serif;
        font-size: 14px;
    }
}

html,
body {
    width: 100%;
    height: 100%;
    padding: 0;
    background-color: #0e768f;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

header {
    display: flex;
    justify-items: center;
    height: 69.44px;
}

aside {
    padding: 15px 15px 0 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    color: white;
}

.login {
    width: 400px;
    background-color: #ffffff;
    box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
    margin: 10% auto;
}

.login h1,
.frmHeader {
    text-align: center;
    color: #5b6574;
    font-size: 24px;
    padding: 20px 0 20px 0;
    border-bottom: 1px solid #dee0e4;
}

.frmHeader {
    border: none;
}

.login form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 20px;
}

.login form label,
.lblNewUser {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #3274d6;
    color: #ffffff;
}

.login form input[type="password"],
.login form input[type="text"],
.popupText {
    width: 310px;
    height: 50px;
    border: 1px solid #dee0e4;
    margin-bottom: 20px;
    padding: 0 15px;
}

.popupCheckbox {
    width: 45px;
    height: 20px;
    border: 1px solid #dee0e4;
    margin-bottom: 20px;
    padding: 0 0px;
}

.login form input[type="submit"],
.confirmButton {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background-color: #3274d6;
    border: 0;
    cursor: pointer;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.2s;
}

.login form input[type="submit"]:hover {
    background-color: #2868c7;
    transition: background-color 0.2s;
}

.btn-secondary-onbg {
    display: block;
    text-align: center;
    margin: 20px auto 0;
    color: #ffffff;
    opacity: 0.85;
    text-decoration: underline;
    font-size: 14px;
}

.btn-secondary-onbg:hover {
    opacity: 1;
}

section {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 15px 0;
}

#final_sect {
    border-bottom: 1px solid #dee0e4;
}

.selector_div {
    width: 500px;
    margin: 30px auto auto auto;
}

.selector_div h1,
.page-sidebar-right h1,
.title-header{
    text-align: center;
    color: wheat;
    font-size: 24px;
    padding: 20px 0 0 0;
}

.selector_div h2 {
    text-align: center;
    color: wheat;
    font-size: 20px;
    padding: 20px 0 20px 0;
}

.selector_div h3 {
    text-align: center;
    color: wheat;
    font-size: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dee0e4;
}

h4 {
    text-align: center;
    color: wheat;
    font-size: 14px;
    padding-bottom: 3px;
}

#sys_name {
    opacity: 0;
}

@keyframes fade_show {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}

@keyframes fade_hide {
    0% {
        opacity: 1
    }

    100% {
        opacity: 0
    }
}

#sel_idro {
    background-image: url("graphics/idropluviometrico.svg");
}

#sel_scar {
    background-image: url("graphics/scarpata.svg");
}

#sel_anim {
    background-image: url("graphics/animali.svg");
}

#sel_vide {
    background-image: url("graphics/videoispezione.svg");
}

#sel_rtb {
    background-image: url("graphics/rtb.svg");
}

#sel_gest {
    background-image: url("graphics/impostazioni.svg");
}

#sel_report {
    background-image: url("graphics/report.svg");
}

.recognize_btn {
    background-color: darkred;
    color: white;
    font-weight: bold;
    padding: 1px 6px;
    margin-top: 5px;
    margin-left: 15px;
    margin-bottom: 5px;
    /*width: 150px;*/
    border-width: 2px;
    border-color: black;
    border-radius: 17px;
    cursor: pointer;
}

.overlayImg {

    margin: auto;
    width: 65%;
    z-index: 100;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);

    opacity: 0;
    animation: fadeIn 500ms linear;
}

#lens {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 2px solid #000;
    overflow: hidden;
    z-index: 102;
    pointer-events: none;
    background-repeat: no-repeat;
    display: none;
    transform: translate(-50%, -50%);
}


.previousFrame {

    margin: auto;
    position: absolute;
    width: 50px;
    height: 50px;
    top: 50%;
    left: 17.5%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    font-size: 60px;
    z-index: 101;
    color: white;
    text-align: center;
    cursor: pointer;
    content: url("graphics/previous_frame.svg");
    opacity: 1;
}
.nextFrame {

    margin: auto;
    position: absolute;
    width: 50px;
    height: 50px;
    top: 50%;
    left: 82.5%;
    -webkit-transform: translateX(-100%) translateY(-50%);
    transform: translateX(-100%) translateY(-50%);
    font-size: 60px;
    z-index: 101;
    color: white;
    text-align: center;
    cursor: pointer;
    content: url("graphics/next_frame.svg");
    opacity: 1;
}

.overlayBackground {
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 99;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6);

    opacity: 0;
    animation: overlayFadeIn 500ms linear;
}

@keyframes overlayFadeIn {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}

@keyframes overlayFadeOut {
    0% {
        opacity: 1
    }

    100% {
        opacity: 0
    }
}

.frameData {
    margin: auto;
    width: 100%;
    height: 100px;
    z-index: 101;
    position: fixed;
    top: 0;
    left: 0;
    color: white;
    line-height: 48px;
    background-color: rgba(0, 0, 0, 0.75);
    text-align: center;
}

.frameDirection {
    width: 200px;
    height: 50;
    z-index: 101;
    position: fixed;
    bottom: 15px;
    color: white;
    line-height: 48px;
    background-color: rgba(0, 0, 0, 0.75);
    text-align: center;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

.closeScreenBtn {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 60px;
    z-index: 102;
    color: white;
    text-align: center;
    cursor: pointer;
    content: url("graphics/close.svg");
}

.previousPicture {
    width: 50px;
    height: 50px;
    position: fixed;
    bottom: 15px;
    left: 35%;
    font-size: 60px;
    z-index: 102;
    color: white;
    text-align: center;
    cursor: pointer;
    content: url("graphics/previous_picture.svg");
}

.nextPicture {
    width: 50px;
    height: 50px;
    position: fixed;
    bottom: 15px;
    right: 35%;
    font-size: 60px;
    z-index: 102;
    color: white;
    text-align: center;
    cursor: pointer;
    content: url("graphics/next_picture.svg");
}

.selector_opt {
    object-fit: cover;
    width: 150px;
    height: 150px;
    background-color: #3274d6;
    background-position: top;
    background-size: 125px, 125px;
    background-repeat: no-repeat;
    box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;

    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.selector_opt:hover {
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.8);
    background-color: #2868c7;
    background-size: 115px, 115px;
}

.selector_opt_mgmt {
    margin: 5px 0;
    background-size: 150px, 150px;
}

.selector_opt_mgmt:hover {
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.8);
    background-color: #2868c7;
    background-size: 140px, 140px;
}

.left_bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 250px;
    background-color: #212831;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#sel_new_user {
    background-image: url("graphics/new_user.svg");
}

#sel_remove_user {
    background-image: url("graphics/remove_user.svg");
}

#sel_change_pwd {
    background-image: url("graphics/change_password.svg");
}

.btn-logout {
    border: none;
    border-radius: 15px;
    padding: 10px;
    background-color: transparent;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.btn-logout:hover {
    background-color: darkgray;
}

.alert {
    visibility: hidden;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 60px;
    font-weight: bold;
    background-color: rgb(190, 93, 93);
    color: white;
    font-size: 18px;
    box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.6);
}

.alert-success {
    background-color: rgb(93, 160, 93);
}

.logo {
    width: 300px;
    height: 85px;
    cursor: pointer;
}

#overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    overflow: hidden;
    transition: opacity 300ms linear;
    z-index: -1;
    background-color: darkgray;
}

.popup {

    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    background-color: #ffffff;
    box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);

    opacity: 0;
    transition: opacity 300ms linear;
    z-index: -1;

    margin: 20px auto 100px auto;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 20px;

    width: 400px;
    height: max-content;
}

#noreq {
    padding: 20% 0;
    text-align: center;
    vertical-align: middle;
    font-size: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
}


.tblReq {
    width: 100%;
    background-color: white;
    box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
    margin: 50px auto 100px auto;
    border-collapse: collapse;
}

.elReq {
    text-align: center;
    font-size: 18px;
}

.tdReq {
    border: 1px solid #dee0e4;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 15px;
}

.tblButton {
    padding-left: 25px;
    padding-right: 25px;

    background-color: #3274d6;
    border: 0;
    cursor: pointer;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.2s;
    text-align: center;
    margin: 10px;
    height: 32px;
    width: 150px;
}

.tblButton:hover {
    background-color: #2868c7;
    transition: background-color 0.2s;
}

.backBtn {
    width: 40px;
    height: 40px;
    filter: none;
    transition: all 200ms linear;
    -webkit-transition: all 200ms linear;
    -ms-transition: all 200ms linear;
    -o-transition: all 200ms linear;
    -ms-transition: all 200ms linear;
}

.backBtn:hover {
    filter: drop-shadow(2px 2px 2px #222222);
}

@keyframes blinker {
    50% {
        color: white;
        background-color: red;
    }
}

@keyframes blinkerWarning {
    50% {
        background-color: yellow;
    }
}

@keyframes blinkerPreAlert {
    50% {
        background-color: orange;
    }
}

#btnAggiornaReport {

    width: 940px;
    height: 50px;
    background-color: #3274d6;
    border: 0;
    cursor: pointer;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.2s;
}

#btnAggiornaReport:hover {
    background-color: #2868c7;
    transition: background-color 0.2s;
}

.card .close,
.popup .close {

    color: black;
    border: none;
    width: 25px;
    height: 25px;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 10px;
    transition: color 0.2s linear;
}

.card .close:hover {
    color: darkgray;
}

/*.filters-container*/
fieldset {
    background-color: #566881;
    position: relative;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    width: 60%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    margin: 8px;
    border: 1px solid silver;
    padding: 20px;
    border-radius: 15px;
}

fieldset input,
fieldset select {
    margin: 0 10px;
}

legend {
    padding: 2px;
    color: white;
    font-size: 18px;
}

.freset {
    width: 940px;
    text-align: center;
    text-decoration: underline;
    color: silver;
    cursor: pointer;
    margin-top: 10px;
}

/* griglia principale della pagina (intestazione, contenuto, piè di pagina)
   01/10/2026: scritta senza regole annidate (prima ">*" e "@media" erano dentro ".page-wrap", sintassi riconosciuta
   solo dai browser dal 2023 circa: sui browser più vecchi spaziatura e centratura degli elementi venivano ignorate) */
.page-wrap {
    height: 100%;
    box-shadow: 0 0 3px rgba(black, 0.33);

    display: grid;
    grid-template-columns: minmax(10px, 1fr) minmax(10px, 3fr) minmax(10px, 1fr);
    grid-template-rows: min-content min-content 1fr min-content;
    gap: 0;
}

.page-wrap > * {
    padding: 1rem;
    text-align: center;
}

@media (max-width: 600px) {
    .page-wrap {
        grid-template-columns: 100%;
        grid-template-rows: auto;
    }

    .page-wrap > * {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }
}

.page-header {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-top: 20px;
}

.page-header-item {
    width: 33.33%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-sidebar-left {
    grid-column: 1 / 2;
    grid-row: 2 / 4;
    background-color: #212831;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-sidebar-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    grid-column: 3 / 4;
    grid-row: 2 / 4;
}

.page-nav {
    grid-column: 2 / 3;
}

.page-main {
    grid-column: 2 / 3;
}

.page-footer {
    color: white;
    grid-column: 1 / -1;
    grid-row: 4 / -1;
    background: #212831;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}