/* ==========================================================================
   ROOT VARIABLES
   ========================================================================== */

:root {
    /* -------------------------
      Brand Colors
      ------------------------- */
    --color-primary: #002664;
    --color-primary-bg: #002664;
    --color-secondary-bg: #bcdbec;
    --color-gray-bg: #eff0f0;
    --color-primary-hover: #0a34a1;
    --color-primary-rgb: 0, 38, 100;
    --color-secondary: #4b87e0;
    --color-secondary-rgb: 75, 135, 224;
    /* -------------------------
      Neutral Colors
      ------------------------- */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray: #eff0f0;
    --color-gray-100: #eff0f0;
    --color-gray-200: #cdd0d3;
    --color-gray-300: #cdd0d3;
    --color-gray-400: #83878d;
    --color-gray-500: #83878d;
    --color-gray-600: #646768;
    --color-gray-700: #646768;
    --color-gray-800: #2f3135;
    /* -------------------------
      Accent Colors
      ------------------------- */
    /* WCAG 2.1 AA: darkened from the original #4b87e0 (3.15:1 against white,
       failing the 4.5:1 text-contrast requirement) to #2565b0 (~5.9:1). */
    --color-accent-blue: #2565b0;
    --color-accent-blue-light: #bcdbec;
    --color-focus: var(--color-accent-blue);
    --color-focus-rgb: 4, 49, 166;
    --color-focus-box-shadow: var(--color-accent-blue-light);
    /* -------------------------
      Feedback Colors
      ------------------------- */
    --color-success: #199049;
    --color-error: #c64801;
    --color-error-rgb: 198, 72, 1;
    --color-error-bg: #c64801;
    --color-warning-bg: #fff1c1;
    /* -------------------------
      Link Colors
      ------------------------- */
    --color-link: #0431a6;
    --color-link-hover-rgb: 10, 52, 161;
    /* -------------------------
       Bootstrap Overrides
       ------------------------- */
    --bs-body-font-family: Sterling, Arial, sans-serif;
    --bs-primary-bg: var(--color-primary-bg);
    --bs-primary: var(--color-primary);
    --bs-primary-rgb: var(--color-primary-rgb);
    --bs-secondary: var(--color-secondary);
    --bs-secondary-rgb: var(--color-secondary-rgb);
    --bs-link-hover-color-rgb: var(--color-link-hover-rgb);
    --bs-badge-border-radius: 0;
    --bs-border-radius: 0;
    /* Legacy variables (for backward compatibility) */
    --primary-hover-bg: var(--color-primary-hover);
    --call-to-action-bg: var(--color-call-to-action);
    --call-to-action-bg-rgb: var(--color-call-to-action-rgb);
}

html,
body {
    min-width: 320px;
}

/* WCAG 2.1 AA: bootstrap's default btn-outline-danger text/border color (#dc3545)
   only reaches ~3.96:1 against the app's common --color-gray (#eff0f0) card
   backgrounds, failing the 4.5:1 text-contrast requirement (it barely passes
   on pure white at ~4.53:1). Darkened the resting-state color to #b02a37
   (~5.0:1 on #eff0f0) without touching the hover/active states, which already
   swap to white text on a solid red background and pass independently. */
.btn-outline-danger {
    --bs-btn-color: #b02a37;
    --bs-btn-border-color: #b02a37;
    --bs-btn-disabled-color: #b02a37;
    --bs-btn-disabled-border-color: #b02a37;
}

/* WCAG 2.1 AA: bootstrap's default .text-warning (#ffc107) is only ~1.63:1
   against white - it's designed as a solid-fill background color (buttons,
   badges, alerts), not small text, so it fails the 4.5:1 text-contrast
   requirement badly. Overridden to #b45309 (~5.0:1 against white), which
   keeps a visible amber/orange hue while clearing the 4.5:1 text-contrast
   threshold with a safe margin. Button/badge/alert warning backgrounds are
   unaffected since --bs-warning itself is untouched. */
