@import url("checkbox.css");
*{box-sizing:border-box;}
:root{
    --color1: hsl(180, 100%, 10%);
    --color2: hsl(180, 25%, 30%);
    --color3: hsl(180, 61%, 25%);
    --color4: hsl(180, 70%, 30%);
    --color5: hsl(180, 61%, 40%);
    --color6: hsl(180, 20%, 80%);
    --color7: hsl(180, 10%, 80%);
    --filter-to-color4: invert(30%) sepia(39%) saturate(780%) hue-rotate(131deg) brightness(97%) contrast(90%);
    --filter-to-color5: invert(54%) sepia(68%) saturate(468%) hue-rotate(131deg) brightness(88%) contrast(84%);
    
    --checkbox-color-primary: teal;
    --checkbox-color-secondary: powderblue;
    --checkbox-color-background: white;
    --checkbox-color-disabled: dimgray;
    --checkbox-size:16px;
}
.hidden{
    display:none;
}
.bg-dark{
    /* background-color: hsl(180,100%,10%) !important;  */
    background-color: var(--color1) !important; 
}
.btn-dark{
    background-color: hsl(180,70%,30%) !important;
    border-color: hsl(180,70%,30%) !important;
}
body{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: hsl(180,20%,60%);
}
.navbar-collapse{
    flex-shrink: 0;
}
.icon{
    width: 2rem;
    height: 2rem;
    filter: var(--filter-to-color4);
    cursor: pointer;
}
.icon>img{
    width: 2rem;
}
.icon:hover{
    filter: var(--filter-to-color5);
}
 .form-wrapper{
    max-width: 576px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
    padding: 1rem;
    /* border: 2px solid slategray; */
    background-color: hsla(0, 0%, 96%,.7);
    border-radius: .25rem;
    /* box-shadow: inset 1px 1px 30px 0px rgba(0,0,0,.8); */
 }

.view-bill-wrapper{
    padding: 0;
    display:none;
}
 .row{
     padding:0 !important;
 }
 .customize-element{
     font-size: .875rem;
     padding-left: 0 !important;
     margin-left: 0;
 }
.block{
    display:flex;
}

