/* Auto-scoped Partners chrome (buttons→modals→entity) for #supportTicketModal */


/* === from buttons.css === */

#supportTicketModal .new-project-btn{
  background-color: var(--bs-light) !important;
  color: var(--bs-primary) !important;
  border: 1px solid var(--bs-primary) !important;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
#supportTicketModal .new-project-btn:hover{
  background-color: var(--bs-primary) !important;
  color: #fff !important;
  border-color: var(--bs-primary) !important;
}
[data-bs-theme="dark"] #supportTicketModal .new-project-btn{
  background-color: var(--bs-body-bg) !important;
  color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}
[data-bs-theme="dark"] #supportTicketModal .new-project-btn:hover{
  background-color: var(--bs-primary) !important;
  color: #fff !important;
}
#supportTicketModal .btn{
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0.025em;
  transition: all 0.2s ease-in-out;
  border: none;
  position: relative;
  overflow: hidden;
}
#supportTicketModal .btn-primary{
  background: linear-gradient(145deg, #00baff, #0077cc);
  color: white;
  box-shadow: 0 0 10px rgba(0, 186, 255, 0.4);
}
#supportTicketModal .btn-primary:hover{
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(0, 186, 255, 0.6);
  color: white;
}
#supportTicketModal .btn-secondary{
  background: linear-gradient(145deg, #ff4757, #cc3a47);
  color: white;
  box-shadow: 0 0 10px rgba(255, 71, 87, 0.4);
}
#supportTicketModal .btn-secondary:hover{
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(255, 71, 87, 0.6);
  color: white;
}
#supportTicketModal .btn-success{
  background: linear-gradient(145deg, #2fcf90, #25a372);
  color: white;
  box-shadow: 0 0 10px rgba(47, 207, 144, 0.4);
}
#supportTicketModal .btn-success:hover{
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(47, 207, 144, 0.6);
  color: white;
}
#supportTicketModal .btn-danger{
  background: linear-gradient(145deg, #f24747, #c13939);
  color: white;
  box-shadow: 0 0 10px rgba(242, 71, 71, 0.4);
}
#supportTicketModal .btn-danger:hover{
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(242, 71, 71, 0.6);
  color: white;
}
#supportTicketModal .btn-warning{
  background: linear-gradient(145deg, #e5c84c, #b69f3c);
  color: black;
  box-shadow: 0 0 10px rgba(229, 200, 76, 0.4);
}
#supportTicketModal .btn-warning:hover{
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(229, 200, 76, 0.6);
  color: black;
}
#supportTicketModal .btn-info{
  background: linear-gradient(145deg, #17a2b8, #117a8b);
  color: white;
  box-shadow: 0 0 10px rgba(23, 162, 184, 0.4);
}
#supportTicketModal .btn-info:hover{
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(23, 162, 184, 0.6);
  color: white;
}
#supportTicketModal .btn-outline-primary{
  color: #00baff;
  border: 1px solid #00baff;
  background: rgba(0, 186, 255, 0.05);
  box-shadow: 0 0 10px rgba(0, 186, 255, 0.25);
}
#supportTicketModal .btn-outline-primary:hover{
  background: linear-gradient(145deg, #00baff, #0077cc);
  color: white;
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(0, 186, 255, 0.6);
}
#supportTicketModal .btn-outline-secondary{
  color: #937bff;
  border: 1px solid #937bff;
  background: rgba(147, 123, 255, 0.05);
  box-shadow: 0 0 10px rgba(147, 123, 255, 0.25);
}
#supportTicketModal .btn-outline-secondary:hover{
  background: linear-gradient(145deg, #937bff, #7662cc);
  color: white;
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(147, 123, 255, 0.6);
}
#supportTicketModal .btn-outline-success{
  color: #2fcf90;
  border: 1px solid #2fcf90;
  background: rgba(47, 207, 144, 0.05);
  box-shadow: 0 0 10px rgba(47, 207, 144, 0.25);
}
#supportTicketModal .btn-outline-success:hover{
  background: linear-gradient(145deg, #2fcf90, #25a372);
  color: white;
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(47, 207, 144, 0.6);
}
#supportTicketModal .btn-outline-danger{
  color: #f24747;
  border: 1px solid #f24747;
  background: rgba(242, 71, 71, 0.05);
  box-shadow: 0 0 10px rgba(242, 71, 71, 0.25);
}
#supportTicketModal .btn-outline-danger:hover{
  background: linear-gradient(145deg, #f24747, #c13939);
  color: white;
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(242, 71, 71, 0.6);
}
#supportTicketModal .btn-outline-warning{
  color: #e5c84c;
  border: 1px solid #e5c84c;
  background: rgba(229, 200, 76, 0.05);
  box-shadow: 0 0 10px rgba(229, 200, 76, 0.25);
}
#supportTicketModal .btn-outline-warning:hover{
  background: linear-gradient(145deg, #e5c84c, #b69f3c);
  color: black;
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(229, 200, 76, 0.6);
}
#supportTicketModal .btn-outline-info{
  color: #17a2b8;
  border: 1px solid #17a2b8;
  background: rgba(23, 162, 184, 0.05);
  box-shadow: 0 0 10px rgba(23, 162, 184, 0.25);
}
#supportTicketModal .btn-outline-info:hover{
  background: linear-gradient(145deg, #17a2b8, #117a8b);
  color: white;
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(23, 162, 184, 0.6);
}
#supportTicketModal .btn-sm{
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  min-width: 80px;
  text-align: center;
  white-space: nowrap;
}
#supportTicketModal .btn-lg{
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
  border-radius: 8px;
}
#supportTicketModal .actions-col .btn{
  margin: 0 2px;
  transition: all 0.2s ease;
}
#supportTicketModal .btn:focus{
  outline: none;
  box-shadow: inherit;
}

/* === from modals.css === */

[data-bs-theme="dark"] #supportTicketModal .modal select.form-select, [data-bs-theme="dark"] #supportTicketModal .modal select.form-control{
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal select.form-select:focus, [data-bs-theme="dark"] #supportTicketModal .modal select.form-control:focus{
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal select.form-select option, [data-bs-theme="dark"] #supportTicketModal .modal select.form-control option{
    background: var(--bs-dark) !important;
    color: #fff !important;
}
#supportTicketModal .modal{
    display: none;
    position: fixed;
    z-index: 1055;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}
#supportTicketModal .modal.show, #supportTicketModal .modal.d-block{
    display: block;
    overflow: hidden; 
}
#supportTicketModal html.modal-open, #supportTicketModal body.modal-open{
    overflow: hidden !important;
    overscroll-behavior: none;
    padding-right: 0 !important; 
}
#supportTicketModal .modal.fade.show.d-block{
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}
#supportTicketModal .modal, #supportTicketModal .modal-content, #supportTicketModal .modal-dialog{
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}
#supportTicketModal .modal::-webkit-scrollbar, #supportTicketModal .modal-content::-webkit-scrollbar, #supportTicketModal .modal-dialog::-webkit-scrollbar{
    display: none; 
    width: 0px;
    height: 0px;
}
#supportTicketModal .modal-content{
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    margin: 3% auto;
    padding: 0;
    width: 95%;
    max-width: 900px;
    border: none;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
