/*
Theme Name: Intertek Theme
Author: Pooja
Version: 1.0

Text Domain: intertek-theme
Tags: one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, grid-layout, custom-colors, custom-background, custom-header, flexible-header, custom-menu, custom-logo, editor-style, sticky-post, featured-images, featured-image-header, footer-widgets, full-width-template, threaded-comments, theme-options, wide-blocks, block-styles, blog, portfolio, education, RTL-language-support, post-formats

*/

html {
    line-height: 1.15;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

/* Step 1: Define the font */
@font-face {
    font-family: 'NeoSansPro';
    src: url('./assets/fonts/NeoSansProLight.OTF') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Step 2: Apply the font to body, menu, headings */
body,
.nav-menu li a {
    font-family: 'NeoSansPro', Arial;

}


/* Menu bar full width background */
.menubarr,
.card-header-popup {
    background-color: #06213d !important;
}

h4,
.close-btn {
    color: #ffc700 !important;
}

.labelclass {
    font-weight: bold;
}
.form-check-label{
    font-weight: 400;
}

table a,
.fas {
    color: #06213d !important;
}

.fas {
    display: inline-flex !important;
    align-items: center;
    justify-content: center !important;
    width: 20px;
    height: 20px;
    background: #06213d;
    color: #ffffff !important;
    border-radius: 50%;
    text-decoration: none;
    font-size: 10px;
}

.fas:hover {

    background-color: #21b6d7;
}

/* Flex container for logo + menu */
.menu-wrapper {
    display: flex;
    align-items: center;
    margin: 0 auto;
    /* center the container */
    height: 60px;
}

.main-navigation {
    margin-left: 15%;
}

/* Logo styling */
.logo img.custom-logo {
    max-height: 50px;
    width: auto;
}

/* Horizontal menu */
.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

/* Menu items */
.nav-menu li {
    position: relative;
}

/* Menu links */
.nav-menu li a {
    text-decoration: none;
    color: #ffc700;
    /* Yellow text */
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s;
    font-size: 16px;
}

/* Hover effect */
.nav-menu li a:hover {
    color: #ffe999;
    /* White on hover */
}

/* Submenu styling */
.nav-menu li .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #007bff;
    /* Same blue as menu bar */
    padding: 10px 0;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 999;
}

/* Show submenu on hover */
.nav-menu li:hover .sub-menu {
    display: block;
}

/* Submenu links */
.nav-menu li .sub-menu li a {
    color: #ffdd00;
    /* Yellow submenu text */
    padding: 5px 15px;
    white-space: nowrap;
}

.nav-menu li .sub-menu li a:hover {
    color: #ffffff;
    /* White on hover */
}

/* Overlay background blur */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    /* BLUR EFFECT */
    z-index: 20;
    display: none;

}

#import_popupForm,
#vendorsearch_popupForm,
#usersearch_popupForm,
#oesearch_popupForm,
#create_organization,
#validation_popupForm,
#form_creation_popup,
#rebranding_popup,
#upload_module_popupForm,
#popup,
#popup8,
#popup5,
#oe_popupForm,
#oe2_popupForm,
#oe_edit_form,
#create_user,
#edit_popupForm {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 25px 30px;
    border-radius: 10px;
    width: 60%;
    max-height: 90vh;
    /* 👈 keep within screen */
    overflow-y: auto;
    /* 👈 scroll only inside popup if long */
    z-index: 20;
    display: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    font-family: Arial, sans-serif;
}

#import_popupForm{
    left:60%;
}

@keyframes loader {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Close button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #222;
}

/* Optional blur fix for buttons/tables */
body.popup-open {
    overflow: hidden;
}


.vendor-management-card,
.list_organization {
    margin: 20px;
}

/* Global button styling */
.btn,
button,
input[type="button"],
input[type="submit"] {
    font-size: 16px;
    /* consistent font size */
    padding: 10px 20px;
    /* consistent padding */
    border-radius: 6px;
    /* rounded corners */
    border: none;
    /* remove default border */
    cursor: pointer;
    /* pointer on hover */
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    font-family: 'NeoSansPro', Arial, sans-serif;
    /* consistent font */
}

