@import url("aps/jquery-ui.custom.min.css");

/*@import url('https://fonts.googleapis.com/css?family=Noto+Sans');*/
@font-face {
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../../css/noto-sans-v7-latin-ext-regular.eot'); /* IE9 Compat Modes */
    src: local('Noto Sans'), local('NotoSans'), url('../../css/noto-sans-v7-latin-ext-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('../../css/noto-sans-v7-latin-ext-regular.woff2') format('woff2'), /* Super Modern Browsers */
    url('../../css/noto-sans-v7-latin-ext-regular.woff') format('woff'), /* Modern Browsers */
    url('../../css/noto-sans-v7-latin-ext-regular.ttf') format('truetype'), /* Safari, Android, iOS */
    url('../../css/noto-sans-v7-latin-ext-regular.svg#NotoSans') format('svg'); /* Legacy iOS */
}

:root {
    /* =========================================
     1. APKAPPA Core Colors
     ========================================= */

    --apk-blue: #0056b3;
    --apk-primary-hover: #0b5ed7;
    --apk-secondary-hover: #5c636a;
    --apk-success-hover: #157347;
    --apk-info-hover: #31d2f2;
    --apk-warning-hover: #ffca2c;
    --apk-danger-hover: #bb2d3b;
    --apk-light-hover: #d3d4d5;
    --apk-dark-hover: #424649;
    --apk-table-header-bg-color: #F8F9FA;
    --apk-table-header-font-size: 12pt;
    --apk-table-header-color: #000000;
    --apk-table-styler-bg-color: #E7EBEE;
    --apk-table-padding: 5px;
    --apk-table-bg-color: #FFFFFF;
    --apk-table-border: 1px solid #B0BEC5;
    --apk-table-border-radius: 8px;
    --apk-table-box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    --apk-mobile-breakpoint: 1020px;
}

/****** TEMPLATE *******/

/*  
  <color name="primaryColor">#246ab2</color>
  <color name="primaryLightColor">#6198e4</color>
  <color name="primaryDarkColor">#004082</color>
  <color name="primaryTextColor">#ffffff</color>

  Prototipo
  <color name="primaryColor">#64b5f6</color>
  <color name="primaryLightColor">#ffffff</color>
  <color name="primaryDarkColor">#226ab3</color>
  <color name="primaryTextColor">#ffffff</color>

  Logo
  <color name="primaryColor">#246ab2</color>
  <color name="primaryLightColor">#6198e4</color>
  <color name="primaryDarkColor">#004082</color>
  <color name="secondaryColor">#93c21e</color>
  <color name="secondaryLightColor">#c7f557</color>
  <color name="secondaryDarkColor">#609100</color>
  <color name="primaryTextColor">#ffffff</color>
  <color name="secondaryTextColor">#000000</color>

*/

body {
    font-family: 'Noto Sans', sans-serif;
    font-size: 14px;
}

footer {
    font-size: initial;
}

fieldset, .fieldsetlike {
    margin-bottom: 6px;
    background-color: #eceff1;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 1px 5px 0 rgba(0,0,0,0.12),0 3px 1px -2px rgba(0,0,0,0.1);
    padding: 10px 8px 5px 8px;
    height: auto !important; /* Annulla le altezze fisse dei fieldset */
    margin-top: 0.3rem;
    margin-bottom: 0.6rem;
}

    fieldset:after {
        clear: both;
    }

    fieldset > legend {
        float: left;
        font-size: 1em;
        font-weight: bold;
        margin-top: -10px;
        margin-bottom: 5px;
        color: #333;
        border-bottom: 1px solid #bbb;
        padding-top: 0.3rem;
    }

    fieldset select {
        display: block;
        font-size: 1em;
        padding-left: 0.18em;
        border: 1px solid Gray;
        -moz-border-radius: 2px;
        -webkit-border-radius: 2px;
        -khtml-border-radius: 2px;
        border-radius: 2px;
    }

    fieldset.alert {
        /*Bootstrap override*/
        padding: 10px 8px 5px 8px;
        color: red;
        font-weight: bold
    }

label {
    font-weight: normal;
    display: inline-table;
    margin: 0.3rem;
}

    label input {
        display: block;
    }

    label span {
        display: block;
    }

    label select {
        display: block;
        min-height: 26px;
    }

    label textarea {
        display: block;
    }

.inputdisabled {
    cursor: auto;
    background-color: #f5f5f5 !important;
    color: #333;
}

.inputreadonly {
    background-color: #f5f5f5 !important;
    color: #333;
}

.elenco td {
    vertical-align: top;
    height: 100%;
}



label input[type="text"] {
    padding: 2px 5px;
    font-size: 1em;
    color: #333;
    background-color: #fff;
    background-image: none;
    border: 1px solid #888;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}

    label input[type="text"]:disabled {
        cursor: auto;
        background-color: #f5f5f5;
        color: #333;
    }

input[type="text"] {
    padding: 2px 5px;
    font-size: 1em;
    color: #333;
    background-color: #fff;
    background-image: none;
    border: 1px solid #888;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}

    input[type="text"]:disabled {
        cursor: auto;
        background-color: #f5f5f5;
        color: #333;
    }

label select, #bottombar select {
    padding: 1px 5px;
    font-size: 1em;
    color: #333;
    background-color: #fff;
    background-image: none;
    border: 1px solid #888;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}

label textarea {
    padding: 2px 5px;
    font-size: 1em;
    color: #333;
    background-color: #fff;
    background-image: none;
    border: 1px solid #888;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}

div#buttonbar .buttonspacer {
    width: 2.5em;
    overflow: visible;
    /*Necessario per garantire la larghezza di tag vuoti */
    border: 1px solid transparent;
}
/* IE6 Hack */
*html div#buttonbar .buttonspacer {
    border-color: white;
    filter: chroma(color=white);
}

.panel-default {
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 1px 5px 0 rgba(0,0,0,0.12),0 3px 1px -2px rgba(0,0,0,0.1);
}

#titlebar, #buttonbar, #tabbar, #bottombar {
    background-color: #64b5f6;
}

#titlebar {
    padding-top: 5px;
    box-shadow: 0px 0px 5px #000000;
    -webkit-box-shadow: 0px 0px 5px #000000;
    -moz-box-shadow: 0px 0px 5px #000000;
    border-color: transparent;
}

    #titlebar input[type="image"], #titlebar a > img {
        vertical-align: bottom;
    }

    #titlebar input[type="image"], #titlebar a > img, #buttonbar input[type="image"] {
        padding: 2px;
    }

        #titlebar input[type="image"]:hover, #titlebar a > img:hover, #buttonbar input[type="image"]:hover {
            border-radius: 25%;
            box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 1px 5px 0 rgba(0,0,0,0.12),0 3px 1px -2px rgba(0,0,0,0.1);
        }

        #titlebar input[type="image"]:hover, #titlebar a > img:hover {
            background-color: #ffffff;
        }

        #buttonbar input[type="image"]:hover {
            background-color: #93c21e;
        }

