﻿/*
    TABLE OF CONTENTS
    _________________________________________


    - IMPORTS
    - ROOT CONTENT
    - GENERAL CSS
    - WASM LOADING PAGE
    - BLAZOR DEFAULT ERROR
    
    _________________________________________
    
*/


/* -------------------------------------------------------------
----------------------------------------------------------------

    ROOT CONTENT

----------------------------------------------------------------
------------------------------------------------------------- */

:root {
    --intro-overlay-color: rgba(0, 0, 0, 0.7);
}





/* -------------------------------------------------------------
----------------------------------------------------------------

    GENERAL CSS

----------------------------------------------------------------
------------------------------------------------------------- */

html,
body {
    min-height: 100vh !important;
    max-width: 100% !important;
    height: 100% !important;
    width: 100% !important;
}

app {
    min-height: 100% !important;
    height: 100% !important;
    width: 100% !important;
}

.clayout {
    min-height: 100vh !important;
    height: 100% !important;
}

.main {
    min-height: 100vh !important;
    height: 100% !important;
}

.no-wrap {
    white-space: nowrap;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.fw-bold {
    font-weight: bold;
}

.fw-normal {
    font-weight: normal;
}

.readable-xs {
    max-width: 500px;
}

.readable-sm {
    max-width: 550px;
}

.readable-md {
    max-width: 600px;
}

.readable-lg {
    max-width: 650px;
}

.readable-xl {
    max-width: 700px;
}

.menu-area-button {
    height: 100%;
    display: flex;
    justify-content: left;
    align-items: start;
    text-align: left;
}

    .menu-area-button span {
        height: 100%;
    }

    .menu-area-button .menu-area-button-label {
        height: 100%;
        max-width: 60%;
    }

    .menu-area-button .menu-area-button-icon {
        margin-left: auto;
        margin-top: auto;
    }
    
    
/* ------------------------------------------------------------------
---------------------------------------------------------------------

    PAYROLL TABLE

---------------------------------------------------------------------
--------------------------------------------------------------------- */


.payroll-table .mud-table-root,
.payroll-table .payment-cell {
    border-bottom: 1px solid var(--mud-palette-table-lines) !important;
}

.payroll-input {
    margin: 0;
    border-radius: 0;
    border: none;
}

    .payroll-input .mud-input-outlined-border {
        border-radius: 0 !important;
        border-left: none !important;
        border: none !important;
    }

    .payroll-input.payroll-input-first .mud-input-outlined-border {
        /*border-left: none !important;*/
    }

.payroll-table .payroll-table-cell {
    padding: 0;
    min-width: 150px !important;
}

.payroll-table-cell.cell-lg {
    min-width: 175px !important;
}

.payroll-table-cell.cell-sm {
    min-width: 100px !important;
}

.strikethrough {
    background: linear-gradient(to top left, rgba(0,0,0,0) 0%, rgba(0,0,0,0) calc(50% - 0.8px), var(--mud-palette-table-lines) 50%, rgba(0,0,0,0) calc(50% + 1px), rgba(0,0,0,0) 100%);
}





/* ------------------------------------------------------------------
---------------------------------------------------------------------

    WASM LOADING PAGE

---------------------------------------------------------------------
--------------------------------------------------------------------- */

.app-loader {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

    .app-loader img {
        max-width: 400px;
        margin-bottom: 32px;
    }

    .app-loader p {
        font-size: 1.2rem;
        margin: 0;
    }

    .app-loader i {
        margin-right: 8px;
    }





/* ------------------------------------------------------------------
---------------------------------------------------------------------

    BLAZOR DEFAULT ERROR

---------------------------------------------------------------------
--------------------------------------------------------------------- */

.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;
    }



/* -------------------------------------------------------------
----------------------------------------------------------------
    CALENDLY CSS
----------------------------------------------------------------
------------------------------------------------------------- */

.calendly-overlay .calendly-popup,
.calendly-overlay .calendly-popup-content {
    height: 100vh;
    max-height: 95vh;
}