/* ************************************* */
/* Variable Setup                        */
/* ************************************* */

:root {
    --zp-app-bar-size: 70px;
    --zp-full-screen-margin: 0;
    --zp-screen-size-buffer: 30px;
    --zp-useable-screen-size: calc(100dvh - var(--zp-app-bar-size) - var(--zp-screen-size-buffer));
    --zp-scrollable-table-size: 275px;
    --zp-sidebar-dialog-header-size: 70px;
    --zp-sidebar-dialog-footer-size: 56px;
    --zp-sidebar-dialog-buffer: 85px;
    --zp-sidebar-dialog-toolbar-size: 64px;
    --zp-sidebar-dialog-fixed-element-size: calc(100dvh - var(--zp-sidebar-dialog-header-size) - var(--zp-sidebar-dialog-footer-size) - var(--zp-sidebar-dialog-buffer) - var(--zp-sidebar-dialog-toolbar-size));
    --zp-sidebar-dialog-fixed-element-size-no-toolbar: calc(100dvh - var(--zp-sidebar-dialog-header-size) - var(--zp-sidebar-dialog-footer-size) - var(--zp-sidebar-dialog-buffer));
    --zp-sidebar-dialog-useable-space: calc(100dvh - var(--zp-sidebar-dialog-header-size) - var(--zp-sidebar-dialog-footer-size) - 20px);
    --zp-full-height-dialog-header-size: 70px;
    --zp-full-height-dialog-footer-size: 56px;
    --zp-full-height-dialog-buffer: 85px;
    --zp-full-height-dialog-fixed-element-size: calc(100dvh - var(--zp-full-height-dialog-header-size) - var(--zp-full-height-dialog-footer-size) - var(--zp-full-height-dialog-buffer));
    --zp-map-legend-height: 48px;
    --zp-tab-bar-height: 50px;
    --zp-snapshot-transportation-comparison-card-height: 185px;
    --rz-primary: var(--mud-palette-primary) !important;
}

/* ************************************* */
/* Apply border radius to auto complete  */
/* ************************************* */

.mud-input > input.mud-input-root-outlined.mud-input-root:-webkit-autofill, div.mud-input-slot.mud-input-root-outlined.mud-input-root:-webkit-autofill {
    border-radius: var(--mud-default-borderradius) !important;
}

/* ************************************* */
/* General                               */
/* ************************************* */

/* in use */
.zp-maps-container-with-legend-extra-buffer {
    height: calc(100% - var(--zp-map-legend-height));
}

.zp-align-text-end {
    text-align: end;
}

.zp-map-legend-container {
    padding: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 12px;
    min-height: var(--zp-map-legend-height);
}

/* in use */
.zp-left-right {
    display: flex;
    justify-content: space-between;
    text-overflow: ellipsis;
}

.zp-right {
    display: flex;
    justify-content: flex-end;
    text-overflow: ellipsis;
}

/*********************************************/
/* Standard Two Option Selector Component    */
/*********************************************/

.zp-standard-two-option-selector-margin-bottom {
    margin-bottom: 12px;
}

/*********************************************/
/* Tree View Formatting                      */
/*********************************************/

/*is used in choose goods minor categories and choosemachinemanufacturertreeview - when these have been updated delete this style */
.zp-standard-tree-area {
    height: 500px;
    overflow: auto;
    border-width: 1px;
    border-style: solid;
    border-color: var(--mud-palette-lines-default);
}

/* ************************************* */
/* Responsive MudPaper Formats           */
/* ************************************* */

/* in use*/
.zp-action-buttons-container {
    padding: 12px;
}

/* in use*/
.zp-main-container {
    padding-top: 12px;
    margin-left: 12px;
    margin-right: 12px;
    display: flex;
    flex-direction: column;
}

/* in use */
.zp-main-draw {
    padding-top: 12px;
    margin-top: 12px;
    margin-bottom: 12px;
    padding-bottom: 15px;
}

/* in use */
.zp-full-page-scrollable-container {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - var(--mud-appbar-height) - 24px);
    overflow-y: auto;
    padding-bottom: 15px;
}

/* in use */
.zp-full-page-scrollable-larger-container {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - var(--mud-appbar-height) - 21px);
    overflow-y: auto;
    padding-bottom: 3px;
}

/* in use */
.zp-full-page-scrollable-table-container {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - var(--mud-appbar-height) - 23px);
    overflow-y: auto;
    padding-bottom: 1px;
}

/* in use */
.zp-full-page-scrollable-no-height-container {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-bottom: 3px;
}

/* in use */
.zp-info-message-fill-parent-container {
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
    padding-bottom: 1px;
    height: 100%
}

/* in use */
.zp-info-message-fill-screen-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: hidden;
    height: calc(100dvh - var(--mud-appbar-height) - 23px);
    width: 100%;
    padding-bottom: 3px;
}

/* in use */
.zp-full-page-scrollable-no-padding-container {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - var(--mud-appbar-height) - 12px);
    overflow-y: auto;
}

