:root{
  --brand-primary-color: #001545ff;
  --brand-secondary-color: #157A97ff;
  --brand-text-color: #838587ff;
  --brand-tertiary-color: #26C5EDff;
}
#overlay {
  background: rgba(255, 255, 255, 0.8);
  position: fixed;
  height: 100%;
  width: 100%;
  z-index: 5000;
  top: 0;
  left: 0;
}
.app-sidebar-logo{
  background-color: #FFFFFF;
}
.loader--facebook {
  display: inline-block;
  position: relative;
  height: 64px;
  width: 64px;
  margin-bottom: 30px;
}
.loader--facebook div {
  display: inline-block;
  position: absolute;
  left: 6px;
  animation: loader--facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
  width: 13px;
}

.loader--facebook div:nth-child(1) {
  left: 6px;
  animation-delay: -0.24s;
}

.loader--facebook div:nth-child(2) {
  left: 26px;
  animation-delay: -0.12s;
}

.loader--facebook div:nth-child(3) {
  left: 45px;
  animation-delay: 0;
}

@keyframes loader--facebook {
  0% {
    top: 6px;
    height: 51px;
  }
  50%,
  100% {
    top: 19px;
    height: 26px;
  }
}
.colord_bg_1 div {
  background-color: var(--brand-primary-color) !important;
}

.loginBg{
  background-color:var(--brand-primary-color);
  box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px,
    rgba(0, 0, 0, 0.22) 0px 10px 10px;
}
.app-sidebar{
  background-color: var(--brand-primary-color) !important;
}
.app-sidebar .menu .menu-item .menu-link .menu-title {
  color: #FFFFFF !important;
}
.app-sidebar .menu .menu-item .menu-link .menu-icon, .app-sidebar .menu .menu-item .menu-link .menu-icon .svg-icon, .app-sidebar .menu .menu-item .menu-link .menu-icon i {
  color: #FFFFFF !important;
}
.app-sidebar .menu .menu-item .menu-heading{
  color: #FFFFFF !important;
}
.app-sidebar .menu .menu-item .menu-link .menu-bullet .bullet{
  background-color: #FFFFFF !important;
}
.app-sidebar .menu .menu-item .menu-link.active, .app-sidebar .menu .menu-item .menu-link:hover{
  background-color: var(--brand-secondary-color) !important;
}
[data-kt-app-sidebar-minimize=on][data-kt-app-sidebar-hoverable=true] #desk_sidebar_min_logo{
  display: block !important;
}
.menu-item .menu-link .menu-arrow:after{
  background-color: #FFFFFF;
}
.ki-duotone, .ki-outline, .ki-solid{
  color: #000000;
}
.ki-double-left .path2:before{
  opacity: 0.5;
}
#search_result_table th, #search_result_table td, #search_result_table_r th, #search_result_table_r td, #search_result_table_s th, #search_result_table_s td {
  text-wrap: nowrap;
  padding:10px;
  vertical-align: middle;
}
#search_result_table td, .dataTables_scrollHeadInner th {
  border-color: #ccc !important;
}
.dataTables_scrollHeadInner th{
  padding:10px !important;
  vertical-align: middle !important;
}
.hover-shadow:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
    transition: box-shadow 0.2s ease-in-out;
}
fieldset {
  border: 1px dotted gray;
  padding: 5px 10px;
}
.evalLegend {
  font-size: 14px;
}
.evalAnswer {
  font-size: 16px;
  font-weight: bold;
}
.dlr_image_container a {
  flex: 1 1 calc(33.33% - 10px);
  box-sizing: border-box;
}
.dlr_image_inner {
  border: 1px solid #555;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.dlr_image {
  max-height: 350px;
  max-width: 100%;
}
.dlr_image_inner p {
  font-size: 14px;
  font-weight: bold;
  text-align: center;
}
.question-box {
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
  background-color: #f8f9fa;
}

.mismatch {
  background-color: #fce2e2 !important;
}

