/* 
 * Scheletons Default.css Modernizzato - Tema Avanet
 * Layout, struttura e componenti per GAzie
 */

/* ============================================
   FORM ELEMENTS MODERNI 
   ============================================ */
select {
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    background-color: #ffffff;
    color: #374151;
    transition: all 0.2s ease-in-out;
}

select:focus {
    border-color: #38E25D;
    box-shadow: 0 0 0 3px rgba(56, 226, 93, 0.1);
    outline: none;
}

input, select, textarea {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
    background-color: #ffffff;
    color: #374151;
    transition: all 0.2s ease-in-out;
}

input:focus, select:focus, textarea:focus {
    border-color: #38E25D;
    box-shadow: 0 0 0 3px rgba(56, 226, 93, 0.1);
    outline: none;
}

input[type="number"] {
    text-align: center;
}

.form-control {
    display: block;
    width: 100%;
    height: 36px;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: none;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: #374151;
    transition: all 0.2s ease-in-out;
}

.form-control:focus {
    border-color: #38E25D;
    box-shadow: 0 0 0 3px rgba(56, 226, 93, 0.1);
}

select.input-sm {
    height: 32px;
    padding: 6px 10px;
}

select {
    min-height: 32px !important;
}

.form-group select {
    padding-left: 12px;
}

.form-group input {
    padding-left: 12px;
}

/* ============================================
   SIDEBAR MODERNO 
   ============================================ */
.sidebar-menu > li > a {
    padding: 12px 8px 12px 16px;
    display: block;
    transition: all 0.2s ease-in-out;
    border-radius: 6px;
    margin: 2px 8px;
}

.sidebar-menu .treeview-menu .treeview-menu {
    padding-left: 4px;
}

.adminlte-gazie .sidebar-form {
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    margin: 12px;
    background: #ffffff;
}

.adminlte-gazie .sidebar-form input[type="text"],
.adminlte-gazie .sidebar-form .btn {
    box-shadow: none;
    border: 1px solid transparent;
    height: 38px;
    transition: all 0.3s ease-in-out;
}

.adminlte-gazie .sidebar-form input[type="text"] {
    border-top-left-radius: 6px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 6px;
    background: #ffffff;
    color: #374151;
}

.adminlte-gazie .sidebar-form input[type="text"]:focus {
    border-color: #38E25D;
    background: #ffffff;
}

/* RIMOSSO IL GRADIENTE SCURO DELLA SIDEBAR */
.adminlte-gazie .main-sidebar {
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
}

.adminlte-gazie .sidebar-form .btn {
    border-top-left-radius: 0;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    border-bottom-left-radius: 0;
    background: #f8fafc;
    color: #64748b;
}

.adminlte-gazie .sidebar-form .btn:hover {
    background: #38E25D;
    color: #ffffff;
}

.adminlte-gazie .sidebar-menu > li > a {
    border-left: 3px solid transparent;
    padding-left: 12px;
}

.adminlte-gazie .sidebar-menu > li.active > a {
    border-left-color: #38E25D;
    background: rgba(56, 226, 93, 0.1);
    color: #38E25D;
}

.adminlte-gazie.layout-top-nav .main-header > .logo {
    border-bottom: 0 solid transparent;
}

/* ============================================
   LAYOUT E SPACING 
   ============================================ */
.form-horizontal .form-group {
    margin-right: 0px;
    margin-left: 0px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.form-group {
    margin-top: 12px;
    margin-bottom: 12px;
}

div .panel.panel-default {
    padding-top: 12px;
}

ul .nav.nav-tabs {
    height: 32px;
}

/* ============================================
   USER MENU MIGLIORATO 
   ============================================ */
html body.adminlte-gazie.sidebar-mini.sidebar-collapse form div.wrapper header.main-header nav.navbar.navbar-static-top div.navbar-custom-menu ul.nav.navbar-nav li.dropdown.user.user-menu.open ul.dropdown-menu li.user-footer div.pull-right input.btn.btn-default.btn-flat {
    height: 38px;
    width: 70px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
}

html body.adminlte-gazie.sidebar-mini.sidebar-collapse form div.wrapper header.main-header nav.navbar.navbar-static-top div.navbar-custom-menu ul.nav.navbar-nav li.dropdown.user.user-menu.open ul.dropdown-menu li.user-footer div.pull-right input.btn.btn-default.btn-flat:hover {
    background: #38E25D;
    color: #ffffff;
    border-color: #38E25D;
}

/* ============================================
   PANELS E CONTAINERS 
   ============================================ */
div.panel.panel-info div.container-fluid.bg-info ul.nav.nav-tabs li a {
    position: relative;
    display: block;
    padding: 8px 12px;
    border-radius: 6px 6px 0 0;
    transition: all 0.2s ease-in-out;
}

div.panel.panel-info div.container-fluid.bg-info ul.nav.nav-tabs li a:hover {
    background: rgba(56, 226, 93, 0.1);
    color: #38E25D;
}

div.panel.panel-default div.container-fluid div.form-row div.form-group.col-md-6.col-lg-3.nopadding div.bg-success.text-center {
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    background: #f0fdf4;
    color: #166534;
}

div.panel.panel-default div#gaz-responsive-table.container-fluid table.col-xs-12.table-responsive.table-striped.table-condensed.cf tbody tr td.col-lg-4 input.col-lg-12 {
    width: 99%;
    border-radius: 4px;
}

