/*version 2.0.2*/
/* Adding Font bkoodakbold */
@font-face {
    font-family: 'bkoodakbold';
    src: url('../fonts/bkoodakbold.eot'); /* IE9 Compat Modes */
    src: url('../fonts/bkoodakbold.eot?#') format('eot'), /* IE6�8 */
        url('../fonts/bkoodakbold.ttf') format('truetype'), /* Saf3�5, Chrome4+, FF3.5, Opera 10+ */
        url('../fonts/bkoodakbold.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
        url('../fonts/bkoodakbold.otf') format('opentype'),
        url('../fonts/bkoodakbold.svg') format('svg');
    font-variant: normal;
    font-weight: normal;
    font-style: normal;
}
* {
    padding: 0 0 0 0;
    margin: 0 0 0 0;
    direction: rtl;
    font-family: bkoodakbold , tahoma;
    font-size: 14px;
    box-sizing: border-box;
}

html, body {
    min-height: 100vh;
}

body {
    /*max-width: 1200px;*/
    color:#000000;
    background: #6699CC;
    font-family: bkoodakbold,tahoma ,arial, verdana, serif;
    font-style: normal;
    font-weight: normal;
    /*background:url(../links/img/bgb.jpg) repeat;*/ 
    background:url(../links/img/bg2.jpg) repeat;
}


#heading {
    width:100%;
    height:127px;
    position:relative;
    float:right;
    background:url(../img/Header-pic.gif) repeat;
    /*box-shadow:0 10px 20px #CCC;*/
    -moz-box-shadow:0 10px 20px #CCC;
    -webkit-box-shadow:0 10px 20px #CCC;
    z-index:-100px;
    display:inline;
}

#main {
    width:100%;
    max-width: 100%;
    /*background:url(../links/img/bgb.jpg) repeat;*/
    position:relative;
    float:none;
    overflow:visible;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "heading heading"
        "sidebar content"
        "footer footer";
    column-gap: 16px;
    align-content: start;
    /*border:solid #F00 2px;*/
}

#sidebar{
    grid-area: sidebar;
    float:none;
}
#footer {
    width: 100%;
    max-width: 100%;
    background:url(../img/Header-pic.gif) repeat;
    box-shadow:0 10px 20px #CCC;
    -moz-box-shadow:0 10px 20px #CCC;
    -webkit-box-shadow:0 10px 20px #CCC;
    grid-area: footer;
    grid-column: 1 / -1;
    float:none;
	margin-top: auto;
    align-self: end;

}

#heading h1 {
    font-size: 12px;
    color: #efefef;
    float: left;
    margin: 5% 10%;
}

#content {
    padding: 0;
    /*background:url(../links/img/bgb.jpg) repeat;*/
    /*float: left;*/
    /*display:inline;*/
    grid-area: content;
    overflow:visible;
    flex: 1 0 auto;
    min-width: 0;
    /*min-height:700px;*/
    /*border:#393  dotted 2px;*/


}

#heading {
    grid-area: heading;
}

@media screen and (max-width: 720px){
    #main {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto minmax(0, 1fr) auto;
        grid-template-areas:
            "heading"
            "sidebar"
            "content"
            "footer";
        column-gap: 0;
        row-gap: 10px;
    }
    #content {
        padding: 6px 8px 0 8px;
    }
    #heading,
    #sidebar,
    #content,
    #footer {
        width: 100%;
        max-width: 100%;
    }
    .hs-menu-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px 8px;
    }
    .hs-menu-grid li {
        width: 96px;
        min-height: 96px;
        padding: 8px 6px 6px;
        border-radius: 20px;
        gap: 6px;
    }
    .hs-menu-grid li a {
        font-size: 11px;
        line-height: 1.2;
    }
    .hs-menu-grid li > a:first-child {
        width: 48px;
        height: 48px;
        border-radius: 15px;
    }
    .hs-menu-grid li > a:last-child {
        min-height: 32px;
    }
    .hs-menu-grid li img {
        width: 24px;
        height: 24px;
    }
}

/*#navigate {
width: 20%;
padding: 0 4%;
float: left;
}*/

#content h1 {
    font-size: 13px;
    margin: 2% 0;
    text-align: center;
}

/*#navigate h2 {
font-size: 12px;
margin: 2% 0;
text-align: center;
}*/

#content p {
    font-size: 13px;
    margin: 2% 0;
}



address {
    color: #efefef;
    font-size: 14px;
    text-align: center;
    padding: .5% 0
}

#heading img {
    float: right;
    padding: 1%;
    border: none;
    max-width: 80%
}

#content img {
    border: solid #000000 0px;
    margin: .5% 4%;
    max-width: 85%	
}

ul.icons li{
    direction:rtl;
    float:right;
    list-style:none;
    margin:5px;
    padding:3px;
    text-align:center;
    width:100px;
    height:100px;
    font-size:12px;
    border: 1px solid gray;
	border-radius: 25px;
	display: flex;
    justify-content: center;
    align-items: center;

}

