/* asset management */
.fam-asset-meta {
    display: flex;
    justify-content: left;
    gap: 5px;
}

.fam-asset-meta input, .fam-asset-meta select {
    display: block;
    min-width: 120px;
    line-height: 1rem !important;
    box-sizing: border-box;
}

.fam-asset-meta label {
    background-color: var(--color-highlight);
    font-size: .8rem;
    font-weight: bold;
    color: #fff !important;
    margin-bottom: 0;
    padding: 0px 5px;
    display: block;
    width: min-content;
    white-space: nowrap;
}

.fam-assetvalues-date button {
    display: block;
    width: 100%;
    text-align: right;
    line-height: 1.6rem;
}

.fam-assetvalues-add {
    display: flex;
    flex-direction: column;
}

.fam-assetvalues-add button {
    flex-grow: 1;
    padding: 0;
}

.fam-assetvalues-labels span {
    overflow: hidden;
    display: block;
    padding: .4em .4em;
    font-size: .9rem;
    line-height: 1.43rem !important;
    white-space: nowrap;
}
.fam-assetvalues-labels span:first-child {
    border-bottom: 1px solid transparent;
}

.fam-assetvalues-date span {
    overflow: hidden;
    display: block;
}
.fam-assetvalues-date span:first-child {
    border-bottom: 1px solid var(--color-borderdecent);
}

.fam-assetvalues-date input {
    text-align: right;
}

.fam-portfolio-asset {
    overflow-x: auto;
    margin-bottom: 2px;
    border: 1px solid var(--color-borderdecent);
    padding: 5px;
    padding-bottom: 10px;
}

.fam-assetvalues {
    display: flex;
    margin-top: 5px;
    gap: 10px;
}

.fam-label {
    background-color: var(--color-highlight);
    font-size: .8rem;
    font-weight: bold;
    color: #fff !important;
    margin-bottom: 0;
    padding: 0px 5px;
    display: inline-block;
}

.fam-assetvalues div {
    border: 1px solid var(--color-borderdecent);
    padding: 0 5px;
}

.fam-assetvalues div:first-child {
    border-color: transparent;
}

.fam-assetvalues div input {
    display: block;
    width: 120px;
    background-color: transparent !important;
}

.fam-assets {
    font-size: .9rem;
}

.fam-assets .currency {
    text-align: right;
}

.fam-assets .percentage {
    text-align: right;
}

.fam-assets input.form-control, .fam-assets select.form-control, .fam-children select.form-control, .fam-plans-add select.form-control {
    padding: .4em .4em;
    font-size: .9rem;
    height: auto;
    border: 0;
    background-color: var(--color-headers);
}

.fam-assets input.form-control::placeholder {
    color: #aaaaaa;
    opacity: 1;
}

.fam-assets input.form-control:-ms-input-placeholder {
    color: #aaaaaa;
    color: red;
}

.fam-assets input.form-control::-ms-input-placeholder {
    color: #aaaaaa;
    color: red;
}

/* fam section */
.fam-section {
    margin: 3px 0 5px;
    padding: 3px 0 3px 0;
    border: 1px solid #ccc;
    background-color: #fff;
}

.fam-section-header {
    display: flex;
    justify-content: space-between;
}

.fam-section-toggle {
    text-align: right;
    display: inline-block;
    padding: 5px;
    cursor: pointer;
}

.fam-section .fam-section-toggle .la-caret-left {
    display: block;
}

.fam-section.open .fam-section-toggle .la-caret-left {
    display: none;
}

.fam-section .fam-section-toggle .la-caret-down {
    display: none;
}

.fam-section.open .fam-section-toggle .la-caret-down {
    display: block;
}

.fam-section .fam-section-main {
    display: none;
}

.fam-section.open .fam-section-main {
    display: block;
}

.fam-section .handle, .fam-section .pagehandle, .fam-section .elementhandle {
    display: inline-block;
    padding: 2px 5px;
}

.fam-section-main-sections .fam-section-portfolio {
    border: 1px solid var(--color-borderdecent);
    padding: 2px 8px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
}

.fam-page-header {
    display: flex;
    justify-content: space-between;
}

.fam-elements-list {
    margin-top: 2px;
    margin-left: 15px;
    min-height: 7px;
}

.fam-section-elements {
    margin-left: 15px;
    margin-right: 15px;
    flex-grow: 1;
}

.fam-section-element {
    border: 1px solid var(--color-borderdecent);
    padding: 2px 8px 2px 2px;
    margin-bottom: 3px;
    background-color: #fff;
}

.fam-page {
    border: 1px solid var(--color-borderdecent);
    padding: 2px 8px 2px 2px;
    margin-bottom: 3px;
    background-color: #fff;
    background-color: rgba(0,0,0,.02);
}

.fam-section-element-header {
    display: flex;
    justify-content: space-between;
}

.fam-section-main-sections {
    display: flex;
    justify-content: space-between;
}

.fam-preview iframe {
    aspect-ratio: 1 / 1 !important;
    width: 100%
}

.fam-preview {
    border: 1px solid var(--color-borderdecent);
}

.fam-preview span {
    display: block;
    font-size: 3em;
    font-weight: bold;
    opacity: 0.1;
    text-align: center;
    padding: 100px 0;
}

.fam-section-element-body form .group {
    display: flex;
    align-items: stretch;
}

.fam-section-element-body form .label {
    min-width: 100px;
    margin: 0;
    line-height: 2em;
}

.fam-section-element-body form {
    font-size: .9em;
    border: 1px solid var(--color-borderdecent);
    padding: 10px;
    margin: 10px;
}

