
@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

:root {
    --navy: #0f1a2b;
    --navy-light: #1a2744;
    --navy-mid: #2a3c62;
    --gold: #c9a961;
    --gold-light: #d4b978;
    --gold-hover: #b8944f;
    --white: #ffffff;
    --text-dark: #1a1a2e;
    --text-muted: #64748b;
    --text-on-dark: rgba(255,255,255,0.9);
    --text-secondary: #94a3b8;
    --border-dark: rgba(255,255,255,0.08);
    --shadow-modal: 0 8px 32px rgba(0,0,0,0.35);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --status-green: #22c55e;
    --status-red: #ef4444;
    --bg-hover: rgba(42, 60, 98, 0.6);
    --page-bg: linear-gradient(135deg, #e8dcc8 0%, #c9b896 50%, #a89070 100%);
    --sidebar-bg: rgba(15, 26, 43, 0.95);
    --sidebar-border: rgba(201, 169, 97, 0.15);
    --sidebar-hover: rgba(201, 169, 97, 0.15);
    --sidebar-minimize: rgba(201, 169, 97, 0.3);
}

/* Company theme palette — overrides the hotel defaults from :root.
   Scoped to body.theme-company so every existing rule that already
   references var(--navy)/var(--gold)/etc. picks up the new colors
   automatically through CSS custom-property cascade, with no rule
   rewrites needed. */
body.theme-company {
    --navy: #16263a;
    --navy-light: #223851;
    --navy-mid: #2f4a68;
    --gold: #4fb3bf;
    --gold-light: #6ec8d2;
    --gold-hover: #3f96a1;
}

/* Sand theme palette — used only for the Azienda/Ophelia deploy profiles
   (body.theme-company-sand, set in _Layout.cshtml). Mirrors the
   --ink/--ink-2/--ink-3 and --accent/--accent-deep/--accent-tint tokens
   from the Sand login pages (cssAzienda/site-azienda.css,
   cssOphelia/site-ophelia.css). Default backoffice (DefaultConnection)
   is unaffected. */
body.theme-company-sand {
    --navy: oklch(0.270 0.020 60);
    --navy-light: oklch(0.440 0.018 58);
    --navy-mid: oklch(0.610 0.016 56);
    --gold: oklch(0.560 0.115 45);
    --gold-light: oklch(0.930 0.030 55);
    --gold-hover: oklch(0.485 0.105 42);
    --page-bg: linear-gradient(135deg, oklch(0.945 0.020 75) 0%, oklch(0.910 0.025 70) 50%, oklch(0.890 0.040 50) 100%);
    --sidebar-bg: oklch(0.55 0.11 42.03 / 0.92);
    --sidebar-border: rgba(227, 213, 186, 0.45);
    --sidebar-hover: rgba(227, 213, 186, 0.45);
    --sidebar-minimize: rgba(227, 213, 186, 0.55);
    --bg-hover: oklch(0.930 0.030 55 / 0.5);
}

/* Home dashboard background — applies to all business types and deploy
   profiles (default, hotel, and company/sand). */
body.home {
    background: linear-gradient(135deg, #0e0e0e 0%, #e3d5ba 50%, #211b13 100%) !important;
}

/* Ophelia (municipality) dashboard background — matches the "Comune Elegante"
   login page background (--app-bg in cssOphelia/site-ophelia.css). */
body.theme-municipality.home {
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(60,130,220,.18), transparent 60%),
        radial-gradient(900px 500px at 0% 110%, rgba(120,170,235,.16), transparent 55%),
        linear-gradient(160deg,#eaf1fb,#e3ecf8 55%,#eef3fb) !important;
}

body.theme-company-sand .dashboard-main-screen {
    background: oklch(0.990 0.008 82);
    border-color: oklch(0.560 0.115 45 / 0.3);
}

body.theme-company-sand .dashboard-main-screen::before {
    background:
        radial-gradient(circle at 20% 30%, oklch(0.560 0.115 45 / 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, oklch(0.560 0.115 45 / 0.04) 0%, transparent 50%);
}

body.theme-company-sand .kpi-section-title {
    color: oklch(0.270 0.020 60);
}

body.theme-company-sand .kpi-card-glass {
    box-shadow: inset 0 0 50px 10px oklch(0.270 0.020 60 / 0.04), inset 0 0 20px 5px oklch(0.270 0.020 60 / 0.05), 4px 2px 16px 1px oklch(0.270 0.020 60 / 0.08);
    border: 1px solid oklch(0.560 0.115 45 / 0.25);
}

body.theme-company-sand .kpi-card:hover {
    border-color: oklch(0.560 0.115 45 / 0.3);
}

/* Municipality theme palette — "Comune Elegante" blue, matching the
   ViewsOphelia login pages (--primary/--btn-bg/--app-bg tokens in
   cssOphelia/site-ophelia.css). Scoped to body.theme-municipality so
   every existing rule that already references var(--navy)/var(--gold)/
   var(--page-bg)/etc. picks up the new colors automatically. */
body.theme-municipality {
    --navy: #0c2d52;
    --navy-light: #163f6e;
    --navy-mid: #1f5489;
    --gold: #0c4f9e;
    --gold-light: #4a85c9;
    --gold-hover: #0a4486;
    --page-bg: linear-gradient(135deg, #eaf1fb 0%, #dde8f8 50%, #cddff3 100%);
    --sidebar-bg: rgba(12, 45, 82, 0.95);
    --sidebar-border: rgba(12, 79, 158, 0.15);
    --sidebar-hover: rgba(12, 79, 158, 0.15);
    --sidebar-minimize: rgba(12, 79, 158, 0.3);
    --bg-hover: rgba(31, 84, 137, 0.6);
}

body.theme-municipality .dashboard-main-screen {
    background: #f5f9fe;
    border-color: rgba(12, 79, 158, 0.3);
}

body.theme-municipality .dashboard-main-screen::before {
    background:
        radial-gradient(circle at 20% 30%, rgba(12, 79, 158, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(12, 79, 158, 0.04) 0%, transparent 50%);
}

body.theme-municipality .kpi-section-title {
    color: #0c2d52;
}

body.theme-municipality .kpi-card-glass {
    box-shadow: inset 0 0 50px 10px rgba(12, 45, 82, 0.04), inset 0 0 20px 5px rgba(12, 45, 82, 0.05), 4px 2px 16px 1px rgba(12, 45, 82, 0.08);
    border: 1px solid rgba(12, 79, 158, 0.25);
}

body.theme-municipality .kpi-card:hover {
    border-color: rgba(12, 79, 158, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-size: 15px;
}

html {
    height: 100%;
}

body {
    height: 100%;
    width: 100%;
    background: var(--page-bg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-size: 10px;
    overflow-x:hidden;
}

/* breadcumbs stylesheet */
.breadcrumb-item a {
    text-decoration: none;
    color: var(--text-muted);
}

h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-size: 16px;
}

.boxDashboard {
    width: 289px;
    height: 170px;
    margin-right: 50px;
    background: var(--white) 0% 0% no-repeat padding-box;
    box-shadow: 0px 0px 6px #9FB1AB;
    border-radius: 17px;
    padding: 0;
}

.boxDashboard:last-child {
    margin-right: 0px !important;
}

.boxDashboard__content {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    flex-wrap: wrap;
}

.boxDashboard__content h3 {
    text-align: left;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 19px;
    letter-spacing: 0px;
    color: var(--gold);
    font-family: 'Roboto Serif', serif;
    text-transform: uppercase;
}

.boxDashboard__info {
    position: relative;
    width: fit-content;
    height: 65px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.boxDashboard__info h4 {
    font-weight: 500;
    font-size: 40px;
    line-height: 49px;
    font-family: "Montserrat", sans-serif;
    letter-spacing: 0px;
    color: var(--gold);
    text-transform: uppercase;
    margin-right: 10px;
}

.boxDashboard__content svg {
    height: 65px;
    width: 65px;
}


.boxDashboard.bgBlue svg rect,
.boxDashboard.bgBlue svg path {
    fill: #ffffff;
}

.boxDashboard.bgBlue .boxDashboard__info h4,
.boxDashboard.bgBlue .boxDashboard__content h3 {
    color: var(--white);
}

.boxTabella {
    position: relative;
    overflow: hidden;
}

body.settings {
    background: transparent !important;
    box-shadow: none !important;
}

.button {
    width: fit-content;
    height: 40px;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    padding: 9px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%) !important;
    border: none !important;
    box-shadow: var(--shadow-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.button img {
    margin-right: 0px;
}

.button span {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-style: normal;
    font-weight: 600;
    font-size: 13px;
    line-height: 19px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: #1a1a1a !important;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md) !important;
}

.badge {
    width: 25px;
    height: 25px;
    border-radius: 100%;
    display: block !important;
}

.badgeSuccess {
    background: #89B02B;
}

.badgeDanger {
    background: #C9864C;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
}

.entryTitleAccount {
    font: normal normal normal 20px/24px Montserrat;
    letter-spacing: 0px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 50px;
}

input[type="date"]:hover:after {
    color: #bf1400;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    color: transparent;
    background: transparent;
}

input[type="date"]::-webkit-inner-spin-button {
    z-index: 1;
}

input[type="date"]::-webkit-clear-button {
    z-index: 1;
}

.btnForInputDate {
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
    position: relative;
    top: -8px;
    right: 0px;
}

/* INPUT DENTRO I MODALI */
#ModalCreazioneUtente .boxInput > input[type="text"],
#ModalCreazioneUtente .boxInput > input[type="tel"],
#ModalCreazioneUtente .boxInput > input[type="email"],
#ModalDettaglioUtente .boxInput > input[type="text"],
#ModalDettaglioUtente .boxInput > input[type="tel"],
#ModalDettaglioUtente .boxInput > input[type="email"],
#ModalDettaglioPresenza .boxInput > input[type="text"],
#ModalDettaglioPresenza .boxInput > input[type="tel"],
#ModalDettaglioPresenza .boxInput > input[type="email"],
#ModalDettaglioAccessoNegato .boxInput > input[type="text"],
#ModalDettaglioAccessoNegato .boxInput > input[type="tel"],
#ModalDettaglioAccessoNegato .boxInput > input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    font-size: 10px;
    font-family: "Roboto Serif", sans-serif;
    color: var(--text-dark);
    background-color: transparent;
    margin-bottom: 15px;
    border: solid 1px #ddd;
    border-radius: 5px;
}

#ModalDettaglioUtente .btnUpdate,
#ModalDettaglioPresenza .btnUpdate {
    position: absolute;
    right: 25px;
    bottom: 34px;
    width: 85px;
    height: 85px;
    background: #DFFCFE 0% 0% no-repeat padding-box;
    box-shadow: 0px 0px 16px #00000029;
    border-radius: 112px;
    border: none;
    outline: none;
}

#tableAnagrafica_filter,
#tableLeadsAll_filter,
#tableAccessiNegati_filter,
#tablePresenze_filter,
#tablePercorso_filter,
#tableDipendenti_filter {
    display: none;
}


/** Inserisco la dropdown per la ricerca*/
.dropbtn {
    background-color: #04AA6D;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.dropbtn:hover, .dropbtn:focus {
    background-color: #3e8e41;
}


.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    position: absolute;
    background-color: #f6f6f6;
    min-width: 230px;
    overflow: auto;
    z-index: 1;
}

.dropdown-content a {
    color: black !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    color: var(--gold) !important;
}

.dropdown a:hover {
    background-color: #ddd;
}

.show {
    display: block;
}

/** defaul stylesheet for modal */
.modal {
    opacity: 1;
    -webkit-backdrop-filter: blur(2px);
}

.modal-backdrop {
    background-color: transparent;
    z-index: 0;
    height: unset !important;
    width: unset !important;
}

.modal-backdrop.show {
    opacity: 0;
}

body:not(.home).modal-open {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

body:is(.home).modal-open {
    overflow-y: hidden !important;
    overflow-x: hidden !important;
    z-index: 9999;
    position: fixed;
}

body.modal-open .sidebar,
body.modal-open .navbar,
body.modal-open .sidebar ~ .home-section {
    z-index: 0 !important;
    box-shadow: none !important;
    background-color: transparent !important;
}


.modal-content {
    border: none !important;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-md);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    overflow: hidden;
    transition: opacity 0.2s, transform 0.2s;
    backdrop-filter: blur(10px);
}

.modal-content .modal-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-content .modal-header,
.modal-content .modal-body,
.modal-content .modal-footer,
.modal-content label,
.modal-content input,
.modal-content select,
.modal-content textarea,
.modal-content button {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

.modal-content .modal-header {
    background: var(--navy);
    border-bottom: 1px solid rgba(201, 169, 97, 0.15);
    height: 48px;
    padding: 10px 16px;
}

.modal-content .modal-header .modal-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.modal-content .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-content .modal-body {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
}

.modal-content .modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}

#modalNuovaPrenotazioneDialog,
#modalNuovaServizioDialog {
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(10px);
}

#modalInsertAssistenza .modal-content,
#modalAssistenzaDetail .modal-content,
#modalTotem .modal-content,
#modalEvento .modal-content,
#modalInvitato .modal-content {
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 0 3px #c9a961;
}

#modalNuovaPrenotazione .modal-header,
#modalNuovaServizio .modal-header,
#modalInsertAssistenza .modal-header,
#modalAssistenzaDetail .modal-header,
#modalTotem .modal-header,
#modalEvento .modal-header,
#modalInvitato .modal-header {
    background: var(--navy);
    cursor: move;
    user-select: none;
    height: 48px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(201, 169, 97, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#modalNuovaPrenotazione .modal-header h5,
#modalNuovaServizio .modal-header h5,
#modalInsertAssistenza .modal-header h5,
#modalAssistenzaDetail .modal-header h5,
#modalTotem .modal-header h5,
#modalEvento .modal-header h5,
#modalInvitato .modal-header h5 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: none;
    margin-left: 5px;
}

#modalNuovaPrenotazione .modal-header .btn-close,
#modalNuovaServizio .modal-header .btn-close,
#modalInsertAssistenza .modal-header .btn-close,
#modalAssistenzaDetail .modal-header .btn-close,
#modalTotem .modal-header .btn-close,
#modalEvento .modal-header .btn-close,
#modalInvitato .modal-header .btn-close {
    margin: 0;
    filter: brightness(0) invert(1);
}

.dataTables_empty {
    top: 10px;
    position: relative;
    font-size: 10px;
}

.form-check-input:focus {
    box-shadow: none !important;
}

/* Prevent any project-wide input rules from overriding Bootstrap 5 checkbox appearance */
.form-check-input[type="checkbox"] {
    background-color: #fff;
    border-color: #adb5bd;
    cursor: pointer;
}
.form-check-input[type="checkbox"]:hover {
    background-color: #fff;
    border-color: #0d6efd;
}
.form-check-input[type="checkbox"]:checked,
.form-check-input[type="checkbox"]:checked:hover,
.form-check-input[type="checkbox"]:checked:active,
.form-check-input[type="checkbox"]:checked:focus {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}
.form-check-input[type="checkbox"]:focus {
    box-shadow: none !important;
    outline: none !important;
    border-color: #0d6efd;
}

/* Focus ring for forms */
.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--gold) !important;
    outline-offset: -1px;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.2) !important;
    border-color: var(--gold) !important;
}

