/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    color: #333;
    line-height: 1.5;
    background-color: var(--bg-primary);
}

/* Layout Components */
section {
    margin: 20px;
}


.page-header {
    padding: 24px;
    border: 1px solid #c4c4c4;
    border-radius: 5px;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
}

.greating .container-fluid {
    background: linear-gradient(87deg, #00148edb, #00148e75 100%) !important;
    color: white;
    border-radius: 15px;
}

.greating-img {
    width: 8%;
    height: 23%;
    position: absolute;
    bottom: 64%;
    right: 1%;
    border-bottom-right-radius: 15px;

}

.page-header h1 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    position: relative;
    letter-spacing: 0.5px;
}

/* Container Styles */
.booking-section .container {
    max-width: 1200px;
    margin: 20px auto;

}

.booking-section modal-lg {
    --bs-modal-width: 1261px;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #2962B9;
}

.subtitle {
    color: #666;
    font-size: 16px;
    font-weight: normal;
    margin-left: 8px;
}

.clear-button {
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #00148E;
    border-radius: 50%;
    background-color: #f0f0f0;
    font-weight: bolder;
    display: flex;
    justify-content: center;
    align-items: center;
}

.refresh-select-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #00148E;
    border-radius: 50%;
    background-color: #f0f0f0;
    font-weight: bolder;
    display: flex;
    justify-content: center;
    align-items: center;
}


.select-refresh-group select {
    width: calc(100% - 30px);
}

.add-do-details-btn {
    background-color: #ffffff;
    padding: 5px 30px;
    color: rgb(0, 0, 0);
    display: flex;
    align-items: center;
    border: 1px solid #27548A;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 1px 1px 2px 0px #494949;
}

.add-do-details-btn:hover {
    background-color: #27548A;
    color: white;
    border: 1px solid #27548A;
}

.add-details-btn {
    background-color: #27548A;
    padding: 5px 30px;
    color: white;
    display: flex;
    align-items: center;
    border: none;
    gap: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 1px 1px 2px 0px #494949;
}


.edit-button {
    background-color: #003e68;
    padding: 5px 30px;
    color: white;
    align-items: center;
    border: none;
    gap: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 1px 1px 2px 0px #494949;

}

.proceed-btn {
    background: #317572;
    color: #222;
    border: none;
    border-radius: 2px;
    font-weight: 500;
    color: white;
    font-size: 1rem;
    padding: 5px 30px;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: none;
    outline: none;
    letter-spacing: 0.2px;
    box-shadow: 1px 1px 2px 0px #494949;
}



.add-invoice-btn {
    background: #003e68;
    color: #ffffff;
    text-decoration: none;
    border: none;
    padding: 5px 10px;
    box-shadow: 1px 1px 2px 0px #494949;
}


.view-details-btn {
    background-color: #003e68;
    color: #222;
    border: none;
    border-radius: 2px;
    font-weight: 500;
    color: white;
    font-size: 1rem;
    padding: 5px 30px;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: none;
    outline: none;
    letter-spacing: 0.2px;
    box-shadow: 1px 1px 2px 0px #494949;
}





