/* SSENGINE tarih seçici - .date-input-tr alanları için (GG.AA.YYYY) */

.trdp-wrapper {
    position: relative;
    width: 100%;
}

.trdp-wrapper > input.date-input-tr {
    padding-right: 2.25rem;
}

.trdp-toggle {
    position: absolute;
    top: 50%;
    right: 0.25rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: 0.25rem;
    background: transparent;
    color: #495057;
    cursor: pointer;
}

.trdp-toggle:hover {
    background: #e9ecef;
    color: #212529;
}

.trdp-popup {
    position: absolute;
    z-index: 1100;
    top: calc(100% + 4px);
    left: 0;
    width: 258px;
    padding: 0.5rem;
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.trdp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem;
    background: #212529;
    border-radius: 0.25rem;
}

.trdp-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.trdp-nav {
    padding: 0.1rem 0.5rem;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

.trdp-nav:hover {
    background: rgba(255, 255, 255, 0.15);
}

.trdp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-top: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #495057;
    text-align: center;
}

.trdp-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-top: 0.2rem;
}

.trdp-day {
    padding: 0.3rem 0;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    background: #f8f9fa;
    color: #212529;
    font-size: 0.82rem;
    cursor: pointer;
}

.trdp-day:hover {
    background: #e9ecef;
}

.trdp-today {
    border-color: #0d6efd;
}

.trdp-selected {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
}

.trdp-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.trdp-footer {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.45rem;
}

.trdp-btn {
    flex: 1;
    padding: 0.25rem 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background: #ffffff;
    color: #212529;
    font-size: 0.78rem;
    cursor: pointer;
}

.trdp-btn:hover {
    background: #e9ecef;
}

.trdp-btn-muted {
    color: #6c757d;
}
