:root {
    --dark1: #153d60;
    --light1: #fff;

    --dark2: #fea018;
    --light2: #2a9d8f1e;

    --dark3: #e8ebf0;
    --light3: #2a9d8f1e;


    --first-color:#153d60;
    --second-color:#fea018;
    --light-color: #fff;

    --blue: #153d60;
    --white: #fff;
    --oreng: #F54927;
    --red:#FF0000;
    --lime:#00FF00;
    --green:	#008000;
    --greenblue:	#008080;
    --yellow: #fea018;
    --bg: #f5f7fa;
    --red-ligth:#fcecec;
    --green-ligth:#2a9d8f1e;
    --yellow-ligth:#fe9e1831;

}

@font-face {
    font-family: 'Vazir-FD';
    src: url('../font/Vazir-FD.eot?#') format('eot'),
        url('../font/Vazir-FD.ttf') format('truetype'),
        url('../font/Vazir-FD.woff2') format('woff2'),
        url('../font/Vazir-FD.woff') format('woff');
}

body {
    direction: rtl;
    text-align: right !important;
    font-family: Vazir-FD !important;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    outline: 0;
    color: #000;
}

.submit {
    background-color: var(--dark1);
    color: #fff;
}

.submit:hover {
    background-color: var(--light1);
    border-color: var(--dark1);
}

thead {
    background-color: var(--second-color);
    color: #fff;
}

label {
    font-weight: 600;
}

.icon{
    color: var(--second-color);
}

/*----- modal -----*/
.mdl-hd {
    background-color: var(--first-color);
    color: #fff;
}

/*----- master.php -----*/
.header-top {
    background-color: var(--first-color);
    color: #fff;
}

.header-middle {
    background-color: var(--light1);
}

.header-badge {
    color: #000;
}

/*-----list-----*/
.list-dark-1 {
    background-color: var(--dark1);
    color: #fff;
}

.list-dark-2 {
    background-color: var(--light2);
    color: #000;
    font-size: 11px;
}

.list-light-1 {
    background-color: var(--light3);
    color: #000;
    font-size: 11px;
}



.row-dark {
    background-color: var(--dark2);
    color: #fff;
}

.row-light {
    background-color:var(--light2);
    color: #000;
    font-size: 11px;
}


/*login page*/
img.avatar {
    width: 150px;
    border-radius: 50%;
    display: block;
    margin-left: auto;
    margin-right: auto
}

.container-login {
    left: 50%;
    position: fixed;
    top: 40%;
    transform: translate(-50%, -50%);
}

/*------- dashdord -------*/

.sidbar{
    background-color: #153d60;
    color: #fff;
    min-height: 760px;

}
.main{
    background-color: #e8ebf0;
    color: #000;
    min-height: 760px;

}
.avatar{
    align-items: center;
    text-align: center;
    margin: 20px 10px;
}
.profilename{
    text-align: center;
    font-size: 12px;
}
.profilename h2{
    font-size: 16px;
}
/*------------------------------*/
  /* رنگ زمینه سورمه‌ای و متن سفید */
      :root{
        --nav-bg: #0b2847; /* سورمه‌ای */
        --nav-hover: #092335; /* یک درجه تیره‌تر برای هاور */
        --active-accent: #1e90ff; /* رنگ تاکید برای آیتم فعال (اختیاری) */
      }
 

      body{
        background: #f5f7fa;
        min-height: 100vh;
        overflow-x: hidden;
      }
     
      /* سایدبار */
     /* .sidebar{
        width: 400px;
        min-height: 100vh;
        background: var(--nav-bg);
        color: #fff;
        padding-top: 1rem;
      }*/

      /* لیست عمودی منو */
     /* .sidebar .nav-link{
        color: #fff;
        border-radius: 8px;
        padding: 0.75rem 1rem;
        margin: 0.25rem 0.5rem;
        display: flex;
        align-items: center;
      }*/

     /* .sidebar .nav-link .bi{
        font-size: 1.2rem;
        margin-left: 0.6rem; /* برای dir=rtl از سمت چپ فاصله می‌گیرد */
      /*}

      .sidebar .nav-link:hover{
        background: var(--nav-hover);
        text-decoration: none;
      }

      .sidebar .nav-link.active{
        background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
        box-shadow: inset 3px 0 0 0 var(--active-accent);
      }

      /* عنوان سایدبار */
      /*.sidebar .sidebar-header{
        padding: 0.75rem 1rem;
        font-weight: 600;
        letter-spacing: 0.2px;
      }*/

      /* متن کوچکتر برای توضیحات آیتم */
      /*.menu-caption{
        font-size: 0.82rem;
        opacity: 0.9;
      }*/

      /* کوچک کردن در نماهای کوچک (قابل جمع‌شدن) */
     /* @media (max-width: 768px){
        .sidebar{
          position: fixed;
          z-index: 1030;
          transform: translateX(0);
        }
      }*/

      .color-orange {
            color: #fea018 !important;
        }
      .color-darkblue {
            color: #0b2847 !important;
        }


       /*-----------------------*/
       
   

    /* سایدبار دسکتاپ */
    .sidebar-desktop {
      width: 260px;
      background: var(--nav-bg);
      color: white;
      min-height: 100vh;
      transition: all 0.3s ease;
      padding-top: 1rem;
    }
    
    /* حالت جمع‌شده دسکتاپ */
    .sidebar-collapsed {
      width: 70px !important;
    }

    .nav-link {
      color: #fff !important;
      padding: 0.75rem 1rem;
      border-radius: 8px;
      margin: 4px 10px;
      white-space: nowrap;
      overflow: hidden;
    }

    .nav-link:hover {
      background: var(--nav-hover);
    }

    .nav-link i {
      font-size: 1.2rem;
      margin-left: 8px;
    }


    #mobileSidebar {
    background-color: #0b2847 !important;
    color: #fff !important;
    }

    #mobileSidebar .offcanvas-body,
    #mobileSidebar .offcanvas-header {
        background-color: #0b2847 !important;
    }

    /* پنهان کردن سایدبار دسکتاپ روی موبایل */
    @media (max-width: 992px) {
      .sidebar-desktop {
        display: none;
      }
    }

