.ui-datatable-reflow .ui-datatable-data td[role="gridcell"] .ui-column-title{
    margin: 0;
    color: #1c94c4;
}
.ui-datatable-reflow .ui-datatable-data td[role="gridcell"] .ui-column-title:after{
    content: " : " !important;
}

.north{
    height:100px !important;

}
.notification {
    background: #bed6f8 url("/faces/javax.faces.resource/images/new.jpeg?ln=primefaces-start") repeat-x;
    border:1px solid #bed6f8;
    color: white ;
    text-decoration: none;
    padding: 10px 20px;
    position: relative;
    display: inline-block;
    border-radius: 5px;
    margin-top:5px;
}

.notification .badge {
    position: absolute;
    top: -10px;
    right: -10px;
    padding: 5px 10px;
    border-radius: 50%;
    background: red;
    color: white;
}

.notification .redBadge {
    position: absolute;
    top: -10px;
    right: -10px;
    padding: 5px 10px;
    border-radius: 50%;
    background: darkred;
    color: white;
}

.notification .blueBadge {
    position: absolute;
    top: -10px;
    right: -10px;
    padding: 5px 10px;
    border-radius: 50%;
    background: cornflowerblue;
    color: white;
}

.notification .greenBadge {
    position: absolute;
    top: -10px;
    right: -10px;
    padding: 5px 10px;
    border-radius: 50%;
    background: forestgreen;
    color: white;
}

.ui-widget-header{
    text-align: right;
}

body .ui-steps .ui-steps-item {

}

body .ui-state-highlight {
    text-shadow: none !important;
}

body .ui-steps.custom {
    /*margin-bottom: 30px;*/
}

body .ui-steps.custom .ui-steps-item .ui-menuitem-link {
    height: 10px;
    padding: 0 1em;
    overflow: visible;
    border: 1px solid #c8c8c8;
    display: block;
    background-color: #FFFFFF;
}

body .ui-steps.custom .ui-steps-item .ui-menuitem-link .ui-steps-number {
    background-color: #0081c2;
    color: #FFFFFF;
    display: inline-block;
    width: 30px;
    border-radius: 10px;
    margin-top: -10px;
    margin-bottom: 10px;
    position: relative;
    top: -3px;
}

body .ui-steps.custom .ui-steps-item .ui-menuitem-link .ui-steps-title {
    margin-top: -6px;
}

body .ui-steps.custom .ui-steps-item.ui-state-highlight .ui-menuitem-link .ui-steps-title {
    color: #555;
}

.ui-steps .ui-steps-item{
    float: right;
}

.ui-steps-item{
    padding: 15px !important;
}

.unitNorth{
    /*background-image:url('../../resources/images/header.png');*/
    background-repeat: no-repeat;
    background-size: 80%;
    background-position: center;
    background-color:white;
}

.cartableSearch .ui-selectoneradio label {
    font-size:8px !important;
    margin: 0 4px 0 0px !important;
}
.cartableSearch label{
    font-size:8px !important;
    margin: 0 4px 0 0px !important;
}

body {
    color: #999999;
    /*background-image: url("../resources/newLogin/images/book-background.jpg");*/
    background-size: cover;
    direction: rtl;
}

#status .ui-dialog .ui-dialog-titlebar {
    visibility: hidden;
}

.ui-selectonemenu {
    -moz-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    -ms-transform: scaleX(-1);
    transform: scaleX(-1);
}

.ui-selectonemenu .ui-selectonemenu-label {
    -moz-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    -ms-transform: scaleX(-1);
    transform: scaleX(-1);
    text-align: right !important;
}

.ui-selectonemenu-panel .ui-selectonemenu-list-item {
    text-align: right !important;
}

.ui-menu .ui-menuitem-text{
    float: right;
}
.ui-state-disabled{
    pointer-events: all !important;
}
.ui-dialog .ui-dialog-buttonpane {
    text-align: center;
}

.ui-selectonemenu .ui-selectonemenu-label{
    width: inherit;
}
.myLayoutStyleClass .ui-layout-unit-content{
    background: #d5d9e0;
    background: white;
}
.ui-datatable .ui-paginator, .ui-datatable .ui-paginator{
    text-align: center !important;
}
.ui-helper-hidden{
    display: none;
}
.ui-lightbox-nav-right, .ui-lightbox-nav-left{
    display: none !important;
}

