@font-face {
    font-family: "Brockmann";
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url("/fonts/brockmann-bold-webfont.woff") format("woff");
}

@font-face {
    font-family: "Brockmann";
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    src: url("/fonts/brockmann-semibold-webfont.woff") format("woff");
}

@font-face {
    font-family: "Brockmann";
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    src: url("/fonts/brockmann-medium-webfont.woff") format("woff");
}

@font-face {
    font-family: "Brockmann";
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url("/fonts/brockmann-regular-webfont.woff") format("woff");
}

@font-face {
    font-family: bwmod;
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    src: url("/fonts/BwModelica-Medium.woff") format("opentype");
}

:root {
    /* Brand */
    --primary: #010734;
    --accent: #120bd9;

    /* General */
    --neutral-super-light: #fafafa;
    --neutral-light: #f2f2f2;
    --neutral-muted: #c0c0c0;
    --neutral-dark: #818285;
    --text: #111827;
    --border: #d1d5db;

    --table-border: #e3e3e3;
    --table-padding-y: 8px;
    --table-padding-x: 10px;

    --input-background: #f9fafb;

    --light-green: #d7f0dc;
    --green: #11b100;
    --dark-green: #13442f;

    --light-amber: #fdecc8;
    --amber: #ff8b00;
    --dark-amber: #5c3b00;

    --light-orange: #ffe0cc;
    --orange: #ff6600;
    --dark-orange: #662200;

    --light-red: #f9d8d4;
    --red: #ec1c24;
    --dark-red: #6a1a1a;

    --light-blue: #dcebf7;
    --blue: #120bd9;
    --dark-blue: #1f3e5c;

    --light-purple: #e8ddf5;
    --purple: #7c3aed;
    --dark-purple: #3b1a6e;

    /* Toast message icon colours */
    --icon-success: #3fa76f;
    --icon-error: #e04f45;
    --icon-warning: #f0a84c;
    --icon-info: #4f90d3;

    /* Card shadow */
    --card-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
}

/* look at moving these to a base file? */
html,
body {
    line-height: 1.25;
}
body {
    color: var(--text);
    scroll-behavior: smooth;
}

span {
    line-height: 1;
}

h1 {
    margin: 0.5rem 0 0.5rem;
    font-family: brockmann, sans-serif;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
    text-align: left;
    color: var(--primary);
    clear: left;
}

h2 {
    font-family: brockmann, sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: var(--primary);
    margin: 0 0 0.75rem;
}

h3 {
    font-family: brockmann, sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--primary);
    margin: 0.5rem 0;
}

p {
    margin: 0;
}

.accent-color {
    color: var(--accent);
}

.text-grey {
    color: var(--neutral-dark);
}
.text-center {
    text-align: center !important;
}
.element-center {
    margin: 0 auto !important;
}
.no-min-width {
    min-width: 0 !important;
}

.vertical-middle {
    vertical-align: middle;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inline-block {
    display: inline-block;
}
/* TODO - Check this */
a,
a:visited {
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    color: var(--accent);
    transition: all 200ms ease;
}

.hidden {
    display: none;
}

.max-400 {
    max-width: 400px;
}

.min-400 {
    min-width: 400px;
}

.mt-4rem {
    margin-top: 4rem;
}

.red {
    background-color: var(--red);
}

.important-red {
    background-color: var(--red) !important;
}
.text-red {
    color: var(--red);
}

.text-dark-red {
    color: var(--dark-red);
}

.green {
    background-color: var(--green);
}

.text-green {
    color: var(--green);
}

.amber {
    background-color: var(--amber);
}

.text-amber {
    color: var(--amber);
}

.logo-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo {
    max-height: 100%;
}

.text-amber {
    color: var(--amber);
}

.text-dark-amber {
    color: var(--dark-amber);
}

.text-primary {
    color: var(--primary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.bg-super-light-grey {
    background-color: var(--neutral-super-light);
}

.left-aligned {
    width: 100%;
    height: 100%;
    text-align: left;
}

@media (max-width: 640px) {
    .mobile-flex-col {
        flex-direction: column;
    }

    .mobile-w-full {
        width: 100%;
        max-width: 100% !important;
    }

    .mobile-justify-center {
        justify-content: center;
    }

    .mobile-justify-start {
        justify-content: flex-start;
    }
}

/* ==== fontawesome / icons*/
/* A little hack to get this icon to match the weight of the regular icons - we are using a 'light' variant because it has the pencil outlined rather than filled in */
.fa-file-pen {
    -webkit-text-stroke: 0.5px currentColor;
}

/* ==== WHITE CARD ==== */
.white-card-container {
    background-color: white;
    border-radius: 0.375rem;
    padding: 1rem;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1);
}

/* ===== BUTTONS ===== */
button {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    font-family: brockmann, sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition:
        color 0.4s ease,
        background-color 0.4s ease;
    border: none;
    background: none;
    z-index: 0;
}

button:disabled {
    opacity: 0.7;
}

button:disabled,
button.form-submitting {
    cursor: not-allowed;
    pointer-events: none;
}

.button-big {
    padding: 0.6rem 2rem;
}

button span {
    position: relative;
    z-index: 1;
}

button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 101%;
    transform: skewX(-20deg) scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 0;
}

.button-primary {
    background-color: var(--accent);
    border: 1px solid var(--accent);
    color: white;
}

.button-primary::before {
    background-color: white;
}

.button-primary:hover {
    color: var(--accent);
}

.button-grey {
    background-color: var(--neutral-light);
    border: 1px solid var(--neutral-light);
    color: var(--primary);
}

.button-grey::before {
    background-color: var(--primary);
}

.button-grey:hover {
    color: white;
}

.button-outlined {
    background-color: #ffffff;
    border: 1px solid var(--accent);
    color: var(--accent);
    flex-shrink: 0;
}

.button-outlined::before {
    background-color: var(--accent);
}

.button-outlined:hover {
    color: white;
}

.button-green {
    background-color: var(--green);
    border: 1px solid var(--green);
}

.button-green::before {
    background-color: #ffffff;
}

.button-green:hover {
    color: var(--dark-green);
}

.button-red {
    background-color: var(--red);
    border: 1px solid var(--red);
}

.button-red::before {
    background-color: #ffffff;
}

.button-red:hover {
    color: var(--dark-red);
}

.button-grey:hover {
    color: white;
}

.button-primary:hover::before,
.button-grey:hover::before,
.button-outlined:hover::before,
.button-green:hover::before,
.button-red:hover::before {
    transform: skewX(-20deg) scaleX(1);
}

/* Links */

.grey-link {
    color: var(--neutral-dark);
    cursor: pointer;
}

.grey-link:hover,
a:visited.grey-link:hover {
    color: var(--accent);
    transition: all 200ms ease;
}
a:visited.grey-link {
    color: var(--neutral-dark);
}

.grey-link.tw-cursor-not-allowed:hover {
    color: var(--neutral-dark) !important;
}
/* ===== BADGES ===== */

.badge {
    padding: 0.35rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-family: brockmann;
    cursor: default;
    white-space: nowrap;
    width: fit-content;
    height: fit-content;
}

.badge i {
    position: relative;
    top: 0.05em;
}

/* Tweak colours */
.badge-success {
    background-color: var(--light-green);
    color: var(--dark-green);
    position: relative;
    overflow: hidden;
}
.badge-issue {
    background-color: var(--light-amber);
    color: var(--dark-amber);
}

.badge-error {
    background-color: var(--light-red);
    color: var(--dark-red);
}

.badge-info {
    background-color: var(--light-blue);
    color: var(--dark-blue);
}

.badge-purple {
    background-color: var(--light-purple);
    color: var(--dark-purple);
}

/* lil shimmer */
.badge-success::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: skewX(-20deg);
    opacity: 0;
    transition: opacity 0.3s;
}

.badge-success:hover::before {
    opacity: 1;
    animation: shimmer 1s ease-out;
}
/* Need to fix this - psuedo element is visible outside container */
@keyframes shimmer {
    0% {
        left: -75%;
    }
    100% {
        left: 125%;
    }
}

/* ===== NEW TABLE ===== */
/* !important mainly used to overwrrite datatables ui */
.new-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--table-border);
}

.new-table-td,
.new-table-th {
    padding: var(--table-padding-y) var(--table-padding-x) !important;
    vertical-align: middle;
    border-right: 1px solid var(--table-border);
    border-bottom: 1px solid var(--table-border);
    overflow-x: hidden;
}

/* Have a feeling this will break things - but added to stop table entries shirnking too small */
.new-table-td:not(
    .min-width-cell,
    .expand-toggle,
    .select-toggle,
    .non-select-toggle,
    .disabled-expand-toggle
) {
    min-width: 7rem;
}

.new-table tr > .new-table-td:last-child,
.new-table tr > .new-table-th:last-child {
    border-right: none;
}

table.dataTable.no-footer {
    border-bottom: 1px solid var(--table-border) !important;
    /* border-bottom: none !important; */
}

table.dataTable > thead > tr > th,
table.dataTable > thead > tr > td {
    border-bottom: 1px solid var(--table-border) !important;
    padding: var(--table-padding-y) var(--table-padding-x);
}
.new-table tr.last-normal-row > .new-table-td {
    border-bottom: none;
}
.new-table tr.duplicate-employee-row > .new-table-td {
  background-color: var(--light-amber);
}
.new-table tr:last-child > .new-table-td,
.new-table tr:last-child > .expand-td,
.fullcalendar tr:last-child > td {
    border-bottom: none;
}

.dataTables_wrapper .dataTables_filter {
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: end;
    width: 100%;
    flex-wrap: wrap;
}

.dataTables_wrapper .dataTables_filter > label,
.dataTables_wrapper .dataTables_filter .custom-table-taskbar > form {
    max-width: 25%;
    width: 100%;
    min-width: 10rem;
}

.custom-table-taskbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
}

.table-taskbar {
    margin-top: 1rem;
    margin-bottom: calc(0.25rem - 2px);
}

.table-taskbar button {
    margin: 2px 0;
}

.new-table-th {
    font-weight: 700;
    color: var(--primary);
    background-color: var(--neutral-light);
    padding: 10px !important;
}

.expand-toggle,
.select-toggle,
.non-select-toggle,
.disabled-expand-toggle {
    width: 1%;
    white-space: nowrap;
    text-align: center;
    cursor: pointer;
}

.expand-toggle,
.disabled-expand-toggle,
.select-toggle > .new-table-select,
.select-col > .new-table-select,
.non-select-toggle > .new-table-select {
    font-size: large;
    margin: 0 auto !important;
}

.disabled-expand-toggle {
    color: var(--neutral-light);
    cursor: not-allowed;
    opacity: 0.75;
}

.select-col {
    cursor: pointer;
}

.new-table-td > hr {
    background-color: var(--table-border);
    height: 1px;
    border: 0;
}

/* temp overrride */
.new-table-select {
    margin: 0 !important;
    width: 20px !important;
    height: 20px !important;
}

.expanded-content {
    padding: 18px 24px;
    width: 100%;
}

.expand-td {
    padding: 0 !important;
    border: none;
    background-color: #ffffff;
    border-bottom: 1px solid var(--table-border);
}

.expand-wrapper {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition:
        height 0.4s ease,
        opacity 0.4s ease;
}

tr.expanded .expand-wrapper {
    opacity: 1;
}

.expand-inner {
    display: flex;
}

