
.pratiche-template-default a,
.pratiche-template-default a:visited{
    color: #fff;
}

.pratiche-template-default a.simple-link,
.pratiche-template-default a.simple-link:visited{
    color: #3c608b;
}

a.green,
a.green:visited{
    color: #0c8e19;
}

.green{ color: #0c8e19; }
.red{ color: #d90404; }


.site.gestione-pratiche-page{
    text-align: center;
}

.site.gestione-pratiche-page .site-footer{
    text-align: left;
}

/* Stile base della tabella */
.gusella-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    margin-top: 20px;
    text-align: left;
}

/* Intestazione */
.gusella-table thead th {
    background-color: #004080; /* blu scuro */
    color: #ffffff;
    padding: 10px 8px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #00264d;
}

/* Celle */
.gusella-table td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

/* Righe alternate */
.gusella-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Hover sulla riga */
.gusella-table tbody tr:nth-child(odd) {
    background-color: #e6f0ff;
}

/* Pulsanti */
.gusella-table button {
    background-color: #0073e6;
    color: #fff;
    border: none;
    padding: 5px 8px;
    margin: 0 2px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.gusella-table button:hover {
    background-color: #005bb5;
}

/* Colonna azioni */
.gusella-table td.azioni {
    text-align: left;
    white-space: nowrap;
}

.gusella-table td.azioni a:first-child{
    margin-right: 10px;
}

.gusella-table td.azioni a:hover{
    cursor: pointer;
    color: #005bb5;
}



/* Responsive - scroll orizzontale su mobile */
@media screen and (max-width: 768px) {
    .gusella-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}



#modal-pratica,
#modal-nuova-pratica {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 9999;
}

#modal-pratica .modal-content,
#modal-nuova-pratica .modal-content {
    background: #fff;
    padding: 25px 30px;
    border-radius: 8px;    
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 782px;
    max-height: 90%;
    overflow-y: scroll;
}


/* Chiudi modal */
#modal-pratica .close-modal,
#modal-nuova-pratica .close-modal {
    position: absolute;
    top: 12px;
    right: 6px;
    font-size: 32px;
    cursor: pointer;
    background-color: #fff;
    border-radius: 50px;
    border: 1px solid #333;

    color: #333;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

/* Form generico */
#form-modifica-pratica,
#form-nuova-pratica,
#form-modifica-capienze {
    display: flex;
    flex-direction: row;
    gap: 5px;
    flex-wrap: wrap;
}

/* Label */
#form-modifica-pratica label,
#form-nuova-pratica label,
#form-modifica-capienze label {
    font-weight: 400;
    color: #004080;
    margin-bottom: 10px;
    line-height: 100%;
    display: block;
    flex: 1 1 calc(50% - 20px);
    font-size: 19px;
    text-align: left;
}

/* Input text, date, number */
#form-modifica-pratica input[type="text"],
#form-modifica-pratica input[type="date"],
#form-modifica-pratica input[type="number"],
#form-modifica-pratica textarea,

#form-nuova-pratica input[type="text"],
#form-nuova-pratica input[type="date"],
#form-nuova-pratica input[type="number"],
#form-nuova-pratica textarea,

#form-modifica-capienze input[type="text"],
#form-modifica-capienze input[type="date"],
#form-modifica-capienze input[type="number"] {
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    transition: border 0.2s;
    flex: 1 1 calc(50% - 20px);
}

/* Focus input */
#form-modifica-pratica input:focus,
#form-nuova-pratica input:focus,
#form-modifica-capienze input:focus {
    border-color: #0073e6;
    outline: none;
    box-shadow: 0 0 3px rgba(0,115,230,0.4);
}

/* Pulsante Salva */
#form-modifica-pratica button[type="submit"],
#form-nuova-pratica button[type="submit"],
#form-modifica-capienze button[type="submit"] {
    background-color: #0073e6;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

/* Hover pulsante */
#form-modifica-pratica button[type="submit"]:hover,
#form-nuova-pratica button[type="submit"]:hover,
#form-modifica-capienze button[type="submit"]:hover {
    background-color: #005bb5;
}