.match {
  background-color: rgb(226 255 233) !important;
}
#modify_form .col-6, #modify_form .col-12, #create_form .col-6, #create_form .col-12{
  display: flex;
  align-items: center;
}
#modify_form h4, #create_form h4{
  margin-bottom: 0px;
}
.custom-card {
  background: #ffffff;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.custom-card:hover {
  border-color: #dee2e6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
#gr_history_container{
  max-height: 883px;
  overflow-y: auto;
}
.customTableLink{
  height: 12px;
  line-height: 10px;
  margin-top: -5px;
}
.customTableLink i{
  color: blue !important;
  transition: all 300ms;
  padding: 0px !important;
}
.customTableLink i:hover {
  color: red !important;
}
.custom-accordion-item{
  border: none !important;
}
.custom-accordion-item .accordion-button:hover{
  background-color: #eee !important;
}

.checklist-card {
  background: #ffffff;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.checklist-card:hover {
  border-color: #dee2e6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.checklist-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  font-weight: 600;
  font-size: 14px;
  margin-right: 12px;
  flex-shrink: 0;
}

.checklist-label {
  font-size: 15px;
  font-weight: 500;
  color: #2d3748;
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

.checklist-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.status-buttons {
  display: flex;
  gap: 10px;
}

.btn-check:checked + .btn-outline-success {
  background-color: #10b981;
  border-color: #10b981;
  color: white;
  box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
}

.btn-check:checked + .btn-outline-danger {
  background-color: #ef4444;
  border-color: #ef4444;
  color: white;
  box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3);
}

.btn-outline-success,
.btn-outline-danger {
  font-weight: 600;
  padding: 10px 20px;
  border: 1px solid !important;
  transition: all 0.2s ease;
  font-size: 14px;
}

.btn-outline-success:hover {
  background-color: #10b981;
  border-color: #10b981;
  transform: translateY(-1px);
}

.btn-outline-danger:hover {
  background-color: #ef4444;
  border-color: #ef4444;
  transform: translateY(-1px);
}

.spare-parts-container {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px dashed #e5e7eb;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.spare-parts-select {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  transition: all 0.2s ease;
  background-color: #f9fafb;
}

.spare-parts-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background-color: white;
}

.spare-parts-label {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 8px;
  display: block;
}

.spare-parts-label i {
  color: #ef4444;
  margin-right: 4px;
}

.checklist-row {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .checklist-card {
    margin-bottom: 15px;
  }

  .status-buttons {
    flex-direction: column;
  }

  .btn-outline-success,
  .btn-outline-danger {
    width: 100%;
  }
}

.iqc-form {
  padding-bottom: calc(140px + env(safe-area-inset-bottom));
}

/* Sticky bottom bar */
.iqc-actionbar {
  position: sticky;
  /* stays within scroll container like Bootstrap sticky utilities */
  bottom: 0;
  /* stick to bottom */
  z-index: 1030;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -12px 30px rgba(16, 24, 40, 0.1);
  padding: 12px 0 calc(40px + env(safe-area-inset-bottom));
}

/* Make textarea comfortable but not too tall */
.iqc-remarks {
  min-height: 44px;
  max-height: 110px;
}
#dynamic_form_container .col-md-8{
  display: flex;
  align-items: center;
}

#kt_accordion_1_body_2 .menu-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

#kt_accordion_1_body_2 .menu-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

#kt_accordion_1_body_2 .section-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f3f4f6;
}

#kt_accordion_1_body_2 .section-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#kt_accordion_1_body_2 .section-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

#kt_accordion_1_body_2 .section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

#kt_accordion_1_body_2 .select-all-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#kt_accordion_1_body_2 .select-all-wrapper:hover {
    background: #f3f4f6;
}

#kt_accordion_1_body_2 .select-all-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0496FF;
}