/* Cool lil trick if anyone reads this */
/* Fake animation to detect when the node is inserted into the dom */
@keyframes row_expanded {
    from {
        z-index: 1;
    }
    to {
        z-index: 1;
    }
}
tr.expanded {
    animation-duration: 0.001s;
    animation-name: row_expanded;
}

.expand-icon-td {
    background-color: #ffffff;
    border-right: 1px solid var(--table-border);
    padding: 10px 7.8px 10px 10px !important;
    opacity: 0;
    transform: translateX(-16px);
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}

tr.expanded .expand-icon-td {
    opacity: 1;
    transform: translateX(0);
    padding: 10px;
}

.expand-icon-td i {
    display: block;
    font-size: large;
}

.expand-loader {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 2px;
}

.min-width-cell {
    white-space: nowrap;
    width: 1%;
    text-align: center;
}

.badge-cell {
    text-align: left;
}

.table-icon {
    font-size: large;
    cursor: pointer;
    color: var(--accent);
}

.table-icon:hover {
    /* color: var(--accent) !important; */
    color: var(--accent);
    transition: all 300ms ease;
}

.grey-table-icon {
    font-size: large;
    color: var(--neutral-dark) !important;
}

.success-table-icon {
    font-size: large;
    color: var(--icon-success) !important;
}

.error-table-icon {
    font-size: large;
    color: #ee2024 !important;
}

.table-footer-td {
    border-top: 1px solid var(--table-border) !important;
    padding: var(--table-padding-y) var(--table-padding-x) !important;
    border-bottom: none !important;
}

.table-footer {
    background-color: var(--neutral-light);
}

.new-filtertable td,
.new-filtertable th {
    border-right: 1px solid var(--table-border);
    border-bottom: 1px solid var(--table-border);
}

/* Remove right border from last cells */
.new-filtertable tr > td:last-child,
.new-filtertable tr > th:last-child {
    border-right: none;
}

/* Remove bottom border from last row */
/* .new-filtertable tr:last-child td {
  border-bottom: none;
} */

/* Handle expandable rows */
.new-filtertable tr:last-child .expand-inner {
    border-top: 1px solid var(--table-border);
}

/* .new-filtertable tbody tr:last-child td {
  border-bottom: none;
} */

.dataTables_empty {
    border-bottom: none !important;
}

.new-filtertable tr:last-child .expand-inner {
    border-top: none;
}

/* ===== MODAL ===== */
.new-modal-backdrop,
.new-nav-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.new-modal-backdrop.modal-visible,
.new-nav-backdrop.modal-visible {
    opacity: 1;
    pointer-events: auto;
}

.new-modal-content {
    position: relative;
    background-color: #fff;
    padding: 16px 24px;
    border-radius: 2px;
    min-width: 400px;
    max-width: 800px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-30px);
    opacity: 0;
    transition: all 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.mega-modal .new-modal-content {
    min-width: 80vw;
    max-width: 80vw;
}

.pay-difference-modal .new-modal-content {
    width: 500px;
    max-width: 90vw;
}

.new-modal-content label {
    text-align: left;
    font-weight: 400;
}

.pay-difference-modal .new-modal-content {
  width: 500px;
  max-width: 90vw;
}

.new-modal-backdrop.modal-visible .new-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.new-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.new-modal-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    padding-right: 1rem;
}

.new-close-button {
    font-size: x-large;
    cursor: pointer;
    color: var(--neutral-dark);
}

.new-close-button:hover {
    color: var(--accent);
    transition: all 300ms ease;
}

.new-modal-body {
    margin: 32px 8px 40px;
    text-align: center;
    transition:
        height 300ms ease,
        opacity 300ms ease;
}

.modal-no-margin-bottom .new-modal-body {
    margin-bottom: 1rem;
}

.new-modal-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.modal-action-button,
.modal-cancel-button {
    width: 50%;
    max-width: 160px;
    padding: 0.6rem 1rem;
}

.modal-cancel-button {
    margin-right: 16px;
}

#modal-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}
#modal-loader.hidden {
    display: none;
}

.modal-body-loading {
    width: 100%;
    display: grid;
    place-items: center;
}

/* ===== END OF MODAL ===== */

/* IMPORT LEAVE CUSTOM MODAL */
.contract-list-scroll .new-table tr {
    cursor: pointer;
}

.contract-list-scroll .new-table tr:hover:not(.match-container) {
    background-color: var(--neutral-light);
}

.contract-list-scroll .new-table tr.selected {
    background-color: var(--light-blue);
}

.contract-list-scroll .new-table tr.match-container:hover {
    opacity: 0.9;
}

/* ===== LOADERS ===== */
.dot-loader {
    width: 60px;
    aspect-ratio: 4;
    --_g: no-repeat radial-gradient(circle closest-side, #041e42 90%, #041e4200);
    background:
        var(--_g) 0% 50%,
        var(--_g) 50% 50%,
        var(--_g) 100% 50%;
    background-size: calc(100% / 3) 100%;
    animation: l7 1s infinite linear;
}
@keyframes l7 {
    33% {
        background-size:
            calc(100% / 3) 0%,
            calc(100% / 3) 100%,
            calc(100% / 3) 100%;
    }
    50% {
        background-size:
            calc(100% / 3) 100%,
            calc(100% / 3) 0%,
            calc(100% / 3) 100%;
    }
    66% {
        background-size:
            calc(100% / 3) 100%,
            calc(100% / 3) 100%,
            calc(100% / 3) 0%;
    }
}

.circle-loader {
    width: 50px;
    aspect-ratio: 1;
    display: grid;
    animation: l14 4s infinite;
}
.circle-loader::before,
.circle-loader::after {
    content: "";
    grid-area: 1/1;
    border: 6px solid;
    border-radius: 50%;
    border-color: var(--red) var(--red) #0000 #0000;
    mix-blend-mode: darken;
    animation: l14 1s infinite linear;
}
.circle-loader::after {
    border-color: #0000 #0000 var(--accent) var(--accent);
    animation-direction: reverse;
}
@keyframes l14 {
    100% {
        transform: rotate(1turn);
    }
}

/* ===== END OF LOADERS ===== */

/* ===== TOAST NOTIFICATIONS ===== */

#toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    display: flex;
    align-items: center;
    background: #333;
    color: white;
    padding: 1rem 1.5rem 1rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: slideInRight 0.3s ease;
    min-width: 300px;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.toast-icon {
    font-size: 28px;
}

.toast-title {
    font-size: 16px;
    font-weight: 600;
}

.toast-content {
    margin: 0 1rem;
}

.toast--success {
    background-color: var(--light-green);
    color: var(--dark-green);
}
.toast--error {
    background-color: var(--light-red);
    color: var(--dark-red);
}
.toast--warning {
    background-color: var(--light-amber);
    color: var(--dark-amber);
}
.toast--info {
    background-color: var(--light-blue);
    color: var(--dark-blue);
}

.toast--success > .toast-icon {
    color: var(--icon-success);
}
.toast--error > .toast-icon {
    color: var(--icon-error);
}
.toast--warning > .toast-icon {
    color: var(--icon-warning);
}
.toast--info > .toast-icon {
    color: var(--icon-info);
}

.toast-close {
    position: absolute;
    padding: 0;
    right: 0.75rem;
    top: 0.5rem;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.1rem;
}

.toast-close:hover {
    color: white;
    transition: all 300ms ease-in-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -4px;
    right: -4px;
    bottom: -10px;
    border-radius: 0.5rem;
    border: 2px solid currentColor;
    opacity: 0;
    pointer-events: none;
}

.toast.pulse-border::before {
    animation: borderPulse 1s ease-out 0s 2 forwards;
}

@keyframes borderPulse {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.05);
    }
    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

/* ===== END OF TOAST NOTIFICATIONS ===== */

/* ===== INPUTS ===== */

input,
select,
textarea {
    transition:
        border-color 150ms ease,
        border-width 150ms ease;
    padding: 8px;
    color: var(--text);
    background-color: var(--input-background);
    border: 1px solid var(--border);
    width: 100%;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: bwmod, sans-serif;
    font-size: inherit;
}

textarea {
    height: auto;
    min-height: 4rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border: 1px solid var(--accent);
}

label {
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.label-left {
    margin: 0 0 0 0.5rem;
}

.label-right {
    margin: 0 0.5rem 0 0;
}

input::placeholder {
    color: var(--text);
    opacity: 0.4;
}

input:read-only:not(.datepicker):not([type="checkbox"]):not([type="radio"]) {
    cursor: not-allowed;
}
input:read-only:not(.datepicker):focus {
    border: 1px solid var(--border);
}

/* Datepicker */
/* Custom CSS to highlight today's date with a specific background color */
.ui-datepicker-today a.ui-state-default {
    background-color: var(
        --light-blue
    ) !important; /* A light orange/peach color */
    color: var(--primary) !important;
}
/* End of datepicker */

/* Checkbox */
input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    background-color: var(--input-background);
    width: 1em;
    height: 1em;
    font-size: 1em;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

input[type="checkbox"]:checked::before {
    content: "✓";
    color: white;
    line-height: 1;
    max-width: fit-content;
}

input[type="checkbox"]:checked {
    background-color: var(--accent);
}

input[type="checkbox"]:disabled {
    outline: 1px solid var(--red);
    cursor: default;
}

.medium-checkbox {
    width: 1.5rem !important;
    height: 1.5rem !important;
    font-size: 1.25rem !important;
}
/* End of checkbox */

/* Radio */
input[type="radio"] {
    accent-color: var(--accent);
    width: 1rem;
    height: 1rem;
    margin: 0;
    cursor: pointer;
}

input[type="radio"]:before {
    border: 2px solid green !important;
}

.large-radio {
    width: 1.5rem !important;
    height: 1.5rem !important;
}
/* End of radio */

/* Password */
input[type="password"] {
    letter-spacing: 1px;
    font-weight: 500;
}

input[type="password"]::after {
    content: icon;
}

.password-input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    color: var(--neutral-dark);
    right: 0.75rem;
    top: 1.125rem;
    transform: translateY(-50%);
    cursor: pointer;
    /* background-color: var(--neutral-light); */
}

.toggle-password:hover {
    color: var(--accent);
    transition: all 300ms ease;
}

/* End of password */

/* Custom file input */
.file-upload-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0.25rem;
    border: 1px solid var(--border);
    background-color: var(--input-background);
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--text);
    flex: 1;
    transition: all 0.2s ease;
}

.file-upload-wrapper.drag-over {
    background-color: #e3f2fd;
    border: 1px dashed var(--accent);
}

.custom-file-button {
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px 0 0 4px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    margin: 0;
    display: flex;
    align-items: center;
}

.custom-file-button:hover {
    opacity: 0.9;
    transition: all 300ms ease;
}

.file-name {
    color: #6b7280;
    font-size: 0.875rem;
    padding: 0.125rem 0.25rem 0.125rem 0.125rem;
    display: flex;
    align-items: center;
}

.hidden-file-input {
    display: none;
}
/* End of custom file input */

/* Base select input stlyings - REVISE */
select {
    cursor: pointer;
    position: relative !important;
    margin: 0;
    -webkit-appearance: none;
}

select {
    background-image:
        linear-gradient(45deg, transparent 50%, gray 50%),
        linear-gradient(135deg, gray 50%, transparent 50%);
    background-position:
        calc(100% - 15px) calc(1em + 2px),
        calc(100% - 10px) calc(1em + 2px);
    background-size:
        5px 5px,
        5px 5px;
    background-repeat: no-repeat;
}

