﻿h1:focus {
    outline: none;
}

a,
.btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.dropdown:hover .dropdown-content {
    display: block;
    /* Show the dropdown on hover */
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4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9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/*==================end default code==============================*/


/*

*/
@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

html,
body {
    font-family: Cairo, Calibri;
    font-weight: normal;
    /*font-size:medium;*/

}

/* Globals  */
* {
    font-family: Cairo, Calibri;
    font-size: 15px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

/* Variables  */
:root {
    --color_Blue: #3f93f1;
    --color_Dark1: #1e1e1e;
    --color_Dark2: #252527;
    --color_Light1: #dfdfdf;
    --color_Light2: #c4c4c4;
}

/* =============== Sidebar =============== */
.sidebar {
    position: fixed;
    overflow: auto;
    overflow-x: hidden;
    top: 0;
    height: 100%;
    width: 280px;
    background-color: #141414;
    transition: all .5s ease;
    z-index: 100;

}



/* --------- Logo ------------ */
.logo-box {
    height: 60px;
    width: 100%;
    display: flex;
    align-items: center;
    color: var(--color_Light1);
    transition: all .5s ease;
    cursor: pointer;
}

.logo-box:hover {
    color: var(--color_Blue);
}

.logo-box i {
    font-size: 30px;
    height: 50px;
    min-width: 78px;
    text-align: center;
    line-height: 50px;
    transition: all .5s ease;
}

.sidebar.close .logo-box i {
    transform: rotate(360deg);
}

.logo-name {
    font-size: 20px;
    font-weight: 600;
}

/* ---------- Sidebar List ---------- */
.sidebar-list {
    /*    height: 100%;
*/
    padding: 8px;
    /*   overflow: auto;*/
}

/*   .sidebar-list::-webkit-scrollbar {
        display: none;
    }*/

.sidebar-list li {
    transition: all .5s ease;
}

.sidebar-list li:hover {
    background-color: var(--color_Dark2);
}

.sidebar-list li .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all .5s ease;
    cursor: pointer;
    padding-top: 8px;
}

.sidebar-list li.active .title {
    background-color: var(--color_Blue);
    border-radius: 20px;
}

.sidebar-list li.active .bxs-chevron-down {
    transition: all .5s ease;
    transform: rotate(180deg);
}

.sidebar-list li .title .link {
    display: flex;
}

.sidebar-list li .title i {
    height: 50px;
    min-width: 20px;
    text-align: center;
    line-height: 50px;
    color: var(--color_Light1);
    /*font-size: 20px;*/
}

.sidebar-list li .title .name {
    /*font-size: 14px;*/
    font-weight: 100;
    color: var(--color_Light1);
}

/* ---------------- Submenu ------------- */
.sidebar-list li .submenu {
    width: 0;
    height: 0;
    opacity: 0;
    transition: all .5s ease;
    overflow: hidden;
}

.sidebar-list li.dropdown.active .submenu {
    width: unset;
    height: unset;
    opacity: 1;
    display: flex;
    flex-direction: column;
    padding: 6px 6px 14px 30px;
    background-color: var(--color_Dark2);
    overflow-y: auto;
}

.submenu .link {
    color: var(--color_Light2);
    /*font-size: 15px;*/
    padding: 5px 0;
    transition: all .5s ease;
}

.submenu .link:hover {
    color: #fff;
}

.submenu-title {
    display: none;
}

/* ---------------- Submenu Close ------------- */
.sidebar.close .logo-name,
.sidebar.close .title .name,
.sidebar.close .title .bxs-chevron-down {
    display: none;
}

.sidebar.close .sidebar-list {
    overflow: visible;
    overflow-x: hidden;
    scrollbar-width: none;
    scrollbar-color: transparent transparent;
}

.sidebar.close .sidebar-list li {
    position: relative;
}

.sidebar.close .sidebar-list li .submenu {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 100%;
    top: -10px;
    margin-top: 0;
    padding: 10px 20px;
    border-radius: 0 6px 6px 0;
    height: max-content;
    width: max-content;
    opacity: 0;
    transition: all .5s ease;
    pointer-events: none;
}

.sidebar.close .sidebar-list li:hover .submenu {
    opacity: 1;
    top: 0;
    pointer-events: initial;
    background-color: var(--color_Dark2);
}

.sidebar.close .submenu-title {
    display: block;
    /*font-size: 18px;*/
    color: var(--color_Light1);
}

/* =============== Home Section =============== */
.home {
    position: relative;
    background-color: var(--color_Light1);
    left: 280px;
    width: calc(100% - 280px);
    height: 100vh;
    transition: all .5s ease;
}

.sidebar.close~.home {
    left: 80px;
    width: calc(100% - 80px);
}

.home .toggle-sidebar {
    height: 60px;
    display: flex;
    align-items: center;
    width: fit-content;
    cursor: pointer;
}

.home .toggle-sidebar i {
    /*font-size: 35px;*/
    color: var(--color_Dark1);
    margin-left: 15px;
}

.home .toggle-sidebar .text {
    /*font-size: 25px;*/
    color: var(--color_Dark1);
    font-weight: 600;
}


/* ========================== vouthers ======================== */
.full {
    display: block;
    width: 100% !important;
}



.table-container {
    position: relative;
    overflow: auto;
    height: 240px;
}

.table-container .table-row {
    width: 1110px;
    height: 85px;
}

.table-container .table-row .column-cell {
    border: 1px solid #a2a2a2;
    display: inline-block;
    text-align: center;
    margin: 0;
    position: relative;
    float: left;
}

.table-container .table-row label.column-cell {
    height: auto;
    background-color: #eee;
    padding: 3px;
}

/*   .table-container .table-row label.column-cell:first-child {
                border-radius: 10px 0 0 0;
            }

            .table-container .table-row label.column-cell:last-of-type {
                border-radius: 0 10px 0 0;
            }*/

.table-container .table-row .column-cell input,
.table-container .table-row .column-cell select {
    width: 100%;
    height: 100%;
    padding: 4px;
    background: #fff;
    border-radius: 0px;
    /*border: 1px solid #000;*/
    text-align: center;
}

.product-list {
    position: absolute;
    width: 100%;
    max-height: 300px;
    min-height: 60px;
    overflow: auto;
    border: 1px solid;
    z-index: 3;
    padding: 4px;
    display: flex;
    flex-direction: column;
}

.product-list .product {
    display: inline-block;
    height: auto;
    padding: 3px 6px;
    padding-bottom: 10px;
    width: 100%;
    cursor: pointer;
    border-bottom: 1px solid;
    color: #000;
}



.clearFlaot {
    clear: both;
}

.editProduct {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #0000009e;
    height: 100%;
    width: 100%;
    z-index: 9999;
}

.editProduct .edit-frame {
    height: 100%;
    overflow: auto;
}

.editProduct .edit-frame .edit-action {
    padding: 15px 5px;
}

.editProduct .edit-frame .edit-action .btn-success {
    float: right;
}

.extra-info form {
    display: none;
}

#account-style {
    color: #005fee;
    font-weight: bold;
    cursor: pointer;
}

