@import url("https://fonts.googleapis.com/css2?family=Inter&display=swap");

/* Based on MILLIGRAM */

*,
*:after,
*:before {
    box-sizing: inherit;
}

body,
html {
    height: 100%;
    min-width: 1024px;
}

html {
    box-sizing: border-box;
    font-size: 62.5%;
}

body {
    color: #606c76;
    background-color: #f5f5f5;
    font-family: "Inter";
    font-style: normal;
    font-size: 1.2em;
    font-weight: 300;
    letter-spacing: 0.01em;
    line-height: 1.6;
    padding: 1em;
}

blockquote {
    border-left: 0.3rem solid #d1d1d1;
    margin-left: 0;
    margin-right: 0;
    padding: 1rem 1.5rem;
}

blockquote *:last-child {
    margin-bottom: 0;
}

.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.k-finder .ui-dialog-buttonset .ui-button {
    background-color: #0c72ac;
    border-width: 0;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 700;
    height: 3.5rem;
    letter-spacing: 0.1rem;
    line-height: 3.5rem;
    padding: 0 1rem;
    text-align: center;
    text-decoration: none;
    /*text-transform: uppercase;*/
    white-space: nowrap;
}

.button:focus, .button:hover,
/*button:focus,*/
button:hover,
/*input[type='button']:focus,*/
input[type='button']:hover,
/*input[type='reset']:focus,*/
input[type='reset']:hover,
/*input[type='submit']:focus,*/
input[type='submit']:hover {
    background-color: #606c76;
    border-color: #606c76;
    color: #fff;
    outline: 0;
}

.button[disabled],
button[disabled],
input[type="button"][disabled],
input[type="reset"][disabled],
input[type="submit"][disabled] {
    cursor: default;
    opacity: 0.5;
}

.button[disabled]:focus,
.button[disabled]:hover,
button[disabled]:focus,
button[disabled]:hover,
input[type="button"][disabled]:focus,
input[type="button"][disabled]:hover,
input[type="reset"][disabled]:focus,
input[type="reset"][disabled]:hover,
input[type="submit"][disabled]:focus,
input[type="submit"][disabled]:hover {
    /*background-color: #0C72AC;*/
    background-color: inherit !important;
    color: inherit !important;
    border-color: #0c72ac;
}

.button.button-outline,
button.button-outline,
input[type="button"].button-outline,
input[type="reset"].button-outline,
input[type="submit"].button-outline {
    background-color: transparent;
    color: #0c72ac;
    border: 1px solid #0c72ac;
}

.button.button-outline:focus,
.button.button-outline:hover,
button.button-outline:focus,
button.button-outline:hover,
input[type="button"].button-outline:focus,
input[type="button"].button-outline:hover,
input[type="reset"].button-outline:focus,
input[type="reset"].button-outline:hover,
input[type="submit"].button-outline:focus,
input[type="submit"].button-outline:hover {
    background-color: transparent;
    border-color: #606c76;
    color: #606c76;
}

.button.button-outline[disabled]:focus,
.button.button-outline[disabled]:hover,
button.button-outline[disabled]:focus,
button.button-outline[disabled]:hover,
input[type="button"].button-outline[disabled]:focus,
input[type="button"].button-outline[disabled]:hover,
input[type="reset"].button-outline[disabled]:focus,
input[type="reset"].button-outline[disabled]:hover,
input[type="submit"].button-outline[disabled]:focus,
input[type="submit"].button-outline[disabled]:hover {
    border-color: inherit;
    color: #0c72ac;
}

.button.button-clear,
button.button-clear,
input[type="button"].button-clear,
input[type="reset"].button-clear,
input[type="submit"].button-clear {
    background-color: transparent;
    border-color: transparent;
    color: #0c72ac;
}

.button.button-clear:focus,
.button.button-clear:hover,
button.button-clear:focus,
button.button-clear:hover,
input[type="button"].button-clear:focus,
input[type="button"].button-clear:hover,
input[type="reset"].button-clear:focus,
input[type="reset"].button-clear:hover,
input[type="submit"].button-clear:focus,
input[type="submit"].button-clear:hover {
    background-color: transparent;
    border-color: transparent;
    color: #606c76;
}

.button.button-clear[disabled]:focus,
.button.button-clear[disabled]:hover,
button.button-clear[disabled]:focus,
button.button-clear[disabled]:hover,
input[type="button"].button-clear[disabled]:focus,
input[type="button"].button-clear[disabled]:hover,
input[type="reset"].button-clear[disabled]:focus,
input[type="reset"].button-clear[disabled]:hover,
input[type="submit"].button-clear[disabled]:focus,
input[type="submit"].button-clear[disabled]:hover {
    color: #0c72ac;
}

button img,
.button img {
    margin: -2px 5px 0 5px;
}