.titlehome {
    vertical-align: bottom;
}

.titoloscheda {
    font-size: 22px;
    color: #FFFFFF;
}

#buttonbar .alert {
    position: absolute;
    z-index: 999;
    width: 100%;
}

#tabbar .nav {
    list-style: none;
    color: #FFFFFF;
    text-transform: uppercase;
    font-weight: 500;
    border: 1px solid #ccc;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    background-color: #ffffff;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 1px 5px 0 rgba(0,0,0,0.12),0 3px 1px -2px rgba(0,0,0,0.1);
}

    #tabbar .nav .nav-sx {
        padding-right: 0px;
        padding-left: 0px;
    }

    #tabbar .nav .nav-dx {
        padding-right: 0px;
        padding-left: 0px;
        height: 30px;
    }

    #tabbar .nav .custom-action-top {
        margin-top: 4px;
        margin-right: 2px;
    }

    #tabbar .nav ul {
        padding-left: 0px;
    }

        #tabbar .nav ul > li {
            list-style-type: none;
            float: left;
            position: relative;
            display: block;
            background-color: #93c21e;
        }

            #tabbar .nav ul > li:hover {
                background-color: #c7f557;
            }

            #tabbar .nav ul > li > a,
            #bottombar ul > li > a {
                position: relative;
                display: block;
                padding: 5px 20px;
                background-color: #ffffff;
                color: #333;
                text-decoration: none;
                text-wrap: nowrap;
                font-size: 0.9rem;
            }

                #tabbar .nav ul > li > a:hover {
                    position: relative;
                    display: block;
                    padding: 5px 20px 3px 20px;
                    margin-bottom: 2px;
                    background-color: #ffffff;
                    color: #246ab2;
                }


            #tabbar .nav ul > li > span {
                position: relative;
                display: block;
                background-color: #ffffff;
                padding: 5px 20px 3px 20px;
                margin-bottom: 2px;
                color: #246ab2;
                font-weight: bold;
            }


#tabcontent > div > .panel {
    /*margin-top:10px;*/
    background-color: #ffffff;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: 0;
    margin-bottom: 10px;
}

#tabcontent .app {
    padding: 10px;
}

    #tabcontent .app.print > div > fieldset {
        background-color: #93c21e;
    }

        #tabcontent .app.print > div > fieldset > div > fieldset {
            background-color: #c8e6c9;
        }

            #tabcontent .app.print > div > fieldset > div > fieldset.print-box > label {
                margin-left: 0.5rem;
                margin-right: 0.5rem;
            }

#buttonbar {
    padding-top: 2px;
}

#bottombar {
    padding: 10px 0 10px 0;
}

    #bottombar .btn-default {
        background-color: transparent;
        margin: 0 5px 0 5px;
        border: 1px solid transparent;
        color: #fff;
        font-weight: bold;
    }


        #bottombar .btn-default:hover {
            background-color: #93c21e;
            color: #fff;
            font-weight: bold;
            box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 1px 5px 0 rgba(0,0,0,0.12),0 3px 1px -2px rgba(0,0,0,0.1);
        }

.btn-toolbar .btn-default {
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}

.btn-toolbar .active {
    color: #333;
    background-color: #e6e6e6;
    background-image: none;
    border-color: #adadad;
}

.btn-default-custom {
    text-transform: none !important;
    color: #333 !important;
    background-color: #fff !important;
    border-color: #ccc !important;
    font-weight: normal !important;
    margin: 0 0 0 0 !important;
    min-width: 200px;
    text-align: left;
}

.btn-group-custom-top .btn-default-custom {
    width: 200px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

.btn-group-custom-top .dropdown-custom {
    width: 400px;
}

.btn-group-custom-top ul > li > a {
    width: 400px;
    text-transform: none !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

.btn-caret-custom {
    color: #333 !important;
    background-color: #fff !important;
    border-color: #ccc !important;
    font-weight: normal !important;
    margin: 0 0 0 0 !important;
}

    .btn-caret-custom:hover {
        background-color: #93c21e !important;
        color: #fff !important;
        font-weight: bold !important;
        box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 1px 5px 0 rgba(0,0,0,0.12),0 3px 1px -2px rgba(0,0,0,0.1);
    }

.btn-caret-custom-disabled {
    background-color: rgba(204, 204, 204, 1) !important;
    color: black !important;
}

    .btn-caret-custom-disabled:hover {
        background-color: rgba(204, 204, 204, 1) !important;
        color: black !important;
        box-shadow: none !important;
    }

.btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.dropdown-custom {
    min-width: 200px;
}

.btn-group-custom ul > li > a:hover {
    background-color: #93c21e !important;
    color: #ffffff !important;
}

.btn-group-custom ul > li > a {
    display: block !important;
    padding: 3px 20px !important;
    min-width: 200px;
    text-transform: none;
    /*clear: both;*/
    /*font-weight: 400;
    line-height: 1.4285;*/
    /*color: #333;*/
    /*white-space: nowrap;*/
}

.btn-default-custom:hover {
    background-color: #93c21e !important;
    color: #fff !important;
    font-weight: bold !important;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 1px 5px 0 rgba(0,0,0,0.12),0 3px 1px -2px rgba(0,0,0,0.1);
}

@media (min-width:992px) {
    #bottombar {
        margin-top: -50px;
        padding-top: 50px;
    }
}

.buttonspacer {
    padding: 0 10px 0 0;
}

.ricerca, .elenco, .dettaglio {
    /* rimozione stili cablati */
    height: inherit !important;
    width: inherit !important;
}

.internaltab {
    border: 1px solid #ccc;
    border-bottom: 0;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 1px 5px 0 rgba(0,0,0,0.12),0 3px 1px -2px rgba(0,0,0,0.1);
}

    .internaltab ul {
        list-style: none;
        text-transform: uppercase;
        font-weight: 500;
        color: #333;
        align-items: center;
        background-color: #b0bec5;
    }

        .internaltab ul > li {
            float: left;
            position: relative;
            display: block;
            border-right: 1px solid #b0bec5;
        }

            .internaltab ul > li.tabprev {
                border-right: 0;
                background-color: #b0bec5;
            }

            .internaltab ul > li.tabnext {
                background-color: #b0bec5;
            }

            .internaltab ul > li:hover {
                background-color: #93c21e;
            }

            .internaltab ul > li.tabprev:hover, .internaltab ul > li.tabnext:hover, .internaltab ul > li.tablist:hover, .internaltab ul > li.tablist:focus {
                background-color: #b0bec5;
            }

            .internaltab ul > li > a {
                position: relative;
                display: block;
                padding: 7px 20px;
                background-color: #b0bec5;
                color: #333;
                text-decoration: none;
            }

                .internaltab ul > li > a:hover {
                    position: relative;
                    display: block;
                    padding: 5px 20px 3px 20px;
                    margin-bottom: 2px;
                    background-color: #93c21e;
                    color: #ffffff;
                }

            .internaltab ul > li.tabprev > a:hover, .internaltab ul > li.tabnext > a:hover, .internaltab ul > li.tablist > a:hover, .internaltab ul > li.tablist > a:focus {
                background-color: #b0bec5;
                color: #246ab2;
            }


            .internaltab ul > li > span {
                position: relative;
                display: block;
                background-color: #ffffff;
                padding: 5px 20px 3px 20px;
                margin-bottom: 2px;
                color: #246ab2;
                font-weight: bold;
            }

            .internaltab ul > li.tabprev > span, .internaltab ul > li.tabnext > span {
                position: relative;
                top: 0;
                display: block;
                background-color: #b0bec5;
                padding: 7px 20px;
                margin-bottom: 2px;
                color: #333;
            }

            .internaltab ul > li.disabled > span {
                color: #aaa !important;
            }

            .internaltab ul > li.tablist li {
                float: none;
            }

            .internaltab ul > li.tablist ul {
                width: max-content;
                font-size: inherit;
            }

.internaltabborder > fieldset, .internaltabborder > div > fieldset {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.internaltabborder > div {
    /* rimozione stili cablati */
    width: inherit !important;
}

#apsmodal .modal-dialog {
    width: 98%;
    height: calc(100vh - 20px);
    padding: 0;
    margin: 10px auto;
    max-width: 100%;
}

#apsmodal.modalwait .modal-dialog {
    width: 500px;
    height: 180px;
    padding: 0;
    margin: 30vh auto;
}

