html {
  min-height: 100%;
  position: relative;
}

body {
  font-family: 'Roboto', sans-serif;
}

a {
  color: #37499B;
  text-decoration: none;
}

.dropdown-menu > li > a {
  padding: 3px 10px; /* Override Bootstrap padding */
}

.dropdown-submenu > a:after {
  content: "\f054";
  font: var(--fa-font-solid);
  float: right;
  font-size: 0.875em;
  margin-top: 5px;
}

.avatar-menu-container {
  width: 100%;
  padding: 5px 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.avatar-menu-container li {
  width: 100%;
  display: block;
  text-align: left;
  margin-bottom: 5px;
}

.avatar-menu-container li span,
.avatar-menu-container li a {
  display: block;
  padding: 8px 15px;
  width: 100%;
  box-sizing: border-box;
}

.avatar-menu-container li a.selection-btn {
  display: flex;
  align-items: center;
}

/* Extra large screens */
@media (min-width: 1400px) {
  .container,
  .navigation-container {
    width: 95%;
    max-width: 1800px;
  }

  .avatar-menu-container {
    min-width: 200px;
  }

  .navbar-cowalert .container {
    display: flex;
  }

  #navbar {
    width: 95%;
    display: flex;
    justify-content: space-between;
  }

  #navigation-menu {
    flex: 1;
    display: flex;
    flex-wrap: nowrap;
  }

  .navbar-right {
    margin: 10px 0 0 0;
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  #left-site-div {
    max-width: 65%;
  }

  #right-site-div {
    float: right;
  }

  #search-icon {
    margin: -3px 10px -1px -5px;
  }

  .dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -0.4px;
    -webkit-border-radius: 0 6px 6px 6px;
    -moz-border-radius: 0 6px 6px;
    border-radius: 0 6px 6px 6px;
    min-width: 190px;
  }

  .dropdown:hover > .dropdown-menu {
    display: block;
  }

  .by-group-field-block-with-errors {
    width: 25%;
    display: inline-table;
  }

  #user-button {
    padding: 0;
    display: flex;
    align-items: center;
    margin-top: 0;
  }

  #login-footer-container {
    display: flex;
    justify-content: center;
  }

  #footer-container {
    display: flex;
    justify-content: space-between;
    margin: 0 40px 0 25px;
  }
}

/* Extra large screens */
@media (min-width: 1599px) and (max-width: 1800px) {
  #navigation-menu > li > a {
    padding-left: 7px;
    padding-right: 7px;
    font-size: 17px;
  }

  .navbar-cowalert {
    font-size: 15px;
  }

  #navbar {
    width: 100%;
  }
}

/* Large desktop screens */
@media (min-width: 1449px) and (max-width: 1598px) {
  .container,
  .navigation-container {
    width: 98%;
  }

  .navbar-cowalert .container {
    display: flex;
  }

  #navbar {
    width: 98%;
    display: flex;
    justify-content: space-between;
  }

  #navigation-menu {
    flex: 1;
    display: flex;
    flex-wrap: nowrap;
  }

  .navbar-right {
    margin: 10px 0 0 0;
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  /* Slightly reduce font size for this breakpoint */
  .navbar-cowalert {
    font-size: 15px;
  }

  #navigation-menu > li > a {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 16px;
  }

  #left-site-div {
    max-width: 65%;
  }

  #right-site-div {
    float: right;
  }

  #search-icon {
    margin: -3px 10px -1px -5px;
  }

  .dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -0.4px;
    border-radius: 0 6px 6px 6px;
    min-width: 190px;
  }

  .dropdown:hover > .dropdown-menu {
    display: block;
  }

  .by-group-field-block-with-errors {
    width: 25%;
    display: inline-table;
  }

  #user-button {
    padding: 0;
    top: -2.77px;
  }

  #login-footer-container {
    display: flex;
    justify-content: center;
  }

  #footer-container {
    display: flex;
    justify-content: space-between;
    margin: 0 40px 0 25px;
  }
}

/* Medium screens - introduce a new breakpoint */
@media (min-width: 1349px) and (max-width: 1448px) {
  .container,
  .navigation-container {
    width: 100%;
  }

  .navbar-cowalert .container {
    display: flex;
  }

  #navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  #navigation-menu {
    flex: 1;
    display: flex;
    flex-wrap: nowrap;
  }

  .navbar-right {
    margin: 10px 0 0 0;
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  /* Further reduce font size and padding */
  .navbar-cowalert {
    font-size: 14px;
  }

  #navigation-menu > li > a {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 14px;
  }

  #search-icon {
    margin: -3px 5px -1px -5px;
  }

  #left-site-div {
    max-width: 65%;
  }

  #right-site-div {
    float: right;
  }

  .dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -0.4px;
    border-radius: 0 6px 6px 6px;
    min-width: 190px;
  }

  .dropdown:hover > .dropdown-menu {
    display: block;
  }

  .dashboard_indicator {
    height: 3vw;
    line-height: 3vw;
    width: 3vw;
    font-size: 100%;
  }

  .contact-row .col-md-6 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }

  .contact-row .col-md-10 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 70%;
    flex: 0 0 70%;
    max-width: 70%;
  }

  .contact-row .col-md-2 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 30%;
    flex: 0 0 30%;
    max-width: 30%;
  }

  .btn-support {
    float: right;
    padding: 12px 16px;
  }
}

/* Tablet and mobile - collapsed navbar */
@media (max-width: 1349px) {
  /* Avatar menu container styles */
  .avatar-menu-container {
    width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .avatar-menu-container li {
    width: 100% !important;
    text-align: center !important;
  }

  /* Prevent dropdown from being cut off at top on small screens */
  @media (max-height: 500px) {
    .avatar-dropdown .avatar-menu.dropdown-menu {
      max-height: 80vh;
      overflow-y: auto;
    }
  }

  /* Better position the avatar circle in collapsed mode */
  .avatar-circle {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navbar.navbar-cowalert {
    height: 80px;
  }

  .form-search input {
    max-width: 100% !important;
  }

  #search-icon {
    margin: 10px 0px 5px 5px;
  }

  .heading-cowalert {
    z-index: 3 !important;
  }

  /* Collapsed navbar styles */
  .navbar-nav .open .dropdown-menu {
    position: static;
    float: none;
    width: auto;
    margin-top: 0;
    background-color: transparent;
    border: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
  }

  .navbar-nav .open .dropdown-menu > li * {
    line-height: 20px;
  }

  .dropdown-submenu > a:after {
    content: "\f078";
  }

  .navbar-header {
    float: none;
  }

  .navbar-left,
  .navbar-right {
    float: none !important;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-collapse {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .navbar-fixed-top {
    border-width: 0 0 1px;
    top: 0;
  }

  .navbar-form {
    margin: 0 0 7.5px 0;
  }

  .navbar-collapse.collapse {
    display: none !important;
    max-height: 500px !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
  }

  .navbar-nav {
    float: none !important;
    margin: 0 5px 0 0;
  }

  .navbar-nav > li {
    float: none;
  }

  .navbar-nav > li > a {
    padding-bottom: 10px;
    padding-top: 10px;
  }

  #navbar {
    background-color: white;
    border-bottom: solid 2px #ddd;
    left: 0;
    margin-top: -2px;
    padding: 0 0 0 0;
    padding-bottom: 10px;
    position: absolute;
    right: 0;
    text-align: center;
  }

  .collapse.in {
    display: block !important;
  }

  .dropdown-menu {
    width: 100%;
    text-align: center;
  }

  .navbar-right {
    width: 100%;
    float: none !important;
    margin: 10px auto !important;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }

  .navbar-right > li {
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto;
    margin: 0 15px 10px;
    vertical-align: middle;
  }

  .navbar-right > li.dropdown {
    height: auto;
  }

  #search-icon,
  .dropdown > a > img#selected_timezone {
    vertical-align: middle;
    margin: 0;
  }

  .navbar-right .dropdown-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    top: 100%;
  }

  #search-popup {
    text-align: center;
  }

  #search-popup form {
    display: block;
    text-align: center;
    margin: 0 auto;
  }

  #button-area {
    text-align: left !important;
  }

  #inclusion-checkbox {
    margin-top: 25px;
  }

  #selectors {
    width: 280px;
  }

  #navigation-menu {
    margin: 0 auto;
  }

  .contact-button {
    margin: auto !important;
  }

  .admin-table {
    display: grid;
    justify-content: center;
  }

  #navigation-menu li:not(.dropdown, .dropdown-submenu) {
    display: flex;
    justify-content: center;
  }

  #navigation-menu li.dropdown,
  #navigation-menu li.dropdown-submenu {
    text-align: center;
  }

  #navigation-menu li.dropdown {
    margin-bottom: 10px;
  }

  .navbar-right li {
    text-align-last: center;
  }

  .dropdown-submenu > .dropdown-menu {
    position: static;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    border: none;
    box-shadow: none;
  }

  .dashboard_indicator {
    height: 9vw;
    line-height: 9vw;
    width: 9vw;
  }

  #diagnosis-by-foot-form-modal-message,
  #extend-pause-period-form-modal-message {
    font-size: large;
    margin-left: 15px;
    margin-bottom: 10px;
  }

  .contact-row .col-md-6 {
    width: 100%;
  }

  #map {
    height: 450px;
  }

  .btn-support {
    float: left;
    padding: 12px 16px;
  }
}

/* Additional optimizations for smaller mobile screens */
@media (max-width: 640px) {
  .avatar-menu-container {
    max-height: 70vh;
    overflow-y: auto;
  }

  .navbar-right > li.dropdown.avatar-dropdown {
    position: relative !important;
    padding-top: 10px !important;
  }

  .dashboard_indicator {
    height: 13vw;
    line-height: 13vw;
    width: 13vw;
  }

  #bulk-buttons {
    overflow-x: scroll;
  }

  .navbar.navbar-cowalert {
    height: auto;
    min-height: 74px;
  }

  .navbar-brand {
    padding: 10px 5px;
  }
}

@media (min-width: 641px) {
  iframe#intro,
  iframe#heat,
  iframe#lying,
  iframe#group_lying,
  iframe#icescore {
    width: 100%;
    height: 315px;
  }
}

/* Ensure proper alignment of navbar elements */
#navigation-menu {
  margin-top: 12px;
}

.navbar-right {
  display: flex;
  align-items: center;
  margin-top: 0;
}

.navbar-right > li {
  display: flex;
  align-items: center;
  height: 74px; /* Same as navbar height */
}

/* Optimize avatar display */
.avatar-dropdown {
  display: flex;
  align-items: center;
}

.avatar-circle {
  margin-top: 10px;
}

.navbar-cowalert {
  color: #999;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 800;
  background-color: white;
  left: 0;
  position: fixed;
  right: 0;
  z-index: 4;
  border: 2px solid lightgrey;
  border-radius: 0;
  height: 74px;
  min-height: 74px;
}

.navbar-cowalert .navbar-toggle .icon-bar {
  background-color: #999;
}

.navbar-cowalert .navbar-toggle {
  border-color: #999;
}

.navbar-cowalert .navbar-nav > li > a {
  color: #999;
}

.navbar-cowalert .navbar-brand {
  padding: 15px 5px;
}

.nav > li > a:focus,
.nav > li > a:hover {
  background-color: transparent;
  color: #666363;
}

/* Login classes */

#forgotPassModal {
  margin: auto;
  margin-top: 10%;
  max-width: 600px;
  display: None;
}

