@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #007ad6;
    border-color: #007ad6;
    text-transform : capitalize;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5M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48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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


.customer-btn-small {

    width : 100px !important;
    text-transform:capitalize;

    }


/* =====================================================================
   App-wide ACTION buttons (Save / New / Update / Add / Load / etc.)
   rendered as blue, underlined, animated TEXT links with a leading icon.
   Targets Bootstrap .btn-primary / .btn-success (the bulk of action
   buttons). AntDesign (.ant-btn) and danger/secondary buttons are left
   untouched so semantic colours (delete = red, etc.) are preserved.
   ===================================================================== */
.btn.btn-primary,
.btn.btn-success,
.lx-action-link,
.lx-view-profile-link {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #2586F3 !important;
    font-family: 'Lato', 'Segoe UI', Arial, sans-serif !important;
    font-size: 0.945rem !important;    /* fixed, identical everywhere (10% smaller) */
    font-weight: 700 !important;
    text-transform: capitalize;
    text-decoration: underline !important;
    border-radius: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    line-height: 1.4 !important;
    padding: 2px 4px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 7px;                          /* same icon/text gap as the source page */
    vertical-align: middle;
    cursor: pointer;
    transition: transform .15s ease, color .15s ease;
}

    /* Per-word leading icon for recognised action buttons.
       The data-lxico attribute is set by wwwroot/js/lx-action-icons.js based on
       the button text (Save/New/Update/etc). Buttons with their own <i>/<svg>
       icon are left alone. */
    /* icons: same size for both ::before glyphs and real <i>/<svg> icons */
    .btn[data-lxico]::before,
    .lx-action-link i,
    .lx-action-link svg,
    .lx-view-profile-link i,
    .lx-view-profile-link svg {
        font-size: .9em;
        line-height: 1;
    }

    .btn[data-lxico]::before {
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        display: inline-block;
        text-decoration: none;
    }

        .btn[data-lxico="save"]::before    { content: "\f0c7"; } /* floppy disk */
        .btn[data-lxico="update"]::before  { content: "\f044"; } /* pen-to-square */
        .btn[data-lxico="new"]::before     { content: "\f067"; } /* plus */
        .btn[data-lxico="search"]::before  { content: "\f002"; } /* magnifier */
        .btn[data-lxico="load"]::before    { content: "\f019"; } /* download */
        .btn[data-lxico="refresh"]::before { content: "\f021"; } /* rotate */
        .btn[data-lxico="submit"]::before  { content: "\f0c7"; } /* save */

    .btn.btn-primary:hover,
    .btn.btn-success:hover,
    .lx-action-link:hover,
    .lx-view-profile-link:hover {
        color: #0056a3 !important;
        background: transparent !important;
        text-decoration: underline !important;
        transform: scale(1.06);
    }

    .btn.btn-primary:active,
    .btn.btn-success:active,
    .lx-action-link:active,
    .lx-view-profile-link:active {
        transform: scale(1.02);
    }

    /* "Total Records" buttons (the ones holding a count badge) — 20% smaller font */
    .btn.btn-primary:has(.badge),
    .btn.btn-success:has(.badge) {
        font-size: 0.84rem !important;   /* ~20% smaller than 1.05rem */
    }

    /* Green tick image used in data tables (Active status) — 10% smaller */
    img[src$="checked.png"] {
        width: 18px !important;
        height: auto !important;
    }

/* ---- Light "impact" animation on the ICON only (Save / New / Update) ---- */
@keyframes lxIconPop {
    0%, 72%, 100% { transform: scale(1); }
    84%           { transform: scale(1.3); }
}

    .btn[data-lxico="save"]::before,
    .btn[data-lxico="new"]::before,
    .btn[data-lxico="update"]::before,
    .lx-action-link i.fa-save,
    .lx-action-link i.fa-plus {
        display: inline-block;
        transform-origin: center;
        animation: lxIconPop 2.2s ease-in-out infinite;
    }

/* ---- Report filter panel: "Filter" label + light-blue panel (MIS forms, matches RBA report) ---- */
.lx-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #007ad6;
    font-size: .9rem;
}

.lx-mis-filter {
    background-color: #eef3fb !important;   /* same light blue as the customer pages */
    border-radius: 10px;
}

    .lx-mis-filter .ant-collapse-header,
    .lx-mis-filter .ant-collapse-content,
    .lx-mis-filter .ant-collapse-content-box,
    .lx-mis-filter > .ant-collapse-item {
        background-color: #eef3fb !important;
    }

/* Selectable report/field list inside a filter panel (grey default, blue selected) */
.lx-rbascreen {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    max-height: 26vh;
    overflow-y: auto;
    background: #fff;
}

.lx-rbascreen-item {
    background-color: #f4f5f7;            /* default: light grey */
    border-bottom: 1px solid #eef2f7;
    transition: filter .12s ease, background-color .12s ease;
}

    .lx-rbascreen-item:last-child {
        border-bottom: none;
    }

    .lx-rbascreen-item a {
        display: block;
        padding: 7px 12px;
        color: #334155;
        font-size: .82rem;
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
    }

    .lx-rbascreen-item:hover {
        filter: brightness(0.96);
    }


