:root { --green: #48a216; --green-dark: #3d8a12; --text: #222; --muted: #777; --line: #e8e8e8; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/24px Roboto, Arial, sans-serif; color: #555; background: #fff; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1385px; margin: 0 auto; padding: 0 30px; }

/* шапка */
.top { border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { font-size: 26px; font-weight: 700; font-style: italic; color: var(--text); letter-spacing: -.5px; }
.logo span { color: var(--green); }
.logo:hover { text-decoration: none; }
.top-r { color: var(--text); font-size: 14px; }

/* заголовок */
.crumbs { margin-top: 22px; font-size: 11px; line-height: 16px; color: #999; }
.crumbs i { font-style: normal; margin: 0 5px; }
h1 { margin: 10px 0 24px; font-size: 32px; line-height: 30px; font-weight: 400; color: var(--text); }

/* колонки */
.cols { display: flex; gap: 30px; align-items: flex-start; padding-bottom: 50px; }
.side { width: 200px; flex: none; border: 1px solid var(--line); }
.side a { display: block; padding: 15px 17px; font-size: 14px; line-height: 20px; color: var(--text); border-bottom: 1px solid var(--line); }
.side a:last-child { border-bottom: 0; }
.side a.active { background: var(--green); color: #fff; font-weight: 500; }
.side a:hover { text-decoration: none; background: #f6f6f6; }
.side a.active:hover { background: var(--green); }
main { flex: 1; min-width: 0; }

/* формы */
.row { margin: 0 0 10px; color: var(--text); }
.row label, label { color: var(--text); }
.row .dash { margin: 0 6px; }
input[type=text], input[type=password], input[type=date], select {
  height: 32px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 2px;
  font: 15px Roboto, Arial, sans-serif; color: #555; background: #fff; }
select { padding-right: 30px; color: var(--muted); }
input.num { width: 111px; }
input:focus, select:focus { outline: 0; border-color: var(--green); }
.btn { display: inline-block; height: 39px; padding: 8px 20px 9px; border: 1px solid var(--green); border-radius: 2px;
  background: var(--green); color: #fff; font: 700 14px/20px Roboto, Arial, sans-serif; cursor: pointer; margin: 6px 0 24px; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.err { color: #c0392b; margin: 10px 0; }

/* таблица */
.tw { overflow-x: auto; margin-bottom: 8px; }
table.grid { width: 100%; min-width: 1050px; border-collapse: collapse; }
.grid th { padding: 7px 8px; background: var(--green); color: #fff; font-size: 12px; line-height: 17px; font-weight: 500; text-align: left; }
.grid td { padding: 8px; font-size: 12px; line-height: 17px; color: var(--text); border-bottom: 1px solid var(--line); vertical-align: middle; }
.grid tbody tr:hover td { background: #f8fbf5; }
.grid td a { font-weight: 500; }
.grid td.empty { padding: 26px; text-align: center; color: var(--muted); font-size: 14px; }

/* вход */
.login { max-width: 340px; padding-bottom: 60px; }
.login label { display: block; margin-bottom: 12px; }
.login input[type=text], .login input[type=password] { display: block; width: 100%; margin-top: 4px; height: 36px; }
.login label.chk { font-size: 13px; }
.login .btn { margin-bottom: 8px; }

@media (max-width: 800px) {
  .wrap { padding: 0 16px; }
  .cols { flex-direction: column; }
  .side { width: 100%; display: flex; }
  .side a { flex: 1; border-bottom: 0; border-right: 1px solid var(--line); }
  h1 { font-size: 26px; }
}
.login label.chk label { display: inline; margin: 0; }

/* пагинация */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 6px; }
.pager .cnt { margin-right: 14px; color: var(--muted); font-size: 13px; }
.pager .gap { color: var(--muted); padding: 0 2px; }
.pager button { min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 2px; background: #fff;
  color: var(--text); font: 14px Roboto, Arial, sans-serif; cursor: pointer; }
.pager button:hover { border-color: var(--green); color: var(--green); }
.pager button.cur { background: var(--green); border-color: var(--green); color: #fff; cursor: default; }
select.size { padding-right: 8px; color: #555; }
.btn-dl { margin-left: 8px; }
.pager + .tw { margin-top: 6px; }
.top-r .out { margin-left: 14px; font-size: 13px; }

/* фильтры */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 18px; align-items: end;
  padding: 18px 20px; margin-bottom: 20px; background: #fafafa; border: 1px solid var(--line); border-radius: 2px; }
.filters .f { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.filters .f span { font-size: 12px; line-height: 16px; color: var(--muted); }
.filters input[type=text], .filters input[type=date], .filters select { width: 100%; height: 38px; padding: 6px 10px; }
.filters select { color: #555; }
.filters .actions { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: flex-end; padding-top: 4px; border-top: 1px solid var(--line); margin-top: 4px; }
.filters .actions .btn { margin: 10px 0 0; }
.filters .btn-dl { margin-left: 0; background: #fff; color: var(--green); }
.filters .btn-dl:hover { background: var(--green); color: #fff; }
@media (max-width: 800px) { .filters .actions { justify-content: stretch; } .filters .actions .btn { flex: 1; } }
.size-row { margin: 2px 0 8px; font-size: 13px; color: var(--muted); }
.size-row select { height: 32px; margin-left: 6px; font-size: 14px; }
