*{
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	text-decoration: none !important;
	list-style: block;
	font-family: Tajawal;
}
/* width */
::-webkit-scrollbar {
    width: 1px;
}
  
/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
   
/* Handle */
::-webkit-scrollbar-thumb {
    background: #888; 
}
  
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

/* sidebar section */
/* sidebar section */
aside{
	position: fixed;
	right: 0;
	width: 240px;
	height: 100%;
	overflow-y: auto;
	transition: all .3s;
	z-index: 3;
    color: #198754;
    background-color: #ffffff;
}
.sidebar-header{
    height: 108px;
}
.sidebar-header > div{
    height: 54px;
    padding-top: 12px;
}
.sidebar-header > strong{
    height: 45px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
aside .user-img{
    border-radius: 50%;
    height: 40px;
    width: 40px;
    object-fit: cover;
}
.sidebar-items > a{
    padding: 12px 7px 12px 7px;
    font-size: 16px;
    color: #198754;
}
.active-sidebar-url{
    background: #19875419;
}
aside ul{
    margin-bottom: 0;
}
aside ul a{
    font-size: 14px;
    padding: 7px 35px 7px 5px;
	background-color: #FBFBFB;
    display: block;
    color: #198754;
}
aside a:hover, aside ul a:hover{
    background: #1987540d;
}
#directives-manage-subsidebar, #accounts-manage-subsidebar, #roles-manage-subsidebar{
    margin-top: 1px;
}
.bg-light-dark{
    background-color: #17283A;
}

header{
    position: fixed;
    left: 0;
    width: calc(100% - 240px);
    height: 60px;
    line-height: 60px;
	margin-right: 240px;
	transition: all .3s;
    z-index: 2;
}
header .header-logo{
    height: 45px;
}
header .notification-icon{
    height: 22px;
    width: 25px;
    line-height: 1.5;
    vertical-align: middle;
    background: none;
    border: none;
    outline: none;
}
header .notification-icon svg{
    margin-top: -4px;
}
header .user-img{
    border-radius: 50%;
    height: 25px;
    width: 25px;
    object-fit: cover;
}
#windowed{
    display: none;
}
.user-box{
    height: auto;
    width: 180px;
    position: fixed;
    top: 50px;
    left: 15px;
    font-size: 15px;
    text-align: center;
    display: none;
    z-index: 4;
}
.notification-box{
    height: auto;
    width: 250px;
    position: fixed;
    top: 50px;
    left: 50px;
    font-size: 15px;
    text-align: center;
    display: none;
    z-index: 4;
}
.main-section{
    height: 100%;
	margin-right: 240px;
	transition: all .3s;
    padding-top: 105px;
}
.page-header{
    position: fixed;
    top: 63px;
    left: 0;
    width: calc(100% - 240px);
    height: 45px;
    line-height: 45px;
    z-index: 2;
	transition: all .3s;
}
.page-header strong{
    border-right: 2px solid #2f3a45;
}
.ul-show{
    margin-right: -240px;
}
.whole-header{
    width: 100% !important;
}
.whole-page-header{
    width: 100% !important;
}
.whole-page{
  margin-right: 0px;
}
.cursor-pointer{
	cursor: pointer !important;
}
.reflect-y{
	transform: rotateY(180deg);
}
.reflect-x{
	transform: rotateX(180deg);
}
.checkbox-block{
    padding-left: 25px;
    padding-right: 25px;
}
.font-size-14{
    font-size: 14.5px;
}
.search-btn{
    top: -32px;
    padding: 0;
    opacity: 0.6;
    margin-right: 10px;
    color: #d8d8d8;
    position: relative;
    border: none;
    outline: none;
    background: none;
}
#next_fin_refno, #next_admin_refno{
    display: none;
}


/* dashboard style */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --light-gray: #f8f9fa;
}

