/* Slim Olsons. Plain CSS, no build step. */
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; color: #222; background: #fff; }
main { max-width: 1100px; margin: 0 auto; padding: 16px 20px 60px; }
h2 { margin: 8px 0 16px; }
a { color: #0868b5; }
.red { color: #c0262d; font-weight: bold; }
.green { color: #1d7a2e; font-weight: bold; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Top bar */
.bar { display: flex; align-items: center; gap: 18px; padding: 0 20px; background: #222; color: #ddd; min-height: 44px; flex-wrap: wrap; }
.bar a { color: #ddd; text-decoration: none; }
.bar .brand { font-size: 18px; color: #fff; font-weight: 600; }
.bar nav.main { display: flex; gap: 4px; align-items: center; }
.bar nav.main > a, .bar summary { padding: 11px 10px; display: inline-block; cursor: pointer; }
.bar nav.main > a.active, .bar nav.main > a:hover, .bar summary:hover { color: #fff; background: #111; }
.bar .me { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.bar .station { color: #999; }
details.menu { position: relative; }
details.menu > summary { list-style: none; }
details.menu > summary::after { content: " ▾"; font-size: 11px; }
details.menu .drop { position: absolute; z-index: 10; top: 100%; left: 0; min-width: 180px; background: #fff; border: 1px solid #ccc; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,.15); padding: 6px 0; }
details.menu.right .drop { left: auto; right: 0; }
.drop a, .drop button.link { display: block; width: 100%; text-align: left; padding: 5px 16px; color: #333; background: none; border: 0; font: inherit; cursor: pointer; }
.drop a:hover, .drop button.link:hover { background: #0868b5; color: #fff; }
.drop hr { border: 0; border-top: 1px solid #e5e5e5; margin: 5px 0; }

/* Buttons and inputs */
.btn { display: inline-block; padding: 5px 12px; border: 1px solid #bbb; border-radius: 4px; background: #f5f5f5; color: #333; font: inherit; cursor: pointer; text-decoration: none; }
.btn:hover { background: #e6e6e6; }
.btn.primary { background: #0868b5; border-color: #06508b; color: #fff; }
.btn.success { background: #3d9b3d; border-color: #2f7a2f; color: #fff; }
.btn.warning { background: #f0a030; border-color: #c98220; color: #fff; }
.btn.danger { background: #c0262d; border-color: #9a1e24; color: #fff; }
.btn.big { padding: 9px 18px; font-size: 17px; }
.btn.small { padding: 1px 7px; font-size: 12px; }
.btn.active { background: #ddd; }
input[type=text], input[type=password], input[type=date], input[type=month], select {
  font: inherit; padding: 5px 7px; border: 1px solid #bbb; border-radius: 4px; background: #fff; }
input[readonly] { background: #f3f3f3; }
form.inline { display: inline; }
.stack { display: flex; flex-direction: column; gap: 4px; max-width: 360px; }
.stack label { margin-top: 6px; }
.stack .btn { margin-top: 12px; align-self: flex-start; }
.narrow { max-width: 360px; margin: 30px auto; }
.logo { max-width: 100%; }
.alert { background: #f9dcdc; border: 1px solid #e5a5a5; color: #8a1f11; padding: 8px 12px; border-radius: 4px; }
.notice { background: #dff0d8; border: 1px solid #b2d8a4; color: #2d6a1f; padding: 8px 12px; border-radius: 4px; }
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 18px; }
.actions { margin: 18px 0; display: flex; gap: 10px; }

/* Tables */
table.grid { border-collapse: collapse; margin-bottom: 14px; }
table.grid th, table.grid td { border: 1px solid #ddd; padding: 4px 8px; }
table.grid th { background: #f5f5f5; }
table.grid.small { font-size: 12px; }
.recent { margin-bottom: 18px; overflow-x: auto; }

/* Report form */
.report-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.report-head h4 { margin: 0; min-width: 110px; }
.report { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.module { border: 1px solid #ccc; border-radius: 6px; padding: 10px 14px 14px; margin-bottom: 16px; background: #fcfcfc; }
.module .head { font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.module > label { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 5px 0; }
.module input.amt { width: 110px; text-align: right; }
.cash-count { display: flex; align-items: center; gap: 8px; margin: 4px 0; min-height: 30px; }
.cash-count label { width: 90px; }
.cash-count input.bill { width: 70px; }
.cash-count span.cash { width: 80px; text-align: right; color: #666; font-variant-numeric: tabular-nums; }
.cash-count.gap { min-height: 10px; }
.module .result { margin-top: 8px; text-align: right; }
.cashier { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }

/* Fuel colors, as on the pumps */
.diesel { color: #1d7a2e; } .regular { color: #c0262d; } .supreme { color: #0868b5; } .plus { color: #8a5a00; } .kero { color: #6b3fa0; }

/* Tank */
.cols { display: flex; flex-wrap: wrap; gap: 20px; }
.col { flex: 1 1 420px; min-width: 0; }
.tank { display: flex; align-items: center; gap: 6px; margin: 4px 0; }
.tank > span:first-child { width: 90px; font-weight: 600; font-size: 13px; }
.tank input.amt { width: 70px; }
.readings { display: flex; flex-wrap: wrap; gap: 8px; }
.reading-card { font-size: 13px; }

/* Admin day cards and print */
.view-module, .print-module { display: inline-grid; grid-template-columns: auto auto; gap: 2px 14px; vertical-align: top; border: 1px solid #ccc; border-radius: 6px; padding: 10px 14px; margin: 0 12px 12px 0; min-width: 230px; }
.view-module .cell.head, .print-module .cell.head { grid-column: 1 / 3; font-weight: 600; font-size: 16px; }
.view-module .cell, .print-module .cell { text-align: right; font-variant-numeric: tabular-nums; }
.view-module.total, .print-module.total { background: #f5f5f5; }
.view-module.day { display: inline-grid; min-width: 160px; }
.under { border-bottom: 1px solid #000; }
.under2 { border-bottom: 2px solid #000; }
.raw { margin-top: 14px; }

body.print { padding: 20px; }
@media print {
  .bar, .filters, .actions, form.inline, .btn { display: none !important; }
  body.print { padding: 0; }
  .print-module { break-inside: avoid; }
}
@media (max-width: 640px) {
  main { padding: 10px; }
  .bar { gap: 8px; }
}

/* Sign-in page: no nav bar, the mark and the sign's wordmark. */
body.bare { min-height: 100vh; background: radial-gradient(1200px 600px at 50% -10%, #dfe9fb 0%, #f4f6fa 55%, #eef1f6 100%); }
body.bare main { max-width: none; padding: 0; }
.signin { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; }
.signin-card { width: min(380px, 100%); background: #fff; border: 1px solid #e3e8ef; border-radius: 18px; padding: 36px 32px 32px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 12px 32px -8px rgba(20,40,90,.16); animation: rise .35s cubic-bezier(.2,.8,.2,1) both; }
.signin-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 26px; }
.signin-mark { width: 132px; height: auto; }
.signin-wordmark { width: 230px; height: auto; }
.signin h1 { font-size: 15px; font-weight: 600; color: #5b6575; text-align: center; letter-spacing: .02em; margin: 0 0 18px; }
.signin-error { background: #fdecec; color: #9b1c1c; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 0 0 16px; }
.signin-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #344054; }
.field input { height: 46px; padding: 0 14px; font-family: inherit; font-size: 16px; color: #101828; background: #fff; border: 1px solid #d0d7e2; border-radius: 10px;
  transition: border-color .15s, box-shadow .15s; }
.field input:focus { outline: none; border-color: #1d5cc4; box-shadow: 0 0 0 4px rgba(29,92,196,.16); }
.signin-btn { margin-top: 8px; height: 48px; border: 0; border-radius: 10px; color: #fff; font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  background: linear-gradient(90deg, #1f2b7a 0%, #1d5cc4 55%, #12a9ea 100%); box-shadow: 0 6px 16px -6px rgba(29,92,196,.6);
  transition: filter .15s, transform .05s; }
.signin-btn:hover { filter: brightness(1.08); }
.signin-btn:active { transform: translateY(1px); }
.signin-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(29,92,196,.3); }
.signin-foot { margin-top: 20px; font-size: 12px; color: #8a94a3; letter-spacing: .04em; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .signin-card { animation: none; } }