html body.adminlte-gazie.sidebar-mini.sidebar-collapse form div.wrapper div.content-wrapper section.content form.form-horizontal div.panel.panel-default div#gaz-responsive-table.container-fluid table.col-xs-12.table-responsive.table-striped.table-condensed.cf tbody tr td button.btn {
    padding: 4px 8px;
    width: 90%;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    transition: all 0.2s ease-in-out;
}

html body.adminlte-gazie.sidebar-mini.sidebar-collapse form div.wrapper div.content-wrapper section.content form.form-horizontal div.panel.panel-default div#gaz-responsive-table.container-fluid table.col-xs-12.table-responsive.table-striped.table-condensed.cf tbody tr td button.btn:hover {
    background: #38E25D;
    color: #ffffff;
    border-color: #38E25D;
}

div.form-group div.form-group.col-md-6.col-lg-3.nopadding div.bg-success {
    color: #166534;
    border-radius: 6px;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    padding-left: 12px;
    padding-top: 6px;
    height: 32px;
}

div.panel.panel-default div.container-fluid div.form-row div.form-group.col-md-6.col-lg-3.nopadding div.bg-success.text-center {
    color: #166534;
    border-radius: 6px;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    padding-left: 12px;
    padding-top: 6px;
    height: 32px;
}

div.panel.panel-default div.container-fluid div.form-row div.form-group.col-md-6.col-lg-3.nopadding div.text-center {
    color: #374151;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    padding-left: 12px;
    padding-top: 6px;
    height: 32px;
}

/* ============================================
   ALERTS MODERNI 
   ============================================ */
.alert a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
}

.alert a:hover {
    color: #38E25D;
    text-decoration: underline;
}

/* ============================================
   NAVBAR E MENU 
   ============================================ */
.navbar-nav > .messages-menu > .dropdown-menu > li .menu > li > a > h4 {
    padding: 0;
    margin: 0 0 0 30px;
    color: #374151;
    font-size: 15px;
    position: relative;
    font-weight: 600;
}

.navbar-nav > .messages-menu > .dropdown-menu > li .menu > li > a > p {
    color: #38E25D;
    font-size: 12px;
    margin: 0 0 0 30px;
}

.navbar-nav > .notifications-menu > .dropdown-menu > li .menu, 
.navbar-nav > .messages-menu > .dropdown-menu > li .menu, 
.navbar-nav > .tasks-menu > .dropdown-menu > li .menu {
    max-height: 500px;
    background: #ffffff;
}

.navbar-static-top {
    border-bottom: 1px solid #e2e8f0 !important;
}

/* ============================================
   CONTENT E LAYOUT 
   ============================================ */
.content-wrapper {
    min-width: 300px;
}

.content {
    padding-left: 15px;
    padding-right: 15px;
}

section.content {
    padding-top: 15px;
}

.admin_footer {
    margin-top: 30px;
    opacity: 0.7;
    transition: opacity 0.3s ease-in-out;
}

.admin_footer:hover {
    margin-top: 30px;
    opacity: 1;
}

/* ============================================
   IMMAGINI E MEDIA 
   ============================================ */