/* media queries for laptop */
@media only screen and (min-width: 1370px) and (max-width: 1605px) {
    .entryTitle {
        margin-bottom: 50px !important;
        margin-top: 80px !important;
    }


    /* tabella presenza */
    .boxTablePresenze {
        padding-inline: 20px !important;
    }

    body:not(.home).modal-open {
        overflow-y: hidden !important;
    }
}

/*
Icona chiusura modale
*/
.btn-close > img {
    width: 21px;
    height: 21px;
    object-fit: cover;
}

/*
Stylesheet for ui-datepicker 
*/
.ui-datepicker .ui-datepicker-header {
    background: var(--navy);
    border: none;
    color: var(--text-on-dark);
}

.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {
    background: var(--gold) !important;
    border: 1px solid var(--gold) !important;
    color: var(--navy) !important;
}

.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active, a.ui-button:active, .ui-button:active, .ui-button.ui-state-active:hover {
    border: 1px solid var(--gold) !important;
    background: var(--gold) !important;
    font-weight: bold;
    color: var(--navy) !important;
}

.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus, .ui-button:hover, .ui-button:focus {
    border: 1px solid var(--gold) !important;
    font-weight: bold;
    background: var(--gold-hover) !important;
    color: var(--navy) !important;
}

.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus, .ui-button:hover, .ui-button:focus {
    background: var(--gold-hover) !important;
    color: var(--navy) !important;
}

