* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; color: #1c2430; background: #f4f6f9; font-size: 14px; }
.hidden { display: none !important; }
.mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 13px; }
.muted { color: #8a97a6; font-weight: normal; }

/* --- Логин --- */
.login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-box { background: #fff; padding: 36px 32px; border-radius: 14px; box-shadow: 0 8px 40px rgba(0,0,0,.08); width: 320px; display: flex; flex-direction: column; gap: 12px; }
.login-box .brand { font-size: 20px; font-weight: 700; color: #1f4e79; text-align: center; margin-bottom: 8px; }
.login-box input { padding: 11px 13px; border: 1px solid #d5dbe2; border-radius: 8px; font-size: 14px; }
.login-box input:focus { outline: none; border-color: #1f4e79; }
.login-box button { padding: 11px; background: #1f4e79; color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 15px; }
.login-box button:hover { background: #163a5c; }
.login-err { color: #d64545; font-size: 13px; text-align: center; min-height: 16px; }

/* --- Приложение --- */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 210px; background: #1f2937; color: #cbd5e1; display: flex; flex-direction: column; padding: 18px 0; }
.brand-mark { font-weight: 700; color: #fff; padding: 0 20px 18px; font-size: 16px; }
.proj-select { padding: 4px 16px 14px; }
.proj-select label { display: block; font-size: 11px; color: #8a97a6; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .5px; }
.proj-select select { width: 100%; padding: 8px 10px; border-radius: 7px; border: 1px solid #3a4655; background: #2b3646; color: #fff; font-size: 14px; }
.sidebar nav { display: flex; flex-direction: column; }
.form { display: flex; flex-direction: column; gap: 10px; max-width: 460px; background: #fff; padding: 18px; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.form input { padding: 9px 12px; border: 1px solid #d5dbe2; border-radius: 7px; font-size: 14px; }
.form button { padding: 9px; background: #1f4e79; color: #fff; border: none; border-radius: 7px; font-weight: 600; cursor: pointer; }
.form button:hover { background: #163a5c; }
.content h3 { font-size: 15px; }
.nav-item { padding: 11px 20px; cursor: pointer; color: #cbd5e1; text-decoration: none; font-size: 14px; }
.nav-item:hover { background: #2b3646; }
.nav-item.active { background: #2b3646; color: #fff; border-left: 3px solid #4f9cff; }
.sidebar-foot { margin-top: auto; padding: 14px 20px; font-size: 12px; color: #8a97a6; display: flex; justify-content: space-between; }
.sidebar-foot a { color: #6ea8ff; cursor: pointer; text-decoration: none; }

.content { flex: 1; padding: 26px 30px; overflow-x: auto; }
.content h2 { font-size: 19px; margin-bottom: 14px; }
.flt { width: 320px; padding: 8px 12px; border: 1px solid #d5dbe2; border-radius: 7px; margin-bottom: 14px; }

.tbl-wrap { overflow-x: auto; background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
table { width: 100%; border-collapse: collapse; }
th { background: #1f4e79; color: #fff; padding: 9px 11px; text-align: left; font-size: 12px; position: sticky; top: 0; }
td { padding: 8px 11px; border-bottom: 1px solid #eef1f4; }
tbody tr:hover { background: #f7fafd; }
.cr-good { color: #1a9955; font-weight: 700; }
.cr-mid { color: #b8860b; }
.cr-bad { color: #d64545; font-weight: 700; }
.acts button, td button { padding: 4px 10px; margin-right: 4px; border: 1px solid #cfd6de; background: #fff; border-radius: 6px; cursor: pointer; font-size: 12px; }
.acts button:hover, td button:hover { border-color: #1f4e79; color: #1f4e79; }
.alert { background: #fff4f4; border: 1px solid #f3c7c7; color: #a33; padding: 12px 16px; border-radius: 9px; margin-bottom: 16px; }
