﻿:root {
    --primary: rgba(99,122,159);
    --primaryhlgt: rgba(201,215,221);
    --primarytxt: rgba(32,22,88);
    --secondary: rgba(232,200,114);
    --secondaryhglt: rgba(255,243,207);
    --primarybg80: rgba(99,122,159, .8);
    --primarybg60: rgba(99,122,159, .6);
    --primarybg40: rgba(193,202,217);
    --form-hghlt: rgba(123,177,160, 0.2);
    --form-urgent: rgb(255, 106, 0);
    --links: rgb(255, 106, 0);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: var(--links);
}
a:hover {
    text-decoration:revert;
    color:var(--primary);
}


body, p, h1, h2, h3, h4, h5, h6
body {
    margin: 0;
    padding: 0;
    font-family: 'Signika Negative', sans-serif;
    /*    font-family: "Rokkitt", sans-serif;*/
    font-weight: 500;
    color:var(--primarytxt);
}

.container-hw {
    display:grid;
    grid-template-columns:auto 1fr;
    height:100vh;
}

.main-content_hw {
    height:100vh;
    overflow:hidden;
}

.filters { 
    /*width:180px;*/
    /*position:absolute;*/
    /*background-color: var(--primary);*/
    /*padding:.5rem;*/
    color:white;
    /*left:0px;*/
}

.invoice { 
    position:absolute;
    background-color: white;
    padding:.5rem;
    color:white;
    left:0px;
}

.materials { 
    position:absolute;
    background-color: white;
    padding:.5rem;
    color:white;
    left:0px;
}

.page-body {
    height:calc(100vh - 52px);
    overflow-y:scroll;
    padding:1rem;
    position:relative;
}

.page-head, .page-head-sec {
    font-size:1.5rem;
    color:white;
    background-color: var(--primary);
    padding:6px 8px;
    line-height:40px;
}

.page-head-sec {
    font-size:1rem;
    color: var(--primary);
    background-color: var(--secondary) !important;
}

.bottom-margin-rem {
    margin-bottom: 1rem;
}

nav {
    display:flex;
}

.nav-right {
    width: 10rem;
    background-color: var(--secondary);
    height: 100vh;
    display: grid;
    grid-template-rows: 72px 1fr;
    border-right: 1px var(--primary) dotted;
    font-size: .9rem;
}
    .nav-left {
        font-size:1.5rem;
        /*text-align:center;*/
        /*width: 2rem;*/
        background-color: var(--secondary);
        height: 100vh;
        display: flex;
        flex-direction:column;
        flex-grow:1;
        /*grid-template-rows: 72px 1fr;*/
        border-right: 1px var(--primary) solid;
        font-size: 1.3rem;
        padding:0 0 .5rem 0;
    }

.nav-left-button {
    width: 2.5rem;
    line-height: 2.5rem;
    display: flex;
    justify-content: center;
    font-family: 'Material Icons';
    overflow:hidden;
}

.dropdown-hide,
.filters-hide,
.nav-right-hide,
.invoice-hide,
.materials-hide {
    display: none;
}

.login-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    place-items: center;
}

.login-holder {
    margin-left: auto;
    margin-right: auto;
}

.login-input-label {
    min-width: 90px !important;
}

.nav-left > a {
    color:var(--primarytxt);
    text-decoration:none;
}

@media (max-width: 400px) {
    .login-holder {
        width: auto;
    }
}


.nav-left-button:hover  {
    color:white;
    background-color:var(--primary);
    cursor:pointer;
}

nav div {
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
}
.nav-head {
    font-size:1.25rem;
    font-weight:700;
    background-color:var(--primary);
    color:white;
    border-bottom:3px white solid;
}

.dropdown {
    display:initial;
    padding:0;
}

.dropdown-item {
    color: var(--primary);
    border-bottom: 1px var(--primary) dotted;
    display:grid;
    width: auto;
    text-decoration:none;
    /*padding:.15rem 0;*/
    /*border-right:4px var(--primary) none;*/
    font-weight:600;
    background-color:white;
}

.dropdown-item:hover {
    background-color: var(--primarybg60);
/*    border-right:4px white solid;
    border-left:4px white solid;
*/    color:white;
}

.menu {
    display: block;
    padding:.5rem;
}

.menu-title, .menu-title-selected {
    padding: .25rem .5rem;
    font-weight: 600;
    border-bottom: 1px var(--primary) solid;
}

    .menu-title:hover, .menu-title-selected:hover {
        background-color: var(--primary);
        color: white;
    }

.menu-title-selected {
    background-color: var(--primarybg80);
    color: white;
}

.menu-title::after, .menu-title-selected::after {
    content:'expand_more';
    font-family:'Material Icons';
    text-align:right;
    width:100%;
}

.menu-title-selected::after {
    content: 'expand_less';
}

table {
    font-size: 14px;
    padding: 0px;
    border: 1px var(--primary) solid;
}

td, th {
    border-bottom: 1px grey dotted;
    border-right: 1px lightgrey solid;
    padding: .15rem .25rem !important;
    text-align:center;
}

td:last-child, th:last-child {
    border-right:0;
}

th > a {
    color:white;
}

th > a:hover {
    color:white;
    text-decoration:solid;
}

.grid-head, th {
    background-color:var(--primary);
    color:white;
    line-height:25px;
    vertical-align:middle !important;
    text-align:center;
}

