a:hover {
    opacity: 0.5;
}

:root {
    --pink: #ff009c;
    --palepink: #ffe7f6;
    --green: #058c02;
    --red: #c7002b;
    --rounding: 5px;
}

body, p, td, textarea, input, select, button, th, td, th input {
    font-family: Sofia-Pro, Mukta, sans-serif;
    font-size: 17px;
}

h1 {
    font-family: Sofia;
}

.popup h1, h2, h3, hfinsi4, h5 {
    font-family: Sofia-Pro, Mukta, sans-serif;
}

h1 {
    font-size: 1.8rem;
}

h2,
h2 > span {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.2rem;
}

h4 {
    font-size: 1rem;
}

h5 {
    font-size: 1rem;
}

table {
    margin: 0;
}

body header,
body header h1,
body.collapse-header header,
body.collapse-header header h1 {
    transition: all ease 500ms;
    padding: 0;
    margin: 0;
}

header, footer {
    background: #111111;
    color: #ffffff;
}

footer {
    display: flex;
    align-items: center;
}

body header h1 {
    background: url(/images/logo.svg);
    background-repeat: no-repeat;
    background-size: 60px 60px;
    background-position: 10px 10px;
    color: var(--pink);
    height: 70px;
    padding-left: 80px;
    display: flex;
    align-items: center;
    font-size: 40px;
}

body.collapse-header header {
    display: flex;
    align-items: center;
    height: var(--collapsed-header-height);
}

body.collapse-header header h1 {
    font-size: 18px;
}

menu {
    flex-wrap: wrap;
}

menu a,
menu a:visited,
menu span {
    color: #ffffff;
    padding: 0 0.5rem;
}

menu a:hover {
    background-color: var(--pink);
    color: #ffffff;
    padding: 0 0.5rem;
    border-top-left-radius: var(--rounding);
    border-top-right-radius: var(--rounding);
}

menu .system {
    margin-left: auto;
    display: flex;
}

.fixed-header main {
    padding: 1rem;
    padding-top: calc(var(--header-height) + 1rem);
    padding-bottom: 60px;
}

.guid {
    font-size: 0.75rem;
    width: 18rem !important;
    text-align: center;
}

button,
input[type=submit],
.btn {
    background: var(--control-blue);
    padding: 0.25rem 0.5rem;
    color: #ffffff;
    border: 2px solid var(--logo-blue);
    border-radius: 0.5rem;
    font-size: 1.25rem;
}

button:not(.inactive):hover,
input[type=submit]:not(.inactive):hover,
.btn:not(.inactive):hover {
    background: var(--logo-blue);
    border-color: var(--control-blue);
}

input[type=text],
input[type=date],
input[type=number],
input[type=password] {
    padding-left: 1.2em;
}

button.inactive,
input[type=submit].inactive,
.btn.inactive {
    filter: saturate(0);
    opacity: 0.5;
    cursor: default;
}

.pager button {
    font-size: 1rem;
}

tbody tr:nth-child(odd) {
    background: rgb(101, 202, 237, 0.07);
}

.row .section {
}

.popup .row {
    flex-wrap: nowrap;
}

.popup > div > .row > .section > * {
    padding-right: 2rem;
    margin-right: 2rem;
}

.popup > div > .row > .section > *:last-child {
    padding-bottom: 4em;
}

.popup > div > .row > .section:last-child > * {
    padding-right: 0;
    margin-right: 0;
}

.popup > div > .row > .section:nth-child(even) {
    background: rgb(101, 202, 237, 0.07);
    margin: -2rem;
    padding: 2rem;
}

.ui-lookup,
.ui-datepicker-with-icon {
    display: inline-flex;
    align-items: center;
}

.ui-lookup-search,
.ui-datepicker-with-icon i {
    font-size: 1.5rem;
    margin-left: 0.5rem;
}

a.ui-lookup-search:hover {
    color: var(--logo-blue);
}

.ui-datepicker-with-icon i {
    cursor: pointer;
}

