#receipt-app [hidden]{display:none!important}#receipt-app details{border:1px solid var(--line);padding:16px;border-radius:12px;margin:16px 0}#receipt-app summary{font-weight:700;cursor:pointer;margin-bottom:14px}#receipt-app .rc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}#receipt-app label{display:block}#receipt-app input,#receipt-app textarea,#receipt-app select{display:block;width:100%;box-sizing:border-box;margin-top:7px}#receipt-app .rc-full{grid-column:1/-1}#receipt-app .actions{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:16px 0}#receipt-app .rc-note{font-size:13px;line-height:1.8;color:var(--muted)}#receipt-app .rc-scroll{overflow:auto}#receipt-app .rc-edit-table{width:100%;min-width:610px;border-collapse:collapse}#receipt-app th,#receipt-app td{padding:7px;text-align:left;vertical-align:top}#receipt-app .rc-edit-table th:nth-child(1){width:34%}#receipt-app .rc-edit-table th:nth-child(2){width:14%}#receipt-app .rc-edit-table th:nth-child(3){width:14%}#receipt-app .rc-edit-table th:nth-child(4){width:25%}#receipt-app .rc-entry{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--line)}#receipt-app .rc-entry span{flex:1;min-width:180px;overflow-wrap:anywhere}#receipt-app .rc-entry button{padding:7px 10px;font-size:12px}#rc-status{white-space:pre-wrap;line-height:1.7}#rc-status.rc-error{color:#ac2b38}html[data-theme=dark] #rc-status.rc-error{color:#ffb4c0}#rc-preview-area{overflow:auto;margin:20px 0}.rc-paper{background:white;color:#111;font-family:Arial,sans-serif;line-height:1.45;padding:18px;box-sizing:border-box}.rc-paper h2{color:#111;font-size:20px;margin:10px 0}.rc-paper p{color:#111;margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}.rc-paper .rc-title{text-align:center;margin:18px 0}.rc-paper table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px;margin-top:18px}.rc-paper th,.rc-paper td{border:1px solid #888;padding:7px 4px;vertical-align:top;overflow-wrap:anywhere;color:#111}.rc-paper th:first-child{width:7%}.rc-paper th:nth-child(2){width:31%}.rc-paper th:nth-child(3){width:10%}.rc-paper .rc-totals{text-align:right;margin:16px 0;break-inside:avoid}.rc-paper .rc-signatures{display:flex;justify-content:space-around;margin:28px 0 50px;font-weight:bold;break-inside:avoid}.rc-paper .rc-multiline{white-space:pre-wrap}#receipt-print-sheet{display:none}@media(max-width:600px){#receipt-app .rc-grid{grid-template-columns:1fr}#receipt-app .rc-full{grid-column:auto}.rc-paper{padding:10px}.rc-paper table{font-size:11px}}
@media print{body.receipt-printing{margin:0!important;background:#fff!important;color:#111!important}body.receipt-printing>:not(#receipt-print-sheet){display:none!important}body.receipt-printing>#receipt-print-sheet{display:block!important;width:100%!important;max-width:none!important}#receipt-print-sheet .rc-paper{padding:0!important;max-width:none!important}#receipt-print-sheet thead{display:table-header-group}#receipt-print-sheet tr{break-inside:avoid}#receipt-print-sheet .rc-paper th,#receipt-print-sheet .rc-paper td{padding:6px 4px}#receipt-print-sheet[data-paper="80mm"]{width:74mm!important}#receipt-print-sheet[data-paper="80mm"] .rc-paper{font-size:10px}#receipt-print-sheet[data-paper="80mm"] h2{font-size:15px}#receipt-print-sheet[data-paper="80mm"] table{font-size:9px}#receipt-print-sheet[data-paper="80mm"] .rc-paper th,#receipt-print-sheet[data-paper="80mm"] .rc-paper td{padding:4px 2px}#receipt-print-sheet[data-paper="80mm"] .rc-signatures{margin-bottom:20px}}

/* lamgon-receipt-paper-light-v1 */
#rc-preview-area .rc-paper,#receipt-print-sheet .rc-paper{color-scheme:light!important;background:#fff!important;color:#111!important;--ink:#111;--muted:#444;--paper:#fff;--white:#fff;--line:#888;--green:#111}
#rc-preview-area .rc-paper *,#receipt-print-sheet .rc-paper *{color:#111!important;background-color:transparent!important;text-shadow:none!important;box-shadow:none!important}
#rc-preview-area .rc-paper th,#receipt-print-sheet .rc-paper th{background:#f1f3f5!important;color:#111!important}
#rc-preview-area .rc-paper th,#rc-preview-area .rc-paper td,#receipt-print-sheet .rc-paper th,#receipt-print-sheet .rc-paper td{border-color:#888!important}

/* lamgon-receipt-logo-v1 */
#rc-logo-preview{max-width:160px;max-height:80px;object-fit:contain;background:#fff;padding:8px;border:1px solid #aaa;margin:10px 0}
.rc-paper .rc-shop-header{text-align:center;break-inside:avoid;margin-bottom:14px}
.rc-paper .rc-shop-header.rc-has-logo{display:flex;align-items:center;gap:16px;text-align:left}
.rc-paper .rc-shop-info{min-width:0;flex:1;overflow-wrap:anywhere}
.rc-paper .rc-shop-logo{width:100px;height:65px;object-fit:contain;flex:0 0 100px}
.rc-paper .rc-shop-info .rc-store{font-weight:700;overflow-wrap:anywhere;margin:0 0 6px}
.rc-paper .rc-shop-info p{margin:3px 0}
#receipt-print-sheet[data-paper="80mm"] .rc-shop-header.rc-has-logo{gap:8px}
#receipt-print-sheet[data-paper="80mm"] .rc-shop-logo{width:45px;height:40px;flex-basis:45px}
@media(max-width:420px){#rc-preview-area .rc-shop-logo{width:65px;height:50px;flex-basis:65px}#rc-preview-area .rc-shop-header.rc-has-logo{gap:10px}}
