html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}


a{
    font-size: 1.10rem!important;
}

button{
    font-size:1.05rem!important;
}

/*COLORI IVET
arancio #fc9303;
blu #008dd4;*/

/* CSS Variables for Staff Pages */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-bg: #f8f9fa;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --hover-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.TableIvet {
    width: 100%;
    margin: 2vh;
    padding: 2vh;
    margin: auto;
}

    .TableIvet td {
        padding: 3px;
    }

#tbIvetPickup_filter {
    text-align: right;
}


/*.navbar {
    width: 70%;
    margin: auto;
    border-radius: 0 0 20px 20px;
}*/
.top-frame {
    background-color: #f88a21; /*arancio*/
    text-align: center;
    border-radius: 0px 0px 3vh 3vh;
    border: none;
    padding: 2vh;
    font-weight: 600;
    color: white;
    margin-bottom: 2vh;
}

.bottom-frame {
    background-color: #54aadf;
    text-align: center;
    border-radius: 15px 15px 0px 0px;
    border: none;
    color: white;
    padding: 1vh;
    font-weight: 600;
    margin-top: 2vh;
}

.azzurroIvet {
    color: #008dd4;
}

.arancioIvet {
    color: #fc9303;
}

/* ============================================
   UNIFIED STATUS BADGE SYSTEM (Staff)
   ============================================ */

/* Base Status Badge Style */
.status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
    line-height: 1.4;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Order Status Variants */
.status-badge.new-order {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    color: #856404;
    border: 1px solid #ffc107;
}

.status-badge.in-charge {
    background: linear-gradient(135deg, #cfe2ff 0%, #9ec5fe 100%);
    color: #084298;
    border: 1px solid #0d6efd;
}

.status-badge.prepared {
    background: linear-gradient(135deg, #d1e7dd 0%, #a3cfbb 100%);
    color: #0f5132;
    border: 1px solid #198754;
}

.status-badge.shipped {
    background: linear-gradient(135deg, #d1e7dd 0%, #a3cfbb 100%);
    color: #155724;
    border: 1px solid #28a745;
}

/* Generic status variants (for consistency) */
.status-badge.pending {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    color: #856404;
    border: 1px solid #ffc107;
}

.status-badge.in-progress {
    background: linear-gradient(135deg, #cfe2ff 0%, #9ec5fe 100%);
    color: #084298;
    border: 1px solid #0d6efd;
}

.status-badge.completed {
    background: linear-gradient(135deg, #d1e7dd 0%, #a3cfbb 100%);
    color: #0f5132;
    border: 1px solid #198754;
}

.status-badge.cancelled {
    background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
    color: #842029;
    border: 1px solid #dc3545;
}

.status-badge:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* ============================================
   ORDER CARD STYLES (Staff)
   ============================================ */

.order-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--warning-color);
}

.order-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

.order-header {
    display: flex;
    justify-content: between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.order-code {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.order-date-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.order-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.order-detail-item {
    padding: 0.75rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.order-detail-item strong {
    color: var(--warning-color);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.order-detail-item span {
    color: var(--dark-color);
    font-size: 0.95rem;
}

.order-total-section {
    background: linear-gradient(to right, #ffff 0%, white 100%);
    border: 2px solid var(--warning-color);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    text-align: right;
    font-size: 1.1rem;
}

.order-total-section strong {
    color: var(--dark-color);
    margin-right: 0.5rem;
}

.order-notes-section {
    background: #e8f4f8;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.order-notes-section strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.order-notes-section p {
    color: var(--dark-color);
    margin: 0;
    line-height: 1.6;
}

/* Product List Table */
.product-list {
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.product-list table {
    margin: 0;
    background: white;
}

.product-list thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.product-list thead th {
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem;
    border: none;
    font-size: 0.85rem;
}

.product-list tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background 0.3s ease;
}

.product-list tbody tr:hover {
    background: #f8f9fa;
}

.product-list tbody td {
    padding: 0.75rem;
    vertical-align: middle;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--light-bg);
    border-radius: 12px;
    margin: 2rem 0;
}

.empty-state i {
    font-size: 5rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.empty-state p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Mobile view */
@media (max-width: 576px) {
    .nav-btn {
        background-color: none; /*arancio*/
        text-align: center;
        border-radius: 0;
        border: none;
        padding: 0;
        color: black !important;
        position: relative !important;
        left: 0;
        opacity: 100% !important;
    }

    .nav-link {
        color: black !important;
        opacity: 100% !important;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-details-grid {
        grid-template-columns: 1fr;
    }
}

/* Desktop view */
@media (min-width: 576px) {
    .nav-btn {
        background-color: #008dd4;
        text-align: center;
        border-radius: 0px 0px 1.5vh 1.5vh;
        border: none;
        padding: 0.5vh;
        color: white !important;
        margin-left: 1vh;
        margin-right: 1vh;
        margin-bottom: 2.2vh;
    }

    .nav-link {
        color: white !important;
        background-color: #008dd4;
        border-radius: 0px 0px 1.5vh 1.5vh;
    }
}

/* TELEFONO */
@media (max-width: 576px) {
    navbar-ivet {
        display: inherit !important;
    }

    .bodyWithCanvas {
        margin-left: 0;
    }
}

/* DESKTOP */
@media (min-width: 576px) {
    navbar-ivet {
        display: none !important;
    }

    .bodyWithCanvas {
        margin-left: 250px;
    }
}
