.admin.nav-function-top .page-sidebar .primary-nav .nav-menu > li a {
    color: #ccc;
}

.panel-type-10 .panel-table,
.panel-type-10 .panel-canvas {
    display: none !important;
}

.panel-type-10 .panel-content {
    padding: 0 !important;
}

.panel-hdr h2 > i {
    display: inline-block;
    width: 1.25em;
    margin-right: 0.65rem !important;
    text-align: center;
    font-size: 16px;
    vertical-align: -0.1em;
}

.panel-hdr .fal,
.panel-hdr .fab,
.panel-hdr .fas,
.panel-hdr .far {
    font-size: 16px;
    margin-right: 0.65rem !important;
    font-weight: 900;
}

.panel-toolbar .btn > i {
    margin-right: 0.4rem;
}

.ads-range-select {
    width: 4.75rem !important;
    min-width: 4.75rem !important;
    max-width: 4.75rem !important;
    padding-left: 0.35rem;
    padding-right: 0.25rem;
}

.panel-canvas {
    max-height: 400px;
}

.mix-default-pin-active {
    background: #00cc00 !important;
}

.btn-inline {
    padding: 3px 0.444rem;
    margin-top: -15px;
}

.buttons-create {
    background-color: #1dc9b7 !important;
    color: white !important;
}

.buttons-edit {
    background-color: #0c83e2 !important;
    color: white !important;
}

.buttons-remove {
    background-color: #fd3995 !important;
    color: white !important;
}

.buttons-duplicate {
    background-color: #ffc241 !important;
    color: black !important;
}

@media (min-width: 992px) {
    .nav-function-top .page-sidebar {
        height: 3rem;
        top: 3rem;
    }

        .nav-function-top .page-sidebar .primary-nav .nav-menu > li > ul {
            top: 2.6rem;
        }

    .nav-function-top .page-content-wrapper {
        margin-top: 6rem;
    }

    .nav-function-top .page-sidebar .primary-nav .nav-menu > li a {
        font-size: .8rem;
    }

    .nav-function-top .page-sidebar .primary-nav .nav-menu > li > a > .ni, .nav-function-top .page-sidebar .primary-nav .nav-menu > li > a > [class*="fa-"], .nav-function-top .page-sidebar .primary-nav .nav-menu > li > a > img {
        font-size: 1.1rem;
        height: 1.1rem;
    }

    body div.DTED_Lightbox_Wrapper {
        left: 5em;
        right: 5em;
        margin-left: 0;
        width: auto;
        max-width: calc(100vw - 2em);
        box-sizing: border-box;
    }

    div.DTE_Body div.DTE_Body_Content div.DTE_Field {
        width: 50%;
        max-width: 100%;
        min-width: 0;
        padding: 5px 20px;
        box-sizing: border-box;
    }

    div.DTE_Body div.DTE_Form_Content {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    div.DTE_Body div.DTE_Body_Content {
        overflow-x: hidden;
        max-width: 100%;
        box-sizing: border-box;
    }
}

.admin.nav-function-top .page-sidebar .primary-nav .nav-menu > li a:hover {
    color: #fff;
}

#dandcb {
    background-color: #fd3995 !important;
    background: #fd3995 !important;
    color: #fff !important;
    margin-right: 15px;
}

td > .dropdown {
    float: right !important;
}

.table th.sorting {
    padding-right: 30px !important;
    vertical-align: top !important;
}

.pager {
    min-height: 50px !important;
}

.pagination {
    width: 100%;
    margin-top: 10px;
    text-align: center;
}

.crop {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 400px;
}

.crop-100 {
    width: 100px;
}

.crop-200 {
    width: 200px;
}

.crop-300 {
    width: 300px;
}

.progress {
    background-color: #ccc;
}

.progress-bar {
    padding-left: 3px;
}


.input-validation-error {
    background: #d48585;
}

.work-items input[type="checkbox"]:checked + .custom-control-label {
    text-decoration: line-through;
}

.workitem-completed {
    text-decoration: line-through;
}

