/* Theme colors */
:root {
  --primary: #9f1717;
  --primary-dark: #7f1212;
  --accent: #c9a24a;
  --bg: #f8f6f2;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5ddd3;
}

/* Global reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Page background */
body {
  background-color: var(--bg);
  font-family: "Times New Roman", serif;
  padding: 20px 0;
  color: var(--text);
}

/* Top accent bar */
.top-bar {
  height: 8px;
  background-color: var(--primary);
}

/* Shared A4 document layout */
.document {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  background-color: white;
  padding: 12mm;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

#documentStage {
  display: none;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

/* Document main title */
.document h1 {
  text-align: center;
  font-size: 26px;
  text-decoration: underline;
  margin-bottom: 28px;
}

/* Document footer bar */
.bottom-bar {
  background-color: var(--primary);
  margin-top: 16px;
  padding: 10px 16px;
  text-align: center;
  color: white;
  font-size: 11px;
  line-height: 1.5;
}

/* Small note above footer */
.document-note {
  margin-top: auto;
  padding-top: 18px;
  font-size: 9px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

/* Header area and logo */
.doc-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
}

.logo {
  width: 145px;
}

/* Divider line */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 20px;
}

#certificatePreview .logo {
  width: 250px;
  transform: translateY(-60px);
}

#certificatePreview hr {
  transform: translateY(-30mm);
}

#certificatePreview h1 {
  margin-top: -100px;
}
#receiptPreview .logo {
  width: 250px;
  transform: translateY(-60px);
}
#receiptPreview hr {
  transform: translateY(-30mm);
}

#receiptPreview h1 {
  margin-top: -80px;
}

/* Certificate / receipt meta info */
.doc-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 16px;
}

.logo-text {
  font-size: 32px;
  font-weight: bold;
}

/* Shared content sections */
.info-section {
  margin-bottom: 1px;
}

.info-section h2 {
  font-size: 14px;
  text-decoration: underline;
  margin-bottom: 14px;
}

/* Older row style */
.info-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  font-size: 17px;
}

.info-row p {
  flex: 1;
  line-height: 1.6;
}

/* Treatment and advice block */
.treatment-block {
  margin-top: 8px;
}

.check-line {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 6px;
}

/* Medical advice two-column layout */
.advice-column:last-child {
  margin-left: -350px;
}
.advice-grid {
  display: flex;
  justify-content: space-between;
  gap: 1px;
}

.advice-column {
  flex: 1;
}

/* Remarks line */
.remarks-line {
  border-bottom: 1px dotted #555;
}

/* Shared rows for patient info */
.double-row,
.triple-row {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.double-row .line-field,
.triple-row .line-field {
  flex: 1;
}

/* Label and dotted-line value fields */
.line-field {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.label {
  font-weight: bold;
  white-space: nowrap;
  font-size: 13px;
}

.value {
  flex: 1;
  border-bottom: 1px dotted #666;
  padding-bottom: 2px;
  line-height: 1.3;
  font-size: 13px;
}

.cert-text {
  font-size: 12px;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* Doctor certification layout */
.doctor-row {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.doctor-left,
.doctor-right {
  flex: 1;
}

.doctor-left p,
.doctor-right p {
  font-size: 17px;
  line-height: 2;
}

/* Shared utility spacing */
.single-row {
  margin-bottom: 12px;
}

.single-row .line-field {
  flex: 1;
}

#certificatePreview .triple-row .line-field:nth-child(1) {
  flex: 0.9;
}

#certificatePreview .triple-row .line-field:nth-child(2) {
  flex: 1.05;
}

#certificatePreview .triple-row .line-field:nth-child(3) {
  flex: 0.7;
}

#certificatePreview .double-row .line-field:first-child {
  flex: 5;
}

#certificatePreview .double-row .line-field:last-child {
  flex: 0.95;
}

.line-field-top {
  align-items: flex-start;
}

/* Multi-line text area inside certificate */
.multi-line-value {
  line-height: 1.6;
  min-height: 40px;
}

.advice-column .line-field {
  margin-bottom: 12px;
}

.doctor-left .line-field,
.doctor-right .line-field {
  margin-bottom: 18px;
}

/* Doctor info and QR area */
.doctor-right {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 3px;
  margin-right: -90px;
}

.doctor-right .line-field {
  width: 100%;
  margin-bottom: 10px;
}

/* Verification QR box */
.verify-box {
  margin-top: 0;
  margin-left: 60px;
  text-align: center;
  flex-shrink: 0;
}

