/* STILI GENERICI*/

font { 
    font-family: Verdana, Arial, sans-serif; 
    font-size: 12px; 
    color: #333; 
}

A:LINK {
    color: #0066cc;
    text-decoration: none;
}

A:VISITED {
    color: #0066cc;
    text-decoration: none;
}

A:HOVER {
    color: #cc0000;
    text-decoration: underline;
}

A:ACTIVE {
    color: #cc0000;
    text-decoration: underline;
}

body, table, tr, td {
    font-family: Verdana, Arial, sans-serif;
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

input[type="submit"]:hover, 
input[type="button"]:hover {
    background-color: #aaaadd;
}

/* Input più moderni */
input[type="text"],
input[type="password"],
textarea, 
select {
    /* padding: 4px 4px; */
    border: 1px solid #ccc;
    background-color: #fff;
}

input[type="text"]:focus, 
textarea:focus, 
select:focus {
    border-color: #4d6fd7;
    /* outline: none; */
}






/* Responsive styles */

/* * { */
    /* outline: 1px solid red; /* per evidenziare chi “sborda” */ */
/* } */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
}

.container {
	/* width: 100%; */
    max-width: 1100px;
    margin: 0 auto;
    padding: 5px;
}

.no-margin {
	width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.no-scroll {
  overflow: hidden;
}

.inline {
	display: inline !IMPORTANT;
}

.blue {
	background-color: #ccccff !IMPORTANT;
}

.light-blue {
	background-color: #eeeeff !IMPORTANT;
}

.dark-blue {
	background-color: #aaaaff !IMPORTANT;
}

.grey {
	background-color: #cccccc !IMPORTANT;
}

.dark-grey {
	background-color: #aaaaaa !IMPORTANT;
}

.light-grey {
	background-color: #eeeeee !IMPORTANT;
}

.white {
	background-color: #ffffff !IMPORTANT;
}

.red {
	background-color: #f85a3e !IMPORTANT;
}

.light-orange {
	background-color: #ffcc00 !IMPORTANT;
}

.light-green {
	background-color: #b6ecde !IMPORTANT;
}

.general-color {
	opacity: 1;
}

.general-color:hover {
	opacity: 0.7;
}

.header {
    background-color: #ccccff;
    padding: 5px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
	border-radius: 3px;
}

/* Stili per la barra superiore fissa */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ccccff;
    z-index: 1000;
    box-shadow: 0 4px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.sticky-header-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    transition: all 0.3s ease;
	/* border: 1px solid; */
}

.sticky-header-title {
    display: flex;
    flex-direction: column;
    overflow: hidden;
	max-width:800px;
}

.sticky-header-title h2 {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: normal;
}

.sticky-header.shrink .sticky-header-content {
    padding: 5px 10px;
}

.sticky-header.shrink .sticky-header-title .main-title {
    display: none;
}

.sticky-header-logo {
    display: flex;
    align-items: center;
}

.sticky-header-actions {
    display: flex;
    align-items: center;
}

.sticky-header {
    display: block;
    margin-right: 10px;
}

.menu-toggle {
	display: hidden;
    margin-right: 10px;
}

.menu-toggle-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.menu-toggle .menu-text {
	font-size: 10px;
	line-height: 1;
	display: block;
}

/* Aggiunge spazio per la barra fissa */
.header-spacer {
    height: 90px;
}

/* Gestisce lo spazio quando la barra è rimpicciolita */
.sticky-header.shrink + .header-spacer {
    height: 50px;
}

/* Modifiche responsive */

@media (max-width: 1000px) {
	.sticky-header-title {
		max-width:600px;
	}

}


@media (max-width: 768px) {
    .sticky-header-content {
        padding: 10px;
    }

    .sticky-header-title h2 {
        font-size: 18px;
    }
	
	.sticky-header-title {
		max-width:370px;
	}

    .sticky-header.shrink .sticky-header-title h2 {
        font-size: 16px;
    }
	
	.header-spacer {
		height: 80px;
	}
}

@media (max-width: 480px) {
    .sticky-header-title h2 {
        font-size: 16px;
    }

    .sticky-header.shrink .sticky-header-title h2 {
        font-size: 14px;
    }
	
	.sticky-header-title {
		max-width:200px;
	}
	
	.header-spacer {
		height: 70px;
	}
}

