/* ===========================
   PREVENTIVI L'ARTIGIOIA
   v0.1.0
=========================== */

:root{

    --bg:#f5f6f8;
    --card:#ffffff;
    --border:#e5e7eb;
    --text:#2f2f2f;

    --laser:#d93025;
    --printer:#2563eb;
    --combo:#16a34a;

}

body{

    background:var(--bg);
    color:var(--text);
    font-family: "Segoe UI", sans-serif;

}

/* ===========================
   NAVBAR
=========================== */

.navbar{

    background:#ffffff !important;

    border-bottom:1px solid var(--border);

    box-shadow:0 3px 10px rgba(0,0,0,.05);

}

.navbar-brand{

    font-weight:700;

    display:flex;

    align-items:center;

    gap:10px;

}

.navbar-brand img{

    height:42px;

}

/* ===========================
   DASHBOARD
=========================== */

.dashboard-container{

    max-width:1200px;

    margin:auto;

}

.dashboard-logo{

    max-width:220px;

    margin-bottom:20px;

}

.dashboard-title{

    font-weight:800;

    margin-bottom:8px;

}

.dashboard-subtitle{

    color:#6c757d;

    font-size:18px;

}

/* ===========================
   CARD
=========================== */

.home-card{

    background:var(--card);

    border-radius:18px;

    padding:45px;

    text-align:center;

    transition:.25s;

    cursor:pointer;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    min-height:260px;

    display:flex;

    flex-direction:column;

    justify-content:center;

}

.home-card:hover{

    transform:translateY(-8px);

    box-shadow:0 18px 40px rgba(0,0,0,.15);

}

.home-card h3{

    margin-top:20px;

    font-size:26px;

    font-weight:700;

    color:#2f2f2f;

}

.home-icon{

    font-size:70px;

}

/* ===========================
   COLORI
=========================== */

.laser{

    border-top:8px solid var(--laser);

}

.laser .home-icon{

    color:var(--laser);

}

.printer{

    border-top:8px solid var(--printer);

}

.printer .home-icon{

    color:var(--printer);

}

.combo{

    border-top:8px solid var(--combo);

}

.combo .home-icon{

    color:var(--combo);

}

/* ===========================
   CARD STANDARD
=========================== */

.card{

    border:none;

    border-radius:16px;

}

.card-header{

    background:white;

    font-weight:600;

    border-bottom:1px solid var(--border);

}

/* ===========================
   LINK
=========================== */

a{

    color:inherit;

}

a:hover{

    color:inherit;

}

/* ===========================
   LAYOUT SIDEBAR
=========================== */

.app-layout{

    display:flex;

    min-height:100vh;

}

.sidebar{

    width:260px;

    background:#1f2937;

    color:#fff;

    display:flex;

    flex-direction:column;

    position:fixed;

    top:0;

    left:0;

    bottom:0;

    overflow-y:auto;

    box-shadow:4px 0 20px rgba(0,0,0,.15);

}

.sidebar-logo{

    padding:30px 20px;

    text-align:center;

    border-bottom:1px solid rgba(255,255,255,.08);

}

.sidebar-logo h4{

    color:#fff;

    font-weight:700;

}

.sidebar-logo small{

    color:#b8c1cc !important;

}

.content{

    margin-left:260px;

    width:calc(100% - 260px);

    min-height:100vh;

}

/* ===========================
   MENU SIDEBAR
=========================== */

.sidebar-menu{

    padding:20px 12px;

    display:flex;

    flex-direction:column;

    gap:6px;

}

.sidebar-menu hr{

    border-color:rgba(255,255,255,.10);

    margin:14px 8px;

}

.sidebar-menu a{

    display:flex;

    align-items:center;

    gap:12px;

    padding:12px 16px;

    border-radius:12px;

    color:#d1d5db;

    text-decoration:none;

    transition:.20s;

    font-weight:500;

}

.sidebar-menu a i{

    width:22px;

    text-align:center;

    font-size:18px;

}

.sidebar-menu a:hover{

    background:#374151;

    color:#ffffff;

    transform:translateX(4px);

}