/* Date Range and Form Fields */
.date-range {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Form Field Styles - Enhanced */
.form-group {
    position: relative;
    margin-bottom: 16px;
}

.form-group label {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    padding: 0 4px;
    color: #666;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    background-color: #fff;
    transition: all 0.3s ease;
    color: #333;
}

.form-group input:hover,
.form-group select:hover {
    border-color: #2962B9;
    background-color: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2962B9;
    box-shadow: 0 0 0 4px rgba(41, 98, 185, 0.1);
    background-color: #fff;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label {
    top: 0;
    font-size: 11px;
    color: #2962B9;
    font-weight: 600;
    background-color: #fff;
    padding: 0 4px;
    transform: translateY(-50%) scale(0.9);
    box-shadow: 0 0 0 2px #fff;
}

.form-group select:focus~label,
.form-group select:not([value=""])~label {
    top: 0;
    font-size: 11px;
    color: #2962B9;
    font-weight: 600;
    background-color: #fff;
    padding: 0 4px;
    transform: translateY(-50%) scale(0.9);
    box-shadow: 0 0 0 2px #fff;
}

/* Required Field Styles */
.form-group label.required::after {
    content: ' *';
    color: #dc3545;
    font-weight: 600;
    margin-left: 2px;
}

/* Date Field Specific Styles */
.date-field,
.select-field {
    position: relative;
}

.date-field label,
.select-field label {
    position: absolute;
    left: 12px;
    top: 0;
    transform: translateY(-50%);
    background-color: #fff;
    padding: 0 8px;
    color: #666;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon input,
.input-with-icon select {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.input-with-icon input:hover,
.input-with-icon select:hover {
    border-color: #2962B9;
    background-color: #f8f9fa;
}

.input-with-icon input:focus,
.input-with-icon select:focus {
    outline: none;
    border-color: #2962B9;
    box-shadow: 0 0 0 4px rgba(41, 98, 185, 0.1);
    background-color: #fff;
}

.input-with-icon i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-with-icon input:focus+i,
.input-with-icon select:focus+i {
    color: #2962B9;
}

/* Custom Select Styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 48px;
}

/* Search Input Specific Styles */
.search-input {
    width: 100%;
    padding: 8px 12px 8px 32px;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='11' cy='11' r='8'%3e%3c/circle%3e%3cline x1='21' y1='21' x2='16.65' y2='16.65'%3e%3c/line%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 14px;
}

.search-input:hover {
    border-color: #2962B9;
    background-color: #f8f9fa;
}

.search-input:focus {
    outline: none;
    border-color: #2962B9;
    box-shadow: 0 0 0 4px rgba(41, 98, 185, 0.1);
    background-color: #fff;
}

/* Disabled State */
.form-group input:disabled,
.form-group select:disabled,
.input-with-icon input:disabled,
.input-with-icon select:disabled {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

/* Error State */
.form-group.error input,
.form-group.error select,
.input-with-icon.error input,
.input-with-icon.error select {
    border-color: #dc3545;
}

.form-group.error label,
.input-with-icon.error label {
    color: #dc3545;
}

.form-group.error input:focus,
.form-group.error select:focus,
.input-with-icon.error input:focus,
.input-with-icon.error select:focus {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

/* Success State */
.form-group.success input,
.form-group.success select,
.input-with-icon.success input,
.input-with-icon.success select {
    border-color: #28a745;
}

.form-group.success label,
.input-with-icon.success label {
    color: #28a745;
}

.form-group.success input:focus,
.form-group.success select:focus,
.input-with-icon.success input:focus,
.input-with-icon.success select:focus {
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1);
}

/* Form Section */
.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.button-group {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.section-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
}

/* Button Icons */
.btn-excel i,
.btn-view i,
.btn-reset i,
.btn-next i,
.add-btn i {
    font-size: 16px;
}

/* Booking Detail Container */
.booking-detail-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 95%;
    max-width: 1600px;
    height: 100vh;
    background: #f8f9fa;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
    padding: 0;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.booking-detail-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.booking-detail-container.active {
    right: 0;
}

/* Booking Detail Header */
.booking-detail-container .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.booking-detail-container .header h2 {
    font-size: 22px;
    font-weight: 600;
    color: #2962B9;
    margin: 0;
}

.booking-detail-container .header button {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.booking-detail-container .header button:hover {
    background: #f5f5f5;
    color: #333;
}

/* Section Styles */
.section {
    background: #fff;
    margin: 16px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    position: relative;
    letter-spacing: 0.5px;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.form-group.half-row {
    grid-column: span 2;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Required Field Styles */
.form-group label.required {
    color: #dc3545;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .form-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .booking-detail-container {
        width: 100%;
    }

    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        margin: 12px;
        padding: 16px;
    }

    .header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .date-range,
    .form-row {
        grid-template-columns: 1fr;
    }

    .button-group,
    .section-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-excel,
    .btn-view,
    .btn-reset,
    .btn-next {
        width: 100%;
    }

    .section {
        margin: 12px;
        padding: 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.half-row {
        grid-column: auto;
    }

    .actions {
        flex-direction: column;
        padding: 16px;
    }

    .actions button {
        width: 100%;
        min-width: auto;
    }

    .search-field,
    .date-field {
        margin-bottom: 15px;
    }

    .form-group input,
    .form-group select,
    .search-input,
    .date-field input[type="date"],
    .input-with-icon input,
    .input-with-icon select {
        padding: 6px 10px;
        font-size: 12px;
    }

    .search-input {
        padding-left: 28px;
    }

    .form-group label {
        font-size: 11px;
    }
}



/* Remove Button Style */
.remove-transhipment {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-transhipment:hover {
    background-color: #c82333;
    transform: scale(1.1);
}

.remove-transhipment i {
    font-size: 14px;
}

/* Small Remove Button Style */
.remove-btn-small {
    background: #dc3545;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.remove-btn-small:hover {
    background-color: #c82333;
    transform: scale(1.1);
}

.remove-btn-small i {
    font-size: 14px;
}

/* Icon Button Container */
.icon-button-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

/* Icon Buttons */
.icon-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.icon-btn i {
    font-size: 16px;
}

/* Add Button */
.icon-btn.add-btn {
    background-color: #2962B9;
    color: white;
}

.icon-btn.add-btn:hover {
    background-color: #1e4b8f;
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(41, 98, 185, 0.2);
}

/* Remove Button */
.icon-btn.remove-btn {
    background-color: #dc3545;
    color: white;
}

.icon-btn.remove-btn:hover {
    background-color: #c82333;
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

/* Date Input Wrapper */
.date-input-wrapper {
    position: relative;
}

.date-input-wrapper input[type="date"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
    transition: all 0.2s;
    cursor: pointer;
}

.date-input-wrapper input[type="date"]:focus {
    outline: none;
    border-color: #2962B9;
    box-shadow: 0 0 0 3px rgba(41, 98, 185, 0.1);
}

/* Custom Checkbox and Radio Styling */
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: auto;
    margin-right: 8px;
}

/* Form Group with Icon */
.form-group-with-icon {
    position: relative;
}

.form-group-with-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
}

.form-group-with-icon input,
.form-group-with-icon select {
    padding-left: 40px;
}

/* Form Group with Right Icon */
.form-group-with-right-icon {
    position: relative;
}

.form-group-with-right-icon i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
}

.form-group-with-right-icon input,
.form-group-with-right-icon select {
    padding-right: 40px;
}

/* Filter Container Styles */
.filter-container {
    display: flex;
    align-items: center;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-label {
    background: #2962B9;
    padding: 8px 16px;
    color: white;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.filter-select {
    flex: 1;
    position: relative;
}

.filter-select select {
    width: 100%;
    padding: 8px 16px;
    padding-right: 40px;
    border: 1px solid #e0e0e0;
    background: white;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.3s ease;
}

.filter-select select:focus {
    outline: none;
    border-color: #2962B9;
    box-shadow: 0 0 0 3px rgba(41, 98, 185, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-label {
        min-width: 70px;
        font-size: 13px;
        padding: 8px 12px;
    }

    .filter-select select {
        padding: 8px 12px;
    }
}

/* table css :start */
.table {
    margin-bottom: 0;
    width: 100%;
}

.table> :not(caption)>*>* {
    padding: 12px 16px;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    /* max-width: 200px; */
}

/* Dropdown Overrides */
.table td:has(.dropdown) {
    overflow: visible;
    max-width: none;
}

.table td:has(.dropdown) .dropdown-menu {
    white-space: normal;
    text-overflow: clip;
    overflow: visible;
    max-width: none;
}

/*  */

.buttons-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 25px 0;
}

@media screen and (max-width: 768px) {
    .buttons-container {
        flex-direction: column;
    }
}

/* Section Title Labels */
.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #2962B9;
    position: relative;
    letter-spacing: 0.5px;
}

/* Table Header Labels */
.table th {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    background-color: #f8f9fa;
    padding: 12px 16px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e0e0e0;
}

/* Form Section Labels */
.form-section label {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin-bottom: 6px;
    display: block;
}

/* Search Field Label */
.search-field label {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin-bottom: 6px;
    display: block;
}

/* Error State Labels */
.form-group.error label {
    color: #dc3545;
}

.form-group.error input:focus~label,
.form-group.error select:focus~label {
    color: #dc3545;
    box-shadow: 0 0 0 2px #fff;
}

/* Success State Labels */
.form-group.success label {
    color: #28a745;
}

.form-control input {

    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

.form-group.success input:focus~label,
.form-group.success select:focus~label {
    color: #28a745;
    box-shadow: 0 0 0 2px #fff;
}

/* Disabled State Labels */
.form-group input:disabled~label,
.form-group select:disabled~label {
    color: #999;
    cursor: not-allowed;
}

/* Label Animation */
@keyframes labelFloat {
    0% {
        transform: translateY(-50%) scale(1);
    }

    50% {
        transform: translateY(-50%) scale(0.95);
    }

    100% {
        transform: translateY(-50%) scale(0.9);
    }
}

.form-group input:focus~label,
.form-group select:focus~label {
    animation: labelFloat 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Dark Mode Label Styles */
@media (prefers-color-scheme: dark) {
    .form-group label {
        color: var(--text-primary);
        background-color: var(--label-bg);
    }

    .form-group input:focus~label,
    .form-group input:not(:placeholder-shown)~label,
    .form-group select:focus~label,
    .form-group select:not([value=""])~label {
        color: var(--text-primary);
        background-color: var(--label-bg);
    }

    .form-group input,
    .form-group select,
    .input-with-icon input,
    .input-with-icon select,
    .search-input {
        background-color: var(--input-bg);
        border-color: var(--border-color);
        color: var(--input-text);
    }

    .form-group input:hover,
    .form-group select:hover,
    .input-with-icon input:hover,
    .input-with-icon select:hover,
    .search-input:hover {
        background-color: #2d2d2d;
        border-color: var(--border-color);
    }

    .form-group input:focus,
    .form-group select:focus,
    .input-with-icon input:focus,
    .input-with-icon select:focus,
    .search-input:focus {
        background-color: var(--input-bg);
        border-color: var(--button-primary);
        box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.1);
        color: var(--input-text);
    }

    /* Placeholder styles for dark mode */
    .form-group input::placeholder,
    .form-group select::placeholder,
    .input-with-icon input::placeholder,
    .input-with-icon select::placeholder,
    .search-input::placeholder,
    .form-control::placeholder,
    .form-select::placeholder,
    input[type="text"]::placeholder,
    input[type="email"]::placeholder,
    input[type="password"]::placeholder,
    input[type="number"]::placeholder,
    input[type="search"]::placeholder,
    input[type="tel"]::placeholder,
    input[type="url"]::placeholder,
    input[type="date"]::placeholder,
    input[type="datetime-local"]::placeholder,
    input[type="month"]::placeholder,
    input[type="week"]::placeholder,
    input[type="time"]::placeholder,
    textarea::placeholder {
        color: #808080 !important;
        opacity: 1 !important;
    }

    /* Firefox placeholder color */
    .form-group input::-moz-placeholder,
    .form-group select::-moz-placeholder,
    .input-with-icon input::-moz-placeholder,
    .input-with-icon select::-moz-placeholder,
    .search-input::-moz-placeholder,
    .form-control::-moz-placeholder,
    .form-select::-moz-placeholder,
    input[type="text"]::-moz-placeholder,
    input[type="email"]::-moz-placeholder,
    input[type="password"]::-moz-placeholder,
    input[type="number"]::-moz-placeholder,
    input[type="search"]::-moz-placeholder,
    input[type="tel"]::-moz-placeholder,
    input[type="url"]::-moz-placeholder,
    input[type="date"]::-moz-placeholder,
    input[type="datetime-local"]::-moz-placeholder,
    input[type="month"]::-moz-placeholder,
    input[type="week"]::-moz-placeholder,
    input[type="time"]::-moz-placeholder,
    textarea::-moz-placeholder {
        color: #808080 !important;
        opacity: 1 !important;
    }

    /* Edge placeholder color */
    .form-group input::-ms-input-placeholder,
    .form-group select::-ms-input-placeholder,
    .input-with-icon input::-ms-input-placeholder,
    .input-with-icon select::-ms-input-placeholder,
    .search-input::-ms-input-placeholder,
    .form-control::-ms-input-placeholder,
    .form-select::-ms-input-placeholder,
    input[type="text"]::-ms-input-placeholder,
    input[type="email"]::-ms-input-placeholder,
    input[type="password"]::-ms-input-placeholder,
    input[type="number"]::-ms-input-placeholder,
    input[type="search"]::-ms-input-placeholder,
    input[type="tel"]::-ms-input-placeholder,
    input[type="url"]::-ms-input-placeholder,
    input[type="date"]::-ms-input-placeholder,
    input[type="datetime-local"]::-ms-input-placeholder,
    input[type="month"]::-ms-input-placeholder,
    input[type="week"]::-ms-input-placeholder,
    input[type="time"]::-ms-input-placeholder,
    textarea::-ms-input-placeholder {
        color: #808080 !important;
        opacity: 1 !important;
    }
}

/* Light Mode Colors */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --input-bg: #ffffff;
    --input-border: #e0e0e0;
    --input-text: #333333;
    --button-primary: rgb(4 120 87);
    --button-primary-hover: rgb(3 100 72);
    --button-secondary: #6c757d;
    --button-secondary-hover: #5a6268;
    --table-header: #f8f9fa;
    --table-border: #e0e0e0;
    --card-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --label-bg: #ffffff;
}

/* Input styles for light mode */
.form-group input,
.form-group select,
.input-with-icon input,
.input-with-icon select,
.search-input,
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="color"],
select,
textarea {
    background-color: #ffffff !important;
    border-color: var(--input-border);
    color: var(--input-text);
}

/* Hover state for light mode */
.form-group input:hover,
.form-group select:hover,
.input-with-icon input:hover,
.input-with-icon select:hover,
.search-input:hover,
.form-control:hover,
.form-select:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="search"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
input[type="date"]:hover,
input[type="datetime-local"]:hover,
input[type="month"]:hover,
input[type="week"]:hover,
input[type="time"]:hover,
input[type="color"]:hover,
select:hover,
textarea:hover {
    background-color: #ffffff !important;
    border-color: var(--button-primary);
}

/* Focus state for light mode */
.form-group input:focus,
.form-group select:focus,
.input-with-icon input:focus,
.input-with-icon select:focus,
.search-input:focus,
.form-control:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="color"]:focus,
select:focus,
textarea:focus {
    background-color: #ffffff !important;
    border-color: var(--button-primary);
    box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.1);
}

/* Placeholder styles for light mode */
.form-group input::placeholder,
.form-group select::placeholder,
.input-with-icon input::placeholder,
.input-with-icon select::placeholder,
.search-input::placeholder,
.form-control::placeholder,
.form-select::placeholder,
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="number"]::placeholder,
input[type="search"]::placeholder,
input[type="tel"]::placeholder,
input[type="url"]::placeholder,
input[type="date"]::placeholder,
input[type="datetime-local"]::placeholder,
input[type="month"]::placeholder,
input[type="week"]::placeholder,
input[type="time"]::placeholder,
textarea::placeholder {
    color: #999999 !important;
    opacity: 1 !important;
}

/* Apply Colors */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.form-group input,
.form-group select,
.input-with-icon input,
.input-with-icon select,
.search-input {
    background-color: #000000;
    border-color: var(--input-border);
    color: var(--input-text);
}

.form-group input:hover,
.form-group select:hover,
.input-with-icon input:hover,
.input-with-icon select:hover,
.search-input:hover {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

.form-group input:focus,
.form-group select:focus,
.input-with-icon input:focus,
.input-with-icon select:focus,
.search-input:focus {
    background-color: var(--input-bg);
    border-color: var(--button-primary);
    box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.1);
    color: var(--input-text);
}

.form-group label {
    color: var(--text-secondary);

}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group select:focus~label,
.form-group select:not([value=""])~label {
    color: var(--button-primary);

}

.btn-outline-secondary {
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-outline-secondary:hover {
    background-color: var(--button-secondary);
    border-color: var(--button-secondary-hover);
    color: var(--text-primary);
}

.btn-outline-primary {

    border-color: var(--button-primary);
}

.btn-outline-primary:hover {
    background-color: var(--button-primary);
    border-color: var(--button-primary);
    color: var(--text-primary);
}

.table {
    color: var(--text-primary);
}

.table-light {
    background-color: var(--table-header);
    color: var(--text-primary);
}

.table-bordered {
    border-color: var(--table-border);
}

.table-bordered td,
.table-bordered th {
    border-color: var(--table-border);
}

.table thead th {
    background-color: var(--table-header);
    color: var(--text-primary);
    border-bottom-color: var(--table-border);
}

.table tbody td {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.modal-content {
    background-color: var(--card-bg);
    color: var(--text-primary);
}

.modal-header {
    border-bottom-color: var(--border-color);
}

.modal-footer {
    border-top-color: var(--border-color);
}

.btn-secondary {
    background-color: var(--button-secondary);
    border-color: var(--button-secondary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--button-secondary-hover);
    border-color: var(--button-secondary-hover);
    color: var(--text-primary);
}

.btn-primary {
    background-color: var(--button-primary);
    border-color: var(--button-primary);
    color: var(--text-primary);
}

.btn-primary:hover {
    background-color: var(--button-primary-hover);
    border-color: var(--button-primary-hover);
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-primary {
    color: var(--button-primary) !important;
}

hr {
    border-color: var(--border-color);
}

.card-body {
    background-color: var(--card-bg);
    color: var(--text-primary);
}

.shadow-sm {
    box-shadow: 0 .125rem .25rem var(--shadow-color) !important;
}

/* Form Controls */
.form-control {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--input-text);
}

.form-control:focus {
    background-color: var(--input-bg);
    border-color: var(--button-primary);
    color: var(--input-text);
}

.form-select {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--input-text);
}

.form-select:focus {
    background-color: var(--input-bg);
    border-color: var(--button-primary);
    color: var(--input-text);
}

/* Placeholder and Disabled States */
.form-group input::placeholder,
.form-group select::placeholder,
.input-with-icon input::placeholder,
.input-with-icon select::placeholder {
    color: var(--text-secondary);
}

.form-group input:disabled,
.form-group select:disabled,
.input-with-icon input:disabled,
.input-with-icon select:disabled {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
}

.salary-head-edit {
    display: none;
}

.modal .form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

/* ISF Outlined Square Action Buttons (colored border and icon, no fill) */
.isf-actions {
    display: flex;
    gap: 16px;
}

.isf-btn {
    width: 25px;
    height: 25px;
    border: 1px solid;

    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    padding: 0;
    transition: none;
    box-shadow: none;
}

.isf-btn-edit {
    border-color: #00148E;
    color: #00148E;
}


.isf-btn-refresh {
    border-color: #f2c200;
    color: #f2c200;
}

.isf-btn-delete {
    border-color: #e53935;
    color: #e53935;
}

.isf-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px #bbb;
}

.isf-btn-upload {
    color: #28a745;
}

.create-hbl-btn {
    border: none;
    color: rgb(153, 0, 255);
    background: none;
}

/* Add Edit hbl button */
.add-pkg-details-row,
.remove-pkg-details-row {
    color: purple;
    font-size: 35px;
}

.remove-pkg-details-row {
    color: rgb(0, 57, 110);
    font-size: 35px;
}

/* ===== SIMPLE BUT ATTRACTIVE SECTION BUTTON DESIGNS ===== */

/* Section Toggle Button Styles */
.section-toggle-btn {
    background: linear-gradient(90deg, #004A49 0%, #166968 100%);
    color: rgb(255, 255, 255);
    border: none;
    padding: 10px 10px;

    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.select-refresh-group select {
    width: calc(100% - 30px);
}

.section-toggle-btn .bi-chevron-right {
    transition: transform 0.3s;
}

.section-toggle-btn[aria-expanded="true"] .bi-chevron-right {
    transform: rotate(90deg);
}
.sm-unified-btn{
    padding: 3px 7px !important;
    border: 1px solid #27548A;
    background-color: #ffffff;
    cursor: pointer;
}

.sm-unified-btn:hover {
    padding: 3px 7px !important;
    border: 1px solid #27548A;
    background-color: #27548A;
    cursor: pointer;
    color: #ffffff;
}

.sm-fill-btn {
    padding: 3px 7px !important;
    border: 1px solid #27548A;
    background-color: #27548A;
    cursor: pointer;
    color: #ffffff;
}

