/* *******************************************
** progetto..: WebFunc
** modulo....: customStyle.css - personalizzazione di AdminLTE
** scopo.....: stili personali progetto
** autore....: LOTO Servizi - Giovanni Lorenzini
** *******************************************/

.select2-container--default .select2-selection--single, .select2-selection .select2-selection--single {
    padding: 3px 12px;
    height: 30px;
    border-radius: 5px;
}

.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th {
    padding: 2px 2px;
}

.wf_head {
    font-weight: bold;
}
.table>tbody>tr.wf_head>th {
    border-bottom: 1px solid #aaa;
}
.table-hover>tbody>tr.wf_head:hover,
.table-hover>tbody>tr:hover {background: #e0eaff;}
.wf_odd   		{}
.wf_even  		{background: #eaf0fd;}

/**** Override Bootstrap ****/
.form-group {
    margin-bottom: 5px;
}
.form-control {
    height: 30px;
}
label {
    margin-bottom: 0px;
}
.help-block {
    display: inline-block;
    margin: 0;
}

.has-feedback label~.form-control-feedback {
    top: 19px;
}
.footer_paginate {
    text-align: right;
}
.pagination {
    margin: 0;
}
.typeahead { z-index: 100; }
.ui-dialog { z-index: 1000; }

.wf_multiform .elenco {width: 100%;}
.no-margin {margin: 0;}

.stataques td {
    padding: 3px;
}
.stataques .riga {
    border: 1px solid #666;
}
.stataques .bordol {
    border-left: 1px solid #666;
}
.stataques .bordor {
    border-right: 1px solid #666;
}

.wf_browse .dataTable .btn-group {
    display: flex;
}
.box-header .btn {
    margin: 15px 15px 0 0;
}
form .col-md-1,
form .col-md-2,
form .col-md-3,
form .col-md-4,
form .col-md-5,
form .col-md-6,
form .col-md-7,
form .col-md-8,
form .col-md-9,
form .col-md-10,
form .col-md-11,
form .col-md-12 {
    padding-right: 0px !important;
}
form .row {
    margin-right:0;
}

.select2-container--default.select2-container--focus,
.select2-selection.select2-container--focus,
.select2-container--default:focus,
.select2-selection:focus,
.select2-container--default:active,
.select2-selection:active {
    border: 1px solid #3c8dbc;
    box-shadow: none;
}

/* ==========================================================================
   Restyling interfaccia
   ========================================================================== */

:root {
    --wf-accent: #3c8dbc;
    --wf-accent-dark: #367fa9;
    --wf-accent-rgb: 60, 141, 188;
    --wf-radius: 6px;
    --wf-shadow-sm: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
    --wf-shadow-md: 0 8px 24px rgba(16, 24, 40, .12);
}

body.skin-blue,
body.skin-blue-light {
    --wf-accent: #3c8dbc;
    --wf-accent-dark: #367fa9;
    --wf-accent-rgb: 60, 141, 188;
}

body.skin-green,
body.skin-green-light {
    --wf-accent: #00a65a;
    --wf-accent-dark: #008d4c;
    --wf-accent-rgb: 0, 166, 90;
}

body.skin-purple,
body.skin-purple-light {
    --wf-accent: #605ca8;
    --wf-accent-dark: #555299;
    --wf-accent-rgb: 96, 92, 168;
}

body.skin-red,
body.skin-red-light {
    --wf-accent: #dd4b39;
    --wf-accent-dark: #d73925;
    --wf-accent-rgb: 221, 75, 57;
}

body.skin-yellow,
body.skin-yellow-light {
    --wf-accent: #f39c12;
    --wf-accent-dark: #e08e0b;
    --wf-accent-rgb: 243, 156, 18;
}

body.skin-black,
body.skin-black-light {
    --wf-accent: #3c8dbc;
    --wf-accent-dark: #367fa9;
    --wf-accent-rgb: 60, 141, 188;
}

/* ---- Header -------------------------------------------------------------- */
.main-header .logo {
    font-weight: 600;
    letter-spacing: .2px;
}

.main-header .navbar {
    box-shadow: 0 2px 10px rgba(16, 24, 40, .12);
}

.main-header .sidebar-toggle {
    transition: background-color .2s ease;
}

.main-header .navbar-custom-menu > .navbar-nav > li > a {
    transition: background-color .2s ease;
}

.main-header .navbar-custom-menu > .navbar-nav > li > a:hover {
    background-color: rgba(0, 0, 0, .10);
}

/* ---- Sidebar ------------------------------------------------------------- */
.wrapper > .main-sidebar {
    background: linear-gradient(180deg, #1d272c 0%, #222d32 55%, #1b2429 100%);
    box-shadow: 2px 0 14px rgba(16, 24, 40, .18);
}

.main-sidebar .user-panel {
    padding: 14px 12px 12px;
    margin-bottom: 2px;
    background: rgba(255, 255, 255, .02);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.main-sidebar .user-panel > .image > img {
    max-width: 40px;
    border: 2px solid rgba(255, 255, 255, .18);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.main-sidebar .user-panel > .info {
    left: 52px;
    padding: 4px 5px 4px 12px;
}

.main-sidebar .user-panel > .info > p {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}

.main-sidebar .user-panel > .info > a {
    color: rgba(255, 255, 255, .60);
    font-size: 11px;
}

.main-sidebar .user-panel > .info > a:hover {
    color: #fff;
}

/* ---- Ricerca menu -------------------------------------------------------- */
.sidebar-search {
    padding: 10px 12px 12px;
}

.sidebar-search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 10px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 999px;
    cursor: text;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.sidebar-search-box:hover {
    background: rgba(255, 255, 255, .09);
}

.sidebar-search-box:focus-within {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(var(--wf-accent-rgb), .75);
    box-shadow: 0 0 0 3px rgba(var(--wf-accent-rgb), .16);
}

.sidebar-search-icon {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
}

.sidebar-search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0;
    margin: 0;
    color: #fff;
    font-size: 13px;
    line-height: 1;
    background: transparent;
    border: 0;
    outline: 0;
    box-shadow: none;
}

.sidebar-search-input:focus,
.sidebar-search-input:active {
    background: transparent;
    border: 0;
    outline: 0;
    box-shadow: none;
}

.sidebar-search-input::placeholder {
    color: rgba(255, 255, 255, .48);
}

.sidebar-search-input::-webkit-search-cancel-button,
.sidebar-search-input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.sidebar-search-shortcut {
    display: flex;
    flex: 0 0 auto;
    gap: 3px;
    opacity: .7;
}

.sidebar-search-shortcut kbd {
    padding: 1px 4px;
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    line-height: 1.25;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 4px;
    box-shadow: none;
}

.sidebar-search.has-value .sidebar-search-shortcut {
    display: none;
}

.sidebar-search-clear {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    color: #fff;
    font-size: 10px;
    background: rgba(255, 255, 255, .12);
    border: 0;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    transition: background-color .2s ease, opacity .2s ease, visibility .2s ease;
}

.sidebar-search.has-value .sidebar-search-clear {
    opacity: 1;
    visibility: visible;
}

.sidebar-search-clear:hover,
.sidebar-search-clear:focus {
    background: rgba(var(--wf-accent-rgb), .90);
    outline: 0;
}

.sidebar-search-empty {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, .58);
    font-size: 12px;
    line-height: 1.35;
    background: rgba(255, 255, 255, .04);
    border-radius: var(--wf-radius);
}

.sidebar-search.is-empty .sidebar-search-empty {
    display: flex;
}

/* ---- Menu laterale ------------------------------------------------------- */
.sidebar-menu {
    padding: 2px 0 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .22) transparent;
}

.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .18);
    border-radius: 999px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, .30);
}

