/* Dropdown menu styling */
.dt-button-collection.dropdown-menu {
    padding: 0;
    border-radius: 8px;
    border: 1px solid #ddd;
    min-width: 180px;
    overflow: hidden;
}

/* Dropdown items inside Export menu */
.dt-button-collection .dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    transition: 0.2s;
}

.dt-button-collection .dropdown-item:hover {
    background: #f5f5f5;
    color: #111;
}

/* Fix alignment for icons */
.dt-button-collection .dropdown-item i {
    width: 18px;
    text-align: center;
}


/* Sticky table header (position: sticky) */
.table thead th {      /* ensure header is above other content */
  background: #F3F0EC !important;     /* make sure header has a background (replace if your theme header differs) */
  border-bottom: 2px solid #e5e5e5 !important;
}

textarea.form-control {
    min-height: 80px !important;

    resize: vertical !important;
    overflow: auto !important;
}


.sticky-top {
  z-index: 1 !important; }

  .no-border {
    border: none !important;
  }


  .doc-table td, .doc-table th {
    vertical-align: middle !important;
  }

  .timeline li{
    list-style: none !important;
  }

.bs-like-select {
    position: relative;
    display: inline-block;
    width: 100%;
}
  

/* custom arrow (like bootstrap-select) */
.bs-like-select::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    width: 0;
    height: 0;
    pointer-events: none;
    transform: translateY(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #9b9b9b;
}

.order-timeline {
    list-style: none;
    padding-left: 0;
    position: relative;
}

.order-timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.order-timeline li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 25px;
}

.timeline-dot {
    position: absolute;
    left: 10px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #adb5bd;
    border: 2px solid #adb5bd;
}

.order-timeline li.completed .timeline-dot {
    background: var(--secondary);
    border-color: var(--secondary);
}

.order-timeline li.current .timeline-dot {
    background: var(--primary);
    border-color: var(--primary);
}

.timeline-content {
    padding-top: 2px;
}


@media print {
    .sticky-top {
        position: static !important;
        top: auto !important;
    }
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 50px;
    background: #ff3d3d;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.notification-menu {
    width: 380px;
    padding: 0;
}

.notification-header {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    font-size: 14px;
}

.notification-body {
    background: #fff;
}

.notification-item {
    display: flex;
    padding: 12px 15px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f1f1f1;
    transition: background 0.2s ease;
}

.notification-item:hover {
    background: #f5f7fa;
}

.notification-item.unread {
    background: #f2f4f7; /* light secondary */
    font-weight: 500;
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.notification-content {
    flex: 1;
}

.notification-message {
    font-size: 13px;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 11px;
    color: #888;
}

.notification-footer {
    padding: 10px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.notification-item.unread::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #0d6efd;
    border-radius: 50%;
    position: absolute;
    margin-left: -10px;
    margin-top: 6px;
}

.fade-in {
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.4s ease;
}

.notification-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.notification-item {
    transition: background 0.2s ease, transform 0.3s ease;
}

.notification-row {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f1f1f1;
    transition: background 0.2s ease;
}

.notification-row:hover {
    background: #f8f9fa;
}

.notification-row.unread {
    background: #f2f4f7;
    font-weight: 500;
}

.notification-left {
    width: 50px;
    display: flex;
    justify-content: center;
}

.notification-main {
    flex: 1;
}

.notification-message {
    font-size: 14px;
}

.notification-meta {
    font-size: 12px;
    color: #777;
}

.notification-action {
    margin-left: 15px;
}

.header-media img {
    width: 45px;
    height: 45px;
    border-radius: 8px; /* NOT circle */
}

.header-avatar-initial {
    width: 45px;           /* match original image */
    height: 45px;          /* match original image */
    border-radius: 8px;    /* match original shape */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    
}