.sidebar-menu a.active{

    background:#2563eb;

    color:#ffffff;

    font-weight:600;

}

.category-home{

    transition:all .25s ease;

    cursor:pointer;

    border:1px solid #e9ecef;

}

.category-home:hover{

    transform:translateY(-6px);

    box-shadow:0 .75rem 1.5rem rgba(0,0,0,.12)!important;

    border-color:#0d6efd;

}

.category-home:hover .category-icon{

    transform:scale(1.15);

    color:#0d6efd;

}

.category-icon{

    font-size:48px;

    transition:.25s;

}

/* ===========================
   PRODUZIONE
=========================== */

.production-notes{

    margin-top:12px;

    padding:6px 10px;

    background:#eef8ff;

    border:1px solid #bfe3f7;

    border-radius:8px;

    display:inline-block;

    width:100%;

}

.production-notes-title{

    font-size:15px;
    font-weight:700;

    color:#0c5460;

    margin-bottom:6px;

}

.production-notes-text{

    white-space: pre-wrap;

    text-align: left;

    font-size: 16px;

    font-weight: 500;

    line-height: 1.4;

    margin-top: 4px;

    margin-bottom: 0;

}

.production-card{

    transition:.2s;

}

.production-card .card-body{

    padding:14px;

}

.production-card h5{

    margin-top:10px !important;

    margin-bottom:4px !important;

    font-size:18px;

}

.production-card .row{

    margin-top:12px !important;

}

.production-card .production-notes{

    margin-top:8px;

}

.production-card .alert{

    margin-top:10px !important;

}

.production-card:hover{

    transform: translateY(-2px);

    box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.15);

}

/* ===========================
   ORDINI
=========================== */

.order-list{

    display:flex;

    flex-direction:column;

    gap:16px;

}

.order-card{

    background:#fff;

    border:1px solid #e9ecef;

    border-radius:16px;

    padding:22px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:30px;

    transition:.20s;

    box-shadow:0 4px 12px rgba(0,0,0,.05);

}

.order-card:hover{

    transform:translateY(-3px);

    box-shadow:0 12px 30px rgba(0,0,0,.10);

}

.order-left{

    flex:1;

}

.order-number{

    font-size:13px;

    color:#6c757d;

    margin-bottom:6px;

}

.order-product{

    font-size:22px;

    font-weight:700;

    margin-bottom:6px;

}

.order-category{

    color:#6c757d;

}

.order-center{

    min-width:240px;

    display:flex;

    flex-direction:column;

    gap:8px;

}

.order-center i{

    width:20px;

}

.order-right{

    min-width:180px;

    display:flex;

    flex-direction:column;

    align-items:flex-end;

    gap:14px;

}

.order-price{

    font-size:30px;

    font-weight:700;

    color:#0d6efd;

}

/* ===========================
   ORDINI
=========================== */

.orders-wrapper{
    display:flex;
    flex-direction:column;
}

.orders-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 18px;
    font-weight:700;
    color:#fff;
}

