html,
body {
  height: 100%;
  font-family: "Roboto", sans-serif;
}

.chart-container {
  width: 100%;
  height: 75vh;
  border: 1px solid #ddd;
}

.controls {
  text-align: center;
  margin: 15px 0 15px 0;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  width: 270px !important;
}

.tracking-list {
  margin-bottom: 1rem;
  margin-left: 70px;
  position: relative;
}
[class*="tracking-status-"] p {
  margin: 0;
  font-size: 1.1rem;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
}
[class*="tracking-status-"] {
  padding: 1.6rem 0;
}

.tracking-item {
  border-left: 1px solid #e5e5e5;
  position: relative;
  padding: 1.4rem 1.5rem 1rem 2.5rem;
  font-size: 0.9rem;
  margin-left: 5rem;
  min-height: 7rem;
}
.tracking-item:last-child {
  padding-bottom: 4rem;
}

.tracking-status-text {
  position: absolute;
  top: 1.4rem;
  font-size: 0.9rem !important;
  font-weight: 600;
  left: -10rem;
  top: 0;
  width: 7.5rem;
  text-align: right;
}

.tracking-item .tracking-date {
  top: 3rem;
  position: absolute;
  left: -10rem;
  width: 7.5rem;
  text-align: right;
}
.tracking-item .tracking-date span {
  color: #888;
  font-size: 85%;
  padding-left: 0.4rem;
  display: block;
}
.tracking-item .tracking-content {
  border-radius: 0.5rem;
  padding: 0;
  background-color: transparent;
}
.tracking-item .tracking-content span {
  display: block;
  color: #888;
  font-size: 85%;
}
.tracking-item .tracking-icon {
  line-height: 2.6rem;
  position: absolute;
  left: -1.3rem;
  width: 2.6rem;
  height: 2.6rem;
  text-align: center;
  border-radius: 50%;
  font-size: 1.1rem;
  background-color: #fff;
  color: #fff;
}
.tracking-item-active{
  background-color: #ffc10778 !important;
}

/* Mobil uyumlu tablo stilleri */
@media (max-width: 767.98px) {
    /* Form elemanlarını mobilde daha uygun hale getir */
    .form-floating {
        margin-bottom: 1rem;
    }
    
    /* Tablo responsive yap */
    .table-responsive {
        border: none;
    }
    
    /* Mobil kart görünümü */
    .mobile-cards-container {
        display: block;
    }
    
    .mobile-card {
        margin-bottom: 1rem;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .mobile-card .card-header {
        background-color: #f8f9fa;
        border-bottom: 1px solid #dee2e6;
        padding: 0.75rem 1rem;
    }
    
    .mobile-card .card-body {
        padding: 1rem;
    }
    
    .mobile-card .row {
        margin-bottom: 0.5rem;
    }
    
    .mobile-card .col-4 {
        font-weight: 600;
        color: #6c757d;
        font-size: 0.875rem;
    }
    
    .mobile-card .col-8 {
        font-size: 0.9rem;
    }
    
    /* Butonları mobilde daha büyük yap */
    .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Modal'ı mobilde tam ekran yap */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    /* Pagination'ı mobilde daha uygun yap */
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Desktop'ta kart görünümünü gizle */
@media (min-width: 768px) {
    .mobile-cards-container {
        display: none;
    }
}

/* Tablo responsive ayarları */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobilde tablo hücrelerini daha okunabilir yap */
@media (max-width: 767.98px) {
    .table td, .table th {
        padding: 0.5rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }
    
    /* Uzun metinleri kısalt */
    .text-truncate-mobile {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Mobilde butonları daha dokunulabilir yap */
    .btn {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }
    
    /* Mobilde buton hover efektini kaldır */
    .btn:hover {
        transform: none;
    }
    
    /* Mobilde buton focus efektini iyileştir */
    .btn:focus {
        outline: 2px solid #007bff;
        outline-offset: 2px;
    }
    
    /* Mobil kart görünümünde butonları daha belirgin yap */
    .mobile-card .mobile-actions .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        border-radius: 6px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    /* Mobil kart görünümünde buton container'ını daha belirgin yap */
    .mobile-actions {
        display: flex;
        gap: 0.5rem;
        align-items: center;
    }
}

/* Mobil modal stilleri */
@media (max-width: 767.98px) {
    .modal-fullscreen-sm-down {
        max-width: 100% !important;
        margin: 0 !important;
        height: 100% !important;
    }
    
    .modal-fullscreen-sm-down .modal-content {
        height: 100%;
        border-radius: 0;
    }
    
    .modal-fullscreen-sm-down .modal-body {
        flex: 1;
        overflow-y: auto;
    }
    
    /* Tracking list mobil uyumlu */
    .tracking-list {
        margin-left: 70px;
        margin-bottom: 1rem;
    }
    
    .tracking-item {
        margin-left: 2rem;
        padding: 1rem 1rem 0.5rem 1.5rem;
        min-height: 5rem;
    }
    
    .tracking-status-text {
        left: -8rem;
        width: 6rem;
        font-size: 0.8rem !important;
    }
    
    .tracking-item .tracking-date {
        left: -8rem;
        width: 6rem;
        font-size: 0.75rem;
    }
    
    .tracking-icon {
        left: -0.8rem;
        width: 2rem;
        height: 2rem;
        line-height: 2rem;
        font-size: 0.9rem;
    }
}

/* Modal backdrop mobilde daha koyu */
@media (max-width: 767.98px) {
    .modal-backdrop {
        background-color: rgba(0, 0, 0, 0.8) !important;
    }
}

/* Modal açma/kapama için ek stiller */
.modal.show {
    display: block !important;
    z-index: 1055 !important;
}

.modal-open {
    overflow: hidden;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

.modal-backdrop.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.modal-backdrop.show {
    opacity: 1;
}

/* Mobil için ek modal stilleri */
@media (max-width: 767.98px) {
    .modal.show {
        z-index: 9999 !important;
    }
    
    .modal-dialog {
        z-index: 10000 !important;
    }
    
    .modal-content {
        z-index: 10001 !important;
    }
    
    /* Mobilde modal'ın tam ekran olmasını sağla */
    .modal-fullscreen-sm-down {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
    }
}

/* Sıralama için tıklanabilir kolon başlıkları */
.sortable-header {
    cursor: pointer !important;
    user-select: none;
}

.sort-icon {
    font-size: 0.8em;
    opacity: 0.8;
}