/* Navbar search fields*/

.form-search input {
  max-width: 150px;
  padding-left: 26px;
}

form.form-search {
  padding: 0 5px;
  text-align-last: left;
  display: inline-block;
  position: relative;
}

form.form-search:before {
  background-position: -48px 0;
  content: "\e003";
  display: block;
  font-family: "Glyphicons Halflings";
  height: 14px;
  left: 10px;
  opacity: 0.5;
  position: absolute;
  top: 6px;
  width: 14px;
  z-index: 1;
}

.search-clear {
  bottom: 0;
  color: #ccc;
  cursor: pointer;
  font-size: 14px;
  height: 14px;
  margin: auto;
  position: absolute;
  right: 20px;
  top: 0;
}

.heading-cowalert {
  background-color: #37499B;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
  left: 0;
  padding-bottom: 2px;
  position: absolute;
  right: 0;
  z-index: 2;
  width: 100%;
}

.heading-cowalert a {
  color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6,
label,
.label,
.btn {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  color: inherit;
}

.teal {
  color: #A2A9D6;
}

.green {
  color: #95c11f;
}

.red {
  color: #E0251C;
}

.panel-ids-dairy {
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  margin: 10px;
}

.panel-ids-dairy,
.panel-ids-dairy > table > tbody > tr > td {
  text-align: left;
  vertical-align: middle !important;
}

#fertility_module th:last-child,
#fertility_module td:last-child {
  text-align: center;
}

.panel-ids-dairy > .panel-body {
  border-bottom: 1px #ddd solid;
}

.panel-ids-dairy > .panel-body:last-child {
  border-bottom: 0;
}

.panel-ids-dairy > .panel-body:nth-child(even) {
  background-color: #f9f9f9;
}

.dash-elem table thead tr th:first-child,
.dash-elem table tbody td:first-child {
  padding-left: 15px;
}

#body {
  margin-bottom: 60px;
  padding-bottom: 10px;
  position: relative;
}

.cell-center {
  display: table-cell;
  text-align: center;
  vertical-align: middle !important;
}

.whatsapp-ico {
  fill: white;
  width: 18px;
  background-color: #4dc247;
  border-radius: 50%;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  margin-left: 10px;
  z-index: 10;
  vertical-align: top;
}

.phone-ico {
  fill: white;
  width: 16px;
  border-radius: 33%;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 10;
  vertical-align: middle;
}

.whatsapp-ico:hover,
.phone-ico:hover {
  box-shadow: 2px 2px 11px rgba(0, 0, 0, 0.7);
}

footer {
  background-color: #1e1d1c;
  bottom: 0;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  position: absolute;
  width: 100%;
}

#login-footer {
  padding: 5px;
}

#footer {
  padding: 20px 20px 0 20px;
}

footer a:hover,
footer a:visited,
footer a:focus {
  color: white;
  text-decoration: none;
}

footer a {
  color: white;
  text-decoration: none;
}

#confirm-account-form {
  margin: 0 auto;
  max-width: 400px;
  min-height: 500px;
}

.hoverGray:hover {
  background-color: #d3d3d3 !important;
  cursor: pointer;
}

.messages {
  margin: 0;
  padding: 0;
  text-align: center;
  width: 100%;
}

.messages li {
  -moz-border-radius: 5px;
  border-radius: 5px;
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 100%;
  list-style-type: none;
  margin: 0 auto 10px auto;
  padding: 0.25em;
  position: relative;
  text-align: center;
  text-decoration: none;
  width: 100%;
  max-width: 358px;
}

.messages li:last-child {
  margin-bottom: 0;
}

.messages li:hover {
  cursor: pointer;
}

.message-success {
  background: #289b38;
  border: 1px solid transparent;
  color: #ffffff;
}

.message-error {
  background: #f02e2e;
  border: 1px solid #941f1f;
  color: #ffffff;
}

.message-info {
  background: #eee;
  border: 1px solid #ddd;
  color: #777;
}

.lbl-lastseen {
  font-size: 100%;
}

.lbl_alert {
  font-size: 100%;
}

.table-last-column-bold td:last-child {
  font-size: x-large;
  font-weight: bold;
  padding: 0 10%;
  text-align: right;
  width: 50%;
}

.cowalert_modal {
  background-color: #f3f3f3;
  border: 1px solid #ccc;
  height: 250px;
  margin: auto;
  padding-left: 50px;
  padding-right: 50px;
  width: 600px;
}

.exit_modal_button {
  position: absolute;
  right: 10px;
  top: 10px;
}

.dashboard_indicator_link:hover {
  text-decoration: none;
}

.dashboard_indicator_container {
  display: inline-flex;
  margin: 0 auto;
  padding: 2px;
}

.dashboard_indicator_link {
  display: flex;
}

.dashboard_indicator {
  border: 2px solid transparent;
  border-radius: 50%;
  color: white;
  float: left;
  font-size: 150%;
  font-weight: bold;
  height: 61px;
  line-height: 56px;
  margin: 3px;
  text-align: center;
  width: 64px;
}

.smaller-badge {
  padding: 5px 8px;
  border-radius: 14px;
}

.larger-badge {
  padding: 5px 7px;
  height: 27px;
}

#qubefaults.dashboard_indicator {
  background-color: #E0251C;
  cursor: pointer;
}

#new_badge.dashboard_indicator {
  background-color: #E0251C;
}

#inspect_badge.dashboard_indicator {
  background-color: #f0ad4e;
}

#diagnosed_badge.dashboard_indicator {
  background-color: blue;
}

#noAlert_badge.dashboard_indicator {
  background-color: green;
}

.significant-change {
  background-color: #EA685E !important;
}

.high-deviation {
  background-color: #f0ad4e !important;
}

.significant-change-label {
  background-color: #EA685E !important;
}

.ok-label {
  background-color: #42ca32 !important;
}

.high-deviation-label {
  background-color: #f0ad4e !important;
}

.health-alerts .dashboard_indicator {
  cursor: pointer;
}

select:disabled,
input:read-only {
  background-color: #eee;
}

.legend .badge {
  margin: 0.5em;
}

.font-large {
  font-size: 75% !important;
}

.highcharts-series .mobility_score_0,
.mobility_score_0 .highcharts-point,
.mobility_score_0.badge {
  background-color: #289b38;
  color: white;
  fill: #289b38;
}

.highcharts-series .mobility_score_1,
.mobility_score_1 .highcharts-point,
.mobility_score_1.badge {
  background-color: #95c11f;
  color: white;
  fill: #95c11f;
}

.highcharts-series .mobility_score_2,
.mobility_score_2 .highcharts-point,
.mobility_score_2.badge {
  background-color: #f4a5a6;
  color: white;
  fill: #f4a5a6;
}

.highcharts-series .mobility_score_3,
.mobility_score_3 .highcharts-point,
.mobility_score_3.badge {
  background-color: #E0251C;
  color: white;
  fill: #E0251C;
}

.mobility_score_unknown {
  color: #909090;
}

.mobility_score_0 {
  color: #289b38;
}

.mobility_score_1 {
  color: #95c11f;
}

.mobility_score_2 {
  color: #f0ad4e;
}

.mobility_score_3 {
  color: #E0251C;
}

.mobility_stayed_sound {
  fill: #289b38;
}

.mobility_recovered {
  fill: #A2A9D6;
}

.mobility_newly_lame {
  fill: #a6a6a6;
}

.mobility_stayed_lame {
  fill: #c55910;
}

.mobility_unknown {
  fill: #020202;
}

.highcharts-tooltip {
  width: 110%;
}

.highcharts-tooltip .tooltip_name {
  padding-right: 5px;
}

.highcharts-tooltip .tooltip_value {
  font-style: normal !important;
}

.date-search {
  background: white right no-repeat;
  min-width: 103px;
  padding-right: 0;
  width: 50%;
}

#dynamics_graph {
  height: 400px;
  width: 100%;
}

/* styles applied on classes that start with "html.no-touch-device" will not affect touch devices */
.dropdown-submenu {
  position: relative;
}

.dropdown-menu > li > div {
  padding: 3px 20px;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

.dropdown ul li.dropdown-submenu:hover a.dropdown-link,
#navigation-menu li:hover a.dropdown-toggle {
  background: #eeeeee;
}

/* styles applied on classes that start with "html.touch-device" will be implemented only on touch devices. */
.navbar-nav .dropdown-menu .multi-level {
  position: static;
  float: none;
  width: auto;
  margin-top: 0;
  background-color: transparent;
  border: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
}

ul.dropdown-menu {
  height: auto;
  border-radius: 4px !important;
}

#confirm_modal .modal-body pre {
  margin: auto auto;
  width: 94%;
}

button.update {
  border-radius: 8px;
  border: 1px solid transparent;
  background-color: #EA685E;
  font-weight: 600;
  padding: 10px 10px 10px 0;
  width: 210px;
  transition: all 0.5s;
  float: right;
  position: relative;
  margin-top: 10px;
  overflow: auto;
  z-index: 0;
}

button.update span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;
  color: white;
}

button.update span::after {
  content: "→";
  position: absolute;
  top: 1px;
  right: -15px;
  transition: 0.5s;
}

button.update:hover span {
  padding-right: 25px;
}

button.update:hover span:after {
  right: 0;
}

.table-hover.footable caption {
  margin-top: 1em;
  font-size: x-large;
  font-weight: bold;
  color: #595959;
}

.table-hover.footable {
  border-collapse: collapse;
  margin: auto;
  max-width: 100%;
  min-width: 300px;
}

#location-view-config-container .row:nth-child(2) {
  margin-top: 50px;
}

#migrated_user_notification {
  background-color: #E0251C;
}

#stale_data_notification {
  background-color: #E0251C;
  position: fixed;
  left: 0;
  right: 0;
  padding: 4px;
  line-height: 30px;
  z-index: 2;
  color: white;
  font-weight: bold;
  text-align: center;
}

#environment_info {
  text-transform: uppercase;
}

#banner_container {
  font-family: 'Roboto', sans-serif;
  width: 100%;
  text-align: center;
  display: block;
  line-height: 32px;
  color: white;
  position: fixed;
  background-color: #777;
  z-index: 4;
}

.PRODUCTION {
  background-color: #37499B;
}
.DEVELOPMENT {
  background-color: #289b38;
}
.PREVIEW.production-database {
  background-color: #37499B;
}
.PREVIEW.cloud-test-database {
  background-color: #289b38;
}
.BETA {
  background-color: #A2A9D6;
}

.hide-until-page-load {
  visibility: hidden;
  flex-grow: 1;
}

#emailHeatsModal,
#emailModal,
#emailDynamicListModal {
  background-color: #f3f3f3;
  border: 1px solid #ccc;
  height: 25em;
  width: 40em;
  margin: auto;
  position: fixed;
}

label[for="id_email"],
label[for="user-notes"] {
  vertical-align: top;
}

.inline-div {
  display: table-cell;
}

.inline-div:nth-child(2) {
  padding-left: 40%;
  display: inline;
}

#empty-inspection {
  background: #eca4b5;
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 5px;
  border: solid 1.1px #cc1228;
  display: inline-block;
  box-shadow: 1px 1px 1px #aaaaaa;
}

