﻿/* ========================================================================
   PROVIDER MODULE STYLES
   This file contains styles specific to Provider-related pages and components:
   - ProviderProfile
   - Drugs
   - PatientEncounter
   - Any other provider-specific UI
   ======================================================================== */

/* 
   Adds extra space at the bottom of the page to ensure there is always a visible gap 
   between the last content element and the footer. 
   Use this utility class on page containers where the content might otherwise touch the footer.
*/
.page-bottom-spacing {
    margin-bottom: 30px;
}

/* ------------------------------------------------------------------------
   Provider Profile Cards
   ------------------------------------------------------------------------ */

/* Label style for profile form fields */
.prov-prof-form-ctp {
    font-weight: 600 !important;
    color: #161616 !important;
    font: 14px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 6px 16px 6px 0px;
    height: 32px !important;
    display: inline-block;
    vertical-align: middle;
}

/* Value style for profile form fields */
.prov-prof-form-value {
    color: #161616 !important;
    background: #fff !important;
    padding: 5px 6px 5px 1px !important;
    height: 30px !important;
    box-sizing: border-box;
    display: inline-block;
    vertical-align: middle;
}

/* Responsive width for profile form fields on large screens */
@media (min-width: 992px) {
    .prov-prof-form-ctp {
        width: 200px !important;
    }

    .prov-prof-form-value {
        width: 380px !important;
    }
}

/* Wider label for claim card section */
.profile-claim-card .prov-prof-form-ctp {
    width: 300px !important;
}

/* Wider label for finance card section */
.profile-finance-card .prov-prof-form-ctp {
    width: 250px !important;
}

/* Maximum height for scrollable card bodies */
.body-max-h {
    max-height: 420px !important;
}

/* ------------------------------------------------------------------------
   Address Card Responsive Layout (Provider Profile)
   ------------------------------------------------------------------------ */

.address-flex-panel {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
}

.address-form-panel {
    flex: 1 1 250px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 300px;
}

.address-map-panel {
    flex: 0 0 250px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 180px;
    height: 210px;
    margin-top: 10px;
    margin-left: auto;
}

@media (max-width: 900px) {
    .address-flex-panel {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .address-map-panel {
        max-width: 100%;
        width: 100%;
        margin-left: 0;
    }
}

/* ------------------------------------------------------------------------
   Drugs Page - Fullscreen Claim Item Edit Modal
   ------------------------------------------------------------------------ */

/* Modal size for non-fullscreen mode */
.ci-modal-min-size {
    width: 90% !important;
    max-width: 90% !important;
    height: 80% !important;
    max-height: 80% !important;
}

/* Modal content layout for fullscreen claim item edit */
#fullscreenClaimItemEditModal .modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Modal body layout for fullscreen claim item edit */
#fullscreenClaimItemEditModal .modal-body {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding-left: 0 !important;
}

/* Ensures the left panel in the fullscreen modal stretches to the bottom */
#fullscreenClaimItemEditModal .modal-main-search-fullheight {
    height: 100%;
    min-height: 0;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Margin adjustment for left grid in modal */
.modal-left-grid-mt {
    margin-top: -20px;
}

/* Z-index for modal to ensure dropdowns appear above */
#fullscreenClaimItemEditModal.modal {
    z-index: 1050 !important;
}

/* ------------------------------------------------------------------------
   Patient Encounter Grid - Toolbar Item
   ------------------------------------------------------------------------ */

/* Bold and medium-sized text for custom toolbar items */
.custom-toolbar-item span {
    font-weight: var(--dxbl-btn-font-weight-m);
    font-size: medium;
}

/* ------------------------------------------------------------------------
   Process Case List
   ------------------------------------------------------------------------ */

section.cases-panel {
    min-height: 320px;
    overscroll-behavior-y: auto;
    overflow-y: auto;
    display: flex;
    flex: 1;
    margin-right: 0;
    align-items: center;
}

    section.cases-panel > header {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-basis: 130px;
        margin-right: 16px;
        color: var(--color-grey-100);
    }

        section.cases-panel > header span:first-child {
            font-size: 4em;
            padding-bottom: 20px;
            color: var(--color-lime-70);
        }

        section.cases-panel > header .cases-status {
            font-size: var(--text-size-body);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        section.cases-panel > header .cases-status-message {
            font-size: var(--text-size-body-sm);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

    section.cases-panel > div {
        display: flex;
        flex: 1;
        flex-direction: column;
        gap: 8px;
        padding-right: 20px;
    }

    section.cases-panel .case-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #F2F2F3;
        border-radius: 4px;
        padding: 8px 16px;
        height: 50px;
    }

        section.cases-panel .case-item > header {
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        section.cases-panel .case-item .case-date {
            flex: 3;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        section.cases-panel .case-item > footer {
            display: flex;
            font-size: var(--text-size-body-sm);
            flex: 1;
            justify-content: flex-end;
            align-items: center;
        }

.btn-success {
    margin-top: 5px;
}

.cases-footer-link {
    background: none;
    border: none;
    color: blue;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font: inherit;
}

.dx-card {
    box-shadow: none;
    border-radius: 6px;
    background-color: #fff;
    margin: 2px 2px 3px;
    border: 1px solid #edf1f6 !important;
}

.process-overview-section {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

