
* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: #ffffff;
    background-color: #0d0d0d;
            background-image:
                linear-gradient(27deg, rgba(255,255,255,0.035) 3px, transparent 3px),
                linear-gradient(207deg, rgba(255,255,255,0.03) 3px, transparent 3px),
                linear-gradient(27deg, rgba(255,255,255,0.02) 3px, transparent 3px),
                linear-gradient(207deg, rgba(255,255,255,0.025) 3px, transparent 3px),
                linear-gradient(90deg, rgba(255,255,255,0.02) 6px, transparent 6px),
                linear-gradient(rgba(255,255,255,0.03) 25%, transparent 25%,
                    transparent 50%, rgba(255,255,255,0.02) 50%,
                    rgba(255,255,255,0.02) 75%, transparent 75%);
            background-size: 12px 12px;
            background-position:
                0 3px, 6px 0,
                0 6px, 6px 3px,
                0 0, 0 0;
            background-attachment: fixed;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login {
    width: min(320px, 90vw);
    text-align: center;
}

.logo {
    display: block;
    width: 220px;
    max-width: 100%;
    margin: 0 auto 35px;
}

h1 {
    font-size: 15px;
    font-weight: normal;
    letter-spacing: 3px;
    margin-bottom: 30px;
}

input {
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid #444;
    background: #181818;
    color: white;
    font-size: 15px;
    border-radius: 3px;
}

button {
    width: 100%;
    padding: 14px;
    border: 0;
    border-radius: 3px;
    background: #f36b21;
    color: #111;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background: #ff843c;
}

.errore {
    color: #ff7777;
    font-size: 13px;
}

.footer {
    color: #999;
    font-size: 11px;
    letter-spacing: 2px;
    margin-top: 30px;
}

/* CRUSCOTTO GENERALE */

.testata {
    display: flex;
    align-items: center;
    gap: 25px;
    background: #111;
    padding: 20px 4%;
    border-bottom: 2px solid #f36b21;
}

.testata img {
    width: 130px;
    max-width: 35%;
}

.testata span {
    flex: 1;
    letter-spacing: 2px;
    font-size: 15px;
}

.testata button {
    width: auto;
    padding: 10px 20px;
}

.contenitore {
    width: 94%;
    max-width: 1800px;
    margin: 35px auto;
}

