﻿
body {
    background-color: #f8f9fa;
}

.mh-30 {
    max-height: 30px;
}

.logo-cliente {
    max-height: 70px;
}

header img.logo-cliente {
    max-height: 50px;
}

@media screen and (min-width: 0px) and (max-width: 991px) {
    header img.logo-cliente {
        margin: 15px 0;
    }
}

.btn-sdm {
    background-color: #9ac456 !important;
    padding: 8px 20px !important;
    color: #ffffff !important;
}


.btn-modera {
    display: block;
    padding: 2px 10px;
    font-size: 12px;
    margin: 5px;
    color: #ffffff;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
}

.btn-modera.approva { background-color: #9ac456; border: 2px solid #9ac456; }
.btn-modera.approva:hover { color: #9ac456; background-color: #ffffff; }
.btn-modera.rifiuta { background-color: #cd5c5c; border: 2px solid #cd5c5c; }
.btn-modera.rifiuta:hover { color: #cd5c5c; background-color: #ffffff; }
.btn-modera.originali { background-color: #abcdef; border: 2px solid #abcdef; }
.btn-modera.originali:hover { color: #abcdef; background-color: #ffffff; }
.btn-modera.standby { background-color: #ffd700; border: 2px solid #ffd700; }
.btn-modera.standby:hover { color: #ffd700; background-color: #ffffff; }

.btn-sdm:hover {
    background-color: #ffffff !important;
    border: 1px solid #9ac456 !important;
    color:  #9ac456 !important;
}

.loading-container {
    display: flex;
}

.loading-container svg {
    width: 70px;
}

.loading-container svg circle {
    stroke: #9ac456;
}

.c-green {
    color: #9ac456 !important;
}

.c-grey {
    color: #67737f !important;
}

.nav-link {
    background-color: #ececec;
    color: #494f55 !important;
    border-radius: 10px;
    margin: 5px 5px !important;
    padding: 10px 15px !important;
}

.nav-link-sdm {
    padding: 10px 15px;
    margin: 0px 5px;
    background-color: #ececec;
    color: #494f55 !important;
    font-size: 15px !important;
    line-height: 15px;
    border-radius: 10px;
    text-decoration: none !important;
}

@media screen and (min-width: 0px) and (max-width: 1023px) { /*768*/
    .nav-link-sdm {
        margin: 10px 0px;
    }
}

.nav-link-sdm.logout {
    color: #ffffff !important;
    background-color: #494f55 !important;
    border: none;
}

.nav-link-sdm.active {
    color: #FFF !important;
    background-color: #9ac456 !important;
}

.box-sdm {
    width: 100%;
    padding: 25px;    
    border-radius: 10px;
    background-color: #ffffff;
}

.box-sdm-profilo {
    width: 100%;
    border-radius: 10px;
    margin-left: 30px;
}

@media screen and (min-width: 0px) and (max-width: 1024px) {
    .box-sdm-profilo {
        margin-left: 0px;
    }
}

.dxbl-pager > .dxbl-btn.dxbl-btn-outline-secondary.dxbl-pager-active-page-btn {
    background-color: #9ac456 !important;
}

.dxbl-list-box-render-container > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > ul > li.dxbl-list-box-item-selected::before, .dxbl-list-box > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > ul > li.dxbl-list-box-item-selected::before {
    background-color: #9ac456 !important;
}

select.select-sdm {
    display: block;
    width: 100%;
    height: 50px;
    line-height: 50px;
    margin: 0px;
    padding: 0px 20px;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    line-height: 18px;
    color: #212529;
    text-align: left;
    text-indent: 0px;
    background: #ffffff;
    border: none;
    outline: none;
    clear: both;
    resize: none;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

table#prodotti-ocr {
    width: 100%;
    border-collapse: collapse;
}

table#prodotti-ocr th,
table#prodotti-ocr td {
    padding: 4px;
    border: 1px solid #212529;
}


/* Stili aggiuntivi per il nuovo layout */
.header-sdm {
    background-color: #ffffff;
    border-bottom: 2px solid #9ac456;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-content {
    padding: 25px 0;
}

.page {
    background-color: #f8f9fa;
}

/* Miglioramenti per le card */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
}

.card-title {
    font-weight: 600;
}

/* Stili per le tabelle */
.table th {
    border-top: none;
    font-weight: 600;
}

.table-light th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #9ac456;
}

/* Badge personalizzati */
.badge.bg-success {
    background-color: #9ac456 !important;
}

/* Responsive migliorato */
@media screen and (max-width: 768px) {
    .header-sdm .row {
        text-align: center;
    }
    
    .header-sdm .col-md-3,
    .header-sdm .col-md-9 {
        margin-bottom: 15px;
    }
}

/* Animazioni per i pulsanti */
.btn-sdm {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.btn-sdm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(154, 196, 86, 0.3);
}

/* Stili per gli alert */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background-color: rgba(154, 196, 86, 0.1);
    color: #9ac456;
    border-left: 4px solid #9ac456;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-left: 4px solid #dc3545;
}
/* 
Stili per le pagine di account */
.account-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.account-container {
    max-width: 500px;
    margin: 0 auto;
}

/* Stili per i form di autenticazione */
.form-control:focus {
    border-color: #9ac456;
    box-shadow: 0 0 0 0.2rem rgba(154, 196, 86, 0.25);
}

.form-check-input:checked {
    background-color: #9ac456;
    border-color: #9ac456;
}

/* Stili per i modal */
.modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
    border-radius: 10px 10px 0 0;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

/* Stili per le icone SVG */
.auth-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

/* Miglioramenti per i link */
a.text-decoration-none:hover {
    color: #9ac456 !important;
    text-decoration: underline !important;
}

/* Stili per i badge nei ruoli */
.badge.bg-success {
    background-color: #9ac456 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-primary {
    background-color: #0d6efd !important;
}

/* Responsive per le pagine di account */
@media (max-width: 768px) {
    .account-container {
        padding: 0 15px;
    }
    
    .box-sdm {
        padding: 20px;
    }
    
    .modal-dialog {
        margin: 10px;
    }
}/* Nascond
ere il messaggio di errore Blazor quando non necessario */
#blazor-error-ui {
    display: none !important;
}

#blazor-error-ui.show {
    display: block !important;
}/* Stil
i per la navigazione delle pagine di gestione account */
.nav-link-account {
    border: none !important;
    color: #494f55 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 12px 16px;
}

.nav-link-account:hover {
    background-color: #f8f9fa !important;
    color: #9ac456 !important;
}

.nav-link-account.active {
    background-color: #9ac456 !important;
    color: white !important;
    font-weight: 500;
}

.nav-link-account i {
    width: 16px;
    text-align: center;
}

/* Responsive per la navigazione account */
@media (max-width: 768px) {
    .nav-link-account {
        text-align: center;
        padding: 10px;
    }
}

.btn-group>.btn-group:not(:first-child)>.btn-success:first-child:not(.active):not(:active)::before, .btn-group>.btn-success:not(:first-child):not(.active):not(:active)::before {
    top: 0 !important;
    height: calc(100% + 0 * var(--bs-border-width)) !important;
}