:root {
  --teal: #0f8b8d; --teal-d: #0a6467; --teal-l: #17aaa7; --teal-50: #e8f6f5; --teal-100: #cdeceb;
  --red: #e5574f; --orange: #f28c28; --yellow: #f2c418; --lime: #a8d35a; --green: #5fb760; --mint: #71c9b4; --pink: #e2708b;
  --text: #1d2f33; --muted: #5e7378; --line: #e3ecec; --bg: #f5f9f9; --card: #fff;
  --radius: 22px; --shadow: 0 6px 24px rgba(15, 80, 85, .07);
  --head: 'Archivo Black', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Nunito Sans', system-ui, sans-serif; color: var(--text); background: var(--bg); font-size: 15px; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--teal-d); }
[hidden] { display: none !important; }

.boot { position: fixed; inset: 0; display: grid; place-content: center; text-align: center; background: linear-gradient(140deg, #0a6467, #12a3a1); color: #fff; }
.boot img { width: 96px; height: 96px; border-radius: 50%; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.94); opacity: .8; } }

/* Layout */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 300px; flex: 0 0 300px; background: linear-gradient(180deg, #0f8b8d 0%, #0b7477 100%); color: #fff;
  padding: 30px 22px 22px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 30; }
.side-brand { text-align: center; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.2); margin-bottom: 22px; }
.side-brand img { width: 128px; height: 128px; border-radius: 50%; box-shadow: 0 0 0 5px rgba(255,255,255,.18); }
.side-brand h2 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 34px; margin: 10px 0 2px; }
.side-brand p { margin: 0; font-size: 11.5px; letter-spacing: .12em; opacity: .9; }
nav { display: flex; flex-direction: column; gap: 6px; }
nav a { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 16px; color: #fff; text-decoration: none; font-weight: 800; font-size: 16.5px; transition: background .15s; }
nav a:hover { background: rgba(255,255,255,.1); }
nav a.active { background: #fff; color: var(--teal-d); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
nav .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 16px; flex: 0 0 36px; color: #fff; }
.side-user { margin-top: auto; padding: 14px; border-radius: 18px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); font-size: 13.5px; display: flex; gap: 10px; align-items: center; margin-top: 26px; }
.side-user .av { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-weight: 800; overflow: hidden; flex: 0 0 38px; }
.side-user .av img { width: 100%; height: 100%; object-fit: cover; }
.side-user b { display: block; font-size: 14.5px; }
.side-user span { opacity: .85; word-break: break-all; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 18px 40px; background: #fff; position: sticky; top: 0; z-index: 20; }
.top-logo { width: 52px; height: 52px; border-radius: 50%; }
.topbar h1 { font-family: var(--head); font-size: 28px; margin: 0; letter-spacing: -.01em; }
.top-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.pill { background: var(--teal-50); color: var(--teal-d); border: 0; padding: 9px 16px; border-radius: 12px; font-weight: 800; font-size: 14px; letter-spacing: .02em; cursor: default; }
button.pill { cursor: pointer; }
.pill.ghost { background: transparent; border: 1px solid var(--line); }
.pill.ghost:hover { background: var(--teal-50); }
.menu-btn { display: none; background: var(--teal-50); border: 0; border-radius: 12px; width: 42px; height: 42px; font-size: 20px; cursor: pointer; color: var(--teal-d); }
.rainbow { height: 4px; background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--lime), var(--mint), var(--teal-l)); }
.content { padding: 34px 40px 60px; max-width: 1400px; width: 100%; }
.scrim { display: none; }