.select-icon {
    font-family: 'Font Awesome 5 Pro'
}

.all-calendar {
    float: right;
    margin: -40px;
}

.breadcrumb > li.breadcrumb-item {
    max-width: 200px;
}

.select2-container--open .select2-dropdown--below {
    min-width: 400px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    min-width: 160px !important;
}

.table .b {
    width: 20px;
    white-space: nowrap;
    text-align: right;
}

.table th {
    white-space: nowrap;
    padding-right: 25px;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* TABLE FIXED HEADER */
.table-fixed-head thead th {
    position: -webkit-sticky; /* for Safari */
    position: sticky;
    top: 0;
    z-index: 99;
    background-color: #666;
    color: #fff;
}

    .table-fixed-head thead th:first-child {
        left: 0;
        z-index: 99;
    }

.table-fixed-head tbody th {
    position: -webkit-sticky; /* for Safari */
    position: sticky;
    left: 0;
    z-index: 99;
    background-color: #666;
    color: #fff;
}

.table-responsive {
    max-width: 100%;
    position: relative;
    overflow-x: auto;
    overflow-y: visible;
}

.table-fixed-head {
    position: relative;
    border-collapse: collapse;
}

.table-list {
    min-height: 10em;
}


.mod-skin-dark:not(.mod-skin-light) .table-hover tbody tr:hover,
.mod-skin-dark:not(.mod-skin-light) .table-hover thead {
    background-color: #000 !important;
}

.mod-skin-dark:not(.mod-skin-light) .bg-success {
    background-color: rgb(2 62 11) !important;
}

.mod-skin-dark:not(.mod-skin-light) .bg-warning {
    background-color: rgb(134 127 5) !important;
}

.mod-skin-dark:not(.mod-skin-light) .bg-danger {
    background-color: rgb(109 0 0) !important;
}

.admin .nav-footer,
.admin .page-sidebar {
    background: #444 !important;
}

.admin .page-header {
    background: #333 !important;
    padding: 0 1rem;
    height: 3rem !important;
    min-height: 3rem !important;
    max-height: 3rem !important;
    overflow: visible;
    align-items: center !important;
    z-index: 1002 !important;
}

.admin .page-header .dropdown-icon-menu {
    display: none !important;
    z-index: 1003;
    flex-shrink: 0;
    align-self: center;
}

@media (min-width: 992px) {
    .admin .page-header .dropdown-icon-menu {
        display: block !important;
    }
}

.admin .page-header .dropdown-icon-menu > a.header-btn,
.admin .page-header .dropdown-icon-menu > a.btn {
    position: relative;
    z-index: 2;
}

/* Görünmez ul ana butonu örtmesin; hover'da alt seçenekler tıklanabilir olsun */
.admin .page-header .dropdown-icon-menu > ul {
    z-index: 1;
    pointer-events: none;
}

.admin .page-header .dropdown-icon-menu:hover > ul {
    pointer-events: auto;
}

.admin .nav-minify-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    color: #ccc;
    padding: 0.65rem 0.85rem;
    margin: 0;
    width: 100%;
    border: 0;
    background: transparent;
    text-decoration: none !important;
}

.admin .nav-minify-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.admin.nav-function-minify .nav-minify-toggle {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.admin .page-sidebar .info-card.info-card-firm-logo {
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
    overflow: hidden;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.admin .page-sidebar .info-card.info-card-firm-logo .info-card-firm-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
}

.admin .page-sidebar .info-card.info-card-firm-logo .info-card-firm-fallback,
.admin .page-sidebar .info-card.info-card-firm-logo .info-card-firm-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 10px;
    background: #fff;
}

.admin .page-sidebar .info-card.info-card-firm-logo .info-card-firm-fallback {
    z-index: 0;
}

.admin .page-sidebar .info-card.info-card-firm-logo .info-card-firm-bg {
    z-index: 1;
}

.admin .page-sidebar .info-card.info-card-firm-logo .pull-trigger-btn {
    z-index: 2;
}

