.breadcrumb-admin {
    background-color: initial;
}
.laravel-datatable {
    width: 100% !important;
}
.laravel-datatable tbody label {
    font-weight: unset !important;
}

.bd-clipboard {
    position: relative;
    display: none;
}
@media (min-width: 768px) {
    .bd-clipboard {
        display: block;
    }
}
.btn-clipboard {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    display: block;
    padding: 4px 8px;
    font-size: 12px;
    color: #818a91;
    cursor: pointer;
    background-color: transparent;
    border-radius: 4px;
}
.bd-clipboard+pre{
    margin-top:0;
}
.btn-clipboard:hover {
    color:#fff;
    background-color:#027de7
}
pre.captchaField {
    white-space: pre-wrap;       /* css-3 */
    white-space: -moz-pre-wrap;  /* Mozilla, с 1999 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ поддерживается в IE, Safari, и Firefox 3.1.*/
}
.nav-treeview .nav-item {
    margin-left: 15px;
    font-size: .9rem;
    padding-bottom: 0;
    padding-top: 0;
    margin-bottom: 0;
}

.table-responsive {
    overflow-x: auto;
}

.table-responsive {
    overflow-x: auto;
}

.table td:last-child {
    white-space: normal;
    overflow: visible;
    max-width: none;
}
.main-sidebar {
    max-height: 100%;
    overflow-y: auto;
}

/* Sidebar brand: icon-only, no circle, compact size. */
.brand-link .brand-text {
    display: none;
}

.main-sidebar .brand-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 112px;
    padding: 6px 0;
}

.main-sidebar .brand-link .brand-image.admin-brand-logo,
.brand-link .admin-brand-logo {
    float: none !important;
    margin: 0 !important;
    opacity: 1 !important;
    width: 100px !important;
    height: 100px !important;
    max-width: 100% !important;
    max-height: none !important;
    line-height: 1 !important;
    object-fit: contain;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}

/* Universal media safety for admin content:
   prevent image cropping and overflow on narrow screens. */
.content-wrapper .card-body img,
.content-wrapper .table-responsive img,
.content-wrapper .img-thumbnail {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
}

/* Keep media blocks scrollable instead of clipping on mobile. */
.content-wrapper .card-body,
.content-wrapper .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Long text/urls should wrap instead of stretching layout. */
.content-wrapper .card-body td,
.content-wrapper .card-body th,
.content-wrapper .card-body p {
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .content-header {
        padding: 8px 0;
    }

    .content-header h1 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .breadcrumb-admin {
        float: none !important;
        padding-left: 0;
        margin-bottom: 0.25rem;
        font-size: 0.8rem;
    }

    .card-body {
        padding: 0.75rem;
        overflow-x: auto;
    }

    .card-body > .table,
    .card-body .table.dataTable {
        min-width: 920px;
    }

    .table-responsive {
        max-width: 100%;
    }

    .card-body img,
    .table-responsive img {
        display: block;
    }

    table.dataTable tfoot {
        display: none;
    }

    table.dataTable thead input,
    table.dataTable thead select {
        min-width: 110px;
        font-size: 12px;
        padding: 0.2rem 0.35rem;
    }

    .btn-group,
    .btn-toolbar {
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .btn,
    .form-control,
    .custom-select {
        font-size: 0.85rem;
    }

    /* Mobile admin actions: keep icon buttons readable, hide long labels. */
    .admin-action-btn {
        min-height: 2.1rem;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 0;
        white-space: nowrap;
    }

    .admin-action-btn .admin-action-label {
        display: none;
    }

    .admin-action-btn i {
        margin: 0 !important;
        font-size: 0.95rem;
    }

    .main-sidebar .brand-link {
        min-height: 88px;
    }

    .main-sidebar .brand-link .brand-image.admin-brand-logo,
    .brand-link .admin-brand-logo {
        width: 72px !important;
        height: 72px !important;
    }
}