/* Sezione Capienze Hold */
#form-modifica-pratica .hold-group,
#form-nuova-pratica .hold-group,
#form-modifica-capienze .hold-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

/* Label piccola per hold */
#form-modifica-pratica .hold-group label,
#form-nuova-pratica .hold-group label,
#form-modifica-capienze .hold-group label {
    font-weight: normal;
    color: #333;
    margin-bottom: 2px;
    font-size: 13px;
}





/* Bottoni Action esporta pdf, chiudi pratica, modifica pratica */

.btn{    
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    display: inline-block;
    vertical-align: top;
    height: 48px;
    transition: background-color .3s ease-in-out;
}



.btn-chiudi-pratica {
    background-color: #c0392b;
}

.toggle-stato-pratica[data-stato="Closed"],
.btn-stato[data-stato="Closed"] {
    background: #0c8e19;
    color: #fff;
}

.toggle-stato-pratica[data-stato="Open"],
.btn-stato[data-stato="Open"] {
    background: #e74c3c;
    color: #fff;
}


.btn-modifica{
    background-color: #3c608b;
    margin-right: 30px;
}

.btn-modifica-capienze{
    background-color: #688CB7;
}

.btn-pdf {
    background-color: #7e1d1f;
}

.btn-success{
    background-color: #27ae60;
}

.btn-salva-pratica{
    margin-top: 20px;
}

.btn:hover{
    cursor: pointer;
    background-color: #2c3e50;
}

.stato-chiusa {
    color: red;
    font-weight: bold;
}







/* Pagina singola pratica */

.wrapper-tabella-pratiche,
.wrapper-pratica,
.wrapper-cronologia,
.pratica-box {
    max-width: 1280px;
    margin: 40px auto;  
    padding: 0 20px;  
}

.pratica-box {
    padding: 20px;
    background: #f9f9f9;
}

.pratica-box h2 {
    margin-top: 0;
    color: #004080;
}

.pratica-dati {
    width: 100%;
    border-collapse: collapse;
}

.pratica-dati th,
.pratica-dati td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.pratica-dati th {
    text-align: left;
    background-color: #e9f3f6;
}


.cronologia {
    background: #fff;
    padding: 15px;
    border: 1px dashed #ccc;
    white-space: pre-line;
    font-family: monospace;
    font-size: 14px;
    line-height: 100%;
}




/* ===== NAVE ===== */
.ship-wrapper {
    width: 100%;
    max-width: 1600px;
    margin: 40px auto 20px auto;
    position: relative;
}

.ship {
    display: flex;
    align-items: stretch;
    height: 350px;
}

/* PRUA / POPPA */
.ship-end {
    width: 140px;
    background: #cfd8dc;
    position: relative;
}

.ship-end.left {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%, 0 70%);
}

.ship-end.right {
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}

/* CAMINO */
.chimney {
    position: absolute;
    top: 20px;
    left: 30px;
    width: 60px;
    height: 20px;
    background: #000;
}
.chimney::before {
    content:'';
    position:absolute;
    left:-10px;
    top:-20px;
    width:20px;
    height:40px;
    background:#000;
}

/* STIVE */
.holds {
    display: flex;
    flex: 1;
    height: 90%;
    align-self: end;
}


/* ******************** */
.hold {
    padding: 15px;
    border-radius: 10px;
    color: #fff;
    transition: background 0.4s ease;
}

.hold-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 8px;
}

.hold p {
    margin: 4px 0;
}

/* ******************** */





.hold {
    flex: 1;
    background: #e9f3f6;
    border-left: 2px solid #fff;
    border-right: 2px solid #fff;
    padding: 20px 10px;
    text-align: center;
}

.hold:nth-child(even) {
    background: #eef3e6;
}

.hold-title {
    background: linear-gradient(to right,#3b5f8a,#7c9dbb);
    color: #fff;
    font-weight: 600;
    padding: 6px;
    margin-bottom: 15px;
    font-size: 17px;
}

.hold h5{
    margin-bottom: 20px;
    font-size: 15px;
}

.hold p {
    margin: 8px 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 110%;
    margin-bottom: 20px;
}

.hold strong {
    font-size: 15px;
}





