@font-face {
    font-family:    robotoslabreg;
    src:            url("rsl.ttf") format("truetype");
}

* {
    font-family: 'Gudea', sans-serif;
    user-select: none;
}

html,body {
    height: 100%;
    width: 100%;
	margin: 0px;
    padding: 0px;
    user-select: none;
    -webkit-user-select: none;
}

#wrapper {
	position: fixed;
	height: 100%;
    width: 100%;
    top: 0px;
    left: 0px;
	background-color: #efefef;
}

#totalUserBalanceSection,#accountBalanceSection,#reconcileReadoutSection,#windowsMigrationNotice, #backupWarning {
    border-radius: 4px;
    border: 1px solid #333333;
    box-shadow: 0px 2px 0px #333333;
    background-color: #ffffff;
    width: calc(100% - 32px);
    margin: 12px auto;
    font-size: 0.9em;
    font-weight: bold;
    padding: 12px;
    user-select: none;
}

#totalUserBalanceSection,#windowsMigrationNotice, #backupWarning {
    max-width: 950px;
}

#windowsMigrationNotice, #backupWarning {
    background-color: #FFF8E1;
    color: #000000;
    display: none;
}

#warningButtonsDiv {
    margin: 12px 0px;
}

#warningButtonsDiv button {
    margin: 8px 0px;
}

#btnNewVersionLink {
    margin-top: 12px;
}

#accountBalanceSection,#reconcileReadoutSection {
    max-width: 974px;
}

#totalUserBalanceSection table, #reconcileReadoutTable, #actBalGenSections table {
    width: 100%;
}

#totalNet {
    border-top: 1px solid #999999;
}

#mainRegisterSection, #accountListingSection, #categoryInfoSection {
    position: absolute;
    width: 100%;
    top: 0px;
    left: 0px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

#categoryInfoSection {
    height: 100%;
}

#mainRegisterSection, #accountListingSection {
    padding-bottom: 72px;
    height: calc(100% - 72px);
}

#mainRegisterTable {
    width: calc(100% - 8px);
    max-width: 1000px;
    margin: 12px auto;
    border-collapse: collapse;
    background-color: #efefef;
    /* font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; */
}

#mainRegisterTable thead {
    background-color: #ffffff;
}

#mainRegisterTable, #mainRegisterTable th, #mainRegisterTable td {
    border: 1px dashed rgba(0,0,0,.2);
    padding: 8px;
}

#categoryInfoSectionTop {
    background-color: #ffffff;
    border: 1px dashed rgba(0,0,0,.2);
    margin: 12px auto;
    max-width: 958px;
    padding: 8px;
    position: relative;
    cursor: default;
    user-select: none;
}

#categoryHeaderName,#categoryTrendGraphHolderHeader,#categoryIncomeGraphHolderHeader,#categoryExpenseGraphHolderHeader {
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
}

#categoryTrendGraphHolderHeader,#categoryIncomeGraphHolderHeader,#categoryExpenseGraphHolderHeader {
    margin: 12px;
}

#categoryTransactionsTable {
    margin-top: 12px;
    width: 100%;
}

#categorySummaryTable,#categoryTopIncomeSourcesTable,#categoryTopExpenseSourcesTable {
    margin: 12px auto;
}

.summaryTableHeading {
    font-weight: bold;
}

#catSummaryIncome,#catSummaryExpense,#catSummaryNet,.catSummaryItem {
    text-align: right;
}

#categoryTrendGraphHolderActual,#categoryIncomeGraphHolderActual,#categoryExpenseGraphHolderActual {
    margin: 12px;
}

#categoryHeaderMonth {
    font-size: 1.3em;
    text-align: center;
}

#dateRangePicker {
    display: none;
}

#categoryTrendGraphHolder,#categoryIncomeGraphHolder,#categoryExpenseGraphHolder {
    background-color: #ffffff;
    border: 1px dashed rgba(0,0,0,.2);
    margin: 12px auto;
    max-width: 974px;
}

.regBalance, .regAmount, .regWithdraw, .regCredit {
    text-align: right;
}

.regWithdraw, .negative {
    color: #f44336;
}

.transactionDeleteButton {
    cursor: pointer;
}

/*
.negative::before {
    content: "-";
}
*/