.img-circle.dit-picture, .text-center > a > .img-circle {
    border-radius: 12px;
    max-width: 180px;
    width: auto;
    height: auto;
    max-height: 180px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.usr-picture {
    margin: 10px;
    height: 150px;
    max-width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 50%;
}

/* ============================================
   BOTTONI MODERNI 
   ============================================ */
.btn {
    white-space: normal;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 400;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-50 {
    width: 50px;
}

.btn-100 {
    text-align: center;
    padding-right: 16px;
    width: 100px;
}

.btn-200 {
    width: 200px;
}

.btn-full {
    width: 100%;
}

.glyphicon-edit {
    padding-right: 5px;
}

.right {
    text-align: right;
    margin-right: 1em;
}

/* ============================================
   TABELLE MODERNE 
   ============================================ */
.FacetFieldCaptionTD {
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 4px;
    font-weight: 500;
    color: #374151;
}

.FacetDataTD input, select, textarea, select[class^='col-'] {
    padding-left: 12px;
    margin-left: 0px;
}

.tab-content {
    padding: 20px;
    background: #ffffff;
    border-radius: 0 6px 6px 6px;
    border: 1px solid #e2e8f0;
}

.nav-tabs > li > a {
    border: none;
    border-radius: 6px 6px 0 0;
    transition: all 0.2s ease-in-out;
}

.nav-tabs > li > a:hover {
    border-top: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    background: #f8fafc;
}

.nav-tabs > li.active > a {
    background: #ffffff;
    border-top: 2px solid #38E25D;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    color: #38E25D;
    font-weight: 500;
}

.table {
    margin-bottom: 15px;
}

.FacetFormTABLE, table.Tmiddle, table.Tsmall {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    border-collapse: separate;
    margin-left: auto;
    margin-right: auto;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

table.Tmiddle tr > td, table.Tsmall tr > td {
    padding: 12px;
}

@media only screen and (min-width: 990px) {
    table.Tmiddle {
        max-width: 70%;
    }
    table.Tsmall {
        max-width: 50%;
    }
}

#products-list {
    border-top: 0px solid;
}

/* ============================================
   PANELS MODERNI 
   ============================================ */
.panel {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.panel-company {
    min-height: 200px;
    width: 100%;
}

.navbar-static-bottom {
    border-bottom: 1px solid #e2e8f0;
}

.panel-user {
    min-height: 200px;
    width: 100%;
}

.sidebar-menu .treeview-menu > li > a {
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.sidebar-menu .treeview-menu > li > a:hover {
    background: rgba(56, 226, 93, 0.1);
    color: #38E25D;
    transform: translateX(4px);
}

.FacetFormHeaderFont {
    font-size: 20px;
    text-align: center;
    font-weight: 600;
    padding-top: 12px;
    color: #374151;
}

.control-sidebar-menu .menu-info {
    margin-left: 0px;
}

.control-sidebar-menu > li > a {
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.control-sidebar-menu > li > a:hover {
    background: rgba(56, 226, 93, 0.1);
    color: #38E25D;
}

.gaz-home-scadenze {
    min-height: 260px;
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
}

#fornitori span {
    display: none;
}

#clienti span {
    display: none;
}

/* ============================================
   RESPONSIVE TABLE 
   ============================================ */
@media only screen and (max-width: 991px) {
    #gaz-responsive-table table,
    #gaz-responsive-table thead,
    #gaz-responsive-table tbody,
    #gaz-responsive-table th,
    #gaz-responsive-table td,
    #gaz-responsive-table tr {
        display: block;
    }
    
    #gaz-responsive-table table {
        padding: 8px;
        background: #ffffff;
        border-radius: 8px;
    }
    
    #gaz-responsive-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    #gaz-responsive-table tr {
        border: 1px solid #e2e8f0;
        margin-bottom: 8px;
        border-radius: 6px;
        background: #ffffff;
    }
    
    #gaz-responsive-table td {
        border: none;
        border-bottom: 1px solid #f1f5f9;
        position: relative;
        padding-left: 35%;
        padding-top: 8px;
        padding-bottom: 8px;
        white-space: normal;
        text-align: left;
    }
    
    #gaz-responsive-table td:before {
        position: absolute;
        top: 8px;
        left: 8px;
        width: 30%;
        padding-right: 12px;
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
        font-size: 13px;
        color: #64748b;
    }
    
    #gaz-responsive-table td:before {
        content: attr(data-title);
    }
    
    .gaz-table-form .form-group {
        background-color: #f8fafc;
        border-radius: 4px;
        padding: 8px;
        margin: 4px 0;
    }
}

/* ============================================
   LOGIN SECTION MODERNO 
   ============================================ */
.panel-title {
    vertical-align: middle;
    font-weight: 600;
    color: #374151;
}

#formlogin {
    padding-top: 50px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

#formlogin .form-wrap {
    margin: 0 auto;
    float: right;
}

.form-logo {
    float: left;
}

