:root {
    /*--primary-color: #f5b800;*/
    /*--bs-primary-rgb: 245, 184, 0;*/
    /*--secondary-color: #000;*/
    /*--bs-secondary-rgb: 62, 164, 227;*/
    --background-color: #f8f9fa;
    --text-color: #000;
    --bs-danger-rgb: 175, 12, 0;
    --font-family-1: 'Poppins', sans-serif;
    --font-family-2: 'Poppins', sans-serif;
    --font-size: 14px;
    --font-weight: 400;
    --bs-btn-color: #000;
    --bs-body-font-size: 0.9rem;
    --bs-link-color: #af0c00;
    --bs-link-color-rgb: 175, 12, 0;
    --bs-link-hover-color: #8f0a00;
    --bs-link-hover-color-rgb: 196, 149, 0;
}
.dropdown-menu{
    --bs-dropdown-link-active-bg: #333333;
}
.btn-primary {
  --bs-btn-bg: #f5b800;
  --bs-btn-border-color: #f5b800;
  --bs-btn-hover-color: #000; /* Still ensuring good contrast */
  --bs-btn-hover-bg: #d9a500; /* Slightly darker for hover effect */
  --bs-btn-hover-border-color: #c49500;
  --bs-btn-focus-shadow-rgb: 245, 184, 0;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: #c49500;
  --bs-btn-active-border-color: #b08a00;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #000;
  --bs-btn-disabled-bg: #f5b800;
  --bs-btn-disabled-border-color: #f5b800;
  
}
.btn-secondary {
    --bs-secondary-rgb: 62, 164, 227; /* new color base */
    --bs-btn-color: #fff;
    --bs-btn-bg: rgb(var(--bs-secondary-rgb));
    --bs-btn-border-color: rgb(var(--bs-secondary-rgb));
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgb(52, 144, 207); /* slightly darker for hover */
    --bs-btn-hover-border-color: rgb(48, 134, 194);
    --bs-btn-focus-shadow-rgb: var(--bs-secondary-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: rgb(48, 134, 194);
    --bs-btn-active-border-color: rgb(45, 125, 182);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: rgb(var(--bs-secondary-rgb));
    --bs-btn-disabled-border-color: rgb(var(--bs-secondary-rgb));
}
.btn-danger {
    --bs-btn-color: #fff;
    --bs-btn-bg: #af0c00;
    --bs-btn-border-color: #af0c00;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #8f0a00; /* darker hover */
    --bs-btn-hover-border-color: #7a0800; /* even darker */
    --bs-btn-focus-shadow-rgb: 175, 12, 0; /* RGB for #af0c00 */
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #7a0800;
    --bs-btn-active-border-color: #660700;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #af0c00;
    --bs-btn-disabled-border-color: #af0c00;
}
.btn-outline-danger{
    --bs-btn-hover-bg: #af0c00;
}

html, body, main {
    scroll-behavior: smooth;
}
body {
    overflow-x: hidden;
    font-family: var(--font-family-1);
  }
.font-family-1 {
    font-family: var(--font-family-1);
  }
h1, h2, h3, h4, h5, h6, .font-family-2 {
    font-family: var(--font-family-2);
  }
.body-font-size{
    font-size: var(--bs-body-font-size);
}
.input-group-text {
    padding: .375rem .25rem;
}
.gradient-icon {
  background: linear-gradient(180deg, #ff9992 0%, #af0c00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
  .sidebar {
    height: calc(100vh - 84px);
    /* background-color: #f8f9fa; */
    padding-top: 2rem;
    overflow-y: auto;
  }
  .ad_main_box{
    height: calc(100vh - 84px);
    overflow-y: auto;
  }
  #navbarVerticalCollapse {
    height: calc(100% - 176px);
    padding-bottom: 20px;
    overflow-y: auto;
    }
  main {
    height: calc(100vh - 84px);
    overflow-y: auto;
    }
  .sidebar .nav-link {
    color: #000;
    position: relative;
    font-size: 14px;
    background-color: #EEEEEE;
  }
  .sidebar .nav-link i {
    font-size: 15px;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
}
.sidebar .position-sticky {
    /*padding-bottom: 6rem;*/
}
  .topbar {
    height: 60px;
    background-color: #fff;
    /* border-bottom: 1px solid #dee2e6; */
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .profile-dropdown {
    position: relative;
  }
  .dropdown-menu {
    right: 0;
    left: auto;
  }
  #navbarVerticalCollapse .nav-item .nav-link span {
    width: calc(100% - 35px);
}
  
  main {
    background-color: #F1F1F1;
}

.select2-container--default .select2-selection--single {
    border: none;
    border-radius: 0;
    height: 41px;
}
.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 41px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 41px;
}
.hml_list {
    list-style-type: none;
}
.circle_box {
    width: 12px;
    height: 12px;
}
.dashboard_table .table th,
.dashboard_table .table td {
    border-top: none !important;
    border-bottom: none !important;
    border-left: 1px solid #B1B1B1;
    border-right: 1px solid #B1B1B1;
}
.dashboard_table .table td.text-success,
.dashboard_table .table td.text-warning,
.dashboard_table .table td.text-danger,
.dashboard_table .table td.text-primary{
    border-left: 3px solid;
}

.dashboard_table .table {
    border-collapse: collapse;
    border-top: 1px solid #DBDBDB;
    border-bottom: 1px solid #DBDBDB;
}
.dashboard_table .table th,
.total-defects-container .table th:first-child{
    --bs-table-striped-bg: #fff !important;
}
.total-defects-container tr td:not(:last-child) {
    border-right: 1px solid #eee !important;
}
.score_text {
    font-size: 56px;
}
.progress-wrap {
    position: relative;
    width: 60px;
    height: 60px;
}
.progress-ring {
    transform: rotate(-90deg);
}
.bg {
    stroke: #E3E3E3;
}
.arc {
    stroke-linecap: round;
    stroke-dasharray: 157.08;
    stroke-dashoffset: 157.08;
    transition: stroke-dashoffset 0.6s ease;
}
.arc:not([stroke]) {
    stroke: #FFC700;
}
circle {
    fill: none;
    stroke-width: 5;
}
.percent-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    pointer-events: none;
}