/* Building blocks */
.hero { position: relative; overflow: hidden; border-radius: 30px; padding: 46px 48px; color: #fff; background: linear-gradient(110deg, #0b7477 0%, #12a3a1 100%); display: flex; align-items: center; gap: 30px; }
.hero::after { content: ''; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.07); }
.hero h2 { font-family: var(--head); font-size: 36px; line-height: 1.2; margin: 0 0 10px; }
.hero p { margin: 0; font-size: 18px; opacity: .95; }
.hero img { width: 170px; height: 170px; border-radius: 50%; box-shadow: 0 0 0 8px rgba(255,255,255,.25); margin-left: auto; position: relative; z-index: 1; flex: 0 0 auto; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 28px 0; }
.kpi { background: var(--card); border-radius: var(--radius); padding: 24px 26px; border: 1px solid var(--line); border-top: 5px solid var(--c, var(--teal)); box-shadow: var(--shadow); }
.kpi h4 { margin: 0 0 12px; font-size: 15.5px; color: #3d5357; }
.kpi .v { font-family: var(--head); font-size: 34px; color: var(--c, var(--teal)); line-height: 1.1; }
.kpi small { display: block; color: var(--muted); margin-top: 8px; font-size: 14px; }

.grid2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.grid2.even { grid-template-columns: 1fr 1fr; }
.card { background: var(--card); border-radius: var(--radius); padding: 26px 28px; border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.card + .card { margin-top: 0; }
.card-h { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card-h h3 { font-family: var(--head); font-size: 22px; margin: 0; padding-left: 14px; border-left: 5px solid var(--bar, var(--orange)); line-height: 1.1; }
.card-h .right { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.section-h { display: flex; align-items: center; gap: 12px; margin: 6px 0 22px; flex-wrap: wrap; }
.section-h h2 { font-family: var(--head); font-size: 25px; margin: 0; padding-left: 14px; border-left: 5px solid var(--yellow); }
.section-h .right { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.empty { color: var(--muted); font-size: 16.5px; padding: 8px 0; }
.note { background: #fff8e1; border: 1px solid #f6dd8a; color: #6b5300; border-radius: 16px; padding: 14px 18px; font-size: 14.5px; line-height: 1.5; }
.note.teal { background: var(--teal-50); border-color: var(--teal-100); color: #0b4f52; }
.muted { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--teal); color: #fff; border: 0; border-radius: 14px; padding: 12px 20px; font-weight: 800; font-size: 15.5px; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s; white-space: nowrap; }
.btn:hover { background: var(--teal-d); }
.btn:active { transform: translateY(1px); }
.btn.sm { padding: 8px 14px; font-size: 14px; border-radius: 11px; }
.btn.soft { background: var(--teal-50); color: var(--teal-d); }
.btn.soft:hover { background: var(--teal-100); }
.btn.danger { background: #fdecea; color: #b3261e; }
.btn.danger:hover { background: #f9d6d2; }
.btn.yellow { background: var(--yellow); color: #3b2f00; }
.btn:disabled { opacity: .55; cursor: wait; }

input.in, select.in, textarea.in { width: 100%; border: 1px solid #cfdcdc; border-radius: 13px; padding: 11px 14px; background: #fff; font-size: 15.5px; }
textarea.in { min-height: 96px; resize: vertical; line-height: 1.5; }
.in:focus { outline: 3px solid rgba(23,170,167,.25); border-color: var(--teal-l); }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .in { width: auto; min-width: 180px; }
.toolbar .grow { flex: 1; min-width: 220px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 -6px; }
table.t { width: 100%; border-collapse: collapse; min-width: 640px; }
.t th { text-align: left; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 800; }
.t td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr.click { cursor: pointer; }
.t tr.click:hover td { background: #f6fbfb; }
.t .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.who { display: flex; gap: 12px; align-items: center; }
.who b { display: block; }
.who small { color: var(--muted); }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; flex: 0 0 40px; font-size: 15px; }

.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: #eef2f2; color: #445; white-space: nowrap; }
.b-green { background: #e3f5e4; color: #23692a; } .b-blue { background: #e1f1fb; color: #145c86; } .b-yellow { background: #fff3cc; color: #7a5a00; }
.b-red { background: #fde4e1; color: #a52a20; } .b-gray { background: #eef1f2; color: #556; } .b-teal { background: var(--teal-50); color: var(--teal-d); } .b-orange { background: #ffe9d4; color: #8a4a06; }

/* Lists */
.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: #f7fbfb; border: 1px solid var(--line); text-decoration: none; color: inherit; }
a.item:hover { border-color: var(--teal-100); background: #f0f8f8; }
.item .time { font-family: var(--head); font-size: 17px; color: var(--teal-d); min-width: 58px; }
.item .grow { flex: 1; min-width: 0; }
.item .grow b { display: block; }
.item .grow small { color: var(--muted); }
.stripe { width: 5px; align-self: stretch; border-radius: 4px; background: var(--c, var(--teal)); }

/* Progress */
.prog { height: 10px; border-radius: 99px; background: #e8efef; overflow: hidden; }
.prog > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--lime), var(--teal-l)); }

/* Patient header */
.phead { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.phead .av { width: 76px; height: 76px; flex-basis: 76px; font-size: 28px; }
.phead h2 { font-family: var(--head); font-size: 28px; margin: 0 0 6px; }
.phead .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--muted); }
.phead .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
dl.kv { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; margin: 0; }
dl.kv dt { color: var(--muted); font-weight: 700; }
dl.kv dd { margin: 0; word-break: break-word; }
.stack { display: flex; flex-direction: column; gap: 24px; }

/* Timeline */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: linear-gradient(var(--teal-l), var(--lime)); }
.tl { position: relative; padding: 0 0 22px; }
.tl::before { content: ''; position: absolute; left: -24px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 4px solid var(--c, var(--teal)); }
.tl .when { font-size: 13px; color: var(--muted); font-weight: 700; }
.tl h4 { margin: 3px 0 6px; font-size: 16.5px; }
.tl p { margin: 0; white-space: pre-wrap; line-height: 1.55; }
.tl .tools { margin-top: 8px; display: flex; gap: 8px; }

.goal { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: #fbfdfd; cursor: pointer; }
.goal:hover { border-color: var(--teal-100); }
.goal .top { display: flex; gap: 8px; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.goal b { display: block; }
.goal .pct { font-family: var(--head); color: var(--teal-d); }

/* Agenda */
.cal-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 26px 28px; }
.cal-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.cal-top h3 { margin: 0 0 0 8px; font-size: 21px; font-weight: 800; text-transform: capitalize; }
.nav-btn { width: 32px; height: 32px; border-radius: 10px; border: 0; background: var(--teal-50); color: var(--teal-d); cursor: pointer; font-weight: 800; }
.today-btn { border: 0; background: var(--teal-50); color: var(--teal-d); font-weight: 800; padding: 7px 14px; border-radius: 10px; cursor: pointer; }
.seg { margin-left: auto; display: flex; gap: 8px; }
.seg button { border: 1px solid var(--line); background: #fff; padding: 9px 18px; border-radius: 13px; font-weight: 800; font-size: 16px; color: var(--teal-d); cursor: pointer; }
.seg button.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.cal-filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cal-filters .in { width: auto; min-width: 230px; font-size: 16.5px; padding: 12px 16px; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.month .dow { text-align: center; font-weight: 800; color: #4a5f63; font-size: 14.5px; padding: 4px 0; }
.day { min-height: 118px; border: 1px solid var(--line); border-radius: 13px; padding: 10px; background: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-width: 0; transition: border-color .15s; }
.day:hover { border-color: var(--teal-100); }
.day.out { background: #fafcfc; }
.day.out .dn { color: #b8c4c5; }
.day.today { border: 2px solid var(--orange); background: #fffaf4; }
.dn { font-weight: 800; font-size: 17px; margin-bottom: 2px; }
.ev { display: block; font-size: 12.5px; padding: 3px 7px; border-radius: 7px; background: color-mix(in srgb, var(--c, var(--teal)) 15%, #fff); border-left: 3px solid var(--c, var(--teal)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; color: #234; cursor: pointer; }
.ev.cancelado { text-decoration: line-through; opacity: .55; }
.ev.falta { opacity: .7; border-left-style: dashed; }
.more { font-size: 12px; color: var(--muted); font-weight: 700; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.wcol { border: 1px solid var(--line); border-radius: 14px; padding: 10px; min-height: 340px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wcol.today { border: 2px solid var(--orange); background: #fffaf4; }
.wcol h5 { margin: 0 0 6px; font-size: 14px; text-transform: capitalize; cursor: pointer; }
.wcol .ev { white-space: normal; }
.dayview .slot { display: grid; grid-template-columns: 70px 1fr; gap: 12px; border-top: 1px solid var(--line); min-height: 58px; padding: 8px 0; }
.dayview .slot .h { color: var(--muted); font-weight: 800; }
.dayview .slot .evs { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; cursor: pointer; }
.dayview .ev { font-size: 14px; padding: 8px 12px; white-space: normal; }
.year { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.mini { border: 1px solid var(--line); border-radius: 16px; padding: 14px; cursor: pointer; }
.mini:hover { border-color: var(--teal-100); }
.mini h5 { margin: 0 0 8px; text-transform: capitalize; font-size: 15px; }
.mini .g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mini .g span { aspect-ratio: 1; border-radius: 4px; font-size: 10px; display: grid; place-items: center; color: #789; }
.mini .g span.h1 { background: #d6f0ee; color: #0a5d60; } .mini .g span.h2 { background: #9ddbd6; color: #063f42; } .mini .g span.h3 { background: var(--teal); color: #fff; }
.mini .g span.t { outline: 2px solid var(--orange); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }

/* Pros */
.pros { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.pro { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border-top: 5px solid var(--c, var(--teal)); }
.pro h4 { margin: 12px 0 2px; font-size: 18px; }
.pro .sp { color: var(--teal-d); font-weight: 800; }
.pro p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.pro .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(8, 40, 42, .45); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 100; overflow-y: auto; animation: fade .15s; }
.modal { background: #fff; border-radius: 26px; width: 100%; max-width: 720px; padding: 28px 30px; box-shadow: 0 30px 80px rgba(0,0,0,.25); animation: rise .18s; }
.modal.sm { max-width: 480px; }
.modal h3 { font-family: var(--head); font-size: 23px; margin: 0 0 20px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fgrid .full { grid-column: 1 / -1; }
.fgrid label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; color: #3d5357; }
.fgrid label.check { flex-direction: row; align-items: center; gap: 10px; }
.fgrid label.check input { width: 20px; height: 20px; accent-color: var(--teal); }
.fgrid .sec { grid-column: 1 / -1; font-family: var(--head); font-size: 15px; color: var(--teal-d); margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line); }
.modal .foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }
.modal .foot .left { margin-right: auto; }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type=range] { flex: 1; accent-color: var(--teal); }
.range-row output { font-family: var(--head); color: var(--teal-d); min-width: 48px; text-align: right; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(30px); background: #10393b; color: #fff; padding: 13px 20px; border-radius: 14px; font-weight: 700; opacity: 0; pointer-events: none; transition: all .2s; z-index: 200; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.err { background: #a52a20; }

.denied { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; background: linear-gradient(130deg, #075a5f, #12a3a1); }
.denied-card { background: #fff; border-radius: 28px; padding: 36px; max-width: 480px; text-align: center; }
.denied-card img { width: 90px; border-radius: 50%; }
.denied-card h1 { font-family: var(--head); font-size: 26px; }
.denied-card p { color: var(--muted); line-height: 1.55; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs button { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 14px; font-weight: 800; color: var(--teal-d); cursor: pointer; }
.tabs button.on { background: var(--teal); color: #fff; border-color: var(--teal); }

/* Ficha de sessão */
.scale-f { display: flex; flex-direction: column; gap: 6px; }
.scale-f .lbl { font-weight: 700; font-size: 14px; color: #3d5357; }
.scale { display: flex; gap: 6px; align-items: center; }
.scale label { flex: 1; }
.scale input { position: absolute; opacity: 0; pointer-events: none; }
.scale span { display: grid; place-items: center; height: 42px; border-radius: 12px; border: 1px solid #cfdcdc; font-weight: 800; cursor: pointer; color: var(--teal-d); background: #fff; transition: all .12s; }
.scale input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.scale input:focus-visible + span { outline: 3px solid rgba(23,170,167,.35); }
.scale .clr { border: 0; background: none; color: var(--muted); font-size: 20px; cursor: pointer; width: 28px; }
.acts { border: 1px dashed #cfdcdc; border-radius: 16px; padding: 14px; background: #fbfdfd; }
.acts h4 { margin: 0 0 10px; font-size: 14px; color: #3d5357; }
.acts-add { display: flex; gap: 8px; }
.acts-add .in { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.chip { border: 1px solid var(--teal-100); background: #fff; color: var(--teal-d); border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 700; cursor: pointer; }
.chip:hover { background: var(--teal-50); }
.chip.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.act-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); margin-top: 8px; }
.act-row b { flex: 1; font-size: 14.5px; }
.act-row select { width: auto; padding: 7px 10px; font-size: 14px; }
.act-row .x { border: 0; background: #fdecea; color: #b3261e; border-radius: 9px; width: 30px; height: 30px; cursor: pointer; font-weight: 800; }
.fc { padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: #fbfdfd; cursor: pointer; border-left: 5px solid var(--c, var(--teal)); }
.fc:hover { border-color: var(--teal-100); }
.fc .top { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.fc .top b { font-size: 16.5px; }
.fc .meta { color: var(--muted); font-size: 13.5px; }
.fc p { margin: 8px 0 0; line-height: 1.5; color: #3d5357; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ind { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.ind span { font-size: 12.5px; font-weight: 700; background: var(--teal-50); color: var(--teal-d); border-radius: 8px; padding: 3px 8px; }
.ac { font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.ac.concluiu { background: #e3f5e4; color: #23692a; } .ac.parcial { background: #fff3cc; color: #7a5a00; } .ac.nao_realizou { background: #fde4e1; color: #a52a20; }
.chart-box { position: relative; height: 280px; }
.chart-box.tall { height: 340px; }
.chart-sub { margin: -8px 0 14px; color: var(--muted); font-size: 14px; }

/* Responsive */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2, .grid2.even { grid-template-columns: 1fr; }
  .year { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wcol { min-height: 0; }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-105%); transition: transform .2s; box-shadow: 10px 0 40px rgba(0,0,0,.2); }
  .sidebar.open { transform: none; }
  .scrim.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 25; }
  .menu-btn { display: inline-grid; place-items: center; }
  .topbar { padding: 12px 16px; gap: 10px; }
  .top-logo { display: none; }
  .topbar h1 { font-size: 21px; }
  #role-pill { display: none; }
  .content { padding: 20px 16px 50px; }
  .hero { padding: 28px 24px; }
  .hero h2 { font-size: 25px; }
  .hero p { font-size: 15.5px; }
  .hero img { display: none; }
  .card, .cal-card { padding: 20px 18px; }
  .seg { margin-left: 0; width: 100%; }
  .seg button { flex: 1; padding: 8px 6px; font-size: 14px; }
  .day { min-height: 64px; padding: 6px; border-radius: 10px; }
  .day .ev { font-size: 0; padding: 0; height: 6px; border-left-width: 0; background: var(--c, var(--teal)); }
  .month { gap: 4px; }
  .dn { font-size: 14px; }
  .year { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fgrid { grid-template-columns: 1fr; }
  dl.kv { grid-template-columns: 1fr; gap: 2px; }
  dl.kv dd { margin-bottom: 8px; }
  .modal { padding: 22px 18px; }
  .cal-filters .in, .toolbar .in { min-width: 0; width: 100%; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi { padding: 16px; }
  .kpi .v { font-size: 25px; }
  .week { grid-template-columns: 1fr; }
  .year { grid-template-columns: 1fr; }
}