#apsmodal.modalwaitextended .modal-dialog {
    width: 500px;
    height: 250px;
    padding: 0;
    margin: 30vh auto;
}

#apsmodal.modalwaitextendedconfirm .modal-dialog {
    width: 550px;
    height: 450px;
    padding: 0;
    margin: 15vh auto;
}

#apsmodal .modal-content {
    /*height: 100%;*/
}

#apsmodal .modal-body {
    padding: 5px;
    height: calc(100vh - 20px - 35px);
}

#apsmodal.modalwait .modal-body {
    padding: 5px;
    height: 150px;
}

#apsmodal.modalwaitextended .modal-body {
    padding: 5px;
    height: 220px;
}

#apsmodal.modalwaitextendedconfirm .modal-body {
    padding: 5px;
    height: 420px;
}

#apsmodal .modal-body iframe {
    width: 100%;
    height: 100%;
}

#apsmodal .modal-frame {
    height: 99%;
}

#apsmodal .modal-header {
    /* padding-right: 0px; */
    /* padding-top: 5px; */
    /* height: 25px; */
    padding: 14px;
}

    #apsmodal .modal-header .close {
        /*margin-right: -18px;
    margin-top: -8px;
    font-size: 30px;*/
        opacity: 1;
        padding: 0px;
        width: 24px;
        height: 24px;
    }

        #apsmodal .modal-header .close:hover {
            opacity: 0.5;
        }

        #apsmodal .modal-header .close span {
            font-weight: bold;
        }

        #apsmodal .modal-header .close:hover {
            color: red;
        }

.freespeech {
    font-weight: bold;
    color: #FFFFFF;
}

.hidden {
    display: none !important;
}

.left {
    float: left;
}

.right {
    float: right;
}

.hiddentext {
    display: none !important;
}

#popupMask {
    display: none;
}

#popupContainer {
    display: none;
}

#pbprog {
    display: none;
}

#customactions {
    display: none;
}

@media (min-width: 768px) {
    .apk_select.width2 {
        width: 14em !important;
    }
}

@media (min-width:768px) {
    .width0 {
        width: 4em;
    }

    .width1 {
        width: 6.5em;
    }

    .width105 {
        width: 9em;
    }

    .width2 {
        width: 12em;
    }

    .width3 {
        width: 18em;
    }

    .width4 {
        width: 24em;
    }

    .width5 {
        width: 30em;
    }

    .width6 {
        width: 36em;
    }

    .width7 {
        width: 42em;
    }

    .width8 {
        width: 48em;
    }

    .width9 {
        width: 54em;
    }

    .width10 {
        width: 60em;
    }

    .widthall {
        width: 100%;
    }
}

.inputcalendar {
    /* margin-left: 0px; */
    /* margin-right: 2px; */
    text-decoration: none;
}

    .inputcalendar > svg {
        width: 1.5em;
        height: 1.5em;
        vertical-align: top;
    }

/* The main calendar widget.  div containing a table. */

div.calendar {
    position: relative;
    Z-INDEX: 500;
}