.ui-state-hover .ui-icon,
.ui-state-focus .ui-icon,
.ui-button:hover .ui-icon,
.ui-button:focus .ui-icon {
    background-image: url("https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/ui-lightness/images/ui-icons_ffffff_256x240.png") !important;
}

.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
    cursor: pointer !important;
}

/* Stylesheet modale cancellazione */
#cancellazioneModal {
    display: none;
    z-index: 1000000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#cancellazioneModal .modal-header {
    border-bottom: none;
    border-top: none;
    padding-left: 32px;
    padding-right: 32px;
    padding-top: 0px;
    padding-bottom: 0px;
}

#cancellazioneModal .modal-footer {
    border-bottom: none;
    border-top: none;
    padding-inline: 32px;
    margin-bottom: 32px;
}

#cancellazioneModal .modal-dialog {
    max-width: 737px;
    width: 100%;
    height: fit-content;
}

#cancellazioneModal .modal-content {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-md);
    height: fit-content;
    border: none;
    backdrop-filter: blur(10px);
}

#cancellazioneModal .modal-title {
    font: normal normal bold 32px/47px -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.35px;
    color: var(--navy);
    text-transform: uppercase;
    margin-top: 21px;
}

#cancellazioneModal .modalCloseIcon {
    width: 17px;
    height: 17px;
    object-fit: cover;
    top: 10px;
    position: relative;
}