select:focus {
    background-image:
        linear-gradient(45deg, var(--accent) 50%, transparent 50%),
        linear-gradient(135deg, transparent 50%, var(--accent) 50%);
    background-position:
        calc(100% - 10px) 1em,
        calc(100% - 15px) 1em;
    background-size:
        5px 5px,
        5px 5px;
    background-repeat: no-repeat;
}

select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #000;
}
/* End of of base select stlyes */

/* Choice.js select stlyings */
.choices__list--multiple .choices__item {
    background-color: #dae5f0;
    border: none;
    border-radius: 6px !important;
    margin: 2px 4px 2px 0;
    color: var(--text);
}

.choices__button {
    padding: 2px 8px;
    filter: invert(1);
    opacity: 1;
}

.choices__list--dropdown {
    min-width: fit-content !important;
}

.choices__list--dropdown .choices__item {
    white-space: nowrap !important;
}

.choices__list--dropdown.choices--constrained .choices__item {
    white-space: normal !important;
    word-break: break-word;
}

.choices__list--dropdown.choices--constrained {
    width: 100vw;
    max-width: calc(100vw - 16px);
}

.choices__inner {
    min-height: 34px;
    padding: 4px 8px !important;
    color: var(--text);
    background-color: var(--input-background);
    border: 1px solid var(--border);
    transition:
        border-color 150ms ease,
        border-width 150ms ease;
    border-radius: 4px;
}

.is-open .choices__inner {
    border-radius: 4px;
    border: 1px solid var(--accent);
    margin-bottom: 2px;
}
input[type="search"].choices__input {
    border: none !important;
    margin: 0px !important;
}
.choices__list--multiple .choices__item.is-highlighted,
.choices__item .choices__item--selectable .is-highlighted {
    border: none !important;
    background-color: #dae5f0 !important;
}

.choices[data-type*="select-multiple"] .choices__button {
    border: none;
}

.choices {
    margin-bottom: 0;
}
.choices[data-type*="select-one"]::after {
    border-color: var(--neutral-dark) transparent transparent;
}

.js-choice {
    max-height: 35px;
    pointer-events: none;
}
.js-choice.choices-initialized {
    max-height: auto;
    pointer-events: auto;
}

.choices__list--dropdown {
    z-index: 1005 !important;
}

/* Custom styling when search input is in the body */
.choices-search-body {
    display: block;
    width: 100%;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
    margin: 0;
}

.choices--search-hidden .choices__input,
.choices__input--hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* End of Choices.js select stylings */

/* Input Validation */
.error-input {
    border: 1px solid var(--red) !important;
}

.error-message {
    font-size: 12px;
    font-weight: 500;
    text-align: left;
    margin: 2px 0;
    color: var(--red);
}

.required-label::before {
    content: "* ";
    color: var(--red);
    display: inline-block;
    transform: scale(1.2);
    margin-right: 0.25rem;
}

/* ===== END OF INPUTS ===== */

/* ===== FORMS ===== */
.two-col-form {
    display: grid;
    gap: 16px 20px;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.col-span-2 {
    grid-column: span 2;
    min-width: 0;
}

.form-section-collapse {
    display: none;
    /* overflow: hidden; */
    grid-column: span 2;
    min-width: 0;
}

.form-section-collapse.open {
    display: grid;
}

.toggle-section {
    position: relative;
    cursor: pointer;
    padding-right: 1.5rem;
}

.toggle-section::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.2s ease;
}

.info-group-sticky-header::after,
.info-group-secondary-sticky-header::after {
    content: none !important;
}

.toggle-section.open::after {
    transform: translateY(-40%) rotate(-135deg);
}

.toggle-section:hover {
    border-color: var(--accent);
    transition: border 200ms ease;
}

@media (max-width: 768px) {
    .two-col-form,
    .form-section-collapse {
        grid-template-columns: 1fr;
    }

    .col-span-2,
    .form-section-collapse {
        grid-column: span 1;
    }
}

.submit-wrapper {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 1.5rem;
}

.submit-wrapper button {
    padding: 0.6rem 5rem;
}

.multi-button-submit {
    flex-direction: column;
    align-items: center;
}

.multi-button-submit > button:not(:first-child) {
    margin-top: 1.5rem;
}

.form-section-header {
    font-size: 1.25rem;
    border-bottom: 1px solid var(--border);
    padding: 0 0 0.25rem;
    margin: 1.5rem 0 0.5rem;
    width: 100%;
    grid-column: 1 /-1;
    max-height: fit-content;
}

.form-section-header a {
    font-weight: 500;
}

.form-submitting {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background-color: var(--neutral-light);
}

:not(.submit-wrapper):not(.button-group) > .form-submitting {
    margin: 0 auto;
}

.button-loader-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
}

.form-table-checkbox {
    display: flex;
    align-items: center;
}

.dual-submit-buttons {
    display: flex;
    gap: 2rem;
}

@media (max-width: 768px) {
    .dual-submit-buttons {
        flex-direction: column;
        align-items: center;
    }
}
/* ===== END OF FORMS ===== */

/* ===== NAVIGATION ===== */
/* Top Nav */

.filters {
    color: white;
    cursor: pointer;
}

.filters:hover {
    color: var(--accent);
    transition: all 300ms ease;
}

.search-wrapper {
    display: flex;
    color: white;
    align-items: center;
}

.search-wrapper:hover .search-arrow {
    opacity: 1;
}

.search-arrow {
    opacity: 0;
    transition: 0.5s;
}

.search-arrow:hover {
    color: var(--accent);
    cursor: pointer;
}

.top-nav-wrapper {
    position: fixed;
    background-color: var(--primary);
    z-index: 1000;
    width: 100%;
    padding: 0.5rem 1rem;
    height: 50px;
}

.top-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1634px;
    margin: 0 auto;
    height: 100%;
}
.filterbox {
    display: flex;
    gap: 0.5rem;
}
.filterbox > a:visited {
    color: white;
}
.filterbox > a:visited:hover {
    color: var(--accent);
}

.filters > span {
    margin-left: 0.75rem;
}

@media (max-width: 768px) {
    .filterbox > .filters > span {
        display: none;
    }

    .filterbox > .search-wrapper > .filters > span {
        display: none;
    }

    .filterbox {
        gap: 1rem;
    }

    .search-arrow {
        display: none !important;
    }
}

/* Select Yacht filter */
.search-vessel-modal .dataTables_wrapper .dataTables_filter {
    float: none !important;
}
.search-vessel-modal .dataTables_wrapper .dataTables_filter > label {
    width: 100%;
    max-width: 100%;
}

.search-vessel-th {
    border-right: none !important;
    border-radius: 0.25rem 0.25rem 0 0;
}

.dataTables_wrapper .dataTables_filter input {
    padding: 8px !important;
    color: var(--text) !important;
    background-color: var(--input-background) !important;
    border: 1px solid var(--border) !important;
    border-radius: 4px !important;
    margin: 0 !important;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--accent) !important;
    transition: all 300ms ease;
}

.dataTables_wrapper {
    overflow: auto;
    /* margin-top: 1rem; */
}

.search-vessel-modal .new-modal-body {
    margin: 1.5rem 0.5rem 2rem;
}

.select-yacht-link {
    font-size: 1rem;
    font-weight: 500;
    flex: 1;
    color: var(--primary) !important;
}

.select-yacht-link > span > strong {
    display: block;
    margin-top: 0.25rem;
}

.select-yacht-link > span,
.search-yacht-edit-wrapper > span {
    font-size: 0.75rem;
    display: block;
    margin-top: 0.25rem;
    font-weight: 400;
}

.dataTables_processing > div:last-child > div {
    background: var(--accent) !important;
}

.dataTables_info {
    color: var(--neutral-dark) !important;
}

.search-yachts-table thead:not(.no-hide) {
    display: none;
}

.search-yachts-table {
    border: none;
}

.search-yachts-table-body {
    overflow: auto;
    height: 400px;
    max-height: calc(50vh - 5rem);
    display: block;
    width: 100%;
}
.search-yachts-table-body tr,
.search-yachts-table-body td {
    display: block;
}

.search-yacht-td {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}
.search-yacht-td:hover {
    background-color: var(--neutral-light);
}

.search-yacht-td:hover > a {
    color: var(--accent) !important;
    transition: all 0ms ease;
}

.search-yacht-edit-wrapper {
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: space-between;
    max-width: fit-content;
    font-size: 1rem;
    gap: 0.5rem;
    padding-left: 0.5rem;
}

.search-yacht-edit-wrapper > a {
    color: var(--neutral-dark);
}

.search-yacht-edit-wrapper:hover > a {
    color: var(--accent);
    transition: all 200ms ease;
}

#searchYachtNoClick {
    color: white;
    cursor: not-allowed;
}

#searchYachtNoClick:hover {
    color: white;
}
/* End of Select Yacht Filter */

/* Reporting period filter */
.date-range-input-wrappers {
    display: none;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.container.range-plugin .calendar > .days-grid > .day.end,
.container.range-plugin .calendar > .days-grid > .day.start {
    background-color: var(--accent);
    color: #fff;
}

.container.range-plugin .calendar > .days-grid > .day.start:after,
.container.range-plugin .calendar > .days-grid > .day.end.flipped:after {
    border-left-color: var(--accent);
}
.container.range-plugin .calendar > .days-grid > .day.end:after,
.container.range-plugin .calendar > .days-grid > .day.start.flipped:after {
    border-right-color: var(--accent);
}

.container.range-plugin .calendar > .days-grid > .day.in-range {
    background-color: #dae5f0;
    /* background-color: #d5dbff; */
}

.calendar > .days-grid > .day:hover {
    border-color: var(--accent);
    color: var(--accent);
    cursor: pointer;
}

.date-range-input-container {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-range-input-container > label {
    font-weight: 500;
    color: var(--primary);
    margin: 0;
}

.date-range-input-container > input {
    border: none;
    padding: 0 1rem;
}

.calendar-range-wrapper {
    position: relative;
    /* Not removed as need to check if effects laoding state - it does */
    /* min-width: 628px; */
    /* min-height: 327px;
   */
    overflow: auto;
}

.quick-select-date-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

#calendar-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    background-color: var(--neutral-light);
    border-radius: 4px;
    display: grid;
    place-items: center;
}

.container.inline {
    box-shadow: none;
}

.reportPeriodModal > .new-modal-content,
.search-vessel-modal > .new-modal-content {
    max-height: 100vh;
}

.reportPeriodModal input {
    background-color: white !important;
    cursor: default;
}

.reportPeriodModal .choices {
    text-align: left;
}

.reportPeriodModal .choices__inner {
    background-color: white !important;
}

/* End Of Reporting period filter  */
/* End of top nav*/

/* Sub nav */

.sub-nav-wrapper {
    position: fixed;
    background-color: var(--neutral-light);
    z-index: 1000;
    width: 100%;
    padding: 0.5rem 1rem;
    top: 50px;
    height: 50px;
    box-shadow: 0px 8px 8px 0 #fff;
}
/* dupe with top container atm */
.sub-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1634px;
    margin: 0 auto;
    height: 100%;
}

.sub-nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .sub-nav-list > li:nth-child(n + 6) {
        display: none;
    }
}