.ui-lightbox:focus {
    -webkit-transform:scale(1.2);
    transform:scale(1.2);
}

.ui-dialog{
    z-index: 9999999999999 !important;
}

/*new*/
 .ads-wrapper {
     height: 600px;
     overflow: hidden;
     position: relative;
 }

.ad-item {
    position: relative;
    margin-bottom: 15px;
}

.ad-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
}

.ad-subject {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
}

.ad-desc {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 0 6px 6px;
    font-size: 12px;
}

.ad-item:hover .ad-desc {
    opacity: 1;
}

#right .ui-layout-unit-content {
    overflow: hidden !important;
}



 .ads-viewport {
     height: 600px;
     overflow: hidden;
     position: relative;
 }

/* fade بالا */
.ads-viewport:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, white, transparent);
    z-index: 2;
}

/* fade پایین */
.ads-viewport:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, white, transparent);
    z-index: 2;
}

.ads-track {
    position: absolute;
    width: 100%;
}

.ad-card {
    position: relative;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.ad-card:hover {
    transform: scale(1.03);
}

.ad-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.ad-title {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.65);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
}

.ad-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.65);
    color: white;
    padding: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 12px;
}


.ad-card:hover .ad-overlay {
    opacity: 1;
}


/* لوگو */
.header-logo {
    height: 75px;
}

/* آواتار */
.header-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    margin-left: 15px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* Dropdown */
.user-dropdown {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* کلیک روی نام */
.user-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    color: #333;
    transition: 0.3s;
}

.user-trigger:hover {
    color: #007ad9;
}

/* فلش کوچک */
.arrow-down {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #555;
    transition: transform 0.3s ease;
}

/* منو */
.user-menu {
    position: absolute;
    top: 38px;
    right: 0;
    background: #ffffff;
    min-width: 160px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    padding: 8px 0;
    display: none;
    animation: dropdownFade 0.2s ease;
    z-index: 1000;
    border: 1px solid #eee;
}

.menu-item {
    display: block;
    padding: 10px 18px;
    font-size: 13px;
    color: #333 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.menu-item:hover {
    background: #f5f7fa;
    padding-right: 22px;
}

