/* 
 Theme Name:   hello elementor child
 Theme URI:    
 Description:  child theme of elementor
 Author:       admin
 Author URI:   https://wordpress-589117-4740142.cloudwaysapps.com
 Template:     hello-elementor
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

 /* == Add your own styles below this line ==
--------------------------------------------*/

.header {
  position: sticky;
  top: 0;
  padding: 10px 16px;
  background: #555;
  color: #f1f1f1;
}

body {
    height: 100%;
    margin: 0;
    font-family: 'Arial', sans-serif;
    color: #333;
    background-color: #f4f4f4;
}



.container {
    width: 90%;
    max-width: 1400px;
    margin: auto;
    padding: 20px;
}

h1 {
    color: #333;
    text-align: left;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

table,
th,
td {
    border: 1px solid #ddd;
}

th,
td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f4f4f4;
}

.submit-new-package {
    background-color: #28a745;
    border: none;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 20px;
    display: block;
    width: 200px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.submit-new-package:hover {
    background-color: #218838;
}

#upload-form-container {
    display: none;
    margin-top: 40px;
}

.change-log {
    color: #007BFF;
    font-size: 14px;
    margin-top: 5px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-group input[type="file"] {
    padding: 0;
}

.table-container {
    margin-top: 20px;
    overflow-x: auto;
}

.actions .btn,
.actions button,
.actions .button,
.form-group button {
    background-color: #075fb9;
    border: none;
    color: #fff;
    padding: 5px 6px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
    margin: 0 5px;
    display: inline-block;
}

.form-group button:hover,
.actions button:hover,
.actions .button:hover {
    background-color: #333333;
    color: #ffffff;
    text-decoration: none;
}

.form-group button {
    background-color: #FF6347;
}

.flex--group input[type=text] {
    margin: 0;
    max-width: 100%;
    width: 340px;
}

.flex--group {
    display: flex;
    flex-flow: row wrap;
}

.actions button.show {
    display: inline-block;
}

.status-approved {
    color: #28a745;
    font-weight: bold;
}

.status-amendment {
    color: #dc3545;
    font-weight: bold;
}

.actions .reupload-btn {
    background-color: #ffc107;
}

.actions .reupload-btn:hover {
    background-color: #e0a800;
}

.error {
    color: #dc3545;
    margin-top: 10px;
}

.flex--wrap {
    display: flex;
    flex-flow: row wrap;
    height: 100%;
}

table#qa-package-table {
    margin-top: 1rem;
}

#page {
    height: 100%;
}

.nav {
    background: rgb(0, 0, 102) !important;
    color: #ffffff !important;
    padding: 15px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    overflow-x: auto;
}

