:root {
  --bg: #f5efe4;
  --bg-accent: #efe2c8;
  --surface: rgba(255, 252, 245, 0.82);
  --surface-strong: #fffaf0;
  --text: #17261e;
  --muted: #4a5a50;
  --muted-strong: #314138;
  --primary: #0d6b57;
  --primary-dark: #094c3e;
  --secondary: #d98f2b;
  --line: rgba(23, 38, 30, 0.11);
  --shadow: 0 18px 45px rgba(57, 44, 20, 0.12);
  --ok-text: #0a5d4c;
  --ok-bg: rgba(13, 107, 87, 0.14);
  --warn-text: #7a4a08;
  --warn-bg: rgba(217, 143, 43, 0.18);
  --danger-text: #8f2424;
  --danger-bg: rgba(193, 55, 55, 0.14);
  --group-operations: #0d8a6f;
  --group-operations-soft: rgba(13, 138, 111, 0.16);
  --group-finance: #1d7f72;
  --group-finance-soft: rgba(29, 127, 114, 0.16);
  --group-resources: #6f5bd3;
  --group-resources-soft: rgba(111, 91, 211, 0.16);
  --group-compliance: #c96f1e;
  --group-compliance-soft: rgba(201, 111, 30, 0.18);
  --group-management: #9b4f86;
  --group-management-soft: rgba(155, 79, 134, 0.18);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

body.theme-dark {
  --bg: #0f1719;
  --bg-accent: #1b2629;
  --surface: rgba(18, 28, 31, 0.88);
  --surface-strong: #142023;
  --text: #edf5ef;
  --muted: #c5d3ce;
  --muted-strong: #e2ece8;
  --primary: #3aa38d;
  --primary-dark: #8de0ce;
  --secondary: #e3b25e;
  --line: rgba(214, 237, 228, 0.12);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
  --ok-text: #bffff0;
  --ok-bg: rgba(58, 163, 141, 0.2);
  --warn-text: #ffe1aa;
  --warn-bg: rgba(227, 178, 94, 0.2);
  --danger-text: #ffd0d0;
  --danger-bg: rgba(193, 55, 55, 0.18);
  --group-operations: #58d3b5;
  --group-operations-soft: rgba(88, 211, 181, 0.18);
  --group-finance: #6fded0;
  --group-finance-soft: rgba(111, 222, 208, 0.18);
  --group-resources: #b5a7ff;
  --group-resources-soft: rgba(181, 167, 255, 0.18);
  --group-compliance: #ffc27d;
  --group-compliance-soft: rgba(255, 194, 125, 0.18);
  --group-management: #f0a8dd;
  --group-management-soft: rgba(240, 168, 221, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Tajawal", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(217, 143, 43, 0.18), transparent 20%),
    radial-gradient(circle at bottom left, rgba(13, 107, 87, 0.14), transparent 24%),
    linear-gradient(135deg, #f8f3ea, #efe4d0 52%, #f8f6ef);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body.auth-locked .app-shell {
  display: none;
}

body.public-complaint-mode .app-shell,
body.public-complaint-mode .auth-overlay {
  display: none !important;
}

body.public-complaint-mode .public-complaint-root {
  display: block;
}

body.theme-dark {
  background:
    radial-gradient(circle at top right, rgba(227, 178, 94, 0.12), transparent 18%),
    radial-gradient(circle at bottom left, rgba(58, 163, 141, 0.14), transparent 22%),
    linear-gradient(135deg, #0d1315, #152124 52%, #11191b);
}

.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 34, 28, 0.72);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  z-index: 1000;
  padding: 20px;
}

.auth-card {
  width: min(460px, 100%);
  background: var(--surface-strong);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.auth-brand h2,
.auth-brand p {
  margin: 0;
}

.auth-brand p {
  margin-top: 4px;
  color: var(--muted);
}

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

.public-complaint-root.hidden {
  display: none;
}

.public-complaint-shell {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  place-items: center;
}

.public-complaint-card {
  width: min(760px, 100%);
  position: relative;
  background: var(--surface-strong);
  border-radius: 32px;
  border: 1px solid var(--line);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.public-complaint-header {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.public-complaint-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.public-complaint-brand-compact {
  display: block;
}

.public-complaint-brand h2,
.public-complaint-brand p,
.public-attachments-head h3,
.public-attachments-head p {
  margin: 0;
}

.public-complaint-brand p,
.public-attachments-head p {
  margin-top: 6px;
  color: var(--muted);
}

.public-attachments-panel,
.complaints-qr-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(239, 226, 200, 0.26));
}

.public-complaint-form {
  display: grid;
  gap: 14px;
}

.public-complaint-grid,
.complaints-qr-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.public-attachments-head,
.complaints-qr-head,
.public-attachment-item,
.complaints-qr-item,
.public-complaint-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.public-attachments-actions,
.complaints-qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.public-attachments-list,
.complaints-qr-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.public-attachment-item,
.complaints-qr-item {
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
}

.public-attachment-item strong,
.complaints-qr-copy strong {
  display: block;
  margin-bottom: 4px;
}

.public-attachment-item span,
.complaints-qr-copy span,
.complaints-qr-copy small {
  color: var(--muted);
}

.public-complaint-form textarea {
  min-height: 92px;
  resize: vertical;
}

.public-complaint-success {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 31, 25, 0.42);
  backdrop-filter: blur(8px);
  border-radius: 32px;
}

.public-complaint-success.hidden {
  display: none;
}

.public-complaint-success-card {
  width: min(420px, 100%);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow);
}

.public-complaint-success-card h3,
.public-complaint-success-card p {
  margin: 0;
}

.public-complaint-success-card h3 {
  margin-top: 8px;
  margin-bottom: 10px;
}

.public-complaint-success-card p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.public-worker-card textarea#public-worker-title {
  min-height: 110px;
}

.public-worker-phone-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.public-worker-phone-row input {
  flex: 1;
}

.public-worker-change-phone {
  white-space: nowrap;
}

.public-worker-success-meta {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: rgba(13, 107, 87, 0.06);
  color: var(--primary-dark);
}

.public-complaint-track-box {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.public-complaint-track-box a {
  color: var(--primary);
  word-break: break-all;
  text-decoration: none;
  font-weight: 700;
}

.public-track-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(239, 226, 200, 0.26));
}

.public-track-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.public-track-message {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.public-track-message strong,
.public-track-message p {
  margin: 0;
}

.public-track-message p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.8;
}