.qr-placeholder {
  width: 54px;
  height: 56px;
  border: 1px solid #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: bold;
  background-color: #fff;
}
.qr-image {
  width: 100px;
  height: 100px;
  margin-left: 30px;
  transform: translateX(-20px);
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
#receiptQrImage {
  width: 90px;
  height: 90px;
  transform: translateX(10px);
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Verification helper text */
.verify-text {
  margin-top: 2px;
  margin-left: -37px;
  font-weight: 700;
  font-size: 14px !important ;

  color: var(--primary);
  line-height: 1.2;
}
.receipt-verify-text {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  transform: translateX(10px);
}
/* Receipt payment box */
.payment-box {
  border: 1px solid #333;
  padding: 14px 16px;
  margin-bottom: 28px;
  font-size: 13px;
  line-height: 1.8;
}

.payment-box strong {
  margin-right: 18px;
}

/* Receipt item table */
.receipt-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 13px;
  table-layout: fixed;
}

.receipt-table th,
.receipt-table td {
  border: 1px solid #333;
  padding: 10px 8px;
}

.receipt-table th {
  background-color: var(--primary);
  color: white;
  text-align: center;
  font-weight: 700;
}
.receipt-table th:first-child,
.receipt-table td:first-child {
  text-align: left;
  width: 60%;
}

.receipt-table td:nth-child(2) {
  text-align: center;
  width: 8%;
}

.receipt-table td:nth-child(3),
.receipt-table td:nth-child(4) {
  text-align: right;
  width: 16%;
}

.receipt-table tbody tr:nth-child(even) {
  background-color: rgba(159, 23, 23, 0.018);
}

.receipt-table tbody td,
.summary-value-cell {
  font-variant-numeric: tabular-nums;
}

.receipt-extra-row.is-empty {
  display: none;
}

/* Old summary layout */
.receipt-summary {
  width: 35%;
  margin-left: auto;
  margin-top: 0;
  font-size: 13px;
}

.summary-row {
  display: flex;
  border-left: 1px solid #333;
  border-right: 1px solid #333;
  border-bottom: 1px solid #333;
}

.summary-row:first-child {
  border-top: 1px solid #333;
}

.summary-label,
.summary-value {
  padding: 10px 12px;
}

.summary-label {
  width: 55%;
  text-align: right;
  font-weight: bold;
  border-right: 1px solid #333;
}

.summary-value {
  width: 45%;
  text-align: right;
}

.grand-total .summary-value {
  font-weight: bold;
}

/* Receipt signature section */
.receipt-signature-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-top: 28px;
}

.receipt-signature-left {
  flex: 1;
}

.receipt-signature-right {
  width: 120px;
  text-align: center;
}

.receipt-signature-right .qr-placeholder {
  width: 110px;
  height: 110px;
  margin: 0 auto;
  font-size: 16px;
}

.receipt-verify-text {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

/* Receipt table row heights */
.receipt-table td {
  height: 48px;
}

.receipt-table tfoot td {
  height: 48px;
}

.table-blank {
  background-color: #fff;
}

/* Receipt summary cells */
.summary-label-cell {
  text-align: right;
  font-weight: bold;
  padding-right: 12px;
  background: rgba(159, 23, 23, 0.03);
}

.summary-value-cell {
  text-align: right;
  padding-right: 10px;
}

.grand-total-row .summary-label-cell,
.grand-total-row .summary-value-cell {
  font-weight: bold;
  background: rgba(159, 23, 23, 0.08);
}

.grand-total-row .summary-value-cell {
  color: #8f1515;
}

/* Receipt received-by area */
.receipt-signature-left {
  flex: 1;
  padding-top: 8px;
}

.receipt-sign-line {
  display: flex;
  align-items: flex-end;
  margin-bottom: 22px;
}

.receipt-sign-label {
  width: 95px;
  font-weight: bold;
  font-size: 13px;
}

.receipt-sign-value {
  flex: 1;
  border-bottom: 1px dotted #666;
  min-height: 24px;
  font-size: 13px;
  padding-bottom: 2px;
}

/* Receipt QR alignment */
.receipt-signature-right {
  width: 140px;
  text-align: center;
}

/* Form page */
.form-page {
  max-width: 1140px;
  margin: 28px auto 36px;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  background:
    linear-gradient(
      180deg,
      rgba(159, 23, 23, 0.05) 0%,
      rgba(159, 23, 23, 0) 120px
    ),
    linear-gradient(180deg, #ffffff 0%, #fcf7f7 100%);
  border: 1px solid rgba(159, 23, 23, 0.12);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 18px 42px rgba(70, 16, 16, 0.1);
}

.form-page-header {
  position: relative;
  margin-bottom: 28px;
  padding-bottom: 22px;
  padding-right: 40px;
  border-bottom: 1px solid rgba(159, 23, 23, 0.12);
}

.form-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.form-page h1 {
  font-size: 44px;
  line-height: 1.1;
  color: #7f1212;
  margin-bottom: 12px;
}

.form-intro {
  max-width: 700px;
  font-size: 16px;
  line-height: 1.75;
  color: #6d4a4a;
}

.form-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.form-badge {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(159, 23, 23, 0.12);
  background-color: rgba(255, 255, 255, 0.92);
  color: #7f1212;
  box-shadow: 0 8px 18px rgba(159, 23, 23, 0.05);
  cursor: pointer;
  font-family: inherit;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.form-badge::before {
  font-size: 13px;
}

.form-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.48) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-130%);
  transition: transform 0.35s ease;
}