.nav h2 {
    color: #ffffff !important;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    padding: 0 15px;
    display: block;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.nav ul li {
    margin: 0;
}

.nav ul li a {
    color: #ffffff !important;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav ul li a:hover,
.nav ul li.active a {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.main-content {
    margin-left: 0;
    padding: 20px;
    flex: 1 1;
    background-color: #f4f4f9;
    overflow-y: auto;
}

.header {
    background-color: #003366;
    color: #fff;
    padding: 15px 20px;
    border-bottom: 4px solid #00509e;
}

.footer {
    background-color: #eaeaea;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    border-top: 1px solid #ddd;
    margin-top: auto;
}

.container {
    max-width: 1200px;
    margin: auto;
}

.section {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section h2 {
    margin-top: 0;
    font-size: 22px;
    border-bottom: 2px solid #00509e;
    padding-bottom: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

table,
th,
td {
    border: 1px solid #ddd;
}

th,
td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #00509e;
    color: #fff;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

.actions {
    text-align: center;
}

table .actions {
    text-align: left;
}

.reset-btn,
.filter-btn {
    background-color: #FF6347;
    border: none;
    color: #fff;
    padding: 10px 15px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
}

.reset-btn:hover,
.filter-btn:hover {
    background-color: #FF4500;
}

.filter-input {
    margin-bottom: 15px;
    padding: 8px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.reference-table {
    margin-top: 20px;
    border: 1px solid #ddd;
}

.reference-table th,
.reference-table td {
    padding: 12px;
}

.reference-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.reference-table th {
    background-color: #00509e;
    color: #fff;
}

.reference-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reference-actions button {
    margin: 5px;
}

footer {
    display: none;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 8px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 8px solid #4CAF50;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.tooltip-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    z-index: 100;
    top: -27px;
    left: 0px;
}

.tooltip-content button {
    margin-right: 5px;
}

/* RFQ Form */

.form-container {
    display: flex;
    flex-wrap: wrap;
}

.form-column {
    flex: 1;
    min-width: 300px;
    padding: 10px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input,
select,
textarea,
button {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input[type="file"] {
    padding: 5px;
}

button {
    background-color: #4CAF50;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.btn-submit {
    display: inline-block;
    width: auto;
    padding: 10px 20px;
    margin-right: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
}

div#uploaded-urls {
    display: flex;
    align-items: center;
}

.uploaded-file>img {
    width: 200px;
}

.uploaded-file {
    position: relative;
    margin-left: 16px;
}

span.remove-file {
    position: absolute;
    font-size: 19px;
    left: 2px;
    top: 1px;
}

.setheadingtitle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setheadingtitle label {
    font-size: 21px;
}

#registrationModal .modal-content {
    display: block;
}

table thead th {
    background: #00509e;
}

input[type=checkbox],
input[type=radio] {
    width: auto;
}

button.btn-close {
    border: 0;
    background: none;
    color: #000000;
    font-size: 24px;
    padding: 0;
    line-height: 30px;
}

button.btn-close:hover,
button.btn-close:focus,
button.btn-close:focus-within {
    border: 0;
    color: #00000060;
    background: none;
}

a.removeitemmore {
    color: #ffffff;
    background: #c36;
    padding: 7px 12px;
    border-radius: 4px;
}

a.removeitemmore:hover {
    color: #ffffff;
    background: #333333;
}

.status-received {
    color: #28a745;
}

.status-pending {
    color: #ffc107;
}

.status-declined {
    color: #dc3545;
}

.status-completed {
    color: #007bff;
}

.highlight {
    background-color: #d4edda;
}

.declined {
    background-color: #f8d7da;
}

#currency-popup {
    display: none;
    position: fixed;
    top: 20%;
    left: 20%;
    width: 60%;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#currency-popup input {
    margin-right: 10px;
}

#currency-popup button {
    margin-top: 10px;
}

#currency-popup .close {
    cursor: pointer;
    color: red;
    font-size: 20px;
    float: right;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    border-radius: 8px;
    overflow: hidden;
}

/* Style for close button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    font-size: 24px;
}

/* Popup background overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99;
}

.table-responsive {
    overflow: auto;
    max-height: calc(100vh - 300px);
    margin-top: 20px;
}

.button--group {
    margin-top: 20px;
}

.pdf-links-vendor,
.pdf-links {
    display: flex;
}

.pdf-links-vendor li,
.pdf-links li {
    padding: 20px;
    border: 1px solid #ccc;
    list-style: none;
    margin-right: 27px;
}

.documentviews {
    text-align: center;
    border-bottom: 1px solid #ccc;
    margin-top: 21px;
    padding-bottom: 20px;
}

.documentviews:last-child {
    border: none;
}

.stickyhead {
    width: 100%;
    border-collapse: collapse;
}

.stickyhead thead {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 10px;
}

.setimages img {
    width: 100px !important;
}

.setimages {
    display: grid;
    grid-template-columns: auto auto auto;
}

.dt-layout-cell.dt-layout-full {
    overflow: auto;
    max-height: calc(100vh - 150px);
    margin-top: 20px;
}

.dt-layout-cell.dt-layout-start label {
    text-transform: capitalize !important;
}

.button {
    background-color: #003d7a;
    border: none;
    color: #fff;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
}

.button:hover {
    color: #fff;
}

#currency-popup {
    height: 500px;
    overflow: scroll;
}

#changeLogModal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

#changeLogModal .modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 60%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

#changeLogModal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

#changeLogModal .close:hover,
#changeLogModal .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#changeLogPopup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    max-width: 800px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.closePopup {
    cursor: pointer;
    color: #888;
    font-size: 20px;
    font-weight: bold;
    float: right;
}

/* Add CSS to ensure the buttons are centered at the bottom of the form */
.form-group.row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px; /* Add margin-bottom to create a gap between form groups */
}

.form-group .col-md-12.text-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.form-group.row.justify-content-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* ===================================
   WORDPRESS HEADER NAVIGATION STYLES
   =================================== */

/* Main site navigation - ensure consistent styling across all pages */
.site-navigation,
nav.site-navigation,
body .site-navigation,
body nav.site-navigation {
    background: #ffffff !important;
    background-color: #ffffff !important;
    padding: 5px 5px !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    position: relative !important;
    width: 50% !important;
    min-height: 15px !important;
}

/* Navigation menu container */
.site-navigation .menu,
.site-navigation #menu-primary-menu,
.site-navigation #menu-primary-menu-1 {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
    white-space: nowrap !important;
}

/* Individual menu items */
.site-navigation .menu-item,
.site-navigation li.menu-item,
.site-navigation .hfe-menu-item {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

/* Menu item links */
.site-navigation .menu-item a,
.site-navigation li.menu-item a,
.site-navigation .hfe-menu-item a,
.site-navigation #menu-primary-menu a,
.site-navigation #menu-primary-menu-1 a {
    color: #333333 !important;
    text-decoration: none !important;
    padding: 10px 15px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

/* Menu item hover effects */
.site-navigation .menu-item:hover,
.site-navigation li.menu-item:hover,
.site-navigation .hfe-menu-item:hover {
    background: rgba(0,0,0,0.05) !important;
}

.site-navigation .menu-item a:hover,
.site-navigation li.menu-item a:hover,
.site-navigation .hfe-menu-item a:hover {
    color: #007cba !important;
    background: rgba(0,123,186,0.1) !important;
}

/* Ensure no background overrides from other CSS files */
.site-navigation *,
.site-navigation-dropdown *,
#menu-primary-menu *,
#menu-primary-menu-1 * {
    background: inherit !important;
    background-color: inherit !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .site-navigation,
    nav.site-navigation {
        padding: 10px 15px !important;
        justify-content: center !important;
    }
    
    .site-navigation .menu,
    .site-navigation #menu-primary-menu,
    .site-navigation #menu-primary-menu-1 {
        gap: 10px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    .site-navigation .menu-item a,
    .site-navigation li.menu-item a {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }
}