html {
    font-family: "Helvetica Neue", helvetica, "Apple Color Emoji", arial, sans-serif;
}

body {
    background-color: #f9f9f9;
}
body.login-base {
    background-color: #fff;
}
body, a, hr, .pure-table thead {
    color: #232f3e;
}


a {
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

sup {
    top: 0;
    font-size: .55em;
    line-height: 1;
    vertical-align: super;
}

.pure-menu-link:hover {
    text-decoration: none;
}

.is-impersonator .pure-menu-list {
    background-color: #ff3500;
}

.role-previous-admin .pure-menu-link {
    color: white;
}

footer {
    margin: 20px;
    padding: 10px;
    text-align: center;
}

/* Stats Grid Styling */
.stats-grid .stat-item {
    text-align: center;
    padding: 10px 5px;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.stat-value {
    font-weight: 600;
    line-height: 1.2;
}
.login-base footer {
    border-top: 1px solid #232f3e;
}


.note {
    font-size: 9px;
}

.expenses-list-container {
    overflow: auto;
}

.expenses-bulk-edit tr:has(input[type="checkbox"]:checked) {
    background-color: #f0f0f0;
}

/* Sticky bulk edit form */
.expense-bulk-form {
    position: sticky;
    top: -1px;
    z-index: 100;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 1rem;
    padding: 1rem;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.expense-bulk-form.is-pinned {
    border-radius: 0 0 8px 8px;
    border-top: 0;
}

.expense-bulk-form.show {
    display: block;
}

.expense-bulk-form-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.expense-bulk-form-field {
    display: flex;
    flex-direction: column;
}

.expense-bulk-form-field label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.expense-bulk-form-field input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 150px;
}

.expense-bulk-form-total {
    font-weight: 600;
    color: #232f3e;
    white-space: nowrap;
}

.expense-bulk-form-actions {
    margin-left: auto;
}

.expense-bulk-form-actions button {
    margin-left: 0.5rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 768px) {
    .expense-bulk-form {
        position: relative;
        top: auto;
    }

    .expense-bulk-form-content {
        flex-direction: column;
        align-items: stretch;
    }

    .expense-bulk-form-actions {
        margin-left: 0;
        margin-top: 1rem;
    }
}

td.money,
th.money,
td.numeric,
th.numeric {
    text-align: right;
}

tr.expense-highlight {
    background-color: #cce5ff;
}

@keyframes greenfade {
    from { background-color: #d4edda; }
    to { background-color: transparent; }
}

tr.new-expense {
    animation-timing-function: ease-in;
    animation-name: greenfade;
    animation-duration: 8s;
}

.l-content {
    margin-left: auto;
    margin-right: auto;
    max-width: 1024px;
    font-size: 1em;
    background-color: #fff;
    padding: 1em;
}

.l-content.l-content__min {
    max-width: 450px;
}

.l-content p {
    line-height: 1.3;
}

div.l-content {
    box-shadow: 0 -1px 10px rgba(0,0,0,0.05),0 1px 4px rgba(0,0,0,0.1),0 10px 30px #f3ece8;
    border-radius: 0.2em 0.2em 0 0;
}

footer.l-content {
    background-color: transparent;
}

.pure-g > div {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.l-box {
    padding-left: 1em;
    padding-right: 1em;
}

.perma__header {
    border-bottom: 3px solid #283c46;
    text-align: center;
}

.perma__title {
    font-size: 2em;
    letter-spacing: -0.5px;
    line-height: 1;
    padding-bottom: 0.5rem;
    text-align: center;
    margin: 0;
}

/* begin pure overrides */
.pure-table td, .pure-table th {
    padding: .5rem .25rem;
}

.pure-table td:first-child, .pure-table th:first-child {
    padding-left: .5rem;
}

.pure-table td:last-child, .pure-table th:last-child {
    padding-right: .5rem;
}

/* copied from .pure-form-message */
.help-text {
    display: block;
    color: #666;
    font-size: .875em;
}
/* end pure overrides */

/* app header */
.logo {
    margin-left: auto;
    margin-right: auto;
    margin-top:10px;
    display: block;
    text-indent: -9999px;
    width: 185px;
    height: 38px;
    background-size: 180px 37px;
    background: url("../images/bmw_h-O0bC-Zm.svg") no-repeat;
    padding: 0;
}

#head_links {
    padding: 0.5em 0;
    margin-bottom: 0px;
}
/* end app header */

div#week-nav {}
div#week-nav h3 { margin: 0 5px; display: inline-block; }
div#week-nav h6 { margin: 0; }
div#week-nav div div { display: inline-block; }
div.left_arrow_nav { margin-right:15px; }

table.pure-table td.green                { color: #30AD23; }
table.pure-table td.red                  { color: #CD0A0A; }
table.pure-table tbody tr.total          { border-top-style: double; }
.red { color: #CD0A0A; }

form.budget_form {
    margin-bottom: 10px;
}

form.budget_form .radio_list label {
    margin-right: 15px;
}

form.budget_form th {
    white-space: nowrap;
    font-style: italic;
}

form.budget_form td, form.budget_form th {
    text-align: left;
    padding: 3px 6px;
}

form.budget_form tr.foot td, form.budget_form tr.foot th {
    border: 0;
    text-align: right;
}

form.budget_form tr:first-child td, form.budget_form tr:first-child th {
    border: 0;
}

form.budget_form .radio_list li {
    display: inline;
}

form.budget_form table {
    margin-bottom: 6px;
}

.budget_form select, .budget_form input, .budget_form textarea {
    width: 100%;
}

.info {
    font-size: 80%;
    font-style: italic;
    margin-top: 5px;
    padding: 5px;
}

/* tags */
.tag-add {
    color: rgba(35, 47, 62, 0.4);
}
.tag-add.tag-tagged {
    color: #217c80;
}

ul#tags li {
    list-style: none;
    margin-left: 5px;
    padding: 3px 11px;
    background-color: lightgrey;
    border-radius: 10px;
    margin-bottom: 2px;
}

ul#tags li a.tag-remove {
    display: none;
    vertical-align: middle;
    float: right;
    margin-right: 5px;
}

ul#tags li:hover a.tag-remove {
    display: inline-block;
}

#tag_cloud a {text-decoration: none; padding: 5px 8px; border-radius: 7px;}
#tag_cloud a:link    {}
#tag_cloud a:hover   {background-color: #232f3e; color: #fff;}
#tag_cloud a:visited {text-decoration: none;}
#tag_cloud a:active  {text-decoration: none;}

.tags-list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.tags-list .tags-tag {
    margin-right: .5rem;
    margin-bottom: .5rem;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 4px;
    color: #4a4a4a;
    display: inline-flex;
    font-size: .75rem;
    height: 2em;
    justify-content: center;
    line-height: 1.5;
    padding-left: .75em;
    padding-right: .75em;
    white-space: nowrap;
}
/* end tags */

/* marketing */
header h2 {
    font-size: 48px;
    margin-bottom: 0px;
}

header h4 {
    margin-bottom: 0px;
}

.home-box {
    max-width: 410px;
    margin: 0 auto;
}

.home-box div {
    height: auto;
    padding: 4px 50px;
}

.home-box input {
    display: block;
    font-size: 1.2em;
    margin-bottom: 1.1rem;
    width: 100%;
}

a.button {
    background-color: #DDD;
    border-width: 1px;
    border-style: solid;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    -moz-border-top-colors: none;
    -moz-border-right-colors: none;
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    border-image: none;
    border-color: rgba(255, 255, 255, 0.1) rgba(0, 0, 0, 0.05) rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    color: #333;
    cursor: pointer;
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 400;
    height: auto;
    line-height: 1em;
    margin-right: 0.3rem;
    padding: 0.6em 1.2em 0.7em;
    text-align: center;
    text-decoration: none;
    background-image: linear-gradient(to bottom, #F1F1F1 0%, #E5E5E5 100%);
}

a.button-highlighted {
    background-color: #F1831E;
    border-top-color: rgba(0, 0, 0, 0.1);
    color: #FFF;
    background-image: linear-gradient(to bottom, #FF8B20 0%, #F1831E 100%);
    box-sizing: border-box;
    margin-top: 8px;
}

a.button-highlighted:hover {
    background-color: #FF9636;
    background-image: linear-gradient(to bottom, #FF9A1E 0%, #F1831E 100%);
}

#faq {
    margin: 0 auto;
    width: 50%;
    max-width: 600px;
    min-width: 300px;
    line-height: 1.4em;
}

#faq dl dt {
    border-top: 1px solid #909090;
    font-size: 130%;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 15px;
    padding-top: 10px;
}

#faq dl dd {
    font-size: 105%;
    padding: 0 15px;
    text-align: left;
}

#faq dl dd p {
    margin-bottom: 10px;
    text-indent: 10px;
}

#faq dl dd ul {
    margin: 0 auto;
    text-align: left;
}

table#registration {
    margin: 0 auto;
}