.orders-header-blue{background:#0d6efd;}
.orders-header-yellow{background:#f4b400;color:#212529;}
.orders-header-green{background:#198754;}

.order-card{

    display:grid;

    grid-template-columns:
        250px
        220px
        165px
        230px
        95px
        135px
        165px;

    align-items:center;

    padding:18px 22px;

    border-bottom:1px solid #ececec;

    background:#fff;

}

.order-card:last-child{

    border-bottom:none;

}

.order-card:hover{

    background:#f8fbff;

}

.order-col{

    padding:0 10px;

}

.order-col:not(:first-child){

    border-left:1px solid #ececec;

}

.order-order-top{

    display:flex;

    align-items:center;

    gap:12px;

}

.order-icon{

    width:56px;

    height:56px;

    border-radius:14px;

    background:#eef4ff;

    display:flex;

    align-items:center;

    justify-content:center;

    color:#0d6efd;

    font-size:28px;

    flex-shrink:0;

}

.order-number{

    font-size:14px;

    font-weight:700;

}

.order-date-small{

    font-size:14px;

    color:#666;

    margin-top:4px;

}

.order-title{

    font-size:18px;

    font-weight:700;

    margin-bottom:5px;

    line-height:1.15;

}

.order-category{

    color:#666;

}

.order-col-customer{

    font-weight:600;

    font-size:15px;

    padding-left:4px;

    padding-right:4px;

}

.order-col-dates{

    display:flex;

    flex-direction:column;

    gap:4px;

    font-size:15px;

    padding-left:6px;

    padding-right:6px;

}

.order-col-priority{

    display:flex;

    justify-content:center;

    padding-left:2px;

    padding-right:2px;

}

.order-col-price{

    text-align:right;

    padding-right:4px;

}

.order-discount{

    color:#198754;

    font-size:13px;

    font-weight:600;

    margin-bottom:4px;

}

.order-price{

    font-size:18px;

    font-weight:700;

    color:#16a34a;

}

.order-col-action{

    display:flex;

    justify-content:flex-start;

    padding-left:8px;

    padding-right:0;

}

.order-col-action .btn{

    min-width:auto;

    padding:4px 10px;

    white-space:nowrap;

}

/* ==========================================================
   CONSEGNE V3
========================================================== */

.deliveries-page{
    display:flex;
    flex-direction:column;
    gap:28px;
}

.deliveries-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
}

.deliveries-title{
    margin:0;
    font-size:34px;
    font-weight:800;
    color:#1f2937;
}

.deliveries-subtitle{
    margin-top:8px;
    margin-bottom:0;
    font-size:16px;
    color:#6b7280;
}

.deliveries-calendar-btn{
    height:44px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:0 18px;
    border-radius:12px;
    font-weight:600;
}

.deliveries-summary{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
}

.deliveries-summary-card{
    background:#fff;
    border:1px solid #e8ebef;
    border-radius:20px;
    padding:26px;
    display:flex;
    align-items:center;
    gap:22px;
    box-shadow:0 8px 24px rgba(0,0,0,.05);
}

.deliveries-summary-card.danger{
    border-left:6px solid #dc3545;
}

.deliveries-summary-card.warning{
    border-left:6px solid #f4b400;
}

.deliveries-summary-card.success{
    border-left:6px solid #198754;
}

.deliveries-summary-icon{
    width:72px;
    height:72px;
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f5f7fb;
    font-size:34px;
}

.deliveries-summary-card.danger .deliveries-summary-icon{
    color:#dc3545;
}

.deliveries-summary-card.warning .deliveries-summary-icon{
    color:#c28d00;
}

.deliveries-summary-card.success .deliveries-summary-icon{
    color:#198754;
}

.deliveries-summary-number{
    font-size:36px;
    font-weight:800;
    line-height:1;
}

.deliveries-summary-title{
    margin-top:8px;
    font-size:18px;
    font-weight:700;
}

.deliveries-summary-description{
    margin-top:4px;
    font-size:14px;
    color:#6b7280;
}

.deliveries-section{
    background:#fff;
    border:1px solid #e8ebef;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 28px rgba(0,0,0,.05);
}

.deliveries-overdue{
    border-top:6px solid #dc3545;
}

.deliveries-today{
    border-top:6px solid #f4b400;
}

.deliveries-future{
    border-top:6px solid #198754;
}

.deliveries-section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 26px;
    border-bottom:1px solid #eceff3;
}

.deliveries-section-title{
    display:flex;
    align-items:center;
    gap:12px;
    font-size:21px;
    font-weight:700;
}

.deliveries-section-title.danger{
    color:#dc3545;
}

.deliveries-section-title.warning{
    color:#c28d00;
}

.deliveries-section-title.success{
    color:#198754;
}

.deliveries-section-count{
    font-size:15px;
    font-weight:600;
    color:#6b7280;
}

.deliveries-section-body{
    display:flex;
    flex-direction:column;
}

.delivery-row{

    display:grid;

    grid-template-columns:
        82px
        minmax(320px,1fr)
        180px
        150px
        220px;

    align-items:center;

    column-gap:18px;

    padding:8px 26px;

    border-bottom:1px solid #edf0f3;

}

.delivery-row:last-child{

    border-bottom:none;

}

.delivery-row:hover{

    background:#fafcff;

}

.delivery-col-calendar{

    display:flex;

    justify-content:center;

    align-items:center;

}

.delivery-col-info{

    min-width:0;

}

.delivery-order-number{

    font-size:13px;

    font-weight:700;

    color:#6b7280;

    margin-bottom:2px;

}

.delivery-category{

    font-size:13px;

    font-weight:600;

    color:#9ca3af;

    margin-bottom:2px;

}

.delivery-product{

    font-size:20px;

    font-weight:700;

    color:#1f2937;

    line-height:1.15;

    margin-bottom:4px;

}

.delivery-customer{

    display:flex;

    align-items:center;

    gap:8px;

    font-size:15px;

    color:#6b7280;

}

.delivery-customer i{

    color:#9ca3af;

}

.delivery-col-status{

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    text-align:center;

    margin-left:-950px;

}

.delivery-col-date{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    margin-left:-500px;

}

.delivery-col-actions{

    display:flex;

    justify-content:flex-end;

    align-items:center;

    gap:10px;

}

.delivery-calendar{

    width:60px;

    height:60px;

    border-radius:14px;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    color:#fff;

    line-height:1;

}

.delivery-calendar.danger{

    background:#dc3545;

}

.delivery-calendar.warning{

    background:#f4b400;

    color:#212529;

}

.delivery-calendar.success{

    background:#198754;

}

.delivery-calendar-day{

    font-size:24px;

    font-weight:800;

}

.delivery-calendar-month{

    font-size:10px;

    text-transform:uppercase;

    letter-spacing:.5px;

    margin-top:2px;

}

.delivery-calendar-weekday{

    margin-top:4px;

    font-size:10px;

}

.delivery-badge{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    min-width:150px;

    height:36px;

    padding:0 16px;

    border-radius:999px;

    font-size:13px;

    font-weight:700;

    white-space:nowrap;

}

.delivery-badge.danger{

    background:#fde8ea;

    color:#c62828;

}

.delivery-badge.warning{

    background:#fff4d6;

    color:#9a6b00;

}

.delivery-badge.success{

    background:#e6f6ea;

    color:#198754;

}

.delivery-status-note{

    margin-top:5px;

    font-size:12px;

    color:#9ca3af;

}

.delivery-col-actions .btn{

    height:38px;

    padding:0 16px;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    white-space:nowrap;

    border-radius:10px;

}

.deliveries-info{

    display:flex;

    align-items:center;

    gap:12px;

    padding:16px 26px;

    background:#fff8dc;

    border-top:1px solid #f4e3a1;

    color:#7c5b00;

    font-size:14px;

    font-weight:500;

}

@media (max-width:1400px){

    .delivery-row{

        grid-template-columns:
            82px
            1fr;

        row-gap:14px;

    }

    .delivery-col-status,
    .delivery-col-date,
    .delivery-col-actions{

        grid-column:2;

        justify-content:flex-start;

    }

}

@media (max-width:992px){

    .deliveries-summary{

        grid-template-columns:1fr;

    }

    .deliveries-top{

        flex-direction:column;

        gap:18px;

    }

    .deliveries-calendar-btn{

        width:100%;

        justify-content:center;

    }

}

@media (max-width:768px){

    .delivery-row{

        grid-template-columns:1fr;

        row-gap:12px;

    }

    .delivery-col-calendar,
    .delivery-col-info,
    .delivery-col-status,
    .delivery-col-date,
    .delivery-col-actions{

        justify-content:flex-start;

    }

    .delivery-col-actions{

        flex-direction:column;

        align-items:stretch;

    }

    .delivery-col-actions .btn{

        width:100%;

    }

}

/* ===========================
   CALENDARIO DASHBOARD
=========================== */

.dashboard-calendar .card-header{

    min-height:58px;

}

.dashboard-calendar .table{

    table-layout:fixed;

    margin:0;

}

.dashboard-calendar th{

    background:#f8f9fa;

    text-align:center;

    font-weight:700;

    padding:12px;

}

.calendar-table tbody tr{

    height:155px;

}

.dashboard-calendar td{

    width:14.285%;

    height:155px;

    padding:8px;

    vertical-align:top;

    position:relative;

    overflow:hidden;

    cursor:pointer;

}

.dashboard-calendar td:hover{

    background:#eef6ff;

}

.dashboard-calendar td.bg-light{

    background:#f8f9fa !important;

}

.dashboard-calendar td.table-warning{

    background:#fff3cd !important;

    box-shadow:inset 0 0 0 2px #ffc107;

}

.dashboard-calendar .calendar-day{

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:18px;

    font-weight:700;

    margin-bottom:8px;

}

.dashboard-calendar td .badge{

    position:absolute;

    top:6px;

    right:6px;

    width:24px;

    height:24px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:4px 8px;

    font-size:11px;

    font-weight:700;

}

.dashboard-calendar .small{

    display:block;

    width:100%;

    padding:2px 5px;

    margin-top:3px;

    border-radius:6px;

    background:#f4f6f8;

    font-size:11px;

    line-height:1.2;

    font-weight:600;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;

    text-align:left;

}

.dashboard-calendar td:hover .small{

    background:#dbeafe;

}

.dashboard-calendar td.table-danger{

    background:#fdeaea !important;

    box-shadow:inset 0 0 0 2px #dc3545;

}

.dashboard-calendar td.table-danger .calendar-day{

    color:#c62828;

}

.dashboard-calendar td.table-danger:hover{

    background:#f8d7da !important;

}

.dashboard-calendar td.table-warning:hover{

    background:#fff3cd !important;

}

.dashboard-calendar td.table-danger .small{

    background:#fff5f5;

}

.dashboard-calendar td.table-warning .small{

    background:#fff8dc;

}

.dashboard-calendar td.table-danger:hover .small,

.dashboard-calendar td.table-warning:hover .small{

    filter:brightness(.98);

}

.dashboard-calendar td{

    transition:background-color .18s ease,
               box-shadow .18s ease;

}

@media (max-width:1200px){

    .dashboard-calendar{

        overflow-x:auto;

    }

    .dashboard-calendar table{

        min-width:980px;

    }

}

@media (max-width:768px){

    .dashboard-calendar .card-header{

        flex-direction:column;

        gap:12px;

        align-items:flex-start;

    }

    .dashboard-calendar td{

        height:130px;

    }

    .dashboard-calendar .calendar-day{

        font-size:16px;

    }

    .dashboard-calendar .small{

        font-size:10px;

    }

}

/* ==========================================================
   RESPONSIVE - FASE 1
========================================================== */

@media (max-width:1200px){

    .sidebar{

        width:220px;

    }

    .content{

        margin-left:220px;

        width:calc(100% - 220px);

    }

    .container-fluid{

        padding-left:20px;

        padding-right:20px;

    }

}

@media (max-width:992px){

    .sidebar{

        width:90px;

    }

    .sidebar-logo h4,
    .sidebar-logo small,
    .sidebar-menu a span{

        display:none;

    }

    .sidebar-menu a{

        justify-content:center;

        padding:14px;

    }

    .sidebar-menu a i{

        margin:0;

        width:auto;

        font-size:22px;

    }

    .content{

        margin-left:90px;

        width:calc(100% - 90px);

    }

    .container-fluid{

        padding:18px;

    }

}

@media (max-width:768px){

    .sidebar{

        width:100%;

        max-width:320px;

    }

    .content{

        margin-left:0;

        width:100%;

    }

    .container-fluid{

        padding:16px;

    }

}

/* ==========================================================
   MENU MOBILE
========================================================== */

.mobile-menu-btn{

    display:none;

    position:fixed;

    top:16px;

    left:16px;

    width:48px;

    height:48px;

    border:none;

    border-radius:12px;

    background:#1f2937;

    color:#fff;

    font-size:26px;

    z-index:2001;

    box-shadow:0 8px 20px rgba(0,0,0,.20);

}

.sidebar-overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    opacity:0;

    visibility:hidden;

    transition:.25s;

    z-index:1998;

}

