/**
arancio #ff8f00
viola scuro #3e2676
viola chiaro #eae4f8
**/
/********** Template CSS **********/
:root {
    --primary: #ff8f00;
    --secondary: #eae4f8;
    --light: #6C7293;
    --dark: #eae4f8;
}

.centered-div {
            width: 50%; /* or any desired width */
            margin: 0 auto;
            background-color: lightblue; /* for visualization */
        }
        
.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}


/*** Layout ***/
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 270px;
    height: 100vh;
    overflow-y: auto;
    background: var(--secondary);
    transition: 0.5s;
    z-index: 999;
}

.content {
    margin-left: 250px;
    min-height: 100vh;
    background: var(--dark);
    transition: 0.5s;
}

@media (min-width: 992px) {
    .sidebar {
        margin-left: 0;
    }

    .sidebar.open {
        margin-left: -250px;
    }

    .content {
        width: calc(100% - 250px);
    }

    .content.open {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        margin-left: -250px;
    }

    .sidebar.open {
        margin-left: 0;
    }

    .content {
        width: 100%;
        margin-left: 0;
    }
}


/*** Navbar ***/
.sidebar .navbar .navbar-nav .nav-link {
    padding: 7px 20px;
    color: var(--light);
    font-weight: 500;
    border-left: 3px solid var(--secondary);
    border-radius: 0 30px 30px 0;
    outline: none;
    background-color: #eae4f8
}

.sidebar .navbar .navbar-nav .nav-link:hover,
.sidebar .navbar .navbar-nav .nav-link.active {
    color: var(--primary);
    background: var(--dark);
    border-color: var(--primary);
}

.sidebar .navbar .navbar-nav .nav-link i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    border-radius: 40px;
}

.sidebar .navbar .navbar-nav .nav-link:hover i,
.sidebar .navbar .navbar-nav .nav-link.active i {
    background: var(--secondary);
}

.sidebar .navbar .dropdown-toggle::after {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: .5s;
}

.sidebar .navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

.sidebar .navbar .dropdown-item {
    padding-left: 25px;
    border-radius: 0 30px 30px 0;
    color: var(--light);
}

.sidebar .navbar .dropdown-item:hover,
.sidebar .navbar .dropdown-item.active {
    background: var(--dark);
}

.content .navbar .navbar-nav .nav-link {
    margin-left: 25px;
    padding: 12px 0;
    color: var(--light);
    outline: none;
}

.content .navbar .navbar-nav .nav-link:hover,
.content .navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.content .navbar .sidebar-toggler,
.content .navbar .navbar-nav .nav-link i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    border-radius: 40px;
}

.content .navbar .dropdown-item {
    color: var(--light);
}

.content .navbar .dropdown-item:hover,
.content .navbar .dropdown-item.active {
    background: var(--dark);
}

.content .navbar .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: .5s;
}

.content .navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

@media (max-width: 575.98px) {
    .content .navbar .navbar-nav .nav-link {
        margin-left: 15px;
    }
}


/*** Date Picker ***/
.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}


/*** Testimonial ***/
.progress .progress-bar {
    width: 0px;
    transition: 2s;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 5px solid var(--primary);
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--dark);
    border-color: var(--primary);
}
.buttons-img-icon {
	margin: 5px 10px 5px 0px;
}

.form-buttons-image {
	float: right;
	margin: 10px;
}

.form-buttons-image:hover {
	border-color: #ff5733; /* Border color on hover */
}

.form-buttons-image-mini {
	float: right;
	margin: 10px;
	width: 30px;
}

.form-buttons-image:hover {
	border-color: #ff5733; /* Border color on hover */
}

.form-buttons-image-small {
	float: right;
	margin: 10px;
	width: 50px;
}

.form-buttons-image-mini:hover {
	border-color: #ff5733; /* Border color on hover */
}

.dashboard-img-home {
	width:90%;
	height: 80%;
	margin: 0px;
	padding: 0px;
}
.img-incontainer {
    max-height: 90%;  /* Adjusts to container height */
    width: 90%;       /* Maintains aspect ratio */
    object-fit: contain; /* Ensures the image fits within bounds */
}
.home-logo-userid {
	width: 200px;
	margin: 20px 20px 20px 35px;
}

.no-scroll {
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

.error-paragraph {
	color: red;
}
.table-bottom-right {
	overflow: auto;
	float: right;
	width: 600px;
	margin: 50px 0 80px 0;
}
.mini-icon {
	width: 30px;
	margin: 5px;
}

.special-table-cell {
	background: #c8d2e6;
	font-weight: bold;
}
.special-table-cell-centered {
	background: #c8d2e6;
	font-weight: bold;
	text-align: center;
}

.hidden {
	display:none;
}
.smiley {
    font-size: 24px; /* Adjust size */
    color: #ffcc00; /* Yellow color */
    display: flex; /* ✅ Needed for vertical centering */
    align-items: center; /* ✅ Vertical centering */
    height: 100%; /* ✅ Ensure full height */
    width: 100%; /* ✅ Ensure full width */
}


.smiley::after {
    content: " 🤗"; /* Unicode for smiley */
}

.table-smallchars {
font-size:small;
}
.fivelogohome {
max-height:700px;
position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.gestorelogohome {
    width:40%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.app-logo {
    max-height: 80px;
    width: auto;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

#dataTable td.catasto-col,
#dataTable th.catasto-col {
    background-color: #f3f0ff !important; /* light lavender */
    color:black;
}

#dataTable.table-hover tbody tr:hover td.catasto-col {
    background-color: #e6e1ff !important;
}

 .thead-lavender th {
    background-color: #5e548e;   /* dark lavender */
    color: #ffffff;
    border-color: #4a4373;
    vertical-align: middle;
    padding: 10px;
}
 
#main-content {
    overflow-y: auto;
    height: 100vh;          /* oppure calc(100vh - header) */
}
.gestorelogohome {
border: 1px solid gray;
}
.sidebar-header {
    padding: 18px 16px 12px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.sidebar-avatar {
    width: 30px;
    height: 45px;
    min-width: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #442a86;
    border-radius: 14px;

    color: #fff;
    font-size: 1.4rem;
}

.sidebar-app {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.5px;
    color: #442a86;
}

.sidebar-user {
    display: block;
    margin-top: 4px;

    font-size: 0.95rem;
    font-style: italic;
    color: #6f7694;
}

.sidebar-header hr {
    margin-top: 16px;
    border: 0;
    border-top: 1px solid #c7c3d8;
}

