body{
    font-family: Scandia,Arial,Helvetica,sans-serif !important;
    font-weight: 400;
}
input::placeholder {
    color: #d4d5d5 !important;
}
.main-container{
    height: calc(100vh - 85px);
}

.logo{
    max-width: 300px;
}

@media only screen and (max-width: 600px) {
    .logo{
        max-width: 250px;
    }
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #2a597b;
    --bs-btn-border-color: #ffffff00;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #085085;
    --bs-btn-hover-border-color: #ffffff00;
    --bs-btn-focus-shadow-rgb: 49,132,253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #43525d;
    --bs-btn-active-border-color: #ffffff00;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #2a597b;
    --bs-btn-disabled-border-color: #ffffff00;
}
.bg-primary {
    --bs-bg-opacity: 1;
    background-color: #000000 !important;
}
.btn-orange {
    --bs-btn-color: #fff;
    --bs-btn-bg: #ff7c41;
    --bs-btn-border-color: #ff7c41;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #ff4f00;
    --bs-btn-hover-border-color: #ff4f00;
    --bs-btn-focus-shadow-rgb: 225,83,97;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #ff6f2e;
    --bs-btn-active-border-color: #ff6f2e;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #c7734d;
    --bs-btn-disabled-border-color: #c7734d;
}

a{
    text-decoration: none;
}

.table-button{
    border-radius:3px !important;
}
.table-button i{
    font-size:12px;
}
.table-badge{
    border-radius:3px !important;
    font-size:11px;
}

.text-primary{
    color:#000000 !important;
}
.side-menu-bg{
    background-color: rgb(246, 246, 246);
    transition: 0.05s;
}
.side-menu-bg:hover {
    background-color: #d9d9d9;
}

label.form-check-label {
    margin-left: 10px;
    margin-top: 3px;
}
.form-switch .form-check-input {
    width: 2.7em;
    height: 1.5em;
}
.form-control:focus {
    border-color: #3f5679;
    box-shadow: 0 0 0 0.25rem rgb(112 156 255 / 25%);
}
.form-label {
    margin-bottom: 0.2rem;
}
label.form-label.mandatory::after {
    content: '*';
    color: #fb1616;
    font-weight: 900;
}

.dropzone {
    min-height: 150px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 6px;
}
.dropzone:not(.dz-started) {
    max-height: 258px;
}


.dropzone .dz-preview.dz-image-preview {
    width: 260px;
    background: white;
    /*box-shadow: 0px 2px 5px -2px #c7c7c7;*/
    padding: 5px;
    border-radius: 5px;
}
.dropzone.single .dz-preview {
    display: block;
    margin: auto;
}

.dropzone .dz-preview:hover .dz-image img {
    -webkit-transform: scale(1.10, 1.10);
    -moz-transform: scale(1.10, 1.10);
    -ms-transform: scale(1.10, 1.10);
    -o-transform: scale(1.10, 1.10);
    transform: scale(1.10, 1.10);
    -webkit-filter: blur(0);
    filter: blur(0);
    transition: 0.5s;
}