.form-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(159, 23, 23, 0.28);
  box-shadow: 0 14px 28px rgba(159, 23, 23, 0.14);
}

.form-badge:hover::after {
  transform: translateX(130%);
}

.form-badge:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 6px 14px rgba(159, 23, 23, 0.12);
}

.form-badge:focus-visible {
  outline: none;
  border-color: rgba(159, 23, 23, 0.38);
  box-shadow: 0 0 0 4px rgba(159, 23, 23, 0.1);
}

.form-badge.is-active {
  background: linear-gradient(180deg, #b71c1c 0%, #8f1515 100%);
  color: #fff7f7;
  border-color: #8f1515;
  box-shadow: 0 14px 28px rgba(159, 23, 23, 0.2);
}

.badge-patient {
  background-color: rgba(255, 255, 255, 0.92);
  color: #9f1717;
  border-color: rgba(159, 23, 23, 0.14);
}

.form-badge i {
  margin-right: 8px;
}

.badge-patient::before {
  content: "";
}

.badge-clinic {
  background-color: rgba(255, 255, 255, 0.92);
  color: #7f1212;
  border-color: rgba(159, 23, 23, 0.12);
}

.badge-clinic::before {
  content: "";
}

.badge-travel {
  background-color: rgba(255, 255, 255, 0.92);
  color: #7f1212;
  border-color: rgba(159, 23, 23, 0.12);
}

.badge-travel::before {
  content: "";
}

.badge-payment {
  background-color: rgba(255, 255, 255, 0.92);
  color: #7f1212;
  border-color: rgba(159, 23, 23, 0.12);
}

.badge-payment::before {
  content: "";
}

/* ==================== Card layout ของฟอร์มแบบใหม่ ==================== */
.form-card {
  grid-column: 1 / -1;
  border: 1px solid rgba(159, 23, 23, 0.12);
  border-radius: 24px;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 32px rgba(111, 17, 17, 0.06);
  overflow: hidden;
}

.form-card-header {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(159, 23, 23, 0.08);
  background: #7f1212;
}

.form-card-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.01em;
}
.form-card-header h2 i {
  margin-right: 10px;
}
.form-card-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
}

#paymentCard .form-card-body {
  grid-template-columns: 1fr;
  gap: 18px;
}

#paymentCard .form-card-body > .form-field {
  padding: 16px 18px;
  border-radius: 16px;
}

#paymentCard .payment-method-field,
#paymentCard .payment-editor,
#paymentCard .payment-summary-box,
#paymentCard .payment-received-field {
  grid-column: 1 / -1;
}

/* ==================== Payment form: ตารางกรอกค่าใช้จ่าย ==================== */
.payment-editor {
  border: 1px solid rgba(159, 23, 23, 0.12);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 24px rgba(111, 17, 17, 0.05);
}

.payment-editor-header,
.payment-editor-row {
  display: grid;
  grid-template-columns:
    minmax(220px, 2.3fr) minmax(90px, 0.7fr) minmax(150px, 1fr)
    minmax(170px, 1fr);
  gap: 0;
}

.payment-editor-header {
  background: #f7f1f1;
}

.payment-editor-header span {
  padding: 16px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7f1212;
  border-right: 1px solid rgba(159, 23, 23, 0.08);
}

