.App {
  min-height: 100vh;
}

.bangla {
  font-family: "Noto Sans Bengali", "SolaimanLipi", "Segoe UI", sans-serif;
}

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

button {
  cursor: pointer;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 18px;
  padding: 24px;
  background:
    linear-gradient(rgba(9, 55, 40, 0.62), rgba(9, 55, 40, 0.72)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.login-panel {
  width: min(440px, 100%);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(7, 42, 31, 0.24);
}

.brand-mark,
.sidebar-logo {
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: #0f7a4f;
}

.brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f7a4f 0%, #13a56f 100%);
  box-shadow: 0 16px 32px rgba(15, 122, 79, 0.2);
}

.brand-mark svg,
.sidebar-logo svg {
  width: 34px;
  height: 34px;
}

.sidebar-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0a6b45 0%, #12b16a 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

img.brand-mark,
img.sidebar-logo {
  object-fit: contain;
  padding: 6px;
  background: #ffffff;
}

.login-panel h1 {
  margin: 18px 0 4px;
  color: #123f31;
  font-size: 34px;
}

.login-panel p {
  margin: 0 0 24px;
  color: #53645e;
}

.login-form,
.stack {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: #34433d;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d6ddd9;
  border-radius: 8px;
  padding: 12px 13px;
  background: #ffffff;
  color: #16241f;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #128456;
  box-shadow: 0 0 0 3px rgba(18, 132, 86, 0.13);
}

textarea {
  resize: vertical;
  line-height: 1.6;
}

.primary-button,
.secondary-button,
.icon-button,
.logout-button {
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary-button {
  min-height: 46px;
  color: #ffffff;
  background: #0f7a4f;
  font-weight: 800;
}

.primary-button:hover {
  background: #0a623f;
}

.secondary-button,
.icon-button {
  background: #ffffff;
  color: #1c332b;
  border: 1px solid #dbe4df;
}

.secondary-button {
  min-height: 42px;
  padding: 0 14px;
  font-weight: 800;
}

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

.error-box {
  padding: 12px;
  border-radius: 8px;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.login-help {
  margin-top: 18px;
  display: grid;
  gap: 6px;
  color: #66746f;
  font-size: 14px;
}

.full-button {
  width: 100%;
  margin-top: 16px;
}

.register-panel {
  width: min(820px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.register-panel .form-grid {
  text-align: left;
}

.register-panel h2 {
  margin: 0 0 6px;
  color: #123f31;
}

.success-box {
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  color: #0b5f3e;
  background: #e8f7ef;
  border: 1px solid #bfe7d2;
}

.sync-box {
  padding: 10px 12px;
  border-radius: 8px;
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-weight: 800;
}

.sync-box.online {
  color: #0b5f3e;
  background: #e8f7ef;
  border-color: #bfe7d2;
}

.sync-box.synced {
  color: #075985;
  background: #e0f2fe;
  border-color: #bae6fd;
}

.sync-box.offline {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.required-mark {
  color: #dc2626;
  font-weight: 900;
}

.portal {
  min-height: 100vh;
  display: flex;
  background: #eef4f1;
  color: #17251f;
}

.sidebar {
  width: 270px;
  min-height: 100vh;
  padding: 18px;
  background: #0b3f31;
  color: #ffffff;
  position: sticky;
  top: 0;
  transition: width 180ms ease;
}

.sidebar.compact {
  width: 90px;
}

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

.sidebar-brand strong,
.sidebar-brand span {
  display: block;
}

.sidebar-brand span {
  color: #b9d8cd;
  font-size: 13px;
}

.sidebar-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 8px;
  background: #128456;
}

.sidebar nav {
  display: grid;
  gap: 8px;
}

.sidebar nav a,
.sidebar nav button,
.logout-button {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  color: #d6eee6;
  background: transparent;
  text-decoration: none;
  border-radius: 8px;
}

.sidebar nav a:hover,
.sidebar nav a.active,
.sidebar nav button:hover,
.sidebar nav button.active {
  background: #128456;
  color: #ffffff;
}

.logout-button {
  margin-top: 22px;
  background: #b91c1c;
  color: #ffffff;
}

.content {
  flex: 1;
  min-width: 0;
  padding: 28px;
}

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

.topbar h2 {
  margin: 0;
  font-size: 28px;
  color: #102b23;
}

.topbar p {
  margin: 3px 0 0;
  color: #60736c;
}

.stat-grid,
.project-grid,
.committee-grid,
.info-grid,
.form-grid {
  display: grid;
  gap: 16px;
}

.stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.dashboard-info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card,
.panel,
.committee-card {
  background: #ffffff;
  border: 1px solid #dfe8e3;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(18, 48, 38, 0.07);
}

.stat-card {
  padding: 20px;
  display: grid;
  gap: 8px;
}

.stat-card svg {
  color: #0f7a4f;
}

.stat-card span,
.info-item span {
  color: #687a73;
  font-size: 14px;
}

.stat-card strong {
  color: #102b23;
  font-size: 24px;
}

.member-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f7a4f 0%, #2563eb 55%, #7c3aed 100%);
  box-shadow: 0 16px 38px rgba(37, 99, 235, 0.22);
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #134e4a 0%, #0f7a4f 42%, #2563eb 100%);
  box-shadow: 0 16px 38px rgba(15, 122, 79, 0.22);
}

.admin-hero span,
.admin-hero p {
  color: rgba(255, 255, 255, 0.84);
}

.admin-hero h2,
.admin-hero p {
  margin: 0;
}

.admin-hero h2 {
  margin: 6px 0;
  font-size: 30px;
}

.admin-hero-badge {
  min-width: 240px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 6px;
}

.admin-hero-badge strong {
  font-size: 24px;
}

.report-hero {
  background: linear-gradient(135deg, #4c1d95 0%, #2563eb 52%, #0f7a4f 100%);
}

.report-filter {
  min-width: 260px;
}

.report-filter label {
  color: #ffffff;
}

.member-hero-profile {
  display: flex;
  align-items: center;
  gap: 18px;
}

.member-hero .avatar {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.member-hero span,
.member-hero p {
  color: rgba(255, 255, 255, 0.84);
}

.member-hero h2,
.member-hero p {
  margin: 0;
}

.member-hero h2 {
  margin: 4px 0;
  font-size: 30px;
}

.member-hero-balance {
  display: grid;
  gap: 4px;
  text-align: right;
}

.member-hero-balance strong {
  font-size: 30px;
}

.member-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.color-stat-card {
  min-height: 122px;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(18, 48, 38, 0.13);
}

.color-stat-card span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.color-stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.color-stat-card.green {
  background: linear-gradient(135deg, #0f7a4f, #22c55e);
}

.color-stat-card.blue {
  background: linear-gradient(135deg, #1d4ed8, #38bdf8);
}

.color-stat-card.amber {
  background: linear-gradient(135deg, #b45309, #f59e0b);
}

.color-stat-card.purple {
  background: linear-gradient(135deg, #6d28d9, #a855f7);
}

.member-color-panel {
  background: linear-gradient(180deg, #ffffff, #f0fdf4);
}

.member-color-panel.warm {
  background: linear-gradient(180deg, #ffffff, #fff7ed);
}

.progress-track {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #dbe4df;
  margin-bottom: 16px;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f7a4f, #2563eb);
}

.panel {
  padding: 22px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.section-title h3,
.notice h3,
.project-card h3,
.profile-header h3 {
  margin: 0;
  color: #102b23;
}

.section-title span,
.notice span {
  color: #687a73;
  font-size: 14px;
}

.form-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.form-grid > label {
  grid-column: span 3;
}

.form-grid .wide,
.form-action {
  grid-column: 1 / -1;
}

.form-grid .third {
  grid-column: span 2;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action-row .primary-button,
.action-row .secondary-button {
  min-width: 160px;
  padding-inline: 16px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

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

.dashboard-grid table {
  min-width: 560px;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid #e7eeeb;
  text-align: left;
  vertical-align: top;
}

th {
  color: #395047;
  background: #f5faf7;
  font-size: 14px;
}

td {
  color: #1c2f28;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-item {
  padding: 14px;
  border: 1px solid #e5eeea;
  border-radius: 8px;
  background: #f8fbfa;
}

.info-item strong {
  display: block;
  margin-top: 5px;
  color: #182b24;
  line-height: 1.5;
}

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

.project-card {
  display: grid;
  gap: 14px;
}

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

.project-card > svg {
  color: #0f7a4f;
}

.project-card p,
.check-list span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.check-list span {
  padding: 8px 10px;
  border-radius: 8px;
  color: #0b5f3e;
  background: #e8f7ef;
}

.document-count,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 8px;
  color: #1d4ed8;
  background: #eff6ff;
  font-weight: 800;
}

.status-pill {
  color: #92400e;
  background: #fffbeb;
}

.project-detail-panel {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.project-note {
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.project-documents {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.project-document {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #dbe4df;
  border-radius: 8px;
  background: #ffffff;
}

.project-document strong,
.project-document span {
  display: block;
}

.project-document span {
  color: #687a73;
  font-size: 13px;
}

.empty-documents {
  margin-top: 10px;
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  background: #f8fafc;
}

.project-member-hero {
  background: linear-gradient(135deg, #0f766e 0%, #16a34a 46%, #2563eb 100%);
}

.member-organization-hero {
  background: linear-gradient(135deg, #14532d 0%, #0f766e 44%, #7c3aed 100%);
}

.permission-editor {
  display: grid;
  gap: 10px;
}

.permission-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dbe4df;
  border-radius: 8px;
  background: #f8fbfa;
}

.permission-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.permission-check {
  display: inline-flex;
  grid-template-columns: auto;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.permission-check input {
  width: auto;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.56);
}

.document-modal {
  width: min(920px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 18px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.3);
}

.receipt-modal {
  width: min(760px, 100%);
}

.receipt-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 14px;
}

.receipt-paper {
  padding: 28px;
  border: 1px solid #dbe4df;
  border-radius: 8px;
  background: #ffffff;
  color: #102b23;
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 2px solid #0f7a4f;
}

.receipt-header span,
.receipt-header p,
.receipt-note {
  color: #60736c;
}

.receipt-header h2,
.receipt-header p {
  margin: 4px 0 0;
}

.receipt-stamp {
  min-width: 120px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid #bfe7d2;
  border-radius: 8px;
  color: #0f7a4f;
  background: #e8f7ef;
}

.receipt-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.receipt-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f7a4f, #2563eb);
}

.receipt-amount span {
  color: rgba(255, 255, 255, 0.84);
}

.receipt-amount strong {
  font-size: 28px;
}

.receipt-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 44px;
}

.receipt-footer div {
  padding-top: 12px;
  border-top: 1px solid #9fb1aa;
  color: #60736c;
  text-align: center;
}

.digital-receipt-notice {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: #e0f2fe;
  color: #075985;
  line-height: 1.7;
}

.document-preview-frame {
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dbe4df;
  border-radius: 8px;
  background: #f8fafc;
}

.document-preview-frame img,
.document-preview-frame iframe {
  width: 100%;
  height: min(68vh, 620px);
  border: 0;
  object-fit: contain;
}

.document-preview-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  color: #475569;
}

.committee-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.committee-card {
  padding: 16px;
  display: grid;
  gap: 7px;
}

.committee-card svg {
  color: #0f7a4f;
}

.committee-card span {
  color: #5c6f68;
}

.committee-card small,
.muted-text {
  color: #60736c;
  line-height: 1.6;
}

.committee-details-box {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #dbe4df;
  border-radius: 8px;
  background: #f8fbfa;
}

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

.committee-detail-form {
  margin-top: 14px;
}

.committee-overview-stack {
  display: grid;
  gap: 16px;
}

.committee-readonly-block {
  padding: 16px;
  border: 1px solid #dbe4df;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
}

.member-committee-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.small-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.gateway-card {
  min-height: 64px;
  border: 1px solid #dbe4df;
  border-radius: 8px;
  background: #ffffff;
  color: #1c332b;
  display: grid;
  place-items: center;
  gap: 6px;
  font-weight: 800;
}

.gateway-card svg {
  color: #0f7a4f;
}

.gateway-card.selected {
  border-color: #0f7a4f;
  background: #e8f7ef;
  box-shadow: 0 0 0 3px rgba(15, 122, 79, 0.12);
}

.gateway-note {
  padding: 12px 14px;
  border: 1px solid #dbe4df;
  border-radius: 8px;
  background: #f8fbfa;
  color: #45564f;
}

.notice {
  display: grid;
  gap: 8px;
}

.notice p {
  margin: 0;
  color: #45564f;
  line-height: 1.7;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #0f7a4f;
  background: #e8f7ef;
  overflow: hidden;
}

.large-avatar {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
}

.avatar img,
.member-thumb img,
.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #0f7a4f;
  background: #e8f7ef;
  border: 1px solid #d4e8df;
}

.photo-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #dbe4df;
  border-radius: 8px;
  background: #f8fbfa;
}

.attachment-preview,
.attachment-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #dbe4df;
  border-radius: 8px;
  background: #f8fbfa;
  color: #1c332b;
  text-decoration: none;
  font-weight: 700;
}

.attachment-preview {
  justify-content: space-between;
}

.attachment-link {
  margin-top: 14px;
}

.photo-preview img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  border: 1px solid #d4e8df;
}

.nominee-photo-block {
  margin-top: 16px;
  display: grid;
  gap: 8px;
  color: #60736c;
  font-weight: 700;
}

.nominee-photo-block img {
  width: 110px;
  height: 110px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #d4e8df;
}

.member-details-panel {
  border-color: #bfe7d2;
}

.member-detail-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.member-detail-head h2,
.member-detail-head p {
  margin: 0;
}

.member-detail-head h2 {
  color: #102b23;
}

.member-detail-head p {
  margin-top: 5px;
  color: #60736c;
}

.compact-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nominee-head {
  margin-top: 12px;
}

.divider {
  height: 1px;
  background: #e5eeea;
  margin: 22px 0;
}

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

.statement-head h3,
.statement-head p {
  margin: 0;
}

.statement-head p {
  margin-top: 6px;
  color: #60736c;
}

@media (max-width: 980px) {
  .stat-grid,
  .member-stat-grid,
  .info-grid,
  .project-grid,
  .committee-grid,
  .gateway-grid,
  .committee-detail-summary,
  .member-committee-summary,
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .portal {
    display: block;
  }

  .sidebar,
  .sidebar.compact {
    width: 100%;
    min-height: auto;
    position: static;
  }

  .sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content {
    padding: 18px;
  }

  .stat-grid,
  .member-stat-grid,
  .info-grid,
  .form-grid,
  .project-grid,
  .committee-grid,
  .gateway-grid,
  .committee-detail-summary,
  .member-committee-summary,
  .dashboard-info-grid {
    grid-template-columns: 1fr;
  }

  .section-title,
  .statement-head,
  .member-hero,
  .admin-hero {
    display: grid;
  }

  .member-hero-balance {
    text-align: left;
  }

  .project-document {
    grid-template-columns: auto minmax(0, 1fr);
  }

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

@media print {
  body:has(.printable-receipt) * {
    visibility: hidden;
  }

  body:has(.printable-receipt) .printable-receipt,
  body:has(.printable-receipt) .printable-receipt * {
    visibility: visible;
  }

  body:has(.printable-receipt) .printable-receipt {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 22px;
    border: 0;
  }

  body:has(.printable-receipt) .receipt-actions {
    display: none !important;
  }

  .sidebar,
  .topbar,
  .secondary-button,
  .primary-button {
    display: none !important;
  }

  .content {
    padding: 0;
  }

  .panel {
    box-shadow: none;
  }
}
