/* Dual-mode date field: typed entry + calendar button */

.dap-date-field {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.dap-date-field .dap-date-text {
    flex: 1;
    min-width: 0;
    padding-right: 42px !important;
}

.dap-date-field .dap-date-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.dap-date-picker-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #0f6ab4;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.dap-date-picker-btn:hover,
.dap-date-picker-btn:focus {
    background: #eef4fb;
    outline: none;
}

.dap-field:has(.dap-date-text) > label {
    top: -7px;
    font-size: 9px;
    font-weight: 600;
    background: #fff;
    color: #687386;
    z-index: 1;
}

.dap-field:has(.dap-date-text:focus) > label {
    color: #0f6ab4;
}

.dap-mui .dap-date-field .dap-date-text {
    border-radius: 8px;
}

.dap-mui .dap-date-picker-btn {
    color: #1a73e8;
}