.payment-editor-header span:last-child {
  border-right: none;
}

.payment-editor-row {
  border-top: 1px solid rgba(159, 23, 23, 0.08);
}

.payment-editor-row:first-of-type {
  border-top: none;
}

.payment-cell {
  display: flex;
  flex-direction: column;
}

.payment-mobile-label {
  display: none;
}

.payment-editor-row input {
  border: none !important;
  border-right: 1px solid rgba(159, 23, 23, 0.08) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
  min-height: 62px;
}

.payment-editor-row input:last-child {
  border-right: none !important;
}

.payment-cell:last-child input {
  border-right: none !important;
}

.payment-editor-row input[readonly] {
  background: #fcf8f8 !important;
  color: #6f1111;
  font-weight: 700;
}

.payment-editor-row input:focus {
  position: relative;
  z-index: 1;
  box-shadow: inset 0 0 0 2px rgba(159, 23, 23, 0.12) !important;
}

/* ==================== Payment form: กล่องสรุปยอด ==================== */
.payment-summary-box {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(159, 23, 23, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdfd 0%, #f9f4f4 100%);
}

.payment-summary-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 220px);
  align-items: center;
  gap: 16px;
}

.payment-summary-row span,
.payment-summary-row label {
  margin-bottom: 0 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #7f1212 !important;
}

.payment-summary-row input[readonly] {
  background: #fcf8f8;
  font-weight: 700;
}

.grand-total-row-form {
  padding-top: 12px;
  border-top: 1px solid rgba(159, 23, 23, 0.12);
}

.grand-total-row-form span {
  font-size: 18px !important;
}

.grand-total-row-form input {
  color: #b61d1d !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

.payment-received-field {
  max-width: 420px;
}

/* ==================== Shared form fields ==================== */
#certificateForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#certificateForm label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #7f1212;
}

#certificateForm input,
#certificateForm select,
#certificateForm textarea {
  width: 100%;
  border: 1px solid rgba(159, 23, 23, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  background-color: #ffffff;
  color: var(--text);
  box-shadow: inset 0 1px 2px rgba(159, 23, 23, 0.02);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

#certificateForm select {
  cursor: pointer;
}

#certificateForm textarea {
  min-height: 140px;
  resize: vertical;
}

#certificateForm input:focus,
#certificateForm select:focus,
#certificateForm textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(159, 23, 23, 0.1);
  background-color: #fffdfb;
}

#certificateForm > .form-field,
.form-card-body > .form-field {
  padding: 18px;
  border: 1px solid rgba(159, 23, 23, 0.12);
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.96);
  border-top: 4px solid rgba(159, 23, 23, 0.24);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

#certificateForm > .form-field:hover,
.form-card-body > .form-field:hover {
  border-color: rgba(159, 23, 23, 0.2);
  background-color: #ffffff;
  box-shadow: 0 12px 24px rgba(111, 17, 17, 0.06);
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-check-only {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
}

.form-check-only label {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0;
  line-height: 1.35;
  min-width: 0;
  word-break: break-word;
}

.form-check-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-feature {
  position: relative;
}

.form-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
}

.treatment-feature {
  background:
    linear-gradient(
      180deg,
      rgba(159, 23, 23, 0.08) 0%,
      rgba(159, 23, 23, 0.02) 100%
    ),
    rgba(255, 255, 255, 0.98);
  border-color: rgba(159, 23, 23, 0.18) !important;
  box-shadow: 0 14px 28px rgba(159, 23, 23, 0.08);
}