.header-mini {
	padding: 5px;
}

.header-detpag {
    background-color: #ccccff;
    padding: 5px 10px;
    margin-bottom: 5px;
    display: flex;
    flex-wrap: wrap; /* Permette ai figli di andare a capo su schermo piccolo */
    justify-content: space-between;
    align-items: flex-start; /* Allineamento verticale all’inizio */
    gap: 10px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	
	padding-top: 50px; /* Separazione da top-bar per evitare che sia sovrapposta */
}

.header-left {
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    max-width: 100%; /* Limita la larghezza */
    overflow: hidden; /* Importante per l'ellipsis */
}

.header-left p {
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
    color: #333;
}

.header-left .titolo {
    font-weight: bold;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 100%; /* Usa l'intera larghezza del contenitore */
    display: block; /* Importante per far funzionare width e overflow */
}

.header-right {
    padding: 0px;
    display: flex;
    justify-content: right;
    align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	padding-top:35px;
}

.sep-tob-bar {
	padding-top:35px;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    padding: 0 10px;
    box-sizing: border-box;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	white-space: nowrap;
	text-overflow: ellipsis;
}

@media (max-width: 600px) {
  .top-bar-inner p {
    font-size: 10px;
  }
}

.main-content {
    display: flex;
    flex-wrap: wrap;
}

.sidebar {
    flex: 0 0 200px;
    background-color: #f5f5f5;
    padding: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.text-resize, .text-resize td {
    font-size: 20px !IMPORTANT;
}

.text-resize-mini, .text-resize-mini td {
    font-size: 13px !IMPORTANT;
}

@media (max-width: 480px) {
    .text-resize, .text-resize td {
        font-size: 12px !IMPORTANT;
    }
	
	.text-resize-mini, .text-resize-mini td {
        font-size: 10px !IMPORTANT;
    }
}

.content-area {
    flex: 1;
    min-width: 300px;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin-bottom: 5px;
}

.nav-menu a {
    display: block;
    padding: 6px;
    background-color: #ccccff;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
}

.nav-menu a:hover {
    background-color: #aaaadd;
}

.data-table, .data-table-grey {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.data-table th, .data-table td, .data-table-grey th, .data-table-grey td {
    padding: 6px;
    border: 1px solid #ddd;
    /* text-align: left; */
}

.data-table-no-border th, .data-table-no-border td, .data-table-no-border-grey th, .data-table-no-border-grey td {
    border: 0px solid #ddd;
}

.data-table th {
    background-color: #ccccff;
}

.data-table-grey th {
    background-color: #cccccc;
}

.form-container {
    background-color: #eeeeee;
    padding: 10px;
    border: 1px solid #ccccff;
    margin-bottom: 15px;
	border-radius: 5px;
}

.form-group, .form-group-compact {
    margin-bottom: 10px;
}

.form-group label, .form-group-compact label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
	flex: 1;
}

.form-row .form-group {
    flex: 1;
    /* min-width: 200px; */
}

.name-fields {
    display: flex;
    gap: 10px;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    /* box-sizing: border-box; */
}

/* usato in detpag nella tabella presenze */
.form-control-input-stretto {
	padding: 2px 4px;
	width:50px;
	text-align:right
}

.form-control-compact {
    width: auto;          /* Si adatta al contenuto */
    max-width: 100%;      /* Non supera mai il contenitore */
    min-width: 0;         /* Impedisce larghezze minime automatiche */
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
    display: block;       /* Evita che si estendano su una riga condivisa */
}

.btn, input[type="file"]::file-selector-button {
    padding: 8px 15px;
    background-color: #ccccff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
	transition: 0.2s;
}

.btn:hover, input[type="file"]::file-selector-button:hover {
    background-color: #aaaadd;	/* blu chiaro */
	transition: 0.2s;
}

.btn-disabled {
	padding: 8px 15px;
	background-color: #bbbbbb;
	border: none;
	border-radius: 3px;
	cursor: not-allowed;
	color: #777777;
	transition: 0.2s;
	opacity: 0.6;
}

.btn-aggiorna {
	padding: 8px 40px;
	font-weight: bold;
}

.alert {
    background-color: #ffeeee;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ffcccc;
}

.alert h3 {
    color: #ee1111;
    margin: 0;
}

.alert a {
    color: #ee1111;
    text-decoration: underline;
}

.alert a:hover {
    color: #aa2222;
}

/* Table responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile menu styles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    padding: 5px 10px;
}

/* Overlay for mobile menu */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -250px;
        width: 200px;
        height: 100%;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .content-area {
        margin-left: 0;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group, .form-row .form-group-compact {
        width: 100%;
    }
    
    .name-fields {
        flex-direction: column;
        gap: 0;
    }
	
	.form-control-input-stretto {
		padding: 6px;
	}
}

@media (max-width: 480px) {
    .data-table th, .data-table td {
        padding: 5px;
        font-size: 10px;
    }
    
    .btn {
        padding: 6px 10px;
    }
    
    .header h2 {
        font-size: 18px;
    }
    
    .form-group label, .form-group-compact label {
        font-size: 11px;
    }
    
    .form-control {
        padding: 6px;
    }
	
	.form-control-input-stretto {
		width:40px;
	}
	
	.form-control-compact {
        padding: 6px;
    }
}

@media (max-width: 380px) {
    .data-table th, .data-table td {
        font-size: 9px;
    }
}

hr {
    border: 0;
    height: 1px;
    background-color: #ccccff;
    margin: 20px 0;
}

/* Stili aggiuntivi per psw.php */
.section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.section h3 {
    margin-top: 0;
    color: #333;
}

.section h4 {
    margin-bottom: 10px;
    color: #555;
}

.links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: #ccccff;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.btn-link:hover {
    background-color: #aaaadd;
}

