﻿

@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,300;8..144,400;8..144,500;8..144,600;8..144,700&display=swap');

/*:root {
    --primary-color: #003366;
    --accent-color: #ffa500;
}*/

a {
    text-decoration: none !important;
}

.en {
    direction: ltr;
}

.ar {
    direction: rtl;
}

.cp-item {
    background-color: #fff;
    flex-direction: column;
    margin: 10px;
    padding: 5px;
    border-radius: 4px;
    box-shadow: 1px 1px 8px #cccccc;
    transition: all 0.25s ease;
}

    .cp-item:hover {
        background-color: #efefef;
    }

    .cp-item a {
        display: flex;
        flex-direction: column;
        text-decoration: none;
        color: #333;
    }

    .cp-item img {
        align-self: center;
        height: 100px;
        width: auto;
        margin: auto;
    }

.cp-group-header {
    background-color: var(--primary-color);
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 5px;
    border-radius: 2px;
}

.content-card {
    background-color: #fff;
    padding: 0px;
    border-radius: 10px;
    box-shadow: 1px 1px 8px #cccccc;
}

.navbar {
    padding: 20px 0px;
    background-color: var(--primary-color);
}

.table-responsive {
    display: table;
}

.form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.2rem 0.2rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    font-family: "Droid Arabic Kufi", serif;
}

.bg-dark, .bg-secondary {
    background-color: var(--primary-color) !important;
}

.panel-title {
    color: var(--accent-color);
}

#mTable tr {
    font-size: 11pt;
}

.btn-outline-primary {
    /*color: #007bff;
    border-color: #007bff;*/
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
}

    .btn-outline-primary:hover {
        color: #fff !important;
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }


.modal-title {
    font-weight: 500;
    font-size: 1.2rem;
}

.accent-color {
    color: var(--accent-color);
}

/*.close, .close:hover {
    opacity: 1;
    color: red;
    text-shadow: none;
    font-size: 2.1rem;
}*/

label[required]::after {
    color: red;
    content: "*";
    display: inline-block;
    font-size: medium;
}

.modal-header {
    padding: 0.8rem 1rem;
}

.modal-body {
    padding: 0.5rem;
}

.btn-outline-warning {
    color: #dfa802;
    border-color: #dfa802;
}

/*------------------Override DevExtreme--------------------------*/

/*Use dx-datagrid-rowsview to control column value not header*/
.dx-datagrid-rowsview .dx-center-content {
    text-align: center !important;
}

.dx-left-content .dx-texteditor-input {
    text-align: left !important;
    direction: ltr;
}

.dx-left-content .dx-button-content {
    text-align: left !important;
    direction: ltr;
}

.dropdown-toggle::after {
    margin-right: 0.255em !important;
    margin-left: 0em !important
}

/*------------------Override Layout--------------------------*/
main.main {
    min-height: 80vh;
}

/*------------------Override Side Bar Menu--------------------------*/

.sidebar-nav i.size-default {
    font-size: 14px !important;
}

.sidebar-nav .sub-nav-content a {
    padding: 10px 0 10px 60px;
}

/*------------------Override DevExtreme Classes--------------------------*/

.dx-col-6 .dx-field-item-label, .dx-col-6 .dx-field-item-content {
    /*width: 50%;*/
    width: 30%;
}

/*------------------Statistics style--------------------------*/
.card-content .inner-content h4.value {
    margin-right: 5px;
    font-size: 20px;
    color: #012970;
    font-weight: 700;
    /*margin: 0;*/
    padding: 0;
}

/*-----------------My Own Themes-----------------------------*/
.action-btns-grp {
    direction: ltr;
    text-align: center;
    margin-top: 10%;
}

.close {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
}

/*Gomaa - Not work perfect with english language*/
/*Fixing beging and ending padding in devextreem*/
/*.dx-layout-manager .dx-field-item:not(.dx-last-col) {
    padding-right: 0px !important;
}

.dx-layout-manager .dx-field-item:not(.dx-first-col) {
    padding-left: 0px !important;
}*/

.min-vh-90 {
    min-height: 90vh !important;
}

/*------------------Bootstrap Modal Alert Styles --------------------------*/
/* Custom top margin for modal */
.modal-dialog.modal-alert-custom {
    margin-top: 1.5rem;
    margin-bottom: auto;
}

.modal-backdrop.show {
    opacity: 0.1;
}

.modal-alert-custom {
    /*    max-width: 95%;*/
    width: 100%;
    margin: 1rem auto;
}


.btn:disabled,
.btn.disabled {
    background-color: #999 !important; /* or a faded version of your --primary-color */
    color: #fff !important;
    cursor: not-allowed;
    opacity: 0.65;
}


/*-------------------*/
/* Append red * to any label whose next input/select/textarea is required */
/* Directly after label */
label:has(+ input[required]),
label:has(+ select[required]),
label:has(+ textarea[required]),
/* Or label followed by a wrapper (e.g., .input-group) that contains a required input */
label:has(+ .input-group input[required]) {
    position: relative;
}

    label:has(+ input[required])::after,
    label:has(+ select[required])::after,
    label:has(+ textarea[required])::after,
    label:has(+ .input-group input[required])::after {
        content: " *";
        color: red;
    }

/* Fix header alignment for RTL */
html[dir="rtl"] .header-nav {
    margin-left: 0 !important;
    margin-right: auto !important;
}

html[dir="rtl"] .dropdown-menu-end {
    right: auto;
    left: 0;
}

.input-group .parsley-errors-list {
    width: 100%;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

/* Fullscreen overlay style with fade */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    .overlay.show {
        opacity: 1;
        visibility: visible;
    }

/* Prevent body scrolling */
.no-scroll {
    overflow: hidden !important;
}
