﻿@font-face {
    font-family: 'HonarStandardFont';
    src: url('honar-standard-font.woff') format('woff')
}

@font-face {
    font-family: 'HonarBoldFont';
    src: url('honar-standard-font_Bold.woff') format('woff')
}

body {
    padding: 0px;
    margin: 0px;
    direction: rtl;
    text-align: justify;
    font-family: 'HonarStandardFont';
    font-size: 10pt;
    
}

.app-header {
    border-bottom: 3px solid #7694cb;
    box-shadow: 0 .2rem .75rem rgba(15, 35, 62, .12);
}

.app-navbar {
    padding-block: .65rem;
    background: linear-gradient(110deg, #193b64, #102239);
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    margin: 0;
    margin-inline-end: 1.5rem;
    color: #fff !important;
}

.app-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: .85rem;
    color: #f4df8b;
    background: rgba(255, 255, 255, .08);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.app-brand-caption,
.app-brand-title {
    display: block;
}

.app-brand-caption {
    margin-bottom: .15rem;
    color: #c6d5e7;
    font-size: .68rem;
}

.app-brand-title {
    color: #f4df8b;
    font-size: 1rem;
    font-weight: 700;
}

.app-main-menu {
    align-items: center;
    gap: .15rem;
}

    .app-main-menu > .nav-item > .nav-link {
        display: flex;
        align-items: center;
        gap: .4rem;
        padding: .65rem .75rem;
        border-radius: .5rem;
        color: #e4ebf6;
        white-space: nowrap;
        font-size: .88rem;
    }

        .app-main-menu > .nav-item > .nav-link:hover,
        .app-main-menu > .nav-item > .nav-link:focus,
        .app-main-menu > .nav-item > .nav-link.active,
        .app-main-menu > .nav-item > .nav-link.show {
            color: #fff;
            background: rgba(255, 255, 255, .12);
        }

.app-navbar .dropdown-toggle::after {
    margin-left: 0;
    margin-inline-start: .15rem;
}

.app-navbar .dropdown-menu {
    min-width: 15rem;
    margin-top: .6rem;
    padding: .45rem;
    border: 1px solid #e4eaf2;
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 .6rem 1.8rem rgba(15, 35, 62, .16);
    text-align: right;
    direction: rtl;
}

.app-navbar .dropdown-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem .8rem;
    border-radius: .4rem;
    color: #293b50;
    font-size: .88rem;
}

    .app-navbar .dropdown-item:hover,
    .app-navbar .dropdown-item:focus {
        color: #174c77;
        background: #edf4fb;
    }

    .app-navbar .dropdown-item.text-danger {
        color: #dc3545 !important;
    }

.app-navbar .dropdown-divider {
    margin-block: .4rem;
    border-color: #e4eaf2;
}

.app-account-menu {
    margin-inline-start: auto;
    padding-inline-start: 1rem;
}

    .app-account-menu > ul,
    .app-account-menu > .navbar-nav {
        margin-bottom: 0;
        padding-inline-start: 0;
        list-style: none;
    }

    .app-account-menu > .nav-item,
    .app-account-menu > li {
        list-style: none;
    }

        .app-account-menu > a,
        .app-account-menu > .nav-item > a,
        .app-account-menu > li > a,
        .app-account-menu .navbar-nav > .nav-item > a,
        .app-account-menu > .dropdown > a,
        .app-account-menu > .dropdown > button {
            color: #fff !important;
            border-color: #8ba8cc;
        }

            .app-account-menu > a:hover,
            .app-account-menu > .nav-item > a:hover,
            .app-account-menu > li > a:hover,
            .app-account-menu .navbar-nav > .nav-item > a:hover,
            .app-account-menu > .dropdown > a:hover,
            .app-account-menu > .dropdown > button:hover {
                background: rgba(255, 255, 255, .1);
            }

    .app-account-menu .dropdown-menu .nav-link {
        color: #293b50 !important;
    }

    .app-account-menu .dropdown-menu .text-danger {
        color: #dc3545 !important;
    }

.app-navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .35rem .65rem;
    border: 1px solid #829cbc;
    color: #fff;
    font-size: 1.6rem;
}

    .app-navbar-toggler:focus {
        box-shadow: 0 0 0 .2rem rgba(173, 198, 231, .2);
    }

footer.footer {
    position: static !important;
    height: auto;
    margin-top: 1.5rem;
    padding-block: 1rem;
    line-height: normal;
}

@media (min-width: 1200px) {
    .app-main-menu > .dropdown > .dropdown-menu {
        right: 0;
        left: auto;
    }

    .app-account-menu .dropdown-menu {
        right: auto;
        left: 0;
    }

    .app-navbar-toggler {
        display: none;
    }
}

@media (max-width: 1199.98px) {
    .app-navbar .navbar-collapse {
        padding-top: 1rem;
    }

    .app-main-menu {
        align-items: stretch;
        gap: .3rem;
    }

        .app-main-menu > .nav-item > .nav-link {
            padding: .8rem;
        }

        .app-main-menu .dropdown-menu {
            margin: .3rem 0 .6rem;
            box-shadow: none;
        }

    .app-account-menu {
        margin-inline-start: 0;
        margin-top: .8rem;
        padding-top: .8rem;
        padding-inline-start: 0;
        border-top: 1px solid rgba(255, 255, 255, .18);
    }

        .app-account-menu .dropdown-menu {
            max-width: 100%;
        }
}