#cancellazioneModal .modal-body label {
    text-align: left;
    font: normal normal 600 20px/27px Segoe UI;
    letter-spacing: 0.2px;
    color: var(--text-dark);
}

#cancellazioneModal .modal-footer {
    display: flex;
    justify-content: center;
}

#cancellazioneModal .button {
    outline: none;
    border: none;
    background: transparent;
    border-radius: 19px;
    width: fit-content;
    height: 37px;
    text-align: center;
    font: normal normal 600 13px/17px Segoe UI;
    letter-spacing: 0.13px;
    color: var(--gold);
    border: 1px solid var(--gold);
    text-transform: uppercase;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#cancellazioneModal .button:not(.btnRetry) > span {
    color: var(--gold) !important;
}

#cancellazioneModal .btnRetry > span {
    color: #AE1313 !important;
}

#cancellazioneModal .button:hover {
    border: 2px solid var(--gold);
}

#cancellazioneModal .button:focus, #cancellazioneModal .button:active {
    border: 2px solid var(--gold);
    color: var(--white);
    background-color: var(--gold);
}

#cancellazioneModal .button:focus span,
#cancellazioneModal .button:active span {
    color: var(--navy) !important;
}

#cancellazioneModal .button.btnRetry {
    outline: none;
    border: none;
    background: transparent;
    border-radius: 19px;
    width: 100px;
    height: 37px;
    text-align: center;
    font: normal normal 600 13px/17px Segoe UI;
    letter-spacing: 0.13px;
    color: #AE1313;
    border: 1px solid #AE1313;
    text-transform: uppercase;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#cancellazioneModal .button.btnRetry:focus,
