/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

/* Target all DataTables Buttons in your custom container */
#buttons-container .dt-button {
    background-color: #7367f0 !important;
    border: 1px solid #7367f0 !important;
    border-radius: 4px;
    color: #fff !important;
    box-shadow: none !important;
}

.tabs .tab {
    padding: 6px 16px;
    border-radius: 999px;
    cursor: pointer;
    background-color: #f0f0f0;
    /* margin-right: 0.5rem; */
    transition: background 0.3s;
    font-size: 14px;
}

.tabs .tab.active {
    background-color: #5A5FF7;
    color: white;
    font-weight: 500;
}

.swal2-container {
    z-index: 2000 !important;
}

.ck-editor .ck-editor__main .ck-content {
    min-height: 250px;
}

@media (max-width: 576px) {
    .tabs {
        flex-wrap: wrap;
    }

    .tabs .tab {
        margin-bottom: 6px;
    }
}

.dataTables_processing {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    /* transform: translate(-50%, -50%); */
    z-index: 9999 !important;
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* On hover, darken slightly */
#buttons-container .dt-button:hover {
    background-color: #685dd8 !important;
    border-color:    #685dd8 !important;
    border-radius: 4px;
    color: #fff !important;
}

.light-style .menu .app-brand.demo {
  height: 64px;
}

.dark-style .menu .app-brand.demo {
  height: 64px;
}

.parsley-errors-list {
    color: red;              /* Red text */
    list-style: none;        /* Remove bullet/dot */
    padding-left: 0;         /* Remove default padding */
    margin-top: 5px;         /* Optional: small spacing */
    font-size: 0.875rem;     /* Optional: make it subtle */
}

.btn-ellipsis {
    font-size: 24px;
    padding: 8px 12px;
    width: 40px;
    height: 40px;
    line-height: 1;
    }

.app-brand-logo.demo {
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    display: -ms-flexbox;
    display: flex;
    /* width: 34px;
    height: 24px; */
    width: 89%;
    height: 35px;
}

.app-brand-logo.demo svg {
  width: 35px;
  height: 24px;
}

.app-brand-text.demo {
  font-size: 1.375rem;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 78px !important;
}
/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

.table-scroll-wrapper {
    max-height: 400px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

table.data-table {
    min-width: 1200px;
    width: 100%;
    border-collapse: collapse;
}

.data-table th,#leads-table td {
    padding: 10px 14px !important;
    white-space: nowrap;
    vertical-align: middle;
}

.card-footer .dataTables_paginate {
    margin: 0;
    display: flex !important;
    justify-content: flex-end !important;
    white-space: nowrap;
}

.data-table thead th {
    position: relative;
    padding-right: 25px;
    min-width: 120px;
    white-space: nowrap;
}

.data-table thead th.sorting::after,.data-table thead th.sorting_asc::after,.data-table thead th.sorting_desc::after {
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.column-search {
    width: 100%;
    box-sizing: border-box;
}

#length-container .dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 254px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}
