html {
    max-height: 100%;
    overflow-y: scroll;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    -webkit-font-smoothing: antialiased;
}

a,
.page-link {
    color: #e5152d;
}

a:hover,
.page-link:hover {
    color: #c82333;
}

a.url {
    color: #0a0a0a;
}

a.url:hover {
    color: #0a0a0a;
    text-decoration: underline;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #e5152d !important;
}

dl,
ol,
ul {
    margin-bottom: 0;
}

.pace .pace-progress {
    background: #e5152d !important;
    height: 3px;
}

.nav-link.widget {
    padding: 0 16px;
    opacity: 0.7;
    font-size: 0.8em;
}

.nav-link.widget:not(.active) {
    display: none;
}

.nav-link.widget.active {
    background-color: transparent !important;
}

.content-header h1.text-dark {
    color: #e5152d !important;
}

.content-header h1.text-dark i,
.nav-item i {
    font-size: 0.8em;
    margin-bottom: 0.1em;
    vertical-align: middle;
}

.login-card-body
.input-group
.form-control:focus
~ .input-group-append
.input-group-text,
.login-card-body
.input-group
.form-control:focus
~ .input-group-prepend
.input-group-text,
.register-card-body
.input-group
.form-control:focus
~ .input-group-append
.input-group-text,
.register-card-body
.input-group
.form-control:focus
~ .input-group-prepend
.input-group-text {
    border-color: #e5152d;
}

.select2-container *:focus,
.select2-dropdown {
    border-color: #e5152d !important;
}

.select2-container--bootstrap4 .select2-results__option--highlighted,
.select2-container--bootstrap4
.select2-results__option--highlighted.select2-results__option[aria-selected="true"] {
    background-color: #e5152d;
}

.daterangepicker .ranges li.active,
.daterangepicker td.active,
.daterangepicker td.active:hover {
    background-color: #e5152d !important;
}

.page-item.active .page-link {
    background-color: #e5152d;
    border-color: #e5152d;
}

.pointer {
    cursor: pointer;
}

[class*="sidebar-dark-"] {
    background-color: #0a0a0a;
}

.card-primary:not(.card-outline) > .card-header {
    background-color: #e5152d;
}

.card-primary.card-outline {
    border-top: 3px solid #e5152d;
}

.card-title.text-primary {
    color: #e5152d !important;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active,
.sidebar-light-primary .nav-sidebar > .nav-item > .nav-link.active {
    background-color: #e5152d;
    color: #fff;
}

.fa-classic,
.fa-regular,
.fa-solid,
.far,
.fas {
    font-family: "Font Awesome 6 Free" !important;
}

.select2-container--bootstrap4
.select2-selection--single
.select2-selection__placeholder {
    line-height: calc(1.5em + 0.75rem);
    color: #6c757d;
}

.date-range-picker {
    background: white;
}

.daterangepicker {
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol";
}

.daterangepicker .ranges li.active,
.daterangepicker td.active,
.daterangepicker td.active:hover {
    background-color: #007bff;
}

.daterangepicker,
.daterangepicker .drp-buttons .btn,
.daterangepicker .ranges li,
.daterangepicker .calendar-table th,
.daterangepicker .calendar-table td,
.daterangepicker .drp-selected {
    font-size: 0.875rem;
}

.daterangepicker .drp-buttons .btn {
    font-weight: normal;
}

.select2-container--bootstrap4
.select2-selection--single
.select2-selection__placeholder {
    color: #939ba2;
}

.daterangepicker {
    box-shadow: rgb(0 0 0 / 13%) 0px 0px 1px, rgb(0 0 0 / 20%) 0px 1px 3px;
}

[class*="icheck-"] > input:first-child + input[type="hidden"] + label::before,
[class*="icheck-"] > input:first-child + label::before {
    background-color: white;
}

#search-parameters label {
    margin-bottom: 0.1rem;
}

#search-parameters .form-group {
    margin-bottom: 0.4rem;
}

.date-range-picker[readonly] {
    background-color: white;
}

#search-parameters > .overlay {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

#search-parameters .overlay {
    border-radius: 0.25rem;
    -ms-flex-align: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.7);
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 50;
}