.tooltip-dot {
  height: 10px;
  width: 10px;
  background-color: white;
  border-radius: 50%;
  display: inline-block;
}
.Lameness {
  background-color: rgb(255, 0, 0);
}
.Attention {
  background-color: rgb(248, 148, 6);
}
.Healthy {
  background-color: rgb(0, 100, 0);
}
.Unevaluated {
  background-color: rgb(128, 128, 128);
}

.disabled-btn {
  opacity: 0.65;
  pointer-events: none;
}

.pointer {
  cursor: pointer;
}

.detail-spinner {
  display: none;
  vertical-align: middle;
  margin-left: 5px;
}

.load-spinner {
  display: none;
  vertical-align: middle;
  margin-left: 5px;
}

.load-spinner3 {
  margin-top: 40%;
  text-align: center;
}

#extraContent .modal-header {
  padding: 2%;
}

#extraContent .modal-body {
  height: 80%;
  overflow: scroll;
}

#extraContent .modal-dialog .modal-content .modal-body {
  overflow: auto;
  max-height: 80vh;
}

#extraContent .modal-footer {
  width: 100%;
  bottom: 0;
}

.qubemodal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: min-content;
  border: 1px solid #ccc;
  background-color: #f3f3f3;
}

.modal-error {
  padding-top: 2%;
  padding-left: 2%;
  display: none;
}

#empty-list {
  color: #3175af;
}

#editAlertForm td,
#editAlertForm th {
  border: none;
}

#editAlertForm {
  width: 500px;
}

textarea#user-notes,
textarea#vet-list-notes {
  height: 90px;
}

#change_cow_comment_modal div.modal-dialog {
  width: 500px;
}

#location-msg {
  font-size: 23px;
  display: block-inline;
  vertical-align: text-bottom;
}

#location-alive {
  font-size: 1em;
}

#div_foot_trimmer_list_alerts h4,
#div_vet_list_alerts h4 {
  margin-top: 40px;
}

#button-area {
  margin: 20px 0 30px 0;
  text-align: right;
}

#diagnoseByFootForm label {
  font-size: larger;
  display: block;
  margin-top: 5px;
}

#inline-sub-form {
  display: flex;
  justify-content: space-between;
}

.field-block-with-errors {
  width: 48%;
}

.form-control.datetimepicker {
  z-index: 1 !important;
}

#supportFormModal {
  background-color: #f3f3f3;
  border: 1px solid #ccc;
  height: 43em;
  width: 50em;
  margin: auto;
  position: fixed;
}

#supportFormModal .modal-body {
  margin-bottom: -40px;
  width: 40em;
}

.control-label .asteriskField {
  display: none;
}

#cowgroupfeedbacklist {
  margin-left: 15px;
  margin-top: 100px;
  height: 360px;
  overflow-y: auto;
  overflow-wrap: break-word;
}

#cowgroupfeedbacklist {
  margin-left: 15px;
  margin-top: 100px;
  height: 360px;
  overflow-y: auto;
  overflow-wrap: break-word;
}

.help {
  font-size: 1em;
  float: right;
  color: #265a88;
  cursor: pointer;
}

.helptextBulk {
  visibility: hidden;
  width: 355px;
  left: 111%;
  top: 17px;
  background-color: #555555c7;
  color: #fff;
  border-radius: 6px;
  padding: 8px 8px;
  position: absolute;
  z-index: 1;
  margin-left: -80px;
}

textarea#id_subjects:required:focus {
  border: 1px solid #E0251C;
  outline: none;
}

.fieldWrapper div {
  margin-bottom: 2px;
}

.fieldWrapper {
  margin-bottom: 10px;
}

.empty-fields,
.errorlist.nonfield {
  color: white;
  font-weight: 500;
  font-size: 12px;
  position: relative;
  background: #EA685E;
  padding: 4px;
  display: inline-block;
  box-shadow: 1px 1px 1px #aaaaaa;
}

.empty-fields:after,
#empty-fields:before {
  bottom: 100%;
  left: 15%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}

.empty-fields:after {
  border-color: rgba(136, 183, 213, 0);
  border-bottom-color: #EA685E;
  border-width: 10px;
  margin-left: -10px;
}

.empty-fields:before {
  border-color: rgba(194, 225, 245, 0);
  border-bottom-color: #EA685E;
  border-width: 17px;
  margin-left: -17px;
}

.flex-col {
  flex: 1;
  padding: 1em;
}

.fa-stethoscope {
  font-weight: bold;
  font-size: 16px;
}

.idsadmin-alternate-table tbody tr:hover {
  background: #37499B;
  color: #fff;
}

.idsadmin-alternate-table tr.odd {
  background: #c8c8c8;
}

.idsadmin-alternate-table tr.even {
  background: #ffffff;
}

.idsadmin-alternate-table thead {
  background: #37499B;
  color: #fff;
}

.idsadmin-download-matrix {
  font-size: 12px;
}

.idsadmin-download-matrix tbody tr:hover {
  background: #fbd749;
}

.idsadmin-download-matrix tr.odd {
  background: #c8c8c8;
}

.idsadmin-download-matrix tr.even {
  background: #ffffff;
}

.idsadmin-download-matrix thead {
  background: #37499B;
  color: #fff;
}

.idsadmin-alternate-btn {
  background: #37499B;
  color: #fff;
}

.idsadmin-alternate-btn:hover {
  background: #fff;
  color: #37499B;
}

.table-wrapper {
  position: relative;
}

.table-scroll {
  height: 75vh;
  overflow: auto;
}

.table-scroll table {
  width: 100%;
}

.beta-ribbon {
  position: absolute;
  right: -5px;
  top: -5px;
  z-index: 1;
  overflow: hidden;
  width: 75px;
  height: 75px;
  text-align: right;
}

.beta-ribbon span {
  font-size: 10px;
  font-weight: bold;
  color: #ffffff;
  text-transform: uppercase;
  text-align: center;
  line-height: 20px;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  width: 100px;
  display: block;
  background: #95c11f;
  box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1);
  position: absolute;
  top: 19px;
  right: -21px;
  padding-top: 2px;
}

.beta-ribbon span::before {
  content: "";
  position: absolute;
  left: 0px;
  top: 100%;
  z-index: -1;
  border-left: 3px solid #333;
  border-right: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-top: 3px solid #333;
}

.beta-ribbon span::after {
  content: "";
  position: absolute;
  right: 0px;
  top: 100%;
  z-index: -1;
  border-left: 3px solid transparent;
  border-right: 3px solid #333;
  border-bottom: 3px solid transparent;
  border-top: 3px solid #333;
}

#disclaimer-box {
  color: white;
  background-color: #95c11f;
  border-radius: 5px;
  padding: 10px;
}

#settings-disclaimer-div {
  display: inline-block;
  margin-top: 10px;
}

#settings-disclaimer-box {
  color: white;
  background-color: #95c11f;
  border-radius: 5px;
  padding: 1px 0 10px 10px;
  width: 100%;
}

div.fertility_dashboard_kpi_container {
  margin: 0 auto;
  min-width: 200px;
  margin-bottom: -180px;
  width: 100%;
  height: 100%;
}

.highlight_bulk_button_off {
  background: #dbdbdb;
  color: #37499B;
  padding: 5px;
  text-align: center;
}

.highlight_bulk_button_on {
  background: #37499B;
  color: #fff;
  padding: 5px;
  text-align: center;
}

i.glyphicon-edit.disabled {
  cursor: none;
  opacity: 0.5;
}

#arl_summary_tbl th:last-child,
#arl_summary_tbl td:last-child {
  text-align: center;
}

#overlay {
  background: whitesmoke;
  color: #666666;
  height: 360px;
  width: 100%;
  z-index: 5000;
  float: left;
  text-align: center;
  padding-top: 25%;
  opacity: 0.8;
  margin-top: 100px;
  margin-left: 15px;
}

.spinner {
  margin: 0 auto;
  height: 64px;
  width: 64px;
  animation: rotate 0.8s infinite linear;
  border: 5px solid firebrick;
  border-right-color: transparent;
  border-radius: 50%;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.erroneous_field {
  border: 1px solid #EA685E;
}

.modal #extraContent {
  display: None;
}

.modal-error {
  display: None;
}

.form-controls-right {
  float: right;
}

#slider-range {
  height: 0.3em;
}

#slider-range .ui-slider-range {
  background: #37499B;
}

#slider-range .ui-slider-handle {
  background: #37499B;
  height: 1em;
  width: 0.3em;
  margin-left: -0.3em;
  padding-left: 0.5em;
}

#cowsFilterModal {
  top: 20%;
  left: 30%;
  height: 25%;
  width: 35%;
  background: white;
  padding: 15px;
}

#cowsFilterModal #modal-body {
  height: 35%;
}

input[name="actual_date"] {
  width: 100%;
}

/* Login button styles moved to login-new.css */

#btn-selectors li {
  margin: 5px;
}

.disabled-icon-btn {
  opacity: 0.65;
  pointer-events: none;
  color: grey;
}

#custom-close-btn {
  line-height: 1;
  background: none;
  border: 0;
}

table#downloadMatrixTable tfoot {
  background: #37499B;
  font-weight: bolder;
  color: white;
}

thead#elementDetails {
  background: #37499B;
  color: white;
}

.dynamicTable {
  display: flex;
  overflow: scroll;
  align-content: center;
  flex-direction: column;
}

.lameness-overwrite {
  margin: 2em;
}

.performanceTab {
  overflow: scroll;
  max-height: 75vh;
  max-width: 75vw;
}

ul.multiselect-container {
  width: 100%;
}

#selected_timezone {
  margin-top: -6px;
  width: 30px;
  filter: contrast(15%);
}

#selected_timezone:hover {
  filter: contrast(40%);
}

.dropdown-menu > li > a.no-permission {
  color: #939393;
  cursor: default;
  font-weight: 400;
}

.no-permission {
  color: #939393;
  cursor: default;
}

.additionalInfo {
  display: grid;
  grid-template-columns: 20% 20% 20% 20% 20%;
  margin-left: 3%;
  margin-right: 3%;
}

.additionalInfoTable {
  display: grid;
  grid-template-columns: 20% 20% 20% 20% 20%;
}

#tz_overlay {
  background: #ffffff;
  color: black;
  position: fixed;
  height: 100%;
  width: 100%;
  z-index: 5000;
  top: 0;
  left: 0;
  float: left;
  text-align: center;
  padding-top: 25%;
  opacity: 0.8;
  font-size: large;
}

#utc-disclaimer-box {
  color: white;
  background-color: #95c11f;
  border-radius: 5px;
  padding: 3px;
  text-align: center;
  margin-bottom: 20px;
}

.estrus-buttons {
  margin-top: 15px;
}

#div_id_subjects_choice_holstein {
  min-width: 250px;
}

#div_id_subjects_choice_holstein .open > .dropdown-menu {
  height: 300px;
  width: 300px;
  overflow: auto;
}

.dropdown-menu.open {
  max-height: 320px;
  max-width: 310px;
}

.dropdown-menu.inner {
  max-height: 300px !important;
  max-width: 300px;
}

/* Scrollbar CSS styling below is only supported by webkit browsers so it will not be picked up by Firefox */
.dropdown-menu::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.dropdown-menu::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  border-radius: 11px;
  background-color: #f5f5f5;
}

.dropdown-menu::-webkit-scrollbar {
  width: 10px;
  background-color: #f5f5f5;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  border-radius: 11px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #555;
}

#qube-search {
  -moz-appearance: textfield; /* Firefox */
}

#qube-search::-webkit-outer-spin-button,
#qube-search::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