.text-warning {
    color: #b45309 !important;
}

/* ==========================================================================
   FONTS (Legacy can be removed)
   ========================================================================== */

@font-face {
    font-family: "DB Sans Cond Altern";
    src: url("../fonts/dbsax43.ttf") format("truetype");
}

@font-face {
    font-family: "DB Sans Cond Black";
    src: url("../fonts/dbsan47.ttf") format("truetype");
}

@font-face {
    font-family: "Sterling";
    font-weight: 300;
    src: url("../fonts/FOSTLGL3.otf") format("opentype");
}

@font-face {
    font-family: "Sterling";
    font-weight: 400;
    src: url("../fonts/FOSTBKL3.otf") format("opentype");
}

@font-face {
    font-family: "Sterling";
    font-weight: 500;
    src: url("../fonts/FOSTMDL3.otf") format("opentype");
}

@font-face {
    font-family: "Sterling";
    font-weight: 600;
    src: url("../fonts/FOSTDML3.otf") format("opentype");
}

@font-face {
    font-family: "Sterling";
    font-weight: 700;
    src: url("../fonts/FOSTBDL3.otf") format("opentype");
}

@font-face {
    font-family: "Sterling";
    font-weight: 700;
    font-style: italic;
    src: url("../fonts/FOSTBIL3.otf") format("opentype");
}

@font-face {
    font-family: "Sterling";
    font-weight: 800;
    src: url("../fonts/FOSTEBL3.otf") format("opentype");
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Sterling, Arial, sans-serif;
}

h1 {
    font-size: 2.25rem;
    line-height: 1.25;
}

.fw-extra-bold {
    font-weight: 800;
}

h2 {
    font-size: 1.875rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.35;
}

h4 {
    font-size: 1.25rem;
    line-height: 1.4;
}

h5 {
    font-size: 1.125rem;
    line-height: 1.45;
}

h6 {
    font-size: 1rem;
    line-height: 1.5;
}

a,
.btn-link {
    color: var(--color-black);
}

span.required:after {
    content: " *";
    color: var(--color-error);
}

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

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.bolder {
    font-weight: bolder;
}

/* ==========================================================================
   TEXT
   ========================================================================== */
.text-primary {
    color: var(--color-primary) !important;
}

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

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    --bs-btn-border-radius: 0 !important;
}

/* WCAG 2.1 AA: Always show a visible focus ring on any button or link styled as
   a button, including CMS-authored content. The double-ring technique (white
   inner + dark outer) ensures 3:1 contrast against both light and dark
   backgrounds. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--color-focus) !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--color-focus-box-shadow) !important;
}

/* WCAG 2.1 AA: .btn-check inputs (used for the goods-shipment-type and
   address-customer-type button groups) are visually clipped to 0x0 so only
   their sibling <label class="btn"> is shown. That means :focus-visible on
   the input itself is invisible - the ring has to be drawn on the visible
   label sibling instead when the hidden input has keyboard focus. */
.btn-check:focus-visible + .btn {
    outline: 3px solid var(--color-focus) !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--color-focus-box-shadow) !important;
}

/* WCAG: visually indicate that a link opens in a new window/tab. This is
   purely decorative (generated content is not a reliable accessible-name
   source across browsers/AT) - the actual accessible information must be
   provided via aria-label on the individual anchor, e.g.
   aria-label="@($"{text} ({Localizer["Common.OpensInNewWindow"]})")". */
a[target="_blank"]::after {
    font-family: "bootstrap-icons" !important;
    content: "\f1c5";
    font-size: 0.75em;
    margin-left: 0.35rem;
    vertical-align: middle;
    font-style: normal;
    font-weight: normal !important;
}

