﻿html {
    background-color: transparent;
}

.login-box {
    width: 374px;
}

.card {
    background-color: #FFFFFF;
    border: none;
    box-shadow: none;
    -webkit-box-shadow: none;
}

button {
    cursor: pointer;
}

button:focus {
    outline: none;
}

.modal-backdrop {
    z-index: -1;
}

body.swal2-height-auto{
    height: 100% !important;
}

.dropdown-menu {
    padding: 0;
}

.dropdown-item:hover, .dropdown-item:focus {
    color: #16181b;
    text-decoration: none;
    background-color: #f8f9fa;
}

.dropdown-item {
    background-color: white;
    padding: 5px 5px 5px 5px !important;
    color: #000 !important;
    font-family: Noto-Sans-SC-Bold !important;
}

/* ============================================================
   Date Display Overlay — DD MMM YYYY display format
   The native input value remains YYYY-MM-DD; only the visual
   display changes.  All jQuery .val() reads continue to return
   YYYY-MM-DD, so formatDateAsUtcPlus8 / formatDateForInput
   and all downstream mapping logic are unaffected.
   ============================================================ */

/* Minimal wrapper injected by JS for inputs not already inside
   .date-input-wrapper.  Becomes the positioning context for the
   overlay without disrupting the surrounding layout. */
.date-field-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

/* Hide the browser-rendered date text.  The calendar-picker
   icon (a Webkit/Blink pseudo-element drawn outside the colour
   channel) is unaffected by 'color' and remains visible and
   clickable. */
input[type="date"].date-overlay-active {
    color: transparent !important;
}

/* The formatted overlay sits in front of the hidden native text.
   pointer-events:none ensures every click — including on the
   calendar-picker icon — passes through to the real input.
   JS sets display:flex when a valid value is present and
   display:none when the field is empty or when the input type
   has been switched to "text" by the transaction-details
   empty-state handler. */
.date-display-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 30px;   /* leave room for the calendar-picker icon */
    bottom: 0;
    display: none;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    pointer-events: none;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #404040;   /* JS overrides to #A3A3A3 for disabled/readonly */
    box-sizing: border-box;
    z-index: 1;
}

/* Keep the native date text hidden while the input is FOCUSED.
   'color: transparent' on the input is inherited by the Chromium
   date segments (::-webkit-datetime-edit-*-field), but when the
   input gains focus the ACTIVE segment gets a UA-applied highlight
   background + highlight text colour that does NOT inherit — which
   made dd/mm/yyyy reappear on click.  These rules force the
   segments (and their focus highlight) transparent too.
   NOTE: -webkit pseudo-elements are grouped in their own rules so
   browsers that don't recognise them (Firefox) simply drop these
   rules without affecting the others. */
input[type="date"].date-overlay-active::-webkit-datetime-edit,
input[type="date"].date-overlay-active::-webkit-datetime-edit-fields-wrapper,
input[type="date"].date-overlay-active::-webkit-datetime-edit-text,
input[type="date"].date-overlay-active::-webkit-datetime-edit-day-field,
input[type="date"].date-overlay-active::-webkit-datetime-edit-month-field,
input[type="date"].date-overlay-active::-webkit-datetime-edit-year-field {
    color: transparent !important;
}

input[type="date"].date-overlay-active::-webkit-datetime-edit-day-field:focus,
input[type="date"].date-overlay-active::-webkit-datetime-edit-month-field:focus,
input[type="date"].date-overlay-active::-webkit-datetime-edit-year-field:focus {
    color: transparent !important;
    background-color: transparent !important;
}

/* No caret or text-selection artifacts while focused (Firefox-safe). */
input[type="date"].date-overlay-active {
    caret-color: transparent;
}

input[type="date"].date-overlay-active::selection {
    color: transparent;
    background-color: transparent;
}