@media (max-width: 480px) {
    .sub-nav-list > li:not(.sidebar-toggle-btn) {
        display: none;
    }
}

li {
    list-style-type: none;
}

ul {
    padding: 0;
    margin: 0;
}

.sub-nav-link {
    font-family: brockmann, sans-serif;
    color: var(--primary) !important;
    font-weight: 500;
}

.sub-nav-link:hover {
    color: var(--accent) !important;
    transition: all 300ms ease;
}

/* End of sub nav */

/* Pulled from managenav.php */
/* Need to be updated to more specific names */
.drag-placeholder {
    background: #e3f2fd;
    border: 2px dashed #2196f3;
    height: 60px;
    margin: 5px 0;
}

.page-item:hover {
    background: #f0f0f0 !important;
}

.ui-sortable-helper {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Side Nav */

.side-nav-wrapper {
    width: 300px;
    background-color: white;
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    overflow: hidden;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    z-index: 1003;
    transform: translateX(0);
}
.side-nav-wrapper.closed {
    transform: translateX(-100%);
}

.sidebar-toggle-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 0;
}
.sidebar-toggle-btn:hover {
    color: vaR(--accent);
    transition: all 300ms ease;
}
.side-nav-header {
    background-color: var(--primary);
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0.5rem 1.75rem;
    color: white;
}

.side-nav-header h1 {
    margin: 0;
    margin-left: 1rem;
    font-size: 1.25rem;
    color: white;
}
/* .row {
padding: 100px 0;
} */
.side-nav-level {
    position: absolute;

    top: 50px;
    left: 0;
    width: 100%;
    height: calc(100% - 50px);
    background: white;
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

.side-nav-level.level-1 {
    transform: translateX(100%);
}

.side-nav-level.active {
    transform: translateX(0);
}

.side-nav-level.off-left {
    transform: translateX(-100%);
}

.side-nav-link {
    display: flex;
    padding: 0.75rem 1.25rem 0.75rem 1.75rem;
    margin: 1px 0;
    color: var(--primary) !important;
    font-weight: 500;
    text-decoration: none;
    justify-content: space-between;
    align-items: center;
}

.side-nav-link:hover,
.side-nav-back:hover {
    background-color: var(--neutral-light);
}

.side-nav-back {
    font-weight: bold;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    color: var(--primary);
}

.side-nav-back-icon {
    display: flex;
    align-items: center;
    color: var(--neutral-dark);
    font-size: large;
    margin: 0 0.75rem;
}

.side-nav-sub-title {
    /* font-size: 18px; */
    padding: 0.75rem 1.25rem 0.75rem 1.75rem;
    margin: 1rem 0 0 0;
}

.close-side-nav-button {
    position: absolute;
    left: 305px;
    top: -45px;
    color: white;
    padding: 0.5rem;
    font-size: large;
    border-radius: 6px;
    border: 1px solid #f2f2f2;
    width: 40px;
    height: 40px;
    z-index: 1002;
    cursor: pointer;
    display: grid;
    place-items: center;
    background-color: var(--primary);
    opacity: 1;
    transition:
        left 300ms ease,
        opacity 300ms ease;
}

.close-side-nav-button.closed {
    opacity: 0;
    left: 100px;
}

.close-side-nav-button:hover {
    /* opacity: 0.9; */
}
/* .child-group {
display: flex;
flex-direction: column;
} */

/* End of Side Nav */

/* ===== END OF NAVIGATION ===== */

/* ===== PAGE LAYOUT ===== */

.page {
    max-width: 1664px;
    margin-right: auto;
    margin-left: auto;
    position: relative;
    padding: 6.25rem 2rem;
}

.page-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0 0.5rem;
    position: relative;
}

.page-title {
    margin-bottom: 0.25rem;
}

.page-header-no-buttons {
    margin-bottom: 0;
}

.page-title-no-buttons {
    margin-bottom: 0;
}

/* Page info */
.page-info-icon {
    color: var(--primary);
    font-size: 1.5rem;
}

.page-info-icon:hover {
    color: var(--accent);
    transition: all 300ms ease;
    cursor: pointer;
}

.page-info-content {
    display: none;
    position: absolute;
    right: 2rem;
    top: 100%;
    max-width: 80vw;
    max-height: 60vh;
    z-index: 10;
    box-shadow: 0 0 20px 6px rgba(0, 0, 0, 0.2);
    background-color: white;
    padding: 1rem;
    overflow: auto;
    border-radius: 2px;
}

.page-info-section {
    max-width: 600px;
    margin-bottom: 1rem;
}

.page-info-text:not(:first-child) {
    margin-top: 0.5rem;
}

/* Page breadcrumb */
.breadcrumb-trail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* margin-bottom: 1rem; */
    /* font-size: 0.75rem; */
}

.breadcrumb-trail > a,
.breadcrumb-trail > i {
    color: var(--neutral-dark);
}
.breadcrumb-trail > a:hover {
    color: var(--accent);
    transition: all 200ms ease;
}
.breadcrumb-trail > i {
    font-size: 0.75rem;
}

.breadcrumb-home {
    font-size: 0.9rem;
}

.pagination-container {
    font-size: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    align-self: end;
    margin-bottom: 0.25rem;
    margin-left: 1rem;
}
.pagination-arrow {
    font-size: 1.25rem;
    color: var(--neutral-dark) !important;
    display: inline-block;
}
.pagination-arrow:hover {
    color: var(--accent) !important;
    transition: all 300ms ease;
}

/* ===== END OF PAGE LAYOUT ===== */

/* ===== BANNERS ===== */

.banner-error,
.banner-info,
.banner-issue,
.banner-success {
    padding: 1rem;
    margin: 1rem 0;
    color: inherit;
}

.banner-error {
    background-color: var(--light-red);
    border-left: 4px solid var(--red);
}

.banner-info {
    background-color: var(--light-blue);
    border-left: 4px solid var(--blue);
}

.banner-issue {
    background-color: var(--light-amber);
    border-left: 4px solid var(--amber);
}

.banner-success {
    background-color: var(--light-green);
    border-left: 4px solid var(--green);
}

/* toggle button */
.show-more-issues-wrapper {
    text-align: center;
    margin: 0.5rem 0 0;
}
.show-more-issues {
    display: inline-block;
}

/* Invoice Issues banner - left these as is until there's time to fully investigate if banner-error can just be used */
.invoice-issues {
    background-color: var(--light-red) !important;
    border-left: 4px solid var(--red) !important;
    border-radius: 0 !important;
    padding: 0.75rem 1rem !important;
    margin: 1rem 0;
    color: var(--primary) !important;
}
.invoice-issues h2 {
    margin: 0 0 0.5rem !important;
    font-size: 1.5rem;
    font-weight: 600;
}
.invoice-issues p {
    margin: 0 0 0.25rem !important;
}
.invoice-issues a {
    color: var(--primary) !important;
    text-decoration: underline;
}
.invoice-issues a:hover {
    opacity: 0.8;
}
.invoice-issues .issue-count {
    color: var(--accent) !important;
}
.invoice-issues .vessel-name {
    font-weight: 600;
    color: var(--primary) !important;
}

/* System Issues banner - again left until there is time to investigate if banner-issue can be used instead */
.system-issues {
    background-color: var(--light-amber) !important;
    border-left: 4px solid var(--amber) !important;
    border-radius: 0 !important;
    padding: 1rem !important;
    margin: 1rem 0;
    color: var(--primary) !important;
}
.system-issues h2 {
    margin: 0 0 0.5rem !important;
    font-size: 1.5rem;
    font-weight: 600;
    color: inherit !important;
}
.system-issues p {
    margin: 0 0 0.25rem !important;
    color: inherit !important;
}
.system-issues a:hover {
    opacity: 0.8;
}
.system-issues .vessel-name {
    font-weight: 600 !important;
}
.system-issues .issue-count {
    color: var(--accent) !important;
}
.system-issues .vessel-name {
    font-weight: 600 !important;
}

/* ===== END OF BANNERS ===== */

/* ===== DASHBOARD ===== */
.dash-section-entry {
    padding-bottom: 0.5rem;
    margin-top: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.dash-section-expandable {
    cursor: pointer;
}

.dash-section {
    border-radius: 5px;
    background-color: var(--neutral-light);
    width: 100%;
    height: 100%;
    padding: 1rem;
}

.dash-section-header {
    margin-bottom: 0.75rem;
}

.dash-section-arrow {
    transition: transform 0.3s ease;
    color: var(--neutral-dark);
}

.dash-section-arrow.rotated {
    transform: rotate(180deg);
}

/* ===== END OF DASHBOARD ===== */

/* ===== TICKETS ===== */

.ticket {
    background-color: #fff;
    padding: 0.5rem;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.25rem 0;
    border-left: 4px solid var(--accent);
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
}

.ticket.incomplete {
    border-left: 4px solid var(--red);
}

.ticket.complete {
    border-left: 4px solid var(--green);
}

.ticket-actions {
    padding: 0.5rem;
    min-width: fit-content;
    display: flex;
    flex-wrap: nowrap;
}

.ticket-header {
    margin-bottom: 0.25rem;
}

.show-more-tickets-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 1rem 0rem;
}

.ticket-section-hidden {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height 0.4s ease-out,
        opacity 0.4s ease-out;
}

.ticket-section-visible {
    max-height: 1000px;
    overflow-y: auto;
    transition:
        max-height 0.4s ease-in,
        opacity 0.4s ease-out;
    opacity: 1;
    margin-top: -0.25rem;
}

.ticket-icon-link {
    margin-left: 0.5rem;
    font-size: 1.125rem;
    display: block;
}

.ticket-icon-link:visited {
    color: var(--neutral-dark);
}
.ticket-icon-link:visited:hover {
    color: var(--accent);
}
/* ===== END OF TICKETS ===== */

/* Contracts */
.backdate-social-element {
    display: none;
}

/* Contract app invite modal */

.issue-container {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
}

/* End of contract app invite modal */

/* Contract trnasfers */
.action-list-item > i {
    color: var(--green);
    font-size: 1.25rem;
    margin-right: 0.25rem;
}

.action-list-item {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
}

.action-list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 1rem 0;
}

.action-list-item > a {
    margin-left: 0.25rem;
}

.centered-white-box {
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    padding: 2rem;
    margin: 0 auto;
    max-width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shadow-box {
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    margin: 0.25rem;
}

/* End of contract transfers */

/* Start of Empsnew  */
.alphabet-selector-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 1rem 0;
    width: 100%;
}

.selectletter {
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition:
        background-color 0.2s,
        color 0.2s;
    border: none;
    color: var(--accent);
}

.selectletter:hover {
    background-color: var(--accent);
    color: white;
}

.active-letter {
    background-color: var(--accent);
    color: white !important;
}
/* Will rename this to a generic class when working on employers */
.emps-searchbar {
    flex-grow: 1;
    min-width: 150px;
    max-width: 30%;
}
/* End of Empsnew */

/* Start of Payroll */
.payperiod-table {
    border-spacing: 0;
    border-collapse: separate;
    overflow: hidden;
    user-select: none;
    border: 1px solid var(--table-border);
    border-radius: 5px;
}

.payperiod-table td {
    border-top: 1px solid var(--table-border);
    border-bottom: none;
}

.payperiod-table-header > th {
    font-weight: 500;
    color: var(--primary);
    background-color: var(--neutral-light);
    padding: 8px 5px;
    border: none;
}