button.red,
.button.red {
    background-color: #ffe2e2;
    color: #e84c4c;
}
button.orange,
.button.orange {
    background-color: #fdefca;
    color: #d39d0a;
}

code {
    background: #f4f5f6;
    border-radius: 0.4rem;
    font-size: 86%;
    margin: 0 0.2rem;
    padding: 0.2rem 0.5rem;
    white-space: nowrap;
}

pre {
    background: #f4f5f6;
    border-left: 0.3rem solid #0c72ac;
    overflow-y: hidden;
}

pre > code {
    border-radius: 0;
    display: block;
    padding: 1rem 1.5rem;
    white-space: pre;
}

.pr {
    /*z-index: 9999999999;*/
    position: relative;
    max-height: 500px;
    overflow: auto;
}

.minimize,
tr.minimize td,
tr.minimize th {
    width: 1px;
    white-space: nowrap;
}

hr {
    border: 0;
    border-top: 0.1rem solid #f4f5f6;
    margin: 3rem 0;
}

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="url"],
input[type="week"],
input:not([type]),
textarea,
select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff /*!important*/;
    border: 1px solid #f1f2f2;
    border-radius: 4px;
    box-shadow: none;
    box-sizing: inherit;
    height: 3.8rem;
    padding: 0.6rem 1rem 0.7rem;
    width: 100%;
    font-size: 14px;
}
textarea {
    height: auto;
}

body.k-finder .select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 1px solid #f1f2f2;
    border-radius: 4px;
    font-size: 14px;
    height: auto;
}
body.k-finder
    .select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    color: #000 !important;
    line-height: 37px !important;
}
body.k-finder
    .select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 36px !important;
    width: 36px;
}
body.k-finder
    .select2-container--default
    .select2-selection--single
    .select2-selection__arrow
    b {
    border-width: 8px 7px 0 7px;
    border-color: #d1d1d1 transparent transparent transparent;
}
body.k-finder .select2-results__option {
    padding: 0 6px;
    margin-bottom: 0;
    color: #000;
    font-size: 14px;
}
body.k-finder
    .select2-container--default
    .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #1967d2;
}
body.k-finder .select2-search__field {
    margin-bottom: 0;
}
body.k-finder
    .select2-container--default
    .select2-selection--single
    .select2-selection__clear {
    margin: 0 30px 0 0;
    padding: 0 10px;
    color: #d1d1d1;
    font-size: 20px;
    height: 37px;
}

input[type="color"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="month"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="url"]:focus,
input[type="week"]:focus,
input:not([type]):focus,
textarea:focus,
select:focus,
.analytics_page .poi_tasks_filters .filter_set {
    border-color: #0c72ac;
    outline: 0;
}

input[type="color"]:disabled,
input[type="date"]:disabled,
input[type="datetime"]:disabled,
input[type="datetime-local"]:disabled,
input[type="email"]:disabled,
input[type="month"]:disabled,
input[type="number"]:disabled,
input[type="password"]:disabled,
input[type="search"]:disabled,
input[type="tel"]:disabled,
input[type="text"]:disabled,
input[type="url"]:disabled,
input[type="week"]:disabled,
input:not([type]):disabled {
    background-color: #f9f9f9;
    color: -internal-light-dark(graytext, rgb(170, 170, 170));
    opacity: 0.7;
    border-color: rgba(118, 118, 118, 0.3);
}

select {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 8" width="30"><path fill="%23d1d1d1" d="M0,0l6,8l6-8"/></svg>')
        center right no-repeat #fff;
    padding: 0 4rem 0 1rem;
}

select:focus {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 8" width="30"><path fill="%230C72AC" d="M0,0l6,8l6-8"/></svg>');
}

select[multiple] {
    background: none;
    height: auto;
}

textarea {
    min-height: 6.5rem;
}

label,
legend {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}
legend {
    font-weight: 700;
}

fieldset {
    border-width: 0;
    padding: 0;
}

input[type="checkbox"],
input[type="radio"] {
    display: inline;
    width: 16px;
    height: 16px;
}

.label-inline {
    display: inline-block;
    font-weight: normal;
    margin-left: 0.5rem;
}

.container {
    margin: 0 auto;
    /*max-width: 112.0rem;*/
    padding: 0 2rem;
    position: relative;
    width: 100%;
}

.row {
    display: flex;
    flex-direction: column;
    padding: 0;
    width: 100%;
}

.row.row-no-padding {
    padding: 0;
}

.row.row-no-padding > .column {
    padding: 0;
}

.row.row-wrap {
    flex-wrap: wrap;
}

.row.row-top {
    align-items: flex-start;
}

.row.row-bottom {
    align-items: flex-end;
}

.row.row-center {
    align-items: center;
}

.row.row-stretch {
    align-items: stretch;
}

.row.row-baseline {
    align-items: baseline;
}