.btn-primary {
    --bs-btn-color: var(--color-white);
    --bs-btn-bg: var(--color-primary);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: var(--color-white);
    --bs-btn-hover-bg: var(--color-primary-hover);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: var(--color-white);
    --bs-btn-active-bg: var(--color-primary-hover);
    --bs-btn-active-border-color: transparent;
    --bs-btn-disabled-color: var(--color-white);
    --bs-btn-disabled-bg: var(--color-primary);
    --bs-btn-disabled-border-color: transparent;
}

.btn-outline-primary {
    --bs-btn-color: var(--color-primary);
    --bs-btn-border-color: var(--color-primary);
    --bs-btn-hover-color: var(--color-white);
    --bs-btn-hover-bg: var(--color-primary);
    --bs-btn-hover-border-color: var(--color-primary);
    --bs-btn-active-color: var(--color-white);
    --bs-btn-active-bg: var(--color-primary);
    --bs-btn-active-border-color: var(--color-primary);
    --bs-btn-disabled-color: var(--color-primary);
    --bs-btn-disabled-border-color: var(--color-primary);
}

.btn-secondary {
    --bs-btn-color: var(--color-primary);
    --bs-btn-bg: var(--color-secondary);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: var(--color-white);
    --bs-btn-hover-bg: var(--color-primary);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: var(--color-white);
    --bs-btn-active-bg: var(--color-primary);
    --bs-btn-active-border-color: transparent;
}

.btn-white {
    --bs-btn-color: var(--color-black);
    --bs-btn-bg: var(--color-white);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: var(--color-black);
    --bs-btn-hover-bg: var(--color-white);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: var(--color-black);
    --bs-btn-active-bg: var(--color-white);
    --bs-btn-active-border-color: transparent;
    --bs-btn-disabled-color: var(--color-black);
    --bs-btn-disabled-bg: var(--color-white);
    --bs-btn-disabled-opacity: 1;
}