#supportTicketModal .modal > .modal-dialog > .modal-content{
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}
#supportTicketModal .modal:not(.patient-lifecycle-modal):not(.partners-patient-modal):not(.partners-entity-modal):not(.crm-treatment-modal):not(.crm-conversation-modal) > .modal-dialog.modal-lg, #supportTicketModal .modal:not(.patient-lifecycle-modal):not(.partners-patient-modal):not(.partners-entity-modal):not(.crm-treatment-modal):not(.crm-conversation-modal) > .modal-dialog.modal-xl{
    max-height: calc(100dvh - 3.5rem);
    margin-top: 1.75rem;
    margin-bottom: 1.75rem;
}
#supportTicketModal .modal:not(.patient-lifecycle-modal):not(.partners-patient-modal):not(.partners-entity-modal):not(.crm-treatment-modal):not(.crm-conversation-modal) > .modal-dialog.modal-lg > .modal-content, #supportTicketModal .modal:not(.patient-lifecycle-modal):not(.partners-patient-modal):not(.partners-entity-modal):not(.crm-treatment-modal):not(.crm-conversation-modal) > .modal-dialog.modal-xl > .modal-content{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(100dvh - 3.5rem);
    overflow: hidden;
}
#supportTicketModal .modal:not(.patient-lifecycle-modal):not(.partners-patient-modal):not(.partners-entity-modal):not(.crm-treatment-modal):not(.crm-conversation-modal) > .modal-dialog.modal-lg > .modal-content > form, #supportTicketModal .modal:not(.patient-lifecycle-modal):not(.partners-patient-modal):not(.partners-entity-modal):not(.crm-treatment-modal):not(.crm-conversation-modal) > .modal-dialog.modal-xl > .modal-content > form{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    margin: 0;
}
#supportTicketModal .modal:not(.patient-lifecycle-modal):not(.partners-patient-modal):not(.partners-entity-modal):not(.crm-treatment-modal):not(.crm-conversation-modal) > .modal-dialog.modal-lg > .modal-content > .modal-header, #supportTicketModal .modal:not(.patient-lifecycle-modal):not(.partners-patient-modal):not(.partners-entity-modal):not(.crm-treatment-modal):not(.crm-conversation-modal) > .modal-dialog.modal-xl > .modal-content > .modal-header, #supportTicketModal .modal:not(.patient-lifecycle-modal):not(.partners-patient-modal):not(.partners-entity-modal):not(.crm-treatment-modal):not(.crm-conversation-modal) > .modal-dialog.modal-lg > .modal-content > form > .modal-header, #supportTicketModal .modal:not(.patient-lifecycle-modal):not(.partners-patient-modal):not(.partners-entity-modal):not(.crm-treatment-modal):not(.crm-conversation-modal) > .modal-dialog.modal-xl > .modal-content > form > .modal-header, #supportTicketModal .modal:not(.patient-lifecycle-modal):not(.partners-patient-modal):not(.partners-entity-modal):not(.crm-treatment-modal):not(.crm-conversation-modal) > .modal-dialog.modal-lg > .modal-content > .modal-footer, #supportTicketModal .modal:not(.patient-lifecycle-modal):not(.partners-patient-modal):not(.partners-entity-modal):not(.crm-treatment-modal):not(.crm-conversation-modal) > .modal-dialog.modal-xl > .modal-content > .modal-footer, #supportTicketModal .modal:not(.patient-lifecycle-modal):not(.partners-patient-modal):not(.partners-entity-modal):not(.crm-treatment-modal):not(.crm-conversation-modal) > .modal-dialog.modal-lg > .modal-content > form > .modal-footer, #supportTicketModal .modal:not(.patient-lifecycle-modal):not(.partners-patient-modal):not(.partners-entity-modal):not(.crm-treatment-modal):not(.crm-conversation-modal) > .modal-dialog.modal-xl > .modal-content > form > .modal-footer{
    flex: 0 0 auto;
}
#supportTicketModal .modal:not(.patient-lifecycle-modal):not(.partners-patient-modal):not(.partners-entity-modal):not(.crm-treatment-modal):not(.crm-conversation-modal) > .modal-dialog.modal-lg > .modal-content > .modal-body, #supportTicketModal .modal:not(.patient-lifecycle-modal):not(.partners-patient-modal):not(.partners-entity-modal):not(.crm-treatment-modal):not(.crm-conversation-modal) > .modal-dialog.modal-xl > .modal-content > .modal-body, #supportTicketModal .modal:not(.patient-lifecycle-modal):not(.partners-patient-modal):not(.partners-entity-modal):not(.crm-treatment-modal):not(.crm-conversation-modal) > .modal-dialog.modal-lg > .modal-content > form > .modal-body, #supportTicketModal .modal:not(.patient-lifecycle-modal):not(.partners-patient-modal):not(.partners-entity-modal):not(.crm-treatment-modal):not(.crm-conversation-modal) > .modal-dialog.modal-xl > .modal-content > form > .modal-body{
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
#supportTicketModal .modal .modal-body, #supportTicketModal .modal .modal-body-custom{
    scrollbar-width: thin !important;
    scrollbar-color: rgba(148, 163, 184, 0.55) rgba(15, 23, 42, 0.2) !important;
    -ms-overflow-style: auto !important;
}
#supportTicketModal .modal .modal-body::-webkit-scrollbar, #supportTicketModal .modal .modal-body-custom::-webkit-scrollbar{
    display: block !important;
    width: 10px !important;
    height: 10px !important;
}
#supportTicketModal .modal .modal-body::-webkit-scrollbar-track, #supportTicketModal .modal .modal-body-custom::-webkit-scrollbar-track{
    background: rgba(15, 23, 42, 0.15) !important;
}
#supportTicketModal .modal .modal-body::-webkit-scrollbar-thumb, #supportTicketModal .modal .modal-body-custom::-webkit-scrollbar-thumb{
    background-color: rgba(148, 163, 184, 0.5) !important;
    border-radius: 999px !important;
    border: 2px solid transparent !important;
    background-clip: padding-box !important;
}
[data-bs-theme="light"] #supportTicketModal .modal .modal-body, [data-bs-theme="light"] #supportTicketModal .modal .modal-body-custom{
    scrollbar-color: rgba(100, 116, 139, 0.65) rgba(226, 232, 240, 0.8) !important;
}
[data-bs-theme="light"] #supportTicketModal .modal .modal-body::-webkit-scrollbar-track, [data-bs-theme="light"] #supportTicketModal .modal .modal-body-custom::-webkit-scrollbar-track{
    background: rgba(226, 232, 240, 0.9) !important;
}
[data-bs-theme="light"] #supportTicketModal .modal .modal-body::-webkit-scrollbar-thumb, [data-bs-theme="light"] #supportTicketModal .modal .modal-body-custom::-webkit-scrollbar-thumb{
    background-color: rgba(100, 116, 139, 0.55) !important;
}
#supportTicketModal .modal-header{
    position: relative;
    flex: 0 0 auto;
    background: transparent;
    color: var(--bs-body-color);
    
    padding: 2.5rem 1.5rem !important;
    min-height: 80px;
    display: flex;
    align-items: center;
    gap: 1rem;
    
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.05), rgba(var(--bs-primary-rgb), 0.02));
}
#supportTicketModal .modal-header h4, #supportTicketModal .modal-header h5, #supportTicketModal .modal-header .modal-title, #supportTicketModal .modal-header .modal-title-container, #supportTicketModal .modal-header > div:first-child{
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}
#supportTicketModal .modal-header h4, #supportTicketModal .modal-header h5{
    font-weight: 600;
    font-size: 1.2rem;
}
#supportTicketModal .modal-title{
    font-weight: 600;
    color: var(--bs-primary);
}
#supportTicketModal .modal-body{
    padding: 1.5rem;
}
#supportTicketModal .modal-footer{
    flex: 0 0 auto;
    padding: 1rem 1.5rem !important;
    min-height: 4.25rem;
    
    background: rgba(var(--bs-secondary-bg), 0.3);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0 0 12px 12px;
}
#supportTicketModal .modal .modal-footer-custom, #supportTicketModal .modal .add-patient-modal-footer, #supportTicketModal .modal .custom-modal-footer{
    flex: 0 0 auto;
}
#supportTicketModal .modal-footer .btn, #supportTicketModal .modal .modal-footer-custom .btn, #supportTicketModal .modal .add-patient-modal-footer .btn, #supportTicketModal .modal .add-patient-modal-footer-actions .btn, #supportTicketModal .modal .footer-buttons-right .btn, #supportTicketModal .crm-send-hospital-modal__footer .btn{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    border-radius: 6px !important;
    min-height: 2.25rem !important;
    height: auto !important;
    min-width: auto !important;
    box-sizing: border-box !important;
}
#supportTicketModal .modal-footer .btn > i, #supportTicketModal .modal-footer .btn > .bi, #supportTicketModal .modal .modal-footer-custom .btn > i, #supportTicketModal .modal .modal-footer-custom .btn > .bi, #supportTicketModal .modal .add-patient-modal-footer .btn > i, #supportTicketModal .modal .add-patient-modal-footer .btn > .bi, #supportTicketModal .modal .footer-buttons-right .btn > i, #supportTicketModal .modal .footer-buttons-right .btn > .bi{
    line-height: 1;
    font-size: 1rem;
}
#supportTicketModal .modal .modal-footer > .btn-light.border, #supportTicketModal .modal .modal-footer > .btn-delete, #supportTicketModal .modal .modal-footer > .btn-modal-cancel, #supportTicketModal .modal .modal-footer > .wa-connect-btn-cancel, #supportTicketModal .modal .modal-footer > .btn-secondary, #supportTicketModal .modal .modal-footer > .btn-danger[data-bs-dismiss="modal"], #supportTicketModal .modal .modal-footer > .btn-outline-danger[data-bs-dismiss="modal"], #supportTicketModal .modal .modal-footer-custom .btn-delete[data-bs-dismiss="modal"], #supportTicketModal .modal .modal-footer-custom .btn-modal-cancel, #supportTicketModal .modal .modal-footer-custom .btn-light.border[data-bs-dismiss="modal"], #supportTicketModal .modal .add-patient-modal-footer .btn-delete[data-bs-dismiss="modal"], #supportTicketModal .modal .add-patient-modal-footer-actions .btn-delete[data-bs-dismiss="modal"], #supportTicketModal .crm-send-hospital-modal__footer > .btn-secondary{
    order: 100 !important;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #f24747 !important;
    font-weight: 500 !important;
    box-shadow: inset 0 0 0 1px #f24747, 0 0 10px rgba(242, 71, 71, 0.25) !important;
}
#supportTicketModal .modal .modal-footer > .btn-light.border:hover, #supportTicketModal .modal .modal-footer > .btn-light.border:focus-visible, #supportTicketModal .modal .modal-footer > .btn-delete:hover, #supportTicketModal .modal .modal-footer > .btn-delete:focus-visible, #supportTicketModal .modal .modal-footer > .btn-modal-cancel:hover, #supportTicketModal .modal .modal-footer > .btn-modal-cancel:focus-visible, #supportTicketModal .modal .modal-footer > .wa-connect-btn-cancel:hover, #supportTicketModal .modal .modal-footer > .wa-connect-btn-cancel:focus-visible, #supportTicketModal .modal .modal-footer > .btn-secondary:hover, #supportTicketModal .modal .modal-footer > .btn-secondary:focus-visible, #supportTicketModal .modal .modal-footer > .btn-danger[data-bs-dismiss="modal"]:hover, #supportTicketModal .modal .modal-footer > .btn-danger[data-bs-dismiss="modal"]:focus-visible, #supportTicketModal .modal .modal-footer > .btn-outline-danger[data-bs-dismiss="modal"]:hover, #supportTicketModal .modal .modal-footer > .btn-outline-danger[data-bs-dismiss="modal"]:focus-visible, #supportTicketModal .modal .modal-footer-custom .btn-delete[data-bs-dismiss="modal"]:hover, #supportTicketModal .modal .modal-footer-custom .btn-delete[data-bs-dismiss="modal"]:focus-visible, #supportTicketModal .modal .modal-footer-custom .btn-modal-cancel:hover, #supportTicketModal .modal .modal-footer-custom .btn-modal-cancel:focus-visible, #supportTicketModal .modal .modal-footer-custom .btn-light.border[data-bs-dismiss="modal"]:hover, #supportTicketModal .modal .modal-footer-custom .btn-light.border[data-bs-dismiss="modal"]:focus-visible, #supportTicketModal .modal .add-patient-modal-footer .btn-delete[data-bs-dismiss="modal"]:hover, #supportTicketModal .modal .add-patient-modal-footer .btn-delete[data-bs-dismiss="modal"]:focus-visible, #supportTicketModal .modal .add-patient-modal-footer-actions .btn-delete[data-bs-dismiss="modal"]:hover, #supportTicketModal .modal .add-patient-modal-footer-actions .btn-delete[data-bs-dismiss="modal"]:focus-visible, #supportTicketModal .crm-send-hospital-modal__footer > .btn-secondary:hover, #supportTicketModal .crm-send-hospital-modal__footer > .btn-secondary:focus-visible{
    color: #fff !important;
    background-color: #db4040 !important;
    border: none !important;
    box-shadow: inset 0 0 0 1px #db4040, 0 0 20px rgba(220, 53, 69, 0.6), 0 0 40px rgba(220, 53, 69, 0.3) !important;
}
[data-bs-theme="light"] #supportTicketModal .modal .modal-footer > .btn-light.border, [data-bs-theme="light"] #supportTicketModal .modal .modal-footer > .btn-delete, [data-bs-theme="light"] #supportTicketModal .modal .modal-footer > .btn-modal-cancel, [data-bs-theme="light"] #supportTicketModal .modal .modal-footer > .wa-connect-btn-cancel, [data-bs-theme="light"] #supportTicketModal .modal .modal-footer > .btn-secondary, [data-bs-theme="light"] #supportTicketModal .modal .modal-footer > .btn-danger[data-bs-dismiss="modal"], [data-bs-theme="light"] #supportTicketModal .modal .modal-footer > .btn-outline-danger[data-bs-dismiss="modal"], [data-bs-theme="light"] #supportTicketModal .modal .modal-footer-custom .btn-delete[data-bs-dismiss="modal"], [data-bs-theme="light"] #supportTicketModal .modal .modal-footer-custom .btn-modal-cancel, [data-bs-theme="light"] #supportTicketModal .modal .modal-footer-custom .btn-light.border[data-bs-dismiss="modal"], [data-bs-theme="light"] #supportTicketModal .modal .add-patient-modal-footer .btn-delete[data-bs-dismiss="modal"], [data-bs-theme="light"] #supportTicketModal .modal .add-patient-modal-footer-actions .btn-delete[data-bs-dismiss="modal"], [data-bs-theme="light"] #supportTicketModal .crm-send-hospital-modal__footer > .btn-secondary{
    color: #dc3545 !important;
    box-shadow: inset 0 0 0 1px #dc3545, 0 0 10px rgba(220, 53, 69, 0.15) !important;
}
[data-bs-theme="light"] #supportTicketModal .modal .modal-footer > .btn-light.border:hover, [data-bs-theme="light"] #supportTicketModal .modal .modal-footer > .btn-light.border:focus-visible, [data-bs-theme="light"] #supportTicketModal .modal .modal-footer > .btn-delete:hover, [data-bs-theme="light"] #supportTicketModal .modal .modal-footer > .btn-delete:focus-visible, [data-bs-theme="light"] #supportTicketModal .modal .modal-footer > .btn-modal-cancel:hover, [data-bs-theme="light"] #supportTicketModal .modal .modal-footer > .btn-modal-cancel:focus-visible, [data-bs-theme="light"] #supportTicketModal .modal .modal-footer > .wa-connect-btn-cancel:hover, [data-bs-theme="light"] #supportTicketModal .modal .modal-footer > .wa-connect-btn-cancel:focus-visible, [data-bs-theme="light"] #supportTicketModal .modal .modal-footer > .btn-secondary:hover, [data-bs-theme="light"] #supportTicketModal .modal .modal-footer > .btn-secondary:focus-visible, [data-bs-theme="light"] #supportTicketModal .modal .modal-footer > .btn-danger[data-bs-dismiss="modal"]:hover, [data-bs-theme="light"] #supportTicketModal .modal .modal-footer > .btn-danger[data-bs-dismiss="modal"]:focus-visible, [data-bs-theme="light"] #supportTicketModal .modal .modal-footer > .btn-outline-danger[data-bs-dismiss="modal"]:hover, [data-bs-theme="light"] #supportTicketModal .modal .modal-footer > .btn-outline-danger[data-bs-dismiss="modal"]:focus-visible, [data-bs-theme="light"] #supportTicketModal .modal .modal-footer-custom .btn-delete[data-bs-dismiss="modal"]:hover, [data-bs-theme="light"] #supportTicketModal .modal .modal-footer-custom .btn-delete[data-bs-dismiss="modal"]:focus-visible, [data-bs-theme="light"] #supportTicketModal .modal .add-patient-modal-footer .btn-delete[data-bs-dismiss="modal"]:hover, [data-bs-theme="light"] #supportTicketModal .modal .add-patient-modal-footer-actions .btn-delete[data-bs-dismiss="modal"]:hover, [data-bs-theme="light"] #supportTicketModal .crm-send-hospital-modal__footer > .btn-secondary:hover, [data-bs-theme="light"] #supportTicketModal .crm-send-hospital-modal__footer > .btn-secondary:focus-visible{
    color: #fff !important;
    background-color: #dc3545 !important;
    box-shadow: inset 0 0 0 1px #dc3545, 0 0 20px rgba(220, 53, 69, 0.6), 0 0 40px rgba(220, 53, 69, 0.3) !important;
}
#supportTicketModal .crm-send-hospital-modal__footer{
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 0.5rem !important;
}
#supportTicketModal .modal .close{
    position: static;
    font-size: 1.5rem;
    color: rgba(255, 71, 87, 0.8);
    cursor: pointer;
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex: 0 0 auto;
    margin-left: auto;
}
#supportTicketModal .modal .close:hover{
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}
#supportTicketModal .modal-header .btn-close, #supportTicketModal .view-patient-container > .modal-header .btn-close, #supportTicketModal .crm-treatment-modal .modal-header .btn-close, #supportTicketModal .crm-conversation-modal .modal-header .btn-close{
    position: static !important;
    top: auto !important;
    right: auto !important;
    flex: 0 0 auto;
    align-self: center;
    margin-left: auto;
    width: 32px;
    height: 32px;
    padding: 0;
    opacity: 0.75;
    border: 0;
    border-radius: 4px;
    background: transparent var(--bs-btn-close-bg) center/1em auto no-repeat !important;
    box-shadow: none;
    transition: opacity 0.15s ease-in-out;
}
#supportTicketModal .modal-header .btn-close:hover, #supportTicketModal .view-patient-container > .modal-header .btn-close:hover, #supportTicketModal .crm-treatment-modal .modal-header .btn-close:hover, #supportTicketModal .crm-conversation-modal .modal-header .btn-close:hover{
    opacity: 1;
    background: transparent var(--bs-btn-close-bg) center/1em auto no-repeat !important;
    box-shadow: none;
}
#supportTicketModal .modal-header .btn-close:focus, #supportTicketModal .modal-header .btn-close:focus-visible, #supportTicketModal .modal-header .btn-close:active, #supportTicketModal .view-patient-container > .modal-header .btn-close:focus, #supportTicketModal .view-patient-container > .modal-header .btn-close:focus-visible, #supportTicketModal .view-patient-container > .modal-header .btn-close:active, #supportTicketModal .crm-treatment-modal .modal-header .btn-close:focus, #supportTicketModal .crm-treatment-modal .modal-header .btn-close:focus-visible, #supportTicketModal .crm-treatment-modal .modal-header .btn-close:active, #supportTicketModal .crm-conversation-modal .modal-header .btn-close:focus, #supportTicketModal .crm-conversation-modal .modal-header .btn-close:focus-visible, #supportTicketModal .crm-conversation-modal .modal-header .btn-close:active, #supportTicketModal .modal .btn-close:focus, #supportTicketModal .modal .btn-close:focus-visible, #supportTicketModal .modal .btn-close:active{
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    opacity: 1;
    background: transparent var(--bs-btn-close-bg) center/1em auto no-repeat !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal-header .btn-close, [data-bs-theme="dark"] #supportTicketModal .view-patient-container > .modal-header .btn-close, [data-bs-theme="dark"] #supportTicketModal .crm-treatment-modal .modal-header .btn-close, [data-bs-theme="dark"] #supportTicketModal .crm-conversation-modal .modal-header .btn-close, [data-bs-theme="dark"] #supportTicketModal .modal .btn-close{
    filter: invert(1) grayscale(100%) brightness(200%);
}
[data-bs-theme="light"] #supportTicketModal .modal-header .btn-close, [data-bs-theme="light"] #supportTicketModal .view-patient-container > .modal-header .btn-close, [data-bs-theme="light"] #supportTicketModal .crm-treatment-modal .modal-header .btn-close, [data-bs-theme="light"] #supportTicketModal .crm-conversation-modal .modal-header .btn-close{
    filter: none;
    opacity: 0.75;
}
#supportTicketModal .modal .form-control{
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.65rem 0.9rem;
    transition: border-color 0.2s ease;
}
#supportTicketModal .modal .form-control:focus{
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
}
#supportTicketModal .modal .form-label{
    font-weight: 600;
    color: var(--bs-gray-700);
    margin-bottom: 0.4rem;
}
[data-bs-theme="dark"] #supportTicketModal .modal-content{
    background: #08151d !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