.regCredit {
    color: #4CAF50;
}

.hideBig {
    display: none;
}

.newButtonInside {
    width: 100%;
    height: 100%;
}

/*
.newButtonOutside {
    position: fixed;
    bottom: 12px;
    right: 12px;
    height: 64px;
    width: 64px;
    border-radius: 50px;
    background-color: #8BC34A;
    cursor: pointer;
    box-shadow: 0px 2px 4px rgba(0,0,0,.3);
}

*/

#btnCategoryMonthBack,#btnCategoryMonthNext {
    position: absolute;
    top: 16px;
    height: 36px;
    width: 36px;
    border-radius: 50px;
    background-color: #8BC34A;
    cursor: pointer;
    box-shadow: 0px 2px 4px rgba(0,0,0,.3);
    user-select: none;
}

#btnCategoryMonthBack {
    left: 12px;
}

#btnCategoryMonthNext {
    right: 12px;
}

#mainRegisterTable tr:nth-child(even){
    background-color: #ffffff;
}

/*
#mainRegisterTable thead tr {
    background-color: #CFD8DC !important;
}
*/

#mainRegisterTable tr:hover {
    background-color: #dddddd;
}

#mainRegisterTable th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    font-size: 0.8em;
    cursor: pointer;
    user-select: none;
}

#mainRegisterTable td {
    font-size: 0.9em;
    user-select: none;
}

#mainRegisterTable tfoot td {
    text-align: right;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.8em;
}

#transactionPopupHolder,#reconcileWizardHolder,#customReportEditorHolder {
    position: absolute;
	height: 100%;
    width: 100%;
    top: 0px;
    left: 0px;
    background-color: rgba(0,0,0,0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: none;
}

#addTransactionPopup,#reconcileWizardWindow,#customReportEditorWizard {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background-color: #ffffff;
    border: 1px solid #333333;
    border-radius: 4px;
    box-shadow: 0px 4px 4px rgba(0,0,0,.2);
    width: 500px;
}

#addTransactionPopupTypeHeader {
    border-bottom: 1px solid #333333;
    width: 100%;
}

#addTransactionPopupTypeFooter,#reconcileWizardHolderFooter,#customReportEditorHolderFooter {
    border-top: 1px solid #333333;
    width: 100%;
}

#addTransactionPopupTable,#reconcileTable,#customReportTable {
    margin: 6px;
    width: calc(100% - 12px);
}

.addTransactionPopupTypeHeaderItem {
    user-select: none;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    height: 48px;
}

#transTypeItemExpense {
    background-color: #ffcdd2;
}

#transTypeItemIncome {
    background-color: #C8E6C9;
}

#transTypeItemXfer {
    background-color: #BBDEFB;
}

#transTypeItemExpense.active {
    background-color: #f44336;
    color: #ffffff;
}

#transTypeItemIncome.active {
    background-color: #4CAF50;
    color: #ffffff;
}

#transTypeItemDiscard,#reconcileWizardHolderFooterCancel,#customReportEditorHolderFooterCancel {
    background-color: #f44336;
    color: #ffffff;
    width: 50%;
}

#transTypeItemSave,#reconcileWizardHolderFooterOk,#customReportEditorHolderFooterOk {
    background-color: #4CAF50;
    color: #ffffff;
}

#primaryTableHeaderRow th {
    position: sticky;
    top: 0;
    background-color: #ffffff;
}

#transTypeItemXfer.active {
    background-color: #2196F3;
    color: #ffffff;
}

.infobox {
    background-color: rgba(170,170,170,0.2);
    font-weight: bold;
    font-size: 0.9em;
    padding: 6px;
    margin: 6px;
    border-radius: 4px;
}

.addTransactionPopupTypeHeaderItem:hover {
    outline: 1px solid;
}

.addTransactionPopupTypeHeaderItem:active {
    opacity: 0.8;
}

#addTransactionPopupTable th, #reconcileTable th, #customReportTable th {
    text-align: left;
}

#addTransactionPopupTable input, #addTransactionPopupTable select, #transEditNotes, #reconcileTable input, #customReportTable input {
    font-family: robotoslabreg, monospace;
}

#transEditNotes {
    height: 48px;
}

.transTableItemHeading {
    font-size: 0.8em;
}

