.ck-editor__editable,
textarea {
    min-height: 150px;
}


.datatable {
    width: 100% !important;
}

table.dataTable tbody td.select-checkbox::before,
table.dataTable tbody td.select-checkbox::after,
table.dataTable tbody th.select-checkbox::before,
table.dataTable tbody th.select-checkbox::after {
    top: 50%;
}

.dataTables_length,
.dataTables_filter,
.dt-buttons {
    margin-bottom: 0.333em;
    margin-top: .2rem;
}

.dataTables_filter {
    margin-right: .2rem;
}

.dt-buttons .btn {
    margin-left: 0.333em;
    border-radius: 0;
}

.table.datatable {
    box-sizing: border-box;
    border-collapse: collapse;
}

table.dataTable thead th {
    border-bottom: 2px solid #c8ced3;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: 1px solid #c8ced3;
}

.select2 {
    max-width: 100%;
    width: 100% !important;
}

.select2-selection__rendered {
    padding-bottom: 5px !important;
}

.has-error .invalid-feedback {
    display: block !important;
}

.btn-info,
.badge-info {
    color: white;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-image: none;
}

.sidebar .nav-item {
    cursor: pointer;
}

.btn-default {
    color: #23282c;
    background-color: #f0f3f5;
    border-color: #f0f3f5;
}

.btn-default.focus,
.btn-default:focus {
    box-shadow: 0 0 0 .2rem rgba(209, 213, 215, .5);
}

.btn-default:hover {
    color: #23282c;
    background-color: #d9e1e6;
    border-color: #d1dbe1;
}

.btn-group-xs>.btn,
.btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.searchable-title {
    font-weight: bold;
}

.searchable-fields {
    padding-left: 5px;
}

.searchable-link {
    padding: 0 5px 0 5px;
}

.searchable-link:hover {
    cursor: pointer;
    background: #eaeaea;
}

.select2-results__option {
    padding-left: 0px;
    padding-right: 0px;
}

.form-group .required::after,
label.required::after {
    content: " *";
    color: red;
}

.form-check.is-invalid~.invalid-feedback {
    display: block;
}

.c-sidebar-brand .c-sidebar-brand-full:hover {
    color: inherit;
}

.custom-select.form-control-sm {
    padding: 0.25rem 1.5rem;
}

/*********************Aya changes*********************/

.c-sidebar {
    background: #141d38 !important;
}

.btn-success {
    background: #0054a6 !important;
}


.logo-img a {
    padding: 15px 40px;
    width: 100%;
    background: #fff;
}

.logo-img a img {
    width: 100%;
}

.c-header {
    min-height: 72px;
    padding: 15px 0;
}

.c-sidebar .c-sidebar-nav-dropdown-toggle:hover {
    background: none;
    color: #fff;
}

.c-sidebar .c-sidebar-nav-dropdown-toggle:hover,
.c-sidebar .c-sidebar-nav-link:hover {
    background: none;
    color: #fff;
}

.c-sidebar .c-active.c-sidebar-nav-dropdown-toggle,
.c-sidebar .c-sidebar-nav-link.c-active {
    background: rgba(255, 255, 255, .09);
    margin: 0 10px;
    border-radius: 10px;
}

.c-sidebar .c-sidebar-nav-dropdown.c-show .c-sidebar-nav-dropdown-toggle,
.c-sidebar .c-sidebar-nav-dropdown.c-show .c-sidebar-nav-link {
    color: #9D9DA6;
}

.c-sidebar .c-sidebar-nav-dropdown-toggle,
.c-sidebar .c-sidebar-nav-link {
    color: #9D9DA6;
}

.btn-primary {
    color: #fff;
    background-color: #0054a6;
    border-color: #0054a6;
}

.btn-primary.disabled,
.btn-primary:disabled {
    color: #0054a6;
    background-color: #fff;
    border-color: #0054a6;
    border: 2px solid;

}

.d-searchable {
    width: 300px;
    height: 40px;
}

.c-header-nav {
    min-height: 40px;
}

.d-searchable .select2-container--default .select2-selection--single {
    height: 40px;
    padding: 5px;
}

.d-searchable .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 26px;
    position: absolute;
    top: 8px;
    right: 5px;
    width: 20px;
}

.select2-dropdown {
    padding: 10px !important;
}

.select2-search--dropdown .select2-search__field {
    border-radius: 3px;
    padding: 5px 10px;
}

