:root{--yellow:#f6c927;--lime:#b8ed18;--bg:#f5f6f8;--text:#171717;--muted:#7b7f87;--line:#e5e7eb}
*{box-sizing:border-box}body{margin:0;font-family:Arial,sans-serif;background:var(--bg);color:var(--text)}
header{height:86px;background:var(--yellow);display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 34px;font-size:25px;font-weight:700}
.app{display:flex;min-height:calc(100vh - 86px)}
.main-nav{width:235px;background:#fff;border-right:1px solid var(--line);padding:20px 13px}
.nav-btn,.sub-btn{width:100%;border:0;background:transparent;cursor:pointer;text-align:left;border-radius:10px;font-size:14px}
.nav-btn{height:50px;padding:0 16px;margin-bottom:6px;color:#4b4d52}.nav-btn:hover{background:#f1f2f4}.nav-btn.active{background:var(--lime);font-weight:700;color:#111}
.subnav{width:220px;padding:20px 14px;background:#fafafa;border-right:1px solid var(--line)}
.sub-btn{padding:13px 15px;margin-bottom:6px;background:#fff;border:1px solid var(--line)}.sub-btn:hover{background:#f3f4f6}
.content{flex:1;padding:38px 44px;overflow:auto}.panel{display:none;max-width:850px}.panel.active{display:block}
h1,h2{margin:0 0 9px}h2{font-size:24px}p{color:var(--muted);font-size:14px;line-height:1.5}
.card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:25px;margin-top:22px;box-shadow:0 5px 20px #00000008}
.field{display:block;margin:16px 0}.field span{display:block;font-size:13px;font-weight:700;margin-bottom:7px}
input,select{width:min(100%,430px);height:42px;border:1px solid #d8dbe0;border-radius:9px;padding:0 12px;background:#fff;font-size:14px}
.action{margin-top:10px;padding:11px 19px;border:0;border-radius:9px;background:var(--lime);font-weight:700;cursor:pointer}
.list{display:flex;flex-direction:column;gap:8px;margin-top:20px}.row{background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px 18px}.clickable{cursor:pointer;display:flex;justify-content:space-between}.clickable:hover{box-shadow:0 4px 12px #0000000b}
.small{display:block;color:var(--muted);font-size:12px;margin-top:5px}
.drop{margin-top:20px;width:min(100%,650px);height:230px;border:2px dashed #ccd0d6;border-radius:14px;background:#fafbfc;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:.15s}
.drop.over{border-color:#a8d600;background:#f7fddd}.drop strong{font-size:15px}.drop span{font-size:13px;color:var(--muted);margin:8px}
.file-btn{background:var(--lime);padding:10px 17px;border-radius:9px;font-size:13px;font-weight:700;cursor:pointer}.status{margin-top:14px;font-size:13px;font-weight:700}
.history{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;margin-top:20px}.log{display:grid;grid-template-columns:170px 130px 1fr;padding:13px 16px;border-bottom:1px solid var(--line);font-size:13px}.log:last-child{border:0}.muted{color:var(--muted)}
@media(max-width:850px){.main-nav{width:190px}.subnav{width:190px}.content{padding:25px}}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.hint{color:#666;margin-top:0}.field b{color:#c33}.error{margin:12px 0;padding:10px;border-radius:8px;background:#fff0f0;color:#b42318}@media(max-width:700px){.form-grid{grid-template-columns:1fr}}.primary{margin-top:16px;padding:12px 20px;border:0;border-radius:9px;background:var(--lime);color:#111;font-size:14px;font-weight:700;cursor:pointer;box-shadow:0 2px 6px #00000012;transition:.15s}.primary:hover{filter:brightness(.96);box-shadow:0 4px 10px #00000018}.primary:active{transform:translateY(1px)}

button.primary{
  appearance:none !important;
  -webkit-appearance:none !important;
  border:0 !important;
  border-radius:10px !important;
  background:#a8ef00 !important;
  color:#111 !important;
  padding:12px 22px !important;
  font-family:inherit !important;
  font-size:15px !important;
  font-weight:700 !important;
  line-height:1.2 !important;
  cursor:pointer !important;
  box-shadow:0 2px 6px rgba(0,0,0,.10) !important;
}
button.primary:hover{
  background:#9be600 !important;
  box-shadow:0 4px 10px rgba(0,0,0,.14) !important;
}
button.primary:active{
  transform:translateY(1px) !important;
}

.drop-zone{
  min-height:180px;
  border:2px dashed #cfd6dc;
  border-radius:12px;
  background:#fafbfc;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-align:center;
  transition:.15s;
}
.drop-zone.dragover{
  border-color:#a8ef00;
  background:#f6ffe1;
}
.drop-icon{font-size:28px;font-weight:700;line-height:1}
.drop-title{font-size:17px;font-weight:700}
.drop-subtitle{font-size:13px;color:#777}
.file-button{
  display:inline-block;
  padding:10px 16px;
  border-radius:8px;
  background:#a8ef00;
  color:#111;
  font-weight:700;
  cursor:pointer;
}
.file-button:hover{filter:brightness(.96)}
.file-name{font-size:13px;color:#666;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.import-status{margin-top:12px;font-size:14px;color:#555}

.import-card{padding:24px}.import-description{margin:0 0 18px;color:#666;font-size:14px}
.unified-drop-zone{min-height:190px;border:2px dashed #cfd6dc;border-radius:12px;background:#fafbfc;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;transition:.15s}
.unified-drop-zone.dragover{border-color:#a8ef00;background:#f6ffe1}.drop-icon{font-size:28px;font-weight:700;line-height:1}.drop-title{font-size:17px;font-weight:700}.drop-subtitle{font-size:13px;color:#777}
.unified-file-button{display:inline-block;padding:10px 16px;border-radius:8px;background:#a8ef00;color:#111;font-weight:700;cursor:pointer}.unified-file-button:hover{filter:brightness(.96)}
.unified-file-name{font-size:13px;color:#666;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.import-status{margin-top:12px;font-size:14px;color:#555}

.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.42);display:flex;align-items:center;justify-content:center;z-index:1000}.modal{width:min(92%,430px);background:#fff;border-radius:14px;padding:24px;box-shadow:0 15px 45px rgba(0,0,0,.22)}.modal h3{margin:0 0 10px;font-size:20px}.modal p{margin:0 0 16px}.modal input{width:100%;height:44px;border:1px solid #d8dbe0;border-radius:9px;padding:0 12px;font-size:14px}.modal-error{margin-top:10px;padding:9px 11px;border-radius:8px;background:#fff0f0;color:#b42318;font-size:13px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.modal-cancel{padding:11px 18px;border:1px solid #d8dbe0;border-radius:9px;background:#fff;font-weight:700;cursor:pointer}

.danger{
  margin-top:8px;padding:12px 20px;border:0;border-radius:9px;
  background:#e53935;color:#fff;font-family:inherit;font-size:15px;
  font-weight:700;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.10)
}
.danger:hover{background:#d32f2f;box-shadow:0 4px 10px rgba(0,0,0,.14)}
.pagination{display:flex;align-items:center;margin-top:16px}

.statement-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:#fff}
.statement-table{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap}
.statement-table th,.statement-table td{padding:10px 14px;border-bottom:1px solid var(--line);text-align:left}
.statement-table thead th{background:#fafafa;font-size:12px;color:var(--muted);font-weight:700}
.statement-table tbody tr:last-child td{border-bottom:0}
.statement-table tfoot td{font-weight:700;border-top:2px solid var(--line);border-bottom:0;background:#fafafa}

/* авторизация */
.logout-btn{font:inherit;font-size:14px;font-weight:600;border:1px solid rgba(0,0,0,.22);background:rgba(255,255,255,.55);color:#171717;padding:10px 20px;border-radius:10px;cursor:pointer}
.logout-btn:hover{background:#fff}
.auth-gate{display:none;position:fixed;inset:0;z-index:60;background:var(--bg);align-items:center;justify-content:center;padding:24px}
.auth-gate.visible{display:flex}
.auth-card{width:100%;max-width:380px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:30px 28px 26px;box-shadow:0 12px 34px rgba(17,17,17,.07)}
.auth-title{font-size:25px;font-weight:700;margin:0 0 22px}
.auth-card .field{max-width:none}
.auth-card .action{width:100%;margin-top:6px}
.auth-card .action:disabled{opacity:.55;cursor:default}
