/*
Theme Name: Quanto eu tenho
Version: 2.0.0
Requires at least: 4.7
Requires PHP: 5.2.4
Description: All your base are belong to us.
Tags: all, your, base, are, belong, to, us
Author: Sarci - Estevão Sarcinelli
Author URI: https://sarci.me/
Theme URI: https://sarci.me/
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* CSS Reset */
html,
body {
	border: none;
	margin: 0;
	padding: 0;
}

h1,h2,h3,h4,h5,h6,p,blockquote,address,big,cite,code,em,font,img,small,strike,sub,sup,li,ol,ul,fieldset,form,label,legend,button,table,caption,tr,th,td {
	border: none;
	font-size: inherit;
	line-height: inherit;
	margin: 0;
	padding: 0;
	text-align: inherit;
	font-weight: normal;
}

a,
a:active {
	color: inherit;
}
p {
	margin-block-start: 1.5em;
	margin-block-end: 1.5em;
	margin-inline-start: 0;
	margin-inline-end: 0;
}

hr {
	height: 1px;
	border: none;
}

blockquote::before,
blockquote::after {
	content: "";
}

body {
	font-family: 'Work Sans', sans-serif;
}

/* Accessibility */
.skip-link {
	left: 50%;
	position: absolute;
	transform: translateY(-100%);
}
/* Auxiliary */
.no-highlight {
	-webkit-tap-highlight-color: none;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	-webkit-tap-highlight-color: transparent
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
.pointer {
	cursor: pointer;
}
.flex-grow-1 {
	flex-grow: 1;
}
.m-auto {
	margin: 0 auto;
}

/* Background colors */
.bg-accent {
	background: #4737F6;
	color: white;
}
.bg-positivo {
	background: #79C300;
	color: white;
}
.bg-negativo {
	background: #F06400;
	color: white;
}

/* Font colors */
.font-accent {
	color: #4737F6;
}
.font-positivo {
	color: #79C300;
}
.font-negativo {
	color: #F06400;
}

/* Font sizes */
.font-xs {
	font-size: .75rem;/*12px*/
}
.font-sm {
	font-size: 1rem;/*16px*/
}
.font-md {
	font-size: 1.25rem;/*20px*/
}
.font-lg {
	font-size: 1.5rem;/*24px*/
}
.font-xl {
	font-size: 2rem;/*32px*/
}

/* Font weights */
.font-regular {
	font-weight: 500;
}
.font-semibold {
	font-weight: 500;
}
.font-bold {
	font-weight: 600;
}

/* Font styles */
.font-linethrough {
	text-decoration: line-through;
}

/* Text align */
.text-left {
	text-align: left;
}
.text-center {
	text-align: center;
}
.text-right {
	text-align: right;
}

/* Elevations */
.elevation-1 {
	box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.elevation-4 {
	box-shadow: 0 2px 4px rgba(0,0,0,.4);
}
.elevation-8 {
	box-shadow: 0 4px 8px rgba(0,0,0,.4);
}

.opacity-50 {
	opacity: .5;
}

.border-transparent {
	border-color: transparent;
}

/* Grid */
.container {
	max-width: 45rem;
	margin-right: auto;
	margin-left: auto;
	display: none;
}
.p-05 {
	padding-top: .5rem;
	padding-bottom: .5rem;
	padding-left: .5rem;
	padding-right: .5rem;
}
.p-1 {
	padding-top: 1rem;
	padding-bottom: 1rem;
	padding-left: 1rem;
	padding-right: 1rem;
}
.px-1 {
	padding-left: 1rem;
	padding-right: 1rem;
}
.py-1 {
	padding-top: 1rem;
	padding-bottom: 1rem;
}
.py-05 {
	padding-top: .5rem;
	padding-bottom: .5rem;
}
.pt-1 {
	padding-top: 1rem;
}
.pr-025 {
	padding-right: .25rem;
}
.pb-025 {
	padding-bottom: .25rem;
}
.pb-1 {
	padding-bottom: 1rem;
}
.pb-2 {
	padding-bottom: 2rem;
}

/* Buttons */
.button {
	font-weight: 700;
	display: flex;
	font-size: 1rem;
	line-height: 1rem;
	padding: 0.75rem 1rem;
	text-align: center;
	border-width: 2px;
	border-color: #4737F6;
	border-style: solid;
	border-radius: 0.5rem;
	cursor: pointer;
	text-decoration: none;
	-webkit-appearance: none;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.button-icon {
	padding: .5rem;
}
.button-float-icon {
	padding: .75rem;
	border-radius: 2rem;
}
.button-icon i,
.button-float-icon i {
	display: block;
}


.button-primary {
	background-color: #4737F6;
}
.button-negative {
	border-color: #F06400;
}
.button-primary.button-negative {
	background-color: #F06400;
}


/* ------------------------------------ Custom pages CSS */

/* Home login forms */
.splash {
	height: 100vh;
	margin: 0;
	display: flex;
	flex-direction: column;
	padding: 0 2rem;
	justify-content: center;
}

/* ------------------- Header */
header {
	display: flex;
	align-items: center;
	position: fixed;
	width: 100%;
	box-sizing: border-box;
	z-index: 9;
}
.avatar-menu {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}
.avatar-round-container {
	border: 2px solid;
	border-radius: 100%;
	display: inline-block;
	overflow: hidden;
}
.avatar-round-container img {
    width: 1.75rem;
    height: 1.75rem;
    display: block;	
}

/* ------------------- Side Menu */
.menu {
	position: fixed;
	top: 0;
	z-index: 9;
	height: 100%;
	right: -500px;
}
.menu .profile-info {
	display: flex;
	justify-content: space-between;
	padding: 1.5rem;
}
.menu .profile-info .image-container {
	width: 6rem;
	height: 6rem;
	display: block;
	border-radius: 100%;
	overflow: hidden;
}
.menu .profile-info .image-container img {
	width: 100%;
	display: block;
}
.menu .profile-info h1 {
	margin-top: 1rem;
}
.menu .profile-info h2 {
	margin: .25rem 0 1rem;
}
.menu .profile-info a {
	display: inline-block;
	border-width: 1px;
	border-style: solid;
	padding: .5rem .75rem;
	border-radius: .25rem;
	font-size: 1rem;
	text-decoration: none;
}
.menu .profile-info a i {
    font-size: 1rem;
    vertical-align: top;
}
.menu ul {
	list-style: none;
	padding: .5rem 0;
}
.menu ul li a {
	text-decoration: none;
	padding: 1rem 1.25rem;
	align-content: center;
	display: flex;
	line-height: 1;
	font-weight: 500;
	align-items: center;
}
.menu ul li a i {
	margin-right: 1rem;
	opacity: .4;
}
.menu ul li a:hover {
	background: rgba(255,255,255,.05);
}
.menu small {
	position: absolute;
	bottom: 0;
	font-size: .75em;
	padding: 1rem 2rem;
}
.overlay {
	display: none;
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9;
}

/* ------------------- Controle de gastos */
main {
	padding: 3rem 0 0;
}

/* Resumo */
main .resumo {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
main .resumo .diferenca {
	display: flex;
	flex-direction: column;
}

/* Abas */
main .abas {
	display: grid;
	grid-gap: 8px;
	grid-template-columns: 1fr 1fr;
	padding: 0 1rem;
	cursor: pointer;
}
main .abas .aba {
	font-size: 1.125em;
	display: grid;
	padding: .75rem 0;
	border-radius: .5rem;
	border-style: solid;
	border-width: .25rem;
	text-align: center;
	grid-gap: .25rem;
	opacity: .7;
}
main .abas .aba.ativada {
	opacity: 1;
}
main .abas .aba.unsaved-changes span:first-child:after {
	content: '•';
	position: relative;
	top: .125rem;
	left: .25rem;
}

/* Lançamentos */
main .lancamentos {
	margin: 0 0 4.5rem;
}
main .lancamentos .lista  {
	display: grid;
	grid-gap: .25rem;
}
main .lancamentos .lista .item {
    font-size: 1rem;
    padding: 0.75rem;
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    border-radius: 0.4rem;
    border-width: 0.125rem;
    border-style: solid;
}
main .lancamentos .lista .item .nome {
	flex-grow: 1;
}
main .lancamentos .lista .item .valor .valor-cheio {
	font-size: .75em;
}
main .lancamentos .lista .item .valor .valor-cheio:after {
	content: ' / ';
	text-decoration: none;
}


/* ------------------- Edit Mode */
.ferramentas-headding {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 3rem;
    z-index: 9;
}
.ferramentas-headding .pop-up-menu {
	display: grid;
	border-radius: .5rem;
	position: absolute;
	right: 2rem;
	top: 1rem;
	z-index: 9;
}
.pop-up-menu span {
	padding: 0.5rem;
	display: flex;
	gap: 0.5rem;
	align-items: center;
}
.pop-up-menu span i {
	width: 1.5rem;
	height: 1.5rem;
}

main .lancamentos .caixa,
main .lancamentos .form-edicao,
main .lancamentos .cancelar,
main .lancamentos .acf-form-fields>div>.acf-label,
main .lancamentos .pop-up-menu {
	display: none;
}
main .acf-spinner {
	width: 18px;
	height: 18px;
	position: fixed;
	top: calc(50% - 9px);
	left: calc(50% - 9px);
	border-radius: 100%;
	border: 1px solid white;
	background-color: white;
}
main .acf-spinner:before {
    display: block;
    content: '';
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
}
main .acf-spinner:after {
    content: 'Salvando';
    position: fixed;
    top: calc(50% - -1rem);
    left: calc(50% - 34px);
}

/* Normalização das tabelas ACF default */
main td.acf-fields>.acf-field {
    padding: .5rem .25rem;
}
main .acf-fields>.acf-field {
    padding: 0 0 1.5rem;
}
main .acf-repeater td.acf-fields {
	padding: 0.25rem 0!important;
	transition: all 0.15s linear;
}
main .acf-repeater .expanded td.acf-fields {
	padding: 1rem 0!important;
}
main .acf-form {
	padding: 1rem;
	overflow: hidden;
}
main .lancamentos .acf-form {
	padding: 0;
	background: none;
}
main .acf-repeater>table,
main .acf-table>tbody>tr>th,
main .acf-table>tbody>tr>td,
main .acf-table>thead>tr>th,
main .acf-table>thead>tr>td,
main .acf-repeater .acf-row-handle.order,
main .acf-repeater .acf-row-handle.remove,
main .acf-field[data-width]+.acf-field[data-width],
main .acf-fields>.acf-field {
	text-shadow: none;
	border: none;
}
main .acf-repeater .acf-row-handle.order i {
	display: inline;
}
main .acf-repeater .acf-row-handle .acf-icon.-minus {
	display: block;
}
main .acf-repeater .acf-row-handle .acf-icon.-minus,
main .acf-repeater .acf-row-handle .acf-icon.-plus {
	background: var(--bg-200);
	border-color: var(--bg-100);
}
main .acf-form .acf-input-wrap input {
	font-size: 1rem;
	font-family: 'Work Sans', sans-serif;
	font-weight: 700;
	border-width: 1px;
	border-radius: 3px;
}
main .acf-input-prepend,
main .acf-input-append {
	line-height: 1.7;
}
main .acf-field .acf-label {
	margin-bottom: .5rem;
}
main .lancamentos .acf-field .acf-label {
	display: none;
}
main .acf-field .acf-label label,
main .acf-table>tbody>tr>th,
main .acf-table>thead>tr>th {
	font-weight: normal;
	font-size: .85rem;
}
main .lancamentos.modo-edicao {
    margin: 0 0 8rem;
}
main .acf-button-group label {
	gap: .5rem;
}
.acf-tooltip {
	max-width: 300px!important;
}

/* Esconde os campos complementares (status e tipo de gasto) */
.acf-field-5f77291420ada,
.acf-field-5f778e5a6745c {
	display: none;
}

/* Editar Float Button */
.edit-mode-button {
	position: fixed;
	bottom: 1rem;
	right: .75rem;
}
/* Cancelar Button */
.acoes {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 3;
    padding: 1rem 1rem 1rem .5rem;
    width: 50%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Bottom Fixed Buttons */
main .form-edicao .acf-form-submit,
main .form-edicao .acf-actions {
    width: 100%;
    padding: 1rem;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
	box-sizing: border-box;
}
/* Adicionar gastos + Salvar Buttons */
main .form-edicao .acf-actions {
    border-top-width: 1px;
    border-top-style: solid;
	border-radius: 1rem 1rem 0 0;
	box-shadow: 0 -2px 4px rgba(0,0,0,.4);
    bottom: 3.75rem;
    /*z-index: 3;*/
    z-index: 2;
}
main .form-edicao .acf-actions .button-primary {
	background: none;
}
/* Salvar Button */
main .form-edicao .acf-form-submit .acf-button.button-primary {
	width: calc(50% - .5rem);
}


/* Notificações */
.notificacao {
	position: fixed;
	top: 2rem;
	z-index: 3;
	padding: 1rem;
}


/* Remove gastos compartilhados */

.acf-field-5f778e5a6745c {
	display: none!important;
}