:root {
    --purple: #512683;
    --light-purple: rgba(125, 85, 199, 0.05);
    --light-purple-hover: rgba(125, 85, 199, 0.1);
    --light-attention: #ffeddf;
    --light-info: #d9edf7;
    --light-green: #d4edda;
    --green: #34b78f;
    --red: #c7002b;
    --rounding: 5px;
    --ih: #ff00ce;
    --ov: #0071d3;
    --voucher: #b000ff;
}

body, p, td, textarea, input, select, 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,
.btn:visited{
    background: #9e7ddb;
    height: 2em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    color: #ffffff;
    border-radius: 5px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    border: none;
}

button:not(.inactive):hover,
input[type=submit]:not(.inactive):hover,
.btn:not(.inactive):hover {
    background: #7D55C7;
    opacity: 1;
    color: var(--button-hover-fg);
}

button.inactive,
input[type=submit].inactive,
.btn.inactive {
    filter: saturate(0);
    opacity: 0.5;
    cursor: default;
}

button.selected,
.btn.selected {
    background: #5661ca
}

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);
}

table.waiting th:first-child:before {
    content: 'Loading...';
    position: absolute;
    padding: 0.9em;
    background: #fcfcfe;
    top: 1px;
    z-index: 1;
    width: 6em;
    animation: LoadingText 3s infinite linear;
}

.rot-header span {
    vertical-align: bottom;
    writing-mode: vertical-lr;
}

@keyframes LoadingText {
    0% {
        content: 'Loading'
    }

    10% {
        content: 'Loading'
    }

    20% {
        content: 'Loading.'
    }

    30% {
        content: 'Loading.'
    }

    40% {
        content: 'Loading..'
    }

    50% {
        content: 'Loading..'
    }

    60% {
        content: 'Loading...'
    }
}


td a.id,
td .id,
td.id span {
    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;
}

th:last-child {
    border-right: 1px solid #909090;
    border-top-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: #000000;
    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;
}

learner-statistics-dashboard > .controls,
revenue-dashboard > .controls {
    margin-bottom: 0.75em;
}

tr.totals td {
    border-top: 3px double #7c56ca;
    font-size: 1.25em;
    font-weight: 600;
}

tr.totals.top td {
    border-bottom: 3px double #7c56ca;
    border-top: none;
}

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
}

.available-course-packages li:hover {
    background: var(--button-hover-bg);
    color: #ffffff;
}

.available-course-packages li.selected {
    background: #319f7e;
    color: #ffffff;
}

td .compound {
    display: flex;
    flex-direction: column;
}

td .address {
    display: flex;
    flex-direction: column;
    line-height: 1.25em;
}

td .trainers {
    display: flex;
    flex-direction: column;
    line-height: 1.25em;
}

.trainers .additional-trainer {
    color: #34B78F;
    font-size: 0.85em;
}

.trainers .additional-trainer:before {
    content: '+';
    padding-right: 0.3em;
}

.course-date .additional-date {
    font-size: 0.85em;
}

.course-date .additional-date:before {
    content: '+';
    padding-right: 0.3em;
}

td .ctq-logo {
    width: 40px;
}

.search-presets {
    display: flex;
    align-items: center;
    gap: 1em;
}

.upload-action {
    color: #dddddd;
    font-weight: 100;
}

.upload-action.has-uploads {
    color: #000000;
    font-weight: 900;
}

.popup .row.content .section > div > div.simple {
    display: block;
}

/* Star ratings (Font Awesome 6 Pro) */
.star-rating {
    position: relative;
    display: inline-block;
    font-size: 0; /* hides the numeric text the binding writes */
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
}

.star-rating::before,
.star-rating::after {
    content: "\f005\f005\f005\f005\f005";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900; /* solid stars */
    font-size: 1.4rem;
    letter-spacing: 4px;
}

/* Empty stars (background) */
.star-rating::before {
    color: #e3e6ea;
}

/* Filled stars (overlay, clipped by width) */
.star-rating::after {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    overflow: hidden;
    color: #f5b301;
    text-shadow: 0 1px 2px rgba(180, 120, 0, 0.35);
}

.star-rating.rating-1::after {
    width: 20%;
}

.star-rating.rating-2::after {
    width: 40%;
}

.star-rating.rating-3::after {
    width: 60%;
}

.star-rating.rating-4::after {
    width: 80%;
}

.star-rating.rating-5::after {
    width: 100%;
}

/* Perfect 5 gets a little glow */
.star-rating.perfect::after {
    color: #ffb800;
    text-shadow: 0 0 6px rgba(255, 184, 0, 0.6);
}

/* No rating: plain friendly text instead of stars */
.star-rating.no-rating {
    font-size: 0.85rem;
    font-style: italic;
    color: #999;
}

.star-rating.no-rating::before,
.star-rating.no-rating::after {
    content: none;
}

/* Larger stars in the averages card */
.feedback-manager .averages .star-rating::before,
.feedback-manager .averages .star-rating::after {
    font-size: 2.2rem;
    letter-spacing: 6px;
}

.todays-courses .qr {
    width: 128px;
    height: 128px;
}