.btn.big {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.btn.big.add-collie {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    margin-top: 0.1rem;
}

.btn-check:checked+.btn-secondary {
    color: var(--color-white);
    background-color: var(--color-primary);
    border: none;
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
    --bs-card-border-radius: 0;
    --bs-card-inner-border-radius: 0;
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.input-group>.form-control,
.input-group>.form-select,
.input-group>.input-group-text {
    border-radius: 0;
}

.form-control,
.form-select,
.form-check-input {
    border-radius: 0;
}

.form-floating>label,
.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label,
.form-floating>.form-select~label {
    color: #000000;
}

.form-control:focus,
.form-check-input:focus,
.form-select:focus {
    border-color: var(--color-focus) !important;
    box-shadow: 0 0 0 0.25rem rgba(var(--color-focus-rgb), 0.5) !important;
}

.form-check-input {
    border-color: var(--color-primary);
}

.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.valid.modified:not([type="checkbox"]) {
    outline: 1px solid var(--color-success);
}

.invalid {
    outline: 1px solid var(--color-error);
}

.invalid:focus {
    border-color: var(--color-error);
    box-shadow: 0 0 0 0.25rem rgba(var(--color-error-rgb), 0.5);
}

/* ==========================================================================
   FORM VALIDATION ICONS
   Bootstrap 5.3 (https://getbootstrap.com/docs/5.3/forms/validation/) shows a
   status icon inside invalid/valid fields via `.is-invalid`/`.is-valid`, but
   this app's EditForm/EditContext produces "invalid" / "valid modified"
   classes instead (Blazor's built-in FieldCssClass values), so the icons are
   re-implemented here against those classes using the same technique
   (a background-image SVG, inset with padding-right) so fields don't rely on
   the outline color alone.
   Fields inside an .input-group with a trailing addon (e.g. the tooltip
   info buttons used throughout the Dangerous Goods form) are excluded via
   `:not(.border-end-0)` since the icon would otherwise collide with the
   adjoining button.
   ========================================================================== */

.form-control.invalid:not(.border-end-0),
.form-select.invalid:not(.border-end-0) {
    background-repeat: no-repeat;
}

.form-control.invalid:not(.border-end-0) {
    padding-right: calc(1.5em + 0.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='%23c64801'%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='%23c64801' stroke='none'/%3e%3c/svg%3e");
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-select.invalid:not(.border-end-0):not([multiple]):not([size]),
.form-select.invalid:not(.border-end-0):not([multiple])[size="1"] {
    padding-right: 4.125rem;
    background-image: var(--bs-form-select-bg-img),
        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='%23c64801'%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='%23c64801' stroke='none'/%3e%3c/svg%3e");
    background-position:
        right 0.75rem center,
        center right 2.25rem;
    background-size:
        16px 12px,
        calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.valid.modified:not(.border-end-0),
.form-select.valid.modified:not(.border-end-0) {
    background-repeat: no-repeat;
}

.form-control.valid.modified:not(.border-end-0) {
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23199049' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-select.valid.modified:not(.border-end-0):not([multiple]):not([size]),
.form-select.valid.modified:not(.border-end-0):not([multiple])[size="1"] {
    padding-right: 4.125rem;
    background-image: var(--bs-form-select-bg-img),
        url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23199049' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-position:
        right 0.75rem center,
        center right 2.25rem;
    background-size:
        16px 12px,
        calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.validation-message {
    color: var(--color-error);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav-link {
    color: var(--color-black);
}

.nav-link:hover {
    color: var(--color-primary) !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ==========================================================================
   DROPDOWNS
   ========================================================================== */

.dropdown-menu {
    min-width: 320px;
    /* Caps growth for long item text; without it the menu is shrink-to-fit
       and keeps widening instead of wrapping, and can overflow the viewport
       on narrow screens. */
    max-width: min(90vw, 480px);
    box-sizing: border-box;
    --bs-dropdown-link-active-bg: var(--color-primary);
    --bs-dropdown-border-radius: 0;
}

/* Wraps long item text (addresses, emails) at word boundaries first;
   overflow-wrap only breaks mid-word as a last resort, unlike word-break,
   which was breaking short words unnecessarily and made the menu look
   squeezed/shrunk. */
.dropdown-menu .dropdown-item {
    white-space: normal;
    overflow-wrap: anywhere;
}

/* ==========================================================================
   ACCESSIBILITY - MINIMUM TAP TARGET SIZE
   ========================================================================== */

/* WCAG 2.2 SC 2.5.8 (Target Size Minimum): icon-only buttons with p-0 collapse
   to the icon glyph's rendered size (~14-16px), well under the 24x24 CSS px
   floor. Expands the invisible hit area to 24x24 without changing the icon's
   visual size or surrounding layout. */
.icon-btn-min-target {
    min-width: 24px;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* ==========================================================================
   PRODUCT SELECTOR
   ========================================================================== */

.product-selector .product {
    color: var(--color-accent-teal);
    background-color: var(--color-gray-200);
    cursor: pointer;
    height: 12rem;
    position: relative;
}

.product-selector .product.active {
    color: var(--color-primary);
    background-color: var(--color-accent-teal-light);
}

.product-selector .carousel-inner {
    height: 215px;
}

.product-selector .product svg {
    fill: var(--color-gray-200);
    stroke: var(--color-accent-teal);
}

.product-selector .product.active svg {
    fill: var(--color-white);
    stroke: var(--color-primary);
}

.product-addons-selector {
    background-color: var(--color-white);
    border-radius: 4px;
}

.product-addon-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.product-selector .product.active:after {
    content: " ";
    position: absolute;
    background-color: var(--color-gray-200);
    width: 20px;
    height: 20px;
    top: 205px;
    left: 90px;
    transform: rotate(45deg);
}

/* ==========================================================================
   GOODS & ADDRESS SELECTORS
   ========================================================================== */

/* The icon is display:none (not opacity:0) when the option is unselected -
   opacity:0 still reserved the glyph's width, which pushed the text of an
   unselected option right of centre. The labels are flex: 1 1 0 so showing or
   hiding the icon never changes the button widths inside the group. */
.goods-shipment-type-shipment .btn-check + .btn-secondary,
.address-customer-type .btn-check + .btn-secondary {
    flex: 1 1 0;
    min-width: 0;
}

.goods-shipment-type-shipment .btn-check + .btn-secondary .bi,
.address-customer-type .btn-check + .btn-secondary .bi {
    display: none;
}

.goods-shipment-type-shipment .btn-check:checked+.btn-secondary .bi,
.address-customer-type .btn-check:checked+.btn-secondary .bi {
    display: inline-block;
    margin-inline-end: 0.4rem;
}

.goods-item.active,
.favorite-goods-item.active,
.address-book-item.active {
    border-radius: 0px;
    background-color: var(--color-gray);
    color: var(--color-black);
}

.address-book-column {
    min-width: 160px;
}

.goods-item.active .form-control,
.goods-item.active .form-select,
.my-form .form-control,
.my-form .form-select {
    border-color: var(--color-gray-600) !important;
}

.goods-item.active .input-group,
.my-form .input-group {
    background-color: var(--color-gray-100) !important;
}

.goods-shipment-type-shipment .btn-check+.btn,
.address-customer-type .btn-check+.btn {
    --bs-btn-bg: var(--color-gray);
    --bs-btn-color: var(--color-black);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-bg: var(--color-gray);
    --bs-btn-hover-color: var(--color-black);
    --bs-btn-active-bg: var(--color-gray);
    --bs-btn-active-color: var(--color-black);
    background-color: var(--color-gray) !important;
    color: var(--color-black) !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.goods-shipment-type-shipment .btn-check:checked+.btn,
.address-customer-type .btn-check:checked+.btn {
    --bs-btn-bg: var(--color-primary);
    --bs-btn-color: var(--color-white);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-bg: var(--color-primary);
    --bs-btn-hover-color: var(--color-white);
    --bs-btn-active-bg: var(--color-primary);
    --bs-btn-active-color: var(--color-white);
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.address-customer-type.btn-group>.btn-group:not(:last-child)>.btn,
.address-customer-type.btn-group>.btn.dropdown-toggle-split:first-child,
.address-customer-type.btn-group>.btn:not(:last-child):not(.dropdown-toggle) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin-right: 5px;
}

.address-customer-type.btn-group>.btn-group:not(:first-child)>.btn,
.address-customer-type.btn-group>.btn:nth-child(n + 3),
.address-customer-type.btn-group> :not(.btn-check)+.btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-left: 5px;
}

/* ==========================================================================
   SUMMARY DETAILS
   ========================================================================== */

.summary-details .active {
    color: var(--color-primary);
}

.summary-details .inactive {
    color: var(--color-gray-600);
}

.summary-details .edit {
    font-size: 1rem;
    font-weight: 100;
    font-family: var(--bs-body-font-family);
    text-decoration: none;
    cursor: pointer;
    line-height: 1;
}

/* ==========================================================================
   MODALS & MENUS
   ========================================================================== */

.user-menu {
    background-color: var(--color-gray-300);
}

#companyModal .modal-content,
#cultureModal .modal-content {
    background-color: var(--color-gray-300);
}

.app-component .modal-content,
.app-component .modal-footer,
.app-component .modal-header,
.app-component .modal-body {
    --bs-modal-border-radius: 0;
    --bs-modal-inner-border-radius: 0;
}

/* .app-component badge{
    border-radius:0;
} */

/* ==========================================================================
   LISTS
   ========================================================================== */

#favorite-goods-list,
#address-book-list,
#my-companies-list {
    height: 660px;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   CAROUSEL
   ========================================================================== */

.carousel-control-prev {
    justify-content: start;
}

.carousel-control-next {
    justify-content: end;
}

.carousel-control-prev,
.carousel-control-next {
    color: var(--color-primary);
    width: 3%;
}

.carousel-control-prev:disabled,
.carousel-control-next:disabled {
    display: none;
}

.carousel-control-next:focus,
.carousel-control-next:hover,
.carousel-control-prev:focus,
.carousel-control-prev:hover {
    color: var(--color-primary);
    text-decoration: none;
    outline: 0;
    opacity: 0.9;
}

/* ==========================================================================
   TOOLTIPS
   ========================================================================== */

.custom-tooltip {
    --bs-tooltip-bg: var(--color-secondary-bg);
    --bs-tooltip-color: var(--color-black);
}

.tooltip-inner {
    max-width: 500px !important;
}

/* ==========================================================================
   LINKS
   ========================================================================== */

.link-primary:focus,
.link-primary:hover {
    color: rgba(var(--color-link-hover-rgb),
            var(--bs-link-opacity, 1)) !important;
    text-decoration-color: rgba(var(--color-link-hover-rgb),
            var(--bs-link-underline-opacity, 1)) !important;
}

/* ==========================================================================
   PAYMENT
   ========================================================================== */

.payment-by.disabled {
    opacity: 0.5;
}

/* ==========================================================================
   DATE PICKER
   ========================================================================== */

.daterangepicker td.active,
.daterangepicker td.active:hover {
    background-color: var(--color-primary);
}

/* ==========================================================================
   BLAZORED TYPEAHEAD
   ========================================================================== */

.blazored-typeahead {
    border: none;
    border-radius: 0;
}

.blazored-typeahead__active-item,
.blazored-typeahead__result:hover,
.blazored-typeahead__result:focus {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-bottom-color: var(--color-primary);
    border-top-color: var(--color-primary);
}

.blazored-typeahead__results {
    border-color: var(--color-primary);
    overflow: hidden;
    border-radius: 0;
}

.blazored-typeahead.valid.modified {
    border: var(--bs-border-width) solid var(--bs-border-color);
}

.blazored-typeahead__result {
    padding: 1rem;
    border-top: none;
    border-bottom: none;
    padding-bottom: 0;
}

.blazored-typeahead__results-footer {
    padding: 0;
    border: none;
}

.blazored-typeahead__results-footer a {
    color: var(--color-primary);
}

.blazored-typeahead__result__delimiter {
    border-bottom: 1px solid var(--color-gray-500);
}

.blazored-typeahead__active-item .blazored-typeahead__result__delimiter,
.blazored-typeahead__result:hover .blazored-typeahead__result__delimiter,
.blazored-typeahead__result:focus .blazored-typeahead__result__delimiter {
    border-bottom: none;
}

.blazored-typeahead__input {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    color: var(--bs-body-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bs-body-bg);
    background-clip: padding-box;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: 0;
    transition:
        border-color 0.15s ease-in-out,
        box-shadow 0.15s ease-in-out;
    height: calc(2.5rem + calc(var(--bs-border-width) * 2));
    min-height: calc(2.5rem + calc(var(--bs-border-width) * 2));
    line-height: 1.25;
}
.blazored-typeahead__input::placeholder {
    color: var(--bs-secondary-color);
}

.blazored-typeahead__input::placeholder {
    color: var(--bs-secondary-color);
}

.blazored-typeahead__input:focus,
.blazored-typeahead__input:active {
    border-color: var(--color-focus) !important;
    box-shadow: 0 0 0 0.25rem rgba(var(--color-focus-rgb), 0.5) !important;
    outline: 0;
}

.blazored-typeahead:focus-within {
    box-shadow: none;
}

/* Selected-value display (the "mask") shown once an item has been picked.
   Boxed to match .blazored-typeahead__input so the control looks the same
   whether the user is searching or has already selected a result. */
.blazored-typeahead__input-mask-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: var(--bs-body-bg);
    background-clip: padding-box;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: 0;
    height: calc(2.5rem + calc(var(--bs-border-width) * 2));
    min-height: calc(2.5rem + calc(var(--bs-border-width) * 2));
    cursor: text;
}

.blazored-typeahead__input-mask-wrapper:focus-within {
    border-color: var(--color-focus);
    box-shadow: 0 0 0 0.25rem rgba(var(--color-focus-rgb), 0.5);
    outline: 0;
}

.blazored-typeahead__input-mask {
    flex: 1 1 auto;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    color: var(--bs-body-color);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.blazored-typeahead__clear {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 100%;
    color: var(--bs-secondary-color);
    cursor: pointer;
}

.blazored-typeahead__clear:hover {
    color: var(--bs-body-color);
}

.blazored-typeahead__input-mask-wrapper--disabled {
    background-color: var(--bs-secondary-bg);
    border-radius: 0;
    height: calc(2.5rem + calc(var(--bs-border-width) * 2));
    min-height: calc(2.5rem + calc(var(--bs-border-width) * 2));
    cursor: not-allowed;
}

.blazored-typeahead__input-mask-wrapper--disabled
    .blazored-typeahead__input-mask {
    cursor: not-allowed;
}

.blazored-typeahead__loader {
    display: none;
}

.blazored-typeahead__results:has(.blazored-typeahead__notfound) {
    display: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
    background: var(--color-primary-bg);
    color: var(--color-white);
}

footer a {
    color: var(--color-white);
    text-decoration: none;
    display: inline-block;
    min-height: 2.75rem;
    line-height: 2.75rem;
}

.with-arrow::after {
    position: relative;
    content: "";
    display: inline-block;
    width: 40px;
    height: 100%;
    border-right: 1px solid var(--color-white);
    border-top: 1px solid var(--color-white);
    transform: rotate(45deg);
    top: 6px;
}

/* ==========================================================================
   BANNER
   ========================================================================== */

.banner-card {
    width: 500px;
    position: relative;
    left: 10%;
}

.banner a {
    color: var(--color-white) !important;
}

@media (max-width: 767.98px) {
    .banner-card {
        width: 100%;
        left: 0;
    }
}

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */

.custom-scroll-bar::-webkit-scrollbar {
    width: 10px;
}

.custom-scroll-bar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scroll-bar::-webkit-scrollbar-thumb {
    background-color: var(--color-gray-700);
    border-radius: 10px;
    border: 3px solid transparent;
}

/* ==========================================================================
   LOADING & ERROR STATES
   ========================================================================== */

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: var(--color-gray-400);
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--color-primary);
    stroke-dasharray:
        calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

#blazor-error-ui {
    background: var(--color-warning-bg);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background:
        url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2NyLjM4NyA4OS43OTIxIDI2Ny4zODcgODcuMzAwNSAyNjYuMTE2IDg2LjA1NDcgMjYzLjU3NiA4Ni4wNTQ3WiIgZmlsbD0iI0ZGRTUwMCIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9nPjwvc3ZnPg==) no-repeat 1rem/1.8rem,
        var(--color-error-bg);
    padding: 1rem 1rem 1rem 3.7rem;
    color: var(--color-white);
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.bg-primary-light {
    background-color: var(--color-gray);
}

.pointer {
    cursor: pointer;
}

/* WCAG 2.1 AA: generic "disabled" visual treatment for any element whose class
   ends in "-disabled" (e.g. text-disabled, border-disabled, or future ones),
   instead of requiring each one to be listed separately. --color-gray-600
   (#646768) gives ~5.7:1 against white, so dimmed/disabled text and borders
   stay readable while still clearly looking inactive. */

.text-disabled {
    color: var(--color-gray-600) !important;
    pointer-events: none;
    cursor: not-allowed;
}
.border-disabled {
    border-color: var(--color-gray-600) !important;
    pointer-events: none;
    cursor: not-allowed;
}

.offcanvas-header,
.modal-header {
    justify-content: space-between;
}

fieldset legend {
    font-size: 1rem;
    line-height: 1.2;
}

fieldset legend span {
    line-height: inherit;
}

.skip {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip:focus {
    left: 0;
    right: 0;
    width: fit-content;
    height: fit-content;
    z-index: 99;
}