table#registration td {
    padding: 4px;
}

#screens {
    margin-top: 20px;
}

#screens img {
    box-shadow: 3px 3px 5px 6px #ccc;
    padding: 0px 15px 15px 15px;
    width: 90%;
    max-width: 800px;
}

/* end marketing */

@media screen and (max-width: 35.5em) {.jpb-sm-hide{display:none;}}
@media screen and (max-width: 48em)   {.jpb-md-hide{display:none;}}
@media screen and (max-width: 64em)   {.jpb-lg-hide{display:none;}}
@media screen and (max-width: 80em)   {.jpb-xl-hide{display:none;}}

/* begin menu */
/* end menu */

/* don't like pure's readonly for flatpickr, put back to purecss */
input.flatpickr-input[readonly] {
    background-color: transparent;
    color: inherit;
    border-color: #ccc;
}

.awesomplete mark {
    background: #569ff7 !important;
    color: #fff !important;
}

.awesomplete > ul > li:hover {
    background: #e6e6e6 !important;
    color: #232f3e;
}

.awesomplete > ul > li[aria-selected="true"] {
    background: #e6e6e6 !important;
    color: #232f3e !important;
}

.awesomplete > ul > li {
    padding: .4em .5em !important;
}

.awesomplete {
    display: block;
}

.clearfix:after {
   content: ".";
   visibility: hidden;
   display: block;
   height: 0;
   clear: both;
}

/* Font Awesome */
.fa.fa-long-arrow-down {
    color: #aaa;
    font-size: 90%;
}
/* end Font Awesome */