.readonly-field {
  background: rgba(0, 0, 0, 0.04) !important;
  color: var(--muted-strong) !important;
  border-style: dashed !important;
}

.complaints-qr-form .form-actions {
  grid-column: 1 / -1;
}

.app-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
}

.sidebar {
  padding: 28px 22px;
  background:
    linear-gradient(180deg, rgba(252, 248, 239, 0.98), rgba(244, 238, 224, 0.96)),
    radial-gradient(circle at top right, rgba(13, 138, 111, 0.08), transparent 24%);
  color: var(--text);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-left: 1px solid rgba(23, 38, 30, 0.08);
  box-shadow: -12px 0 32px rgba(57, 44, 20, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand h1,
.brand p,
.hero h2,
.workspace-header h3,
.form-panel h4,
.table-panel h4 {
  margin: 0;
}

.brand p {
  color: var(--muted);
  margin-top: 4px;
}

.brand-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #d98f2b, #f7c978);
  color: #1d2417;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(217, 143, 43, 0.26);
  background-size: cover;
  background-position: center;
}

.brand-badge.has-logo {
  color: transparent;
}

.sidebar-title,
.eyebrow,
.workspace-kicker {
  letter-spacing: 0.04em;
  font-weight: 800;
  text-transform: uppercase;
}

.sidebar-title {
  font-size: 0.82rem;
  color: var(--muted-strong);
  margin: 0 0 12px;
}

.section-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nav-section-group {
  display: grid;
  gap: 8px;
}

.nav-section-group[data-group="operations"] {
  --nav-group-color: var(--group-operations);
  --nav-group-soft: var(--group-operations-soft);
}

.nav-section-group[data-group="finance"] {
  --nav-group-color: var(--group-finance);
  --nav-group-soft: var(--group-finance-soft);
}

.nav-section-group[data-group="resources"] {
  --nav-group-color: var(--group-resources);
  --nav-group-soft: var(--group-resources-soft);
}

.nav-section-group[data-group="compliance"] {
  --nav-group-color: var(--group-compliance);
  --nav-group-soft: var(--group-compliance-soft);
}

.nav-section-group[data-group="management"] {
  --nav-group-color: var(--group-management);
  --nav-group-soft: var(--group-management-soft);
}

.nav-section-title {
  margin: 0;
  padding: 0 8px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--nav-group-color, rgba(254, 248, 238, 0.72));
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-section-stack {
  display: grid;
  gap: 8px;
}

.section-link {
  border: 1px solid rgba(23, 38, 30, 0.08);
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 14px;
  text-align: right;
  cursor: pointer;
  transition: 180ms ease;
  font-weight: 700;
}

.nav-section-group .section-link[data-group] {
  border-color: color-mix(in srgb, var(--nav-group-color, rgba(255,255,255,0.1)) 24%, transparent);
}

.section-link-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-link-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--nav-group-soft, rgba(255, 255, 255, 0.08));
  color: var(--nav-group-color, #f7d18b);
  flex-shrink: 0;
}

.section-link-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.section-link-text {
  flex: 1;
  color: var(--nav-group-color, #fffdf8);
}

.section-link-badge {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  border: 1px solid rgba(23, 38, 30, 0.12);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.22);
}

.section-link-badge.danger {
  background: rgba(193, 55, 55, 0.22);
  color: #7a1111;
  border-color: rgba(193, 55, 55, 0.24);
}

.section-link-badge.warn {
  background: rgba(217, 143, 43, 0.24);
  color: #6a3d00;
  border-color: rgba(217, 143, 43, 0.24);
}

.section-link.active[data-group="operations"] {
  background: linear-gradient(135deg, rgba(13, 138, 111, 0.34), rgba(13, 138, 111, 0.18));
  box-shadow: inset 0 0 0 1px rgba(88, 211, 181, 0.18);
}

.section-link.active[data-group="finance"] {
  background: linear-gradient(135deg, rgba(29, 127, 114, 0.34), rgba(29, 127, 114, 0.18));
  box-shadow: inset 0 0 0 1px rgba(111, 222, 208, 0.18);
}

.section-link.active[data-group="resources"] {
  background: linear-gradient(135deg, rgba(111, 91, 211, 0.28), rgba(111, 91, 211, 0.16));
  box-shadow: inset 0 0 0 1px rgba(181, 167, 255, 0.18);
}

.section-link.active[data-group="compliance"] {
  background: linear-gradient(135deg, rgba(201, 111, 30, 0.32), rgba(201, 111, 30, 0.16));
  box-shadow: inset 0 0 0 1px rgba(255, 194, 125, 0.18);
}

.section-link.active[data-group="management"] {
  background: linear-gradient(135deg, rgba(155, 79, 134, 0.32), rgba(155, 79, 134, 0.16));
  box-shadow: inset 0 0 0 1px rgba(240, 168, 221, 0.18);
}

.workspace-kicker[data-section-group="operations"],
.table-panel h4[data-section-group="operations"],
.workspace-header h3[data-section-group="operations"] {
  color: var(--group-operations);
}

.workspace-kicker[data-section-group="finance"],
.table-panel h4[data-section-group="finance"],
.workspace-header h3[data-section-group="finance"] {
  color: var(--group-finance);
}

.workspace-kicker[data-section-group="resources"],
.table-panel h4[data-section-group="resources"],
.workspace-header h3[data-section-group="resources"] {
  color: var(--group-resources);
}

.workspace-kicker[data-section-group="compliance"],
.table-panel h4[data-section-group="compliance"],
.workspace-header h3[data-section-group="compliance"] {
  color: var(--group-compliance);
}

.workspace-kicker[data-section-group="management"],
.table-panel h4[data-section-group="management"],
.workspace-header h3[data-section-group="management"] {
  color: var(--group-management);
}

.section-link-badge.ok {
  background: rgba(13, 107, 87, 0.24);
  color: #0c4a3b;
  border-color: rgba(13, 107, 87, 0.24);
}

.section-link:hover,
.section-link.active {
  background: rgba(217, 143, 43, 0.16);
  border-color: rgba(247, 201, 120, 0.2);
  transform: translateX(-3px);
}

.section-link.active .section-link-icon,
.section-link:hover .section-link-icon {
  background: rgba(247, 201, 120, 0.16);
  color: var(--text);
}

.user-panel {
  margin-top: 20px;
}

.user-card {
  border: 1px solid rgba(23, 38, 30, 0.08);
  background: rgba(255, 255, 255, 0.56);
  border-radius: 18px;
  padding: 14px;
}

.user-card strong,
.user-card p {
  margin: 0;
}