.admin.nav-function-minify:not(.nav-function-top) .page-sidebar .info-card.info-card-firm-logo {
    height: 100px !important;
    width: 100%;
    padding: 0 !important;
}

.admin.nav-function-minify:not(.nav-function-top) .page-sidebar .info-card.info-card-firm-logo .info-card-firm-fallback,
.admin.nav-function-minify:not(.nav-function-top) .page-sidebar .info-card.info-card-firm-logo .info-card-firm-bg {
    padding: 6px;
}

.admin .page-sidebar .nav-footer .nav-footer-buttons {
    margin: 0 !important;
}

.admin .page-logo {
    padding: 0 0.5rem;
    height: 3rem;
    min-height: 3rem;
    max-height: 3rem;
    overflow: hidden;
    display: flex;
    align-items: center;
}

    .admin .page-logo .page-logo-link {
        display: flex !important;
        align-items: center;
        height: 100%;
        line-height: 1;
    }

    .admin .page-logo .main-logo {
        margin-left: 10px;
        height: 24px;
        width: auto;
        max-height: 24px;
        object-fit: contain;
    }

    .admin .page-logo .firm-logo {
        margin-left: 7px;
        background: #fff !important;
        border-radius: 3px;
        padding: 2px 6px;
        height: 24px;
        width: auto;
        max-height: 24px;
        object-fit: contain;
    }

    .admin .page-header .page-logo .fal.fa-angle-down {
        line-height: 1;
        margin-top: 0 !important;
        align-self: center;
    }

.admin .page-header .header-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 3rem;
    align-self: center;
}

.admin .page-header .header-icon .profile-image,
.admin .page-header .header-icon object.profile-image,
.admin .page-header .header-icon .profile-image img,
.admin .page-header .header-icon img.rounded-circle {
    width: 1.75rem !important;
    height: 1.75rem !important;
    max-width: 1.75rem !important;
    max-height: 1.75rem !important;
    object-fit: cover;
    margin: 0 !important;
}

.admin .page-header .header-user-menu {
    position: relative;
    display: flex;
    align-items: center;
    align-self: center;
    height: 3rem;
}

.admin .page-header .header-icon.header-icon-user {
    width: auto !important;
    min-width: 0 !important;
    max-width: 220px;
    height: 3rem !important;
    line-height: 1.15 !important;
    padding: 0 0.65rem 0 0.35rem !important;
    justify-content: flex-start !important;
    gap: 0.5rem;
    color: #ddd !important;
    overflow: visible !important;
    text-align: left !important;
}

.admin .page-header .header-icon.header-icon-user:hover,
.admin .page-header .header-icon.header-icon-user[aria-expanded="true"] {
    color: #fff !important;
}

.admin .page-header .header-icon.header-icon-user:after {
    display: none !important;
}

.admin .page-header .header-icon.header-icon-user .header-user-meta {
    line-height: 1.15;
    max-width: 160px;
    text-align: left;
    min-width: 0;
}

.admin .page-header .header-icon.header-icon-user .header-user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: inherit;
}

.admin .page-header .header-icon.header-icon-user .header-user-title {
    font-size: 0.7rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.55);
}

.admin .page-header .header-icon.header-icon-user + .dropdown-menu,
.admin .page-header .header-user-menu .dropdown-menu {
    top: 3rem !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
}

@media (min-width: 992px) {
    .admin.nav-function-top .page-sidebar {
        height: 3rem !important;
        top: 3rem !important;
        align-items: center;
    }

    .admin.nav-function-top .page-sidebar .primary-nav {
        height: 3rem !important;
        align-items: center;
    }

    .admin.nav-function-top .page-sidebar .primary-nav .nav-menu {
        align-items: center;
    }

    .admin.nav-function-top .page-sidebar .primary-nav .nav-menu > li > a {
        height: 3rem;
        display: flex;
        align-items: center;
        padding-top: 0;
        padding-bottom: 0;
    }

    .admin.nav-function-top .page-content-wrapper {
        margin-top: 6rem !important;
    }
}

