/* Aggiornamento 21/10/2022 */
.container.mt-1.pt-1 {height:100vh;padding-top: 0px!important;}
.col.login form {
    max-width: 500px;
    margin: 0 auto;
}
.col.login .form-group {
    width: 100%!important;
}
.login input.form-control {
    border-radius: 35px;
}
button.btn.btn-primary.login {
    background: #ffc800;
    border-radius: 45px!important;
    width: 100%;
    font-size: 20px;
	border:0px;
}
.container.mt-1.pt-1 .row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    height: 100vh;
    align-content: center;
}
/* Fine Aggiornamento 21/10/2022 */
input[type="color"],
input[type="date"],
input[type="datetime"],
input[type="datetime-local"],
input[type="email"],
input[type="month"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="time"],
input[type="url"],
input[type="week"],
select:focus,
textarea {
  font-size: 16px;
}

button.btn.btn-success {
    width: 100%;
}
.container-fluid.mt-5 {
    position: relative;
    margin-bottom: 80px;
	top:10px;
}
.action {
    width: 100%;
    position: fixed;
    bottom: 0;
}

.buttons-columnVisibility {
    display: block;
    background: white;
    border: 1px solid #dfdfdf;
    width: 100%;
    padding: 6px 0;
}
.dt-button-collection > div[role=menu] {
    position: absolute;
    margin-top: 12px;
    width: 150px;
    left: 378px;
}
.col.login {text-align:center;}
.btn.btn-primary.login {
    width: 100%;
}
.form-control {
    /*text-align: center;*/
}
.img-fluid.mx-auto {
    width: 180px;
}
.container.mt-1.pt-1.login {
    margin-top: 25% !important;
}
a.btn.btn-success {
    width: 100%;
}
h5.titolo{
    text-align: center;
}
.dt-buttons {
    display: none;
}
#DataTables_Table_0_info {
    display: none;
}
.pagination {
    padding: revert;
}
label {
    width: 100%;
}
.container-fluid.mt-5 {
    margin-top: 0 !important;
}
.logo {
    width: 70px;
	margin: auto;
    margin-bottom: 10px;
}
.menu {
    width: 50px;
position: absolute;
top: 5px;
right: 5px;
background: #fff;
color: #000;
font-size: 20px;
}
.btn-primary:hover {   
	color: #000; 
    background-color: #fff;
    border-color: #fff; }

.modifica, .clona, .upload, .foto {
    color: #fff;
    padding: 5px;
	border-radius: 5px;
}
.modifica {
    background: #BF8417;
}
.clona {
    background: #D99923;
}
.upload {
    background: #2180A6;
}
.foto {
    background: #0F758C;
}
.modifica.cliente {float:right}
.login input.form-control {
    text-align: center;
}
button.btn.btn-primary.login {
    background: #ffc800;
	border-radius: 5px;
}

.sidenav {
    height: 100%; /* 100% Full-height */
    width: 0; /* 0 width - change this with JavaScript */
    position: fixed; /* Stay in place */
    z-index: 1; /* Stay on top */
    top: 0; /* Stay at the top */
    left: 0;
    background-color: #111; /* Black*/
    overflow-x: hidden; /* Disable horizontal scroll */
    padding-top: 60px; /* Place content 60px from the top */
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
}

.sidenav a {
    padding: 8px 8px 8px 8px;
	text-align: center;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.sidenav a:hover {
    color: #f1f1f1;
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}
.mobile-menu-toggle {
    display: inline-grid;
    width: 46px;
    height: 46px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #ffc800;
    cursor: pointer;
    font-size: 21px;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    border-color: rgba(255, 200, 0, .45);
    background: rgba(255, 200, 0, .12);
    color: #ffc800;
    outline: 0;
}

#main {
    transition: margin-left .5s;
    padding: 20px;
}

@media screen and (max-height: 450px) {
    .sidenav {padding-top: 15px;}
    .sidenav a {font-size: 18px;}
}
.action {
    z-index: 10!important;
}
.modal-dialog {
    z-index: 5!important;
}
input.form-control {
    padding: 0.75rem 0.5rem!important;
}
.form-group {
    width: 70%!important;
}
button.btn.btn-primary.cerca {
    width: 30%!important;
}

/*** Gallery 90° ***/

.col-4.mb-3, img.fancybox-image, .fancybox-thumbs__list a {
    transform: rotate(90deg)!important;
} 
.fancybox-thumbs__list a {margin:10px 0!important;}

/* Dashboard 2026 */
.dashboard-page {
    background: #f5f6f8;
    color: #20242c;
    min-height: 100vh;
}
.dashboard-shell {
    display: flex;
    min-height: 100vh;
}
.dashboard-sidebar {
    flex: 0 0 250px;
    width: 250px;
    background: #17191f;
    padding: 30px 20px;
}
.dashboard-page .dashboard-sidebar .logo {
    width: auto;
    margin: 0 0 34px;
    text-align: center;
}
.dashboard-page .dashboard-sidebar .logo a,
.backend-page .logo a {
    display: block;
    max-width: 178px;
    margin: 0 auto;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(0, 0, 0, .16);
}
.dashboard-page .dashboard-sidebar .logo img {
    display: block;
    width: 145px;
    height: auto;
    filter: none;
}
.dashboard-page .dashboard-sidebar .sidenav {
    position: static;
    width: 100%;
    height: auto;
    padding: 0;
    background: transparent;
    overflow: visible;
}
.dashboard-page .dashboard-sidebar .sidenav .closebtn {
    display: none;
}
.dashboard-page .dashboard-sidebar .sidenav a {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 7px;
    padding: 12px 14px;
    border-radius: 9px;
    color: #adb0b8;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .02em;
    text-align: left;
}
.dashboard-page .dashboard-sidebar .sidenav a:hover,
.dashboard-page .dashboard-sidebar .sidenav a.active {
    background: rgba(255, 200, 0, .12);
    color: #ffc800;
}
.dashboard-page .dashboard-sidebar .sidenav a i {
    width: 18px;
    text-align: center;
}
.dashboard-content {
    flex: 1;
    min-width: 0;
    padding: 34px 40px 50px;
}
.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}
.dashboard-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #a16f13;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.dashboard-topbar h1 {
    margin: 0 0 6px;
    color: #20242c;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.03em;
}
.dashboard-topbar p {
    margin: 0;
    color: #7a7f89;
    font-size: 14px;
}
.contact-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 270px;
    padding: 11px 16px 11px 11px;
    border: 1px solid #e7e8ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(26, 29, 35, .05);
}
.contact-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}
.contact-card div {
    display: flex;
    flex-direction: column;
}
.contact-card span {
    color: #9498a1;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.contact-card strong {
    margin: 1px 0 2px;
    color: #252932;
    font-size: 14px;
}
.contact-card a {
    color: #a16f13;
    font-size: 12px;
    font-weight: 600;
}
.dashboard-notice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    overflow: hidden;
    margin-bottom: 22px;
    padding: 20px 22px;
    border: 1px solid #f0d68d;
    border-radius: 15px;
    background: linear-gradient(105deg, #fffaf0 0%, #fff 70%);
    box-shadow: 0 8px 26px rgba(161, 111, 19, .08);
    transition: opacity .28s ease, transform .28s ease;
}
.dashboard-notice::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: #e2a72f;
    content: '';
}
.dashboard-notice.is-read {
    opacity: 0;
    transform: translateY(-8px);
}
.fabio-birthday-alert {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    overflow: hidden;
    margin-bottom: 22px;
    padding: 22px 24px;
    border: 1px solid #e7bd45;
    border-radius: 15px;
    background: linear-gradient(110deg, #fff0a8 0%, #fff8d9 48%, #fff 100%);
    box-shadow: 0 10px 32px rgba(174, 119, 12, .15);
}
.birthday-celebration-icon {
    display: grid;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 16px;
    background: #d99923;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 8px 18px rgba(185, 124, 13, .24);
    animation: pfstyle-birthday-bounce 2.4s ease-in-out infinite;
}
.fabio-birthday-alert > div { position: relative; z-index: 2; min-width: 0; flex: 1; }
.fabio-birthday-alert h2 {
    margin: 0 0 3px;
    color: #5d3d04;
    font-size: 19px;
    font-weight: 700;
}
.fabio-birthday-alert p { margin: 0; color: #836322; font-size: 12px; }
.fabio-birthday-alert > a {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    padding: 9px 13px;
    border-radius: 8px;
    background: #fff;
    color: #96650c;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(112, 75, 4, .09);
}
.birthday-confetti {
    position: absolute;
    width: 8px;
    height: 18px;
    border-radius: 3px;
    opacity: .65;
    transform: rotate(24deg);
}
.confetti-one { top: 10px; right: 25%; background: #d99923; }
.confetti-two { right: 18%; bottom: 8px; height: 9px; background: #0f758c; transform: rotate(-30deg); }
.confetti-three { top: 8px; left: 45%; width: 10px; height: 10px; background: #bf8417; transform: rotate(45deg); }
@keyframes pfstyle-birthday-bounce {
    0%, 75%, 100% { transform: translateY(0) rotate(0); }
    82% { transform: translateY(-5px) rotate(-4deg); }
    90% { transform: translateY(0) rotate(4deg); }
}
.notice-bell {
    position: relative;
    display: grid;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    background: #fff0bd;
    color: #aa7411;
    font-size: 22px;
}
.notice-bell > i {
    position: relative;
    z-index: 2;
    transform-origin: 50% 10%;
    animation: pfstyle-bell-ring 2.8s ease-in-out infinite;
}
.notice-pulse {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(217, 153, 35, .45);
    border-radius: 50%;
    animation: pfstyle-notice-pulse 2s ease-out infinite;
}
.notice-avatar {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border: 3px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(126, 84, 7, .15);
}
.notice-copy {
    min-width: 0;
    flex: 1;
}
.notice-copy .dashboard-eyebrow { margin-bottom: 3px; }
.notice-copy h2 {
    margin: 0 0 4px;
    color: #2b2e35;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.01em;
}
.notice-copy p {
    margin: 0;
    color: #62666f;
    font-size: 13px;
    line-height: 1.5;
}
.notice-copy time {
    display: block;
    margin-top: 5px;
    color: #a0a3aa;
    font-size: 10px;
}
.notice-read-button {
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid #e6c873;
    border-radius: 8px;
    background: #fff;
    color: #96650c;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .02em;
}
.notice-read-button:hover {
    border-color: #d99923;
    background: #fff8df;
}
@keyframes pfstyle-bell-ring {
    0%, 72%, 100% { transform: rotate(0); }
    76% { transform: rotate(16deg); }
    80% { transform: rotate(-14deg); }
    84% { transform: rotate(11deg); }
    88% { transform: rotate(-8deg); }
    92% { transform: rotate(4deg); }
}
@keyframes pfstyle-notice-pulse {
    0% { opacity: .75; transform: scale(.82); }
    70%, 100% { opacity: 0; transform: scale(1.35); }
}
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}
.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 138px;
    padding: 21px;
    border: 1px solid #e8e9ed;
    border-radius: 15px;
    background: #fff;
    color: inherit;
    box-shadow: 0 7px 24px rgba(26, 29, 35, .04);
    transition: transform .2s ease, box-shadow .2s ease;
}
a.stat-card:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(26, 29, 35, .09);
}
.stat-icon {
    display: grid;
    flex: 0 0 47px;
    width: 47px;
    height: 47px;
    place-items: center;
    border-radius: 13px;
    background: #fff7da;
    color: #b17c18;
    font-size: 19px;
}
.stat-card-services .stat-icon { background: #e8f5f6; color: #0f758c; }
.stat-card-month .stat-icon { background: #edf1ff; color: #5169b1; }
.stat-card-team .stat-icon { background: #f6ecf7; color: #8f5a91; }
.stat-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}
.stat-copy small {
    color: #777c86;
    font-size: 12px;
    font-weight: 600;
}
.stat-copy strong {
    margin: 2px 0 4px;
    color: #20242c;
    font-size: 29px;
    line-height: 1;
}
.stat-copy em {
    color: #a2a5ac;
    font-size: 10px;
    font-style: normal;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    gap: 22px;
}
.dashboard-panel {
    overflow: hidden;
    border: 1px solid #e8e9ed;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(26, 29, 35, .04);
}
.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 23px 25px 18px;
    border-bottom: 1px solid #eff0f2;
}
.panel-heading h2 {
    margin: 0;
    color: #242830;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.01em;
}
.panel-range {
    padding: 6px 10px;
    border-radius: 20px;
    background: #fff7da;
    color: #9b6a0f;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.panel-heading > a {
    color: #a16f13;
    font-size: 12px;
    font-weight: 700;
}
.birthday-list,
.activity-list {
    padding: 5px 25px 13px;
}
.birthday-item,
.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f1f3;
    color: inherit;
}
.birthday-item:last-child,
.activity-item:last-child { border-bottom: 0; }
.birthday-item.is-fabio {
    margin: 5px -12px;
    padding: 14px 12px;
    border: 1px solid #efd27e;
    border-radius: 12px;
    background: linear-gradient(100deg, #fff9e5, #fff);
    box-shadow: 0 5px 16px rgba(161, 111, 19, .08);
}
.birthday-item.is-fabio .birthday-date {
    background: #d99923;
}
.birthday-item.is-fabio .birthday-date strong,
.birthday-item.is-fabio .birthday-date small { color: #fff; }
.birthday-item:hover,
.activity-item:hover { color: inherit; text-decoration: none; }
.birthday-date {
    display: flex;
    flex: 0 0 48px;
    height: 50px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 11px;
    background: #f7f7f9;
}
.birthday-date strong { color: #22262e; font-size: 19px; line-height: 1; }
.birthday-date small { margin-top: 3px; color: #9a6b15; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.birthday-person,
.activity-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}
.birthday-person strong,
.activity-copy strong { overflow: hidden; color: #343840; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.birthday-person small,
.activity-copy small { margin-top: 3px; color: #979ba4; font-size: 11px; }
.birthday-badge {
    padding: 5px 9px;
    border-radius: 20px;
    background: #f3f4f6;
    color: #777c84;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}
.birthday-badge.is-today { background: #fff0b8; color: #8d5e06; }
.birthday-badge.is-soon { background: #e8f5f6; color: #0f758c; }
.birthday-featured {
    padding: 5px 8px;
    border-radius: 20px;
    background: #fff0bd;
    color: #95630a;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}
.birthday-arrow { color: #c5c7cc; font-size: 10px; }
.activity-dot {
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    border: 2px solid #ffe17a;
    border-radius: 50%;
    background: #d89d2b;
    box-shadow: 0 0 0 4px #fff8df;
}
.activity-item time {
    color: #999da5;
    font-size: 10px;
    white-space: nowrap;
}
.dashboard-empty {
    display: flex;
    min-height: 250px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 30px;
    color: #9a9ea6;
    text-align: center;
}
.dashboard-empty i { margin-bottom: 12px; color: #d5b161; font-size: 30px; }
.dashboard-empty strong { color: #555a63; font-size: 14px; }
.dashboard-empty span { margin-top: 5px; font-size: 11px; }

@media (max-width: 1199px) {
    .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .dashboard-shell { display: block; }
    .dashboard-sidebar { width: 100%; padding: 14px 18px; }
    .dashboard-page .dashboard-sidebar .logo { display: inline-block; margin: 0; }
    .dashboard-page .dashboard-sidebar .logo a,
    .backend-page .logo a { padding: 6px 10px; }
    .dashboard-page .dashboard-sidebar .logo img { width: 100px; }
    .dashboard-page .dashboard-sidebar > .btn { float: right; width: auto; }
    .dashboard-page .dashboard-sidebar .sidenav { position: fixed; width: 0; height: 100%; padding-top: 60px; background: #17191f; overflow-x: hidden; }
    .dashboard-page .dashboard-sidebar .sidenav .closebtn { display: block; }
    .dashboard-page .dashboard-sidebar .sidenav .closebtn,
    .backend-page .sidenav .closebtn {
        display: flex;
        width: 58px;
        height: 58px;
        align-items: center;
        justify-content: center;
        top: 8px;
        right: 12px;
        margin: 0;
        padding: 0;
        color: #fff;
        font-size: 52px !important;
        font-weight: 200;
        line-height: 1;
    }
    .dashboard-content { padding: 24px 17px 40px; }
    .dashboard-topbar { align-items: flex-start; flex-direction: column; }
    .contact-card { width: 100%; min-width: 0; }
    .fabio-birthday-alert { align-items: flex-start; flex-wrap: wrap; }
    .fabio-birthday-alert > div { min-width: calc(100% - 78px); }
    .fabio-birthday-alert > a { margin-left: 76px; }
    .dashboard-notice { align-items: flex-start; flex-wrap: wrap; }
    .notice-avatar { width: 42px; height: 42px; flex-basis: 42px; }
    .notice-copy { min-width: calc(100% - 136px); }
    .notice-read-button { margin-left: 118px; }
    .dashboard-stats { grid-template-columns: 1fr; }
    .stat-card { min-height: 112px; }
    .panel-heading, .birthday-list, .activity-list { padding-left: 17px; padding-right: 17px; }
    .birthday-badge { display: none; }
    .birthday-featured { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .notice-bell > i,
    .notice-pulse,
    .birthday-celebration-icon { animation: none; }
}

/* Pagine gestionali coordinate con la dashboard */
.backend-page {
    min-height: 100vh;
    background: #f5f6f8;
    color: #20242c;
}
.backend-page > .container-fluid.mt-5 {
    top: 0;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0;
}
.backend-page > .container-fluid > .row {
    min-height: 100vh;
    margin: 0;
    flex-wrap: nowrap;
}
.backend-page > .container-fluid > .row > div:first-child {
    flex: 0 0 250px;
    width: 250px;
    max-width: 250px;
    padding: 30px 20px;
    background: #17191f;
}
.backend-page > .container-fluid > .row > div:last-child {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 34px 40px 50px;
    padding: 28px 30px 35px;
    border: 1px solid #e8e9ed;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(26, 29, 35, .04);
}
.backend-page .logo {
    width: auto;
    margin: 0 0 34px;
    text-align: center;
}
.backend-page .logo img {
    display: block;
    width: 145px;
    height: auto;
    filter: none;
}
.backend-page .sidenav {
    position: static;
    width: 100%;
    height: auto;
    padding: 0;
    background: transparent;
    overflow: visible;
}
.backend-page .sidenav .closebtn { display: none; }
.backend-page .sidenav a {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 7px;
    padding: 12px 14px;
    border-radius: 9px;
    color: #adb0b8;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .02em;
    text-align: left;
}
.backend-page .sidenav a:hover,
.backend-page .sidenav a.active {
    background: rgba(255, 200, 0, .12);
    color: #ffc800;
}
.backend-page .sidenav a i {
    width: 18px;
    text-align: center;
}
.backend-page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 72px;
    margin-bottom: 20px;
    padding-right: 190px;
}
.backend-page-heading h1 {
    margin: 0 0 5px;
    color: #20242c;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -.025em;
}
.backend-page-heading p {
    margin: 0;
    color: #858a93;
    font-size: 13px;
}
.backend-page hr.mb-1 {
    margin: 0 0 20px !important;
    border-color: #eff0f2;
}
.backend-page .action {
    position: fixed;
    z-index: 20 !important;
    top: 52px;
    right: 70px;
    bottom: auto;
    width: auto;
}
.backend-page .action .btn-success {
    width: auto;
    min-width: 150px;
    padding: 11px 17px;
    border: 0;
    border-radius: 9px;
    background: #d99923;
    box-shadow: 0 6px 16px rgba(217, 153, 35, .22);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
.backend-page .action .btn-success:hover { background: #bf8417; }
.backend-page .table-responsive,
.backend-page .list-group,
.backend-page .tab-content {
    overflow: hidden;
    margin-top: 20px !important;
    border: 1px solid #eceef1;
    border-radius: 12px;
    background: #fff;
}
.backend-page .table {
    margin: 0;
    color: #3b3f47;
}
.backend-page .table thead th {
    border: 0;
    background: #f7f8fa;
    color: #777c85;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.backend-page .table td {
    padding: 15px 12px;
    border-color: #eff0f2;
    vertical-align: middle;
    font-size: 13px;
}
.backend-page .table-striped tbody tr:nth-of-type(odd) { background: #fcfcfd; }
.backend-page .table tbody tr:hover { background: #fffaf0; }
.backend-page .modifica,
.backend-page .clona,
.backend-page .upload,
.backend-page .foto,
.backend-page .archivia {
    display: inline-block;
    padding: 6px 9px !important;
    border-radius: 7px !important;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}
.backend-page .nav-tabs {
    gap: 4px;
    border-bottom-color: #e8eaed;
}
.backend-page .nav-tabs .nav-link {
    border: 0;
    border-radius: 8px 8px 0 0;
    color: #777c85;
    font-size: 11px;
    font-weight: 700;
}
.backend-page .nav-tabs .nav-link.active {
    background: #fff7da;
    color: #9b6a0f;
}
.backend-page .tab-content { padding: 8px 20px 18px; }
.backend-page .list-group-item {
    padding: 14px 16px;
    border-color: #eff0f2;
    color: #444850;
    font-size: 13px;
}
.backend-page .pagination .page-link {
    border-color: #e5e7eb;
    color: #8d6213;
}
.backend-page .pagination .active .page-link {
    border-color: #d99923;
    background: #d99923;
}
.backend-page #cercaclienti {
    max-width: 580px;
    margin: 0 0 22px !important;
    padding: 15px;
    border-radius: 11px;
    background: #f7f8fa;
}
.tipo-colore-page .dataTables_wrapper > .row:first-child {
    display: block;
    margin: 0;
}
.tipo-colore-page .dataTables_wrapper > .row:first-child > div {
    width: 100%;
    max-width: 580px;
    padding: 0;
}
.tipo-colore-page .dataTables_length { display: none; }
.tipo-colore-page .dataTables_filter {
    width: 100%;
    margin: 0 0 22px;
    padding: 15px;
    border-radius: 11px;
    background: #f7f8fa;
    text-align: left;
}
.tipo-colore-page .dataTables_filter label {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #777c85;
    font-size: 11px;
    font-weight: 700;
}
.tipo-colore-page .dataTables_filter input {
    flex: 1;
    min-width: 0;
    height: 42px;
    margin: 0 !important;
    padding: .75rem .5rem;
    border: 1px solid #dde0e5;
    border-radius: 8px;
    background: #fff;
    color: #333740;
    font-size: 16px;
}
.tipo-colore-page .dataTables_filter input:focus {
    border-color: #d6a13e;
    outline: 0;
    box-shadow: 0 0 0 .18rem rgba(217, 153, 35, .13);
}
.backend-page .form-control {
    border-color: #dde0e5;
    border-radius: 8px;
    background: #fff;
}
.backend-page .form-control:focus {
    border-color: #d6a13e;
    box-shadow: 0 0 0 .18rem rgba(217, 153, 35, .13);
}
.backend-page .modal .form-group { width: 100% !important; }
.backend-page .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 20px 55px rgba(20, 22, 27, .2);
}
.backend-page .modal-header {
    border-bottom-color: #eceef1;
    background: #f8f9fa;
}
.backend-page .modal-title {
    color: #292d35;
    font-size: 16px;
    font-weight: 700;
}
.backend-page .modal-body { padding: 24px; }
.backend-page .modal .btn-success {
    border: 0;
    border-radius: 8px;
    background: #d99923;
}
.backend-page .alert { border: 0; border-radius: 10px; }
.backend-page .thumbnail {
    width: 100%;
    height: 190px;
    border-radius: 11px;
    background: #f0f1f3;
}
.message-composer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 22px;
}
.message-composer-card,
.message-preview-card,
.message-history {
    padding: 24px;
    border: 1px solid #e9eaed;
    border-radius: 13px;
    background: #fff;
}
.message-card-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
}
.message-card-icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 11px;
    background: #fff3c9;
    color: #a16f13;
}
.message-card-heading h2,
.message-preview-card h2 {
    margin: 0 0 3px;
    color: #292d35;
    font-size: 16px;
    font-weight: 700;
}
.message-card-heading p {
    margin: 0;
    color: #90949d;
    font-size: 11px;
}
.message-composer-card .form-group { width: 100% !important; }
.message-composer-card textarea { min-height: 155px; resize: vertical; }
.message-counter {
    display: block;
    margin-top: 5px;
    color: #a0a4ab;
    text-align: right;
}
.backend-page .message-publish-button {
    width: auto;
    padding: 11px 17px;
    border: 0;
    border-radius: 9px;
    background: #d99923;
    font-size: 11px;
    font-weight: 700;
}
.message-preview-card {
    background: linear-gradient(145deg, #fffaf0, #fff);
}
.message-preview-bell {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 18px 0;
    place-items: center;
    border-radius: 50%;
    background: #fff0bd;
    color: #a16f13;
    font-size: 19px;
}
.message-preview-card > p {
    color: #62666f;
    font-size: 13px;
    line-height: 1.6;
}
.message-preview-card > time {
    color: #9a9ea6;
    font-size: 10px;
}
.message-preview-empty {
    display: flex;
    min-height: 230px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #969aa3;
    text-align: center;
}
.message-preview-empty i { margin-bottom: 12px; color: #d6a13e; font-size: 28px; }
.message-preview-empty strong { color: #51555e; font-size: 13px; }
.message-preview-empty span { max-width: 220px; margin-top: 5px; font-size: 11px; }
.message-history { margin-top: 22px; }
.message-history-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 0;
    border-top: 1px solid #eff0f2;
}
.message-history-status {
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d2d4d8;
}
.message-history-status.is-active {
    background: #d99923;
    box-shadow: 0 0 0 4px #fff4cf;
}
.message-history-item > div { min-width: 0; flex: 1; }
.message-history-item strong { color: #3d4149; font-size: 12px; }
.message-history-item p {
    overflow: hidden;
    margin: 2px 0 0;
    color: #93979f;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.message-history-item time { color: #999da5; font-size: 10px; white-space: nowrap; }

/* Login */
.login-page {
    min-height: 100vh;
    background: #f5f6f8;
    color: #242830;
}
.auth-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(420px, .9fr) minmax(520px, 1.1fr);
}
.auth-brand {
    position: relative;
    display: flex;
    overflow: hidden;
    min-height: 100vh;
    align-items: center;
    padding: 60px 9%;
    background: #17191f;
    color: #fff;
}
.auth-brand::after {
    position: absolute;
    right: -80px;
    bottom: -100px;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(255, 200, 0, .12);
    border-radius: 50%;
    content: '';
}
.auth-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.auth-orb-one {
    top: -110px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 200, 0, .09);
}
.auth-orb-two {
    right: 110px;
    bottom: 85px;
    width: 90px;
    height: 90px;
    border: 20px solid rgba(217, 153, 35, .12);
}
.auth-brand-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
}
.auth-logo-wrap {
    display: inline-flex;
    margin-bottom: 58px;
    padding: 10px 16px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}
.auth-logo-wrap img {
    display: block;
    width: 145px;
    height: auto;
}
.auth-kicker {
    display: block;
    margin-bottom: 12px;
    color: #ffc800;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.auth-brand h1 {
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.08;
}
.auth-brand-content > p {
    max-width: 450px;
    margin: 0;
    color: #aeb1b9;
    font-size: 15px;
    line-height: 1.7;
}
.auth-feature-list {
    display: flex;
    margin-top: 35px;
    flex-wrap: wrap;
    gap: 10px 18px;
}
.auth-feature-list span {
    color: #d8d9dd;
    font-size: 11px;
    font-weight: 500;
}
.auth-feature-list i {
    margin-right: 6px;
    color: #ffc800;
    font-size: 9px;
}
.auth-brand-footer {
    position: absolute;
    bottom: 28px;
    left: 9%;
    color: #666a72;
    font-size: 9px;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.auth-access {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 55px 8%;
    background: #f5f6f8;
}
.auth-card {
    width: 100%;
    max-width: 430px;
    padding: 42px;
    border: 1px solid #e7e8ec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(25, 28, 34, .08);
}
.auth-mobile-logo { display: none; }
.auth-card h2 {
    margin: 0 0 7px;
    color: #20242c;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -.03em;
}
.auth-intro {
    margin: 0 0 28px;
    color: #8a8f98;
    font-size: 13px;
}
.auth-card .alert {
    margin-bottom: 22px;
    border: 0;
    border-radius: 9px;
    font-size: 11px;
}
.auth-form { width: 100%; }
.auth-field { margin-bottom: 18px; }
.auth-field label {
    margin-bottom: 7px;
    color: #4d5159;
    font-size: 11px;
    font-weight: 700;
}
.auth-input-wrap { position: relative; }
.auth-input-wrap > i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 15px;
    color: #a1a5ad;
    font-size: 14px;
    transform: translateY(-50%);
}
.auth-input-wrap .form-control {
    height: 50px;
    padding: 12px 45px 12px 43px !important;
    border: 1px solid #dfe1e6;
    border-radius: 10px;
    background: #fafbfc;
    color: #30343b;
    font-size: 14px;
    text-align: left;
}
.auth-input-wrap .form-control::placeholder { color: #b0b3ba; }
.auth-input-wrap .form-control:focus {
    border-color: #d6a13e;
    background: #fff;
    box-shadow: 0 0 0 .2rem rgba(217, 153, 35, .13);
}
.auth-password-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 10px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #969aa3;
    cursor: pointer;
    transform: translateY(-50%);
}
.auth-submit {
    display: flex;
    width: 100%;
    height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    border: 0;
    border-radius: 10px;
    background: #d99923;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(217, 153, 35, .24);
}
.auth-submit:hover,
.auth-submit:focus {
    background: #bf8417;
    color: #fff;
}
.auth-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eff0f2;
    color: #9a9ea6;
    font-size: 10px;
}
.auth-help a { color: #9b6a0f; font-weight: 700; white-space: nowrap; }

@media (max-width: 900px) {
    .auth-shell { display: block; }
    .auth-brand { display: none; }
    .auth-access { min-height: 100vh; padding: 30px 20px; }
    .auth-card { max-width: 460px; padding: 34px 28px; }
    .auth-mobile-logo {
        display: flex;
        width: fit-content;
        margin: 0 auto 32px;
        padding: 8px 12px;
        border: 1px solid #eceef1;
        border-radius: 10px;
    }
    .auth-mobile-logo img { width: 120px; }
}
@media (max-width: 420px) {
    .auth-access { align-items: flex-start; padding: 18px 12px; }
    .auth-card { padding: 28px 20px; border-radius: 14px; }
    .auth-card h2 { font-size: 24px; }
    .auth-help { align-items: flex-start; flex-direction: column; }
}

/* Livelli corretti per le finestre modali Bootstrap */
body > .modal-backdrop { z-index: 19990 !important; }
body > .modal { z-index: 20000 !important; }
.modal-dialog {
    position: relative;
    z-index: auto !important;
}

@media (max-width: 991px) {
    .backend-page > .container-fluid > .row > div:last-child {
        margin: 24px 20px 40px;
        padding: 24px 22px 30px;
    }
    .backend-page .action { right: 42px; }
    .message-composer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .backend-page > .container-fluid > .row { display: block; }
    .backend-page > .container-fluid > .row > div:first-child {
        width: 100%;
        max-width: none;
        padding: 14px 18px;
    }
    .backend-page .logo { display: inline-block; margin: 0; }
    .backend-page .logo img { width: 100px; }
    .backend-page > .container-fluid > .row > div:first-child > .btn { float: right; width: auto; }
    .backend-page .sidenav {
        position: fixed;
        width: 0;
        height: 100%;
        padding-top: 60px;
        background: #17191f;
        overflow-x: hidden;
    }
    .backend-page .sidenav .closebtn { display: flex; }
    .backend-page > .container-fluid > .row > div:last-child {
        width: auto;
        margin: 16px;
        padding: 21px 16px 28px;
    }
    .backend-page-heading { min-height: 0; padding-right: 0; }
    .backend-page-heading h1 { font-size: 23px; }
    .backend-page .action {
        position: fixed;
        top: auto;
        right: 16px;
        bottom: 16px;
    }
    .backend-page .action .btn-success { min-width: 0; }
    .backend-page .table-responsive { overflow-x: auto; }
}

/* Allineamento navbar mobile */
@media (max-width: 767px) {
    .dashboard-sidebar,
    .backend-page > .container-fluid > .row > div:first-child {
        display: flex;
        min-height: 66px;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }
    .dashboard-page .dashboard-sidebar .logo,
    .backend-page .logo {
        display: block;
        flex: 0 0 auto;
        margin: 0;
        line-height: 0;
    }
    .dashboard-page .dashboard-sidebar .logo a,
    .backend-page .logo a {
        display: flex;
        width: 104px;
        height: 44px;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 4px 9px;
        border-radius: 9px;
    }
    .dashboard-page .dashboard-sidebar .logo img,
    .backend-page .logo img {
        width: 82px;
        max-height: 34px;
        object-fit: contain;
    }
    .dashboard-sidebar .mobile-menu-toggle,
    .backend-page .mobile-menu-toggle {
        position: static;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        margin: 0 0 0 auto;
        float: none;
    }
    .dashboard-page .dashboard-sidebar .sidenav,
    .backend-page .sidenav {
        z-index: 30000;
    }
}