/* loader */
.loader {
  width: 40px;
  aspect-ratio: 1;
  color: var(--primary-color);
  position: relative;
  background: radial-gradient(10px, currentColor 94%, #0000);
  margin-bottom: 18px
}

.loader:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 50%;
  background: radial-gradient(9px at bottom right, #0000 94%, currentColor) top left, radial-gradient(9px at bottom left, #0000 94%, currentColor) top right, radial-gradient(9px at top right, #0000 94%, currentColor) bottom left, radial-gradient(9px at top left, #0000 94%, currentColor) bottom right;
  background-size: 20px 20px;
  background-repeat: no-repeat;
  animation: l18 1.5s infinite cubic-bezier(.3, 1, 0, 1)
}

@keyframes l18 {
  33% {
    top: -10px;
    right: -10px;
    bottom: -10px;
    left: -10px;
    transform: rotate(0)
  }

  66% {
    top: -10px;
    right: -10px;
    bottom: -10px;
    left: -10px;
    transform: rotate(90deg)
  }

  to {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: rotate(90deg)
  }
}

.payment_message {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background-color: #000000a1;
  z-index: 1060;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column
}

/* Loader */
select.select_year + .select2-container {
    width: 150px !important;
}
.topbar .btn-group a {
    font-size: 13px;
}

/* observation table */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    /*margin: 10px 0px !important;*/
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    border-color: transparent !important;
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); */
}
.custom-table thead {
    color: #fff;
    text-align: center;
}
table thead tr, th {
    border-color: #fff !important;
}
.custom-table thead th {
    padding: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}
.bg_dark {
    background-color: #000000;
}
.sub-header {
    background-color: #2f80ed;
    color: white;
}
.custom-table thead {
    color: #fff;
    text-align: center;
}
.custom-table td:first-child {
    font-weight: bold;
    width: 200px;
    white-space: nowrap;
    padding: 7px 16px;
    font-size: 12px;
    border-color: #fff;
}
.custom-table td:not(:first-child) {
    background-color: #e6e7e8 !important;
    border-color: #fff;
    padding: 7px 16px;
}
.custom-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 20px;
}
.custom-table tbody tr:last-child td:last-child {
    border-radius: 0 0 20px 0;
}