@media (max-width: 991.98px) {

    .admin.mobile-nav-on .page-sidebar {
        z-index: 2000 !important;
    }

    .admin .page-sidebar .page-logo {
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        height: 3.5rem;
        min-height: 3.5rem;
        padding: 0.35rem 0.75rem;
        overflow: visible;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
    }

        .admin .page-sidebar .page-logo .mobile-nav-toggle {
            flex-shrink: 0;
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
            color: #fff;
            margin: 0;
            padding: 0 !important;
            height: 2.25rem;
            width: 2.25rem;
            line-height: 1 !important;
            vertical-align: middle;
            border-color: rgba(255, 255, 255, 0.25);
            background: transparent;
        }

            .admin .page-sidebar .page-logo .mobile-nav-toggle .ni {
                font-size: 1.35rem;
                line-height: 1 !important;
                display: flex;
                align-items: center;
                justify-content: center;
                height: 1.35rem;
                margin: 0;
                padding: 0;
                position: static;
                top: auto;
                transform: none;
            }

        .admin .page-sidebar .page-logo .page-logo-brand {
            margin-left: auto;
            gap: 0.65rem;
            align-items: center;
        }

        .admin .page-sidebar .page-logo .page-logo-link {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 0.5rem;
            width: auto;
            flex: 0 0 auto;
        }

        .admin .page-sidebar .page-logo .main-logo,
        .admin .page-sidebar .page-logo .firm-logo {
            height: 28px;
            width: auto;
            max-height: 28px;
            margin: 0;
            object-fit: contain;
        }
}

.admin .search {
    margin-left: 10px;
}

.admin .header-icon:not(.btn) {
    color: #ccc;
}

.page-logo-text {
    font-weight: 600;
    font-size: 2rem;
}

.input-group-sm .custom-select-sm {
    padding: 0 0 0 0.4rem !important;
}

.input-group-sm input {
    min-height: 31px;
    padding-left: 7px;
}

.input-group-sm .btn.btn-sm {
    margin-top: -1px;
}

.table-sm .js-lightgallery {
    width: 44px;
    height: 44px !important;
}

.table-fixed-header th {
    position: sticky;
    top: 0;
}

.bootstrap-datepicker-widget .datepicker-days table tbody tr:hover {
    background-color: #eee;
}

.dropdown-item .fal {
    width: 22px;
    text-align: center;
}

.app-list-item .icon {
    width: 48px;
    height: 48px;
    display: block;
    margin: 5px auto;
    text-align: center;
    vertical-align: middle;
}

    .app-list-item .icon .fal {
        font-size: 24px;
        margin-top: 12px;
    }

select.shift {
    width: 100%;
}

.nav-menu li > ul li a > [class*="ni-"],
.nav-menu li > ul li a > [class*="fa-"] {
    margin-left: 0px;
    color: #ccc;
}

.page-sidebar {
    z-index: 9 !important;
}

.page-header {
    z-index: 1002 !important;
}

.active-filters-container {
    float: left;
}

.dt-separator .DTE_Label h3 {
    background: #EEE;
    padding: 5px 10px;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 1px solid #CCC;
    text-align: center;
}

.dt-separator {
    width: 100% !important;
}

    .dt-separator .DTE_Label {
        width: 100% !important;
    }

    .dt-separator .DTE_Field_Input {
        display: none !important;
    }

.dt-button.separator {
    background: none !important;
    border: none !important;
    color: transparent !important;
    margin: 0px !important; /* Butonlar arasında boşluk */
    pointer-events: none !important; /* Tıklanamaz yapar */
    position: relative !important;
}

    .dt-button.separator:after {
        content: '|'; /* Ayırıcı simgesi */
        color: black !important; /* Renk ayarı */
    }

.note-btn {
    font-size: 12px !important;
}

.note-btn-group .dropdown-toggle:after {
    display: none;
}

.modal-backdrop {
    display: none;
}

div.dt-container select.dt-input {
    padding: 7px;
}

.filter-btn,
div.dt-container .dt-length,
div.dt-container .dt-search {
    float: right;
}