#id_diagnosis_notes {
  max-width: -moz-available; /* WebKit-based browsers will ignore this. */
  max-width: -webkit-fill-available; /* Mozilla-based browsers will ignore this. */
  max-width: fill-available;
}

.custom_date_field {
  border: 1px solid #ecf0f1;
  background: white url(//media.cowalert.com/img/calendar.gif) 95% no-repeat;
  padding: 10px;
  height: 37px;
  width: 130px;
  margin-left: 5px;
}

.custom_date_field,
focus {
  box-shadow: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
}

#by_group_form,
#herd_average_form {
  margin: 15px 0 30px 0;
}

#by_group_form label,
#herd_average_form label {
  font-weight: 800;
  margin-top: 10px;
}

#by_group_form #div_id_start_date,
#by_group_form #div_id_end_date,
#herd_average_form #div_id_start_date_herd,
#herd_average_form #div_id_end_date_herd {
  display: flex;
}

#location-h3 {
  font-size: 20px;
}

#location-h3 span:empty {
  max-width: -moz-available; /* WebKit-based browsers will ignore this. */
  max-width: -webkit-fill-available; /* Mozilla-based browsers will ignore this. */
  max-width: fill-available;
}

.grayscale {
  -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
  filter: grayscale(100%);
}

.ui-multiselect-menu {
  font-size: 85%;
}

.main-container {
  display: grid;
  /* grid-template-rows: 800px calc(100vh - 800px); */
  grid-template-areas: "filter cows";
}

.gallery-view {
  grid-area: cows;
  min-width: 900px;
}

.corrected-rfids::-webkit-scrollbar-track,
.unrecognised-cows::-webkit-scrollbar-track,
.not-read-corrected-rfids::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  background-color: #f5f5f5;
}

.corrected-rfids::-webkit-scrollbar,
.unrecognised-cows::-webkit-scrollbar,
.not-read-corrected-rfids::-webkit-scrollbar {
  width: 12px;
  background-color: #f5f5f5;
}

.corrected-rfids::-webkit-scrollbar-thumb,
.unrecognised-cows::-webkit-scrollbar-thumb,
.not-read-corrected-rfids::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #ddd;
}

.gallery-view-wrapper {
  display: flex;
  flex-wrap: wrap;
  margin: auto;
}

.gallery-view-wrapper:nth-child(2) {
  padding-bottom: 100px;
}

.o-wrapper {
  padding: 10px;
  background-color: #ddd;
  grid-area: filter;
  height: 100vh;
}

.corrected-rfids,
.unrecognised-cows,
.not-read-corrected-rfids {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  border-top: 2px solid #012025;
  overflow: auto;
  height: 450px;
}

.corrected-record,
.unrecognised-record {
  flex: 0 0 33.333333%;
  display: inline-grid;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-top: 1rem;
  align-content: flex-start;
}

.corrected-record-not-read {
  flex: 0 0 33.333333%;
  margin-top: 4%;
}

.not-read-image {
  width: 20%;
  height: 100%;
}

.gallery-view h3 {
  margin-left: 10px;
}

.milking-tab-form-heading {
  background: #37499B;
  color: white;
  text-align-last: center;
}

#milking-tab-form {
  margin: auto;
  text-align: center;
  font-weight: bold;
}

#milking-tab-form tbody {
  cursor: pointer;
}

#id-verify-wrapper {
  margin: auto;
  position: relative;
}

#id-verify-loading-spinner {
  display: none;
  position: absolute;
  left: 50%;
  top: -50px;
  transform: translateX(-50%);
  text-align: center;
}

#reportrange-iv {
  position: absolute;
  right: 0;
  top: -40px;
}

#selected-date-range {
  position: absolute;
  left: 0;
  top: -40px;
  font-weight: bold;
}

.jetson-row {
  background-color: #e9ecef !important;
}

.milking-combination-end {
  border-bottom: 2px solid #035060; /* Thicker bottom border to separate each date and milking combination */
}

.detailLink-CIDV {
  justify-self: center;
}

.image-zoom-div {
  height: inherit;
  width: inherit;
  overflow: hidden;
  box-sizing: border-box;
  max-height: 380px;
}

.image-zoom {
  transform: scale(0.7) translate(-40%, -55%);
}

/* Kennetsideheads Farm */
.image-zoom-685 {
  transform: scale(0.7) translate(-50%, -50%) !important;
}

/* Cefn Maesoglen */
.image-zoom-684 {
  transform: scale(0.7) translate(-45%, -65%) !important;
}

/* South Acre */
.image-zoom-682 {
  transform: scale(0.7) translate(-45%, -55%) !important;
}

/* Hanenberg */
.image-zoom-681 {
  transform: scale(0.7) translate(-55%, -70%) !important;
}

/* Smalmstown */
.image-zoom-680 {
  transform: scale(0.7) translate(-30%, -40%) !important;
}

/* Lower Leighton */
.image-zoom-679 {
  transform: scale(0.7) translate(-40%, -55%) !important;
}

/* VDK Van der Kooi Family Farm */
.image-zoom-676 {
  transform: scale(1.5) translate(-25%, -10%) !important;
}

/* Meldrum Farm */
.image-zoom-675 {
  transform: scale(1.5) translate(-25%, -10%) !important;
}

/* Hunter Ridge Farm */
.image-zoom-674 {
  transform: scale(0.7) translate(-40%, -50%) !important;
}
/* Server#19 Race1 Left Camera */
.image-zoom-674-19 {
  transform: scale(1.6) translate(12%, -42%) !important;
}
.image-zoom-out-674-19 {
  transform: translateY(-52%) !important;
}
/* Server#18 Race2 Right Camera */
.image-zoom-674-18 {
  transform: scale(1.6) translate(5%, -34%) !important;
}
.image-zoom-out-674-18 {
  transform: translateY(-45%) !important;
}

/* Lea Manor Farm */
.image-zoom-673 {
  transform: scale(0.7) translate(-40%, -50%) !important;
}

/* Littleton Farm */
.image-zoom-354 {
  transform: scale(1.2) translate(-20%, -15%) !important;
}

.image-mouse-zoom-div {
  position: relative;
  outline: 2px solid #000;
  overflow: hidden;
}

.image-mouse-zoom-div-child {
  position: relative;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  touch-action: none;
  user-select: none;
  max-height: 500px;
}

.image-mouse-zoom-div-child img {
  display: block;
  max-height: 100%;
  max-width: 100%;
}

.wrapper {
  padding-left: 8%;
}

.task-row {
  border-top: solid 2px #e1e4e5;
  display: flex;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 20px;
}

/* ---------- SCORER TASK OVERVIEW RESPONSIVE STYLES ---------- */
/* These styles only apply to the scorer task overview page */

/* Target only the scorer task overview page */
body:has(.scorer-task-overview-container) .task-row,
.scorer-task-overview-container .task-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border-top: solid 2px #e1e4e5;
  margin-bottom: 1rem;
}

/* Mobile Breakpoint (768px and below) - only for scorer task overview */
@media (max-width: 768px) {
  .scorer-task-overview-container .task-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto auto !important;
    gap: 1rem !important;
    padding: 1rem !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    margin-bottom: 1rem !important;
  }

  /* Top row: Image and Info side by side */
  .scorer-task-overview-container .task-row > div:first-child {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: auto !important;
    margin-right: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .scorer-task-overview-container .task-row .list-view:nth-child(2) {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: auto !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  /* Middle row: Progress bar (full width) */
  .scorer-task-overview-container .task-row .list-view:nth-child(3) {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: auto !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }

  /* Bottom row: Jobs table/report (full width) */
  .scorer-task-overview-container .task-row .list-view:nth-child(4) {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    width: 100% !important;
    min-width: auto !important;
    text-align: center !important;
  }

  .scorer-task-overview-container .progress_numbers {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
    height: auto !important;
    width: 100% !important;
  }

  .scorer-task-overview-container .progress_numbers > div:first-child {
    text-align: center !important;
    width: 100% !important;
  }

  .scorer-task-overview-container .progress {
    width: 100% !important;
    max-width: 300px !important;
  }
}

/* Small Mobile Breakpoint (480px and below) - only for scorer task overview */
@media (max-width: 480px) {
  .scorer-task-overview-container .task-row {
    padding: 0.5rem !important;
    gap: 0.5rem !important;
  }

  .scorer-task-overview-container .task-row .list-view span {
    font-size: 0.9rem !important;
  }

  .scorer-task-overview-container .task-row .list-view span:first-child {
    font-size: 1.1rem !important;
  }

  .scorer-task-overview-container .progress_numbers > div:first-child {
    font-size: 0.9rem !important;
  }
}

/* BCS Task List Responsive Styles */
@media (max-width: 768px) {
  .bcs-task-list-container .task-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 1rem !important;
    padding: 1rem !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    margin-bottom: 1rem !important;
  }

  /* Top row: Image and Info (50% each) */
  .bcs-task-list-container .task-row > div:first-child {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: auto !important;
    margin-right: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .bcs-task-list-container .task-row .list-view:nth-child(2) {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: auto !important;
    text-align: right !important;
    display: flex !important;
    align-items: center !important;
  }

  /* Bottom row: Progress and Buttons (50% each) */
  .bcs-task-list-container .task-row .list-view:nth-child(3) {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: auto !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .bcs-task-list-container .task-row .list-view:nth-child(4) {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: auto !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .bcs-task-list-container .progress_numbers {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
    height: auto !important;
    width: 100% !important;
  }

  .bcs-task-list-container .progress_numbers > div:first-child {
    text-align: center !important;
    width: 100% !important;
  }

  .bcs-task-list-container .progress {
    width: 100% !important;
    max-width: 200px !important;
    margin-right: 0 !important;
  }

  /* Make buttons smaller and stack them */
  .bcs-task-list-container .task-row .list-view:nth-child(4) button {
    display: block !important;
    margin: 0.25rem auto !important;
    min-width: 60px !important;
    font-size: 0.8rem !important;
    padding: 0.25rem 0.5rem !important;
  }
}

/* Small Mobile Breakpoint (480px and below) - for BCS task list */
@media (max-width: 480px) {
  .bcs-task-list-container .task-row {
    padding: 0.5rem !important;
    gap: 0.5rem !important;
  }

  .bcs-task-list-container .task-row .list-view span {
    font-size: 0.8rem !important;
  }

  .bcs-task-list-container .task-row .list-view span:first-child {
    font-size: 1rem !important;
  }

  .bcs-task-list-container .progress_numbers > div:first-child {
    font-size: 0.8rem !important;
  }

  /* Make image smaller on very small screens */
  .bcs-task-list-container .task-row > div:first-child img {
    width: 150px !important;
  }
}

/* BCS Scoring Overview Responsive Styles */
@media (max-width: 768px) {
  /* Make tables responsive */
  .bcs-scoring-overview-container .table-responsive {
    overflow-x: auto;
  }

  .bcs-scoring-overview-container .table-responsive table {
    min-width: 600px;
  }

  .bcs-scoring-overview-container .table-responsive th,
  .bcs-scoring-overview-container .table-responsive td {
    white-space: nowrap;
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  /* Make tables more compact on very small screens */
  .bcs-scoring-overview-container .table-responsive th,
  .bcs-scoring-overview-container .table-responsive td {
    padding: 0.25rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .month-nav-item {
    font-size: 1.5rem;
    gap: 0.75rem;
  }
  
  .month-nav-item i {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .month-nav-item {
    font-size: 1.5rem;
    gap: 1rem;
  }
  
  .month-nav-item i {
    font-size: 0.8rem;
  }
}

.first-row {
  border-top-color: transparent;
  padding-top: 0;
  padding-bottom: 8px;
}

.list-view span {
  display: block;
}

.list-view button {
  display: block;
  margin: 0 auto 10px auto;
  min-width: 88px;
}

.list-view button:first-child {
  margin-bottom: 10px;
  margin-top: 10%;
}

.version {
  display: inline-block;
  line-height: 0px;
  border: solid 1px #ccc;
  border-radius: 50%;
}

.version span {
  display: block;
  padding-top: 50%;
  padding-bottom: 50%;
  margin-left: 8px;
  margin-right: 8px;
}

.tree-list {
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.progress-numbers {
  display: flex;
  font-size: 14px;
}

.task_creation_fields-with-errors {
  width: 60%;
  margin: 0 auto;
}

#task-creation-form {
  border: solid 2px #ddd;
  padding: 20px;
  width: 80%;
  margin: 0 auto;
}

#task-summary-form {
  border: solid 2px #ddd;
  padding: 20px;
  margin: 0 auto;
}

.ticks {
  display: flex;
  justify-content: space-between;
  margin: 0 6px;
}

.tick {
  position: relative;
  display: flex;
  justify-content: center;
  width: 1px;
  background: gray;
  height: 5px;
  line-height: 80px;
  margin-bottom: 20px;
  cursor: pointer;
}

.long-stick {
  height: 30px;
}

.scoring-icon {
  cursor: pointer;
  margin: 10px;
}

.edit-icon {
  color: #337ab7;
  float: right;
  margin: 20px 0 0 10px;
  cursor: pointer;
}

.edit-field {
  height: auto;
  margin: -3px auto;
  padding: 2px;
}

.scorer-list-icon {
  color: #337ab7;
  vertical-align: bottom;
  cursor: pointer;
}

#task_summary_tbl tbody {
  text-align: center;
}

#task_summary_tbl {
  margin: 0 auto;
}

.random-images-overlay {
  text-align-last: center;
  margin-top: 10%;
}

div.progress-bar {
  color: lightgrey;
  font-weight: bolder;
}

/* ---------- PROGRESS BAR OVERRIDES ---------- */
/* Override Bootstrap progress bar colors with rebranded IDS Blue */
.progress-bar {
  background-color: var(--primary) !important; /* IDS Blue (#37499B) */
  background-image: -webkit-linear-gradient(top, var(--primary) 0, var(--primary-dark) 100%) !important;
  background-image: -o-linear-gradient(top, var(--primary) 0, var(--primary-dark) 100%) !important;
  background-image: -webkit-gradient(linear, left top, left bottom, from(var(--primary)), to(var(--primary-dark))) !important;
  background-image: linear-gradient(to bottom, var(--primary) 0, var(--primary-dark) 100%) !important;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff37499B', endColorstr='#ff26316B', GradientType=0) !important;
  background-repeat: repeat-x;
  float: left;
  width: 0;
  height: 100%;
  font-size: 12px;
  line-height: 20px;
  color: #fff;
  text-align: center;
  -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);
  -webkit-transition: width .6s ease;
  -o-transition: width .6s ease;
  transition: width .6s ease;
}

/* Striped progress bar override */
.progress-bar-striped {
  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent) !important;
  background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent) !important;
  background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent) !important;
  -webkit-background-size: 40px 40px;
  background-size: 40px 40px;
}

