/* Classi del progetto Studio Legale Guffanti (CONVENZIONI §10): base generica da tillomeditalia,
   le classi nuove hanno il prefisso rpg_. Colori del logo, vedi themeOverride.css. */
html, body { height: 100% }
body { color: #000 }
form { margin-bottom: 0px!important }

/* ID */
#actionBar a { color:#fff!important }
#header-trigger { background: #008eca!important; color:white }
#formTime input { background: white; text-align: center }
#preloader { position: absolute; height: 100%; width: 100%; z-index:10000 }
#preloader .css3-spinner { background-color: white; height: 100%; width: 100% }

.modal-stripe { border-bottom: 0px; background: #015072; height: 10px }
.modal-content, .modal-header{ border-radius: 0px }
.modal-content { border: none }
.modal-header { border-bottom: none; background: #008eca }
.modal-header .modal-title { color: white; margin: auto }
.modal-body { padding: 20px }
.modal-footer { border-top: 1px solid #008eca; display: flow-root; text-align: center }
.modal-paragraph { font-size: 14px; margin-bottom: 0px}
/* Modali dei filtri multipli: alti quanto la pagina, intestazione e footer fermi, scorre solo il contenuto */
.rpg_modal_full .modal-content { height: calc(100vh - var(--bs-modal-margin, 1.75rem) * 2) }
.rpg_modal_full .modal-body { overflow-y: auto }
/* Modale piu' larga di modal-xl, per gli elenchi con molte colonne */
.modal-dialog.rpg_modal_wide { max-width: 95vw }
.modal_subtitle { color: #111!important; margin-bottom: 10px; font-size: 20px; letter-spacing: 0px;}

/* CLASS */
.bb_2p_sc { border-bottom: 2px solid #015072!important  }
.bordered_div{ border: 3px double #333; border-radius: 5px }
.button_abs { position: absolute; right: 5px; top:5px }
.button-pr { background-color: #008eca; }
.button.button-3d.button-pr:hover { background-color: #008eca !important; opacity: 0.9; }
.button-sc { background-color: #015072; }
.button.button-3d.button-sc:hover { background-color: #015072 !important; opacity: 0.9; }
.button-grey { background-color: #555; }
.button.button-3d.button-grey:hover { background-color: #555 !important; opacity: 0.9; }
.button_input_group { height:38px; line-height:24px; color: #fff; margin: 0px }
.date_range { height: 30px !important; border: none !important; background: #008eca !important; color: white !important; font-weight: bold !important; }
.div_title { text-transform: uppercase; border-bottom: 2px solid #008eca; padding-bottom: 10px; margin-bottom: 20px }
.div_version { border: 1px solid #008eca; padding: 10px; margin-bottom: 40px }
.div_version h4 { margin: 0px; padding: 5px; text-align: center }
.div_version hr { border-color: #008eca }
.div_version ul { padding-left: 16px }
.error input, .error textarea, .error select, .error div.well, .error img, .error video, .error .thumbnail, .error .richText, .error video { border-color: #CB0C0F!important }
.error td label { color: #CB0C0F }
.filter_arrow, .filter_arrow_0, .filter_arrow_1, .filter_arrow_2, .filter_arrow_3 { background: none; border: 0px; padding: 0px; }
.filter_arrow > img, .filter_arrow_0 > img, .filter_arrow_1 > img, .filter_arrow_2 > img, .filter_arrow_3 > img { vertical-align: text-top!important }
.guide li{ line-height: 34px }
.icon_position { top: 1px !important; left: 7px!important; }
.img_profile { width: 100px; height: 100px; border: 3px solid #015072; margin-bottom: 10px; margin-top: 10px }
.icon_action, .td_action img { min-width: 30px; min-height: 30px; width: 30px; height: 30px; cursor:pointer; border-radius: 5px; background:white!important }
.icon_pr { border: 2px solid #008eca; padding: 3px; }
.icon_sc { border: 2px solid #015072; padding: 3px; }
.icon_amber { border: 2px solid #EB9C4D; padding: 3px; }
.icon_red { border: 2px solid #C02942; padding: 3px; }
.icon_green { border: 2px solid #59ba41; padding: 3px; }
.icon_grey { border: 2px solid #777777; padding: 3px; }
.icon_white { border: 2px solid #fff; padding: 3px; }
.info_icon { width: 15px }
.notice { width: 400px; position: fixed; z-index: 1050; right: 5px; top: 5px; }
.panel_head { padding: 5px 15px; margin: 0px; background: #008eca }
.panel_head h3 {margin: 0px; color: white }
.progress-bar{width: 10%; -webkit-animation-name: loading!important; -webkit-animation-duration: 1.5s!important; animation-name: loading!important; animation-duration: 1.5s!important; animation-timing-function: linear; animation-iteration-count: infinite }
.table_colored { vertical-align: middle; margin-bottom: 0px }
.table_colored th, .table_colored td, .table_colored select, .table_colored input { font-size: 12px }
.table_colored thead th { background-color: #008eca!important; color: #fff!important; text-transform: uppercase; }
.table.b_none th, .table.b_none td { border: 0px !important }
.table_checkbox { margin: auto; background: transparent!important; border: none }
.table_checkbox tr, .table_checkbox td { background: transparent!important; border: none }
.table_clickable td:hover { background-color: #008eca; color: #fff; cursor: pointer; }
.table_no_padding th, .table_no_padding td { padding: 0px !important }
.td_hover:hover { background-color: #008eca!important; color: #fff!important}
.th_sticky { position: sticky; top: 0; z-index: 3; background: #fff!important; }
.th_sticky2 { position: sticky; top: 35px; z-index: 2; background-color: #008eca!important; color: #fff; }
.th_sticky3 { position: sticky; top: 40px; z-index: 2; background-color: #008eca!important; color: #fff; }
.th_sticky4 { position: sticky; top: 67px; z-index: 2; background-color: #008eca!important; color: #fff; }
.td_sticky_h { position: sticky; left: 0; z-index: 3; background: #eee!important; }
/* Casella d'angolo, fissa in alto e a sinistra: deve stare sopra le altre intestazioni e la prima colonna quando si scorre */
.th_sticky.td_sticky_h { z-index: 4; }

.ul_none { list-style-type: none }
.ul_num { list-style-type: decimal; padding-left: 20px; }

/* FIX SYMFONY PROFILER TOOLBAR (X button) */
[id^="sfwdt"].sf-toolbar-closed .sf-toolbar-clearer { display: none !important; }
[id^="sfwdt"].sf-toolbar-closed .sf-toolbarreset .sf-toolbar-block { display: none !important; }
[id^="sfwdt"].sf-toolbar-closed .sf-toolbarreset .sf-toolbar-toggle-button { top: -37px !important; border-top: 2px solid #262626 !important; }
[id^="sfwdt"].sf-toolbar-opened .sf-toolbar-toggle-button .sf-toolbar-icon-closed { display: none !important; }
[id^="sfwdt"].sf-toolbar-opened .sf-toolbar-toggle-button .sf-toolbar-icon-opened { display: block !important; }
[id^="sfwdt"].sf-toolbar-closed .sf-toolbar-toggle-button .sf-toolbar-icon-closed { display: block !important; }
[id^="sfwdt"].sf-toolbar-closed .sf-toolbar-toggle-button .sf-toolbar-icon-opened { display: none !important; }

/* MEDIA */
@page{
	size:A4 landscape; 
	margin:0.5cm;
}

@media print {
    #main_print { margin-top: 0px !important; margin-bottom:0px !important; padding-right: 0px !important; padding-left: 0px !important;}
    .hide_print { display: none!important }
    .font_print { font-size: 10px }
    .cl_print { color: #000 !important }
    .table_print th, .table_print td { border-color: #000!important; padding: 2px!important }
    .display_print { display: block }
    .display_table { display: table-row }
}


/* Altezza massima di un contenitore che scorre (testo del pannello divHelp). */
.max_h_200p { max-height: 200px }

/* ─────────────────────────────────────────────────────────────────────────────
   Pannello di aiuto dei campi (divHelp), dalla skill symfony-div-help (CONVENZIONI §9.1).

   - z-index: più alto di qualsiasi elemento flottante del progetto (oggi nessuno).
   - bottom: se compare un pulsante flottante in basso a destra, il pannello va sopra di lui.
   - Il bordo è nel colore primario.
   ───────────────────────────────────────────────────────────────────────────── */

#divHelp { visibility: hidden; position: fixed; z-index: 10600; right: 24px; bottom: 96px; width: 350px; max-width: calc(100% - 48px); background: #fff; border: 1px solid #008eca; border-radius: 10px; padding: 20px; box-shadow: 0 4px 16px rgba(0,0,0,.25) }

/* La "i" e la "x" sono posizionate rispetto al pannello (l'unico position: fixed),
   così restano al loro posto qualunque sia l'altezza del testo. */
#helpImage { position: absolute; top: -20px; left: -26px; width: 56px; height: 56px; border: 1px solid #008eca; border-radius: 50%; background: #fff; padding: 4px }
#helpClose { position: absolute; top: 10px; right: 10px; width: 20px; cursor: pointer }

#helpTitle { font-size: 16px; padding: 0px 0px 8px 10px; border-bottom: 2px solid #008eca }
#helpText, #helpText li { padding: 5px; font-size: 12px }

/* Icona informativa accanto all'etichetta: apre il pannello, senza tooltip al passaggio del mouse */
.icon_info { width: 15px; height: 15px; cursor: pointer; vertical-align: baseline }

/* Logo dello studio in testa al menu laterale: è su fondo bianco, quindi sta in un riquadro bianco */
.rpg_brand { display: block; margin: 25px 0 20px; padding: 10px 12px; background: #fff; border-radius: 6px; text-align: center }
.rpg_brand img { width: 100%; max-width: 200px; height: auto }

/* Modale aperto sopra un altro modale (selettore città, ritaglio immagini): Bootstrap usa 1050/1055 */
.rpg_crop_modal { z-index: 1065 }
.modal-backdrop ~ .modal-backdrop { z-index: 1060 }

/* Pagine di accesso (login, creazione della password): scheda al centro su fondo primario */
.rpg_login_page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px 16px; background: #008eca }
#divContent.rpg_login_page { min-height: 100vh !important }
.rpg_login_card { width: 100%; max-width: 420px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.25) }
.rpg_login_brand { text-align: center; padding: 22px 30px 16px; border-bottom: 3px solid #015072 }
.rpg_login_brand img { width: 100%; max-width: 260px; height: auto }
.rpg_login_body { padding: 26px 30px 30px }

/* Riordino trascinando (components/js/drag_sort_js.html.twig) */
.rpg_drag_handle{ cursor: grab; color: #999; font-size: 1.1rem; padding: 0 4px }
.rpg_drag_handle:hover{ color: #008eca }
.rpg_sortable_ghost{ opacity: .45; background: #e8f4fa }

/* Procedure: fasi della scheda del modello e della pratica */
.rpg_phase{ background: white; border: 1px solid #ddd; border-left: 4px solid #015072; padding: 15px 20px; margin-bottom: 20px }
.rpg_phase_completed{ border-left-color: #2e7d32 }
.rpg_phase_header{ display: flex; align-items: center; gap: 10px; margin-bottom: 10px }
.rpg_phase_header h4{ margin: 0; flex: 1 }
.rpg_step_done td{ color: #777 }
.rpg_step_overdue, .table td.rpg_step_overdue{ color: #c62828; font-weight: 600 }
.rpg_progress{ height: 10px; background: #e9ecef; border-radius: 5px; overflow: hidden }
.rpg_progress > div{ height: 100%; background: #015072 }

/* Scadenze: etichetta del tipo (udienza, termine, promemoria) */
.rpg_kind_badge{ display: inline-block; color: white; font-size: 11px; font-weight: 600; text-transform: uppercase; padding: 1px 7px; border-radius: 3px; margin-right: 6px; vertical-align: middle }

/* Caricamento di più file (components/dropzone_upload.html.twig) */
.rpg_dropzone{ border: 2px dashed #015072; border-radius: 6px; background: #f4fafd; padding: 25px 15px; text-align: center; cursor: pointer; transition: background .15s }
.rpg_dropzone:hover, .rpg_dropzone:focus, .rpg_dropzone_over{ background: #e1f2fa; outline: none }
.rpg_dropzone_over{ border-color: #008eca }
.rpg_dropzone_icon{ font-size: 2.2rem; color: #015072; display: block; margin-bottom: 5px }
.rpg_upload_list{ list-style: none; padding: 0; margin: 10px 0 }
.rpg_upload_list li{ border: 1px solid #ddd; border-radius: 4px; padding: 6px 10px; margin-bottom: 6px; background: white }
.rpg_upload_ok .rpg_upload_status{ color: #2e7d32; font-weight: 600 }
.rpg_upload_ok .rpg_progress > div{ background: #2e7d32 }
.rpg_upload_error .rpg_upload_status{ color: #c62828; font-weight: 600 }
.rpg_upload_error .rpg_progress > div{ background: #c62828; width: 100% !important }
/* Anteprima dei documenti */
.rpg_preview_frame{ width: 100%; height: 75vh; border: 0; background: #f5f5f5 }
.rpg_preview_image{ max-width: 100%; max-height: 75vh; display: block; margin: 0 auto }
/* Testo delle email .eml nella finestra di lettura */
.rpg_email_body{ white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 14px; background: #fafafa; border: 1px solid #ddd; padding: 15px; max-height: 55vh; overflow: auto; margin: 0 }
.rpg_doc_child td{ background: #fbfdfe }

/* Guida (templates/guide_it.html.twig) e collegamento "?" accanto al titolo delle pagine */
.rpg_guide_link{ color: #fff !important; font-size: 1.1rem; margin-left: 10px; opacity: .75; vertical-align: middle }
.rpg_guide_link:hover{ opacity: 1; text-decoration: none !important }
.rpg_guide_section{ background: white; border: 1px solid #ddd; padding: 20px 25px; margin-bottom: 20px; scroll-margin-top: 90px }
.rpg_guide_section h3{ color: #008eca; margin-bottom: 12px }
.rpg_guide_section h5{ color: #015072; margin: 15px 0 6px 0 }
.rpg_guide_current{ border-left: 4px solid #015072 }
.rpg_guide_index ul{ padding-left: 18px }
.rpg_guide_index li{ margin-bottom: 4px }
@media (min-width: 992px){ .rpg_guide_index{ position: sticky; top: 90px } }
.accordion-button:not(.collapsed){ color: #008eca; background: #e8f4fa }
/* Pagina degli aggiornamenti */
.div_version h4{ color: #008eca; margin-bottom: 5px }
.div_version label{ margin-top: 10px; color: #015072 }

/* Modale "Registra attività": ricerca della pratica e durata */
#activityPracticeBox{ position: relative }
.rpg_autocomplete{ position: absolute; left: 15px; right: 15px; z-index: 20; background: white; border: 1px solid #ccc; border-top: 0; max-height: 260px; overflow: auto; box-shadow: 0 6px 12px rgba(0,0,0,.12) }
.rpg_autocomplete_item{ display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #eee; background: white; padding: 7px 10px }
.rpg_autocomplete_item:hover, .rpg_autocomplete_item:focus{ background: #e8f4fa; outline: none }
.rpg_autocomplete_empty{ padding: 7px 10px; color: #777 }
.rpg_duration_input{ width: 90px !important; display: inline-block }

/* Attività da confermare nella scheda della pratica */
.rpg_proposals_box{ border-left: 4px solid #2e7d32; background: #f3faf3 }

/* Totali delle attività (lista e riepiloghi) */

/* Riepilogo degli importi nella scheda della fattura */
.rpg_billing_totals th{ font-weight: normal }
.rpg_billing_totals .rpg_total_row th, .rpg_billing_totals .rpg_total_row td{ font-weight: 700; background: #f3f6fb }

/* Personale (task 2.8): residui, griglia delle presenze */
.rpg_balance_box{ background: white; border: 1px solid #dee2e6; border-left: 4px solid #015072; border-radius: 4px; padding: 12px 16px; height: 100% }
.rpg_balance_main{ font-size: 18px }
.rpg_balance_main strong{ font-size: 26px; color: #008eca }
.rpg_presence_table th, .rpg_presence_table td{ padding: 4px 3px; min-width: 30px }
.rpg_presence_table .rpg_presence_name{ min-width: 180px; text-align: left; position: sticky; left: 0; background: white; z-index: 1 }
.rpg_presence_table thead .rpg_presence_name{ background: #008eca }
.table td.rpg_presence_off{ background: #eceff1 }
.table th.rpg_presence_off{ background: #5a5390!important }
.table td.rpg_presence_absent{ background: #e1f3fb; color: #00618a; font-weight: 600 }

/* Tab laterali (anni in "Le mie assenze") */
.rpg_side_tabs .nav-link { text-align: left; color: #015072; border: 1px solid #dee2e6; margin-bottom: 4px; display: flex; justify-content: space-between; align-items: center }
.rpg_side_tabs .nav-link.active { background: #008eca; border-color: #008eca; color: #fff }
.rpg_side_tabs_count { font-size: 12px; background: rgba(0, 0, 0, .08); border-radius: 10px; padding: 0 8px }
.rpg_side_tabs .nav-link.active .rpg_side_tabs_count { background: rgba(255, 255, 255, .25) }

/* Cruscotto (task 3.2): riquadri degli indicatori e altezza dei grafici */
.rpg_kpi{ background: white; border-left: 4px solid #008eca; box-shadow: 0 1px 4px rgba(0,0,0,0.08); padding: 12px 16px; height: 100% }
.rpg_kpi_label{ color: #6c757d; font-size: 13px; text-transform: uppercase }
.rpg_kpi_value{ color: #015072; font-size: 26px; font-weight: 700; line-height: 1.3 }
.rpg_chart{ position: relative; height: 300px }
