/* seperator */
.seperator {
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--sec-border-color);
}

.vertical-seperator {
    padding-inline-end: 16px;
    margin-inline-end: 16px;
    border-inline-end: 3px solid var(--sec-border-color);

    @media (max-width: 991px) {
        border-inline-end: none;
        padding-inline-end: 0;
        margin-inline-end: 16px;
    }
}

.check-box-container md-checkbox {
    min-width: unset !important;

    .md-label {
        white-space: nowrap;
    }
}

.item-card-details {
    .bold {
        font-weight: bold;
    }

    td.dimmed {
        background-color: #BDBDBD !important;
    }

    .radio-container {
        padding-bottom: 16px;
        margin-bottom: 16px;
        border-bottom: 1px solid #dcdcdc;
    }

    .main-radio-group {
        display: flex;
        gap: 12px;
    }

    md-radio-button {
        margin-bottom: 0 !important;
        margin-inline-start: 0 !important;
    }

    .main-radio-btn {
        border: 1px solid #dcdcdc;
        border-radius: 24px;
        padding: 8px 12px;
        background: #fff;
        transition: all .25s ease;
        font-weight: 500;
    }

    /* background when selected */
    .main-radio-btn.md-checked {
        background: #2f3c7e;
        border-color: #2f3c7e;
        color: #fff;
    }

    /* radio circle spacing */
    .main-radio-btn .md-container {
        margin-right: 6px;
    }

    /* radio colors */
    .main-radio-btn.md-checked .md-on {
        background-color: #fff !important;
    }

    .main-radio-btn.md-checked .md-off {
        border-color: #fff !important;
    }

    .sub-radio-group {
        margin-top: 14px;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .sub-radio-btn {
        background: #f3f3f3;
        border-radius: 18px;
        padding: 6px 12px;
        font-size: 16px;
        transition: all .2s ease;
    }

    /* when selected */
    .sub-radio-btn.md-checked {
        background: #e6e9ff;
        color: #2f3c7e;
        font-weight: 600;
    }

    /* circle always visible */
    .sub-radio-btn .md-container {
        margin-right: 6px;
    }

    /* checked circle color */
    .sub-radio-btn.md-checked .md-on {
        background-color: #2f3c7e;
    }

    .sub-radio-btn.md-checked .md-off {
        border-color: #2f3c7e;
    }
}

/* start stock-item-value-details */
.stock-item-value-details {
    .avg-wrapper {
        padding: 10px 14px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        max-width: 420px;
    }



    .avg-checkbox {
        margin: 0;
        font-weight: 500;
        color: #2f3c7e;
    }

    /* input container */
    .avg-date {
        min-width: 170px;
        margin: 0;
    }

    .avg-date input {
        border-radius: 6px;
        font-size: 13px;
    }

    /* disabled look */
    .avg-date.disabled {
        opacity: 0.45;
        pointer-events: none;
    }

    /* remove ugly material spacing */
    md-input-container .md-errors-spacer {
        display: none;
    }

    .check-box-action {
        margin-inline: 8px;
        padding-inline: 8px;
        border-inline: 1px solid var(--border-color);

        @media (max-width: 876px) {
            border-inline: none;
        }
    }

    fieldset:has(table) {
        background-color: white;
    }

    .actions {
        padding-top: 16px;
        margin-top: 16px;
        border-top: 1px solid var(--border-color);
    }

    .check-box-container {

        md-checkbox .md-icon {
            top: -25px;
        }

        md-checkbox .md-label {
            width: 160px;

            @media (max-width: 600px) {
                width: auto;
            }
        }
    }
}

/* end stock-item-value-details */


/* start inventory-preparation-details */
.inventory-preparation-details {
    .actions {
        padding-top: 16px;
        margin-top: 16px;
        border-top: 1px solid var(--sec-border-color);
    }
}

/* end inventory-preparation-details */
/* start items-reached-minimum-detail */
.items-reached-minimum-detail {
    .actions {
        margin-top: 16px;
        border-top: 1px solid var(--sec-border-color);

        md-radio-button {
            margin-bottom: 0 !important;
        }
    }
}

/* end items-reached-minimum-detail */
/* start stock-issue-qty-query-detail */
.stock-issue-qty-query-detail {
    .actions {
        margin-top: 16px;
        border-top: 1px solid var(--sec-border-color);

        md-radio-button {
            margin-bottom: 0 !important;
        }
    }
}

/* end stock-issue-qty-query-detail */

/* start monthly inventory details */
.monthly-inventory-details {
    .delete-btn {
        height: 48px !important;
        min-width: 120px !important;

        img {
            width: 24px !important;
        }
    }
}

/* end monthly inventory details */

/* start expired-items-detials */
.expired-items-detials {
    .actions {
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--sec-border-color);
    }

    .radio-group {
        padding-inline-start: 16px;
        border-inline-start: 1px solid var(--border-color);

        @media (max-width: 876px) {
            border-inline-start: none;
        }
    }
}