[data-bs-theme="dark"] #supportTicketModal .modal .accordion, [data-bs-theme="dark"] #supportTicketModal .modal .accordion-item{
    background: #08151d !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal .accordion-header{
    background: #08151d !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal .accordion-button{
    background: #08151d !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal-header{
    background: #08151d !important;
    color: #ffffff !important;
    
}
[data-bs-theme="dark"] #supportTicketModal .modal .form-control{
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--bs-body-color);
}
[data-bs-theme="dark"] #supportTicketModal .modal .form-control:focus{
    background: rgba(255, 255, 255, 0.08);
    border-color: #0d6efd;
}
[data-bs-theme="light"] #supportTicketModal .modal-header, [data-bs-theme="light"] #supportTicketModal .modal-title, [data-bs-theme="light"] #supportTicketModal .modal-header .modal-title{
    color: #212529 !important;
}
[data-bs-theme="light"] #supportTicketModal .modal-header.bg-primary, [data-bs-theme="light"] #supportTicketModal .modal-header.bg-info, [data-bs-theme="light"] #supportTicketModal .modal-header.bg-success, [data-bs-theme="light"] #supportTicketModal .modal-header.bg-danger{
    color: #fff !important;
}
[data-bs-theme="light"] #supportTicketModal .modal-header.bg-primary .modal-title, [data-bs-theme="light"] #supportTicketModal .modal-header.bg-info .modal-title, [data-bs-theme="light"] #supportTicketModal .modal-header.bg-success .modal-title, [data-bs-theme="light"] #supportTicketModal .modal-header.bg-danger .modal-title{
    color: #fff !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal-content{
    background: #08151d !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