.row .column {
    display: block;
    flex: 1 1 auto;
    margin-left: 0;
    max-width: 100%;
    width: 100%;
}

.row .column.column-offset-10 {
    margin-left: 10%;
}

.row .column.column-offset-20 {
    margin-left: 20%;
}

.row .column.column-offset-25 {
    margin-left: 25%;
}

.row .column.column-offset-33,
.row .column.column-offset-34 {
    margin-left: 33.3333%;
}

.row .column.column-offset-35 {
    margin-left: 35%;
}

.row .column.column-offset-40 {
    margin-left: 40%;
}

.row .column.column-offset-50 {
    margin-left: 50%;
}

.row .column.column-offset-60 {
    margin-left: 60%;
}

.row .column.column-offset-66,
.row .column.column-offset-67 {
    margin-left: 66.6666%;
}

.row .column.column-offset-75 {
    margin-left: 75%;
}

.row .column.column-offset-80 {
    margin-left: 80%;
}

.row .column.column-offset-90 {
    margin-left: 90%;
}

.row .column.column-10 {
    flex: 0 0 10%;
    max-width: 10%;
}

.row .column.column-20 {
    flex: 0 0 20%;
    max-width: 20%;
}

.row .column.column-25 {
    flex: 0 0 25%;
    max-width: 25%;
}

.row .column.column-30 {
    flex: 0 0 30%;
    max-width: 30%;
}

.row .column.column-33,
.row .column.column-34 {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
}

.row .column.column-40 {
    flex: 0 0 40%;
    max-width: 40%;
}

.row .column.column-50 {
    flex: 0 0 50%;
    max-width: 50%;
}

.row .column.column-60 {
    flex: 0 0 60%;
    max-width: 60%;
}

.row .column.column-66,
.row .column.column-67 {
    flex: 0 0 66.6666%;
    max-width: 66.6666%;
}

.row .column.column-75 {
    flex: 0 0 75%;
    max-width: 75%;
}

.row .column.column-80 {
    flex: 0 0 80%;
    max-width: 80%;
}

.row .column.column-90 {
    flex: 0 0 90%;
    max-width: 90%;
}

.row .column .column-top {
    align-self: flex-start;
}

.row .column .column-bottom {
    align-self: flex-end;
}

.row .column .column-center {
    align-self: center;
}

.row .column.elements-inline div {
    float: left;
    margin-right: 1em;
}
.row .column.elements-inline div.input.checkbox {
    padding-top: 10px;
}

@media (min-width: 40rem) {
    .row {
        flex-direction: row;
        margin-left: -1rem;
        width: calc(100% + 2rem);
    }
    .row .column {
        margin-bottom: inherit;
        padding: 0 1rem;
    }
}

a {
    color: #0c72ac;
    text-decoration: none;
}

a:focus,
a:hover {
    color: #606c76;
}

a {
    -webkit-transition: none;
    transition: none;
}

a img,
button img {
    margin: 0 0.5em;
}

dl,
ol,
ul {
    list-style: none;
    margin-top: 0;
    padding-left: 0;
}

dl dl,
dl ol,
dl ul,
ol dl,
ol ol,
ol ul,
ul dl,
ul ol,
ul ul {
    font-size: 90%;
    margin: 1.5rem 0 1.5rem 3rem;
}

ol {
    list-style: decimal inside;
}

ul {
    list-style: circle inside;
}

.button,
button,
dd,
dt,
li {
    margin-bottom: 1rem;
}

table .button,
table button {
    margin-bottom: 0;
}

fieldset,
input,
select,
textarea {
    margin-bottom: 1.5rem;
}

blockquote,
dl,
figure,
form,
ol,
p,
pre,
table,
ul {
    margin-bottom: 2.5rem;
}

table {
    border-spacing: 0;
    display: block;
    overflow-x: auto;
    text-align: left;
    width: 100%;
}

td,
th {
    border-bottom: 0.1rem solid #e1e1e1;
    padding: 1.2rem 1.5rem;
}

td {
    border-bottom: 0.1rem solid #e1e1e1;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
}

th {
    border-bottom: 0.2rem solid #e1e1e1;
    font-weight: 600;
    font-size: 17px;
    line-height: 22px;
}

td img {
    margin-right: 6px;
}

td:last-child,
th:last-child {
    padding-right: 0;
}

td.single-line,
th.single-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

@media (min-width: 40rem) {
    table {
        display: table;
        overflow-x: initial;
    }
}

b,
strong {
    font-weight: bold;
}

p {
    margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 300;
    font-family: "Inter";
    letter-spacing: -0.1rem;
    margin-bottom: 2rem;
    margin-top: 0;
}

h1 {
    font-size: 4.6rem;
    line-height: 1.2;
}