.user-card p {
  color: var(--muted);
  margin-top: 6px;
  margin-bottom: 12px;
}

.user-card select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(23, 38, 30, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  padding: 10px 12px;
  margin-bottom: 10px;
  font-weight: 700;
}

.user-card option {
  color: #17261e;
}

.sidebar-logout {
  width: 100%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.sidebar-logout:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.main-content {
  padding: 34px;
  min-width: 0;
}

.mobile-topbar {
  display: none;
}

.mobile-sync-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(23, 38, 30, 0.08);
  color: var(--text);
  white-space: nowrap;
}

.mobile-sync-badge.ok,
.sync-card.ok {
  background: var(--ok-bg);
  color: var(--ok-text);
}

.mobile-sync-badge.warn,
.sync-card.warn {
  background: var(--warn-bg);
  color: var(--warn-text);
}

.mobile-sync-badge.danger,
.sync-card.danger {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.sync-card {
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.sync-card strong,
.sync-card p {
  margin: 0;
}

.sync-card p {
  color: rgba(254, 248, 238, 0.86);
  line-height: 1.6;
}

.mobile-sidebar-backdrop {
  display: none;
}

.mobile-menu-toggle {
  border: none;
  border-radius: 999px;
  background: rgba(18, 34, 28, 0.94);
  color: #fef8ee;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  touch-action: manipulation;
}

.mobile-theme-toggle {
  border: none;
  border-radius: 999px;
  background: rgba(23, 38, 30, 0.08);
  color: var(--text);
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.mobile-topbar-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-topbar-meta strong {
  font-size: 0.98rem;
}

.mobile-topbar-meta span {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero,
.workspace-card,
.stat-card {
  backdrop-filter: blur(10px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
}

body.theme-dark .sidebar {
  background: rgba(10, 17, 19, 0.96);
  color: #eef8f3;
  border-left-color: rgba(255, 255, 255, 0.06);
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.18);
}

body.theme-dark .section-link {
  background: rgba(255, 255, 255, 0.03);
  color: #eef8f3;
}

body.theme-dark .section-link-icon {
  background: rgba(255, 255, 255, 0.06);
  color: #f0c776;
}

body.theme-dark .section-link:hover,
body.theme-dark .section-link.active {
  background: rgba(227, 178, 94, 0.14);
  border-color: rgba(227, 178, 94, 0.24);
}

body.theme-dark .user-card,
body.theme-dark .mobile-topbar,
body.theme-dark .quick-link-card,
body.theme-dark .dashboard-item,
body.theme-dark .action-item,
body.theme-dark .mini-item,
body.theme-dark .form-panel,
body.theme-dark .table-panel,
body.theme-dark .list-card,
body.theme-dark .kpi-card,
body.theme-dark .intro-action-card,
body.theme-dark .reception-schedule-card,
body.theme-dark .reception-kpi,
body.theme-dark .record-card,
body.theme-dark .attachment-item,
body.theme-dark .permission-item,
body.theme-dark .activity-summary-card,
body.theme-dark .user-list-item {
  background: rgba(20, 32, 35, 0.92);
  border-color: rgba(214, 237, 228, 0.08);
}

body.theme-dark .table-panel,
body.theme-dark .form-panel,
body.theme-dark .workspace-card,
body.theme-dark .hero,
body.theme-dark .stat-card,
body.theme-dark .dashboard-header-active,
body.theme-dark .reception-report-panel {
  border-color: rgba(214, 237, 228, 0.08);
}

body.theme-dark .field-group input,
body.theme-dark .field-group select,
body.theme-dark .field-group textarea,
body.theme-dark .user-card select,
body.theme-dark #table-search {
  background: rgba(8, 14, 15, 0.88);
  color: var(--text);
  border-color: rgba(214, 237, 228, 0.12);
}

body.theme-dark .button.ghost,
body.theme-dark .mobile-theme-toggle,
body.theme-dark .jump-button,
body.theme-dark .table-action,
body.theme-dark .link-button {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

body.theme-dark .dashboard-report-help,
body.theme-dark .helper-text,
body.theme-dark .item-meta,
body.theme-dark .item-note,
body.theme-dark .quick-link-card small,
body.theme-dark .quick-link-label,
body.theme-dark .user-list-item p,
body.theme-dark .activity-summary-card small,
body.theme-dark .section-approval-meta,
body.theme-dark .kpi-card h5,
body.theme-dark .stat-card p {
  color: var(--muted-strong);
}

body.theme-dark .header-shortcut-button {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(214, 237, 228, 0.14);
}

body.theme-dark .header-shortcut-accent {
  background: linear-gradient(135deg, rgba(227, 178, 94, 0.2), rgba(94, 69, 24, 0.3));
  color: #fff1c9;
  border-color: rgba(227, 178, 94, 0.28);
}

body.theme-dark .review-status-badge,
body.theme-dark .badge,
body.theme-dark .mobile-sync-badge,
body.theme-dark .sync-card {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

body.theme-dark .reception-summary-table th {
  background: rgba(58, 163, 141, 0.12);
  color: #d8fff6;
}

body.theme-dark .reception-summary-table td {
  background: rgba(15, 24, 26, 0.94);
}

body.theme-dark .sync-card.ok,
body.theme-dark .sync-card.warn,
body.theme-dark .sync-card.danger,
body.theme-dark .mobile-sync-badge.ok,
body.theme-dark .mobile-sync-badge.warn,
body.theme-dark .mobile-sync-badge.danger {
  border-color: transparent;
}

.hero {
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.hero > div,
.workspace-card,
.table-panel,
.form-panel,
.dashboard-view,
.dashboard-grid,
.dashboard-footer,
.users-grid {
  min-width: 0;
}

.eyebrow,
.workspace-kicker {
  color: var(--secondary);
  margin: 0 0 10px;
  font-size: 0.8rem;
}

.hero h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  margin-bottom: 14px;
}

.hero-copy,
.workspace-description {
  color: var(--muted);
  line-height: 1.7;
  max-width: 68ch;
}

.hero-actions,
.workspace-tools,
.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.intro-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.intro-action-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(23, 38, 30, 0.08);
}

.intro-action-card .button {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.intro-action-help {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.92rem;
}

.button {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--primary), #15997c);
  color: white;
}

.button.secondary {
  background: linear-gradient(135deg, #e5c18c, #f7e0b6);
  color: #3b2b14;
}

.button.ghost {
  background: rgba(23, 38, 30, 0.06);
  color: var(--text);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.stat-card {
  border-radius: var(--radius-lg);
  padding: 18px;
}

.stat-card h4,
.stat-card p {
  margin: 0;
}

.stat-card p {
  color: var(--muted);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  margin: 10px 0 6px;
}

.workspace-card {
  border-radius: var(--radius-xl);
  padding: 24px;
}

.dashboard-view {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.dashboard-mobile-hero {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(217, 143, 43, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(13, 107, 87, 0.1), rgba(255, 250, 240, 0.92));
  border: 1px solid rgba(13, 107, 87, 0.12);
}

.dashboard-mobile-summary h4,
.dashboard-mobile-summary p {
  margin: 0;
}

.dashboard-mobile-summary h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.dashboard-report-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  max-width: 360px;
}

.dashboard-report-button {
  width: fit-content;
}

.dashboard-report-help {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.7;
  font-size: 0.9rem;
}

.dashboard-quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quick-link-card,
.kpi-action {
  border: none;
  text-align: right;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
}

.quick-link-card:hover,
.kpi-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(57, 44, 20, 0.1);
}

.quick-link-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 241, 225, 0.9));
  border: 1px solid rgba(23, 38, 30, 0.08);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(57, 44, 20, 0.08);
}

.quick-link-card strong {
  font-size: 1.55rem;
  line-height: 1;
}

.quick-link-card small,
.quick-link-label {
  color: var(--muted-strong);
}

.quick-link-label {
  font-size: 0.86rem;
  font-weight: 700;
}

.quick-link-card small {
  font-size: 0.82rem;
  line-height: 1.45;
}

.quick-link-card.danger {
  border-color: rgba(193, 55, 55, 0.24);
}

.quick-link-card.warn {
  border-color: rgba(217, 143, 43, 0.3);
}

.quick-link-card.ok {
  border-color: rgba(13, 107, 87, 0.2);
}

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

.dashboard-card,
.action-card,
.insight-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.dashboard-card h4,
.action-card h4,
.insight-card h4,
.list-card h4 {
  margin: 0 0 14px;
}

.dashboard-list,
.action-list,
.mini-list {
  display: grid;
  gap: 12px;
}

.dashboard-item,
.action-item,
.mini-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: white;
}

.dashboard-item strong,
.action-item strong,
.mini-item strong {
  display: block;
  margin-bottom: 6px;
}

.item-meta,
.item-note {
  color: var(--muted-strong);
  line-height: 1.6;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.kpi-card {
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(13, 107, 87, 0.09), rgba(217, 143, 43, 0.12));
  border: 1px solid rgba(13, 107, 87, 0.1);
  width: 100%;
}

.kpi-card h5,
.kpi-card p {
  margin: 0;
}

.kpi-card h5 {
  color: var(--muted-strong);
  font-weight: 800;
}

.dashboard-tap-note {
  padding: 0 4px;
}

.kpi-value {
  font-size: 2rem;
  font-weight: 800;
  margin: 10px 0 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.badge.danger {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.badge.warn {
  background: var(--warn-bg);
  color: var(--warn-text);
}

.badge.ok {
  background: var(--ok-bg);
  color: var(--ok-text);
}

.dashboard-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.list-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.jump-button {
  border: none;
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(13, 107, 87, 0.1);
  color: var(--primary-dark);
  cursor: pointer;
  margin-top: 10px;
}

.hidden {
  display: none !important;
}

.helper-text {
  color: var(--muted-strong);
  font-size: 0.92rem;
  margin: 0;
}

.error-text {
  color: #a22c2c;
  margin: 0;
}

.users-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  margin-top: 22px;
}

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

.permission-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: white;
}

.permission-item select {
  min-width: 130px;
}

.user-list {
  display: grid;
  gap: 12px;
}

.user-list-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: white;
}

