body {
    /* money green tint */
    background-color: #e6f2e6;
    font-family: 'EB Garamond', 'Times New Roman', Times, serif;
    margin:0px;
    padding:0px;
}

body h1 {
    margin-left:5px;
    margin-right:5px;
}

div.product {

}

.sectionLabel {
    margin: 0px 15px;
}

/* to remove double-tap-to-zoom: */
/* button {
    touch-action: manipulation;
} */

input {
    /* make it not zoom on click in safari */
    font-size: 18px;
    font-family: 'EB Garamond', 'Times New Roman', Times, serif;
}
.person {
    /* display:flex; */
    border: 1px solid rgba(0,0,0,0.3);
    border-radius: 10px;
    overflow: auto;
    margin: 5px;
}
.personNameSection {
    display:flex;
    justify-content: space-between;
    align-items:start;
}
.personNameLabel {
    font-size:1em;
}
.personName {
    /* font-weight: bold; */
    font-size: 1.5em;
}
span.personName {
    background: transparent;
    outline: none;
    border-radius: 5px;
    border-width: 0px 0px 1px 0px;
    margin: 5px 5px 4px 5px;
    border-style: solid;
    border-color: rgba(0,0,0,0.3);
    padding: 7px 10px;
    -webkit-tap-highlight-color: rgba(0,0,0,0.3);
    min-width: 0.5em;
    text-wrap: nowrap;
    text-overflow: ellipsis;
    overflow-x: clip;
}

body.hasHover span.personName:hover {
    background: rgba(0,0,0,0.08);
}
body.hasHover span.personName:active {
    background-color: rgba(0,0,0,0.2) !important;
}

/* when able to be typed in */
span.personName:focus {
    outline-offset:-3px;
    outline-color: rgba(0,0,0,0.2);
    outline-style: solid;
    outline-width: 3px;

    border-width: 1px 1px 1px 1px;
    margin: 4px 4px 4px 4px;


    /* important to override :hover rule */
    background-color: rgba(0,0,0,0.1) !important;
}

.personExpenseList {
    border: 1px solid gray;
    padding: 5px;
    margin: 5px;
}
/* money inputs */
/* expecting max of like 9999.99 so size accordingly */
.personItemCostInput, .personPaidInput {
    width: 70px;
}

.personItem {
    margin: 0px 4px;

    /* to remove inline-item spacing */
    font-size:0px;
    letter-spacing: 0px;
    word-spacing: 0px;
}
.personItem * {
    font-size:initial;
}
.personItemCost, .personItemName {
    background: transparent;
    outline: none;
    border-radius: 5px;
    border-width: 0px 0px 1px 0px;
    border-style: solid;
    border-color: rgba(0,0,0,0.3);
    padding: 5px 10px;
    -webkit-tap-highlight-color: rgba(0,0,0,0.3);
    min-width: 0.5em;
    text-wrap: nowrap;
    display:inline-block;
}
.personItemCost {
    margin: 1px 1px 0px 1px;
}
.personItemName {
    margin: 1px 1px 0px 1px;
}

.personItemCost::before {
    content: "$";
    opacity:0.5;
}

.topRowExpenseList {
    display:flex;
    margin: 0px 8x;
}
.topRowExpenseList span {
    margin: 0px 7px;
}
.topRowExpenseList hr {
    flex-grow: 2;
    width: 100%;
    height: 1px;
    background: rgba(0,0,0,0.3);
    border: 0px;
}
.personExpenseListTitle {
    /* font-weight: bold;
    text-decoration: underline; */
}
.topRowExpenseList span.personTotalValue {
    /* margin-left:auto; */
}

input#billTotal::before {
    content: "$";
    opacity: 0.5;
}

.labelAndInput {

}

.labelAndInput input {
    background-color: rgba(255,255,255,0.3);
    outline: none;
    /* top right bottom left */
    padding:10px 5px 10px 5px;
    margin: 0px 0px 0px 0px;
    border: 1px solid rgba(0,0,0,0.3);
    border-radius: 5px;
    width: 4em; 
    /* because the max we expect is 9999.99, roughly 6 chars wide */

    /* remove touch outline ios */
    -webkit-tap-highlight-color: rgba(0,0,0,0.3);
}

/* hide up down clicker */
.labelAndInput input[type="number"] {
    -moz-appearance: textfield;
}
.labelAndInput input[type="number"]::-webkit-outer-spin-button,
.labelAndInput input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body.hasHover .labelAndInput input:hover {
    background-color: rgba(0,0,0,0.08);
}

/* this is fired when input touched in ios */
/* important to override :focus style */
body.hasHover .labelAndInput input:active {
    background-color: rgba(0,0,0,0.2) !important;
}

/* when able to be typed in */
.labelAndInput input:focus {
    outline-offset:-3px;
    outline-color: rgba(0,0,0,0.2);
    outline-style: solid;
    outline-width: 3px;

    /* important to override :hover rule */
    background-color: rgba(0,0,0,0.1) !important;
}

.sectionLabel {
    font-variant: small-caps;
}

.chippedIn {
    margin: 5px;
}
.billTotalContainer {
    margin: 0px 5px;
}

.input-sizer {
    display: inline-grid;
    align-items: center;
    position: relative;
    padding: .25em .5em;
    margin: 5px;
    /* vertical-align: top;
    border: solid 1px;
    box-shadow: 4px 4px 0px #000; */
}

.input-sizer::after {
    content: attr(data-value) ' ';
    visibility: hidden;
    white-space: pre-wrap;
}

.input-sizer > span {
    /* text-transform: uppercase;
    font-size: 0.8em;
    font-weight: bold;
    text-shadow: 2px 2px 0 rgba(0,0,0,.15); */
}

.input-sizer span {
    /* padding: 0.25em; */
}

.input-sizer::after, .input-sizer input {
    width: auto;
    min-width: 1em;
    grid-area: 1 / 2;
    font: inherit;
    padding: 0.25em;
    margin: 0;
    resize: none;
    background: none;
    appearance: none;
    border: none;
}

.input-sizer input::before {
    content: "$";
    opacity: 0.5;
}

.removeItemBtn {
    appearance: none;
    border: none;
    margin: 0px 8px;
    background-color: rgba(255,0,0,0.5);
    border-radius: 5px;
    font-size: 14px;
    padding: 3px 8px;

    color: black;
}

.showAddItemBtn {
    appearance: none;
    border: none;
    margin: 5px;
    background-color: rgba(0,150,0,0.5);
    border-radius: 5px;
    font-size: 14px;
    padding: 5px 10px;

    color: black;
}