label {
    font: inherit !important;
    color: inherit !important;
    display: inline !important;
    font-weight: normal !important;
    font-size: 20px !important;
}

/* Base custom checkbox */
input[type="checkbox"] {
  appearance: none;        /* remove native style */
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 28px;
  height: 28px;
  border: 2px solid #393;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;  /* keeps it aligned with text */
  cursor: pointer;
  position: relative;
  top: 4px;
}

/* Checked state: add a tick */
input[type="checkbox"]:checked::after {
  content: "✔";            /* tick character */
  font-size: 1em;
  color: black;          /* Microsoft blue */
  position: absolute;
  top: -5px;               /* adjust vertical alignment */
  left: 2px;               /* adjust horizontal alignment */
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="file"] {
    display: inline !important;
    font-size: inherit !important;
    font-weight: normal !important;
    border-radius: 4px;
    color: #46392d;
}

input[type="file"].hidden-input {
    display: none !important;
}

input[type="file"] {
    width: auto;
}

::placeholder {
    font-style: italic;
    font-size: 0.9em;
    color: #9a9;
}

input:disabled::placeholder {
    color: #dddddd;
}

#trans_table {
    width: 100%;
    border-top: 0;
}

#trans_table tr {
    border: 0;
    border-bottom: 1px solid lightgray !important;
}

#trans_table td {
    border: 0px;
    padding: 0;
    padding-bottom: 12px;
}

.table-container {
	margin: 4px 0px 0px 0px;
	padding: 8px;
	border: 1px solid gray;
    background-color: rgba(255, 255, 255, 0.5) !important;
}

.fps_qrcode {
    width: 240px;
    height: auto;
}

.caption {
    font-size: 1.05em;
}

.grey {
    color: lightslategray;
}

.button_container {
    border: 0 !important;
    padding-top: 20px;
}

.w100 {
    width: 100%;
}

.wauto {
    width: auto !important;
}

.w450 {
    width: 450px !important;
}

button {
    font-size: 20px !important;
    font-family: 'Noto Serif HK';
    background-color: #F9D249;
    color: #46392d;
    border-radius: 10px;
}

#receiptFile {
    font-weight: normal;
}

#fileNameDisplay {
    font: inherit !important;
    /* color: inherit !important; */
    display: inline !important;
    font-weight: normal !important;
    font-style: italic !important;
    font-size: 0.9em !important;
    color: #686 !important;
}

.custom-file-button {
    font-size: 20px !important;
    padding: 8px 16px;
    background-color: #F9D249;
    color: #46392d !important;
    border-radius: 10px;
    padding-top: 0.5rem;
    padding-right: 2rem;
    padding-bottom: 0.7rem;
    padding-left: 2rem;
    cursor: pointer;
    -webkit-transition: background-color 300ms ease-out;
    -moz-transition: background-color 300ms ease-out;
    transition: background-color 300ms ease-out;
}

.custom-file-button.disabled {
    background-color: #aaa;
    cursor: not-allowed;
    pointer-events: none;
}

.custom-file-button:hover:not(.disabled) {
    background-color: #cc6e00;
}

.custom-file-button:hover,
.custom-file-button:focus {
    color: #fff !important;
    background-color: #cc6e00;
}

.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); /* semi-black mask */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.overlay.hidden {
    display: none;
}

.modal {
    background: #fff;
    border-radius: 10px;
    max-width: 480px;
    min-width: 320px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.modal-header {
    color: #3c1a00;
    background-color: #c8a482;
	border-radius: 10px 10px 0px 0px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bolder;
}

.modal-header-info {
    color: darkslategrey;
}

.modal-body {
    color: darkred;
    padding: 20px;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;  /* stack messages vertically */
    justify-content: center; /* vertically centre */
}

.modal-body-info {
    color: steelblue;
}

.modal-body hr {
    border: 0;
    border-top: 1px solid #ddd;
    width: 100%;
    margin: 10px 0;
}

/* one message → center horizontally */
.single-message {
    text-align: center !important;
    align-items: center;
    width: 100%;
}

/* multiple messages → left aligned */
.multi-message {
    text-align: left !important;
    align-items: flex-start;
    width: 100%;
}

.modal-footer {
    background-color: #F9D249;
    color: #46392d !important;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    font-size: 20px !important;
    border-radius: 0px 0px 10px 10px;
    cursor: pointer;
    -webkit-transition: background-color 300ms ease-out;
    -moz-transition: background-color 300ms ease-out;
    transition: background-color 300ms ease-out;
}

.modal-footer:hover,
.modal-footer:focus {
    color: #fff !important;
    background-color: #cc6e00;
}

.modal-body button {
    margin-top: 30px;
	margin-bottom: 0px;
}

#errorMessage {
    line-height: 1.4em;
	font-weight: normal;
	color: darkred;
	text-align: left;
    padding: 20px 10px;
    font-size: 20px;
}

/* top error message bar */
#errorTopMessage {
    position: fixed;
    top: -60px;                  /* hidden above screen initially */
    left: 50%;
    transform: translateX(-50%);
    background: #f44336;
    color: #fff;
    padding: 12px 24px;
    border-radius: 15px 0px;
    font-weight: bold;
    font-size: 1.5em;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: top 0.5s ease, opacity 0.5s ease;
    cursor: pointer;
    opacity: 0;
}

/* visible state */
#errorTopMessage.show {
    top: 20px;                   /* drop down into view */
    opacity: 1;
}

.section {
    border: 4px solid transparent;
    padding: 0.5625rem 0.625rem;
}

/* solid error border */
.section.error-row {
    border: 4px solid lightcoral !important;
}

/* flashing animation */
@keyframes flashBorder {
    0%   { border-color: lightcoral; border-width: 4px; }
    50%  { border-color: transparent; border-width: 4px; }
    100% { border-color: lightcoral; border-width: 4px; }
}

.section.flash-error {
    border: 4px solid lightcoral;
    animation: flashBorder 0.5s linear infinite;
    /* animation: flashBorder 0.5s ease-in-out 6 forwards; */
}

.info {
    font-weight: normal;
    font-size: 20px !important;
}

.info2 {
    font-weight: normal;
    font-size: 20px !important;
	margin-bottom: 4px;
	display: block;
}

ol {
    list-style: decimal !important;
    list-style-type: decimal !important;
    padding-bottom: 0.5625rem;
	margin-bottom: 0px;
}

li {
    list-style: decimal !important;
    padding-bottom: 0px !important;
}
/* 
input[type="text"]#chequeNumber {
    padding: 0px !important;
    display: block !important;
}

td #chequeNumber,
tr #chequeNumber,
.form-field #chequeNumber {
    margin: 0 !important;
    display: inline-block !important;
} */

.thx {
    text-align: center !important;
    background-color: #fbf6e4;
    border: 2px solid lightpink;
    border-radius: 10px;
    margin-bottom: 40px;
    font-weight: bold;
}