h2 {
    font-size: 3.6rem;
    line-height: 1.25;
}

h3 {
    font-size: 2.8rem;
    line-height: 1.3;
}

h4 {
    font-size: 2.2rem;
    letter-spacing: -0.08rem;
    line-height: 1.35;
}

h5 {
    font-size: 1.8rem;
    letter-spacing: -0.05rem;
    line-height: 1.5;
}

h6 {
    font-size: 1.6rem;
    letter-spacing: 0;
    line-height: 1.4;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

.clearfix:after {
    clear: both;
    content: " ";
    display: table;
}

/* MILLIGRAM END */

/* Main structure */

#sidebar,
#maincontent {
    padding: 1em;
}
#sidebar .side-nav {
    /*position: fixed;*/
    position: absolute; /* v1.3.2 */
    background-color: #f1f2f2;
    min-height: 460px;
    padding-top: 70px;
    border-radius: 10px;
    top: 2em;
    bottom: 2em;
    width: 18%;
    min-width: 200px;
    z-index: 99999;
}
@media screen and (max-width: 640px) {
    #sidebar .side-nav {
        padding: 1em 0;
    }
    .side-nav-item {
        display: inherit;
    }
}

#sidebar a img {
    width: 25px;
}
#sidebar .side-nav-item-bottom {
    position: absolute;
    color: #0c72ac;
    width: 85%;
}
#sidebar .side-nav-item.profile {
    bottom: 60px;
}
#sidebar .side-nav-item.logout {
    bottom: 10px;
}
#sidebar .side-nav-item-selected {
    background-color: #fff;
}

#sidebar img.shipyard_image {
    width: 200px;
    height: auto;
    max-height: 400px;
    margin: 0 auto 2em auto;
    display: block;
    padding: 0 1em;
}

#sidebar #version_number {
    position: absolute;
    bottom: 0px;
    font-size: 10px;
    right: 10px;
    color: #aaa;
}

#maincontent {
    flex: 0 0 80%;
    max-width: 80%;
    display: flex;
    /* align-items: stretch; */
    flex-direction: column;
}

.topbar {
    background-color: #f1f2f2;
    border-radius: 10px;
    padding: 8px 20px;
    margin-bottom: 20px;
    /*min-height: 40px;*/
}
.topbar.filter {
    background-color: #fff;
}

.topbar > a,
.topbar > span {
    margin: 0 10px 0 0;
}
.topbar > span {
    display: inline-block;
}
.topbar > span:not(.button) {
    color: #0c72ac;
    font-weight: 600;
    border-bottom: 2px solid #0c72ac;
}
.topbar.transparent {
    background-color: transparent;
    padding: 0;
}
.topbar.filter a:not(.button) {
    font-weight: 600;
    color: #97a3aa;
}
.topbar:not(.transparent) .button:not(.active) {
    background-color: #fff;
    color: #0c72ac;
}
.topbar button,
.topbar .button {
    text-transform: uppercase;
    /*margin-bottom: 6px;*/
}

/*.topbar.filter a.button{
  background-color: transparent;
  color: #0C72AC;
}*/
.topbar.filter a img,
.topbar.filter span img {
    width: 20px;
    margin: 0 0.5em;
}
.topbar .button_back {
    margin-right: 3em;
    font-size: 16px;
}

.topbar div.input,
.topbar input,
.topbar select,
.topbar :is(h1, h2, h3, h4, h5, h6) {
    width: auto;
    display: inline-block;
    margin: 0;
    vertical-align: middle;
    line-height: inherit;
}

/*.topbar div.select {
  font-size: 2rem;
}*/

.topbar h2 {
    font-size: 24px;
}
.topbar h3 {
    font-size: 21px;
}

.side-nav a,
.top-nav-links a {
    padding: 8px 12px;
    margin: 0 1em 10px;
}

.side-nav a,
.top-nav-links a,
th a,
.actions a {
    color: #33363f;
    border-radius: 10px;
    font-weight: 600;
    font-size: 18px;
    line-height: 22px;
}
.side-nav a.active,
.side-nav a:hover {
    background-color: white;
}

/* Common styles */

.content {
    position: relative;
    height: 100%; /* Fill height because #maincontent parent have display:flex */
    min-height: 80px;
    border-radius: 10px;
    box-shadow: none;
    overflow: auto;
}

.full-height {
    height: 100%;
}

