/* Explain: Styles for generating printable documents and reports. */
/* ---- Printable statement / كشف الجرد المختصر ---- */
.print-area {
    display: none;
}

.print-doc {
    color: #111827;
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.6;
}

.print-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 0.6rem;
    margin-bottom: 0.9rem;
}

.print-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.print-logo {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.5rem;
    background: #0f172a;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.print-title {
    font-size: 15px;
    font-weight: 800;
    margin: 0;
    font-family: var(--font-heading);
}

.print-sub {
    margin: 0.15rem 0 0;
    font-size: 11px;
    color: #475569;
}

.print-meta {
    text-align: start;
    font-size: 10.5px;
    color: #475569;
    line-height: 1.6;
    white-space: nowrap;
}

.print-meta-company {
    font-weight: 800;
    color: #0f172a;
}

.print-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 11.5px;
}

.print-info span {
    color: #64748b;
}

.print-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
    margin-bottom: 0.9rem;
}

.print-stat {
    border: 1px solid #cbd5e1;
    border-radius: 0.4rem;
    padding: 0.4rem 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.print-stat-label {
    font-size: 9.5px;
    color: #64748b;
}

.print-stat-value {
    font-size: 12.5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.print-section-title {
    font-size: 12.5px;
    font-weight: 800;
    margin: 0.9rem 0 0.45rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #cbd5e1;
    font-family: var(--font-heading);
}

.print-sub-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #334155;
    margin: 0.6rem 0 0.35rem;
    font-family: var(--font-heading);
}

.print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    margin-bottom: 0.6rem;
}

.print-table th {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 0.35rem 0.5rem;
    text-align: start;
    font-size: 10px;
    font-weight: 800;
}

.print-table td {
    border: 1px solid #cbd5e1;
    padding: 0.35rem 0.5rem;
}

.print-table tfoot td {
    background: #f8fafc;
    font-weight: 800;
}

.print-num {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.print-strong {
    font-weight: 800;
}

.print-empty,
.print-note {
    color: #64748b;
    font-size: 11px;
}

.print-note {
    padding: 0.4rem 0.55rem;
    border: 1px dashed #cbd5e1;
    border-radius: 0.4rem;
    margin-bottom: 0.5rem;
}

.print-empty {
    text-align: center;
    padding: 0.6rem;
}

.print-foot {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #cbd5e1;
    padding-top: 0.5rem;
    margin-top: 0.6rem;
    font-size: 10px;
    color: #64748b;
}

.print-marketer-page {
    page-break-after: always;
    break-after: page;
    padding-bottom: 0.5rem;
}

.print-marketer-page:last-child {
    page-break-after: auto;
    break-after: auto;
}

.print-marketer-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 0.4rem;
    margin-bottom: 0.6rem;
}

.print-marketer-name {
    font-size: 14.5px;
    font-weight: 800;
    margin: 0;
    font-family: var(--font-heading);
}

.print-marketer-meta {
    font-size: 10.5px;
    color: #475569;
}

@media print {
    body > *:not(.print-area) {
        display: none !important;
    }

    .print-area {
        display: block !important;
    }

    .print-doc th,
    .print-doc tfoot td,
    .print-logo {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    @page {
        margin: 12mm;
    }
}