.payperiod-table-header > .remove-header {
    text-align: center;
}

.payperiod-modal-btn {
    font-family: bwmod, sans-serif;
    font-size: 14px;
    padding: 10px;
    width: 100%;
    -webkit-appearance: none;
    border-radius: 5px;
    border: none;
    clear: left;
    cursor: pointer;
    background-color: #065385;
    color: white;
}

.btn-action {
    background-color: #e2e7ee;
    color: black;
}

.payperiod-modal-text {
    margin: 1rem 2rem;
    font-weight: 900;
    font-size: 1rem;
}

.payperiod-remove-btn {
    color: var(--neutral-dark);
}
.payperiod-remove-btn:hover {
    color: var(--red);
    cursor: pointer;
    transition: all 300ms ease-in-out;
}

.payperiod-modal-date-container {
    margin: 0.5rem 2rem;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    width: auto;
}
/* End of Payroll */

/* Hours of rest */
/* Some of this is general calendar table stylings */
#hor_cell,
.calendar-th,
.calendar-cell,
.hour_cell {
    padding: 0.5rem 0.25rem !important;
    border-left: 1px solid var(--table-border);
    text-align: center;
}

.fullcalendar tr {
    /* border-right: 1px solid var(--table-border);
  border-left: 1px solid var(--table-border); */
}

.hor_cell_seperator {
    display: block;
    margin-bottom: 0.5rem;
}

.fullcalendar th {
    font-weight: 700;
    color: var(--primary);
    background-color: var(--neutral-light);
    vertical-align: middle;
    text-align: center !important;
}

.fullcalendar {
    border-radius: 6px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.fullcalendar tr td:first-child,
.fullcalendar tr th:first-child {
    /* border-left: 1px solid var(--table-border); */
}

.fullcalendar tr td:last-child,
.fullcalendar tr th:last-child {
    /* border-right: 1px solid var(--table-border); */
}

.fullcalendar tr:first-child th:first-child {
    border-radius: 6px 0 0 0;
}
.fullcalendar tr:first-child th:last-child {
    border-radius: 0 6px 0 0;
}

.fullcalendar tr:last-child td:first-child {
    border-radius: 0 0 0 6px;
}
.fullcalendar tr:last-child td:last-child {
    border-radius: 0 0 6px 0;
}

.calendar-key-box {
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    text-align: center;
}

.hor_tab_bar {
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--neutral-light);
    margin: 1rem 0;
    font-size: 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.hor_tab {
    color: var(--neutral-dark);
    border-radius: 2px 2px 0 0;
    padding: 0.25rem 0.5rem;
    margin-right: 1rem;
    cursor: pointer;
    min-width: fit-content;
}

.hor_tab i {
    font-size: 18px;
}

.hor_tab_active {
    border-bottom: 2px solid var(--accent);
    color: var(--accent);
}

.hor_tab:hover {
    background-color: var(--neutral-light);
    color: var(--text);
    transition:
        background-color 300ms ease,
        color 300ms ease;
    cursor: pointer;
    border-bottom: 2px solid #505050;
    border-radius: 0.25rem 0.25rem 0 0;
}

.hor_tab_text {
    margin: 5px 10px;
    font-weight: 500;
}

.selected_hor_cell {
    position: relative;
    background-color: #afcfff;
}

.hor_doc_block_container {
    display: flex;
    align-items: center;
    border-top: 2px solid var(--neutral-light);
    padding: 0.5rem 0;
}

.hor_doc_block_container button {
    padding: 0.5rem 2rem;
    margin-left: 1rem;
    font-size: 16px;
}
.hor_doc_block_container button i {
    margin-right: 0.5rem;
    font-size: 18px;
}

.hor_no_docs_message {
    font-size: 16px;
    color: #7a7a7a;
    margin: 5px;
}

.hor_signature_content_wrapper {
    background-color: white;
    padding-top: 25px;
}

.hor_signature_step_box {
    padding: 25px;
    /* border: 1px solid #bdbdbd; */
    border-radius: 15px;
    margin: 15px 0;
    position: relative;
}

.hor_signature_step_box > button,
.hor_signature_step_box > select {
    max-width: 600px !important;
}

.hor_signature_step_number {
    background-color: var(--accent);
    color: white;
    font-size: large;
    border-radius: 15px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
}

.hor_signature_step_title_box {
    margin-bottom: 25px;
}

.hor_signature_step_title {
    margin: 0;
    /* font-size: large; */
    padding: 0px 5px;
}

.hor_signature_sent_view {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 20px 0;
}

.plane-img {
    max-width: 200px;
    margin: 20px 10px;
}

.hor_signature_sent_header > i {
    margin-right: 0.5rem;
    font-size: 1.75rem;
    color: var(--accent);
}

.hor_signature_sent_text {
    font-size: 16px;
    text-align: center;
}

.upload_signed_hor_doc {
    display: none;
    width: 100%;
    max-width: 600px;
    padding: 1.25rem;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
}

#uploadSignedDoc {
    cursor: pointer;
    margin: 1rem 0;
}

.upload_signed_hor_input {
    margin: 20px 0;
    padding: 3px !important;
}

#printAllHoursButton,
#sendForSigning {
    width: 100%;
    padding: 0.6rem 1rem;
}

.hor_signature_step_box .choices {
    margin-bottom: 1rem;
}

.hor_status_update_buttons_wrapper {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.floatingcal_hor_additions {
    margin-bottom: 40px;
    display: grid;
    place-items: center;
    max-width: 360px !important;
}

/* Blocked / disabled buttons */
.button-blocked {
    background-color: var(--neutral-muted) !important;
    cursor: not-allowed;
    border: 1px solid var(--neutral-muted);
    color: var(--neutral-dark);
}

.button-blocked:hover {
    background-color: var(--neutral-muted) !important;
    color: var(--neutral-dark) !important;
}

.button-blocked:hover::before {
    transform: scaleX(0) !important;
}

.hor_cell_blocked {
    background-color: #808080 !important;
    cursor: not-allowed !important;
}

.hours {
    min-width: 1080px !important;
}

.hours-wrapper {
    overflow-x: auto;
}
/* End of hours of rest */

/* Notes */

.notes-section {
    border-radius: 5px;
    background-color: var(--neutral-light);
    width: 100%;
    height: 100%;
    padding: 2px;
    margin: 1rem 0;
}

.notes-wrapper {
    padding: calc(1rem - 2px);
}

.notes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}

.note {
    padding: 1rem;
    box-shadow: 4px 4px 10px 0 rgba(0, 0, 0, 0.1);
    width: fit-content;
    max-width: 20rem;
    background-color: #ffffff;
    height: fit-content;
    position: relative;
    overflow: hidden;
}

.no-notes-message {
    font-size: 1rem;
    color: var(--neutral-dark);
}

.note.rounded {
    border-radius: 4px;
}

.notes-form {
    display: flex;
    align-items: center;
    max-width: 100%;
    padding: calc(1rem - 2px);
    background-color: white;
    gap: 1rem;
}

.note-input-wrapper {
    flex: 1;
}

.note-header {
    font-weight: 500;
    font-size: 0.75rem;
}

.note-body {
    margin: 1rem 0;
    word-break: break-word;
}

.note-file {
    font-size: 0.75rem;
}

.note-bg-yellow {
    background-color: #fff9b1;
}
.note-bg-blue {
    background-color: #b1d3f6;
}
.note-bg-green {
    background-color: #daf7a1;
}
.note-bg-pink {
    background-color: #ffcee0;
}
.note-bg-purple {
    background-color: #e1bee7;
}

@media (max-width: 768px) {
    .notes-form {
        flex-direction: column;
    }

    .note-input-wrapper {
        width: 100%;
    }
}

/* End of Notes */

/* invoices */

#sender_options {
    margin-bottom: 0.5em;
}
.sender-option {
    display: inline-block;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 0.25rem 0.75rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
    background-color: #f2f2f2;
    transition: all 200ms ease;
}
.sender-option:hover {
    background-color: #e9e9e9;
}

.recipient-option,
#select_all_button {
    cursor: pointer;
    display: inline-block;
    padding: 0.5rem 1rem;
    margin-top: 0.25rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    transition: all 200ms ease;
}

#select_all_button {
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.875rem;
    font-family: brockmann, sans-serif;
    font-weight: 500;
    margin: 0.25rem 0;
}

.recipient-option.active {
    background-color: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ENd of invoices */

/* Tool tip */

.tooltipbox {
    position: absolute;
    display: none;
    padding: 8px 12px;
    background: #f7f9fc;
    color: #1b2a49;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    max-width: 260px;
    font-size: 0.85rem;
    line-height: 1.4;
    z-index: 900;
    word-wrap: break-word;
}

/* No wrap tooltip - keeps text on single line */
.tooltipbox.no-wrap {
    white-space: nowrap;
    max-width: none;
}

/* Arrow styling */
.tooltipbox::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: #f7f9fc;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transform: rotate(45deg);
}

/* Default (above) */
.tooltipbox.top::after {
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    border-top: none;
    border-left: none;
}

/* Below */
.tooltipbox.bottom::after {
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    border-bottom: none;
    border-right: none;
}

/* left */
.tooltipbox.left::after {
    right: -5px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    border-bottom: none;
    border-left: none;
}

/* Right */
.tooltipbox.right::after {
    left: -5px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);

    border-top: none;
    border-right: none;
}

/* End of Tooltip */

/*MLC*/
.mlcsummary {
    font-size: 20px;
    font-weight: 500;
}

.mlcinfo {
    font-size: unset;
    display: flex;
    align-items: center;
    margin: 0 0.5rem;
}

.mlcinfo i {
    margin-right: 0.5rem;
    font-size: 20px;
}

.error-summary {
    display: flex;
    align-items: center;

    cursor: pointer;
    margin: 0 0.5rem;
}

.error-summary .minor {
    width: 4rem;
}

.error-summary .major {
    width: 4rem;
}

.mlc-badge {
    padding: 4px 16px;
    border-radius: 6px;
    font-weight: 500;
}

.badge-issue.minor {
    margin: 2px 0;
}

.badge-error.major {
    margin: 2px 0;
}

/* End of MLC

/*Start of Social */

.social-status {
    font-size: 20px;
    cursor: pointer;
}

.social-badge {
    margin: 2px 0;
}
/*End of Social */

/* Expenses --- needs cleaning up */
.hiddenexpenses {
    display: none;
    padding: 0;
}

.hiddentr {
    display: none;
}

.doublerows:nth-child(even):visible:not([bgcolor]) {
    background-color: white;
}

.hiddenexpenses tr {
    background-color: white !important;
}

.hiddenexpenses tr.inactivetr {
    background-color: var(--neutral-super-light) !important;
}

.hiddenexpenses table {
    border: none;
}

.hiddenexpenses td:last-child,
.hiddenexpenses th:last-child {
    border-right: none;
}

.flag {
    font-weight: 700;
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    white-space: nowrap;
}

.header-flag {
    font-weight: 700;
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    cursor: default;
}

.flag > a {
    text-decoration: none;
}

.flag-green {
    background-color: var(--light-green);
    color: var(--dark-green);
}

.flag-blue {
    background-color: #cfe0fc;
    color: var(--dark-blue);
}

.flag-lightblue {
    background-color: var(--light-blue);
    color: var(--dark-blue);
}
.flag-lightblue {
    background-color: #d0f0fb;
    color: #084154 !important;
}