/*********************************************************************************/
@media only screen and (max-width:992px) {
    .page-wrapper .page-content .breadcrumb > .breadcrumb-item {
        max-width: 200px;
    }
}













/*********************************************************************************/
@media only screen and (max-width:480px) {
    .crop {
        width: 200px;
    }

    .input-group-prepend {
        width: 100%;
    }

    .select2-container--open .select2-dropdown--below {
        min-width: auto !important;
        max-width: 400px !important;
    }

    div.dt-container div.dt-layout-cell.dt-start {
        width: 35%;
        float: left;
    }

    .admin .header-icon:not(.btn) {
        color: #ccc;
        font-size: 18px;
        min-width: 2.5rem;
    }

        .admin .header-icon:not(.btn)[data-toggle="dropdown"][aria-expanded="true"]::after {
            width: 1.9rem;
            height: 2.1rem;
            top: 1.1rem;
        }

    div.dt-buttons > .dt-button, div.dt-buttons > div.dt-button-split .dt-button {
        margin-right: 0;
        padding: .5em .7em;
    }

    .dt-container .dt-search {
        margin-top: 0px;
    }

    .header-icon .text-truncate {
        display: none;
    }
}

/* ==================== VARYANT YÖNETİMİ STİLLERİ ==================== */

/* Varyant container */
#variant-container {
    margin-top: 10px;
}

/* Varyant dropdown'ları */
.variant-dropdown {
    margin-bottom: 10px;
}

    .variant-dropdown label {
        font-weight: 600;
        color: #495057;
        margin-bottom: 5px;
        display: block;
    }

    .variant-dropdown .variant-select {
        border: 1px solid #ced4da;
        border-radius: 4px;
        padding: 8px 12px;
        font-size: 14px;
        transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    }


/* Stok uyarıları */
.stock-warning {
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in-out;
}

    .stock-warning.alert-warning {
        background-color: #fff3cd;
        border-color: #ffeaa7;
        color: #856404;
    }

    .stock-warning.alert-danger {
        background-color: #f8d7da;
        border-color: #f5c6cb;
        color: #721c24;
    }

    .stock-warning.alert-success {
        background-color: #d4edda;
        border-color: #c3e6cb;
        color: #155724;
    }

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive tasarım */
@media (max-width: 768px) {
    #variant-container {
        padding: 10px;
    }

    .variant-dropdown {
        padding: 8px;
        margin-bottom: 10px;
    }

        .variant-dropdown label {
            font-size: 14px;
        }

        .variant-dropdown .variant-select {
            padding: 6px 10px;
            font-size: 13px;
        }
}

/* Varyant değerleri için renk göstergesi */
.variant-select option[data-color] {
    position: relative;
}

    .variant-select option[data-color]:before {
        content: '';
        display: inline-block;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        margin-right: 8px;
        vertical-align: middle;
    }

.page-breadcrumb-toolbar {
    z-index: 2;
    line-height: 1;
}

.page-breadcrumb-help-btn {
    width: 1.85rem;
    height: 1.85rem;
    min-width: 1.85rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.page-breadcrumb-help-btn .fal {
    font-size: 0.85rem;
}

.js-modal-page-help .modal-body {
    max-height: calc(100vh - 4.5rem);
    overflow-y: auto;
}

/* Loading durumu */
.variant-dropdown.loading .variant-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6-.4.4.4.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
}

/* Embed (_LayoutEmpty): tablo/panel gizle, Editor lightbox doldur */
body.mix-embed .panel-hdr,
body.mix-embed .dt-buttons,
body.mix-embed .dataTables_wrapper,
body.mix-embed .active-filters-container,
body.mix-embed #onesignal-bell-container {
    display: none !important;
}

body.mix-embed .page-content {
    padding: 0 !important;
    margin: 0 !important;
}

body.mix-embed .panel {
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

body.mix-embed .panel-content {
    padding: 0 !important;
}

/* Embed: Editor lightbox iframe'i doldursun; gövde scroll, footer sabit */
body.mix-embed div.DTED_Lightbox_Background {
    background: #f8f9fa !important;
}

body.mix-embed div.DTED_Lightbox_Wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin-left: 0 !important;
    z-index: 100 !important;
}

