/* AM Seven Pillars theme – Britannia navy #00205b with Elite gold accent */
:root {
  --brand: #00205b;
  --brand-600: #0a2f73;
  --brand-100: #e6ebf4;
  --gold: #bd975e;
  --gold-600: #a9834b;
  --bs-primary: #00205b;
  --bs-primary-rgb: 0, 32, 91;
  --bs-link-color: #00205b;
  --bs-link-color-rgb: 0, 32, 91;
  --bs-link-hover-color: #0a3a8c;
  --bs-body-bg: #f4f6fa;
  --bs-body-color: #1d2433;
  --bs-border-radius: .5rem;
}
html { scroll-padding-top: 72px; scroll-padding-bottom: 96px; } /* keep scrolled-to items clear of the sticky menu and footer */
body { background: var(--bs-body-bg); -webkit-text-size-adjust: 100%; }
a { color: var(--brand); }

.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-600); --bs-btn-hover-border-color: var(--brand-600); --bs-btn-active-bg: #001540; --bs-btn-active-border-color: #001540; --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand); }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand); --bs-btn-active-border-color: var(--brand); }
.btn-gold { --bs-btn-color: var(--brand); --bs-btn-bg: var(--gold); --bs-btn-border-color: var(--gold); --bs-btn-hover-color: var(--brand); --bs-btn-hover-bg: var(--gold-600); --bs-btn-hover-border-color: var(--gold-600); --bs-btn-active-bg: var(--gold-600); --bs-btn-disabled-bg: #cdb792; --bs-btn-disabled-border-color: #cdb792; --bs-btn-disabled-color: var(--brand); --bs-btn-active-color: var(--brand); } /* navy text: white on gold was too faint (2.7:1) */
.text-bg-gold { background: var(--gold) !important; color: var(--brand) !important; }
/* Outline buttons and red text links: Bootstrap's grey/red/green are a little faint on the light page background (about 4.2:1), so use darker shades (about 6:1) */
.btn-outline-secondary { --bs-btn-color: #5c636a; --bs-btn-border-color: #5c636a; --bs-btn-hover-bg: #5c636a; --bs-btn-hover-border-color: #5c636a; --bs-btn-active-bg: #5c636a; --bs-btn-active-border-color: #5c636a; }
.btn-outline-danger { --bs-btn-color: #b02a37; --bs-btn-border-color: #b02a37; --bs-btn-hover-bg: #b02a37; --bs-btn-hover-border-color: #b02a37; --bs-btn-active-bg: #b02a37; --bs-btn-active-border-color: #b02a37; }
.btn-outline-success { --bs-btn-color: #146c43; --bs-btn-border-color: #146c43; --bs-btn-hover-bg: #146c43; --bs-btn-hover-border-color: #146c43; --bs-btn-active-bg: #146c43; --bs-btn-active-border-color: #146c43; }
.btn-link.text-danger { color: #b02a37 !important; }
.progress-bar { background-color: var(--brand); }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: #5b79b3; box-shadow: 0 0 0 .2rem rgba(0, 32, 91, .18); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }

/* Header */
.brand-bar { background: #fff; border-bottom: 3px solid var(--gold); padding: .6rem 0; }
.brand-logo img { height: 46px; max-width: 70vw; object-fit: contain; object-position: left; }
.app-title { color: var(--brand); font-weight: 600; letter-spacing: .02em; }
.main-nav { background: var(--brand); padding-top: .25rem; padding-bottom: .25rem; }
.main-nav .nav-link { color: rgba(255,255,255,.85); padding: .7rem .9rem !important; white-space: nowrap; }
.main-nav .nav-link.active, .main-nav .nav-link:hover { color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }
.dropdown-item.active, .dropdown-item:active { background: var(--brand); }

.section-heading { color: var(--brand); border-left: 4px solid var(--gold); padding-left: .6rem; margin: 1.25rem 0 .8rem; }
.card { border-color: #dfe4ee; }
.card-header { background: var(--brand-100); color: var(--brand); border-bottom-color: #d3dbea; }
.card-link { text-decoration: none; color: inherit; transition: transform .1s, box-shadow .1s; }
.card-link:hover { transform: translateY(-2px); box-shadow: 0 .4rem 1rem rgba(0,32,91,.12) !important; }
.table thead th { color: var(--brand); background: var(--brand-100); font-weight: 600; white-space: nowrap; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .35rem 1rem; max-height: 340px; overflow-y: auto; padding: .5rem .75rem; border: 1px solid #dee2e6; border-radius: .5rem; background: #fff; }
.score-pill { border: 2px solid; border-radius: .75rem; padding: .4rem 1.2rem; background: #fff; }

/* Login */
body.bare { background: linear-gradient(160deg, var(--brand) 0%, #001540 60%, #0a2f73 100%); min-height: 100vh; }
.login-wrap { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.login-card { width: 100%; max-width: 460px; background: #fff; border-radius: 1rem; border-top: 6px solid var(--gold); overflow: hidden; box-shadow: 0 1.5rem 3rem rgba(0,0,0,.35); }
.logincard__or { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0 1rem; color: var(--muted, #6b7280); font-size: .85rem; }
.logincard__or::before, .logincard__or::after { content: ""; flex: 1; border-top: 1px solid #d5d9e0; }
.login-logo { padding: 1.6rem 1.5rem 1.2rem; border-bottom: 3px solid var(--gold); text-align: center; }
.login-logo img { max-width: 100%; height: auto; }
.login-body { padding: 1.8rem 2rem 2.2rem; }
.login-body h1 { color: var(--brand); }
.btn--ms {display:flex;align-items: center; justify-content: center;gap: .6rem;border: 1px solid #8c8c8c;font-weight: 600;text-decoration: none;}

/* Audit question cards (iPad first) */
.q-card { background: #fff; border: 1px solid #dfe4ee; border-left: 5px solid #c9d1e0; border-radius: .6rem; padding: 1rem 1.1rem .8rem; margin-bottom: .75rem; transition: border-color .15s; }
.q-card.depth-1 { margin-left: 2rem; border-left-style: dashed; background: #fbfcfe; }
.q-card.depth-2 { margin-left: 4rem; border-left-style: dotted; background: #fbfcfe; }
.q-card.ans-yes { border-left-color: #1e7d45; }
.q-card.ans-no { border-left-color: #c0392b; }
.q-card.ans-na { border-left-color: #8a94a6; }
.q-card.has-problem { border-color: #e4a0a0; border-left-color: #c0392b; box-shadow: 0 0 0 .15rem rgba(192,57,43,.12); }
.q-head { display: flex; gap: .75rem; align-items: flex-start; }
.q-num { flex: 0 0 auto; min-width: 2.2rem; height: 2.2rem; padding: 0 .4rem; border-radius: 1.1rem; background: var(--brand); color: #fff; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }
.depth-1 .q-num, .depth-2 .q-num { background: var(--gold); }
.q-text { font-size: 1.08rem; line-height: 1.4; padding-top: .25rem; }
.q-flag { display: inline-block; font-size: .72rem; background: #fff4e0; color: #8a5a00; border: 1px solid #f1d49a; border-radius: 1rem; padding: 0 .5rem; margin-left: .35rem; vertical-align: middle; white-space: nowrap; }
.q-answers { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.ans-btn { flex: 1 1 0; min-width: 88px; min-height: 54px; border: 2px solid #cfd6e3; background: #fff; border-radius: .6rem; font-size: 1.1rem; font-weight: 600; color: #4a5568; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ans-btn:active { transform: scale(.98); }
.ans-yes.selected { background: #1e7d45; border-color: #1e7d45; color: #fff; }
.ans-no.selected { background: #c0392b; border-color: #c0392b; color: #fff; }
.ans-na.selected { background: #6b7280; border-color: #6b7280; color: #fff; }
/* Questions where Yes is the bad answer (e.g. "Any safety issues found?") */
.neg-yes .ans-yes.selected { background: #c0392b; border-color: #c0392b; }
.neg-yes .ans-no.selected { background: #1e7d45; border-color: #1e7d45; }
.q-card.neg-yes.ans-yes { border-left-color: #c0392b; }
.q-card.neg-yes.ans-no { border-left-color: #1e7d45; }
.q-flag-neg { background: #fdecea; color: #a61b1b; border-color: #f2b8b5; }
.q-flag-fail { background: #212529; color: #fff; border-color: #212529; }
.ans-btn:disabled { opacity: .85; }
.q-comment textarea, .text-input { font-size: 1rem; }
.q-tools { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.q-tools .btn-light { border: 1px solid #d6dce8; min-height: 40px; display: inline-flex; align-items: center; gap: .3rem; }
.thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.thumb { position: relative; width: 76px; height: 76px; border-radius: .4rem; overflow: hidden; border: 1px solid #d6dce8; background: #f1f3f7; display: flex; align-items: center; justify-content: center; }
.thumb img { width: 76px; height: 76px; object-fit: cover; }
.thumb-del { position: absolute; top: 2px; right: 2px; width: 26px; height: 26px; border-radius: 13px; border: 0; background: rgba(0,0,0,.6); color: #fff; line-height: 1; font-size: 18px; padding: 0; }
.area-footer { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 3px solid var(--gold); padding: .6rem 0 calc(.6rem + env(safe-area-inset-bottom)); box-shadow: 0 -.3rem 1rem rgba(0,0,0,.08); z-index: 1020; }

/* End of audit */
.pillar .card-header { font-size: 1.05rem; }
.pillar-internal { border-color: #e2b4b4; }
.pillar-internal .card-header { background: #fbeaea; color: #8b1d1d; }
.pillar .tox-tinymce { border: 0 !important; border-radius: 0 0 .5rem .5rem !important; }

/* Question admin */
.q-admin-list { list-style: none; padding-left: 0; margin: 0; }
.q-admin-list .q-admin-list { padding-left: 2.2rem; margin-top: .4rem; }
.q-admin-item { margin-bottom: .4rem; }
.q-admin-row { display: flex; gap: .6rem; align-items: flex-start; background: #fff; border: 1px solid #dfe4ee; border-radius: .5rem; padding: .6rem .7rem; }
.q-admin-item.inactive > .q-admin-row { opacity: .55; background: #f5f5f5; }
.q-admin-actions { display: flex; gap: .3rem; flex-wrap: nowrap; justify-content: flex-end; }
.q-admin-actions form { display: contents; }
.drag-handle, .q-num { user-select: none; -webkit-user-select: none; }
.drag-handle { cursor: grab; color: #8a94a6; font-size: 1.3rem; padding: 0 .1rem; touch-action: none; }
.sortable-ghost > .q-admin-row { background: var(--brand-100); }

/* Report */
.report-title { color: var(--brand); }
.report-section { background: var(--brand); color: #fff; font-size: 1.1rem; padding: .45rem .75rem; border-radius: .35rem; margin: 1.6rem 0 .8rem; }
.report-section.internal { background: #8b1d1d; }
.report h3 { font-size: 1.02rem; color: var(--brand); border-bottom: 2px solid var(--gold); padding-bottom: .2rem; margin-top: 1.2rem; }
.report .grid th { background: var(--brand-100); color: var(--brand); }
.report .rich { padding: 0 .25rem; }
.report .muted { color: #6b7280; }

@media (max-width: 575.98px) {
  .q-card.depth-1 { margin-left: .8rem; }
  .q-card.depth-2 { margin-left: 1.6rem; }
  .brand-logo img { height: 34px; }
}
@media print {
  .brand-bar, .main-nav, .report-toolbar, .alert { display: none !important; }
  body { background: #fff; }
  .report.card { border: 0; box-shadow: none !important; }
  .report-section { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Online indicator on the Users page */
.online-dot { display: inline-block; width: .65rem; height: .65rem; border-radius: 50%; background: #1e9e55; box-shadow: 0 0 0 3px rgba(30,158,85,.18); margin-right: .35rem; vertical-align: middle; }
.online-dot.off { background: #c3c9d4; box-shadow: none; }

/* Offline / upload status pill in the menu bar */
.sync-pill { border: 0; border-radius: 2rem; padding: .35rem .85rem; font-size: .85rem; font-weight: 600; margin: 0; white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; }
.sync-pill[hidden] { display: none; }
.sync-warning { background: #fff3cd; color: #7a5400; }
.sync-info { background: #dbe7ff; color: #00205b; }
.sync-danger { background: #f8d7da; color: #842029; }
.sync-secondary { background: #e2e6ee; color: #3b4556; }
.thumb.pending::after { content: "\f297"; font-family: bootstrap-icons; position: absolute; left: 3px; bottom: 3px; width: 22px; height: 22px; border-radius: 11px; background: #fff3cd; color: #7a5400; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.thumb.failed { outline: 2px solid #c0392b; }
.offline-copy { font-size: .9rem; }

/* Activity log */
.log-entry details > summary { cursor: pointer; list-style: revert; }
.log-changes { table-layout: fixed; background: transparent; }
.log-changes td, .log-changes th { word-break: break-word; }
.log-changes .log-old { background: #fdf0f0; }
.log-changes .log-new { background: #eef8f0; }
.log-failed { background: #fffaf0; }

/* Sortable table headings */
.sortable-th { cursor: pointer; user-select: none; white-space: nowrap; }
.sortable-th::after { content: '\2195'; opacity: .35; margin-left: .35rem; font-weight: normal; }
.sortable-th.sorted-asc::after { content: '\2191'; opacity: 1; }
.sortable-th.sorted-desc::after { content: '\2193'; opacity: 1; }
.sortable-th:hover, .sortable-th:focus-visible { text-decoration: underline; outline: none; }

/* Director review on the report */
.review-card .card-header { background: #faf7f1; border-bottom: 2px solid var(--gold); }
.review-card.review-pending { border-left: 4px solid #e0a800; }
.review-card.review-done { border-left: 4px solid #1e7d45; }
.review-thread { display: flex; flex-direction: column; gap: .6rem; }
.review-msg { background: #faf7f1; border-left: 3px solid var(--gold); border-radius: .4rem; padding: .5rem .75rem; max-width: 85%; }
.review-msg.review-mine { align-self: flex-end; background: #eef2f9; border-left-color: var(--brand); }
.review-msg.review-completed { border-left-color: #1e7d45; }
.review-msg.review-reopened { border-left-color: #e0a800; }
.review-body { white-space: normal; margin-top: .2rem; }
@media (max-width: 575.98px) { .review-msg { max-width: 100%; } }

/* Footer: after the content, or at the bottom of the screen when the page is short */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
.app-footer { flex-shrink: 0; margin-top: 1.5rem; padding: .9rem 0 calc(.9rem + env(safe-area-inset-bottom)); border-top: 3px solid var(--gold); background: #fff; color: #5b6475; font-size: .82rem; }
.app-footer .footer-version { color: inherit; text-decoration: none; }
.app-footer .footer-version:hover { color: var(--brand); text-decoration: underline; }
.app-footer-dark { margin-top: 0; background: transparent; border-top-color: rgba(189,151,94,.6); color: rgba(255,255,255,.75); }
/* Room page: keep the footer clear of the fixed progress bar (app.js sets the exact height) */
body:has(.area-footer) .app-footer { margin-bottom: calc(64px + env(safe-area-inset-bottom)); }

/* Section headings (kitchen audit) on the question page */
.q-group-label { margin: 1.6rem 0 .3rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.q-heading { display: flex; align-items: center; gap: .6rem; margin: .4rem 0 .6rem; padding: .55rem .8rem; background: var(--brand); color: #fff; border-radius: .5rem; scroll-margin-top: 80px; }
.q-heading .q-num { background: #fff; color: var(--brand); }
.q-heading-text { font-weight: 600; font-size: 1.1rem; }
.section-menu { max-height: 70vh; overflow-y: auto; }
.audit-type-pick .btn { white-space: normal; }

/* Action Plan (kitchen audit) */
.action-row { border: 1px solid #e3e7ef; border-left: 4px solid var(--gold); border-radius: .5rem; padding: .7rem .8rem; margin-bottom: .7rem; background: #fff; }
.action-no { font-size: .85rem; min-width: 3rem; }
.action-prio.prio-short { border-color: #c0392b; color: #c0392b; font-weight: 600; }
.action-prio.prio-medium { border-color: #b7791f; color: #8a5a12; font-weight: 600; }
.action-prio.prio-long { border-color: #1f6fb7; color: #1f6fb7; }
.action-prio.prio-very_long { color: #6b7280; }

/* ---------------------------------------------------------------- room / area type-ahead (combobox.js) */
.combo-wrap { position: relative; }
.input-group > .combo-wrap { flex: 1 1 auto; width: 1%; min-width: 0; }
.input-group > .combo-wrap > .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
/* Bootstrap's .input-group-lg only sizes direct children, so the wrapped room box lost the large size the kitchen box has */
.input-group-lg > .combo-wrap > .form-control { padding: .5rem 1rem; font-size: 1.25rem; border-top-left-radius: var(--bs-border-radius-lg); border-bottom-left-radius: var(--bs-border-radius-lg); }
.combo-list {
  position: absolute; z-index: 1060; left: 0; right: 0; top: calc(100% + 2px); margin: 0; padding: .25rem 0; list-style: none;
  max-height: 16.5rem; overflow-y: auto; background: #fff; border: 1px solid #ced4da; border-radius: .5rem;
  box-shadow: 0 .5rem 1.25rem rgba(0, 32, 91, .15); -webkit-overflow-scrolling: touch;
}
.combo-up .combo-list { top: auto; bottom: calc(100% + 2px); }
.combo-opt { display: flex; align-items: baseline; gap: .75rem; padding: .55rem .9rem; cursor: pointer; font-size: 1.05rem; }
.combo-opt.is-room .combo-val { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 3.5rem; }
.combo-opt .combo-meta { color: #6c757d; font-size: .85rem; margin-left: auto; text-align: right; }
.combo-opt.active, .combo-opt:hover { background: var(--brand); color: #fff; }
.combo-opt.active .combo-meta, .combo-opt:hover .combo-meta { color: rgba(255, 255, 255, .8); }
.combo-hint { min-height: 1.25rem; margin-top: .25rem; }
.combo-hint:empty { min-height: 0; margin: 0; }

/* ---------------------------------------------------------------- Post to Opera */
.btn-opera { color: #5b2a86; border-color: #5b2a86; background: #fff; }
.btn-opera:hover, .btn-opera:focus { color: #fff; background: #5b2a86; border-color: #5b2a86; }
.btn-opera.posted { color: #146c43; border-color: #146c43; }
.btn-opera.posted:hover { color: #fff; background: #146c43; }
.opera-badge { background: #5b2a86; color: #fff; }
.opera-opt { border-color: #d9c8ea !important; background: #f8f4fc; }
.opera-posted-note { color: #146c43; }

/* ---------------------------------------------------------------- room audits that include kitchens */
.add-kitchen-card > summary { list-style: none; cursor: pointer; }
.add-kitchen-card > summary::-webkit-details-marker { display: none; }
.add-kitchen-card[open] > summary .bi-chevron-down { transform: rotate(180deg); }
.text-gold { color: var(--gold) !important; }
.kitchen-part { border-top: 1px dashed #d7c4a3; margin-top: .25rem; padding-top: .75rem; }
.kitchen-part-title { color: #8a6a33 !important; letter-spacing: .04em; }

/* ---------------------------------------------------------------- outstanding maintenance in OPERA */
.opera-maint-open { background: #f6f0fb; border: 1px solid #d9c8ea; border-left: 4px solid #5b2a86; border-radius: .5rem; padding: .6rem .8rem; color: #3b1c58; }
.opera-maint-open .bi-tools { color: #5b2a86; }
.opera-maint-none { color: #146c43; }
.opera-maint-hub { background: #f6f0fb; border: 1px solid #d9c8ea; border-radius: .5rem; padding: .5rem .8rem; color: #3b1c58; }
.report tr.maint-audited > td { --bs-table-bg: #fff6d6; background-color: #fff6d6; }

/* ---------------------------------------------------------------- room status from OPERA */
.room-status { display: inline-block; font-size: .78rem; font-weight: 600; line-height: 1.2; padding: .15rem .45rem; border-radius: 1rem; white-space: nowrap; vertical-align: middle; border: 1px solid transparent; }
.room-status.st-inspected { background: #d1f0dd; color: #0f5132; border-color: #a3dcb8; }
.room-status.st-clean { background: #d6eefa; color: #055160; border-color: #a6d8ef; }
.room-status.st-pickup { background: #fff1c9; color: #7a5300; border-color: #f2d78a; }
.room-status.st-dirty { background: #fbdadc; color: #842029; border-color: #f1aeb5; }
.room-status.st-out { background: #495057; color: #fff; }
.room-status.st-unknown { background: #e9ecef; color: #495057; }
.room-status.st-occupied { box-shadow: inset 0 0 0 1px currentColor; }
.room-status-notes { font-size: .8rem; color: #6c757d; }
.combo-opt .combo-status { margin-left: .5rem; flex-shrink: 0; }
.combo-opt.active .room-status, .combo-opt:hover .room-status { box-shadow: 0 0 0 1px rgba(255,255,255,.7); }
.opera-status .room-status { font-size: .85rem; }

/* Spell checking menu (End audit boxes, see js/spellcheck.js) */
.spell-menu { position: absolute; z-index: 1085; min-width: 12rem; max-width: 20rem; background: #fff; border: 1px solid #c8cfdb; border-radius: .5rem; padding: .3rem 0; font-size: .95rem; }
.spell-item { display: block; width: 100%; text-align: left; background: none; border: 0; padding: .45rem .9rem; color: #1d2433; }
.spell-item:hover, .spell-item:focus { background: #eef1f6; }
.spell-sugg { font-weight: 600; color: #00205b; }
.spell-add, .spell-ignore { font-size: .85rem; color: #495057; }
.spell-none { padding: .45rem .9rem; color: #6c757d; font-style: italic; }
.spell-sep { border-top: 1px solid #e3e7ee; margin: .25rem 0; }

/* Director review comments are rich text */
.review-body p { margin: 0 0 .35rem; }
.review-body p:last-child, .review-body ul:last-child, .review-body ol:last-child { margin-bottom: 0; }
.review-card .tox-tinymce { border-radius: .375rem; }

/* Action Plan actions are rich text */
.action-rich p { margin: 0 0 .3rem; }
.action-rich p:last-child, .action-rich ul:last-child, .action-rich ol:last-child { margin-bottom: 0; }
.action-plan .tox-tinymce { border-radius: .375rem; }

/* Relief report boxes and room comments are rich text: a preview until tapped, then a TinyMCE editor */
.rich-text p { margin: 0 0 .35rem; }
.rich-text p:last-child, .rich-text ul:last-child, .rich-text ol:last-child { margin-bottom: 0; }
.relief-rte-preview { min-height: 110px; height: auto; cursor: text; overflow-wrap: anywhere; }
.relief-rte-preview.relief-rte-sm { min-height: 80px; }
.relief-rte-preview:empty::before { content: 'Tap to write'; color: #6c757d; }
#reliefForm .tox-tinymce { border-radius: .375rem; }
/* Pictures placed in the write-up boxes (App\Pictures), on the report and in the relief previews. rte.js matches. */
.am7p-pic { margin: .5rem 0; }
.am7p-pic img { display: block; max-width: 100%; height: auto; }
.am7p-pic-s img { width: 30%; }
.am7p-pic-m img { width: 55%; }
.am7p-pic-l img { width: 100%; }
.am7p-pic figcaption { font-size: .8rem; color: #555; margin-top: .15rem; }

/* Relief report: the signature pad (a guide line and "Sign here" drawn over the canvas, not part of the signature) */
.relief-sign .sign-wrap { position: relative; max-width: 600px; }
.relief-sign .sign-pad { display: block; width: 100%; aspect-ratio: 3 / 1; background: #fff; border: 1px solid #ced4da; border-radius: .375rem; touch-action: none; cursor: crosshair; -webkit-user-select: none; user-select: none; }
.relief-sign .sign-line { position: absolute; left: 6%; right: 6%; bottom: 24%; border-bottom: 1px solid #c8cfdb; pointer-events: none; }
.relief-sign .sign-hint { position: absolute; left: 6%; bottom: 26%; color: #9aa3b2; font-size: .9rem; pointer-events: none; }
