/* ATC SR – report form. Branding comes from CSS variables injected from Settings → Branding. */
.atcsr-form {
	--atcsr-primary: #0b5cab; --atcsr-accent: #f39c12; --atcsr-text: #222; --atcsr-font: inherit;
	--atcsr-radius: 8px; --atcsr-border: #d7dde5; --atcsr-bg: #fff; --atcsr-muted: #6b7684;
	font-family: var(--atcsr-font); color: var(--atcsr-text); max-width: 1000px; margin: 0 auto; box-sizing: border-box;
}
.atcsr-form *, .atcsr-form *::before, .atcsr-form *::after { box-sizing: border-box; }

/* Header */
.atcsr-header { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 4px solid var(--atcsr-primary); background: var(--atcsr-bg); border-radius: var(--atcsr-radius) var(--atcsr-radius) 0 0; }
.atcsr-logo { max-height: 56px; max-width: 180px; }
.atcsr-title { margin: 0; font-size: 1.3em; color: var(--atcsr-primary); }
.atcsr-report-number { color: var(--atcsr-muted); font-size: .9em; }
.atcsr-netstatus { margin-left: auto; font-size: .8em; padding: 4px 10px; border-radius: 99px; background: #eee; white-space: nowrap; }
.atcsr-netstatus.is-online { background: #e3f6e8; color: #1c7c3a; }
.atcsr-netstatus.is-offline { background: #fdeaea; color: #b3261e; }

/* Grid: 12 columns, stacks on phones */
.atcsr-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px 16px; padding: 18px 20px; border: 0; margin: 0; min-width: 0; }
.atcsr-w-full, .atcsr-section { grid-column: span 12; }
.atcsr-w-two-thirds { grid-column: span 8; }
.atcsr-w-half { grid-column: span 6; }
.atcsr-w-third { grid-column: span 4; }
.atcsr-w-quarter { grid-column: span 3; }
@media (max-width: 782px) {
	.atcsr-w-two-thirds, .atcsr-w-half, .atcsr-w-third { grid-column: span 12; }
	.atcsr-w-quarter { grid-column: span 6; }
	.atcsr-header { flex-wrap: wrap; }
}

.atcsr-layout-card { background: var(--atcsr-bg); border: 1px solid var(--atcsr-border); border-radius: var(--atcsr-radius); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.atcsr-layout-compact .atcsr-grid { gap: 8px 10px; padding: 10px 12px; }
.atcsr-job-header { background: #f7f9fc; border-bottom: 1px solid var(--atcsr-border); }

/* Section headings are <h3>s, so theme heading styles (e.g. ".entry-content h3", Elementor/Astra heading colours)
   would otherwise override the Branding colours. Colours are !important so the settings always win. */
.atcsr-form h3.atcsr-section { margin: 14px 0 0; padding: 10px 14px; line-height: 1.3; border-radius: 4px; border: 0; text-transform: none;
	font-size: var(--atcsr-section-size, 19px) !important;
	font-weight: 700 !important;
	background: var(--atcsr-section-bg, var(--atcsr-primary)) !important;
	color: var(--atcsr-section-text, #fff) !important;
	-webkit-text-fill-color: var(--atcsr-section-text, #fff) !important; /* beats "gradient text" heading effects */
}

.atcsr-field { position: relative; min-width: 0; }
.atcsr-field > label { display: block; font-weight: 600; font-size: .9em; margin-bottom: 4px; }
.atcsr-field .req { color: #c62828; }
.atcsr-form input[type=text], .atcsr-form input[type=number], .atcsr-form input[type=tel], .atcsr-form input[type=email],
.atcsr-form input[type=date], .atcsr-form input[type=time], .atcsr-form input[type=datetime-local], .atcsr-form select, .atcsr-form textarea {
	width: 100%; padding: 10px 12px; font-size: 16px; /* 16px stops iOS zoom */ border: 1px solid var(--atcsr-border); border-radius: 6px; background: #fff; color: inherit; font-family: inherit;
}
.atcsr-form input:focus, .atcsr-form select:focus, .atcsr-form textarea:focus { outline: 2px solid var(--atcsr-primary); outline-offset: 0; border-color: var(--atcsr-primary); }
.atcsr-help { display: block; color: var(--atcsr-muted); margin-top: 3px; }
.atcsr-invalid > label, .atcsr-invalid .atcsr-help { color: #c62828; }
.atcsr-invalid input, .atcsr-invalid select, .atcsr-invalid textarea, .atcsr-invalid .atcsr-signature canvas, .atcsr-invalid .atcsr-file-drop { border-color: #c62828 !important; background: #fff6f6; }

.atcsr-choices { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 4px; }
.atcsr-choice { display: flex; align-items: center; gap: 6px; font-weight: normal; min-height: 32px; }
.atcsr-choice input { width: 22px; height: 22px; }

/* Client autocomplete */
.atcsr-suggestions { position: absolute; z-index: 50; left: 0; right: 0; list-style: none; margin: 2px 0 0; padding: 4px 0; background: #fff; border: 1px solid var(--atcsr-border); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 280px; overflow: auto; }
.atcsr-suggestions li { padding: 8px 12px; cursor: pointer; }
.atcsr-suggestions li small { display: block; color: var(--atcsr-muted); }
.atcsr-suggestions li:hover, .atcsr-suggestions li.active { background: #eef4fb; }
.atcsr-suggestions li.atcsr-empty { color: var(--atcsr-muted); cursor: default; }
.atcsr-client-card { margin-top: 8px; padding: 10px 12px; border-left: 4px solid var(--atcsr-accent); background: #fff; border-radius: 4px; font-size: .9em; line-height: 1.5; }
.atcsr-tag { display: inline-block; padding: 1px 8px; border-radius: 99px; background: #e9eef5; font-size: .8em; }
.atcsr-tag-sla { background: var(--atcsr-accent); color: #fff; }
.atcsr-new-client { padding: 10px 0 0; grid-column: span 12; }
.atcsr-link { background: none; border: 0; color: var(--atcsr-primary); padding: 6px 0; cursor: pointer; font-size: .9em; text-decoration: underline; }

/* Signature */
.atcsr-signature { position: relative; }
.atcsr-signature canvas { display: block; width: 100%; height: 180px; border: 1px dashed #9aa6b5; border-radius: 6px; background: #fff; cursor: crosshair; touch-action: none; }
.atcsr-signature-line { position: absolute; left: 16px; right: 16px; bottom: 34px; border-top: 1px solid #c8d0da; font-size: .75em; color: #9aa6b5; pointer-events: none; padding-top: 2px; }
.atcsr-signed .atcsr-signature-line { visibility: hidden; }
.atcsr-signature-clear { position: absolute; top: 4px; right: 10px; }

/* Files / photos */
.atcsr-file-drop { position: relative; border: 2px dashed #9aa6b5; border-radius: 6px; padding: 18px; text-align: center; color: var(--atcsr-muted); background: #fafbfd; }
.atcsr-file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.atcsr-file-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.atcsr-file { position: relative; border: 1px solid var(--atcsr-border); border-radius: 6px; overflow: hidden; background: #fff; }
.atcsr-file img { display: block; width: 100%; height: 110px; object-fit: cover; }
.atcsr-file-icon { display: block; font-size: 40px; text-align: center; padding: 25px 0; }
.atcsr-file-meta { padding: 6px; font-size: .8em; word-break: break-all; }
.atcsr-file-meta input { margin-top: 4px; padding: 6px !important; font-size: 14px !important; }
.atcsr-file-remove, .atcsr-row-remove { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.atcsr-row-remove { position: static; background: #e9eef5; color: #555; }

/* Table / test log */
.atcsr-table-wrap { overflow-x: auto; }
.atcsr-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.atcsr-table th { background: #eef2f7; text-align: left; font-size: .8em; padding: 6px; }
.atcsr-table td { padding: 3px; border-bottom: 1px solid #eef1f5; }
.atcsr-table td input { padding: 8px !important; }
.atcsr-table td:last-child { width: 36px; }

.atcsr-gps { padding: 0 20px 10px; color: var(--atcsr-muted); font-size: .85em; }

/* Actions */
.atcsr-actions { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding: 14px 20px; background: rgba(255,255,255,.96); border-top: 1px solid var(--atcsr-border); border-radius: 0 0 var(--atcsr-radius) var(--atcsr-radius); z-index: 10; }
.atcsr-btn { padding: 12px 20px; font-size: 16px; border-radius: 6px; border: 1px solid var(--atcsr-primary); cursor: pointer; font-weight: 600; }
.atcsr-btn-primary { background: var(--atcsr-primary); color: #fff; }
.atcsr-btn-secondary { background: #fff; color: var(--atcsr-primary); }
.atcsr-btn:disabled { opacity: .6; cursor: wait; }
.atcsr-busy { cursor: progress; }
@media (max-width: 782px) { .atcsr-btn { flex: 1 1 100%; } }

/* Notices */
.atcsr-notice { margin: 12px 20px 0; padding: 10px 14px; border-radius: 6px; border-left: 4px solid; }
.atcsr-notice-info { background: #eef4fb; border-color: var(--atcsr-primary); }
.atcsr-notice-success { background: #e3f6e8; border-color: #1c7c3a; }
.atcsr-notice-warning { background: #fff5e0; border-color: var(--atcsr-accent); }
.atcsr-notice-error { background: #fdeaea; border-color: #c62828; }

/* [atc_sr_my_reports] */
.atcsr-my-reports { width: 100%; border-collapse: collapse; }
.atcsr-my-reports th, .atcsr-my-reports td { padding: 8px; border-bottom: 1px solid #e3e7ee; text-align: left; }
.atcsr-status { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .8em; background: #eee; }
.atcsr-status-completed { background: #e3f6e8; color: #1c7c3a; }
.atcsr-status-draft { background: #fff5e0; color: #8a5a00; }
.atcsr-status-void { background: #fdeaea; color: #b3261e; }
.atcsr-status-pending { background: #e8f0fe; color: #1a4fa0; }

/* Guest honeypot – kept off-screen rather than display:none (some bots skip hidden inputs). */
.atcsr-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