header.main-header .logo {
    text-align: left;
}

.form-main {
    margin: 10px 30%;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

#formlogin h1 {
    color: #38E25D;
    font-size: 24px;
    text-align: center;
    font-weight: 600;
    padding-bottom: 30px;
}

#formlogin .form-group {
    margin-bottom: 25px;
}

#formlogin .checkbox {
    margin-bottom: 20px;
    position: relative;
    user-select: none;
}

#formlogin .checkbox.show:before {
    content: '\e013';
    color: #38E25D;
    font-size: 17px;
    margin: 1px 0 0 3px;
    position: absolute;
    pointer-events: none;
    font-family: 'Glyphicons Halflings';
}

#formlogin .checkbox .character-checkbox {
    width: 25px;
    height: 25px;
    cursor: pointer;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    vertical-align: middle;
    display: inline-block;
    transition: all 0.2s ease-in-out;
}

#formlogin .checkbox .character-checkbox:hover {
    border-color: #38E25D;
}

#formlogin .checkbox .label {
    color: #64748b;
    font-size: 14px;
    font-weight: 400;
}

#formlogin .btn.btn-custom {
    font-size: 16px;
    margin-bottom: 20px;
    background: #38E25D;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

#formlogin .btn.btn-custom:hover {
    background: #2bc653;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(56, 226, 93, 0.3);
}

#formlogin .forget {
    font-size: 14px;
    text-align: center;
    display: block;
    color: #64748b;
}

#formlogin .forget:hover {
    color: #38E25D;
}

/* ============================================
   SPECIFIC COMPONENTS 
   ============================================ */
#banapp {
    max-width: 200px;
}

#expense_vat {
    max-width: 200px;
}

#in_codvat {
    max-width: 200px;
}

.table-responsive {
    min-height: 0.01%;
}

.box-body {
    padding: 0px;
}

.ui-sortable-handle {
    padding: 8px;
    cursor: move;
}

/* Dashboard panels height */
[id^=position-] .panel {
    min-height: 310px;
}

[id^=position-] {
    padding: 15px;
}

.panel-default {
    margin: auto;
}

/* ============================================
   CONTENT HEADER 
   ============================================ */
.content-header > h1 {
    padding-top: 30px;
    color: #374151;
    font-weight: 600;
}

.content-header > .breadcrumb {
    margin-top: 0px;
    margin-bottom: 0;
    font-size: 12px;
    padding: 8px 16px;
    position: absolute;
    width: 100%;
    border-bottom: 1px solid #e2e8f0 !important;
    border-radius: 0px;
    background: #f8fafc;
}

.breadcrumb li {
    margin: 2px 0;
}

.ui-dialog-titlebar-close {
    visibility: hidden;
}

.tooltip-inner {
    min-width: 150px;
    max-width: 100%;
    background: #374151;
    color: #ffffff;
    border-radius: 6px;
}

form table.GazFormDeleteTable {
    margin: auto;
    width: 400px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

html body form section.content form.form-horizontal {
    padding-top: 15px;
}

table.xdebug-error, pre.xdebug-var-dump {
    z-index: 2000;
    position: relative;
}

/* ============================================
   ANIMATIONS 
   ============================================ */
.animated {
    animation-duration: 0.6s;
    animation-fill-mode: both;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInDown {
    animation-name: fadeInDown;
}

/* ============================================
   SIDEBAR E MENU SPACING 
   ============================================ */
.sidebar-menu, .main-sidebar .user-panel, .sidebar-menu > li.header {
    padding-top: 12px;
}

.sidebar-menu > li {
    margin-top: 0px;
    margin-bottom: 0px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.navbar-nav > li > #docmodal {
    padding-top: 12px;
    padding-bottom: 10px;
}

section.content-header div h1 {
    font-size: 2.2em;
    margin-top: 12px;
    margin-bottom: 8px;
    font-weight: 600;
}

/* ============================================
   FORM LAYOUT 
   ============================================ */
.gaz-table-form {
    max-width: 990px;
    float: none;
    margin-left: auto;
    margin-right: auto;
}

#fattura-elettronica {
    background-color: #fffef7;
    padding-top: 20px;
    color: #374151;
    border-radius: 8px;
    border: 1px solid #fef3c7;
}

.main-footer {
    padding-bottom: 25px;
    padding-top: 15px;
}

.ui-button {
    padding: 8px 12px;
    border-radius: 6px;
}

.line-through {
    text-decoration: line-through;
}

.lang-select {
    padding: 8px;
    height: 42px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
}