.real-page {
  color: #19332e;
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 1560px;
  width: 100%;
}

.real-page-header {
  align-items: flex-end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.real-page-header span {
  color: #1b6b5d;
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.real-page-header h2 {
  color: #16352f;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 8px;
}

.real-page-header p {
  color: #71857f;
  font-size: 12px;
  margin: 0;
}

.real-badge {
  align-items: center;
  background: #e4f3ec;
  border: 1px solid #c8e3d7;
  border-radius: 999px;
  color: #176453;
  display: inline-flex;
  font-size: 9px;
  font-weight: 800;
  gap: 6px;
  padding: 7px 10px;
  white-space: nowrap;
}

.real-badge::before {
  background: currentColor;
  border-radius: 50%;
  content: "";
  height: 6px;
  width: 6px;
}

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

.real-card,
.real-panel {
  background: #fffef9;
  border: 1px solid #d5e0db;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(24, 67, 58, .07);
}

.real-card {
  min-height: 132px;
  padding: 20px;
}

.real-card label {
  color: #6f837d;
  display: block;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 17px;
}

.real-card strong {
  color: #173b34;
  display: block;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 9px;
}

.real-card small {
  color: #81928d;
  font-size: 9px;
}

.real-module-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.real-module {
  align-items: flex-start;
  background: linear-gradient(145deg, #fffef9, #f5f8f2);
  border: 1px solid #d4dfda;
  border-radius: 18px;
  color: #23463e;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 14px;
  min-height: 132px;
  padding: 20px;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease;
}

.real-module:hover {
  box-shadow: 0 14px 30px rgba(24, 73, 63, .12);
  transform: translateY(-2px);
}

.real-module-icon {
  align-items: center;
  background: #dff19c;
  border-radius: 13px;
  color: #174f45;
  display: inline-flex;
  flex: 0 0 auto;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.real-module-icon svg,
.real-action svg,
.real-search svg {
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.real-module strong {
  display: block;
  font-size: 13px;
  margin: 2px 0 6px;
}

.real-module small {
  color: #758982;
  display: block;
  font-size: 10px;
  line-height: 1.5;
}

.real-panel {
  overflow: hidden;
}

.real-toolbar {
  align-items: center;
  border-bottom: 1px solid #e1e8e4;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 17px 19px;
}

.real-toolbar h3 {
  color: #213f38;
  font-size: 13px;
  margin: 0 0 3px;
}

.real-toolbar p {
  color: #7b8d88;
  font-size: 9px;
  margin: 0;
}

.real-tools {
  align-items: center;
  display: flex;
  gap: 8px;
}

.real-search {
  align-items: center;
  background: #fff;
  border: 1px solid #ccd9d3;
  border-radius: 11px;
  color: #728880;
  display: flex;
  min-width: 250px;
  padding: 0 10px;
}

.real-search input,
.real-filter {
  background: transparent;
  border: 0;
  color: #28473f;
  font: inherit;
  font-size: 10px;
  height: 39px;
  outline: none;
}

.real-search input {
  min-width: 0;
  padding: 0 8px;
  width: 100%;
}

.real-filter {
  background: #fff;
  border: 1px solid #ccd9d3;
  border-radius: 11px;
  padding: 0 28px 0 10px;
}

.real-table-wrap {
  overflow-x: auto;
}

.real-table {
  border-collapse: collapse;
  min-width: 940px;
  width: 100%;
}

.real-table th {
  background: #f7f9f5;
  color: #6e827c;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .07em;
  padding: 11px 15px;
  text-align: left;
  text-transform: uppercase;
}

.real-table td {
  border-top: 1px solid #e4eae7;
  color: #304b44;
  font-size: 10px;
  padding: 12px 15px;
  vertical-align: middle;
}

.real-table .number {
  text-align: right;
}

.real-person {
  align-items: center;
  display: flex;
  gap: 10px;
}

.real-avatar {
  align-items: center;
  background: #e2efea;
  border-radius: 10px;
  color: #1b6255;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 8px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.real-person strong {
  color: #213d36;
  display: block;
  font-size: 10px;
  margin-bottom: 2px;
}

.real-person small {
  color: #83958f;
  font-size: 8px;
}

.real-status {
  background: #e4f3ec;
  border-radius: 999px;
  color: #1b6d5b;
  display: inline-block;
  font-size: 8px;
  font-weight: 800;
  padding: 6px 8px;
  text-transform: uppercase;
}

.real-status.pending {
  background: #fff0c8;
  color: #94620c;
}

.real-status.empty {
  background: #edf1ef;
  color: #687c76;
}

.real-action {
  align-items: center;
  background: #fff;
  border: 1px solid #cbd8d2;
  border-radius: 9px;
  color: #19594e;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  gap: 6px;
  justify-content: center;
  min-height: 34px;
  padding: 0 11px;
}

.real-action.primary {
  background: #155448;
  border-color: #155448;
  color: #fff;
}

.real-actions {
  display: flex;
  gap: 6px;
}

.real-empty {
  color: #738781;
  padding: 42px 20px;
  text-align: center;
}

.real-empty strong {
  color: #294a42;
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.real-empty span {
  font-size: 10px;
}

.real-loading {
  align-items: center;
  color: #657b74;
  display: flex;
  justify-content: center;
  min-height: 360px;
}

.real-modal-overlay {
  align-items: center;
  background: rgba(7, 34, 29, .64);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 1200;
}

.real-modal {
  background: #fffef9;
  border-radius: 21px;
  box-shadow: 0 30px 80px rgba(4, 29, 24, .32);
  max-height: calc(100vh - 40px);
  max-width: 590px;
  overflow: auto;
  width: 100%;
}

.real-modal header,
.real-modal footer {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 17px 20px;
}

.real-modal header {
  border-bottom: 1px solid #dfe7e3;
}

.real-modal footer {
  background: #f8faf6;
  border-top: 1px solid #dfe7e3;
  justify-content: flex-end;
}

.real-modal h3 {
  color: #183a33;
  font-size: 16px;
  margin: 0 0 3px;
}

.real-modal header p {
  color: #7d9089;
  font-size: 9px;
  margin: 0;
}

.real-modal-body {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.real-detail {
  border: 1px solid #d9e3de;
  border-radius: 13px;
  overflow: hidden;
}

.real-detail-row {
  align-items: center;
  border-top: 1px solid #e2e9e5;
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
}

.real-detail-row:first-child { border-top: 0; }
.real-detail-row.total { background: #edf5c8; }
.real-detail-row span { color: #70857e; font-size: 9px; }
.real-detail-row strong { color: #24453d; font-size: 10px; }
.real-detail-row.total span,
.real-detail-row.total strong { color: #224532; font-size: 12px; }

.real-field {
  display: grid;
  gap: 6px;
}

.real-field label {
  color: #294b42;
  font-size: 9px;
  font-weight: 800;
}

.real-field input,
.real-field select {
  background: #fff;
  border: 1px solid #cbd9d3;
  border-radius: 10px;
  color: #23443c;
  font: inherit;
  font-size: 10px;
  height: 40px;
  padding: 0 11px;
}

.real-note {
  background: #fff6dd;
  border: 1px solid #ecd699;
  border-radius: 11px;
  color: #755615;
  font-size: 9px;
  line-height: 1.5;
  padding: 10px;
}

.real-receipt-mark {
  align-items: center;
  background: #e3f4eb;
  border: 7px solid #f1f9f4;
  border-radius: 50%;
  color: #176556;
  display: flex;
  font-size: 24px;
  height: 72px;
  justify-content: center;
  margin: 2px auto 0;
  width: 72px;
}

@media (max-width: 1080px) {
  .real-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .real-module-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .real-page-header,
  .real-toolbar { align-items: stretch; flex-direction: column; }
  .real-kpis { grid-template-columns: 1fr; }
  .real-tools { align-items: stretch; flex-direction: column; }
  .real-search { min-width: 0; }
  .real-filter { width: 100%; }
  .real-modal-overlay { align-items: flex-end; padding: 0; }
  .real-modal { border-bottom-left-radius: 0; border-bottom-right-radius: 0; max-height: 92vh; }
  .real-modal footer { align-items: stretch; flex-direction: column-reverse; }
  .real-modal footer .real-action { width: 100%; }
}
