/* === Formulario frontend === */
.rtp-form { max-width: 900px; margin: 0 auto; }
.rtp-aviso { padding: 14px 18px; background: #fef7e0; border: 1px solid #f0c36d; border-radius: 8px; margin-bottom: 18px; }
.rtp-aviso-ok { background: #e6f6ec; border-color: #7fd6a0; }
.rtp-section { border: 1px solid #dcdfe4; border-radius: 10px; padding: 16px 18px; margin-bottom: 18px; }
.rtp-section legend { font-weight: 700; padding: 0 8px; color: #1f2937; }
.rtp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 18px; margin-top: 8px; }
.rtp-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: #374151; }
.rtp-field input[type=text],
.rtp-field input[type=number],
.rtp-field input[type=date],
.rtp-field select,
.rtp-field textarea {
	width: 100%; padding: 8px 10px; border: 1px solid #cbd2d9; border-radius: 6px; font-size: 14px; box-sizing: border-box;
}
.rtp-radio-group { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.rtp-radio-opt { font-size: 13px; font-weight: 400 !important; display: flex; align-items: center; gap: 4px; }
.rtp-req { color: #d6362c; }
.rtp-submit-wrap { text-align: right; }
.rtp-submit-btn {
	background: #1f2a44; color: #fff; border: 0; padding: 12px 28px; border-radius: 8px;
	font-size: 15px; font-weight: 600; cursor: pointer;
}
.rtp-submit-btn:hover { background: #16203a; }

/* === Ficha pública === */
.rtp-public-wrap { max-width: 640px; margin: 30px auto; padding: 0 16px; }
.rtp-card { background: #fff; }
.rtp-card-top { display: flex; justify-content: flex-end; }
.rtp-qr-box { padding: 8px; }
.rtp-di-number { font-size: 30px; font-weight: 800; color: #1f2a44; margin: 6px 0 10px; }
.rtp-meta-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font-size: 14px; color: #4b5563; }
.rtp-meta-label { color: #9aa4b2; margin-right: 4px; }
.rtp-pill {
	display: inline-block !important; padding: 4px 14px !important; border-radius: 999px !important;
	font-size: 13px !important; font-weight: 600 !important; border: 1px solid #cbd2d9 !important;
	color: #374151 !important; white-space: nowrap !important; line-height: 1.6 !important;
}
.rtp-pill-finalizado { background: #e6f6ec; border-color: #7fd6a0; color: #196a3c; }
.rtp-pill-en_transito { background: #eaf1ff; border-color: #9dbdf7; color: #1d4ed8; }
.rtp-pill-pendiente { background: #fef7e0; border-color: #f0c36d; color: #92620a; }
.rtp-pill-rechazado { background: #fdeceb; border-color: #f2a49c; color: #9c2b22; }

.rtp-section-h { font-size: 16px; font-weight: 700; color: #1f2a44; margin: 22px 0 10px; }
.rtp-box { border: 1px solid #e2e5ea; border-radius: 10px; padding: 16px 18px; }
.rtp-box-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f0f1f3; font-size: 14px; }
.rtp-box-row:last-of-type { border-bottom: 0; }
.rtp-box-label { color: #6b7280; }
.rtp-box-value { font-weight: 600; color: #1f2a44; text-align: right; }
.rtp-download-btn {
	display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px;
	background: #1f2a44; color: #fff !important; text-decoration: none !important; padding: 10px 16px !important;
	border-radius: 8px !important; font-weight: 600; font-size: 14px;
}
.rtp-download-btn:hover { background: #16203a; }

.rtp-flow { margin-top: 22px; display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.rtp-flow-box { background: #f5f6f8; border-radius: 10px; padding: 14px 16px; }
.rtp-flow-label { font-size: 12px; color: #9aa4b2; text-transform: uppercase; letter-spacing: .04em; }
.rtp-flow-name { font-weight: 700; color: #1f2a44; margin-top: 2px; }
.rtp-flow-sub { font-size: 13px; color: #6b7280; margin-top: 2px; }
.rtp-flow-arrow { text-align: center; font-size: 20px; color: #9aa4b2; }

/* === Mis documentos (listado por usuario) === */
/* Nota: se pinta con <div> (tarjetas de 3 líneas), no con <table> ni con
   columnas de ancho fijo, para que el tema activo no pueda sobreescribir
   el aspecto y para que fluya bien a cualquier ancho sin media queries. */
.rtp-mydocs { max-width: 720px; margin: 0 auto; }

.rtp-doclist { display: block !important; }
.rtp-doc-row {
	display: block !important;
	background: #fff !important;
	border: 1px solid #e2e5ea !important;
	border-radius: 10px !important;
	padding: 14px 18px !important;
	margin: 0 0 10px 0 !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
	color: #1f2a44 !important;
}
.rtp-doc-top {
	display: -webkit-flex !important; display: flex !important;
	-webkit-align-items: center !important; align-items: center !important;
	-webkit-justify-content: space-between !important; justify-content: space-between !important;
	-webkit-flex-wrap: wrap !important; flex-wrap: wrap !important;
	gap: 8px !important;
}
.rtp-doc-di {
	font-weight: 700 !important; font-size: 15px !important; color: #1f2a44 !important;
	overflow-wrap: anywhere !important; word-break: break-word !important;
}
.rtp-doc-meta { font-size: 13px !important; color: #6b7280 !important; margin: 6px 0 0 0 !important; }
.rtp-doc-links { font-size: 13px !important; margin: 8px 0 0 0 !important; }
.rtp-doc-links a { color: #1f2a44 !important; font-weight: 600 !important; text-decoration: none !important; }
.rtp-doc-links a:hover { text-decoration: underline !important; }
.rtp-doc-sep { margin: 0 6px !important; color: #cbd2d9 !important; }

.rtp-mydocs-pager { margin-top: 14px; text-align: center; }
.rtp-mydocs-pager a {
	display: inline-block !important; padding: 6px 12px !important; margin: 0 2px !important; border-radius: 6px !important;
	border: 1px solid #dcdfe4 !important; color: #1f2a44 !important; text-decoration: none !important; font-size: 13px !important;
}
.rtp-mydocs-pager a.rtp-page-actual { background: #1f2a44 !important; color: #fff !important; border-color: #1f2a44 !important; }