.extra-info a:hover {
    color: #3f8afc;
}

.extra-info form.showForm {
    display: flex;
}

.extra-info .show-account {
    display: none;
}

.extra-info .showAccount {
    display: flex;
}

.editProduct .form-container {
    width: 50%;
    min-width: 300px;
    margin: auto;
    background-color: #eee;
    border-radius: 8px;
    overflow: hidden;
}

.editProduct .form-container h2 {
    border-bottom: 2px solid;
    text-align: center;
    padding: 10px;
    background-color: #0000003b;
}

.editProduct .form-container .form-body {
    padding: 10px;
    padding-top: 0;
}

.editProduct .form-container span {
    display: block;
    margin-bottom: 5px;
    position: relative;
}

.editProduct .form-container span input,
.editProduct .form-container span select {
    width: 100%;
    text-align: center;
    padding: 4px;
}

.editProduct .form-container span label {
    width: 100%;
    padding-right: 10px;
    margin: 0;
}

.productExist {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    width: 100%;
    height: 100%;
    background-color: #00000059;
}

.productExist .messageContainer {
    width: 35%;
    min-width: 358px;
    margin: 30vh auto;
    background-color: #fff;
    padding: 24px;
    border-radius: 7px;
}

.productExist .messageContainer .btn-success {
    float: right;
}

.column-cell select,
.column-cell select {
    width: 100%;
    height: 100%;
    /*    border: none;*/
}

.actions button {
    margin-right: 5px;
    margin-bottom: 5px;
}

#account-note {
    width: 200px
}

.product-name {
    width: 225px;
    /* width: 100%; */
    height: 100%;
    padding: 7px;
    background: #fff;
    border-radius: 0px;
    border: none;
    text-align: center;
    color: #000;
}

.itemForm {
    overflow: auto;
    padding-top: 10px;
    padding-bottom: 20px
}

/* ==========================end vouthers ======================== */

/*::-webkit-scrollbar {
    width: 0.88rem;
}

::-webkit-scrollbar-track {
    border: 7px solid #292c3b;
    box-shadow: inset 0 0 2.5px 2px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    background-color: #d4d4d8;
}

::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 2px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }*/

/* for Firefox */
/*html {
    scrollbar-color: #9e4673 #3d4a59;
}*/
/* ========================== Main ======================== */
.erp-main {
    position: absolute;
    width: calc(100% - 282px);
    left: 280px;
    min-height: 100vh;
    background: var(--content-bg);
    /* Was var(--white) */
    transition: 0.5s;
    top: 0;
}

.erp-main.close {
    width: 100%;
    /*calc(100% - 82px);*/
    left: 0px;
}

.sidebar.close {
    width: 0px;
    left: 0px;
}

/* ============ Responsive / Breakpoints ========== */
@media (max-width: 1080px) {}

/* For Medium Devices */
@media (max-width: 774px) {}

@media (max-width: 560px) {}

/* For Small Devices */
@media (max-width: 360px) {}