.btn-versamento {
	background: none !important;
	border: none;
	padding: 0 !important;
	font-family: Verdana, Arial, sans-serif;
	color: #0066cc;
	cursor: pointer;
}

.btn-versamento:hover {
	color: #cc0000;
}

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}

.form-note {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
}

.alert {
    padding: 10px;
    margin: 10px 0;
    border-radius: 3px;
}

.alert.success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.alert.error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

.alert a {
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .links {
        flex-direction: column;
    }
    
    .btn-link {
        width: 100%;
        text-align: center;
    }
}

/* Aggiunte per detpag.php */
.compact-input {
    max-width: 200px;
}

@media (max-width: 768px) {
    .compact-input {
        max-width: 100%;
    }
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.header-actions .btn {
    display: flex;
    align-items: center;
    gap: 4px;
}

.back-button {
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}


/* Stile per il link */
.modal-link {
	color: #0066cc;
	text-decoration: none;
	cursor: pointer;
	word-break: break-word;
	overflow-wrap: break-word;
}

.modal-link:hover {
	text-decoration: underline;
}

/* Sfondo oscurato della modale - centra verticalmente e orizzontalmente */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Contenitore della finestra modale - dimensioni fisse */
.modal-container {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 80%; /* Larghezza fissa in percentuale */
    max-width: 800px; /* Larghezza massima */
    height: 75vh; /* 3/4 dell'altezza dello schermo */
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Pulsante di chiusura */
.modal-close {
    position: absolute;
    top: 30px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
    border: none;
    background: none;
    z-index: 10; /* Assicura che sia sopra altri elementi */
}

.modal-close:hover {
    color: #333;
}

/* Titolo della modale */
.modal-container h2 {
    margin-top: 0;
    padding-right: 30px; /* Spazio per il pulsante di chiusura */
}

/* Contenuto con scrolling */
.modal-content {
    flex-grow: 1;
    overflow-y: auto; /* Abilita lo scrolling verticale */
    overflow-x: hidden; /* Nasconde lo scrolling orizzontale */
    padding-right: 10px; /* Spazio per la barra di scorrimento */
    /* word-wrap: break-word; */ /* Testo a capo */
    /* word-break: break-word; */ /* Gestisce meglio il testo lungo */
    
    /* Forza l'a capo SOLO negli spazi */
    overflow-wrap: break-word; /* Rompe solo se necessario, senza spezzare parole */
    word-break: normal;       /* Disabilita il troncamento arbitrario */
    hyphens: none;            /* Disabilita la sillabazione (anche prefissi) */
    -webkit-hyphens: none;
    -moz-hyphens: none;
}

/* Gestione dei font obsoleti */
.modal-content font {
    font-family: inherit;
    font-size: inherit;
}

/* Gestione delle tabelle */
.modal-content table {
    width: 100% !important;
    table-layout: fixed; /* Impedisce alle tabelle di espandersi oltre la larghezza */
    /* word-wrap: break-word; */
    border-collapse: collapse; /* Migliora la resa delle tabelle */
}

.modal-content td, .modal-content th {
    word-break: break-word;
    overflow-wrap: break-word; /* Alternativa a word-wrap per compatibilità */
    padding: 8px; /* Aggiunge spazio interno alle celle */
    border: 1px solid #ddd; /* Stile opzionale per le celle */
}

/* Se hai elementi con larghezza fissa che causano problemi */
.modal-content * {
    max-width: 100%; /* Impedisce agli elementi di superare la larghezza del contenitore */
}

.modal-content pre, .modal-content code {
    white-space: pre-wrap;    /* Mantiene gli spazi ma permette l'a capo */
    overflow-wrap: anywhere;  /* Rompe solo se necessario (senza sillabare) */
}

/* Gestione responsive per schermi piccoli */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        height: 85vh;
    }
}

