/* Neutral styles that sit on top of the theme (Astra/Elementor). */
.aip-wrap { max-width: 860px; }
.aip-form { margin: 0; }
.aip-f { margin: 0 0 22px; }
.aip-f[hidden] { display: none !important; }
.aip-label { display: block; font-weight: 600; margin: 0 0 6px; line-height: 1.4; }
.aip-req { color: #c62828; }
.aip-lock { font-weight: 400; font-size: .8em; background: #eceff1; color: #455a64; padding: 1px 8px; border-radius: 10px; margin-left: 6px; }
.aip-desc, .aip-hint { margin: 0 0 6px; font-size: .9em; color: #5f6368; }
.aip-hint { margin-top: 6px; }

.aip-f input[type=text], .aip-f input[type=number], .aip-f input[type=date],
.aip-f select, .aip-f textarea {
	width: 100%; max-width: 100%; box-sizing: border-box;
	padding: 10px 12px; border: 1px solid #b0b7bf; border-radius: 4px; font-size: 16px; background: #fff;
}
.aip-f input:focus, .aip-f select:focus, .aip-f textarea:focus { outline: 2px solid #1565c0; outline-offset: 1px; border-color: #1565c0; }

.aip-choices { display: flex; flex-direction: column; gap: 6px; }
.aip-choice { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; line-height: 1.45; font-weight: 400; }
.aip-choice input { margin-top: .3em; width: 18px; height: 18px; flex: 0 0 auto; }

.aip-f-file input[type=file] { display: block; padding: 14px; border: 2px dashed #b0b7bf; border-radius: 6px; width: 100%; box-sizing: border-box; background: #fafbfc; }
.aip-files, .aip-picked { margin: 6px 0; padding-left: 20px; }
.aip-files li, .aip-picked li { margin: 3px 0; }
.aip-remove { font-size: .9em; color: #b71c1c; margin-left: 8px; white-space: nowrap; }

.aip-readonly { padding: 10px 12px; background: #f4f6f8; border: 1px solid #e0e4e8; border-radius: 4px; }
.aip-muted { color: #8a9199; }

.aip-f.has-error input, .aip-f.has-error select, .aip-f.has-error textarea { border-color: #c62828; }
.aip-f.has-error .aip-choices, .aip-f.has-error input[type=file] { outline: 1px solid #c62828; outline-offset: 4px; border-radius: 2px; }
.aip-error { color: #c62828; margin: 6px 0 0; font-size: .92em; font-weight: 600; }

.aip-box { padding: 14px 16px; border-radius: 6px; margin: 0 0 18px; border-left: 4px solid; }
.aip-box p { margin: 0 0 8px; }
.aip-box p:last-child { margin-bottom: 0; }
.aip-box-info { background: #e8f1fb; border-color: #1565c0; }
.aip-box-success { background: #e7f5ea; border-color: #2e7d32; }
.aip-box-error { background: #fdecea; border-color: #c62828; }
.aip-box-warn { background: #fff6e0; border-color: #e0a100; }
.aip-phase { font-size: .9em; color: #5f6368; margin: 0 0 12px; }

.aip-live-score { padding: 10px 14px; background: #f4f6f8; border-radius: 4px; }

.aip-btn, .aip-btn:visited {
	display: inline-block; padding: 12px 22px; background: #1565c0; color: #fff !important;
	border: 0; border-radius: 4px; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.aip-btn:hover { background: #0d47a1; }
.aip-btn[disabled] { opacity: .6; cursor: wait; }
.aip-btn-secondary, .aip-btn-secondary:visited { background: #fff; color: #1565c0 !important; border: 1px solid #1565c0; }
.aip-btn-secondary:hover { background: #e8f1fb; }
.aip-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.aip-summary { border: 1px solid #e0e4e8; border-radius: 6px; padding: 14px 18px; }
.aip-summary h3 { margin-top: 0; }
.aip-summary dl { margin: 0; }
.aip-summary dt { font-weight: 600; margin-top: 10px; }
.aip-summary dd { margin: 2px 0 0; }

.aip-mine-title { margin: 0 0 10px; }
.aip-mine { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: .95em; }
.aip-mine th, .aip-mine td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e0e4e8; }
.aip-mine th { background: #f4f6f8; font-weight: 600; }
.aip-status { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: .88em; background: #eceff1; white-space: nowrap; }
.aip-status-submitted { background: #e8f1fb; color: #0d47a1; }
.aip-status-checked { background: #fff6e0; color: #7a5200; }
.aip-status-approved { background: #e7f5ea; color: #1b5e20; }
.aip-status-rejected { background: #fdecea; color: #b71c1c; }
@media (max-width: 600px) {
	.aip-mine thead { display: none; }
	.aip-mine tr { display: block; border-bottom: 1px solid #e0e4e8; padding: 6px 0; }
	.aip-mine td { display: inline-block; border: 0; padding: 4px 8px; }
}

.aip-f-section { margin: 32px 0 18px; padding-top: 18px; border-top: 2px solid #d5dbe1; }
.aip-f-section:first-child { margin-top: 0; }
.aip-section-title { margin: 0 0 6px; font-size: 1.25em; }
.aip-sum-value { display: inline-block; min-width: 60px; padding: 10px 14px; background: #f4f6f8; border: 1px solid #e0e4e8; border-radius: 4px; font-weight: 600; font-size: 1.1em; }

.aip-row-actions { white-space: nowrap; }
.aip-row-actions > a, .aip-row-actions > form { margin-right: 12px; }
.aip-inline { display: inline; margin: 0; }
.aip-link-danger { background: none; border: 0; padding: 0; color: #b71c1c; text-decoration: underline; cursor: pointer; font: inherit; }
@media (max-width: 600px) { .aip-row-actions { white-space: normal; } }

.aip-block-note { margin: 6px 0 0; padding: 8px 10px; background: #fdecea; border-left: 3px solid #c62828; color: #8e1b1b; font-weight: 600; font-size: .92em; }
.aip-block-box p { margin: 0 0 4px; font-weight: 600; }
.aip-poverty { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 10px 14px; background: #f4f6f8; border: 1px solid #e0e4e8; border-radius: 4px; }
.aip-poverty.is-over { background: #fdecea; border-color: #c62828; color: #8e1b1b; }

/* Upload progress */
.aip-progress { margin: 10px 0 0; max-width: 480px; }
.aip-progress[hidden] { display: none; }
.aip-progress-track { height: 10px; background: #e3e8ee; border-radius: 5px; overflow: hidden; }
.aip-progress-bar { height: 100%; width: 0; background: #1565c0; transition: width .2s ease; }
.aip-progress-text { margin: 6px 0 0; font-size: .92em; color: #37474f; }
.aip-progress.is-error .aip-progress-track { display: none; }
.aip-progress.is-error .aip-progress-text { color: #c62828; font-weight: 600; }
