/**
* Template Name: NiceAdmin
* Template URL: https://bootstrapmade.com/nice-admin-bootstrap-admin-html-template/
* Updated: Apr 20 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  background: #f6f9ff;
  color: #444444;
}

a {
  color: #4154f1;
  text-decoration: none;
}

a:hover {
  color: #717ff5;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Nunito", sans-serif;
}

/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
#main {
  margin-top: 60px;
  padding: 20px 30px;
  transition: all 0.3s;
}

@media (max-width: 1199px) {
  #main {
    padding: 20px;
  }
}

/*--------------------------------------------------------------
# Page Title
--------------------------------------------------------------*/
.pagetitle {
  margin-bottom: 10px;
}

.pagetitle h1 {
  font-size: 24px;
  margin-bottom: 0;
  font-weight: 600;
  color: #012970;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: #4154f1;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #6776f4;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Override some default Bootstrap stylings
--------------------------------------------------------------*/
/* Dropdown menus */
.dropdown-menu {
  border-radius: 4px;
  padding: 10px 0;
  animation-name: dropdown-animate;
  animation-duration: 0.2s;
  animation-fill-mode: both;
  border: 0;
  box-shadow: 0 5px 30px 0 rgba(82, 63, 105, 0.2);
}

.dropdown-menu .dropdown-header,
.dropdown-menu .dropdown-footer {
  text-align: center;
  font-size: 15px;
  padding: 10px 25px;
}

.dropdown-menu .dropdown-footer a {
  color: #444444;
  text-decoration: underline;
}

.dropdown-menu .dropdown-footer a:hover {
  text-decoration: none;
}

.dropdown-menu .dropdown-divider {
  color: #a5c5fe;
  margin: 0;
}

.dropdown-menu .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.dropdown-menu .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #f6f9ff;
}

@media (min-width: 768px) {
  .dropdown-menu-arrow::before {
    content: "";
    width: 13px;
    height: 13px;
    background: #fff;
    position: absolute;
    top: -7px;
    right: 20px;
    transform: rotate(45deg);
    border-top: 1px solid #eaedf1;
    border-left: 1px solid #eaedf1;
  }
}

@keyframes dropdown-animate {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }

  0% {
    opacity: 0;
  }
}

/* Light Backgrounds */
.bg-primary-light {
  background-color: #cfe2ff;
  border-color: #cfe2ff;
}

.bg-secondary-light {
  background-color: #e2e3e5;
  border-color: #e2e3e5;
}

.bg-success-light {
  background-color: #d1e7dd;
  border-color: #d1e7dd;
}

.bg-danger-light {
  background-color: #f8d7da;
  border-color: #f8d7da;
}

.bg-warning-light {
  background-color: #fff3cd;
  border-color: #fff3cd;
}

.bg-info-light {
  background-color: #cff4fc;
  border-color: #cff4fc;
}

.bg-dark-light {
  background-color: #d3d3d4;
  border-color: #d3d3d4;
}

/* Card */
.card {
  width: 100% !important;
  margin-bottom: 30px;
  border: none;
  border-radius: 5px;
  box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
}

.card-header,
.card-footer {
  border-color: #ebeef4;
  background-color: #fff;
  color: #798eb3;
  padding: 15px;
}

.card-title {
  padding: 20px 0 15px 0;
  font-size: 18px;
  font-weight: 500;
  color: #012970;
  font-family: "Poppins", sans-serif;
}

.card-title span {
  color: #899bbd;
  font-size: 14px;
  font-weight: 400;
}

.card-body {
  padding: 20px 20px 20px 20px;
}

.card-img-overlay {
  background-color: rgba(255, 255, 255, 0.6);
}

/* Alerts */
.alert-heading {
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
}

/* Close Button */
.btn-close {
  background-size: 25%;
}

.btn-close:focus {
  outline: 0;
  box-shadow: none;
}

/* Accordion */
.accordion-item {
  border: 1px solid #ebeef4;
}

.accordion-button:focus {
  outline: 0;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: #012970;
  background-color: #f6f9ff;
}

.accordion-flush .accordion-button {
  padding: 15px 0;
  background: none;
  border: 0;
}

.accordion-flush .accordion-button:not(.collapsed) {
  box-shadow: none;
  color: #4154f1;
}

.accordion-flush .accordion-body {
  padding: 0 0 15px 0;
  color: #3e4f6f;
  font-size: 15px;
}

/* Breadcrumbs */
.breadcrumb {
  font-size: 14px;
  font-family: "Nunito", sans-serif;
  color: #899bbd;
  font-weight: 600;
}

.breadcrumb a {
  color: #899bbd;
  transition: 0.3s;
}

.breadcrumb a:hover {
  color: #51678f;
}

.breadcrumb .breadcrumb-item::before {
  color: #899bbd;
}

.breadcrumb .active {
  color: #51678f;
  font-weight: 600;
}

/* Bordered Tabs */
.nav-tabs-bordered {
  border-bottom: 2px solid #ebeef4;
}

.nav-tabs-bordered .nav-link {
  margin-bottom: -2px;
  border: none;
  color: #2c384e;
}

.nav-tabs-bordered .nav-link:hover,
.nav-tabs-bordered .nav-link:focus {
  color: #4154f1;
}

.nav-tabs-bordered .nav-link.active {
  background-color: #fff;
  color: #4154f1;
  border-bottom: 2px solid #4154f1;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.logo {
  line-height: 1;
}

@media (min-width: 1200px) {
  .logo {
    width: 280px;
  }
}

.logo img {
  max-height: 26px;
  margin-right: 6px;
}

.logo span {
  font-size: 26px;
  font-weight: 700;
  color: #012970;
  font-family: "Nunito", sans-serif;
}

.header {
  transition: all 0.5s;
  z-index: 1040;
  height: 60px;
  box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
  background-color: #fff;
  padding-left: 20px;
  /* Toggle Sidebar Button */
  /* Search Bar */
}

.header .toggle-sidebar-btn {
  font-size: 32px;
  padding-left: 10px;
  cursor: pointer;
  color: #012970;
}

.header .search-bar {
  min-width: 360px;
  padding: 0 20px;
}

@media (max-width: 1199px) {
  .header .search-bar {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    padding: 20px;
    box-shadow: 0px 0px 15px 0px rgba(1, 41, 112, 0.1);
    background: white;
    z-index: 9999;
    transition: 0.3s;
    visibility: hidden;
    opacity: 0;
  }

  .header .search-bar-show {
    top: 60px;
    visibility: visible;
    opacity: 1;
  }
}

.header .search-form {
  width: 100%;
}

