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

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

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

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

.app-brand-logo.demo img {
  width: 60px;
  height: 60px;
  margin-left: -9px;
}

.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: 72px !important;
}
/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* 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;
}
/* Custom styles for enhanced UX */
.select2-container--bootstrap-5 .select2-dropdown {
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

.select2-container--bootstrap-5 .select2-selection {
    min-height: 56px;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem !important;
}

#barcodeCard {
    transition: all 0.15s ease-in-out;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

#barcodeCard.show {
    opacity: 1;
}

.form-floating label {
    color: #6c757d;
    transition: all 0.2s ease-in-out;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    border-color: #86b7fe;
}
.resolve-btn {
    border-radius: 20px;
    transition: all 0.3s ease;
}

.resolve-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.disable-btn {
  opacity: 0.6;
  cursor: not-allowed;
}
/* Add this CSS to your stylesheet */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}


.choices__list--multiple .choices__item {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
    padding: 0.35rem 0.75rem;
    margin-bottom: 0;
}

.choices__list--multiple .choices__item .choices__button {
    border-left-color: rgba(255,255,255,0.3);
    margin-left: 0.5rem;
    padding-left: 0.5rem;
}

.choices__input {
    border: none !important;
    background: transparent !important;
    margin-bottom: 0 !important;
}

.choices__inner {
    border: 1px solid #dee2e6 !important;
    min-height: auto !important;
    padding: 0.375rem 0.75rem !important;
    background-color: white !important;
}

.choices[data-type*="select-multiple"] .choices__inner,
.choices[data-type*="text"] .choices__inner {
    cursor: text !important;
}

.choices__list--dropdown {
    z-index: 1060 !important;
}

.table-container {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Important for flex children */
}

.table-responsive {
    overflow-x: auto;
    flex-grow: 1;
    min-height: 0; /* Important for flex children */
}

.pagination-container {
    position: sticky;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 10;
    width: 100%;
}

.pagination-container .card-footer {
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.nb_colis_shape{
    width: 32px;
    height: 32px;
    line-height: 32px;
}

.modal-backdrop-debrief-details{
    z-index: 1050;
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}
.custom-modal-details{
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    margin-top: 77px;
    margin-left: 178px;
}
.td-small-address {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.dt-responsive thead th {
    white-space: nowrap;
}

.details-control span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 18px;
    color: #fff;
    background-color: #7367f0;
    border-radius: 50%;
    transition: all 0.3s ease;
    user-select: none;
}

tr.shown .details-control span {
    transform: rotate(180deg);
}
.colis-table {
    width: 100%;
}
.colis-table th {
    background-color: #f5f5f9;
}
.agence-header {
    background-color: #f8f9fa;
    border-left: 3px solid #7367f0;
}

.timeline-scroller {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #adb5bd #f1f3f5;
}

.timeline-scroller::-webkit-scrollbar {
    width: 8px;
}

.timeline-scroller::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 10px;
}

.timeline-scroller::-webkit-scrollbar-thumb {
    background-color: #adb5bd;
    border-radius: 10px;
    border: 2px solid #f1f3f5;
}

.timeline-scroller::-webkit-scrollbar-thumb:hover {
    background-color: #868e96;
}

.timeline-container {
    position: relative;
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.75rem;
    padding-left: 2rem;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.6rem;
    top: 0.25rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #6c757d;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.2);
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item.active::before {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(108, 117, 125, 0.3);
}

.etat-badge {
    font-size: 0.85rem;
    padding: 0.5em 0.8em;
    border-radius: 0.5rem;
    font-weight: 600;
    display: inline-block;
    color: #fff;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.etat-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.timeline-content {
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #495057;
}

.timeline-meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.timeline-meta-item i {
    font-size: 0.8rem;
    color: #6c757d;
}

.timeline-meta-item strong {
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline-scroller {
        max-height: 60vh;
        padding-right: 0.5rem;
    }

    .timeline-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }

    .timeline-item::before {
        left: -0.5rem;
        width: 14px;
        height: 14px;
    }
}
.cursor-pointer {
    cursor: pointer;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    background: none !important;
    box-shadow: none !important;
}