/* Combined striped progress bar override */
.progress-bar-striped, 
.progress-striped .progress-bar {
  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent) !important;
  background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent) !important;
  background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent) !important;
  -webkit-background-size: 40px 40px;
  background-size: 40px 40px;
}

/* Specific override for your BCS progress bars to ensure they use the new colors */
.bcs-progress-bar {
  background-color: var(--primary) !important;
  background-image: -webkit-linear-gradient(top, var(--primary) 0, var(--primary-dark) 100%) !important;
  background-image: -o-linear-gradient(top, var(--primary) 0, var(--primary-dark) 100%) !important;
  background-image: -webkit-gradient(linear, left top, left bottom, from(var(--primary)), to(var(--primary-dark))) !important;
  background-image: linear-gradient(to bottom, var(--primary) 0, var(--primary-dark) 100%) !important;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff37499B', endColorstr='#ff26316B', GradientType=0) !important;
}

label[for="id_employee"] {
  padding-bottom: 20px;
}

.dark-mode {
  background: #444;
  color: white;
}

.active-icon {
  color: #E0251C;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  margin: 10px 0;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 16px;
  background: #6B7CC7;
  border-radius: 1px;
  border: 0.2px solid #010101;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  border: 1px solid #000000;
  height: 36px;
  width: 16px;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  margin-top: -10px;
}

input[type="range"]:focus::-webkit-slider-thumb {
  border: 1px solid #053a5f;
  outline: 3px solid #053a5f;
  outline-offset: 0.125rem;
}

input[type="range"]::-moz-range-track {
  height: 16px;
  background-color: #6B7CC7;
  border-radius: 1px;
  border: 0.2px solid #010101;
}

input[type="range"]::-moz-range-thumb {
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  border: 1px solid #000000;
  height: 36px;
  width: 16px;
  border-radius: 10px;
  background-color: #ffffff;
  cursor: pointer;
  margin-top: -10px;
}

input[type="range"]:focus::-moz-range-thumb {
  border: 1px solid #053a5f;
  outline: 3px solid #053a5f;
  outline-offset: 0.125rem;
}

.btn-primary {
  transition: all 0.2s ease;
  background: linear-gradient(135deg, #37499B 0%, #37499B 100%);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open .dropdown-toggle.btn-primary {
  background: linear-gradient(135deg, #37499B 0%, #37499B 100%);
  color: #fff !important;
}

.btn-primary:disabled {
  background: linear-gradient(135deg, #37499B 0%, #37499B 100%);
  border-color: none;
}

#ids-logo-dash {
  margin-top: -9px;
  margin-left: 7px;
}

#site-jump-div {
  display: inline-flex;
  align-items: center;
  margin-bottom: -5px;
}

#site-jump-div div button {
  font-size: 12px;
}

#site-jump-div .dropdown-menu {
  right: 0;
  left: unset;
}

/* ---------- DROPDOWN MENU OVERRIDES ---------- */
/* Override Bootstrap dropdown active state with rebranded IDS Blue */
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:focus,
.dropdown-menu > .active > a:hover {
  background-color: var(--primary) !important; /* IDS Blue (#37499B) */
  background-image: -o-linear-gradient(top, var(--primary) 0, var(--primary-dark) 100%) !important;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff37499B', endColorstr='#ff26316B', GradientType=0) !important;
}

/* Also override any other active states that might be used */
.dropdown-menu > li > a.active,
.dropdown-menu > li > a.active:focus,
.dropdown-menu > li > a.active:hover {
  background-color: var(--primary) !important;
  background-image: -o-linear-gradient(top, var(--primary) 0, var(--primary-dark) 100%) !important;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff37499B', endColorstr='#ff26316B', GradientType=0) !important;
}

/* Specific override for the site-jump dropdown to ensure it works */
#site-jump-div .dropdown-menu > .active > a,
#site-jump-div .dropdown-menu > .active > a:focus,
#site-jump-div .dropdown-menu > .active > a:hover {
  background-color: var(--primary) !important;
  background-image: -o-linear-gradient(top, var(--primary) 0, var(--primary-dark) 100%) !important;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff37499B', endColorstr='#ff26316B', GradientType=0) !important;
}

#left-site-div {
  float: left;
  padding: 0px 30px 10px 30px;
}

#right-site-div {
  padding: 17px 30px 0px 30px;
}

.pagination > .active > a,
.pagination > .active > a:focus,
.pagination > .active > a:hover,
.pagination > .active > span,
.pagination > .active > span:focus,
.pagination > .active > span:hover {
  background-color: #37499B !important;
  border-color: #37499B !important;
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:focus,
.nav-pills > li.active > a:hover {
  background-color: #37499B !important;
}

.label-info {
  background-color: #A2A9D6 !important;
}

.label-success {
  background-color: #95c11f !important;
}

.edit-loc-ico {
  font-size: 20px;
  vertical-align: bottom;
}

#inspection_list {
  width: 500px;
}

#inspection_list td {
  padding: 1px;
}

.info-row {
  margin: 0 auto;
  width: 70%;
  padding-top: 20px;
}

#filter-title {
  position: absolute;
  top: 100%;
}

#load_vet_list_spinner,
#load_foot_trimmer_list_spinner,
#load_lameness_diagnosis_spinner {
  display: none;
  vertical-align: middle;
  margin-left: 5px;
}

.avatar-circle {
  background-color: #6B7CC7;
  color: white;
  border-radius: 50%;
  height: 50px;
  width: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 0;
}

.avatar-initials {
  font-size: 23px;
  line-height: 1;
}

.avatar-menu li span {
  padding: 5px 15px;
}

.avatar-menu li a {
  padding: 10px 15px;
}

.contact-button {
  max-width: 212.22px;
  cursor: pointer;
  margin: 4px 0 0 11px;
  color: white !important;
  padding: 10px 30px !important;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;  
  /* Glassmorphism effect with red palette */
  background: linear-gradient(135deg, 
      rgba(224, 37, 28, 0.9) 0%, 
      rgba(224, 37, 28, 0.7) 50%, 
      rgba(224, 37, 28, 0.8) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, 
      rgba(224, 37, 28, 1) 0%, 
      rgba(234, 104, 94, 0.9) 50%, 
      rgba(224, 37, 28, 0.9) 100%
  );
}

#chevron-user-menu {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  background: #999;
  border-radius: 50%;
  width: 19px;
  height: 19px;
  margin: 0;
}

.fa.heading-icon {
  font-size: 1.5em;
  margin-top: 4px;
}

.no-gutters > .col,
.no-gutters > [class*="col-"] {
  padding-right: 0;
  padding-left: 0;
}

.contact-form-section {
  padding: 3rem;
  background: #e8edf0;
}

.map-section {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
}

#map {
  min-height: 300px;
  width: 100%;
  position: relative;
  background-color: rgb(229, 227, 223);
}

.contact-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 30px auto 30px auto;
}

.contactForm label {
  color: #000;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
}

.contactForm .controls input,
.contactForm .controls select {
  height: 44px;
  font-size: medium;
}

.contactForm .form-group {
  margin-bottom: 2rem;
}

.contactForm .contact-row div {
  width: 100%;
}

#search-icon {
  font-size: 28px;
  color: darkgrey;
}

#search-popup {
  padding: 11px;
}

.disabled-rows table tr {
  background-color: #dddddd;
  pointer-events: none;
  width: 100%;
}

#pass_match_err {
  display: none;
  color: #E0251C;
}

#len,
#lower,
#upper,
#number,
#special {
  color: #E0251C;
}

#notification_banner {
  position: absolute;
  left: 0;
  right: 0;
  padding: 8px;
  line-height: 25px;
  z-index: 2;
  text-align: center;
  font-size: 15px;
}

#notification_banner a {
  color: inherit;
}

