:root { color-scheme: light; font-family: "Segoe UI", Arial, sans-serif; color: #141d2a; background: #f7f6f1; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: #163d68; }
:focus-visible { outline: 3px solid #c0323c; outline-offset: 3px; }
header { background: white; border-bottom: 1px solid #dfe1e4; }
.layout { width: min(1120px, calc(100% - 44px)); margin-inline: auto; }
.top { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { color: #111f37; font-weight: 780; text-decoration: none; letter-spacing: -.025em; font-size: 1.26rem; }
.brand span { color: #415773; font-weight: 580; }
.page-intro { margin: 36px 0 24px; }
h1 { margin: 0; font-size: clamp(2.05rem, 5vw, 3.35rem); line-height: 1.07; letter-spacing: -.045em; }
h2 { font-size: 1.3rem; margin: 0 0 10px; letter-spacing: -.025em; }
p { line-height: 1.55; }
.panel { min-width: 0; background: #fff; padding: 23px; border: 1px solid #dfe1e4; }
.login { width: min(100%, 470px); margin: clamp(28px, 8vh, 85px) auto; padding: clamp(19px, 5vw, 36px); }
.login h1 { margin-bottom: 24px; }
.fields { display: grid; gap: 15px; }
label { display: grid; gap: 6px; min-width: 0; font-weight: 650; font-size: .9rem; }
input, select, button { font: inherit; }
summary { cursor: pointer; font-size: .9rem; font-weight: 650; }
input, select { width: 100%; min-width: 0; background: white; color: #141d2a; min-height: 43px; padding: 7px 10px; border: 1px solid #aeb8c5; border-radius: 0; font-size: 1rem; }
button { cursor: pointer; min-height: 43px; padding: 7px 13px; font-size: .9rem; font-weight: 700; border: 1px solid #aeb8c5; }
.quiet { background: white; color: #111f37; }
.quiet:hover { background: #edf2f7; }
.primary { background: #111f37; color: white; border-color: #111f37; }
.primary:hover { background: #163d68; }
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.tool { display: flex; flex-direction: column; min-height: 175px; }
.tool p { margin: 0 0 13px; color: #48566a; }
.tool a, .tool .status { margin-top: auto; }
.tool-link, .back { font-size: .9rem; font-weight: 680; }
.fuel-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.5fr); align-items: start; gap: 15px; padding-bottom: 35px; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.fuel-grid h2 { margin-bottom: 19px; }
.back { display: inline-block; margin-bottom: 12px; }
.filter { display: flex; align-items: end; gap: 8px; }
.filter label { flex: 1; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; background: #eef2f8; padding: 14px; }
.metrics dt, .status { color: #48566a; font-size: .85rem; }
.metrics dd { margin: 3px 0 0; font-size: 1.08rem; font-weight: 750; }
.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; text-align: left; font-size: .83rem; }
th, td { padding: 9px 7px; border-bottom: 1px solid #dfe1e4; }
.notice { padding: 10px 12px; background: #fcebec; border-left: 3px solid #a52837; }
.notice.success { background: #e8f4eb; border-left-color: #297246; }
.fiscal-nav, .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 14px 0; }
.fiscal-nav a { font-size: .9rem; font-weight: 650; }
.fiscal-page { padding-bottom: 36px; }
.fiscal-page > section, .fiscal-page > .fuel-grid { margin-top: 15px; }
.fiscal-page textarea { width: 100%; min-height: 120px; padding: 10px; font: inherit; }
.stock-level { margin: 0 0 12px; font-size: clamp(1.7rem, 5vw, 2.7rem); font-weight: 750; letter-spacing: -.035em; }
.fiscal-page .button-link { display: inline-flex; align-items: center; min-height: 43px; padding: 7px 13px; border: 1px solid #aeb8c5; text-decoration: none; font-size: .9rem; font-weight: 700; }
.fiscal-page .button-link:hover { background: #eff3f8; }
@media print {
  header, .no-print, .back { display: none !important; }
  .layout { width: 100%; }
  :root { background: white; }
  .panel { border: 0; padding: 0; }
}
@media (max-width: 770px) {
  .layout { width: calc(100% - 30px); }
  .tools, .fuel-grid { grid-template-columns: minmax(0, 1fr); }
  .page-intro { margin-top: 24px; }
  .panel { padding: 17px; }
}
