
html {
    font-size: 14px !important; /* Base */
}
.bootstrap-zone {
    font-size: 12.6px; /* 12.6 ÷ 14.5 = 0.869rem */
}

.media-confirmation-dialog .modal-content.confirmation-dialog {
    /*transform: scale(0.9);*/
    /*transform-origin: center;*/
}

.media-confirmation-dialog .modal-dialog.modal-dialog-centered {
    max-width: 600px !important; /* No change needed */
}


/* Correct selector - both classes on same element */
.modal-dialog.modal-xl {
    max-width: 1026px !important;
}

.modal-dialog.modal-lg {
    max-width: 720px !important;
}

.modal-dialog.modal-md {
    max-width: 450px !important;
}

.modal-dialog.modal-sm {
    max-width: 270px !important;
}




#sb-groups:before {
    font-family: "bootstrap-icons" !important;
    content: "\f4d0";
}

#sb-templates:before {
    font-family: "bootstrap-icons" !important;
    content: "\F228";
}
#sb-accounts:before {
    font-family: "bootstrap-icons" !important;
    content: "\F618";
}
#sb-contacts:before {
    font-family: "bootstrap-icons" !important;
    content: "\F8C9";
}

#sb-finance:before {
    font-family: "bootstrap-icons" !important;
    content: "\F636";
}

#sb-campaigns::before {
  font-family: "bootstrap-icons" !important;
  content: "\F6C0";
}

#sb-crm::before {
  font-family: "bootstrap-icons" !important;
  content: "\f2ee";
}


.sb-admin > .sb-header > .sb-admin-nav-right {
  align-items: center;
  padding: 0.9375rem 0;
  width: 4.0625rem;
  bottom: inherit;
  left: inherit;
  position: inherit;
  text-align: center;
}


.sb-sidebar > img {
    height: 2.1875rem;
    margin: 1.125rem 0.9375rem;
}

.sb-sidebar > div {
    padding: 0.3125rem 0;
}

.sb-sidebar > div > a {
    height: 3.125rem;
    display: block;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease; /* Replace $transition with actual value */
    color: #000000; /* Replace $color-black with actual value */
}

.sb-sidebar > div > a:before {
    content: "";
    position: absolute;
    left: 1.35rem;
    font-size: 1.375rem;
    line-height: 3.125rem;
    opacity: 0.6;
    background-size: contain;
    background-repeat: no-repeat;
    font-family: "Support Board Icons";
    font-style: normal !important;
    font-weight: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
}

.sb-sidebar > div > a:hover,
.sb-sidebar > div > a.sb-active {
    color: #007bff; /* Replace $color-blue with actual value */
}

.sb-sidebar > div > a:hover span {
    transition-delay: 1s;
    visibility: visible;
    opacity: 1;
    left: 4.0625rem;
}


.auth-form .btn {
  height: 3.125rem;
  font-weight: 700;
}

.btn-primary {
  border-color: #028be5;
  background-color: #028be5;

}
.btn-primary:hover {
  border-color: #004c7d;
  background-color: #004c7d;
}

.login-control {
  background: #fff;
  color: #6e6e6e;
  line-height: 1.4;
  font-size: 1rem;
  height: 3rem;
  border-radius: 0.5rem;
  border-color: #B3B3B3;
  padding: 0.375rem 1rem;
}
.auth-form .alert-danger {
  line-height: 1.25rem;
  color: #fff;
  background-color: #ca3434;
  border-radius: 0.25rem;
}
.auth-form input {
  color: #24272a;
}

.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1rem;
  margin-top: -0.5rem;
  margin-left: -0.5rem;
  border: 0.125rem solid transparent;
  border-top: 0.125rem solid #ffffff;
  border-right: 0.125rem solid #ffffff;
  border-radius: 50%;
  animation: spin 0.6s ease-in-out infinite;
  z-index: 1;
}