/* in use */
.zp-full-page-spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100dvh - var(--mud-appbar-height) - 24px);
    overflow-y: hidden;
}

.zp-full-page-container {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - var(--mud-appbar-height) - 24px);
}

.zp-fill-screen-container {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.zp-fill-screen-tab-connected-container {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    margin-top: 12px;
}


.zp-fill-screen-scrollable-container {
    flex: 1 1 auto;
    overflow-y: auto;
}


/* in use */
.zp-tab-connected-container {
    padding: 12px;
    margin-top: 12px;
    margin-bottom: 12px;
}

/* in use */
.zp-tab-connected-no-bottom-margin-container {
    padding: 12px;
    margin-top: 12px;
}

/* in use */
.zp-section-format-container {
    padding: 12px;
    margin-bottom: 12px;
}

/* in use */
.zp-section-format-no-bottom-margin-container {
    padding: 12px;
}

/* new */
.zp-info-message-with-bottom-margin {
    display: flex;
    flex-direction: column;
    padding: 12px;
    margin-top: 12px;
    margin-bottom: 12px;
    align-items: center;
    justify-content: center;
}

/* new */
.zp-info-message-with-bottom-margin-no-top-margin {
    display: flex;
    flex-direction: column;
    padding: 12px;
    margin-bottom: 12px;
    align-items: center;
    justify-content: center;
}

/* new */
.zp-info-message-no-bottom-margin {
    display: flex;
    flex-direction: column;
    padding: 12px;
    margin-top: 12px;
    align-items: center;
    justify-content: center;
}

/* new */
.zp-info-message-no-bottom-margin-no-top-margin {
    display: flex;
    flex-direction: column;
    padding: 12px;
    align-items: center;
    justify-content: center;
}

/* in use */

.zp-full-screen-scrollable-table-container {
    flex: 1 1 auto;
    margin-bottom: 12px;
}

/* in use */

.zp-full-screen-scrollable-table-container-no-bottom-margin {
    flex: 1 1 auto;
}

/* new */

.zp-full-screen-scrollable-table-tab-container {
    flex: 1 1 auto;
    margin-top: 12px;
    margin-bottom: 12px;
}

/* new */
.zp-full-screen-scrollable-table-tab-container-no-bottom-margin {
    flex: 1 1 auto;
    margin-top: 12px;
}

.zp-full-screen-tab-connected-scrollable-table-container {
    flex: 1 1 auto;
}

.zp-flex-column {
    display: flex;
    flex-direction: column;
}

.zp-distribution-recommentation-tab-container {
    height: calc(100dvh - var(--zp-app-bar-size) - var(--zp-full-screen-margin) - 162px);
}

.zp-alternate-suppliers-report-tab-container {
    height: calc(100dvh - var(--zp-app-bar-size) - var(--zp-full-screen-margin) - 155px);
}


/* ************************************* */
/* Supply Chain Depth Formatting         */
/* ************************************* */

.zp-supply-chain-depth-card {
    padding: 12px;
    margin-bottom: 12px;
    width: 200px;
}


/* ************************************* */
/* MudTable Global Overrides             */
/* ************************************* */

.mud-input-control {
    margin-bottom: 8px;
}

.mud-typography {
    margin-bottom: 6px;
}

.mud-table-cell-custom-group {
    font-weight: 500;
}

.mud-table-cell-custom-group-footer {
    padding-bottom: 50px;
    text-align: right;
}

.mud-table-cell {
    max-width: 1px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/*************************************** */
/* Responsive MudTabs Format             */
/*************************************** */

.zp-sub-tab-container {
    border-radius: 0 !important;
}

    .zp-sub-tab-container .mud-tabs-rounded {
        border-radius: 0 !important;
    }

/* ************************************* */
/* Responsive MudPaper Formats           */
/* ************************************* */

.zp-tab-connected-squared-container {
    padding: 12px;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.zp-section-format-squared-bottom-container {
    padding: 12px;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.zp-standard-table-container {
    margin-bottom: 12px;
}

.zp-tab-connected-table-container {
    margin-bottom: 12px;
    margin-top: 12px;
}

.zp-grid-spacing {
    margin-top: 0px !important;
    margin-left: -4px !important;
}

    .zp-grid-spacing > .mud-grid-item {
        padding-left: 4px !important;
        padding-top: 0px !important;
    }

.zp-report-title-container {
    padding: 12px;
    margin-top: 12px;
    margin-bottom: 4px;
}

/* ************************************* */
/* Chart Containers                      */
/* ************************************* */

.zp-transportation-distances-chart-container {
    height: 440px
}

/* ************************************* */
/* Message Containers                    */
/* ************************************* */

/* check but not used anymore i dont think */
.zp-no-records-message-container {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-grow: 1;
    justify-content: center !important;
    align-content: center !important;
    height: 150px;
    gap: 16px;
}