.indicatori {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.pannello {
    background: #1c1c1c;
    border: 1px solid #353535;
    border-radius: 4px;
    padding: 24px;
    font-size: 13px;
    color: #bbb;
    overflow-x: auto;
}

.numero {
    color: white;
    font-size: 42px;
    margin-bottom: 10px;
}

.arancio { color: #f36b21; }
.rosso { color: #ef5555; }

h2 {
    color: #f36b21;
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 2px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #383838;
}

th {
    color: #999;
    font-weight: normal;
}

td {
    color: #eee;
}

@media (max-width: 700px) {
    .indicatori {
        grid-template-columns: 1fr;
    }

    .testata span {
        font-size: 11px;
    }
}


/* GESTIONE COMMESSE V1 */

.azione {
    display: inline-block;
    width: auto;
    padding: 11px 20px;
    background: #f36b21;
    color: #111;
    border-radius: 3px;
    border: 0;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.azione:hover {
    background: #ff843c;
}

.secondaria {
    background: #383838;
    color: #fff;
}

.link-arancio {
    color: #f36b21;
    text-decoration: none;
}

.barra-sezione {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.barra-sezione h1 {
    margin: 0;
}

.sezione {
    margin-bottom: 20px;
}

.griglia-scheda {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 25px;
}

.campo {
    display: block;
    font-size: 13px;
    color: #bbb;
}

.campo input,
.campo select,
.campo textarea {
    display: block;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 5px;
    padding: 12px;
    background: #151515;
    color: #fff;
    border: 1px solid #444;
    border-radius: 3px;
    font: inherit;
    color-scheme: dark;
}

.campo textarea {
    resize: vertical;
}

.comandi {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.navigazione {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 25px;
    padding: 15px 0;
    border-bottom: 1px solid #444;
}

.navigazione a {
    color: #f36b21;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
}

@media (max-width: 700px) {
    .griglia-scheda {
        grid-template-columns: 1fr;
    }

    .testata {
        flex-wrap: wrap;
    }
}


/* GESTIONE ATTIVITA V1 */

.stato-verde { color: #75bc8b; }
.stato-blu { color: #6ba5db; }
.stato-grigio { color: #bbbbbb; }

td.rosso { color: #ef5555; }


/* CHECKLIST PRESTAZIONI V2 */

.voce-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #303030;
    color: #ddd;
    cursor: pointer;
}

.voce-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    accent-color: #f36b21;
}

.voce-check small {
    margin-left: auto;
}


/* CRUSCOTTO COMPATTO V2 */

.indicatori-sei {
    display: grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.indicatori-sei .pannello {
    padding: 15px;
    font-size: 11px;
}

.indicatori-sei .numero {
    font-size: 32px;
    margin-bottom: 5px;
}

.dashboard-v2 .contenitore {
    margin: 15px auto;
}

.dashboard-v2 .navigazione {
    margin-bottom: 20px;
    padding: 10px 0;
}

.dashboard-v2 .pannello {
    padding: 16px;
}

.dashboard th,
.dashboard td {
    padding: 10px 12px;
}

.dashboard progress {
    width: 90px;
    height: 9px;
    accent-color: #75bc8b;
}

.dashboard-v2 a {
    text-decoration: none;
}

.dashboard-v2 .pannello p {
    line-height: 1.5;
    margin: 10px 0;
}

.rapida {
    margin-top: 8px;
}

.rapida summary {
    color: #f36b21;
    cursor: pointer;
    font-size: 11px;
}

.rapida form {
    min-width: 180px;
    padding: 12px;
    margin-top: 10px;
    background: #151515;
}

@media (max-width: 1000px) {
    .indicatori-sei {
        grid-template-columns: repeat(3,1fr);
    }
}

@media (max-width: 600px) {
    .indicatori-sei {
        grid-template-columns: repeat(2,1fr);
    }
}


/* STORICO E INATTIVITA V3 */

.ultima-operazione {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 10px;
    white-space: nowrap;
}

.nota-storico {
    color: #aaa;
    font-size: 12px;
    line-height: 1.6;
}


/* GESTIONE DOCUMENTALE V4 */

.tabella-documenti {
    width: 100%;
    overflow-x: auto;
}

.tabella-documenti table {
    min-width: 950px;
}

.tabella-documenti small {
    color: #aaa;
    font-size: 11px;
}

.tabella-documenti td {
    vertical-align: middle;
}


/* CONTABILITA PROFESSIONALE V5 */

.indicatori-economici {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    margin: 15px 0 25px;
}

.indicatori-economici .pannello {
    padding: 18px;
    font-size: 11px;
}

.valore-economico {
    font-size: 26px;
    font-weight: normal;
    font-variant-numeric: tabular-nums;
    margin-bottom: 8px;
}

@media (max-width: 700px) {

    .indicatori-economici {
        grid-template-columns: repeat(2,1fr);
    }

    .valore-economico {
        font-size: 20px;
    }

}


/* CRUSCOTTO ECONOMICO V5 */

.avanzamento-economico {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
}

.avanzamento-economico progress {
    flex: 1;
    width: 100%;
    height: 18px;
    accent-color: #75bc8b;
}

.avanzamento-economico strong {
    color: #75bc8b;
    font-size: 24px;
    font-weight: normal;
    min-width: 90px;
    text-align: right;
}


/* AGENDA E GANTT V6 */

.calendario-scroll,
.gantt-scroll {
    overflow-x: auto;
}

.calendario-v6 {
    display: grid;
    grid-template-columns: repeat(7,minmax(0,1fr));
    gap: 5px;
    min-width: 720px;
}

.giorno-settimana {
    padding: 10px;
    text-align: center;
    color: #aaa;
    font-size: 12px;
}

.giorno-calendario {
    background: #222;
    border: 1px solid #383838;
    min-height: 100px;
    padding: 7px;
    border-radius: 3px;
}

.oggi-calendario {
    border: 2px solid #f36b21;
    background: #35281e;
}

.altro-mese {
    opacity: .55;
}

.numero-giorno {
    color: #ddd;
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
}

.evento-v6 {
    display: block;
    padding: 5px;
    margin-bottom: 3px;
    border-radius: 2px;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.evento-attivita,
.gantt-incorso {
    background: #375a77;
    color: white;
}

.evento-appuntamento {
    background: #695385;
    color: white;
}

.evento-sollecito,
.gantt-aperta {
    background: #a65c29;
    color: white;
}

.evento-documento,
.gantt-attesa {
    background: #555;
    color: white;
}

.evento-pagamento,
.gantt-completata {
    background: #386e4b;
    color: white;
}

.evento-consegna {
    background: #766122;
    color: white;
}

.gantt-ritardo {
    background: #a33939;
    color: white;
}

.legenda-v6 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.legenda-v6 span {
    padding: 5px 8px;
    border-radius: 3px;
    font-size: 10px;
}

.gantt-layout {
    display: grid;
    grid-template-columns: 280px minmax(650px,1fr);
    min-width: 930px;
}

.gantt-intestazione {
    height: 40px;
    color: #f36b21;
    font-size: 12px;
}

.gantt-nome {
    display: flex;
    align-items: center;
    height: 34px;
    padding-right: 12px;
    border-bottom: 1px solid #333;
    font-size: 12px;
    color: #ddd;
    overflow: hidden;
}

.gantt-grafico svg {
    display: block;
}