.loading * {
  visibility: hidden;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn {
  box-shadow: none !important;
  border-radius: 0.2rem;
}

.btn:focus {
  box-shadow: none !important;
}

.form-control {
  border-radius: 0.2rem;
  box-sizing: border-box;
}
.form-control:focus {
  outline: none !important;
  box-shadow: none !important;
  border: 0.0625rem solid #028be5 !important;
}

.language-dropdown .btn:focus,
.language-dropdown .btn:active,
.language-dropdown .btn:focus-visible,
.language-dropdown .btn.show,
.language-dropdown .btn:not(:disabled):not(.disabled):active:focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Force remove focus after click */
.language-dropdown .btn {
  outline: none !important;
  border: none !important;
}

.language-dropdown .btn:hover {
  border: none !important;
}

.table-basic td {
  padding: 0.9375rem 0.3125rem;
}

.bootstrap-zone * {
    box-sizing: border-box !important;
}


hr {
  background: #e6e6e6;
  opacity: 0.1;
}

.sb-btn, a.sb-btn {
  border-radius: 0 !important;
}

.info-card {
    position: fixed;
    bottom: 0.625rem;
    right: 0.625rem;
    left: 4.625rem;
    border-radius: 0.25rem;
    padding: 0.625rem 1.875rem;
    background: #1a9260;
    color: #fff;
    text-align: center;
    box-shadow: 0 0.25rem 0.875rem 0 rgba(0,0,0,0.2),0 0 0 0.0625rem rgba(0,0,0,0.05);
    cursor: pointer;
    z-index: 9999995;
    font-size: 0.9375rem;
    line-height: 1.5625rem;
    font-weight: 600;
    letter-spacing: 0.03125rem;  
}


/*TABS*/
/* Import Support Board Font */
@font-face {
    font-family: "Support Board Font";
    src: url("data:font/woff2;base64,") format("woff2");
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: "Support Board Font";
    src: url("data:font/woff2;base64,") format("woff2");
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: "Support Board Font";
    src: url("data:font/woff2;base64,") format("woff2");
    font-weight: 600;
    font-style: normal;
}

/* Override Bootstrap with SB Tab Styling */
.nav-tabs {
    display: flex;
    border-bottom: 0.0625rem solid #d4d4d4;
    background: transparent;
    font-family: "Support Board Font", "Helvetica Neue", "Apple Color Emoji", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-tabs .nav-link {
    font-weight: 600;
    color: #24272a;
    font-size: 0.9375rem;
    line-height: 2.375rem;
    margin: 0 1.875rem 0 0;
    transition: all 0.4s;
    letter-spacing: 0.01875rem;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
    border: none;
    background: none;
    padding: 0;
    border-radius: 0;
    text-decoration: none;
    position: relative;
    display: block;
}

.nav-tabs .nav-link span {
    font-weight: 400;
    opacity: 0.7;
    font-size: 0.75rem;
    display: inline-block;
    letter-spacing: 0.0625rem;
    transform: translateY(-0.125rem);
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-link:hover {
    color: #028be5;
    border: none;
    background: none;
    text-decoration: none;
}

.nav-tabs .nav-link.active {
    border-bottom: 0.125rem solid #028be5;
    transition: none;
}

.nav-tabs .nav-item.tab-nav-title .nav-link {
    font-size: 1rem;
    font-weight: 600;
    cursor: default;
    color: #24272a;
}

.nav-tabs .nav-item.tab-nav-title + .nav-item.tab-nav-title .nav-link {
    margin-top: 0.625rem;
    padding-top: 0.625rem;
    border-top: 0.0625rem solid #e1e1e1;
}

/* Tab content styling with proper overflow */
.tab-content {
    width: 100%;
    font-family: "Support Board Font", "Helvetica Neue", "Apple Color Emoji", Helvetica, Arial, sans-serif;
    color: #24272a;
    overflow: hidden;
}


.tab-content::-webkit-scrollbar {
    width: 0.3125rem;
}

.tab-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.tab-content::-webkit-scrollbar-thumb {
    background: #BFCBD3;
    border-radius: 0.375rem;
    transition: all 0.4s;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background: #028be5;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: sb-fade-animation 0.4s;
}

.tab-pane:last-child {
    margin-bottom: 0;
}

@keyframes sb-fade-animation {
    0% { opacity: 0; }
    100% { opacity: 1; }
}


.sb-nav-container {
    min-width: 14.5rem;
    border-right: 0.0625rem solid #d4d4d4;
    overflow: hidden;
    overflow-y: scroll;
    padding: 0.9375rem 1.25rem 0.9375rem 1.25rem;
}

.sb-nav-container::-webkit-scrollbar {
    width: 0.3125rem;
}

.sb-nav-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sb-nav-container::-webkit-scrollbar-thumb {
    background: #BFCBD3;
    border-radius: 0.375rem;
    transition: all 0.4s;
}

.sb-nav-container::-webkit-scrollbar-thumb:hover {
    background: #028be5;
}

.sb-nav-container .nav-tabs {
    flex-direction: column;
    border-right: none;
    border-bottom: none;
    max-width: 12.5rem;
}

.sb-nav-container .nav-tabs .nav-link {
    margin-right: 0;
    margin-bottom: 0;
}

.sb-nav-container .nav-tabs .nav-link.active {
    border-bottom: none;
}

/* Settings specific styling */
.sb-setting {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1.875rem;
    align-items: flex-start;
}

.sb-setting + .sb-setting {
    margin-top: 0.9375rem;
    padding-top: 0.9375rem;
    border-top: 0.0625rem solid #e6e6e6;
}

.sb-setting .sb-setting-content {
    max-width: 26.25rem;
    width: 26.25rem;
    padding-right: 3.75rem;
    flex-shrink: 0;
}

.sb-setting .input {
    width: 100%;
}

.sb-setting h2 {
    display: inline-block;
    min-width: 9.375rem;
    flex-grow: 1;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.01875rem;
    margin: 0;
    color: #566069;
}

.sb-setting p {
    font-size: 0.8125rem;
    line-height: 1.375rem;
    letter-spacing: 0.01875rem;
    margin: 0.3125rem 0 0 0;
    color: #788692;
}

.sb-setting input,
.sb-setting select,
.sb-setting textarea {
    border-radius: 0.25rem;
    border: 0.0625rem solid #d4d4d4;
    outline: none;
    font-size: 0.8125rem;
    line-height: 2.1875rem;
    height: 2.1875rem;
    padding: 0 0.625rem;
    transition: all 0.4s;
    width: 100%;
    min-width: 18.75rem;
    box-sizing: border-box;
    color: #24272a;
    background-color: #fff;
}

.sb-setting input:focus,
.sb-setting select:focus,
.sb-setting textarea:focus {
    border: 0.0625rem solid #028be5;
    box-shadow: 0 0 0.3125rem rgba(39, 156, 255, 0.2);
    color: #24272a;
    outline: none;
}

.sb-setting select {
    padding: 0 0.3125rem;
}

.sb-setting textarea {
    box-sizing: content-box;
    width: calc(100% - 1.375rem);
    min-width: 17.5rem;
    line-height: 1.375rem;
    padding: 0.375rem 0.625rem;
    min-height: 5.375rem;
}

.sb-setting input[type="checkbox"] {
    background: #fff;
    clear: none;
    cursor: pointer;
    display: inline-block;
    line-height: 0;
    height: 2.1875rem;
    min-height: 2.1875rem;
    outline: 0;
    padding: 0;
    margin: 0;
    text-align: center;
    vertical-align: middle;
    width: 2.1875rem;
    min-width: 2.1875rem !important;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
}

.sb-setting input[type="checkbox"]:checked:before {
    content: "✓";
    font-size: 0.9375rem;
    color: #028be5;
    margin: 0;
    width: 100%;
    height: 100%;
    line-height: 2.1875rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .sb-bootstrap-tab {
        flex-direction: column;
        height: calc(100vh - 5rem);
    }
    
    .sb-nav-container {
        min-width: auto;
        border-right: none;
        border-bottom: 0.0625rem solid #d4d4d4;
        padding: 0.9375rem 1.25rem;
        overflow: hidden;
        overflow-y: scroll;
        height: auto;
    }
    
    .sb-nav-container .nav-tabs {
        flex-direction: row;
        border-bottom: 0.0625rem solid #d4d4d4;
        max-width: none;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .sb-nav-container .nav-tabs .nav-link {
        margin-right: 1.875rem;
        white-space: nowrap;
    }
    
    .sb-nav-container .nav-tabs .nav-link.active {
        border-right: none;
        border-bottom: 0.125rem solid #028be5;
    }
    
    .tab-content {
        padding: 0.9375rem 1.25rem;
        height: calc(100% - 4.375rem);
    }
}

/* Fix for mobile horizontal scroll */
@media (max-width: 1024px) {
    .sb-nav-container .nav-tabs::-webkit-scrollbar {
        height: 0.3125rem;
        width: auto;
    }
}

.sb-nav-container.sb-scroll-area {
    overflow: hidden;
    overflow-y: scroll;
}

.tab-content.sb-scroll-area {
    overflow: hidden;
    overflow-y: scroll;
}

.sb-bootstrap-tab {
    display: flex;
    height: calc(100% - 4.375rem);
    font-family: "Support Board Font", "Helvetica Neue", "Apple Color Emoji", Helvetica, Arial, sans-serif;
    color: #24272a;
}
/* END TABS */


/* PROFILE MODAL */
/* Custom styles to match your SB styling */

.modal-header.sb-top-bar {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 0.0625rem solid #d4d4d4 !important;
    margin-bottom: 1.25rem;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}



.modal-content .image {
    width: 4.0625rem;
    height: 4.0625rem;
    border-radius: 0 !important;
    background-size: cover;
    background-position: center;
    border: 0.0625rem solid #d4d4d4;
    position: relative;
    cursor: pointer;
}

.modal-content .image .sb-icon-close {
    position: absolute;
    top: -0.3125rem;
    right: -0.3125rem;
    width: 1.25rem;
    height: 1.25rem;
    background: #ca3434;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    cursor: pointer;
}


/* Custom scrollbar */
.modal-content .modal-body::-webkit-scrollbar {
    width: 0.3125rem;
}

.modal-content .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-content .modal-body::-webkit-scrollbar-thumb {
    background: #BFCBD3;
    border-radius: 0.375rem;
    transition: all 0.4s;
}

.modal-content .modal-body::-webkit-scrollbar-thumb:hover {
    background: #028be5;
}

.modal-content .sb-main > div {
    height: 100% !important;
    width: 100% !important;
}


.modal-content .sb-input + .sb-input {
    margin-top: 0.9375rem; /* Original spacing between inputs */
}

/* Override Bootstrap column widths */
.modal .modal-content .sb-main > div {
    width: 100% !important;
    height: auto !important;
}
/* END PROFILE MODAL */

.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 1050 !important;
}


.btn-close-custom {
    background: none;
    border: 0.125rem solid #dc3545;
    color: #dc3545;
    font-size: 1.875rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1060;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.btn-close-custom:hover {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
}

.btn-close-custom:focus {
    outline: none;
    box-shadow: none;
}

.save-btn {
    background-color: #028be5;
    border-color: #028be5;
    color: white;
    font-weight: 500;
    padding: 0.375rem 1rem;
    font-size: 0.8125rem;
    transition: all 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.save-btn:hover {
    background-color: #004c7d;
    border-color: #004c7d;
    color: white;
}

.save-btn i {
    font-size: 1.125rem;
    margin-right: 0.5rem;
    line-height: 1;
}

.modal-header {
    height: 4.5625rem;
}

.modal-content {
    position: relative;
}

.modal-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1099;
    background: #ca3434;
    color: white;
    padding: 1.25rem;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    box-sizing: border-box;
    height: 4.5625rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.modal-info.active {
    display: flex;
    align-items: center;
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-control {
  font-size: 0.875rem;
}
.form-control::placeholder {
  color: #c9ccce;
  opacity: 1;
  font-size: 0.875rem;

}

.modal-body {
    font-family: "Support Board Font", "Helvetica Neue", "Apple Color Emoji", Helvetica, Arial, sans-serif;
    font-size: 0.8125rem;
}

.modal-body .label-option {
    letter-spacing: 0.01875rem;
    font-size: 0.875rem;
    color: #24272a;
}
.modal-body .daterangepicker {
    width: 31.25rem !important;
    max-width: 31.25rem !important;
}

select.form-control {
    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='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 1rem 0.75rem !important;
    padding-right: 2.25rem !important;
}

select.form-control[multiple] {
  min-height: 7.5rem;
  padding: 0.5rem;
  background-image: none !important;
  padding-right: 0.75rem !important;
}

.header-logo img {
    height: 2.1875rem;
    margin: 1.125rem 0.9375rem;
}

.text-underline-dotted {
    text-decoration: underline dotted;
}

.yy-active {
    color: #028be5 !important;
}

.sb-admin > .sb-header > .sb-admin-nav > div > a:hover span {
  transition-delay: 0.05s;
}

.btn-warning.disabled,
.btn-warning:disabled {
    --bs-btn-disabled-color: #664d03 !important; /* Darker text */
    --bs-btn-disabled-bg: #fff3cd !important; /* Light yellow background */
    --bs-btn-disabled-border-color: #ffecb5 !important; /* Light yellow border */
    --bs-btn-disabled-opacity: 0.7 !important; /* More opacity */
}

.btn-warning.disabled:hover,
.btn-warning:disabled:hover {
    background-color: #fff3cd !important;
    border-color: #ffecb5 !important;
    color: #664d03 !important;
}

.dropdown-actions .dropdown-menu {
    font-size: inherit !important;
    border-radius: 0.25rem;
}







/* Modal Tab Change Indicators */
/* External Button Modal Styles - Scoped to prevent conflicts */
.modal:has(.external-action-btn) .change-dot {
    font-size: 0.8em;
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Tab with changes styling - only for external button modals */
.modal:has(.external-action-btn) .nav-link:has(.change-dot) {
    font-weight: 600;
    position: relative;
}

/* Save button disabled state - only for external action buttons */
.external-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form status indicator - scoped to external button modals */
.modal:has(.external-action-btn) .form-status-info {
    min-height: 1.25rem; /* Prevent layout shift */
}

.modal:has(.external-action-btn) .change-indicator {
    font-size: 0.875rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Tab content spacing - only for external button modals */
.modal:has(.external-action-btn) .tab-content {
    min-height: 25rem; /* Prevent modal jumping */
}

/* Modal footer actions - only for external button modals */
.modal:has(.external-action-btn) .modal-footer-actions {
    background-color: #f8f9fa;
    margin: 0 -1.5rem -1.5rem -1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 0 0 0.375rem 0.375rem;
}

/* Button group spacing - scoped to external button modals */
.modal:has(.external-action-btn) .button-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.modal .modal-header .btn,
.modal .modal-footer .btn,
.modal .modal-footer-actions .btn,
.action-btn,
.external-action-btn {
    font-size: 0.875rem;
    padding-top: 0.325rem;
    padding-bottom: 0.345rem;
}


.language-dropdown .btn {
    border: 0.0625rem solid #dee2e6;
    background: white !important;
    color: #495057;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}
.language-dropdown .btn:hover,
.language-dropdown .btn:focus,
.language-dropdown .btn:active {
    background: white !important;
    border-color: #dee2e6 !important;
    box-shadow: none !important;
}
.language-dropdown .dropdown-toggle::after {
    display: none;
}
.language-dropdown .dropdown-menu {
    min-width: auto;
    width: max-content;
    border-radius: 0.275rem;
    padding: 0.25rem;
}
.language-dropdown .dropdown-item {
    font-size: 0.875rem;
    background: white !important;
    width: auto !important;
    white-space: nowrap;
    border-radius: 0.25rem;
    margin-bottom: 0.125rem;
}
.language-dropdown .dropdown-item:last-child {
    margin-bottom: 0;
}
.language-dropdown .dropdown-item:hover,
.language-dropdown .dropdown-item:focus {
    background: white !important;
    color: #028be5 !important;
}

.form-check-input,
.form-check-label,
input[type="checkbox"],
input[type="radio"],
label {
    cursor: pointer;
}

.form-check-input:hover,
.form-check-label:hover,
input[type="checkbox"]:hover,
input[type="radio"]:hover,
label:hover {
    cursor: pointer;
}
.tooltip {
    z-index: 99999 !important;
}

.bs-tooltip-top .tooltip-arrow,
.bs-tooltip-bottom .tooltip-arrow,
.bs-tooltip-start .tooltip-arrow,
.bs-tooltip-end .tooltip-arrow {
    z-index: 99999 !important;
}

/* Background colors */
.bg-purple { background-color: #6f42c1 !important; }
.bg-orange { background-color: #fd7e14 !important; }
.bg-pink { background-color: #d63384 !important; }
.bg-teal { background-color: #20c997 !important; }
.bg-indigo { background-color: #6610f2 !important; }
.bg-cyan { background-color: #0dcaf0 !important; }
.bg-lime { background-color: #32cd32 !important; }
.bg-coral { background-color: #ff7f50 !important; }
.bg-violet { background-color: #8a2be2 !important; }
.bg-gold { background-color: #ffd700 !important; color: #000 !important; }
.bg-crimson { background-color: #dc143c !important; }
.bg-navy { background-color: #000080 !important; }
.bg-olive { background-color: #808000 !important; }
.bg-maroon { background-color: #800000 !important; }
.bg-slate { background-color: #708090 !important; }

/* Text colors */
.text-purple { color: #6f42c1 !important; }
.text-orange { color: #fd7e14 !important; }
.text-pink { color: #d63384 !important; }
.text-teal { color: #20c997 !important; }
.text-indigo { color: #6610f2 !important; }
.text-cyan { color: #0dcaf0 !important; }
.text-lime { color: #32cd32 !important; }
.text-coral { color: #ff7f50 !important; }
.text-violet { color: #8a2be2 !important; }
.text-gold { color: #ffd700 !important; }
.text-crimson { color: #dc143c !important; }
.text-navy { color: #000080 !important; }
.text-olive { color: #808000 !important; }
.text-maroon { color: #800000 !important; }
.text-slate { color: #708090 !important; }

/* Border colors */
.border-purple { border-color: #6f42c1 !important; }
.border-orange { border-color: #fd7e14 !important; }
.border-pink { border-color: #d63384 !important; }
.border-teal { border-color: #20c997 !important; }
.border-indigo { border-color: #6610f2 !important; }
.border-cyan { border-color: #0dcaf0 !important; }
.border-lime { border-color: #32cd32 !important; }
.border-coral { border-color: #ff7f50 !important; }
.border-violet { border-color: #8a2be2 !important; }
.border-gold { border-color: #ffd700 !important; }
.border-crimson { border-color: #dc143c !important; }
.border-navy { border-color: #000080 !important; }
.border-olive { border-color: #808000 !important; }
.border-maroon { border-color: #800000 !important; }
.border-slate { border-color: #708090 !important; }

/* Tag styles */
.tag-unassigned {
    background-color: transparent !important;
    border: 2px dashed !important;
    cursor: pointer;
    color: #333 !important;
    transition: all 0.2s ease !important;
}

.tag-assigned {
    cursor: pointer;
    border: 2px solid transparent !important;
    transition: all 0.2s ease !important;
}

/* Lighter dashed borders - NO HOVER */
.tag-unassigned.border-crimson { border-color: rgba(220, 20, 60, 0.6) !important; }
.tag-unassigned.border-navy { border-color: rgba(0, 0, 128, 0.6) !important; }
.tag-unassigned.border-purple { border-color: rgba(111, 66, 193, 0.6) !important; }
.tag-unassigned.border-orange { border-color: rgba(253, 126, 20, 0.6) !important; }
.tag-unassigned.border-pink { border-color: rgba(214, 51, 132, 0.6) !important; }
.tag-unassigned.border-teal { border-color: rgba(32, 201, 151, 0.6) !important; }
.tag-unassigned.border-indigo { border-color: rgba(102, 16, 242, 0.6) !important; }
.tag-unassigned.border-cyan { border-color: rgba(13, 202, 240, 0.6) !important; }
.tag-unassigned.border-lime { border-color: rgba(50, 205, 50, 0.6) !important; }
.tag-unassigned.border-coral { border-color: rgba(255, 127, 80, 0.6) !important; }
.tag-unassigned.border-violet { border-color: rgba(138, 43, 226, 0.6) !important; }
.tag-unassigned.border-gold { border-color: rgba(255, 215, 0, 0.6) !important; }
.tag-unassigned.border-olive { border-color: rgba(128, 128, 0, 0.6) !important; }
.tag-unassigned.border-maroon { border-color: rgba(128, 0, 0, 0.6) !important; }
.tag-unassigned.border-slate { border-color: rgba(112, 128, 144, 0.6) !important; }

.tags-container .badge {
    font-size: 0.875rem !important;
    padding: 0.3rem 0.55rem !important;
}

.tags-modal-label {
    font-size: 1.1rem !important;
}

/* Custom badge colors for providers */
.badge.bg-purple { background-color: #6f42c1 !important; }
.badge.bg-orange { background-color: #fd7e14 !important; }
.badge.bg-pink { background-color: #d63384 !important; }
.badge.bg-teal { background-color: #20c997 !important; }
.badge.bg-indigo { background-color: #6610f2 !important; }
.badge.bg-cyan { background-color: #0dcaf0 !important; }
.badge.bg-lime { background-color: #32cd32 !important; }
.badge.bg-coral { background-color: #ff7f50 !important; }
.badge.bg-violet { background-color: #8a2be2 !important; }
.badge.bg-gold { background-color: #ffd700 !important; color: #000 !important; }
.badge.bg-crimson { background-color: #dc143c !important; }
.badge.bg-navy { background-color: #000080 !important; }
.badge.bg-olive { background-color: #808000 !important; }
.badge.bg-maroon { background-color: #800000 !important; }
.badge.bg-slate { background-color: #708090 !important; }
.badge.bg-text { background-color: #2563eb !important; color: white !important; } /* Blue for text */
.badge.bg-voice { background-color: #dc2626 !important; color: white !important; } /* Red for voice */
.badge.bg-video { background-color: #7c3aed !important; color: white !important; } /* Purple for video */


/* USERS */
        .action-buttons .btn {
            margin: 0 0.125rem;
            padding: 0.25rem 0.5rem;
            font-size: 0.75rem;
        }
        
        .dataTables_wrapper .dataTables_filter {
            float: right;
            text-align: right;
        }
        
        .dataTables_wrapper .dataTables_length {
            float: left;
        }
        
        .user-avatar {
            width: 2rem;
            height: 2rem;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .status-badge {
            font-size: 0.6875rem;
        }
        
        .table-container {
            margin-top: 1.25rem;
        }
        /* Table row selection styling */
        .selected {
            background-color: rgba(13, 110, 253, 0.1) !important;
        }
        
        /* Action buttons styling */
        .btn-group-sm .btn {
            padding: 0.25rem 0.5rem;
            font-size: 0.75rem;
            align-content: center !important;
        }

        .btn-group-sm .btn[data-bs-toggle="tooltip"] {
            position: relative;
        }

        /* Custom tooltip positioning */
        .tooltip {
            font-size: 0.75rem;
        }

        .tooltip.bs-tooltip-top .tooltip-arrow {
            margin-left: -0.1875rem;
        }
        
        /* Table header styling */
        .table th {
            border-top: none;
            font-weight: 600;
            background-color: #f8f9fa;
            white-space: nowrap;
        }

                
        /* Avatar placeholder styling */
        .avatar-placeholder {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
        }
        
        /* Card styling improvements */
        .card {
            border: none;
            box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
        }
        
        .card-header {
            background-color: #fff;
            border-bottom: 0.0625rem solid #dee2e6;
            padding: 1.25rem;
        }
        
        /* Button improvements */
        .btn-outline-primary:hover {
            color: #fff;
            background-color: #0d6efd;
            border-color: #0d6efd;
        }
        
        /* DataTables custom styling */
        .dataTables_wrapper .dataTables_paginate .paginate_button {
            padding: 0.375rem 0.75rem;
            margin-left: 0.125rem;
        }
        
        .dataTables_wrapper .dataTables_filter input {
            border-radius: 0.375rem;
            border: 0.0625rem solid #ced4da;
            padding: 0.375rem 0.75rem;
        }
        
        .dataTables_wrapper .dataTables_length select {
            border-radius: 0.375rem;
            border: 0.0625rem solid #ced4da;
            padding: 0.375rem 0.75rem;
        }

        .datatable-loading-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(248, 249, 250, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            border-radius: 0.375rem;
        }

        .datatable-spinner {
            width: 1.5rem;
            height: 1.5rem;
            border: 0.3rem solid rgba(2, 139, 229, 0.2); 
            border-top: 0.3rem solid #028be5; 
            border-radius: 50%;
            animation: spin 0.6s linear infinite;
        }

        .table-container {
            position: relative;
        }




        /* Custom pagination and info styling */
        .custom-pagination-left {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .custom-pagination-left .dataTables_length {
            margin: 0;
        }

        /* Make select dropdown look like btn-sm */
        .custom-pagination-left .dataTables_length select {
            width: auto;
            min-width: 4.375rem;
            padding: 0.25rem 0.5rem;
            border: 0.0625rem solid var(--bs-border-color);
            border-radius: 0.275rem;
            font-size: 0.875rem;
            height: auto;
            background-color: var(--bs-body-bg);
            color: var(--bs-body-color);
            transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
            display: flex;
            align-items: center;
        }

        .custom-pagination-left .dataTables_length select:focus {
            border-color: #86b7fe;
            outline: 0;
            box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
        }

        /* Make sure the info container matches select height */
        .custom-info {
            display: flex;
            align-items: center;
            height: 100%;
        }

        .custom-info .dataTables_info {
            margin: 0;
            color: var(--bs-secondary-color);
            font-size: 0.875rem;
            font-weight: 400;
            display: flex;
            align-items: center;
            height: 100%;
            line-height: 1;
            padding-top: 0 !important;
            padding-bottom: 0 !important;            
        }

        .custom-pagination-right .dataTables_paginate {
            margin: 0;
        }

        /* Bootstrap pagination styling for DataTables */
        .dataTables_wrapper .dataTables_paginate {
            display: flex;
            padding-left: 0;
            list-style: none;
        }

        .dataTables_wrapper .dataTables_paginate .pagination {
            margin: 0;
            padding: 0;
            display: flex;
        }

        .dataTables_wrapper .dataTables_paginate .pagination li {
            padding: 0 !important;
            margin: 0;
            list-style: none;
        }

        .dataTables_wrapper .dataTables_paginate .pagination li a {
            padding: 0.25rem 0.5rem;
            margin: 0;
            border: 0.0625rem solid #dee2e6;
            border-left: 0;
            color: #0d6efd;
            background-color: #fff;
            font-size: 0.875rem;
            text-decoration: none;
            display: block;
            position: relative;
            transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
        }

        .dataTables_wrapper .dataTables_paginate .pagination li:first-child a {
            border-left: 0.0625rem solid #dee2e6;
            border-top-left-radius: 0.375rem;
            border-bottom-left-radius: 0.375rem;
        }

        .dataTables_wrapper .dataTables_paginate .pagination li:last-child a {
            border-top-right-radius: 0.375rem;
            border-bottom-right-radius: 0.375rem;
        }

        .dataTables_wrapper .dataTables_paginate .pagination li a:hover {
            color: #0a58ca;
            background-color: #e9ecef;
            border-color: #dee2e6;
        }

        .dataTables_wrapper .dataTables_paginate .pagination li a:focus {
            color: var(--bs-link-hover-color);
            background-color: var(--bs-secondary-bg);
            outline: 0;
            box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
            z-index: 3;
        }

        .dataTables_wrapper .dataTables_paginate .pagination li.active a {
            color: #fff;
            background-color: #0d6efd;
            border-color: #0d6efd;
            z-index: 3;
        }

        .dataTables_wrapper .dataTables_paginate .pagination li.disabled a {
            color: #6c757d;
            background-color: #fff;
            border-color: #dee2e6;
            cursor: not-allowed;
            pointer-events: none;
        }

        /* Search input styling */
        .dataTables_wrapper .dataTables_filter {
            text-align: center;
            margin-bottom: 1rem;
        }

        .dataTables_wrapper .dataTables_filter input {
            border-radius: var(--bs-border-radius);
            border: 0.0625rem solid var(--bs-border-color);
            padding: 0.375rem 0.75rem;
            width: 18.75rem;
            margin-left: 0.5rem;
            font-size: 1rem;
            background-color: var(--bs-body-bg);
            color: var(--bs-body-color);
            transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
        }

        .dataTables_wrapper .dataTables_filter input:focus {
            border-color: #86b7fe;
            outline: 0;
            box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .custom-pagination-left {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }
            
            .dataTables_wrapper .dataTables_filter input {
                width: 100%;
                max-width: 15.625rem;
            }
            
            .d-flex.justify-content-between {
                flex-direction: column;
                gap: 1rem;
            }
            
            .custom-pagination-right {
                align-self: center;
            }
            
            .dataTables_wrapper .dataTables_paginate .pagination li a {
                padding: 0.25rem 0.5rem;
                font-size: 0.875rem;
            }
        }

        
        /* Remove focus outline from pagination and select elements */
        .dataTables_wrapper .dataTables_paginate .pagination li a:focus,
        .dataTables_wrapper .dataTables_paginate .pagination li a:focus-visible {
            outline: none !important;
            box-shadow: none !important;
        }

        .custom-pagination-left .dataTables_length select:focus,
        .custom-pagination-left .dataTables_length select:focus-visible {
            outline: none !important;
            box-shadow: none !important;
            border-color: var(--bs-border-color) !important; /* Keep original border color */
        }

        /* Also remove any lingering focus states */
        .dataTables_wrapper .dataTables_paginate .paginate_button:focus {
            outline: none !important;
            box-shadow: none !important;
        }
                
        table.dataTable > tbody {
            vertical-align: middle;
        }

        table.dataTable > tbody > tr.selected > * {
            box-shadow: inset 0 0 0 624.9375rem rgba(13, 110, 253, 0.1) !important; 
            color: inherit !important; /* Keep original text color */
        }

        table.dataTable > tbody > tr.selected:hover > * {
            box-shadow: inset 0 0 0 624.9375rem rgba(13, 110, 253, 0.15) !important; 
        }


        /* Hide the entire DataTables search row until moved */
        .dataTables_wrapper .row:has(.dataTables_filter) {
            display: none !important;
        }

        /* Alternative if :has() not supported */
        .dataTables_wrapper > .row:first-child {
            display: none !important;
        }

        .dataTables_paginate .page-link {
            border-radius: 0 !important;
        }

        /* Confirmation modal styling */
        .confirmation-dialog {
            text-align: center;
            padding: 1.875rem;
            min-height: 4.6875rem;
        }

        .confirmation-title {
            font-size: 1.3125rem !important;
            line-height: 3.125rem;
            margin-top: -0.625rem;
            color: #028be5;
            font-weight: 600;
            margin-bottom: 0;
        }

        .confirmation-message {
            font-weight: 600;
            font-size: 1rem;
            line-height: 1.875rem;
            margin: 0 0 1.25rem 0;
            color: inherit;
        }

        /* Confirmation buttons */
        .btn-confirm {
            background-color: #028be5;
            border-color: #028be5;
            color: white;
            font-weight: 600;
            padding: 0.5rem 1.25rem;
            margin: 0 0.3125rem;
            border-radius: 0.25rem;
            font-size: 0.875rem;
        }

        .btn-confirm:hover {
            background-color: #0277c9;
            border-color: #0277c9;
            color: white;
        }

        .btn-cancel {
            background-color: #dc3545;
            border-color: #dc3545;
            color: white;
            font-weight: 600;
            padding: 0.5rem 1.25rem;
            margin: 0 0.3125rem;
            border-radius: 0.25rem;
            font-size: 0.875rem;
        }

        .btn-cancel:hover {
            background-color: #c82333;
            border-color: #bd2130;
            color: white;
        }

        /* Remove default Bootstrap modal styling */
        .confirmation-dialog .modal-header {
            padding: 0;
        }

        .confirmation-dialog .modal-body {
            padding: 0.625rem 0;
        }

        .confirmation-dialog .modal-footer {
            padding: 0;
        }


/* Account import sections */
/* Accounts Section Specific CSS - COMPLETE VERSION */

/* Account import sections */
.accounts-import-section {
    border: 0.125rem dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.accounts-import-section:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}


/* Account status cell */
.accounts-status-cell {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Environment badge */
.accounts-environment-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
}

/* Spinner border sizing */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.1em;
}

/* Import form paste status */
.paste-status {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Import results styling */
.import-results .alert {
    margin-bottom: 0.5rem;
}

.import-results .alert:last-child {
    margin-bottom: 0;
}

/* Custom radio button styling for import form */
.accounts-import-section .form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

/* Country flags display */
.country-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    max-width: 12.5rem;
}

.country-flag-item {
    display: inline-flex;
    align-items: center;
    /*background: #f8f9fa;*/
    padding: 0.0625rem 0.25rem;
    border-radius: 0.1875rem;
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.country-flag-item .fi {
    margin-right: 0.1875rem;
    width: 1rem;
    height: 0.75rem;
}

.max-width-150 {
    max-width: 9.375rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.max-width-120 {
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.max-width-200 {
    max-width: 12.5rem;
}

.max-width-250 {
    max-width: 15.625rem;
}

.max-width-300 {
    max-width: 18.75rem;
}

.max-width-350 {
    max-width: 21.875rem;
}

.max-width-400 {
    max-width: 25rem;
}

/* ================================ */
/* ACCOUNTS INNER PAGE SPECIFIC CSS */
/* ================================ */

/* Summary Bar Styling */
.accounts-inner-summary {
    background: #f8f9fa;
    border: 0.0625rem solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1);
}

.accounts-inner-summary .summary-item {
    display: inline-flex;
    align-items: center;
    margin-right: 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.accounts-inner-summary .summary-item:last-child {
    margin-right: 0;
}

.accounts-inner-summary .country-summary {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 0.0625rem solid #e9ecef;
}

.accounts-inner-summary .country-item {
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.accounts-inner-summary .country-item:last-child {
    margin-right: 0;
}


.accounts-inner-back-btn {
    border: 0.0625rem solid #6c757d;
    color: #6c757d;
    transform: none !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.accounts-inner-back-btn:hover {
    background-color: #6c757d !important;
    color: white  !important;
    border-color: #6c757d  !important;
    transform: none !important;
}

.accounts-inner-back-btn:focus {
    box-shadow: none !important;
    outline: none !important;
    transform: none !important;
}

.accounts-inner-back-btn:active {
    transform: none !important;
}


/* DataTable Specific Styling for Inner Page */
#accountsInnerTable .environment-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

#accountsInnerTable .environment-badge i {
    font-size: 1rem;
}

#accountsInnerTable code {
    background-color: #f8f9fa;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    color: #e83e8c;
}

#accountsInnerTable .text-truncate {
    max-width: 9.375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#accountsInnerTable .badge {
    font-size: 0.75rem;
    padding: 0.25em 0.5em;
}

/* Country Flag Styling */
#accountsInnerTable .fi {
    width: 1.2em;
    height: 0.9em;
    display: inline-block;
    margin-right: 0.25rem;
}

/* Responsive Adjustments for Inner Page */
@media (max-width: 768px) {
    .accounts-inner-summary .summary-item {
        margin-right: 1rem;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
    
    .accounts-inner-summary .country-item {
        margin-right: 0.75rem;
        margin-bottom: 0.25rem;
        font-size: 0.8rem;
    }
    
    .accounts-inner-back-btn {
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .accounts-inner-summary {
        padding: 0.75rem;
    }
    
    .accounts-inner-summary .summary-item {
        display: block;
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .accounts-inner-summary .country-summary {
        margin-top: 0.75rem;
    }
    
    .accounts-inner-summary .country-item {
        display: block;
        margin-bottom: 0.25rem;
        margin-right: 0;
    }
}

/* Modal Specific Styling for Send 1 Round */
.modal .template-option-disabled {
    color: #6c757d;
    background-color: #f8f9fa;
}

.modal .form-text {
    font-size: 0.875rem;
    color: #6c757d;
}

.modal .alert-info {
    border-left: 0.25rem solid #0dcaf0;
    background-color: rgba(13, 202, 240, 0.1);
}

.modal .alert-info h6 {
    color: #055160;
    margin-bottom: 0.5rem;
}

.modal .alert-info ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.modal .alert-info li {
    margin-bottom: 0.25rem;
    color: #055160;
}

/* Loading States */
.accounts-inner-loading {
    opacity: 0.6;
    pointer-events: none;
}

.accounts-inner-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.125em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: accounts-inner-spin 0.75s linear infinite;
}

@keyframes accounts-inner-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Selection State Styling */
#accountsInnerTable tbody tr.selected {
    background-color: rgba(13, 110, 253, 0.1) !important;
    border-left: 0.1875rem solid #0d6efd;
}

#accountsInnerTable tbody tr.selected td {
    color: #0d6efd;
}

/* Enhanced Tooltip Styling */
.tooltip-inner {
    max-width: 18.75rem;
    text-align: left;
}

/* Button Group Improvements */
.dropdown-actions .dropdown-menu {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
    border: 0.0625rem solid rgba(0, 0, 0, 0.15);
}

.dropdown-actions .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: all 0.15s ease-in-out;
}

.dropdown-actions .dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-actions .dropdown-item.text-danger:hover {
    background-color: #f8d7da;
    color: #721c24;
}

.dropdown-actions .dropdown-divider {
    margin: 0.25rem 0;
}

/* Success/Error State Indicators */
.accounts-inner-success {
    border-left: 0.25rem solid #198754;
    background-color: rgba(25, 135, 84, 0.1);
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.accounts-inner-error {
    border-left: 0.25rem solid #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.accounts-inner-summary {
    background: #f8f9fa;
    border: 0.0625rem solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 2rem;
}
.accounts-inner-summary .summary-item {
    display: inline-flex;
    align-items: center;
    margin-right: 1.5rem;
    font-weight: 600;
}
.accounts-inner-summary .country-summary {
    margin-top: 0.5rem;
}
.accounts-inner-summary .country-item {
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
    font-size: 0.9rem;
}

.accounts-inner-summary .messages-summary {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 0.0625rem solid #e9ecef;
}

.accounts-inner-back-btn {
    border: 0.0625rem solid #6c757d;
    color: #6c757d;
    transform: none !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.accounts-inner-back-btn:hover {
    background-color: #6c757d !important;
    color: white  !important;
    border-color: #6c757d  !important;
    transform: none !important;
}

.accounts-inner-back-btn:focus {
    box-shadow: none !important;
    outline: none !important;
    transform: none !important;
}

.accounts-inner-back-btn:active {
    transform: none !important;
}


/* ============================================
   MESSAGE TEMPLATES SPECIFIC STYLES
   Add these to your custom.css file
   ============================================ */

/* Media Library Styles */
.message-templates-media-library {
    border: 0.0625rem solid #dee2e6;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
    padding: 1rem;
    margin-top: 0.5rem;
    max-height: 25rem;
    overflow-y: auto !important;
    display: none;
}

.message-templates-media-library h6 {
    margin-bottom: 0.75rem;
    color: #495057;
    font-weight: 600;
}

.message-templates-media-library .media-item {
    display: inline-block;
    margin: 0.25rem;
    padding: 0.5rem 0.75rem;
    border: 0.0625rem solid #dee2e6;
    border-radius: 0.25rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    white-space: nowrap;
}

.message-templates-media-library .media-item:hover {
    border-color: #007bff;
    background-color: #e7f1ff;
    transform: translateY(-0.0625rem);
    box-shadow: 0 0.125rem 0.25rem rgba(0,123,255,0.15);
}

.message-templates-media-library .media-item i {
    margin-right: 0.5rem;
    color: #6c757d;
}

.message-templates-media-library .media-item:hover i {
    color: #007bff;
}

/* Placeholder Buttons Styles */
.message-templates-placeholder-buttons .placeholder-button {
    margin: 0.125rem 0.25rem 0.125rem 0;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.message-templates-placeholder-buttons .placeholder-button:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    transform: translateY(-0.0625rem);
}

/* Template Preview Box */
.message-templates-template-preview-box {
    border: 0.0625rem solid #dee2e6;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
    padding: 1rem;
    margin-top: 1rem;
    min-height: 6.25rem;
}

.message-templates-template-preview-box h6 {
    margin-bottom: 0.75rem;
    color: #495057;
    font-weight: 600;
    border-bottom: 0.0625rem solid #dee2e6;
    padding-bottom: 0.5rem;
}

.message-templates-template-preview-box #template_preview {
    min-height: 3.75rem;
    line-height: 1.5;
}

/* Template preview badges styling */
.message-templates-template-preview-box .badge {
    margin: 0 0.125rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Locked Template Styles */
.message-templates-locked-template {
    opacity: 0.6;
    background-color: #f8f9fa !important;
}

.message-templates-locked-template td {
    color: #6c757d !important;
}

.message-templates-locked-indicator {
    color: #dc3545;
    font-size: 0.875rem;
    margin-left: 0.25rem;
}

/* Template Text Cell Styling */
.message-templates-template-text-cell {
    max-width: 18.75rem;
    word-wrap: break-word;
    line-height: 1.4;
}

.message-templates-template-text-cell .template-text {
    display: block;
    white-space: pre-wrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* DataTable Row Selection for Templates */
.message-templates-table tbody tr.selected {
    background-color: rgba(13, 110, 253, 0.1) !important;
    border-color: rgba(13, 110, 253, 0.2);
}

.message-templates-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.025);
}

.message-templates-table tbody tr.selected:hover {
    background-color: rgba(13, 110, 253, 0.15) !important;
}

/* Status Badge Improvements */
.message-templates-table .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35em 0.6em;
}

.message-templates-table .badge.bg-success {
    background-color: #198754 !important;
}

.message-templates-table .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.message-templates-table .badge.bg-danger {
    background-color: #dc3545 !important;
}

/* Department Badge Styling */
.message-templates-table .department-badge {
    font-size: 0.75rem;
    padding: 0.35em 0.6em;
    border-radius: 0.25rem;
    font-weight: 500;
}

/* Modal Enhancements for Templates */
.message-templates-modal .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.message-templates-modal .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.message-templates-modal textarea.form-control {
    resize: vertical;
    min-height: 7.5rem;
}

/* Toggle Button Styling */
.message-templates-toggle-media-btn {
    transition: all 0.2s ease;
}

.message-templates-toggle-media-btn:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    transform: translateY(-0.0625rem);
}

.message-templates-toggle-media-btn i {
    transition: transform 0.2s ease;
}

.message-templates-toggle-media-btn:hover i {
    transform: rotate(45deg);
}

/* Action Buttons Hover Effects */
.message-templates-table .btn-group-sm .btn {
    transition: all 0.2s ease;
}

.message-templates-table .btn-group-sm .btn:hover {
    transform: translateY(-0.0625rem);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
}

.message-templates-table .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.message-templates-table .btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Search Container Styling */
.message-templates-search-container .dataTables_filter {
    margin: 0;
}

.message-templates-search-container .dataTables_filter label {
    display: flex;
    align-items: center;
    margin: 0;
    font-weight: normal;
}

.message-templates-search-container .dataTables_filter input {
    margin-left: 0.5rem;
    padding: 0.375rem 0.75rem;
    border: 0.0625rem solid #ced4da;
    border-radius: 0.375rem;
    width: 15.625rem;
}

.message-templates-search-container .dataTables_filter input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .message-templates-media-library {
        max-height: 9.375rem;
        padding: 0.75rem;
    }
    
    .message-templates-template-preview-box {
        padding: 0.75rem;
        margin-top: 0.75rem;
    }
    
    .message-templates-placeholder-buttons .placeholder-button {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
        margin: 0.1rem;
    }
    
    .message-templates-template-text-cell {
        max-width: 12.5rem;
        font-size: 0.875rem;
    }
    
    .message-templates-search-container .dataTables_filter input {
        width: 12.5rem;
    }
}

@media (max-width: 576px) {
    .message-templates-search-container .dataTables_filter input {
        width: 9.375rem;
    }
    
    .message-templates-template-text-cell {
        max-width: 9.375rem;
        font-size: 0.8rem;
    }
    
    .message-templates-media-library .media-item {
        font-size: 0.8rem;
        padding: 0.375rem 0.5rem;
        margin: 0.125rem;
    }
}

/* Loading States */
.message-templates-loading {
    opacity: 0.6;
    pointer-events: none;
}

.message-templates-loading .spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Animation for smooth transitions */
.message-templates-fade-in {
    animation: messageTemplatesFadeIn 0.3s ease-in-out;
}

@keyframes messageTemplatesFadeIn {
    from {
        opacity: 0;
        transform: translateY(0.625rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-templates-slide-down {
    animation: messageTemplatesSlideDown 0.3s ease-in-out;
}

@keyframes messageTemplatesSlideDown {
    from {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    to {
        opacity: 1;
        max-height: 12.5rem;
        overflow: auto;
    }
}

/* Focus states for accessibility */
.message-templates-media-library .media-item:focus,
.message-templates-placeholder-buttons .placeholder-button:focus {
    outline: 0.125rem solid #007bff;
    outline-offset: 0.125rem;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .message-templates-template-preview-box {
        border-width: 0.125rem;
        border-color: #000;
    }
    
    .message-templates-media-library {
        border-width: 0.125rem;
        border-color: #000;
    }
    
    .message-templates-media-library .media-item {
        border-width: 0.125rem;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .message-templates-media-library .media-item,
    .message-templates-placeholder-buttons .placeholder-button,
    .message-templates-table .btn {
        transition: none;
    }
    
    .message-templates-fade-in,
    .message-templates-slide-down {
        animation: none;
    }
}

/* Preview container and layout */

/* WhatsApp Preview Container */
.whatsapp-preview-container {
    max-width: 21.875rem;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* WhatsApp Media Cover */
.whatsapp-media-cover {
    border-radius: 0.5rem 0.5rem 0 0;
    overflow: hidden;
    margin-bottom: 0;
}

.whatsapp-media-single {
    width: 100%;
    height: 12.5rem;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-media-grid {
    display: flex;
    height: 12.5rem;
}

.whatsapp-media-grid.whatsapp-media-two .whatsapp-media-item {
    flex: 1;
    margin-right: 0.0625rem;
}

.whatsapp-media-grid.whatsapp-media-two .whatsapp-media-item:last-child {
    margin-right: 0;
}

.whatsapp-media-grid.whatsapp-media-multiple .whatsapp-media-item {
    flex: 1;
    margin-right: 0.0625rem;
}

.whatsapp-media-grid.whatsapp-media-multiple .whatsapp-media-item:last-child {
    margin-right: 0;
}

.whatsapp-media-item {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.whatsapp-media-placeholder {
    text-align: center;
    color: #6c757d;
}

.whatsapp-media-placeholder i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.whatsapp-media-placeholder span {
    font-size: 0.875rem;
    font-weight: 500;
}

.whatsapp-media-more {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), #f0f0f0;
}

.whatsapp-more-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.whatsapp-more-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 0.0625rem 0.125rem rgba(0,0,0,0.5);
}

.whatsapp-media-link {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-media-link:hover {
    color: inherit;
    text-decoration: none;
}

/* WhatsApp Message Bubble */
.whatsapp-preview-bubble {
    background: #dcf8c6;
    border-radius: 0 0 0.5rem 0.5rem;
    padding: 0.75rem 1rem;
    position: relative;
    margin-bottom: 0.5rem;
    box-shadow: 0 0.0625rem 0.125rem rgba(0,0,0,0.1);
}

.whatsapp-message-text {
    line-height: 1.4;
    color: #111;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.whatsapp-checkmarks {
    position: absolute;
    bottom: 0.5rem;
    right: 0.75rem;
    color: #4fc3f7;
    font-size: 0.75rem;
    font-weight: bold;
}

/* WhatsApp Placeholders */
.whatsapp-placeholder {
    background: rgba(255,255,255,0.3);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.whatsapp-placeholder.whatsapp-numbers {
    background: rgba(33, 150, 243, 0.2);
    color: #1976d2;
}

.whatsapp-placeholder.whatsapp-letters {
    background: rgba(76, 175, 80, 0.2);
    color: #388e3c;
}

.whatsapp-placeholder.whatsapp-alphanumeric {
    background: rgba(255, 152, 0, 0.2);
    color: #f57c00;
}

.whatsapp-placeholder.whatsapp-date {
    background: rgba(156, 39, 176, 0.2);
    color: #7b1fa2;
}

.whatsapp-placeholder.whatsapp-greeting,
.whatsapp-placeholder.whatsapp-farewell {
    background: rgba(233, 30, 99, 0.2);
    color: #c2185b;
}

.whatsapp-placeholder.whatsapp-name {
    background: rgba(63, 81, 181, 0.2);
    color: #3949ab;
}

.whatsapp-placeholder.whatsapp-variable {
    background: rgba(96, 125, 139, 0.2);
    color: #455a64;
}

.whatsapp-placeholder.whatsapp-unknown {
    background: rgba(244, 67, 54, 0.2);
    color: #d32f2f;
}

/* WhatsApp Button */
.whatsapp-button-container {
    margin-top: 0.5rem;
}

.whatsapp-button {
    background: white;
    border: 0.0625rem solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 0.0625rem 0.125rem rgba(0,0,0,0.1);
}

.whatsapp-button-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
    text-align: center;
}

.whatsapp-button-link:hover {
    background-color: #f5f5f5;
    color: #1565c0;
    text-decoration: none;
}

.whatsapp-button-link i {
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-preview-container {
        max-width: 17.5rem;
    }
    
    .whatsapp-media-cover {
        height: 9.375rem;
    }
    
    .whatsapp-media-single,
    .whatsapp-media-grid {
        height: 9.375rem;
    }
    
    .whatsapp-preview-bubble {
        padding: 0.5rem 0.75rem;
    }
    
    .whatsapp-checkmarks {
        bottom: 0.375rem;
        right: 0.5rem;
    }
}


/* Campaign Preview Styles */
.campaign-preview-container {
    background: #f8f9fa;
    border: 0.0625rem solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    position: sticky;
    top: 1rem;
    overflow-y: unset;
}

.campaign-preview-content {
    font-size: 0.9rem;
}

.preview-section {
    border-bottom: 0.0625rem solid #e9ecef;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.preview-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.preview-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    display: block;
}

.preview-value {
    color: #6c757d;
    font-size: 0.9rem;
    word-wrap: break-word;
}

.preview-subvalue {
    color: #adb5bd;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    font-style: italic;
}

.campaign-preview-container .template-preview-box {
    border-radius: 0.275rem;
    margin-top: 0.5rem;
}

/* Preview in Campaign Modal */
.campaign-preview-container .template-preview-box .whatsapp-preview-container {
    max-width: 100%;
    margin: 0;
}

.campaign-preview-container .template-preview-box .whatsapp-preview-bubble {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

.campaign-preview-container .template-preview-box .whatsapp-checkmarks {
    font-size: 0.7rem;
}

/* Responsive adjustments for modal */
@media (max-width: 1200px) {
    .campaign-preview-container {
        position: static;
        margin-top: 2rem;
    }
}

.campaign-preview-container .whatsapp-media-grid {
  height: 9.375rem;
}


/* Tooltip fix */
/* Ensure info icons have proper pointer events */
.form-group label .bi-info-circle,
.form-check-label .bi-info-circle {
    cursor: help !important;
    transition: color 0.2s ease;
    pointer-events: auto !important;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.form-group label .bi-info-circle:hover,
.form-check-label .bi-info-circle:hover {
    color: #0d6efd !important;
}

/* Prevent parent elements from interfering with tooltip triggers */
.form-group label,
.form-check-label {
    pointer-events: auto;
    position: relative;
}

/* Ensure tooltip container has proper z-index */
.tooltip {
    z-index: 1070 !important;
    pointer-events: none;
}

.tooltip-inner {
    max-width: 15.625rem;
    text-align: left;
    background-color: #212529;
    border-radius: 0.275rem;
    padding: 0.5rem 0.75rem;
    line-height: 1.4;
    pointer-events: none;
}

/* Fix for modal tooltips specifically */
.modal .bi-info-circle {
    cursor: help !important;
    pointer-events: auto !important;
}

/* Prevent tooltip flickering */
.tooltip.fade {
    transition: opacity 0.15s linear;
}

/* Fix spacing to prevent hover conflicts */
.form-group label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-group label .bi-info-circle {
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.form-check-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.form-check-label .bi-info-circle {
    margin-left: 0.25rem;
}
/* End Tooltip fix */

.contacts-summary {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
}
.contacts-import-section {
    display: none;
}
.contacts-field-mapping {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-top: 1rem;
}
.contacts-field-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: white;
    border-radius: 0.25rem;
    border: 1px solid #e9ecef;
}
.contacts-field-preview {
    font-family: monospace;
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-right: 1rem;
    min-width: 100px;
    font-size: 0.9rem;
}

.contacts-inner-summary {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
}
.contacts-inner-summary .summary-item {
    display: inline-flex;
    align-items: center;
    margin-right: 1.5rem;
    font-weight: 600;
}
.contacts-inner-summary .country-summary {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}
.contacts-inner-summary .country-item {
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
    font-size: 0.9rem;
}
.contacts-inner-back-btn {
    border: 1px solid #6c757d;
    color: #6c757d;
    transform: none !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.contacts-inner-back-btn:hover {
    background-color: #6c757d !important;
    color: white !important;
    border-color: #6c757d !important;
    transform: none !important;
}
.contacts-inner-back-btn:focus {
    box-shadow: none !important;
    outline: none !important;
    transform: none !important;
}
.contacts-inner-back-btn:active {
    transform: none !important;
}
.contacts-editable-cell {
    position: relative;
}

.contacts-save-btn {
    padding: 0.125rem 0.375rem;
    font-size: 0.75rem;
}

.contacts-editable-input {
    border: 1px solid #dee2e6;  /* Always show border */
    background: #ffffff;        /* Always show white background */
    padding: 0.25rem;
    width: 100%;
    transition: all 0.2s ease;
    border-radius: 0.25rem;     /* Add slight rounded corners */
}

.contacts-editable-input:focus {
    border-color: #0d6efd;
    background-color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: none;
}

.contacts-editable-input:hover {
    border-color: #adb5bd;      /* Subtle hover effect */
}

/* Keep the change indicator styling */
.contacts-changed {
    background-color: #fff3cd !important;
    border-left: 3px solid #ffc107;
}



/* CAMPAIGNS */

        .campaign-status-badge {
            font-weight: 600;
        }
        
        .campaign-toggle-btn {
            border: none;
            background: none;
            width: 32px;
            height: 32px;
            border-radius: 0.2rem;
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;            
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }
        
        .campaign-toggle-btn.running {
            background-color: #dc3545;
            color: white;
        }
        
        .campaign-toggle-btn.stopped {
            background-color: #28a745;
            color: white;
        }
        
        
        .country-flags {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            max-width: 200px;
        }
        

        
        .reply-rate-cell {
            font-size: 0.9em;
        }
        
        .reply-rate-percentage {
            color: #6c757d;
            font-size: 0.8em;
        }
        
        .datetime-scheduled {
            color: #6c757d;
            font-size: 0.85em;
            margin-top: 2px;
        }
        
        .datetime-scheduled i {
            margin-right: 3px;
        }
        
        .message-preview {
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            padding: 12px;
            margin-top: 8px;
            font-size: 0.9em;
            max-height: 120px;
            overflow-y: auto;
        }
        
        .countries-container {
            margin-top: 8px;
        }
        
        .countries-toggle {
            cursor: pointer;
            color: #007bff;
            text-decoration: none;
            margin-left: 8px;
        }
        
        .countries-toggle:hover {
            text-decoration: underline;
        }
        
        .countries-list {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 6px;
        }
        
        .countries-list.collapsed {
            max-height: 30px;
            overflow: hidden;
        }
        
        .account-stats {
            font-size: 0.9em;
        }
      
        .countries-stats {
            font-size: 0.9em;
        }

        .banned-invalid-count {
            color: #dc3545;
            font-size: 0.8em;
        }

        .table tbody tr:hover .progress {
            background-color: #dee2e6 !important; /* Darker grey than hover */
        }

        .table tbody tr:hover .progress .progress-bar.bg-primary {
            background-color: #0d6efd !important;
        }

        .table tbody tr:hover .progress .progress-bar.bg-success {
            background-color: #198754 !important;
        }

        .table tbody tr:hover .progress .progress-bar.bg-info {
            background-color: #0dcaf0 !important;
        }

        .table tbody tr:hover .progress .progress-bar.bg-warning {
            background-color: #ffc107 !important;
        }


    .input-group-text {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }


    /* SELECT 2 SPEFICIC */

/* SELECT 2 SPECIFIC */

/* ======================================== 
   LEGACY MODAL SUPPORT - KEEP UNCHANGED 
   ======================================== */

/* Single selection - match your form-control styling */
.modal-body .select2-container--bootstrap-5 .select2-selection--single {
    padding: 0.875rem 1rem;
    border: 1px solid #dde1e6;
    border-radius: 4px;
    background: #ffffff;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 400;
    min-height: auto;
    height: auto;
}

.modal-body .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0;
    line-height: 1.5;
}

/* Multiple selection - match your form-control styling */
.modal-body .select2-container--bootstrap-5 .select2-selection--multiple {
    padding: 0.5rem 1rem;
    border: 1px solid #dde1e6;
    border-radius: 4px;
    background: #ffffff;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 400;
    min-height: calc(0.875rem * 2 + 1.4em + 2px); /* Match single select height when empty */
}

/* Placeholder styling to match your form controls */
.modal-body .select2-container--bootstrap-5 .select2-selection__placeholder {
    color: #c7c7c7 !important;
    font-size: 0.85rem;
    font-weight: 400;
}

/* Arrow styling with proper right positioning */
.modal-body .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.modal-body .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow b {
    border-color: #6b7280 transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 0;
    left: 50%;
    margin-left: -4px;
    margin-top: -2px;
    position: absolute;
    top: 50%;
    width: 0;
    display: block;
}

/* Arrow rotation on open */
.modal-body .select2-container--bootstrap-5.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #6b7280 transparent;
    border-width: 0 4px 5px 4px;
}

/* Ensure the selection text doesn't overlap with arrow */
.modal-body .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    padding-right: 2.5rem; /* Space for arrow */
}

/* MULTIPLE SELECT ARROW - ONLY */
.modal-body .select2-container--bootstrap-5 .select2-selection--multiple {
    position: relative;
}

.modal-body .select2-container--bootstrap-5 .select2-selection--multiple::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    border-color: #6b7280 transparent transparent transparent;
    pointer-events: none;
    z-index: 1;
}

.modal-body .select2-container--bootstrap-5.select2-container--open .select2-selection--multiple::after {
    border-color: transparent transparent #6b7280 transparent;
    border-width: 0 4px 5px 4px;
}

/* Copy EXACT positioning from single select */
.modal-body .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered {
    padding-right: 2.5rem !important;
}

/* Position clear button EXACTLY like single select */
.modal-body .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__clear {
    position: absolute;
    right: 1.7rem !important;
    top: 50%;
    transform: translateY(-50%);
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.5rem;
}

/* Disabled state */
.modal-body .select2-container--bootstrap-5.select2-container--disabled .select2-selection--single,
.modal-body .select2-container--bootstrap-5.select2-container--disabled .select2-selection--multiple {
    background-color: #e9ecef;
    opacity: 1;
    color: #6c757d;
}

/* Tag styling for multiple selections */
.modal-body .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    margin: 0.125rem 0.25rem 0.125rem 0;
    font-size: 0.8rem;
    font-weight: 400;
}

.modal-body .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove {
    width: .55rem !important;
    height: .55rem !important;    
    color: rgba(255, 255, 255, 0.8);
    margin-right: 0.25rem;
    margin-left: 0;
}

.modal-body .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: white;
    background: none;
}

/* Search input within multiple selection */
.modal-body .select2-container--bootstrap-5 .select2-selection--multiple .select2-search__field {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 400;
    margin-top: 0.125rem;
    margin-bottom: 0.125rem;
}

.modal-body .select2-container--bootstrap-5 .select2-selection--multiple .select2-search__field::placeholder {
    color: #c7c7c7;
    font-size: 0.85rem;
}

/* Remove default Select2 clear button styling conflicts */
.modal-body .select2-container--bootstrap-5 .select2-selection__clear {
    color: #6b7280;
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

.modal-body .select2-container--bootstrap-5 .select2-selection__clear:hover {
    color: #dc3545;
}

/* Remove all focus states and blue outlines */
.modal-body .select2-container--bootstrap-5 .select2-selection--single:focus,
.modal-body .select2-container--bootstrap-5 .select2-selection--multiple:focus,
.modal-body .select2-container--bootstrap-5 .select2-selection--single:focus-visible,
.modal-body .select2-container--bootstrap-5 .select2-selection--multiple:focus-visible,
.modal-body .select2-container--bootstrap-5 .select2-selection,
.modal-body .select2-container--bootstrap-5 .select2-selection:focus,
.modal-body .select2-container--bootstrap-5 .select2-selection:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: 1px solid #dde1e6 !important;
}

/* Override any Bootstrap or Select2 default focus styles */
.modal-body .select2-container--bootstrap-5 *:focus {
    outline: none !important;
    box-shadow: none !important;
}

.modal-body .select2-container--bootstrap-5.select2-container--open .select2-selection--single,
.modal-body .select2-container--bootstrap-5.select2-container--open .select2-selection--multiple {
    outline: none !important;
    box-shadow: none !important;
    border: 0.0625rem solid #028be5 !important;
}

.modal-body .select2-container--bootstrap-5 .select2-selection--single {
    box-sizing: border-box;
}

.modal-body .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__placeholder {
    margin-top: 0.25rem; /* Adjust this value to center it perfectly */
    line-height: 1.4;
}

/* Alternative - if the above doesn't work, try this instead */
.modal-body .select2-container--bootstrap-5 .select2-selection--multiple {
    display: flex;
    align-items: center;
}

/* Light blue tags for multiple selections */
.modal-body .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    background-color: #e3f2fd; /* Light blue background */
    border-color: #bbdefb; /* Light blue border */
    color: #1976d2; /* Darker blue text */
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    margin: 0.125rem 0.25rem 0.125rem 0;
    font-size: 0.8rem;
    font-weight: 400;
}

/* Replace the SVG with red version */
.modal-body .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23c62828'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") 50%/.75rem auto no-repeat !important;
}

/* Hover state - brighter red */
.modal-body .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove:hover {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23d32f2f'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") 50%/.75rem auto no-repeat !important;
}

/* Lighter blue for selected options in dropdown */
.modal-body .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--selected,
.modal-body .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option[aria-selected="true"]:not(.select2-results__option--highlighted) {
    color: #fff !important;
    background-color: #87ceeb !important; /* Light blue instead of #0d6efd */
}

/* Fix multiple select layout without breaking placeholder */
.modal-body .select2-container--bootstrap-5 .select2-selection--multiple {
    min-height: calc(0.875rem * 2 + 1.4em + 2px);
    display: block;
}

.modal-body .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered {
    width: 100%;
    overflow: hidden; /* Prevent overflow */
}

/* Simple placeholder centering fix */
.modal-body .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__placeholder {
    line-height: 1.4;
    padding-top: 0.125rem;
}

/* Blue border for Select2 when it has value */
.modal-body .select2-container.has-value .select2-selection--single,
.modal-body .select2-container.has-value .select2-selection--multiple {
    border-color: #2563eb !important;
}

/* ======================================== 
   BOOTSTRAP ZONE - HIGH SPECIFICITY RULES
   ======================================== */

/* Single selection - match your form-control styling */
body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--single,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--single {
    padding: 0.875rem 1rem;
    border: 1px solid #dde1e6;
    border-radius: 4px;
    background: #ffffff;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 400;
    min-height: auto;
    height: auto;
}

body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0;
    line-height: 1.5;
}

/* Multiple selection - match your form-control styling */
body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple {
    padding: 0.5rem 1rem;
    border: 1px solid #dde1e6;
    border-radius: 4px;
    background: #ffffff;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 400;
    min-height: calc(0.875rem * 2 + 1.4em + 2px); /* Match single select height when empty */
}

/* Placeholder styling to match your form controls */
body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection__placeholder,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection__placeholder {
    color: #c7c7c7 !important;
    font-size: 0.85rem;
    font-weight: 400;
}

/* Arrow styling with proper right positioning */
body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
}

body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow b,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow b {
    border-color: #6b7280 transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 0;
    left: 50%;
    margin-left: -4px;
    margin-top: -2px;
    position: absolute;
    top: 50%;
    width: 0;
    display: block;
}

/* Arrow rotation on open */
body .bootstrap-zone .select2-container--bootstrap-5.select2-container--open .select2-selection--single .select2-selection__arrow b,
html .bootstrap-zone .select2-container--bootstrap-5.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #6b7280 transparent;
    border-width: 0 4px 5px 4px;
}

/* Ensure the selection text doesn't overlap with arrow */
body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    padding-right: 2.5rem; /* Space for arrow */
}

/* MULTIPLE SELECT ARROW - ONLY */
body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple {
    position: relative;
}

body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple::after,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    border-color: #6b7280 transparent transparent transparent;
    pointer-events: none;
    z-index: 1;
}

body .bootstrap-zone .select2-container--bootstrap-5.select2-container--open .select2-selection--multiple::after,
html .bootstrap-zone .select2-container--bootstrap-5.select2-container--open .select2-selection--multiple::after {
    border-color: transparent transparent #6b7280 transparent;
    border-width: 0 4px 5px 4px;
}

/* Copy EXACT positioning from single select */
body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered {
    padding-right: 2.5rem !important;
}

/* Position clear button EXACTLY like single select */
body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__clear,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__clear {
    position: absolute;
    right: 1.7rem !important;
    top: 50%;
    transform: translateY(-50%);
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.5rem;
}

/* Disabled state */
body .bootstrap-zone .select2-container--bootstrap-5.select2-container--disabled .select2-selection--single,
body .bootstrap-zone .select2-container--bootstrap-5.select2-container--disabled .select2-selection--multiple,
html .bootstrap-zone .select2-container--bootstrap-5.select2-container--disabled .select2-selection--single,
html .bootstrap-zone .select2-container--bootstrap-5.select2-container--disabled .select2-selection--multiple {
    background-color: #e9ecef;
    opacity: 1;
    color: #6c757d;
}

/* Tag styling for multiple selections */
body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    margin: 0.125rem 0.25rem 0.125rem 0;
    font-size: 0.8rem;
    font-weight: 400;
}

body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove {
    width: .55rem !important;
    height: .55rem !important;    
    color: rgba(255, 255, 255, 0.8);
    margin-right: 0.25rem;
    margin-left: 0;
}

body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove:hover,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: white;
    background: none;
}

/* Search input within multiple selection */
body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple .select2-search__field,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple .select2-search__field {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 400;
    margin-top: 0.125rem;
    margin-bottom: 0.125rem;
}

body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple .select2-search__field::placeholder,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple .select2-search__field::placeholder {
    color: #c7c7c7;
    font-size: 0.85rem;
}

/* Remove default Select2 clear button styling conflicts */
body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection__clear,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection__clear {
    color: #6b7280;
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection__clear:hover,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection__clear:hover {
    color: #dc3545;
}

/* Light blue tags for multiple selections */
body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    background-color: #e3f2fd; /* Light blue background */
    border-color: #bbdefb; /* Light blue border */
    color: #1976d2; /* Darker blue text */
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    margin: 0.125rem 0.25rem 0.125rem 0;
    font-size: 0.8rem;
    font-weight: 400;
}

/* Replace the SVG with red version */
body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23c62828'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") 50%/.75rem auto no-repeat !important;
}

/* Hover state - brighter red */
body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove:hover,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove:hover {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23d32f2f'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") 50%/.75rem auto no-repeat !important;
}

/* Lighter blue for selected options in dropdown */
body .bootstrap-zone .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--selected,
body .bootstrap-zone .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option[aria-selected="true"]:not(.select2-results__option--highlighted),
html .bootstrap-zone .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--selected,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option[aria-selected="true"]:not(.select2-results__option--highlighted) {
    color: #fff !important;
    background-color: #87ceeb !important; /* Light blue instead of #0d6efd */
}

/* Fix multiple select layout without breaking placeholder */
body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple {
    min-height: calc(0.875rem * 2 + 1.4em + 2px);
    display: block;
}

body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered {
    width: 100%;
    overflow: hidden; /* Prevent overflow */
}

/* Simple placeholder centering fix */
body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__placeholder,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__placeholder {
    line-height: 1.4;
    padding-top: 0.125rem;
}

/* ======================================== 
   NUCLEAR SPECIFICITY OVERRIDES 
   (These CRUSH Bootstrap defaults)
   ======================================== */

/* Remove all focus states and blue outlines - NUCLEAR SPECIFICITY */
body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--single:focus,
body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple:focus,
body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--single:focus-visible,
body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple:focus-visible,
body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection,
body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection:focus,
body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection:focus-visible,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--single:focus,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple:focus,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--single:focus-visible,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple:focus-visible,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection:focus,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: 1px solid #dde1e6 !important;
}

/* Override any Bootstrap or Select2 default focus styles - NUCLEAR SPECIFICITY */
body .bootstrap-zone .select2-container--bootstrap-5 *:focus,
html .bootstrap-zone .select2-container--bootstrap-5 *:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* HIGHEST SPECIFICITY: Open/Focus state - apply your blue border */
body .bootstrap-zone .select2-container--bootstrap-5.select2-container--focus .select2-selection,
body .bootstrap-zone .select2-container--bootstrap-5.select2-container--open .select2-selection--single,
body .bootstrap-zone .select2-container--bootstrap-5.select2-container--open .select2-selection--multiple,
html .bootstrap-zone .select2-container--bootstrap-5.select2-container--focus .select2-selection,
html .bootstrap-zone .select2-container--bootstrap-5.select2-container--open .select2-selection--single,
html .bootstrap-zone .select2-container--bootstrap-5.select2-container--open .select2-selection--multiple {
    outline: none !important;
    box-shadow: none !important;
    border: 0.0625rem solid #028be5 !important;
}

/* HIGHEST SPECIFICITY: Has-value state - maintain blue border after selection */
body .bootstrap-zone .select2-container.has-value .select2-selection--single,
body .bootstrap-zone .select2-container.has-value .select2-selection--multiple,
html .bootstrap-zone .select2-container.has-value .select2-selection--single,
html .bootstrap-zone .select2-container.has-value .select2-selection--multiple {
    border: 0.0625rem solid #028be5 !important;
    box-shadow: none !important;
}

body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--single,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--single {
    box-sizing: border-box;
}

/* Search input within multiple selection */
body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple .select2-search__field,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple .select2-search__field {
   color: #495057;
   font-size: 0.875rem;
   font-weight: 400;
   margin-top: 0.125rem;
   margin-bottom: 0.125rem;
   border: none !important;
   outline: none !important;
   box-shadow: none !important;
}

body .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple .select2-search__field::placeholder,
html .bootstrap-zone .select2-container--bootstrap-5 .select2-selection--multiple .select2-search__field::placeholder {
   color: #c7c7c7;
   font-size: 0.875rem;
}


/* User filter Select2 styling */
body .bootstrap-zone .user-filter-select2 .select2-selection, html .bootstrap-zone .user-filter-select2 .select2-selection {
    padding: 0.375rem 0.75rem;
}

/* ======================================== 
   SHARED STYLES (No modal/zone conflicts)
   ======================================== */

/* Dropdown positioning fix for modals */
.modal .select2-container {
    z-index: 9999;
}

/* Dropdown styling */


/* Search within dropdown */
.select2-container--bootstrap-5 .select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 0.275rem;
    font-size: 0.9rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    z-index: 1060; /* Ensure it appears above modals */
}

.select2-container--bootstrap-5 .select2-results__option {
    padding: 0.5rem 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: var(--bs-primary);
    color: white;
}

/* Search within dropdown */
.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    border: 1px solid #dde1e6;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #6b7280;
    box-sizing: border-box;
    outline: none !important;
    box-shadow: none !important;    
    width: 100%;
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field::placeholder {
    color: #c7c7c7;
    font-size: 0.85rem;
}


.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field:focus {
    border-color: #028be5;
    outline: none !important;
    box-shadow: none !important;
}


.select2-container--bootstrap-5 .select2-results__option--selected {
    background-color: #f8f9fa;
    color: #495057;
}

.select2-container--bootstrap-5 .select2-search--dropdown {
    padding: 0.5rem;
}

/* Country flag spacing */
.select2-results__option .fi {
    margin-right: 0.5rem;
}

.select2-selection__rendered .fi {
    margin-right: 0.25rem;
}

.pickerSimple, .pickerMultiple, .countrypicker {
    width: 100% !important;
    max-width: none;
}

/* In your CSS */
.pickerSimple, .pickerMultiple, .countrypicker {
    visibility: hidden;
}

.select2-container {
    visibility: visible !important;
}

/* END SELECT2 */

.column-highlighted-phone {
    border: 3px solid #000 !important;
    background-color: #fff3cd !important;
    font-weight: bold !important;
}
.column-highlighted-mapped {
    border: 2px solid #6c757d !important;
    background-color: #f8f9fa !important;
}



.modal-body-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    background-color: rgba(248, 249, 250, 0.8);
    z-index: 999999;
}



/* ONLINE/OFFLINE */

/* Background color classes for online/offline status */
.bg-online .status-icon {
    color: #28a745 !important; /* Green bullet */
}

.bg-offline .status-icon {
    color: #dc3545 !important; /* Red bullet */
}

#yycc-user-status-toggle {
    cursor: pointer;
}

.profile-name {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.01875rem !important;
}

.bg-warning {
    background-color: #d97706 !important;
}

.bg-info {
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
}

.info-card-warning { 
    background: #d97706 !important; 
    color: #fff; 
}
.info-card-info { 
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important; 
    color: #fff; 
}

/* CRM */

        /* CRM specific styles */
        .crm-department-color-option {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .crm-color-box {
            width: 16px;
            height: 16px;
            border-radius: 3px;
            display: inline-block;
            border: 1px solid #dee2e6;
            vertical-align: middle;
            margin-right: 8px;            
        }
        

        .crm-accounts-breakdown {
            text-align: center;
        }

        .crm-accounts-total {
            font-size: 0.9rem;
            color: #495057;
        }

        .crm-accounts-details {
            display: flex;
            gap: 4px;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
        }

        .crm-accounts-details .badge {
            font-size: 0.7rem;
            padding: 2px 6px;
            white-space: nowrap;
        }

        .crm-info-icon {
            font-size: 0.8rem;
            color: #6c757d;
            cursor: help;
        }
        
        .crm-tags-container {
            display: flex;
            gap: 4px;
            flex-wrap: wrap;
            max-width: 200px;
            justify-content: center;
        }
        
        .crm-tag-badge {
            font-size: 0.7rem;
            padding: 2px 6px;
            border-radius: 10px;
            white-space: nowrap;
        }
        
        .crm-agents-form-section {
            display: none;
            padding: 15px;
            background-color: #f8f9fa;
            border-radius: 6px;
            margin-top: 15px;
        }
        
        .crm-agents-form-section.show {
            display: block;
        }

/* END  CRM */

/* CAMPAIGNS INNER */


/* Summary Bar Styling */
.campaigns-inner-summary {
    background: #f8f9fa;
    border: 0.0625rem solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1);
}

.campaigns-inner-summary .summary-item {
    display: inline-flex;
    align-items: center;
    margin-right: 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.campaigns-inner-summary .summary-item:last-child {
    margin-right: 0;
}

.campaigns-inner-summary .country-summary {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 0.0625rem solid #e9ecef;
}

.campaigns-inner-summary .row-summary {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 0.0625rem solid #e9ecef;
}

.campaigns-inner-summary .country-item {
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.campaigns-inner-summary .country-item:last-child {
    margin-right: 0;
}

.campaigns-inner-back-btn {
    border: 0.0625rem solid #6c757d !important;
    color: #6c757d !important;
    transform: none !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
}

.campaigns-inner-back-btn:hover {
    background-color: #6c757d !important;
    color: white !important;
    border-color: #6c757d !important;
    transform: none !important;
}

.campaigns-inner-back-btn:focus {
    box-shadow: none !important;
    outline: none !important;
    transform: none !important;
}

.campaigns-inner-back-btn:active {
    transform: none !important;
}

/* Campaign Info Toggle */
.campaign-info-toggle {
    cursor: pointer;
    user-select: none;
    color: #6c757d;
}

.campaign-info-toggle:hover {
    color: #007bff !important;
}

.campaign-info-content {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin-top: 10px;
    display: none;
}

.campaign-info-row {
    margin-bottom: 8px;
    font-size: 13px;
}

.campaign-info-label {
    font-weight: 600;
    color: #495057;
    display: inline-block;
    min-width: 120px;
}

/* Message Content Toggle */
.message-content-toggle {
    cursor: pointer;
    color: #0d6efd;
    text-decoration: underline;
    font-size: 12px;
}

.message-content-full {
    background: #f8f9fa; 
    padding: 8px; 
    border-radius: 4px; 
    margin-top: 5px; 
    margin-bottom: 10px;
}

.message-toggle {
    cursor: pointer;
    color: #007bff;
    margin-left: 4px;
}

.message-toggle:hover {
    text-decoration: underline;
}

.bc-grey {
    border-color: #e9ecef;
}

.bottom-summary {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 0.0625rem solid #e9ecef;
}

/* CAMPAIGNS INNER */


.agent-login-text {
    display: inline-block;
    max-width: 100px; /* Adjust this value as needed */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}