.sidebar-overlay.show{

    opacity:1;

    visibility:visible;

}

@media (max-width:768px){

    .mobile-menu-btn{

        display:flex;

        align-items:center;

        justify-content:center;

    }

    .sidebar{

        left:-330px;

        transition:left .25s ease;

        z-index:1999;

    }

    .sidebar.mobile-open{

        left:0;

    }

    .container-fluid{

        padding-top:76px;

    }

}

/* ==========================================================
   ORDINI MOBILE
========================================================== */

@media (max-width:768px){

    .orders-header{

        flex-direction:column;

        align-items:flex-start;

        gap:6px;

    }

    .order-card{

        display:flex;

        flex-direction:column;

        gap:14px;

        padding:18px;

    }

    .order-col{

        width:100%;

        border-left:none !important;

        padding:0;

    }

    .order-order-top{

        align-items:flex-start;

    }

    .order-col-action{

        justify-content:stretch;

    }

    .order-col-action .d-flex{

        width:100%;

        flex-direction:column;

    }

    .order-col-action .btn,

    .order-col-action form,

    .order-col-action button{

        width:100%;

    }

    .order-col-price{

        text-align:left;

    }

}
/* ===========================
   MENU: gruppi e configurazione
=========================== */

.menu-group-label{

    margin:14px 16px 2px;

    font-size:11px;

    letter-spacing:.08em;

    text-transform:uppercase;

    color:#9ca3af;

}

