/*--------------------------------------------------/ Impostazioni generali */
html {
    font-family: Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #636F35;
    display: flex;
    flex-direction: column;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background-color: #CCCCCC; 
    background-image: url('../images/sfondo_pagina.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center; 
}

.content-wrapper {
    /*background-color: #337DC4;*/ 
}

.background-extension {
    background-color: #337DC4; 
    flex: 1;
    /*min-height: 100vh;*/ 
}

/* Stile per l'intestazione */
header {
    background-color: #CECECE;
    color: #fff;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2em;
}

/*--------------------------------------------------/ Impostazione link */
a {
    text-decoration: none; 
    border: none;  
}
a.underline {
    color: inherit; 
    text-decoration: underline; 
}

/*--------------------------------------------------/ Impostazione banner */
#banner-background {
    background-image: url('../images/sfondo_banner.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center; 
    background-color: transparent;
}

#footer-background {
    background-color: #337DC4; 
    background-image: url('../images/sfondo_footer.png');
    background-size: 100% auto; 
    background-repeat: no-repeat;
    background-position: center top; 
}

/*--------------------------------------------------/ Stile per il menu di navigazione */

ul.menu {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

li.menuelm {
  float: left;
}

a.menulink {
  display: flex;
  color: white;
  align-items: center;
  font-size: 1em;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 900;
  text-align: center;
  padding: 7px 8px;
  text-decoration: none;
}

li a.menulink:hover {
  background-color: #E2001A;
}

.menulink img {
    margin-right: 8px; 
    display: block; 
}

/*--------------------------------------------------/ Stile per il contenuto principale */
main {
    padding: 20px;
    background-color: #fff;
    margin: 20px auto;
    max-width: 1200px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

main h2 {
    color: #0056a3;
    border-bottom: 2px solid #0056a3;
    padding-bottom: 10px;
}

main p {
    line-height: 1.6;
}

td.cellrelief {
    border-left: 2px solid #ccc; 
    border-top: 2px solid #ccc; 
    border-right: 2px solid #444; 
    border-bottom: 2px solid #444;
    background-color: #CECECE;
}

#chatcell{
  height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
}

#doccell {
    font-size: 0.7em;
    height: 530px;
    overflow-y: auto;
    overflow-x: auto;
    background-color: #DEDEDE;
}

/*--------------------------------------------------/ Stile per il footer */
table.footer {
  color: white;
  font-size: 0.8em;
  font-family: Arial, sans-serif;
  font-weight: 500;
  text-decoration: none;
}

/*--------------------------------------------------/ Stile i fieldset */
fieldset {
    font-family: sans-serif;
    border: 5px solid #1F497D;
    background: #ddd;
    border-radius: 10px;
    padding: 15px;
}

fieldset legend {
    background: #1F497D;
    color: #fff;
    padding: 5px 10px ;
    font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 0 0 5px #E5E5E5;
    margin-left: 20px;
}

fieldset.local {
    font-family: sans-serif;
    border: 2px solid #1F497D;
    background: #ddd;
    border-radius: 3px;
    padding: 15px;
}

fieldset.local legend {
    background: #1F497D;
    color: #fff;
    padding: 3px 6px ;
    font-size: 12px;
    border-radius: 4px;
    box-shadow: 0 0 0 3px #E5E5E5;
    margin-left: 20px;
}

fieldset.orange {
    font-family: sans-serif;
    border: 5px solid #E56700;
    background: #ddd;
    border-radius: 10px;
    padding: 15px;
}

fieldset.orange legend {
    background: #E56700;
    color: #fff;
    padding: 5px 10px ;
    font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 0 0 5px #E5E5E5;
    margin-left: 20px;
}

fieldset.green {
    font-family: sans-serif;
    border: 5px solid #1D8249;
    background: #ddd;
    border-radius: 10px;
    padding: 15px;
}

fieldset.green legend {
    background: #1D8249;
    color: #fff;
    padding: 5px 10px ;
    font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 0 0 5px #E5E5E5;
    margin-left: 20px;
}

fieldset.red {
    font-family: sans-serif;
    border: 5px solid #CC0022;
    background: #ddd;
    border-radius: 10px;
    padding: 15px;
}

fieldset.red legend {
    background: #CC0022;
    color: #fff;
    padding: 5px 10px ;
    font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 0 0 5px #E5E5E5;
    margin-left: 20px;
}

/*--------------------------------------------------/ Stile generico per pulsanti */
.button, button, input[type="submit"] {
    display: inline-block;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: #007bff;
    border: 2px solid #0056b3;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

/* Hover per pulsanti */
.button:hover, button:hover, input[type="submit"]:hover {
    background-color: #0056b3;
    border-color: #003d80;
}

/* Pulsanti disabilitati */
.button:disabled, button:disabled, input[type="submit"]:disabled {
    background-color: #cccccc;
    border-color: #aaaaaa;
    cursor: not-allowed;
}

/* Pulsanti focus */
.button:focus, button:focus, input[type="submit"]:focus {
    outline: 3px solid #80bdff;
    outline-offset: 2px;
}

.buttonimg {
    display: inline-flex;
    align-items: center; /* centra verticalmente */
    justify-content: center; /* centra orizzontalmente se serve */
    gap: 8px; /* spazio tra immagine e testo */
}

.buttonimg img {
    vertical-align: middle;
}

/*--------------------------------------------------/ Stile generico per pulsanti amministratore */

.default-btn {
    all: unset; 
    display: inline-block; 
    padding: 5px 8px; 
    border: 1px solid; 
    font-size: 12px; 
    font-family: inherit; 
    cursor: pointer; 
    border-radius: 5px;
    background-color: #C9C9C9; 
}

/* Pulsanti disabilitati */
.default-btn:disabled {
    cursor: not-allowed;
    opacity: 0.65; 
}

/* Pulsanti focus */
.default-btn:focus {
    /*outline: 1px dotted; */
    outline-offset: 2px;
}

.default-btn img {
    transition: none !important;
}

.default-btn:hover {
    background: none !important;
    opacity: 1 !important;
}

/*--------------------------------------------------/ Stile per schedario */

td.schedario-bkg {
    background-image: url('..//icons/schedario_line.png'); 
    background-repeat: repeat-x; 
    background-size: auto 100%;
    height: 15px; 
}

td.schedario-act {
    background-image: url('../icons/schedario_shown.png'); 
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center; 
    color: black; 
    text-align: center;
    cursor: pointer; 
    user-select: none; 
    height: 15px; 
}

td.schedario-off {
    background-image: url('../icons/schedario_hidden.png'); 
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;     color: black; 
    text-align: center;
    cursor: pointer; 
    user-select: none; 
    height: 15px; 
}

td.schedario-act2 {
    background-image: url('../icons/schedario_shown.png'); 
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center; 
    color: black; 
    text-align: center;
    cursor: pointer; 
    user-select: none; 
    height: 15px; 
}

td.schedario-off2 {
    background-image: url('../icons/schedario_hidden.png'); 
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;     color: black; 
    text-align: center;
    cursor: pointer; 
    user-select: none; 
    height: 15px; 
}

.schedario-table {
    width: 100%; /* Adatta la larghezza della tabella */
    border-collapse: collapse; /* Unisce i bordi in un unico tratto */
    border: 1px solid #333; /* Imposta il bordo esterno */
}

.schedario-table td {
    border: none; /* Nessun bordo per le celle interne */
}

/*--------------------------------------------------/ Stili generici */

.rotate-text {
    writing-mode: vertical-rl;
    text-align: center;
    vertical-align: middle;
}