#cancellazioneModal .button.btnRetry:active {
    border: 2px solid #AE1313;
    background-color: #AE1313;
}

#cancellazioneModal .button.btnRetry:hover {
    border: 2px solid #AE1313;
}

#cancellazioneModal .button.btnRetry:focus span {
    color: #FAFCFC !important;
}

/* ===== PULSANTI UNIFICATI =====
   Scoped a .btn per non toccare classi custom (es. .button.btn-primary nella chat)
*/
.btn {
    font-size: 13px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-weight: 600;
    border-radius: var(--border-radius-sm) !important;
}

.btn.btn-sm {
    font-size: 12px !important;
}

/* Primary — gold gradient */
.btn.btn-primary {
    color: #1a1a1a !important;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%) !important;
    border: none !important;
    box-shadow: var(--shadow-sm) !important;
}
.btn.btn-primary:hover, .btn.btn-primary:focus {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md) !important;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%) !important;
}

/* Secondary — grigio neutro per Annulla/chiudi */
.btn.btn-secondary {
    color: #fff !important;
    background-color: #64748b !important;
    border: none !important;
    box-shadow: var(--shadow-sm) !important;
}
.btn.btn-secondary:hover, .btn.btn-secondary:focus {
    color: #fff !important;
    background-color: #475569 !important;
}