/* Primary button */
.vendor-btn,
.btn-primary {
    background-color: #ffc700 !important;
    color: #06213d !important;
    width: fit-content;
    padding: 15px 25px;
    margin: 2px;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.03em;
    border-radius: 100px !important;
    border-style: none;
    outline: none;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: transparent;
    transition: all 0.3s ease-in-out;
}

.btn-secondary {
    background-color: #21b6d7 !important;
    color: #06213d !important;
    width: fit-content;
    padding: 15px 25px;
    margin: 2px;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.03em;
    border-radius: 100px !important;
    border-style: none;
    outline: none;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: transparent;
    transition: all 0.3s ease-in-out;
}

.card-header,
.panel-heading {
    background-color: #ffdd00;
}

.card-body {
    margin: 10px;

}

.card-org,
.card-search {
    margin-left: -30px;
    margin-right: -40px;
    margin-top: -25px;
    margin-bottom: -40px;
}


/* Close buttons */
.close,
.close-btn,
.close-btn4,
.close-btn8,
.close-btn10 {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 30px;
    color: #aaa;
}

.close:hover,
.close-btn:hover,
.close-btn4:hover,
.close-btn8:hover,
.close-btn10:hover,
.close:focus,
.close-btn:focus,
.close-btn4:focus,
.close-btn8:focus,
.close-btn10:focus {
    color: #000;
    text-decoration: none;
}

/* Overlay */
.overlay,
#overlay,
.popup1,
.popup2,
.popup4,
.popup5 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

/* Popup content */
.popup-content,
.popup1-content,
.popup2-content,
.popup4-content,
.popup5-content,
.popup8-content,
.custom-dialog {
    text-align: center;
    padding: 20px;
}

/* Scrollable popup */
.popup8 {
    max-height: 650px;
    overflow-y: auto;
    width: 650px;
    z-index: 1000;
}

/* Buttons inside popup */
.button,
#openPopupBtn {
    margin: 10px 5px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
}

/* Loader/dots animation */
.loading {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: darkblue;
}