.user-list-item strong,
.user-list-item p {
  margin: 0;
}

.user-list-item p {
  color: var(--muted-strong);
  margin-top: 6px;
}

.activity-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.activity-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.activity-summary-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: white;
  display: grid;
  gap: 6px;
}

.activity-summary-card strong {
  font-size: 1.7rem;
  color: var(--primary);
}

.activity-summary-card span {
  font-weight: 700;
}

.activity-summary-card small {
  color: var(--muted-strong);
  line-height: 1.6;
}

.activity-log-table td {
  font-size: 0.92rem;
  line-height: 1.65;
}

.review-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid var(--line);
  background: rgba(23, 38, 30, 0.06);
}

.review-status-badge.ok {
  color: var(--ok-text);
  background: var(--ok-bg);
  border-color: rgba(13, 107, 87, 0.2);
}

.review-status-badge.warn {
  color: var(--warn-text);
  background: var(--warn-bg);
  border-color: rgba(217, 143, 43, 0.24);
}

.review-status-badge.danger {
  color: var(--danger-text);
  background: var(--danger-bg);
  border-color: rgba(193, 55, 55, 0.22);
}

.review-action-stack {
  display: grid;
  gap: 8px;
}

.header-shortcut-review {
  position: relative;
  border: 1px solid rgba(193, 55, 55, 0.18);
  background: linear-gradient(135deg, rgba(193, 55, 55, 0.12), rgba(255, 248, 244, 0.96));
}

.header-shortcut-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #b53a3a;
  color: white;
  font-weight: 800;
  margin-inline-start: 8px;
}

.signature-preview-card {
  border: 1px dashed rgba(13, 107, 87, 0.24);
  border-radius: 16px;
  padding: 14px;
  background: rgba(13, 107, 87, 0.04);
  display: grid;
  gap: 10px;
}

.signature-preview-image {
  max-width: 220px;
  max-height: 96px;
  object-fit: contain;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
}

.section-approval-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(217, 143, 43, 0.12), transparent 22%),
    linear-gradient(145deg, rgba(13, 107, 87, 0.05), rgba(255, 250, 240, 0.95));
  display: grid;
  gap: 14px;
}

.section-approval-panel.danger {
  border-color: rgba(193, 55, 55, 0.22);
}

.section-approval-panel.warn {
  border-color: rgba(217, 143, 43, 0.26);
}

.section-approval-panel.ok {
  border-color: rgba(13, 107, 87, 0.2);
}

.section-approval-copy h5,
.section-approval-copy p {
  margin: 0;
}

.section-approval-copy h5 {
  font-size: 1.18rem;
  margin-top: 4px;
}

.section-approval-meta {
  color: var(--muted-strong);
  line-height: 1.7;
}