.flag-red {
    background-color: var(--light-red);
    color: var(--dark-red);
}

.flag-orange {
    background-color: var(--light-orange);
    color: var(--dark-orange);
}

.flag-yellow {
    background-color: var(--light-amber);
    color: var(--dark-amber);
}

.flag-navy {
    background-color: var(--accent);
    color: white;
}

.flag-navy a {
    color: white;
}

.flag-grey {
    background-color: var(--neutral-muted);
    color: var(--neutral-dark);
}

.flag:hover:not(.flag-grey) {
    filter: brightness(0.95);
    transition: filter 200 ease;
}

.flag input[type="checkbox"],
.header-flag input[type="checkbox"] {
    width: 14px;
    height: 14px;
    border-radius: 0.12em;
    color: inherit;
    float: none;
    vertical-align: text-top;
    appearance: none;
    border: 0px;
    cursor: pointer;
    margin: 0.05em 0 0 0.4em;
}

.flag input[type="checkbox"]:checked {
    background-color: white;
    color: inherit;
}

.flag input[type="checkbox"]:focus {
    box-shadow: none;
}

.flag input[type="checkbox"]:checked::before {
    content: "✓";
    color: inherit;
    position: absolute;
    font:
        16px "Open Sans",
        sans-serif;
    font-weight: bold;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
}

.flag input[type="checkbox"] + span {
    line-height: 14px;
}

.striked {
    text-decoration: line-through;
}

.removeall::after {
    content: "✖";
    max-height: fit-content;
    padding-left: 0.4em;
}

.small {
    font-size: 0.75rem;
}

.flag-flex {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
    max-width: fit-content;
}

.flag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.header-flag input {
    cursor: default !important;
}

.update-expenses-submit-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--table-border);
    padding: 0.5rem;
}

.flag-flex.header-flag {
    display: inline-flex;
}

.addexpense:hover {
    color: white;
}
/* End of expenses */

.section-container {
    margin-top: 2rem;
}

/* Contract Requests */
/* Maintained old classname for now - an input made to look like a link */
.buttonbutdiv input {
    border: none !important;
    background-color: inherit !important;
    color: var(--accent);
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    width: auto !important;
    font-size: 14px !important;
}

/* End of contractrequests */

/* Signature template tags /signsendtags */

.mergeTagForm {
    display: flex;
    align-items: center;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
}

.mergeTagFormInputWrapper {
    width: 100%;
    margin-bottom: 0.75rem;
}

.mergeTagArrowIcon {
    font-size: 2rem;
    margin: 1.5rem;
    color: var(--accent);
    text-align: center;
}

.mergeTagOutputDiv {
    border: 1px solid var(--primary);
    border-radius: 6px;
    padding: 1.5rem;
    width: 100%;
    text-align: center;
    background-color: white;
}

/* End of signature template tags */

/* Monthly Status */
.status-check-mark,
.status-x-mark,
.status-exclamation-mark {
    font-size: 1.125rem;
    vertical-align: text-top;
}

.status-check-mark {
    color: var(--green);
}

.status-x-mark {
    color: var(--red);
}

.status-exclamation-mark {
    color: var(--amber);
}

.card {
    background: #f2f2f2;
    border-radius: 0.375rem;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    gap: 1rem;
    display: flex;
}

.sub-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
    margin: 1rem 0;
}

.sub-card {
    background: #f2f2f2;
    border-radius: 0.375rem;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: large;
    color: var(--neutral-dark);
    font-weight: 500;
    margin: 0;
}

.card-main-info {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0.5rem 0;
}

.card-main-info > span {
    font-size: 1rem;
    font-weight: 500;
}

.card-change-text {
    margin: 0.5rem 0 0;
    font-size: 1rem;
}

.card-half {
    max-height: 100%;
}

#summaryChart {
    max-height: 160px;
    aspect-ratio: 1 / 1;
}

#adminChart {
    width: 100%;
}

.admin-chart-wrapper {
    overflow-x: auto;
}

.status-table-actions {
    display: flex;
    align-items: end;
    text-align: left;
}

.status-select-wrapper {
    min-width: 400px;
    margin-right: 0.5rem;
}

@media (max-width: 900px) {
    .status-select-wrapper {
        min-width: 250px;
    }
}
@media (max-width: 500px) {
    .status-table-actions {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
        align-items: start;
    }
}

.status-view-toggle {
    display: inline-flex;
    gap: 0;
    margin-right: 0.5rem;
}

.status-view-toggle .button {
    border-radius: 0;
}

.status-view-toggle .button:first-child {
    border-radius: 6px 0 0 6px;
}

.status-view-toggle .button:last-child {
    border-radius: 0 6px 6px 0;
}

.status-group-label {
    font-family: brockmann, sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* Hide sort arrows in grouped status view */
table.dataTable.grouped-active thead > tr > th.sorting,
table.dataTable.grouped-active thead > tr > th.sorting_asc,
table.dataTable.grouped-active thead > tr > th.sorting_desc {
    background-image: none;
    cursor: default;
}

table.dataTable.grouped-active thead > tr > th.sorting::before,
table.dataTable.grouped-active thead > tr > th.sorting::after,
table.dataTable.grouped-active thead > tr > th.sorting_asc::before,
table.dataTable.grouped-active thead > tr > th.sorting_asc::after,
table.dataTable.grouped-active thead > tr > th.sorting_desc::before,
table.dataTable.grouped-active thead > tr > th.sorting_desc::after {
    content: none;
}
/* end of monthly status */

/* Daytypes colour selector /daytypes */
.colour-input {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    cursor: pointer;
    overflow: hidden;
    color: var(--text);
    background-color: var(--input-background);
    border: 1px solid var(--border);
    width: 100%;
    border-radius: 4px;
}

.colour-input input[type="color"] {
    opacity: 0;
    position: absolute;
    height: 100%;
}

.colour-input .swatch {
    flex: 0 0 15%;
    max-width: 80px;
    background-color: currentColor;
    border-right: 1px solid #ccc;
}

.colour-input .hex {
    flex: 1;
    padding: 8px;
}

#colourPicker {
    cursor: pointer;
}
/* End of daytypes template tags */

/* Start of Calendar */
.floatingcal {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    position: fixed;
    bottom: 0;
    width: calc(100% - 4rem);
    max-width: 1580px;
    box-sizing: border-box;
    padding: 1.5rem 2rem;
    left: 50%;
    transform: translate(-50%, 0);
}

.floatingcal_calendar {
    bottom: 1rem;
    display: flex;
    max-height: 13rem;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    max-width: 600px;
}

.low-rank-floating-cal {
    bottom: 1rem;
    width: fit-content !important;
    padding: 1rem;
}

.floatingcal h1 {
    margin-top: 0;
}
.key {
    flex: 1;
    overflow: auto;
}
.seldates {
    flex: 1;
}
.seldate-icons {
    display: flex;
    gap: 1rem;
    margin-left: 0.25rem;
}
@media (max-width: 768px) {
    .floatingcal_calendar {
        flex-direction: column-reverse;
        /* max-height: 25vh; */
        overflow: auto;
    }

    .key,
    .seldates {
        width: 100%;
    }

    .seldate-icons {
        gap: 0.5rem;
    }
}

h1 i {
    font-size: 0.7em;
}
.key div {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 10px;
}
.key span {
    padding: 5px;
    display: inline-block;
    text-align: center;
    border: 1px solid var(--table-border);
}

/* New calendar key - todo verify which old styligns are still needed */

.calendar-key-container {
    position: fixed;
    top: 100px;
    left: 100px;
    width: 300px;
    min-width: 250px;
    max-width: 90vw;
    height: 400px;
    min-height: 200px;
    max-height: 80vh;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    cursor: move;
}

.calendar-key-header {
    border-bottom: 1px solid var(--border);
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    flex-shrink: 0;
}

.calendar-key-body {
    padding: 1rem 0.5rem;
    overflow: auto;
    flex-grow: 1;
}

.calendar-key-body div {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 10px;
}
.calendar-key-body span {
    padding: 5px;
    display: inline-block;
    text-align: center;
    border: 1px solid var(--table-border);
}

/* End of Calendar */

/* Info group stylings */

.info-group,
.info-group-sticky {
    border: 1px solid var(--table-border);
    padding: 1.5rem 1.25rem 1.25rem;
    position: relative;
    margin-top: 2.5rem;
    max-width: 100%;
}

.info-group-label,
.info-group-sticky-label,
.info-group-secondary-sticky-label {
    color: #fff;
    display: inline-block;
    position: absolute;
}

.info-group-label,
.info-group-secondary-sticky-label {
    background: var(--neutral-dark);
    font-size: 14px;
    padding: 0.25rem 0.5rem;
    text-transform: uppercase;
}

.info-group-label {
    left: 10px;
    top: -14px;
}

.info-group-secondary-sticky-label {
    left: -11px;
    top: -37px;
}

.info-group-sticky-header,
.info-group-secondary-sticky-header {
    position: sticky;
    background: transparent;
    height: 0;
}

.info-group-sticky-header {
    top: 10rem;
    z-index: 5;
}

.info-group-secondary-sticky-header {
    top: 12.5rem;
    z-index: 3;
}

.info-group-sticky-label {
    background: var(--primary);
    font-size: 16px;
    padding: 8px 16px;
    left: 10px;
    top: -42px;
}

.info-group table {
    border: 0;
    margin: 0;
    width: 100%;
}

.info-group table td,
.info-group table th {
    border: none;
    padding: 0.5rem;
}

.info-group table td {
    width: 75%;
    word-break: break-word;
}

.info-group table th {
    width: 25%;
}

.info-group table tr:not(:last-child) {
    border-bottom: 1px solid var(--table-border);
}

/* End of Info group stylings */

/* Bank Account Section - Employees Page */
.bank-accounts-section > .info-group-sticky:first-child {
    margin-top: 1.5rem;
}

.bank-accounts-section > .info-group-sticky {
    grid-column: 1 / -1;
}

.info-group-sticky-label--archived {
    background-color: var(--neutral-dark);
}

.bank-account-fields {
    margin-top: 1.25rem;
}

#new-bank-account-form {
    display: none;
    grid-column: 1 / -1;
}

#new-bank-account-form.is-visible {
    display: grid;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
/* End of Bank Account Section Styling */

.addendums-actions-column {
    width: 10rem;
}

/* MALTA PAYMENTS PAGE */

.new-table-th.reference-cell,
.new-table-td.reference-cell {
    width: 280px !important;
    min-width: 260px !important;
    text-align: left;
}

.reference-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reference-input {
    min-width: 180px;
    width: 100%;
}

/* === Error pages /noperm and /error === */
.error-page-container {
    height: calc(100vh - 200px);
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.error-number-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 1rem 0;
}

.error-number {
    color: var(--accent);
    font-size: 10rem;
    margin: 0;
}

.aligned-os-logo-wrapper {
    position: relative;
    margin: 0 0.5rem;
}

.aligned-os-logo-small-circle {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    border: 8px solid var(--red);
    border-radius: 50%;
}

.aligned-os-logo-main-circle {
    border-radius: 50%;
    border: 20px solid var(--accent);
    height: 110px;
    width: 110px;
}
/* === End of error pages === */
.error-details-row {
    border-left: 4px solid var(--red);
    background-color: rgba(235, 50, 50, 0.03);
}

