/*
 * Scontriniamo! - Stili custom
 * Colori primari da B4A: #34495E (navbar), #1f90af (accent), #F1F1F1 (sfondo)
 */

body {
    background-color: #F1F1F1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Navbar */
.navbar-brand {
    font-size: 1.3rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
}

/* Bottoni accent */
.btn-accent {
    background-color: #1f90af;
    border-color: #1f90af;
    color: #fff;
}
.btn-accent:hover {
    background-color: #177d98;
    border-color: #177d98;
    color: #fff;
}

/* Numpad scontrino */
.numpad-btn {
    width: 100%;
    height: 60px;
    font-size: 1.4rem;
    font-weight: bold;
    border-radius: 0.5rem;
}

.reparto-btn {
    width: 100%;
    height: 70px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: normal;
    word-wrap: break-word;
    border-radius: 0.5rem;
    background-color: #34495E;
    border-color: #2c3e50;
    color: #fff;
}
.reparto-btn:hover {
    background-color: #2c3e50;
    color: #fff;
}
.reparto-btn.empty {
    background-color: #6c757d;
    border-color: #6c757d;
    opacity: 0.5;
}

/* Display importo scontrino */
.scontrino-display {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: right;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 2px solid #1f90af;
    border-radius: 0.5rem;
    min-height: 70px;
    color: #34495E;
}

/* Tabella righe scontrino */
.righe-table {
    max-height: 300px;
    overflow-y: auto;
}

/* Reparti gestione - card vuota */
.border-dashed {
    border: 2px dashed #ccc !important;
}
.reparto-card {
    transition: transform 0.15s;
    cursor: default;
}
.reparto-card:hover {
    transform: translateY(-2px);
}

/* Color dot indicatore reparto */
.reparto-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 auto;
}

/* Color swatches palette */
.color-swatch {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    transition: transform 0.1s, border-color 0.1s;
}
.color-swatch:hover {
    transform: scale(1.2);
    border-color: #333;
}

/* Riga manuale scontrino */
.btn-manual-add {
    border: 2px dashed #6c757d;
    color: #6c757d;
    background: transparent;
    font-weight: 600;
}
.btn-manual-add:hover {
    border-color: #1f90af;
    color: #1f90af;
    background: rgba(31, 144, 175, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .scontrino-display {
        font-size: 1.8rem;
    }
    .numpad-btn {
        height: 50px;
        font-size: 1.2rem;
    }
    .reparto-btn {
        height: 55px;
        font-size: 0.75rem;
    }
}