.treatment-feature::before {
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.advice-feature {
  background:
    linear-gradient(
      180deg,
      rgba(201, 80, 74, 0.12) 0%,
      rgba(159, 23, 23, 0.04) 100%
    ),
    rgba(255, 255, 255, 0.98);
  border-color: rgba(201, 91, 74, 0.3) !important;
  box-shadow: 0 14px 28px rgba(159, 23, 23, 0.06);
}

.advice-feature::before {
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.treatment-feature .check-header label,
.advice-feature label {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #8f1717 !important;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  margin-right: 0;
  flex-shrink: 0;
}

.treatment-feature input[type="text"] {
  background-color: rgba(255, 255, 255, 0.94) !important;
}

.advice-feature {
  min-height: 92px;
}

.check-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-header label {
  margin-bottom: 0;
}

#generateBtn {
  grid-column: 1 / -1;
  border: none;
  border-radius: 18px;
  padding: 18px 24px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
  background: linear-gradient(135deg, #b61d1d 0%, #7f1212 100%);
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(159, 23, 23, 0.26);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

#generateBtn:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 24px 40px rgba(159, 23, 23, 0.3);
}

#certificateForm input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 0;
  accent-color: var(--primary);
  flex-shrink: 0;
}

/* ==================== Responsive: tablet and below ==================== */
@media (max-width: 900px) {
  body {
    padding: 12px 0 20px;
  }

  .form-page {
    margin: 14px;
    padding: 22px;
    border-radius: 20px;
    box-shadow: 0 14px 28px rgba(70, 16, 16, 0.08);
  }

  .form-page h1 {
    font-size: 38px;
  }

  .form-intro {
    max-width: none;
  }

  #certificateForm {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-card-header {
    padding: 16px 18px;
  }

  .form-card-header h2 {
    font-size: 22px;
  }

  .form-card-body {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 14px;
  }

  #certificateForm > .form-field,
  .form-card-body > .form-field {
    padding: 16px;
  }

  .payment-editor-header,
  .payment-editor-row {
    grid-template-columns:
      minmax(150px, 1.6fr) minmax(70px, 0.7fr) minmax(120px, 1fr)
      minmax(120px, 1fr);
  }
}
#certificatePreview .advice-grid .label,
#certificatePreview .advice-grid .check-line {
  font-weight: normal;
}

/* ==================== Responsive: mobile layout ==================== */
@media (max-width: 640px) {
  /*////////////////////////////////////////////////////////////*/

  #certificatePreview .advice-grid {
    flex-direction: column;
    gap: 10px;
  }

  #certificatePreview .advice-column:last-child {
    margin-left: 0;
  }
  #certificatePreview {
    width: 100%;
    min-height: auto;
    padding: 20px 16px;
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  }

  #certificatePreview .double-row,
  #certificatePreview .triple-row {
    flex-direction: column;
    gap: 10px;
  }

  #certificatePreview .doc-header {
    justify-content: center;
    margin-bottom: 10px;
  }

  #certificatePreview .logo {
    width: 110px;
  }

  #certificatePreview hr {
    margin: 8px 0 14px;
  }

  #certificatePreview h1 {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  #certificatePreview .doc-meta {
    gap: 6px;
  }

  #certificatePreview .info-section h2 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  #certificatePreview .doc-meta {
    flex-direction: column;
    gap: 8px;
  }

  #certificatePreview .doctor-row {
    flex-direction: column;
    gap: 16px;
  }

  #receiptPreview {
    width: 100%;
    min-height: auto;
    padding: 20px 16px;
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  }

  #receiptPreview .doc-header {
    justify-content: center;
    margin-bottom: 10px;
  }

  /*////////////////////////////////////////////////////////////*/
  body {
    padding: 8px 0 16px;
  }

  .payment-editor {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .payment-editor-header,
  .payment-editor-row {
    min-width: 680px;
  }

  .payment-summary-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .payment-summary-row input {
    width: 100%;
  }

  .form-page {
    margin: 10px;
    padding: 16px;
    border-radius: 18px;
  }

  .form-page h1 {
    font-size: 32px;
    line-height: 1.05;
  }

  .form-intro {
    font-size: 14px;
    line-height: 1.6;
  }

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

  .form-badge {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    padding: 10px 12px;
    font-size: 12px;
  }

  .form-check-only {
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 12px;
  }

  .form-check-only label {
    gap: 7px;
    line-height: 1.4;
  }

  .feature-icon {
    font-size: 19px;
  }

  .form-card {
    border-radius: 18px;
  }

  .form-card-header {
    padding: 14px 16px;
  }

  .form-card-header h2 {
    font-size: 19px;
  }

  .form-card-body {
    padding: 14px;
    gap: 12px;
  }

  #certificateForm label {
    font-size: 12px;
  }

  #certificateForm input,
  #certificateForm select,
  #certificateForm textarea {
    padding: 13px 14px;
    font-size: 16px;
  }

  .date-shortcuts {
    gap: 8px;
  }

  .date-shortcuts button {
    flex: 1 1 calc(33.333% - 6px);
    min-height: 40px;
  }

  .payment-summary-box {
    padding: 14px;
  }

  .grand-total-row-form span,
  .grand-total-row-form input {
    font-size: 17px !important;
  }

  .payment-received-field {
    max-width: none;
  }

  #generateBtn {
    position: sticky;
    bottom: 10px;
    z-index: 20;
    border-radius: 999px;
    padding: 16px 20px;
    font-size: 17px;
    box-shadow: 0 18px 30px rgba(159, 23, 23, 0.28);
  }

  .document h1 {
    font-size: 18px;
    margin-bottom: 18px;
  }

  .doc-meta,
  .info-section,
  .line-field,
  .receipt-sign-line {
    font-size: 12px;
  }

  .receipt-table {
    font-size: 11px;
  }

  .receipt-table th,
  .receipt-table td {
    padding: 8px 6px;
  }

  .bottom-bar {
    padding: 8px 10px;
    font-size: 10px;
  }

  /* บนมือถือ payment จะเปลี่ยนจากตารางเป็นการ์ดต่อรายการ */
  .payment-editor {
    overflow: visible;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .payment-editor-header {
    display: none;
  }

  .payment-editor-row {
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(159, 23, 23, 0.12);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fcf8f8 100%);
    box-shadow: 0 10px 20px rgba(111, 17, 17, 0.05);
  }

  .payment-description-cell {
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }

  .payment-description-cell input {
    min-height: 50px;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    color: #182235 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
  }

  .payment-editor-row-extra .payment-description-cell input {
    padding: 13px 14px !important;
    border: 1px solid rgba(159, 23, 23, 0.12) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--text) !important;
  }

  .payment-editor-row .payment-cell:not(.payment-description-cell) input {
    border: 1px solid rgba(159, 23, 23, 0.12) !important;
    border-radius: 14px !important;
    min-height: 48px;
    padding: 12px !important;
    background: #ffffff !important;
  }

  .payment-editor-row .payment-cell:not(.payment-description-cell) {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .payment-mobile-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8f1515;
    padding-left: 2px;
  }
}

