﻿.fixed-avatar {
    width: 45px;
    height: 45px;
    object-fit: cover; /* بخش مرکزی عکس را نگه می‌دارد و قاب مربعی می‌سازد */
    border-radius: 50%; /* در صورت نیاز به دایره‌ای بودن */
    overflow: hidden;
}
    .fixed-avatar.lg {
        width: 90px;
        height: 90px;
        object-fit: cover;
    }

.logoCustom{
    width:115px !important;
}

.textAreaCustom {
    resize: both !important;
    height: 248px !important;
    width: 90% !important;
    border: 1px solid #c1b7b7 !important;
    border-radius: 8px !important;
    padding: 10px;
}

.preserveLines {
    white-space: pre-line;
}

.rte-container {
    border: 1px solid #ccc;
    font-family: "IRANYekanXFaNum";
}

.rte-toolbar {
    background: #f1f1f1;
    border-bottom: 1px solid #ccc;
    padding: 5px;
}

    .rte-toolbar button {
        margin: 2px;
        padding: 5px 8px;
        cursor: pointer;
    }

.rte-editor {
    min-height: 300px;
    padding: 10px;
    direction: rtl;
    text-align: justify;
    outline: none;
    font-family: "IRANYekanXFaNum";
    font-size: 14px;
    color: none !important;
}

.rte-font-select {
    padding: 4px 10px;
    margin-left: 8px;
    font-family: "IRANYekanXFaNum";
}

.text-justify {
    text-align: justify;
    text-align-last: right;
    direction: rtl;
   
}

.small-menu-item a {
    font-size: 0.70rem !important;
}

.nastar-brand-logo {
    width: 180px;
    max-width: 100%;
    height: auto;
}

.nastar-brand-symbol {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.rte-editor table,
.letter-tiptap-editor table,
.letter-html-content table {
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
}

.rte-editor th, .rte-editor td,
.letter-tiptap-editor th, .letter-tiptap-editor td,
.letter-html-content th, .letter-html-content td {
    border: 1px solid #000;
    min-width: 50px;
    padding: 6px;
    vertical-align: top;
}

.letter-tiptap-editor .column-resize-handle {
    background-color: #0d6efd;
    bottom: -2px;
    pointer-events: none;
    position: absolute;
    right: -2px;
    top: 0;
    width: 4px;
}

.letter-tiptap-editor .tableWrapper {
    overflow-x: auto;
}

/* Compact typography for authenticated management shell only.
   Login, public pages and print layouts intentionally remain unchanged. */
@media screen {
    .pc-container {
        font-size: 0.625rem;
    }

    .pc-container :where(p, span, a, td, th, b, strong, label),
    .pc-sidebar :where(span, a, b, strong),
    .pc-header :where(span, a, b, strong) {
        font-size: 0.625rem;
    }

    .pc-container h1 { font-size: 1.3rem; }
    .pc-container h2 { font-size: 1.12rem; }
    .pc-container h3 { font-size: 1rem; }
    .pc-container h4 { font-size: 0.9rem; }
    .pc-container h5 { font-size: 0.8rem; }
    .pc-container h6 { font-size: 0.7rem; }

    .pc-container :where(.form-control, .form-select, .btn, .dropdown-item),
    .pc-sidebar .pc-link {
        font-size: 0.625rem;
    }
}


.gallery-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}


/* موبایل اگر خواستی ارتفاع بیشتر باشد */
@media (max-width: 576px) {
    .gallery-img {
        height: 260px;
    }
}

/* اختیاری: استایل دکمه‌های بعد/قبل */
.next-btn, .prev-btn {
    color: #fff;
}


/* صفحه A4 */

@page {
    size: A4 portrait;
    margin: 12mm 10mm;
}


@media print {

    body {
        direction: rtl;
        background: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .no-print {
        display: none !important;
    }

    .print-container {
        width: 100%;
        margin: 0;
        padding: 0;
        font-size: 13px;
    }
}


/* هدر سند */

.receipt-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.header-right h4 {
    margin: 0;
    font-size: 22px;
}

.header-left {
    text-align: left;
}

    .header-left p {
        margin: 2px 0;
    }


/* اطلاعات */

.receipt-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

    .receipt-info label {
        display: block;
        color: #777;
        font-size: 12px;
    }


/* جدول */

.print-table-wrapper {
    width: 100%;
    overflow: visible;
}

.warehouse-print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

    .warehouse-print-table th,
    .warehouse-print-table td {
        border: 1px solid #000;
        padding: 6px;
        text-align: center;
        vertical-align: middle;
    }

    .warehouse-print-table thead {
        display: table-header-group;
        background: #f3f3f3;
    }

    .warehouse-print-table tr {
        page-break-inside: avoid;
        break-inside: avoid;
    }


/* جمع کل */

.receipt-total-section {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #000;
    padding-top: 10px;
    page-break-inside: avoid;
}


/* امضا */

.signature-section {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    page-break-inside: avoid;
}

.signature-box {
    width: 30%;
    text-align: center;
}

.signature-image-box {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signature-image {
    max-height: 70px;
    max-width: 120px;
}

.signature-image-placeholder {
    height: 70px;
}

.signature-line {
    border-top: 1px solid black;
    padding-top: 5px;
    margin-top: 10px;
    font-weight: 600;
}