#kt_accordion_1_body_2 .select-all-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#kt_accordion_1_body_2 .subsection-header {
    font-size: 0.875rem;
    font-weight: 600;
    color: #667eea;
    margin: 1.25rem 0 0.75rem 0;
    padding-left: 0.75rem;
    border-left: 3px solid #667eea;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

#kt_accordion_1_body_2 .menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
}

#kt_accordion_1_body_2 .menu-item-card {
    position: relative;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    transition: all 0.25s ease;
    cursor: pointer;
}
#kt_accordion_1_body_2 .sub-menu-item {
    margin-left: 3rem;
}

#kt_accordion_1_body_2 .menu-item-card:hover {
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

#kt_accordion_1_body_2 .menu-item-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

#kt_accordion_1_body_2 .menu-item-card input[type="checkbox"]:checked ~ .menu-checkbox-label {
    color: #0496FF;
    font-weight: 600;
}

#kt_accordion_1_body_2 .menu-item-card input[type="checkbox"]:checked ~ .menu-checkbox-label::before {
    background: linear-gradient(135deg, #0496FF 0%, #0496FF 100%);
    border-color: #0496FF;
}

#kt_accordion_1_body_2 .menu-item-card input[type="checkbox"]:checked ~ .menu-checkbox-label::after {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

#kt_accordion_1_body_2 .menu-checkbox-label {
    display: block;
    cursor: pointer;
    color: #374151;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    padding-left: 2rem;
    position: relative;
    line-height: 1.4;
}

#kt_accordion_1_body_2 .menu-checkbox-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    background: #ffffff;
    transition: all 0.25s ease;
}

#kt_accordion_1_body_2 .menu-checkbox-label::after {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    color: white;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transition: all 0.2s ease;
}

/* Animation for checkbox selection */
@keyframes checkBounce {
    0%,
    100% {
        transform: translateY(-50%) scale(1);
    }

    50% {
        transform: translateY(-50%) scale(1.2);
    }
}

#kt_accordion_1_body_2 .menu-item-card input[type="checkbox"]:checked ~ .menu-checkbox-label::after {
    animation: checkBounce 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #kt_accordion_1_body_2 .menu-items-grid {
        grid-template-columns: 1fr;
    }

    #kt_accordion_1_body_2 .section-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* Stats badge */
#kt_accordion_1_body_2 .selected-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: #0496FF;
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0 0.5rem;
    margin-left: 0.5rem;
}

#success_modal .modal-dialog,
#failed_modal .modal-dialog {
    max-width: 420px;
}

#success_modal .modal-content,
#failed_modal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    animation: modalPop 0.35s ease-out;
}

#success_modal .modal-header,
#failed_modal .modal-header {
    border-bottom: none;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#success_modal .modal-title,
#failed_modal .modal-title {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

#success_modal .modal-header .btn,
#failed_modal .modal-header .btn {
    padding: 0;
    background: transparent;
    border: none;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#success_modal .modal-header .btn:hover,
#failed_modal .modal-header .btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

#success_modal .modal-body,
#failed_modal .modal-body {
    padding: 16px;
}

#success_modal .modal-body h2,
#failed_modal .modal-body h2 {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

#success_modal .modal-footer,
#failed_modal .modal-footer {
    border-top: none;
    padding: 16px 24px 24px;
    justify-content: center;
}

#success_modal .modal-footer .btn,
#failed_modal .modal-footer .btn {
    min-width: 120px;
    border-radius: 999px;
    padding: 8px 20px;
    font-weight: 500;
    letter-spacing: 0.03em;
}

#success_modal .modal-header {
    background: linear-gradient(135deg, #198754, #20c997);
}

#success_modal .modal-body h2 {
    color: #198754;
}

#failed_modal .modal-header {
    background: linear-gradient(135deg, #dc3545, #ff6b6b);
}

#failed_modal .modal-body h2 {
    color: #dc3545;
}

@keyframes modalPop {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.excelDownButton {
    padding: 8px 20px !important;
    margin-bottom: 0px;
    margin-top: 8px;
}