.header .search-form input {
  border: 0;
  font-size: 14px;
  color: #012970;
  border: 1px solid rgba(1, 41, 112, 0.2);
  padding: 7px 38px 7px 8px;
  border-radius: 3px;
  transition: 0.3s;
  width: 100%;
}

.header .search-form input:focus,
.header .search-form input:hover {
  outline: none;
  box-shadow: 0 0 10px 0 rgba(1, 41, 112, 0.15);
  border: 1px solid rgba(1, 41, 112, 0.3);
}

.header .search-form button {
  border: 0;
  padding: 0;
  margin-left: -30px;
  background: none;
}

.header .search-form button i {
  color: #012970;
}

/*--------------------------------------------------------------
# Header Nav
--------------------------------------------------------------*/
.header .dropdown-menu {
  z-index: 1045;
}

.header-nav ul {
  list-style: none;
}

.header-nav>ul {
  margin: 0;
  padding: 0;
}

.header-nav .nav-icon {
  font-size: 22px;
  color: #012970;
  margin-right: 25px;
  position: relative;
}

.header-nav .nav-profile {
  color: #012970;
}

.header-nav .nav-profile img {
  max-height: 36px;
}

.header-nav .nav-profile span {
  font-size: 14px;
  font-weight: 600;
}

.header-nav .badge-number {
  position: absolute;
  inset: -2px -5px auto auto;
  font-weight: normal;
  font-size: 12px;
  padding: 3px 6px;
}

.header-nav .notifications {
  inset: 8px -15px auto auto !important;
}

.header-nav .notifications .notification-item {
  display: flex;
  align-items: center;
  padding: 15px 10px;
  transition: 0.3s;
}

.header-nav .notifications .notification-item i {
  margin: 0 20px 0 10px;
  font-size: 24px;
}

.header-nav .notifications .notification-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.header-nav .notifications .notification-item p {
  font-size: 13px;
  margin-bottom: 3px;
  color: #919191;
}

.header-nav .notifications .notification-item:hover {
  background-color: #f6f9ff;
}

.header-nav .messages {
  inset: 8px -15px auto auto !important;
}

.header-nav .messages .message-item {
  padding: 15px 10px;
  transition: 0.3s;
}

.header-nav .messages .message-item a {
  display: flex;
}

.header-nav .messages .message-item img {
  margin: 0 20px 0 10px;
  max-height: 40px;
}

.header-nav .messages .message-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #444444;
}

.header-nav .messages .message-item p {
  font-size: 13px;
  margin-bottom: 3px;
  color: #919191;
}

.header-nav .messages .message-item:hover {
  background-color: #f6f9ff;
}

.header-nav .profile {
  min-width: 240px;
  padding-bottom: 0;
  top: 8px !important;
}

.header-nav .profile .dropdown-header h6 {
  font-size: 18px;
  margin-bottom: 0;
  font-weight: 600;
  color: #444444;
}

.header-nav .profile .dropdown-header span {
  font-size: 14px;
}

.header-nav .profile .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.header-nav .profile .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.header-nav .profile .dropdown-item:hover {
  background-color: #f6f9ff;
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  width: 300px;
  z-index: 1035;
  transition: all 0.3s;
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #aab7cf transparent;
  box-shadow: 0px 0px 20px rgba(1, 41, 112, 0.1);
  background-color: #fff;
}

@media (max-width: 1199px) {
  .sidebar {
    left: -300px;
  }
}

.sidebar::-webkit-scrollbar {
  width: 5px;
  height: 8px;
  background-color: #fff;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #aab7cf;
}

@media (min-width: 1200px) {

  #main,
  #footer {
    margin-left: 300px;
  }
}

@media (max-width: 1199px) {
  .toggle-sidebar .sidebar {
    left: 0;
  }
}

@media (min-width: 1200px) {

  .toggle-sidebar #main,
  .toggle-sidebar #footer {
    margin-left: 0;
  }

  .toggle-sidebar .sidebar {
    left: -300px;
  }
}

