﻿
/* ===== طراحی پایه برای پروژه‌های فرم، گزارش و چاپ ===== */

/* Reset conflict-prone base */
body {
    font-family: Tahoma, sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #f9f9f9;
}

/* ساختار پایه */
.rc-container {
    margin: 2rem auto;
    padding: 1rem;
    max-width: 1200px;
}

.rc-card {
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    margin-bottom: 1.5rem;
}

.rc-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.rc-grid-cols-1 {
    display: grid;
    grid-template-columns: 1fr;
}

.rc-grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.rc-grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 768px) {
    .md\:rc-grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* جدول */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

    .table th, .table td {
        border: 1px solid #ccc;
        padding: 0.5rem;
        text-align: center;
        font-size: 0.9rem;
    }

    .table thead {
        background-color: #f1f1f1;
        font-weight: bold;
    }

/* دکمه‌ها */
.rc-btn {
    padding: 0.4rem 1rem;
    background-color: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

    .rc-btn:hover {
        background-color: #155dc0;
    }

.rc-btn-print {
    background-color: #00b894;
}

    .rc-btn-print:hover {
        background-color: #019874;
    }

/* فرم‌ها */
.rc-form-group {
    margin-bottom: 1rem;
}

.rc-form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.rc-form-input {
   width: 100%;
    
    padding: 0.4rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* کارت توضیحی */
.rc-note {
    font-size: 0.85rem;
    color: #666;
    border-top: 1px dashed #ccc;
    padding-top: 0.5rem;
    margin-top: 1rem;
}

/* ===== تنظیمات پرینت ===== */
@media print {
    body {
        background: white !important;
        font-size: 11pt;
    }

    .rc-container {
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .rc-card {
        page-break-inside: avoid;
        break-inside: avoid;
        border: 1px solid #ddd !important;
        box-shadow: none;
    }

    .rc-unit {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .table-responsive {
        overflow: visible !important;
    }

    .print\:break-after-page {
        page-break-after: always;
        break-after: page;
    }

    .print\:grid-cols-3 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .rc-btn, .no-print {
        display: none !important;
    }
}

/* ===== تداخل‌زدایی از سایر فایل‌ها ===== */
h1, h2, h3, h4 {
    margin-top: 0.5rem;
}

button.rc-btn, input[type="submit"].rc-btn {
    appearance: none;
    border: none;
}
/*theme*/

:root {
    --rc-border: rgba(0,0,0,.08);
    --rc-muted: rgba(0,0,0,.55);
    --rc-soft: #f2f4f7;
    --rc-head: #f7f7f8;
    --rc-avgcol: #fbfbfc;
    --rc-accent: #0d6efd;
}

/* Typography helpers */
.rc-muted {
    color: var(--rc-muted);
}

.rc-number {
    font-variant-numeric: tabular-nums;
}

/* Card */
.rc-card {
    border: 1px solid var(--rc-border);
    border-radius: 14px;
    background: #fff;
}

/* Badges */
.rc-badge {
    border-radius: 999px;
    padding: .35rem .7rem;
    background: var(--rc-soft);
    display: inline-block;
    font-size: .85rem;
}

/* KPI */
.rc-kpi {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: .2px;
}

/* Tables */
.rc-table thead th {
    background: var(--rc-head);
    border-bottom: 1px solid var(--rc-border);
}

.rc-table td, .rc-table th {
    vertical-align: middle;
}

.rc-avgcol {
    background: var(--rc-avgcol);
}

/* Daily report blocks */
.rc-unit {
    border: 1px solid var(--rc-border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.rc-unit-header {
    background: #f8f9fa;
    border-bottom: 1px solid var(--rc-border);
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.rc-unit-title {
    font-weight: 800;
}

.rc-unit-sub {
    color: var(--rc-muted);
    font-size: .9rem;
}

.rc-summary {
    border-bottom: 1px solid var(--rc-border);
    padding: .75rem 1rem;
}

.rc-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .5rem .75rem;
}

.rc-summary-item {
    border: 1px solid #f1f3f5;
    border-radius: 12px;
    padding: .55rem .65rem;
}

    .rc-summary-item .label {
        font-size: 1.1rem;
        font-weight: bold;
        color: var(--rc-muted);
    }

    .rc-summary-item .value {
        font-weight: 800;
        font-variant-numeric: tabular-nums;
    }

.rc-page {
    max-width: 1200px;
    margin: 0 auto;
}
/*body sait*/

/* فونت وزیرمتن */
@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/vazirmatn/Vazirmatn-RD-FD-Regular.woff2') format('woff2');
    font-weight: 400;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/vazirmatn/Vazirmatn-RD-FD-Bold.woff2') format('woff2');
    font-weight: 700;
}


.page-wrapper {
    display: flex;
    min-height: calc(100vh - 65px);
    background: transparent;
    gap: 0;
}


/* {
    border: none !important;
    outline: none !important;*/
}
/* اعمال فونت روی کل صفحه */
body {
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(to bottom right, #eef4fb, #f6f9ff);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    /* display: flex;
    flex-direction: column;*/
}

/* -----------------------------------------
   هــدر ملایم
----------------------------------------- */
.app-header {
    background: linear-gradient( to bottom, rgba(255,255,255,0.75), rgba(245,248,255,0.55), transparent );
    backdrop-filter: blur(14px);
    border-bottom: none;
    box-shadow: none;
    padding: 12px 24px;
    height: 55px;
    display: flex;
    align-items: center;
    /* box-shadow: 0 8px 25px rgba(0,0,0,0.05);*/
    position: relative;
    z-index: 10;
    margin-bottom: -1px;
}

.logo {
    height: 70px;
    width: auto;
    user-select: none;
}

/* -----------------------------------------
   سـایـدبار آبی ملایم محو شده
----------------------------------------- */
.sidebar {
    width: 230px;
    background: linear-gradient( to left, rgba(185,205,235,0.55), rgba(185,205,235,0.40), rgba(185,205,235,0.20), rgba(185,205,235,0.05) );
    backdrop-filter: blur(20px);
    padding: 45px 30px;
    min-height: 100vh;
    /*box-shadow: 4px 0 12px rgba(0,0,0,0.02);*/
    box-shadow: none;
    border-bottom-right-radius: 18px;
    padding-bottom: 80px;
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    margin-top: -10px;
}

    .sidebar a {
        display: block;
    }


    .sidebar ul {
        list-style: none;
        padding: 0;
        margin-top: -10px;
    }

        .sidebar ul li {
            margin: 0px 0;
        }

            .sidebar ul li a {
                text-decoration: none;
                color: #334a68;
                font-size: 18px;
                padding: 4px 10px;
                display: block;
                border-radius: 8px;
                transition: all 0.3s ease;
            }

                .sidebar ul li a:hover {
                    background: rgba(255,255,255,0.45);
                    color: #1b2f4a;
                    transform: translateX(-6px);
                }

/* -----------------------------------------
   مــحــتوا
----------------------------------------- */
.main-content {
    backdrop-filter: blur(6px);
    flex: 1;
    padding: 40px;
    color: #1d2b45;
    /* background: transparent;*/
}

/* -----------------------------------------
   فــوتر محو شده
----------------------------------------- */
.app-footer {
    text-align: center;
    padding: 14px;
    font-size: 14px;
    color: #44546e;
    background: linear-gradient( to top, rgba(245,248,255,0.85), rgba(245,248,255,0.55), rgba(245,248,255,0.15) );
    /* background: linear-gradient( to top, rgba(220,233,255,0.45), rgba(240,245,255,0.25), transparent );*/
    backdrop-filter: blur(18px);
    border: none;
    box-shadow: none;
    position: relative;
    z-index: 1;
}

footer {
    margin-top: auto;
}

/* یکپارچه‌سازی شیشه‌ای بین هدر، سایدبار و بدنه */
.app-header,
.sidebar,
.main-content {
    background-clip: padding-box;
    border: none;
}

.container-fluid {
    width: 100%;
}
