:root {
    --purple: #512683;
    --green: #34b78f;
    --red: #c7002b;
    --rounding: 5px;
    --ih: #ff00ce;
    --ov: #0071d3;
    --voucher: #b000ff;
}

body, p, td, textarea, input, select, button, th, td, th input {
    font-family: Mukta, sans-serif;
    font-size: 17px;
}

div, p, td, span, th, button, label {
    position: relative;
}

.popup h1, h2, h3, h4, h5 {
    font-family: Mukta, sans-serif;
}

h1 {
    font-family: Mukta, sans-serif;
    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 {
    background: linear-gradient(90deg, rgba(220, 221, 242, 1) 0%, rgba(255, 255, 255, 1) 50%, rgba(220, 221, 242, 1) 100%)
}

a:hover {
    opacity: 0.5;
}

body header,
body header h1,
body.collapse-header header,
body.collapse-header header h1 {
    transition: all ease 500ms;
    padding: 0;
    margin: 0;
}

header {
    display: flex;
}

header .user-info {
    display: flex;
}

header, footer {
    background: #fefefe;
    color: #202020;
}

header .logo {
    padding: 1em;
}

header .logo svg {
    height: 100%;
    margin-left: -65px;
}

.fixed-header header {
    overflow: unset;
}

footer {
    display: flex;
    align-items: center;
    padding-left: 1em;
    font-size: 0.8em;
}

body header h1 {
    color: var(--purple);
    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;
}

.auth-info {
    position: fixed;
    right: 1rem;
    top: 1rem;
    font-size: 0.8rem;
    display: block;
    padding: 0.15rem 0.35rem;
    border: 1px solid #909090;
    border-radius: 5px;
}

menu {
    flex-wrap: wrap;
}

menu a,
menu a:visited,
menu span {
    color: #ffffff;
    padding: 0 0.5rem;
}

menu a:hover {
    background-color: var(--purple);
    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: #34b78f;
    height: 2em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    color: #ffffff;
    border: 1px solid #319f7e;
    border-radius: 5px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
}

button:not(.inactive):hover,
input[type=submit]:not(.inactive):hover,
.btn:not(.inactive):hover {
    background: var(--button-hover-bg);
    color: var(--button-hover-fg);
    border-color: var(--button-hover-border);
}

button.inactive,
input[type=submit].inactive,
.btn.inactive {
    filter: saturate(0);
    opacity: 0.5;
    cursor: default;
}

input[type=text],
input[type=number],
input[type=date],
select,
textarea {
    border: 1px solid #a3bfce;
    border-radius: 3px;
    height: 2em;
    padding-left: 0.5em;
    padding-right: 0.5em;
}

textarea {
    height: unset;
}

.koa-lookup input[type="text"] {
    padding-right: 2em;
}

.pager button {
    font-size: 1rem;
}

tbody tr:nth-child(odd) {
    background: rgb(101, 202, 237, 0.07);
}

.row .section {
}

.popup > div > .row > .section > * {
    padding-right: 2rem;
    margin-right: 2rem;
}

.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 {
    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;
}

td .notes {
    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%;
}

.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);
}

.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;
}

.e-learning-errors li {
    font-size: 12px;
    line-height: 16px;
}

.e-learning-errors {
    color: var(--red);
}

.insights {
    display: flex;
    gap: 1em;
}

.insights.historical {
    margin-top: 2em;
    filter: saturate(0);
}

.insights .insight {
    background: #ffffffdd;
    border-radius: 3px;
    width: 100%;
}

.insights .insight.ytd {
    border-left: 5px solid #482e79;
    border-bottom: 2px solid #3d256b;
    border-top-left-radius: 5px;
    border-bottom-right-radius: 2px;
}

.insights .insight > .header {
    padding: .5em;
    background: #7d55c7;
    color: #ffffff;
    font-weight: 600;
}

.insights .amounts .sub {
    display: flex;
    gap: 0.5em;
    flex-direction: column;
    line-height: 0.75em;
    padding: 0.5em 0 0.5em 0;
}

