
.pla-bootstrap .swal2-popup *, 
.pla-bootstrap .swal2-popup *::before, 
.pla-bootstrap .swal2-popup *::after {
    box-sizing: content-box !important;
}

body.pla-bootstrap {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh; /* Full viewport height */
    overflow: hidden; /* Prevent body from scrolling */
}

main {
    display: flex;
    flex-grow: 1; /* Take up remaining space */
    width: 100%;
    overflow: hidden; /* Prevent main from scrolling by default */
}

section {
    display: flex;
    flex-direction: column;
    height: 100%; /* Full height of parent */
    overflow-y: auto; /* Enable vertical scrolling if content overflows */
    padding: 1rem; /* Optional: Add padding for better spacing */
}

/* Adjust the layout for screens below the xl threshold */
@media (max-width: 1199.98px) {
    main {
        flex-direction: column; /* Stack sections vertically */
        overflow-y: auto; /* Allow main to scroll vertically */
    }

    section {
        height: auto; /* Allow sections to expand to fit their content */
        overflow-y: visible; /* Disable scrolling within sections */
    }
}

.pla-bootstrap {
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

.pla-dark-blue-bg {
    background-color: #002e92 !important;
    color: white !important;
}

.pla-light-blue-bg {
    background-color: #dce6f1 !important;
}

.card {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.section-header {
    padding: 8px;
    border-radius: 5px;
    font-size: 1.2rem;

}
.card-header {
    padding: 8px;
    border-radius: 5px;
    font-size: .5rem;
    width: auto!important;
    position: absolute;
    top: -25px;
    left: -10px;
}

.container-fluid {
    margin-top: 15px;
}


.charge-header {
    font-size: 1.25rem;
    font-weight: bold;
    background: #002e92;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 6px;
}

.charge-subheader {
    font-weight: bold;
    padding-bottom: 5px;
    border-bottom: 2px solid #e9ab00;
}

.charge-row {
    padding: 8px 0;
}

.border-divider {
    border-bottom: 1px solid #ddd;
}

.charge-total {
    position: relative;
    font-weight: bold;
    padding: 8px 0;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    border-left: none;
    border-right: none;
    background-clip: content-box;
    background-color: #dce6f1;
}

.charge-total::before,
.charge-total::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: black;
}

.charge-total::before {
    top: -4px; /* Moves the extra top border up */
}

.charge-total::after {
    bottom: -4px; /* Moves the extra bottom border down */
}

.charge-table tr:hover {
    background-color: #ffefc2;
}

.btn-custom {
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    border: none;
    padding: 10px 20px;
}

.btn-custom:hover {
    background-color: #0056b3;
}

.border-top-yellow {
    border-top: 6px solid #e9ab00!important;
}

.border-bottom-yellow {
    border-bottom: 6px solid #e9ab00!important;
    border-radius: 8px!important;
}

.form-select {
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ab00;
    border-radius: 8px;
}

.form-select:focus {
    border-color: #e9ab00;
    box-shadow: 0 0 5px rgba(233, 171, 0, 0.7);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: bold;
    color: #333;
}

input, select {
    border-radius: 5px!important;
}

.selectpicker {
    width: 100% !important;
    transition: box-shadow 0.3s ease;
}
.selectpicker:focus {
    box-shadow: 0 0 5px rgba(233, 171, 0, 0.7);
}

.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) {
    width: 100%; /* Set width to 100% for full width */
}

.bootstrap-select {
    width: 100%; /* Set width to 100% for full width */
    vertical-align: middle;
}

.form-label.required::after {
    content: " *";
    color: red;
}