.sidebar-menu .menu-toggle{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:12px;

    width:100%;

    margin-top:14px;

    padding:12px 16px;

    border:0;

    border-radius:12px;

    background:transparent;

    color:#d1d5db;

    font-weight:500;

    text-align:left;

    transition:.20s;

}

.sidebar-menu .menu-toggle:hover{

    background:#374151;

    color:#ffffff;

}

.sidebar-menu .menu-toggle i{

    width:22px;

    text-align:center;

    font-size:18px;

}

.sidebar-menu .menu-toggle .menu-chevron{

    font-size:13px;

    transition:transform .2s;

}

.sidebar-menu .menu-toggle:not(.collapsed) .menu-chevron{

    transform:rotate(180deg);

}

#menuConfig a{

    margin-top:6px;

    padding-left:24px;

}


/* ===========================
   CALENDARIO DASHBOARD - PIU' COMPATTO + GIORNO DI OGGI
=========================== */

.calendar-table tbody tr{

    height:84px;

}

.dashboard-calendar td{

    height:84px;

    padding:4px 6px;

}

.dashboard-calendar th{

    padding:7px;

    font-size:13px;

}

.dashboard-calendar .calendar-day{

    font-size:14px;

    margin-bottom:2px;

    height:24px;

}

.dashboard-calendar td .badge{

    top:4px;

    right:4px;

    width:20px;

    height:20px;

    padding:2px;

    font-size:10px;

}