.sidebar-nav {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-item {
  margin-bottom: 5px;
}

.sidebar-nav .nav-heading {
  font-size: 11px;
  text-transform: uppercase;
  color: #899bbd;
  font-weight: 600;
  margin: 10px 0 5px 15px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #4154f1 !important;
  transition: 0.3s;
  background: #f6f9ff;
  padding: 10px 15px;
  border-radius: 4px;
}

.sidebar-nav .nav-link:hover {
  color: #f6f9ff !important;
  background: #4154f1 !important;
}

.sidebar-nav .nav-link:hover i {
  font-size: 16px;
  margin-right: 10px;
  color: #fff !important;
}

.sidebar-nav .nav-link i {
  font-size: 16px;
  margin-right: 10px;
  color: #4154f1;
}

.sidebar-nav .nav-link.active:hover {
  color: #f6f9ff !important;
  background: #4154f1;
}

.sidebar-nav .nav-link.active {
  color: #f6f9ff !important;
  background: #4154f1 !important;
}

.sidebar-nav .nav-link.active i{
  color: #f6f9ff;
}

.sidebar-nav .nav-link.collapsed {
  color: #012970;
  background: #fff;
}

.sidebar-nav .nav-link.collapsed i {
  color: #899bbd;
}

.sidebar-nav .nav-link:hover {
  color: #4154f1;
  background: #f6f9ff;
}

.sidebar-nav .nav-link:hover i {
  color: #4154f1;
}

.sidebar-nav .nav-link .bi-chevron-down {
  margin-right: 0;
  transition: transform 0.2s ease-in-out;
}

.sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down {
  transform: rotate(180deg);
}

.sidebar-nav .nav-content {
  padding: 5px 0 0 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-content a {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #012970;
  transition: 0.3s;
  padding: 10px 0 10px 40px;
}

.sidebar-nav .nav-content a i {
  font-size: 6px;
  margin-right: 8px;
  line-height: 0;
  border-radius: 50%;
}

.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-content a.active {
  color: #4154f1;
}

.sidebar-nav .nav-content a.active i {
  background-color: #4154f1;
}

/*--------------------------------------------------------------
# Dashboard
--------------------------------------------------------------*/
/* Filter dropdown */
.dashboard .filter {
  position: absolute;
  right: 0px;
  top: 15px;
}

.dashboard .filter .icon {
  color: #aab7cf;
  padding-right: 20px;
  padding-bottom: 5px;
  transition: 0.3s;
  font-size: 16px;
}

.dashboard .filter .icon:hover,
.dashboard .filter .icon:focus {
  color: #4154f1;
}

.dashboard .filter .dropdown-header {
  padding: 8px 15px;
}

.dashboard .filter .dropdown-header h6 {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #aab7cf;
  margin-bottom: 0;
  padding: 0;
}

.dashboard .filter .dropdown-item {
  padding: 8px 15px;
}

/* Info Cards */
.dashboard .info-card {
  padding-bottom: 10px;
}

.dashboard .info-card h6 {
  font-size: 28px;
  color: #012970;
  font-weight: 700;
  margin: 0;
  padding: 0;
}

.dashboard .card-icon {
  font-size: 32px;
  line-height: 0;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  flex-grow: 0;
}

.dashboard .sales-card .card-icon {
  color: #4154f1;
  background: #f6f6fe;
}

.dashboard .revenue-card .card-icon {
  color: #2eca6a;
  background: #e0f8e9;
}

.dashboard .customers-card .card-icon {
  color: #ff771d;
  background: #ffecdf;
}

/* Activity */
.dashboard .activity {
  font-size: 14px;
}

.dashboard .activity .activity-item .activite-label {
  color: #888;
  position: relative;
  flex-shrink: 0;
  flex-grow: 0;
  min-width: 64px;
}

.dashboard .activity .activity-item .activite-label::before {
  content: "";
  position: absolute;
  right: -11px;
  width: 4px;
  top: 0;
  bottom: 0;
  background-color: #eceefe;
}

.dashboard .activity .activity-item .activity-badge {
  margin-top: 3px;
  z-index: 1;
  font-size: 11px;
  line-height: 0;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid #fff;
  flex-grow: 0;
}

.dashboard .activity .activity-item .activity-content {
  padding-left: 10px;
  padding-bottom: 20px;
}

.dashboard .activity .activity-item:first-child .activite-label::before {
  top: 5px;
}

.dashboard .activity .activity-item:last-child .activity-content {
  padding-bottom: 0;
}

/* News & Updates */
.dashboard .news .post-item+.post-item {
  margin-top: 15px;
}

.dashboard .news img {
  width: 80px;
  float: left;
  border-radius: 5px;
}

.dashboard .news h4 {
  font-size: 15px;
  margin-left: 95px;
  font-weight: bold;
  margin-bottom: 5px;
}

.dashboard .news h4 a {
  color: #012970;
  transition: 0.3s;
}

.dashboard .news h4 a:hover {
  color: #4154f1;
}

.dashboard .news p {
  font-size: 14px;
  color: #777777;
  margin-left: 95px;
}

/* Recent Sales */
.dashboard .recent-sales {
  font-size: 14px;
}

.dashboard .recent-sales .table thead {
  background: #f6f6fe;
}

.dashboard .recent-sales .table thead th {
  border: 0;
}

.dashboard .recent-sales .dataTable-top {
  padding: 0 0 10px 0;
}

.dashboard .recent-sales .dataTable-bottom {
  padding: 10px 0 0 0;
}

/* Top Selling */
.dashboard .top-selling {
  font-size: 14px;
}

.dashboard .top-selling .table thead {
  background: #f6f6fe;
}

.dashboard .top-selling .table thead th {
  border: 0;
}

.dashboard .top-selling .table tbody td {
  vertical-align: middle;
}

.dashboard .top-selling img {
  border-radius: 5px;
  max-width: 60px;
}

/*--------------------------------------------------------------
# Icons list page
--------------------------------------------------------------*/
.iconslist {
  display: grid;
  max-width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  padding-top: 15px;
}

.iconslist .icon {
  background-color: #fff;
  border-radius: 0.25rem;
  text-align: center;
  color: #012970;
  padding: 15px 0;
}

.iconslist i {
  margin: 0.25rem;
  font-size: 2.5rem;
}

.iconslist .label {
  font-family: var(--bs-font-monospace);
  display: inline-block;
  width: 100%;
  overflow: hidden;
  padding: 0.25rem;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #666;
}

/*--------------------------------------------------------------
# Profie Page
--------------------------------------------------------------*/
.profile .profile-card img {
  max-width: 120px;
}

.profile .profile-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: #2c384e;
  margin: 10px 0 0 0;
}

.profile .profile-card h3 {
  font-size: 18px;
}

.profile .profile-card .social-links a {
  font-size: 20px;
  display: inline-block;
  color: rgba(1, 41, 112, 0.5);
  line-height: 0;
  margin-right: 10px;
  transition: 0.3s;
}

.profile .profile-card .social-links a:hover {
  color: #012970;
}

.profile .profile-overview .row {
  margin-bottom: 20px;
  font-size: 15px;
}

.profile .profile-overview .card-title {
  color: #012970;
}

.profile .profile-overview .label {
  font-weight: 600;
  color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit label {
  font-weight: 600;
  color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit img {
  max-width: 120px;
}

/*--------------------------------------------------------------
# F.A.Q Page
--------------------------------------------------------------*/
.faq .basic h6 {
  font-size: 18px;
  font-weight: 600;
  color: #4154f1;
}

.faq .basic p {
  color: #6980aa;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-box {
  padding: 28px 30px;
}

.contact .info-box i {
  font-size: 38px;
  line-height: 0;
  color: #4154f1;
}

.contact .info-box h3 {
  font-size: 20px;
  color: #012970;
  font-weight: 700;
  margin: 20px 0 10px 0;
}

.contact .info-box p {
  padding: 0;
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  border-radius: 0;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: #4154f1;
}

.contact .php-email-form input {
  padding: 10px 15px;
}

.contact .php-email-form textarea {
  padding: 12px 15px;
}

.contact .php-email-form button[type=submit] {
  background: #4154f1;
  border: 0;
  padding: 10px 30px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
}

.contact .php-email-form button[type=submit]:hover {
  background: #5969f3;
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

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

/*--------------------------------------------------------------
# Error 404
--------------------------------------------------------------*/
.error-404 {
  padding: 30px;
}

.error-404 h1 {
  font-size: 180px;
  font-weight: 700;
  color: #4154f1;
  margin-bottom: 0;
  line-height: 150px;
}

.error-404 h2 {
  font-size: 24px;
  font-weight: 700;
  color: #012970;
  margin-bottom: 30px;
}

.error-404 .btn {
  background: #51678f;
  color: #fff;
  padding: 8px 30px;
}

.error-404 .btn:hover {
  background: #3e4f6f;
}

@media (min-width: 992px) {
  .error-404 img {
    max-width: 50%;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  padding: 20px 0;
  font-size: 14px;
  transition: all 0.3s;
  border-top: 1px solid #cddfff;
}

.footer .copyright {
  text-align: center;
  color: #012970;
}

.footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 13px;
  color: #012970;
}

/*--------------------------------------------------------------
# Custom
--------------------------------------------------------------*/

.hide{
  display: none;
}

input[readonly]
{
    background-color:#efefef;
}

/* First, completely neutralize Bootstrap's validation styles */
.form-control:valid,
.form-control.is-valid,
.was-validated .form-control:valid,
.form-control:invalid,
.form-control.is-invalid,
.was-validated .form-control:invalid {
    border-color: #ced4da !important; /* Bootstrap's default border color */
    padding-right: 0.75rem !important; /* Bootstrap's default padding */
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

/* Then apply our custom validation styles using Bootstrap's class names */
.form-control.custom-valid,
.was-validated .form-control.custom-valid {
    border-color: #198754 !important;
    padding-right: calc(1.5em + 0.75rem) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

.form-control.custom-invalid,
.was-validated .form-control.custom-invalid {
    border-color: #dc3545 !important;
    padding-right: calc(1.5em + 0.75rem) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

/* Focus states */
.form-control.custom-valid:focus,
.was-validated .form-control.custom-valid:focus {
    border-color: #198754 !important;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25) !important;
}

.form-control.custom-invalid:focus,
.was-validated .form-control.custom-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

/* Feedback messages */
.valid-feedback,
.invalid-feedback {
    display: none !important;
}

.custom-valid-feedback,
.custom-invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
}

.custom-valid-feedback {
    color: #198754 !important;
}

.custom-invalid-feedback {
    color: #dc3545 !important;
}

/* Show feedback when needed */
.was-validated .custom-valid-feedback,
.custom-valid-feedback.show {
    display: block !important;
}

.was-validated .custom-invalid-feedback,
.custom-invalid-feedback.show {
    display: block !important;
}

/* Checkbox validation */
.form-check-input.custom-valid,
.was-validated .form-check-input.custom-valid {
    border-color: #198754 !important;
}

.form-check-input.custom-invalid,
.was-validated .form-check-input.custom-invalid {
    border-color: #dc3545 !important;
}

.form-check-input.custom-valid ~ .form-check-label,
.was-validated .form-check-input.custom-valid ~ .form-check-label {
    color: #198754 !important;
}

.form-check-input.custom-invalid ~ .form-check-label,
.was-validated .form-check-input.custom-invalid ~ .form-check-label {
    color: #dc3545 !important;
}

/* First completely neutralize Bootstrap's checkbox validation */
.was-validated .form-check-input:valid,
.was-validated .form-check-input:invalid,
.form-check-input.is-valid,
.form-check-input.is-invalid {
    border-color: #dee2e6 !important;
    background-image: none !important;
    background-color: #fff !important;
}

.was-validated .form-check-input:valid ~ .form-check-label,
.was-validated .form-check-input:invalid ~ .form-check-label,
.form-check-input.is-valid ~ .form-check-label,
.form-check-input.is-invalid ~ .form-check-label {
    color: inherit !important;
}

/* Apply our custom validation styles with higher specificity */
.was-validated .form-check .form-check-input.custom-valid,
.form-check .form-check-input.custom-valid {
    border-color: #198754 !important;
}

.was-validated .form-check .form-check-input.custom-valid:checked,
.form-check .form-check-input.custom-valid:checked {
    background-color: #198754 !important;
}

.was-validated .form-check .form-check-input.custom-invalid,
.form-check .form-check-input.custom-invalid {
    border-color: #dc3545 !important;
}

.was-validated .form-check .form-check-input.custom-invalid:checked,
.form-check .form-check-input.custom-invalid:checked {
    background-color: #dc3545 !important;
}

/* Fix label colors with higher specificity */
.was-validated .form-check .form-check-input.custom-valid ~ .form-check-label,
.form-check .form-check-input.custom-valid ~ .form-check-label {
    color: #198754 !important;
}

.was-validated .form-check .form-check-input.custom-invalid ~ .form-check-label,
.form-check .form-check-input.custom-invalid ~ .form-check-label {
    color: #dc3545 !important;
}

/* Base styles for feedback */
.custom-valid-feedback,
.custom-invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
}

.custom-valid-feedback {
    color: #198754 !important;
}

.custom-invalid-feedback {
    color: #dc3545 !important;
}

/* Override any Bootstrap display properties */
.custom-valid-feedback.show,
.custom-invalid-feedback.show {
    display: block !important;
}

.custom-valid-feedback.hide,
.custom-invalid-feedback.hide {
    display: none !important;
}

/* Ensure checkbox feedback messages are shown/hidden based on state */
.custom-valid-feedback.show,
.custom-invalid-feedback.show {
    display: block !important;
}

.custom-valid-feedback.hide,
.custom-invalid-feedback.hide {
    display: none !important;
}

.form-check-input.custom-invalid,
.was-validated .form-check-input.custom-invalid {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important; /* Red shadow */
}

/* Valid field styling */
.custom-valid {
  border-color: green !important;
  color: green !important;
}

/* Invalid field styling */
.custom-invalid {
  border-color: red !important;
  color: red !important;
}

/* CSS for valid and invalid check indicators */
.valid-check {
  color: green !important; /* Green for tick */
  font-weight: bold !important;
}

.invalid-check {
  color: red !important; /* Red for cross */
  font-weight: bold !important;
}

.search-container {
    border: 1px solid #ced4da;
    padding: 5px;
    min-height: 38px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    border-radius: 4px;
}

.search-input {
    flex: 1;
    min-width: 150px;
    outline: none;
    cursor: text;
}

.search-container-icon {
    color: #6c757d;
    cursor: pointer;
    padding: 0 6px;
    font-size: 0.8em;
    flex-shrink: 0;
}

.search-container-icon:hover {
    color: #2563eb;
}

.search-container-icon-input {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.position-relative > input.form-control {
    padding-right: 30px;
}

.search-area,
.edit-area{
  background: #efefef; 
  padding: 5px; 
  border: 1px solid #666; 
  border-radius: 5px;
}

/* SAMPLES CREATE PAGE */

        
.machine_systems {
  padding: 3px 10px 3px 10px;
  height: 200px;
  overflow-y: scroll; /* Scrolling like a select element */
  overflow-x: hidden;
  border: 1px solid #ccc; /* Border similar to a select element */
  border-radius: 4px;
  background-color: white; /* Matches the default background of a select element */
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); /* Slight shadow like select */
  display: block; /* Ensure it's block-level like a select */
  font-family: sans-serif; /* Font similar to select options */
  font-size: 14px; /* Match font size of default select */
  appearance: none; /* Remove default browser styles (specific to certain browsers) */
  -webkit-appearance: none; /* For Safari */
  -moz-appearance: none; /* For Firefox */
}

.system-row {
  padding: 8px 12px;
  background-color: #efefef;
  border: 1px solid #ccc;
  cursor: default;
}

.system-row:hover {
  background-color: #ccc;
}

.system-row.selected {
  background-color: #ccc;
}

#reader {
  max-width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0 auto; 
  height: auto;
}

#reader > video {
  width: 100% !important;
  height: auto !important;
  display: block;
}

.grade_list,
.brand_list,
#component_list,
#machine_type_list,
#make_list,
#customer_list,
#country_list,
#jobsite-list,
#machine-list {
  height: 175px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
}

.grade_list.short,
.brand_list.short,
#component_list.short,
#machine_type_list.short, 
#make_list.short {
  height: 100px;
}


#country_list {
  z-index: 9999;
}