/* Scale up animation for error messages */
@keyframes scaleUp {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Add the animation to the error spans */
.error-animation {
    animation: scaleUp 0.3s ease-out forwards;
    display: block;
    transform-origin: top; /* Ensures scaling happens from the top to prevent layout shift */
    transform: scale(1); /* Maintain original size when not animated */
    height: 30px; /* Ensure height when invisible is the same as scaled up */
}

/* Error text styling (modern version with scaling animation) */
.text-danger {
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;  
    font-weight: 500; /* Slightly bold */
    color: #e74c3c; /* Modern red color */
    background: rgba(231, 76, 60, 0.1); /* Light red background */
    padding: 5px 10px; /* Padding for better feel */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
    opacity: 0; /* Start invisible */
    transform: scale(0); /* Start scaled down */
    display: inline-block; /* To prevent the span from taking full width */
    transition: transform 0.3s ease, opacity 0.3s ease; /* Smooth transition */
}

/* Class to scale and show the error message */
.text-danger.scale-up {
    opacity: 1;
    transform: scale(1);
}

/* Optional: Smooth color transition */
.text-danger:hover {
    color: #c0392b; /* Darker red on hover */
    background: rgba(231, 76, 60, 0.15); /* Darker background */
}

/* Adjust spacing between the label and error message */
.d-flex .form-label {
    margin-bottom: 0; /* Removes the bottom margin to reduce space */
}

.d-flex .text-danger {
    margin-left: 10px; /* Adjust the margin between the label and the error */
    font-size: 0.875rem; /* Smaller font size for the error message */
}

/* Optional: If you want the error message to stay inline and not wrap to the next line */
.d-flex {
    flex-wrap: nowrap; /* Prevent wrapping if space is tight */
}

div:where(.swal2-container) h2:where(.swal2-title) {
    font-weight: 600!important;
}

.swal2-popup {
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

/* Modern scrollbar for WebKit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px; /* Thin scrollbar width */
    height: 8px; /* Thin scrollbar height for horizontal scrollbars */
}

::-webkit-scrollbar-track {
    background: #f0f4ff; /* Light blue-gray track to complement #002e92 */
    border-radius: 4px; /* Rounded corners for the track */
}

::-webkit-scrollbar-thumb {
    background: #002e92; /* Deep blue scrollbar thumb */
    border-radius: 4px; /* Rounded corners for the thumb */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border for depth */
}

::-webkit-scrollbar-thumb:hover {
    background: #e9ab00; /* Golden yellow on hover */
    border-color: rgba(255, 255, 255, 0.3); /* Slightly lighter border on hover */
}

/* Modern scrollbar for Firefox */
* {
    scrollbar-width: thin; /* Thin scrollbar */
    scrollbar-color: #002e92 #f0f4ff; /* Thumb and track colors */
}

.btn {
    border-radius: 8px!important;
}

#total_estuary_conservancy_charge::before {
    display: none;
    content: "(minimum applied)";
    position: absolute;
    font-size: small;
    width: auto;
    bottom: 20%;
    right: 0;
    color: red; /* Optional: style the text */
}

.show-before::before {
    display: inline!important; /* Show the ::before pseudo-element */
}

.custom-actions {
    gap: 10px;
}

.custom-confirm, .custom-cancel, .custom-confirm2 {
    border-radius: 10px !important;
}

.custom-confirm {
    background-color: #e9ab00;
}

.custom-confirm2 {
    background-color: #198754;
}

.bootstrap-select > .dropdown-toggle.bs-placeholder {
    color: #000 !important; /* Override Bootstrap */
}

.required-field-note {
    float: right;
    margin-top: 6px;
    color: red;
    font-weight: bold;
    font-size: 1.1rem; /* Slightly larger text */
    background-color: rgba(255, 0, 0, 0.1); /* Light red background */
    padding: 4px 8px;
    border-radius: 4px;
}

@media (max-width: 550px) {
    .required-field-note {
        float: none; /* Prevents floating issues on small screens */
        margin-top: 1rem;
        display: block; /* Ensures it's on a new line */
        text-align: center; /* Centers the text */
        font-size: 1rem; /* Slightly smaller text */
        padding: 6px; /* Adjusted padding */
        background-color: rgba(255, 0, 0, 0.2); /* Darker background for better visibility */
    }
}

#sectorDisplay {
    transition: all 0.3s ease;
    opacity: 0;
}
#sectorDisplay.show {
    opacity: 1;
}

.test > .btn {
    background-color: #dce6f1 !important;
}

.bootstrap-select .btn:hover,
.bootstrap-select .btn:focus {
    background-color: #dce6f1 !important;
}