 /* Match Minible textbox border style for Select2 controls */
 .select2-container .select2-selection--single {
     height: calc(1.5em + 0.94rem + 2px) !important;
     border: 1px solid #6c757d !important;
     border-radius: 0.25rem !important;
     background-color: #fff !important;
 }

 .select2-container .select2-selection--single .select2-selection__rendered {
     line-height: calc(1.5em + 0.94rem) !important;
     padding-left: 0.75rem !important;
     color: #495057 !important;
 }

 .select2-container .select2-selection--single .select2-selection__arrow {
     height: calc(1.5em + 0.94rem + 2px) !important;
     right: 8px !important;
 }

 .select2-container--open .select2-selection--single,
 .select2-container--focus .select2-selection--single {
     border-color: #343a40 !important;
     box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.2) !important;
 }

 select.is-invalid+.select2-container .select2-selection--single {
     border-color: #dc3545 !important;
 }

 /* custom Switch styles */
 .is-active-switch-item {
     display: flex;
     align-items: center;
     gap: 12px;
     min-height: 38px;
 }

 .is-active-switch-title {
     margin: 0;
     font-weight: 600;
     color: #2f3640;
     white-space: nowrap;
     min-width: 70px;
 }

 .is-active-switch-control {
     display: inline-flex;
     align-items: center;
     flex-shrink: 0;
 }

 @media (max-width: 991.98px) {
     body[data-sidebar-size=sm] .main-content {
         margin-left: 0 !important;
     }

     body[data-sidebar-size=sm] .footer {
         left: 0 !important;
     }

     body[data-sidebar-size=sm] .vertical-menu {
         left: 0;
         transform: translateX(-100%);
         transition: transform .25s ease;
         z-index: 1005;
     }

     body.sidebar-enable[data-sidebar-size=sm] .vertical-menu {
         transform: translateX(0);
     }
 }

 @media (max-width: 575.98px) {
     #page-topbar .navbar-header {
         padding: 0 6px 0 0;
     }

     #page-topbar .navbar-header>.d-flex:last-child {
         flex: 1 1 auto;
         min-width: 0;
         justify-content: flex-end;
         gap: 4px;
     }

     #page-topbar .d-inline-flex.d-md-none.align-items-center.me-1 {
         margin-right: 0 !important;
         min-width: 0;
     }

     #page-topbar .js-company-form {
         flex: 1 1 auto;
         min-width: 0;
         max-width: 170px;
     }

     #page-topbar .js-company-select,
     #page-topbar .js-company-form .select2-container {
         width: 100% !important;
         min-width: 0 !important;
     }

     #page-topbar .js-company-form .select2-container .select2-selection--single {
         height: 34px !important;
     }

     #page-topbar .js-company-form .select2-selection__rendered {
         font-size: 11px;
         padding-left: 8px !important;
         padding-right: 18px !important;
     }

     #page-topbar .badge.bg-soft-primary {
         max-width: 70px;
         font-size: 10px;
         padding: 4px 6px !important;
         overflow: hidden;
         text-overflow: ellipsis;
         white-space: nowrap;
     }
 }

 @media (max-width: 420px) {
     #page-topbar .badge.bg-soft-primary {
         display: inline-block !important;
         max-width: 62px;
         font-size: 9px;
         padding: 3px 5px !important;
     }

     #page-topbar .js-company-form {
         max-width: 150px;
     }
 }


 /* Keep space between clear icon (x) and dropdown arrow */
 .select2-container--default .select2-selection--single .select2-selection__rendered {
     padding-right: 52px;
 }

 .select2-container--default .select2-selection--single .select2-selection__clear {
     right: 8px;
     margin-right: 0;
 }

 .select2-container--default .select2-selection--single .select2-selection__arrow {
     right: 8px;
 }

 .select2-results__option--highlighted .select2-add-new-option {
     color: #fff;
 }

 @media (max-width: 767.98px) {
     .add-new-wrapper.is-creating .add-new-input {
         flex: 1 1 100%;
     }

     .add-new-wrapper.is-creating .add-new-actions {
         width: 100%;
     }
 }

    /* SUCCESS */
.toast-success {
	background-color: #198754 !important; /* Bootstrap green */
	color: #ffffff !important;
}
 
/* ERROR */
.toast-error {
	background-color: #dc3545 !important; /* Bootstrap red */
	color: #ffffff !important;
}
 
/* INFO */
.toast-info {
	background-color: #0dcaf0 !important; /* Bootstrap info */
	color: #000000 !important;
}
 
/* WARNING */
.toast-warning {
	background-color: #ffc107 !important; /* Bootstrap warning */
	color: #000000 !important;
}
 
/* Title text */
.toast-title {
	font-weight: 600;
}
 
/* Message text */
.toast-message {
	font-size: 14px;
}
 
/* Close button */
.toast-close-button {
	color: #ffffff !important;
	opacity: 0.8;
}

/* Dark border for all form controls globally */
.form-control,
.form-select {
    border-color: #6c757d !important;
}
.form-control:focus,
.form-select:focus {
    border-color: #343a40 !important;
    box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.2) !important;
}
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545 !important;
}

/* Dark border for all DataTables */
.dataTable,
.dataTable th,
.dataTable td,
.table-bordered,
.table-bordered th,
.table-bordered td {
    border-color: #7a7a7a !important;
}
.dataTable thead th,
.table-bordered thead th {
    border-bottom: 2px solid #7a7a7a !important;
}

/* Compact spacing for all Yajra/DataTables rows */
table.dataTable thead th,
table.dataTable tbody td {
	padding: 0.25rem 0.6rem !important;
	vertical-align: middle;
}

table.dataTable>tbody>tr.child ul.dtr-details>li {
	padding: 0.35rem 0.6rem !important;
}