/* Stile per l'header del login */
.header-content {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.user-info {
    font-size: 14px;
    color: #555;
    margin-top: 0;
	line-height: 1.3;
}

/* Versione mobile */
@media (max-width: 768px) {
    .header-content {
        padding: 8px 10px;
    }
    
    .user-info {
        font-size: 13px;
        line-height: 1.2;
    }
}

/* Per desktop */
@media (min-width: 768px) {
    .form-group.compact-input {
        max-width: 400px;
    }
}

/* Mantiene responsive su mobile */
@media (max-width: 768px) {
    .form-group.compact-input {
        width: 100%;
    }
}





/* Stili per la ricerca clienti */
.search-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.search-group {
    display: flex;
    flex-grow: 1;
    max-width: 500px;
}

.search-input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-right: 5px;
}

.search-btn {
    white-space: nowrap;
}

.btn-full {
    width: 100%;
}

/* Visibilità responsive */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .search-row {
        flex-direction: row;
        gap: 5px;
    }
    
    .search-group {
        max-width: none;
    }
    
    .mobile-only {
        display: block;
    }
	
	.mobile-center {
		justify-content: center !IMPORTANT;
	}
    
    .desktop-only {
        display: none;
    }
    
    .search-input {
        margin-right: 0;
    }
}

/* detpag.php */
.spunta {
        background-color: #eeeeff;
        border: 2px solid #9999ff;
        border-radius: 4px;
        font-size: 12px;
        padding: 1px 10px;
        transition: all 0.2s;
        margin-left:5px;
        cursor: pointer;
    }
.spunta:hover {
	background-color: #aaaaff;
	border-color: #8888ff;
	color: white;
}
.error-cell {
	background-color: #ffaaaa;
}
.payment-methods {
	border: 1px solid #2d8a3e;
	background-color: #e8f5e8;
	padding: 0px 10px;
	margin: 15px 0;
	border-radius: 5px;
}
.payment-methods-white {
	border: 1px solid #555555;
	background-color: #fefefe;
	padding: 0px 10px;	/* 0px top e bottom, 10px left e right*/
	margin: 15px 0;
	border-radius: 5px;
}
.payment-methods-yellow {
	border: 1px solid #ca8a04;
	background-color: #fffbeb;
	padding: 0px 10px;
	margin: 15px 0;
	border-radius: 5px;
}

.payment-group {
  margin-bottom: 12px;
}
.payment-group p {
  margin: 0;
  padding: 2px 0;
}

.payment-detail-indent {
	margin-left: 10px !IMPORTANT;
	overflow-wrap: break-word;
	word-break: break-word;
}

.admin-section {
	border: 1px solid #ccccff;
	background-color: #f5f5ff;
	padding: 15px;
	margin: 15px 0;
	border-radius: 5px;
}
.section-divider {
	border-top: 0px solid #ddd;
	margin: 10px 0;
}