.dashboard-calendar .small{

    margin-top:1px;

    padding:1px 4px;

    font-size:10px;

}

/* giorno di oggi: cella con bordo blu e numero in un cerchio pieno */

.dashboard-calendar td.calendar-today{

    box-shadow:inset 0 0 0 3px #0d6efd !important;

    background:#e7f1ff;

}

.dashboard-calendar td.calendar-today.table-warning{

    background:#fff3cd !important;

}

.dashboard-calendar td.calendar-today.table-danger{

    background:#fdeaea !important;

}

.dashboard-calendar td.calendar-today .calendar-day{

    width:26px;

    height:26px;

    margin-left:auto;

    margin-right:auto;

    border-radius:50%;

    background:#0d6efd;

    color:#fff !important;

}


/* ===========================
   DASHBOARD - TASTO "CREA NUOVO PREVENTIVO" GRANDE
=========================== */

.btn-new-quote{

    display:flex;

    align-items:center;

    justify-content:center;

    width:100%;

    max-width:760px;

    margin:0 auto;

    padding:26px 24px;

    font-size:1.9rem;

    font-weight:800;

    letter-spacing:.5px;

    border-radius:16px;

    box-shadow:0 8px 22px rgba(25,135,84,.38);

    transition:transform .12s ease, box-shadow .12s ease;

}

.btn-new-quote i{

    font-size:2.2rem;

    line-height:1;

}