.section-approval-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.section-approval-stat {
  border-radius: 16px;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

.section-approval-stat strong {
  font-size: 1.45rem;
  color: var(--primary);
}

.section-approval-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workspace-header,
.table-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.workspace-header-interactive {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.dashboard-header-active {
  padding: 22px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(217, 143, 43, 0.18), transparent 22%),
    linear-gradient(145deg, rgba(13, 107, 87, 0.08), rgba(255, 250, 240, 0.96));
  border: 1px solid rgba(13, 107, 87, 0.12);
}

.header-insight-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.header-insight-card,
.header-shortcut-button {
  border: none;
  border-radius: 18px;
  cursor: pointer;
  font: inherit;
  text-align: right;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.header-insight-card:hover,
.header-shortcut-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(57, 44, 20, 0.08);
}

.header-insight-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(23, 38, 30, 0.08);
  color: var(--text);
}

.header-insight-card span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.header-insight-card strong {
  font-size: 1.5rem;
  line-height: 1;
}

.header-insight-card.danger {
  border-color: rgba(193, 55, 55, 0.24);
}

.header-insight-card.warn {
  border-color: rgba(217, 143, 43, 0.28);
}

.header-insight-card.ok {
  border-color: rgba(13, 107, 87, 0.2);
}

.header-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.header-shortcut-button {
  padding: 11px 16px;
  background: rgba(23, 38, 30, 0.06);
  color: var(--text);
  border: 1px solid rgba(23, 38, 30, 0.12);
}

.header-shortcut-accent {
  background: linear-gradient(135deg, rgba(217, 143, 43, 0.18), rgba(247, 224, 182, 0.72));
  border: 1px solid rgba(217, 143, 43, 0.22);
  color: #553104;
  font-weight: 800;
}

.table-panel-copy {
  display: grid;
  gap: 6px;
}

.table-panel-copy h4,
.table-panel-copy p {
  margin: 0;
}

.section-insights {
  display: grid;
  gap: 18px;
  margin: 18px 0 20px;
}

.reception-report-panel {
  border: 1px solid rgba(13, 107, 87, 0.12);
  border-radius: 22px;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(217, 143, 43, 0.12), transparent 22%),
    linear-gradient(145deg, rgba(13, 107, 87, 0.06), rgba(255, 250, 240, 0.96));
}

.reception-report-header,
.reception-report-header h5,
.reception-report-header p,
.reception-schedule-card h6,
.reception-schedule-card p,
.reception-kpi strong,
.reception-kpi span {
  margin: 0;
}

.reception-report-header {
  display: grid;
  gap: 10px;
}

.reception-report-header h5 {
  font-size: 1.32rem;
}

.reception-report-caption {
  color: var(--muted);
  line-height: 1.8;
}

.reception-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.reception-kpi {
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(23, 38, 30, 0.08);
  display: grid;
  gap: 8px;
}

.reception-kpi strong {
  font-size: 1.45rem;
  color: var(--primary-dark);
}

.reception-kpi span {
  color: var(--muted);
  font-weight: 700;
}

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

.reception-schedule-card {
  border-radius: 20px;
  border: 1px solid rgba(23, 38, 30, 0.1);
  background: rgba(255, 255, 255, 0.9);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.reception-schedule-head {
  display: grid;
  gap: 8px;
}

.reception-schedule-head h6 {
  font-size: 1.06rem;
}

.reception-schedule-note {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.92rem;
}

.reception-summary-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 760px;
}

.reception-summary-table th,
.reception-summary-table td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(23, 38, 30, 0.08);
  vertical-align: middle;
}

.reception-summary-table th {
  font-size: 0.92rem;
  color: var(--primary-dark);
  background: rgba(13, 107, 87, 0.06);
  font-weight: 800;
}

.reception-summary-table tbody tr:last-child td {
  border-bottom: none;
}

.reception-summary-table td {
  background: rgba(255, 255, 255, 0.94);
}

.reception-cell-date {
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.reception-cell-number {
  font-weight: 800;
  color: var(--primary-dark);
}

.reception-cell-muted {
  color: var(--muted);
}

.reception-cell-highlight {
  color: #8f5810;
  font-weight: 700;
}

.reception-movement-list {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.reception-movement-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(13, 107, 87, 0.08);
  font-size: 0.82rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  margin-top: 22px;
  align-items: start;
}

.content-grid.form-collapsed {
  grid-template-columns: 1fr;
}

.form-panel,
.table-panel {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.form-panel {
  position: sticky;
  top: 20px;
}

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

.icon-button {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 14px;
  background: rgba(23, 38, 30, 0.08);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.add-record-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-inline: 16px;
}

.button-plus {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.15rem;
  line-height: 1;
}

.entry-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  font-weight: 700;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(23, 38, 30, 0.14);
  padding: 11px 13px;
  background: white;
}

.field-group textarea {
  min-height: 96px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 10px;
}

.attachments-panel {
  border: 1px dashed rgba(13, 107, 87, 0.28);
  border-radius: 16px;
  padding: 14px;
  background: rgba(13, 107, 87, 0.04);
}

.attachments-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.attachment-add-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px dashed rgba(13, 107, 87, 0.34);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(13, 107, 87, 0.08), rgba(217, 143, 43, 0.12));
  color: var(--primary-dark);
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
}

.attachment-add-trigger:hover {
  background: linear-gradient(145deg, rgba(13, 107, 87, 0.14), rgba(217, 143, 43, 0.16));
}

.attachment-plus {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  font-size: 1.35rem;
  line-height: 1;
}

.attachment-add-copy {
  display: grid;
  gap: 2px;
}

.attachment-add-copy small {
  color: var(--muted);
  font-weight: 500;
}

.attachments-panel h5,
.attachments-list,
.attachment-item p {
  margin: 0;
}

.attachments-panel h5 {
  margin-bottom: 10px;
}

.attachments-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.attachment-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 10px 12px;
}

.attachment-name {
  font-weight: 700;
}

.attachment-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

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

.link-button {
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  background: rgba(13, 107, 87, 0.1);
  color: var(--primary-dark);
}

.link-button.danger {
  background: rgba(193, 55, 55, 0.12);
  color: #a22c2c;
}

.link-button.subtle {
  background: rgba(23, 38, 30, 0.08);
  color: var(--text);
}

.attachment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attachment-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(13, 107, 87, 0.08);
  color: var(--primary-dark);
  font-size: 0.88rem;
}