.top-row{
    display: flex;
    gap: 1rem;
}
.date-entry{
    font-size: 1.25rem;
    width: 13ch;
}
.dates{
    display: flex;
    flex-direction: column;
    gap: .125rem;
}
.acc-period{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
}
.acc-period-checkboxes{
    display: flex;
    padding-top: .325rem;
    padding-bottom: .5rem;
}
#acc_period2{
    width: 100%;
}
.cost-center{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.categories{
    display:flex;
    flex-direction: column;
    width: 100%;
}
.categories,
.accounts,
.cashflow{
    gap: .5rem;
}

.categories > *,
.dates > *,
.accounts > *,
.comment > *,
.cashflow > *,
.submit > *{
    flex-grow:1;
    flex-basis:0;
    flex-shrink:0;
}
.input-field{
    border-radius: 0;
    color: black;
    background-color: white;
    border: 1px  solid darkslategray ;
}
.accounts{
    display: flex;
    flex-wrap: wrap;
    
}

option:hover{
    background-color: var(--color5);
}

label{
    font-size: .875rem;
    margin-bottom: 0 !important;
}

.bottom-row{
    display: grid;
    grid-template-columns: 4fr 6fr ;
    justify-content: space-between;

    /* display:flex;
    /* flex-direction: column; */
    /* gap: 1rem;
    justify-content: space-between;
    flex-wrap: wrap;  */
}
.right-group{
    display:flex;
    flex-wrap:wrap;
    justify-content: flex-end;
    row-gap: .5rem;
    column-gap: .125rem;
}
.left-group{
    display: grid;
    align-content: start;
}
.tags{
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: .25rem;
    padding: .25rem 0;
}
.tag{
    font-size: .75rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .125rem 0.25rem;
    border-radius: .125rem;
    background-color: var(--color1);
    color: var(--color7);
}
.tag>.closetag{
    display: grid;
    place-items: center;
    margin-left: 1rem;
    cursor: pointer;
}
.tag>.closetag:hover{
    color:var(--color5);
}
.closetag::before{
    content: ' \2716';
}
.comment{
    display: flex;
    flex-grow: 1;
    align-content: flex-start;
    flex-wrap: wrap;
}
.cash-flow{
    background-color: wheat;
    border: 2px solid tan;
    height: auto;
    font-size: 1.5rem;
    width: 8ch;
    text-align: right;

}
input.cash-flow,
.complement-bill{
    grid-column: 1;
    grid-row: 1;
}
.bill-index{
    width: 8ch;
    text-align: right;
    font-size: 1.5rem;
    height: auto;
}
.submit-btn-wrapper{
    display: flex;
    justify-content: flex-end;
}
input.btn-submit{
    padding: .5rem;
    border-radius: 2rem;
    background-color: tomato;
    border: 3px solid firebrick;
    color: white;
}
input.btn-submit:hover{
    color: firebrick;

}

.complement-bill{
    display:none;
    background-image: url('/static/img/estimate_32x32.png');
    background-size: contain;
    margin-left: .25em;
    position: relative;
    width: 1.375rem;
    height: 1.375rem;
    cursor: pointer;
    
 
}
.cashflow-entry-field-group{
    display: grid;
    justify-content: flex-start;
    align-items: center;
}
#cash_flow:hover ~.complement-bill,
.complement-bill:hover{
    display: block;
}
.complement-bill:hover{
    outline: 2px solid red;
}
.continue,.rev-value{
    padding-top: .125rem;
}
/* ----------------------------------------------- */
.loanee-wrapper{
    position:relative;
    /* background-color:deeppink; */
    /* border: 1px solid black; */
    background-color: transparent;
}
.loanee-wrapper select{
    /* background-color: lightgreen; */
    position:absolute;
    top:0px;
    left:0px;
    /* border: 1px solid black; */
    width:100%;
    margin:0;
}
.loanee-wrapper input{
    position:absolute;
     top:1px;
     left:1px;
     width: 90%;
     height: calc(100% - 2px);
     /* padding:1px; */
     border:none;
}
.loanee-wrapper select, .loanee-wrapper input{
    outline:none;
}

/* ------------------------------------------------- */

/* _add-record.html template */
.d-flex{display: flex}
.flex-column{flex-direction: column;}

/* extra spinboxes for bill_index */
input[type=number] {-moz-appearance: textfield;}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button{
    -webkit-appearance: none;
    appearance: none;
    margin: 0
}

a.spinner{
    cursor: pointer;
    color: slategray;
    background-color: white;
    width: 2.5rem;
    font-size: 1.5rem;
    text-align: center;
    font-weight: 700;
    display: none;
    place-items: center;    
}
.bill-index-input-wrapper{
display: flex;
}
.spinner{
    border: solid 1px slategray;
    text-decoration: none;

}
.spinner:hover{
    border: solid 1px slategray;
    text-decoration: none;
 }
.spinner:first-child{
    border-radius: .25rem 0 0 .25rem;
    border-right: none
}
.spinner:last-child{
    border-radius: 0 .25rem .25rem 0;
    border-left: none;
}


.checkbox-container + .checkbox-container{
    padding-left: .5em;
}
.continue:has(input:checked){
    padding-left: 3rem;
}


.tiles{
    /* outline: 1px dotted deeppink; */
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 1rem;
    place-items: center;
    justify-content: center;
}
.tile{
    display: grid;
    place-items: center;
    background-color: white;
    border-radius: .25em;
    gap:1em;
    width: 10em;
    height:6.1em;
    /* max-width: clamp(180px 1fr 1fr) */
    min-height: 100px;
    /* border: 1px solid black; */
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    transition: linear;
    transition-duration: 300ms;
}
.tile>a{

}
.tile img {
    object-fit: scale-down;
    width: 72px;
    height: 72px
}

.tile:hover{
    scale: 1.05;
}


/* RWD */
@media(max-width:576px){
    /* .right-group {
        flex-direction: column-reverse;
        align-items: flex-end;
        } */
        a.spinner{
            /* width: 3rem; */
            font-size: 1.25rem;
        }
    
        .cash-flow,
        .bill-index{
            font-size: 1.5rem;
            height: auto;
            border-width: 1px;
            border-radius: 0;
            
        }
        .bill-index[readonly]{
            color: gray;
        }
    
        .tiles{
            grid-template-columns: auto auto;
        }
    }

    .btn-grad{
        position:relative;
        padding: .25rem;
        text-align: center;
        text-transform: uppercase;
        background-image: linear-gradient(to bottom, hsl(0, 0%, 100%) 0%, hsl(0, 0%, 81%)  51%,hsl(0, 0%, 100%)   100%);
        box-shadow: 0 0 .3em #eee;
        border: 1px solid slategray;
        border-radius: .25rem;
        display: table-cell;
        vertical-align: middle;
        color: black;
    }

/* dev tools */
.o-blue {outline: 2px dashed blue;}
.o-red {outline: 2px dashed red;}
.o-green {outline: 2px dashed lime;}
.o-purple {outline: 2px dashed purple;}
.o-gray {outline: 2px dashed gray;}
.o-pink {outline: 3px dotted deeppink;}
