.dtp-wrapper {
    position: relative;
    display: inline-block;
}

.dtp-input {
    padding: 7px 34px 7px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 210px;
    cursor: pointer;
    background: #fff;
    font-size: 13px;
}

.dtp-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.dtp-popup {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 14px;
    display: flex;
    flex-direction: column;
    font-family: Segoe UI, Arial, sans-serif;
}

.dtp-body {
    display: flex;
    gap: 14px;
}

/* ---------------- Calendar ---------------- */

.dtp-calendar {
    width: 260px;
}

.dtp-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.dtp-nav {
    border: none;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
    color: #555;
}

.dtp-nav:hover {
    background: #f0f2f5;
}

.dtp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
}

.dtp-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.dtp-day {
    border: none;
    background: transparent;
    padding: 7px 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    color: #333;
}

.dtp-day:hover:not(.dtp-disabled):not(.dtp-pad) {
    background: #eef3ff;
}

.dtp-day.dtp-today {
    box-shadow: inset 0 0 0 1px #4a7dff;
}

.dtp-day.dtp-selected {
    background: #4a7dff;
    color: #fff;
    font-weight: 600;
}

.dtp-day.dtp-disabled {
    color: #d8d8d8;
    cursor: not-allowed;
}

.dtp-day.dtp-pad {
    visibility: hidden;
}

/* ---------------- Time list ---------------- */

.dtp-time {
    width: 100px;
    border-left: 1px solid #eee;
    padding-left: 12px;
}

.dtp-time-list {
    max-height: 236px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dtp-time-slot {
    border: none;
    background: transparent;
    padding: 6px 8px;
    text-align: left;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
}

.dtp-time-slot:hover {
    background: #eef3ff;
}

.dtp-time-slot.dtp-selected {
    background: #4a7dff;
    color: #fff;
}

/* ---------------- Footer ---------------- */

.dtp-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 12px;
}

.dtp-footer-right {
    display: flex;
    gap: 8px;
}

.dtp-footer-btn {
    border: 1px solid #ddd;
    background: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
}

.dtp-footer-btn:hover {
    background: #f5f5f5;
}

.dtp-footer-primary {
    background: #4a7dff;
    border-color: #4a7dff;
    color: #fff;
}

.dtp-footer-primary:hover {
    background: #3a6ae0;
}

/* ---------------- Range filter (From/To wrapper) ---------------- */

.dtp-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dtp-range-sep {
    color: #777;
    font-size: 13px;
}

.dtp-range-error {
    color: #c0392b;
    font-size: 12px;
    margin-left: 6px;
}