.full-width {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.roundbutton {
    width: 48px;
    height: 48px;
    border-radius: 100px;
    display: inline-block;
    text-align: center;
    padding-top: 12px;
}

.box_white {
    background-color: white;
}
.box_rounded {
    border-radius: 10px;
}

.alignleft {
    text-align: left;
}
.aligncenter {
    text-align: center;
}
.alignright {
    text-align: right;
}

.floatleft {
    float: left;
}
.floatright {
    float: right;
}

span.bg_green,
span.bg_red {
    padding: 5px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
span.bg_green {
    background-color: #e8fbf0;
}
span.bg_red {
    background-color: #fbede8;
}

span.status {
    display: block;
    margin: 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    background-repeat: no-repeat;
    background-position: center;
}
span.status.status_ok {
    background-color: #b5eaca;
    background-image: url("/ThemeKFinder/img/status_ok.svg"); /* Don't work in localhost */
}
span.status.status_warning {
    background-color: #fae633;
    background-image: url("/ThemeKFinder/img/status_warning.svg");
}
span.status.status_error {
    background-color: #f7998c;
    background-image: url("/ThemeKFinder/img/status_error.svg");
}

/* Errors on form field validation */
.error-message {
    margin-bottom: 1em;
    color: red;
    font-weight: 600;
}

input[type="file"].hidden::-webkit-file-upload-button {
    display: none;
    visibility: hidden;
    user-select: none;
}
.button.button_light,
button.button_light {
    background: #edf9ff !important;
    color: #0c72ac !important;
    border-radius: 5px;
    display: inline-block;
    /*border:1px solid #0C72AC;*/
}
/*.button.button_light:focus, button.button_light:focus,*/
.button.button_light:hover,
button.button_light:hover {
    background-color: #ddf0f6;
}

.button.button_bottom {
    font-size: 1.2em;
    height: 5rem;
    margin-top: 1em;
    padding-top: 6px;
    border-width: 0;
    position: absolute;
    bottom: 1em;
    width: calc(100% - 4rem);
}

/* Tables */

/* Tables end */

/* Pagination */

.pagination li.active {
    font-weight: 700;
    text-decoration: underline;
}

/* Pagination end */

/* Docs */
div.docs_container {
    height: 80%;
    overflow: auto;
}
div.doc {
    margin: 0 10px 0 0;
    border-bottom: 1px solid #f3f3f3;
}
div.doc:last-child {
    border-bottom-width: 0; /* TODO: Does not work..why? */
}
div.doc a.red {
    padding: 0;
    margin: 10px 5px;
    height: 32px;
}
div.doc a.red img {
    margin: -5px 5px 0;
}
div.doc label /* File name */ {
    font-size: inherit;
    margin-bottom: 5px;
    margin-top: 5px;
}
div.doc label,
div.doc .delete {
    display: inline-block;
}

.doc.new input[type="file"] {
    display: none;
}

/* Docs end */

/* Dialogs */

.ui-dialog {
    border-radius: 10px !important;
    padding: 1em 1.2em !important;
}

.ui-dialog .ui-dialog-buttonpane {
    border-width: 0 !important;
}

.ui-dialog.no-titlebar .ui-dialog-titlebar,
.ui-dialog.no-close .ui-dialog-titlebar-close {
    display: none;
}

.ui-dialog h4 {
    margin-bottom: 1rem;
    margin-top: 1em;
}
.ui-dialog h4:first-child {
    margin-top: 0;
    font-weight: bold;
}

.ui-dialog-content table input,
.ui-dialog-content table select,
.ui-dialog-content table textarea,
.ui-dialog-content table label {
    margin-bottom: 0;
}

/* Scrolls only the rows of the POI Distribution dialog table: the dialog itself
   is left to grow with its content (title, date badge) and only this block is
   capped, so a tall result set does not push the heading off screen. */
#dialog_poi_distribution .poi_distribution_rows {
    margin-top: 1em;
    max-height: calc(100vh - 260px);
    overflow-y: auto;
}

#dialog_poi_distribution .poi_distribution_rows table {
    margin-top: 0;
}

#dialog_poi_distribution .poi_distribution_rows thead th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

/* Dialogs end */

/* Custom pages */

#loginform {
    padding: 1.5em;
    border-radius: 10px;
    background-color: #fff;
    margin-top: 3em;
}

.decks .deck {
    padding: 1.5em 2em;
    height: 100%;
}
.decks .deck p {
    margin: 0.25em 0;
}
.decks .deck h4 {
    margin-bottom: 0;
}

.decks .row .column {
    padding-bottom: 2rem;
    min-height: 135px;
}

/* Custom pages end */

/* Popups / Dialogs */

body.k-finder .ui-front {
    z-index: 999999;
}
body.k-finder .ui-widget-header {
    border-width: 0;
    background-color: inherit;
    float: right; /* Pulsante X di chiusura */
}
body.k-finder .ui-widget-content a {
    color: #2f85ae;
}
body.k-finder .ui-widget-content .button,
body.k-finder .ui-widget-content a.button {
    color: #fff;
}
body.k-finder .zoom-marker-hover-dialog {
    z-index: 9999;
}

/* Popups / Dialogs end */

/* Analytics */

