/* Matches www.mmtcare.com.au: navy, orange pill buttons, teal accent, Plus Jakarta Sans. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("brand/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --navy: #1b2b4b; --navy-deep: #111d33; --navy-mid: #2a3f63;
  --orange: #f4a11d; --orange-dk: #d9890f; --teal: #00b4d8; --teal-ink: #00738a;
  --off-white: #f8f9fb; --light-gray: #f2f4f7; --rule: #e8ecf1; --body-text: #4a5568; --mid-gray: #5c6b7d;
  --ok: #1e6b3a; --ok-bg: #e7f4ec; --bad: #a3261b; --bad-bg: #fbeae8;
  --radius-sm: 6px; --radius-md: 12px; --shadow-sm: 0 2px 10px rgba(27, 43, 75, .07);
}
* { box-sizing: border-box; }
#bg3d { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.watermark { position: fixed; right: 2vw; bottom: 3vh; width: 56vmin; opacity: .16; z-index: -1; pointer-events: none; user-select: none; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: 16px/1.6 "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
       color: var(--body-text);
       background: var(--off-white); }
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(70px); opacity: .55;
               animation: drift 26s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { left: -20vmax; top: -25vmax; background: rgba(0, 180, 216, .55); }
.aurora span:nth-child(2) { right: -22vmax; bottom: -28vmax; background: rgba(244, 161, 29, .5); animation-delay: -9s; animation-duration: 31s; }
.aurora span:nth-child(3) { right: -10vmax; top: -30vmax; width: 45vmax; height: 45vmax; background: rgba(27, 43, 75, .22); animation-delay: -17s; animation-duration: 37s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(8vmax, 6vmax) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .aurora span { animation: none; } }
a { color: var(--teal-ink); font-weight: 600; }
main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 24px 20px 60px; }
h1, h2 { color: var(--navy); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: 29px; margin: 8px 0 16px; }
h2 { font-size: 20px; margin: 26px 0 10px; }

.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
       padding: 10px 24px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
       border-bottom: 1px solid var(--rule); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { display: block; height: 40px; width: auto; }
.brand span { color: var(--navy); font-weight: 800; font-size: 16px; padding-left: 12px; border-left: 2px solid var(--orange); }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.top nav a { color: var(--navy); font-weight: 600; font-size: 15px; text-decoration: none; padding: 8px 12px; border-radius: var(--radius-sm); }
.top nav a:hover { background: var(--light-gray); }
.top nav form { margin: 0 0 0 8px; }
.clocks { flex-basis: 100%; display: flex; justify-content: flex-end; gap: 6px 18px; flex-wrap: wrap; font-size: 13px; color: var(--mid-gray); margin-top: -4px; }
.clock b { color: var(--navy); font-weight: 700; margin-right: 4px; }
.clock time { font-variant-numeric: tabular-nums; }
.clock.home b { color: var(--orange-dk, #c97a06); }
.whoami { max-width: 1080px; margin: 0 auto; padding: 12px 20px 0; color: var(--mid-gray); font-size: 14px; }

.card { background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .9);
        border-radius: var(--radius-md); padding: 22px 26px; margin: 16px 0; box-shadow: 0 10px 40px rgba(27, 43, 75, .10); }
.card.narrow { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.card.narrow h1 { position: relative; }
.card.narrow h1::after { content: ''; display: block; width: 44px; height: 4px; margin-top: 10px; border-radius: 2px;
                         background: linear-gradient(90deg, var(--teal), var(--orange)); }
.tagline { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--navy); font-weight: 700; font-size: 15px; }
.tagline span { color: var(--teal-ink); }
.card.narrow { max-width: 460px; margin: 48px auto; }
.card.notice { border-color: #f6cf8d; background: #fff8ec; }
.card > h2:first-child { margin-top: 0; }
.email-sender { overflow-wrap: anywhere; }

label { display: block; margin: 12px 0; font-weight: 600; color: var(--navy); }
label.check { display: inline-flex; align-items: center; gap: 7px; margin: 6px 18px 6px 0; font-weight: 500; color: var(--body-text); }
input[type=email], input[type=password], input[type=file], input:not([type]) {
  display: block; width: 100%; margin-top: 5px; padding: 10px 12px; font: inherit; color: var(--navy);
  border: 1px solid #c9d1db; border-radius: 8px; background: #fff; }
select.wide { display: block; width: 100%; margin: 5px 0 4px; padding: 10px 12px; }
select { font: inherit; color: var(--navy); padding: 8px 10px; border: 1px solid #c9d1db; border-radius: 8px; background: #fff; }
.levels { width: auto; }
.levels td, .levels th { padding: 5px 14px 5px 0; border: 0; }
.levels th, .levels td:has(input) { text-align: center; }
.levels th.role { text-align: left; }
.levels input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--teal-ink); cursor: pointer; }
.levels label { margin: 0; }
input[type=checkbox], input[type=radio] { accent-color: var(--navy); width: 16px; height: 16px; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
fieldset { border: 1px solid var(--rule); border-radius: var(--radius-md); margin: 16px 0; padding: 10px 16px 12px; }
legend { font-weight: 800; color: var(--navy); padding: 0 6px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 16px; }
.or { margin: 0; color: var(--mid-gray); font-weight: 600; }

button, .button { display: inline-block; margin-top: 12px; padding: 11px 26px; font: inherit; font-weight: 800; font-size: 15px;
  color: var(--navy); background: var(--orange); border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: var(--orange-dk); }
.button.secondary { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.button.secondary:hover { background: var(--light-gray); }
button.pill { margin: 0; padding: 8px 18px; }
button.danger { background: var(--bad); color: #fff; }
button.danger:hover { background: #82160d; }
button.small { margin: 0; padding: 6px 14px; font-size: 14px; }

.error { color: var(--bad); background: var(--bad-bg); padding: 10px 14px; border-radius: 8px; }
.ok { color: var(--ok); background: var(--ok-bg); padding: 10px 14px; border-radius: 8px; }
.hint { color: var(--mid-gray); font-size: 14px; font-weight: 400; }
.empty { color: var(--mid-gray); padding: 30px 0; }
.qr { display: block; margin: 8px 0; background: #fff; padding: 8px; border: 1px solid var(--rule); border-radius: 8px; }
code { background: var(--light-gray); color: var(--navy); padding: 2px 6px; border-radius: 4px; font-size: 15px; }
code.wrap { display: block; padding: 10px; word-break: break-all; user-select: all; }

.scroll { overflow-x: auto; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
          border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--radius-md); box-shadow: 0 10px 40px rgba(27, 43, 75, .08); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--mid-gray); font-weight: 700; background: var(--light-gray); }
tr:last-child td { border-bottom: 0; }
td form { margin: 0; }
details summary { cursor: pointer; color: var(--navy); font-weight: 700; }
.folder-files { margin: 8px 0 0; padding-left: 22px; }
.folder-files li { margin: 8px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.folder-files li > span:first-child { font-weight: 600; }
.file-actions { display: inline-flex; align-items: center; gap: 10px; }
.file-actions form { margin: 0; }
.vis { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-left: 4px; white-space: nowrap; }
.vis-live { color: var(--ok); background: var(--ok-bg); }
.vis-scheduled { color: #7a4d00; background: #fff1d6; }
.vis-unpublished { color: var(--bad); background: var(--bad-bg); }
.actions-col form { display: inline-block; margin: 4px 0 0; }
.row-admin { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; font-size: 14px; }
.folder-head .row-admin { margin-left: 12px; }
form.inline-btn { display: inline-block; margin: 0; }
iframe.org-chart { display: block; width: 100%; height: calc(100vh - 150px); min-height: 640px; border: 1px solid var(--rule); border-radius: 12px; background: #fff; }
details.rename { display: inline-block; }
details.rename summary { display: inline; font-size: 14px; font-weight: 600; color: var(--teal-ink); text-decoration: underline; }
details.rename[open] form { display: inline-flex; gap: 6px; align-items: center; margin-left: 6px; }
details.rename input[name=name] { width: 220px; margin: 0; padding: 5px 8px; font-size: 14px; }

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.member { background: rgba(255, 255, 255, .9); border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--radius-md); overflow: hidden;
          box-shadow: 0 8px 30px rgba(27, 43, 75, .08); transition: transform .25s ease, box-shadow .25s ease; }
.member:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 180, 216, .22), 0 0 0 2px var(--teal); }
.member img { filter: saturate(.9); transition: filter .25s ease; }
.member:hover img { filter: saturate(1.1); }
.member img, .member .no-photo { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; background: var(--light-gray); }
.member-text { padding: 12px 14px 14px; }
.member strong { display: block; color: var(--navy); font-size: 17px; }
.member .role { display: block; color: var(--teal-ink); font-size: 14px; font-weight: 600; margin: 2px 0 6px; }
.member p { margin: 0; font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }

.tabs { display: inline-flex; gap: 4px; margin: 4px 0 8px; padding: 4px; background: #fff; border: 1px solid var(--rule); border-radius: 999px; box-shadow: var(--shadow-sm); }
.tabs a { padding: 7px 16px; border-radius: 999px; text-decoration: none; color: var(--navy); font-size: 15px; }
.tabs a.on { background: var(--navy); color: #fff; }
.legal { width: 100%; max-width: 1080px; margin: 0 auto; padding: 18px 20px 36px; color: var(--mid-gray); font-size: 13px; line-height: 1.5; border-top: 1px solid var(--rule); }
.legal strong { color: var(--navy); }
details.activity summary { font-size: 14px; font-weight: 600; }
details.quick-access { flex-basis: 100%; margin: 4px 0; }
details.quick-access summary { font-size: 14px; font-weight: 600; color: var(--teal-ink); cursor: pointer; }
details.quick-access .levels { margin: 6px 0; font-size: 14px; }
.quick-states { margin: 4px 0 8px; font-size: 14px; }
.quick-states strong { color: var(--navy); margin-right: 12px; }
table.mini { margin-top: 6px; font-size: 13px; }
table.mini td { padding: 4px 8px 4px 0; border: 0; white-space: nowrap; }
.actions-col { white-space: nowrap; }
.actions-col a { display: inline-block; margin-right: 10px; }
.actions-col form { display: inline; }

textarea { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; font: inherit; color: var(--navy); border: 1px solid #c9d1db; border-radius: 8px; background: #fff; resize: vertical; }
button.secondary { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
button.secondary:hover { background: var(--light-gray); }
.notes { list-style: none; margin: 18px 0 0; padding: 0; }
.notes li { padding: 12px 14px; margin: 8px 0; border: 1px solid var(--rule); border-left: 4px solid var(--teal); border-radius: 8px; background: #fff; }
.notes li.change { border-left-color: var(--orange); }
.notes li.feedback { border-left-color: var(--navy); }
.notes li.resolved { border-left-color: var(--ok); opacity: .75; }
.notes li p { margin: 6px 0 0; white-space: pre-wrap; }
.note-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.note-head form { margin-left: auto; }
.notes-link { display: inline-block; margin-left: 10px; font-size: 14px; }
.request-flag { display: inline-block; margin: 4px 0; padding: 2px 10px; font-size: 13px; background: #fff3dc; color: #7a4d00; border-radius: 999px; text-decoration: none; }

body.wide main, body.wide .legal { max-width: 1500px; }
table.contacts th, table.contacts td { white-space: nowrap; padding: 9px 14px; font-size: 15px; }
table.contacts td:nth-child(2), table.contacts td:nth-child(3) { white-space: normal; }
table.contacts td:first-child { font-weight: 600; color: var(--navy); }

.organise { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; padding: 10px 14px;
            background: rgba(255, 255, 255, .86); border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
/* Block flow contains long native select values in WebKit without clipping controls. */
.organise .check { display: block; margin: 0; min-width: 0; max-width: 100%; }
.organise select { padding: 6px 10px; max-width: 100%; }
.organise button[disabled] { opacity: .5; cursor: default; }
table.reports tr.folder-head td { background: var(--light-gray); padding: 0; }
.folder-toggle { display: block; width: 100%; margin: 0; padding: 10px 14px; text-align: left; font: inherit; font-weight: 700; color: var(--navy);
                 background: none; border: 0; border-radius: 0; cursor: pointer; }