tbody tr.errors {
    border-left: 4px solid var(--red);
    background-color: rgba(235, 50, 50, 0.03);
}

.error-toggle-btn {
    border: 1px solid var(--red) !important;
    color: var(--red);
}

.error-toggle-btn:hover {
    background-color: var(--red);
    color: white;
}

.error-toggle-btn::before {
    background-color: var(--red);
}

.employee-block {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}
.dashboard-grid .dash-section {
    height: auto;
    align-self: start;
}
@media (max-width: 980px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
/* Requirements display styling */
.requirements-display {
    margin-top: 1rem;
}

.requirements-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.requirements-section {
    min-width: 0;
}

.requirements-display h4 {
    margin: 0 0 0.5em;
    font-size: 0.875em;
    text-transform: uppercase;
    color: #333;
    font-weight: 600;
}

.req-table {
    width: 100%;
    font-size: 0.8em;
}

.req-table td.status {
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
}

.req-table td.required {
    color: var(--red);
}

.req-table td.optional {
    color: var(--neutral-dark);
}

.li-marker {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    padding-left: 2rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
.li-marker::before {
    content: "";
    display: block;
    aspect-ratio: 1;
    height: auto;
    position: absolute;
    top: 2px;
    left: 0.75rem;
    border: 2px solid var(--accent);
    width: 0.15rem;
    border-radius: 50%;
    transform: translateY(50%);
}

.li-marker-larger::before {
    width: 0.25rem;
    top: 1.5px;
}

/* Fees Section */
.fee-header-cell {
    font-family: bwmod, sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 0.5rem 0;
}

.fee-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1rem;
    padding: 1rem 0;
    width: 100%;
}

.fee-row {
    border-bottom: 1px dashed #c4cfdc;
}

.fee-grid .form-field:first-child {
    grid-column: span 2;
}

.fee-grid .form-field label {
    display: none;
}

.fee-row.fee-row--delete {
    opacity: 0.6;
}

.fee-delete-wrapper {
    display: flex;
    align-items: center;
}

.fee-delete-wrapper .js-delete-fee-checkbox {
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 1.5rem;
}

.fee-delete-wrapper .btn-icon {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ee2f35;
}

.fee-delete-wrapper .btn-icon i {
    font-size: 32px;
}

.fee-delete-status {
    display: none;
    font-weight: 700;
    color: #ee2f35;
    white-space: nowrap;
    font-size: 0.875rem;
}

.fee-row--delete .fee-delete-status {
    display: block;
}

#add-fee {
    margin-top: 1rem;
}

/* App Invite Modal Styling For Contracts and AppUsers pages */
.invite-success h3 {
    color: #11b100;
    margin-bottom: 10px;
}

.invite-fail h3 {
    color: #ee2f35;
    margin-bottom: 10px;
}

.invite-fail p {
    text-align: center;
    margin: 5px 0;
}

/* Badge sizing for info/help sections */
.page-info-text .badge {
    font-size: 11px;
    padding: 0.25rem 0.75rem;
}
/* ========================================
   Failed Transfers Section
   ======================================== */

.failed-transfers-list > .info-group-sticky:first-child {
    margin-top: 1.5rem;
}

.failed-transfers-list > .info-group-sticky {
    grid-column: 1 / -1;
}

.failed-transfer-label {
    cursor: pointer;
    transition: opacity 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.failed-transfer-label:hover {
    opacity: 0.85;
}

.failed-transfer-label::before {
    content: "\f067";
    font-family: "Font Awesome 6 Pro";
    font-weight: 400;
    font-size: 0.875rem;
}

.failed-error-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--light-red);
    color: var(--dark-red);
    padding: 0.875rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    line-height: 1.4;
}

.failed-error-message i {
    color: var(--red);
    flex-shrink: 0;
    margin-top: 2px;
}

.failed-transfer-form-loading {
    color: var(--neutral-dark);
    padding: 1rem 0;
}

.failed-transfer-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    grid-column: 1 / -1;
}

.failed-transfer-actions .button-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-retry-transfer:disabled {
    background: var(--neutral-muted);
    border-color: var(--neutral-muted);
    cursor: not-allowed;
}

/* Transfer Beneficiaries Page */
.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}

.progress-stats .sub-card {
    text-align: center;
}

.stat-success .card-main-info {
    color: var(--green);
}

.stat-error .card-main-info {
    color: var(--red);
}

.empty-state-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--neutral-dark);
}

.empty-state-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-message p {
    font-size: 1rem;
    margin: 0;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
}

.field label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.field input[readonly] {
    background: var(--neutral-light);
    cursor: not-allowed;
}

#yacht-select {
    padding: 0.5rem;
}

#beneficiaries-table-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .field-row {
        grid-template-columns: 1fr;
    }

    .progress-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    #beneficiaries-table-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    #beneficiaries-table-toolbar .table-search {
        width: 100%;
    }
}

/* End of Transfer Beneficiaries Page */

/* ===== DocuSign Send ===== */

/* Stepper bar */
.ds-stepper-bar {
    padding-bottom: 1.5rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
}

.ds-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 36.25rem;
    margin: 0 auto;
}

.ds-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.ds-step-circle {
    width: 2.25rem;
    min-width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 0.875rem;
    background-color: var(--neutral-light);
    color: var(--neutral-dark);
    border: 2px solid var(--border);
    transition: all 200ms ease;
}

.ds-step.active .ds-step-circle {
    background-color: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.ds-step.completed .ds-step-circle {
    background-color: var(--green);
    color: #fff;
    border-color: var(--green);
}

.ds-step-label {
    font-size: 0.75rem;
    color: var(--neutral-dark);
    white-space: nowrap;
}

.ds-step.active .ds-step-label {
    color: var(--accent);
    font-weight: 500;
}

.ds-step.completed .ds-step-label {
    color: var(--green);
}

.ds-step-connector {
    flex: 1;
    height: 2px;
    background-color: var(--border);
    margin: 0 1rem;
    margin-bottom: 1.5rem;
    max-width: 7.5rem;
    min-width: 2.5rem;
    position: relative;
    overflow: hidden;
}

.ds-step-connector::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--green);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ds-step-connector.completed::after {
    transform: scaleX(1);
}

.ds-step-connector.reverse::after {
    transform-origin: right center;
}

/* Step container animation */
.step-container {
    animation: ds-fadeIn 300ms ease;
}

@keyframes ds-fadeIn {
    from {
        opacity: 0;
        transform: translateY(0.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step header (title + info icon) */
.ds-step-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0;
    position: relative;
}

.ds-step-header .ds-step-subtitle {
    margin-bottom: 0;
}

.ds-step-header ~ .ds-doctype-grid,
.ds-step-header ~ .ds-config-card {
    margin-top: 1.5rem;
}

/* Step titles */

.ds-step-subtitle {
    font-size: 0.875rem;
    color: var(--neutral-dark);
    margin-bottom: 1.5rem;
}

/* Document type cards */
.ds-doctype-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1rem;
}

.ds-doctype-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition:
        all 200ms ease,
        transform 150ms ease;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
}

.ds-doctype-card:hover:not(:disabled) {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.ds-doctype-card:active:not(:disabled) {
    transform: scale(0.98);
}

.ds-doctype-card.selected {
    border-color: var(--accent);
    background-color: var(--neutral-light);
    box-shadow: 0 0 0 2px var(--neutral-light);
}

.ds-doctype-card:disabled {
    opacity: 1;
    cursor: not-allowed;
}

.ds-doctype-card:disabled .ds-doctype-icon {
    background: var(--neutral-light);
    color: var(--neutral-muted);
}

.ds-doctype-card:disabled .ds-doctype-name {
    color: var(--neutral-dark);
}

.ds-doctype-card:disabled .ds-doctype-desc {
    color: var(--border);
}

.ds-doctype-wrapper {
    position: relative;
}

.ds-doctype-wrapper .ds-doctype-card {
    width: 100%;
}

.ds-doctype-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    background: var(--neutral-light);
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    color: var(--accent);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: color 0.25s ease;
}

.ds-doctype-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--accent);
    transform: scale(0);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: -1;
}

.ds-doctype-card.selected .ds-doctype-icon {
    color: #fff;
}

.ds-doctype-card.selected .ds-doctype-icon::before {
    transform: scale(1.5);
}

.ds-doctype-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.ds-doctype-name {
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}

.ds-doctype-desc {
    font-size: 0.75rem;
    color: var(--neutral-dark);
    margin: 0;
}

.ds-coming-soon {
    position: absolute;
    top: -0.625rem;
    right: 0.75rem;
    z-index: 1;
    font-size: 0.75rem;
    color: var(--neutral-dark);
    font-weight: 600;
    letter-spacing: 0.02em;
    background: var(--neutral-light);
    border: 1px solid var(--border);
    padding: 0.25rem 0.5rem;
    border-radius: 0.625rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Config cards (Step 2 & 4) */
.ds-config-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.ds-config-card-title {
    /* font-size: 1rem; */
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    margin-top: 0;
}

.ds-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ds-form-stack {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

@media (max-width: 768px) {
    .ds-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Step 3: Recipients header */
.ds-step3-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.ds-step3-right {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Step 4: Email template section */
.ds-email-template-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ds-email-template-header .ds-config-card-title {
    margin-bottom: 0;
}

.ds-placeholder-badges {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.ds-placeholder-badge {
    display: inline-block;
    background: var(--neutral-light);
    color: var(--neutral-dark);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-family: monospace;
    cursor: pointer;
    transition:
        background 150ms ease,
        color 150ms ease;
    user-select: none;
    position: relative;
}

.ds-placeholder-badge:hover {
    background: var(--light-blue);
    color: var(--blue);
}

.ds-placeholder-badge.copied {
    background: var(--light-green);
    color: var(--green);
}

.ds-placeholder-badge-tooltip {
    position: absolute;
    bottom: calc(100% + 0.375rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-family: inherit;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    pointer-events: none;
    animation: ds-tooltip-in 150ms ease;
}

.ds-placeholder-badge-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 0.25rem solid transparent;
    border-top-color: var(--primary);
}

@keyframes ds-tooltip-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(0.25rem);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Per-recipient email cards */
.ds-recipient-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ds-recipient-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.625rem;
    padding: 1rem 1.25rem;
}

.ds-recipient-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.ds-recipient-card-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary);
}

.ds-recipient-card-email {
    font-size: 0.75rem;
    color: var(--neutral-dark);
    margin-left: 0.5rem;
}

.ds-recipient-card-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.ds-recipient-card-fields input[type="text"],
.ds-recipient-card-fields textarea {
    min-height: unset;
    height: 2.125rem;
    font-size: 0.875rem;
}

.ds-recipient-card-fields textarea {
    resize: vertical;
}

/* Footer navigation */
.ds-footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    margin-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Results page — hero */
.ds-results-hero {
    text-align: center;
    padding: 0.5rem 0 1.75rem;
}

.ds-results-hero-icon {
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
}

.ds-animated-tick {
    width: 2.75rem;
    height: 2.75rem;
}

.ds-tick-circle {
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: ds-draw-circle 500ms ease forwards;
}

.ds-tick-check {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: ds-draw-tick 350ms ease forwards 400ms;
}

@keyframes ds-draw-circle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes ds-draw-tick {
    to {
        stroke-dashoffset: 0;
    }
}

.ds-results-hero-success {
    color: var(--green);
}

.ds-results-hero-warning {
    color: var(--amber);
}

.ds-results-hero-error {
    color: var(--red);
}

.ds-results-hero-meta {
    color: var(--neutral-dark);
    font-size: 0.875rem;
    margin: 0 0 0.75rem;
}

.ds-results-hero-meta strong {
    color: var(--primary);
}

.ds-results-alert {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.ds-results-alert-error {
    background: var(--light-red);
    color: var(--dark-red);
    border: 1px solid var(--red);
}

.ds-results-email {
    font-size: 0.75rem;
    color: var(--neutral-dark);
    margin-top: 0.125rem;
}

/* Reset button in email table */
.ds-reset-btn {
    padding: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--neutral-dark);
    transition: color 150ms ease;
    font-size: 0.875rem;
}

.ds-reset-btn:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 600px) {
    /* Stepper: shrink and allow horizontal scroll if needed */
    .ds-stepper-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
        margin-bottom: 1.25rem;
    }

    .ds-stepper {
        min-width: max-content;
        gap: 0;
    }

    .ds-step-circle {
        width: 1.75rem;
        min-width: 1.75rem;
        height: 1.75rem;
        font-size: 0.75rem;
    }

    .ds-step-label {
        font-size: 0.75rem;
    }

    .ds-step-connector {
        margin: 0 0.5rem;
        margin-bottom: 1.25rem;
        min-width: 1.5rem;
        max-width: 3.75rem;
    }

    /* Recipient cards: stack subject/body fields */
    .ds-recipient-card-fields {
        grid-template-columns: 1fr;
    }

    /* Recipient card header: stack name/email on small screens */
    .ds-recipient-card-identity {
        display: flex;
        flex-direction: column;
    }

    .ds-recipient-card-email {
        margin-left: 0;
    }

    /* Doctype cards: keep coming-soon badge within the card */
    .ds-coming-soon {
        top: 0.375rem;
        right: 0.375rem;
    }

    .ds-doctype-card {
        padding: 1rem;
        gap: 0.75rem;
    }
}

