/* Module "Arbeitsrapporte": made for the phone and the tablet on site. */
.rp-sub { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0 0; }
.rp-badge-signed { background: var(--info-bg); color: #1d3f72; }
.inline-form { margin: 0; display: inline-flex; }

/* Repeating rows (work time, material) as blocks, not tables. */
.rp-rows { display: grid; gap: 10px; }
.rp-row { border: 1px solid var(--line); border-radius: 8px; padding: 12px 12px 6px; background: var(--bg); }
.rp-row-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0 12px; align-items: end; }
.rp-row-grid .rp-wide { grid-column: span 2; }
.rp-row .form label, .rp-row label { margin-bottom: 10px; }
.rp-out { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; font-size: 0.85rem; font-weight: 600; color: #344054; }
.rp-out strong { min-height: 40px; display: flex; align-items: center; font-size: 1.1rem; font-variant-numeric: tabular-nums; color: var(--text); }
.rp-row-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.rp-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.rp-total { font-variant-numeric: tabular-nums; }
.rp-total strong { font-size: 1.15rem; }
.rp-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 16px; }
.rp-checks .checkbox { margin: 0 !important; min-height: 32px; }
.rp-radios { margin-bottom: 14px; flex-wrap: wrap; }
.rp-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.rp-photos figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rp-photos img { display: block; width: 112px; height: 112px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.rp-save { position: sticky; bottom: 0; z-index: 5; padding: 10px 0; margin: 0 0 20px; background: var(--bg); }

/* Signature */
.rp-sign-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.rp-sign h3 { margin: 0 0 12px; font-size: 1rem; }
.rp-pad { display: block; width: 100%; height: 200px; margin-bottom: 4px; border: 1px dashed #98a2b3; border-radius: 8px; background: #fff; touch-action: none; cursor: crosshair; }
.rp-sign .checkbox { margin: 12px 0 !important; }
.rp-link input { font-size: 0.8rem !important; }
.rp-signed { display: block; }

/* Read-only view */
.rp-data { margin: 0; }
.rp-text { margin: 0; overflow-wrap: anywhere; }
.rp-list { list-style: none; margin: 0; padding: 0; }
.rp-list li { padding: 3px 0; }

/* List and invoice */
.rp-tobill { list-style: none; margin: 0; padding: 0; }
.rp-tobill li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rp-tobill li:last-child { border-bottom: 0; }
.rp-reports { display: grid; gap: 6px; }
.rp-reports .checkbox { margin: 0 !important; }
.rp-bill-table tr.rp-group td { background: var(--bg); font-weight: 600; font-size: 0.88rem; }
.rp-bill-table tr.is-off td:not(:first-child) { color: #b0b6c0; text-decoration: line-through; }
.rp-bill-send { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.rp-tpl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 20px; }

@media (max-width: 760px) {
    .rp-sign-grid { grid-template-columns: 1fr; }
    .rp-row-grid { grid-template-columns: 1fr 1fr; }
    .rp-row-grid .rp-wide { grid-column: span 2; }
    .rp-pad { height: 180px; }
}