.sidebar-menu > li.header {
    padding: 14px 22px 6px;
    color: #6b7d87;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: transparent;
}

.wrapper .sidebar-menu > li > a {
    margin: 2px 10px;
    padding: 10px 12px;
    color: #c2c7d0;
    font-size: 14px;
    font-weight: 500;
    border-left: 0 !important;
    border-radius: var(--wf-radius);
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.wrapper .sidebar-menu > li > a:hover,
.wrapper .sidebar-menu > li:hover > a {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.wrapper .sidebar-menu > li.active > a {
    color: #fff;
    background: var(--wf-accent) !important;
    box-shadow: 0 4px 14px rgba(var(--wf-accent-rgb), .35);
}

.wrapper .sidebar-menu > li > a > .fa,
.wrapper .sidebar-menu > li > a > .fas,
.wrapper .sidebar-menu > li > a > .far,
.wrapper .sidebar-menu > li > a > .glyphicon,
.wrapper .sidebar-menu > li > a > .ion {
    width: 22px;
    text-align: center;
}

.wrapper .sidebar-menu .treeview-menu {
    padding: 2px 0 5px;
}

.wrapper .sidebar-menu .treeview-menu > li > a {
    margin: 1px 10px;
    padding: 7px 12px 7px 34px;
    color: #aab4be;
    font-size: 13px;
    border-radius: 5px;
    transition: background-color .18s ease, color .18s ease;
}

.wrapper .sidebar-menu .treeview-menu > li > a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.wrapper .sidebar-menu .treeview-menu > li.active > a {
    color: #fff;
    background: rgba(var(--wf-accent-rgb), .18);
    box-shadow: inset 3px 0 0 var(--wf-accent);
}

.wrapper .sidebar-menu .treeview-menu > li > a > .fa,
.wrapper .sidebar-menu .treeview-menu > li > a > .fas,
.wrapper .sidebar-menu .treeview-menu > li > a > .glyphicon,
.wrapper .sidebar-menu .treeview-menu > li > a > .ion {
    width: 20px;
    text-align: center;
}

.wrapper .sidebar-menu .treeview-menu .treeview-menu > li > a {
    padding-left: 52px;
}

.wrapper .sidebar-menu .treeview-menu .treeview-menu .treeview-menu > li > a {
    padding-left: 68px;
}

/* Evidenzia il ramo aperto */
.wrapper .sidebar-menu > li.treeview.active > a,
.wrapper .sidebar-menu > li.treeview.menu-open > a {
    color: #fff;
}

/* Filtro ricerca: apre i rami visibili e nasconde le voci non corrispondenti */
.sidebar-menu.wf-menu-filtering ul {
    display: block !important;
}

.sidebar-menu.wf-menu-filtering li.wf-menu-hidden {
    display: none !important;
}

.sidebar-menu.wf-menu-filtering li > a .pull-right-container .fa-angle-down,
.sidebar-menu.wf-menu-filtering li > a .pull-right-container .fa-angle-left {
    transform: rotate(-90deg);
}

/* ---- Contenuto ----------------------------------------------------------- */
.content-wrapper {
    background: #f4f7f9;
}

.content-header {
    padding: 20px 22px 0;
}

.content-header > h1 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -.25px;
}

.content-header > h1 > small {
    color: #8b98a5;
    font-size: 12px;
    font-weight: 400;
}

.content-header > .breadcrumb {
    top: 24px;
    padding: 0;
    margin: 0;
    font-size: 12px;
    background: transparent;
}

.content-header > .breadcrumb > li > a {
    color: #5e6d7b;
}

.content-header > .breadcrumb > .active {
    color: #97a4b0;
}

.content {
    padding: 16px 22px 24px;
}

.box {
    border-radius: var(--wf-radius);
    box-shadow: var(--wf-shadow-sm);
}

.box.box-primary {
    border-top-color: var(--wf-accent);
}

.box-header {
    padding: 14px 16px;
}

.box-body {
    padding: 16px;
}

.alert {
    border: 0;
    border-radius: var(--wf-radius);
    box-shadow: var(--wf-shadow-sm);
}

/* ---- Form, bottoni e tabelle --------------------------------------------- */
.form-control {
    border-color: #d7e0e8;
    border-radius: 5px;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-control:focus {
    border-color: var(--wf-accent);
    box-shadow: 0 0 0 3px rgba(var(--wf-accent-rgb), .12);
}

.btn {
    font-weight: 500;
    border-radius: 5px;
}

.btn-primary {
    background-color: var(--wf-accent);
    border-color: var(--wf-accent-dark);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
    background-color: var(--wf-accent-dark);
    border-color: var(--wf-accent-dark);
}

.table > thead > tr > th {
    color: #506274;
    font-weight: 600;
    background: #f6f9fb;
    border-bottom: 2px solid #e4ebf1;
}

.table > tbody > tr > td {
    border-top-color: #edf1f5;
    vertical-align: middle;
}

.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > a:focus,
.pagination > .active > span,
.pagination > .active > span:hover,
.pagination > .active > span:focus {
    background-color: var(--wf-accent);
    border-color: var(--wf-accent);
}

/* ---- Footer e login ------------------------------------------------------ */
.main-footer {
    padding: 12px 22px;
    color: #7a8794;
    background: #fff;
    border-top: 1px solid #e6edf2;
}

.login-page {
    background: linear-gradient(135deg, #1f2d3d 0%, #2c3e50 50%, #1a2226 100%);
}

.login-box-body {
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}

.login-logo a {
    font-weight: 600;
    letter-spacing: .3px;
}

/* ---- Adattamenti responsive ---------------------------------------------- */
@media (min-width: 768px) {
    .sidebar-mini.sidebar-collapse .sidebar-search {
        padding: 8px 0;
    }

    .sidebar-mini.sidebar-collapse .sidebar-search-box {
        width: 34px;
        height: 34px;
        margin: 0 auto;
        padding: 0;
        justify-content: center;
        gap: 0;
    }

    .sidebar-mini.sidebar-collapse .sidebar-search-icon {
        font-size: 13px;
    }

    .sidebar-mini.sidebar-collapse .sidebar-search-input,
    .sidebar-mini.sidebar-collapse .sidebar-search-clear,
    .sidebar-mini.sidebar-collapse .sidebar-search-shortcut {
        display: none;
    }

    .sidebar-mini.sidebar-collapse .sidebar-search-empty {
        display: none !important;
    }

    .sidebar-mini.sidebar-collapse .wrapper .sidebar-menu > li > a {
        margin: 2px 4px;
        padding: 10px 12px;
    }
}

@media (max-width: 767px) {
    .content-header {
        padding: 14px 15px 0;
    }

    .content {
        padding: 12px 15px 18px;
    }

    .main-footer {
        padding: 10px 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar-search-box,
    .sidebar-search-clear,
    .wrapper .sidebar-menu > li > a,
    .wrapper .sidebar-menu .treeview-menu > li > a,
    .form-control {
        transition: none;
    }
}