body.mix-embed div.DTED_Lightbox_Wrapper div.DTED_Lightbox_Container,
body.mix-embed div.DTED_Lightbox_Wrapper div.DTED_Lightbox_Content_Wrapper {
    display: block !important;
    height: 100% !important;
}

body.mix-embed div.DTED_Lightbox_Wrapper div.DTED_Lightbox_Content {
    height: 100% !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

body.mix-embed div.DTED_Lightbox_Wrapper div.DTE {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    max-height: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: hidden;
}

body.mix-embed div.DTED_Lightbox_Wrapper div.DTE > div.DTE_Header {
    position: relative !important;
    flex: 0 0 auto;
    top: auto !important;
}

body.mix-embed div.DTED_Lightbox_Wrapper div.DTE > div.DTE_Body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 !important;
    overflow: hidden;
}

body.mix-embed div.DTED_Lightbox_Wrapper div.DTE div.DTE_Body_Content {
    height: 100% !important;
    max-height: none !important;
    overflow: auto !important;
}

body.mix-embed div.DTED_Lightbox_Wrapper div.DTE > div.DTE_Footer {
    position: relative !important;
    flex: 0 0 auto;
    bottom: auto !important;
    height: auto !important;
    min-height: 52px;
}

body.mix-embed div.DTED_Lightbox_Close {
    display: none !important;
}

/* FK ref CRUD: DTE_Label içinde (dropdown solundaki title satırı), alta düşmeden sağda */
div.DTE_Body div.DTE_Body_Content div.DTE_Field > label.DTE_Label.mix-ref-label,
div.DTE_Field > label.DTE_Label.mix-ref-label {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    /* Editor varsayılanı: label %33 solda, input %66 sağda — bozma */
    float: left !important;
    width: 33% !important;
    max-width: 33% !important;
    box-sizing: border-box !important;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
}

div.DTE_Field > label.DTE_Label.mix-ref-label > .mix-ref-label-actions {
    margin-left: auto !important;
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 3px;
    flex: 0 0 auto !important;
}

div.DTE_Field > label.DTE_Label.mix-ref-label > span[data-i18n],
div.DTE_Field > label.DTE_Label.mix-ref-label > .DTE_Label_Info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Mobil: label col-12, butonlar en sağda */
@media only screen and (max-width: 768px) {
    div.DTE_Body div.DTE_Body_Content div.DTE_Field > label.DTE_Label.mix-ref-label,
    div.DTE_Field > label.DTE_Label.mix-ref-label {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-top: 0 !important;
        margin-bottom: 2px;
    }

    div.DTE_Body div.DTE_Body_Content div.DTE_Field > label.DTE_Label.mix-ref-label + div.DTE_Field_Input,
    div.DTE_Field > label.DTE_Label.mix-ref-label + div.DTE_Field_Input {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 4px;
    }
}

.mix-ref-create-btn,
.mix-ref-edit-btn {
    flex: 0 0 18px !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    padding: 0 !important;
    line-height: 16px !important;
    font-size: 0.65rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.mix-ref-create-btn .fal,
.mix-ref-edit-btn .fal {
    font-size: 0.65rem;
    line-height: 1;
    margin: 0;
}

.mix-ref-edit-btn:disabled,
.mix-ref-edit-btn.disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background: #e9ecef !important;
    border-color: #ced4da !important;
    color: #adb5bd !important;
}

#mix-ref-crud-modal {
    z-index: 2000;
}

#mix-ref-crud-modal .modal-dialog {
    max-width: 96vw;
    width: 1100px;
    margin: 1rem auto;
}

#mix-ref-crud-modal .modal-content {
    height: 88vh;
}

#mix-ref-crud-modal .modal-body {
    height: calc(88vh - 56px);
    overflow: hidden;
}

#mix-ref-crud-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.modal-backdrop.mix-ref-crud-backdrop {
    z-index: 1990;
}