[data-bs-theme="dark"] #supportTicketModal .modal-header{
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
[data-bs-theme="dark"] #supportTicketModal .modal-title{
    color: #ffffff !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal-body{
    color: #ffffff !important;
    background: #08151d !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal-footer{
    background: #08151d !important;
    
    color: #ffffff !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal .form-label{
    color: #ffffff !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal .form-control, [data-bs-theme="dark"] #supportTicketModal .modal .form-select, [data-bs-theme="dark"] #supportTicketModal .modal textarea.form-control{
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal .form-control:focus, [data-bs-theme="dark"] #supportTicketModal .modal .form-select:focus, [data-bs-theme="dark"] #supportTicketModal .modal textarea.form-control:focus{
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal .form-control::placeholder, [data-bs-theme="dark"] #supportTicketModal .modal textarea.form-control::placeholder{
    color: #a19e88 !important;
    -webkit-text-fill-color: #a19e88 !important;
    opacity: 1 !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal .alert{
    color: #ffffff !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal .alert-danger{
    background-color: rgba(220, 53, 69, 0.2) !important;
    border-color: rgba(220, 53, 69, 0.4) !important;
    color: #ffffff !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal .alert-success{
    background-color: rgba(25, 135, 84, 0.2) !important;
    border-color: rgba(25, 135, 84, 0.4) !important;
    color: #ffffff !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal .alert-warning{
    background-color: rgba(255, 193, 7, 0.2) !important;
    border-color: rgba(255, 193, 7, 0.4) !important;
    color: #ffffff !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal .alert-info{
    background-color: rgba(13, 202, 240, 0.2) !important;
    border-color: rgba(13, 202, 240, 0.4) !important;
    color: #ffffff !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal .btn-close{
    filter: invert(1) grayscale(100%) brightness(200%);
}
[data-bs-theme="dark"] #supportTicketModal .modal h1, [data-bs-theme="dark"] #supportTicketModal .modal h2, [data-bs-theme="dark"] #supportTicketModal .modal h3, [data-bs-theme="dark"] #supportTicketModal .modal h4, [data-bs-theme="dark"] #supportTicketModal .modal h5, [data-bs-theme="dark"] #supportTicketModal .modal h6, [data-bs-theme="dark"] #supportTicketModal .modal p, [data-bs-theme="dark"] #supportTicketModal .modal span, [data-bs-theme="dark"] #supportTicketModal .modal div, [data-bs-theme="dark"] #supportTicketModal .modal li, [data-bs-theme="dark"] #supportTicketModal .modal td, [data-bs-theme="dark"] #supportTicketModal .modal th{
    color: #ffffff !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal .text-muted{
    color: #ffffff !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal .text-primary{
    color: #6ea8fe !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal .text-secondary{
    color: #6c757d !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal .select2-container--default .select2-selection--single{
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal .select2-selection__rendered{
    color: #ffffff !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal .select2-dropdown{
    background-color: var(--bs-dark) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal .select2-results__option{
    background-color: var(--bs-dark) !important;
    color: #ffffff !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal .select2-results__option--highlighted{
    background-color: rgba(13, 110, 253, 0.2) !important;
    color: #ffffff !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal .select2-search--dropdown .select2-search__field{
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal .select2-search--dropdown .select2-search__field::placeholder{
    color: rgba(255, 255, 255, 0.55) !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal .edit-td-hospital-select + .select2-container--bootstrap-5 .select2-selection, [data-bs-theme="dark"] #supportTicketModal .modal .edit-td-branch-select + .select2-container--bootstrap-5 .select2-selection, [data-bs-theme="dark"] #supportTicketModal .modal .edit-td-department-select + .select2-container--bootstrap-5 .select2-selection, [data-bs-theme="dark"] #supportTicketModal .modal .edit-td-doctor-select + .select2-container--bootstrap-5 .select2-selection, [data-bs-theme="dark"] #supportTicketModal .modal .edit-td-expense-select + .select2-container--bootstrap-5 .select2-selection, [data-bs-theme="dark"] #supportTicketModal .modal .edit-td-travelmode-select + .select2-container--bootstrap-5 .select2-selection, [data-bs-theme="dark"] #supportTicketModal .modal .edit-td-return-travelmode-select + .select2-container--bootstrap-5 .select2-selection, [data-bs-theme="dark"] #supportTicketModal .modal .edit-td-departure-loc-airport + .select2-container--bootstrap-5 .select2-selection, [data-bs-theme="dark"] #supportTicketModal .modal .edit-td-arrival-loc-airport + .select2-container--bootstrap-5 .select2-selection, [data-bs-theme="dark"] #supportTicketModal .modal .edit-td-return-departure-loc-airport + .select2-container--bootstrap-5 .select2-selection, [data-bs-theme="dark"] #supportTicketModal .modal .edit-td-return-arrival-loc-airport + .select2-container--bootstrap-5 .select2-selection{
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0.375rem !important;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    color: #ffffff !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal .select2-container--bootstrap-5 .select2-selection__placeholder{
    color: rgba(255, 255, 255, 0.45) !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal .select2-container--bootstrap-5 .select2-selection__rendered{
    color: #ffffff !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal .select2-container--bootstrap-5 .select2-selection__arrow{position: absolute; top:0; right:0.75rem; width:1.2rem; height:100%; pointer-events:none;}
[data-bs-theme="dark"] #supportTicketModal .modal .select2-container--bootstrap-5 .select2-selection__arrow b{display:none;}
[data-bs-theme="dark"] #supportTicketModal .modal .select2-container--bootstrap-5 .select2-selection__arrow:after{content:""; position:absolute; top:50%; left:50%; transform:translate(-50%,-45%); border-left:0.4rem solid transparent; border-right:0.4rem solid transparent; border-top:0.48rem solid #ffffff;}
[data-bs-theme="dark"] #supportTicketModal .modal .select2-container--bootstrap-5 .select2-dropdown, [data-bs-theme="dark"] #supportTicketModal .modal .select2-container--bootstrap-5 .select2-search--dropdown, [data-bs-theme="dark"] #supportTicketModal .modal .select2-container--bootstrap-5 .select2-results, [data-bs-theme="dark"] #supportTicketModal .modal .select2-container--bootstrap-5 .select2-results__options{
    background:#1a2733 !important;
    border:1px solid rgba(255,255,255,0.2) !important;
    color:#f0f4f8 !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal .select2-container--bootstrap-5 .select2-search__field{
    background:rgba(255,255,255,0.12) !important;
    border:1px solid rgba(255,255,255,0.25) !important;
    color:#ffffff !important;
}
[data-bs-theme="dark"] #supportTicketModal .modal .select2-container--bootstrap-5 .select2-results__option{padding:0.4rem 0.75rem;}
[data-bs-theme="dark"] #supportTicketModal .modal .select2-container--bootstrap-5 .select2-results__option--highlighted, [data-bs-theme="dark"] #supportTicketModal .modal .select2-container--bootstrap-5 .select2-results__option--selected{background:#1e90ff !important; color:#fff !important;}
#supportTicketModal .modal.show{
    z-index: 20000 !important;
    pointer-events: auto !important;
}
#supportTicketModal .card, #supportTicketModal .table, #supportTicketModal .actions-col{
    filter: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: none !important;
}
#supportTicketModal .btn{
    pointer-events: auto !important;
}
#supportTicketModal #hospital-suggestions.autocomplete-suggestions, #supportTicketModal #hospital-country-suggestions.autocomplete-suggestions, #supportTicketModal #country-suggestions.autocomplete-suggestions, #supportTicketModal #country-suggestions-edit.autocomplete-suggestions, #supportTicketModal #country-suggestions-reg.autocomplete-suggestions, #supportTicketModal #country-suggestions-branch.autocomplete-suggestions, #supportTicketModal #country-suggestions-branch-edit.autocomplete-suggestions, #supportTicketModal #country-suggestions-fac-create.autocomplete-suggestions, #supportTicketModal #country-suggestions-fac-edit.autocomplete-suggestions, #supportTicketModal #country-suggestions-agency.autocomplete-suggestions{
  position: absolute;
  z-index: 1000000;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.375rem;
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: var(--bs-body-color);
}
#supportTicketModal #hospital-suggestions .suggestion, #supportTicketModal #hospital-country-suggestions .suggestion, #supportTicketModal #country-suggestions .suggestion, #supportTicketModal #country-suggestions-edit .suggestion, #supportTicketModal #country-suggestions-reg .suggestion, #supportTicketModal #country-suggestions-branch .suggestion, #supportTicketModal #country-suggestions-branch-edit .suggestion, #supportTicketModal #country-suggestions-fac-create .suggestion, #supportTicketModal #country-suggestions-fac-edit .suggestion, #supportTicketModal #country-suggestions-agency .suggestion{
  padding: 10px 12px;
  cursor: pointer;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  border: none;
  border-bottom: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}
#supportTicketModal #hospital-suggestions .country-flag, #supportTicketModal #hospital-country-suggestions .country-flag, #supportTicketModal #country-suggestions .country-flag, #supportTicketModal #country-suggestions-edit .country-flag, #supportTicketModal #country-suggestions-reg .country-flag, #supportTicketModal #country-suggestions-branch .country-flag, #supportTicketModal #country-suggestions-branch-edit .country-flag, #supportTicketModal #country-suggestions-fac-create .country-flag, #supportTicketModal #country-suggestions-fac-edit .country-flag, #supportTicketModal #country-suggestions-agency .country-flag{
    width: 16px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
    flex: 0 0 auto;
}
#supportTicketModal #hospital-suggestions .suggestion:last-child, #supportTicketModal #hospital-country-suggestions .suggestion:last-child, #supportTicketModal #country-suggestions .suggestion:last-child, #supportTicketModal #country-suggestions-edit .suggestion:last-child, #supportTicketModal #country-suggestions-reg .suggestion:last-child, #supportTicketModal #country-suggestions-branch .suggestion:last-child, #supportTicketModal #country-suggestions-branch-edit .suggestion:last-child, #supportTicketModal #country-suggestions-fac-create .suggestion:last-child, #supportTicketModal #country-suggestions-fac-edit .suggestion:last-child, #supportTicketModal #country-suggestions-agency .suggestion:last-child{
  border-bottom: none;
}
#supportTicketModal #hospital-suggestions .suggestion:hover, #supportTicketModal #hospital-suggestions .suggestion.active, #supportTicketModal #hospital-country-suggestions .suggestion:hover, #supportTicketModal #hospital-country-suggestions .suggestion.active, #supportTicketModal #country-suggestions .suggestion:hover, #supportTicketModal #country-suggestions .suggestion.active, #supportTicketModal #country-suggestions-edit .suggestion:hover, #supportTicketModal #country-suggestions-edit .suggestion.active, #supportTicketModal #country-suggestions-reg .suggestion:hover, #supportTicketModal #country-suggestions-reg .suggestion.active, #supportTicketModal #country-suggestions-branch .suggestion:hover, #supportTicketModal #country-suggestions-branch .suggestion.active, #supportTicketModal #country-suggestions-branch-edit .suggestion:hover, #supportTicketModal #country-suggestions-branch-edit .suggestion.active, #supportTicketModal #country-suggestions-fac-create .suggestion:hover, #supportTicketModal #country-suggestions-fac-create .suggestion.active, #supportTicketModal #country-suggestions-fac-edit .suggestion:hover, #supportTicketModal #country-suggestions-fac-edit .suggestion.active, #supportTicketModal #country-suggestions-agency .suggestion:hover, #supportTicketModal #country-suggestions-agency .suggestion.active{
  background: var(--bs-primary);
  color: white;
}
[data-bs-theme="dark"] #supportTicketModal #hospital-suggestions.autocomplete-suggestions, [data-bs-theme="dark"] #supportTicketModal #hospital-country-suggestions.autocomplete-suggestions, [data-bs-theme="dark"] #supportTicketModal #country-suggestions.autocomplete-suggestions, [data-bs-theme="dark"] #supportTicketModal #country-suggestions-edit.autocomplete-suggestions, [data-bs-theme="dark"] #supportTicketModal #country-suggestions-reg.autocomplete-suggestions, [data-bs-theme="dark"] #supportTicketModal #country-suggestions-branch.autocomplete-suggestions, [data-bs-theme="dark"] #supportTicketModal #country-suggestions-branch-edit.autocomplete-suggestions, [data-bs-theme="dark"] #supportTicketModal #country-suggestions-fac-create.autocomplete-suggestions, [data-bs-theme="dark"] #supportTicketModal #country-suggestions-fac-edit.autocomplete-suggestions, [data-bs-theme="dark"] #supportTicketModal #country-suggestions-agency.autocomplete-suggestions{
  background: #1a1d29 !important;
  border-color: #444c56 !important;
  color: #f1f3f4 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
[data-bs-theme="dark"] #supportTicketModal #hospital-suggestions .suggestion, [data-bs-theme="dark"] #supportTicketModal #hospital-country-suggestions .suggestion, [data-bs-theme="dark"] #supportTicketModal #country-suggestions .suggestion, [data-bs-theme="dark"] #supportTicketModal #country-suggestions-edit .suggestion, [data-bs-theme="dark"] #supportTicketModal #country-suggestions-reg .suggestion, [data-bs-theme="dark"] #supportTicketModal #country-suggestions-branch .suggestion, [data-bs-theme="dark"] #supportTicketModal #country-suggestions-branch-edit .suggestion, [data-bs-theme="dark"] #supportTicketModal #country-suggestions-fac-create .suggestion, [data-bs-theme="dark"] #supportTicketModal #country-suggestions-fac-edit .suggestion, [data-bs-theme="dark"] #supportTicketModal #country-suggestions-agency .suggestion{
  background: #1a1d29 !important;
  color: #f1f3f4 !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}
[data-bs-theme="dark"] #supportTicketModal #hospital-suggestions .suggestion:hover, [data-bs-theme="dark"] #supportTicketModal #hospital-suggestions .suggestion.active, [data-bs-theme="dark"] #supportTicketModal #hospital-country-suggestions .suggestion:hover, [data-bs-theme="dark"] #supportTicketModal #hospital-country-suggestions .suggestion.active, [data-bs-theme="dark"] #supportTicketModal #country-suggestions .suggestion:hover, [data-bs-theme="dark"] #supportTicketModal #country-suggestions .suggestion.active{
  background: #0d6efd !important;
  color: #ffffff !important;
}
#supportTicketModal .modal .entity-modal-sections{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
#supportTicketModal .modal .collapsible-section{
    margin-bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
[data-bs-theme="light"] #supportTicketModal .modal .collapsible-section{
    border-color: rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
}
#supportTicketModal .modal .collapsible-section > .section-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    background: #08151d;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    box-shadow: none;
    transition: background 0.2s ease, border-color 0.2s ease;
    outline: none;
    user-select: none;
}
[data-bs-theme="light"] #supportTicketModal .modal .collapsible-section > .section-header{
    background: #fbfbfb;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
