.crud-select {
    width:40px;
    text-align:center;
}

.row-check {
    cursor:pointer;
}

.crud-row.selected {
    background:#e8f2ff;
}

body {
    touch-action: pan-y;
}


.nav-tabs,
.tab-content {
    touch-action: pan-y;
}


.crud-line {
    display: flex;
    width: 100%;
    justify-content: space-between; /* یا center اگر خواستی وسط چین شود */
}

.crud-piece-wrap {
    box-sizing: border-box;
    padding: 2px 5px;
    flex: 1; /* باعث می‌شود همه قطعات پهنای برابر داشته باشند */
}

.crud-piece {
    text-align: left;
}

.crud-piece.align-right {
    text-align: right;
}
.crud-piece.align-center {
    text-align: center;
}


.pagination-danger .page-link {
    color: #dc3545;
}

.pagination-danger .page-item.active .page-link {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.pagination-danger .page-link:hover {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}
/* container row holder */
.crud-horizontal-body {
    scroll-behavior: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    padding: 10px;
    scroll-behavior: smooth;
}

[data-bs-theme="dark"] .text-theme {
    color: #bfbfbf;
}

[data-bs-theme="light"] .text-theme {
    color: #6c757d;
}



.btn-x{
    width: 40px;
    height: 40px;
    background: transparent;
}

.btn-x:hover{
    background: rgba(0,0,0,.08);
}



@media (min-width: 992px){
    body{
        padding-top: 50px;
    }
    .hide-desktop
    {
        display: none !important;
    }
    .card-page{
        border: none !important;
        box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.26) !important;
        border-radius: 2rem !important;

    }
    .card-down-page {
        border-bottom-left-radius: 2rem !important;
        border-bottom-right-radius: 2rem !important;
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
    }




}

@media (max-width: 991.98px){

    .card-page{
        border: none !important;

    }

    body{
        padding-top: 58px;
    }
    .mobile-border-0{
        border: 0 !important;
    }
    .hide-mobile
    {
        display: none !important;
    }

    .fab {
        all: unset!important;

        color: #fff !important;
        position: fixed !important;
        bottom: 80px !important;
        right: 16px !important;
        top: auto !important;
        width: 50px !important;
        height: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 1020 !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        background-color: var(--bs-primary) !important;
        box-shadow:
                0 12px 20px rgba(37, 37, 37, 0.55),
                0 4px 6px rgba(0, 0, 0, 0.35) !important;
    }

    .fab i {
        font-size: 1.3rem !important;
        color: #fff !important;
    }

    .fab span {
        display: none !important; /* متن را در موبایل مخفی کن */
    }


}

:root{
    --crud-height: calc(100vh - 120px); /* mobile */
}

@media (min-width: 992px){
    :root{
        --crud-height: calc(95vh - 120px); /* desktop */
    }
}


/*ripple material UI BTN*/
.btn {
    position: relative;
    overflow: hidden;
}

.btn .ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 600ms linear;
    background-color: rgba(255,255,255,0.5);
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
/***********************/


.offcanvas-handle{
    width:40px;
    height:4px;
    background: grey;
    border-radius:10px;
    margin:10px auto 0;
    opacity:.4;
}

.floating-rtl label {
    right: -0.05rem !important;
    left: auto !important;
    text-align: right !important;
}



#modal-second .modal-content {
    transform: scale(1.035);
    box-shadow:  0 0 40px 20px rgba(0,0,0,0.45) !important;
    border-radius: 20px;
    z-index: 1070 !important;
}


input[dir="rtl"] {
    background-position: left calc(.375em + .1875rem) center !important;
    padding-left: calc(1.5em + .75rem) !important;
    padding-right: .75rem !important;
}


/*select item*/
[data-row] [data-select-icon]{
    opacity:0;
    transition:0.2s;
}

[data-row].selected [data-select-icon]{
    opacity:1;
}

.shadow-xlg{
    box-shadow: 0 0 100px 20px rgb(0, 0, 0) !important;
}

/***************/

.nav-tabs {
    border-bottom: 0 !important;
    display: flex;
    position: relative;
    width: 100%;
}

.nav-tabs .nav-item {
    flex: 1;
}

/* Center text inside tabs */
.nav-tabs .nav-link {
    width: 100%;             /* FULL width */
    text-align: center;      /* center align text */
    justify-content: center;
    align-items: center;
    display: flex;

    border: none !important;
    color: #777;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    background: none !important;
}

.nav-tabs .nav-link.active {
    color: #2196f3 !important;
}

/* Indicator full width */
.nav-tabs .indicator {
    position: absolute;
    bottom: 0;
    height: 3px;
    background: #2196f3;
    border-radius: 5px;
    transition: 0.3s ease;
}

@media (max-width: 768px) {
    #appSidebar {
        width: 100% !important;
        max-width: 70% !important;
    }
}

.big-btn{
    box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.26) !important;
    max-height: 130px;max-width: 130px;
    min-height: 130px;min-width: 130px;
}

