﻿@import url(/dl/Classes/Font/IRANSans/WebFonts/css/fontiran.css);
@import url(/dl/Classes/Font/IRANSans/Farsi_numerals/WebFonts/css/fontiran.css);
/* Reset و Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: IRANSans,tahoma,'Segoe UI', Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding: 0;
    margin: 0;
}

/* Container و Layout */
.container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

main {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    margin: 1rem auto;
    max-width: 1200px;
}

/* Typography */
h1 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #2c3e50;
    margin: 1rem 0;
    line-height: 1.3;
}

h2 {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    color: #34495e;
    margin: 0.875rem 0;
    line-height: 1.4;
}

h3 {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #34495e;
    margin: 0.75rem 0;
}

h4, h5, h6 {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #34495e;
    margin: 0.5rem 0;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

    header h1 {
        color: white;
        margin: 0;
        font-size: 2rem;
    }

    header h2 {
        color: rgba(255,255,255,0.9);
        margin-top: 0.5rem;
        font-size: 1.25rem;
        font-weight: 400;
    }

/* Section Styles */
section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

/* List Styles */
.list-group {
    list-style: none;
    padding: 0;
}

.list-group-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .list-group-item:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transform: translateY(-2px);
    }

/* Row و Column Styles */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

    .row > * {
        padding: 0 0.5rem;
    }

.col-12 {
    width: 100%;
}

.col-md-3 {
    width: 100%;
}

.col-md-9 {
    width: 100%;
}

/* Label و Value Styles */
.text-muted {
    color: #6c757d;
    font-size: 0.875rem;
}

.small {
    font-size: 0.875rem;
}

.fw-bold {
    font-weight: 700;
}

.fw-semibold {
    font-weight: 600;
}

/* Link Styles */
a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

    a:hover {
        color: #764ba2;
        text-decoration: underline;
    }

