.thss-dp-datepicker {
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    display: none;
    color: #495057;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 280px;
    -webkit-tap-highlight-color: transparent;
}

.thss-dp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

.thss-dp-datepicker.thss-dp-mobile {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    min-width: 100%;
    height: auto;
    max-height: 90vh;
    padding: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-out;
    overflow: hidden;
}

.thss-dp-mobile-header {
    display: none;
    background: #f8f9fa;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.thss-dp-mobile .thss-dp-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.thss-dp-mobile-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    flex: 1;
    text-align: center;
    margin-right: 40px;
}

.thss-dp-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.thss-dp-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.thss-dp-close:active {
    background-color: rgba(0, 0, 0, 0.1);
}

.thss-dp-content {
    padding: 16px;
}

.thss-dp-mobile .thss-dp-content {
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.thss-dp-header {
    display: flex;
    display: -webkit-flex;
    justify-content: space-between;
    -webkit-justify-content: space-between;
    align-items: center;
    -webkit-align-items: center;
    margin-bottom: 10px;
}

.thss-dp-header button {
    background: none;
    border: 1px solid #ddd;
    padding: 4px 4px 0 4px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.thss-dp-header button:hover {
    background: #f5f5f5;
}

.thss-dp-header button:active {
    background: #f0f0f0;
}

.thss-dp-title {
    font-weight: bold;
    color: #333;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.thss-dp-title:hover {
    background: #f0f0f0;
}

.thss-dp-body {
    position: relative;
}

.thss-dp-mobile .thss-dp-body {
    min-height: 300px;
}

.thss-dp-weekdays {
    display: grid;
    display: -ms-grid;
    grid-template-columns: repeat(7, 1fr);
    -ms-grid-columns: (1fr)[7];
    gap: 2px;
    text-align: center;
    margin-bottom: 5px;
}

.thss-dp-no-grid .thss-dp-weekdays {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.thss-dp-weekdays span {
    font-size: 12px;
    color: #666;
    font-weight: bold;
}

.thss-dp-no-grid .thss-dp-weekdays span {
    display: table-cell;
    padding: 2px;
}

.thss-dp-days {
    display: grid;
    display: -ms-grid;
    grid-template-columns: repeat(7, 1fr);
    -ms-grid-columns: (1fr)[7];
    gap: 2px;
}

.thss-dp-no-grid .thss-dp-days {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.thss-dp-day {
    padding: 8px;
    text-align: center;
    cursor: pointer;
    border-radius: 3px;
    background: #f9f9f9;
    border: 1px solid transparent;
    font-size: 14px;
    min-height: 32px;
    display: flex;
    display: -webkit-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
}

.thss-dp-no-grid .thss-dp-day {
    display: table-cell;
    vertical-align: middle;
}

.thss-dp-day:hover {
    background: #e6f2ff;
    border-color: #b3d9ff;
}

.thss-dp-day:active {
    background: #cce5ff;
}

.thss-dp-day.selected {
    background: #0b6eef;
    color: #fff;
    font-weight: bold;
}

.thss-dp-day.selected:hover {
    background: #0b6eef;
}

.thss-dp-day.today {
    border-color: #2c83f5;
    font-weight: bold;
}

.thss-dp-day.disabled {
    color: #ccc;
    cursor: default;
    background: #f5f5f5;
}

.thss-dp-day.disabled:hover {
    background: #f5f5f5;
    border-color: transparent;
}

.thss-dp-day.other-month {
    color: #ccc;
}

.thss-dp-footer {
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.thss-dp-mobile .thss-dp-footer {
    padding: 20px;
    margin: 0;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.thss-dp-months {
    display: grid;
    display: -ms-grid;
    grid-template-columns: repeat(3, 1fr);
    -ms-grid-columns: (1fr)[3];
    gap: 5px;
    padding: 10px 0;
}

.thss-dp-no-grid .thss-dp-months {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.thss-dp-month {
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    background: #f9f9f9;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
}

.thss-dp-no-grid .thss-dp-month {
    display: table-cell;
    width: 33.33%;
}

.thss-dp-month:hover {
    background: #e6f2ff;
    border-color: #b3d9ff;
}

.thss-dp-month.selected {
    background: #0b6eef;
    color: #fff;
}

.thss-dp-month.today {
    border-color: #2c83f5;
    font-weight: bold;
}

.thss-dp-month.disabled {
    color: #ccc;
    cursor: default;
    background: #f5f5f5;
}

.thss-dp-month.disabled:hover {
    background: #f5f5f5;
    border-color: transparent;
}

.thss-dp-years {
    display: grid;
    display: -ms-grid;
    grid-template-columns: repeat(3, 1fr);
    -ms-grid-columns: (1fr)[3];
    gap: 5px;
    padding: 10px 0;
}

.thss-dp-no-grid .thss-dp-years {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.thss-dp-year {
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    background: #f9f9f9;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
}

.thss-dp-no-grid .thss-dp-year {
    display: table-cell;
    width: 33.33%;
}

.thss-dp-year:hover {
    background: #e6f2ff;
    border-color: #b3d9ff;
}

.thss-dp-year.selected {
    background: #0b6eef;
    color: #fff;
}

.thss-dp-year.today {
    border-color: #2c83f5;
    font-weight: bold;
}

.thss-dp-year.disabled {
    color: #ccc;
    cursor: default;
    background: #f5f5f5;
}

.thss-dp-year.disabled:hover {
    background: #f5f5f5;
    border-color: transparent;
}

.thss-dp-today {
    background: #2c83f5;
    color: #fff;
    border: none;
    padding: 6px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.thss-dp-today:hover {
    background: #0b6eef;
}

.thss-dp-today:active {
    background: #0b6eef;
}

@media (max-width: 768px) {
    .thss-dp-mobile .thss-dp-header button {
        padding: 10px 16px;
        min-width: 48px;
        min-height: 48px;
        font-size: 20px;
    }

    .thss-dp-mobile .thss-dp-title {
        font-size: 18px;
        padding: 10px 16px;
    }

    .thss-dp-mobile .thss-dp-weekdays span {
        font-size: 14px;
        padding: 8px 0;
    }

    .thss-dp-mobile .thss-dp-day {
        padding: 12px;
        font-size: 16px;
        min-height: 48px;
    }

    .thss-dp-mobile .thss-dp-month,
    .thss-dp-mobile .thss-dp-year {
        padding: 20px 10px;
        font-size: 16px;
        min-height: 56px;
    }

    .thss-dp-mobile .thss-dp-today {
        padding: 12px 32px;
        font-size: 16px;
        min-height: 48px;
        width: 100%;
        border-radius: 8px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .thss-dp-datepicker.thss-dp-mobile {
        max-height: 80vh;
    }

    .thss-dp-mobile .thss-dp-content {
        padding: 16px;
    }

    .thss-dp-mobile .thss-dp-day {
        padding: 8px;
        min-height: 40px;
    }
}

.thss_date_input_wrapper {
    position: relative;
    display: inline-block;
}

.thss_date_input_wrapper .thss_datepicker {
    width: 100%;
    font-size: 14px;
    box-sizing: border-box;
}

.thss_date_icon {
    position: absolute;
    right: 28px;
    top: 72px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    opacity: 0.6;
}

.thss_date_input_wrapper .thss_datepicker::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

body.thss-dp-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.thss_datepicker .is-invalid ~ .thss_date_icon {
    width: 200px;
}