.fam-plans input.currency {
    text-align: right;
}

.fam-assetgroupdates-error {
    margin: 10px;
    border-radius: 2px;
    opacity: 85%;
}

.fam-assetgroupdates-error-text {
    color: indianred;
    text-align: center;
}

/* printing */
/* ubuntu-300 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/ubuntu-v20-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ubuntu-300italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Ubuntu';
    font-style: italic;
    font-weight: 300;
    src: url('fonts/ubuntu-v20-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ubuntu-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/ubuntu-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ubuntu-italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Ubuntu';
    font-style: italic;
    font-weight: 400;
    src: url('fonts/ubuntu-v20-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ubuntu-500 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 500;
    src: url('fonts/ubuntu-v20-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ubuntu-500italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Ubuntu';
    font-style: italic;
    font-weight: 500;
    src: url('fonts/ubuntu-v20-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ubuntu-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/ubuntu-v20-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ubuntu-700italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Ubuntu';
    font-style: italic;
    font-weight: 700;
    src: url('fonts/ubuntu-v20-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* gilda-display-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Gilda Display';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/gilda-display-v14-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/* print pdf */
.fam-element-wrapper {
    display: flex;
    aspect-ratio: 1 / 1;
    flex-direction: column;
    padding: 1rem;
}
.fam-innertitle {
    font-family: 'Gilda Display';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: left;
    font-size: 1.2em;
}
.element-has-innertitle {
    padding-top: 2em;
}
.fam-footnote {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: left;
    font-size: .8em;
}
html.fam-pdf {
    font-size: 0.5cm;
}
html.fam-pdf .fam-print-page {
    width: 100vw;
    height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    page-break-after: always;
}
html.fam-pdf .fam-print-content {
    padding: 1.75cm 3cm;
    aspect-ratio: 297 / 209;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

html.fam-browser {
    font-size: 11px;
}

html.fam-print {
    font-family: 'Ubuntu';
    font-weight: 300;
    color: #313335;
}
html.fam-print a {
    color: #313335;
    text-decoration: none;
}
html.fam-print a:hover {
    color: #313335;
    text-decoration: none;
}
html.fam-print .page-dark {
    background-color: #003867;
}
html.fam-print .fam-print-body {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
}
html.fam-print .fam-print-row {
    display: flex;
    justify-content: center;
}
html.fam-print .fam-print-cell {
    display: flex;
    flex-direction: column;
    background-image: url('corner.png');
    background-position: right bottom;
    background-repeat: no-repeat;
    background-size: 3%;
    padding: 1rem;
    border: 1px solid #ccc;
    border-width: 1px 1px 1px 0px;
    overflow: hidden;
    box-sizing: border-box;
}
html.fam-print .fam-print-row:nth-child(2) .fam-print-cell {
    border-top-width: 0;
}
html.fam-print .fam-print-cell:nth-child(1) {
    border-left-width: 1px;
}

html.fam-print .page-dark .fam-print-cell {
    border: 0;
}
html.fam-print .fam-print-footer {
    text-align: center;
    font-size: 1rem;
    padding-top: .3rem;
    font-family: 'Gilda Display';
}
html.fam-print .fam-print-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 1rem;
    color: #003867;
    align-items: end;
    font-family: 'Gilda Display';
}
html.fam-print .page-dark .fam-print-header {
    color: #fff;
}
html.fam-print .fam-print-header .fam-print-title {
    font-size: 1.8rem;
    padding: 0;
    margin: 0;
    line-height: 100%;
}
html.fam-print .fam-print-logo {
    background-image: url('print-logo.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right 2px center;
    height: 1.5cm;
    display: block;
    width: 33%;
}
html.fam-print .fam-coverpage-content span {
    font-family: 'Gilda Display';
}
html.fam-print .fam-coverpage-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}
html.fam-print .fam-coverpage-logo {
    background-image: url('print-logo.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    height: 2.5cm;
    display: block;
    margin-bottom: 1rem;
    width: 60%;
}
html.fam-print .page-dark .fam-coverpage-logo {
    background-image: url('print-logo-inv.png');
}
html.fam-print .fam-element-coverpageelement {
    color: #003867;
}
html.fam-print .page-dark .fam-element-coverpageelement {
    color: #fff;
}
html.fam-print .fam-element {
    text-align: center;
    flex-grow: 1;
    display: flex;
    position: relative;
}

html.fam-print .fam-print-table {
    width: 100%;
}

html.fam-print .fam-print-table thead th {
    font-weight: 600;
    vertical-align: top;
}

html.fam-print .fam-print-table td {
    font-weight: 300;
}

html.fam-print .fam-print-table .table-text {
    text-align: left;
    padding-right: 5px;
    border-bottom: 1px solid #ccc;
}

html.fam-print .fam-print-table .table-text-sl {
    padding-left: 15px;
}

html.fam-print .fam-print-table .table-number {
    text-align: right;
    padding-left: 5px;
    border-bottom: 0.01rem solid #ccc;
}

html.fam-print .fam-print-table .table-number-negative {
    color: orangered;
}

html.fam-print .fam-print-table tfoot th {
    font-weight: 300;
}

html.fam-print .fam-print-table tfoot th.table-total {
    font-weight: 600;
}

.form-control.form-control-tiny {
    padding: 2px;
    line-height: 1em;
    font-size: .9rem;
    height: auto;
}
.form-control.form-control-tiny option {
    padding: 2px;
    line-height: 1em;
    font-size: .9rem;
    height: auto;
}

