/* Main Navigation  */
.w3-top {
    z-index: 9999 !important;
}

#myNavbar {
    background: linear-gradient(135deg, #001f3f 0%, #000428 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 8px 32px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    overflow: visible !important;
}

.w3-dropdown-content {
    display: none;
    position: absolute;
    min-width: 280px !important;
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0,0,0,0.05);
    margin-top: auto;
    padding: 8px 0;
    z-index: 10000 !important;
}


@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.w3-dropdown-hover:hover .w3-dropdown-content {
    display: block !important;
    animation: fadeInSlide 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.w3-dropdown-hover:hover > .nav-btn {
    color: #ff5722 !important;
    background: rgba(255, 255, 255, 0.1) !important;
}


.nav-btn {
    background: transparent !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 10px 18px !important;
    border: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    color: white;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ff5722 !important;
    transform: translateY(-1px);
}

.w3-dropdown-content .w3-bar-item {
    padding: 12px 24px !important;
    font-size: 0.95rem;
    color: #333 !important;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: block;
}


.w3-hover-to-right:hover {
    padding-left: 35px !important;
    background-color: #f0f7ff !important;
    color: #004e92 !important;
}

.lang-select {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 10px;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    font-size: 0.85rem;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 8px;
}

@media screen and (max-width: 950px) {
    #myNavbar { padding: 8px 15px; }
}



/* Custom Colors  */
.w3-blue-light-dark{
    background: linear-gradient(to right, #004e92, #000428);
    color: white;
}
.w3-blue-dark-light{
    background: linear-gradient(to right, #000428, #004e92);
    color: white;
}
.w3-blue-dark{
    background-color: #000428;
    color: white;
}
.w3-blue-light{
  background-color: #004e92;
  color: #ffffff;
}
.w3-text-blue-dark{
    color: #000428;
}
.w3-text-blue-light{
    color: #004e92;
}


/* List Style  */
/* Table Styling */
.custom-table thead th {
    padding: 16px 12px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.05em;
    border: none !important;
}
.custom-table tbody td {
    padding: 20px 12px !important;
    border-bottom: 1px solid #f1f1f1 !important;
}
.table-row-hover {
    transition: all 0.2s ease;
}
.table-row-hover:hover {
    background-color: #cdf1fd !important;
    transform: scale(1.002);
    box-shadow: inset 4px 0 0 #2196F3;
}

/* Item Summary Box */
.item-summary-box {
    background: #fcfcfc;
    border-radius: 8px;
    padding: 8px 12px;
}
.item-line {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    font-size: 0.82rem;
}
.item-dot {
    height: 6px;
    width: 6px;
    background-color: #ddd;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}
.item-name { color: #555; flex-grow: 1; }
.item-qty { color: #999; font-weight: 600; margin-left: 10px; }

/* Financials */
.total-amount {
    font-weight: 700;
    color: #1a237e;
    font-size: 1.1rem;
}
.exchange-small {
    font-size: 0.75rem;
    color: #9e9e9e;
}

/* Status Badges */
.status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    min-width: 100px;
}
.status-approved { background-color: #e8f5e9; color: #2e7d32; }
.status-pending { background-color: #fff3e0; color: #ef6c00; }
.status-expired { background-color: #ffebee; color: #c62828; }
.status-default { background-color: #e3f2fd; color: #1565c0; }




/* ็Header Card Filter  */
/* Main Flex Layout */
.header-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.title-section {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
}

.icon-badge {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.2);
}

/* Search Form Layout */
.search-section {
    flex-grow: 1;
    max-width: 800px;
}

.search-form-layout {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.search-item {
    flex: 1;
}

.status-box { flex: 0.6; min-width: 140px; }
.query-box { flex: 1.4; min-width: 200px; }
.button-box { flex: 0.4; min-width: 120px; }

/* Modern Inputs */
.input-icon-group {
    position: relative;
    display: flex;
    align-items: center;
}

.icon-inside {
    position: absolute;
    left: 15px;
    color: #9e9e9e;
    pointer-events: none;
}

.modern-input {
    width: 100%;
    height: 48px;
    padding: 0 15px 0 42px !important;
    border: 1.5px solid #eee;
    border-radius: 12px;
    background-color: #f9f9f9;
    font-size: 0.95rem;
    transition: all 0.3s;
    appearance: none;
}

.modern-input:focus {
    border-color: #2196F3;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.08);
}

.modern-btn-search {
    width: 100%;
    height: 48px;
    background-color: #1a237e;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.modern-btn-search:hover {
    background-color: #283593;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.3);
}
/* Hide Scrollbar For Chrome, Safari and Opera */
.w3-responsive::-webkit-scrollbar {
    display: none;
}

/* Hide Scrollbar For IE, Edge and Firefox */
.w3-responsive {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Responsive */
@media (max-width: 768px) {
    .header-flex-container { flex-direction: column; align-items: flex-start; }
    .search-form-layout { flex-direction: column; gap: 10px; }
    .search-section { width: 100%; }
    .search-item { width: 100%; }
    .status-box, .query-box, .button-box { flex: 1; }
}
