:root {
    --green: #223209;
    --palegreen: #ecefe7;
    --green: #058c02;
    --red: #c7002b;
    --rounding: 5px;
}

* {
    box-sizing:border-box;
}

body {
    background: -moz-linear-gradient(270deg, rgba(43,78,0,1) 0%, rgba(33,36,28,1) 100%);
    background: -webkit-linear-gradient(270deg, rgba(43,78,0,1) 0%, rgba(33,36,28,1) 100%);
    background: linear-gradient(270deg, rgba(43,78,0,1) 0%, rgba(33,36,28,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#2b4e00",endColorstr="#21241c",GradientType=1);
}

body, p, td, textarea, input, select, button, th, td, th input {
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    color:#FFFFFF;
}

a, 
a:visited {
    color: #ffffff;
}

textarea, input, select {
    color:#000000;
}

input {
    border-radius: 5px;
    font-family: 'Figtree', sans-serif;
    font-size: 1rem;
    padding: 8px;
    border: none;
    outline:none;
}

h1 {
    font-family: 'Figtree', sans-serif;
}

h1, h2, h3, h4, h5 {
    font-weight:500;
}

.popup h1, h2, h3, h4, h5 {
    font-family: 'Figtree', 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;
}

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(--header-text-color);
    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;
}

.login-container {
    color:#FFFFFF;
    width:95%;
    margin:5% 0 0 5%;
    max-width:370px;
    background:rgba(245,245,245,0.1);
    border-radius:12px;
    padding: 36px;
}

.login-container label {
    display:block;
    margin:24px 0 16px 0;
}

.login-container input {
    width:100%;
}

.login-container .pwd input {
    width: calc(100% - 34px);
}

.login-fail {
    color:#ffa203;
}

nav menu-main {
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.current-user {

}

.page-toolbar,
.page-header {
    display:flex;
    align-items:center;
}

.page-toolbar {
    margin-left:24px;
}

.page-header h1 {
    margin:0;
    font-size:1.2rem;
}

.client-license-manager-component button,
.page-header button {
    border:1px solid #FFFFFF;
    background:none;
    color:#FFFFFF;
    padding:8px 12px;
    border-radius:25px;
    transition:.5s;
}

.client-license-manager-component button.list-action {
    margin-left:0;
    margin-top: 12px;
}

.client-license-manager-component button.add {
    margin-top:32px;
}

.client-license-manager-component button:hover {
    background:#6D8368;
    border-color:#6D8368;
    color:#FFFFFF;
}

.page-header button:hover {
    border-color:#6D8368;
    background:#6D8368;
    color:#000;
}

.current-user svg {
    display:block;
    width:36px;
    height:36px;
}

.current-user .name {
    display:none;
    position:absolute;
    top: calc(100% + 12px);
    right:0;
    background: #6D8368;
    border-radius: 25px;
    padding: 8px 12px;
    transition:.7s;
}

.current-user {
    position:relative;
    padding:0;
    margin: 0 16px;
}

.current-user .user-icon {
    padding:0;
}

.user-icon:hover + .name {
  display: block;
}

menu {
    flex-wrap: wrap;
}   

menu a,
menu a:visited,
menu span {
    color: #ffffff;
    padding: 8px 12px;
}

menu a:hover {
    color: #d8a935;
}

menu .system {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.fixed-header main {
    padding: 24px 32px;
    padding-bottom: 64px;
}

.guid {
    font-size: 0.75rem;
    width: 18rem !important;
    text-align: center;
}

button,
input[type=submit],
.btn {
    background: var(--control-bg-1);
    padding: 8px 16px;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    width:fit-content;
}

.controls button {
    background:#d8a935;
}

button:hover,
.controls button:hover {
    background:#6D8368;
}

.input-number label {
    display:block;
    width:100%;
}

.input-number input[type=number] {
    width:90px;
}

.login-container .logo svg {
    display: block;
    width: 240px;
    margin: 0px 0 36px 0;
}

button.login {
    background:#6D8368;
    color:#FFFFFF;
    margin:24px 0 48px 0;
    padding: 8px 24px;
}

button.forgot-password {
    background:none;
    border:none;
    color:#FFFFFF;
    border-radius:0;
    padding:0;
}

button.forgot-password:hover {
    background:none;
    color:#D8A935;
}

.popup > div > h1 > button.close,
button.close {
    display:flex;
    align-items:center;
    justify-content:center;
    padding:4px;
    background:none;
    border:2px solid #FFFFFF;
    transition:.5s;
}

.popup > div > h1 > button.close:hover,
button.close:hover {
    background:#6D8368;
    border-color:#6D8368;
}

button.close svg {
    display:block;
    width:24px;
    height:24px;
    fill:#FFFFFF;
}

.login-component .controls {
    display:flex;
    flex-direction:column;
}

.waiter {
    padding:32px;
}

button.inactive,
input[type=submit].inactive,
.btn.inactive {
    filter: saturate(0);
    opacity: 0.5;
    cursor: default;
}

.pager button {
    font-size: 1rem;
}

.form-fields.client-row {
    justify-content:space-between;
    max-width:1024px;
}

.row.form-fields section.client-details {
    width:calc(70% - 24px);
    max-width: 480px;
}


.row.form-fields section.client-assets {
    height: fit-content;
    position:sticky;
    top:0px;
    width:calc(30% - 24px);
}

.row.form-fields section.client-assets .licences,
.row.form-fields section.client-assets .users {
    background:#3E4B2F;
    padding: 24px;
    border-radius: 12px;
    height: fit-content;
    margin-top: 36px;
}

.client-licenses li {
    margin:12px 0;
}

.client-users li {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin: 12px 0;
    padding-top: 12px;
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
}

.client-users li:first-child {
    border-top: none;
}

.license-totals,
.license-by-dates li {
    border-top:1px solid rgba(255, 255, 255, 0.3);
    padding:12px 0;
}

.license-totals {
    padding-top:12px;
}

.client-licenses li:first-child .license-totals {
    padding-top:0;
}

.client-licenses li:first-child .license-totals,
.license-by-dates li:first-child {
    border:none;
}

.popup > div > .row > .section > * {
    padding-right: 2rem;
    margin-right: 2rem;
}

.section:first-child {
    margin-top:0;
}

.user-licenses {
    margin:12px 0;
}

.user-licenses li {
    border-top:1px solid #6D8368;
    padding:12px 0;
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr 1fr;
}

.user-licenses li:first-child {
    border-top:none;
}

h2.section-w-section {
    margin-top:32px;
}

.dashboard .section {
    margin:0;
}

.popup > div > .row > .section:last-child > * {
    padding-right: 0;
    margin-right: 0;
}

.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-bottom: 1px solid #FFFFFF;
}



th.id {
    width: 1em;
}

.cost {
    font-family: Ubuntu Mono;
    text-align: right;
}

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-bg-1);
}