.calendar, .calendar table {
    border: 1px solid;
    font-size: 11px;
    cursor: default;
}

    /* Header part -- contains navigation buttons and day names. */

    .calendar thead .title { /* This holds the current "month, year" */
        background: #fff; /* Pressing it will take you to the current date */
        color: #000;
        font-weight: bold;
        text-align: center;
    }

    .calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
        text-align: center; /* They are the navigation buttons */
    }

    .calendar thead .firstrow .button {
        background: #778;
        color: #fff;
        padding: 2px;
    }

    .calendar thead .firstrow .hilite { /* How do the buttons in header appear when hover */
        background: #eee;
        color: #000;
    }

    .calendar thead .firstrow .active { /* Make the buttons seem like they're pressing */
        padding: 2px 0px 0px 2px;
    }

    .calendar thead .headrow .button {
        background: #eee;
        color: #000;
        padding: 2px;
    }

    .calendar thead .headrow .hilite { /* How do the buttons in header appear when hover */
        background: #778;
        color: #fff;
    }

    .calendar thead .headrow .active { /* Make the buttons seem like they're pressing */
        padding: 2px 0px 0px 2px;
    }

    .calendar thead .daynames {
        background: #778;
    }

        .calendar thead .daynames > td {
            padding: 2px;
        }

        .calendar thead .daynames .hilite { /* How do the buttons in header appear when hover */
            background: #eee;
            color: #000;
        }

        .calendar thead .daynames .active { /* Make the buttons seem like they're pressing */
            padding: 2px 0px 0px 2px;
        }

    .calendar thead .name { /* Cells <TD> containing the day names */
        min-width: 30px;
        color: #fff;
        text-align: center;
    }

    .calendar thead .weekend { /* How a weekend day name shows in header */
        color: #ff6347;
    }

    /* The body part -- contains all the days in month. */

    .calendar tbody .day { /* Cells <TD> containing month days dates */
        background: #fff;
        color: #456;
        padding: 2px 4px 2px 2px;
        text-align: right;
    }

    .calendar tbody .weekend { /* Cells showing weekend days */
        color: #ff6347;
    }

    .calendar tbody .wn { /* Cell showing the number of the week */
        background: #778;
        color: #fff;
    }

    .calendar tbody .today { /* Cell showing selected date */
        color: #64b5f6;
        font-weight: bold;
    }

    .calendar tbody .hilite { /* Hovered cells <TD> */
        background: #64b5f6 !important;
        color: #fff !important;
    }

    .calendar tbody .rowhilite td { /* Cells of the selected row */
        /* background: #eee; */
    }

        .calendar tbody .rowhilite td.wn { /* Cells of the selected row */
            /* background: #eee; */
            /* color: #000000; */
        }

    .calendar tbody td.active { /* Active (pressed) cells <TD> */
        padding: 2px 2px 0px 2px;
    }

    .calendar tbody .selected { /* Cell showing today date */
        background: #64b5f6;
        color: #fff;
        font-weight: bold;
    }

    .calendar tbody .disabled {
        color: #999;
    }

    .calendar tbody .emptycell { /* Empty cells (the best is to hide them) */
        visibility: hidden;
    }

    .calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */
        display: none;
    }

    /* The footer part -- status bar and "Close" button */

    .calendar tfoot .footrow { /* The <TR> in footer (only one right now) */
        background: #eee;
        text-align: center;
    }

    .calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */
    }

    .calendar tfoot .hilite { /* Hover style for buttons in footer */
    }

    .calendar tfoot .active { /* Active (pressed) style for buttons in footer */
    }

/* Combo boxes (menus that display months/years for direct selection) */

.combo {
    position: absolute;
    display: none;
    top: 0px;
    left: 0px;
    width: 4em;
    background: #eee;
    color: #000;
    border: 1px solid #778;
    font-size: smaller;
}

    .combo .label {
        width: 100%;
        text-align: center;
    }

    .combo .hilite {
        background: #778;
        color: #fff;
    }

    .combo .active {
        background: #778;
        color: #fff;
        font-weight: bold;
    }

/***** WEBCONTROLS *****/

/* compositesearch */
.compositesearch {
    display: inline-flex;
}

    .compositesearch label {
        display: block !important;
    }

        .compositesearch label span input {
            display: inline;
        }

        .compositesearch label span div {
            display: inline-block;
        }

.waylabel {
    display: inline-table !important;
}

    .waylabel > span:before {
        content: "";
        display: block;
    }

    .waylabel > span {
        display: block;
    }

        .waylabel > span input {
            display: inline;
        }

        .waylabel > span select {
            display: inline;
        }

        .waylabel > span > div {
            display: inline-block;
        }

.apsdatagrid {
    background-color: #ffffff;
    width: 100%;
}

    .apsdatagrid > tbody > tr > td {
        padding: 5px;
    }

.apsmaxigrid {
    background-color: #ffffff;
    width: 100%;
}

    .apsmaxigrid > tbody > tr > td {
        /* 	padding: 0px; */
    }

.apsmaxigrid-dr-open > td {
    padding: 5px !important;
}

.apsmaxigrid-dr-close > td {
    padding: 0px !important;
}

.plusminus {
    text-decoration: none;
}

/*sorascrivo il coloro del table-striped*/
.table-striped > tbody > tr:nth-child(2n+1) > td, .table-striped > tbody > tr:nth-child(2n+1) > th {
    background-color: #eaf6ff;
}

.table-hover tbody tr:hover td, .table-hover tbody tr:hover th {
    background-color: #dbf0ff;
}

.HeaderStyle, .headerstyle {
    font-weight: bold;
    text-decoration: none;
}

    .HeaderStyle td > a,
    .headerstyle td > a {
        color: #337ab7;
        text-decoration: none;
    }

        .HeaderStyle td > a:hover,
        .headerstyle td > a:hover {
            text-decoration: underline;
        }

.ItemStyle, .itemstyle {
    white-space: normal !important;
}

.SelectedItemStyle, .selecteditemstyle {
    white-space: normal !important;
}

.apstreeview {
    display: block;
}

    .apstreeview div {
        float: none;
    }

    .apstreeview span {
        display: inline;
    }

.fieldsettreeview > div {
    float: left;
}

/* NEW VERSION TOOLTIP BOOTSTRAP 5 */
.tooltip-inner {
    max-width: 300px !important;
    font-size: larger !important;
    padding: 5px 10px !important;
}

/* JQUERY TOOLTIP */
.ui-tooltip {
    position: absolute;
    z-index: 3000;
    border: 2px solid #3399CC;
    background-color: #E0ECFF;
    padding: 5px;
    text-align: left;
}

    .ui-tooltip h3, #tooltip div {
        margin: 0;
    }

    .ui-tooltip h3 {
        font-size: 1em;
        font-weight: normal;
    }

/* From bootstrap */
.linkbutton {
    display: inline-block;
    padding: 2px 12px;
    margin: 0 2px 0 2px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
}

.linkbutton {
    background-color: #e1e2e1;
    border: 1px solid #888;
}

    .linkbutton a {
        color: #333;
        text-decoration: none;
    }

    .linkbutton:hover {
        background-color: #eee;
        box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 1px 5px 0 rgba(0,0,0,0.12),0 3px 1px -2px rgba(0,0,0,0.1);
    }

    .linkbutton a:hover {
        color: #246ab2;
    }

.linkbutton_disable {
    cursor: auto;
}

    .linkbutton_disable:hover {
        background-color: #e1e2e1;
        box-shadow: none;
    }