.removeProductTechSpec {
    top: 30px;
}

.techSpecRow {
    margin-bottom: 20px;
}

.form-group .btn.btn-danger {
    background-color: #0054a6;
    border-color: #0054a6;
}

/* Tech Specs Accordion */
.tech-specs-accordion {

    border-radius: 8px;
    overflow: hidden;

}

.accordion-item {

    margin: 20px 0;
    border-radius: 8px;
    border-bottom: 1px solid #e5e5e5;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    background-color: #ffffff;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.accordion-item:hover {
    border: 1px solid #e5e5e5;
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.05);
}

.accordion-header:hover {
    background-color: #ffffff;
}

.accordion-title {
    font-weight: 600;
    color: #333;
    font-size: 20px;
}

.accordion-icon {
    transition: transform 0.3s ease;

}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    fill: #478ac9;
    /* Custom color 2 */
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fff;
    border-radius: 8px;
}

.accordion-content-inner {
    padding: 20px;
    line-height: 1.6;
    color: #555;
   
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
}

.accordion-content-inner h4 {
    font-size: 18px;
    color: #0054a6;
    margin: 10px 0;
}

.accordion-content-inner h4 strong {
    font-weight: 500;
}

.accordion-content-inner p {
    font-size: 16px;
    font-weight: 400;
    margin: 10px 0;
}

.accordion-item.active {
    border: 1px solid #e5e5e5;
    margin: 16px 0;
    border-radius: 8px;
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.05);
}

/* Category Layout Fix */
.category-layout-fix {
    margin-top: 0 !important;
}

/* ---- Tom Select (Brands multi-select) ---- */
.ts-wrapper.multi .ts-control {
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    background: #f5f5f5;
    padding: 6px 8px;
}

.ts-wrapper.multi .ts-control .item {
    background: #1a3a6b;
    color: #fff;
    border-radius: 4px;
    padding: 2px 8px;
    margin: 2px;
}

.ts-dropdown {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    background-color: #fff !important;
    z-index: 9999 !important;
    position: absolute !important;
}

.ts-dropdown .ts-dropdown-content {
    background-color: #fff;
}

.ts-dropdown .option.selected {
    background: #e8f0fe;
    color: #1a3a6b;
}

.ts-dropdown .option:hover {
    background: #1a3a6b;
    color: #fff;
}

/* ---- Category Carousel ---- */
.category-carousel-section {
   /* max-width: 1140px;*/
    margin: 0 auto;
    padding: 25px 0;
}

.custom-container
{
    margin: 0 40px;
}

.category-carousel-wrapper {
    position: relative;
  /*  overflow: hidden;*/
}

.category-carousel-wrapper::after {
  content: "";
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #e3e6ec; /* رمادي خفيف */
}

.category-carousel-track {
    display: flex;
    gap: 16px;
    scroll-behavior: smooth;
    padding: 10px 5px 50px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-x: auto;
  overflow-y: visible !important;  
  position: relative;
}

.category-carousel-track::-webkit-scrollbar {
    display: none;
}

.category-carousel-item {
    flex: 0 0 180px;
    min-width: 180px;
    transition: transform 0.2s ease;
    position: relative;
}


.category-carousel-item.category-active .u-repeater-item-1::after {
 content: "";
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background: #2f5fbf;
    z-index: 5;
}

.category-carousel-item.category-active::before {
  content: "";
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #2f5fbf;
  z-index: 6;
}

.category-carousel-item.category-active::after {
  content: "";
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #ffffff;
  z-index: 7;
}

.category-carousel-item.category-active:hover
{
    transform: none;
}

.category-carousel-item:hover {
    transform: translateY(-3px);
}

.category-carousel-item.category-active .u-repeater-item-1 {
    border-color: #478ac9 !important;
    border-width: 2px !important;
    box-shadow: 0 4px 12px rgba(71, 138, 201, 0.25);
}

.category-carousel-item.category-active .categ-card .u-text-1 {
    color: #0054a6;
    font-weight: 600;
}

.category-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #478ac9;
    transition: all 0.2s ease;
}

.category-carousel-btn:hover {
    background: #478ac9;
    color: #fff;
    box-shadow: 0 4px 12px rgba(71, 138, 201, 0.3);
}

.category-carousel-prev {
    left: -55px;
}