.grade-item,
.brand-item,
.component-item,
.machine-type-item,
.make-item,
.country-item,
.customer-item,
.jobsite-item,
.machine-item {
  padding: 8px;
  cursor: pointer;
}

/* ALT-NAMES-DISPLAY: alternative names under a picker item. Words are drawn from data-* by CSS so the
   item's text (auto-pick, selection fill) never changes. */
.alt-names { display: block; font-size: .85em; font-weight: 400; line-height: 1.3; margin-top: 2px; white-space: normal; }
/* colour sits on the child spans: customer branding paints ".card :not(input)..." and outranks a bare .alt-names */
.alt-names .alt-label, .alt-names .alt-name, .alt-names .alt-more { color: #6c757d; }
.alt-names .alt-label::before { content: attr(data-t) " "; }
.alt-names .alt-name::before { content: attr(data-t); }
.alt-names .alt-name + .alt-name::before { content: ", " attr(data-t); }
.alt-names .alt-hidden { display: none; }
.alt-names.expanded .alt-hidden, .alt-names .alt-hidden.alt-hit { display: inline; }
.alt-names .alt-hit { font-weight: 600; color: #495057; }
.alt-names .alt-more { margin-left: .35em; cursor: pointer; text-decoration: underline; white-space: nowrap; }
.alt-names .alt-more::before { content: attr(data-more); }
.alt-names.expanded .alt-more::before { content: attr(data-fewer); }
.system-row .alt-names { clear: both; }

/* COMPONENT-STATUS-BADGES: latest published result beside a component on Create Sample. The letter is
   drawn from data-flag by CSS so the row's text (searchSystems, alias filtering) never changes, and it is
   painted on the pseudo-element - customer branding paints ".card *:not(input)..." (0,4,0) and would
   otherwise repaint the badge's own readable foreground. */
.result-badge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  margin-left: 8px; border-radius: 50%; font-size: 12px; font-weight: 700; line-height: 1; vertical-align: middle;
  background: var(--rb-bg, #94a3b8); }
.result-badge[data-state="published"]::before { content: attr(data-flag); color: var(--rb-fg, #fff); }
.result-badge[data-state="none"] { background: transparent; border: 1.5px dashed #94a3b8; }
/* a bottle already on its way to us - hollow, so it never competes with a real result */
.result-badge-lab { background: transparent; border: 1.5px solid #94a3b8; margin-left: 4px; }
.result-badge-lab::before { content: "\f0c3"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 11px; color: #64748b; }
/* the nudge line above the list, in the same faint voice as .alt-names */
.system-result-summary { font-size: .85em; padding: 2px 12px 6px; }
.system-result-summary::before { content: attr(data-t); color: #6c757d; }   /* on the pseudo-element: customer branding repaints ".card *" */
/* step-4 header pill (.sampling-component-badge, white in overlay-mini.css) - the grey hollow states read as they are */
.sampling-component-badge .result-badge { margin-left: 10px; }
/* stage 2: the gentle "don't forget" line under the list for a flagged component left unticked */
.component-nudges { margin-top: 6px; }
.component-nudge { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; margin-top: 6px; padding: 6px 10px;
  background: #fff8e6; border: 1px solid #f1dfae; border-radius: 6px; font-size: .9em; line-height: 1.3; cursor: pointer; }
.component-nudge:hover, .component-nudge:focus-visible { background: #fdf0cf; border-color: #e6c979; outline: none; }
.component-nudge .result-badge { flex: 0 0 auto; margin-left: 0; }
.component-nudges-step4:empty { display: none; }
/* samples-list component filter: server-rendered alias hits keep their "(alias)" hint (that list is filtered on the server and carries no data-aliases) */
#componentList li.alias-matched::after { content: " (" attr(data-alias-hit) ")"; color: #6c757d; font-size: .85em; }
/* Oil-brand alias rows (OIL-MFR-ALIASES): "Texaco HDAX" carries the real name in data-alias-hit. */
li.brand-alias.alias-matched::after { content: " (" attr(data-alias-hit) ")"; color: #6c757d; font-size: .85em; }
/* the machine-page pick lists paint a selected row blue with white text */
.machine-pick-list li.selected .alt-names .alt-label, .machine-pick-list li.selected .alt-names .alt-name, .machine-pick-list li.selected .alt-names .alt-more { color: rgba(255, 255, 255, .85); }
.machine-pick-list li.selected .alt-names .alt-hit { color: #fff; }

.customer-item:hover,
.customer-item.selected,
.jobsite-item:hover,
.jobsite-item.selected,
.machine-item:hover,
.machine-item.selected,
.country-item:hover,
.country-item.selected,
.make-item:hover,
.make-item.selected,
.machine-type-item:hover,
.machine-type-item.selected,
.component-item:hover,
.component-item.selected,
.brand-item:hover,
.brand-item.selected,
.grade-item:hover,
.grade-item.selected {
  background-color: #e9e9e9; 
  color: #000; 
}
/* Dropdown styling */
#country_list {
  position: absolute; /* Allows the list to float above other elements */
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
  z-index: 9999; /* Ensures it appears on top */
  width: 100%; /* Matches the width of the input field */
  top: 100%; /* Places the list directly below the input */
  left: 0;
}

/* Positioning container */
.position-relative-container {
  position: relative;
}
figure.image { /* Targets your image figures: <figure class="image"> */
  margin: 0 0 1em 0; /* Consistent margin with video figures, adjust as needed */
  padding: 0;
  line-height: 0; /* Helps remove any bottom space if figure is display:inline-block */
}

figure.image img {
  max-width: 100%; /* Makes the image scale down to fit its container */
  height: auto;    /* Maintains the aspect ratio of the image */
  display: block;  /* Removes any extra space below the image if it's inline */
                   /* Or use vertical-align: middle; if you need it inline */
}


input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
select,
textarea,
.form-control,
.form-select,
.input-group-text,
.search-container.form-control {
  background-color: var(--oal-control-bg, #f0f0f0); /* A light grey background */
  border: 1px solid var(--oal-control-border, #ccc);     /* A slightly darker grey border */
  color: var(--oal-control-text, #333);               /* Dark grey text for good readability */
  padding: 10px;              /* Adds some space inside the fields */
  border-radius: 4px;         /* Optional: for slightly rounded corners */
}

/* --- Optional Enhancements --- */

/* Style for when the user clicks into the field (focus) */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
select:focus, 
textarea:focus,
.form-control:focus,
.form-select:focus,
.search-container.form-control:focus-within {
  border-color: var(--oal-control-focus-border, #66afe9); /* Focus border */
  outline: none; /* Removes the default browser outline */
  box-shadow: var(--oal-control-focus-shadow, 0 0 5px rgba(102, 175, 233, 0.6)); /* Adds a subtle glow */
}

/* Style for the placeholder text */
::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: var(--oal-control-placeholder, #999);
  opacity: 1; /* Firefox */
}

.search-container.form-control {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    height: auto;
    min-height: 38px;
    padding-left: 2.25rem;
    padding-right: 2rem;
    position: relative;
}

.search-container.form-control::before,
.search-container.form-control::after {
    opacity: .55;
    pointer-events: none;
    position: absolute;
}

.search-container.form-control::before {
    content: "\f002";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    left: .8rem;
}

.search-container.form-control::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-size: .8em;
    font-weight: 900;
    right: .8rem;
}

.search-container.form-control .search-input,
.search-container.form-control ~ .search-list,
.search-container.form-control ~ .search-list li {
    color: inherit;
}

.search-container.form-control .search-input:empty::before {
    content: attr(data-placeholder);
    color: var(--oal-control-placeholder, currentColor);
    opacity: 1;
}

.search-container.form-control ~ .search-list {
    background-color: var(--oal-control-bg, #f0f0f0);
    border: 1px solid var(--oal-control-border, #ccc);
}

.search-container.form-control ~ .search-list li {
    background-color: transparent;
}

.search-container.form-control ~ .search-list li:hover {
    background-color: color-mix(in srgb, currentColor 8%, transparent);
}

.oal-search-input-group {
    align-items: stretch;
}

.oal-search-input-group > .input-group-text,
.oal-search-input-group > .form-control,
.oal-search-input-group > .btn {
    background-color: var(--oal-control-bg, #f0f0f0) !important;
    border-color: var(--oal-control-border, #ccc) !important;
    color: var(--oal-control-text, #333) !important;
    min-height: 38px;
}

.oal-search-input-group > .input-group-text {
    display: inline-flex;
    justify-content: center;
    min-width: 42px;
}

.oal-search-input-group > .btn {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    padding-left: .75rem;
    padding-right: .75rem;
}

.oal-search-input-group > .btn:hover,
.oal-search-input-group > .btn:focus {
    background-color: color-mix(in srgb, currentColor 8%, var(--oal-control-bg, #f0f0f0)) !important;
    border-color: var(--oal-control-focus-border, var(--oal-control-border, #ccc)) !important;
    color: var(--oal-control-text, #333) !important;
}

.oal-search-input-group > .form-control:focus {
    box-shadow: none;
}

.oal-search-input-group:focus-within {
    border-radius: 4px;
    box-shadow: var(--oal-control-focus-shadow, 0 0 5px rgba(102, 175, 233, 0.6));
}

.oal-search-input-group:focus-within > .input-group-text,
.oal-search-input-group:focus-within > .form-control,
.oal-search-input-group:focus-within > .btn {
    border-color: var(--oal-control-focus-border, #66afe9) !important;
}

input[readonly],
textarea[readonly],
select[disabled] {
    background-color: var(--oal-control-bg, #f0f0f0);
    color: var(--oal-control-text, #555);
    cursor: not-allowed;
    border: 1px solid var(--oal-control-border, #ddd);
}

select[disabled] {
    color: var(--oal-control-text, #777);
    opacity: 0.7;
}

input[readonly]:focus,
textarea[readonly]:focus,
select[disabled]:focus {
    outline: none;
    box-shadow: none;
}

#crNotificationMenu {
    z-index: 19000 !important;
}

.chatWindow{
  border: 1px solid #ccc;
  padding: 10px; 
  overflow-x: hidden; 
  overflow-y: scroll; 
  height: 350px;
}
#chatForm {
    position: relative !important;
}

#tagContainer {
    position: absolute !important;
    bottom: 100% !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #ced4da !important;
    border-bottom: none !important;
    border-radius: 4px 4px 0 0 !important;
    z-index: 10000 !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    box-shadow: 0px -5px 15px rgba(1, 41, 112, 0.1) !important;
    margin: 0 !important;
    padding: 0 !important;
}

#tagWindow {
    padding: 0 !important;
    margin: 0 !important;
}

.tagItem {
    padding: 10px 15px !important;
    cursor: pointer !important;
    color: #444444 !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 14px !important;
    border-bottom: 1px solid #f6f9ff !important;
    background: #ffffff !important;
    display: block !important;
    transition: 0.2s;
}

.tagItem:last-child {
    border-bottom: none !important;
}

.tagItem:hover {
    background-color: #f6f9ff !important;
    color: #4154f1 !important;
}

.tagItem.no-results {
    cursor: default !important;
    color: #899bbd !important;
    font-style: italic !important;
    background: #ffffff !important;
}

#tagContainer.hide {
    display: none !important;
}

.global-search {
    flex: 1 1 420px;
    margin: 0 18px;
    max-width: none;
    min-width: 180px;
    position: relative;
    z-index: 11020;
}

.global-search-input-wrap {
    align-items: center;
    display: flex;
    position: relative;
}

#global-search .global-search-input {
    background-color: var(--global-search-input-bg, #ffffff) !important;
    border-radius: 20px;
    color: var(--global-search-input-text, #333333) !important;
    caret-color: var(--global-search-input-text, #333333);
    font-size: 14px;
    line-height: 1.4;
    min-height: 38px;
    padding: 7px 36px 7px 40px !important;
    width: 100%;
}

#global-search .global-search-input::placeholder {
    color: var(--global-search-input-muted-text, #6c757d) !important;
    opacity: 1;
}

#global-search .global-search-input::-webkit-search-cancel-button {
    appearance: none;
    -webkit-appearance: none;
    display: none;
}

#global-search .global-search-input:focus {
    border-color: var(--global-search-accent, #0d6efd);
    box-shadow: 0 0 0 3px rgba(var(--global-search-accent-rgb, 13, 110, 253), 0.12);
}

.global-search-input-icon {
    color: var(--global-search-input-muted-text, #6c757d) !important;
    left: 14px;
    pointer-events: none;
    position: absolute;
    z-index: 2;
}

.global-search-clear {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--global-search-input-muted-text, #6c757d) !important;
    display: none;
    height: 30px;
    justify-content: center;
    position: absolute;
    right: 4px;
    width: 30px;
    z-index: 2;
}

.global-search.has-value .global-search-clear {
    display: inline-flex;
}

#global-search .global-search-results {
    background: var(--global-search-surface-bg, #ffffff);
    border: 1px solid rgba(var(--global-search-divider-rgb, 33, 37, 41), 0.14);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(var(--global-search-divider-rgb, 33, 37, 41), 0.16);
    color: var(--global-search-surface-text, #012970) !important;
    left: 0;
    max-height: min(70vh, 520px);
    overscroll-behavior: contain;
    overflow-y: auto;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    -webkit-overflow-scrolling: touch;
}

#global-search .global-search-results * {
    color: var(--global-search-surface-text, #012970) !important;
}

#global-search .global-search-status,
#global-search .global-search-empty {
    color: var(--global-search-muted-text, #6c757d) !important;
    font-size: 13px;
    padding: 14px 16px;
}

#global-search .global-search-scope-hint {
    align-items: center;
    border-bottom: 1px solid rgba(var(--global-search-divider-rgb, 33, 37, 41), 0.08);
    color: var(--global-search-muted-text, #6c757d) !important;
    display: flex;
    font-size: 12px;
    gap: 8px;
    padding: 8px 16px;
}

#global-search .global-search-scope-chip,
#global-search .global-search-group-count {
    background: rgba(var(--global-search-accent-rgb, 13, 110, 253), 0.12);
    border: 1px solid rgba(var(--global-search-accent-rgb, 13, 110, 253), 0.22);
    border-radius: 999px;
    color: var(--global-search-accent-text, #0d6efd) !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 3px 7px;
    text-transform: none;
}

#global-search .global-search-scope-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 12px;
}

#global-search .global-search-scope-option {
    align-items: center;
    background: rgba(var(--global-search-accent-rgb, 13, 110, 253), 0.08);
    border: 1px solid rgba(var(--global-search-accent-rgb, 13, 110, 253), 0.18);
    border-radius: 999px;
    color: var(--global-search-surface-text, #012970) !important;
    display: inline-flex;
    gap: 6px;
    min-height: 30px;
    padding: 5px 10px;
}

#global-search .global-search-scope-option small {
    color: var(--global-search-muted-text, #6c757d) !important;
    font-size: 10px;
    font-weight: 700;
}

#global-search .global-search-scope-option:hover,
#global-search .global-search-scope-option:focus,
#global-search .global-search-scope-option.is-active {
    background: rgba(var(--global-search-accent-rgb, 13, 110, 253), 0.14);
    outline: none;
}

.global-search-group {
    border-bottom: 1px solid rgba(var(--global-search-divider-rgb, 33, 37, 41), 0.1);
    padding: 8px 0;
}

.global-search-group:last-child {
    border-bottom: 0;
}

#global-search .global-search-group-header {
    align-items: center;
    color: var(--global-search-accent-text, #0d6efd) !important;
    display: flex;
    font-size: 12px;
    font-weight: 700;
    gap: 8px;
    letter-spacing: 0.02em;
    padding: 7px 16px 8px;
    text-transform: uppercase;
}

#global-search .global-search-group-header i,
#global-search .global-search-group-header > span:not(.global-search-group-count) {
    color: var(--global-search-accent-text, #0d6efd) !important;
}

#global-search .global-search-item {
    align-items: stretch;
    color: var(--global-search-surface-text, #012970) !important;
    display: flex;
    gap: 0;
    position: relative;
    text-decoration: none;
}

#global-search .global-search-item::after {
    background: rgba(var(--global-search-accent-rgb, 13, 110, 253), 0.5);
    border-radius: 999px;
    content: "";
    left: 16px;
    position: absolute;
    top: 18px;
    bottom: 18px;
    width: 3px;
}

#global-search .global-search-item + .global-search-item::before {
    background: rgba(var(--global-search-divider-rgb, 33, 37, 41), 0.08);
    content: "";
    height: 1px;
    left: 64px;
    position: absolute;
    right: 16px;
    top: 0;
}

#global-search .global-search-item-main,
#global-search .global-search-view-all {
    align-items: flex-start;
    color: var(--global-search-surface-text, #012970) !important;
    display: flex;
    flex: 1 1 auto;
    gap: 12px;
    min-width: 0;
    padding: 10px 16px;
    text-decoration: none;
}

#global-search .global-search-item:hover .global-search-item-main,
#global-search .global-search-item-main:focus,
#global-search .global-search-view-all:hover,
#global-search .global-search-view-all:focus,
#global-search .global-search-item-main.is-active,
#global-search .global-search-view-all.is-active {
    background: rgba(var(--global-search-accent-rgb, 13, 110, 253), 0.08);
    color: var(--global-search-hover-text, #012970) !important;
    outline: none;
}

#global-search .global-search-item-main.is-active,
#global-search .global-search-view-all.is-active,
#global-search .global-search-recent-search.is-active,
#global-search .global-search-clear-recents.is-active,
#global-search .global-search-scope-option.is-active,
#global-search .global-search-search-all.is-active {
    background: rgba(var(--global-search-accent-rgb, 13, 110, 253), 0.16) !important;
    box-shadow:
        inset 4px 0 0 rgba(var(--global-search-accent-rgb, 13, 110, 253), 0.72),
        inset 0 0 0 1px rgba(var(--global-search-accent-rgb, 13, 110, 253), 0.18);
    outline: none;
}

#global-search .global-search-item-icon,
#global-search .global-search-item-icon * {
    color: var(--global-search-accent-text, #0d6efd) !important;
    flex: 0 0 22px;
    font-size: 15px;
    margin-top: 2px;
    text-align: center;
}

.global-search-item-copy {
    min-width: 0;
}

#global-search .global-search-item-title {
    color: var(--global-search-surface-text, #012970) !important;
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

#global-search .global-search-item-subtitle {
    color: var(--global-search-muted-text, #6c757d) !important;
    display: block;
    font-size: 12px;
    line-height: 1.3;
    margin-top: 2px;
    overflow-wrap: anywhere;
}

#global-search .global-search-item-title mark,
#global-search .global-search-item-subtitle mark {
    background: rgba(var(--global-search-mark-accent-rgb, 13, 110, 253), 0.14);
    border: 1px solid rgba(var(--global-search-mark-accent-rgb, 13, 110, 253), 0.38);
    border-radius: 4px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    box-shadow: none;
    color: inherit !important;
    display: inline-block;
    font-weight: 700;
    line-height: 1.2;
    padding: 0 3px;
    text-shadow: none !important;
    text-decoration: none;
}

#global-search .global-search-item-subtitle mark.global-search-subtitle-mark {
    background: rgba(var(--global-search-mark-accent-rgb, 13, 110, 253), 0.08);
    border-color: rgba(var(--global-search-mark-accent-rgb, 13, 110, 253), 0.2);
    font-weight: 600;
}

.global-search-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}

#global-search .global-search-badge {
    background: rgba(var(--global-search-accent-rgb, 13, 110, 253), 0.12);
    border: 1px solid rgba(var(--global-search-accent-rgb, 13, 110, 253), 0.22);
    border-radius: 999px;
    color: var(--global-search-accent-text, #0d6efd) !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 8px;
}

.global-search-item-actions {
    align-items: center;
    display: none;
    flex: 0 0 auto;
    gap: 2px;
    padding-right: 8px;
}

.global-search-item:hover .global-search-item-actions,
.global-search-item:focus-within .global-search-item-actions {
    display: flex;
}

#global-search .global-search-action {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 4px;
    color: var(--global-search-muted-text, #6c757d) !important;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    text-decoration: none;
    width: 28px;
}

#global-search .global-search-action:hover,
#global-search .global-search-action:focus {
    background: rgba(var(--global-search-accent-rgb, 13, 110, 253), 0.1);
    color: var(--global-search-hover-text, #012970) !important;
    outline: none;
}

#global-search .global-search-view-all {
    color: var(--global-search-accent-text, #0d6efd) !important;
    font-size: 13px;
    font-weight: 600;
    justify-content: space-between;
}

.global-search-best {
    background: rgba(var(--global-search-accent-rgb, 13, 110, 253), 0.06);
}

#global-search .global-search-recent-search {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--global-search-surface-text, #012970) !important;
    display: flex;
    gap: 10px;
    padding: 9px 14px;
    text-align: left;
    width: 100%;
}

#global-search .global-search-recent-search:hover,
#global-search .global-search-recent-search:focus,
#global-search .global-search-recent-search.is-active {
    background: rgba(var(--global-search-accent-rgb, 13, 110, 253), 0.08);
    outline: none;
}

#global-search .global-search-clear-recents {
    background: transparent;
    border: 0;
    border-top: 1px solid rgba(var(--global-search-divider-rgb, 33, 37, 41), 0.1);
    color: var(--global-search-muted-text, #6c757d) !important;
    display: block;
    font-size: 12px;
    font-weight: 600;
    padding: 9px 14px;
    text-align: left;
    width: 100%;
}

#global-search .global-search-clear-recents:hover,
#global-search .global-search-clear-recents:focus,
#global-search .global-search-clear-recents.is-active {
    background: rgba(var(--global-search-accent-rgb, 13, 110, 253), 0.08);
    color: var(--global-search-accent-text, #0d6efd) !important;
    outline: none;
}

#global-search .global-search-search-all {
    background: rgba(var(--global-search-accent-rgb, 13, 110, 253), 0.08);
    border: 0;
    border-top: 1px solid rgba(var(--global-search-divider-rgb, 33, 37, 41), 0.1);
    color: var(--global-search-accent-text, #0d6efd) !important;
    display: block;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 16px;
    text-align: left;
    width: 100%;
}

#global-search .global-search-search-all:hover,
#global-search .global-search-search-all:focus,
#global-search .global-search-search-all.is-active {
    background: rgba(var(--global-search-accent-rgb, 13, 110, 253), 0.14);
    outline: none;
}

#global-search .global-search-skeleton {
    display: grid;
    gap: 7px;
    padding: 6px 16px 14px 52px;
}

#global-search .global-search-skeleton span {
    animation: global-search-pulse 1.2s ease-in-out infinite;
    background: rgba(var(--global-search-divider-rgb, 33, 37, 41), 0.12);
    border-radius: 999px;
    display: block;
    height: 8px;
    width: min(440px, 75%);
}

#global-search .global-search-skeleton span:nth-child(2) {
    width: min(320px, 55%);
}

#global-search .global-search-skeleton span:nth-child(3) {
    width: min(180px, 35%);
}

@keyframes global-search-pulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

#global-search .global-search-guidance {
    border-top: 1px solid rgba(var(--global-search-divider-rgb, 33, 37, 41), 0.1);
    color: var(--global-search-muted-text, #6c757d) !important;
    font-size: 11px;
    line-height: 1.35;
    padding: 9px 14px 10px;
}

#global-search .global-search-guidance strong {
    color: var(--global-search-surface-text, #012970) !important;
    font-weight: 700;
}

#global-search .global-search-esc-hint {
    border-top: 1px solid rgba(var(--global-search-divider-rgb, 33, 37, 41), 0.08);
    color: var(--global-search-muted-text, #6c757d) !important;
    font-size: 11px;
    line-height: 1.35;
    padding: 7px 14px;
}

#global-search .global-search-esc-hint strong {
    color: var(--global-search-surface-text, #012970) !important;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .global-search {
        flex: 1 1 auto;
        margin: 0;
        max-width: none;
        min-width: 118px;
        padding: 0;
    }

    #global-search .global-search-input {
        font-size: 16px;
        min-height: 38px;
        padding-left: 36px !important;
        padding-right: 34px !important;
    }

    .global-search-input-icon {
        left: 13px;
    }

    .global-search-clear {
        right: 3px;
    }

    #global-search .global-search-results {
        bottom: auto;
        border-radius: 8px;
        height: auto;
        left: 10px;
        max-height: min(64vh, 520px);
        position: fixed;
        right: 10px;
        touch-action: pan-y;
        top: 66px;
    }

    #global-search .global-search-item::after {
        left: 10px;
    }

    .global-search-item-actions {
        display: none !important;
    }

    #global-search .global-search-scope-options {
        gap: 6px;
        padding-left: 12px;
        padding-right: 12px;
    }

    #global-search .global-search-scope-option {
        flex: 0 0 auto;
        justify-content: space-between;
    }

    #global-search .global-search-guidance,
    #global-search .global-search-esc-hint {
        display: none;
    }
}

/* The re-order modal marks its truncating flex children `min-w-0` (Tailwind habit);
   without the rule a flex item never shrinks below its content, so long store
   address-book labels ran off the card on a phone instead of wrapping/ellipsising. */
.min-w-0 {
    min-width: 0;
}