#supportTicketModal .modal .collapsible-section > .section-header:focus{
    outline: none;
    box-shadow: none;
}
#supportTicketModal .modal .collapsible-section > .section-header:focus-visible{
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(0, 186, 255, 0.28);
}
#supportTicketModal .modal .collapsible-section .section-title{
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}
[data-bs-theme="light"] #supportTicketModal .modal .collapsible-section .section-title{
    color: #1e293b;
}
#supportTicketModal .modal .collapsible-section .toggle-icon{
    color: #00baff !important;
    transition: transform 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.8;
    display: inline-block;
    min-width: 20px;
    text-align: center;
}
[data-bs-theme="light"] #supportTicketModal .modal .collapsible-section .toggle-icon{
    color: #0d6efd !important;
    opacity: 0.7;
}
#supportTicketModal .modal .collapsible-section > .section-header:hover .toggle-icon{
    opacity: 1;
}
#supportTicketModal .modal .collapsible-section > .section-content{
    display: block !important;
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    opacity: 0;
    box-sizing: border-box;
    background: #08151d;
    transition: max-height 0.26s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.22s ease,
                padding 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-bs-theme="light"] #supportTicketModal .modal .collapsible-section > .section-content{
    background: #fff;
}
#supportTicketModal .modal .collapsible-section.active{
    border-color: rgba(0, 186, 255, 0.62);
    box-shadow: 0 0 14px rgba(0, 186, 255, 0.12), inset 0 0 0 1px rgba(0, 186, 255, 0.2);
}
[data-bs-theme="light"] #supportTicketModal .modal .collapsible-section.active{
    border-color: rgba(13, 110, 253, 0.42);
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.08), inset 0 0 0 1px rgba(13, 110, 253, 0.1);
}
#supportTicketModal .modal .collapsible-section.active > .section-header{
    background: rgba(0, 100, 180, 0.32);
    border-bottom-color: rgba(0, 186, 255, 0.35);
}
[data-bs-theme="light"] #supportTicketModal .modal .collapsible-section.active > .section-header{
    background: #f8fafc;
    border-bottom-color: rgba(13, 110, 253, 0.2);
}
#supportTicketModal .modal .collapsible-section.active > .section-header .section-title{
    color: #7dd3fc;
}
[data-bs-theme="light"] #supportTicketModal .modal .collapsible-section.active > .section-header .section-title{
    color: #0d6efd;
}
#supportTicketModal .modal .collapsible-section.active > .section-content{
    max-height: 5000px;
    opacity: 1;
    padding: 0.75rem 1.25rem 1.25rem;
}
#supportTicketModal .modal .collapsible-section.active > .section-header > .toggle-icon{
    transform: rotate(180deg);
}

/* === from entity-modals.css === */

#supportTicketModal #facilitatorModalContainer .partners-entity-modal.modal.show, #supportTicketModal #facilitatorModalContainer .partners-entity-modal.modal.is-closing, #supportTicketModal #agentModalContainer .partners-entity-modal.modal.show, #supportTicketModal #agentModalContainer .partners-entity-modal.modal.is-closing, #supportTicketModal #agencyManagerModalContainer .partners-entity-modal.modal.show, #supportTicketModal #agencyManagerModalContainer .partners-entity-modal.modal.is-closing, #supportTicketModal #userModalContainer .partners-entity-modal.modal.show, #supportTicketModal #userModalContainer .partners-entity-modal.modal.is-closing, #supportTicketModal .partners-entity-modal.modal.show, #supportTicketModal .partners-entity-modal.modal.is-closing{
    display: flex !important;
    align-items: stretch !important;
    justify-content: center !important;
    padding: 0 !important;
    pointer-events: auto !important;
    overflow: hidden !important;
    background: transparent !important;
    backdrop-filter: none !important;
}
#supportTicketModal #facilitatorModalContainer .partners-entity-modal .modal-dialog, #supportTicketModal #facilitatorModalContainer .partners-entity-modal.modal.show .modal-dialog, #supportTicketModal #agentModalContainer .partners-entity-modal .modal-dialog, #supportTicketModal #agencyManagerModalContainer .partners-entity-modal .modal-dialog, #supportTicketModal #userModalContainer .partners-entity-modal .modal-dialog, #supportTicketModal .partners-entity-modal .modal-dialog, #supportTicketModal .partners-entity-modal.modal.show .modal-dialog, #supportTicketModal .partners-entity-modal.modal.is-closing .modal-dialog{
    width: min(95vw, var(--entity-modal-max-width)) !important;
    max-width: var(--entity-modal-max-width) !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    min-height: 0 !important;
    overflow: hidden !important;
    pointer-events: auto !important;
}
#supportTicketModal .partners-entity-modal .modal-dialog.modal-dialog-centered{
    min-height: 0 !important;
    align-items: stretch !important;
}
#supportTicketModal .partners-entity-modal .modal-dialog.modal-dialog-centered::before{
    display: none !important;
    content: none !important;
}
#supportTicketModal .partners-entity-modal .modal-content, [data-bs-theme="dark"] #supportTicketModal .partners-entity-modal .modal-content{
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    background: #08151d !important;
    color: #ffffff !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .modal-content{
    background: #f0f0f0 !important;
    color: #1f2937 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