#search-parameters .overlay.dark {
    background-color: rgba(0, 0, 0, 0.5);
}

.badge-success.delta {
    color: #28a745;
    background-color: white;
}

.badge-danger.delta {
    color: #e5152d;
    background-color: white;
}

.badge-primary.delta {
    color: #007bff;
    background-color: white;
}

.badge-danger.delta {
    color: #e5152d;
    background-color: white;
}

.badge.delta {
    font-size: inherit;
}

.chart-title,
.chart-subtitle {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.chart-subtitle {
    margin-bottom: 12px;
}

.chart-note {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.variation-table {
    width: 100%;
}

.variation-table,
.variation-table div {
    display: inline-block;
    height: 1em;
}

.apexcharts-canvas {
    background-image: url("/images/fattoretto_watermark.png");
    background-position: center center;
    background-size: 50% auto;
    background-repeat: no-repeat;
}

.tooltip-inner {
    text-align: left;
}

.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,
.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,
.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {
    fill: #e5152d !important;
}

.apexcharts-pan-icon.apexcharts-selected svg {
    stroke: #e5152d !important;
}

.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected:hover svg,
.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected:hover svg,
.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected:hover svg {
    fill: #c82333 !important;
}

.apexcharts-pan-icon.apexcharts-selected:hover svg {
    stroke: #c82333 !important;
}

#google-name .nav-item,
#d4s-nav .nav-item,
#semrush-api-usage-nav .nav-item {
    height: 100%;
}

#google-name,
#d4s-nav,
#semrush-api-usage-nav {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    margin-right: 1rem !important;
}

#google-name .nav-item,
#google-name .btn,
#d4s-nav .nav-item,
#semrush-api-usage-nav .nav-item {
    font-size: 14px;
}

#d4s-nav .badge,
#semrush-api-usage-nav .badge {
    font-size: 1em;
}

div.dataTables_length {
    display: flex;
    align-items: start;
    margin-top: 10px;
    margin-bottom: 10px;
}

div.dataTables_wrapper div.dataTables_length label,
div.dataTables_wrapper div.dataTables_paginate ul.pagination {
    font-size: 0.75em;
}

div.dataTables_wrapper div.dataTables_length label select {
    font-size: 1em;
}

.need-reload {
    color: white;
}

.card-header {
    min-height: 50px;
}

.custom-select-dropdown {
    background: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>") right 0.5rem center/1.5em 1.5em no-repeat;
}

label.query-to-show,
label.position-to-show-from,
label.semrush-to-show-from,
label.page-type,
label.query-exclude {
    margin-left: 20px;
}

label.query-to-show-to,
label.position-to-show-to,
label.semrush-to-show-to {
    margin-left: 4px;
}

.position-to-show-from input,
.position-to-show-to input,
.semrush-to-show-from input,
.semrush-to-show-to input {
    display: inline-block;
    width: 60px;
}

.query-exclude input {
    display: inline-block;
    width: 200px;
}

div.dt-buttons {
    float: none;
    margin-left: 20px;
    font-size: 0.75em;
    display: inline-block;
}

div.dt-buttons .dt-button {
    background: none !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.25rem !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075) !important;
    color: #0a0a0a !important;
    height: calc(1.8125rem + 2px) !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

div.dt-buttons .dt-button:focus,
div.dt-buttons .dt-button:hover,
div.dt-buttons .dt-button:active {
    border-color: #e5152d !important;
}

#full-spinner {
    position: fixed;
    width: 100vw;
    height: 100vh;
    /*background: rgba(229, 21, 45, 0.7); */
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#full-spinner img {
    max-width: 20vw;
    max-height: 20vh;
    display: inline-block;
    margin-bottom: -0.7vw;
}

#full-spinner i {
    color: #e5152d !important;
}