.folder-toggle:hover { background: #e9edf3; }
.folder-toggle::before { content: '▸'; display: inline-block; width: 16px; margin-right: 4px; color: var(--teal-ink); transition: transform .15s ease; }
.folder-toggle[aria-expanded='true']::before { transform: rotate(90deg); }
table.reports tbody.collapsed tr[data-report] { display: none; }
table.reports tbody[data-folder]:not([data-folder='']) tr[data-report] td:nth-child(2), table.reports tbody[data-folder]:not([data-folder='']) tr[data-report] td:first-child + td { padding-left: 32px; }
table.reports tbody.drop tr td { background: #e6f7fb; }
table.reports tbody[hidden] { display: none; }
table.reports tbody.depth-1 .folder-head td, tr.depth-1 > td:first-child { padding-left: 28px; }
table.reports tbody.depth-2 .folder-head td, tr.depth-2 > td:first-child { padding-left: 56px; }
table.reports tbody.depth-3 .folder-head td, tr.depth-3 > td:first-child { padding-left: 84px; }
table.reports tbody.depth-4 .folder-head td, tr.depth-4 > td:first-child { padding-left: 112px; }
details.rename select { margin: 0; padding: 5px 8px; font-size: 14px; max-width: 260px; }
table.reports tr[data-report][draggable='true'] { cursor: grab; }
.tick-cell { width: 28px; }
form.inline { display: inline; margin-left: 8px; }
.setup-url.small { font-size: 12px; padding: 6px 8px; margin: 6px 0 2px; min-width: 300px; }
.setup-url { display: block; padding: 10px; margin: 6px 0 10px; background: var(--light-gray); border-radius: 6px; word-break: break-all; user-select: all; font-family: ui-monospace, Consolas, monospace; font-size: 14px; font-weight: 500; }
form.inline button { margin: 0; }

.report-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 20px; }
.report-head h1 { margin-bottom: 4px; }
.actions { display: flex; gap: 10px; margin-bottom: 14px; }
.actions .button, .actions button { margin: 0; }
.pages { overflow-x: auto; }
.pages img { display: block; width: 100%; max-width: 900px; height: auto; margin: 0 auto 16px;
             background: #fff; border: 1px solid var(--rule); border-radius: 4px; box-shadow: var(--shadow-sm); }
.pages img.zoomed { width: auto; max-width: none; margin-left: 0; margin-right: 0; }
.zoom-controls { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.zoom-controls button { margin: 0; padding: 6px 14px; }
table.sheet td { white-space: nowrap; font-variant-numeric: tabular-nums; }
table.sheet tr:first-child td { font-weight: 700; color: var(--navy); background: var(--light-gray); }
.print-blocked { display: none; }

@media print {
  .top, .whoami, .actions, .no-print-hide, .tabs, #bg3d, .watermark, .clocks { display: none !important; }
  body { background: #fff; }
  .aurora { display: none; }
  .card, .scroll { background: #fff; backdrop-filter: none; }
  main { max-width: none; padding: 0; }
  .pages img { border: 0; box-shadow: none; margin: 0 auto; page-break-after: always; break-after: page; }
  .scroll { border: 0; box-shadow: none; overflow: visible; }
  /* Rule 4 = No: the page prints only this notice. */
  body.no-print main > :not(.print-blocked) { display: none !important; }
  body.no-print .print-blocked { display: block; font-size: 19px; color: #000; padding: 40px; }
}
.admin-copy-status:not(:empty) { position:fixed; right:20px; bottom:20px; z-index:1000; max-width:min(430px,90vw); padding:14px 18px; background:#e6f5f3; color:#174f54; border:1px solid #88bab9; border-radius:10px; box-shadow:0 4px 18px #173b5020; }
#report-text { width:100%; font:inherit; line-height:1.6; user-select:text; }
@media print { .admin-copy-status { display:none; } }