.compact-input {
    max-width: 200px;
}

@media (max-width: 768px) {
    .compact-input {
        max-width: 100%;
    }
}

.table-container {
    width: 100%;
    overflow-x: auto;
	// padding: 5px;
}

.table-container .data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-container .data-table td {
    padding: 0px 5px;
}

.table-container .total-row td {
    font-weight: bold;
    background-color: #f5f5ff;
	padding: 5px 0px;
}

.align-right {
	text-align: right !IMPORTANT;
}

.align-left {
	text-align: left !IMPORTANT;
}

.align-center {
	text-align: center !IMPORTANT;
}

.align-justify {
	text-align: justify !IMPORTANT;
}

/* Versione mobile */
@media (max-width: 768px) {
    
    .table-container .data-table td {
        padding: 10px 1px;
        font-size: 0.9em;
    }
	
	.spunta {
        font-size: 12px;
        padding: 4px 2px;
        margin-left:1px;
    }
}

@media (max-width: 380px) {
    
    .table-container .data-table td {
        padding: 10px 1px;
        font-size: 0.8em;
    }
	
	.group-column {
		flex-direction: column; /* Quando lo schermo è stretto, passano in verticale */
		flex-wrap: nowrap; /* Evita il wrap singolo */
	}
	
	.spunta {
        font-size: 10px !IMPORTANT;
        padding: 6px 4px !IMPORTANT;
        margin-left:1px;
    }
}

.no-wrap-generico {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
	max-width: 100%;
	flex: 1 1 auto;
	align-items: center; /* Allineamento verticale */
}

.no-wrap-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
	max-width: 100%;
	flex: 1 1 auto;
	align-items: center; /* Allineamento verticale */
}

/* Serve per gestire icona del calendario con date */
/* evita stiramento dell'icona del calendario  */
.no-wrap-row img {
    object-fit: contain;
	margin-left:-8px;
	/* margin-top:-8px; */
}

/* Responsive Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
}

/* Base column styles */
[class*="column-"] {
    padding: 0 10px;
    box-sizing: border-box;
    width: 100%; /* Default to full width on mobile */
    margin-bottom: 15px;
}

/* Column definitions */
.column-1 { flex: 0 0 8.3333%; max-width: 8.3333%; }
.column-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
.column-3 { flex: 0 0 25%; max-width: 25%; }
.column-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.column-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
.column-6 { flex: 0 0 50%; max-width: 50%; }
.column-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
.column-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
.column-9 { flex: 0 0 75%; max-width: 75%; }
.column-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
.column-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
.column-12 { flex: 0 0 100%; max-width: 100%; }

.group-column {	/* Raggruppa colonne per andare a capo assieme */
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* On tablets, make most columns full width */
    [class*="column-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Keep some columns at half width if needed */
    .column-6-md {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 480px) {
    /* On mobile, all columns full width */
    [class*="column-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Optional: Column alignment classes */
.column-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.column-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.column-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* Optional: Column spacing classes */
.column-padded {
    padding: 15px;
}

.column-no-padding {
    padding: 0;
}

.nuova-riga {
    animation: highlight 4s;
}

@keyframes highlight {
    0% {
        background-color: #ffff99;
    }
    100% {
        background-color: transparent;
    }
}

@media (max-width: 768px) {
    .mobile-text {
        font-size: 0.5rem !IMPORTANT; /* Riduce la dimensione del testo su mobile */
    }
    
    .mobile-text table {
        font-size: 0.5rem !IMPORTANT; /* Riduce la dimensione del testo nelle tabelle su mobile */
    }
}

.image-width-std {
	width: 20px;
}

.spunta {
	background-color: #eeeeff;
	border: 2px solid #9999ff;
	border-radius: 4px;
	font-size: 12px;
	padding: 1px 10px;
	-webkit-transition-duration: 0.2s; /* Safari */
	transition-duration: 0.2s;
	margin-left:5px;
}

.spunta:hover {
  background-color: #aaaaff;
  border: 2px solid #8888ff;
  color: white;
}

.scrollbar-stable {
    overflow-y: scroll; /* riserva sempre lo spazio della scrollbar: evita lo spostamento orizzontale del layout tra pagine corte e lunghe */
}
