﻿:root {
  color-scheme: light;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: #f7f7f7;
  color: #111111;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(214, 33, 40, 0.12), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f2f2f2 100%);
  transition: opacity 420ms ease, visibility 420ms ease;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.hidden {
  display: none !important;
}

.splash-card {
  width: min(86vw, 640px);
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  animation: brand-rise 900ms ease both;
}

.splash-card img {
  width: min(100%, 560px);
  height: auto;
}

.splash-card strong {
  font-size: 32px;
  color: #111111;
}

.splash-card span {
  color: #333333;
  font-size: 18px;
}

@keyframes brand-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sidebar {
  background: #111111;
  color: #ffffff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar div {
  display: grid;
  gap: 4px;
  margin-bottom: 24px;
}

.sidebar span {
  color: #e6e6e6;
  font-size: 14px;
}

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

button {
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  background: #d60012;
  color: #ffffff;
  cursor: pointer;
}

.sidebar button {
  background: transparent;
  text-align: left;
  color: #f2f2f2;
}

.sidebar button.active {
  background: #d60012;
  color: #ffffff;
}

main {
  padding: 28px;
  overflow: auto;
}

body.admin-login-mode {
  display: block;
  background: #f4f4f4;
}

body.admin-login-mode .sidebar {
  display: none;
}

body.admin-login-mode main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

body.admin-mode {
  grid-template-columns: 1fr;
}

body.admin-mode .sidebar {
  display: none;
}

body.admin-mode main {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
}

body.admin-mode main > .view.active {
  grid-column: 2;
  padding: 28px;
  overflow: auto;
  min-width: 0;
}

.admin-sidebar {
  grid-column: 1;
  grid-row: 1 / span 40;
  min-height: 100vh;
  background: #111111;
  color: #ffffff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-sidebar-brand {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-sidebar-brand img {
  width: 170px;
  max-width: 100%;
  background: #ffffff;
  border-radius: 6px;
  padding: 6px;
}

.admin-sidebar-brand span {
  font-weight: 800;
}

.admin-sidebar button {
  width: 100%;
  background: transparent;
  color: #f2f2f2;
  text-align: left;
}

.admin-sidebar button.active {
  background: #d60012;
  color: #ffffff;
}

.admin-sidebar button.secondary {
  margin-top: auto;
  background: #ffffff;
  color: #111111;
}

.admin-login-card {
  width: min(100%, 420px);
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(17, 17, 17, 0.12);
  padding: 26px;
  display: grid;
  gap: 18px;
}

.admin-login-card img {
  width: min(100%, 310px);
  justify-self: center;
}

.link-button {
  background: transparent;
  color: #d60012;
  padding: 0;
  justify-self: center;
  font-weight: 800;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.page-header {
  margin-bottom: 22px;
}

.page-header h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

.page-header p {
  margin: 0;
  color: #4a4a4a;
}

.phone-grid,
.metric-grid,
.dashboard-grid,
.erp-metrics,
.users-layout,
.integration-grid,
.onboarding-grid,
.onboarding-flow {
  display: grid;
  gap: 16px;
}

.phone-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.citizen-access {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(20, 31, 43, 0.05);
  padding: 18px;
  margin-bottom: 18px;
}

.citizen-access h2 {
  margin: 0 0 14px;
  color: #111111;
}

.official-email {
  margin: 0 0 14px;
  color: #333333;
}

.official-download {
  margin: 0 0 14px;
  color: #333333;
  line-height: 1.5;
}

.official-download a {
  color: #d60012;
  font-weight: 800;
}

.download-app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 16px;
}

.download-app-button {
  width: fit-content;
  min-height: 44px;
  border-radius: 8px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d60012;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.download-app-button:hover {
  background: #b90010;
}

.download-app-button-secondary {
  background: #111111;
}

.download-app-button-secondary:hover {
  background: #333333;
}

.access-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.brand-link {
  min-height: 58px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 10px 12px;
  color: #111111;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fafafa;
}

.access-button {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: left;
}

.access-button img {
  width: min(100%, 220px);
  height: 96px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 6px;
}

.logo-only-button,
.logo-only-link {
  min-height: 146px;
  justify-content: center;
}

.logo-only-link img.ju-logo-button {
  width: min(100%, 220px);
  height: 96px;
}

.logo-only-link .instagram-logo {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  font-size: 32px;
}

.access-button span,
.brand-link em {
  display: block;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  opacity: 0.86;
}

.brand-link span {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
}

.brand-link > span:not(.instagram-logo) {
  width: auto;
  height: auto;
  border-radius: 0;
  display: block;
  color: #111111;
  font-weight: 700;
}

.brand-link img,
.ju-thanks img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #dddddd;
}

.brand-link img.ju-logo-button {
  width: min(100%, 220px);
  height: 96px;
  object-fit: contain;
  background: #ffffff;
}

.instagram-link span {
  background: #d60012;
}

.instagram-logo {
  background:
    radial-gradient(circle at 72% 28%, #ffffff 0 8%, transparent 9%),
    linear-gradient(135deg, #111111, #d60012);
}

.report-history-panel {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(20, 31, 43, 0.05);
  padding: 18px;
  margin-bottom: 18px;
}

.report-history-panel h2 {
  margin: 0 0 12px;
}

.report-history-list {
  display: grid;
  gap: 10px;
}

.report-history-list div {
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 12px;
  background: #fafafa;
  display: grid;
  gap: 4px;
}

.report-history-list span {
  color: #333333;
}

.report-history-list a {
  color: #d60012;
  font-weight: 800;
  text-decoration: none;
  width: fit-content;
}

.citizen-dashboard-actions {
  margin-bottom: 16px;
}

.citizen-dashboard-list {
  display: grid;
  gap: 10px;
}

.citizen-dashboard-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 12px;
  background: #fafafa;
}

.citizen-dashboard-item div {
  display: grid;
  gap: 4px;
}

.citizen-dashboard-summary b {
  color: #111111;
}

.citizen-dashboard-item span,
.citizen-dashboard-item em {
  color: #333333;
  font-style: normal;
}

.empty-state {
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 14px;
  background: #fafafa;
  color: #333333;
}

.citizen-status-flow,
.citizen-followup-actions {
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 14px;
  background: #fafafa;
}

.citizen-status-flow h2,
.citizen-followup-actions h2 {
  margin: 0 0 10px;
}

.status-step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-step-list span {
  border: 1px solid #dddddd;
  border-radius: 999px;
  padding: 8px 10px;
  background: #ffffff;
  font-weight: 700;
}

.status-step-list span.active {
  border-color: #d60012;
  background: #d60012;
  color: #ffffff;
}

.citizen-followup-actions div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.citizen-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.citizen-detail-actions button {
  flex: 1 1 240px;
}

.report-detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.report-detail-list div {
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 12px;
  background: #fafafa;
}

.report-detail-list dt {
  color: #4a4a4a;
  font-size: 13px;
  margin-bottom: 4px;
}

.report-detail-list dd {
  margin: 0;
  font-weight: 800;
}

.citizen-reply-form,
.citizen-reply-log {
  border-top: 1px solid #dddddd;
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.citizen-reply-form h2,
.citizen-reply-log h2 {
  margin: 0;
  font-size: 20px;
}

.citizen-reply-form p {
  margin: 0;
  color: #4a4a4a;
  line-height: 1.5;
}

.citizen-reply-item {
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 12px;
  background: #fafafa;
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

.citizen-reply-item p {
  margin: 0;
  color: #333333;
}

.phone-screen,
.dashboard-grid article,
.metric-card,
.integration-grid article,
.consent-panel,
.auth-panel,
.terms-panel,
.email-confirmation-panel,
.flow-step {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(20, 31, 43, 0.05);
}

.phone-screen {
  min-height: 310px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.screen-label {
  color: #4a4a4a;
  font-size: 13px;
}

.ad-slot {
  border: 1px dashed #d60012;
  border-radius: 8px;
  min-height: 92px;
  padding: 12px;
  background: #fff3f3;
  display: grid;
  gap: 8px;
}

.ad-slot strong {
  color: #d60012;
}

.ad-image-link {
  color: #111111;
  text-decoration: none;
  display: grid;
  gap: 8px;
}

.ad-image-link img {
  width: 100%;
  max-height: 90px;
  object-fit: contain;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #dddddd;
}

.ad-image-link span {
  display: grid;
  gap: 2px;
}

.ad-image-link em {
  color: #333333;
  font-style: normal;
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.secondary {
  background: #111111;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.file-upload-field {
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  color: #333333;
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.file-upload-field input {
  border: 0;
  padding: 0;
}

.file-upload-field span {
  color: #4a4a4a;
  font-size: 13px;
  font-weight: 600;
}

.ad-positions-panel {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(20, 31, 43, 0.05);
}

.ad-positions-panel h2 {
  margin: 0 0 12px;
}

.ad-position-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.ad-position-grid div {
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 12px;
  background: #fafafa;
  display: grid;
  gap: 4px;
}

.ad-position-grid span {
  color: #333333;
  line-height: 1.4;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  overflow: hidden;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid #dddddd;
  text-align: left;
  font-size: 14px;
}

th {
  background: #f4f4f4;
  color: #333333;
}

.erp-table tbody tr {
  cursor: pointer;
}

.erp-table tbody tr.selected-row {
  background: #fff3f3;
  outline: 2px solid rgba(214, 0, 18, 0.35);
}

.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 18px;
}

.metric-card {
  padding: 16px;
}

.metric-card strong {
  display: block;
  font-size: 26px;
  margin-top: 8px;
}

.dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.dashboard-grid article {
  padding: 16px;
}

.erp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.erp-header img {
  width: min(220px, 36vw);
  height: 82px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 8px;
}

.erp-metrics {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-bottom: 18px;
}

.erp-metrics article {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(20, 31, 43, 0.05);
}

.erp-metrics span {
  color: #4a4a4a;
  font-size: 13px;
}

.erp-metrics strong {
  display: block;
  font-size: 28px;
  margin-top: 6px;
}

.erp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 16px;
}

.erp-list-panel,
.erp-detail-panel {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(20, 31, 43, 0.05);
}

.erp-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  margin-bottom: 14px;
}

.erp-toolbar label,
.erp-action-form label {
  display: grid;
  gap: 6px;
  color: #333333;
  font-weight: 700;
}

.erp-table button {
  padding: 8px 10px;
}

.erp-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.erp-filter-tabs button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #bbbbbb;
  color: #111111;
  display: inline-flex;
  gap: 8px;
  justify-content: space-between;
  min-height: 38px;
  padding: 8px 12px;
}

.erp-filter-tabs button.active {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.erp-status-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.erp-status-buttons button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dddddd;
  color: #111111;
  display: inline-flex;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
}

.erp-status-buttons button.active {
  background: #d60012;
  border-color: #d60012;
  color: #ffffff;
}

.erp-status-buttons strong {
  align-items: center;
  background: rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  justify-content: center;
  min-width: 24px;
  padding: 2px 7px;
}

.erp-status-buttons button.active strong {
  background: rgba(255, 255, 255, 0.24);
}

.erp-date-filter {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-bottom: 12px;
}

.erp-date-filter.hidden {
  display: none;
}

.erp-date-filter label {
  display: grid;
  gap: 6px;
  color: #333333;
  font-weight: 800;
}

.erp-date-filter input {
  border: 1px solid #cccccc;
  border-radius: 6px;
  min-height: 38px;
  padding: 8px 10px;
}

.erp-apply-filters {
  margin-bottom: 12px;
  min-width: 92px;
}

.erp-filter-help {
  align-items: center;
  background: #f4f4f4;
  border: 1px solid #dddddd;
  border-radius: 6px;
  color: #333333;
  display: inline-flex;
  font-weight: 700;
  min-height: 38px;
  padding: 8px 10px;
}

.erp-active-filters {
  align-items: center;
  color: #333333;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.erp-active-filters span {
  align-items: center;
  background: #f4f4f4;
  border: 1px solid #dddddd;
  border-radius: 999px;
  display: inline-flex;
  gap: 6px;
  padding: 6px 10px;
}

.erp-active-filters span:has(button) {
  background: #fff2f3;
  border-color: #d60012;
}

.erp-active-filters button {
  align-items: center;
  background: #d60012;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 14px;
  height: 22px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 22px;
}

.erp-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 14px;
}

.erp-pagination span {
  color: #333333;
  font-weight: 800;
}

.erp-page-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.erp-page-buttons button {
  background: #ffffff;
  border: 1px solid #dddddd;
  color: #111111;
  padding: 8px 10px;
}

.erp-page-buttons button.active {
  background: #d60012;
  border-color: #d60012;
  color: #ffffff;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: #fff3f3;
  color: #d60012;
  font-weight: 800;
  font-size: 12px;
}

.erp-detail-panel h2 {
  margin: 0 0 12px;
}

.erp-detail-title {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.erp-detail-title h2 {
  margin: 0;
}

.erp-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.erp-detail-actions button {
  min-height: 36px;
  padding: 8px 10px;
}

.erp-email-form {
  border-top: 1px solid #dddddd;
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
}

.erp-email-form.hidden {
  display: none;
}

.erp-email-form h3 {
  color: #111111;
  margin: 0;
}

.erp-email-form label {
  color: #333333;
  display: grid;
  font-weight: 800;
  gap: 6px;
}

.erp-email-form input,
.erp-email-form textarea {
  border: 1px solid #cccccc;
  border-radius: 6px;
  font: inherit;
  padding: 10px;
}

.erp-email-form input[readonly] {
  background: #f4f4f4;
  color: #333333;
}

.erp-email-attachments {
  background: #fafafa;
  border: 1px solid #dddddd;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 10px;
}

.erp-email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.erp-action-form {
  border-top: 1px solid #dddddd;
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
}

.erp-action-form h3 {
  margin: 0;
  color: #111111;
}

.conversation-panel {
  border-top: 1px solid #dddddd;
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
}

.conversation-panel h3 {
  margin: 0;
}

.erp-ai-article {
  background: #fafafa;
  border: 1px solid #dddddd;
  border-radius: 8px;
  color: #222222;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.erp-ai-article h4 {
  color: #111111;
  font-size: 18px;
  margin: 0;
}

.erp-ai-article strong {
  color: #444444;
}

.erp-ai-article p {
  margin: 0;
}

.erp-attachments-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.erp-attachment-card {
  border: 1px solid #dddddd;
  border-radius: 8px;
  background: #fafafa;
  color: #111111;
  display: grid;
  gap: 8px;
  padding: 10px;
  text-decoration: none;
}

.erp-attachment-card img,
.erp-attachment-card video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: #eeeeee;
}

.erp-attachment-card span {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 800;
}

.erp-attachment-icon {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: #eeeeee;
  border-radius: 6px;
  display: flex;
  justify-content: center;
}

.conversation-list {
  display: grid;
  gap: 10px;
}

.conversation-message {
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 12px;
  background: #fafafa;
  display: grid;
  gap: 6px;
}

.conversation-message.from-ju {
  border-color: rgba(214, 0, 18, 0.35);
  background: #fff3f3;
}

.conversation-message strong {
  color: #111111;
}

.conversation-message p {
  margin: 0;
  color: #333333;
  line-height: 1.45;
}

.conversation-message span {
  color: #4a4a4a;
  font-size: 12px;
}

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

.bar-row {
  display: grid;
  gap: 5px;
}

.bar-row span {
  display: flex;
  justify-content: space-between;
  color: #333333;
  font-size: 14px;
}

.bar {
  height: 10px;
  background: #f2f2f2;
  border-radius: 999px;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: #d60012;
}

.consent-panel {
  display: grid;
  gap: 14px;
  max-width: 680px;
  padding: 18px;
  margin-bottom: 18px;
}

.consent-panel label {
  display: flex;
  gap: 10px;
  align-items: center;
}

.consent-panel input {
  width: auto;
}

.consent-form {
  display: grid;
  gap: 12px;
}

.consent-form label {
  border: 1px solid #dddddd;
  border-radius: 8px;
  background: #fafafa;
  padding: 12px;
  line-height: 1.45;
}

.consent-audit-log {
  border: 1px solid rgba(214, 0, 18, 0.28);
  border-radius: 8px;
  background: #fff3f3;
  color: #111111;
  font-weight: 700;
  padding: 12px;
}

.integration-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.integration-grid article {
  padding: 16px;
  font-weight: 700;
}

.report-panel,
.success-screen {
  max-width: 720px;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(20, 31, 43, 0.05);
  padding: 22px;
}

.report-panel {
  display: grid;
  gap: 14px;
}

.report-panel label {
  display: grid;
  gap: 6px;
  color: #333333;
  font-weight: 700;
}

.report-identity-choice {
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.report-identity-choice legend {
  color: #333333;
  font-weight: 700;
  padding: 0 6px;
}

.report-identity-choice label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.report-identity-choice input {
  width: auto;
}

.compact-choice,
.media-upload-choice {
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.compact-choice label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.compact-choice input {
  width: auto;
}

.media-upload-choice legend {
  color: #333333;
  font-weight: 700;
  padding: 0 6px;
}

.media-upload-choice label {
  display: grid;
  gap: 6px;
  color: #333333;
  font-weight: 700;
}

.success-screen {
  position: relative;
  text-align: center;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.success-screen h1 {
  margin: 0;
  color: #111111;
}

.success-screen p {
  margin: 0;
  color: #4a4a4a;
}

.back-button {
  justify-self: start;
  background: #111111;
}

.ju-thanks {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 12px 16px;
  background: #fafafa;
  color: #111111;
  font-size: 20px;
}

.onboarding-flow {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 18px;
}

.flow-step {
  padding: 14px;
  color: #333333;
  font-weight: 700;
}

.flow-link {
  background: #ffffff;
  border: 1px solid #dddddd;
  text-align: left;
  cursor: pointer;
}

.flow-link:hover {
  border-color: #d60012;
  color: #d60012;
}

.flow-step.done {
  border-color: #d60012;
  color: #d60012;
}

.flow-step.active-step {
  border-color: #d60012;
  color: #d60012;
}

.onboarding-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.citizen-auth-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 880px;
}

.first-access-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.first-access-panel p {
  margin: 0;
  color: #333333;
  line-height: 1.5;
}

.code-timer {
  margin: 0;
  color: #8a5a00;
  font-weight: 700;
}

.auth-panel,
.terms-panel,
.email-confirmation-panel {
  padding: 18px;
}

.users-layout {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-bottom: 18px;
}

.users-table-panel {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(20, 31, 43, 0.05);
}

.users-table-panel h2 {
  margin: 0 0 12px;
}

.permission-panel {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(20, 31, 43, 0.05);
  display: grid;
  gap: 12px;
}

.permission-panel h2 {
  margin: 0;
}

.permission-panel div {
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 12px;
  background: #fafafa;
  display: grid;
  gap: 4px;
}

.permission-panel span {
  color: #333333;
}

.stack-form,
.terms-checklist {
  display: grid;
  gap: 10px;
}

.terms-scroll {
  max-height: 180px;
  overflow: auto;
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  color: #333333;
}

.terms-date {
  display: inline-block;
  margin: 0 0 10px;
  color: #4a4a4a;
  font-weight: 700;
}

.terms-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 14px;
  margin-bottom: 12px;
  background: #111111;
  color: #ffffff;
  text-decoration: none;
}

.terms-checklist label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.terms-checklist input {
  width: auto;
  margin-top: 3px;
}

.terms-checklist .single-consent {
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 14px;
  background: #fafafa;
  line-height: 1.5;
}

.email-code-box {
  border-radius: 8px;
  border: 1px solid #dddddd;
  background: linear-gradient(135deg, #f4f4f4, #f2f2f2);
  display: grid;
  justify-items: center;
  margin: 12px 0;
  padding: 18px;
  text-align: center;
  gap: 14px;
}

.code-inputs {
  display: grid;
  grid-template-columns: repeat(4, 54px);
  gap: 10px;
  justify-content: center;
}

.email-code-box span {
  color: #4a4a4a;
}

.code-inputs input {
  height: 58px;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
}

.email-consent {
  width: 100%;
  text-align: left;
}

.demo-code-note {
  color: #333333;
  font-weight: 700;
  margin: 10px 0 0;
}

.about-panel {
  max-width: 960px;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(20, 31, 43, 0.05);
  padding: 24px;
}

.about-logo-wrap {
  border: 1px solid #dddddd;
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
  margin-bottom: 22px;
}

.about-logo {
  display: block;
  width: min(100%, 620px);
  height: auto;
}

.about-title {
  border-bottom: 1px solid #dddddd;
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.about-title h2 {
  margin: 0 0 8px;
  font-size: 34px;
  color: #111111;
}

.about-title p {
  margin: 0;
  color: #4a4a4a;
  font-size: 17px;
}

.about-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 0 0 22px;
}

.about-details div {
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 14px;
  background: #fafafa;
}

.about-details dt {
  color: #4a4a4a;
  font-size: 13px;
  margin-bottom: 6px;
}

.about-details dd {
  margin: 0;
  font-weight: 700;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.about-development-footer {
  display: grid;
  grid-template-columns: auto minmax(130px, 210px) minmax(220px, 1fr);
  align-items: center;
  gap: 16px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  background: #fafafa;
  padding: 14px;
  margin-bottom: 18px;
}

.about-development-footer strong {
  color: #111111;
}

.about-development-footer img {
  width: 180px;
  max-width: 100%;
  height: auto;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  background: #ffffff;
}

.about-development-footer span {
  color: #333333;
  font-weight: 700;
}

.legal-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 14px;
  background: #111111;
  color: #ffffff;
  text-decoration: none;
}

.legal-text {
  border-top: 1px solid #dddddd;
  padding-top: 16px;
  margin-top: 16px;
}

.legal-text h3 {
  margin: 0 0 8px;
}

.legal-text p {
  margin: 0;
  color: #333333;
  line-height: 1.6;
}

.legal-document-page {
  display: block;
  min-height: 100vh;
  background: #f7f7f7;
}

.legal-document {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px;
}

.legal-document header,
.legal-document section {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 14px;
}

.legal-document header img {
  width: min(100%, 460px);
  height: auto;
  display: block;
  margin-bottom: 18px;
}

.legal-document h1 {
  margin: 0 0 10px;
  color: #111111;
}

.legal-document h2 {
  margin: 0 0 10px;
  color: #111111;
}

.legal-document p,
.legal-document li {
  color: #333333;
  line-height: 1.65;
}

.legal-document ul {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .erp-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .erp-layout,
  .erp-toolbar {
    grid-template-columns: 1fr;
  }

  .about-development-footer {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .about-development-footer img {
    width: 160px;
  }
}