.toastr-center {
  position: fixed;
  top: 21%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Common styles for Inputs used by jqGrid formatters */
input[type="image"][data-action] {
  height: auto;
  background-color: unset;
}

input[type="image"][data-action="view-history"],
input[type="image"][data-action="ignore-alert"],
input[type="image"][data-action="add-to-vet-list"],
input[type="image"][data-action="remove-from-vet-list"],
input[type="image"][data-action="add-to-foot-trimmer-list"],
input[type="image"][data-action="remove-from-foot-trimmer-list"] {
  width: 20px;
}

input[type="image"][data-action="treat-cow"] {
  width: 17.5px;
  height: 17.5px; /* Overrides common height */
}

input[type="image"][data-action="edit-lameness-list-notes"],
input[type="image"][data-action="edit-notes"] {
  width: 17px;
  float: right;
}

input[type="image"][data-action="set-action"] {
  width: 17px;
}

input[type="image"][data-action="mark-cow-healthy"] {
  width: 30px;
}

input[type="image"][data-action="extend-pause"] {
  width: 22px;
  vertical-align: middle;
}

.grayscale-minus {
  filter: grayscale(100%);
}

.grayscale-plus {
  /* We need to darken the plus sign icon a bit further to make it consistent with the minus sign. */
  filter: grayscale(100%) brightness(92%);
}

#extend_pause_btn {
  width: 23.5px;
  background-color: unset;
  vertical-align: middle;
  position: relative;
  top: -3px;
}

.submodule-list ul {
  list-style-type: none;
  padding-left: 17px;
  margin: 0;
}

.icon-color-default {
  color: #337ab7;
}

.report-y,
.icon-color-success {
  color: #5cb85c;
}

.report-n,
.icon-color-danger {
  color: #EA685E;
}

.task-navi-bar {
  margin-top: -5px;
  padding-left: 0px;
}

.task-navi-bar-index {
  font-family: sans-serif;
  font-size: 24px;
  font-weight: bold;
  vertical-align: middle;
}

input[type="file"] {
  background-color: #fff;
}

select.custom-input-sm {
  height: 25px;
}

.custom-input-sm {
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 3px;
}

.result-Correct,
.report-Parlour-Correct,
.report-Empty,
.report-id_verify_success {
  background-color: #95c11f !important;
  filter: brightness(120%);
}

.result-Incorrect,
.report-Parlour-Incorrect,
.report-Occupied-as-Empty,
.report-Empty-as-Occupied,
.report-id_verify_failure {
  background-color: #EA685E !important;
  filter: brightness(120%);
}

.solid-cow,
.report-No-Observation,
.report-Observer-Disagreement,
.report-Observer-Uncertainty,
.report-Cow-ID-to-RFID-Missing,
.report-Missed-Capture {
  background-color: #28a4c9 !important;
  filter: brightness(120%);
}

.report-Manual-Exclusion {
  background-color: gray !important;
  filter: brightness(120%);
}

.result-Uncertain {
  background-color: #e38d13 !important;
  filter: brightness(120%);
}

.report-correct-sub th,
.report-correct-sub td {
  border-color: #95c11f !important;
}

.report-incorrect-sub th,
.report-incorrect-sub td {
  border-color: #EA685E !important;
}

.report-exclude-sub th,
.report-exclude-sub td {
  border-color: #28a4c9 !important;
}

.report-gea_agree {
  color: #28a4c9;
}

.report-gea_disagree {
  color: darkgray;
}

.report-gea_learning {
  color: purple;
}

.report-gea_unknown {
  color: orange;
}

.report-info-table {
  margin: 20px auto;
  width: 60%;
  min-width: 600px;
}

.report-total-tr {
  font-weight: bold;
}

.report-top-th {
  text-align: center;
}

.report-mv:hover {
  background-color: #37499B;
  background-image: linear-gradient(to top,#6ea1b3 0,#37499B 100%);
  background-repeat: repeat-x;
  border-radius: 25px;
  color: white;
  cursor: pointer;
}

.selected-div {
  background-color: #37499B;
  filter: brightness(120%);
  border-radius: 25px;
  color: white;
  cursor: pointer;
}

.report-section {
  border: solid 2px #e1e4e5;
  border-radius: 25px;
  margin-left: 1px;
  margin-bottom: 20px;
  min-height: 200px;
  padding-right: 10px;
}

.result-icon {
  margin-bottom: 20px;
}

.tr-top {
  border-width: 3px;
  border-color: #37499B;
  border-style: solid solid none solid;
}

.tr-bottom {
  border-width: 3px;
  border-color: #37499B;
  border-style: none solid solid  solid;
}

.report-head {
  border-width: 3px;
  border-color: #37499B;
  border-style: solid;
  background-color: aliceblue;
}

input[type="checkbox"].switch_1 {
  font-size: 30px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 2em;
  height: 0.7em;
  background: #ddd;
  border-radius: 1em;
  position: relative;
  cursor: pointer;
  outline: none;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

input[type="checkbox"].switch_1:checked {
	background: #A2A9D6;
}

input[type="checkbox"].switch_1:after {
  position: absolute;
  content: "";
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: #fff;
  -webkit-box-shadow: 0 0 0.25em rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0.25em rgba(0, 0, 0, 0.3);
  -webkit-transform: scale(0.7);
  transform: scale(0.7);
  left: 0;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

input[type="checkbox"].switch_1:checked:after {
  left: calc(100% - 0.7em);
}

input[type="checkbox"].switch_1 {
  font-size: 30px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 2em;
  height: 0.7em;
  background: #ddd;
  border-radius: 1em;
  position: relative;
  cursor: pointer;
  outline: none;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}
input[type="checkbox"].switch_1:checked {
  background: #A2A9D6;
}
input[type="checkbox"].switch_1:after {
  position: absolute;
  content: "";
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: #fff;
  -webkit-box-shadow: 0 0 0.25em rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0.25em rgba(0, 0, 0, 0.3);
  -webkit-transform: scale(0.7);
  transform: scale(0.7);
  left: 0;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}
input[type="checkbox"].switch_1:checked:after {
  left: calc(100% - 0.7em);
}
.account-set-menu {
  height: 3em;
  color: #595959;
  border-top: solid 1px #959595;
  border-bottom: solid 1px #959595;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  background: white;
}
.account-set-menu-selected {
  background: #80808054;
}
.account-set-menu:hover {
  background: #80808054;
}

.spinner-container {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.spinner-container img {
  margin-bottom: 20px;
}

.verification-header-row .full-width-cell {
  padding: 10px;
  background-color: #f4f4f4;
}

.header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #333;
}

.timestamp-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.timestamp,
.stall {
  font-weight: normal;
}

.images-section {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.p_uuid {
  min-height: 20px;
}

.image-block {
  flex: 1;
  text-align: center;
  padding: 10px;
}

.image-block img:not(.no-img) {
  max-width: 100%;
  height: auto;
  max-height: 150px;
  margin-bottom: 15px;
}

.no-img {
  max-width: 130px;
}

.image-block p:first-child {
  margin: 0px 0px 10px 0px;
  font-size: 14px;
}

.verification-result {
  padding: 15px;
  margin: auto;
}

.verification-result img {
  margin-bottom: 30px;
  margin-top: 10px;
  max-width: 300px;
}

.verification-result p {
  font-weight: bold;
  text-align: center;
}

#liveCheckboxRow {
  display: flex;
  justify-content: end;
  margin-top: 50px;
}

.toggle-switch {
  display: flex;
  margin-bottom: 10px;
}

.toggle-switch input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 50px;
  height: 25px;
  background-color: #E0251C;
  border-radius: 15px;
  outline: none;
  position: relative;
  cursor: pointer;
  margin-left: 10px;
}

.toggle-switch input[type="checkbox"]::before {
  content: "";
  position: absolute;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background-color: white;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
}

.toggle-switch input[type="checkbox"]::after {
  content: "OFF";
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 10px;
  font-weight: bold;
}

.toggle-switch input[type="checkbox"]:checked::before {
  transform: translateX(25px);
}

.toggle-switch input[type="checkbox"]:checked {
  background-color: #28a745;
}

.toggle-switch input[type="checkbox"]:checked::after {
  content: "ON";
  left: 5px;
  right: auto;
}

.toggle-switch label {
  padding-left: 5px;
  font-size: 12px;
  align-self: flex-end;
}

/* Tablet layout (medium screens) */
@media (min-width: 576px) and (max-width: 991px) {
  .images-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
  }

  .image-block {
    flex: 0 0 31%; /* Takes approximately 1/3 of container minus gap */
    margin-bottom: 10px;
  }

  /* Result goes full width below */
  .verification-result {
    flex: 0 0 100%;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    border-top: 1px solid #ddd;
  }

  .no-img {
    max-width: 100px;
  }
}

/* Mobile layout (smallest screens) */
@media (max-width: 575px) {
  /* Stack images vertically but keep them small */
  .images-section {
    flex-direction: column;
    gap: 10px;
  }

  .image-block {
    width: 100%;
    margin-bottom: 10px;
    padding: 5px;
  }

  /* Condense text */
  .image-block p {
    font-size: 12px;
    margin: 0 0 5px 0;
  }

  .p_uuid {
    font-size: 10px;
    color: #666;
  }

  .verification-result {
    width: 100%;
    padding: 10px;
    text-align: center;
    border-top: 1px solid #ddd;
  }

  .timestamp-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .header-section {
    flex-direction: column;
    align-items: flex-start;
  }

  #liveCheckboxRow {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .no-img {
    max-width: 100px;
  }
}

@media (max-width: 768px) {
  #liveCheckboxRow {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ====== ENHANCED DROPDOWNS ====== */
.enhanced-dropdown {
  position: relative !important;
  z-index: 1051 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.enhanced-dropdown .dropdown-menu {
  position: absolute !important;
  bottom: 100% !important; /* Position above the trigger instead of below */
  top: auto !important; /* Override the existing top positioning */
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important; /* Add margin to bottom instead of top */
  min-width: 200px !important;
  max-width: 280px !important;
  z-index: 1000 !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175) !important;
  background-color: white !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  text-align: center;
  padding: 10px;
}

/* Arrow pointing down to the trigger element */
.enhanced-dropdown .dropdown-menu:before,
.enhanced-dropdown .dropdown-menu:after {
  content: "";
  display: block;
  position: absolute;
  top: 100%; /* Move to bottom of dropdown */
  bottom: auto; /* Override previous bottom positioning */
  left: 50%;
  width: 0;
  height: 0;
}

.enhanced-dropdown .dropdown-menu:before {
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid rgba(0, 0, 0, 0.15); /* Point downward */
  border-bottom: none; /* Remove upward point */
  margin-left: -7px;
}

.enhanced-dropdown .dropdown-menu:after {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid white; /* Point downward */
  border-bottom: none; /* Remove upward point */
  margin-left: -6px;
  margin-top: -1px; /* Adjust for border thickness */
}

/* Specifically style the timezone dropdown */
.enhanced-dropdown#timezone-dropdown .dropdown-menu {
  min-width: 250px !important;
}

.enhanced-dropdown#timezone-dropdown .dropdown-menu li a {
  text-align: left;
  padding: 8px 15px;
}

/* Specifically style the search dropdown */
.enhanced-dropdown#search-dropdown .dropdown-menu {
  min-width: 250px !important;
}

.enhanced-dropdown#search-dropdown .dropdown-menu li {
  padding: 5px 0;
}

.enhanced-dropdown#search-dropdown form.form-search {
  width: 100%;
  text-align: center;
  padding: 0 20px;
}