.gallery_images_box {
    position: relative;
}
.gallery_images_inner {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    position: relative;
    overflow: hidden;
    border-radius: 30px;
}
.gallery_images_box img {
    width: calc(50% - 3px);
    object-fit: cover;
    height: 210px;
    overflow: hidden;
}
.priority_rating {
    position: absolute;
    bottom: -14px;
    right: 0;
    left: 0;
    z-index: 9;
    background-color: #009444;
    width: 90px;
    border-radius: 50%;
    height: 90px;
    margin: 0 auto;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
}
.priority_rating_inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}
span.rating_name {
    font-size: 10px;
    line-height: 12px;
    padding: 0 8px;
    font-weight: 800;
}
span.rating_count {
    font-size: 35px;
    font-weight: 700;
    line-height: 1;
}

table.below-custom-table {
    width: 100%;
    padding: 0px;
    margin-top: 4px;
}
table.below-custom-table thead th {
    padding: 0px;
    font-size: 11px;
    width: 0px;
    text-align: center;
}
table.below-custom-table tbody td{
    padding: 6px 10px;
    font-size: 11px;
    text-align: left;
}
/* observation table */
.copyright {
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
    background-color: #ffffff;
    margin: 0 -15px;
    box-shadow: 0 0 10px -1px #00000038;
    position: relative;
    z-index: 0;
}
#navbarVerticalCollapse .dropdown-item{
    display: flex;
    /*align-items: center;*/
    justify-content: space-between;
}
#navbarVerticalCollapse .dropdown-item .void_list_title {
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    position: relative;
    top: 2px;
    font-size: 12px;
}
#navbarVerticalCollapse #submenu3 .dropdown-item .void_list_title {
    max-width: 200px;
}
.defect_count_main > span {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}
.defect_count_main > span.warning_icon{
    font-size: 14px;
    width: auto;
}
#submenu1, #submenu2, #submenu3 {
    max-height: 200px;
    overflow-y: auto;
}
.closed_tooltip.small-xs{
    font-size: 10px;
}

.toggle-icon {
    cursor: pointer;
    font-weight: 500;
    font-size: 18px;
    border: 1px solid #9f9f9f;
    background-color: #c7c8c9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 3px;
    padding: 1px 2px;
    padding-bottom: 0;
}
.observation-row {
    display: none;
}
.observation-row.active {
    display: table-row;
}
.dashboard_main_box{
    /*--bs-modal-zindex: 1056;*/
    /*z-index: var(--bs-modal-zindex);*/
}
.scan_img_upper_title,
.scan_img_code {
    background-color: #16365d;
    color: #fff;
    font-size: 11.5px;
    padding: 3px 0;
    border-radius: 15px 15px 0 0;
    position: relative;
    top: 1px;
    text-align: center;
}
.scan_img_code {
    border-radius: 0 0 15px 15px;
    top: -1px;
}
.closed_tooltip .tooltip-inner{
    text-align: left;
}
.close_badge .fas {
    color: #af0c00;
    position: relative;
    left: 4px;
    top: 1px;
}
.defect_quick_view span:not(.live-indicator) {
    font-size: 10px;
    margin-right: 3px;
    padding: 2px 3px;
    padding-left: 5px;
}
.defect_quick_view span span.badge {
    font-size: 10px;
    line-height: 10px;
    padding: 0;
    border-radius: 30px;
    margin-left: 5px;
    position: relative;
    top: 0px;
    font-weight: 400;
    margin-right: 0;
    width: 18px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.void_data_not_found {
    position: absolute;
    background-color: #ffffffd9;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    font-weight: 700;
    border-radius: var(--bs-border-radius);
}
.void_data_not_found span {
  display: inline-block;
  animation: pulseText 3s ease-in-out infinite;
}

@keyframes pulseText {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.9;
  }
}

.vessel_list_ul li.list-group-item{
    display: flex;
}
.search_result {
    border: 1px solid #ddd;
    position: absolute;
    background-color: #fff;
    width: 100%;
    top: 43px;
    left: 0;
    z-index: 10;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    /*overflow-y: auto;*/
    padding: 10px 10px;
    /*max-height: 250px;*/
    display: none;
}
.search_result .list-group{
    max-height: 200px;
    overflow-y: scroll;
}
.search_result ul li{
    transition: 0.2s all;
}
.search_result ul li:hover{
    background: #E3E3E3;
    background: linear-gradient(90deg, rgba(227, 227, 227, 1) 0%, rgba(245, 245, 245, 1) 50%, rgba(227, 227, 227, 1) 100%);
}
.dashboard_alert_box .table-responsive {
    height: 132px;
    overflow-y: auto;
}