/* Every rule below is scoped to .analytics_page so that no existing page can be
   affected. The wrapper div is set by the templates in templates/Analytics/. */

.analytics_page .chart_section_title {
    font-size: 16px;
    font-weight: 600;
    color: #33363f;
    letter-spacing: 0;
    margin: 0 0 10px 2px;
}

.analytics_page .chart_box {
    border: 1px solid #f1f2f2;
    padding: 16px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.analytics_page .chart_box.variant_warning {
    border-color: #fae633;
}
.analytics_page .chart_box.variant_info {
    border-color: #0c72ac;
}
.analytics_page .chart_box.variant_danger {
    border-color: #e84c4c;
}

.analytics_page .chart_box_title {
    font-size: 18px;
    font-weight: 600;
    color: #33363f;
    letter-spacing: 0;
    text-align: center;
    margin: 0;
}
.analytics_page .chart_box_title:empty {
    display: none;
}

/* Chart.js is used with maintainAspectRatio:false so the boxes can follow the
   grid: without an explicit height here the canvas would collapse to 0. */
.analytics_page .chart_canvas {
    position: relative;
    height: 160px;
    margin: 12px 0;
}
.analytics_page .chart_canvas_tall {
    height: 260px;
}

.analytics_page .chart_placeholder {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    text-align: center;
    font-size: 13px;
    color: #98a2b3;
}

.analytics_page .chart_box_foot {
    margin-bottom: auto;
    margin-top: auto;
    text-align: center;
}

.analytics_page .chart_box_link {
    font-weight: 600;
    font-size: 14px;
}

.analytics_page .chart_note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 0;
    text-align: left;
    font-size: 12px;
    line-height: 1.4;
}
.analytics_page .chart_note img {
    width: 16px;
    flex: 0 0 16px;
    margin-top: 1px;
}

/* Gauge boxes (element/Analytics/gauge_box.php). Each variant sets its colours
   through custom properties, used by the icon, the bar and the texts. */

.analytics_page .gauge_box {
    --gauge-color: #d93a2b;
    --gauge-icon-bg: #fbe4e2;
    border: 1px solid #f1f2f2;
    padding: 20px 24px 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: #33363f;
}
.analytics_page .gauge_box.variant_warning {
    --gauge-color: #f2c14e;
    --gauge-icon-bg: #fdf3dc;
}
.analytics_page .gauge_box.variant_info {
    --gauge-color: #7ba5f0;
    --gauge-icon-bg: #e5eefc;
}
.analytics_page .gauge_box.variant_danger {
    --gauge-color: #c62828;
    --gauge-icon-bg: #f6d2d2;
}
/* Critical not performed with at least one task: red box and red texts */
.analytics_page .gauge_box.variant_danger.is_alert {
    background-color: #fdecec;
    border-color: #f2a7a7;
    color: #c62828;
}

/* Same height as the icon, so the percentages line up across boxes with and without it */
.analytics_page .gauge_box_head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    min-height: 52px;
}

.analytics_page .gauge_box_title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0;
    color: inherit;
    margin: 0;
}