.enhanced-dropdown#search-dropdown form.form-search input {
  max-width: 100%;
  width: 100%;
}

.enhanced-dropdown#search-dropdown .search-clear {
  right: 30px;
}

/* Specifically style the avatar dropdown */
.enhanced-dropdown#avatar-dropdown .dropdown-menu {
  min-width: 200px !important;
}

.enhanced-dropdown#avatar-dropdown .dropdown-menu li span {
  padding: 5px 15px;
  display: block;
}

.enhanced-dropdown#avatar-dropdown .dropdown-menu li a {
  padding: 10px 15px;
  display: block;
}

/* Media queries for responsive behavior */
@media (max-width: 640px) {
  .enhanced-dropdown .dropdown-menu {
    width: 90% !important;
    max-height: 70vh;
    overflow-y: auto;
  }

  .enhanced-dropdown#search-dropdown form.form-search {
    padding: 0 10px;
  }

  .enhanced-dropdown#search-dropdown .search-clear {
    right: 20px;
  }
}

/* Fix for larger screens - keep the standard dropdown behavior */
@media (min-width: 1350px) {
  .enhanced-dropdown .dropdown-menu {
    bottom: auto !important;
    top: 100% !important;
    transform: none !important;
    left: auto !important;
    right: 0 !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
  }

  .enhanced-dropdown .dropdown-menu:before,
  .enhanced-dropdown .dropdown-menu:after {
    top: auto;
    bottom: 100%;
    left: auto;
    right: 20px;
  }

  .enhanced-dropdown .dropdown-menu:before {
    border-top: none;
    border-bottom: 7px solid rgba(0, 0, 0, 0.15);
  }

  .enhanced-dropdown .dropdown-menu:after {
    border-top: none;
    border-bottom: 6px solid white;
  }

  .enhanced-dropdown#search-dropdown .dropdown-menu {
    right: 0 !important;
    left: auto !important;
  }

  .enhanced-dropdown#timezone-dropdown .dropdown-menu {
    right: 0 !important;
    left: auto !important;
  }
}

.report-creation {
  display: flex;
  align-items: center;
}

.report-creation th {
  padding-right: 20px;
}

.report-creation .align-text-top {
  vertical-align: top;
}

.report-creation .loading-spinner {
  vertical-align: middle;
  margin-left: 5px;
  float: left;
}

.report-creation i {
  float: left;
  margin: 20px 10px 30px 10px;
}

.report-creation-progress {
  margin: 8px 0 25px 50px;
}

.report-image {
  max-width: 100%;
  max-height: 150px;
}

.report-captured-image {
  max-width: 100%;
  max-height: 60px;
}

.report-log-tr {
  height: 80px;
  th,
  td {
    vertical-align: middle !important;
  }
}

/* Device-Snapshot Page styles */
:root {
  --primary: #37499B;
  --primary-dark: #26316B;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #EA685E;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.device-header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  margin-bottom: 24px;
}

.device-header-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.back-button:hover {
  color: var(--primary-dark);
  transform: translateX(-2px);
}

/* Card Styles */
.card {
  background-color: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 24px;
  color: var(--primary);
  font-weight: 700;
}

.card-content {
  padding: 24px;
}

/* Device Info Grid */
.info-grid.three-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  flex: 0 0 calc(50% - 12px); /* Fixed width to maintain 50:50 layout */
  gap: 16px;
  margin-bottom: 20px;
}

.info-item {
  padding: 16px;
  background-color: var(--gray-50);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  transition: all 0.2s;
}

.info-item:hover {
  border-color: var(--gray-300);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.info-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.info-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-900);
  align-self: self-end;
  gap: 6px;
  word-break: break-word;
}

.notes-area {
  grid-column: span 3;
  margin-top: 8px;
}

.notes-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  resize: vertical;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s;
}

.notes-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Status Section */
.device-status-section {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

/* Status Indicator Card */
.connectivity-status-card {
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 24px;
  flex: 0 0 240px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.connectivity-status-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.connectivity-status-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.connectivity-status-indicator-container {
  display: flex;
  align-items: center;
  gap: 18px;
}

.connectivity-status-indicator {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.connectivity-status-indicator:hover {
  transform: scale(1.05);
}

.connectivity-status-online {
  background-color: #10b981; /* Modern green */
}

.connectivity-status-offline {
  background-color: #E0251C; /* Modern red */
}

.connectivity-status-info {
  display: flex;
  flex-direction: column;
}

.connectivity-status-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.connectivity-status-duration {
  font-size: 14px;
  color: var(--gray-600);
}

/* Connectivity Card */
.connectivity-card {
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 24px;
  flex: 1;
  transition: transform 0.2s, box-shadow 0.2s;
}

.connectivity-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.connectivity-header {
  margin-bottom: 24px;
}

.connectivity-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  letter-spacing: 0.3px;
}

.connectivity-graph-container {
  padding: 0 10px;
}

.connectivity-timeline-bar {
  position: relative;
  height: 20px;
  background-color: transparent;
  border-radius: 10px;
  overflow: visible;
  margin-bottom: 12px;
}

.timeline-segment {
  position: absolute;
  height: 100%;
  top: 0;
  transition: all 0.3s ease;
}

.timeline-segment:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.timeline-segment:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}


.timeline-segment:hover {
  transform: scaleY(1.15);
  z-index: 2;
}

.segment-online {
  background-color: #10b981; /* Modern green */
}

.segment-offline {
  background-color: #E0251C; /* Modern red */
}

.connectivity-stats {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray-600);
  font-weight: 500;
}

/* Data Tables */
.dev-data-table {
  width: 100%;
  border-collapse: collapse;
}

.dev-data-table th {
  background-color: var(--gray-50);
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: var(--gray-700);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--gray-200);
}

.dev-data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  max-width: 300px;
}

.dev-data-table td.wrap-text {
  white-space: normal;
  word-break: break-word;
}

.dev-data-table tbody tr:hover {
  background-color: var(--gray-50);
}

.dev-data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Log Section */
.log-content {
  background-color: var(--gray-900);
  color: var(--gray-100);
  padding: 16px;
  border-radius: 8px;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 13px;
  max-height: 300px;
  overflow-y: auto;
}

.log-entry {
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.log-timestamp {
  color: var(--success);
}

/* Badges */
.device-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
}

.badge-info {
  font-size: 12px;
  background-color: #dbeafe;
  color: #1e40af;
}

/* Icons */
.icon-info {
  width: 16px;
  height: 16px;
  color: var(--gray-400);
  cursor: help;
}

.no-data {
  text-align: center;
  padding: 20px;
  color: var(--gray-500);
  font-style: italic;
}

/* Editable field styles */
.device-name-container {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

#input-device_name {
  font-size: 24px;
  color: var(--primary);
  font-weight: 700;
  background-color: var(--gray-50);
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  padding: 6px 10px;
}

.device-name-edit-btn {
  margin-top: 3px;
}

.device-name-edit-container {
  max-width: 800px;
}

.info-item-editable {
  position: relative;
}

.info-field-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-edit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: none;
  background-color: var(--gray-100);
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s;
}

.field-edit-btn:hover {
  background-color: var(--gray-200);
  color: var(--primary);
}

.field-edit-container {
  margin-top: 8px;
  padding: 10px;
  background-color: white;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
}

.field-edit-input,
.field-edit-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 8px;
}

.field-edit-input:focus,
.field-edit-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(3, 80, 107, 0.1);
}

.field-edit-actions {
  display: flex;
  gap: 8px;
}

.btn-sm {
  padding: 4px 8px;
  font-size: 12px;
}

.btn-secondary {
  background-color: var(--gray-200);
  color: var(--gray-700);
}

.btn-secondary:hover {
  background-color: var(--gray-300);
}

.field-save-status {
  margin-top: 6px;
  font-size: 12px;
}

.field-save-status.success {
  color: var(--success);
}

.field-save-status.error {
  color: var(--danger);
}

.save-status {
  margin-left: 10px;
  font-size: 14px;
}

.save-status.success {
  color: var(--success);
}

.save-status.error {
  color: var(--danger);
}

.id_verify_image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-height: 60vh;
  max-width: 100%;
}

.distorted-image {
  float: left;
  width: 50%;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .card-content {
    padding: 16px;
    overflow-x: auto;
  }

  .dev-data-table {
    min-width: 800px; /* Ensure table maintains minimum width */
  }
}

@media (max-width: 768px) {
  .info-grid.three-column {
    grid-template-columns: repeat(2, 1fr);
  }

  .notes-area {
    grid-column: span 1;
  }

  .device-status-section {
    flex-direction: column;
  }

  .connectivity-status-card {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .info-grid.three-column {
    grid-template-columns: 1fr;
  }
}

/* Camera page */
.camera-link {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  color: #4a90e2;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.camera-link:hover {
  color: #2a6fc9;
  background-color: rgba(74, 144, 226, 0.1);
}

.camera-link:active {
  transform: scale(0.95);
}

.icon-external-link {
  stroke-width: 2px;
}

/* subtle animation on hover */
.camera-link:hover .icon-external-link {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Device Info Wrapper */
.device-info-wrapper {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

/* Right column: ID-Verify stacked layout */
.id-verify-column {
  flex: 0 0 calc(50% - 12px); /* Fixed width to maintain 50:50 layout */
}

/* ID-Verify Enable Section */
.id-verify-enable-section {
  flex: 0 0 380px;
}

.id-verify-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 24px;
  height: 100%;
}

.id-verify-header {
  margin-bottom: 20px;
}

.toggle-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ID Verify Setting Toggle Switch */
.id-verify-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.id-verify-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray-300);
  transition: 0.4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--success);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.toggle-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
}

/* ID-Verify Content */
.id-verify-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-700);
}

.id-verify-status {
  margin-bottom: 16px;
}

.id-verify-description {
  margin-bottom: 16px;
}

.id-verify-requirements {
  margin-bottom: 16px;
}

.id-verify-requirements p {
  margin-bottom: 8px;
  font-weight: 500;
}

.id-verify-requirements ul {
  margin: 0;
  padding-left: 24px;
}

.id-verify-requirements li {
  margin-bottom: 6px;
}

.id-verify-tools {
  margin-bottom: 16px;
}

.id-verify-warning {
  margin-bottom: 0;
  font-weight: 500;
}

/* ID-Verify Accuracy Section */
.accuracy-report-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 24px 16px;
  margin-top: 32px;
}

.accuracy-report-content {
  display: flex;
  margin: 0;
  align-items: stretch;
}

.accuracy-report-col {
  display: inline-block;
  vertical-align: top;
  padding: 0 24px;
}

.accuracy-report-info {
  width: 48%;
  min-width: 220px;
  border-right: 1px solid #eee;
}

.accuracy-report-stats {
  width: 34%;
  min-width: 220px;
  text-align: center;
}

.accuracy-report-actions {
  width: 18%;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.accuracy-report-actions button {
  display: block;
  margin: 0 auto 10px auto;
  min-width: 75px;
}

.accuracy-report-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
}

.accuracy-report-table th {
  font-weight: 600;
  text-align: left;
  padding-right: 8px;
}

.accuracy-report-table-stats th {
  text-align: right;
  font-weight: 500;
}

.accuracy-report-value {
  font-size: 2.2em;
  font-weight: 700;
}

.accuracy-report-value.id-verify {
  color: #10b981;
}