.text-break {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Footer Styles */
footer {
    margin-top: 3rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 2px solid #dee2e6;
    text-align: center;
    border-radius: 8px 8px 0 0;
}

    footer a {
        color: #6c757d;
        font-size: 0.875rem;
    }

/* Back Button */
.leftDiv, .rightDiv {
    position: fixed;
    top: 20px;
    z-index: 1000;
}

.leftDiv {
    left: 20px;
}

.rightDiv {
    right: 20px;
}

.backImage {
    width: 40px;
    height: 40px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

    .backImage:hover {
        opacity: 1;
    }

/* Text Alignment */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

/* Spacing */
.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.px-4 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* RTL Support */
[dir='rtl'] {
    direction: rtl;
}

    [dir='rtl'] .text-right {
        text-align: left;
    }

    [dir='rtl'] .text-left {
        text-align: right;
    }

    [dir='rtl'] .leftDiv {
        left: auto;
        right: 20px;
    }

    [dir='rtl'] .rightDiv {
        right: auto;
        left: 20px;
    }

/* Responsive Design */
@media (min-width: 768px) {
    .col-md-3 {
        width: 25%;
    }

    .col-md-9 {
        width: 75%;
    }

    .col-md-8 {
        width: 66.666667%;
    }

    .col-md-6 {
        width: 50%;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    main {
        padding: 2.5rem;
    }
}

@media (min-width: 992px) {
    .col-lg-6 {
        width: 50%;
    }

    .container-fluid {
        padding: 2rem;
    }
}



/* Print Styles */
@media print {
    body {
        background: white;
    }

    main {
        box-shadow: none;
        padding: 0;
    }

    .leftDiv, .rightDiv {
        display: none;
    }
}

/* Spacer for rows */
.row-spacer {
    height: 10px;
}

/* Footer border */
footer {
    border-top: 1px solid #ddd !important;
    padding-top: 1rem !important;
}

/* Bank title styles */
.bankTitle {
    border-radius: 10px !important;
    height: auto !important;
}

/* From/Until row styles */
.fromUntilRow span {
    color: red;
}

/* Inline flex for label div */
.labelDiv[style*='display:inline-flex'] {
    display: inline-flex !important;
}

/* Iframe styles */
iframe[style*='width: 150px'] {
    width: 150px !important;
    height: 150px !important;
}

/* Document image frame */
.doc-image-frame {
    width: 150px !important;
    height: 150px !important;
}

/* Inline flex */
.inline-flex {
    display: inline-flex !important;
}

/* Flexbox Alignment Utilities */
.align-items-center {
    align-items: center !important;
}

.align-items-start {
    align-items: flex-start !important;
}

.align-items-end {
    align-items: flex-end !important;
}

.align-items-stretch {
    align-items: stretch !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-start {
    justify-content: flex-start !important;
}

.justify-content-end {
    justify-content: flex-end !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-around {
    justify-content: space-around !important;
}

.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.flex-row {
    flex-direction: row !important;
}



.doc-list-item {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e7ff;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.1), 0 1px 3px rgba(13, 110, 253, 0.08);
    transition: box-shadow 0.3s ease, transform 0.2s ease, border-color 0.2s ease;
    margin-bottom: 1rem;
}

    .doc-list-item:hover {
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2), 0 2px 6px rgba(13, 110, 253, 0.15);
        transform: translateY(-2px);
        border-color: #0d6efd;
    }

    .doc-list-item a {
        color: #0d6efd;
        text-decoration: none;
        font-weight: 600;
        font-size: 1rem;
        display: inline-block;
    }

        .doc-list-item a:hover {
            color: #0a58ca;
            text-decoration: underline;
        }

.doc-list-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
}

.doc-list-item-title {
    flex: 1;
    text-align: center;
}

.doc-list-item-badge-wrapper {
    margin-left: 1rem;
}

.doc-count-badge {
    background: #0d6efd;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
}

.doc-list-container {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
}



body.body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container-fluid {
    flex: 1;
    width: 100%;
}

header[role='banner'] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

    header[role='banner'] h1,
    header[role='banner'] h2 {
        color: #fff !important;
        background: transparent !important;
        border: none !important;
    }

main[role='main'] {
    padding-bottom: 2rem;
}

.alphabet-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    max-width: 100%;
    margin: 0 auto;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e7ff;
}

    .alphabet-container .AlphaBetCircle {
        display: inline-block;
        margin: 0 !important;
        flex-shrink: 0;
        padding: 0.2rem .3rem;
        border-radius: 50px;
        font-size: 0.95rem;
        font-weight: 500;
        white-space: nowrap;
        box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
    }

        .alphabet-container .AlphaBetCircle a {
            color: #0d6efd;
            transition: color 0.2s ease;
        }

            .alphabet-container .AlphaBetCircle a:hover {
                color: #0a58ca;
            }



@media (max-width: 480px) {
    .alphabet-container {
        gap: 0.4rem;
        padding: 0.75rem 0.25rem;
    }

        .alphabet-container .AlphaBetCircle {
            transform: scale(0.85);
        }
}

.rowCountCircle {
    display: inline-block;
    width: 35px;
}

.recordListRow {
    background: #cedeef;
    border-radius: 15px 15px 15px 15px;
    border-bottom: 1px solid #C0C0C0;
    margin-top: 3px;
    overflow: hidden;
    text-indent: 10px;
}
.labelDiv {
    display: flex !important;
    align-items: center;
}
.valueDiv {
    font-size: 14px;
    color: black;
    word-break: break-word;
    padding: .5rem;
}

@media (max-width: 768px) {
    .mobile-nav-sticky {
        position: fixed !important;
        top: 0 !important;
        left: 0;
        right: 0;
        z-index: 1000;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        padding: 10px;
    }

    body {
        padding-top: 60px;
    }

    .doc-list-item {
        margin-bottom: 0.75rem;
    }

        .doc-list-item a {
            font-size: 1rem;
        }

    .alphabet-container {
        gap: 0.5rem;
        padding: 1rem 0.5rem;
    }

        .alphabet-container .AlphaBetCircle {
            transform: scale(0.9);
        }

    main {
        padding: 1rem;
        margin: 0.5rem;
        border-radius: 0;
    }

    header {
        padding: 1rem;
        border-radius: 0;
    }

        header h1 {
            font-size: 1.5rem;
        }

        header h2 {
            font-size: 1rem;
        }

    .list-group-item {
        padding: 0.75rem;
    }

    .leftDiv, .rightDiv {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        margin: 1rem 0;
        text-align: center;
    }
}