button.sub {
    font-size: 0.75rem;
}

.koa-ui-dynamic-popup > div > h2 {
    color: #ffffff;
    padding: 16px;
}

.row > .section > div > .help,
.row > .section > div.group > div > .help {
    display: block;
}

.dashboard .section.actions > div {
    display: block;
}


.dashboard .section.actions > div a {
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #FFFFFF;
    display: block;
    color: #FFFFFF;
    position:relative;
    border-radius: 8px;
    font-size:1.2rem;
}

.dashboard .coming-soon:after {
    content: 'COMING SOON';
    position: absolute;
    top: 1.8em;
    left: 14em;
    transform: rotate(320deg);
    background: #FFFFFF;
    color: #ffffff;
    padding: 0 1em;
    border-radius: 10px;
    font-family: 'Figtree';
}

.dashboard .section.actions > div a {
    transition:.5s;
}

.dashboard .section.actions:hover > div a {
    opacity: 0.5;
}

.dashboard .section.actions:hover > div a:hover {
    opacity: 1;
}

.dashboard .section.actions > div > a > div {
    font-size: 0.9rem;
    margin-top:6px;
    color:#EDEDED;
}

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 {
    width: 100%;
}

.section-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;
}

button.toggle {
    background: #bbbbbb;
    border-color: #808080;
    border-radius: 0;
}

button.toggle.selected {
    background: var(--control-bg-1);
}

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);
}

.address-manager-component li {
    display: flex;
    flex-direction: column;
}

li button.expand {
    border: none;
    color: #FFFFFF;
    background: #6D8368;
    padding: 4px 8px;
    margin: 0 0 0 12px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
}

li button.expand:hover {
    background: #223209;
    color: #ffffff;
}

button.list-action {
    font-size: 0.85rem;
    padding: 4px 8px;
    margin-left:12px;
}

.row.form-fields section.client-assets {
    max-width: 360px;
}

.mobile {
    display:none;
}

label.mobile {
    width:80px;
    font-weight:600;
}

label.mobile.lblfw {
    width: 100%;
    margin-bottom: 12px;
}

.contact-card li {
    margin:4px 0;
}

.contact-card li:first-child {
    margin:0 0 4px 0;
}

.cf-dateselector {
    display: flex;
    align-items: center;
    width: calc(100% - 225px) !important;
}

select.cf-dsctor-part {
    margin-right: 5px;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: none;
    width: 4em !important;
    text-align: center;
}

.cf-dateselector:hover select.cf-dsctor-part,
.cf-dateselector:focus select.cf-dsctor-part {
    -moz-appearance: unset;
    -webkit-appearance: unset;
    appearance: unset;
    background-image: unset;
}

select.cf-dsctor-part.yc {
    padding-right: 0;
    border-right: none;
    margin-right: 0;
    width: unset;
    text-align: right;
}

select.cf-dsctor-part.yc {
    border-top-right-radius:0;
    border-bottom-right-radius:0;
}

select.cf-dsctor-part.yd {
    padding-left: 0;
    border-left: none;
    margin-left: 0;
    text-align: left;
}

select.cf-dsctor-part.yd {
    border-top-left-radius:0;
    border-bottom-left-radius:0;
}

.cf-dsctor-sep:before {
    content: '/';
    padding-right: 5px;
}

.edit-licenses li {
    display: flex;
    align-items: center;
    gap:16px;
}

.user-assignment {
    display:flex;
    align-items:center;
    gap:6px;
}

.user-assignment svg {
    fill:#FFFFFF;
    display:block;
    width:16px;
    height:16px;
}

@media print {
    .no-print {
        display: none !important;
    }

    .print-only {
        display: initial !important;
    }
}

@media screen and (max-width:1280px) {
    .row.form-fields section.client-details,
    .row.form-fields section.client-assets {
            width: calc(50% - 24px);
    }
}


@media screen and (max-width:960px) {
    .row.form-fields section.client-details,
    .row.form-fields section.client-assets {
        width:100%;
    }

    .row.form-fields section.client-assets {
        max-width: unset;
    }
}

@media screen and (max-width:720px) {
    .fixed-header header {
        height: calc(var(--header-height) + 2em);
    }

    table thead {
        display:none;
    }

    tr {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
    }

    td.id, th.id, td {
        display:block;
        width: 100%;
        border:none;
    }

    .mobile {
        display:inline-block;
    }

    label.mobile.lblfw {
        display:block;
    }
    
}