.drop-target {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 1rem;
    border: 2px dashed var(--purple);
    border-radius: 12px;
    background: var(--light-purple);
    color: var(--purple);
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.drop-target:hover,
.drop-target:focus-visible {
    background: rgba(125, 85, 199, 0.1);
    outline: none;
    box-shadow: 0 0 0 4px rgba(125, 85, 199, 0.2);
}

/* Applied while a file is dragged over */
.drop-target.drop-over {
    border-style: solid;
    border-color: var(--green);
    background: rgba(52, 183, 143, 0.1);
    color: var(--green);
    box-shadow: 0 0 0 4px rgba(52, 183, 143, 0.2);
}

.drop-target:before {
    content: 'Drop files here';
    font-weight: 600;
    font-size: 1.05rem;
}

.drop-target:after {
    content: 'or click to select files';
    font-size: 0.85rem;
    opacity: 0.75;
}

invoice-manager .drop-target:before {
    content: 'Drop files here to create a new invoice';
}

invoice-manager .invoice-uploader-container {
    margin-bottom: 1rem;
}

.invoice-edit .cfaf-ds-folder-name {
    display: none;
}

.invoice-edit .cfaf-ds-root-folder {
    margin-top: 1em;
}

.cfaf-ds-document {
    background: var(--light-purple);    
    padding: 0.25em 0.5em;
    border-radius: 12px;
    border: 1px solid var(--purple);
}

.cfaf-ds-document:hover {
    background: var(--light-purple-hover);
    cursor: pointer;
}

.cfaf-ds-document:hover * {
    cursor: pointer;
}

.cfaf-ds-item-meta-standard {
    display: flex;
    gap: 0.5em;
    justify-content: space-between;
    align-items: center;
}

.cfaf-ds-item-meta-standard .cfaf-ds-last-modified {
    font-size: 0.75rem;
}

.cfaf-ds-item-meta-standard .cfaf-ds-item-name:before {
    font-family: 'Font Awesome 6 Pro';
    content: '\f15b';
    padding-right: 0.5em;
}

.invoice-edit .invoice-status > * {
    gap: 0.5em;
    display: flex;
}

.invoice-edit .invoice-status > * > * {
    display: none;
    gap: 0.5em;
}

.invoice-edit .invoice-status.queried .queried-on,
.invoice-edit .invoice-status.queried .query-reason {
    display: flex;
}

.invoice-edit .invoice-status.signed-off .signed-off {
    display: flex;
}

.invoice-edit .invoice-status.not-signed-off .not-signed-off {
    display: flex;
}

.invoice-edit .invoice-status.queried > div {
    display: block !important;
}

.attention-info,
.general-info,
.complete-info {
    padding: 1em !important;
    background: var(--light-attention);
    border-radius: 12px;
    position: relative;
}

.attention-info:after,
.general-info:after,
.complete-info:after {
    font-family: 'Font Awesome 6 Pro';
    position: absolute;
    content: '\f071';
    top: 12px;
    right: 12px;
    font-size: 38px;
    opacity: 0.1;
}

.attention-info.q:after {
    content: '\f059';
}

.general-info {
    background: var(--light-info);
}

.complete-info {
    background: var(--light-green);
}

.general-info:after,
.complete-info:after {
    content: '\f05a';
}

.invoice-edit .invoice-status.queried .queried-on {
    font-weight: 600;
}

@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);
    }
}

/* Generic tiles (reusable) */
.tile-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.tile { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; padding: 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06); }
.tile-media { flex: 0 0 auto; }
.tile-body { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tile-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tile-time { display: inline-block; padding: 2px 12px; background: #dbe8fb; color: #1f3a5f; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.tile-badge { flex: 0 0 auto; }
.tile-badge .ctq-logo, .tile .ctq-logo { width: 36px; height: 36px; }
.tile-title { font-size: 1.15rem; font-weight: 700; color: #222; line-height: 1.25; }
.tile-subtitle { font-size: 0.9rem; color: #666; }
.tile-subtitle .additional-trainer::before { content: "+"; padding: 0 0.3em 0 0.6em; }
.tile-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 4px; font-size: 0.9rem; color: #555; }
.tile-address { display: flex; flex-direction: column; }
.tile-stat { display: flex; flex-direction: column; align-items: flex-start; }
.tile-stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: #888; }
.tile-stat-value { font-size: 1.2rem; font-weight: 700; color: #222; }
.tile-actions { flex: 1 1 100%; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 12px; border-top: 1px dashed #e5e7eb; }
.tile-actions:empty { display: none; }
.tile-list.waiting { opacity: 0.5; pointer-events: none; }
@media screen and (max-width:720px) { .tile-list { grid-template-columns: 1fr; } }

/* Invoice list status flags */
.invoice-manager .invoice-status > span { display: inline-flex; align-items: center; gap: 0.5em; padding: 2px 12px; border-radius: 999px; border: 1px solid transparent; font-size: 0.85rem; white-space: nowrap; }
.invoice-manager .invoice-status > span::before { font-family: "Font Awesome 6 Pro"; font-size: 1em; }
.invoice-manager .invoice-status .signed-off { background: var(--light-green); border-color: var(--green); }
.invoice-manager .invoice-status .signed-off::before { content: "\f058"; color: var(--green); }
.invoice-manager .invoice-status .not-signed-off { background: var(--light-info); border-color: var(--control-blue); }
.invoice-manager .invoice-status .not-signed-off::before { content: "\f017"; color: var(--control-blue); }
.invoice-manager .invoice-status .queried { background: var(--light-attention); border-color: #e8833a; }
.invoice-manager .invoice-status .queried::before { content: "\f059"; color: #e8833a; }
