*{box-sizing:border-box}
body{margin:0;font:15px/1.5 "Segoe UI",Arial,sans-serif;background:#f4f6f8;color:#1c2530}
header{background:#1f3b57;color:#fff;padding:14px 22px;display:flex;align-items:center;gap:20px;flex-wrap:wrap}
header b{font-size:18px;letter-spacing:.3px}
header nav{display:flex;gap:4px;flex-wrap:wrap;flex:1}
header a{color:#cfe0f0;text-decoration:none;font-size:14px;padding:6px 10px;border-radius:6px}
header a:hover{background:#2c5378;color:#fff}
header a.on{background:#fff;color:#1f3b57;font-weight:600}
header .kdo{font-size:13px;color:#b9cee2;white-space:nowrap}
main{max-width:1120px;margin:24px auto;padding:0 18px}
h1{font-size:22px;margin:0 0 18px}
h2{font-size:16px;margin:24px 0 10px;color:#1f3b57}
.card{background:#fff;border:1px solid #dde3ea;border-radius:10px;padding:20px;margin-bottom:18px}
table{width:100%;border-collapse:collapse;font-size:14px}
th,td{padding:8px 10px;border-bottom:1px solid #e6ebf0;text-align:left;vertical-align:middle}
th{background:#f0f3f6;font-weight:600;font-size:13px}
td.r,th.r{text-align:right}
input,select,textarea{font:14px "Segoe UI",Arial;padding:7px 9px;border:1px solid #c6cfd8;border-radius:6px;width:100%;background:#fff}
input:focus,select:focus{outline:2px solid #3f7fb8;border-color:#3f7fb8}
label{display:block;font-size:13px;color:#5a6875;margin-bottom:4px;font-weight:500}
.row{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:14px}
.row>div{flex:1;min-width:170px}
button,.btn{font:14px "Segoe UI";padding:9px 18px;border-radius:6px;border:0;cursor:pointer;
  background:#1f3b57;color:#fff;text-decoration:none;display:inline-block}
button:hover,.btn:hover{background:#2c5378}
.btn-2{background:#e8edf2;color:#1f3b57}.btn-2:hover{background:#d7e0e9}
.btn-x{background:#b03b3b;padding:5px 11px;font-size:13px}.btn-x:hover{background:#8e2f2f}
.btn-d{background:#eef4ea;color:#3d6b2e;border:1px solid #bdd6ae}.btn-d:hover{background:#dcebd3;color:#2f5423}
.btn-p{background:#8a6d1f}.btn-p:hover{background:#6f5718}
.btn-dl{background:#2f6b4f}.btn-dl:hover{background:#255740}
.btn-sm{background:#5b4a9c}.btn-sm:hover{background:#4a3c82}
button:disabled,.btn:disabled{background:#dde3ea;color:#9aa5b0;cursor:default}
th.ck,td.ck{width:38px;text-align:center;padding-left:6px;padding-right:6px}
.chk,#allchk{width:17px;height:17px;cursor:pointer;accent-color:#1f3b57}
.mcell{position:relative}
.mlist{position:absolute;z-index:60;left:0;right:0;top:100%;max-height:290px;overflow-y:auto;
  background:#fff;border:1px solid #9fb0c0;border-radius:6px;box-shadow:0 8px 20px rgba(0,0,0,.16);display:none}
.mlist div{padding:7px 10px;cursor:pointer;font-size:14px;border-bottom:1px solid #f0f3f6}
.mlist div:last-child{border-bottom:0}
.mlist div:hover,.mlist div.on{background:#e4ecf3}
.mlist .mu{color:#7b8792;font-size:12.5px;float:right;margin-left:12px;white-space:nowrap}
.mlist .none{color:#8b96a1;cursor:default;font-style:italic}
.btn-d.off{background:#f2f4f6;color:#a8b2bb;border-color:#e0e5ea;cursor:default}
.btn-lg{font-size:16px;padding:13px 26px}
.msg{background:#e6f4e6;border:1px solid #a9d3a9;padding:11px 15px;border-radius:8px;margin-bottom:16px}
.msg.error{background:#fbeaea;border-color:#e0b4b4}
.msg.info{background:#eaf1fb;border-color:#b8cbe6}
.note{font-size:13px;color:#6b7885}
.tot{background:#f7f9fb;border:1px solid #dde3ea;border-radius:8px;padding:14px 18px;margin-top:14px}
.tot div{display:flex;justify-content:space-between;padding:4px 0}
.tot .big{border-top:2px solid #1f3b57;margin-top:8px;padding-top:9px;font-weight:700;font-size:16px}
.mini{font-size:13px;padding:5px 7px}
.arh{opacity:.55}
.lenta{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:14px}
.vhod{max-width:400px;margin:70px auto}
.vhod .card{padding:26px}
form.inline{display:inline}
.linkbox{border-color:#bdd6ae;background:#f6faf3}
.linkbox input{font-family:Consolas,"Courier New",monospace;font-size:13px;flex:1;min-width:280px}
.linkbox .lenta{margin-bottom:6px}