.analytics_page .gauge_box_icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background-color: var(--gauge-icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.analytics_page .gauge_box_icon img {
    width: 24px;
    margin: 0;
}

.analytics_page .gauge_box_value {
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1px;
    margin: 10px 0 18px;
}

/* No overflow:hidden: the target mark sticks out above and below the track */
.analytics_page .gauge_box_track {
    position: relative;
    height: 6px;
    border-radius: 3px;
    background-color: #e3e6ee;
}
.analytics_page .gauge_box_bar {
    width: 0;
    max-width: 100%;
    height: 100%;
    border-radius: 3px;
    background-color: var(--gauge-color);
    transition: width 0.3s ease;
}

/* Target: a thin dark mark across the bar */
.analytics_page .gauge_box_target {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 2px;
    margin-left: -1px;
    border-radius: 1px;
    background-color: #33363f;
}

/* Boxes with a target: bar colour and badge follow the reading */
.analytics_page .gauge_box.is_on_target {
    --gauge-color: #3dbb9a;
}
.analytics_page .gauge_box.is_below_target {
    --gauge-color: #e03131;
}

.analytics_page .gauge_box_badge {
    display: none;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.analytics_page .gauge_box.is_on_target .badge_on_target,
.analytics_page .gauge_box.is_below_target .badge_below_target {
    display: inline-flex;
}
.analytics_page .badge_on_target {
    background-color: #dff5ee;
    color: #2a9d7f;
}
.analytics_page .badge_below_target {
    background-color: #fdecec;
    border: 1px solid #e03131;
    color: #e03131;
}
/* Popup over the target badge: shown while the mouse is on the badge or on the
   popup itself, which is a child of the same wrapper */
.analytics_page .gauge_box_badges {
    position: relative;
    flex: 0 0 auto;
    cursor: default;
}
.analytics_page .gauge_box_popup {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 100;
    width: 360px;
    max-width: 80vw;
    /* Transparent bridge between badge and popup, so moving onto it keeps it open */
    padding-top: 8px;
}
.analytics_page .gauge_box_badges:hover .gauge_box_popup {
    display: block;
}
.analytics_page .gauge_box_badges.is_closed .gauge_box_popup {
    display: none;
}
.analytics_page .gauge_box_popup_inner {
    padding: 16px 20px;
    box-shadow: 0 4px 16px rgba(51, 54, 63, 0.15);
    text-transform: none;
}
.analytics_page .gauge_box_popup_head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 16px;
    color: #33363f;
}
.analytics_page .gauge_box_popup_close {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    height: auto;
    line-height: 0;
    cursor: pointer;
}
.analytics_page .gauge_box_popup_close img {
    width: 24px;
    margin: 0;
}
.analytics_page .gauge_box_popup p {
    display: none;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #667085;
}
/* One note at a time: the neutral one over a filtered period, otherwise the verdict */
.analytics_page .gauge_box.is_on_target:not(.is_custom_range) .note_on_target,
.analytics_page
    .gauge_box.is_below_target:not(.is_custom_range)
    .note_below_target,
.analytics_page .gauge_box.is_custom_range .note_custom_range {
    display: block;
}

.analytics_page .badge_info {
    width: 12px;
    height: 12px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font-size: 8px;
    font-style: normal;
    font-weight: 700;
    line-height: 9px;
    text-align: center;
    text-transform: none;
}

.analytics_page .gauge_box_foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    font-size: 13px;
}
.analytics_page .gauge_box_count {
    color: #667085;
}
.analytics_page .gauge_box.is_alert .gauge_box_count {
    color: inherit;
}
.analytics_page .gauge_box_count strong {
    margin-left: 6px;
}
.analytics_page .gauge_box.is_alert .gauge_box_foot,
.analytics_page .gauge_box.is_alert .gauge_box_foot a {
    color: inherit;
}

/* Period filter */

.analytics_page .date_range_filter {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.analytics_page .date_range_toggle {
    background-color: #fff;
    color: #33363f;
    border: 1px solid #f1f2f2;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.analytics_page .date_range_toggle:hover {
    background-color: #fff;
    border-color: #0c72ac;
}
.analytics_page .date_range_toggle img {
    width: 18px;
    margin: 0;
}

.analytics_page .date_range_toggle .chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid #667085;
    border-bottom: 2px solid #667085;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.15s ease;
}
.analytics_page .date_range_toggle[aria-expanded="true"] .chevron {
    transform: rotate(-135deg) translate(-2px, -2px);
}

.analytics_page .date_range_popup {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 999;
    width: 260px;
    padding: 14px 16px;
    box-shadow: 0 4px 16px rgba(51, 54, 63, 0.15);
}
.analytics_page .date_range_popup[hidden] {
    display: none;
}

.analytics_page .date_range_field {
    display: block;
    margin-bottom: 10px;
}
.analytics_page .date_range_field span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #98a2b3;
    margin-bottom: 2px;
}
.analytics_page .date_range_field input {
    width: 100%;
    margin: 0;
}

.analytics_page .date_range_error {
    font-size: 12px;
    color: #e84c4c;
    margin: 0 0 10px;
}
.analytics_page .date_range_error[hidden] {
    display: none;
}

.analytics_page .date_range_actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.analytics_page .date_range_actions .button {
    height: 3rem;
    line-height: 3rem;
    font-size: 1.1rem;
    margin: 0;
}

/* No arrow icon exists in the theme, and one link-arrow is not worth a new asset */
.analytics_page .link_arrow::after {
    content: " \2192";
}

/* Detail pages: info bar under the title (element/Analytics/header.php) */

.analytics_page .analytics_details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 40px;
    padding: 14px 20px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* POI dashboard (templates/Analytics/poi.php) */

.analytics_page .poi_tasks_list table,
.analytics_page table.poi_timeline {
    display: table;
    table-layout: fixed;
    overflow: visible;
    width: 100%;
    margin: 0;
}

.analytics_page .poi_tasks_column {
    display: flex;
    flex-direction: column;
}
.analytics_page .poi_tasks {
    position: relative;
    flex: 1 1 auto;
    min-height: 200px;
}

/* Boxes of the two filtered tables */
.analytics_page .poi_tasks,
.analytics_page #poi_timeline_container {
    border: 1px solid transparent;
}
.analytics_page .poi_tasks.filtered,
.analytics_page #poi_timeline_container.filtered {
    border-color: #2a73ac;
}