.live-indicator {
    display: block;
  width: 12px;
  height: 12px;
  background-color: rgba(var(--bs-success-rgb),var(--bs-text-opacity));
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(var(--bs-success-rgb), 0.4);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--bs-success-rgb), 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(var(--bs-success-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--bs-success-rgb), 0);
  }
}

.video_ad_inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgb(0 0 0 / 40%);
    width: 100%;
    height: 100%;
    border-radius: 7px;
}


/* utm report css*/
.utm-grid-wrap {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 0;
}
.grid-container {
    display: flex;
    width: 100%;
}
.side-label {
    --cell-size: 75px;
    --row-count: 5;
    background: #AF0C00;
    color: #fff;
    padding: 12px;
    margin-right: 0;
    border-radius: 0 11px 11px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(var(--cell-size) * var(--row-count) + 0px);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-weight: 500;
    letter-spacing: 0.6px;
}
table.utm-grid {
    width: calc(100% - 45.66px);
    margin-top: -2px;
}

table.utm-grid tr th{
    position: relative;
}
table.utm-grid tr:not(:last-child) td:not(:last-child) {
    border: 0.5px solid #C2C2C2;
    background-color: #fff;
    text-align: center;
    padding: 0;
    height: 75px;
}
table.utm-grid thead th span {
    position: absolute;
    left: 0;
    transform: translate(-50%, -23px);
}
.utm_table_box table tr td.row-label {
    text-align: left;
    position: relative;
}
.utm_table_box table tr td:last-child span {
    position: absolute;
    left: 0;
    top: 2px;
    transform: translate(30px, -50%);
}
.utm_thickness_table tr td {
    padding-top: 0.91rem;
    padding-bottom: 0.91rem;
}
/* utm report css*/


@media only screen and (min-width: 768px){
    .vessel_inner .vessel_search {
        max-width: 800px;
    }
}
@media only screen and (min-width: 1200px){
    .sidebar{
        width: 270px;
    }
    main.col-xl-10 {
        width: calc(100% - 270px);
    }
}
@media only screen and (max-width: 1460px){
    .dashboard_table tr th {
        font-size: 13px;
    }
}
@media only screen and (max-width: 1100px){
    .void_data_table table.table:not(.custom-table):not(.below-table-img) {
        width: 1300px;
    }
}
@media only screen and (max-width: 767px){
html, body{
    height: 100%;
}
.h-min-100{
    height: calc(100% - 55px);
}
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -310px;
    z-index: 1031;
    max-width: 300px;
    background-color: #fff;
    margin-top: 0 !important;
    padding-top: 10px;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
    height: 100%;
    transition: 0.4s left;
}
#navbarVerticalCollapse {
    height: calc(100% - 232px);
}
.mobile_copyright{
    font-size: 11px;
}
}
@media only screen and (max-width: 575px){
    #defectChart,
    #defectChart1{
        width: 100%;
    }
    .vessel_title {
        width: 100%;
    }
    span.defect_quick_view > span:first-child {
        width: 100%;
    }
    .list-group-item {
        --bs-list-group-item-padding-x: 0.5rem;
    }
}
@media only screen and (max-width: 400px){
.defect_quick_view span:not(.search_vessel_name):not(:first-child) {
    width: calc(50% - 3px);
    justify-content: space-between;
}
.vessel_title {
    font-weight: 500;
}
}
@media only screen and (max-width: 375px){
.topbar > div:not(.topbar-right) img {
    width: 200px;
}
}

@media only screen and (max-width: 1199px) and (min-width: 768px){
    #navbarVerticalCollapse .dropdown-item .void_list_title {
        max-width: 82px;
    }
}

.form-check-input:checked {
    background-color: #af0c00 !important;
    border-color: #af0c00 !important;
}



.grok-container-title {
    padding-bottom: 20px;
    display: flex;
    align-items: center !important;
    flex-wrap: wrap;
}

.vessel_head_container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding-bottom: 15px;
}

@media (max-width: 768px) {
    .grok-container-title {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .heading_box {
        justify-content: center !important;
    }
}