/* End of DocuSign Send */

/* ==========================================================================
   Payment Hub
   ========================================================================== */

.pay-hub { background: #fff; min-height: 100vh; }

/* Invoice Drawer */
.pay-invoice-toggle {
    background: #fff; border: 1px solid var(--border); color: var(--neutral-dark);
    padding: 0.5rem 1rem; border-radius: 0.5rem; cursor: pointer;
    font-size: 0.8125rem; display: inline-flex; align-items: center;
    gap: 0.5rem; transition: all 0.2s; font-weight: 500;
}
.pay-invoice-toggle:hover, .pay-invoice-toggle.active { background: var(--neutral-light); }
.pay-invoice-toggle--disabled { opacity: 0.5; cursor: not-allowed; }
.pay-invoice-toggle-arrow { display: inline-flex; transition: transform 0.2s; }
.pay-invoice-toggle.active .pay-invoice-toggle-arrow { transform: rotate(180deg); }
.pay-invoice-drawer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.pay-invoice-drawer.open { max-height: 300px; }

.pay-invoice-grid {
    background: #fff; border-radius: 0.625rem; padding: 0.875rem;
    margin-bottom: 1.125rem; display: flex; gap: 0.75rem; flex-wrap: wrap;
}
.pay-invoice-card {
    background: #fff; border-radius: 0.5rem; padding: 0.75rem 1rem;
    flex: 1 1 200px; min-width: 220px; border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}
.pay-invoice-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.375rem; }
.pay-invoice-card-id { color: var(--neutral-muted); font-size: 0.75rem; }
.pay-badge-inv { font-size: 0.6875rem; padding: 0.125rem 0.5rem; border-radius: 1.25rem; font-weight: 600; }
.pay-badge--success { background: var(--light-green); color: var(--dark-green); }
.pay-badge--warning { background: var(--light-amber); color: var(--dark-amber); }
.pay-invoice-card-amount { color: var(--primary); font-size: 1rem; font-weight: 600; margin: 0 0 0.25rem; }
.pay-invoice-card-meta { color: var(--neutral-muted); font-size: 0.75rem; margin: 0; }
.pay-invoice-empty { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1.5rem; color: var(--neutral-muted); font-size: 0.8125rem; width: 100%; text-align: center; }
.pay-invoice-empty i { font-size: 1.25rem; color: var(--neutral-muted); }
.pay-invoice-empty p { margin: 0; }

/* Stats Row */
.pay-stats { display: flex; gap: 0.875rem; flex-wrap: wrap; margin-bottom: 1.125rem; }
.pay-stat {
    flex: 1 1 140px; border-radius: 0.625rem; padding: 0.875rem 1.125rem;
    box-shadow: var(--card-shadow);
}
.pay-stat--amber  { background: var(--light-amber); border: 1px solid rgba(245,158,11,.13); }
.pay-stat--blue   { background: var(--light-blue); border: 1px solid rgba(59,130,246,.13); }
.pay-stat--green  { background: var(--light-green); border: 1px solid rgba(16,185,129,.13); }
.pay-stat--purple { background: var(--light-purple); border: 1px solid rgba(139,92,246,.13); }
.pay-bank-panel .pay-stat--amber,
.pay-bank-panel .pay-stat--blue,
.pay-bank-panel .pay-stat--green,
.pay-bank-panel .pay-stat--purple { background: #fff; border: 1px solid var(--border); }
.pay-stat-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; }
.pay-stat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.pay-stat-dot--amber  { background: var(--amber); }
.pay-stat-dot--blue   { background: var(--blue); }
.pay-stat-dot--green  { background: var(--green); }
.pay-stat-dot--purple { background: var(--purple); }
.pay-stat-label { color: var(--neutral-dark); font-size: 0.75rem; font-weight: 500; }
.pay-stat-value { color: var(--primary); font-size: 1.375rem; font-weight: 700; margin: 0; line-height: 1.2; }
.pay-stat-sub { color: var(--neutral-muted); font-size: 0.75rem; margin: 0; }

/* Nav Row & Chips */
.pay-nav-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.pay-chips { display: flex; gap: 0.375rem; flex-wrap: wrap; }
.pay-chip {
    padding: 0.375rem 0.875rem; border-radius: 1.25rem; font-size: 0.8125rem; font-weight: 500;
    cursor: pointer; transition: all 0.2s; border: 1px solid var(--border);
    background: #fff; color: var(--neutral-dark); white-space: nowrap;
}
.pay-chip:hover { border-color: var(--neutral-muted); background: var(--neutral-super-light); }
.pay-chip.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.pay-chip-icon { margin-right: 0.25rem; font-size: 0.75rem; }

/* Bank Panels & Sections */
.pay-bank-panel { display: none; }
.pay-bank-panel.active { display: block; }
.pay-section { display: none; animation: pay-fade-in 0.25s ease both; }
.pay-section.active { display: block; }
@keyframes pay-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.pay-content { padding: 1rem 0 2.5rem; }

/* Form Bar */
.pay-form-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    background: var(--neutral-super-light); border: 1px solid var(--border); border-radius: 0.625rem;
    padding: 0.75rem 1rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.pay-form-field { display: flex; align-items: center; gap: 0.5rem; }
.pay-form-label { font-size: 0.8125rem; font-weight: 500; color: var(--neutral-dark); white-space: nowrap; }
.pay-form-bar-right { display: flex; align-items: center; gap: 0.625rem; margin-left: auto; }

/* Info Bar (Malta) */
.pay-info-bar { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pay-info-card {
    flex: 1 1 180px; background: #fff; border: 1px solid var(--border); border-radius: 0.625rem;
    padding: 0.875rem 1.125rem; box-shadow: var(--card-shadow);
}
.pay-info-card--locked { border-color: var(--amber); background: var(--light-amber); }
.pay-info-label { font-size: 0.75rem; color: var(--neutral-dark); margin: 0 0 0.25rem; }
.pay-info-value { font-size: 1rem; font-weight: 600; color: var(--primary); margin: 0; }

/* Registration Bar (Brightwell) */
.pay-registration-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    background: var(--light-blue); border: 1px solid var(--light-blue); border-radius: 0.625rem;
    padding: 0.75rem 1rem; margin-bottom: 1rem; font-size: 0.8125rem; color: var(--dark-blue);
}

/* Notice Banner */
.pay-notice {
    background: var(--light-amber); border: 1px solid var(--amber); border-radius: 0.625rem;
    padding: 0.75rem 1rem; margin-bottom: 1rem; font-size: 0.8125rem; color: var(--dark-amber);
}

/* Ballinger Balance Cards */
.bl-balance-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.75rem; margin-bottom: 1.25rem; }
.bl-balance-card {
    background: #fff; border: 1px solid var(--border); border-radius: 0.625rem; padding: 1rem;
    box-shadow: var(--card-shadow);
}
.bl-balance-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.bl-balance-currency { font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.bl-balance-status { font-size: 0.6875rem; font-weight: 600; padding: 0.125rem 0.5rem; border-radius: 1.25rem; }
.bl-status--ok { background: var(--light-green); color: var(--dark-green); }
.bl-status--held { background: var(--light-amber); color: var(--dark-amber); }
.bl-balance-amount { font-size: 1.25rem; font-weight: 700; color: var(--primary); margin: 0 0 0.5rem; font-variant-numeric: tabular-nums; }
.bl-balance-meta { display: flex; flex-direction: column; gap: 0.25rem; }
.bl-balance-label { font-size: 0.6875rem; color: var(--neutral-muted); }
.bl-balance-value { font-size: 0.8125rem; color: var(--neutral-dark); font-weight: 500; }
.bl-balance-viban {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 0.75rem; color: var(--neutral-dark); background: var(--neutral-light); padding: 0.25rem 0.5rem;
    border-radius: 0.25rem; margin-top: 0.375rem; display: inline-block; cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.bl-balance-viban:hover { background: var(--border); color: var(--neutral-dark); }
.bl-select, .bl-date-input {
    padding: 0.375rem 0.625rem; border: 1px solid var(--neutral-muted); border-radius: 0.375rem;
    font-size: 0.8125rem; color: var(--text); background: #fff;
}
.bl-select:focus, .bl-date-input:focus { outline: none; border-color: var(--accent); }
.bl-select { cursor: pointer; }

/* Hide eWealth/Ballinger "files" tab */
#pay-panel-ewealth .hor_tab[data-section="files"],
#pay-panel-ewealth .pay-section[data-section="files"],
#pay-panel-ballinger .hor_tab[data-section="files"],
#pay-panel-ballinger .pay-section[data-section="files"] { display: none !important; }

/* Table row enhancements */
.pay-hub .normal-row { transition: background 0.15s; }
.pay-hub .normal-row:hover { background: rgba(18,11,217,.03); }
.pay-hub .normal-row.selected-row { background: var(--light-blue); }
.pay-hub .normal-row.selected-row:hover { background: var(--light-blue); }

/* Payment Hub Responsive */
@media (max-width: 768px) {
    .pay-nav-row { flex-direction: column; align-items: flex-start; }
    .pay-chips { width: 100%; }
    .pay-stats { gap: 0.5rem; }
    .pay-stat { flex: 1 1 calc(50% - 0.25rem); }
    .pay-form-bar, .pay-info-bar { flex-direction: column; align-items: stretch; }
    .bl-balance-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .pay-chip { padding: 0.3125rem 0.625rem; font-size: 0.75rem; }
}

/* End of Payment Hub */
