:root{font-family:system-ui,sans-serif;color:#183b59;background:#f1f6fb}*{box-sizing:border-box}body{margin:0}header{background:#fff;border-bottom:1px solid #dce6ef;padding:28px 5%;display:flex;justify-content:space-between;align-items:center}h1{font-size:28px;margin:8px 0}h2{font-size:21px}small,.hint{color:#708499}header p{margin-bottom:0}main{max-width:1500px;margin:auto;padding:28px 4%}nav{display:flex;gap:12px;margin-bottom:24px;flex-wrap:wrap}button,a{font:inherit}button{padding:10px 18px;border:1px solid #cbdbea;background:#fff;border-radius:8px;color:#28577c;cursor:pointer}button:hover{background:#e9f4ff}button.active,.primary{background:#2478e8;color:#fff;border-color:#2478e8}button:disabled{opacity:.5;cursor:wait}a{color:#2478e8;margin-right:16px}.filters{display:flex;gap:16px;align-items:end;flex-wrap:wrap}label{display:flex;flex-direction:column;gap:8px;font-size:14px}input,select,textarea{font:inherit;border:1px solid #ccdce9;border-radius:7px;padding:11px;background:white;color:#183b59}textarea{min-height:110px;resize:vertical}.search{flex:1;min-width:230px}.summary{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:22px 0}.metric,.panel{background:white;border:1px solid #dfebf4;border-radius:14px}.metric{padding:22px}.metric strong{display:block;font-size:30px;margin-top:8px}.panel{padding:22px;overflow:auto}table{width:100%;border-collapse:collapse;font-size:14px;white-space:nowrap}td,th{text-align:left;padding:15px 12px;border-bottom:1px solid #e7eef5}th{color:#71869b;font-weight:500}td small{display:block;margin-top:5px}td button{padding:7px 10px;margin:3px}.hint{font-size:13px;line-height:1.8}.empty{text-align:center;padding:45px;color:#71869b}dialog{border:0;border-radius:16px;padding:28px;width:min(560px,90vw);max-height:85vh;box-shadow:0 12px 60px #183b5940}dialog::backdrop{background:#102b4766}dialog form{display:grid;gap:18px}.actions{display:flex;justify-content:flex-end;gap:12px}.city-checks{display:flex;gap:14px;flex-wrap:wrap}.city-checks label{flex-direction:row;align-items:center}.note{background:#f3f7fb;padding:12px;margin:10px 0;white-space:pre-wrap}.danger{color:#b74444}#status{min-height:20px;color:#b74444}[hidden]{display:none!important}@media(max-width:700px){header{align-items:start;gap:20px}.summary{grid-template-columns:1fr}.filters label{flex:1;min-width:140px}main{padding:20px}header small{font-size:11px}}
.note-preview{display:block;max-width:200px;white-space:normal;line-height:1.6;cursor:help}.note-bubble{display:none;position:fixed;z-index:1000;bottom:30px;right:30px;max-width:420px;max-height:45vh;overflow:auto;white-space:pre-wrap;background:#173b59;color:white;padding:20px;border-radius:12px;box-shadow:0 10px 35px #183b5940}.note-preview:hover .note-bubble,.note-preview:focus .note-bubble{display:block}.summary .metric:last-child strong{font-size:18px;line-height:1.7}.source{padding:5px 9px;border-radius:6px;background:#edf4fb}.source.payment{background:#e4f6ec;color:#29764a}.source.test{color:#876c2b;background:#fff6dc}.source.redemption{background:#eeeafa;color:#6b4ba0}

.note-bubble{bottom:auto;right:auto}