/* ==================== Responsive: very small mobile ==================== */
@media (max-width: 420px) {
  .form-page h1 {
    font-size: 28px;
  }

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

  .form-badge {
    justify-content: flex-start;
    padding-inline: 14px;
  }

  .date-shortcuts button {
    flex-basis: 100%;
  }

  .payment-editor-row {
    grid-template-columns: 1fr;
  }

  #generateBtn {
    bottom: 8px;
    font-size: 16px;
  }
}
.date-helper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.date-helper input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary);
}

.date-helper label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.date-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.date-shortcuts button {
  border: 1px solid rgba(159, 23, 23, 0.14);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background-color: rgba(159, 23, 23, 0.05);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.date-shortcuts button:hover {
  background-color: rgba(159, 23, 23, 0.1);
  border-color: rgba(159, 23, 23, 0.24);
  transform: translateY(-1px);
}

/* ==================== Floating scroll-to-top button ==================== */
.scroll-top-btn {
  position: fixed;
  right: 18px;
  bottom: 88px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #b61d1d 0%, #7f1212 100%);
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(159, 23, 23, 0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
  z-index: 30;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 18px 32px rgba(159, 23, 23, 0.28);
}

.scroll-top-btn:active {
  transform: scale(0.96);
}

@media (max-width: 900px) {
  .scroll-top-btn {
    right: 16px;
    bottom: 84px;
  }
}

@media (max-width: 640px) {
  .scroll-top-btn {
    right: 14px;
    bottom: 86px;
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 420px) {
  .scroll-top-btn {
    right: 12px;
    bottom: 82px;
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
}

/*--------------------------Login Page---------------------*/

.login-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.login-logo {
  width: min(260px, 72vw);
  height: auto;
  display: block;
  margin-bottom: -25px;
}
.login-page {
  min-height: calc(100vh - 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  flex-direction: column;
  transform: translateY(-40px);
}

.login-card {
  width: 100%;
  max-width: 460px;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 40px rgb(0, 0, 0, 0.5);
}

.login-brand {
  color: var(--primary);
}

.login-kicker {
  color: var(--primary);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.login-brand h1 {
  font-size: 38px;
  margin-bottom: 10px;
}

.login-intro {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 2px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-field label {
  font-size: 14px;
  font-weight: bold;
  color: var(--text);
}
.login-field input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 11px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background-color: #fffdfb;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.login-field input:focus {
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 4px rgba(159, 23, 23, 0.12);
  background-color: #ffffff;
}

.login-btn {
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: #ffffff;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}
.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(159, 23, 23, 0.22);
  filter: brightness(1.03);
}
.login-btn:active {
  transform: translateY(0);
}

.password-field {
  position: relative;
}
.password-field input {
  padding-right: 46px;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  padding: 0;
}

.password-toggle:hover {
  color: var(--primary);
}
/*------login option-------*/
.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -4px;
}
.remember-me {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}
.remember-me input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}
.forgot-password {
  color: var(--primary);
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
}
.forgot-password:hover {
  text-decoration: underline;
}

/*==================================custom Alert========================*/

.custom-alert-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(17, 24, 39, 0.45);
  z-index: 999;
  padding: 20px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.custom-alert-backdrop.is-open {
  display: flex;
}
.custom-alert-box {
  width: min(360px, 100%);
  background: #ffffff;
  border-radius: 22px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(159, 23, 23, 0.215);
}

.custom-alert-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--primary);
  margin-bottom: 18px;
}
.custom-alert-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
/*-----Need help support Section-----*/

.login-footer {
  margin-top: 4px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.login-footer a {
  color: var(--primary);
  font-weight: bold;
  text-decoration: none;
}
.login-footer a:hover {
  text-decoration: underline;
}

/*------ResponSive-----Login----------*/
@media (max-width: 640px) {
  .login-page {
    align-items: center;
    justify-content: center;
    padding: 24px 14px;
  }
  .login-card {
    max-width: none;
    padding: 24px 18px;
    border-radius: 20px;
  }

  .login-brand h1 {
    font-size: 30px;
  }

  .login-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .forgot-password {
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .login-page {
    align-items: center;
    justify-content: center;
    padding: 10px 10px 18px;
    transform: translateY(-50px);
  }

  .login-card {
    padding: 20px 14px;
    border-radius: 18px;
  }

  .login-brand h1 {
    font-size: 27px;
  }

  .login-intro,
  .remember-me,
  .forgot-password,
  .login-footer {
    font-size: 13px;
  }

  .login-field input,
  .login-btn {
    padding: 13px 12px;
  }
}

/*-----------logout-----------*/
.logout-btn {
  position: absolute;
  top: 0;
  right: 0;
  border: 1px solid rgba(159, 23, 23, 0.16);
  border-radius: 999px;
  padding: 10px 16px;
  margin-bottom: 18px;
  margin-top: 10px;
  background-color: #fff7f5;
  color: var(--primary);
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-color: 0.2s ease;
  transform: 0.2s ease;
}

.logout-btn:hover {
  background-color: rgba(153, 23, 23, 0.08);
  border-color: rgba(159, 23, 23, 0.28);
  transform: translateY(-0.9px);
}

.clear-form-btn {
  right: 54px;
}
/*Resend OTP*/

.otp-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 6px;
}

.otp-resend-btn {
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.otp-resend-btn:hover {
  transform: scale(0.96);
  opacity: 0.85;
}

.otp-resend-btn:active {
  transform: scale(0.92);
}

/*license*/
#displayDoctorSignature,
#displayReceiptSignature {
  display: block;
  max-width: 160px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* background: transparent; */
  /* mix-blend-mode: multiply; */
  /* filter: grayscale(100%) contrast(1.35) brightness(1.08); */
}

#displayDoctorSignature {
  margin-top: -6px;
}
#displayReceiptSignature {
  margin-top: -4px;
}

.required-mark {
  color: var(--primary);
}

/* Flatpickr calendar theming to match site colors */
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.today.selected {
  background: var(--primary);
  border-color: var(--primary);
}
.flatpickr-day.today {
  border-color: var(--primary);
}
.flatpickr-day:hover {
  background: var(--bg);
  border-color: var(--accent);
}
.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-weekdays {
  background: var(--primary);
  color: #fff;
  fill: #fff;
}
.flatpickr-current-month input.cur-year {
  color: #fff;
}
.flatpickr-current-month .flatpickr-monthDropdown-months option {
  color: #111;
}
span.flatpickr-weekday {
  color: #fff;
}
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
  fill: var(--accent);
}

