


@font-face {
    font-family: 'IRYekan';
    src: url('/fonts/IRYekan.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: 'IRANSans';
    src: url('/fonts/IRANSans.ttf') format('truetype');
    font-weight: bold;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #1f2937 0, #020617 55%, #000 100%);
    direction: rtl;
    color: #e5e7eb;
}

.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(20px);
    background: linear-gradient(90deg, rgba(15,23,42,0.9), rgba(24,24,27,0.9));
    border-bottom: 1px solid rgba(148,163,184,0.25);
    color: #f9fafb;
    /*padding: 0.8rem 1.1rem;*/
    padding: 0.6rem 0.9rem;
    gap: 0.6rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 20;
}
.header-title {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    /*    flex: 1;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;*/
}


.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
    gap: 1ch;
    /*  display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;*/
}

    .header h1 {
        margin: 0;
        font-size: 1rem;
        letter-spacing: 0.06em;
    }

.header-left {
    display: flex;
    align-items: center;
    /*display: flex;
    align-items: center;
    gap: 0.5rem;*/
}

.header img.logo {
    height: 38px;
    max-width: 140px;
    object-fit: contain;
}

/* موبایل */
@media (max-width: 640px) {
    .header {
        padding: 0.45rem 0.6rem;
    }

        .header img.logo {
            height: 30px;
            max-width: 110px;
        }

        .header h1 {
            font-size: 0.8rem;
        }
}







.content { flex:1; padding: 1rem; padding-bottom: 4rem; }

.bottom-nav {
    position: fixed;
    bottom: 0.75rem;
    left: 0.5rem;
    right: 0.5rem;
    height: 3.2rem;
    background: radial-gradient(circle at top, rgba(15,23,42,0.95), rgba(15,23,42,0.8));
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.4);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 40;
    box-shadow: 0 18px 45px rgba(0,0,0,0.65);
    backdrop-filter: blur(24px);
}

.bottom-nav .nav-item {
    text-decoration: none;
    color: #e5e7eb;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
}

.bottom-nav .nav-item:hover { background: rgba(148,163,184,0.35); }

.card {
    background: radial-gradient(circle at top left, rgba(31,41,55,0.85), rgba(15,23,42,0.9));
    border-radius: 1.1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 18px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(148,163,184,0.25);
    backdrop-filter: blur(18px);
}

.login-card { max-width: 420px; margin: 2.0rem auto; }