/*===================================================*/
.frm-input,
.frm-drop {
    width: 450px !important;
    /* min-height: 40px;*/
}

@media (max-width: 970px) {
    .frm-drop {
        width: 100% !important
    }
}

@media (max-width: 500px) {

    .frm-input,
    .frm-drop {
        width: 100% !important
    }
}

control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #fff !important;
}



/* general page

*/
.general-input {
    width: 80%;
    height: 45px;
    border-color: #86b7fe;
}



.div-checks {
    border: 1px solid #86b7fe;
    height: 75vh;
    overflow-y: auto;
    overflow-x: hidden
}


option {
    width: 10rem !important;
}

/* bank page */
/*.input-style {
    height: 45px !important
}
*/
/*================================*/

/*@media (max-width: 1000px ) and (min-width: 450px) {

    .erp-body {
        padding: 0
    }
}
@media only screen and (max-width: 960px) {
    .erp-body {
        padding: 0
    }
}*/
/*=====================Themes=============================*/



/*=====================End themes=============================*/


.offcanvas-backdrop {
    top: 60px !important;
}

@media only screen and (min-width: 960px) {
    .offcanvas-backdrop {
        display: none;
    }
}

/*   sidenave */
.submenu .link {
    transition: unset !important;
}



.sidebar-list li.active .bxs-chevron-down {
    transition: all .5s ease;
    transform: rotate(180deg);
}

.sidebar-list li .submenu {
    transition: unset !important;
}

.sidebar-list li {
    transition: unset !important;
}



/* تخصيص شريط التمرير */
::-webkit-scrollbar {
    padding: 10px;
    width: 10px;
    /* عرض شريط التمرير العمودي */
    height: 6px;
    /* ارتفاع شريط التمرير الأفقي */
}

/* تخصيص مسار شريط التمرير */
::-webkit-scrollbar-track {
    background: #f9f9f9;
    /* لون المسار */
}

/* تخصيص مقبض شريط التمرير */
::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    /* لون المقبض */
    border-radius: 4px;
    /* زوايا مستديرة */
}

/* عند التمرير فوق المقبض */
::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
    /* لون المقبض عند التمرير */
}



/* لون المقبض والمسار */
#country {
    height: 35px;
    border: 1px solid #ddd;
    padding-left: 10px;
}





/* تحسين التابات */
.nav-tabs {
    background-color: #f1f4f9;
    border-radius: 0.5rem 0.5rem 0 0;
    overflow: hidden;
}

.nav-tabs .nav-link {
    font-weight: 600;
    color: #495057;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    transition: all 0.3s ease;
    padding: 0.75rem 1.25rem;
}

.nav-tabs .nav-link:hover {
    background-color: #e9ecef;
    color: #0d6efd;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom: 3px solid #0d6efd;
    background-color: #fff;
}

.tab-content {

    border: 1px solid #dee2e6;
    border-top: none;
/*    padding: 2rem;*/
    border-radius: 0 0 0.5rem 0.5rem;
    animation: fadeIn 0.4s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}



/* تحسين الأزرار العامة داخل الصفحة */
.btn-custom {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.btn-custom:hover {
    background-color: #084298;
}

.btn-outline-custom {
    background-color: transparent;
    color: #0d6efd;
    border: 2px solid #0d6efd;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-outline-custom:hover {
    background-color: #0d6efd;
    color: white;
}

/*.dropdown-button {
    left: 0px !important;
}*/

.btn-password {
    position: absolute !important;
    border: none;
    background-color: transparent;
}

.btn-password:hover {
    border: none;
    background: transparent;
    color: #000;
}

.btn-password:focus {
    outline: none;
}


/*==============================treeview==============================================*/
.tree-root,
.tree-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tree-children {
    margin-inline-start: 20px;
    /* إزاحة ديناميكية (يمين/يسار حسب اللغة) */
    border-inline-start: 1px dotted #ccc;
    /* خط خفيف */
    padding-inline-start: 10px;
}

.tree-node {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 5px;
    padding: 2px 4px;
    border-radius: 4px;
}

.tree-node:hover {
    background: #f0f0f0;
}

.tree-node.selected {
    background: #0078d7;
    color: white;
}

.tree-node.selected i {
    color: white !important;
}

.toggle-icon {
    width: 15px;
    /* مساحة للسهم */
    text-align: center;
}

/* Form Controls */
.form-control,
.form-select {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
    background-color: #fff;
    color: #495057;
    border: 1px solid var(--border-color);
    padding: 0.6rem 0.75rem;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #6366f1;
        background-color: #ffffff;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        color: black;
        background-color: white;
        border-color: #86b7fe;
        outline: 0;
        box-shadow: 0 0 0 .25rem #fff !important;
    }

 



label {
    font-weight: 500;
    font-size: 0.87rem;
    margin-bottom: 6px;
    /*display: block;*/
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

/*.btn {
    padding: 8px 20px;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}*/

.btn-primary {
    background: linear-gradient(135deg, #3f93f1 0%, #2563eb 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
}

/* Grid/Table Styling */
.table-container {
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

table.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    padding: 12px;
    white-space: nowrap;
}