.stat-card {
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.stat-card.incoming {
    background-color: rgba(52, 152, 219, 0.1);
    border-right: 4px solid var(--primary-color);
}

.stat-card.outgoing {
    background-color: rgba(46, 204, 113, 0.1);
    border-right: 4px solid var(--secondary-color);
}

.stat-card.pending {
    background-color: rgba(243, 156, 18, 0.1);
    border-right: 4px solid var(--warning-color);
}

.stat-card.completed {
    background-color: rgba(231, 76, 60, 0.1);
    border-right: 4px solid var(--danger-color);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-left: 15px;
}

.stat-icon.incoming {
    background-color: rgba(52, 152, 219, 0.2);
    color: var(--primary-color);
}

.stat-icon.outgoing {
    background-color: rgba(46, 204, 113, 0.2);
    color: var(--secondary-color);
}

.stat-icon.pending {
    background-color: rgba(243, 156, 18, 0.2);
    color: var(--warning-color);
}

.stat-icon.completed {
    background-color: rgba(231, 76, 60, 0.2);
    color: var(--danger-color);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    margin: 10px 0;
}

.stat-title {
    font-size: 16px;
    color: #555;
}

.trend-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
}

.trend-up {
    background-color: rgba(46, 204, 113, 0.2);
    color: var(--secondary-color);
}

.trend-down {
    background-color: rgba(231, 76, 60, 0.2);
    color: var(--danger-color);
}

.chart-container {
    height: 400px;
    width: 100%;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-right: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 5px;
}

.chart-wrapper {
    position: relative;
    height: calc(100% - 40px); /* يحسب ارتفاع تلقائي مع استبعاد مساحة العنوان */
    width: 100%;
}


/*Custom Bootstrap*/
.dropdown-menu{
    z-index: 1;
}
.dropdown-menu a, .dropdown-menu button{
    width: 200px !important;
}
.dropdown-menu a:hover, .dropdown-menu button:hover{
    background-color: #f3f3f3;
}

.form-select option:hover {
    background-color: #198754 !important; /* Green on hover */
    color: #f3f3f3 !important; /* White text */
}
.form-control:focus, .form-select:focus {
    border-color: #14a44e3a !important;
    box-shadow: 0 0 5px #14a44e3a !important;
}
.form-check-input:checked{
    background-color: #198754 !important;
    border-color: #198754 !important;
}
.date-rtl {
  text-align: right;           /* التاريخ بمحاذاة اليمين */
  direction: rtl;              /* اتجاه RTL */
  position: relative;
  padding-left: 30px;          /* عشان ما يغطي النص على الأيقونة */
}

.date-rtl::-webkit-calendar-picker-indicator {
  position: absolute;
  left: 10px;                  /* يحط الأيقونة يسار */
  right: auto;
}



/* Checkbox Styling */
.form-check-input:checked { 
    background-color: #198754 !important; 
    border-color: #198754 !important; 
}
.form-select option:disabled {
    color: #929292;
}
#loadingDiv{
    display: none;
}


.active>.page-link, .page-link.active{
    background-color: #198754 !important;
    color: #ffffff !important;
}
.pagination a:hover{
    background-color: #ececec !important;
}
.pagination a {
    color: #198754 !important;
    padding: 4px 12px !important;
    text-decoration: none;
    border: 1px solid #1987545e !important;
    margin: 0px !important;
    border-radius: 2px !important;
}
.page-link:focus, .page-link:active {
    outline: none !important;
    box-shadow: none !important;
}


@media all and (max-width: 715px){
    aside{
        top: 108px;
        position: fixed;
        margin-right: -240px;
    }
    .sidebar-header{
        display: none;
    }
    header{
        width: 100%;
    }
    .page-header{
        width: 100%;
    }
    .main-section{
        width: 100%;
        margin-right: 0px;
    }
    .ul-show{
        margin-right: 0px;
    }
}


/* form section */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}
.employee-photo img{
	display: block;
	margin: 10px auto;
	width: 200px;
    border-radius: 5px;
    border: 2px solid #e7e7e7;
}
#upload-images-btn{
    outline: none;
    border: none;
}
#upload-images-btn:hover{
    background: none !important;
    color: #3a3f44;
}
input[type="file"]{
    display: none;
}

