/* Стиль как у «Ядро Китай»: белое боковое меню, голубой акцент, оранжевая подпись */
* { box-sizing: border-box; }
body { font-family: Manrope, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif; margin: 0; background: #f3f6f9; color: #0b0f14; font-size: 15px; line-height: 1.45; }
a { color: #2a87c7; text-decoration: none; }
.sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 232px; background: #fff; border-right: 1px solid #e3e8ee; display: flex; flex-direction: column; padding: 18px 12px; overflow-y: auto; }
.side-brand { padding: 0 8px 16px; }
.side-brand img { height: 30px; display: block; }
.side-sub { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #f49739; font-weight: 700; margin-top: 6px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side-nav a { padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: #3e4c59; display: flex; justify-content: space-between; align-items: center; }
.side-nav a:hover { background: #f1f5f9; }
.side-nav a.on { background: #e3f0f9; color: #1b6498; font-weight: 700; }
.side-group { margin: 16px 12px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #9aa5b1; font-weight: 700; }
.side-foot { border-top: 1px solid #e3e8ee; padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.lang { display: flex; gap: 4px; }
.lang a { flex: 1; text-align: center; border: 1px solid #d5dde5; background: #fff; border-radius: 6px; padding: 5px 0; font-size: 12px; color: #3e4c59; }
.lang a.on { background: #2a87c7; color: #fff; border-color: #2a87c7; font-weight: 700; }
.profile { display: flex; align-items: center; gap: 10px; color: inherit; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #f49739; color: #fff; display: grid; place-items: center; font-weight: 700; }
.pname { font-size: 13px; font-weight: 700; color: #0b0f14; }
.prole { font-size: 11px; color: #7b8794; }
.logout { font-size: 13px; color: #7b8794; padding-left: 4px; }
.logout:hover { color: #b3261e; }
.container { max-width: 1200px; margin: 24px auto; padding: 0 20px; }
body.with-side .container { margin-left: 232px; max-width: none; padding: 28px 32px; }
body.bare .container { max-width: 480px; }
h1 { font-size: 1.5em; margin: 0 0 8px; }
h2 { font-size: 1.15em; margin-top: 28px; }
.hint { color: #6b7280; font-size: .9em; }
.flashes { margin-bottom: 16px; }
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 8px; font-size: .9em; cursor: pointer; transition: opacity .4s; }
.flash.success { background: #e3f6e8; color: #16793a; }
.flash.error { background: #fdeaea; color: #b3261e; }
/* вход */
.login-box { max-width: 340px; margin: 80px auto; background: #fff; padding: 28px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.login-logo { height: 130px; width: auto; display: block; margin: 4px auto 0; }
.login-sub { text-align: center; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: #f49739; font-weight: 700; margin-top: 6px; }
.login-box form { margin-top: 22px; }
.login-box input { width: 100%; margin-bottom: 10px; }
.login-box button { width: 100%; }
.lang-login { margin-top: 18px; }
/* поля и кнопки */
input, select, textarea { font: inherit; font-size: .95em; color: inherit; background: #fff; border: 1px solid #d1d5db; border-radius: 6px; padding: 8px 10px; max-width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #2a87c7; box-shadow: 0 0 0 3px rgba(42,135,199,.15); }
input[type=checkbox] { width: auto; }
select { -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236b7683' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 12px 8px; padding-right: 34px; cursor: pointer; }
button, .btn { background: #2a87c7; color: #fff; border: 0; padding: 9px 18px; border-radius: 6px; cursor: pointer; font: inherit; font-size: .95em; display: inline-block; }
button:hover, .btn:hover { background: #1b6498; }
button.sec, .btn.sec { background: #eef1f5; color: #1c1f26; border: 1px solid #d1d5db; }
button.sec:hover, .btn.sec:hover { background: #e3e8ee; }
.card { background: #fff; border-radius: 8px; padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: #fff; padding: 14px; border-radius: 8px; margin-bottom: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.card .filters { box-shadow: none; padding: 0; margin-bottom: 10px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
th, td { padding: 10px 12px; border-bottom: 1px solid #eef0f3; font-size: .88em; text-align: left; vertical-align: top; }
th { background: #f0f2f5; color: #4b5563; font-weight: 600; }
td.r, th.r { text-align: right; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: #eef1f5; color: #4b5563; }
.pill.ok { background: #e3f6e8; color: #16793a; } .pill.warn { background: #fdf0dc; color: #a85d00; } .pill.bad { background: #fdeaea; color: #b3261e; }
.tiles { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.tile { background: #fff; padding: 14px 22px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.06); text-align: center; min-width: 150px; font-size: .8em; color: #6b7280; }
.tile b { display: block; font-size: 2em; color: #2a87c7; font-variant-numeric: tabular-nums; }
code { background: #f0f2f5; padding: 2px 6px; border-radius: 5px; font: 12px ui-monospace, Menlo, Consolas, monospace; }
/* экран приёмки */
.scanbox { display: flex; gap: 10px; }
.scanbox input { flex: 1; min-width: 0; font-size: 26px; padding: 14px 16px; border: 2px solid #2a87c7; }
.scanbox button { padding: 0 24px; }
.meas { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 12px 0; align-items: center; }
.meas input { width: 92px; }
.meas input[type=checkbox] { width: auto; }
.result { margin: 14px 0; border-radius: 12px; padding: 22px 20px; min-height: 120px; display: flex; flex-direction: column; justify-content: center; border: 2px solid #e3e8ee; background: #f8fafc; }
.result .big { font-size: 34px; font-weight: 700; letter-spacing: .02em; word-break: break-all; }
.result .msg { font-size: 18px; margin-top: 4px; }
.result.ok { background: #e3f6e8; border-color: #16793a; color: #16793a; }
.result.duplicate { background: #fdf0dc; border-color: #f49739; color: #a85d00; }
.result.stop, .result.invalid { background: #fdeaea; border-color: #b3261e; color: #b3261e; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.photos { display: flex; gap: 10px; flex-wrap: wrap; }
.photos img { max-width: 260px; border-radius: 8px; border: 1px solid #e3e8ee; }
@media (max-width: 760px) {
  .sidebar { position: static; width: auto; border-right: 0; border-bottom: 1px solid #e3e8ee; }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
  body.with-side .container { margin-left: 0; padding: 16px; }
  .scanbox input { font-size: 20px; } .result .big { font-size: 26px; } table { font-size: 13px; display: block; overflow-x: auto; }
}
