.prescriptions-to-authorise-container {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
}

.prescription-cell {
    display: flex;
    flex-direction: row;
    gap: 4px;
    flex: 1;
    min-width: 150px;
    padding: 0 16px ;
}
.prescription-cell-alt {
    flex: 1;
    min-width: 150px;
    padding: 0 16px ;
}
.prescription-label {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;

}
/* On mobile devices, stack cells vertically */
@media (max-width: 768px) {
    .prescriptions-to-authorise-container{
        grid-template-columns: 1fr;
    }
}
.download-pdf-button{
padding: 0 !important;
background-color: unset !important;
margin-right: 8px !important;
color: black !important;
width: max-content;
text-decoration: underline !important;
}





.add-items-button{
    padding:  8px 16px !important;
    margin-bottom: 10px;
}




.my-prescriptions-create-prescription{
    padding: 8px 16px !important;
    width: 100% !important;
    color: white !important; 
    text-align: center;
}
.my-prescriptions-create-prescription:hover{
    background-color: var(--pharmawp-color-blue) !important;
    border: none !important;

}
.prescription-label {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}

/* On mobile devices, stack cells vertically */
@media (max-width: 768px) {

    .open-prescriptions-heading, .prescription-requests-heading, .legacy-prescriptions-heading{
        grid-template-columns: 1fr !important;
    }

    #prescriber-requests-filter-form, #prescription-sort-filter-form, #legacy-sort-form {
        align-items: start;
    }
}
/* Optional: Button styling adjustments */
.add-all-to-cart, .lock-prescription-button, .script-in-cart {
    padding: 8px 16px !important;
    cursor: pointer;
    width: 100%;
}
.prescription-items li{
    display: flex; 
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 4px
}
.prescription-items{
    width: 100%;
    margin: 0;
}

.my-prescriptions-in-stock{
    color: green !important;
}
.my-prescriptions-not-in-stock{
    color: red !important;
}
.my-prescriptions-not-in-stock,
.my-prescriptions-in-stock{
    padding-left: 6px;
    font-size: 12px;
}
.my-prescriptions-item{
    display: flex;
    flex-direction: row;

}





.legacy-prescriptions-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.prescription-row.legacy {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid #ddd;
    flex-wrap: wrap;
}
.prescription-label {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}
/* On mobile devices, stack cells vertically */
@media (max-width: 768px) {
    .prescription-row.legacy {
        flex-direction: column;
    }
    .legacy-prescriptions-container {    
        grid-template-columns: 1fr;
    }
}
.hidden {
    display: none;
}

#fulfilled-prescriptions{
    padding: 10px 0 !important;
}
#toggle-fulfilled{
    margin-bottom: 10px !important;
}
.active-prescription-row{
    height: 100%;
}

.active-prescription-row .prescription-id{
    display: flex;
    flex-direction: row;
    justify-content: space-between !important;
    align-items: flex-start !important;
}

.active-prescription-row .prescription-add-to-cart{
    display: flex;
    flex-direction: column;
}

.active-prescription-row .prescription-add-to-cart{
    margin: 0 !important;
}
.prescription-add-to-cart, .prescription-duplicate{
    padding: 16px !important;
}

.active-prescription-row .prescription-id-text{
    display: flex;
    gap: 5px;
}

.prescription-status{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px !important;
}

.prescription-status-text{
    display: flex;
    gap: 5px;
}


.prescription-status-bar {
    width: 100%;
    padding: 6px 16px !important;
    color: #fff;
    font-weight: bold;
    text-align: center;
    display: grid;
    grid-template-columns: 1fr min-content;
    align-items: center;
}

/* Example status colors */
.status-bar-approved {
    background-color: #28a745 !important; /* green */
}

.status-bar-pending {
    background-color: #ffc107; /* yellow */
}

.status-bar-rejected {
    background-color: #dc3545 !important; /* red */
}
.status-bar-legacy {
    background-color: lightgrey !important; /* red */
    color: black !important;
}

.prescription-pdf{
    padding: 0 !important;
    text-decoration: underline;
}
.prescription-pdf a{
    color: white !important;
    width: 100%;
    text-align: right;
}

#toggle-approved-prescriptions, #toggle-rejected-prescriptions, #toggle-approved-requests, #toggle-rejected-requests{
    padding: 8px 16px !important;
    margin: 10px 0;
}
.prescriptions-to-authorise-container{
    display: flex;
    flex-direction: column;
    gap: 6px;
}


.prescription-sort-filter-form label {
    margin: 0;
}


#sort_date{
    width: 100%;
}

#prescriber-requests-filter-form, #prescription-sort-filter-form, #legacy-sort-form {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.open-prescriptions-heading, .prescription-requests-heading, .legacy-prescriptions-heading{
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.prescription-requests-heading-inner{
    padding: 0 !important;
}

.prescription-add-to-cart{
    justify-content: flex-end;
}

#prescription-list{
    overflow-y: scroll;
    max-height: 50vh;
}