.ui-datepicker-with-icon i:hover {
    color: var(--logo-blue);
}

td a.id {
    font-size: 0.75rem;
    color: #909090;
}

th input {
    font-weight: 600;
}

th {
    border-top: 1px solid #909090;
    border-bottom: 1px solid #909090;
    border-right: 1px solid #dddddd;
}

th:first-child {
    border-left: 1px solid #909090;
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

th:last-child {
    border-right: 1px solid #909090;
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

th.id {
    font-size: 0.75rem;
    color: #909090;
    width: 1em !important;
}

.list-controls, .list-controls th {
    border: none;
    border-bottom: 1px solid #eeeeee;
    border-radius: 0;
}

.list-controls button {
    padding: 0.15rem 0.8rem;
}

.tab-buttons {
    border-bottom: 2px solid var(--logo-blue);
}

.tab-buttons button {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-right: 0.25em;
    margin-bottom: -2px;
}

.cost {
    font-family: Ubuntu Mono;
    text-align: right;
}

.cost.cr {
    color: #058c02;
}

.cost.db {
    color: #c7002b;
}

td .cost {
    display: block;
}

.cost:before {
    content: '£';
}

.cost.total,
.total > .cost {
    font-weight: 900;
}

.percentage:after {
    content: '%'
}

table.data-sheet {
    width: 100%
}

table.data-sheet.mini {
    width: auto
}

table.data-sheet th {
    white-space: nowrap;
}

.section h3 button {
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
}

td a,
td a:visited {
    color: var(--control-blue);
}

tr.highlight td {
    background: #bdebff;
}

tr.highlight td * {
    font-weight: 600;
}

button.sub {
    font-size: 0.75rem;
}

.koa-ui-dynamic-popup > div > h2 {
    background: var(--pink);
    color: #ffffff;
    padding: 0.5em;
}

.row > .section > div > .help,
.row > .section > div.group > div > .help {
    display: block;
}

.dashboard .section.actions > div {
    display: block;
}


.dashboard .section.actions > div a {
    padding: 1em;
    margin-bottom: 1em;
    border: 1px solid var(--pink);
    display: block;
    color: var(--green);
    position: relative;
}

.dashboard .coming-soon:after {
    content: 'COMING SOON';
    position: absolute;
    top: 1.8em;
    left: 14em;
    transform: rotate(320deg);
    background: var(--pink);
    color: #ffffff;
    padding: 0 1em;
    border-radius: 10px;
    font-family: 'Pragati Narrow';
}

.dashboard .section.actions > div a:hover {
    opacity: 0.5;
}

.dashboard .section.actions > div > a > div {
    font-size: 0.8rem;
    color: #606060;
}

table .col-group-start {
    border-left: 4px solid #dddddd;
}

.popup .controls button.recycle {
    margin-left: auto;
    background: #f1a61c;
    border-color: #e78669;
}

.popup .controls button.recycle.restore {
    background: #4cd58c;
    border-color: #419859;
}

td .notes,
td .list-info {
    font-size: 0.75rem;
    line-height: 1.35em;
    display: block;
}

td .actions button {
    font-size: 0.75rem;
}

.toolbar.section-toolbar,
.toolbar.manager-toolbar {
    width: 100%;
    margin-bottom: 0.5em;
}

.section-toolbar button,
.manager-toolbar button {
    font-size: 0.85rem;
}

.cost.outstanding {
    font-weight: 900;
    color: var(--red);
}

.print-only {
    display: none !important;
}

.row > .group {
    width: 100%;
}

td.de-em > span,
th.de-em > span {
    font-size: 0.8em;
    color: #aaaaaa;
}

.login-option {
    padding: 2em;
    margin-bottom: 2em;
    background: var(--palepink);
}

button.toggle {
    background: #bbbbbb;
    border-color: #808080;
    border-radius: 0;
}

button.toggle.selected {
    background: var(--control-blue);
}

button.toggle:first-of-type {
    border-top-left-radius: var(--rounding);
    border-bottom-left-radius: var(--rounding);
}

button.toggle:last-of-type {
    border-top-right-radius: var(--rounding);
    border-bottom-right-radius: var(--rounding);
}

.popup .buttons {
    box-shadow: 0 -10px 10px -5px rgba(0, 0, 0, 0.25);
}

ul.finance-summary {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5em;
}

ul.finance-summary li {
    margin: 0.5em;
    padding: 0.5em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #909090;
    border-radius: 0.5rem;
}

ul.finance-summary li .name {
}

.cost.debit,
.debit-amount {
    color: #c7002b;
}

.cost.credit {
    color: #058c02;
}

tr.header-groups th.group-name {
    border-bottom: 2px solid #bbbbbb;
    border-radius: 0;
}

tr.header-groups th {
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.detailed th,
.detailed th *:not(i),
.detailed td,
.detailed td *:not(i) {
    font-family: Pragati Narrow;
    font-size: 17px;
}

.detailed td.guid {
    width: auto !important;
    white-space: nowrap;
}

.detailed td.guid * {
    font-size: 13px !important;
    text-wrap: balance;
}

tr.last-seen {
    box-shadow: 0 0 10px -2px;
}

button.sub-control {
    height: 2em;
    display: inline-flex;
    align-items: center;
    color: #293583;
    border: 1px solid #293583;
    background: #ffffff;
}

button.sub-control i {
    padding-right: 0.5em;
}

th.rot > * {
    display: block;
    rotate: 270deg;
    white-space: nowrap;
}

table thead select {
    padding: 0.19rem 0.5rem;
}

tr.summary-start td {
    border-top: 3px solid #eeeeee;
}

.query {
    color: #578bbd
}

.row.single-line {
    flex-wrap: nowrap !important;
}

.minus-sign {
    position: absolute;
    left: 178px;
    top: -2px;
    font-weight: 400;
    font-size: 32px;
    display: inline-block !important;
    width: auto !important;
}

.row.dashboard {
    gap: 1em;
}

.login-component .username, .login-component .password {
    margin-bottom: 0.5em;
}

.login-component .icon.pwd::after {
    padding-left: 0.5em;
    content: 'Show';
}

td .estimate {
    font-size: 0.85em;
    opacity: 0.5;
}

.insights .category {
    border-radius: 2px;
    padding: 0.5em 1em 1em 1em;
    background: #eeeeee;
}

.insights {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    margin-bottom: 1em;
    width: 100%;
}

.insights .category-name {
    font-size: 1.25rem;
    font-weight: 600;
}

.insights .category-items.h {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.insights .category-items > * {
    margin-bottom: 1em;
    padding: 0.5em;
    background: #3c5eb80d;
}

.insights .category-items > *:nth-child(even) {
    background: none;
}

.insights .period .y,
.insights .period .m {
    color: #009aff;
    font-weight: 600;
}

.insights .category-items label {
    width: 60px;
    font-size: 0.85rem;
    color: #909090;
}

.insights .category-items > * > * {
    display: flex;
    align-items: center;
}

.insights .category-items > * > .period {
    margin-left: auto;
    display: block;
}

.insights .accounts-details .category-items > * {
    border-bottom: 1px solid #aaaaaa;
}

.accounts-details .cost-details .credits, 
.accounts-details .cost-details .debits {
    font-size: 0.9rem;
}

.accounts-details .cost-details > * {
    line-height: 1.1em;
    justify-content: space-between;
}

.accounts-details .cost-details .total {
    padding-top: 0.1em;
}

.accounts-details tbody td:first-child {
    border-right: 3px solid #909090;
}

.insights .accounts-details .category-items.totals td {
    border-top: 3px double #909090 ;
}

.col-task-circle {
    width: 10em;
}

.cfaf-documentstore .list-header {
    display: none;
}

@media print {
    .no-print {
        display: none !important;
    }

    .print-only {
        display: initial !important;
    }
}

@media screen and (max-width:720px) {
    .fixed-header header {
        height: calc(var(--header-height) + 2em);
    }
}