input[type="checkbox"] {
    cursor: pointer;
}

.wizardInteractiveList {
    width: calc(100% - 2px);
    border: 1px solid #aaaaaa;
    height: 90px;
    overflow: auto;
}

.wizardInteractiveListItem {
    padding: 2px 6px;
    font-size: 0.9em;
    user-select: none;
    cursor: pointer;
}

.wizardInteractiveListItem:active {
    background-color: rgba(180,180,180,.2);
}

#reconcileTable input[type="number"], #addTransactionPopupTable input[type="number"], #addTransactionPopupTable input[type="text"], #addTransactionPopupTable input[type="date"], #addTransactionPopupTable select, #transEditNotes, #reconcileTable input[type="date"], #customReportTable input[type="date"], #customReportTable input[type="number"], #customReportTable input[type="text"] {
    width: calc(100% - 12px);
    margin: 0px;
    padding: 2px 6px;
    border: 1px solid #999999;
    outline: none;
    background: transparent;
    border-radius: none;
}

#addTransactionPopupTable select {
    width: 100%;
}

#mainAccountListing {
    text-align: center;
}

.project-item {
    width: calc(100% - 16px);
    max-width: 480px;
}

.project-item-meta {
    position: relative;
    min-height: 80px;
    text-align: left;
}

.project-item-meta-text {
    position: absolute;
    width: calc(100% - 100px);
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    font-family: sans-serif;
}

.project-item-meta-name {
    font-size: 1.2em;
    margin: 0px;
    padding: 0px;
}

.project-item-meta-count {
    font-size: .9em;
    margin: 0px;
    padding: 0px;
    opacity: 0.7;
    font-weight: bold;
}

.project-item-image {
    position: absolute;
    height: 68px;
    width: 68px;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
}

.project-item {
    border-radius: 4px;
    border-style: none;
    display: inline-block;
    box-shadow: 0px 1px 3px rgba(0,0,0,.3);
    margin: 8px;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    color: #000000;
    position: relative;
    background-color: #ffffff;
    cursor: pointer;
}

.project-page-item {
    width: 112px;
}

.project-item-controls {
    margin: 0px;
    padding: 4px;
    color: #ffffff;
    font-family: sans-serif;
    font-size: .9em;
}

.project-item-controls {
    text-align: right;
    border-radius: 0px 0px 4px 4px;
}

.project-item-controls img {
    height: 24px;
    width: 24px;
    margin: 0px 6px;
}

.project-item-control-sort {
    float: left;
}

#addTransactionPopupOverallHeaderActName,.wizardHeader {
    font-size: 1.1em;
    font-weight: bold;
    margin: 6px;
    text-align: center;
}

#addTransactionPopupOverallHeaderActBalance {
    text-align: center;
    font-size: 0.9em;
}

#addTransactionPopupOverallHeader {
    padding-bottom: 6px;
    border-bottom: 1px solid #333333;
}

.centerCell {
    text-align: center;;
}

.rightCell {
    text-align: right;
}

.bigNumberCell {
    font-size: 1.2em;
}

#transactionImagesArea {
    display: inline-block;
}

.transactionImageCard {
    display: inline-block;
    margin: 0px 6px 6px 0px;
    height: 42px;
    width: 42px;
    border: 1px solid #999999;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    cursor: pointer;
}

#btnAddImage {
    background-image: url("images/add-picture.png");
}

#imgPreviewHolder {
    position: fixed;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    background-color: #000000;
    display: none;
}

#imgPreviewImg {
    position: absolute;
    top: 12px;
    left: 12px;
    height: calc(100% - 24px);
    width: calc(100% - 24px);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

@media only screen and (max-width: 560px) {
    .hideSmall {
        display: none;
    }

    .hideBig {
        display: table-cell;
    }

    #mainRegisterTable {
        margin: 0px;
        width: 100%;
    }

    #addTransactionPopup {
        position: absolute;
        top: 0px;
        left: 0px;
        transform: none;
        height: 100%;
        width: 100%;
        border: none;
        border-radius: none;
        box-shadow: none;
        overflow: auto;
    }

    #addTransactionPopupOverallHeaderActName {
        display: none;
    }

    #addTransactionPopupOverallHeaderActBalance {
        margin-top: 8px;
        font-weight: bold;
    }
}