.logout-item {
    color: #e74c3c !important;
    font-weight: bold;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* تاریخ */
.date-text {
    font-size: 12px;
    color: #777;
}

/* انیمیشن */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/*footer*/
.modern-footer {
    background: linear-gradient(to right,#f5f7fa,#e4e8eb);
    padding: 12px;
    border-top: 1px solid #ddd;
}

.footer-content {
    text-align: center;
    font-size: 12px;
    color: #555;
}

.footer-divider {
    margin: 0 8px;
    color: #aaa;
}

body, .ui-widget {
    font-family: IRANSans, Tahoma, sans-serif !important;
}

/*new*/
/* ===================== */
/* دیالوگ پایان جلسه */
/* ===================== */

.modern-idle-dialog .ui-dialog {
    border-radius: 20px !important;
    overflow: hidden;
}

.modern-idle-dialog .ui-dialog-titlebar {
    background: linear-gradient(135deg,#ff512f,#dd2476);
    color: white !important;
    border: none !important;
    font-size: 18px !important;
    padding: 15px 20px !important;
    text-align: center;
}

.modern-idle-dialog .ui-dialog-content {
    padding: 40px 30px !important;
    text-align: center;
}

/* آیکون */
.idle-icon {
    font-size: 60px;
    color: #dd2476;
    margin-bottom: 20px;
}

/* عنوان */
.idle-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

/* متن */
.idle-content p {
    font-size: 15px;
    color: #555;
    margin-bottom: 25px;
}

/* دکمه ورود */
.idle-login-btn.ui-button {
    border-radius: 40px !important;
    background: linear-gradient(135deg,#ff512f,#dd2476) !important;
    border: none !important;
    padding: 12px 40px !important;
    font-size: 16px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease !important;
}

.idle-login-btn.ui-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

/* ===================== */
/* Growl مدرن */
/* ===================== */
/* ===================== */
/* Growl Minimal Modern */
/* ===================== */

.ui-growl {
    top: 20px !important;
    right: 20px !important;
    width: 320px !important;
}

/* ظرف پیام */
.ui-growl-item-container {
    border-radius: 14px !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
    overflow: hidden !important;
    padding: 0 !important;
}

/* داخل پیام */
.ui-growl-item {
    padding: 17px 18px 7px 45px !important;
    background: #ffffff !important;
    color: #333 !important;
    position: relative;
}

/* عنوان */
.ui-growl-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
}

/* متن */
.ui-growl-message p {
    font-size: 12px !important;
    margin: 0 !important;
    color: #666 !important;
}

/* دکمه بستن */
.ui-growl-icon-close {
    top: 10px !important;
    right: 10px !important;
}

/* حذف آیکون پیش فرض */
.ui-growl-image {
    display: none !important;
}

/* ===================== */
/* نوار رنگی کنار پیام */
/* ===================== */

.ui-growl-item-container:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    border-radius: 14px 0 0 14px;
}

/* آیکون ظریف */
.ui-growl-item:after {
    font-family: FontAwesome;
    position: absolute;
    left: 16px;
    top: 4px;
    font-size: 30px;
}

/* INFO */
.ui-growl-item-container.ui-growl-info:before {
    background: #4facfe;
}
.ui-growl-info .ui-growl-item:after {
    content: "\f05a";
    color: #4facfe;
}

/* SUCCESS */
.ui-growl-item-container.ui-growl-success:before {
    background: #27ae60;
}
.ui-growl-success .ui-growl-item:after {
    content: "\f00c";
    color: #27ae60;
}

/* WARN */
.ui-growl-item-container.ui-growl-warn:before {
    background: #f39c12;
}
.ui-growl-warn .ui-growl-item:after {
    content: "\f071";
    color: #f39c12;
}

/* ERROR */
.ui-growl-item-container.ui-growl-error:before {
    background: #e74c3c;
}
.ui-growl-error .ui-growl-item:after {
    content: "\f00d";
    color: #e74c3c;
}


/* ===== FOOTER ===== */
.modern-footer {
    background: linear-gradient(to left,#f8f9fb,#eef1f4);
    border-top: 1px solid #dcdcdc;
    padding: 8px 20px;
}

/* ===== HEADER (Collapsible) ===== */
.footer-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.footer-title {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
}

.footer-toggle {
    font-size: 14px;
    transition: transform 0.3s ease;
}

/* ===== HORIZONTAL SCROLL ===== */
.footer-horizontal-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 8px;
    transition: all 0.3s ease;
}

/* ===== CARD ===== */
.footer-card {
    min-width: 280px;
    display: flex;
    gap: 10px;
    background: #ffffff;
    border-radius: 14px;
    padding: 12px;
    border: 1px solid #dcdcdc;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.footer-card:hover {
    border-color: #4facfe;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* ===== IMAGE ===== */
.footer-img {
    width: 85px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
}

/* ===== TEXT ===== */
.footer-info {
    font-size: 13px;
    color: #fff !important;
}

.footer-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    color: #1f2937 !important;
}

.footer-date,
.footer-time,
.footer-address {
    font-size: 12px;
    margin-bottom: 3px;
}

/* کوتاه کردن آدرس */
.footer-address {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    cursor: pointer;
}

/* ===== BOTTOM TEXT ===== */
.footer-content {
    margin-top: 6px;
    text-align: center;
    font-size: 11px;
    color: #777;
}

.ui-confirm-dialog {
    border-radius: 14px;
}

.ui-confirm-dialog .ui-dialog-titlebar {
    background: linear-gradient(90deg, #1e293b, #334155);
    color: #fff;
}

.ui-confirm-dialog-message{
    font-size: 12px !important;
}

.footer-container {
    background: #555;
    color: white;
    padding: 5px 15px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.footer-info a {
    color: white;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logos img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    background: white;
    border-radius: 4px;
}

.footer-bottom {
    text-align: center;
    font-size: 10px;
    margin-top: 0px;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-info {
        flex-direction: column;
        gap: 10px;
    }

    .footer-logos {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ================= HEADER ================= */

/* =========================
   DESKTOP
========================= */

.modern-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    direction:rtl;
    padding:10px 15px;
    gap:15px;
}

/* لوگو وسط */
.header-logo{
    height:80px;
    width:auto;
}

/* بخش منوها */
.header-right{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:flex-start; /* کلیدها سمت چپ */
    gap:8px;
    flex-wrap:wrap;
}

/* اطلاعات کاربر */
.mobileUserRow{
    display:flex;
    align-items:center;
    gap:10px;
}

.header-avatar{
    width:55px;
    height:55px;
    border-radius:50%;
    object-fit:cover;
}

.welcomeText{
    font-size:20px;
    font-weight:bold;
    line-height:20px;
}

.walletText{
    font-size:13px;
    margin-top:3px;
}

/* همبرگری در دسکتاپ مخفی */
.mobileMenuBtn{
    display:none !important;
}


/* =========================
   SIDEBAR
========================= */

.mobilePanelMenu .ui-panelmenu-header > a{
    background:linear-gradient(135deg,#2196f3,#00bcd4) !important;
    color:#fff !important;
    border:none !important;
    font-weight:bold;
}

.mobilePanelMenu .ui-panelmenu-header.ui-state-active > a{
    background:linear-gradient(135deg,#1976d2,#00acc1) !important;
}

.mobilePanelMenu .ui-panelmenu-content{
    border:none !important;
}

.mobilePanelMenu .ui-menuitem-link{
    text-align:right;
}

.mobilePanelMenu .ui-icon{
    float:left !important;
}


/* =========================
   MOBILE
========================= */

@media(max-width:768px){

    .north,
    .ui-layout-north{
        height:auto !important;
        min-height:auto !important;
        overflow:visible !important;
    }

    .modern-header{

        display:flex;
        flex-direction:row;
        align-items:center;
        justify-content:space-between;

        padding:8px 10px !important;

        min-height:65px !important;
        height:auto !important;

        flex-wrap:nowrap;
        gap:8px;
    }

    /* مخفی شدن منوهای دسکتاپ */
    .modern-user-btn,.header-logo
    {
        display:none !important;
    }

    /* همبرگری */
    .mobileMenuBtn{

        display:flex !important;

        align-items:center;
        justify-content:center;

        width:44px;
        height:44px;

        min-width:44px;

        border-radius:50% !important;

        font-size:26px !important;
        font-weight:bold;

        padding:0 !important;
    }

    /* لوگو */
    .header-logo{
        height:68px !important;
        max-width:90px;
    }

    /* اطلاعات کاربر */
    .mobileUserRow{
        display:flex;
        align-items:center;
        gap:8px;
        margin:0 !important;
    }

    .header-avatar{
        width:42px;
        height:42px;
    }

    .welcomeText{
        font-size:15px;
        line-height:16px;
    }

    .walletText{
        font-size:11px;
        line-height:13px;
    }

    .header-right{
        flex:none;
        width:auto !important;
        justify-content:flex-start;
    }

    .header-logo-box{
        order:2;
    }

    .header-right{
        order:1;
        flex:none;
        width:auto !important;
    }

    .mobileUserRow{
        order:3;
    }


}

/* ================= DESKTOP ================= */

.header-logo-box{
    display:flex;
    align-items:center;
    justify-content:flex-start;
}

.header-right{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    flex-wrap:wrap;
}

/* حذف اسکرول هدر */
.north,
.ui-layout-north{
    height:auto !important;
    min-height:95px !important;
    overflow:hidden !important;
}

.ui-layout-north .ui-layout-unit-content{
    overflow:hidden !important;
}

.brands-slider{
    width:100%;
    overflow:hidden;
    position:relative;
    direction:ltr;
    padding:10px 0;
}

.brands-track{
    display:flex;
    align-items:center;
    width:max-content;
    /*animation:brandScroll 50s linear infinite;*/
}

.brand-box{
    flex:none;

    width:72px;
    height:62px;

    margin:0 7px;

    background:#fff;

    border:1px solid #d9d9d9;
    border-radius:14px;

    display:flex;
    align-items:center;
    justify-content:center;

    box-shadow:
    0 1px 2px rgba(0,0,0,.08),
    inset 0 1px 0 rgba(255,255,255,.8);
}

.brand-img{
    max-width:55px !important;
    max-height:40px !important;

    width:auto !important;
    height:auto !important;

    object-fit:contain;
}

@keyframes brandScroll{
    from{
        transform: translateX(0);
    }
    to{
        transform: translateX(-33.333%);
    }
}

.brands-track:hover{
    animation-play-state:paused;
}

.footer-logos .footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin: 0 5px;
    text-decoration: none;
}

.footer-logos .footer-social-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

.footer-logos .footer-social-link:hover .footer-social-icon {
    transform: scale(1.12);
}