html {
    font-size: 15px;
    position: relative;
    min-height: 100%;
    padding-left: 10px;
    padding-right: 10px;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
/*input,*/
/*select,
textarea {
    max-width: 280px;
}*/

.required:after {
    content: "*";
    color: red;
}

.bg-camposcuola {
    background-color: #1382dc !important;
}

div.card-header.bg-camposcuola {
    background-color: #4863A0 !important;
}

a.bg-camposcuola:hover, a.bg-camposcuola:focus,
span.bg-camposcuola:hover, span.bg-camposcuola:focus,
div.btn.bg-camposcuola:hover, div.btn.bg-camposcuola:focus,
button.bg-camposcuola:hover, button.bg-camposcuola:focus {
    background-color: #044dc1 !important;
}

.border-camposcuola {
    border-color: #4863A0 !important;
    border-style: solid;
}
/*
div.card-header.bg-card-umv {
    background-color: #003399 !important;
}*/

.bg-card-umv {
    background-color: #003399 !important;
}


/*
a.bg-card-umv:hover, a.bg-card-umv:focus,
span.bg-card-umv:hover, span.bg-card-umv:focus,
div.btn.bg-card-umv:hover, div.btn.bg-card-umv:focus,
button.bg-card-umv:hover, button.bg-card-umv:focus {
    background-color: #335cad !important;
}*/

/* ===== Menu principale UMV (navbar) ===== */
.navbar-umv {
    background-color: #003399 !important;
}

.navbar-umv .logo-umv {
    height: 40px;
    width: auto;
}

.navbar-umv .navbar-text {
    color: #adb5bd !important;
}

.navbar-umv .nav-link {
    color: #adb5bd !important;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.navbar-umv .nav-link:hover,
.navbar-umv .nav-link:focus {
    color: #ffffff !important;
}

.navbar-umv .nav-link.active {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.navbar-umv .dropdown-menu {
    background-color: #003399;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.navbar-umv .dropdown-item {
    color: #adb5bd;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.navbar-umv .dropdown-item:hover,
.navbar-umv .dropdown-item:focus {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-umv .dropdown-item.active {
    color: #ffffff;
    background-color: transparent;
    border-color: #ffffff;
}

.bg-arancio {
    background-color: #fd7e14 !important;
}

a.bg-arancio:hover, a.bg-arancio:focus,
span.bg-arancio:hover, span.bg-arancio:focus,
div.btn.bg-arancio:hover, div.btn.bg-arancio:focus,
button.bg-arancio:hover, button.bg-arancio:focus {
    background-color: #e8710a !important;
}

.bg-birra {
    background-color: gold !important;
}

.border-birra {
    border-color: gold !important;
}

.bg-light-success {
    background-color: lightgreen !important;
}

.bg-lightsteelblue {
    background-color: lightsteelblue !important;
}

.border-piatto-selezionato {
    border: 3px solid;
    border-color: black;
}

i.text-primary:hover {
    color: #044dc1 !important;
    background-color: white;
}

.btn-cassa {
    height: 80px;
    text-align: center;
    font-size: xxx-large;
    font-weight: 700;
}

.btn-canc {
    height: 80px;
    text-align: center;
    font-size: x-large;
    font-weight: 700;
}

.card-radius {
    overflow: hidden;
    margin: 10px 10px 10px 0px;
    border-radius: 15px;
    /*border: none;*/
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.08);
}

.align-bottom-0 {
    position: absolute;
    bottom: 0;
}

.text-through {
    text-decoration: line-through;
}

.toast {
    max-width: 900px;
}

.table-fixed {
    table-layout: fixed;
    width: 100%;
}

/* Override the default bootstrap padding for table th and td */
.table th, .table td {
    padding: 0.25rem;
}

.form-group {
    margin-bottom: 0.75rem !important;
}

.card-header {
    padding: 0.25rem 0.75rem !important;
}

.card-body {
    padding: 1.00rem 1.00rem 0.50rem 1.00rem !important;
}

input[type='file'] {
    cursor: pointer !important;
    font-size: 0;
}

.cursor-pointer {
    cursor: pointer !important;
}

.cursor-cell {
    cursor: cell !important;
}

.text-black-20 {
    color: rgba(0, 0, 0, 0.2) !important;
}

.disabled {
    pointer-events: none;
    opacity: 0.3;
}

.disabled-piatto {
    pointer-events: none;
}

.faq-gradient-button {
    position: relative;
    overflow: hidden;
    background-color: transparent;
    border-radius: 30%;
}

    .faq-gradient-button:after {
        content: '';
        display: block;
        z-index: -1;
        position: absolute;
        top: -2rem;
        right: 0;
        bottom: -2rem;
        left: 0;
        background-image: linear-gradient(red, yellow, green);
        animation: rotate-gradient linear 1s infinite;
    }

.table-responsive {
    height: calc(100vh - 110px); /*full height minus header and footer => view horizontal scroolbar on page bottom*/
}

@keyframes rotate-gradient {
    to {
        transform: rotate(360deg)
    }
}

@media print {
    .btn {
        display: none;
    }

    .footer {
        display: none;
    }

    html, body, span, p {
        font-size: 14pt !important;
    }
}

@media (max-width: 767.98px) {
    .bodyHead {
        font-size: 98% !important;
    }
}


@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/* Bootstrap 5.3 non distingue piu' i campi readonly: stesso grigio dei disabled,
   cosi' i campi bloccati per ruolo (es. Gruppo/Edit per presidentegruppo) si riconoscono */
.form-control[readonly] {
    background-color: var(--bs-secondary-bg);
}

/* ===== Calendario/Index: colonne mese con drag&drop manifestazioni ===== */
.calendario-giorno {
    display: flex;
    align-items: stretch;
    border: 1px solid #dee2e6;
    margin-top: -1px; /* fonde i bordi tra righe adiacenti evitando il doppio bordo */
    padding: 2px 0;
}

.calendario-giorno:first-child {
    margin-top: 0;
}

.calendario-giorno-domenica,
.calendario-giorno-festivo {
    background-color: #fff3cd;
}

.calendario-giorno-label {
    width: 46px;
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    padding-top: 2px;
    text-align: center;
    border-right: 1px solid #dee2e6;
}

.calendario-giorno-nomefesta {
    font-size: 0.7rem;
    font-style: italic;
    padding-top: 2px;
}

.calendario-giorno-corse {
    flex: 1;
    min-height: 22px;
    padding: 2px 4px;
}

.calendario-giorno-corse.calendario-dragover {
    background-color: #cfe2ff;
}

.calendario-manifestazione {
    background-color: #e9ecef;
    border: 1px solid #adb5bd;
    border-radius: 0.25rem;
    padding: 2px 6px;
    margin-bottom: 2px;
    font-size: 0.7rem;
    line-height: 1.15;
}

.calendario-manifestazione-trascinabile {
    cursor: grab;
}

.gazebo-esito {
    color: #000000;
    background-color: #ffffff;
}

.gazebo-esito-daPagare {
    color: #dc3545;
    background-color: #ffffff;
}

.gazebo-esito-nonTrovato {
    color: #000000;
    background-color: #ffc107;
}

.calendario-manifestazione-trascinabile:active {
    cursor: grabbing;
}

/* Gruppo/Edit: campo anno accanto alla tendina dello statuto */
.gruppo-statuto-anno {
    max-width: 6.5rem;
}