.btn-new-quote:hover{

    transform:translateY(-2px);

    box-shadow:0 12px 28px rgba(25,135,84,.5);

}

.btn-new-quote:active{

    transform:translateY(0);

}

@media (max-width:576px){

    .btn-new-quote{

        padding:20px 12px;

        font-size:1.25rem;

    }

    .btn-new-quote i{

        font-size:1.6rem;

    }

}


/* ============================================================
   TEMA L'ARTIGIOIA - colore di marca (dal logo) e rifiniture
   Aggiunto in coda: sovrascrive soltanto i colori/aspetto,
   non tocca calcoli, layout generale o funzioni.
============================================================ */

:root{

    --brand:#8b2e2e;
    --brand-dark:#6e2323;
    --brand-deep:#5c1d1d;
    --brand-soft:#f8ecec;

    --bs-primary:#8b2e2e;
    --bs-primary-rgb:139,46,46;
    --bs-link-color:#8b2e2e;
    --bs-link-color-rgb:139,46,46;
    --bs-link-hover-color:#6e2323;
    --bs-link-hover-color-rgb:110,35,35;

}

/* ---- barra laterale: grigio caldo e voce attiva nel colore del marchio ---- */

.sidebar{

    background:#241d1f;

}

.sidebar-menu a:hover,
.sidebar-menu .menu-toggle:hover{

    background:#3a2e31;

}

.sidebar-menu a.active{

    background:var(--brand);

    box-shadow:0 4px 12px rgba(139,46,46,.45);

}

.sidebar-logo{

    border-bottom:1px solid rgba(255,255,255,.10);

}

/* ---- tasti ---- */

.btn-primary{

    --bs-btn-bg:#8b2e2e;
    --bs-btn-border-color:#8b2e2e;
    --bs-btn-hover-bg:#6e2323;
    --bs-btn-hover-border-color:#6e2323;
    --bs-btn-active-bg:#5c1d1d;
    --bs-btn-active-border-color:#5c1d1d;
    --bs-btn-disabled-bg:#8b2e2e;
    --bs-btn-disabled-border-color:#8b2e2e;
    --bs-btn-focus-shadow-rgb:139,46,46;

}

.btn-outline-primary{

    --bs-btn-color:#8b2e2e;
    --bs-btn-border-color:#8b2e2e;
    --bs-btn-hover-bg:#8b2e2e;
    --bs-btn-hover-border-color:#8b2e2e;
    --bs-btn-active-bg:#8b2e2e;
    --bs-btn-active-border-color:#8b2e2e;
    --bs-btn-disabled-color:#8b2e2e;
    --bs-btn-disabled-border-color:#8b2e2e;
    --bs-btn-focus-shadow-rgb:139,46,46;

}

/* il giallo "Modifica" aveva poco contrasto: ambra scuro leggibile */

.btn-outline-warning{

    --bs-btn-color:#9a5b00;
    --bs-btn-border-color:#d9962b;
    --bs-btn-hover-color:#4a2c00;
    --bs-btn-hover-bg:#fde7b8;
    --bs-btn-hover-border-color:#d9962b;
    --bs-btn-active-color:#4a2c00;
    --bs-btn-active-bg:#fbd98a;
    --bs-btn-active-border-color:#d9962b;
    --bs-btn-focus-shadow-rgb:217,150,43;

}

.btn-sm{

    font-size:.92rem;

    padding:.32rem .7rem;

}

.btn{

    font-weight:600;

}

/* ---- campi: bordo e alone nel colore del marchio ---- */

.form-control:focus,
.form-select:focus{

    border-color:#b35a5a;

    box-shadow:0 0 0 .2rem rgba(139,46,46,.16);

}

.form-check-input:checked{

    background-color:var(--brand);

    border-color:var(--brand);

}

.form-check-input:focus{

    border-color:#b35a5a;

    box-shadow:0 0 0 .2rem rgba(139,46,46,.16);

}

/* ---- tabelle: intestazione sobria, riga evidenziata al passaggio ---- */

