.nav-item.active {
    border-bottom: solid 2px white;
}

.nav-item.sub-nav.active {
    border-bottom: solid 2px var(--bs-primary);
    color: var(--bs-primary);
}

.nav-item.sub-nav.active > .nav-link {
    color: var(--bs-primary);
}

.navbar {
    min-height: 60px;
}

.navbar-nav {
    min-height: 60px;
}

p {
    margin-bottom: 0.5rem;
}

a {
    color: inherit;
    text-decoration: none;
}

.form-control.input-validation-error {
    border-color: var(--bs-form-invalid-border-color);
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.form-select .input-validation-error {
    --bs-form-select-bg-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    padding-right: 4.125rem;
    background-position: right .75rem center, center right 2.25rem;
    background-size: 16px 12px, calc(.75em + .375rem) calc(.75em + .375rem);
}

.input-validation-error ~ .invalid-feedback {
    display: block;
}

.mw-700 {
    max-width: 700px;
}

:root {
    --main-highlight: #adadf3;
    --secondary-highlight: #fdc180;
    --secondary-highlight-dark: #582e00;
    --bs-primary: #0078c8;
    --bs-primary-hover: #006db7;
    --bs-primary-rgb: 0, 120, 200;
    --bs-primary-dark: #00518c;
    --bs-border-color: #a6a9b0;
    --bs-danger: #f6534e;
    --bs-border-radius: 3px;
    --bs-btn-border-radius: 3px;
    --bs-border-radius-sm: 3px;
    --bs-breadcrumb-divider: '>';
    --bs-body-font-size: 15px;
    --bs-body-font-family: "Helvetica Neue", Arial, sans-serif;
    --x-color-text-muted: rgba(0, 10, 30, .75);
}

.badge {
    --bs-badge-padding-x: 0.35rem;
    --bs-badge-font-weight: 400;
    --bs-badge-font-size: 0.85rem;
}

.fs-smaller {
    font-size: 0.85rem;
}

.fs-larger {
    font-size: 1.0625rem;
}

.avatar-round {
    width: 40px;
    height: 40px;
}

.secondary-highlight {
    background-color: var(--secondary-highlight);
    color: var(--secondary-highlight-dark);
}

.btn {
    font-weight: 600;
}

.xero-org-name {
    border-radius: 20px;
}

.btn-primary {
    background-color: var(--bs-primary);
}

.btn-primary:hover {
    background-color: var(--bs-primary-hover);
}

.btn-light {
    color: var(--bs-primary);
    border-color: var(--bs-border-color);
    background-color: white;
}

.btn-light:hover {
    background-color: #f2f3f4;
    color: var(--bs-primary-dark);
}

.bg-main-highlight {
    background-color: var(--main-highlight);
}

.bg-primary-dark {
    background-color: var(--bs-primary-dark);
    background: var(--bs-primary-dark);
}

.pointer {
    cursor: pointer;
}

.dropdown-menu {
    z-index: 9000;
}

th {
    font-weight: 500;
    font-size: 0.85rem;
}

.form-control.bg-secondary-subtle:focus {
    box-shadow: none;
}

.text-secondary-outlined {
    color: var(--bs-secondary);
    border: 1px solid var(--bs-secondary);
}

.accordion-body > * > .list-group-item:first-child {
    border-top: none;
}

.accordion-body > * > .list-group-item:last-child {
    border-bottom: none;
}

.accordion-body > * > .list-group-item {
    border-left: none;
    border-right: none;
}

.font-sm {
    font-size: 0.8125rem;
}

/*FROM SG*/
td:empty::after {
    content: "\00a0";
}

dd:empty::after {
    content: "\00a0";
}

/*Remove input arrows*/
/* For WebKit browsers (Chrome, Safari, Edge, Opera) */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* For Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

section {
    display: none;
}

section:target {
    display: block;
    scroll-margin-top: 100vh;
}


.btn.custom-toggle {
    border: 1px solid var(--bs-border-color);
    background-color: transparent;
    transition: background 0.2s;
}

.btn-check:checked + .custom-toggle {
    background-color: var(--bs-primary);
    border: 1px solid var(--bs-border-color);
}

.btn.custom-toggle:hover,
.btn.custom-toggle:focus {
    border-color: var(--bs-border-color);
}

.fi-container {
    width: 40px;
    height: 40px;
}

.fi {
    background-size: cover;
    background-position: 50%;
    background-repeat: no-repeat;
}

.fi:before {
    content: " ";
}

.fi-xx {
    background-image: url(../images/flags/xx_4x3.svg);
}

.fi-xx.fis {
    background-image: url(../images/flags/xx_1x1.svg);
}

.fi-ie {
    background-image: url(../images/flags/ie_1x1.svg);
}

.fi-ie.fis {
    background-image: url(../images/flags/ie_1x1.svg);
}

.fi-sg {
    background-image: url(../images/flags/sg_4x3.svg);
}

.fi-sg.fis {
    background-image: url(../images/flags/sg_1x1.svg);
}

.fi-uae {
    background-image: url(../images/flags/uae_1x1.svg);
}

.fi-uae.fis {
    background-image: url(../images/flags/uae_1x1.svg);
}

.badge-success {
    background-color: #a6d3bb;
    box-shadow: inset 0 0 0 1px #80c19e;
    color: #002e15;
}

.accordion-button:focus {
    outline: none;
    box-shadow: none;
}

.accordion-button:focus:not(.collapsed) {
    box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color);
}

.accordion-button:not(.collapsed) {
    color: var(--bs-accordion-btn-color);
    background-color: inherit;
}

.text-muted {
    color: var(--x-color-text-muted, rgba(0, 10, 30, .75));
}

.list-group-item.list-group-item-action {
    padding-top: 12px;
    padding-bottom: 12px;
}

.validation-summary-valid {
    display: none;
}

