html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.order-style {
    max-width: 1700px;
}

.grid-style {
    margin-top: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid;
    border-right: 1px solid;
}

.row-border {
    border: 1px solid;
    border-top: 0;
}

.col-header {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.col-border {
    border: 1px solid;
    border-bottom: 0px;
    border-right: 0px;
    vertical-align: middle;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.col-border-text-right {
    border: 1px solid;
    border-bottom: 0px;
    border-right: 0px;
    vertical-align: middle;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.button-style1 {
    margin-bottom: 2px;
    width: 40px;
    height: 22px;
    font-size: 10pt;
    padding: 0;
}

.button-style2 {
    margin-bottom: 0px;
    width: 140px;
    height: 35px;
    font-size: 12pt;
    padding: 0;
}

.button-style3 {
    white-space: nowrap;
}

.button-style4 {
    margin-bottom: 0px;
    width: 90px;
    height: 35px;
    font-size: 12pt;
    padding: 0;
}

.odd-row {
    background-color: aliceblue;
}

.row-style1 {
    height: 30px;
    line-height: 30px;
}

.row-style2 {
    height: 56px;
    line-height: 50px;
}

.input-style1 {
    height: 35px;
    margin-top: 8px;
}

@media (min-width: 576px) {
    .span-style1 {
        width: 100px;
    }
}

.col-style1 {
    display: flex;
    align-items: center;
    text-align: left;
}

.col-style2 {
    display: flex;
    align-items: center;
    text-align: left;
    color: red;
}

.col-style3 {
    display: flex;
    align-items: center;
    text-align: left;
    font-size: 11pt;
    color: red;
}

.text-number {
    text-align: right;
}

.col-fixed1 {
    width: 80px;
}

.search-box {
    font-size: 1.5em;
    font-weight: bold;
    width: 400px;
}

.search-results-table {
    border: 1px solid #ccc; /* Adjust the color and thickness as needed */
    border-radius: 5px; /* Optional: for rounded corners */
    overflow: hidden; /* To contain the border-radius */
}

    .search-results-table th,
    .search-results-table td {
        padding: 0.5rem; /* Adjust padding as needed */
        border-bottom: 1px solid #eee; /* Optional: row separators */
    }

    .search-results-table th {
        background-color: #f8f9fa; /* Optional: header background color */
        font-weight: bold;
    }

    .search-results-table tbody tr.active {
        background-color: #e0f7fa !important; /* Light cyan or a color of your choice */
        /* You might need !important to override other Bootstrap styles */
    }

.stock-table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

    .stock-table th, .stock-table td {
        padding: 4px 10px; /* Reduced padding for shorter rows */
        text-align: left;
        border-bottom: 1px solid #ddd;
    }

    .stock-table th {
        padding: 5px 10px; /* Reduced padding for shorter rows */
        background-color: #f8f9fa;
        font-weight: bold;
    }

    .stock-table tr:nth-child(odd) {
        background-color: azure; /*#f2f2f2;*/
    }

.stock-table2 {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

    .stock-table2 th, .stock-table td {
        padding: 4px 10px; /* Reduced padding for shorter rows */
        text-align: left;
        border-bottom: 1px solid #ddd;
    }

    .stock-table2 th {
        padding: 5px 10px; /* Reduced padding for shorter rows */
        background-color: #f8f9fa;
        font-weight: bold;
    }

    .stock-table2 tr:nth-child(odd) {
        background-color: mistyrose; /*#f2f2f2;*/
    }

.no-border-input {
    border: none !important;
    padding: 0px 5px; /* Reduced padding for the input as well */
    background-color: transparent !important;
    width: 60px; /* Slightly reduced width if needed */
    text-align: left;
}

    .no-border-input:focus {
        outline: none !important;
        border-bottom: 1px solid #aaa !important;
    }

/*Bulletin Board Styles*/
.bulletin-board {
    margin-top: 20px;
}

.bulletin-post {
    display: flex;
    align-items: flex-start; /* Align image and content to the top */
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.post-heading-image {
    /* Attempt to match the initial height of the heading */
    height: auto; /* Let the height adjust based on the image ratio */
    max-height: 120px; /* Roughly the height of a few lines of text */
    width: auto; /* Maintain aspect ratio */
    max-width: 120px; /* Still limit the maximum width */
    margin-right: 15px;
    overflow: hidden; /* Clip if the image is very tall initially */
    display: flex;
    align-items: flex-start; /* Align top with the heading */
}

.post-heading-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 3px;
}

.post-header {
    display: flex;
    align-items: flex-start;
    gap: 20px; /* Adds space between the image and content */
    margin-bottom: 20px;
}

    .post-header .post-image {
        max-width: 500px;
        height: auto;
        max-height: 500px; /* Restrict the image to half the container width */
        width: auto; /* Maintain aspect ratio */
        border-radius: 5px; /* Optional: Add rounded corners */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
    }

    .post-header .post-content {
        flex-grow: 1; /* Allow the content to take up the remaining space */
        color: #555;
        line-height: 1.6;
    }

.post-content {
    flex-grow: 1;
}

.post-title {
    margin-top: 0;
    margin-bottom: 5px;
}

.post-excerpt {
    margin-bottom: 0;
    font-size: 0.9em;
    color: #555;
}

/*View Post styles*/
.view-post .post-header {
    display: flex;
    justify-content: center; /* Center the image horizontally */
    margin-bottom: 20px;
}

.view-post .post-header img.post-image {
    max-width: 100%; /* Scale image to fit container */
    height: auto; /* Maintain aspect ratio */
    border-radius: 5px;
}

.view-post .post-content {
    text-align: left; /* Ensure text alignment */
    line-height: 1.6;
    color: #555;
}

/* Small screens (<576px) */
@media (max-width: 575px) {
    .view-post .post-header {
        flex-direction: column;
        align-items: center; /* Center items vertically */
    }

        .view-post .post-header img.post-image {
            width: 100%; /* Use full width of the container */
            max-width: 500px; /* Optional: Set a maximum width */
        }

    .view-post .post-content {
        margin-top: 15px; /* Add spacing below the image */
    }
}

    .post-title {
        margin-bottom: 15px;
        color: #333;
    }

    .post-content {
        line-height: 1.6;
        color: #555;
        margin-bottom: 20px;
    }

    .post-date {
        font-size: 0.9em;
        color: #777;
        margin-bottom: 10px;
    }

    .view-post button {
        padding: 10px 20px;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1em;
    }

        .view-post button:hover {
            background-color: #0056b3;
        }

/* ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ¹ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ»ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ§ and ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ¼ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ¶ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ·ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ Boxes */
.purchase-customer-box {
    border: 2px solid #b8e0d2;
    border-radius: 8px;
    padding: 15px;
    background-color: #f8fbfa;
    margin-bottom: 10px;
}

#searchAddressModal {
    z-index: 1060;
}

@media (min-width: 576px) {
    #newCustomerModal .modal-dialog {
        max-width: 960px;
    }
}

.address-choice-group {
    align-items: stretch;
}

.address-choice-group > .input-group-text:first-child {
    min-width: 105px;
    justify-content: center;
}

.address-representative-choice {
    min-width: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.address-representative-choice .form-check-input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    position: static;
    flex: 0 0 auto;
}

.address-representative-choice label {
    margin: 0;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.receive-customer-box {
    border: 2px solid #d4e5ff;
    border-radius: 8px;
    padding: 15px;
    background-color: #f8faff;
    margin-bottom: 10px;
}

.customer-card-title {
    font-weight: 600;
    color: #3a6fc4;
    margin-right: 1rem;
}

.purchase-customer-box .customer-card-title {
    color: #2e8b6e;
}

.customer-card-info {
    line-height: 1.7;
}

.section-title {
    color: #5a5a5a;
    margin-bottom: 15px;
    font-weight: 500;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

.input-group {
    margin-bottom: 10px;
}

.input-group-text {
    background-color: #ffffff;
}