.table:not(.table-dark) > thead > tr > th{

    font-size:.78rem;

    text-transform:uppercase;

    letter-spacing:.05em;

    color:#6b6264;

    font-weight:700;

    background:#faf6f6;

    border-bottom:2px solid #ead9d9;

}

.table-hover > tbody > tr:hover > *{

    --bs-table-hover-bg:#fbf3f3;

}

/* ---- etichette di stato piu' leggibili ---- */

.badge{

    font-size:.78rem;

    padding:.42em .7em;

    letter-spacing:.02em;

}

/* ---- schede piu' morbide ---- */

.card{

    border-radius:14px;

}

/* ---- dashboard: riquadri compatti con colori che significano qualcosa ----
   marchio = informazione, verde = tutto a posto, arancione = da incassare,
   rosso = scaduto, grigio ardesia = neutro                                  */

.kpi-row .card{

    border:0;

    border-radius:16px;

    transition:transform .15s ease, box-shadow .15s ease;

}

.kpi-row a:hover .card{

    transform:translateY(-3px);

    box-shadow:0 .8rem 1.4rem rgba(0,0,0,.18) !important;

}

.kpi-row .card-body{

    padding:1rem 1rem .9rem;

}

.kpi-row .bi.fs-1{

    font-size:1.9rem !important;

    line-height:1;

}

.kpi-row h6{

    margin:.45rem 0 .15rem !important;

    font-weight:600;

    opacity:.92;

}

.kpi-row h2{

    font-size:2rem;

    font-weight:800;

    margin:0;

}

.kpi-row h3{

    font-size:1.55rem;

    font-weight:800;

    margin:0 0 .25rem;

}

.kpi-row small{

    opacity:.95;

}

.kpi-neutral{ background:#475569; color:#fff; }
.kpi-ok{      background:#198754; color:#fff; }
.kpi-warn{    background:#e8590c; color:#fff; }

/* ---- nuovo preventivo: tasti lavorazione grandi, con icona e colore ---- */

.op-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));

    gap:10px;

    width:100%;

}

.op-btn{

    --c:#475569;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    gap:6px;

    padding:14px 8px;

    font-size:.95rem;

    font-weight:700;

    line-height:1.2;

    text-align:center;

    border-radius:14px;

    border:2px solid var(--c);

    color:var(--c);

    background:#fff;

    background:color-mix(in srgb, var(--c) 8%, #ffffff);

    transition:transform .12s ease, background .12s ease, color .12s ease, box-shadow .12s ease;

}

.op-btn i{

    font-size:1.7rem;

    line-height:1;

}

.op-btn:hover,
.op-btn:focus-visible{

    background:var(--c);

    color:#fff;

    transform:translateY(-2px);

    box-shadow:0 6px 14px rgba(0,0,0,.18);

}

.op-btn:active{

    transform:translateY(0);

}

.op-laser{      --c:#c0392b; }
.op-engrave{    --c:#2563eb; }
.op-print3d{    --c:#16a34a; }
.op-cnc{        --c:#6f4e37; }
.op-uv{         --c:#0891b2; }
.op-consumable{ --c:#64748b; }
.op-manpower{   --c:#d97706; }
.op-custom{     --c:#374151; }

/* logo ben visibile sul fondo scuro della barra laterale */

.sidebar-logo img{

    background:#ffffff;

    border-radius:16px;

    padding:6px 10px;

    height:64px;

    width:auto;

    max-width:150px;

    object-fit:contain;

}

/* blu fisso di vecchie schermate -> colore del marchio, coerente con Produzione */

.orders-header-blue{ background:var(--brand); }

.category-home:hover{ border-color:var(--brand); }

.category-home:hover .category-icon{ color:var(--brand); }

.order-price{ color:var(--brand); }

.order-icon{ color:var(--brand); }

/* riquadri della dashboard: contenuto centrato anche in verticale */

.kpi-row .card-body{

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    text-align:center;

}


/* pulsanti quadrati con sola icona (es. Consumabili) */

.btn-icon{

    width:38px;

    height:38px;

    padding:0;

    display:inline-flex;

    align-items:center;

    justify-content:center;

    font-size:1.1rem;

    border-radius:10px;

}
