/* Geçmiş sayfası — İstatistik ile aynı gece mavisi sahne. hs- öneki. */
body[data-page=history]{background:#073775;color:#eaf4ff}
body[data-page=history] .ambient{display:none}
body[data-page=history] #main{min-height:100dvh;background:radial-gradient(ellipse at 78% 12%,#007abe 0,transparent 42%),radial-gradient(ellipse at 10% 90%,#0a4f9a66 0,transparent 40%),linear-gradient(132deg,#073775 12%,#06448a 61%,#062a60)}
body[data-page=history] :is(button,a,select):focus-visible{outline-color:#adcafa}
body[data-page=history] .page{margin-top:0;padding-top:calc(var(--app-safe-top) + 28px)}
body[data-page=history] #app-dialog{color:#213e56}
.history-page{--muted:#a6c6e2;--line:#ffffff1f;width:min(1200px,calc(100% - 80px))}
.hs-eyebrow{display:flex;align-items:center;gap:14px;font-size:10px;color:#b2d4ee;margin:0}
.hs-pill{display:inline-flex;align-items:center;border:1px solid #ffffff38;background:#ffffff0a;border-radius:5px;padding:4px 7px;font-size:8px;color:#d7ecff}
.hs-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0}
.hs-title{font-size:clamp(30px,3vw,44px);letter-spacing:-1.6px;line-height:1.1;color:#fff;margin:0}
.hs-sub{font-size:12px;color:var(--muted);margin-top:12px;max-width:640px;line-height:1.6}
.hs-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:22px}
.hs-tile{display:grid;gap:8px;padding:18px 20px;border:1px solid #b8e8ff2a;border-radius:20px;background:#ffffff0a;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);text-align:left;color:inherit;min-height:0}
.hs-tile span{font-size:10px;color:var(--muted);letter-spacing:.02em}
.hs-tile b{font-size:26px;line-height:1;color:#fff;letter-spacing:-.8px;white-space:nowrap}
.hs-tile b small{font-size:12px;color:#b5d9f6;margin-left:5px;letter-spacing:0}
.hs-tile em{font-style:normal;font-size:10px;color:#9fc6e4}
.hs-tile.alert b{color:#ffd9a3}
.hs-tile.ok b{color:#9ff0d2}
.hs-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:26px}
.hs-tabs{display:inline-flex;padding:4px;border-radius:12px;background:#ffffff12;border:1px solid #ffffff1a;gap:3px}
.hs-tabs button{background:none;font-size:11px;border-radius:9px;padding:10px 16px;color:#b5d9f6;min-height:40px;display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.hs-tabs button i{font-style:normal;font-size:9px;padding:2px 6px;border-radius:6px;background:#ffffff14;color:#d5efff}
.hs-tabs .active{color:#0f2e52;background:#e2f0fa}
.hs-tabs .active i{background:#0f2e5218;color:#0f2e52}
.history-page select{min-width:190px;font-size:12px;color:#d5efff;background:#063b7780;border:1px solid #b8e8ff40;border-radius:12px;padding:11px 14px;backdrop-filter:blur(10px)}
.history-page select option{color:#173951}
.hs-list{display:grid;gap:18px;margin-top:22px}
.hs-day{border:1px solid #b8e8ff2a;border-radius:22px;background:#ffffff0a;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);padding:6px 10px 6px;overflow:hidden}
.hs-day-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:14px 14px 8px}
.hs-day-head h2{font-size:14px;color:#fff;margin:0}
.hs-day-head span{font-size:10px;color:var(--muted);white-space:nowrap}
.hs-event{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:14px;width:100%;padding:12px 10px;border:0;border-top:1px solid #ffffff10;background:none;color:inherit;text-align:left;border-radius:12px}
.hs-event:first-of-type{border-top:0}
.hs-event:hover{background:#ffffff0c}
.hs-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:#ffffff12;color:#bfe3ff;flex:none}
.hs-icon .icon{width:18px;height:18px}
.hs-icon.fill{background:#2a7ec433;color:#9fd4ff}.hs-icon.fill-day{background:#2a7ec422;color:#9fd4ff}
.hs-icon.fault{background:#c4521b33;color:#ffc9a6}.hs-icon.service{background:#1fa37c33;color:#a4f1d7}
.hs-icon.filter{background:#5b7fe333;color:#c4d4ff}.hs-icon.collection{background:#cda53033;color:#ffe9a8}
.hs-icon.offline{background:#ffffff14;color:#cbd9e6}.hs-icon.restart{background:#7f61d433;color:#dcd2ff}
.hs-main{min-width:0}
.hs-main strong{display:block;font-size:13px;font-weight:500;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hs-main span{display:block;font-size:10px;color:var(--muted);margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hs-side{display:grid;justify-items:end;gap:5px;text-align:right}
.hs-amount{font-size:14px;font-weight:500;color:#fff;white-space:nowrap}
.hs-amount small{font-size:10px;color:#b5d9f6;margin-left:3px;font-weight:400}
.hs-time{font-size:10px;color:var(--muted);white-space:nowrap}
.hs-status{font-size:8px;letter-spacing:1px;text-transform:uppercase;border-radius:6px;padding:4px 7px;font-weight:600}
.hs-status.open{background:#ffb37026;color:#ffd1a2;border:1px solid #ffb37050}
.hs-status.resolved{background:#7ce7c41c;color:#a4f1d7;border:1px solid #7ce7c440}
.hs-status.high{background:#ff8a8a26;color:#ffc2c2;border:1px solid #ff8a8a50}
.hs-more{display:flex;justify-content:center;margin-top:6px}
.hs-empty{text-align:center;padding:60px 25px;border:1px solid #b8e8ff2a;border-radius:24px;background:#ffffff0a;margin-top:22px;color:var(--muted);font-size:13px;line-height:1.8}
.hs-empty>.icon{width:34px;height:34px;color:#9ccbee;margin-bottom:14px}
.hs-foot{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;font-size:9px;color:#9bc3e3;margin-top:28px}
.hs-foot button{background:none;display:flex;align-items:center;gap:8px;font-size:9px;color:#9bc3e3;padding:4px 0}
.hs-foot .icon{width:13px;height:13px}
.hs-foot i{width:3px;height:3px;border-radius:50%;background:#9bc3e3;display:inline-block;margin:0 4px}
/* Olay detayı penceresi */
.hs-detail{display:grid;gap:14px}
.hs-detail-head{display:flex;align-items:center;gap:14px}
.hs-detail-head .hs-icon{width:46px;height:46px;border-radius:15px}
.hs-detail-head p{font-size:12px;color:var(--muted,#738799);margin-top:4px}
.hs-detail dl{display:grid;gap:0;margin:4px 0 0;font-size:12px}
.hs-detail dl div{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid #dce6ed}
.hs-detail dl div:last-child{border-bottom:0}
.hs-detail dt{color:#738799}
.hs-detail dd{margin:0;font-weight:500;text-align:right}
.hs-detail .hs-note{font-size:11px;color:#738799;line-height:1.7}
[data-theme=dark] .hs-detail dl div{border-color:#2e4556}
[data-theme=dark] .hs-detail dt,[data-theme=dark] .hs-detail .hs-note,[data-theme=dark] .hs-detail-head p{color:#8a9fb0}
@media(max-width:980px){.hs-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px),(max-height:550px){
  body[data-page=history] .page{padding-top:calc(var(--app-safe-top) + 22px)}
  .history-page{width:calc(100% - 36px - var(--app-safe-left) - var(--app-safe-right))}
  .hs-title{font-size:30px}
  .hs-tile{padding:14px 14px}.hs-tile b{font-size:22px}
  .hs-controls{display:grid}
  .hs-tabs{display:grid;grid-template-columns:repeat(4,1fr);width:100%;overflow:hidden}
  .hs-tabs button{padding:10px 4px;font-size:10px;justify-content:center;gap:5px}
  .hs-tabs button i{display:none}
  .history-page select{min-width:0;width:100%}
  .hs-event{grid-template-columns:36px minmax(0,1fr) auto;gap:10px;padding:12px 6px}
  .hs-icon{width:36px;height:36px;border-radius:11px}
  .hs-main strong{font-size:12px;white-space:normal}
}
@media(max-width:400px){.hs-tiles{gap:8px}.hs-tile b{font-size:19px}.hs-tabs button{font-size:9px}}

/* Build 5: destek talebi düğmesi, canlı satır girişi, form */
.hs-ticket{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border-radius:14px;border:1px solid #b8e8ff55;background:#e2f0fa;color:#0f2e52;font-size:12px;font-weight:500;white-space:nowrap;box-shadow:0 8px 24px #00245626}
.hs-ticket .icon{width:18px;height:18px}
.hs-ticket:hover{background:#fff}
.hs-event.is-new{animation:row-in .7s cubic-bezier(.22,.8,.3,1) both,row-glow 1.8s ease-out}
@keyframes row-in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
@keyframes row-glow{0%{background:#5ad1ff00}20%{background:#5ad1ff33}100%{background:#5ad1ff00}}
.hs-tile b[data-live]{display:inline}
.hs-end{text-align:center;font-size:10px;color:var(--muted);margin-top:18px}
.hs-more{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:14px}
.hs-form{display:grid;gap:14px}
.hs-form label{display:grid;gap:7px;font-size:12px;color:#5c7a90}
.hs-form input,.hs-form select,.hs-form textarea{width:100%;font-size:14px;padding:12px 13px;border-radius:12px;border:1px solid #cfdde7;background:#fff;color:#213e56}
.hs-form textarea{resize:vertical;min-height:96px}
.hs-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.hs-upload{position:relative;display:grid;gap:10px;padding:14px;border:1px dashed #80afc7;border-radius:14px;background:#f3f8fc;cursor:pointer;overflow:hidden}
.hs-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:1;padding:0}
.hs-upload-button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;font-size:13px;color:#075b80}
.hs-upload-button small{font-size:11px;color:#6a8798}
.hs-upload-button .icon{width:18px;height:18px}
.hs-upload img{width:100%;max-height:180px;object-fit:cover;border-radius:10px;border:1px solid #fff}
.hs-form-note{display:flex;align-items:flex-start;gap:8px;font-size:11px;color:#738799;line-height:1.6}
.hs-form-note .icon{width:14px;height:14px;margin-top:2px;flex:none}
.hs-submit{width:100%;font-size:13px}
[data-theme=dark] .hs-form label{color:#a9c0d2}
[data-theme=dark] .hs-form input,[data-theme=dark] .hs-form select,[data-theme=dark] .hs-form textarea{background:#17304266;border-color:#52728a66;color:#d9eaf6}
[data-theme=dark] .hs-upload{background:#17304266;border-color:#5f8aa5}
[data-theme=dark] .hs-upload-button{color:#9cd3f0}
@media(max-width:800px),(max-height:550px){
  body[data-page=history] .page{padding-top:calc(var(--app-safe-top) + 22px)}
  .hs-ticket span{display:none}
  .hs-ticket{width:44px;padding:0;justify-content:center;border-radius:50%}
  .hs-form-row{grid-template-columns:1fr}
}
