/* =========================================================
   ERP V2
   Core Style
========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap");

:root{

    --primary:#2563eb;
    --primary-hover:#1d4ed8;

    --success:#16a34a;
    --warning:#f59e0b;
    --danger:#dc2626;

    --background:#f5f7fb;
    --surface:#ffffff;

    --border:#e5e7eb;

    --text:#111827;
    --text-light:#6b7280;

    --sidebar:#111827;
    --sidebar-hover:#1f2937;

    --shadow:0 10px 25px rgba(0,0,0,.08);

    --radius:14px;

    --transition:.25s ease;

}

*{

    margin:0;

    padding:0;

    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:"Vazirmatn",sans-serif;

    background:var(--background);

    color:var(--text);

    direction:rtl;

    overflow-x:hidden;

    min-height:100vh;

}

a{

    color:inherit;

    text-decoration:none;

}

img{

    max-width:100%;

}

button{

    font-family:inherit;

    cursor:pointer;

    border:none;

    outline:none;

}

input,
textarea,
select{

    font-family:inherit;

    outline:none;

}

h1{

    font-size:30px;

    font-weight:800;

}

h2{

    font-size:24px;

    font-weight:700;

}

h3{

    font-size:20px;

    font-weight:700;

}

h4{

    font-size:18px;

}

p{

    color:var(--text-light);

    line-height:1.8;

}

.btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    padding:12px 22px;

    border-radius:10px;

    transition:var(--transition);

    font-size:14px;

}

.btn-primary{

    background:var(--primary);

    color:white;

}

.btn-primary:hover{

    background:var(--primary-hover);

}

.btn-success{

    background:var(--success);

    color:white;

}

.btn-danger{

    background:var(--danger);

    color:white;

}

.btn-warning{

    background:var(--warning);

    color:white;

}

.input{

    width:100%;

    height:46px;

    border:1px solid var(--border);

    border-radius:10px;

    padding:0 14px;

    background:white;

    transition:.2s;

}

.input:focus{

    border-color:var(--primary);

}

textarea.input{

    height:120px;

    padding:12px;

    resize:vertical;

}

.card{

    background:var(--surface);

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    padding:24px;

}

.grid{

    display:grid;

    gap:20px;

}

.grid-2{

    grid-template-columns:repeat(2,1fr);

}

.grid-3{

    grid-template-columns:repeat(3,1fr);

}

.grid-4{

    grid-template-columns:repeat(4,1fr);

}

.badge{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:6px 12px;

    border-radius:999px;

    font-size:12px;

    font-weight:700;

}

.badge-success{

    background:#dcfce7;

    color:#166534;

}

.badge-danger{

    background:#fee2e2;

    color:#991b1b;

}

.badge-warning{

    background:#fef3c7;

    color:#92400e;

}

.page-header{

    display:flex;

    align-items:center;

    justify-content:space-between;

    margin-bottom:28px;

}

.page-header p{

    margin-top:5px;

}

.hidden{

    display:none !important;

}

.text-center{

    text-align:center;

}

.mt-1{margin-top:10px;}
.mt-2{margin-top:20px;}
.mt-3{margin-top:30px;}
.mt-4{margin-top:40px;}

.mb-1{margin-bottom:10px;}
.mb-2{margin-bottom:20px;}
.mb-3{margin-bottom:30px;}
.mb-4{margin-bottom:40px;}

.w-100{

    width:100%;

}

/* ===========================
   Scrollbar
=========================== */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-thumb{

    background:#cbd5e1;

    border-radius:10px;

}

::-webkit-scrollbar-track{

    background:#f1f5f9;

}

/* ===========================
   Responsive
=========================== */

@media(max-width:1200px){

    .grid-4{

        grid-template-columns:repeat(2,1fr);

    }

}

@media(max-width:768px){

    .grid-2,
    .grid-3,
    .grid-4{

        grid-template-columns:1fr;

    }

    .page-header{

        flex-direction:column;

        gap:15px;

        align-items:flex-start;

    }

}