#supportTicketModal .partners-entity-modal form.entity-modal-shell, #supportTicketModal .partners-entity-modal .entity-modal-shell{
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    background: transparent !important;
}
#supportTicketModal .partners-entity-modal .modal-header, [data-bs-theme="dark"] #supportTicketModal .partners-entity-modal .modal-header{
    flex: 0 0 auto !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 12 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    min-height: auto;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid #2a3f5f !important;
    border-radius: 10px 10px 0 0;
    background: #08151d !important;
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .modal-header{
    background: #f0f0f0 !important;
    border-bottom-color: rgba(15, 23, 42, 0.1) !important;
}
#supportTicketModal .partners-entity-modal .modal-title-container{
    min-width: 0;
    flex: 1 1 auto;
}
#supportTicketModal .partners-entity-modal .modal-title{
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0;
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .modal-title{
    color: #000000c7;
}
#supportTicketModal .partners-entity-modal .entity-modal-subtitle{
    margin-top: 0.15rem;
    margin-bottom: 0;
    color: rgba(203, 213, 225, 0.78) !important;
    font-size: 0.8rem;
    line-height: 1.3;
    font-weight: 400;
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .entity-modal-subtitle{
    color: #64748b !important;
}
#supportTicketModal .partners-entity-modal .modal-header .btn-close{
    position: static !important;
    flex: 0 0 auto;
    align-self: center;
    margin-left: auto;
    width: 28px;
    height: 28px;
    padding: 0;
    opacity: 0.75;
    background: transparent var(--bs-btn-close-bg) center / 1em auto no-repeat !important;
    border: 0;
    box-shadow: none;
}
#supportTicketModal .partners-entity-modal .modal-body-custom, [data-bs-theme="dark"] #supportTicketModal .partners-entity-modal .modal-body-custom{
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 1.25rem 1.5rem 1.5rem;
    background: #08151d !important;
    scrollbar-width: thin;
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .modal-body-custom{
    background: #f0f0f0 !important;
}
#supportTicketModal .partners-entity-modal .modal-footer-custom, [data-bs-theme="dark"] #supportTicketModal .partners-entity-modal .modal-footer-custom{
    flex: 0 0 auto !important;
    position: sticky !important;
    bottom: 0 !important;
    z-index: 12 !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(42, 63, 95, 0.75) !important;
    border-radius: 0 0 10px 10px;
    background: #08151d !important;
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .modal-footer-custom{
    background: #f0f0f0 !important;
    border-top-color: rgba(15, 23, 42, 0.1) !important;
}
#supportTicketModal .partners-entity-modal .modal-footer-custom .btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.25rem;
    padding: 0.375rem 0.9rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 6px;
}
#supportTicketModal .partners-entity-modal .modal-footer-custom .btn.btn-loading{
    cursor: wait;
    opacity: 0.8;
    pointer-events: none;
}
#supportTicketModal .partners-entity-modal .form-control.is-invalid, #supportTicketModal .partners-entity-modal .form-select.is-invalid{
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.18) !important;
}
#supportTicketModal .partners-entity-modal [data-entity-upload-card]:has(.entity-file-input.is-invalid) .crm-treatment-doc-card{
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.18) !important;
}
#supportTicketModal .partners-entity-modal .modal-footer-custom .btn-entity-save{
    border: none !important;
    background: linear-gradient(145deg, #00baff, #0077cc) !important;
    color: #fff !important;
    font-weight: 500;
    box-shadow: 0 0 10px rgba(0, 186, 255, 0.4);
}
#supportTicketModal .partners-entity-modal .modal-footer-custom .btn-entity-save:hover{
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(0, 186, 255, 0.55);
    color: #fff !important;
}
#supportTicketModal .partners-entity-modal .modal-footer-custom .btn-delete[data-bs-dismiss="modal"]{
    border: none !important;
    background: transparent !important;
    color: #f24747 !important;
    font-weight: 500;
    box-shadow: inset 0 0 0 1px #f24747, 0 0 10px rgba(242, 71, 71, 0.25);
}
#supportTicketModal .partners-entity-modal .modal-footer-custom .btn-delete[data-bs-dismiss="modal"]:hover{
    background: #db4040 !important;
    color: #fff !important;
}
#supportTicketModal .partners-entity-modal .entity-block{
    margin-bottom: 1.35rem;
}
#supportTicketModal .partners-entity-modal .entity-block:last-child{
    margin-bottom: 0;
}
#supportTicketModal .partners-entity-modal .entity-section-heading{
    margin: 0 0 0.85rem;
}
#supportTicketModal .partners-entity-modal .entity-section-heading .section-title, #supportTicketModal .partners-entity-modal .entity-section-heading.section-title, #supportTicketModal .partners-entity-modal .entity-section-label.section-title{
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: none;
    letter-spacing: 0;
}
#supportTicketModal .partners-entity-modal .entity-section-heading .section-title > i, #supportTicketModal .partners-entity-modal .entity-section-heading.section-title > i, #supportTicketModal .partners-entity-modal .entity-section-label.section-title > i{
    color: #00baff;
    font-size: 1.05rem;
    line-height: 1;
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .entity-section-heading .section-title, [data-bs-theme="light"] #supportTicketModal .partners-entity-modal .entity-section-heading.section-title, [data-bs-theme="light"] #supportTicketModal .partners-entity-modal .entity-section-label.section-title{
    color: #000000b9;
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .entity-section-heading .section-title > i, [data-bs-theme="light"] #supportTicketModal .partners-entity-modal .entity-section-heading.section-title > i, [data-bs-theme="light"] #supportTicketModal .partners-entity-modal .entity-section-label.section-title > i{
    color: #0d6efd;
}
#supportTicketModal .partners-entity-modal .entity-section-label:not(.section-title){
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: none;
    letter-spacing: 0;
}
#supportTicketModal .partners-entity-modal .entity-field-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
#supportTicketModal .partners-entity-view-modal .entity-field-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
#supportTicketModal .partners-entity-view-modal .entity-field-grid > .entity-view-tile:last-child:nth-child(odd){
    grid-column: 1 / -1;
}
#supportTicketModal .partners-entity-view-modal .entity-field-grid--overview{
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    align-items: stretch;
}
#supportTicketModal .partners-entity-view-modal .entity-field-grid--overview > .entity-view-tile--logo-span, #supportTicketModal .partners-entity-view-modal .entity-field-grid--overview > .entity-overview-logo-card{
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    min-height: 100%;
    min-width: 0;
}
#supportTicketModal .partners-entity-view-modal .entity-overview-logo-card{
    display: flex;
    flex-direction: column;
}
#supportTicketModal .partners-entity-view-modal .entity-overview-logo-card > .crm-doc-card-ui{
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: 100%;
}
#supportTicketModal .partners-entity-view-modal .entity-overview-logo-card .crm-treatment-doc-card{
    flex: 1 1 auto;
    min-height: 100%;
    height: 100%;
}
#supportTicketModal .partners-entity-view-modal .entity-field-grid--overview > .entity-view-tile:last-child:nth-child(odd){
    grid-column: auto;
}
#supportTicketModal .partners-entity-modal .entity-field-grid > .entity-field--full, #supportTicketModal .partners-entity-modal .entity-field-grid > .entity-view-tile.entity-field--full{
    grid-column: 1 / -1;
}
#supportTicketModal .partners-entity-modal .entity-field{
    display: flex;
    flex-direction: column;
    min-width: 0;
}
#supportTicketModal .partners-entity-modal .entity-view-tile{
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    padding: 0.7rem 0.85rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 186, 255, 0.08) 0%, rgba(15, 23, 42, 0.55) 70%);
    border: 1px solid rgba(0, 186, 255, 0.28);
}
#supportTicketModal .partners-entity-modal .entity-view-tile:has(.entity-view-tile__icon){
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0.95rem;
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .entity-view-tile{
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.06) 0%, #f8fafc 85%);
    border-color: rgba(13, 110, 253, 0.22);
}
#supportTicketModal .partners-entity-modal .entity-view-tile__icon{
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(0, 186, 255, 0.2);
    border: 1px solid rgba(0, 186, 255, 0.35);
    color: #7dd3fc;
    font-size: 1.05rem;
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .entity-view-tile__icon{
    background: rgba(13, 110, 253, 0.1);
    border-color: rgba(13, 110, 253, 0.25);
    color: #0284c7;
}
#supportTicketModal .partners-entity-modal .entity-view-tile__body{
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
#supportTicketModal .partners-entity-modal .entity-view-tile > label, #supportTicketModal .partners-entity-modal .entity-view-tile .entity-view-label, #supportTicketModal .partners-entity-modal .entity-view-tile__label{
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.2rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
    color: rgba(148, 163, 184, 0.95);
}
#supportTicketModal .partners-entity-modal .entity-view-tile__label{
    display: block;
    margin: 0;
}
#supportTicketModal .partners-entity-modal .entity-view-tile:has(.entity-view-tile__icon) > label > i{
    display: none;
}
#supportTicketModal .partners-entity-modal .entity-view-tile > label > i{
    color: #00baff;
    font-size: 0.85rem;
}
#supportTicketModal .partners-entity-modal .entity-view-value{
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    color: #f1f5f9;
    word-break: break-word;
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .entity-view-tile > label, [data-bs-theme="light"] #supportTicketModal .partners-entity-modal .entity-view-tile__label{
    color: #64748b;
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .entity-view-value{
    color: #1e293b;
}
#supportTicketModal .partners-entity-modal .entity-view-logo{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
#supportTicketModal .partners-entity-modal .entity-view-logo--compact{
    min-height: 0;
    padding: 0;
    background: transparent;
}
#supportTicketModal .partners-entity-modal .entity-view-logo img, #supportTicketModal .partners-entity-modal .entity-view-logo--compact img{
    max-width: 140px;
    max-height: 40px;
    object-fit: contain;
}
#supportTicketModal .partners-entity-modal .entity-view-value--prose{
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    white-space: pre-wrap;
}
#supportTicketModal .partners-entity-modal .entity-view-value .text-muted, #supportTicketModal .partners-entity-modal .entity-view-value .fst-italic{
    font-weight: 600;
    color: rgba(148, 163, 184, 0.85) !important;
}
#supportTicketModal .partners-entity-modal .entity-identity-banner{
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid rgba(0, 186, 255, 0.28);
    border-radius: 12px;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(0, 186, 255, 0.18), transparent 55%),
        linear-gradient(145deg, rgba(8, 32, 48, 0.95), rgba(8, 21, 29, 0.98));
    overflow: hidden;
}
#supportTicketModal .partners-entity-modal .entity-identity-banner__glow{
    position: absolute;
    inset: auto -20% -60% auto;
    width: 55%;
    height: 140%;
    background: radial-gradient(circle, rgba(0, 186, 255, 0.18), transparent 65%);
    pointer-events: none;
}
#supportTicketModal .partners-entity-modal .entity-identity-banner__main{
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}
#supportTicketModal .partners-entity-modal .entity-identity-avatar-ring{
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(0, 186, 255, 0.85), rgba(0, 119, 204, 0.35));
    box-shadow: 0 0 18px rgba(0, 186, 255, 0.25);
}
#supportTicketModal .partners-entity-modal .entity-identity-avatar{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #e8f7ff;
    background: linear-gradient(160deg, #0c4a6e 0%, #0369a1 50%, #0284c7 100%);
}
#supportTicketModal .partners-entity-modal .entity-identity-avatar__photo{
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 0.35rem;
    background: #08151d;
}
#supportTicketModal .partners-entity-modal .entity-identity-avatar__initials{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
#supportTicketModal .partners-entity-modal .entity-identity-banner__body{
    min-width: 0;
    flex: 1 1 auto;
}
#supportTicketModal .partners-entity-modal .entity-identity-eyebrow{
    margin: 0 0 0.2rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(0, 186, 255, 0.8);
}
#supportTicketModal .partners-entity-modal .entity-identity-name{
    margin: 0 0 0.55rem;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.15;
    color: #f8fafc;
    word-break: break-word;
}
#supportTicketModal .partners-entity-modal .entity-identity-chips{
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
#supportTicketModal .partners-entity-modal .entity-chip{
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(232, 247, 255, 0.95);
    background: rgba(0, 186, 255, 0.16);
    border: 1px solid rgba(0, 186, 255, 0.32);
}
#supportTicketModal .partners-entity-modal .entity-chip--ok{
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.35);
}
#supportTicketModal .partners-entity-modal .entity-chip--muted{
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.14);
    border-color: rgba(148, 163, 184, 0.3);
}
#supportTicketModal .partners-entity-modal .entity-chip--live{
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.18);
    border-color: rgba(14, 165, 233, 0.4);
}
#supportTicketModal .partners-entity-modal .entity-chip--agency{
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(255, 255, 255, 0.18);
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .entity-identity-banner{
    border-color: rgba(13, 110, 253, 0.22);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(13, 110, 253, 0.1), transparent 55%),
        linear-gradient(145deg, #ffffff, #f1f5f9);
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .entity-identity-eyebrow{
    color: rgba(13, 110, 253, 0.75);
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .entity-identity-name{
    color: #0f172a;
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .entity-chip{
    color: #0f172a;
    background: rgba(13, 110, 253, 0.08);
    border-color: rgba(13, 110, 253, 0.22);
}
#supportTicketModal .partners-entity-modal :is(input.form-control, #supportTicketModal textarea.form-control, #supportTicketModal select.form-select, #supportTicketModal .input-group-text){
    border-color: rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px !important;
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal :is(input.form-control, #supportTicketModal textarea.form-control, #supportTicketModal select.form-select, #supportTicketModal .input-group-text){
    border-color: #c8c8c8 !important;
}
#supportTicketModal .partners-entity-modal .entity-field > label, #supportTicketModal .partners-entity-modal .entity-field .form-label{
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
}
#supportTicketModal .partners-entity-modal .entity-field > label > i, #supportTicketModal .partners-entity-modal .entity-field .form-label > i{
    color: #00baff;
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .entity-field > label > i, [data-bs-theme="light"] #supportTicketModal .partners-entity-modal .entity-field .form-label > i{
    color: #0d6efd;
}
#supportTicketModal .partners-entity-modal .form-text, #supportTicketModal .partners-entity-modal .entity-field-hint{
    font-size: 0.75rem;
    margin-top: 0.35rem;
    opacity: 0.75;
}
#supportTicketModal .partners-entity-modal .entity-choice-picker{
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
#supportTicketModal .partners-entity-modal .entity-choice-btn{
    flex: 1 1 0;
    min-width: 8rem;
    min-height: 2.85rem;
    margin: 0;
    padding: 0.4rem 0.75rem 0.4rem 0.5rem;
    border: 1px solid rgba(0, 186, 255, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.72);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
    user-select: none;
}
#supportTicketModal .partners-entity-modal .entity-choice-btn input{
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}
#supportTicketModal .partners-entity-modal .entity-choice-btn-icon{
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(0, 186, 255, 0.1);
    color: rgba(125, 211, 252, 0.95);
}
#supportTicketModal .partners-entity-modal .entity-choice-btn-label{
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}
#supportTicketModal .partners-entity-modal .entity-choice-btn:hover:not(.selected){
    border-color: rgba(0, 186, 255, 0.55);
    background: rgba(0, 186, 255, 0.07);
    color: rgba(255, 255, 255, 0.92);
    transform: translateY(-1px);
}
#supportTicketModal .partners-entity-modal .entity-choice-btn.selected{
    border-color: rgba(0, 186, 255, 0.65);
    background: linear-gradient(135deg, rgba(0, 186, 255, 0.28) 0%, rgba(99, 102, 241, 0.22) 100%);
    color: #f0f9ff;
    box-shadow: 0 2px 10px rgba(0, 186, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
#supportTicketModal .partners-entity-modal .entity-choice-btn.selected .entity-choice-btn-icon{
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .entity-choice-btn{
    background: #fff;
    border-color: rgba(13, 110, 253, 0.28);
    color: #334155;
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .entity-choice-btn.selected{
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.16), rgba(0, 186, 255, 0.18));
    border-color: rgba(13, 110, 253, 0.55);
    color: #0f172a;
}
#supportTicketModal .partners-entity-modal .crm-feature-switch{
    display: block;
    width: 100%;
    margin: 0;
    cursor: pointer;
    user-select: none;
}
#supportTicketModal .partners-entity-modal .crm-feature-switch__input{
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}
#supportTicketModal .partners-entity-modal .crm-feature-switch__panel{
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 3.5rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.04) 0%, rgba(120, 130, 145, 0.08) 45%, rgba(0, 0, 0, 0.22) 100%);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
#supportTicketModal .partners-entity-modal .crm-feature-switch__glow{
    position: absolute;
    top: -35%;
    right: -8%;
    width: 42%;
    height: 130%;
    background: radial-gradient(ellipse at center, rgba(0, 186, 255, 0.2) 0%, transparent 72%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}
#supportTicketModal .partners-entity-modal .crm-feature-switch__icon{
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.1rem;
}
#supportTicketModal .partners-entity-modal .crm-feature-switch__body{
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
#supportTicketModal .partners-entity-modal .crm-feature-switch__title{
    font-size: 0.84rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}