@media (max-width: 575.98px) {
    .app-brand {
        gap: .55rem;
        margin-inline-end: .5rem;
    }

    .app-brand-icon {
        width: 2.35rem;
        height: 2.35rem;
        font-size: 1.25rem;
    }

    .app-brand-title {
        font-size: .9rem;
    }

    .app-brand-caption {
        font-size: .63rem;
    }
}

body.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    margin-bottom: 0;
}

.app-layout > header,
.app-layout > footer {
    flex-shrink: 0;
}

.app-layout > .app-content {
    flex: 1 0 auto;
}

footer.footer {
    position: static !important;
    height: auto;
    margin-top: auto;
    padding-block: 0.4rem;
    border-top: 1px solid #e2eaf2;
    background: #f8fafc;
    line-height: normal;
    text-align: center;
}

    footer.footer a {
        color: #38576f;
        text-decoration: none;
        font-size: .7rem;
    }

        footer.footer a:hover {
            color: #174c77;
            text-decoration: underline;
        }

a {
    text-decoration: none;
}
.content {
    padding: 20px;
    padding-top: 80px;
    margin-top: 10px;
}

/* Shared inputs */
.app-input-group {
    display: flex;
    align-items: stretch;
    direction: rtl;
    min-height: 44px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #cfd6e2;
    border-radius: 9px;
    transition: border-color .2s, box-shadow .2s;
}

    .app-input-group:focus-within {
        border-color: #86a9ed;
        box-shadow: 0 0 0 3px rgba(13, 110, 253, .09);
    }

.app-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    background: #f7f9fc;
    border-inline-end: 1px solid #dce2ec;
    color: #61738f;
    font-size: 15px;
    transition: color .2s, background .2s;
}

.app-input-group:focus-within .app-input-icon {
    color: #0d6efd;
    background: #f0f5ff;
}

.app-input-group .app-input {
    flex: 1 1 0%;
    width: 0;
    min-width: 0;
    min-height: 44px;
    padding: 10px 13px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: .95rem;
}

    .app-input-group .app-input:focus {
        box-shadow: none;
        background: transparent;
    }

.app-input-group .app-input-ltr {
    direction: ltr;
    text-align: left;
}

.app-input-group .app-input::placeholder {
    color: #8993a5;
    opacity: 1;
}

.app-input-group .app-input-ltr::placeholder {
    direction: rtl;
    text-align: right;
}

.app-password-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    padding: 0;
    border: 0;
    border-inline-start: 1px solid #dce2ec;
    background: #fff;
    color: #61738f;
    cursor: pointer;
    transition: color .2s, background .2s;
}

    .app-password-toggle:hover {
        color: #0d6efd;
        background: #f0f5ff;
    }

    .app-password-toggle:focus-visible {
        outline: 2px solid #86a9ed;
        outline-offset: -3px;
    }

/* Login */
.login-page {
    min-height: 75vh;
    padding: 24px 0;
}

.login-card {
    width: 100%;
    max-width: 450px;
    border-radius: 24px;
    background: linear-gradient(160deg, #f5f7ff, #ffffff 45%);
}

.login-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: #e9edff;
    color: #4054b2;
    font-size: 36px;
}

.login-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.login-submit {
    min-height: 48px;
    border-radius: 12px;
    background: #4054b2;
    border-color: #4054b2;
}

/* Notifications */
.app-toast {
    direction: rtl;
    border-radius: 14px;
}

    .app-toast .swal2-html-container {
        white-space: pre-line;
    }

/* Select2 */
.select2-container .select2-selection--single {
    height: 48px;
    border: 1px solid #dee2e6;
    border-radius: 12px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
}

.select2-container--default .select2-selection--multiple {
    min-height: 48px;
    border: 1px solid #dee2e6;
    border-radius: 12px;
}

/* Organizational units */
.unit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-inline-start: var(--unit-indent, 0px);
}

.unit-info {
    min-width: 0;
    overflow-wrap: anywhere;
}

.unit-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .unit-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .unit-actions {
        justify-content: flex-end;
    }
}


.app-confirm {
    direction: rtl;
    border-radius: 16px;
}


/* Form checkboxes and radios */
.app-check {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    direction: rtl;
}

    .app-check > .form-check-input {
        float: none !important;
        margin: .3rem 0 0 !important;
        flex-shrink: 0;
    }

    .app-check > .form-check-label {
        text-align: right;
    }




.call-navigation {
    padding: 1rem;
    border: 1px solid #e2eaf2;
    border-radius: .85rem;
    background: #f8fafc;
}

.call-navigation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

    .call-navigation-buttons > .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }

@media (max-width: 575.98px) {
    .call-navigation-buttons > .btn {
        flex: 1 1 calc(50% - .5rem);
    }
}