.insights .amounts .sub .vat:before {
    content: ' + VAT ';
}

.insights .amounts .sub * {
    font-weight: 400;
    font-size: 0.9em;
}

.insights .values .value > * {
    padding-left: 1em;
    padding-right: 1em;
}

.insights .values .value > label {
    padding: 1em 1em 0.5em 1em;
    line-height: 1.1em;
    font-size: 0.9em;
    display: flex;
    flex-direction: column;
}

.insights .values .value:nth-child(even) {
    background: #36797c0f;
}

.insights .header .delta {
    background: #000000dd;
    border-radius: 5px;
    font-size: 0.85em;
    padding: 0 0.25em;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.insights .header .delta .credit {
    color: #14dc10;
}

.insights .header .delta .debit {
    color: #ff3e68
}

.insights .header .period > * {
    line-height: 1.25em;
}

.insights .header .period {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.25em;
}

.insights .amounts .key .cost {
    font-weight: 600;
    font-size: 1.15em;
}

.insights .revenue-total {
    color: #aaaaaa;
}

.insights .insight .drilldown {
    position: absolute;
    z-index: 1;
    right: 0.25em;
    top: 0.25em;
    padding: 0;
    height: 1em;
    width: 1em;
    background: transparent;
    border: none;
    transform: rotate(-45deg);
    display: none;
}

.insights .insight:hover .drilldown {
    display: flex;
}

.insights .insight:hover .drilldown:hover {
    background: #ffffff;
    color: #7d55c7;
}

.revenue-type-G {
    color: var(--ih);
}

.revenue-type-P {
    color: var(--ov);
}

.revenue-type-V {
    color: var(--voucher);
}

.controls {
    display: flex;
    gap: 1em;
    align-items: center;
}

.controls .title {
    font-size: 1.5em;
}

.controls .menu button {
    padding: 0.25rem;
    font-size: 1rem;
}

.controls .menu button.handle {
    height: 2em;
    width: 2em;
}

.main-menu .menu-pane {
    padding: 2em 2.5em;
}

.menu-pane {
    position: absolute;
    z-index: 1;
    background: #ffffff;
    padding: 1em;
    display: flex;
    flex-direction: column;
    gap: 1em;
    box-shadow: 0.5em 0.5em 0.5em -0.25em #909090;
    border-radius: 3px;
    top: calc(100% + 2px);
}

.menu-pane > *:not(.menu-section) {
    display: flex;
    align-items: center;
    width: fit-content;
    gap: 0.5em;
    border-bottom: 1px dotted #b1b8c5;
    padding-bottom: 0.5em;
    width: 100%;
}

.menu-pane > *:not(.menu-section) > * {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.menu-section-title {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.menu-section > div:not(.menu-section-title) {
    border-bottom: 1px dotted #b1b8c5;
    padding-bottom: 0.5em;
}

.menu-section a {
    width: fit-content;
    display: flex;
    white-space: nowrap;
}

.revenue-charts {
    margin-top: 20px;
    display: flex;
}

.revenue-charts .dummy {
    flex-grow: 0;
    background: #00000010;
    width: 100%;
    margin-left: calc(1.2% + 1em);
    margin-top: 30px;
    margin-bottom: 27px;
    border-left: 5px solid #00000010;
    border-bottom: 2px solid #00000010;
    border-top-left-radius: 5px;
    border-bottom-right-radius: 2px;
}

revenue-dashboard > .controls {
    margin-bottom: 1em;
}

tr.totals td {
    border-top: 3px double #7c56ca;
    font-size: 1.25em;
    font-weight: 600;
}

button.ib {
    width: 2em;
    height: 2em;
}

.snapshot-update label {
    font-size: 0.85em;
}

h2 span > .month {
    padding-right: 0.25em;
}

.main-menu button.handle {
    background: transparent;
    border: none;
    color: #404040;
    font-size: 48px;
}

.main-menu button.handle:hover {
    color: #34b78f
}

@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);
    }
}
