.s-Serenity-PropertyGrid .tab-pane {
  padding-top: 0 !important;
}


.dialog-category-nav {
    position: sticky;
    top: 0; 
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.dialog-category-nav .category-links {
    display: flex;
    flex-flow: wrap;  /* Simple wrap instead of wrap-reverse */
    gap: 0.25rem;
    padding: 0 0.25rem;
    justify-content: flex-start;  /* Left alignment */
    flex-direction: row;  /* This maintains category order while filling from top */
}

.dialog-category-nav .category-link {
    color: #2196F3;
    text-decoration: none;
    padding: 0.15rem 0.35rem;
    font-size: 0.9rem;
    border-radius: 3px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dialog-category-nav .category-links-row {
    display: flex;
    gap: 0.25rem;
    padding: 0 0.25rem;
}

.dialog-category-nav .category-links > * {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: flex-end;      /* This aligns items to the left (since direction is reversed) */
}

.dialog-category-nav .category-link:hover {
  background-color: #e3f2fd;
  color: #1976D2;
  text-decoration: none;
}

.dialog-category-nav .category-link::before {
  content: "↓";
  /*margin-right: 0.3rem;*/
  font-size: 0.8rem;
}

.dialog-category-nav .navbar-brand {
  font-size: 0.9rem;
  padding: 0;
  margin-right: 1rem;
}

.dialog-category-nav .nav-link {
  padding: 0.25rem 0.75rem;
  font-size: 0.9rem;
}

.field .editor, .field .widget-wrapper {
  border-color: black;
}

.tool-button {
  border-color: black;
}

.s-QuickSearchInput {
  border-color: black;
}

.s-IncludeDeletedToggle {
  border-color: black;
}

/*.s-Toolbar .select2-container {
  border-color: black;
}*/
.select2-container {
  border-color: black;
}

.s-Serenity-DateEditor {
  border-color: black;
}

.quick-filter-item .s-Serenity-StringEditor {
  border-color: black;
}

.Filter-Boolean .s-BooleanEditor {
  border-color: black;
}

.k-input {
  border-color: black !important;
}

.s-TrueClaims_SCS-Common-TimePickerEditor {
  border-style: solid !important;
  border-width: 1px !important;
  border-color: black !important;
  border-radius: var(--bs-border-radius);
}

.s-OurTimeEditor {
  border-width: 1px;
  border-style: solid;
  border-radius: var(--bs-border-radius);
}

.s-NumericTextBoxEditorKendo {
  border-style: solid !important;
  border-width: 1px !important;
  border-color: black !important;
  border-radius: var(--bs-border-radius);
}

.s-HtmlNoteContentEditor {
    border: none !important;
}

.s-HtmlNoteContentEditor .cke_inner {
  padding: 1px;
  border-style: solid !important;
  border-width: 1px !important;
  border-color: black !important;
  border-radius: var(--bs-border-radius);
}




.s-PrintEmailDialog .caption {
  width: 170px;
}

.cke_combo_text {
  width: auto !important;
}


.s-ReferralsDialog .s-PropertyGrid {
  max-height: 550px;
}

.s-ListingNotesDialog .s-PropertyGrid {
  max-height: 550px;
}

.s-ListingNotesQuickDialog .s-NotesEditor {
  max-height: 550px;
  overflow-y: auto;
}

.s-PendingListingNotesQuickDialog .s-NotesEditor {
  max-height: 550px;
  overflow-y: auto;
}

.s-MRUploaderDialog .dropZoneElement {
  padding: 5px;
  border: 2px dashed #dee2e6;
  /* border-radius: 8px; */
  transition: all 0.3s ease;
  position: relative;
}

.s-MRUploaderDialog .dropZoneElement.drag-over {
  border-color: #5cb85c;
  border-width: 3px;
  background-color: rgba(92, 184, 92, 0.15);
}

.s-MRUploaderDialog .dropZoneElement.drag-over > form {
  filter: blur(2px);
  opacity: 0.6;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.s-MRUploaderDialog .dropZoneElement.drag-over::after {
  content: "Drop files here to upload";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-weight: bold;
  color: #5cb85c;
  pointer-events: none;
  z-index: 100;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.9);
  background-color: rgba(255, 255, 255, 0.95);
  padding: 20px 40px;
  /* border-radius: 8px; */
  border: 2px solid #5cb85c;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.s-MRUploaderDialog .dropZoneElement > form {
  position: relative;
  z-index: 1;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.s-ProviderClientFilesGridPage .s-ProviderListingFilesGrid {
  height: 550px;
}

.s-PrintEmailPendingListingsDialog .s-PropertyGrid {
  max-height: 550px;
}

.s-AdjustersDialog .s-PropertyGrid {
  max-height: 550px;
}

.s-Provider-ProviderFeeDialog .s-PropertyGrid {
  max-height: 550px;
}

/*.s-Provider-ProviderFeeDialog  { 
  min-width: 700px !important;
}*/

.s-Provider-ProviderSpecialtyDialog .s-PropertyGrid {
  max-height: 550px;
  min-width: 700px !important;
}

.s-Provider-ProviderSpecialtyStateDialog .s-PropertyGrid {
  max-height: 550px;
  min-width: 700px !important;
}

.s-PropertyGrid .k-input {
  /*border: 1px solid var(--bs-border-color) !important;*/
  height: calc(var(--s-input-inner-height) + 2px);
}

.s-PropertyGrid .custom-alignment-wrapper {
  background-color: rgba(0, 0, 0, 0) !important;
}

.s-Provider-ProviderFeeDetailCheckGrid {
  max-height: 550px;
}

.s-Listing-ListingServiceEditorDialog .s-PropertyGrid,
.s-Provider-ProviderDocumentEditorDialog .s-PropertyGrid,
.s-TrueClaims_SCS-ConflictOfInterest-ConflictOfInterestDialog .s-PropertyGrid {
  max-height: 550px;
}

.s-Location-LocationCheckGrid {
  max-height: 550px;
}

/*.s-Provider-SplitProviderLocationPane {
    max-height: 550px;
    overflow-y: auto;
}*/

  /* .s-Provider-SplitProviderLocationPane {
    height: 100%;
    overflow-y: auto;
  } */

  .s-TrueClaims_SCS-Provider-SplitProviderLocationPane {
    padding: 5px;
  }

.s-Location-SingleLocationPickerDialog .model-body {
    overflow-y: auto;
    top: -15px;
}

@media screen and (max-height: 885px) {

  .s-ProviderClientFilesGridPage .s-ProviderListingFilesGrid {
    height: 550px;
  }

  .s-Provider-ProviderFeeDialog .s-PropertyGrid {
    max-height: 550px;
  }

  .s-Provider-ProviderSpecialtyDialog .s-PropertyGrid,
  .s-Provider-ProviderSpecialtyStateDialog .s-PropertyGrid,
  .s-Provider-ProviderDocumentEditorDialog .s-PropertyGrid {
    max-height: 550px;
  }

  .s-Provider-ProviderFeeDetailCheckGrid,
  .s-Listing-ListingServiceEditorDialog .s-PropertyGrid,
  .s-Location-LocationCheckGrid {
    max-height: 550px;
  }

  .s-Provider-SplitProviderLocationPane {
    max-height: 550px; 
    overflow-y: auto;
  } */

  .s-Location-SingleLocationPickerDialog .modal-content {
    top: -15px;
  }

  /* .s-Provider-SplitProviderLocationPane .s-Provider-SplitLocationMasterGrid,
  .s-Provider-SplitProviderLocationPane .s-Provider-ProviderLocationCheckGrid {
    height: calc(40% - 6px) !important;
  } */
}


/*@media screen and (max-width: 1366px) and (max-height: 768px) {
  .s-Provider-ProviderFeeDialog .s-PropertyGrid {
    max-height: 400px;
  }

  .s-Provider-ProviderSpecialtyDialog .s-PropertyGrid,
  .s-Provider-ProviderSpecialtyStateDialog .s-PropertyGrid,
  .s-Provider-ProviderDocumentEditorDialog .s-PropertyGrid {
    max-height: 400px;
  }

  .s-Provider-ProviderFeeDetailCheckGrid,
  .s-Listing-ListingServiceEditorDialog .s-PropertyGrid,
  .s-Location-LocationCheckGrid {
    max-height: 400px;
  }

  .s-Provider-SplitProviderLocationPane {
    max-height: 400px;
    overflow-y: auto;
  }

  .s-Location-SingleLocationPickerDialog .modal-content {
      top: -125px;
  }

  .s-Provider-SplitProviderLocationPane .s-Provider-SplitLocationMasterGrid,
  .s-Provider-SplitProviderLocationPane .s-Provider-ProviderLocationCheckGrid {
    height: calc(40% - 6px) !important;
  }
}*/

@media screen and (max-height: 768px) {

  .s-ProviderClientFilesGridPage .s-ProviderListingFilesGrid {
    height: 350px;
  }

  .s-Provider-ProviderFeeDialog .s-PropertyGrid,
  .s-TrueClaims_SCS-ConflictOfInterest-ConflictOfInterestDialog .s-PropertyGrid {
    max-height: 350px;
  }

  .s-Provider-ProviderSpecialtyDialog .s-PropertyGrid,
  .s-Provider-ProviderSpecialtyStateDialog .s-PropertyGrid,
  .s-Provider-ProviderDocumentEditorDialog .s-PropertyGrid {
    max-height: 350px;
  }

  .s-Provider-ProviderFeeDetailCheckGrid,
  .s-Listing-ListingServiceEditorDialog .s-PropertyGrid,
  .s-Location-LocationCheckGrid {
    max-height: 350px;
  }

  /* .s-Provider-SplitProviderLocationPane {
    max-height: 350px;
    overflow-y: auto;
  } */

  .s-Location-SingleLocationPickerDialog .modal-content {
    top: -115px;
  }

  /* .s-Provider-SplitProviderLocationPane .s-Provider-SplitLocationMasterGrid,
  .s-Provider-SplitProviderLocationPane .s-Provider-ProviderLocationCheckGrid {
    height: calc(40% - 6px) !important;
  } */
}

@media screen and (max-height: 600px) {

  .s-ProviderClientFilesGridPage .s-ProviderListingFilesGrid {
    height: 300px;
  }

  .s-Provider-ProviderFeeDialog .s-PropertyGrid,
  .s-TrueClaims_SCS-ConflictOfInterest-ConflictOfInterestDialog .s-PropertyGrid {
    max-height: 300px;
  }

  .s-Provider-ProviderSpecialtyDialog .s-PropertyGrid,
  .s-Provider-ProviderSpecialtyStateDialog .s-PropertyGrid,
  .s-Provider-ProviderDocumentEditorDialog .s-PropertyGrid {
    max-height: 300px;
  }

  .s-Provider-ProviderFeeDetailCheckGrid,
  .s-Listing-ListingServiceEditorDialog .s-PropertyGrid,
  .s-Location-LocationCheckGrid {
    max-height: 300px;
  }

  /* .s-Provider-SplitProviderLocationPane {
    max-height: 300px;
    overflow-y: auto;
  } */

  .s-Location-SingleLocationPickerDialog .modal-content {
    top: -115px;
  }

  /* .s-Provider-SplitProviderLocationPane .s-Provider-SplitLocationMasterGrid,
  .s-Provider-SplitProviderLocationPane .s-Provider-ProviderLocationCheckGrid {
    height: calc(40% - 6px) !important;
  } */
}


/* START UpdateFieldsDialog CSS */

.s-UpdateFieldsDialog {
  min-height: 300px;
  padding: 1rem;
}

.s-UpdateFieldsDialog .field-container {
  margin-bottom: 1.5rem;
}

.s-UpdateFieldsDialog .field-header {
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-bottom: 1px solid #eee;
}

.s-UpdateFieldsDialog .field-row {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  border-bottom: 1px solid #f5f5f5;
  align-items: center;
}

.s-UpdateFieldsDialog .field-select {
  flex: 2;
}

.s-UpdateFieldsDialog .field-value {
  flex: 2;
}

.s-UpdateFieldsDialog .field-actions {
  flex: 0 0 auto;
}

.s-UpdateFieldsDialog .dialog-footer {
  padding-top: 1rem;
  border-top: 1px solid #eee;
  text-align: right;
}

.s-UpdateFieldsDialog .dialog-footer .btn {
  margin-left: 0.5rem;
}

/* Value input states */
.s-UpdateFieldsDialog .field-value > * {
  display: none;
}

.s-UpdateFieldsDialog .field-value > *.active {
  display: block;
}

/* END UpdateFieldsDialog CSS */


/* START UpdateFieldsDialogKendo CSS */

.s-UpdateFieldsDialogKendo {
  min-height: 300px;
  padding: 1rem;
}

.s-UpdateFieldsDialogKendo .k-picker {
  background-color: white;
}

.s-UpdateFieldsDialogKendo .grid-container {
  margin-bottom: 1.5rem;
}

.s-UpdateFieldsDialogKendo .field-grid {
  border: 1px solid #e6e6e6;
  border-radius: 4px;
}

/* Kendo Grid Customizations */
.s-UpdateFieldsDialogKendo .field-grid .k-grid-header {
  background-color: #f8f9fa;
}

.s-UpdateFieldsDialogKendo .field-grid .k-grid-content {
  min-height: 200px;
}

/* Field Type Column */
.s-UpdateFieldsDialogKendo .field-grid .k-dropdown {
  width: 100%;
}

/* Value Column */
.s-UpdateFieldsDialogKendo .field-grid .k-textbox,
.s-UpdateFieldsDialogKendo .field-grid .k-dropdown,
.s-UpdateFieldsDialogKendo .field-grid .k-checkbox {
  width: 100%;
  min-width: 200px;
}

/* Actions Column */
.s-UpdateFieldsDialogKendo .field-grid .k-grid-edit,
.s-UpdateFieldsDialogKendo .field-grid .k-grid-delete {
  margin: 0 3px;
}

/* Validation Styles */
.s-UpdateFieldsDialogKendo .field-grid .k-invalid {
  border-color: #dc3545;
}

.s-UpdateFieldsDialogKendo .field-grid .k-invalid-msg {
  /*color: #dc3545;*/
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Editor Styles */
.s-UpdateFieldsDialogKendo .field-grid .k-edit-cell {
  padding: 8px;
}

/* Toolbar Styles */
.s-UpdateFieldsDialogKendo .field-grid .k-grid-toolbar {
  padding: 8px;
  background-color: #fff;
  border-bottom: 1px solid #e6e6e6;
}

.s-UpdateFieldsDialogKendo .field-grid .k-grid-toolbar .k-button {
  margin-right: 8px;
  color: white;
  background-color: green;
}

/* Row Styles */
.s-UpdateFieldsDialogKendo .field-grid .k-grid-content tr {
  transition: background-color 0.2s;
}

.s-UpdateFieldsDialogKendo .field-grid .k-grid-content tr:hover {
  background-color: #f8f9fa;
}

/* Dialog Footer */
.s-UpdateFieldsDialogKendo .dialog-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  text-align: right;
}

.s-UpdateFieldsDialogKendo .dialog-footer .k-button {
  margin-left: 0.5rem;
}
/* END UpdateFieldsDialogKendo CSS */

/* Tab Search Styles */
.tab-search-container {
    position: relative;
    margin-left: auto;
    padding: 5px 10px;
    display: flex;
    align-items: center;
}

.tab-search {
    padding: 4px 30px 4px 28px;  /* Increased left padding */
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
    outline: none;
    transition: border-color 0.2s;
    background-color: white;
}

.tab-search-container::before {
    content: "\f002"; /* Font Awesome search icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 20px;            /* Adjusted position */
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 13px;
    z-index: 1;           /* Ensure icon stays above */
    pointer-events: none;
}

.tab-search:focus {
    border-color: #2196F3;
}

/* Ensure tab list can accommodate search box */
.nav.nav-underline.property-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

/* Search Results Styles */
.search-results {
    display: none;
    position: absolute;
    top: 100%;
    right: 10px;
    width: 200px;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1100; /* Increased z-index */
}

.search-results.visible {
    display: block !important;
}

.search-result {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result:hover,
.search-result.selected {
    background-color: #e3f2fd;
    color: #1976D2;
}

.field-highlight {
    animation: highlight-pulse 2s;
}

@keyframes highlight-pulse {
    0% { background-color: rgba(33, 150, 243, 0.2); }
    100% { background-color: transparent; }
}


.s-UserProviderPickerDialog {
  min-height: 800px;
  padding: 1rem;
}

/* Dialog Tags Widget Styles */
.dialog-tags-wrapper {
    margin-bottom: 0;
}

/* Header row for toggle button */
.dialog-tags-header {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    padding: 2px 5px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Toggle button */
.dialog-tags-toggle {
    background: transparent;
    border: none;
    padding: 2px 6px;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.2s;
    font-size: 11px;
}

.dialog-tags-toggle:hover {
    color: #2196F3;
}

.dialog-tags-toggle i {
    font-size: 10px;
}

/* Content wrapper for collapse animation */
.dialog-tags-content {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 500px;
    opacity: 1;
    overflow: hidden;
}

.dialog-tags-content.collapsed {
    max-height: 0;
    opacity: 0;
}

.dialog-tags-container {
    padding: 3px 5px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    min-height: 40px;
}

.dialog-tags-container:empty {
    display: none;
}

/* Info Tags - Different styling for always-visible information tags */
#InfoTagsContainer {
    background: #ffffff;
    border-bottom: 1px solid #dee2e6;
}

#InfoTagsContainer .dialog-tags-container {
    background: #ffffff;
    border: none;
    justify-content: flex-start;
}

/* Status Tags - Conditional status indicators */
#StatusTagsContainer {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

#StatusTagsContainer .dialog-tags-container {
    background: #f8f9fa;
    border: none;
    justify-content: flex-end;
}

.dialog-tags-container .badge {
    /* font-size: 0.875rem; */
    font-size: 14px;
    padding: 0.5em 0.75em;
    font-weight: 500;
    white-space: nowrap;
    cursor: help;
}

.dialog-tags-container .badge i {
    /* font-size: 0.9em; */
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dialog-tags-container {
        padding: 3px 5px;
        gap: 0.35rem;
        justify-content: flex-start;
    }
    
    .dialog-tags-container .badge {
        /* font-size: 0.8rem; */
        font-size: 14px;
        padding: 0.4em 0.6em;
    }
}

@media (max-width: 576px) {
    .dialog-tags-container {
        padding: 3px 5px;
        min-height: 36px;
    }
    
    .dialog-tags-container .badge {
        /* font-size: 0.75rem; */
        font-size: 14px;
        padding: 0.35em 0.55em;
    }
    
    .dialog-tags-container .badge i {
        display: none;
    }
}

/* Tag color variants */
.badge.bg-success {
    background-color: #28a745 !important;
    color: white;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
    color: white;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
    color: white;
}

.badge.bg-info {
    background-color: #17a2b8 !important;
    color: white;
}

.badge.bg-primary {
    background-color: #007bff !important;
    color: white;
}

.badge.text-white {
    color: white !important;
}

.badge.text-dark {
    color: #212529 !important;
}