.history-view{margin-top:32px}
.history-day-switch{display:grid;grid-template-columns:170px minmax(240px,360px) 170px;justify-content:center;align-items:end;gap:14px;margin:24px 0 20px}
.history-day-switch button{height:42px;border:1px solid #315172;background:#123049;color:#9fd9ff;font:800 12px Sora;cursor:pointer}
.history-day-switch label{display:grid;gap:8px;text-align:center;color:#86a7d1;font:800 10px Sora;letter-spacing:2px}
.history-day-switch input{height:46px;border:1px solid #65bdf4;background:#0a1422;color:#e8f2ff;text-align:center;font:800 18px Sora;padding:0 14px;outline:none}
.history-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0 28px}
.history-summary article{border:1px solid #29415f;background:#101b2b;box-shadow:4px 4px 0 #050b14;padding:18px 16px;min-height:96px}
.history-summary span{display:block;color:#86a7d1;font-size:9px;letter-spacing:1.8px;font-weight:800}
.history-summary strong{display:block;color:#69c2fb;font-size:25px;line-height:1.1;margin-top:14px;letter-spacing:-1px}
.history-list-panel{margin-top:22px}
.history-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px}
.history-card{position:relative;border:1px solid #29425e;background:#101b2b;box-shadow:4px 4px 0 #050b14;padding:17px}
.history-card .entry-code{position:static;display:inline-block;margin-bottom:12px}
.history-card-head{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid #243a55;padding-bottom:12px}
.history-card-head small{display:block;color:#7895be;font-size:10px;margin-bottom:5px}
.history-card-head b{display:block;color:#e5f2ff;font-size:16px;line-height:1.25}
.history-card-head strong{color:#69c2fb;font-size:21px;white-space:nowrap;text-align:right}
.history-card-meta{display:grid;gap:6px;margin-top:12px;color:#9bb8db;font-size:11px;line-height:1.45}
.history-card-note{margin-top:12px;border:1px solid #4d4326;background:#17160d;color:#ffd968;padding:9px 10px;font-size:11px;line-height:1.45}
.history-card-events{margin-top:12px;display:grid;gap:7px}
.history-event{border:1px solid #29415f;background:#0a1422;padding:9px 10px;color:#cfe3fb;font-size:11px}
.history-event b{color:#8ad3ff}
.history-event.reversed{border-color:#803646;background:#1b1118;color:#ff9daa}
.history-card.manual{border-color:#725d2a}
.history-card.manual .history-card-head strong{color:#ffd968}
@media(max-width:1100px){.history-list{grid-template-columns:repeat(2,minmax(0,1fr))}.history-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.history-day-switch{grid-template-columns:1fr}.history-list,.history-summary{grid-template-columns:1fr}}
.history-print-toolbar{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px;margin:12px 0 16px;padding:12px 14px;border:1px solid #29415f;background:#101b2b;color:#9bb8db;font-size:12px;min-height:56px}.history-print-toolbar>span,.history-print-toolbar>strong{margin-right:auto;color:#8fcfff;font:800 11px Sora;letter-spacing:.4px}.history-print-toolbar button{min-height:38px;padding:0 13px;border:1px solid #3c7097;background:#123049;color:#cceaff;font:700 11px Sora;cursor:pointer}.history-print-toolbar button:hover{background:#194461;border-color:#69c2fb}.history-print-toolbar #history-print-all{background:#62b9ed;color:#081421;border-color:#62b9ed}
#history-print-sheet[hidden]{display:none!important}
@media print{
  @page{size:A4 portrait;margin:12mm}
  html,body{width:auto!important;min-width:0!important;height:auto!important;margin:0!important;padding:0!important;background:#fff!important;color:#111!important}
  body.history-printing>*:not(#history-print-sheet){display:none!important}
  body.history-printing #history-print-sheet,body.history-printing #history-print-sheet[hidden]{display:block!important;position:static!important;inset:auto!important;width:100%!important;height:auto!important;overflow:visible!important;margin:0!important;padding:0!important;background:#fff!important;color:#111!important;font:9pt Arial,sans-serif}
  body.history-printing #history-print-sheet,body.history-printing #history-print-sheet *{visibility:visible!important}
  body.history-printing #history-print-sheet *{box-sizing:border-box;color:#111!important;text-shadow:none!important;box-shadow:none!important}
  .history-print-page{display:block;width:100%;break-after:page;page-break-after:always}
  .history-print-page:last-child{break-after:auto;page-break-after:auto}
  .history-print-profit-page{break-before:page;page-break-before:always}
  .history-print-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border-bottom:2px solid #17283c;padding:0 0 9px;margin-bottom:12px}.history-print-header h1{font-size:19pt;margin:0 0 4px}.history-print-header p{font-size:10pt;margin:0}.history-print-header small{font-size:8pt;color:#555!important;text-align:right}
  .history-print-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0 15px}.history-print-tiles article{min-width:0;border:1px solid #9aa5b1;padding:7px 8px;break-inside:avoid;page-break-inside:avoid}.history-print-tiles span{display:block;font-size:7pt;text-transform:uppercase;font-weight:bold;margin-bottom:5px}.history-print-tiles strong{font-size:10pt;overflow-wrap:anywhere}
  .history-print-page h2{font-size:12pt;margin:12px 0 7px}.history-print-page h2 small{font-size:8pt;font-weight:normal}
  .history-print-table{width:100%;border-collapse:collapse;table-layout:auto;font-size:7.5pt}.history-print-table thead{display:table-header-group}.history-print-table th,.history-print-table td{border:1px solid #aeb6bf;padding:5px 6px;text-align:left;vertical-align:top;overflow-wrap:anywhere;word-break:normal}.history-print-table th{background:#e9edf1!important;font-weight:bold}.history-print-table tr{break-inside:avoid;page-break-inside:avoid}
  .history-print-empty{padding:10px;border:1px solid #aeb6bf}.history-print-page footer{margin-top:14px;padding-top:7px;border-top:1px solid #aeb6bf;font-size:7pt;color:#555!important;overflow-wrap:anywhere}
}