#supportTicketModal .partners-entity-modal .crm-feature-switch__hint{
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.52);
}
#supportTicketModal .partners-entity-modal .crm-feature-switch__track{
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 1.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}
#supportTicketModal .partners-entity-modal .crm-feature-switch__thumb{
    position: absolute;
    top: 50%;
    left: 0.14rem;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
    transform: translateY(-50%);
    transition: left 0.2s ease;
}
#supportTicketModal .partners-entity-modal .crm-feature-switch.is-on .crm-feature-switch__panel, #supportTicketModal .partners-entity-modal .crm-feature-switch__input:checked + .crm-feature-switch__panel{
    border-color: rgba(0, 186, 255, 0.62);
    background: linear-gradient(125deg, rgba(0, 186, 255, 0.24) 0%, rgba(99, 102, 241, 0.16) 52%, rgba(0, 0, 0, 0.08) 100%);
    box-shadow: 0 0 16px rgba(0, 186, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
#supportTicketModal .partners-entity-modal .crm-feature-switch.is-on .crm-feature-switch__glow, #supportTicketModal .partners-entity-modal .crm-feature-switch__input:checked + .crm-feature-switch__panel .crm-feature-switch__glow{
    opacity: 1;
}
#supportTicketModal .partners-entity-modal .crm-feature-switch.is-on .crm-feature-switch__icon, #supportTicketModal .partners-entity-modal .crm-feature-switch__input:checked + .crm-feature-switch__panel .crm-feature-switch__icon{
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}
#supportTicketModal .partners-entity-modal .crm-feature-switch.is-on .crm-feature-switch__track, #supportTicketModal .partners-entity-modal .crm-feature-switch__input:checked + .crm-feature-switch__panel .crm-feature-switch__track{
    background: rgba(0, 186, 255, 0.55);
    border-color: rgba(0, 186, 255, 0.75);
}
#supportTicketModal .partners-entity-modal .crm-feature-switch.is-on .crm-feature-switch__thumb, #supportTicketModal .partners-entity-modal .crm-feature-switch__input:checked + .crm-feature-switch__panel .crm-feature-switch__thumb{
    left: calc(100% - 1.05rem - 0.14rem);
    background: #fff;
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .crm-feature-switch__panel{
    border-color: rgba(15, 23, 42, 0.12);
    background: linear-gradient(125deg, #f3f4f6 0%, #e5e7eb 52%, #f8fafc 100%);
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .crm-feature-switch__title{ color: #0f172a; }
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .crm-feature-switch__hint{ color: #64748b; }
#supportTicketModal .partners-entity-modal .crm-doc-card-ui .crm-treatment-doc-card{
    display: flex;
    flex-direction: column;
    min-height: 11rem;
    border: 1px solid rgba(0, 186, 255, 0.28);
    border-radius: 10px;
    background: linear-gradient(160deg, rgba(0, 186, 255, 0.07) 0%, rgba(0, 0, 0, 0.12) 100%);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .crm-doc-card-ui .crm-treatment-doc-card{
    border-color: rgba(13, 110, 253, 0.22);
    background: linear-gradient(160deg, rgba(13, 110, 253, 0.06) 0%, #fff 100%);
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui .crm-treatment-doc-card__header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    min-height: 2.45rem;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.18);
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .crm-doc-card-ui .crm-treatment-doc-card__header{
    border-bottom-color: rgba(0, 0, 0, 0.06);
    background: rgba(13, 110, 253, 0.05);
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui .crm-treatment-doc-card__title{
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    font-weight: 700;
    font-size: 0.8125rem;
    color: #f8fafc;
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .crm-doc-card-ui .crm-treatment-doc-card__title{
    color: #1e293b;
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui .crm-treatment-doc-card__title > i{
    color: #00baff;
    font-size: 0.95rem;
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .crm-doc-card-ui .crm-treatment-doc-card__title > i{
    color: #0d6efd;
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui .crm-treatment-doc-card__actions{
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui .crm-treatment-doc-card__upload{
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
    padding: 0 0.6rem;
    margin: 0;
    border-radius: 6px;
    border: 1px dashed rgba(0, 186, 255, 0.4);
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-weight: 600;
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui .crm-treatment-doc-card__upload:hover, #supportTicketModal .partners-entity-modal .crm-doc-card-ui .crm-treatment-doc-card__upload.is-dragover{
    border-color: #00baff;
    background: rgba(0, 186, 255, 0.08);
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui .crm-treatment-doc-card__upload .add-patient-file-input, #supportTicketModal .partners-entity-modal .crm-doc-card-ui .crm-treatment-doc-card__files-area .add-patient-file-input{
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui .crm-treatment-doc-card__upload-inner{
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: #7dd3fc;
    pointer-events: none;
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui .crm-treatment-doc-card__body{
    padding: 0.75rem;
    flex: 1 1 auto;
    min-height: 8rem;
    display: flex;
    flex-direction: column;
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui .crm-treatment-doc-card__files-area{
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 6.5rem;
    position: relative;
    cursor: pointer;
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui .crm-treatment-doc-card__files-area.is-dragover{
    outline: 2px dashed rgba(0, 186, 255, 0.65);
    outline-offset: -3px;
    background: rgba(0, 186, 255, 0.05);
    border-radius: 6px;
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui .crm-treatment-doc-card__empty-slot{
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 6.5rem;
    padding: 0.75rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    border: 1px dashed rgba(0, 186, 255, 0.35);
    border-radius: 8px;
    box-sizing: border-box;
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui .crm-treatment-doc-card__files-area:hover .crm-treatment-doc-card__empty-slot, #supportTicketModal .partners-entity-modal .crm-doc-card-ui .crm-treatment-doc-card__files-area.is-dragover .crm-treatment-doc-card__empty-slot{
    border-color: #00baff;
    background: rgba(0, 186, 255, 0.06);
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui .crm-treatment-doc-card__drop-icon{
    font-size: 1.5rem;
    color: #00baff;
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui .crm-treatment-doc-card__drop-title{
    font-weight: 600;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.82);
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui .crm-treatment-doc-card__drop-hint{
    font-size: 0.72rem;
    line-height: 1.35;
    max-width: 16rem;
    opacity: 0.8;
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui .entity-upload-preview{
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 6.5rem;
    padding: 0.75rem;
    border: 1px solid rgba(0, 186, 255, 0.25);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.15);
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui .entity-upload-preview img{
    max-height: 72px;
    max-width: 180px;
    object-fit: contain;
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui .entity-upload-filename{
    font-size: 0.8rem;
    font-weight: 600;
    color: #7dd3fc;
    word-break: break-word;
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui.has-file .crm-treatment-doc-card__empty-slot{
    display: none;
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui.has-file .entity-upload-preview{
    display: flex;
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui--view .crm-treatment-doc-card{
    min-height: 0;
    height: 100%;
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui--view .crm-treatment-doc-card__body{
    min-height: 0;
    flex: 1 1 auto;
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui--view .entity-upload-preview--view{
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 6.5rem;
    padding: 0.85rem;
    border: 1px solid rgba(0, 186, 255, 0.22);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui--view .entity-upload-preview__link{
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui--view .entity-upload-preview--view img{
    max-height: 96px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui--view .entity-upload-preview--file{
    flex-direction: row;
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui--view .entity-upload-preview__file-icon{
    font-size: 1.75rem;
    color: #00baff;
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui--view .crm-treatment-doc-card__download{
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #7dd3fc;
    text-decoration: none;
    border: 1px solid rgba(0, 186, 255, 0.35);
    background: rgba(0, 186, 255, 0.08);
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui--view .crm-treatment-doc-card__download:hover{
    color: #fff;
    border-color: #00baff;
    background: rgba(0, 186, 255, 0.18);
}
#supportTicketModal .partners-entity-modal .crm-doc-card-ui--view .crm-treatment-doc-card__empty-slot--readonly{
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 6.5rem;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.08);
    color: rgba(255, 255, 255, 0.5);
    cursor: default;
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .crm-doc-card-ui .crm-treatment-doc-card__empty-slot{
    color: #64748b;
    border-color: rgba(13, 110, 253, 0.32);
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .crm-doc-card-ui .crm-treatment-doc-card__drop-title{
    color: #334155;
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .crm-doc-card-ui--view .entity-upload-preview--view{
    border-color: rgba(13, 110, 253, 0.2);
    background: rgba(13, 110, 253, 0.04);
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .crm-doc-card-ui--view .crm-treatment-doc-card__empty-slot--readonly{
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.02);
    color: #94a3b8;
}
#supportTicketModal .partners-entity-modal .entity-publish-status{
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    margin: 0 0 0.85rem;
    padding: 0.9rem 1rem;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(125deg, rgba(148, 163, 184, 0.12) 0%, rgba(15, 23, 42, 0.55) 60%);
}
#supportTicketModal .partners-entity-modal .entity-publish-status__glow{
    position: absolute;
    top: -40%;
    right: -10%;
    width: 48%;
    height: 160%;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(ellipse at center, rgba(0, 186, 255, 0.28) 0%, transparent 70%);
}
#supportTicketModal .partners-entity-modal .entity-publish-status__icon{
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 10px;
    font-size: 1.2rem;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
#supportTicketModal .partners-entity-modal .entity-publish-status__pulse{
    position: absolute;
    inset: -3px;
    border-radius: 12px;
    border: 1px solid rgba(0, 186, 255, 0.55);
    animation: entity-publish-pulse 1.8s ease-out infinite;
    pointer-events: none;
}
#supportTicketModal .partners-entity-modal .entity-publish-status__body{
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}
#supportTicketModal .partners-entity-modal .entity-publish-status__title{
    font-size: 0.95rem;
    font-weight: 750;
    color: #f8fafc;
    line-height: 1.25;
}
#supportTicketModal .partners-entity-modal .entity-publish-status__hint{
    font-size: 0.75rem;
    color: rgba(203, 213, 225, 0.72);
    line-height: 1.35;
}
#supportTicketModal .partners-entity-modal .entity-publish-status__badge{
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.35);
}
#supportTicketModal .partners-entity-modal .entity-publish-status.is-live{
    border-color: rgba(0, 186, 255, 0.55);
    background: linear-gradient(125deg, rgba(0, 186, 255, 0.24) 0%, rgba(16, 185, 129, 0.14) 48%, rgba(15, 23, 42, 0.55) 100%);
    box-shadow: 0 0 18px rgba(0, 186, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
#supportTicketModal .partners-entity-modal .entity-publish-status.is-live .entity-publish-status__glow{
    opacity: 1;
}
#supportTicketModal .partners-entity-modal .entity-publish-status.is-live .entity-publish-status__icon{
    color: #fff;
    background: rgba(0, 186, 255, 0.28);
    border-color: rgba(0, 186, 255, 0.55);
    box-shadow: 0 0 12px rgba(0, 186, 255, 0.35);
}
#supportTicketModal .partners-entity-modal .entity-publish-status.is-live .entity-publish-status__badge{
    color: #052e16;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border-color: rgba(74, 222, 128, 0.7);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.35);
}
#supportTicketModal .partners-entity-modal .entity-publish-status.is-draft .entity-publish-status__title{
    color: rgba(226, 232, 240, 0.88);
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .entity-publish-status{
    background: linear-gradient(125deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: rgba(15, 23, 42, 0.12);
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .entity-publish-status__title{
    color: #0f172a;
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .entity-publish-status__hint{
    color: #64748b;
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .entity-publish-status.is-live{
    background: linear-gradient(125deg, rgba(0, 186, 255, 0.12) 0%, rgba(34, 197, 94, 0.1) 50%, #f8fafc 100%);
    border-color: rgba(0, 186, 255, 0.35);
}
#supportTicketModal .partners-entity-modal .entity-audit-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.5rem;
}
#supportTicketModal .partners-entity-modal .entity-audit-field{
    display: flex;
    flex-direction: column;
    min-width: 0;
}
#supportTicketModal .partners-entity-modal .entity-audit-field > label{
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.4rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #f8fafc;
}
#supportTicketModal .partners-entity-modal .entity-audit-field > label > i{
    color: #00baff;
    opacity: 1;
}
#supportTicketModal .partners-entity-modal .entity-audit-value{
    display: flex;
    align-items: center;
    min-height: calc(1.5em + 1rem + 2px);
    padding: 0.5rem 0.85rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 186, 255, 0.08) 0%, rgba(15, 23, 42, 0.55) 70%);
    border: 1px solid rgba(0, 186, 255, 0.28);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: #f1f5f9;
    word-break: break-word;
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .entity-audit-field > label{
    color: #1e293b;
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .entity-audit-field > label > i{
    color: #0d6efd;
}
[data-bs-theme="light"] #supportTicketModal .partners-entity-modal .entity-audit-value{
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.06) 0%, #f8fafc 85%);
    border-color: rgba(13, 110, 253, 0.22);
    color: #1e293b;
}
@media (max-width: 767.98px){
#supportTicketModal .partners-entity-modal .entity-audit-grid{
        grid-template-columns: 1fr;
    }
}
#supportTicketModal .partners-entity-modal .entity-modal-sections{
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}
#supportTicketModal .partners-entity-modal .entity-modal-sections > .collapsible-section{
    margin: 0 !important;
}
#supportTicketModal .partners-entity-modal .entity-modal-sections > .collapsible-section + .collapsible-section{
    margin-top: 0 !important; 
}
#supportTicketModal .partners-entity-modal .collapsible-section{
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}
#supportTicketModal .partners-entity-modal .collapsible-section > .section-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    background: transparent;
    border: none;
    border-bottom: 1px solid transparent;
}
#supportTicketModal .partners-entity-modal .collapsible-section > .section-header .section-title{
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}
#supportTicketModal .partners-entity-modal .collapsible-section > .section-header .section-title > i{
    color: #00baff;
}
#supportTicketModal .partners-entity-modal .collapsible-section > .section-header .toggle-icon{
    color: #00baff !important;
    transition: transform 0.3s ease;
}
#supportTicketModal .partners-entity-modal .collapsible-section.active{
    border-color: rgba(0, 186, 255, 0.62);
    box-shadow: 0 0 14px rgba(0, 186, 255, 0.12), inset 0 0 0 1px rgba(0, 186, 255, 0.2);
}
#supportTicketModal .partners-entity-modal .collapsible-section.active > .section-header{
    background: rgba(0, 100, 180, 0.32);
    border-bottom-color: rgba(0, 186, 255, 0.35);
}
#supportTicketModal .partners-entity-modal .collapsible-section.active > .section-header .toggle-icon{
    transform: rotate(180deg);
}
#supportTicketModal .partners-entity-modal .collapsible-section > .section-content{
    display: block !important;
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    opacity: 0;
    transition: max-height 0.26s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.22s ease,
                padding 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}
#supportTicketModal .partners-entity-modal .collapsible-section.active > .section-content{
    max-height: 5000px;
    opacity: 1;
    padding: 0.75rem 1.25rem 1.25rem;
}
@media (max-width: 767.98px){
#supportTicketModal .partners-entity-modal .entity-field-grid, #supportTicketModal .partners-entity-view-modal .entity-field-grid{
        grid-template-columns: 1fr;
    }
#supportTicketModal .partners-entity-view-modal .entity-field-grid > .entity-view-tile:last-child:nth-child(odd){
        grid-column: auto;
    }
#supportTicketModal .partners-entity-view-modal .entity-field-grid--overview{
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }
#supportTicketModal .partners-entity-view-modal .entity-field-grid--overview > .entity-view-tile--logo-span, #supportTicketModal .partners-entity-view-modal .entity-field-grid--overview > .entity-overview-logo-card{
        grid-column: auto;
        grid-row: auto;
        order: 3;
    }
#supportTicketModal .partners-entity-modal .modal-header, #supportTicketModal .partners-entity-modal .modal-body-custom, #supportTicketModal .partners-entity-modal .modal-footer-custom{
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }
}

/* === FINAL LOCK (injected last) === */

#supportTicketModal,
#supportTicketModal * {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* Kill CRM global_v2 30px padding and any host height clamps */
#supportTicketModal .modal-content,
#supportTicketModal > .modal-dialog > .modal-content,
[data-bs-theme="dark"] #supportTicketModal .modal-content,
[data-bs-theme="dark"] #supportTicketModal > .modal-dialog > .modal-content {
  padding: 0 !important;
  margin: 0 !important;
  background: #08151d !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
  width: 100% !important;
  max-width: 100% !important;
  animation: none !important;
}