@media print {
  /*///////////////////////////////////////////*/
  #receiptPreview h1 {
    margin-top: -70px;
    margin-bottom: 20px;
  }
  .share-fab,
  .share-fab * {
    display: none !important;
    visibility: hidden !important;
  }

  /*/////////////////////////////////*/
  #certificatePreview .bottom-bar {
    margin-top: 5px;
    padding: 5px;
    font-size: 10px;
    line-height: 1.25;
  }
  #certificatePreview h1 {
    margin-top: -100px;
    margin-bottom: 20px;
  }
  .bottom-bar {
    background-color: #9f1717 !important;
    color: white !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .receipt-document {
    padding: 8mm;
  }

  .receipt-document .doc-meta {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .receipt-document .payment-box {
    padding: 8px 10px;
    margin-bottom: 12px;
    font-size: 11px;
    line-height: 1.4;
  }

  .receipt-document .info-section {
    margin-bottom: 8px;
  }

  .receipt-document .info-section h2 {
    margin-bottom: 8px;
    font-size: 13px;
  }

  .receipt-document .receipt-table {
    margin-top: 6px;
    font-size: 11px;
  }

  .receipt-document .receipt-table th,
  .receipt-document .receipt-table td {
    padding: 5px 6px;
  }

  .receipt-document .receipt-table td,
  .receipt-document .receipt-table tfoot td {
    height: auto;
  }

  .receipt-document .receipt-signature-row {
    margin-top: 10px;
    gap: 16px;
  }

  .receipt-document .receipt-sign-line {
    margin-bottom: 10px;
  }

  .receipt-document .receipt-signature-right {
    width: 90px;
  }

  .receipt-document .receipt-signature-right .qr-placeholder {
    width: 70px;
    height: 70px;
    font-size: 12px;
  }

  .receipt-document .receipt-verify-text {
    font-size: 10px;
    margin-top: 4px;
  }

  .receipt-document .document-note {
    padding-top: 8px;
    font-size: 8px;
    line-height: 1.3;
  }

  .receipt-document .bottom-bar {
    margin-top: 8px;
    padding: 6px 8px;
    font-size: 8px;
    line-height: 1.25;
  }

  .document {
    padding-top: 5mm;
    /* padding-bottom: 0mm; */
  }

  .doc-header {
    margin-bottom: -8px;
  }

  .logo {
    margin-top: -20px;
    transform: translateY(-18mm);
    width: 250px;
  }

  hr {
    margin-top: 0;
    margin-bottom: 4px;
    transform: translateY(-35mm);
  }
  /*///////////////////////////////////////////*/

  @page {
    size: A4;
    margin-top: 0mm;
    margin-right: 7mm;
    margin-bottom: 0mm;
    margin-left: 7mm;
  }
  #documentStage {
    display: flex !important;
  }
  body {
    background: white;
    margin: 0;
    padding: 20px 0;
  }

  .form-page,
  .scroll-top-btn,
  .logout-btn,
  .clear-form-btn,
  .print-actions {
    display: none;
  }

  .document {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    background-color: white;
    padding: 12mm;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    page-break-after: always;
    break-after: page;
  }

  .document:last-of-type {
    page-break-after: auto;
    break-after: auto;
  }

  .receipt-document {
    page-break-before: always;
    break-before: page;
  }

  .print-actions,
  .print-actions * {
    display: none !important;
    visibility: hidden !important;
  }

  .print-actions {
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}
.print-actions {
  display: flex;
  justify-content: center;
  margin: 24px 0 40px;
}

.print-actions button {
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  background-color: #9f1717;
  color: white;
  font-size: 12px;
  cursor: pointer;
}
/*Share //////////////////////////////////////////////*/
.share-fab {
  position: fixed;
  top: 110px;
  right: 24px;
  z-index: 1000;
}
.share-fab-button {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background-color: #9f1717;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.share-fab-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
  margin-top: 10px;
  padding: 10px;
  border-radius: 16px;
  background-color: rgba(225, 225, 225, 0.055);
  border: 1px solid rgba(225, 225, 225, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-fab-menu button {
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  background-color: rgba(225, 225, 225, 0.28);
  color: #9f1717;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
}

.notify-line-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(6, 199, 85, 0.14) !important;
  color: #06c755 !important;
}

.notify-line-btn i {
  width: 16px;
  height: 16px;
}

.notify-line-search {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notify-line-search input {
  border: 1px solid rgba(159, 23, 23, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
}

.notify-line-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 160px;
  overflow-y: auto;
}

.notify-line-result-item {
  border: none;
  border-radius: 10px;
  padding: 8px 10px;
  background-color: rgba(159, 23, 23, 0.06);
  color: #9f1717;
  text-align: left;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}

.notify-line-result-item:hover {
  background-color: rgba(159, 23, 23, 0.14);
}

.notify-line-result-empty {
  font-size: 12px;
  color: rgba(159, 23, 23, 0.6);
  padding: 4px 2px;
}

.share-fab-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