.dropzone .dz-preview.dz-file-preview .dz-image {
    border-radius: 10px;
    background: #999;
    background: linear-gradient(to bottom, #fdfdfd, #ededed);
}

.dropzone .dz-preview .dz-image {
    position: relative;
    border-radius: 5px;
    width: 250px;
    height: 180px;
    transition: 0.15s;
    outline: 2px solid #fff;
}

.dropzone .dz-preview .dz-actions {
    margin-top: 5px;
}

.dropzone .dz-preview .dz-actions a {
    display: flex;
    border-radius: 5px;
    background-color: #fff;
    opacity: 0.7;
    padding: 7px;
    margin-left: 5px;
    border: 1px solid #dbdbdb;
    cursor: pointer;
}

.dropzone .dz-preview .dz-actions a:hover {
    opacity: 1;
    cursor: pointer;
}

.dropzone .dz-preview .dz-actions a i {
    font-size: 20px;
    cursor: pointer;
}

.dropzone .dz-preview .dz-details {
    position: initial;
    opacity: 1;
    padding: 0;
}

.dropzone .dz-preview .dz-image img {
    width: 100%;
    height: 100%;
    transition: 0.5s;
    object-fit: cover;
    filter:blur(8px);
}

.dropzone.dz-clickable * {
    cursor: initial;
}

.dz-remove i.bx.bx-trash {
    font-size: 16px;
    margin-right: 3px;
}

.dropzone .dz-preview .dz-remove {
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: #f17c7c;
    margin-top: 10px;
}
.dropzone .dz-preview.dz-image-preview.main .dz-image {
    outline: 2px solid #0490ff;
    box-shadow: 0 0px 7px 3px #0083ff;
}

.dropzone .dz-preview .dz-remove:hover {
    color: #f00;
}

.dropzone svg g{
    fill: rgb(255, 0, 0);
}

.dropzone .dz-preview .dz-error-message:after {
    top: unset;
    bottom: -6px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: none;
    border-top: 6px solid red;
}

.dropzone .dz-preview .dz-error-message {
    top: unset;
    bottom: 139px;
    background: linear-gradient(to bottom, #ff7c7c, #ff1717);
}

.dz-remove .custom-buttons .custom-button:nth-child(1) {
    color: #6ec3f7;
    opacity: 0;
    transform: translate(0px, 20px);
    transition: 0.5s;
}
.dz-remove .custom-buttons .custom-button:hover{
    text-decoration: underline;
    cursor:pointer;
}
[data-custom-type="remove"] {
    cursor: pointer !important;
}

.dz-remove .custom-buttons {
    transform: translate(0px, -14px);
    transition: 0.5s;
    margin-top:10px;
}

.dropzone .dz-preview.dz-image-preview:hover .custom-buttons {
    transform: translate(0px, 2px);
}
.dropzone .dz-preview.dz-image-preview:hover .custom-button:nth-child(1) {
    transform: translate(0px, -2px);
    opacity: 1;
}


.dropzone.dropzone-files .dz-preview.dz-image-preview {
    width: 110px;
}

.dropzone.dropzone-files .dz-preview.dz-file-preview .dz-image {
    border-radius: 5px;
    background: #999;
    background: linear-gradient(to bottom, #fdfdfd, #ededed);
}

.dropzone.dropzone-files .dz-preview .dz-image {
    border-radius: 5px;
    width: 100px;
    height: 100px;
}

.content-area {
    padding: 0 1.5rem;
    flex: 1;
    overflow-y: auto;
    height: 100%;
}

.select2-container {
    display: block;
    width: auto;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bs-body-bg);
    background-clip: padding-box;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: 8px;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.select2-container.select2-container--open{
    z-index:10000;
}
.select2-container[multiple]{
    padding: 0.075rem 0.05rem;
}
.select2.select2-container.select2-container--disabled {
    background-color: #eee;
}

span.select2-selection {
    border: none !important;
}
.select2-container .select2-selection--single{
    height: 24px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 24px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 0;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    position: absolute;
    top: 0;
    right: 1px;
    width: 30px;
}
.select2-container--open .select2-dropdown {
    top: -5px;
    left: -1px;
    border: 1px solid #dfe2e6;
    border-top: none;
    box-shadow: 0px 3px 6px -4px #555;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    outline: none;
}

input.select2-search__field {
    display: block;
    width: auto;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bs-body-bg);
    background-clip: padding-box;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: 0;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

input.select2-search__field:focus {
    border-color: #3f5679 !important;
    box-shadow: 0 0 0 0.25rem rgb(112 156 255 / 25%);
}
.select2-container .select2-selection--multiple {
    height: 24px;
    min-height: 24px;
}
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    line-height: 22px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin-top: 0px;
}
.select2-container .select2-search--inline .select2-search__field {
    margin-top: 0px;
}

.big-button {
    background-color: rgb(206 241 255) !important;
    border-bottom: 2px solid #a9becd !important;
    transition: 0.15s;
    border-radius: 3px !important;
    box-shadow: 0 0 5px -2px #555;
}
.big-button:hover{
    background-color: rgb(165 229 255) !important;
    border-bottom: 2px solid #000000 !important;
}

.file-management-link{
    color: #328cff !important;
    line-height: 1.2;
    font-size: 14px;
}

.file-management-link:hover{
    text-decoration: underline !important;
}

.new-doc-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: calc(100% - 24px);
    margin: 0 0 24px 24px;
    background-color: #f3f3f3;
    border: 2px dotted #e7e7e7 !important;
    font-size: 20px;
    color: #bbc9d3;
    cursor: pointer;
    transition: 0.15s;
}

.new-doc-button i {
    font-size: 30px;
}

.new-doc-button:hover {
    background-color: #ebeaeb;
    border-color: #8f8f8f !important;
    color: #737373;
}

.modal .modal-footer .spinner-border {
    width: 18px;
    height: 18px;
}
.table>:not(caption)>*>*{
    border:none;
}
.table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-table-bg-type: rgb(133 133 133 / 5%);
}

.swal2-popup {
    border-radius: 0;
}
.swal2-styled{
    border-radius: 0 !important;
}

.content-panel{
    background-color:#f3fbff;
}



table table thead th {
    padding: 3px 8px !important;
    font-size: 14px;
    font-weight: 600;
    color: #555 !important;
}

table table tbody td {
    padding: 3px 8px !important;
    font-size: 14px;
}

table table {
    border: 1px solid #ccc;
    margin: 0 3% !important;
    width: 93% !important;
}

table table tbody td .btn {
    width: 27px;
    height: 27px;
    padding: 0;
}