.category-carousel-next {
    right: -55px;
}

 @media (max-width: 1199px) {
    
    .accordion-title
    {
        font-size: 18px;
    }

    .accordion-content-inner
    {
        padding: 0 16px 20px;
    }
 }

@media (max-width: 767px) {
    .category-carousel-item {
       flex: 0 0 auto;
    min-width: unset;
    width: auto;
    }

    .accordion-title{
        font-size: 16px;
    }

    .accordion-header{
        padding: 16px;
    }

    .accordion-content-inner
    {
        padding: 16px;
    }

    .category-carousel-section {
        padding: 32px 0;
        padding-bottom: 0;
    }

    .custom-container
    {
        margin: 0 10px;
    }

    .custom-container .u-text-1
    {
        margin: 0 auto !important;
        text-align: center !important;
        font-size: 20px !important;
        margin-bottom: 12px !important;
    }

    .prod-sec .u-section-2 .category-carousel-track .categ-card .u-group-1
    {
        padding: 8px;
    }

    .brand-sec .prod-sec .category-carousel-track .categ-card .u-text-1
    {
        font-size: 16px !important;
    }

    .category-carousel-track
    {
        gap:12px;
    }

    .category-carousel-btn
    {
        width: 24px;
        height: 24px;
    }

    .category-carousel-next{
        right: -30px;
    }

    .category-carousel-prev
    {
        left: -30px;
    }
}

/*------------New Ticket - FAQs Page----------------*/

.ticket-layout{
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin: 0 32px;
}

/* columns */
.ticket-col--form{ flex: 0 0 60%; }
.ticket-col--faq { flex: 1; } /* باقي المساحة ~35% */

.ticket-faq{
  background: #f8fafc;
  border-radius: 16px;
  padding: 28px;
}



/* العنوان والوصف */
.ticket-col--faq .ticket-faq h3 {
      font-size: 24px;
    line-height: 1.2;
    margin: 0 0 8px;
    font-weight: 500;
}

.ticket-col--faq .ticket-faq p {
      font-size: 14px;
    line-height: 1.6;
    margin: 0 0 18px;
    font-weight: 400;
    color: #111111;
}

/* كل سؤال: بدل كارت أبيض، نخليه صف + خط فاصل */
.ticket-col--faq .accordion-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(0,0,0,0.10);
  border-radius: 0;
  margin: 0;
  box-shadow: none;
}

.ticket-col--faq .accordion-item:last-child
{
    border-bottom: 0;
}

/* الهيدر */
.ticket-col--faq .accordion-header {
  background: transparent !important;
  padding: 14px 0 !important;
  border-radius: 0 !important;
  align-items: center;
}

/* النص */
.ticket-col--faq .accordion-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

/* الايقونة */
.ticket-col--faq .accordion-icon {
  width: 22px;
  height: 22px;
  opacity: 0.75;
}

/* حالة الـ active: إبراز بسيط + خط سفلي ملون */
.ticket-col--faq .accordion-item.active .accordion-header {
  padding-bottom: 12px !important;
}

.ticket-col--faq .accordion-item.active .accordion-title {
  opacity: 1;
}

/* محتوى الإجابة */
.ticket-col--faq .accordion-content {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

.ticket-col--faq .accordion-item.active .accordion-content-inner {
  padding: 10px 0 16px;
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.85;
}

/* لو عندك bullet list جوه الإجابة */
.ticket-col--faq .accordion-content-inner ul {
  margin: 10px 0 0;
  padding-left: 18px;
}
.ticket-col--faq .accordion-content-inner li {
      margin: 6px 0;
    font-size: 14px;
    font-weight: 400;
    color: #111111;
    opacity: 0.75;
}

/* Focus state محترم للكيبورد فقط */
.ticket-col--faq .accordion-header:focus-visible {
  outline: 2px solid rgba(37,95,191,0.45);
  outline-offset: 4px;
  border-radius: 8px;
}



.ticket-col--faq .accordion-item.active .accordion-header {
  border-bottom: none !important;
  box-shadow: none !important;
}

@media (max-width: 1199px) {

     .ticket-layout{
        margin: 0;
     }
}

@media (max-width: 768px){

    .ticket-layout{
  display: flex;
  flex-direction: column;
  gap: 24px;
   margin: 0;
    margin-bottom: 24px;
   
}
}

 @media (max-width: 575px) {
    
    .ticket-layout{
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  margin-bottom: 24px;
}


 }

