﻿@import url('colors.css');
@import url('icons.css');
@import url('buttons.css');

.ncs-popup-topbar {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 40px;
    border-radius: 8px 8px 0px 0px;
}

.ncs-popup-topbar-icon {
    position: absolute;
    left: 10px;
    top: 5px;
    width: 34px;
    height: 30px;
}

.ncs-text-container {
    align-items: center;
    display: flex;
    justify-content: center;
}

/* Ensure the Label Item shrinks to fit content by default if no width is set. */
.ncs-label-left .label-item-custom-width {
    flex-basis: auto !important;    
    max-width: none !important;
    width: auto !important;
}

/* Force the input item to take ALL remaining space */
.ncs-label-left .mud-grid-item:last-child {
    flex-grow: 1 !important;
    flex-basis: 0 !important;
    max-width: none !important;
}

/* Styling to make the undo button align naturally with the date field */
.ncs-datepicker-wrapper {
    display: flex;
    align-items: center;    
}
    .ncs-datepicker-wrapper .mud-input-control {
        flex-grow: 1; /* Allow the date picker to take up most of the space */
    }

/* Wrapper for NcsSelect to align the select and undo button */
.ncs-select-wrapper {
    display: flex;
    align-items: center;
}

    .ncs-select-wrapper .mud-input-control {
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: auto;
        width: auto !important;
    }

.ncs-undo-adornment {
    padding: 0;
    margin-top: 0;
    min-width: 0;
    width: 32px;
    height: 32px;
}

.ncs-auto-focus-highlight {
    animation: ncs-focus-glow 1.5s ease-in-out;
}

@keyframes ncs-focus-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.6);
        background-color: rgba(244, 67, 54, 0.08);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(244, 67, 54, 0);
        background-color: rgba(244, 67, 54, 0.18);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0);
        background-color: transparent;
    }
}