.small-box .icon {
    color: rgba(0, 0, 0, 0.06);
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover,
.bootstrap-datetimepicker-widget table td span.active {
    background-color: #e5152d;
    color: #fff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.bootstrap-datetimepicker-widget table td.day:hover,
.bootstrap-datetimepicker-widget table td.hour:hover,
.bootstrap-datetimepicker-widget table td.minute:hover,
.bootstrap-datetimepicker-widget table td.second:hover {
    cursor: pointer;
    background-color: #e5152d;
    color: #fff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.bootstrap-datetimepicker-widget table thead tr:first-child th:hover,
.bootstrap-datetimepicker-widget table td span:hover {
    background: #e5152d;
    color: #fff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.bootstrap-datetimepicker-widget .picker-switch,
.bootstrap-datetimepicker-widget table th {
    text-transform: capitalize;
}

.bootstrap-datetimepicker-widget table td.today:before {
    border-bottom-color: #e5152d;
}

.bootstrap-datetimepicker-widget table td.today:hover:before {
    border-bottom-color: white;
}

.apexcharts-xaxis-annotations rect {
    cursor: pointer;
}

.annotation-rows {
    border: 1px solid transparent;
    font-size: 0.875rem;
}

.annotation-rows .btn-sm,
.annotation-rows .badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.875em;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.tab-content {
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    /* border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
    border-top-right-radius: 0.25rem; */
}

.annotation-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10%;
    margin: auto;
    width: 40%;
    z-index: 10000;
}

.annotation-info .chart-subtitle {
    margin-bottom: 0;
}

.fattoboost-chart {
    min-height: 350px;
    margin-top: 30px;
}

.load-serp-button {
    position: relative;
    top: -20px;
}

span.property-favicon img {
    border: 1px solid lightgray;
    margin-bottom: 2px;
}

.chart-subtitle .badge.delta {
    font-size: 1.2em;
    padding: 0;
}

.select2-container--bootstrap4
.select2-selection--multiple
.select2-selection__choice {
    color: white;
    background: #e5152d;
    border: none;
}

.select2-container--bootstrap4
.select2-selection--multiple
.select2-selection__choice__remove {
    color: white;
}

.dashboard .fattoboost-chart {
    min-height: 100px;
    margin-top: 0;
}

.dashboard .semrush-charts.row > div {
    margin-top: 30px;
}

.dashboard .clicks-small-box {
    margin-top: 30px;
    height: 140px;
}

.dashboard .positions-small-box .inner {
    font-size: 0.9em;
}

.dashboard .positions-small-box {
    margin-top: 30px;
}

table.dataTable thead > tr > th.sorting:before,
table.dataTable thead > tr > th.sorting:after,
table.dataTable thead > tr > th.sorting_asc:before,
table.dataTable thead > tr > th.sorting_asc:after,
table.dataTable thead > tr > th.sorting_desc:before,
table.dataTable thead > tr > th.sorting_desc:after,
table.dataTable thead > tr > th.sorting_asc_disabled:before,
table.dataTable thead > tr > th.sorting_asc_disabled:after,
table.dataTable thead > tr > th.sorting_desc_disabled:before,
table.dataTable thead > tr > th.sorting_desc_disabled:after,
table.dataTable thead > tr > td.sorting:before,
table.dataTable thead > tr > td.sorting:after,
table.dataTable thead > tr > td.sorting_asc:before,
table.dataTable thead > tr > td.sorting_asc:after,
table.dataTable thead > tr > td.sorting_desc:before,
table.dataTable thead > tr > td.sorting_desc:after,
table.dataTable thead > tr > td.sorting_asc_disabled:before,
table.dataTable thead > tr > td.sorting_asc_disabled:after,
table.dataTable thead > tr > td.sorting_desc_disabled:before,
table.dataTable thead > tr > td.sorting_desc_disabled:after {
    right: 5px !important;
}

a.btn.disabled {
    pointer-events: initial;
}

table.dataTable tbody tr:hover {
    background-color: rgba(229, 21, 45, 0.2);
}

table.dataTable > :not(caption) > * > * {
    background-color: transparent !important;
}

table.dataTable .column-word-wrap {
    white-space: normal !important;
}

.table-info,
.table-info > td,
.table-info > th {
    background-color: rgba(229, 21, 45, 0.2);
}

.opt-label {
    font-weight: bold;
    color: #6c757d;
}

#searchbar-fixed {
    background-color: #fff;
    font-size: 12px;
    z-index: 9999;
    position: fixed;
    bottom: 0 !important;
    left: 0;
    right: 0;
    border-top: 3px solid #e5152d;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    /*box-shadow: 0 -3px 6px rgba(0, 0, 0, .16), 0 -3px 6px rgba(0, 0, 0, .23) !important;*/
}

#searchbar-fixed.visible {
    opacity: 0.9;
    transform: translateY(0);
}

#searchbar-fixed-wrapper {
    height: 60px;
}