.accuracy-report-open-btn {
  margin-bottom: 12px;
  min-width: 100px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .device-info-wrapper {
    flex-direction: column;
  }

  .id-verify-enable-section {
    flex: 1;
    max-width: none;
  }

  .info-grid.three-column {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .accuracy-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-large {
    grid-column: span 2;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Modal Header Alignment Styles */
.modal-header-aligned {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.modal-title-aligned {
  margin: 0;
  font-weight: 500;
}

.modal-close-aligned {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  opacity: 0.5;
  cursor: pointer;
  padding: 0.25rem;
}

.modal-close-aligned:hover {
  opacity: 0.8;
}

/* Chart Container */
.chart-container {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
  box-shadow: 0 0 4px 4px rgba(122, 122, 122, 0.1);
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-container:hover {
  box-shadow: 0 0 6px 6px rgba(55, 74, 154, 0.25);
}

.chart-view {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.chart-view.active {
  display: block;
}

.chart-subtitle {
  margin-bottom: 20px;
  color: #333;
  font-weight: 600;
}

/* Dropdown styles */
#chart-selector {
  border-radius: 6px;
  border: 1px solid #ddd;
  background-color: #fff;
  padding: 8px 12px;
  font-size: 14px;
}

#chart-selector:focus {
  border-color: #4472c4;
  outline: none;
}

#chart-selector:hover {
  border-color: #4472c4;
}

/* No Data Container Styles */
.no-data-container {
  height: 350px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  box-shadow: 0 0 3px 3px rgba(0, 0, 0, 0);
}

.no-data-content {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
}

.no-data-icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: #adb5bd;
}

.no-data-title {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 600;
  color: #495057;
}

.no-data-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  max-width: 400px;
}

/* Layout Spacing */
.drawer-row {
  margin-top: 20px;
}

.toggle-controls-row {
  margin-top: 15px;
}

/* Drawer Title */
.drawer-title {
  margin: 0;
  color: #333;
  font-weight: 600;
  flex-grow: 1;
}

.drawer-icon {
  margin-right: 8px;
}

/* Table Styles */
.table-header {
  background-color: #f8f9fa;
}

.table-header-cell {
  text-align: center;
  text-decoration: underline;
  padding: 12px 8px;
  font-weight: 700;
  color: #495057;
}

.table-data-cell {
  text-align: center;
  padding: 10px 8px;
}

.table-data-cell.alarm {
  color: #e74c3c;
  font-weight: 600;
}

#daily-summary-table {
  margin-bottom: 0;
}

/* Daily Summary Drawer Styles */
.daily-summary-drawer {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 4px 4px rgba(122, 122, 122, 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.daily-summary-drawer:hover {
  box-shadow: 0 0 6px 6px rgba(55, 74, 154, 0.25);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.drawer-header:hover {
  background: #e9ecef;
}

.drawer-toggle-icon {
  color: #6c757d;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.drawer-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.drawer-content.open {
  max-height: 100%;
}

/* Additional styles for the daily summary table */
#daily-summary-table {
  font-size: 14px;
  border-collapse: collapse;
}

#daily-summary-table th {
  background: white;
  border: 1px solid #dee2e6;
  white-space: nowrap;
}

#daily-summary-table td {
  border: 1px solid #dee2e6;
  vertical-align: middle;
}

#daily-summary-table tbody tr:nth-child(even) {
  background-color: white;
}

#daily-summary-table tbody tr:hover {
  background-color: #e3f2fd;
}

.btn-group input[type="checkbox"] {
    display: none; /* Hide checkbox */
}

.alert-badge {
  display: inline-block;
  padding: 4px 8px;
  background: #e74c3c;
  color: white;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  margin: 2px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

#daterange-picker {
  border-radius: 6px;
  border: 1px solid #ddd;
  background-color: #fff;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  z-index: 0;
}

#daterange-picker:focus {
  border-color: #4472c4;
  outline: none;
  box-shadow: 0 0 0 2px rgba(68, 114, 196, 0.2);
}

#daterange-picker:hover {
  border-color: #4472c4;
}

/* Style the input group addon to match */
.input-group-addon {
  background-color: #fff;
  border: 1px solid #ddd;
  border-left: none;
  border-radius: 0 6px 6px 0;
  padding: 8px 12px;
  color: #6c757d;
  transition: all 0.2s ease;
}

#daterange-picker:focus + .input-group-addon,
#daterange-picker:hover + .input-group-addon {
  border-color: #4472c4;
  color: #4472c4;
}

.daterangepicker {
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: #fff;
  z-index: 2 !important;
}

.daterangepicker .ranges li {
  border-radius: 4px;
  transition: all 0.2s ease;
}

.daterangepicker .ranges li:hover {
  background-color: #f8f9fa;
  color: #4472c4;
}

.daterangepicker .ranges li.active {
  background-color: #4472c4;
  border-color: #4472c4;
}

.daterangepicker td.active,
.daterangepicker td.active:hover {
  background-color: #4472c4;
  border-color: #4472c4;
}

.daterangepicker td.in-range {
  background-color: rgba(68, 114, 196, 0.1);
  color: #333;
}

.daterangepicker .drp-buttons .btn {
  border-radius: 4px;
  padding: 6px 16px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.daterangepicker .drp-buttons .applyBtn {
  background-color: #4472c4;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
}

.daterangepicker .drp-buttons .applyBtn:hover {
  background-color: #365899;
  border-color: #365899;
}

.daterangepicker .drp-buttons .cancelBtn {
  background-color: #6c757d;
  border-color: #6c757d;
}

.daterangepicker .drp-buttons .cancelBtn:hover {
  background-color: #5a6268;
  border-color: #545b62;
}

/* Chart Selector Disabled State */
#chart-selector:disabled {
  background-color: #f5f5f5;
  color: #999;
  border-color: #ddd;
  cursor: not-allowed;
  opacity: 0.6;
}

#chart-selector:disabled:hover {
  background-color: #f5f5f5;
  color: #999;
  border-color: #ddd;
  box-shadow: none;
}

/* Datepicker Disabled State */
#daterange-picker:disabled {
  background-color: #f5f5f5;
  color: #999;
  border-color: #ddd;
  cursor: not-allowed;
  opacity: 0.6;
}

#daterange-picker:disabled:hover {
  background-color: #f5f5f5;
  color: #999;
  border-color: #ddd;
  box-shadow: none;
}

#daterange-picker:disabled:focus {
  background-color: #f5f5f5;
  color: #999;
  border-color: #ddd;
  box-shadow: none;
  outline: none;
}

#daterange-picker:disabled + .input-group-addon {
  background-color: #f5f5f5;
  color: #999;
  border-color: #ddd;
  cursor: not-allowed;
  opacity: 0.6;
}

#daterange-picker:disabled:hover + .input-group-addon,
#daterange-picker:disabled:focus + .input-group-addon {
  background-color: #f5f5f5;
  color: #999;
  border-color: #ddd;
}

.wordart {
  transform: scale(1.5) skewY(-3deg) rotateZ(-3deg) translateZ(0);
  h2 {
    font-family: Impact, sans-serif;
    font-weight: 700;
    color: transparent;
    background: linear-gradient(to bottom left, #95c11f, #95c11f 15%, #01530c);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
  }
}

/* Daterangepicker Overrides */
.daterangepicker .ranges li.active {
  background-color: #6B7CC7 !important; 
  color: #fff;
}

.daterangepicker td.active, .daterangepicker td.active:hover {
  background-color: #6B7CC7 !important;
  border-color: transparent;
  color: #fff;
}

/* ---------- VERIFICATION REPORT LIST RESPONSIVE STYLES ---------- */

/* Tablets and mobile devices */
@media (max-width: 768px) {
  /* Stack title and filters vertically - specific to verification report list */
  .verification-report-list-page .container .row > .col-lg-5,
  .verification-report-list-page .container .row > .col-lg-7 {
    width: 100%;
    margin-bottom: 1rem;
  }

  /* Make filter buttons more compact - 2 per row - specific to verification report list */
  .verification-report-list-page #filterForm #button-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .verification-report-list-page #filterForm #button-area .btn-group {
    margin-bottom: 0.5rem;
  }

  /* Stack report details vertically - specific to verification report list */
  .verification-report-list-page .wrapper .report-details.report-mv {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .verification-report-list-page .wrapper .report-details.report-mv .list-view {
    width: 100% !important;
    min-width: auto !important;
  }

  /* Keep action buttons in a row - specific to verification report list */
  .verification-report-list-page .wrapper .report-details.report-mv .list-view:nth-child(3) {
    display: flex !important;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
  }

  .verification-report-list-page .wrapper .report-details.report-mv .list-view:nth-child(3) button {
    margin: 0;
    min-width: 80px;
  }

  /* Center the accuracy section - specific to verification report list */
  .verification-report-list-page .wrapper .report-details.report-mv .list-view:nth-child(2) table {
    text-align: center;
  }

  /* Scale down logo - specific to verification report list */
  .verification-report-list-page .wrapper .report-details.report-mv .ptl-logo-dash {
    width: 80px !important;
    height: auto;
  }
}

/* Small mobile devices */
@media (max-width: 576px) {
  /* Single column for filters on very small screens - specific to verification report list */
  .verification-report-list-page #filterForm #button-area {
    grid-template-columns: 1fr;
  }

  /* Stack action buttons vertically on very small screens - specific to verification report list */
  .verification-report-list-page .wrapper .report-details.report-mv .list-view:nth-child(3) {
    flex-direction: column;
    gap: 0.5rem;
  }

  .verification-report-list-page .wrapper .report-details.report-mv .list-view:nth-child(3) button {
    width: 100%;
    max-width: 120px;
  }

  /* Smaller logo - specific to verification report list */
  .verification-report-list-page .wrapper .report-details.report-mv .ptl-logo-dash {
    width: 60px !important;
  }
}
/* Cluster Management Table Styling - Specific to cluster management page */

.cluster-management-page .card-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-100);
}

.cluster-management-page .table thead th {
  color: white !important;
  border: none !important;
  font-weight: 600 !important;
  padding: 12px 16px !important;
}

.cluster-management-page .table tbody td {
  padding: 12px 16px !important;
  vertical-align: middle !important;
}

.cluster-management-page .table tbody tr:hover {
  background-color: #f8f9fa !important;
}

.cluster-management-page .btn-outline-danger {
  border-color: #dc3545 !important;
  color: #dc3545 !important;
}

.cluster-management-page .btn-outline-danger:hover {
  background-color: #dc3545 !important;
  color: white !important;
}

/* Modal close button alignment */
.cluster-management-page .modal-header .close {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.label-div {
  display: grid;
  margin: 10px;
  height: 330px;
  @media (max-width: 1379px) and (min-width: 1200px){
    height: 260px;
  }
}

.label-image-div {
  display:flex;
  height: 300px; 
  @media (max-width: 1379px) and (min-width: 1200px) {
    height: 200px;
  }
}

.report-result-div {
  @media (max-width: 1379px) and (min-width: 1200px) {
    font-size: x-small;
  }
}

.summary-report-head {
  background: #37499B;
  color: white;
  text-align-last: center;
  th {
    vertical-align: middle !important;
    text-align: center;
  }
}

.summary-report-body > tr > td{
  vertical-align: middle !important;
  text-align: center;
}

.filter-title {
  padding-bottom:10px;
}

.selected-filter {
  color: blue !important;
  font-weight: bolder !important;
}

.deselected-filter {
  text-decoration: line-through !important;
  color: #aaa !important;
}