/* ===== FIX BOOTSTRAP COLLAPSE ===== */
.collapse:not(.show) {
    display: none !important;
}

.collapsing {
    height: 0 !important;
    overflow: hidden !important;
    transition: height .35s ease !important;
}


button.nav-link {
    text-align: right;
}

.submenu {
    padding-right: 1.5rem;
}

.submenu .nav-link {
    font-size: 14px;
    margin-right: 1.5rem;
}


/* فلش زیرمنو */
.submenu-arrow {
    transition: transform 0.3s ease;
}

/* وقتی زیرمنو باز است */
button[aria-expanded="true"] .submenu-arrow {
    transform: rotate(180deg);
}

/* فقط فلشی که collapse بعدش باز است بچرخد */
.submenu-toggle[aria-expanded="true"] .submenu-arrow {
  transform: rotate(180deg);
 
}

.submenu-toggle .submenu-arrow {
  transition: transform 0.3s ease;
}


/*-----Primary Template-----*/
**************************************************/
#filters,
.filters,
#pub-grid {
    padding: 20px 0 30px 0 !important;
}

#pub-grid .mix {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: alpha(opacity=0);
    opacity: 0;
    display: none;
}

.pitems .item {
    margin-bottom: 15px;
    width: 100%;
}

.pitems .pubmain {
    background: #fff;
    padding: 20px 15px;
    min-height: 0px;
    position: relative;
    /*-webkit-box-shadow: 0px 3px 3px -3px #ccc;*/
    /*box-shadow: 0px 3px 3px -3px #ccc;*/
    /*box-shadow: 2px 2px 10px -3px #ccc;*/
    cursor: pointer;
    border: 1px solid #e5e7e9;
    border-radius: 3px;
}

.pitems .pubtitle {
    margin: 0;
    padding: 0 0 7px 0;
    font-size: 15px;
}

.pitems .pubmain .label {
    margin-left: 10px;
}

.pitems .pubmain .pubassets {
    position: absolute;
    bottom: 0;
    left: 0;
    text-align: center;
    font-size: 11px;
}

.pitems .pubmain .pubassets a {
   /* color: #fff;*/
    padding: 5px 12px;
    float: left;
    font-size: 11px;
}

/*.pitems .pubmain .pubassets a:hover,
.pitems .pubmain .pubassets a:focus,
.pitems .pubmain .pubassets a.pubcollapse {
    background: var(--dark2);
    color: #fff;
}*/

.pitems .pubdetails {
    background: #fcfafa;
    padding: 15px;
    display: none;
    font-size: 14px;
    text-align: justify;
    border: 1px solid #d5d7da;
    border-radius: 0px  0px 10px 10px;
}



/*-------------------------------------------*/
.headcol-green{
  background-color: var(--green);
  color: var(--white);
  border-radius: 3px;
}

.headcol-yellow{
  background-color: var(--yellow);
  color: var(--white);
  border-radius: 3px;
}

.headcol-red{
  background-color: var(--red);
  color: var(--white);
  border-radius: 3px;
}

.icon-act-light{
  color: var(--white);
  font-size: 12px;
}

.icon-act-dark{
  color: var(--blue);
  font-size: 12px;
}
.fnt-color-lit{
  color: var(--white);
}
.fnt-color-drk{
  color: var(--blue);
}

.red-bg{
  background-color: var(--red-ligth);
  color: #000;
}

.green-bg{
  background-color: var(--green-ligth);
  color: #000;
}

.yellow-bg{
  background-color: var(--yellow-ligth);
  color: #000;
}

.select-bg{
  background-color: var(--blue);
  color: #fff;
}
.detail-bg{
  background-color: var(--yellow-ligth);
  color: #000;
}

.box-info{
  font-size: 11px;
  font-weight: bold;
  padding: 2px 2px;
  margin: 2px;
  border-radius: 2px;
}
.box-card{
  background-color: var(--white);
  color: #000;
  border: 1px solid #d5d7da;
  border-radius: 5px;
  padding: 25px 25px 10px 25px;
  /*margin: 0px 30px 20px 0px;*/
  line-height: 35px;
}



 .scroll-y{
  height: 350px;
  overflow: auto;
  margin-bottom: 10px;
  /*background-color: var(--white);*/
  }

  .btn-form{
    border: none;
    font-size: 18px;
    background: none;
  }