table table tbody td .btn i {
    font-size: 14px;
}
.notifications {
    max-height: 500px;
    overflow: auto;
}
.notification {
    border-bottom: 1px solid #fff;
}
.notification:hover {
    background-color: #f1f1f1 !important;
    border-bottom: 1px solid #fff;
}
.box-list {
    background-color: transparent !important;
    border: none;
    border-radius: 0 !important;
}

.box-list:hover {
    background-color: #ffffff5c !important;
}

.app-footer {
    text-align: center;
    padding: 2rem 1rem;
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.6;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.app-footer .company-info {
    margin-bottom: 0.5rem;
}

.app-footer .legal-info,
.app-footer .contact-info {
    color: #8f98a3;
}

.app-footer .separator {
    margin: 0 0.5rem;
    color: #dee2e6;
    display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .app-footer {
        font-size: 0.75rem;
        padding: 1.5rem 1rem;
    }
    
    .app-footer .separator {
        display: none;
    }
    
    .app-footer .legal-info,
    .app-footer .contact-info {
        display: block;
        margin: 0.5rem 0;
    }
}

/* Custom Navigation */
.custom-nav {
    background-color: white !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 0.75rem 1.5rem;
    position: relative;
    z-index: 1030;
}

.custom-nav-logo-container {
    display: flex;
    align-items: center;
}

.custom-nav-logo {
    max-width: 160px;
    height: auto;
}

.custom-nav-badge {
    display: inline-block;
    background: rgba(42,89,123,0.1);
    color: #2a597b;
    border-radius: 100px;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 1rem;
}

.custom-nav-user {
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-right: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #64748b;
}

.custom-nav-user-name {
    font-weight: 500;
    color: #2a597b;
    margin-left: 0.5rem;
}

.custom-nav-user-verified {
    color: #10b981;
    margin-left: 0.5rem;
}

/* Custom Notifications Button */
.custom-notifications-btn {
    background: transparent;
    border: none;
    color: #64748b;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: all 0.15s ease;
    position: relative;
}

.custom-notifications-btn:hover {
    background-color: #f8fafc;
    color: #2a597b;
}

.custom-notifications-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    border-radius: 30px;
    padding: 0.15em 0.6em 0.1em;
    font-size: 0.75rem;
    min-width: 18px;
    text-align: center;
}

/* Custom Notifications Dropdown */
.custom-notifications-menu {
    width: 380px;
    padding: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 10px;
}

.custom-notifications-header {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 500;
    color: #1e293b;
    background-color: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.custom-notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.custom-notification-item {
    display: flex;
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.custom-notification-item.unread {
    display: flex;
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: background-color 0.15s ease;
    background-color: #f5faff;
}

.custom-notification-item:hover {
    background-color: #f8fafc;
}

.custom-notification-item .custom-notification-icon {
    color: #dddddd;
    font-size: 1.25rem;
    margin-right: 1rem;
}
.custom-notification-item.unread .custom-notification-icon {
    color: #dc3545;
    font-size: 1.25rem;
    margin-right: 1rem;
}

.custom-notification-content {
    flex: 1;
}

.custom-notification-title {
    color: #2a597b;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.custom-notification-text {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.4;
}

.custom-notification-time {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    text-align: right;
}

/* Custom Side Menu */
.custom-sidemenu {
    background-color: white;
    border-right: 1px solid #f8fafc;
    padding: 1.5rem 1rem;
}

.custom-menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    transition: all 0.15s ease;
    position: relative;
}

.custom-menu-item:hover {
    background-color: #f8fafc;
    color: #2a597b;
}

.custom-menu-item.active {
    background-color: rgba(42,89,123,0.1);
    color: #2a597b;
    font-weight: 500;
}

.custom-menu-icon {
    width: 20px;
    text-align: center;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.custom-menu-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.custom-menu-badge {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #dc3545;
    color: white;
    border-radius: 30px;
    padding: 0.15em 0.6em 0em;
    font-size: 0.75rem;
    min-width: 18px;
    text-align: center;
}

/* Custom Menu Highlight Item (Fatturazione) */
.custom-menu-highlight {
    background-image: linear-gradient(45deg, #8f2322, #ff0a0a);
    color: white !important;
}

.custom-menu-highlight:hover {
    opacity: 0.9;
    color: white !important;
}

/* Mobile Menu */
.custom-mobile-toggle {
    background: transparent;
    border: none;
    color: #2a597b;
    padding: 0.5rem;
    font-size: 1.5rem;
}

.custom-offcanvas {
    border-radius: 0 12px 12px 0;
    border: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.custom-offcanvas-header {
    background-color: #f8fafc;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .custom-nav {
        padding: 0.75rem;
    }
    
    .custom-menu-text {
        font-size: 1rem;
    }
    
    .custom-notifications-menu {
        width: 100%;
        max-width: 380px;
    }
}