#supportTicketModal.modal { --bs-modal-border-radius: 12px; z-index: 20050 !important; }

#supportTicketModal > .modal-dialog {
  width: min(800px, calc(100vw - 2rem)) !important;
  max-width: 800px !important;
  max-height: calc(100dvh - 3.5rem) !important;
  margin: 1.75rem auto !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}

#supportTicketModal > .modal-dialog > .modal-content {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: calc(100dvh - 3.5rem) !important;
  overflow: hidden !important;
}

#supportTicketModal > .modal-dialog > .modal-content > form {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

#supportTicketModal .modal-header {
  flex: 0 0 auto !important;
  padding: 1rem !important;
  margin: 0 !important;
  background: #08151d !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

#supportTicketModal .modal-title {
  margin: 0 !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: #ffffff !important;
}

#supportTicketModal .modal-header .btn-close {
  position: static !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  margin: 0 0 0 auto !important;
  opacity: 0.75 !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: invert(1) grayscale(100%) brightness(200%) !important;
}

#supportTicketModal .modal-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 1rem 1rem 2rem !important;
  margin: 0 !important;
  background: #08151d !important;
  color: #ffffff !important;
  scrollbar-width: thin !important;
}

#supportTicketModal .modal-footer {
  flex: 0 0 auto !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 0.5rem !important;
  min-height: 4.25rem !important;
  padding: 1rem 1.5rem !important;
  margin: 0 !important;
  background: #08151d !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0 0 12px 12px !important;
}

#supportTicketModal .modal-footer .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  min-height: 2.25rem !important;
  height: auto !important;
  padding: 0.375rem 0.75rem !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
  transform: none !important;
}

/* Cancel — Partners modals.css red outline (beats buttons.css secondary gradient) */
#supportTicketModal .modal-footer > .btn-secondary,
#supportTicketModal .modal-footer > button.btn-secondary {
  order: 100 !important;
  border: none !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #f24747 !important;
  font-weight: 500 !important;
  box-shadow: inset 0 0 0 1px #f24747, 0 0 10px rgba(242, 71, 71, 0.25) !important;
  transform: none !important;
}
#supportTicketModal .modal-footer > .btn-secondary:hover,
#supportTicketModal .modal-footer > .btn-secondary:focus-visible {
  color: #fff !important;
  background-color: #db4040 !important;
  background-image: none !important;
  border: none !important;
  box-shadow: inset 0 0 0 1px #db4040, 0 0 20px rgba(220, 53, 69, 0.6), 0 0 40px rgba(220, 53, 69, 0.3) !important;
  transform: none !important;
}

/* Submit — Partners buttons.css cyan glow primary */
#supportTicketModal .modal-footer > .btn-primary,
#supportTicketModal #submitTicketBtn {
  order: 1 !important;
  color: #fff !important;
  background: linear-gradient(145deg, #00baff, #0077cc) !important;
  background-image: linear-gradient(145deg, #00baff, #0077cc) !important;
  border: none !important;
  box-shadow: 0 0 10px rgba(0, 186, 255, 0.4) !important;
  transform: none !important;
}
#supportTicketModal .modal-footer > .btn-primary:hover,
#supportTicketModal #submitTicketBtn:hover {
  color: #fff !important;
  background: linear-gradient(145deg, #00baff, #0077cc) !important;
  box-shadow: 0 0 15px rgba(0, 186, 255, 0.6) !important;
  transform: scale(1.03) !important;
}

/* Tabs — Partners cyan outline inactive; solid Bootstrap primary when checked */
#supportTicketModal .btn-group { width: 100% !important; }
#supportTicketModal .btn-group > .btn-outline-primary {
  color: #00baff !important;
  border: 1px solid #00baff !important;
  background: rgba(0, 186, 255, 0.05) !important;
  background-image: none !important;
  box-shadow: 0 0 10px rgba(0, 186, 255, 0.25) !important;
  transform: none !important;
  font-weight: 500 !important;
}
#supportTicketModal .btn-group > .btn-outline-primary:hover {
  color: #fff !important;
  background: linear-gradient(145deg, #00baff, #0077cc) !important;
  border-color: #00baff !important;
  box-shadow: 0 0 15px rgba(0, 186, 255, 0.6) !important;
  transform: none !important;
}
#supportTicketModal .btn-check:checked + .btn-outline-primary,
#supportTicketModal .btn-check:active + .btn-outline-primary,
#supportTicketModal .btn-check:checked + .btn-outline-primary:hover {
  color: #fff !important;
  background: #0d6efd !important;
  background-image: none !important;
  border-color: #0d6efd !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Form fields — Partners modals.css translucent surfaces (NOT patient #172635) */
#supportTicketModal .form-label {
  display: inline-block !important;
  margin-bottom: 0.4rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #ffffff !important;
}

#supportTicketModal .form-control,
#supportTicketModal .form-select,
#supportTicketModal textarea.form-control,
#supportTicketModal input.form-control:not([type="file"]):not([type="checkbox"]):not([type="radio"]),
#supportTicketModal select.form-select,
#supportTicketModal select.form-control {
  appearance: none !important;
  -webkit-appearance: none !important;
  height: auto !important;
  max-height: none !important;
  min-height: calc(1.5em + 1.3rem + 2px) !important;
  padding: 0.65rem 0.9rem !important;
  margin: 0 !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  border-radius: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  background-image: none !important;
  color: #ffffff !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

#supportTicketModal textarea.form-control {
  min-height: 8rem !important;
  resize: vertical !important;
}
#supportTicketModal #ticketMessage { min-height: 12rem !important; }
#supportTicketModal #ticketSteps { min-height: 10.5rem !important; }
#supportTicketModal #ticketExpected,
#supportTicketModal #ticketActual { min-height: 8rem !important; }

#supportTicketModal .form-control:focus,
#supportTicketModal .form-select:focus,
#supportTicketModal textarea.form-control:focus {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: #0d6efd !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
  outline: none !important;
}

#supportTicketModal .form-control::placeholder,
#supportTicketModal textarea.form-control::placeholder {
  color: #a19e88 !important;
  -webkit-text-fill-color: #a19e88 !important;
  opacity: 1 !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
}

#supportTicketModal .form-select {
  cursor: pointer !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23cbd5e1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 16px 12px !important;
  padding-right: 2.25rem !important;
}

/* Upload card — Partners inline support_modal styles */
#supportTicketModal .crm-treatment-doc-card {
  border: 1px solid rgba(0, 186, 255, 0.28) !important;
  border-radius: 10px !important;
  background: linear-gradient(160deg, rgba(0, 186, 255, 0.07) 0%, rgba(0, 0, 0, 0.12) 100%) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18) !important;
  overflow: hidden !important;
}
#supportTicketModal .crm-treatment-doc-card__header {
  background: rgba(0, 0, 0, 0.18) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
#supportTicketModal .crm-treatment-doc-card__title { color: #f8fafc !important; font-weight: 700 !important; }
#supportTicketModal .crm-treatment-doc-card__title > i { color: #00baff !important; }
#supportTicketModal .crm-treatment-doc-card__upload {
  border: 1px dashed rgba(0, 186, 255, 0.4) !important;
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
  transform: none !important;
}
#supportTicketModal .crm-treatment-doc-card__upload-inner { color: rgba(255, 255, 255, 0.85) !important; }
#supportTicketModal .crm-treatment-doc-card__upload-inner i { color: #00baff !important; }
#supportTicketModal .crm-treatment-doc-card__empty-slot {
  border: 1px dashed rgba(0, 186, 255, 0.35) !important;
  color: rgba(255, 255, 255) !important;
}
#supportTicketModal .crm-treatment-doc-card__drop-icon { color: #00baff !important; }
#supportTicketModal .crm-treatment-doc-card__drop-title { color: rgba(255, 255, 255, 0.82) !important; }