.ALinkButton {
    color: #333;
    text-decoration: none;
}

    .ALinkButton:hover {
        color: #246ab2;
    }

.apscheckboxlist {
    display: block;
}

    .apscheckboxlist input {
        margin: 4px;
    }

.IconSvgImg {
    width: 24px;
    height: 24px;
}

#stili singoli

.textleft {
    text-align: left;
}

.textright {
    text-align: right;
}

.textcenter {
    text-align: center;
}

.inline {
    display: inline;
}

#ctl00_gestfattureelettronichepadettaglio1_ctl00_fsDati {
    overflow: scroll;
}

.scroll38 {
    overflow: auto;
    height: 100%
}

/*css per editor di testo tiny mce*/
.mce-tinymce mce-container mce-panel {
    display: inline-table !important;
    width: 100% !important;
}

.GridViewScrollHeader th, .GridViewScrollHeader td, .GridViewScrollHeader a {
    font-weight: normal;
    /*white-space: no-wrap;*/

    border-right: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
    vertical-align: center;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8px;
    border-width: 0px;
    width: 100%;
    color: white;
    text-decoration: none;
    background-color: #3399CC;
}

.GridViewScrollHeader th, .GridViewScrollHeader td {
    padding: 5px;
}

.GridViewScrollItem td {
    white-space: nowrap;
    border-right: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
    background-color: #FFFFFF;
    color: #444444;
}

.GridViewScrollItemFreeze td {
    font-family: Arial, Helvetica, sans-serif;
    text-align: left;
    border-width: 0px;
    width: 100%;
    color: white;
    text-decoration: none;
    background-color: #3399CC;
    white-space: nowrap;
    border-bottom: 1px solid transparent;
    height: 38px;
}

.GridViewScrollFooterFreeze td {
    white-space: nowrap;
    border-right: 1px solid #e6e6e6;
    border-top: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
    font-family: Arial, Helvetica, sans-serif;
    /*font-size: 10px;*/
    height: 38px;
    color: white;
    text-decoration: none;
    background-color: #3399CC;
    padding: 5px;
}


/*** APSTracker BEGIN ***/

.progress-tracker {
    display: flex;
    margin: 15px auto;
    padding: 0;
    list-style: none;
}

.progress-step {
    flex: 1 1 0%;
    margin: 0;
    padding: 0;
    min-width: 24px;
}

    .progress-step:last-child .progress-marker::after {
        display: none;
    }

.progress-link {
    display: block;
    position: relative;
}

.progress-marker {
    display: block;
    position: relative;
}

    .progress-marker::before {
        content: attr(data-text);
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 20;
        width: 36px;
        height: 36px;
        padding-bottom: 2px;
        border-radius: 50%;
        transition: background-color, border-color;
        transition-duration: 0.3s;
    }

    .progress-marker::after {
        content: "";
        display: block;
        position: absolute;
        z-index: 1;
        top: 16px;
        right: -12px;
        width: 100%;
        height: 4px;
        transition: background-color 0.3s, background-position 0.3s;
    }

.progress-text {
    display: block;
    padding: 8px 8px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-title {
    margin-top: 0;
    font-size: inherit;
}

.aps_tracker .progress-step {
    cursor: pointer;
}

.aps_tracker.no-pointer-events .progress-step, .progress-step.is-disabled {
    pointer-events: none;
    cursor: none;
}

.progress-step .progress-text {
    color: var(--bs-dark);
}

.progress-step.is-active .progress-title {
    color: var(--bs-primary);
    font-weight: bold;
}

.progress-step.is-failed .progress-title {
    color: var(--bs-danger);
    font-weight: bold;
}

.progress-step.is-validated .progress-title {
    color: var(--bs-success);
    font-weight: bold;
}

.progress-step.is-disabled .progress-title {
    color: var(--bs-secondary);
    font-weight: normal;
}

.progress-step .progress-marker {
    color: #fff;
}

    .progress-step .progress-marker::before {
        background-color: #b6b6b6;
    }

    .progress-step .progress-marker::after {
        background-color: #b6b6b6;
    }

.progress-step.is-active .progress-marker::before {
    background-color: #4aaefe;
    border: solid 4px #fff;
}

.progress-step.is-active .progress-marker::before {
    box-shadow: 0 0 0 1px #4aaefe;
}

.progress-step.is-active.is-complete .progress-marker::before {
    box-shadow: 0 0 0 1px var(--bs-primary);
}

.progress-step.is-active.is-failed .progress-marker::before {
    box-shadow: 0 0 0 1px var(--bs-danger);
}

.progress-step.is-active.is-validated .progress-marker::before {
    box-shadow: 0 0 0 1px var(--bs-success);
}

.progress-step.is-active.is-disabled .progress-marker::before {
    box-shadow: 0 0 0 1px var(--bs-secondary);
}

.progress-step.is-complete .progress-marker::before, .progress-step.is-complete .progress-marker::after {
    background-color: var(--bs-primary);
}

.progress-step.is-validated .progress-marker::before, .progress-step.is-validated .progress-marker::after {
    background-color: var(--bs-success);
}

.progress-step.is-failed .progress-marker::before, .progress-step.is-failed .progress-marker::after {
    background-color: var(--bs-danger);
}

.progress-step.is-disabled .progress-marker::before {
    background-color: #b6b6b6;
    border: solid 2px #3C3D3A;
    color: #3C3D3A;
}

.progress-step.is-disabled .progress-marker::after {
    background-color: #b6b6b6;
}

.progress-step:hover .progress-marker::before {
    background-color: var(--apk-secondary-hover);
}

.progress-step.is-complete:hover .progress-marker::before, .progress-step.is-active:hover .progress-marker::before {
    background-color: var(--apk-primary-hover);
}

.progress-step.is-failed:hover .progress-marker::before {
    background-color: var(--apk-danger-hover);
}

.progress-step.is-validated:hover .progress-marker::before {
    background-color: var(--apk-success-hover);
}

.progress-tracker--text .progress-step:last-child, .progress-tracker--center .progress-step:last-child, .progress-tracker--right .progress-step:last-child {
    flex-grow: 1;
}

.progress-tracker--center {
    text-align: center;
}

    .progress-tracker--center .progress-marker::before, .progress-tracker--center .progress-text--dotted::before {
        margin-left: auto;
        margin-right: auto;
    }

    .progress-tracker--center .progress-marker::after {
        right: -50%;
    }


@keyframes scale-up {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0);
    }

    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

.anim--large .progress-link::before, .anim--large .progress-link::after {
    width: 48px;
    height: 48px;
}

