/* ══════════════════════════════════════════════════════════════
   پیش‌فاکتور ارشیا — پنل صفحهٔ تماس + سند قابل چاپ
   پالت: سرمه‌ای #352070 / طلایی #EEBB66 / فیروزه‌ای #1ABC9C
   ══════════════════════════════════════════════════════════════ */

/* ─────────── پنل روی صفحهٔ تماس ─────────── */
.arq-panel {
    max-width: 900px;
    margin: 0 auto 36px;
    padding: 28px 26px;
    background: #fff;
    border: 1px solid var(--border, #e0e0e0);
    border-top: 3px solid #EEBB66;
    border-radius: var(--radius, 12px);
    box-shadow: var(--shadow, 0 4px 20px rgba(0, 0, 0, .08));
}

.arq-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #352070;
    background: #EEBB66;
    border-radius: 20px;
}

.arq-title {
    margin: 0 0 6px;
    font-size: 21px;
    font-weight: 700;
    color: var(--primary, #352070);
}

.arq-sub {
    margin: 0 0 18px;
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--text-light, #636e72);
}

.arq-lines {
    margin-bottom: 14px;
    padding: 12px 14px;
    background: var(--bg-light, #f8f9fa);
    border-radius: 8px;
}

.arq-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    font-size: 13.5px;
    border-bottom: 1px dashed #e3e3e3;
}

.arq-line:last-child {
    border-bottom: 0;
}

.arq-line b {
    font-weight: 600;
    white-space: nowrap;
}

.arq-muted {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.arq-totals {
    margin-bottom: 20px;
}

.arq-trow {
    display: flex;
    justify-content: space-between;
    padding: 6px 2px;
    font-size: 13.5px;
    color: var(--text-light, #636e72);
}

.arq-trow.is-disc b {
    color: #1e6b3a;
}

.arq-trow.is-total {
    margin-top: 6px;
    padding-top: 12px;
    font-size: 16px;
    color: var(--primary, #352070);
    border-top: 1px solid #e0e0e0;
}

.arq-trow.is-total b {
    font-weight: 700;
}

/* فرم */
.arq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.arq-f {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.arq-f--full {
    grid-column: 1 / -1;
}

.arq-f > span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text, #2d3436);
}

.arq-f input,
.arq-f select,
.arq-f textarea {
    width: 100%;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--text, #2d3436);
    background: #fff;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    transition: var(--transition, all .3s ease);
}

.arq-f input:focus,
.arq-f select:focus,
.arq-f textarea:focus {
    outline: 0;
    border-color: #352070;
    box-shadow: 0 0 0 3px rgba(53, 32, 112, .08);
}

.arq-submit {
    width: 100%;
    padding: 13px 20px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    color: #fff;
    background: #352070;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition, all .3s ease);
}

.arq-submit:hover:not(:disabled) {
    background: #2a1a5a;
}

.arq-submit:disabled {
    opacity: .65;
    cursor: default;
}

.arq-note {
    margin: 10px 0 0;
    font-size: 13px;
    min-height: 18px;
    color: var(--text-light, #636e72);
}

.arq-note.is-error {
    color: #a32d2d;
}

.arq-done {
    padding: 22px 18px;
    text-align: center;
    background: #f2faf6;
    border: 1px solid #b9e3cd;
    border-radius: 10px;
}

.arq-ok-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #1e6b3a;
}

.arq-ok-code {
    margin: 0 0 14px;
    font-size: 14px;
}

.arq-ok-code b {
    font-family: var(--font-mono, monospace);
    color: #352070;
}

.arq-link {
    display: inline-block;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #352070;
    border-radius: 8px;
    text-decoration: none;
}

/* ─────────── سند پیش‌فاکتور ─────────── */
.arq-page {
    padding: 40px 0 60px;
}

.arq-doc {
    max-width: 880px;
    margin: 0 auto;
    padding: 36px 38px;
    background: #fff;
    border: 1px solid var(--border, #e0e0e0);
    border-radius: var(--radius, 12px);
}

.arq-doc-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 2px solid #352070;
}

.arq-doc-logo {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #352070;
}

.arq-doc-company {
    font-size: 12.5px;
    color: var(--text-light, #636e72);
}

.arq-doc-meta {
    text-align: left;
}

.arq-doc-meta h1 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: #352070;
}

.arq-doc-meta p {
    margin: 2px 0;
    font-size: 12.5px;
    color: var(--text-light, #636e72);
}

.arq-doc-code b {
    font-family: var(--font-mono, monospace);
    color: #352070;
}

.arq-doc-party {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 24px;
}

.arq-doc-party > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 16px;
    background: var(--bg-light, #f8f9fa);
    border-radius: 8px;
    font-size: 13px;
}

.arq-lbl {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.arq-expired {
    color: #a32d2d;
    font-weight: 600;
}

.arq-doc-table {
    width: 100%;
    margin-bottom: 18px;
    border-collapse: collapse;
    font-size: 13.5px;
}

.arq-doc-table th {
    padding: 10px 12px;
    font-size: 12.5px;
    font-weight: 600;
    text-align: right;
    color: #fff;
    background: #352070;
}

.arq-doc-table th:first-child {
    border-radius: 0 8px 0 0;
    width: 44px;
}

.arq-doc-table th:last-child {
    border-radius: 8px 0 0 0;
    width: 170px;
}

.arq-doc-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #eee;
}

.arq-doc-table tr:nth-child(even) td {
    background: #fafafa;
}

.arq-doc-totals {
    width: 320px;
    margin-right: auto;
    margin-bottom: 18px;
}

.arq-doc-totals > div {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    font-size: 13.5px;
    color: var(--text-light, #636e72);
}

.arq-doc-totals .is-total {
    margin-top: 6px;
    padding-top: 12px;
    font-size: 16px;
    color: #352070;
    border-top: 2px solid #352070;
}

.arq-doc-fine {
    margin: 0 0 22px;
    font-size: 12px;
    line-height: 1.9;
    color: var(--text-muted);
}

.arq-doc-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding-top: 16px;
    border-top: 1px solid #e6e6e6;
    font-size: 12.5px;
}

.arq-doc-foot > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.arq-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 22px;
}

.arq-btn {
    display: inline-block;
    padding: 11px 24px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition, all .3s ease);
}

.arq-btn.is-primary {
    color: #fff;
    background: #352070;
}

.arq-btn.is-primary:hover {
    background: #2a1a5a;
}

.arq-btn.is-ghost {
    color: #352070;
    background: transparent;
    border-color: #352070;
}

.arq-btn.is-ghost:hover {
    color: #fff;
    background: #352070;
}

.arq-empty {
    max-width: 620px;
    margin: 40px auto;
    padding: 34px 26px;
    text-align: center;
    background: var(--bg-light, #f8f9fa);
    border-radius: var(--radius, 12px);
}

.arq-empty h1 {
    margin: 0 0 10px;
    font-size: 21px;
    color: #352070;
}

/* ─────────── موبایل ─────────── */
@media (max-width: 640px) {
    .arq-panel,
    .arq-doc {
        padding: 22px 16px;
    }

    .arq-doc-head,
    .arq-doc-party {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .arq-doc-meta {
        text-align: right;
    }

    .arq-doc-totals {
        width: 100%;
    }

    .arq-doc-table th:last-child,
    .arq-doc-table td:last-child {
        width: auto;
    }
}

/* ─────────── چاپ ─────────── */
@media print {
    .no-print,
    .site-header,
    .site-footer,
    header.site-header,
    footer.site-footer {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .arq-page {
        padding: 0;
    }

    .arq-doc {
        max-width: none;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
    }

    .arq-doc-table th {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