/* table sectio */
.search-svg{
    margin-top: -63px;
    margin-right: 10px;
    color: #d8d8d8;
}
.table-dark th{ 
    background: #2f3a45 !important;
    color: #d8d8d8 !important;
}
.pagination a { 
    color: #007BFF; 
    padding: 8px 16px; 
    text-decoration: none; 
    border: 1px solid #007BFF; 
    margin: 0 5px; 
    border-radius: 4px; 
} 
td.details-column {
    max-width: 200px; 
    white-space: normal; 
    word-wrap: break-word; 
    overflow-wrap: break-word;
}
td.status-column {
    max-width: 120px; 
    white-space: normal; 
    word-wrap: break-word; 
    overflow-wrap: break-word;
}
  
.pagination a:hover { 
    background-color: #007BFF; 
    color: white; 
} 
  
.pagination .active { 
    background-color: #007BFF; 
    color: white; 
} 

/* profile */
.note-text{
    font-size: 10px;
}
.profile-photo img{
    height: 120px;
    width: 120px;
    border-radius: 50%;
    object-fit: cover;
}
.active{
    background: #F3F4F5 !important;
    color: #3a3a3a !important;
}
#update_img_btn{
    display: none;
}


/* login page */
.login-icon {
    width: 90px;
    height: 90px;
    padding: 10px;
    border-radius: 50%;
    position: relative;  /* مهم */
    z-index: 10;         /* أعلى من login-form-box */
}
.login-title{
    position: relative;
    z-index: 11;  
}
.login-form-box{
    padding-top: 100px !important;
    margin-top: -128px;
    z-index: 1;
}
.login-logo{
    width: 250px;
    height:565px;
    line-height: 565px;
    margin: auto;
}
.login-logo div{
    line-height: 1.5;
    display: inline-block;
    vertical-align: middle;
}
.login-logo img{
    width: 100%;
}
#hide_password_icon, #hide_confirm_password_icon, #hide_old_password_icon, #hide_new_password_icon, #hide_confirm_new_password_icon{
	display: none;
}
label.is-invalid {
    color: #dc3545;
    font-size: 14.5px;
    display: block;
    margin-top: 3px;
    font-weight: 600;
    position: relative;
    left:  5px;
    text-align: left;
}
.password_icon{
    position: absolute;
    float: left;
    left: 25px;
    margin-top: 10px;
    font-size: 15px;
    width: 25px;
}

@media all and (max-width: 767.5px){
    .login-logo{
        height:150px;
        line-height: 150px;
    }
}


/**/
.office-name{
    padding: 10px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0;
}
.collapsible-table tr {
    display: none;
}
#pre_admin_refno{
    display: none;
}


/* Thin scrollbar */
.table-scroller {
    min-height: 500px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
.table-scroller::-webkit-scrollbar {
    height: 6px;
}


/* custom select */
.custom-select-container {
    position: relative;
}

.custom-search-box {
    width: 100%;
    margin-bottom: 0px;
}

.custom-select-dropdown {
    display: none;
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    border-right: 1px solid #ced4da;
    border-left: 1px solid #ced4da;
    border-bottom: 1px solid #ced4da;
    border-radius: 0 0 4px 4px;
    background: white;
    box-shadow:
    -8px 0 14px -8px rgba(0,0,0,0.10),  /* left  */
     8px 0 14px -8px rgba(0,0,0,0.10),  /* right */
     0 10px 18px -6px rgba(0,0,0,0.10); /* bottom */
    z-index: 1000;
}

.custom-select-dropdown.show {
    display: block;
}

.custom-select-option {
    padding: 8px 12px;
    cursor: pointer;
}

.custom-select-option:hover {
    background-color: #f8f9fa;
}

.custom-selected-item {
    cursor: pointer;
    user-select: none;
}

.custom-disabled-input{
    pointer-events: none; background:#eee;
}