:root{
    --base-color : #84BD00;
}

@font-face {
    font-family: NanumGothic-Regular;
    src: url("/static/app/fonts/NanumGothic-Regular.3cbe9257e888.ttf");
  }

@font-face {
    font-family: NanumGothic-Bold;
    src: url("/static/app/fonts/NanumGothic-Bold.4fa4ea432227.ttf");
}
@font-face {
    font-family: TitilliumWeb-Regular;
    src: url("/static/app/fonts/TitilliumWeb-Regular.ed1d014bf2b8.ttf");
  }

@font-face {
    font-family: TitilliumWeb-Bold;
    src: url("/static/app/fonts/TitilliumWeb-Bold.08d37409a924.ttf");
}

html, body {
  height: 100%;
  font-family: TitilliumWeb-Regular;
  display: flex;
    flex-direction: column;
}

/* Titolo pagina nella navbar (block: navbar_title) */
.navbar-page-title-wrapper {
    align-items: center;
    color: #2a4a1a;
    font-family: TitilliumWeb-Bold, 'Helvetica Neue', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.1;
}
.navbar-page-title-wrapper .navbar-page-title-icon {
    color: #84BD00;
    font-size: 1.8rem !important;
    margin-right: 8px;
    vertical-align: middle;
}

/* Accent verticale colorato a sinistra del titolo - "richiamo" della
   sezione corrispondente alla card home. Aggiungere modificatori
   .theme-pink/-teal/-purple/-cyan/-orange/-blue per cambiare colore. */