.analytics_page .poi_tasks_filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
}
.analytics_page .poi_tasks_filters div.input {
    margin: 0;
    flex: 1 1 120px;
}
.analytics_page .poi_tasks_filters div.input.search {
    flex: 2 1 200px;
}
.analytics_page .poi_tasks_filters input,
.analytics_page .poi_tasks_filters select {
    width: 100%;
    margin: 0;
}

.analytics_page .poi_tasks_list {
    position: absolute;
    inset: 12px 16px;
    overflow-y: auto;
}
.analytics_page .poi_tasks_list th {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: #fff;
}
.analytics_page .poi_tasks_list th,
.analytics_page .poi_tasks_list td {
    padding: 6px 10px;
    font-size: 13px;
}
.analytics_page .poi_tasks_list col.col_status {
    width: 70px;
}
.analytics_page .poi_tasks_list col.col_date {
    width: 130px;
}
.analytics_page .poi_tasks_list col.col_critic {
    width: 80px;
}
.analytics_page .poi_tasks_list col.col_history {
    width: 80px;
}

/* General maintenance situation */

.analytics_page .poi_donut {
    height: 220px;
}
.analytics_page .poi_donut_center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    line-height: 1.2;
    pointer-events: none;
}
.analytics_page .poi_donut_caption {
    display: block;
    font-size: 12px;
    color: #667085;
}
.analytics_page .poi_donut_value strong {
    font-size: 34px;
    font-weight: 700;
    color: #33363f;
}
.analytics_page .poi_donut_value small {
    font-size: 12px;
    color: #667085;
}

.analytics_page .poi_donut_foot {
    text-align: center;
}
.analytics_page .poi_todo {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    background-color: #e8f0fb;
    font-size: 13px;
    font-weight: 600;
    color: #33363f;
}
.analytics_page .poi_donut_legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    font-size: 12px;
    color: #667085;
}
.analytics_page .poi_donut_legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

/* POI Maintenance situation */

.analytics_page .poi_section_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 20px 0 10px;
}
.analytics_page .poi_section_head .chart_section_title {
    margin: 0 0 0 2px;
}
.analytics_page .poi_period {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
}
.analytics_page .poi_period select {
    width: auto;
    margin: 0;
}

/* The box ends where the side menu */
.analytics_page #poi_timeline_container {
    padding: 8px 16px;
    margin-bottom: 0;
}
.analytics_page #poi_timeline_container.loading {
    opacity: 0.5;
}
.analytics_page .poi_timeline_error {
    margin: 10px 0;
    color: #e84c4c;
}

.analytics_page .poi_timeline_scroll {
    overflow-y: auto;
}
.analytics_page table.poi_timeline {
    margin-bottom: 0;
}
.analytics_page table.poi_timeline thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #fff;
}

.analytics_page table.poi_timeline th,
.analytics_page table.poi_timeline td {
    padding: 8px 10px;
    font-size: 13px;
}
.analytics_page table.poi_timeline col.col_task {
    width: 20%;
}
.analytics_page table.poi_timeline col.col_date {
    width: 11%;
}
.analytics_page table.poi_timeline col.col_badge {
    width: 12%;
}
/* No side padding, so the grid of the header and of the rows start at the same x */
.analytics_page table.poi_timeline .timeline_cell {
    padding-left: 0;
    padding-right: 0;
}

.analytics_page .timeline_grid {
    display: grid;
}
.analytics_page .timeline_grid > span {
    min-width: 0;
    border-left: 1px solid #f1f2f2;
}
.analytics_page .timeline_labels > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    color: #667085;
}

.analytics_page .timeline_track {
    position: relative;
    height: 24px;
}
/* Reaches over the cell padding, so the grid lines run through the rows */
.analytics_page .timeline_track .timeline_grid {
    position: absolute;
    top: -8px;
    bottom: -8px;
    left: 0;
    right: 0;
}

.analytics_page .timeline_bar {
    position: absolute;
    top: 50%;
    height: 2px;
    margin-top: -1px;
    background-color: var(--tl-line);
}
.analytics_page .timeline_bar.has_dot::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -7px;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border-radius: 50%;
    background-color: inherit;
}

.analytics_page .status_badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    color: #33363f;
    background-color: var(--tl-bg);
}

/* Same colours as span.status on /ships/maintenance; the lines a shade darker, or they fade on white */
.analytics_page .tl_never {
    --tl-bg: #e7e9ec;
    --tl-line: #98a2b3;
}
.analytics_page .tl_ok {
    --tl-bg: #b5eaca;
    --tl-line: #6fcf97;
}
.analytics_page .tl_skipped,
.analytics_page .tl_needed {
    --tl-bg: #fae633;
    --tl-line: #f2c14e;
}
.analytics_page .tl_needed_critical {
    --tl-bg: #f7998c;
    --tl-line: #e8685a;
}

/* Analytics end */

/* Responsive */

@media (min-width: 769px) {
}

/* Responsive end */
