*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
     font-family: 'IBM Plex Sans Arabic', sans-serif;
}

/**/
    body {
        font-family: 'Arial', sans-serif;
    }

    .main {
        padding: 20px;
        background-color: #f5f6fa;
        min-height: 90vh;
    }

    .dashboard-title {
        text-align: center;
        font-size: 28px;
        margin-bottom: 30px;
        color: #333;
        font-weight: bold;
    }

    .cardBox {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .card {
        background-color: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        padding: 20px;
        width: 220px;
        text-align: center;
        transition: transform 0.2s;
        position: relative;
    }

    .card:hover {
        transform: translateY(-5px);
    }

    .cardNumber a {
        color: #37a71b;
        font-size: 18px;
        font-weight: bold;
        text-decoration: none;
    }

    .cardNumber a:hover {
        text-decoration: underline;
    }

    .cicon {
        font-size: 30px;
        color: #37a71b;
        margin: 15px 0;
    }

    h4 {
        color: #555;
        margin: 0;
        font-size: 20px;
    }

    .shortcuts h3 {
        color: #333;
        margin-bottom: 15px;
    }

    .shortcuts h5 a {
        color: #37a71b;
        text-decoration: none;
    }

    .shortcuts h5 a:hover {
        text-decoration: underline;
    }
/**/
.fa-laptop{
    color: #fff;
    text-shadow: 1px 2px 1px #000
}
 tr a{
    color: #000;
 }
:root{
    --white:#fff;
    /* --blue:#21a528; */
    --blue:#103e8a;
    --black1:#333;
    --black2:#999;
    --grey:#f5f5f5;
    --red:#b70505;
    --green:#04880f;
}
html{
    /* for arbic */
    direction: rtl;
}
body{
    min-height: f100vh;
}
/* my change*/
.from1{
    padding-right: 20px;
    font-size: 20px;
  }
  .container{
   
  }
  /* end my change*/
/* the rule for main button */
.btn{
    position: relative;
    padding: 7px 13px;
    color: var(--white);
    background: #103e8a;
    border-radius: 5px;
    text-decoration: none;
    border: 2px solid transparent;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
}
.oheader img{
    height: 110px;
}
.no1{
  display: block;
    margin: -30px 8px;
    width: 32px;
    padding: 9px;
    border-radius: 50%; 
}
.btn:hover{
    background-color: var(--white);
    color: var(--black1);
    border: 2px solid #103e8a;
}
.container{
    position: relative;
    width: 100% !important;
    padding: 0px !important;
}
.nav{
    position: fixed;
    width: 300px;
    height: 100%;
    background: #103e8a;
     /* for arbic */
    border-right: 10px solid #103e8a;
    transition: .5s;
    overflow: hidden;
}
.nav.shreenk{
    width: 80px;
}
.nav ul{
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
}
.nav ul li{
    list-style: none;
    position: relative;
    width: 100%;
    font-size: 22px;
    margin-top: 10px;
    /* for english
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px; */
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
}
.nav ul li:nth-child(1){
    margin-bottom: 40px;
    position: relative;
    display: block;
    white-space: nowrap;
    padding:0 6px;
    margin-top: 60px;
   /* margin-right: -50px;*/
}
.nav ul li:nth-child(1) a{
   display: inline;
       text-shadow: 1px 2px 3px #000;
}
.nav ul li:nth-child(1) span{
    display: inline-block;
    width: 60px;
    height: 45px;
}
.nav ul li:nth-child(1) span img{
   width: 108%;
    height: 138%;

}


.nav ul li.hovered{
    background: #fff;
}
.nav ul li > a{
    position: relative;
    display: flex;
    width: 100%;
    text-decoration: none;
    color: #fff;
}
.nav ul li.hovered a{
    color: #103e8a !important;
}
.nav ul li a .icon{
    position: relative;
    min-width: 60px;
    height: 60px;
    line-height: 60px;
    display: block;
    text-align: center;
    font-size: 1.75em;
}
.nav ul li a .title{
    position: relative;
    display: block;
    height: 60px;
    line-height: 60px;
    white-space: nowrap;
    padding: 0 10px;
}
.nav ul li.hovered a::before{
    content: '';
    position: absolute;
     /* for arbic */
    left: 0;
    top: -50px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background: transparent;
     /* for english */
      /* box-shadow: 35px 35px 0 10px var(--white); */
    box-shadow: -35px 35px 0 10px var(--white);
    pointer-events: none;
}
.nav ul li.hovered a::after
{
    content: '';
    position: absolute;
     /* for arbic */
    left: 0;
    bottom: -50px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background: transparent;
     /* for english */
      /* box-shadow: 35px -35px 0 10px var(--white); */
    box-shadow: -35px -35px 0 10px var(--white);
    pointer-events: none;
}
/* start the serch bar  */
.topbar{
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:10px;
    position: fixed;
    inset: 0;
    z-index: 3;
}
.toggle{
    position: relative;
    top: 0;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5em;
    cursor: pointer;
}
.search{
    position: relative;
    width: 400px;
    margin: 0 10px;
}
.search label{
    position: relative;
    width: 100%;
}
.search label input{
    width: 100%;
    height: 40px;
    border-radius: 40px;
    padding: 5px 20px;
    outline: none;
    border: 1px solid var(--black2);
    padding-left: 35px;
    font-size: 15px;
}
.search label i{
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 1.2em;
}
.user{
    position: relative;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 50%;
    cursor: pointer;
}
.user img{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
}
/* end the serch bar  */
.main{
    position: relative;
    width: calc(100% - 300px);
     /* for arbic */
    right: 300px;
    background: var(--white);
    transition: .5s;
   /* height: 100vh;*/
    padding-top: 60px;
}
.main.active{
    width: calc(100% - 80px);
     /* for arbic */
    right: 80px;
}
.main h2{
   font-size: 2rem;
   padding:20px 30px;
   color: #103e8a;
}

.cardBox{
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap:nowrap;
    grid-gap:20px;
}
.cardBox .card{
    border: 1px solid rgba(0,0,0,0.08);
    padding: 20px;
    background: var(--white);
    box-shadow:-10px 7px 7px rgba(0,0,0,0.08);
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}
.cardBox .card .cardNumber a{
 font-size: 22px !important;
    text-decoration: none;
    position: relative;
    font-weight: 500;
    color: #103e8a;
    top: -5px;
}
.cardBox .card a .cardNumber {
 font-size: 22px !important;
    text-decoration: none;
    position: relative;
    font-weight: 500;
    color: #103e8a;
    top: -5px;
}

.card .cicon{
    font-size: 3.2em;
    color: var(--black2);
}
.card:hover{
    background: #eee;
    color: #000;
}
.cardBox .card:hover .cardNumber a,
.cardBox .card:hover .icon{
    color: #000;
}

/*details the main container for the tables*/
.details{
    position: relative;
    width: 100%;
    padding: 20px;
    display: flex;
    grid-gap: 30px;
    margin-top:10px ;
}
/*the bigest table container*/
.details .recentO{
    position: relative;
    flex: 1;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 7px 25px rgba(0,0,0,0.08);
    border-radius: 20px;
}
.oheader h3{
    font-weight: 600;
    color: #103e8a;
    font-size: 1.7rem;
}
h3,h2,h1,h4,h5,h6{
   
    color: #103e8a;
    font-weight: bold;

}

.details table{
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.details table thead{
    font-weight: 600;
}
.details .recentO table tr{
    color: var(--black1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.details .recentO table tr:last-child{
    border-bottom: none;
}
.details .recentO table tbody tr:hover{
    background: #103e8a;
    color: var(--white);
}
.details .recentO table tr td{
    padding: 10px;
}
.details .recentO table tr td:last-child{
    text-align: end;
   /* display: flex;*/
    gap: 5px;

}
.details .recentO table tr td span{
    cursor: pointer;
    padding: 7px 10px;
    color: var(--white);
    border-radius: 7px;
 
}
.update{
        top: 31px;
}



.details .recentO table tr td span:nth-child(1){
    /*background-color: var(--green);*/
    text-decoration: none;
    
}
.details .recentO table tr td span a{
    text-decoration: none;
    color: var(--white);
}
.details .recentO table tr td span:hover{
    background: var(--grey);
    color: var(--black1);}
     .details .recentO table tr td span:hover a{
        color: var(--black1);}
.recentCustomers{
    position: relative;
    padding: 20px;
    box-shadow: 0 7px 25px rgba(0,0,0,0.08);
    border-radius: 20px;
    background: var(--white);
}
.recentCustomers .imgBx{
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}
.recentCustomers .imgBx img{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.recentCustomers table tr:hover{
    background: #103e8a;
    color: var(--white);
}
.recentCustomers table tr td{
    padding: 12px 10px;
}
.recentCustomers table tr h4{
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2em;
}
.recentCustomers table tr  span{
    font-size: 14px;
    color: var(--black2);
}
.recentCustomers table tr:hover h4 span{
    color: var(--grey);
}
/* =========form ==============*/
.form-container{
    display: flex;
    flex-direction: column;
    font-size: 1.5rem;
    padding: 10px 25px;
}
.form-container .input-box{
    display: flex;
    padding: 10px;
}
.form-container .input-box label{
    text-align: right;
    font-size: 20px;
    min-width: 113px;
    color: var(--black1);
}
.form-container .input-box input,
.form-container .input-box textarea{
    min-width:350px ;
    height: 40px;
    border-radius: 10px;
    outline: none;
    border: 1px solid var(--black2);
    font-size: 1.2rem;padding: 10px;
    
}
.form-container .input-box textarea{
    height: inherit;}
.input-box button{
    width: 40px;
    height: 40px;
    margin-right: 10px;
    cursor: pointer;
}
.form-container .btn{
    width: 100px;
    height: 50px;
    padding: 10px;
    margin: 20px;
    align-self: flex-end;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}
.container-login{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
    text-align: center;
    background-color: #103e8a;

}
.container-login > div{
  background-color: #fff;
  padding: 30px;
  padding-top: 50px;
  border-radius: 10px;
  color: #103e8a;
  box-shadow:  0px 15px 30px hsla(210, 30%, 32%, 0.05);
}
.container-login h3{
    font-size: 1.7rem;
}

/* =========media==============*/
@media (max-width:991px){
    .nav{
        /* for arbic */
        right: -300px;
    }
    .nav.shreenk{
        width: 300px;
        /* for arbic */
        right: 0;
    }
    .main{
        width: 100% !important;
        /* for arbic */
        right: 0;
    }
    .main.active{
        /* for arbic */
      right: -91px;
    }\
    .cardBox {
    width: 100%;
     margin-right: 89px !important;
    }
    .cardBox .card{
    margin-right: 89px !important; 
    }
    .graphBox{
        grid-template-columns: 1fr;

    }
    .cardBox{
        grid-template-columns: repeat(2,1fr);
    }
}
@media print{
    .details{
        margin-top: -20px !important;
    }
    .topbar{
    display: none !important;
}
.print{
 display: none !important;
}
.container .details{
    margin-top: -100px;
   
  
}
.hide{
    display: none !important;
}

}
@media (max-width:768px){
    .details{
        grid-template-columns: repeat(1,1fr);
    }
    .recentCustomers{
        overflow-x: auto;
    }
}
@media (max-width:480px){
    .cardBox{
        grid-template-columns: repeat(1,1fr);
    } 
    .oheader h2 {
        font-size: 20px;
    }
.user{
    min-width: 40px;
}
.nav{
    width: 100%;
    /* for arbic */
    right: -100%;
    z-index: 111;
}
.nav.shreenk{
    width: 100%;
    /* for arbic */
    right: 0;
}
.toggle{
    z-index: 115;
}
.main.active .toggle{
    position: fixed;
    /* for arbic */
    left: 0;
     /* for arbic */
    right: initial;
    color: #fff;
}
}



/* ========== Responsive Mobile Enhancements ========== */
/* ضع هذا القسم في نهاية style22.css ليعمل كـ overrides على القواعد السابقة */

/* قواعد متغيرة عامة */
:root{
    --nav-wide-width: 300px;
    --nav-collapsed-width: 80px;
    --nav-mobile-height: 64px;
    --gap: 16px;
    --radius: 12px;
    --touch-min: 44px; /* الحد الأدنى لمساحة اللمس */
}

/* اجعل النصوص مرنة بحسب حجم الشاشة */
html { font-size: 16px; }
@media (max-width: 1200px)  { html { font-size: 15px; } }
@media (max-width: 900px)   { html { font-size: 15px; } }
@media (max-width: 480px)   { html { font-size: 14px; } }

/* عناصر عامة */
img, svg { max-width: 100%; height: auto; display: block; }
button, .btn, a.btn { min-height: var(--touch-min); padding: 10px 14px; line-height: 1.2; }

/* تحسين الحاويات */
.container { max-width: 100%; padding-left: var(--gap); padding-right: var(--gap); }

/* NAV - سلوك قابل للطي ومتحكم فيه */
.nav {
    width: var(--nav-wide-width);
    right: 0; /* لأن الاتجاه rtl */
    transition: transform .35s ease, width .35s ease;
    will-change: transform, width;
}

/* شريط علوي بديل للهواتف */
.topbar {
    height: var(--nav-mobile-height);
    padding: 8px;
    align-items: center;
    gap: 8px;
}

/* عندما يصغر العرض: اجعل الـ nav تغطي الشاشة وتظهر كـ drawer */
@media (max-width: 991px) {
    .nav {
        position: fixed;
        width: 100%;
        height: 100%;
        right: -100%;
        z-index: 9999;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        background: #103e8a;
    }
    .nav.shreenk { right: 0; } /* حالة الفتح على الموبايل */
    .main {
        width: 100% !important;
        right: 0;
        transition: .35s;
    }
    /* تحسين عناصر الكارت لتكون قابلة للتمرير أفقياً إن لزم */
    .cardBox {
        gap: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }
    .cardBox .card {
        min-width: 200px;
        flex: 0 0 auto;
    }
    /* حقل البحث يصبح بعرض كامل */
    .search { width: calc(100% - 120px); min-width: 120px; }
}

/* تحسين الأداء على شاشات صغيرة جداً */
@media (max-width: 480px) {
    html { font-size: 14px; }
    .toggle { width: var(--nav-mobile-height); height: var(--nav-mobile-height); }
    .search { display: none; } /* لو ضيق المساحة - امكن تخفيها، أو ضع أيقونة بديلة */
    .user { min-width: 48px; min-height: 48px; }
    .oheader img { height: 80px; }

    /* جعل الأزرار inputs ممتدة بعرض الحاوية */
    .form-container .input-box input,
    .form-container .input-box textarea {
        min-width: 100%;
        width: 100%;
    }

    .form-container .btn {
        width: 100%;
        align-self: stretch;
        box-sizing: border-box;
    }

    /* جعل صفوف الجدول قابلة للعرض بشكل أفضل */
    .details .recentO table { font-size: 0.95rem; }
    .details .recentO table td { padding: 12px 8px; word-break: break-word; }

    /* تكبير عناصر اللمس داخل القوائم */
    .nav ul li a { padding: 12px 14px; font-size: 1rem; }
}

/* تحسين التركيز والـ accessibility */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 3px solid rgba(16,62,138,0.15);
    outline-offset: 2px;
}

/* تحسين سرعة اللمس: زيادة المسافة بين الأزرار الصغيرة */
.details .recentO table tr td span { margin-left: 6px; margin-right: 6px; }

/* تحسين قوائم التنقل الطويلة: اخترف النص بدل اختفاءه */
.nav ul li .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* تحسينات طباعة صغيرة */
@media print {
    .nav, .topbar, .toggle, .print { display: none !important; }
    .main { width: 100% !important; right: 0 !important; padding-top: 0; }
}

/* Optional: class to enable overlay backdrop when nav open on mobile */
.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999;
}
.nav-backdrop.active { display: block; }

/* small helpers */
.hidden-xs { display: none; }
@media (min-width: 992px) { .hidden-xs { display: initial; } }