.anim--path .progress-marker::after {
    background-image: linear-gradient(to right, #b6b6b6 50%, #868686 50%);
    background-size: 200% 100%;
    background-position: 0% 100%;
    transition: background-position 0.3s ease-out;
}

.progress-step.is-complete .anim--path .progress-marker::after {
    background-position: -100% 100%;
}

.anim--path .progress-step.is-complete .progress-marker::after {
    background-position: -100% 100%;
}

[dir=rtl] .progress-marker::after {
    right: auto;
    left: -12px;
}

[dir=rtl] .progress-tracker--center .progress-marker::after {
    left: -50%;
}

.container-left {
    margin-left: 0;
    padding-left: 0;
    width: auto;
}

/*** APSTracker END ***/

/*Bordo campi obbligatori*/
.requiredfield {
    border-bottom: 2px solid #f62d03 !important;
}

/* DataGrid */
.table {
    --bs-table-striped-bg: none;
    --bs-table-hover-bg: none;
    --bs-table-color: none;
    --bs-table-striped-color: none;
}

.table-hover > tbody > tr:hover > * {
    --bs-table-color-state: none;
}

.DG_PagerCellPageLink {
    text-decoration: none;
}

a {
    text-decoration: none;
}

/* BEGIN: SELECT FILTERABLE */

.apk_select {
    font-weight: normal;
    display: inline-table;
    margin: 0.3rem;
    position: relative;
}

    .apk_select label {
        margin-bottom: 0;
        margin-left: 0;
    }

    .apk_select .input-group input {
        padding: 1px 5px;
        font-size: 1em;
        color: #333;
        height: 26px;
        background-color: #fff;
        background-image: none;
        border: 1px solid #888;
        border-radius: 4px;
        -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
        box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
        -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
        -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
        transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
        border-right: 0;
    }

    .apk_select.disabled .input-group input, .apk_select.disabled .input-group .input-group-text {
        background-color: #f5f5f5 !important;
    }


    .apk_select .input-group span {
        cursor: pointer;
    }

.input-group:focus-within .input-group-text {
    border: 0;
    border-radius: 0 !important;
}

.input-group-text {
    background-color: #fff;
    border-left: 0;
    border-color: #888;
    padding: 1px !important;
}

.input-group:focus-within {
    outline: -webkit-focus-ring-color auto 1px;
}

.apk_select .input-group > input:focus, .apk_select .input-group > input:focus-visible {
    outline: unset;
    border: 1px #fff solid;
}

.apk_select .input-group > input {
    flex: 1;
    cursor: pointer;
}


.apk-dropdown-opts {
    color: #000;
    background-color: #fff;
    padding: 1px;
    position: absolute;
    min-width: 100%;
    width: max-content;
    z-index: 99999;
}

    .apk-dropdown-opts.drop-up {
        border: 1px solid var(--bs-gray-700);
        border-bottom: 0;
    }

    .apk-dropdown-opts:not(.drop-up) {
        border: 1px solid var(--bs-gray-700);
        border-top: 0;
    }

    .apk-dropdown-opts input {
        margin-top: 3px;
        margin-bottom: 2px;
        padding: 2px 10px;
    }

    .apk-dropdown-opts > span {
        background-color: #fff;
        margin: 1px;
        padding: 1px 5px;
        cursor: pointer;
    }

        .apk-dropdown-opts > span:hover,
        .apk-dropdown-opts > span:focus {
            background-color: var(--bs-primary);
            color: #fff;
        }

        .apk-dropdown-opts > span:focus-visible {
            outline: none !important;
        }

        .apk-dropdown-opts > span.selected {
            font-weight: bold;
        }

        .apk-dropdown-opts > span.disabled {
            background-color: #eee !important;
            color: var(--bs-gray-700);
            margin: 1px;
            cursor: not-allowed;
            font-style: italic;
        }

            .apk-dropdown-opts > span.disabled:hover {
                font-weight: normal;
            }

/* END SELECT FILTERABLE */

/*** container transparent - start ***/
.container-transparent {
    background-color: transparent;
    border: 0;
    box-shadow: none;
}

    /* Shadow ONLY on top */
    .container-transparent.border-top {
        border-radius: 0;
        border-top: 1px solid #b0bec5 !important;
    }

    .container-transparent.border-top-shadow {
        border-radius: 0;
        border-top: 3px solid #b0bec5 !important;
        /* X-offset: 0
		   Y-offset: -5px (moves it up)
		   Blur: 5px
		   Spread: -5px (pulls the sides in so they are hidden)
		   inner and outer shadows
		*/
        box-shadow: 0 -5px 5px -5px rgba(0, 0, 0, 0.4), inset 0 5px 5px -5px rgba(0, 0, 0, 0.4);
    }

    /* Shadow ONLY on bottom */
    .container-transparent.border-bottom {
        border-radius: 0;
        border-bottom: 1px solid #b0bec5 !important;
    }

    .container-transparent.border-bottom-shadow {
        border-radius: 0;
        border-bottom: 3px solid #b0bec5 !important;
        /* X-offset: 0
		   Y-offset: 5px (moves it down)
		   Blur: 5px
		   Spread: -5px (pulls the sides in)
		   inner and outer shadows
		*/
        box-shadow: 0 5px 5px -5px rgba(0, 0, 0, 0.4), inset 0 -5px 5px -5px rgba(0, 0, 0, 0.4);
    }

    /* Combined: Both shadows active */
    .container-transparent.border-top-shadow.border-bottom-shadow {
        box-shadow: 0 -5px 5px -5px rgba(0, 0, 0, 0.4), 0 5px 5px -5px rgba(0, 0, 0, 0.4), inset 0 5px 5px -5px rgba(0, 0, 0, 0.4), inset 0 -5px 5px -5px rgba(0, 0, 0, 0.4);
    }
/*** container transparent - end ***/

/*** base-sections-container - START ***/
/* --- Tabella Differenze --- */
.base-sections-container .diff-table-container {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.base-sections-container .diff-header-row {
    display: grid;
    grid-template-columns: 180px 1fr 1fr;
    gap: 15px;
    background: #f8fafc;
    padding: 10px 15px;
    border-bottom: 2px solid #cbd5e1;
    font-weight: bold;
    color: #475569;
    font-size: 0.85rem;
}

.base-sections-container .diff-data-row {
    display: grid;
    grid-template-columns: 180px 1fr 1fr;
    gap: 15px;
    padding: 6px 15px;
    border-bottom: 1px solid #e2e8f0;
    border-left: 4px solid transparent;
    align-items: center;
}

    .base-sections-container .diff-data-row:last-child {
        border-bottom: none;
    }

.base-sections-container .diff-col-prop {
    word-break: break-word;
}

.base-sections-container .diff-input-full {
    width: 100% !important;
    box-sizing: border-box;
    margin: 0;
    border: 1px solid #ccc;
    padding: 4px;
    border-radius: 4px;
}

.base-sections-container .diff-data-row.unchanged {
    opacity: 0.7;
}

.base-sections-container .diff-data-row.changed .diff-old input {
    text-decoration: line-through;
    color: #991b1b;
    border-color: #fca5a5;
}

.base-sections-container .diff-data-row.changed .diff-new input {
    color: #166534;
    border-color: #86efac;
    font-weight: bold;
}

/* --- Accordion (Stile Small/Flat) --- */
.base-sections-container-accordion {
    border-bottom: 1px solid #cbd5e1;
    background: transparent;
    margin: 0;
}

    .base-sections-container-accordion:not(.closed) > .base-sections-container-accordion-header {
        background: #d2e5ed !important;
    }

.base-sections-container-accordion-inner:not(.closed) > .base-sections-container-accordion-header {
    background: #fff !important;
    height: 40px;
}

.base-sections-container-accordion:not(.closed) > .base-sections-container-accordion-header h4 {
    color: #0056b3 !important;
}

.base-sections-container-accordion-inner > .base-sections-container-accordion-header h5 {
    font-weight: bold;
}

.base-sections-container-accordion-inner:not(.closed) > .base-sections-container-accordion-header h5 {
    color: #0056b3 !important;
}

.base-sections-container-accordion-header {
    padding: 10px 10px;
    height: 43px;
    background: #fff;
    cursor: pointer;
    color: #0056b3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background-color 0.2s;
}

    .base-sections-container-accordion-header:hover {
        background: #f8fafc;
    }

    .base-sections-container-accordion-header span {
        font-weight: 600;
        font-size: 1rem;
    }

.base-sections-container-accordion-body {
    padding: 5px 10px;
    display: block;
    overflow-x: auto;
    background: #fff;
    border-radius: 4px;
}

.base-sections-container-accordion.closed .base-sections-container-accordion-body {
    display: none;
}

.base-sections-container-accordion h5 {
    font-size: 1.1rem;
}

.base-sections-container-accordion.closed h4, .base-sections-container-accordion.closed h5 {
    color: #000 !important;
}

.base-sections-container-accordion-icon {
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.base-sections-container-accordion.closed > .base-sections-container-accordion-header > .base-sections-container-accordion-icon svg {
    fill: #000;
}

.base-sections-container-accordion:not(.closed) > .base-sections-container-accordion-header > .base-sections-container-accordion-icon svg {
    fill: #000;
}

.base-sections-container-accordion.closed .base-sections-container-accordion-icon {
    transform: rotate(180deg);
}

.base-sections-container-accordion-inner {
    padding: 10px;
    border-radius: 4px;
}

    .base-sections-container-accordion-inner > .base-sections-container-accordion-header {
        height: 40px !important;
    }

/* Regole CSS specifiche per gli accordion interni */
.base-sections-container-accordion .base-sections-container-accordion {
    padding-left: 15px;
}

    .base-sections-container-accordion .base-sections-container-accordion:last-child {
        border-bottom: none;
    }

/*** base-sections-container - END ***/

/*** apk-sidebar-index - START ***/

.apk-sidebar-index fieldset {
    background-color: transparent;
}

/* --- Layout Sidebar Specifico --- */
.apk-sidebar-index-layout {
    position: relative;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    border: #ddd solid 1px;
    border-radius: 4px;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 1px 5px 0 rgba(0,0,0,0.12),0 3px 1px -2px rgba(0,0,0,0.1);
}

.apk-sidebar-index-drawer-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    height: 100%;
}

/* Stessi stili della timeline ma senza il padding per i pallini */
.apk-sidebar-index-timeline {
    background-color: #fffff;
    border: none;
    transition: all 0.3s ease;
    height: 100%;
    overflow-y: auto;
}

.apk-sidebar-index-toggle-handle {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-left: none;
    width: 22px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    color: #363e4a;
    margin-top: 16px;
    font-size: 0.75rem;
    box-shadow: 2px 0 4px rgba(0,0,0,0.03);
    transition: background-color 0.2s;
}

    .apk-sidebar-index-toggle-handle:hover {
        background-color: #e2e8f0;
        color: #1e293b;
    }

/* Aggiunto position: relative per permettere il corretto calcolo dell'offsetTop in JS */
.apk-sidebar-index-details {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    height: 100%;
    padding: 0 20px;
    position: relative;
}

/* --- Voci della Sidebar --- */
.apk-sidebar-index-link-item {
    display: block;
    font-size: 1rem;
    padding: 8px 15px;
    text-decoration: none;
    color: #000;
    border-bottom: 1px solid #cbd5e1;
    transition: background-color 0.2s;
    border-left: 4px solid transparent;
    background-color: white;
}

    .apk-sidebar-index-link-item:last-child {
    }

    .apk-sidebar-index-link-item:hover {
        background-color: #e2e8f0;
    }

    .apk-sidebar-index-link-item.active {
        border-left-color: #0056b3;
        background-color: #fff;
        color: #0056b3;
        font-weight: 600
    }

/*Sotto ai 1200px di larghezza rimpicciolisco il font della sidebar*/
@media (max-width: 1200px) {
    .apk-sidebar-index-link-item {
        font-size: 0.8rem !important;
        padding: 8px 10px;
    }
}

@media (max-width: var(--apk-mobile-breakpoint)) {
    .apk-sidebar-index-layout {
        position: relative;
    }

    .apk-sidebar-index-drawer-container {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        z-index: 100;
        width: 100%;
    }

    .apk-sidebar-index-timeline {
        width: 82vw !important;
        flex: none !important;
    }
}

.apk-back-to-top {
    position: absolute;
    bottom: 80px;
    right: 25px;
    width: 45px;
    height: 45px;
    background-color: var(--apk-blue);
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    display: none; /* Nascosto di default */
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1050;
    transition: background-color 0.2s;
}

/*** apk-sidebar-index - END ***/

/*** apk-master-details - START ***/

/* --- Layout Principale --- */
.apk-master-details-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 10px 0px;
    height: 85vh;
    overflow: hidden;
}

.apk-master-details-details {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    height: 100%;
    padding-right: 10px;
}

/* --- Left Drawer (Timeline + Handle) --- */
.apk-master-details-drawer-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    height: 100%;
}