/* AI floating button — en altta; shortcut-menu bir üstte */
.shortcut-menu {
    bottom: calc(4.3125rem + 45px + 0.5rem) !important;
}

.mix-ai-fab {
    position: fixed;
    right: 1.5rem;
    bottom: 4.3125rem;
    z-index: 931;
    width: 45px;
    height: 45px;
    border: 0;
    border-radius: 50%;
    background: #888;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    padding: 0;
}

/* Mobil hamburger (kırmızı) yerine gri zemin + MixRM ikonu */
.page-header .header-btn.mix-mobile-brand-toggle,
.page-header .header-btn[data-class='mobile-nav-on'].mix-mobile-brand-toggle {
    border-color: #888 !important;
    background: #888 !important;
    background-image: none !important;
    color: #fff !important;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-header .header-btn.mix-mobile-brand-toggle:hover,
.page-header .header-btn.mix-mobile-brand-toggle:focus {
    border-color: #666 !important;
    background: #666 !important;
    background-image: none !important;
    color: #fff !important;
}

.mix-mobile-brand-icon {
    width: 1.35rem;
    height: 1.35rem;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.mix-ai-fab:hover,
.mix-ai-fab:focus {
    background: #666;
    color: #fff;
    outline: none;
}

.mix-ai-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    background: rgba(20, 28, 40, 0.45);
}

.mix-ai-overlay.is-open {
    display: block;
}

.mix-ai-overlay-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.mix-ai-overlay-header {
    display: grid;
    grid-template-columns: max-content minmax(0, 320px) minmax(0, 400px) 1fr;
    align-items: center;
    gap: .85rem;
    padding: 0.75rem 1rem;
    background: #6c757d;
    color: #fff;
    flex-shrink: 0;
}

.ai-chat-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 400px) auto;
    align-items: end;
    gap: .85rem;
    flex-shrink: 0;
}

.mix-ai-header-brand { white-space: nowrap; }
.mix-ai-header-model, .mix-ai-header-usage { min-width: 0; }
.mix-ai-header-model .select2-container { max-width: 100%; }
.mix-ai-header-actions { justify-self: end; white-space: nowrap; }

.mix-ai-overlay-header .form-control {
    background: #fff;
    color: #212529;
}

/* Keep the model menu in the chat overlay's stacking context. */
.mix-ai-overlay-panel .select2-container--open {
    z-index: 2001;
}

.mix-ai-overlay-panel .select2-dropdown {
    min-width: 0 !important;
    color: #212529;
}

.mix-ai-overlay-header .select2-selection__rendered {
    min-width: 0 !important;
}

.mix-ai-overlay-messages {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    max-height: none;
    border: 0;
    border-radius: 0;
    padding: 1.25rem;
    background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
}

.mix-ai-usage {
    flex-shrink: 0;
    max-width: 400px;
    padding: 0;
    color: #344054;
}