/* end expired-items-detials */
/* start list-items-units-query-details */
.list-items-units-query-details {
    .actions {
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--sec-border-color);
    }
}

/* end list-items-units-query-details */
/* start bonus-query-details */
.bonus-query-details {
    .actions {
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--sec-border-color);
    }
}

/* end bonus-query-details */
/* start inventory-adjustment-query-details */
.inventory-adjustment-query-details {
    .actions {
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--sec-border-color);
    }
}

/* end inventory-adjustment-query-details */

/* ====================================== new pages */

/* start diabetic-sheet-details */
.diabetic-sheet-details {
    .md-select-value {
        border-bottom: 0 !important;
    }

    md-radio-group {
        box-shadow: unset !important;
    }
}

/* end diabetic-sheet-details */
/* start trust-receipts-details */
.trust-receipts-details {
    md-radio-button {
        margin-bottom: 0 !important;
    }

    md-checkbox {
        min-width: unset !important;

        .md-label {
            white-space: nowrap !important;
        }
    }


}

/* end trust-receipts-details */

/* start doctor detail */
.doctor-details,.clinic-patient-detail {


    .img-and-inputs {
        display: flex;
        gap: 8px;
        margin-bottom: 8px;

        @media (max-width: 1280px) {
            flex-direction: column;
        }
    }

    .imgBox {
        min-width: 160px !important;
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        height: auto !important;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
        width: 160px !important;

        .image {
            width: 100%;
            border-radius: 8px;
            overflow: hidden;
            background: #e2e8f0;
            display: flex;
            justify-content: center;
            align-items: center;

            a {
                height: 100%;
                width: 100%;
            }

            img {
                width: 100%;
                height: 100%;
                object-fit: fill;
                /* ✅ makes photos look neat */
                border-radius: 8px;
            }
        }

        .btns {
            margin-top: 8px;
            width: 100%;
            display: flex;
            justify-content: center;
            gap: 8px;

            div {
                background: var(--bright-blue);
                /* primary blue */
                color: #fff;
                padding: 4px;
                text-align: center;
                border-radius: 6px;
                transition: 0.2s;
                display: flex;
                justify-content: center;
                align-items: center;

                &:hover {
                    background: #1e3a8a;
                }

                i {
                    font-size: 14px;
                }
            }

            /* delete button */
            div:last-child {
                background: var(--alert-red);

                &:hover {
                    background: #991b1b;
                }
            }
        }
    }
}

/* end doctor detail */
/* start bank-deposit-details */
.bank-deposit-details {
    .btns {
        margin-top: 8px;
        display: flex;
        justify-content: center;
        gap: 8px;

        div {
            background: var(--bright-blue);
            /* primary blue */
            color: #fff;
            padding: 4px;
            text-align: center;
            border-radius: 6px;
            transition: 0.2s;
            display: flex;
            justify-content: center;
            align-items: center;

            &:hover {
                background: #1e3a8a;
            }

            i {
                font-size: 14px;
            }
        }

        /* delete button */
        div:last-child {
            background: var(--alert-red);

            &:hover {
                background: #991b1b;
            }
        }
    }
}

/* end bank-deposit-details */