.offcanvas {
    touch-action: pan-y pan-x !important;
}

body {
    transition: opacity .15s ease;
}

body.soft-refresh {
    opacity: 0.85;
}

@media (min-width: 992px) {
    .offcanvas-desktop-show {
        max-width: 25% !important;
    }
}

.toast {
    width: 100%;
    max-width: 600px;
}


.toast-slide {
    transform: translateY(55px);
    opacity: 0;
}

.toast-slide.toast-animate {
    transition: all 0.5s ease;
    transform: translateY(0);
    opacity: 1;
}

.toast-bottom-center {
    bottom: 30px; /* هر مقدار که می‌خواهی */
    left: 50%;
    transform: translateX(-50%);
}

.toast-bottom-left {
    bottom: 30px;
    left: 0;
}

.toast-bottom-right {
    bottom: 30px;
    right: 0;
}

.toast-top-center {
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.toast-top-left {
    top: 30px;
    left: 0;
}

.toast-top-right {
    top: 30px;
    right: 0;
}



[data-bs-theme="dark"] .google-search{
    background:#4c5156 !important;
}

[data-bs-theme="dark"] .google-search:hover{
    background:#5f656b !important;
}

[data-bs-theme="light"] .google-search{
    background:#ffffff !important;
}

[data-bs-theme="light"] .google-search:hover{
    background:#f1f3f4 !important;
}

[data-bs-theme="light"] .google-search:focus{
    background:#f1f3f4 !important;
}


 .google-search{
    background:#4c5156 !important;
    border:none;
    height:48px;
    display:flex;
    align-items:center;
}


 .google-search:hover{
    background: #5f656b !important;
    outline:none;
     border:none;
     box-shadow: 0 1px 6px rgba(32,33,36,.28) !important;
}

.google-search:focus{
    background: #5f656b !important;
    outline:none;
    border:none;
    box-shadow: 0 1px 6px rgba(32,33,36,.28) !important;
}


.icon-btn{
    width:32px;
    height:32px;
    border-radius:50%;
    border:0;
    background:transparent;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#bfbfbf;
    transition:background .2s,color .2s;
}

.icon-btn:hover{
    background:rgba(0,0,0,0.08);
}

[data-bs-theme="dark"] .icon-btn:hover{
    background:rgba(255,255,255,0.12);
}

.icon-btn:active{
    background:rgba(0,0,0,0.15);
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    display:none;
}



.bottom-nav{
    max-width: 100%;
    width: 100%;

}

.bottom-nav a{
    flex: 1;
    text-decoration: none;
    color: #ccc;
    font-size: 12px;
    border-radius: 2rem;

}

.bottom-nav a.active{
    color: #3da5ff;
}

.bottom-nav i{
    display:block;
    font-size:20px;
    margin-bottom:0px;
}


.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255, 255, 255, 0.4);
    animation: ripple-animation 600ms linear;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}




/* حالت پیش‌فرض مخفی */
.toolbar-wrapper.hidden {
    height: 0 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
}

/* حالت نمایش */
.toolbar-wrapper.visible {
    opacity: 1;
    visibility: visible;

}

/* انیمیشن‌های مشترک */
.toolbar-wrapper {
    overflow: hidden;
    transition:
            height 0.25s ease,
            opacity 0.25s ease,
            transform 0.25s ease;
}

.app-logo, img.logo, .avatar, .rounded-circle {

    border-radius: 50%;
}


/* فاصله عمودی بیشتر بین label و متن در حالت شناور */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    transform: translateX(0.3rem) translateY(-0.6rem) scale(0.85) !important;
}

/* فضای داخلی input برای فاصله بهتر قبل از تایپ */
.form-floating > .form-control {
    padding-top: 1.8rem;
    padding-bottom: 0.6rem;
}

.operator-up {
    margin-top: -6px;   /* هر مقدار خواستی کمتر/بیشتر کن */
    font-size: 20px;    /* در صورت نیاز بزرگ‌تر/کوچک‌تر */
    line-height: 1;
}
.remote-select{
    position: relative;
}

.remote-select-icon{
    position: absolute;
    top: 50%;
    right: 32px;
    transform: translateY(-50%);
    font-size: 23px;
    color: var(--bs-secondary);
    pointer-events: none;
}
.floating-rtl + .remote-select-icon{
    right: auto;
    left: 32px;
}


[data-bs-theme="light"] [data-row-list]{
    background-color: #dde2e6;
}
[data-bs-theme="light"] [data-row-list] > div{
    background-color: var(--bs-body-bg);
}
[data-bs-theme="light"] [data-row-list]:hover > div{
    background-color: #e5e5e5;
}

[data-bs-theme="dark"] [data-row-list] {
    background-color: #31393f;
}
[data-bs-theme="dark"] [data-row-list] > div{
    background-color: var(--bs-body-bg);
}
[data-bs-theme="dark"] [data-row-list]:hover > div{
    background-color: #3b4246;
}
[data-bs-theme="dark"] [data-row]:hover > div{
    background-color: #3b4246;
}