.mix-ai-usage:empty { display: none; }
.mix-ai-usage-plan { display: block; margin-bottom: .25rem; font-size: .65rem; font-weight: 600; line-height: 1.35; color: #667085; overflow-wrap: anywhere; }
.mix-ai-usage-meters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.mix-ai-usage-meter { min-width: 0; padding: .4rem .55rem; border: 1px solid #e3e8ef; border-radius: 8px; background: rgba(248, 250, 252, .7); }
.mix-ai-usage-caption { font-size: .65rem; line-height: 1.35; color: #667085; }
.mix-ai-usage-amount { margin-top: .1rem; font-size: .75rem; line-height: 1.4; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mix-ai-usage-amount strong { color: #344054; font-weight: 600; }
.mix-ai-usage-total { color: #667085; font-size: .68rem; }
.mix-ai-usage-progress { height: 6px; margin-top: .3rem; border-radius: 999px; background: #e3e8ef; }
.mix-ai-usage-progress .progress-bar { border-radius: inherit; }
.mix-ai-usage-progress .is-healthy { background: linear-gradient(90deg, #34b98a, #6ee7b7); }
.mix-ai-usage-progress .is-warning { background: linear-gradient(90deg, #f1b52d, #fde68a); }
.mix-ai-usage-progress .is-critical { background: linear-gradient(90deg, #ef6b6b, #fca5a5); }
.mix-ai-overlay-header .mix-ai-usage-plan,
.mix-ai-overlay-header .mix-ai-usage-caption { color: rgba(255, 255, 255, .85); }
.mix-ai-overlay-header .mix-ai-usage-amount strong { color: #fff; }
.mix-ai-overlay-header .mix-ai-usage-total { color: rgba(255, 255, 255, .75); }
.mix-ai-overlay-header .mix-ai-usage-meter { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); }
.mix-ai-overlay-header .mix-ai-usage-progress { background: rgba(0, 0, 0, .2); }
@media (max-width: 991.98px) {
    .mix-ai-overlay-header { grid-template-columns: auto minmax(0, 1fr) auto; gap: .65rem; }
    .ai-chat-toolbar { grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; }
    .mix-ai-header-usage { grid-column: 1 / -1; grid-row: 2; }
    .mix-ai-header-usage .mix-ai-usage { max-width: none; }
    .mix-ai-header-actions { grid-column: -2 / -1; grid-row: 1; }
}
.mix-ai-suggestions { flex-shrink: 0; padding: 0 .15rem; max-height: 22vh; overflow-y: auto; }
.mix-ai-suggestions .btn { white-space: normal; text-align: left; }
.mix-ai-overlay-panel > .mix-ai-suggestions { padding: .35rem 1rem; }
.mix-ai-overlay-panel > .mix-ai-usage { margin: .5rem 1rem; }

.mix-ai-overlay-footer {
    flex-shrink: 0;
    padding: 0.85rem 1rem 1rem;
    border-top: 1px solid #e3e8ef;
    background: #fff;
}

.ai-chat-messages {
    background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
    border: 1px solid #e3e8ef;
    border-radius: .35rem;
    padding: 1rem;
}

.ai-bubble {
    max-width: 85%;
    margin-bottom: .75rem;
    padding: .65rem .9rem;
    border-radius: .5rem;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: .92rem;
    line-height: 1.45;
}

.ai-bubble.user {
    margin-left: auto;
    background: #1b6ec2;
    color: #fff;
}

.ai-bubble.assistant {
    margin-right: auto;
    background: #fff;
    border: 1px solid #d9e2ec;
    color: #243b53;
}

.ai-bubble.error {
    background: #fff5f5;
    border-color: #feb2b2;
    color: #9b2c2c;
}

.ai-meta {
    font-size: .75rem;
    opacity: .75;
    margin-bottom: .25rem;
}

.ai-plan-box {
    margin-top: .5rem;
    padding: .5rem .65rem;
    background: #f0f4f8;
    border-radius: .35rem;
    font-family: Consolas, monospace;
    font-size: .78rem;
    max-height: 220px;
    overflow: auto;
}

body.mix-ai-overlay-open {
    overflow: hidden;
}

.mix-ai-package-notice {
    flex-shrink: 0;
}
.mix-ai-overlay-panel > .mix-ai-package-notice {
    margin: .75rem 1rem;
}
.ai-pending {
    width: fit-content;
}
.ai-pending .ai-bubble-text {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
    white-space: normal;
}
.mix-ai-thinking-dots {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    height: 1rem;
    color: #1b6ec2;
}
.mix-ai-thinking-dots span {
    width: .4rem;
    height: .4rem;
    border-radius: 50%;
    background: currentColor;
    animation: mix-ai-thinking 1.2s ease-in-out infinite;
}
.mix-ai-thinking-dots span:nth-child(2) { animation-delay: .15s; }
.mix-ai-thinking-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes mix-ai-thinking {
    0%, 60%, 100% { opacity: .35; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
    .mix-ai-thinking-dots span { animation: none; opacity: 1; }
}

/* Document preview must remain usable above the AI chat panel. */
#document-mail-modal { z-index: 2020; }
.modal-backdrop.mix-document-mail-backdrop { z-index: 2010; }
