Spaces:
Running
Running
Download style.css from budijuarto/esbe-receipt-ocr: direct link, hf CLI and curl.
- Browser
- Download file 19.3 kB
-
https://huggingface.co/spaces/budijuarto/esbe-receipt-ocr/resolve/main/style.css
- Command line
-
hf download hf://spaces/budijuarto/esbe-receipt-ocr/style.css
-
curl -L -o style.css https://huggingface.co/spaces/budijuarto/esbe-receipt-ocr/resolve/main/style.css
19.3 kB
| @font-face { | |
| font-family: Manrope; | |
| src: url('assets/manrope-latin.woff2') format('woff2'); | |
| font-weight: 400 800; | |
| font-display: swap; | |
| } | |
| :root { | |
| color-scheme: light; | |
| --ground: #f3f5f7; | |
| --surface: #fff; | |
| --ink: #1b1d1f; | |
| --muted: #565d64; | |
| --line: #e5e8ec; | |
| --control: #cbd1d8; | |
| --active: #e7eaee; | |
| --accent: #ad2835; | |
| --accent-soft: #fce9e8; | |
| --accent-ink: #8a2232; | |
| --qris: #2568aa; | |
| --qris-soft: #e4f2fd; | |
| --qris-ink: #174d83; | |
| --transfer: #4f6b70; | |
| --transfer-soft: #e8eeef; | |
| --transfer-ink: #384e52; | |
| --positive: #236039; | |
| --positive-soft: #e4f4e8; | |
| --warning: #7d4810; | |
| --warning-soft: #fcf1df; | |
| --radius: 20px; | |
| --control-radius: 10px; | |
| --gap: 24px; | |
| font: 400 15px/1.5 Manrope, system-ui, sans-serif; | |
| color: var(--ink); | |
| background: var(--ground); | |
| } | |
| *, *::before, *::after { box-sizing: border-box; } | |
| body { margin: 0; } | |
| button, input, select, textarea { font: inherit; color: inherit; } | |
| button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; } | |
| button { cursor: pointer; } | |
| button:disabled, select:disabled { cursor: default; } | |
| a { color: inherit; } | |
| h1, h2, p { margin: 0; } | |
| [hidden] { display: none ; } | |
| :focus-visible { outline: 2px solid var(--qris); outline-offset: 3px; } | |
| .sr-only, .skip-link:not(:focus) { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } | |
| .skip-link:focus { position: absolute; top: 10px; left: 10px; z-index: 5; background: var(--surface); padding: 10px; } | |
| .money { font-variant-numeric: tabular-nums; white-space: nowrap; } | |
| .subtle, .hint { color: var(--muted); } | |
| /* The 220px sidebar leaves one fluid canvas. Its columns are 1.65fr and 1fr, plus one shared 24px gap. */ | |
| .app { min-height: 100svh; display: grid; grid-template-columns: 220px minmax(0,1fr); } | |
| .sidebar { position: sticky; top: 0; align-self: start; height: 100svh; display: flex; flex-direction: column; padding: 35px 18px 24px; border-right: 1px solid var(--line); } | |
| .brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; margin: 0 9px 43px; text-decoration: none; } | |
| .brand strong { display: block; font-size: 25px; font-weight: 800; line-height: 1.05; letter-spacing: -.07em; } | |
| .brand small { display: block; margin-top: 3px; font-size: 12px; font-weight: 750; color: var(--muted); } | |
| .brand-mark { display: inline-grid; gap: 3px; padding: 5px 5px 6px; border: 2px solid var(--ink); border-radius: 8px; transform: rotate(-10deg); } | |
| .brand-mark i { width: 8px; height: 8px; border-radius: 50%; background: var(--active); } | |
| .brand-mark i:first-child { background: var(--accent); } | |
| .nav-link { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; text-decoration: none; font-size: 13px; font-weight: 650; border-radius: 8px; color: var(--muted); } | |
| .nav-link svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; } | |
| .nav-link:hover, .nav-current { background: var(--active); color: var(--ink); } | |
| .sidebar-end { margin-top: auto; } | |
| .sidebar-end .mobile-benchmark { display: none; } | |
| .back-link { display: flex; align-items: center; gap: 9px; min-height: 44px; width: fit-content; padding: 0 10px; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; } | |
| .back-link:hover { text-decoration: underline; } | |
| .local-status { display: flex; gap: 9px; align-items: flex-start; margin: 13px 8px 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; } | |
| .local-status > span { flex: none; width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; background: var(--accent); } | |
| .local-status strong, .local-status small { display: block; } | |
| .local-status small { margin-top: 3px; color: var(--muted); font-size: 12px; } | |
| .main { min-width: 0; width: 100%; max-width: 1480px; margin-inline: auto; padding: 34px max(24px, 3.05vw) 48px; } | |
| .page-head, .overview-head, .panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; } | |
| .page-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -.045em; line-height: 1.12; } | |
| .page-head p { margin-top: 6px; font-size: 14px; color: var(--muted); } | |
| .page-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; } | |
| .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 8px 15px; color: var(--ink); border: 1px solid transparent; border-radius: var(--control-radius); background: transparent; font-weight: 750; font-size: 13px; line-height: 1.3; text-decoration: none; } | |
| .button-primary { background: var(--ink); color: #fff; } | |
| .button-primary:hover { background: #393d42; } | |
| .button-primary span { font-size: 20px; line-height: .8; font-weight: 500; } | |
| .button-outline { border-color: var(--control); background: var(--surface); } | |
| .button-outline:hover, .text-button:hover { background: var(--active); } | |
| .filters { display: flex; align-items: center; gap: 10px; margin: 24px 0 17px; } | |
| input:not([type="file"]), select, textarea { border: 1px solid var(--control); border-radius: var(--control-radius); background: var(--surface); min-width: 0; } | |
| input:not([type="file"]), select { min-height: 41px; padding: 7px 11px; } | |
| select { padding-inline-end: 26px; } | |
| .filters input { font-size: 13px; font-weight: 700; max-width: 155px; } | |
| .segmented { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; padding: 3px; border-radius: var(--control-radius); background: var(--active); } | |
| .segmented button { white-space: nowrap; background: transparent; border: 1px solid transparent; border-radius: 7px; min-height: 33px; padding: 4px 11px; font-size: 13px; font-weight: 700; color: var(--muted); } | |
| .segmented button[aria-pressed="true"] { border-color: var(--line); background: var(--surface); color: var(--ink); } | |
| .notice { margin: 0 0 16px; border-radius: 7px; padding: 9px 12px; color: var(--positive); background: var(--positive-soft); font-size: 13px; } | |
| .notice[data-error="true"] { background: var(--warning-soft); color: var(--warning); } | |
| .workspace { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(320px,1fr); grid-template-areas: "overview reconcile" "history history"; gap: var(--gap); } | |
| .panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--gap); scroll-margin-top: 16px; } | |
| .panel h2, .dialog-head h2 { font-size: 18px; font-weight: 800; letter-spacing: -.025em; line-height: 1.28; } | |
| .overview { grid-area: overview; display: flex; flex-direction: column; gap: 16px; container-type: inline-size; } | |
| .overview-head { align-items: end; } | |
| .overview-head h2 { color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: 0; } | |
| .total { padding-top: 1px; font-size: clamp(31px, 3.1vw, 40px); font-weight: 800; letter-spacing: -.055em; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; } | |
| .total-count { color: var(--muted); font-size: 13px; white-space: nowrap; padding-bottom: 4px; } | |
| .distribution { display: flex; align-items: stretch; height: 10px; overflow: hidden; border-radius: 5px; background: var(--active); } | |
| .distribution span { min-width: 0; } | |
| .distribution span + span { border-left: 2px solid var(--surface); } | |
| .bar-tunai { background: var(--accent); } | |
| .bar-qris { background: var(--qris); } | |
| .bar-transfer { background: var(--transfer); } | |
| .method-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; flex: 1; max-height: 125px; } | |
| .tile { display: grid; align-content: center; gap: 3px; text-align: left; border-radius: var(--control-radius); border: 1px solid transparent; padding: 11px 12px; } | |
| .tile-cash { background: var(--accent-soft); color: var(--accent-ink); } | |
| .tile-qris { background: var(--qris-soft); color: var(--qris-ink); } | |
| .tile-transfer { background: var(--transfer-soft); color: var(--transfer-ink); } | |
| .tile:hover, .tile[aria-pressed="true"] { border-color: currentColor; } | |
| .tile-label { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 750; } | |
| .tile-label span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; } | |
| .tile strong { font-size: clamp(16px, 1.6vw, 22px); font-weight: 800; line-height: 1.3; letter-spacing: -.04em; white-space: normal; overflow-wrap: anywhere; } | |
| .tile small { font-size: 12px; font-weight: 650; } | |
| .shift-breakdown { margin: auto 0 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; } | |
| .shift-breakdown > div { min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-block: 10px 2px; border-top: 1px solid var(--line); } | |
| .shift-breakdown dt { font-size: 13px; color: var(--muted); } | |
| .shift-breakdown dd { font-size: 14px; margin: 0; font-weight: 800; } | |
| @container (max-width: 380px) { | |
| .tile { padding-inline: 7px; } | |
| .tile strong { font-size: 16px; } | |
| } | |
| .reconciliation { grid-area: reconcile; } | |
| .slip-shift select, .method-control select { font-size: 12px; font-weight: 750; } | |
| .slip-shift select { min-height: 36px; } | |
| .slip { margin-top: 17px; padding: 14px 13px 11px; border-radius: 10px; background: var(--ground); } | |
| .slip-row { display: grid; grid-template-columns: minmax(100px, 1fr) max-content; align-items: center; gap: 8px; min-height: 36px; font-size: 13px; } | |
| .slip-row strong { text-align: right; } | |
| .slip-result { margin: 8px 0 2px; padding-top: 6px; border-top: 1px dashed var(--control); font-weight: 800; } | |
| .slip-result strong { font-size: 16px; letter-spacing: -.025em; } | |
| .currency-input { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; } | |
| .currency-input input { width: 105px; min-height: 34px; padding: 4px 8px; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; } | |
| .currency-input input::placeholder { color: #666d74; } | |
| .reconcile-preview { min-height: 36px; margin: 12px 0 9px; padding: 7px 10px; display: flex; justify-content: space-between; align-items: center; gap: 9px; background: var(--ground); color: var(--muted); border-radius: 8px; font-weight: 700; font-size: 12px; } | |
| .reconcile-preview.good { background: var(--positive-soft); color: var(--positive); } | |
| .reconcile-preview.warn { background: var(--warning-soft); color: var(--warning); } | |
| .reconciliation .button { width: 100%; } | |
| .reconcile-result { margin-top: 8px; color: var(--muted); font-size: 12px; } | |
| .reconcile-result:empty { margin-top: 0; } | |
| .history { grid-area: history; padding-bottom: 15px; } | |
| .history-head { margin-bottom: 10px; } | |
| .history-head p { font-size: 12px; margin-top: 3px; } | |
| table { width: 100%; border-collapse: collapse; table-layout: auto; } | |
| th { padding: 7px 5px; font-size: 12px; font-weight: 700; color: var(--muted); text-align: left; } | |
| td { padding: 9px 5px; font-size: 13px; } | |
| td, th { border-bottom: 1px solid var(--line); } | |
| td:first-child, th:first-child { padding-left: 0; } | |
| td:last-child, th:last-child { padding-right: 0; } | |
| .align-right { text-align: right; } | |
| td.align-right { font-weight: 800; } | |
| .transaction-open { padding: 0; border: 0; background: transparent; color: var(--ink); font-weight: 800; text-align: left; overflow-wrap: anywhere; } | |
| .transaction-open:hover { text-decoration: underline; } | |
| .transaction-time, .mobile-meta { display: block; font-size: 12px; color: var(--muted); } | |
| .mobile-meta { display: none; } | |
| .payment-name { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; white-space: nowrap; } | |
| .payment-name i { width: 6px; height: 6px; border-radius: 50%; } | |
| .history-more { margin-top: 6px; } | |
| .empty { margin-top: 12px; padding: 10px 8px; border: 1px dashed var(--control); border-radius: 8px; font-size: 13px; color: var(--muted); } | |
| dialog { width: min(650px, calc(100% - 28px)); max-width: none; max-height: calc(100dvh - 32px); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; background: var(--surface); color: var(--ink); } | |
| dialog::backdrop { background: rgb(22 27 33 / 53%); } | |
| .dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; padding: 19px 22px 14px; border-bottom: 1px solid var(--line); } | |
| .dialog-head p { margin-top: 4px; color: var(--muted); font-size: 13px; } | |
| .icon-button { display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 1px solid var(--control); border-radius: var(--control-radius); background: var(--surface); font-size: 24px; line-height: 1; } | |
| .icon-button:hover { background: var(--active); } | |
| .entry-content, .detail-content { padding: 16px 22px; } | |
| .entry-modes { margin-bottom: 14px; } | |
| .entry-fields, .receipt-inputs { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; } | |
| .entry-fields { min-width: 0; margin: 0; padding: 0; border: 0; } | |
| .entry-fields label, .receipt-inputs label { display: grid; gap: 4px; font-size: 13px; font-weight: 750; } | |
| #reference-hint { min-height: 0; font-size: 11px; font-weight: 600; display: inline; } | |
| #entry-reference { align-self: end; } | |
| .span-fields { grid-column: 1 / -1; } | |
| .dialog-actions { position: sticky; bottom: 0; display: flex; justify-content: end; gap: 8px; padding: 12px 22px; border-top: 1px solid var(--line); background: var(--surface); } | |
| .receipt-mode { border-radius: 12px; background: var(--ground); padding: 12px; margin-bottom: 16px; } | |
| .receipt-header { margin-bottom: 12px; } | |
| .receipt-header h3 { margin: 0 0 3px; font-size: 15px; font-weight: 800; } | |
| .receipt-header p, .file-state { color: var(--muted); font-size: 12px; } | |
| .receipt-inputs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } | |
| textarea { resize: vertical; width: 100%; min-height: 105px; padding: 7px 8px; font-size: 12px; } | |
| .receipt-proof { min-width: 0; align-self: start; } | |
| .receipt-proof .file-button { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; position: relative; border: 1px solid var(--control); border-radius: 7px; padding: 7px 10px; background: var(--surface); cursor: pointer; } | |
| .file-button input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; } | |
| .file-button:focus-within { outline: 2px solid var(--qris); outline-offset: 3px; } | |
| .file-state { margin: 4px 0; overflow-wrap: anywhere; } | |
| .receipt-image { margin-top: 8px; } | |
| .receipt-proof img, .proof-image { display: block; max-width: 100%; max-height: 210px; object-fit: contain; border-radius: 6px; } | |
| .receipt-mode .text-button { padding-inline: 5px; min-height: 34px; } | |
| .ocr-controls { display: grid; gap: 4px; min-width: 0; } | |
| .ocr-controls select, .ocr-example-controls select { width: 100%; } | |
| .ocr-controls .button { justify-self: start; margin-top: 3px; } | |
| .ocr-controls .button:disabled, .dialog-actions .button:disabled { opacity: .55; } | |
| .ocr-controls .button:disabled { background: var(--ink); } | |
| .ocr-progress progress { display: block; width: 100%; margin-top: 5px; accent-color: var(--qris); } | |
| .ocr-examples, .receipt-raw { padding-top: 8px; margin-top: 8px; border-top: 1px solid var(--line); } | |
| .ocr-examples summary, .receipt-raw summary { cursor: pointer; font-size: 13px; font-weight: 750; } | |
| .ocr-example-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: 8px; } | |
| .receipt-raw textarea { display: block; margin-top: 8px; } | |
| .confirm-ocr { display: flex; align-items: center; min-height: 44px; gap: 8px; margin-top: 8px; font-size: 13px; font-weight: 700; } | |
| .confirm-ocr input { flex: none; inline-size: 18px; min-height: 18px; accent-color: var(--qris); } | |
| .field-message { margin-top: 8px; border-radius: 6px; padding: 7px 8px; background: var(--positive-soft); color: var(--positive); font-size: 12px; font-weight: 700; } | |
| .field-message[data-error="true"] { background: var(--accent-soft); color: var(--accent-ink); } | |
| .detail { width: min(520px, calc(100% - 28px)); } | |
| .detail-content dl { margin: 0; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px 16px; font-size: 14px; } | |
| .detail-content dt { color: var(--muted); } | |
| .detail-content dd { margin: 0; overflow-wrap: anywhere; } | |
| .detail-content .proof-image { margin-top: 13px; } | |
| .noscript { margin: 16px; font-weight: 700; } | |
| @media (min-width: 1101px) { | |
| .history td { height: 51px; } | |
| } | |
| @media (max-width: 1100px) { | |
| .app { grid-template-columns: minmax(0,1fr); } | |
| .sidebar { position: relative; height: auto; flex-direction: row; padding: 10px max(24px, 3.05vw); border: 0; border-bottom: 1px solid var(--line); align-items: center; justify-content: space-between; gap: 12px; } | |
| .brand { margin: 0; } | |
| .sidebar nav { display: flex; gap: 2px; } | |
| .sidebar-end { margin: 0; } | |
| .local-status { display: none; } | |
| .main { padding-top: 24px; } | |
| } | |
| @media (max-width: 760px) { | |
| :root { --gap: 16px; } | |
| .sidebar { padding-inline: 16px; } | |
| .sidebar nav { display: none; } | |
| .sidebar-end .mobile-benchmark { display: inline-flex; min-height: 44px; } | |
| .brand strong { font-size: 21px; } | |
| .brand small { font-size: 11px; } | |
| .brand-mark { gap: 2px; } | |
| .brand-mark i { width: 6px; height: 6px; } | |
| .main { padding: 19px 16px 32px; } | |
| .page-head { align-items: start; gap: 8px; } | |
| .page-head h1 { font-size: 25px; } | |
| .page-head p { font-size: 12px; max-width: 195px; } | |
| .page-head .button { white-space: nowrap; min-height: 44px; padding-inline: 9px; } | |
| .filters { margin-top: 17px; margin-bottom: 12px; gap: 7px; flex-wrap: wrap; } | |
| .filters input { width: 130px; min-height: 44px; padding-inline: 7px; } | |
| .filters button { min-height: 36px; padding-inline: 7px; font-size: 12px; } | |
| .workspace { grid-template-columns: minmax(0,1fr); grid-template-areas: "overview" "history" "reconcile"; } | |
| .panel h2 { font-size: 17px; } | |
| .overview h2 { font-size: 14px; } | |
| .overview { gap: 10px; } | |
| .method-tiles { max-height: none; } | |
| .tile { min-height: 66px; padding: 7px; } | |
| .tile-label { font-size: 12px; } | |
| .tile strong { font-size: 17px; } | |
| .tile small { font-size: 11px; } | |
| .shift-breakdown { gap: 10px; } | |
| .shift-breakdown dt, .shift-breakdown dd { font-size: 12px; } | |
| .history td { padding-top: 8px; padding-bottom: 8px; } | |
| .history-head { margin-bottom: 3px; } | |
| .slip-shift select, .method-control select { min-height: 44px; } | |
| } | |
| @media (max-width: 510px) { | |
| .history th:nth-child(2), .history th:nth-child(3), .history td:nth-child(2), .history td:nth-child(3), .transaction-time { display: none; } | |
| .history th { padding-top: 3px; } | |
| .mobile-meta { display: block; } | |
| .transaction-open { min-height: 24px; } | |
| .dialog-head, .entry-content, .detail-content, .dialog-actions { padding-inline: 13px; } | |
| .dialog-actions button, .icon-button { min-height: 44px; } | |
| .page-actions { gap: 4px; } | |
| .receipt-inputs { grid-template-columns: minmax(0,1fr); } | |
| .receipt-proof img { max-height: 150px; } | |
| .entry-fields input, .entry-fields select { width: 100%; min-height: 44px; } | |
| } | |
| @media (max-width: 350px) { | |
| .page-head { flex-direction: column; } | |
| .page-actions { justify-content: start; } | |
| .method-tiles { gap: 4px; } | |
| .tile strong { font-size: 14px; } | |
| .slip-row { grid-template-columns: minmax(80px, 1fr) max-content; } | |
| .slip-row strong { font-size: 12px; } | |
| .currency-input input { width: 90px; } | |
| } | |