/* AjaxControlToolkit Replacement Styles - Bootstrap Based */

/* ============================================
   MODAL POPUP EXTENDER REPLACEMENT
   ============================================ */

/* Modal Background Overlay */
.ajax__modal_overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 1040 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Modal Container - Replaces Panel */
.ajax__modal_popup {
    position: relative !important;
    background-color: #fff !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    max-width: 90% !important;
    max-height: 90% !important;
    overflow: auto !important;
    z-index: 1050 !important;
}

/* Modal Header */
.ajax__modal_header {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-bottom: 1px solid #dee2e6 !important;
    padding: 1rem !important;
    border-radius: 0.5rem 0.5rem 0 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.ajax__modal_header h3,
.ajax__modal_header .modal-title {
    margin: 0 !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #495057 !important;
}

/* Modal Close Button */
.ajax__modal_close {
    background: none !important;
    border: none !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    color: #6c757d !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 2rem !important;
    height: 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0.25rem !important;
    transition: all 0.15s ease-in-out !important;
}

.ajax__modal_close:hover {
    background-color: #e9ecef !important;
    color: #495057 !important;
}

/* Modal Body */
.ajax__modal_body {
    padding: 1rem !important;
}

/* Modal Footer */
.ajax__modal_footer {
    background: #f8f9fa !important;
    border-top: 1px solid #dee2e6 !important;
    padding: 1rem !important;
    border-radius: 0 0 0.5rem 0.5rem !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 0.5rem !important;
}

/* ============================================
   TAB CONTAINER REPLACEMENT
   ============================================ */

.ajax__tab_panel {
    padding: 1rem !important;
    border: 1px solid #dee2e6 !important;
    border-top: none !important;
    border-radius: 0 0 0.5rem 0.5rem !important;
    background-color: #fff !important;
}

/* Tab Header Container */
.ajax__tab_header {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    border-bottom: 2px solid #dee2e6 !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    list-style: none !important;
}

/* Tab Header Item */
.ajax__tab_header > li {
    margin-bottom: -2px !important;
}

/* Tab Button */
.ajax__tab_tab {
    display: block !important;
    padding: 0.5rem 1rem !important;
    color: #6c757d !important;
    text-decoration: none !important;
    border: 1px solid transparent !important;
    border-bottom: none !important;
    border-radius: 0.375rem 0.375rem 0 0 !important;
    background-color: transparent !important;
    cursor: pointer !important;
    transition: all 0.15s ease-in-out !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
}

.ajax__tab_tab:hover {
    color: #495057 !important;
    background-color: #f8f9fa !important;
}

/* Active Tab */
.ajax__tab_tab_active {
    color: #0d6efd !important;
    background-color: #fff !important;
    border-color: #dee2e6 !important;
    border-bottom-color: #fff !important;
}

/* ============================================
   CALENDAR EXTENDER REPLACEMENT
   ============================================ */

.ajax__calendar_container {
    position: absolute !important;
    z-index: 1050 !important;
}

.ajax__calendar {
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    padding: 0.5rem !important;
    width: auto !important;
}

.ajax__calendar_header {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-bottom: 1px solid #dee2e6 !important;
    padding: 0.5rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-radius: 0.375rem 0.375rem 0 0 !important;
}

.ajax__calendar_title {
    font-weight: 600 !important;
    color: #495057 !important;
    font-size: 0.875rem !important;
}

.ajax__calendar_nav {
    background: none !important;
    border: none !important;
    color: #6c757d !important;
    cursor: pointer !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.25rem !important;
    transition: all 0.15s ease-in-out !important;
}

.ajax__calendar_nav:hover {
    background-color: #e9ecef !important;
    color: #495057 !important;
}

.ajax__calendar_days {
    width: 100% !important;
    border-collapse: collapse !important;
}

.ajax__calendar_days th {
    padding: 0.5rem !important;
    text-align: center !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #6c757d !important;
    border-bottom: 1px solid #dee2e6 !important;
}

.ajax__calendar_days td {
    padding: 0.25rem !important;
    text-align: center !important;
}

.ajax__calendar_day {
    display: block !important;
    padding: 0.375rem !important;
    color: #495057 !important;
    text-decoration: none !important;
    border-radius: 0.25rem !important;
    cursor: pointer !important;
    transition: all 0.15s ease-in-out !important;
    font-size: 0.875rem !important;
}

.ajax__calendar_day:hover {
    background-color: #e9ecef !important;
}

.ajax__calendar_today {
    border: 2px solid #0d6efd !important;
    font-weight: 600 !important;
}

.ajax__calendar_selected {
    background-color: #0d6efd !important;
    color: #fff !important;
}

.ajax__calendar_other {
    color: #adb5bd !important;
}

.ajax__calendar_out {
    color: #dee2e6 !important;
}

.ajax__calendar_footer {
    padding: 0.5rem !important;
    border-top: 1px solid #dee2e6 !important;
    text-align: center !important;
}

/* ============================================
   MASKED EDIT EXTENDER STYLING
   ============================================ */

.ajax__masked_edit {
    border: 1px solid #ced4da !important;
    border-radius: 0.25rem !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 0.875rem !important;
    color: #495057 !important;
    background-color: #fff !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.ajax__masked_edit:focus {
    border-color: #86b7fe !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2) !important;
}

/* ============================================
   COLLAPSABLE PANEL STYLING
   ============================================ */

.ajax__collapsible_panel {
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    margin-bottom: 1rem !important;
    overflow: hidden !important;
}

.ajax__collapsible_header {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%) !important;
    padding: 0.75rem 1rem !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid #dee2e6 !important;
    transition: background-color 0.15s ease-in-out !important;
}

.ajax__collapsible_header:hover {
    background: #e9ecef !important;
}

.ajax__collapsible_title {
    font-weight: 600 !important;
    color: #495057 !important;
    font-size: 0.875rem !important;
}

.ajax__collapsible_icon {
    transition: transform 0.15s ease-in-out !important;
    color: #6c757d !important;
}

.ajax__collapsible_content {
    padding: 1rem !important;
    background-color: #fff !important;
}

.ajax__collapsible_collapsed .ajax__collapsible_content {
    display: none !important;
}

.ajax__collapsible_collapsed .ajax__collapsible_icon {
    transform: rotate(-90deg) !important;
}

/* ============================================
   TOOLKIT SCRIPT MANAGER REPLACEMENT
   ============================================ */

/* No specific styling needed - Bootstrap handles this */