label { font-size: 0.8rem; margin-bottom: 0.3rem; color: #9ca3af; }
.form-group { margin-bottom: 0.9rem; display:flex; flex-direction:column; }
.form-row { display:flex; flex-wrap:wrap; gap: 1rem; }
.form-row .form-group { flex:1; min-width: 140px; }

input, select {
    padding: 0.5rem 0.6rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(75,85,99,0.8);
    font-size: 0.9rem;
    background: rgba(15,23,42,0.75);
    color: #e5e7eb;
    outline: none;
}
input::placeholder { color: #6b7280; }
input:focus, select:focus { border-color: #38bdf8; box-shadow: 0 0 0 1px rgba(56,189,248,0.45); }

.btn-primary {
    margin-top: 0.6rem;
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #0b1120;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(8,47,73,0.8);
}

.alert { padding: 0.55rem 0.8rem; border-radius: 0.7rem; margin-top: 0.6rem; font-size: 0.85rem; }
.alert-error { background: rgba(248,113,113,0.15); color: #fecaca; border: 1px solid rgba(248,113,113,0.45); }

.cards-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.8rem; }





.metric-value { font-size: 1rem; font-weight: 900; letter-spacing: 0.04em; }
.metric-value .unit { font-size: 0.75rem; margin-right: 0.25rem; color: #cbd5f5; }
/* موبایل */
@media (max-width: 600px) {
    .metric-value {
        font-size: 1.05rem;
    }
}

/* ===== PDF ===== */
#pdfArea {
    background: white;
    padding: 10px;
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000;
    margin-bottom: 8px;
    padding-bottom: 4px;
    font-size: 12px;
    color: #000;
    font-weight: bold;
}

.pdf-footer {
    border-top: 1px solid #000;
    margin-top: 6px;
    padding-top: 4px;
    text-align: center;
    font-size: 10px;
    color: #000;
}

/* =========================
   TABLE – READABLE & COLORFUL
   ========================= */

.table-card {
    overflow-x: auto;
    max-height: 70vh; /* برای اسکرول عمودی */
    position: relative;
}

/* تیتر جدول */
.table-title {
    font-size: 1.15rem;
    font-weight: 900;
    margin-bottom: 0.6rem;
    color: #f8fafc;
    text-align: center;
}



/* جدول اصلی */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    background: #f9fafb; /* زمینه روشن برای خوانایی */
    color: #000; /* متن مشکی */
}

@media (max-width: 768px) {
    .data-table {
        font-size: 0.75rem;
    }
}

    /* هدر جدول – شناور */
    .data-table thead th {
        position: sticky;
        top: 0;
        z-index: 10;
        background: linear-gradient(90deg, #e5e7eb, #d1d5db);
        color: #111827;
        font-weight: 900;
        border-bottom: 2px solid #9ca3af;
    }

    /* سلول‌ها */
    .data-table th,
    .data-table td {
        padding: 0.45rem 0.4rem;
        text-align: center;
        white-space: nowrap;
        font-weight: 700; /* بولد */
    }

    /* ردیف‌های راه‌راه */
    .data-table tbody tr:nth-child(odd) {
        background-color: #ffffff;
    }

    .data-table tbody tr:nth-child(even) {
        background-color: #f3f4f6;
    }

    /* هاور ردیف */
    .data-table tbody tr:hover {
        background-color: #e5e7eb;
    }

/* =========================
   DEBIT / CREDIT COLORS
   ========================= */

/* بدهکار – طلا و پول */
.col-bed {
    color: #dc2626; /* قرمز */
    font-weight: 900;
}

/* بستانکار – طلا و پول */
.col-bes {
    color: #2563eb; /* آبی */
    font-weight: 900;
}

/* مانده */
.col-mande {
    color: #111827;
    font-weight: 900;
}

/* بد/بس */
.col-vt {
    font-weight: 900;
    color: #374151;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
}

.btn-logout {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(239,68,68,0.45);
}

    .btn-logout:hover {
        background: linear-gradient(135deg, #f87171, #ef4444);
    }


.btn-login {
    background: linear-gradient(135deg, #b9ef44, #90c914);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(202,248,104,0.45);
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
}

    .btn-login:hover {
        background: linear-gradient(135deg, #71f8ad, #8bdc3c);
    }

.btn-Date {
    background: linear-gradient(135deg, #636363, #4a4a4a);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

    .btn-Date:hover {
        background: linear-gradient(135deg, #868686, #a0a0a0);
    }

/*.header-content {
    display: flex;
    align-items: center;
    justify-content: center;*/ /* وسط چین */
    /*gap: 0.8rem;
}*/

/*.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .header-logo img {
        width: 34px;
        height: 34px;
        object-fit: contain;
    }
*/
/* متن وسط */


/*.header .logo {
    width: 38px;*/ /* اندازه لوگو */
    /*height: 38px;
    object-fit: contain;
}*/

.table-wrapper {
    max-height: 65vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    min-width: 1100px; /* مهم برای اسکرول افقی */
}




.date-box {
    margin-top: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.date-group label {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.2rem;
}

.date-row {
    display: flex;
    gap: 0.4rem;
}

    .date-row select {
        flex: 1;
        padding: 0.45rem;
        border-radius: 0.6rem;
        background: rgba(15,23,42,0.8);
        color: #e5e7eb;
        border: 1px solid rgba(75,85,99,0.6);
        font-size: 0.85rem;
    }

.date-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.4rem;
}



/*.date-select {
    display: flex;
    gap: 0.4rem;
}

    .date-select select {
        flex: 1;
        padding: 0.45rem;
        border-radius: 0.6rem;
        background: rgba(15,23,42,0.85);
        color: #e5e7eb;
        border: 1px solid rgba(75,85,99,0.8);
        font-size: 0.85rem;
    }*/

@media (max-width: 480px) {
    .date-select {
        flex-direction: column;
    }
}

/* بد/بس رنگی */
.vt-bad {
    color: #dc2626 !important; /* قرمز */
    font-weight: 900 !important;
}

.vt-bes {
    color: #2563eb !important; /* آبی */
    font-weight: 900 !important;
}

.date-btn {
    font-size: 0.85rem;
    color: #cbd5f5;
    margin-bottom: 0.4rem; /* فاصله از فیلدها */
    margin-top: 0.4rem; /* فاصله از فیلدها */
}


.date-block {
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.date-row {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.date-label {
    font-size: 0.85rem;
    color: #cbd5f5;
    margin-bottom: 0.4rem; /* فاصله از فیلدها */
}

.date-fields {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.date-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

    .date-col span {
        font-size: 0.7rem;
        color: #9ca3af;
    }

    .date-col select {
        min-width: 70px;
        text-align: center;
    }

@media (max-width: 600px) {
    .date-fields {
        justify-content: center;
    }
}

.support-top-box {
    background: #111827;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 20px;
    direction: rtl;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.support-section {
    margin-bottom: 12px;
}

.support-title {
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
}

.support-text {
    color: white;
    line-height: 1.9;
    margin-bottom: 10px;
}

.support-phone,
.support-mobile {
    font-size: 15px;
    color: white;
    margin-bottom: 6px;
    font-weight: 600;
}

.support-top-box hr {
    margin: 18px 0;
    border: none;
    border-top: 1px solid #cbd5e1;
}

/*.support-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.support-btn {
    width: 140px;
    text-align: center;
}
*/

.support-actions {
    display: flex;
    justify-content: center; /* وسط چین */
    align-items: center;
    gap: 12px;
    width: 100%;
    width: 100%;
}

.support-btn {
    display: flex;
    width: 140px;
}
.support-actions .support-btn {
    width: auto !important;
}


.company-title {
    font-size: 32px;
    font-weight: bold;
    color: #b45309;
    margin-bottom: 14px;
}

.company-numbers {
    font-size: 17px;
    font-weight: bold;
    color: lightgrey; /* آبی */
    direction: ltr;
}

.ticket-card {
    max-width: 720px;
    margin: 40px auto;
    padding: 32px;
    box-sizing: border-box;
}

.ticket-group {
    width: 100%;
    box-sizing: border-box;
}

.ticket-input,
.ticket-textarea,
.ticket-btn {
    width: 100%;
    box-sizing: border-box;
}

.ticket-card {
    max-width: 720px;
    margin: 40px auto;
    padding: 32px;
    border-radius: 24px;
    background: rgba(15,23,42,.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 10px 40px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.04);
}

/* تیتر */
.ticket-title {
    text-align: center;
    color: #f8fafc;
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 34px;
}

/* گروه فیلد */
.ticket-group {
    margin-bottom: 22px;
}

/* لیبل */
.ticket-label {
    display: block;
    color: #cbd5e1;
    font-size: 15px;
    margin-bottom: 10px;
}

/* اینپوت و تکست اریا */
.ticket-input,
.ticket-textarea {
    width: 100%;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    color: #f8fafc;
    padding: 16px 18px;
    font-size: 15px;
    transition: .2s;
}

/* ارتفاع textarea */
.ticket-textarea {
    min-height: 180px;
    resize: vertical;
}

    /* فوکوس */
    .ticket-input:focus,
    .ticket-textarea:focus {
        outline: none;
        border-color: rgba(59,130,246,.45);
        background: rgba(255,255,255,.06);
        box-shadow: 0 0 0 4px rgba(59,130,246,.10);
    }

    /* placeholder */
    .ticket-input::placeholder,
    .ticket-textarea::placeholder {
        color: #94a3b8;
    }

/* دکمه */
.ticket-btn {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 16px;
    background: linear-gradient( 135deg, #2563eb, #1d4ed8 );
    color: white;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
    box-shadow: 0 10px 25px rgba(37,99,235,.25);
}

    /* hover */
    .ticket-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(37,99,235,.35);
    }