.hs-menu-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 12px;
    justify-content: flex-start;
    align-items: flex-start;
    clear: both;
    width: 100%;
}

.hs-menu-grid li {
    float: none;
    width: 108px;
    min-height: 108px;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 10px 8px 8px;
    border: 1px solid #dbe5f1;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 22px rgba(31, 42, 68, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 7px;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.hs-menu-grid li:hover {
    transform: translateY(-2px);
    border-color: #bfd3ee;
    box-shadow: 0 14px 28px rgba(31, 42, 68, 0.12);
}

.hs-menu-grid li a {
    color: #1f2a44;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.28;
    text-align: center;
    width: 100%;
}

.hs-menu-grid li > a:first-child {
    display: flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(180deg, #f7fbff 0%, #edf4ff 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.hs-menu-grid li > a:last-child {
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

.hs-menu-grid li img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin: 0;
    max-width: none;
}

.dashboard-shell {
    display: grid;
    gap: 18px;
    width: 100%;
}

.dashboard-stat-card {
    justify-content: center !important;
    gap: 6px !important;
    text-align: center;
}

.dashboard-stat-card.is-clickable {
    padding: 0 !important;
    overflow: hidden;
    border-color: #c7ddeb;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.dashboard-stat-card.is-clickable:hover {
    transform: translateY(-3px);
    border-color: #168b93;
    box-shadow: 0 12px 24px rgba(18, 102, 111, 0.15);
}

.dashboard-stat-form {
    width: 100%;
    height: 100%;
    margin: 0;
}

.dashboard-stat-action {
    display: flex;
    width: 100%;
    min-height: 88px;
    height: 100%;
    padding: 12px 9px;
    border: 0;
    border-radius: inherit;
    background: linear-gradient(145deg, #ffffff 0%, #f2fbfb 100%);
    color: inherit;
    font: inherit;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.dashboard-stat-action:focus-visible {
    outline: 3px solid rgba(13, 148, 136, 0.28);
    outline-offset: -4px;
}

.dashboard-stat-hint {
    color: #0f7f86;
    font-size: 9px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.dashboard-stat-card.is-clickable:hover .dashboard-stat-hint,
.dashboard-stat-action:focus-visible .dashboard-stat-hint {
    opacity: 1;
    transform: translateY(0);
}

.dashboard-stat-value {
    display: block;
    color: #11345c;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.dashboard-stat-label {
    display: block;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
}

.dashboard-panel {
    border: 1px solid #dbe5f1;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 28px rgba(31, 42, 68, 0.08);
    padding: 18px;
}

.dashboard-panel-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.dashboard-panel-header h3 {
    margin: 0 0 4px;
    color: #1f2a44;
    font-size: 18px;
    line-height: 1.3;
}

.dashboard-panel-header p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.dashboard-filter-form,
.dashboard-active-school {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-filter-form label,
.dashboard-active-school span {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.dashboard-filter-form select {
    min-width: 220px;
    border: 1px solid #c7d8ee;
    border-radius: 14px;
    background: #fff;
    color: #1f2a44;
    padding: 8px 12px;
}

.dashboard-active-school strong {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 14px;
    background: #edf4ff;
    color: #1d4ed8;
}

.dashboard-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.dashboard-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 12px;
    background: #f8fbff;
    color: #475569;
    font-size: 12px;
    border: 1px solid #e2e8f0;
}

.dashboard-meta strong {
    color: #1f2a44;
}

.dashboard-class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.dashboard-class-card {
    border: 1px solid #dbe5f1;
    border-radius: 20px;
    background: #fff;
    padding: 14px;
    display: grid;
    gap: 12px;
    box-shadow: 0 8px 18px rgba(31, 42, 68, 0.06);
}

.dashboard-class-card.is-good {
    border-color: #cde7d8;
}

.dashboard-class-card.is-warning {
    border-color: #f2d3a2;
}

.dashboard-class-card.is-danger {
    border-color: #efc2c2;
}

.dashboard-class-card.is-empty {
    border-color: #e2e8f0;
    opacity: .9;
}

.dashboard-installment-card {
    border-color: #bfe2dc;
    background: linear-gradient(135deg, #f2fbf9 0%, #fff 72%);
}

.dashboard-installment-card.is-overdue {
    border-color: #efb6ad;
    background: linear-gradient(135deg, #fff1ef 0%, #fff 72%);
}

.dashboard-installment-card.is-upcoming .dashboard-class-state {
    background: #e2f5f1;
    color: #0f766e;
}

.dashboard-installment-card.is-overdue .dashboard-class-state {
    background: #ffe1dc;
    color: #b42318;
}

.dashboard-installment-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-installment-summary > div {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 14px;
    background: rgba(255, 255, 255, .76);
}

.dashboard-installment-summary span,
.dashboard-installment-summary strong {
    display: block;
}

.dashboard-installment-summary span {
    margin-bottom: 5px;
    color: #64748b;
    font-size: 11px;
}

.dashboard-installment-summary strong {
    color: #1f2a44;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.dashboard-installment-alert {
    padding: 9px 12px;
    border-radius: 12px;
    background: #b42318;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.student-overdue-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(22, 31, 45, .68);
    backdrop-filter: blur(7px);
}

.student-overdue-modal__card {
    width: min(430px, 100%);
    padding: 25px 22px 22px;
    border: 1px solid #efb8af;
    border-radius: 26px;
    background: linear-gradient(160deg, #fff 0%, #fff8f6 100%);
    box-shadow: 0 28px 80px rgba(57, 23, 18, .26);
    text-align: center;
}

.student-overdue-modal__icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 13px;
    display: grid;
    place-items: center;
    border-radius: 21px;
    background: #ffe5df;
    color: #b42318;
    font-size: 31px;
    font-weight: 900;
}

.student-overdue-modal__eyebrow {
    color: #b42318;
    font-size: 11px;
    font-weight: 800;
}

.student-overdue-modal h3 {
    margin: 6px 0 10px;
    color: #3d2420;
    font-size: 21px;
}

.student-overdue-modal p {
    margin: 0;
    color: #6f5752;
    font-size: 12px;
    line-height: 2;
}

.student-overdue-modal__meta {
    margin: 15px 0 12px;
    padding: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    border: 1px solid #f1d0ca;
    border-radius: 15px;
    background: #fff;
    color: #7a4941;
    font-size: 11px;
}

.student-overdue-modal__meta strong {
    color: #a53022;
}

.student-overdue-modal .student-overdue-modal__hint {
    color: #856b66;
    font-size: 11px;
}

.student-overdue-modal button {
    width: 100%;
    min-height: 48px;
    margin-top: 17px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #168b85, #116b75);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(17, 107, 117, .22);
}

.dashboard-class-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.dashboard-class-head h4 {
    margin: 0;
    color: #1f2a44;
    font-size: 16px;
    line-height: 1.4;
}

.dashboard-class-state {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-class-card.is-warning .dashboard-class-state {
    background: #fff3dd;
    color: #a16207;
}

.dashboard-class-card.is-danger .dashboard-class-state {
    background: #ffe8e8;
    color: #b42318;
}

.dashboard-class-card.is-empty .dashboard-class-state {
    background: #f1f5f9;
    color: #64748b;
}

.dashboard-class-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 12px;
    background: #f8fbff;
    color: #334155;
    font-size: 12px;
    border: 1px solid #e2e8f0;
}

.dashboard-chip--status.is-good {
    background: #eaf8ef;
    border-color: #cde7d8;
    color: #166534;
    font-weight: 700;
}

.dashboard-chip--status.is-warning {
    background: #fff3dd;
    border-color: #f2d3a2;
    color: #a16207;
    font-weight: 700;
}

.dashboard-chip--status.is-danger {
    background: #ffe8e8;
    border-color: #efc2c2;
    color: #b42318;
    font-weight: 700;
}

.dashboard-chip--status.is-empty {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #64748b;
    font-weight: 700;
}

.dashboard-empty-state {
    border: 1px dashed #c7d8ee;
    border-radius: 18px;
    background: #f8fbff;
    color: #475569;
    padding: 18px;
    text-align: center;
    font-size: 13px;
}

#loginForm{
    border:#F00 dashed 1px;
    max-width:400px;
    margin-left:auto;
    margin-right:auto;
    margin-top:20px;
    position:relative;
    background:url(../links/img/login.png) no-repeat;

    height:247px;
    border:#CAE4F9 solid 1px;
    box-shadow:15px 10px 10px #B0B0B0;
    -moz-box-shadow:15px 10px 10px #B0B0B0;
    -webkit-box-shadow:15px 10px 10px #B0B0B0;

}
.loginmove{
    /*border:#F0F solid 1px;*/

    width:300px;
    margin-top:35px;
    margin-right:2px;
    height:160px;
}
.btn{
    padding:4px 20px 3px 20px;
    margin-top:5px;
    font-size:14px;
    font-weight:bold;
    background:#CAE4F9;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    border:#CAE4F9 solid 1px;

}
.both {
    float: right;
    margin: 0 15px 0 0;
    padding: 0px;
}
select,input[type="text"],input[type="submit"],input[type="button"],input[type="password"] {
    padding: 5px;
}

@media (max-width: 860px) {
    .dashboard-panel {
        padding: 14px;
        border-radius: 18px;
    }

    .dashboard-panel-header {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-filter-form select {
        min-width: 0;
        width: 100%;
    }

    .dashboard-class-grid {
        grid-template-columns: 1fr;
    }
}

/* AjaxGrid responsive fix (mobile): prevent header/value overlap */
.ajaxgrid {
    width: 100%;
}

@media (max-width: 860px) {
    .ajaxgrid {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
    }

    .ajaxgrid_mainTable {
        width: max-content;
        table-layout: auto;
    }

    .ajaxgrid_mainTable th,
    .ajaxgrid_mainTable td {
        white-space: nowrap;
        vertical-align: middle;
    }
}