.inline-status-select {
  width: 100%;
  min-width: 132px;
  border: 1px solid rgba(13, 107, 87, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.inline-status-select:focus {
  border-color: rgba(13, 107, 87, 0.48);
  box-shadow: 0 0 0 3px rgba(13, 107, 87, 0.12);
}

body.theme-dark .inline-status-select {
  background: rgba(24, 35, 30, 0.96);
  color: #f8f3e7;
  border-color: rgba(217, 143, 43, 0.25);
}

.inline-create-row td {
  background: rgba(13, 107, 87, 0.04);
}

.inline-create-compact {
  display: grid;
  gap: 14px;
  padding: 4px 0;
}

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

.inline-create-compact-field {
  display: grid;
  gap: 6px;
}

.inline-create-compact-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.inline-create-compact-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.inline-create-attachments-wrap {
  flex: 1 1 260px;
}

.inline-table-input {
  width: 100%;
  min-width: 120px;
  border: 1px solid rgba(13, 107, 87, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea.inline-table-input {
  resize: vertical;
  min-height: 74px;
}

.inline-table-input:focus {
  border-color: rgba(13, 107, 87, 0.44);
  box-shadow: 0 0 0 3px rgba(13, 107, 87, 0.10);
}

.inline-create-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.inline-create-placeholder {
  color: var(--muted);
  font-size: 0.9rem;
}

.inline-readonly-cell {
  min-width: 120px;
}

.inline-attachment-stack {
  display: grid;
  gap: 8px;
  min-width: 180px;
}

.inline-attachment-trigger {
  padding: 10px 12px;
  border-radius: 16px;
}

.worker-portal-shell {
  display: grid;
  gap: 18px;
}

body.worker-portal-mode .app-shell {
  grid-template-columns: minmax(260px, 320px) 1fr;
}

body.worker-portal-mode .sidebar {
  gap: 18px;
}

body.worker-portal-mode .sidebar > .sidebar-group:first-of-type,
body.worker-portal-mode #intro-view,
body.worker-portal-mode #stats-grid,
body.worker-portal-mode .workspace-tools,
body.worker-portal-mode .table-panel {
  display: none !important;
}

body.worker-portal-mode .workspace-card {
  padding: 22px;
}

body.worker-portal-mode .dashboard-view {
  display: block !important;
}

.worker-portal-shell-mobile .worker-portal-grid {
  grid-template-columns: minmax(0, 1fr);
}

.worker-submit-success {
  margin-top: 14px;
  border-radius: 18px;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(13, 107, 87, 0.18);
  background: linear-gradient(180deg, rgba(224, 247, 237, 0.94), rgba(255, 255, 255, 0.9));
  color: var(--primary-dark);
}

.worker-submit-success small {
  color: var(--muted-strong);
}

.worker-submit-button {
  min-width: 180px;
}

.worker-portal-hero,
.worker-portal-form-card,
.worker-portal-feed-card,
.worker-portal-admin-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 34px rgba(57, 44, 20, 0.08);
  padding: 20px;
}

.worker-portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.worker-portal-stats,
.worker-admin-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.worker-admin-summary-extended {
  margin-bottom: 14px;
}

.worker-stat-card {
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(13, 107, 87, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,240,224,0.85));
  display: grid;
  gap: 6px;
}

.worker-stat-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.worker-stat-card strong {
  font-size: 1.8rem;
  color: var(--primary-dark);
}

.worker-stat-card small {
  color: var(--muted-strong);
  font-size: 0.85rem;
}

.worker-stat-card.tone-top {
  border-color: rgba(13, 107, 87, 0.28);
  background: linear-gradient(180deg, rgba(224, 247, 237, 0.94), rgba(255, 255, 255, 0.92));
}

.worker-stat-card.tone-low {
  border-color: rgba(193, 55, 55, 0.24);
  background: linear-gradient(180deg, rgba(255, 235, 235, 0.96), rgba(255, 255, 255, 0.92));
}

.worker-portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.worker-portal-grid-admin {
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
}

.worker-admin-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.worker-admin-heading h4 {
  margin: 0 0 6px;
}

.worker-admin-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.worker-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.worker-category-button {
  border: 1px solid rgba(13, 107, 87, 0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.95);
  color: var(--text);
  padding: 14px 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.worker-category-button.active,
.worker-category-button:hover {
  border-color: rgba(13, 107, 87, 0.34);
  background: rgba(13, 107, 87, 0.08);
  box-shadow: 0 10px 18px rgba(13, 107, 87, 0.08);
  transform: translateY(-1px);
}

.worker-log-item {
  border: 1px solid rgba(13, 107, 87, 0.1);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,0.94);
  display: grid;
  gap: 8px;
}

.worker-log-item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.worker-log-item-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.worker-performance-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.worker-performance-item {
  border: 1px solid rgba(13, 107, 87, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  padding: 16px;
  display: grid;
  gap: 12px;
  box-shadow: 0 12px 22px rgba(57, 44, 20, 0.07);
}

.worker-performance-item.top {
  border-color: rgba(13, 107, 87, 0.3);
  background: linear-gradient(180deg, rgba(224, 247, 237, 0.7), rgba(255, 255, 255, 0.96));
}

.worker-performance-item.low {
  border-color: rgba(193, 55, 55, 0.22);
  background: linear-gradient(180deg, rgba(255, 239, 239, 0.78), rgba(255, 255, 255, 0.96));
}

.worker-performance-head,
.worker-performance-metrics,
.worker-performance-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.worker-performance-role {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

.worker-performance-metrics span,
.worker-performance-foot {
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.worker-performance-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.worker-performance-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(13, 107, 87, 0.08);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 700;
}

.worker-performance-tag.muted {
  background: rgba(102, 112, 133, 0.08);
  color: var(--muted-strong);
}

.worker-admin-intro-card {
  align-content: start;
}

.worker-admin-info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

body.theme-dark .worker-portal-hero,
body.theme-dark .worker-portal-form-card,
body.theme-dark .worker-portal-feed-card,
body.theme-dark .worker-portal-admin-card {
  background: rgba(24, 35, 30, 0.92);
  border-color: rgba(217, 143, 43, 0.16);
}

body.theme-dark .worker-stat-card,
body.theme-dark .worker-log-item,
body.theme-dark .worker-category-button,
body.theme-dark .worker-performance-item {
  background: rgba(15, 24, 20, 0.92);
  border-color: rgba(217, 143, 43, 0.16);
  color: #f8f3e7;
}

body.theme-dark .worker-stat-card.tone-top,
body.theme-dark .worker-performance-item.top {
  background: linear-gradient(180deg, rgba(13, 107, 87, 0.34), rgba(15, 24, 20, 0.94));
}

body.theme-dark .worker-stat-card.tone-low,
body.theme-dark .worker-performance-item.low {
  background: linear-gradient(180deg, rgba(130, 33, 33, 0.34), rgba(15, 24, 20, 0.94));
}

body.theme-dark .worker-performance-tag {
  background: rgba(217, 143, 43, 0.16);
  color: #f8f3e7;
}

body.theme-dark .worker-performance-tag.muted,
body.theme-dark .worker-performance-role,
body.theme-dark .worker-performance-metrics span,
body.theme-dark .worker-performance-foot,
body.theme-dark .worker-stat-card small {
  color: rgba(248, 243, 231, 0.78);
}

body.theme-dark .worker-submit-success {
  background: linear-gradient(180deg, rgba(13, 107, 87, 0.34), rgba(15, 24, 20, 0.94));
  border-color: rgba(217, 143, 43, 0.18);
  color: #f8f3e7;
}

body.theme-dark .inline-table-input {
  background: rgba(24, 35, 30, 0.96);
  color: #f8f3e7;
  border-color: rgba(217, 143, 43, 0.25);
}

.table-wrapper {
  overflow: auto;
  margin-top: 14px;
  border-radius: 16px;
  -webkit-overflow-scrolling: touch;
}

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

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: top;
}

th {
  color: var(--primary-dark);
  background: rgba(13, 107, 87, 0.06);
  position: sticky;
  top: 0;
}

.table-action {
  border: none;
  background: rgba(217, 143, 43, 0.14);
  color: #774d11;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

#table-search {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: white;
  min-width: 220px;
}

.empty-state {
  text-align: center;
  padding: 26px;
  color: var(--muted);
}

.records-cards {
  display: none;
  gap: 12px;
  margin-top: 14px;
}

.record-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  padding: 14px;
  display: grid;
  gap: 10px;
  box-shadow: 0 12px 24px rgba(57, 44, 20, 0.08);
}

.record-card-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.record-card-title {
  font-weight: 800;
}

.record-card-grid {
  display: grid;
  gap: 8px;
}

.record-card-item {
  display: grid;
  gap: 3px;
}

.record-card-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.record-card-value {
  word-break: break-word;
}

.record-card-summary {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: right;
  cursor: pointer;
}

.record-summary-main {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.record-summary-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}

.record-summary-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.record-action-button {
  border: none;
  border-radius: 999px;
  padding: 9px 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}

.record-action-button.call {
  background: rgba(13, 107, 87, 0.12);
  color: var(--primary-dark);
}

.record-action-button.whatsapp {
  background: rgba(37, 211, 102, 0.14);
  color: #167c3b;
}

.record-status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.record-status-pill.danger {
  background: rgba(193, 55, 55, 0.12);
  color: #a22c2c;
}

.record-status-pill.warn {
  background: rgba(217, 143, 43, 0.14);
  color: #8f5810;
}

.record-card-details {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.details-row td {
  background: rgba(13, 107, 87, 0.03);
}

.salary-movement-panel {
  display: grid;
  gap: 12px;
  padding: 10px 4px;
}

.salary-movement-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.salary-movement-toolbar h5 {
  margin: 0;
  color: var(--primary-dark);
}

.salary-movement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.salary-movement-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.salary-movement-head,
.salary-movement-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.salary-movement-meta {
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.salary-movement-note {
  color: var(--text);
}

.compact-empty {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 14px;
}

.record-card-collapsible.is-danger {
  border-color: rgba(193, 55, 55, 0.3);
  background:
    linear-gradient(180deg, rgba(193, 55, 55, 0.06), rgba(255, 255, 255, 0) 34%),
    white;
}

.record-card-collapsible.is-warn {
  border-color: rgba(217, 143, 43, 0.26);
}

.record-card-collapsible.is-open {
  box-shadow: 0 16px 28px rgba(57, 44, 20, 0.1);
}

@media (max-width: 1100px) {
  .public-complaint-grid,
  .complaints-qr-form {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 20px 18px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid,
  .dashboard-footer {
    grid-template-columns: 1fr;
  }

  .reception-schedule-grid,
  .reception-kpi-strip {
    grid-template-columns: 1fr 1fr;
  }

  .users-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .public-complaint-shell {
    padding: 14px;
  }

  .public-complaint-card {
    padding: 16px;
    border-radius: 24px;
  }

  .public-complaint-brand,
  .public-attachments-head,
  .complaints-qr-head,
  .public-attachment-item,
  .complaints-qr-item,
  .public-complaint-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    position: sticky;
    top: 10px;
    z-index: 900;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 20px;
    background: rgba(255, 250, 240, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.52);
    box-shadow: 0 16px 32px rgba(57, 44, 20, 0.12);
    backdrop-filter: blur(14px);
  }

  .mobile-topbar > * {
    position: relative;
    z-index: 1;
  }

  .mobile-sync-badge {
    width: 100%;
    justify-content: flex-start;
    order: 3;
  }

  .mobile-topbar-meta {
    flex: 1;
    min-width: 0;
  }

  .main-content {
    padding: 14px;
  }

  .mobile-menu-toggle {
    min-width: 104px;
    padding: 12px 14px;
    box-shadow: 0 12px 24px rgba(13, 107, 87, 0.18);
  }

  .hero,
  .workspace-header,
  .table-panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .activity-filter-grid,
  .activity-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-header-active {
    padding: 18px;
    border-radius: 22px;
  }

  .header-insight-strip {
    grid-template-columns: 1fr;
  }

  .header-insight-card {
    border-radius: 16px;
  }

  .header-shortcuts {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .panel-heading {
    align-items: center;
  }

  .workspace-card {
    padding: 16px;
    border-radius: 22px;
  }

  .hero {
    padding: 18px;
    border-radius: 22px;
  }

  .hero h2 {
    font-size: 1.55rem;
    line-height: 1.35;
  }

  .hero-copy,
  .workspace-description {
    font-size: 0.96rem;
    max-width: none;
  }

  .hero-actions,
  .workspace-tools,
  .inline-actions,
  .form-actions,
  .attachment-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .intro-actions-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .intro-action-card {
    padding: 14px;
    border-radius: 18px;
  }

  .attachments-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .attachment-add-trigger {
    width: 100%;
    justify-content: center;
  }

  .button,
  .link-button,
  .table-action {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .icon-button {
    width: 42px;
    min-width: 42px;
  }

  .stats-grid,
  .dashboard-kpis {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .reception-report-panel,
  .reception-schedule-card {
    padding: 16px;
    border-radius: 18px;
  }

  .reception-schedule-grid,
  .reception-kpi-strip {
    grid-template-columns: 1fr;
  }

  .reception-kpi strong {
    font-size: 1.25rem;
  }

.reception-summary-table {
  min-width: 680px;
}

.reception-summary-cards {
  display: none;
}

.reception-summary-card-mobile {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.reception-summary-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.reception-summary-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  color: var(--muted-strong);
  font-weight: 700;
}

.reception-summary-card-note {
  display: grid;
  gap: 6px;
}

  .dashboard-mobile-hero {
    padding: 16px;
    border-radius: 22px;
  }

  .dashboard-mobile-summary h4 {
    font-size: 1.28rem;
    line-height: 1.45;
  }

  .dashboard-quick-links {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .quick-link-card {
    min-height: 108px;
    padding: 14px 12px;
    border-radius: 18px;
    align-content: start;
    justify-items: start;
  }

  .quick-link-card strong {
    font-size: 1.45rem;
  }

  .quick-link-label {
    font-size: 0.88rem;
  }

  .quick-link-card small {
    font-size: 0.78rem;
  }

  .stat-card,
  .kpi-card {
    padding: 14px;
  }

  .stat-value,
  .kpi-value {
    font-size: 1.55rem;
  }

  .form-panel,
  .table-panel,
  .dashboard-card,
  .action-card,
  .insight-card,
  .list-card,
  .auth-card {
    padding: 16px;
    border-radius: 18px;
  }

  .content-grid,
  .users-grid,
  .dashboard-grid,
  .dashboard-footer {
    gap: 14px;
    margin-top: 16px;
  }

  .form-panel {
    position: static;
    top: auto;
    scroll-margin-top: 92px;
  }

  .table-panel-header {
    gap: 12px;
  }

  .activity-filter-grid,
  .activity-summary-grid {
    grid-template-columns: 1fr;
  }

  .table-panel-header .inline-actions {
    gap: 10px;
  }

  .table-panel-header h4,
  .form-panel h4,
  .workspace-header h3 {
    line-height: 1.4;
  }

  #table-search {
    min-width: 100%;
    width: 100%;
  }

  table {
    min-width: 680px;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(88vw, 340px);
    height: 100vh;
    z-index: 1200;
    transform: translateX(-104%);
    transition: transform 180ms ease;
    border-radius: 0;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  body.sidebar-open {
    overflow: hidden;
  }

  .mobile-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(18, 34, 28, 0.42);
    backdrop-filter: blur(4px);
    z-index: 1100;
  }

  th,
  td {
    padding: 10px 8px;
    font-size: 0.92rem;
  }

  .attachment-item,
  .user-list-item,
  .dashboard-item,
  .action-item,
  .mini-item {
    padding: 12px;
  }

  .dashboard-item,
  .action-item,
  .mini-item {
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(13, 107, 87, 0.04), rgba(255, 255, 255, 0) 36%),
      white;
  }

  .permissions-grid {
    grid-template-columns: 1fr;
  }

  .permission-item {
    flex-direction: column;
    align-items: stretch;
  }

  .permission-item select {
    min-width: 100%;
  }

  .sidebar {
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
  }

  .section-nav {
    gap: 10px;
  }

  .nav-section-group {
    gap: 10px;
  }

  .section-link {
    padding: 14px;
    font-size: 1rem;
  }

  .section-link-icon {
    width: 36px;
    height: 36px;
  }

  .user-card {
    padding: 12px;
  }

  .auth-overlay {
    padding: 14px;
  }

  .table-wrapper {
    display: none;
  }

  .records-cards {
    display: grid;
    gap: 14px;
  }

  .reception-summary-cards {
    display: grid;
    gap: 12px;
    margin-top: 14px;
  }

  .record-card {
    padding: 14px;
    border-radius: 18px;
    background: white;
  }

  .record-card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .record-card-title {
    font-size: 1.02rem;
    line-height: 1.5;
  }

  .record-card-summary {
    align-items: flex-start;
  }

  .record-summary-actions {
    flex-direction: column;
    min-width: 82px;
  }

  .record-action-button {
    text-align: center;
    padding: 8px 10px;
  }

  .record-card-grid {
    gap: 10px;
  }

  .record-card-item {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(23, 38, 30, 0.04);
    border: 1px solid rgba(23, 38, 30, 0.06);
  }

  .attachment-tags {
    display: grid;
    grid-template-columns: 1fr;
  }

  .attachment-tag {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .main-content {
    padding: 12px;
  }

  .hero,
  .workspace-card {
    padding: 14px;
  }

  .mobile-topbar {
    top: 8px;
    padding: 10px 12px;
    border-radius: 18px;
  }

  .stats-grid,
  .dashboard-kpis {
    grid-template-columns: 1fr;
  }

  .dashboard-quick-links {
    grid-template-columns: 1fr;
  }

  .worker-portal-hero,
  .worker-portal-grid {
    grid-template-columns: 1fr;
  }

  .public-worker-phone-row {
    flex-direction: column;
    align-items: stretch;
  }

  .header-shortcuts {
    grid-template-columns: 1fr;
  }

  .quick-link-card {
    min-height: auto;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "label value"
      "note note";
    align-items: center;
    gap: 8px 12px;
    padding: 13px 14px;
  }

  .quick-link-card strong {
    grid-area: value;
    font-size: 1.3rem;
    justify-self: end;
  }

  .quick-link-label {
    grid-area: label;
    font-size: 0.9rem;
    margin: 0;
  }

  .quick-link-card small {
    grid-area: note;
    font-size: 0.8rem;
  }

  .brand {
    align-items: flex-start;
  }

  .brand h1 {
    font-size: 1.6rem;
  }

  .brand p,
  .sidebar-title,
  .helper-text,
  .item-meta,
  .item-note {
    font-size: 0.9rem;
  }

  .hero h2 {
    font-size: 1.35rem;
  }

  .mobile-topbar-meta strong {
    font-size: 0.92rem;
  }

  .mobile-topbar-meta span {
    font-size: 0.8rem;
  }

  .workspace-header,
  .table-panel-header {
    gap: 12px;
  }

  .record-card {
    padding: 14px;
  }

  .record-card-summary {
    gap: 10px;
  }

  .record-summary-actions {
    min-width: 72px;
  }

  .record-action-button {
    font-size: 0.82rem;
    padding: 8px 9px;
  }

  .record-card-item {
    padding: 9px 10px;
  }

  .user-card select,
  .field-group input,
  .field-group select,
  .field-group textarea {
    padding: 12px;
  }
}
