@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --rz-primary: #0a304e !important;
    --rz-secondary: #f27422 !important;
    --rz-icon-font-family: 'Material Symbols Outlined' !important;
    --background-dark: rgb(248, 250, 253);   
}

.material-icons {
    font-family: var(--rz-icon-font-family) !important;
}

html, body {
    font-family: Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-dark);
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

/*.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}*/

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2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NzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* Main Layout */

.main-layout-page {
    height: calc(100vh - 64px);
    display: grid;
    grid-template-columns: auto 0px;
    grid-gap: 0px;
    padding: 16px;
}

.main-layout-page > div:last-child {
        display: none;
}

.main-layout-page[details] {
    grid-template-columns: auto 300px;
    grid-gap: 16px;
}

.main-layout-page[details] > div:last-child {
    display: block;
}

.main-layout-page hr {
    margin: 8px -16px;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.main-layout-page-container {
    background-color: white;
    margin: 0;
    padding: 16px;
    border-radius: 16px;
    position: relative;
    top: 0px;
    bottom: 0px;
    overflow: auto;
}

/* Fab Button */
.fab-button {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 200;
}

/* Main Navigation Menu */
.mdc-drawer {
    background-color: var(--background-dark);
}

.main-navigation .mdc-list-item {
    display: grid;
    grid-template-columns: 48px auto;
    margin: 4px 8px;
    height: 48px;    
}

.main-navigation .mdc-list-item:first-of-type {
    margin-top: 4px;
}

.main-navigation .mdc-list-item:hover::before {
    content: "";
    position: absolute;
    background-color: var(--mdc-theme-primary);
    opacity: 0.16;
    width: 100%;
    height: 100%;
}

.main-navigation .mdc-list-item span {
    display: flex;
    align-items: center;
}

.main-navigation .mdc-list-item--selected::before {
    background-color: var(--mdc-theme-primary, #0a304e);
    opacity: 0.32;
}

.main-navigation .mdc-list-item--selected {
    color: var(--mdc-theme-primary, #0a304e) !important;
}

.main-navigation .mdc-list-item--selected img {
    filter: opacity(0.5) drop-shadow(0px 0px 0px var(--mdc-theme-primary, #0a304e));
}

/* Grid */
.grid-header-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    height: 50px;
}

.grid-header-actions {
    background: white;
    display: flex;
    align-items: center;
    height: 50px;
    font-size: 14px;
    font-weight: 500;
    position: sticky;
    top: -16px;
    z-index: 100;

    &:before
{
    content: "";
    position: absolute;
    background-color: rgb(240, 244, 249);
    border-radius: 1.5rem;
    height: 100%;
    width: 100%;
    z-index: -50;
}
}

.grid-header-actions .mdc-icon-button {
    width: 40px;
    font-size: 20px;
    --mdc-ripple-fg-scale: 1 !important;
    --mdc-ripple-fg-size: 30px !important;
    --mdc-ripple-left: 5px !important;
    --mdc-ripple-top: 9px !important;
    padding-left: 4px;
    padding-right: 4px;
}

.grid-header-actions .material-icons {
    font-size: 20px;
}

.grid-header-label {
    margin-right: 16px;
}

.split-filter-button {
    display: flex;
}

.split-filter-button button:first-child {    
    border-radius: var(--mdc-shape-small, 4px) 0 0 var(--mdc-shape-small, 4px);
}

.split-filter-button button:last-child {       
    min-width: 36px;
    padding: 0px;
    border-radius: 0 var(--mdc-shape-small, 4px) var(--mdc-shape-small, 4px) 0;
}

.rz-data-grid {
    border: none;
}

.detail-parameter-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: auto;
}

.detail-parameter-list h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

    .detail-parameter-list .property-group {
        display: flex;
        flex-direction: column;
    }

    .detail-parameter-list .property-group span:first-child {
        font-size: .75rem;
        font-weight: 500;
    }

    .detail-parameter-list .property-group span:last-child {
        font-size: 0.875rem;
        font-weight: 400;
    }

/* Edit Dialog */
.rz-dialog .rz-dialog-content, 
.rz-dialog-content .rz-steps {
    position: relative;
    height: 100%;
}

.rz-dialog-content:has(.rz-steps-buttons){
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .rz-dialog-content .rz-steps .rz-widget-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .flex-column-gap1 {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

.flex-row-gap1 {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.edit-summary {
    flex: 1 1 auto;
    overflow: auto;
}

.edit-summary > .detail-parameter-list {
    overflow: unset;
    margin-bottom: 1.5rem;
}

.dialog-fill-1 {
    display: flex;
    flex-direction: column;
    position: absolute;
    inset: 1rem;
    justify-content: space-between;
}

.dialog-fill-1 h5 {
    margin-top: 1rem;
}

.dialog-grid {
    height: 100%;
    display: grid;
    grid-template-rows: auto 2.25rem;
}

.qrCodeDialog .rz-dialog-content {
    padding: 0px;
}

div#qrCode:hover + .qrCode-commands,
.qrCode-commands:hover
{
    display: flex;
}

.qrCode-commands {
    display: none;
    justify-content: flex-end;
    position: absolute;
    top: 1.5rem;
    right: 3rem;
    z-index: 50;
}

.error-text {
    color: var(--mdc-theme-error, red);
}

.text-with-copy {
    width: 100%;
    display: flex;
    align-items: center;

    & > input:first-of-type
    {
        flex: 1 1 auto;
    }
    & > button:last-of-type
    {
        width: 32px;
        height: 28px;
        margin-left: 8px;
    }
}

.bottom-corner-button {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 200;
}

.bottom-corner-left-button {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 200;
}

.page-container {
    container-type: inline-size;
    margin: 32px;
}

.app-list {
    display: grid;
    align-items: flex-start;
    grid-template-columns: repeat(3, 300px);
    grid-column-gap: 32px;
    grid-row-gap: 32px;
    margin-top: 32px;
}

@container (max-width: 1000px) {
    .app-list {
        grid-template-columns: repeat(2, 300px);
    }
}

@container(max-width: 700px) {
    .app-list {
        grid-template-columns: 300px;
        grid-row-gap: 8px;
    }
}

.app-icon-button {
    display: inline-grid;
    grid-template-columns: 48px auto;
    padding: 16px;
    border-radius: 8px;
    color: var(--mdc-theme-primary);
    cursor: pointer;
    column-gap: 8px;
    border: 1px solid rgba(0, 0, 0, 0.3);    
    align-items: center;
    align-content: center;
    &:hover
    {
        border: 1px solid var(--mdc-theme-primary);
        background-color: lightgray;
    }

    & p {
        font-size: 1.25rem;        
        align-content: center;
        margin: 0px;
        font-weight: 500;
    }
}

.mdc-drawer-app-content:has(.project-welcome) {
    height: 100%;
    align-content: center;
}