.apk-master-details-timeline {
    width: 100%;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 10px 0 10px 15px;
    transition: all 0.3s ease;
    height: 100%;
    overflow-y: auto;
}

.apk-master-details-toggle-handle {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-left: none;
    width: 22px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    color: #64748b;
    margin-top: 40px;
    font-size: 0.75rem;
    box-shadow: 2px 0 4px rgba(0,0,0,0.03);
    transition: background-color 0.2s;
}

    .apk-master-details-toggle-handle:hover {
        background-color: #e2e8f0;
        color: #1e293b;
    }

/* --- Timeline (Lista Sinistra) --- */
.apk-master-details .timeline-track {
    position: relative;
    padding-top: 15px;
    padding-left: 24px;
    padding-right: 15px;
}

    .apk-master-details .timeline-track::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-bottom: 8px solid #cbd5e1;
    }

    .apk-master-details .timeline-track::after {
        content: '';
        position: absolute;
        top: 8px;
        bottom: 0;
        left: 5px;
        width: 2px;
        background-color: #cbd5e1;
    }

.apk-master-details .timeline-item {
    display: block;
    position: relative;
    padding: 12px 15px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

    .apk-master-details .timeline-item::before {
        content: '';
        position: absolute;
        top: 18px;
        left: -24px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #fff;
        border: 2px solid #94a3b8;
        z-index: 2;
        transition: all 0.2s ease;
    }

    .apk-master-details .timeline-item::after {
        content: '';
        position: absolute;
        top: 28px;
        bottom: -30px;
        left: -19px;
        width: 2px;
        background-color: #cbd5e1;
        z-index: 1;
    }

    .apk-master-details .timeline-item:last-child::after {
        display: none;
    }

    .apk-master-details .timeline-item:hover {
        border-color: #cbd5e1;
        cursor: pointer;
    }

.apk-master-details .timeline-date {
    font-size: 0.8rem;
    color: #64748b;
    display: block;
}

.apk-master-details .timeline-tipo {
    font-weight: 600;
    color: #1e293b;
    margin-top: 4px;
    display: block;
    font-size: 0.9rem;
}

.apk-master-details .timeline-item.active {
    border-color: #3b82f6;
    background-color: #f0f7ff;
}

    .apk-master-details .timeline-item.active::before {
        border-color: #3b82f6;
        background-color: #3b82f6;
    }

@media (max-width: var(--apk-mobile-breakpoint)) {
    .apk-master-details-layout {
        position: relative; /* Contenitore base per l'assoluto */
    }

    .apk-master-details-drawer-container {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        z-index: 100; /* La fa 'volare' sopra al pannello di destra */
        width: 100%;
    }

    .apk-master-details-timeline {
        width: 100vw !important; /* Occupa tutta la larghezza dello schermo... */
        max-width: calc(100% - 22px); /* ...meno lo spazio vitale per la maniglia */
        flex: none !important; /* Annulla il flex in linea del C# */
    }
}

/*** apk-master-details - END ***/

/*** APSButtonsList BEGIN ***/
.apk-buttons-list {
    display: inline-block;
}

    .apk-buttons-list .apk-buttons-list-label {
        border-bottom: 1px solid currentColor;
        margin-bottom: 5px;
    }

    .apk-buttons-list:not(.text-end) .apk-buttons-list-container .btn {
        margin-right: 5px;
    }

    .apk-buttons-list.text-end .apk-buttons-list-container .btn {
        margin-left: 5px;
    }
/*** APSButtonsList END ***/

/*** APSHeaderCard BEGIN ***/
.apk-header-card {
    display: inline-block;
    vertical-align: top;
    margin: 5px 5px 10px 0px;
}

    .apk-header-card.block {
        display: block;
    }

    .apk-header-card .apk-header-card-title {
        font-weight: bold;
        margin-bottom: 7px;
    }

    .apk-header-card .apk-header-card-subtitle {
        margin-bottom: 7px;
    }

    .apk-header-card .apk-buttons-list {
        display: block;
    }
/*** APSHeaderCard END ***/

/*** APSDataTable BEGIN ***/
/* Padding applicato a tutte le celle della tabella */
table.apk-datatable.table-striped > tbody > tr > td {
    padding: var(--apk-table-padding);
    vertical-align: middle;
}

/* Gestione dell'header */
table.apk-datatable.table-striped > tbody > .headerstyle > td,
table.apk-datatable.table-striped > tbody > .HeaderStyle > td,
table.apk-datatable.table-striped > tbody > .HeaderStyle > th,
table.apk-datatable.table-striped > tbody > .headerstyle > th {
    background-color: var(--apk-table-header-bg-color);
    font-weight: bold;
    font-size: var(--apk-table-header-font-size);
    color: var(--apk-table-header-color);
}

table.apk-datatable.table-striped tbody tr.headerstyle:hover td,
table.apk-datatable.table-striped tbody tr.headerstyle:hover th,
table.apk-datatable.table-striped tbody tr.HeaderStyle:hover td,
table.apk-datatable.table-striped tbody tr.HeaderStyle:hover th {
    background-color: var(--apk-table-header-bg-color);
}

/* Sovrascrivo il colore delle righe del corpo della tabella */
table.apk-datatable.table-striped > tbody > tr > td,
table.apk-datatable.table-striped > tbody > tr > th {
    background-color: var(--apk-table-bg-color);
}

/*Questo per gestire il caso di griglia cliccabile*/
table.apk-datatable.table-hover tbody tr:hover td,
table.apk-datatable.table-hover tbody tr:hover th {
    background-color: var(--apk-table-bg-color);
}

/*Gestione riga dello styler, ordinamento*/
table.apk-datatable.table-striped > tbody > tr.PagerStyle > td,
table.apk-datatable.table-striped > tbody > tr.PagerStyle > th {
    background-color: var(--apk-table-styler-bg-color);
}

table.apk-datatable.table-striped tbody tr.PagerStyle:hover td,
table.apk-datatable.table-striped tbody tr.PagerStyle:hover th {
    background-color: var(--apk-table-styler-bg-color);
}

table.apk-datatable.table-striped {
    border-collapse: separate !important;
    border: var(--apk-table-border);
    border-radius: var(--apk-table-border-radius);
    box-shadow: var(--apk-table-box-shadow);
}
/*** APSDataTable END ***/