.navbar-page-title-accent {
    display: inline-block;
    width: 5px;
    height: 30px;
    border-radius: 3px;
    margin-right: 12px;
    vertical-align: middle;
    background: linear-gradient(180deg, #45823a 0%, #84BD00 100%);
}
.navbar-page-title-accent.theme-pink   { background: linear-gradient(180deg, #c2185b 0%, #ec407a 100%); }
.navbar-page-title-accent.theme-teal   { background: linear-gradient(180deg, #00838f 0%, #4dd0e1 100%); }
.navbar-page-title-accent.theme-purple { background: linear-gradient(180deg, #5e35b1 0%, #9575cd 100%); }
.navbar-page-title-accent.theme-cyan   { background: linear-gradient(180deg, #00838f 0%, #26a69a 100%); }
.navbar-page-title-accent.theme-orange { background: linear-gradient(180deg, #c47d00 0%, #f0a83a 100%); }
.navbar-page-title-accent.theme-blue   { background: linear-gradient(180deg, #1d6fa5 0%, #4ca6db 100%); }

/* Icona del titolo navbar coordinata col tema sezione */
.navbar-page-title-icon.theme-pink   { color: #c2185b; }
.navbar-page-title-icon.theme-teal   { color: #00838f; }
.navbar-page-title-icon.theme-purple { color: #5e35b1; }
.navbar-page-title-icon.theme-cyan   { color: #00838f; }
.navbar-page-title-icon.theme-orange { color: #c47d00; }
.navbar-page-title-icon.theme-blue   { color: #1d6fa5; }

.general-container-kindergarten{
    flex: 1 0 auto;
    margin-left: 1%;
    margin-right: 1%;
}

/* Su schermi grandi aggiungiamo margini laterali */
@media (min-width: 1400px) {
    .general-container-kindergarten{
        margin-left: 10%;
        margin-right: 10%;
    }
}




html, body {
    height: 100%;
}
h1, h2, h3{
    color: rgb(23, 76, 4)
}
.number{
    text-align: right;
}
.row.selectable:hover{
    background-color: rgb(209, 246, 154);
}

/* ============================================================
   STANDARD CHRONOS: testata tabella.
   Applicato a tutte le griglie (.row.header-grid).
   Vedi spec/05_design_system.md per il design system completo.

   Variante attiva: SAGE (verde desaturato, ancora a tema).
   Altre varianti commentate sotto per swap rapido.
   ============================================================ */
.header-grid {
    background: linear-gradient(135deg, #4a614a 0%, #6b8a64 100%);
    color: #ffffff !important;
    font-family: TitilliumWeb-Bold, 'Helvetica Neue', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 10px 0;
    border-radius: 8px 8px 0 0;
    /* NON sovrascrivere margin-left/right: lasciamo i margini negativi
       di Bootstrap row in modo che l'header abbia la stessa larghezza
       delle righe dati sottostanti */
    margin-bottom: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.header-grid > [class*="col"] {
    color: #ffffff;
    line-height: 1.2;
}

/* ----------------------------------------------------------------
   ALTERNATIVE — per cambiare commenta sopra e scommenta una variante.
   ----------------------------------------------------------------

   Variante A: SLATE neutro (grigio scuro, professional)
   .header-grid {
       background: linear-gradient(135deg, #334155 0%, #475569 100%);
   }

   Variante C: LIGHT minimalist (sfondo grigio chiaro, testo verde scuro)
   .header-grid {
       background: #f3f4f6;
       color: #1d5313 !important;
       box-shadow: none;
       border-bottom: 1px solid #d4e9d1;
   }
   .header-grid > [class*="col"] {
       color: #1d5313;
   }

   Variante D: VERDE BRAND originale (più saturo, brand-forward)
   .header-grid {
       background: linear-gradient(135deg, #2f4f29 0%, #45823a 100%);
   }
   ---------------------------------------------------------------- */
/* Pulsante "torna alla lista" - integrato nel design system Chronos.
   NOTA: niente `!important` su display, altrimenti il JS .hide()/.show()
   non riuscirebbe a nascondere il pulsante quando la griglia è attiva. */
.back-to-grid{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f1f7ee 0%, #e9f4e3 100%);
    border: 1px solid #d4e9d1;
    color: #45823a !important;
    font-size: 1.55rem !important;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 2px 4px rgba(69, 130, 58, 0.08);
}
.back-to-grid:hover{
    background: linear-gradient(135deg, #45823a 0%, #6cb35f 100%);
    color: #ffffff !important;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(69, 130, 58, 0.28);
    text-decoration: none !important;
}

.prepare-add-record{
    font-size: 1.2em !important;
    font-weight: bold;
    color: #45823a;
    text-decoration: none;
}
.prepare-add-record:hover{
    background-color: #d4e9d1;
    border-radius: 6px;
    text-decoration: none;
}
.save-record, .save-record-request{
    background-color: #45823a;
    color: white;
    border-radius: 6px;
    padding: 10px;
    margin: 10px;
    font-size: 1.2em;
    font-weight: bold;
}
.save-record:hover{
    background-color: #82ef6f;
      color: white;
}
 

footer {
    flex-shrink: 0;
    background-color: #ececec;
    color: #3f3f3f;
    -webkit-box-shadow: 0px -4px 20px 0px rgba(51,51,20,0.56);
    -moz-box-shadow: 0px -4px 20px 0px rgba(51,51,20,0.56);
    box-shadow: 0px -4px 20px 0px rgba(116, 116, 114, 0.56);
    border-top:1px solid #fff;
    text-align:right;
    font-size:14px;
    padding:10px 10px 2px 0px;
    margin-top: 12px;
}

.dropdown-item{
    min-height: auto;

}
/* ============================================================
   Icone azione nelle griglie (edit, delete, view-invoices, ecc.).
   Standardizzate come "icon button" 36×36 perfettamente centrate
   nella cella, con hover fill circolare.
   IMPORTANTE: la regola va scopata al SOLO glifo material-symbols
   perché in alcune view legacy (es. badgecodes) la classe edit-record
   viene applicata all'intera riga per "click ovunque = edit". Senza
   lo scoping, l'intera row diventerebbe un cerchio 36x36.
   ============================================================ */
.material-symbols-outlined.edit-record,
.material-symbols-outlined.delete-record-request,
.material-symbols-outlined.view-invoices {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.material-symbols-outlined.edit-record {
    color: #45823a;
}
.material-symbols-outlined.edit-record:hover{
    background-color: #d4e9d1;
    color: #1d5313;
}

.material-symbols-outlined.delete-record-request {
    color: #b03a2e;
}
.material-symbols-outlined.delete-record-request:hover{
    background-color: #f9d7d4;
    color: #7a1f17;
}

.material-symbols-outlined.view-invoices {
    color: #45823a;
}
.material-symbols-outlined.view-invoices:hover {
    background-color: #d4e9d1;
    color: #1d5313;
}

/* Cella di azione nella griglia: centra l'icona button verticalmente
   (oltre al text-align orizzontale già impostato da Bootstrap) */
.row.record [class*="col"].text-center > .material-symbols-outlined {
    vertical-align: middle;
}

/* Posizimanemt vertical centered */
.c-grid{
    margin-top: auto !important;
    margin-bottom: auto !important;
}
.row.r1{
    background-color: #e7f9e4;
}
.row.r2{
    background-color: #f7fcf7;
}

.children-info-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    display: none;
}
.children-info-container.active{
    display: block;
    border-bottom: dotted 3px #707070;
    border-left: dotted 3px #707070;
    border-right: dotted 3px #707070;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    padding: 10px;
    margin-bottom: 12px;

}
.info-details.active{
    font-weight: bold;

}
.children-record {
    font-size: 1em;
}
.children-record.recorded{
    transition: background-color 2s ease;
    background-color: #82ef6f;
    border-radius: 6px;
}

.child.name{
    font-weight: bold;
}
.child.surname{
    font-weight: bold;
}
.price-list-choiches-container{
    background-color: #d6f1d1;
    display: block;

    border-radius: 6px;
    padding: 20px ;
}
.fiscal-code{
    border: dotted 2px gray;
}
.fiscal-code.is-valid{
    border: dotted 2px green;
}
.fiscal-code.is-invalid{
    border: dotted 2px red;
}

input.uppercase {
    text-transform: uppercase;
}

.add-allergies-list-service{
    padding-top: 6px;
    padding-bottom: 6px;
    text-align: center;
    background-color: #f4f4f4;
    border-radius: 6px;
}
.add-allergies-list-service:hover{
    background-color: orange;
    border-radius: 6px;
    color: white;
}
.add-parents-guardians{
    padding-top: 6px;
    padding-bottom: 6px;
    text-align: center;
    background-color: #f4f4f4;
    border-radius: 6px;

}
.add-parents-guardians:hover{
    background-color: orange;
    border-radius: 6px;
    color: white;
}

.add-price-list-service{
    padding-top: 6px;
    padding-bottom: 6px;
    text-align: center;
    background-color: #f4f4f4;
    border-radius: 6px;
}
.add-price-list-service:hover{
    background-color: orange;
    border-radius: 6px;
    color: white;
}

.parents-guardians-container{
    background-color: #f2fdf0;
    display: block;
    border-radius: 6px;
    padding: 20px ;
}

#search-window-container{
    position: absolute;
    background-color: #e8e8e8;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 6px;
    padding-bottom: 20px;
    box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.75);
}


.next-step-kinder-conf{
    font-size: 3em !important;
    padding: 6px;
    font-weight: bold;
    border: solid 2px #45823a;
    border-radius: 6px;

}
.next-step-kinder-conf:hover{
    background-color: #45823a;
    color: white;
}

.allergies-note-grid{
    overflow: hidden;
    text-overflow: ellipsis;
    
    text-align: justify;
}
.allergies-note-grid.h-limit{
    max-height: 150px;
}
.view-all-allergy{
    display: block;
    text-decoration: none;
    text-align: center;
}
.view-all-allergy:hover{
    border: solid 1px #1d5313;
    border-radius: 8px;
}
.icon-allergy{
    font-size: 2.8em !important;
    font-weight: bold;
    color: #45823a;
    text-decoration: none;

}
#history-days{
    position: absolute;
    display: none;
    background-color: rgb(253,253,253);
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.75);
    left:6%;
    right: 6%;
    width: 88%;
}
.history-date-access.sunday{
    font-weight: bold;
    padding-top: 12px;
}
.near-history-days{
    margin-top: 6px;
    user-select: none;
    text-align: center;
}
.near-history-days:hover{
   
    border-radius: 6px;
    background-color: #82ef6f1b !important;
    box-shadow: 0px 2px 10px 0px rgba(146, 146, 146, 0.75);
}
.near-history-days-icon{
    padding-top: 4px;
    color: rgb(222, 145, 2);
    font-size: 2.5em !important;
}
.date-reference{
    font-size: 1.2em !important;
    font-weight: bold;
    background-color: #82ef6f1b;
    border-radius: 5px;
}
#dateref-picker{
    text-align: center;
    font-size: 1.2em !important;
}
.datepicker {
    width: 300px; /* Imposta la larghezza del datepicker */
    text-align: center;
    background-color: #f6f6f6;
}

.date-cmd-icon{
    font-size: 2.0em !important;
    font-weight: bold;
}
 
.date-reference-cmd:hover{
    background-color: #82ef6f1b !important;
    border-radius: 5px;
    box-shadow: 0px 2px 10px 0px rgba(146, 146, 146, 0.75);
}
.whatsapp-chat{
    cursor: pointer; margin-left: 12px;
    user-select: none;
}
input.required{
    border: solid 2px orangered;
}

.badgecode-container-association{
    background-color: rgba(225, 244, 225, 0.403);
    border-radius: 6px;
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
    padding: 15px;
    border: dotted 2px #45823a;
}

/* ============================================================
   Opt-out: la view /registry/badgecodes/view è un form custom,
   NON deve usare lo standard Chronos di header tabella scura.
   (Le icone azione sono già scopate al solo glifo
    material-symbols-outlined, quindi non servono override.)
   ============================================================ */
.badgecodes-container .header-grid {
    background: transparent;
    color: inherit !important;
    font-family: inherit;
    font-weight: normal;
    font-size: inherit;
    text-transform: none;
    letter-spacing: normal;
    padding: 4px 0;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: none;
    font-style: italic;
    border-bottom: 1px solid #ccc;
}
.badgecodes-container .header-grid > [class*="col"] {
    color: inherit;
}


#lookup_container_unit {
    position: absolute;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 0 15px #b2b2b2;
    z-index: 1000;
  }

  .selection-children-count {
    font-weight: bold;
    color: #45823a;
    font-size: 2em;
    padding-left: 6px;
    padding-right: 6px;
    border-radius: 10px;
    background-color: #d4e9d1;
  }