/*
 * Mintone tema üstü ek düzenlemeler.
 * Tema stil dosyası public/assets/css/style.css (Bootstrap 4.3.1 gömülü).
 */

/* Tema JS tarafından eklenen fixed class'ları etkisiz hale getir. */
.pcoded-header.headerpos-fixed {
    position: static !important;
}

.pcoded-navbar.menupos-fixed {
    position: static !important;
    height: auto !important;
}

.pcoded-header.headerpos-fixed ~ .content-main .pcoded-main-container {
    padding-top: 0 !important;
}

/* QR listesi dar ekranlarda tablo yerine okunabilir kart satırlarına dönüşür. */
.qr-hash-cell {
    max-width: 15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .qr-items-table thead {
        display: none;
    }

    .qr-items-table,
    .qr-items-table tbody,
    .qr-items-table tr,
    .qr-items-table td {
        display: block;
        width: 100%;
    }

    .qr-items-table tr {
        border-bottom: 1px solid #e9ecef;
        padding: .75rem 1rem;
    }

    .qr-items-table tr:last-child {
        border-bottom: 0;
    }

    .qr-items-table td {
        border: 0;
        padding: .35rem 0 .35rem 7.75rem;
        min-height: 2rem;
        position: relative;
        text-align: left !important;
    }

    .qr-items-table td::before {
        color: #6c757d;
        content: attr(data-label);
        font-size: .75rem;
        font-weight: 600;
        left: 0;
        position: absolute;
        text-transform: uppercase;
        top: .45rem;
        width: 7rem;
    }

    .qr-items-table td:first-child {
        padding-top: .15rem;
    }

    .qr-items-table td:first-child::before {
        top: .3rem;
    }

    .qr-items-table .qr-hash-cell {
        max-width: none;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .qr-items-table td[colspan] {
        padding-left: 0;
    }

    .qr-items-table td[colspan]::before {
        display: none;
    }
}
