:root {
  --bg: #f3f6f8;
  --ink: #0f1724;
  --muted: #627083;
  --line: #d7dee8;
  --panel: #fff;
  --side: #071827;
  --side-2: #10283d;
  --accent: #0f766e;
  --accent-dark: #075e59;
  --gold: #c9972f;
  --soft: #eef6f4;
  --blue: #eaf1fb;
  --shadow: 0 12px 30px rgba(15, 23, 36, .08);
  --shadow-soft: 0 4px 16px rgba(15, 23, 36, .06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

button, input, select, textarea { font: inherit; }

.sidebar {
  background:
    linear-gradient(180deg, rgba(201, 151, 47, .12), transparent 190px),
    linear-gradient(180deg, var(--side), #06121c);
  color: #fff;
  padding: 24px 16px;
  box-shadow: inset -1px 0 0 rgba(255,255,255,.08);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 8px 4px 18px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.brand img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  display: block;
  object-fit: contain;
  background: #fff;
  padding: 5px;
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
}

.brand strong, .brand small { display: block; }
.brand small { color: #b9c6d3; margin-top: 3px; }
nav { display: grid; gap: 7px; }

.nav-btn {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: transparent;
  color: #dbe5ee;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav-btn.active, .nav-btn:hover {
  background: rgba(255,255,255,.11);
  color: #fff;
}

.nav-btn.active {
  box-shadow: inset 3px 0 0 var(--gold);
}

.app {
  padding: 30px;
  min-width: 0;
}

.app-error {
  position: fixed;
  z-index: 30;
  top: 14px;
  right: 14px;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #f0c2c2;
  border-radius: 8px;
  background: #fff6f6;
  color: #7c1414;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.app-error button {
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  background: #7c1414;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

h1, h2, p { margin: 0; }
h1 {
  font-size: 32px;
  letter-spacing: 0;
}
h2 { font-size: 18px; }
p, .muted { color: var(--muted); line-height: 1.45; }

.primary {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 118, 110, .22);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.primary:hover {
  filter: brightness(1.03);
  box-shadow: 0 10px 22px rgba(15, 118, 110, .28);
}

.ghost {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.citation-box {
  margin-top: 10px;
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--ink);
  line-height: 1.5;
}

.jurisprudence-links {
  margin: 12px 0;
  flex-wrap: wrap;
}

.view { display: none; }
.view.active { display: grid; gap: 18px; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
}

.metrics.client-money {
  grid-template-columns: repeat(3, minmax(190px, 1fr));
}

.metrics article, .panel, .list-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.metrics article {
  min-height: 104px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  border-top: 3px solid rgba(201, 151, 47, .45);
}

.metrics span, .meta, label { color: var(--muted); font-size: 14px; }
.metrics strong {
  font-size: 26px;
  letter-spacing: 0;
}

.grid.two {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}

.panel { overflow: hidden; }
.padded, .result, .report { padding: 18px; display: grid; gap: 12px; }

.client-profile {
  display: grid;
  gap: 18px;
}

.client-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.client-code {
  min-width: 72px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--side), var(--side-2));
  color: #fff;
  font-weight: 800;
  box-shadow: inset 0 -3px 0 rgba(201, 151, 47, .55);
}

.client-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
}

.client-info-grid div {
  min-height: 72px;
  display: grid;
  gap: 6px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.client-info-grid span {
  color: var(--muted);
  font-size: 13px;
}

.client-info-grid strong {
  font-size: 16px;
  overflow-wrap: anywhere;
}

.readonly-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
}

.readonly-grid div {
  min-height: 72px;
  display: grid;
  gap: 6px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fafbfa;
}

.readonly-grid span {
  color: var(--muted);
  font-size: 13px;
}

.readonly-grid strong {
  font-size: 16px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.client-toolbar {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.toolbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.toolbar-actions input {
  min-width: 280px;
}

.financial-toolbar {
  grid-template-columns: auto 1fr;
}

.financial-toolbar .toolbar-actions {
  justify-content: flex-end;
  align-items: end;
  flex-wrap: wrap;
}

.financial-toolbar h2 {
  min-width: 140px;
}

.financial-toolbar .toolbar-actions input {
  min-width: 300px;
}

.financial-toolbar .inline-field {
  width: 150px;
  min-width: 150px;
}

.financial-toolbar .inline-field select {
  min-height: 44px;
}

.financial-toolbar .print-page {
  min-width: 136px;
}

.financial-toolbar .print-financial {
  min-width: 132px;
}

.inline-field {
  display: grid;
  gap: 4px;
  min-width: 150px;
}

.inline-field input {
  min-height: 38px;
}

.panel-head {
  min-height: 56px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(180deg, #fff, #fbfcfd);
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.client-chat-panel {
  gap: 14px;
}

.client-chat {
  min-height: 180px;
  max-height: 360px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.chat-message {
  max-width: min(78%, 720px);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-shadow: var(--shadow-soft);
}

.chat-message.mine {
  align-self: flex-end;
  background: #e7f6ef;
  border-color: #c9e8d7;
}

.chat-message.theirs {
  align-self: flex-start;
}

.chat-meta {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.client-message-form {
  display: grid;
  grid-template-columns: 1fr minmax(220px, auto) auto;
  gap: 10px;
  align-items: end;
}

.client-message-form textarea {
  min-height: 74px;
}

.message-file {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.message-file input {
  width: 100%;
}

.chat-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.partner-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.partner-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.partner-head h3 {
  margin: 0 0 4px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 10px;
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.panel .table-wrap { border: 0; border-radius: 0; }

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th, td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #4b5a6b;
  font-size: 13px;
  background: #f7f9fb;
  text-transform: uppercase;
  letter-spacing: .02em;
}
tr:last-child td { border-bottom: 0; }

.badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 8px;
  padding: 0 10px;
  background: var(--blue);
  color: #244866;
  white-space: nowrap;
  font-weight: 700;
  font-size: 12px;
}

.badge.Acordo, .badge.Judicial, .badge.Proposto { background: #f6eddb; color: #8a5200; }
.badge.Pago, .badge.Quitado, .badge.Aceito, .badge.Recebido { background: #e2f1e6; color: #24713c; }
.badge.Vencido { background: #fff0f0; color: #9b1c1c; }

tr.row-overdue td {
  background: #fff7f7;
}

tr.row-paid td {
  background: #f4fbf6;
}

.alert-item {
  border-left: 4px solid #c93636;
}

.form-grid {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(145px, 1fr));
  gap: 14px;
  align-items: end;
  box-shadow: var(--shadow-soft);
}

.form-grid.collapsed {
  display: none;
}

.form-grid.wide { grid-template-columns: repeat(4, minmax(155px, 1fr)); }
label { display: grid; gap: 7px; }

input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(15, 118, 110, .65);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

textarea { resize: vertical; }
.full { grid-column: 1 / -1; }
.list { display: grid; gap: 12px; padding: 14px; }
.list.plain { padding: 0; }

.list-item {
  padding: 16px;
  display: grid;
  gap: 5px;
}

.split-item {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.installment-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.installment-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.installment-row.overdue {
  border-color: #e7b5b5;
  background: #fff6f6;
}

.installment-row strong {
  color: var(--accent);
}

.installment-row.overdue strong {
  color: #9b1c1c;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.link-button:hover {
  text-decoration: underline;
}

.danger {
  min-height: 34px;
  border: 1px solid #e5b9b9;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff7f7;
  color: #9b1c1c;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.danger:hover {
  background: #ffecec;
}

.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.tag.success {
  background: #e5f6ef;
  color: #08734f;
}

.tag.warning {
  background: #fff1f1;
  color: #9b111e;
}

.whatsapp-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #b7e6c8;
  border-radius: 8px;
  padding: 0 12px;
  background: #eefbf3;
  color: #087a38;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.whatsapp-button:hover {
  background: #e1f8ea;
}

.hidden-client {
  display: none !important;
}

.empty { color: var(--muted); padding: 18px; }
.report-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.report-grid div {
  background: linear-gradient(180deg, #eef6f4, #f7fbfa);
  border: 1px solid rgba(15, 118, 110, .12);
  border-radius: 8px;
  padding: 12px;
}
.report-grid strong { display: block; margin-top: 6px; font-size: 20px; }

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 18px;
}

.chart-grid h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.bar-chart {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  align-items: center;
}

.bar-row > strong {
  font-size: 13px;
  color: var(--muted);
}

.bar-stack {
  display: grid;
  gap: 4px;
}

.bar-stack span {
  min-width: 64px;
  min-height: 24px;
  border-radius: 6px;
  padding: 5px 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.bar-stack .entrada,
.bar-stack .honorarios {
  background: var(--accent);
}

.bar-stack .saida {
  background: #9b1c1c;
}

.mini-result {
  min-height: 72px;
  align-content: center;
  background: var(--soft);
  border-radius: 8px;
}

.mini-result span,
.mini-result small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.mini-result strong {
  display: block;
  margin: 4px 0;
  font-size: 22px;
}

.download {
  width: fit-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 14px;
  background: linear-gradient(180deg, var(--side-2), var(--side));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.download.secondary {
  min-height: 34px;
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--line);
}

.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

body.auth-pending {
  display: block;
  min-height: 100vh;
  background: #f6f8fb;
}

body.auth-pending .sidebar,
body.auth-pending .app {
  display: none;
}

.boot-loading {
  display: none;
}

body.auth-pending .boot-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 28px;
  color: var(--ink);
  text-align: center;
}

.boot-loading img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 14px;
  background: white;
  box-shadow: 0 12px 32px rgba(3, 23, 38, .10);
}

.boot-loading strong {
  font-size: 24px;
}

.boot-loading span {
  color: var(--muted);
}

.login-screen {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  background: #f6f8fb;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  min-height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 32px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(215, 222, 232, .86);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(15, 23, 36, .08);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.site-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(201, 151, 47, .45);
  padding: 4px;
}

.site-brand strong, .site-brand small { display: block; }
.site-brand small { color: var(--muted); margin-top: 3px; }

.top-login {
  display: flex;
  align-items: end;
  gap: 10px;
}

.top-login label {
  width: 170px;
  font-size: 12px;
}

.top-login input {
  min-height: 38px;
  padding: 8px 10px;
}

.top-login .primary {
  min-height: 38px;
}

.top-login .error {
  max-width: 190px;
  font-size: 12px;
}

.site-page {
  padding-top: 82px;
}

.site-hero {
  min-height: 660px;
  display: grid;
  align-items: center;
  padding: 80px 7vw 72px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 24, 39, .94), rgba(7, 24, 39, .72) 42%, rgba(7, 24, 39, .22)),
    url("assets/corporate-hero.png") center right / cover no-repeat,
    var(--side);
}

.hero-copy {
  max-width: 680px;
  display: grid;
  gap: 20px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

.hero-copy h1 {
  max-width: 680px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.02;
}

.hero-copy p {
  max-width: 620px;
  color: rgba(255,255,255,.84);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-section, .site-contact-section {
  padding: 70px 7vw;
}

.section-heading, .contact-copy {
  max-width: 780px;
  display: grid;
  gap: 10px;
}

.section-heading h2, .contact-copy h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-heading p, .contact-copy p {
  font-size: 18px;
}

.service-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-grid article {
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.service-grid strong {
  font-size: 20px;
}

.site-contact-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1fr);
  gap: 28px;
  align-items: start;
  background: #fff;
}

.site-contact-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
  box-shadow: var(--shadow);
}

.site-contact-card button {
  width: max-content;
}

.site-contact-status {
  align-self: center;
  color: var(--muted);
}

.site-contact-status.success { color: #166534; }
.site-contact-status.warning { color: #92400e; }
.site-contact-status.error { color: #9b1c1c; }

.error {
  color: #9b1c1c;
  min-height: 18px;
}

.login-help {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  background: #f3f7f6;
  border: 1px solid rgba(15, 118, 110, .12);
  border-radius: 8px;
  padding: 10px;
}

.error {
  color: #9b1c1c;
  min-height: 18px;
}

.calendar-head {
  align-items: center;
}

.calendar-head .row-actions {
  align-items: center;
  flex-wrap: wrap;
}

#deadlineCalendarMonth {
  min-width: 180px;
  color: var(--ink);
  text-align: center;
  text-transform: capitalize;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
}

.calendar-weekday {
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f5f7fa;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.calendar-day {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.calendar-day:hover {
  background: #f8fbfb;
}

.calendar-day > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
}

.calendar-day.today > span {
  background: var(--accent);
  color: #fff;
}

.calendar-day.muted-day {
  background: #fbfcfd;
  color: #98a2b3;
}

.calendar-events {
  display: grid;
  gap: 6px;
}

.calendar-events strong {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: #e8f4f1;
  color: #0f3f38;
  font-size: 12px;
  line-height: 1.25;
}

.calendar-events strong.late {
  border-left-color: #dc2626;
  background: #fff1f2;
  color: #991b1b;
}

.calendar-events strong.done {
  border-left-color: #16a34a;
  background: #f0fdf4;
  color: #166534;
}

.calendar-events small {
  font-weight: 600;
  color: inherit;
  opacity: .78;
}

.calendar-delete {
  width: max-content;
  margin-top: 4px;
  padding: 3px 7px;
  border: 1px solid rgba(153, 27, 27, .22);
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  color: #991b1b;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.calendar-delete:hover {
  background: #fff;
  border-color: #991b1b;
}

@media (max-width: 760px) {
  body { grid-template-columns: 1fr; }
  .sidebar { min-height: auto; }
  nav { grid-template-columns: repeat(4, minmax(130px, 1fr)); overflow-x: auto; }
  .metrics, .grid.two, .form-grid, .form-grid.wide, .report-grid, .client-info-grid { grid-template-columns: 1fr; }
  .client-message-form { grid-template-columns: 1fr; }
  .chat-message { max-width: 100%; }
  .partner-head { display: grid; }
  .check-grid { grid-template-columns: 1fr; }
  .client-toolbar, .toolbar-actions { display: grid; grid-template-columns: 1fr; }
  .toolbar-actions input { min-width: 0; }
  .topbar { align-items: stretch; flex-direction: column; }
  .site-header { position: relative; align-items: stretch; flex-direction: column; padding: 14px; }
  .top-login { display: grid; grid-template-columns: 1fr; width: 100%; }
  .top-login label { width: 100%; }
  .site-page { padding-top: 0; }
  .site-hero { min-height: 560px; padding: 54px 22px; }
  .service-grid, .site-contact-section, .site-contact-card { grid-template-columns: 1fr; }
  .calendar-grid { grid-template-columns: repeat(7, minmax(70px, 1fr)); overflow-x: auto; }
  .calendar-day { min-height: 96px; padding: 6px; }
  .calendar-events strong { font-size: 11px; padding: 5px; }
}
.email-notification-alert {
  margin: 0 0 18px;
  padding: 10px 14px;
  border-left: 3px solid #b26a00;
  background: #fff4df;
  color: #4a3208;
  font-size: 14px;
  line-height: 1.4;
}

.email-notification-alert[hidden] { display: none; }
.client-email-notice[hidden] { display: none; }