/* Warning — arancione con testo bianco */
.btn.btn-warning {
    color: #fff !important;
    background-color: #d07a00 !important;
    border: none !important;
    box-shadow: var(--shadow-sm) !important;
}
.btn.btn-warning:hover, .btn.btn-warning:focus {
    color: #fff !important;
    background-color: #a86200 !important;
}

/* Danger — rosso */
.btn.btn-danger {
    color: #fff !important;
    background-color: #ef4444 !important;
    border: none !important;
    box-shadow: var(--shadow-sm) !important;
}
.btn.btn-danger:hover, .btn.btn-danger:focus {
    color: #fff !important;
    background-color: #dc2626 !important;
}

/* Info — gold gradient */
.btn.btn-info {
    color: #1a1a1a !important;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%) !important;
    border: none !important;
    box-shadow: var(--shadow-sm) !important;
}
.btn.btn-info:hover, .btn.btn-info:focus {
    color: #1a1a1a !important;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%) !important;
}

/* ===== DIMENSIONI TIPOGRAFICHE BASE =====
   Scoped a .window-content per non toccare le altre aree già stilizzate.
*/
.window-content h1 { font-size: 26px !important; font-weight: 700; }
.window-content h2 { font-size: 22px !important; font-weight: 700; }
.window-content h3 { font-size: 18px !important; font-weight: 600; }
.window-content h4 { font-size: 16px !important; font-weight: 600; }
.window-content h5 { font-size: 14px !important; font-weight: 600; }
.window-content h6 { font-size: 13px !important; font-weight: 600; }

.window-content p,
.window-content span,
.window-content td,
.window-content th { font-size: 13px !important; }

.window-content .form-label  { font-size: 13px !important; }
.window-content .form-control { font-size: 13px !important; }
.window-content .form-select  { font-size: 13px !important; }
.window-content .form-check-label { font-size: 13px !important; }

/* Modal Bootstrap dentro window-content */
.window-content .modal-title { font-size: 15px !important; font-weight: 700; }
.window-content .modal-body label { font-size: 13px !important; }
.window-content .modal-body input,
.window-content .modal-body select,
.window-content .modal-body textarea { font-size: 13px !important; }

/* Form labels */
label {
    color: var(--text-dark);
}