#searchbar-fixed .overlay {
    /*border-radius: .25rem;*/
    -ms-flex-align: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.7);
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
}

#searchbar-fixed .overlay.dark {
    background-color: rgba(0, 0, 0, 0.5);
}

#searchbar-fixed > .overlay {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

#searchbar-fixed .overlay.dark > .fas {
    color: #ced4da;
}

li.user-body {
    font-size: 14px;
}

li.user-body .badge {
    font-size: 1em;
}

.navbar-nav > .user-menu > .dropdown-menu > .user-body {
    border-bottom: 0;
    border-top: 0;
}

table.dataTable thead th[data-is-resizable="true"] {
    border-left: 1px solid transparent !important;
    border-right: 1px dashed #bfbfbf !important;
}

table.dataTable thead th.dt-colresizable-hover {
    cursor: col-resize !important;
    background-color: #eaeaea !important;
    border-left: 1px solid #bfbfbf !important;
}

table.dataTable thead th.dt-colresizable-bound-min,
table.dataTable thead th.dt-colresizable-bound-max {
    opacity: 0.2 !important;
    cursor: not-allowed !important;
}

#navbar-feedback {
    display: inline-block;
    padding-right: 1rem;
    padding-left: 0.25rem;
    width: 24px;
    height: 24px;
    background: #e5152d;
    border-radius: 10000px;
    text-align: center;
    vertical-align: text-bottom;
    color: white;
    position: relative;
    top: 2px;
    margin-right: 0.25em;
}

.font-weight-bold,
strong,
b,
label:not(.form-check-label):not(.custom-file-label),
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6,
.chart-title {
    font-weight: 600 !important;
}

.apexchart-custom-marker {
    /*width: 20px;
    height: 3px; */
    display: inline-block;
    vertical-align: middle;
    /* margin-right: 3px;*/
    overflow: hidden;
    box-sizing: border-box;
}

[class*="sidebar-dark-"] .nav-header {
    background-color: inherit;
    color: #e5152d !important;
    font-weight: 600 !important;
}

[class*="sidebar-dark-"] .nav-header::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 0px;
    vertical-align: middle;
    background-image: url('/favicons/fattoretto-270x270.png');
    background-size: cover;
    background-repeat: no-repeat;
}

.nav-link {
    padding: 0.3rem 1rem;
}

.nav-sidebar {
    padding-bottom: 100px;
}

div.dataTables_wrapper div.dataTables_filter label,
div.dataTables_wrapper div.dataTables_info {
    font-size: 14px;
}

.chat-float-btn {
    position: fixed;
    right: 20px;
    bottom: 120px;
    z-index: 1050;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e5152d; /* colore aggiornato */
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
}

.chat-float-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.chat-float-btn svg {
    width: 24px;
    height: 24px;
}

#chat-modal .modal-content {
    height: calc(100vh - 56px);
}

#chat-modal .modal-footer {
    display: none;
}

.chat-modal-body {
    width: 100%;
    height: 100%;
}

.chat-modal-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (min-width: 564px) {
    .daterangepicker .ranges ul {
        width: 200px;
    }
}

@media (min-width: 768px) {
    body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav)
    #searchbar-fixed {
        margin-left: 300px;
    }

    .dt-bootstrap4 > .row .col-md-6:first-child {
        -ms-flex: 0 0 70%;
        flex: 0 0 70%;
        max-width: 70%;
    }

    .dt-bootstrap4 > .row .col-md-6 {
        -ms-flex: 0 0 30%;
        flex: 0 0 30%;
        max-width: 30%;
    }
}

@media (min-width: 992px) {
    .sidebar-mini.sidebar-collapse #searchbar-fixed {
        margin-left: 4.6rem !important;
    }
}