.grid-head {
    border-bottom: 1px lightgrey solid;
    padding: 0 !important;
    border-right: 1px lightgrey solid;
}

tr:nth-child(odd) {
   background-color: var(--secondaryhglt);  
}

td {
    color: var(--primary);
    vertical-align:middle !important;
    padding:0;
}

.material-icons {
    margin:5px 0 -5px 0;
}

i.material-icons {
    margin:revert;
}
a.material-icons:hover {
    text-decoration:none;
}

td > .material-icons {
    font-size:1.15rem;
}

th > .material-icons {
    font-size: 1.25rem;
    line-height: 25px;
}

th {
    width:auto;
}
caption.section-head {
    margin-bottom:0;
    caption-side:top;
    border:1px var(--primary) solid;
    line-height:35px;
}

.section-head {
    background-color: var(--secondary) !important;
    color: var(--primarytxt) !important;
    font-size: 1.25rem;
    padding: .25rem .5rem;
    margin-bottom: 1rem;
    border-bottom: 1px var(--primary) dotted;
    font-weight:700;
}

.section {
    border: 1px solid var(--primary);
}

.section-body {
    padding: .5rem;
}

.section-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    margin: 0 auto 1rem auto;
}


.row > div {
    margin-bottom:1rem;
}

.login-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    place-items: center;
    height:60vh;
}

.login-holder {
    margin-left: auto;
    margin-right: auto;
}

.login-input-label {
    min-width: 90px !important;
}

@media (max-width: 400px) {
    .login-holder {
        width: auto;
    }
}

form {
    margin-block-end:0;
}

.search-hide {
    display:none;
}

.search {
    background-color:var(--secondary);
    color:var(--primary);
    padding:.5rem;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:.5rem;
}

    .search label {
        width:150px;
        text-align:right;
        margin: 0;
    }

.form-holder {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    max-width: 800px;
    gap: 0;
    border-right: 1px var(--primary) solid;
    border-top: 1px var(--primary) solid;
    margin:0 auto;
}

.grid1,
.grid2,
.grid3,
.grid4,
.grid5,
.grid6,
.grid7 {
    border-left: 1px var(--primary) solid;
    border-bottom: 1px var(--primary) solid;
}

    .grid1 > label,
    .grid2 > label,
    .grid3 > label,
    .grid4 > label,
    .grid5 > label,
    .grid6 > label,
    .grid7 > label {
        display: block;
        background-color: var(--secondary);
        text-align: center;
        margin: 0;
    }

.grid1 {
    grid-column: auto / span 1;
}

.grid2 {
    grid-column: auto / span 2;
}

.grid3 {
    grid-column: auto / span 3;
}

.grid4 {
    grid-column: auto / span 4;
}

.grid5 {
    grid-column: auto / span 5;
}

.grid6 {
    grid-column: auto / span 6;
}

.grid7 {
    grid-column: auto / span 7;
}


/* Tech billing page */
.stage-container {
    padding: 0;
    border: 3px solid black;
    font-size: .9rem;
    overflow: hidden;
    color: black;
    border-radius:.75rem;
}

.stage-container .material-icons {
    font-size: 1.1rem;
}

.stage-header {
    /*background-color: lightgrey;*/
    font-size: 1.5rem !important;
    font-weight: bold;
    padding: 5px 5px 5px 10px;
    /*color:black;*/
}

.stage-subhead {
    font-size:1rem;
    padding: 2px 5px 2px 5px;
}

.stage-body {
    padding: 4px;
}


.billed-options-head {
    border-bottom: 1px solid grey;
    background-color: lightgrey;
    text-align: center;
    font-weight: bold;
}

.billed-options-container {
    border: 1px solid grey;
    border-left-width: 0;
    border-right-width: 0;
    padding: 6px;
    margin: 6px
}

.form-grey {
    border-color: grey;
}

.form-input-sm {
    font-size: .85rem;
    width: 60px;
}

.billed-list {
    display: flex;
    gap: .5em;
    border-bottom:1px dotted grey;
}

.TiePointBillingGrid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 1250px) {
    .TiePointBillingGrid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1rem;
    }
}

@media (max-width: 950px) {
    .TiePointBillingGrid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

@media (max-width: 650px) {
    .TiePointBillingGrid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.login, .login-left {
    /*align-content: center;*/
    align-items: center;
    margin: 10vh auto;
    /*padding: 2rem;*/
    width: 20rem;
    background-color: rgba(255,255,255,.3);
    border: 1px solid var(--primary);
}

.login-left {
    margin: 0 0 1rem 0;
    min-height: auto;
}

.login-header {
    background-color: var(--secondary);
    color: var(--primary);
    align-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    padding: 0 2rem;
    text-align: center;
    border-bottom: 1px solid var(--primary);
}

    .login-header p {
        font-size: 1rem;
        min-height: 1.2rem;
    }

.login-body, .login-body-flex {
    padding: 1.5rem;
}

.login-left .login-body {
    padding: 1.5rem 1rem 1rem 1rem;
}

.login-left .login-body-flex {
    padding: 1.5rem 1rem 1rem 1rem;
}

.login-body-flex .form-input {
    margin-bottom: 0;
    padding-bottom: 0;
}

.login-body-flex {
    display: flex;
    gap: .5rem;
}

.expired {
    color:red;
    text-decoration:line-through;
}

.Cleared {
    background-color:lightgreen;
}

.Clear {
    background-color: yellow;
}