.dots {
    display: inline-block;
    margin-left: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background-color: black;
    border-radius: 50%;
    display: inline-block;
    animation: blink 1.5s infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {

    0%,
    20% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

/* Switch toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 90px;
    height: 34px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ca2222;
    transition: .4s;
    border-radius: 34px;
}

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

input:checked+.slider {
    background-color: #a0b92a;
}

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

input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

/* On/off inside switch */
.on,
.off {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    color: white;
    font-family: Verdana, sans-serif;
}

input:checked+.slider .on {
    display: block;
}

input:checked+.slider .off {
    display: none;
}

.on {
    display: none;
}

/* Error styling */
.errornew {
    border: 2px solid red !important;
}

.error-tooltip {
    display: none;
    position: absolute;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 5px;
    border-radius: 3px;
    font-size: 12px;
}

.errornew:hover+.error-tooltip {
    display: block;
}

.modulenameerror {
    color: red;
    font-size: 12px;
    margin-top: 5px;
}

/* Table header */
.table-header {
    border: 1px solid black !important;
    text-align: center;
}

/* Info icon */
.info-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.info-icon svg {
    fill: #007bff;
    width: 100%;
    height: 100%;
}

/* Progress circle */
.progress-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.progress-circle,
.progress-bar {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.progress-bar {
    clip: rect(0, 50px, 100px, 0);
    background-color: #e0e0e0;
}

.progress-text {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

.card-table,
.collapsible {
    background-color: #f4f5f5 !important;
}

.btn-sm {
    background-color: #21b6d7 !important;
    color: #06213d !important;
    width: fit-content;
    padding: 15px 25px;
    margin: 2px;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.03em;
    border-radius: 100px !important;
    border-style: none;
    outline: none;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: transparent;
    transition: all 0.3s ease-in-out;
}

.loader {
    width: 60px;
    height: 60px;
    border: 6px solid #ddd;
    border-top: 6px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


.tabContent {
    display: none;
}

.active-tab {
    display: block;
}

nav {
    overflow: visible !important;
}


:root {
    /* plus (collapsed) and minus (expanded) icons as encoded SVG data URIs */
    --accordion-plus: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Ccircle%20cx='12'%20cy='12'%20r='10'%20fill='%23ffffff'%20stroke='%23ffffff'%20stroke-width='2'/%3E%3Cpath%20d='M12%208v8M8%2012h8'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
    --accordion-minus: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Ccircle%20cx='12'%20cy='12'%20r='10'%20fill='%23ffffff'%20stroke='%23ffffff'%20stroke-width='2'/%3E%3Cpath%20d='M8%2012h8'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
}


/* default: collapsed -> plus (you already have this) */
.accordion-button::after {
    -webkit-transform: none !important;
    transform: none !important;
    width: 28px;
    height: 28px;
    margin-left: auto;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
    background-image: var(--accordion-plus) !important;
    border: 0;
    box-shadow: none !important;
}



/* IMPORTANT: when the accordion header is expanded it DOES NOT have .collapsed.
     Use that state to show the minus icon. */
.accordion-button:not(.collapsed)::after {
    background-image: var(--accordion-minus) !important;
    background-color: #06213d !important;
    border: none !important;
    
}

.accordion-button:not(.collapsed) {
    box-shadow: none !important;
}
.accordion-button,
.list-group-item {
    background-color: #06213d !important;
    color: #ffffff !important;
    font-size: 15px !important;
}

button.accordion-button.collapsed::after {
    color: #ffffff !important;
}

#leftMenuAccordion {
    margin: 20px;
    font-family: 'NeoSansPro', sans-serif !important;
}

.heading{
    font-weight: bold !important;
    font-size: 22px;
}
/* Tab content panels (we use .tabContent) */
.tabContent {
    display: none;
}

.tabContent.active {
    display: block;
}

.accordion,
.accordion-item,
.list-group {
    background: #06213d;
    border: none !important
}

.list-group-item {
    border: none !important;
    background-color: #06213d !important;
    color: #ffffff !important;
}

.list-group-item a {
    color: #ffffff !important;
    text-decoration: none !important;
    margin-left: 6px;

}

.list-group-item a:hover,
.list-group-item a:focus,
.list-group-item a:active {
    text-decoration: none !important;
    /* prevent underline on hover */
    color: #ffffff !important;
    /* optional: keep white */
}
/* Remove top & bottom rounded corners */
.list-group-item:first-child,
.list-group-item:last-child {
    border-radius: 0 !important;
}
/* Selected tab text: white + bold */
.list-group-item a.active {
    color: #ffdd00 !important;
    font-weight: 700 !important;
    font-size:18px;
}


.accordion-button:focus {
    outline: none !important;
    box-shadow: none !important;
}
.form-headers{
    color:#000 !important;
}
.form-label{
    font-weight: bold;
    font-size:16px;
}
/* card wrapper visual */
.form-panel {
    border-radius: 0.25rem;
    overflow: hidden;
  }
  
  /* each logical "row" (ECB / CBC / CBC-CS1...) gets a surrounding border */
  .mode-row {
    border: 1px solid #ccc;
    margin-bottom: 0;            /* rows touch each other visually */
    padding: 1rem 0;             /* spacing inside row */
    align-items: flex-start;
  }
  
  /* left label column fixed width look (first column) */
  .mode-row > .col-md-2 {
    border-right: 1px solid #ccc;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    display: flex;
    align-items: center;         /* vertical center the left label */
    min-width: 150px;
  }
  
  /* each content column has internal border to create column grid */
  /*.mode-row > .col-md-3,
  .mode-row > .col-md-6 {
    padding: 1rem 1.5rem;
    border-left: 1px solid #ccc;
    background: #fff;
  }*/
  
  /* avoid double borders on small screens where columns stack */
  @media (max-width: 767.98px) {
    .mode-row > .col-md-3,
    .mode-row > .col-md-6,
    .mode-row > .col-md-2 {
      border-left: none;
      border-right: none;
      border-top: 1px solid #eee;
    }
  
    .mode-row { padding: .75rem 0; }
  }
  
  /* label + control inline for short controls (Min/Max/Inc/Length) */
  .mode-row .form-control,
  .mode-row .form-check,
  .mode-row label {
    margin: 0;
  }
  
  /* make form-check inputs and their labels align horizontally */
  .mode-row .form-check {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .5rem;
  }
  
  /* smaller gap for grouped controls like Direction checkboxes */
  .mode-row .d-flex.gap-3,
  .mode-row .d-flex.gap-2 {
    gap: .75rem;
  }
  
  /* "Payload Length" two-row block: keep rows tight and inputs same-line labels */
  .payload-title { margin-bottom: .5rem; font-weight: 600; }
  .payload-row .col-md-6 { margin-bottom: .5rem; }
  
  /* subtle text sizes to match screenshot */
  .form-panel .card-body { font-size: .95rem; color: #222; }
  .form-panel-header h5 { font-weight: 600; margin: 0; }
  
  /* optional: make header sticky at top of card when page scrolls */
  .form-panel-header {
    position: sticky;
    top: 0;
    z-index: 5;
    border-bottom: 1px solid #eee;
    background-color: #0a2540 !important;
    color: #fff !important;
  }
  
  /* keep inputs full width inside each column */
  .mode-row input.form-control,
  .mode-row select.form-select {
    width: 100%;
  }
  
  /* small utility: remove extra bottom margin of nav inside card-body */
  .card-body nav { margin-bottom: .75rem; }
  .input {
    background-color:#f8f8f8 !important;
  }

.dynamic-back-link{
    font-size:18px;
    color:#ffc700;
    font-weight: bold;;
}
.mb-4{
    margin-top: 25px !important;
}
.error-message {
    color: red;
    font-weight: bold;
    font-size: 0.875rem; /* optional */
}

.progress-container {
    position: relative;
    width: 65px;
    height: 65px;
}

/* Hide extra circle if not needed */
.progress-circle {
    display: none;
}

/* Main ring */
.progress-bar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        conic-gradient(
            #3498db var(--progress, 0%),
            #e5e7eb 0
        );
    position: relative;

    /* CUT CENTER (IMPORTANT PART) */
    -webkit-mask: radial-gradient(
        farthest-side,
        transparent 70%,
        #000 71%
    );
    mask: radial-gradient(
        farthest-side,
        transparent 70%,
        #000 71%
    );

    transition: background 0.8s ease-in-out;
}

/* Percentage text in center */
.progress-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    color: #374151;
    pointer-events: none;
}
.icon{
    margin-right: 10px;
}

/* Container for server status + legend */
.server-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 20px;
}

/* Left text section */
.server-status-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.icon-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 14px;
    background: #f9fbfd;
    border: 1px solid #e2e6ea;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
}

.legend-title {
    font-weight: 600;
    margin-right: 6px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Base icon style */
.legend-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    margin-right: 10px;
}

/* Colors */
.legend-icon.oe { background: #0d6efd; }        /* OE Management */
.legend-icon.generate { background: #6610f2; }  /* Generate */
.legend-icon.download { background: #212529; }  /* Download */
.legend-icon.upload { background: #fd7e14; }    /* Upload */
.legend-icon.verify { background: #198754; }    /* Verify */
.legend-icon.certify { background: #6f42c1; }   /* Certify */
.legend-icon.view { background: #20c997; }      /* View */

/* Responsive */
@media (max-width: 768px) {
    .icon-legend {
        flex-wrap: wrap;
        gap: 10px;
    }
}
