/* Панель оператора «Своё Коми». Светлая, спокойная, без украшений: здесь работают, а не любуются. */
:root {
  --night: #0b2136; --ink: #17232f; --ink-2: #61707d; --line: #e0e4e8; --bg: #f4f6f8;
  --white: #fff; --red: #bd3c2a; --green: #2f7d52; --gold: #e0a32e; --blue: #2d6ca8;
  --r: 8px; --shadow: 0 10px 30px -18px rgba(11, 33, 54, .5);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 Manrope, -apple-system, sans-serif; }
a { color: var(--blue); }
h1 { font-size: 24px; margin: 0; }
h2 { font-size: 19px; margin: 0 0 14px; }
h3 { font-size: 16px; margin: 0 0 10px; }
.boot { padding: 60px; text-align: center; color: var(--ink-2); }

/* вход */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login__box { background: var(--white); padding: 34px; border-radius: var(--r); box-shadow: var(--shadow); width: min(400px, 100%); }
.login__box h1 { margin-bottom: 6px; }
.login__box p { color: var(--ink-2); margin: 0 0 20px; font-size: 14px; }

/* каркас */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--night); color: #cbd6e0; padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side__logo { color: #fff; font-weight: 700; font-size: 17px; margin: 0 0 4px; }
.side__sub { font-size: 12.5px; color: #7f93a5; margin: 0 0 22px; }
.side a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 6px; color: #cbd6e0; text-decoration: none; margin-bottom: 3px; font-size: 14.5px; }
.side a:hover { background: #16324a; }
.side a.on { background: var(--red); color: #fff; }
.side a b { background: rgba(255, 255, 255, .18); border-radius: 20px; padding: 0 8px; font-size: 12px; }
.side__foot { margin-top: 24px; padding-top: 18px; border-top: 1px solid #1f4c6e; font-size: 13px; }
.side__foot button { background: none; border: 0; color: #7f93a5; cursor: pointer; padding: 6px 12px; }
.side__foot button:hover { color: #fff; }
.main { padding: 26px 30px 60px; max-width: 1180px; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .side a { display: inline-flex; margin-right: 6px; }
  .main { padding: 18px; }
}

/* общее */
.head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.head .grow { flex: 1; }
.btn { border: 0; background: var(--night); color: #fff; padding: 10px 18px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 14.5px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn:hover { background: #16324a; }
.btn--red { background: var(--red); } .btn--red:hover { background: #a2311f; }
.btn--ghost { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { background: #eef1f4; }
.btn--sm { padding: 6px 12px; font-size: 13.5px; }
.btn[disabled] { opacity: .55; cursor: default; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 18px; }
.muted { color: var(--ink-2); font-size: 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.tile b { display: block; font-size: 30px; line-height: 1.1; }
.tile span { font-size: 13.5px; color: var(--ink-2); }
.tile.warn b { color: var(--red); }
.tile a { text-decoration: none; }

label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--ink-2); }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid #b9d3ec; border-color: var(--blue); }
textarea { min-height: 110px; resize: vertical; }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 14px; }
.row--2 { grid-template-columns: 1fr 1fr; }
.field { margin-bottom: 14px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 7px; background: var(--bg); border: 1px solid var(--line); padding: 7px 12px; border-radius: 20px; font-weight: 500; font-size: 14px; color: var(--ink); cursor: pointer; margin: 0; }
.checks input { width: auto; }
.checks label:has(input:checked) { background: #e8f0f7; border-color: var(--blue); }

table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fafbfc; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: #fafbfc; }
td .name { font-weight: 600; }
td .sub { font-size: 13px; color: var(--ink-2); }
.pill { display: inline-block; font-size: 12px; padding: 3px 9px; border-radius: 20px; background: #eef1f4; color: var(--ink-2); }
.pill--on { background: #e4f2ea; color: var(--green); }
.pill--off { background: #fdeceb; color: var(--red); }
.pill--new { background: #fff3d9; color: #8a6200; }
.thumb { width: 54px; height: 40px; object-fit: cover; border-radius: 4px; background: #e9edf1; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; padding: 11px 16px; cursor: pointer; font-weight: 600; color: var(--ink-2); border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--ink); border-color: var(--red); }

.msg { padding: 11px 15px; border-radius: 6px; margin-bottom: 14px; font-size: 14px; }
.msg--ok { background: #e4f2ea; color: #1d4a33; }
.msg--err { background: #fdeceb; color: #9c2b1b; }

.drop { border: 2px dashed var(--line); border-radius: var(--r); padding: 20px; text-align: center; color: var(--ink-2); cursor: pointer; background: #fafbfc; }
.drop.over { border-color: var(--blue); background: #eef5fb; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 12px; }
.shot { position: relative; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #e9edf1; }
.shot img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.shot input { border: 0; border-top: 1px solid var(--line); border-radius: 0; font-size: 12.5px; padding: 6px 8px; }
.shot button { position: absolute; right: 5px; top: 5px; border: 0; background: rgba(0, 0, 0, .6); color: #fff; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; line-height: 1; }
.shot .mv { left: 5px; right: auto; }

.rep { display: grid; gap: 10px; }
.rep__row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; align-items: center; }
.rep__row--2 { grid-template-columns: 1fr 2fr auto; }
.rep__row button { border: 1px solid var(--line); background: var(--white); border-radius: 6px; cursor: pointer; padding: 9px 12px; }
@media (max-width: 700px) { .rep__row, .rep__row--2 { grid-template-columns: 1fr; } }

.modal { position: fixed; inset: 0; background: rgba(11, 33, 54, .5); display: grid; place-items: center; padding: 20px; z-index: 40; }
.modal__box { background: var(--white); border-radius: var(--r); padding: 26px; width: min(680px, 100%); max-height: 88vh; overflow-y: auto; }
.modal__head { display: flex; align-items: center; margin-bottom: 16px; }
.modal__head h2 { margin: 0; flex: 1; }
.modal__head button { background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink-2); line-height: 1; }
.right { margin-left: auto; }
.sticky-save { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 26%); padding: 18px 0 0; display: flex; gap: 10px; align-items: center; }
