/* Обслуживание и ремонты. Дополняет style.css и journal.css. Без grid и CSS-переменных — для старого Safari. */
body.sv { padding-bottom: 120px; }
.hidden { display: none !important; }
.stepn {
  display: inline-block; width: 26px; height: 26px; line-height: 26px; border-radius: 50%; text-align: center;
  font-size: 15px; margin-right: 10px; background: rgba(124,196,255,.2); color: #cfe0ff; vertical-align: 1px;
}
.ptitle { position: relative; }
.pick-all { float: right; }
.mini, .del, .savebtn, .chk, .ptile, #hPrinter { -webkit-appearance: none; appearance: none; font: inherit; cursor: pointer; }
.mini {
  font-size: 14px; font-weight: 700; color: #cfe0ff; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 6px 12px; margin-left: 6px;
}

/* галочки работ */
.checks { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 4px -5px 6px; }
.chk {
  margin: 5px; padding: 16px 22px 16px 16px; border-radius: 16px; font-size: 20px; font-weight: 800; color: #dbe3ef; text-align: left;
  background: rgba(255,255,255,.05); border: 2px solid rgba(255,255,255,.12);
  -webkit-transition: background .15s, border-color .15s; transition: background .15s, border-color .15s;
}
.chk i {
  display: inline-block; width: 26px; height: 26px; border-radius: 8px; margin-right: 12px; vertical-align: -6px;
  border: 2px solid rgba(255,255,255,.35); position: relative;
}
.chk.on { background: rgba(12,163,12,.18); border-color: #2fbf52; color: #fff; }
.chk.on i { background: #2fbf52; border-color: #2fbf52; }
.chk.on i:after {
  content: ''; position: absolute; left: 7px; top: 2px; width: 7px; height: 13px;
  border: solid #fff; border-width: 0 3px 3px 0; -webkit-transform: rotate(45deg); transform: rotate(45deg);
}
.checks.small .chk { font-size: 16px; padding: 11px 16px 11px 12px; border-radius: 13px; }
.checks.small .chk i { width: 20px; height: 20px; border-radius: 6px; margin-right: 9px; vertical-align: -4px; }
.checks.small .chk.on i:after { left: 5px; top: 1px; width: 5px; height: 10px; }

.txt {
  display: block; width: 100%; box-sizing: border-box; -webkit-box-sizing: border-box; margin-top: 8px; font: inherit; font-size: 17px;
  color: #fff; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 12px 14px; resize: vertical;
}
.txt:focus { outline: none; border-color: rgba(124,196,255,.6); }

/* плитки принтеров */
.ptiles { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 4px -6px 0; }
.ptile {
  -webkit-box-flex: 1; -webkit-flex: 1 1 230px; flex: 1 1 230px; max-width: 360px; margin: 6px; padding: 12px 14px 10px; text-align: left;
  color: #dbe3ef; border-radius: 18px; background: rgba(255,255,255,.04); border: 2px solid rgba(255,255,255,.1);
  -webkit-transition: background .15s, border-color .15s; transition: background .15s, border-color .15s;
}
.ptile.on { background: rgba(12,163,12,.15); border-color: #2fbf52; }
.pt-top { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; }
.pt-name { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.pt-model { font-size: 13px; font-weight: 700; color: #8d99ad; margin-left: 8px; -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; }
.pt-tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); position: relative; }
.ptile.on .pt-tick { background: #2fbf52; border-color: #2fbf52; }
.ptile.on .pt-tick:after {
  content: ''; position: absolute; left: 8px; top: 3px; width: 6px; height: 12px;
  border: solid #fff; border-width: 0 3px 3px 0; -webkit-transform: rotate(45deg); transform: rotate(45deg);
}
.pt-mil { font-size: 14px; color: #8d99ad; margin: 4px 0 8px; }
.pt-mil b { color: #a9d3ff; font-weight: 800; }
.pt-row {
  display: -webkit-box; display: -webkit-flex; display: flex; font-size: 14px; color: #c3cddd; padding: 4px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.pt-row span:first-child { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; color: #8d99ad; }
.pt-row b { color: #ffd27a; }
.never { color: #ff8a8f; font-weight: 700; }

/* история */
.hfilter { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-box-align: center; -webkit-align-items: center; align-items: center; margin-bottom: 8px; }
#hPrinter {
  font-size: 16px; font-weight: 700; color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px; padding: 8px 16px; margin: 0 10px 6px 0;
}
#hPrinter option { color: #000; }
.hfilter .seg { margin-bottom: 6px; }
.htable td { vertical-align: top; }
.hwhen { white-space: nowrap; color: #c3cddd; }
.hnote { color: #8d99ad; font-size: 14px; margin-top: 3px; }
.kind { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 9px; margin: 0 8px 3px 0; }
.kind.service { background: rgba(47,191,82,.16); color: #9af0bd; }
.kind.repair { background: rgba(236,131,90,.18); color: #ffb08f; }
.del { color: #7f8ca3; background: none; border: 0; font-size: 16px; padding: 4px 8px; border-radius: 8px; }
.del:hover { color: #ff8a8f; background: rgba(255,80,80,.12); }

/* нижняя панель «Сохранить» */
.savebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 12px 18px; padding-bottom: calc(12px + env(safe-area-inset-bottom));
  display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  background: rgba(8,12,20,.94); border-top: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.savetxt { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; min-width: 0; font-size: 17px; font-weight: 700; color: #fff; margin-right: 14px; }
.savetxt small { display: block; font-size: 13px; font-weight: 500; color: #7f8ca3; margin-top: 2px; }
.savebtn {
  font-size: 19px; font-weight: 800; color: #fff; padding: 15px 30px; border-radius: 16px; border: 0;
  background: #1f9d45; -webkit-box-shadow: 0 8px 24px -8px rgba(47,191,82,.7); box-shadow: 0 8px 24px -8px rgba(47,191,82,.7);
}
.savebtn[disabled] { background: rgba(255,255,255,.1); color: #6f7c92; -webkit-box-shadow: none; box-shadow: none; cursor: default; }

.svtoast {
  position: fixed; left: 50%; bottom: 100px; z-index: 60; -webkit-transform: translateX(-50%); transform: translateX(-50%);
  max-width: 90%; padding: 14px 20px; border-radius: 14px; font-size: 16px; font-weight: 700; color: #fff;
  background: #1a7f3a; -webkit-box-shadow: 0 14px 34px rgba(0,0,0,.6); box-shadow: 0 14px 34px rgba(0,0,0,.6);
}
.svtoast.bad { background: #b3343a; }

@media (max-width: 600px) {
  .jhead .seg { margin-top: 4px; }
  .chk { font-size: 17px; padding: 13px 16px 13px 12px; -webkit-box-flex: 1; -webkit-flex: 1 1 40%; flex: 1 1 40%; }
  .ptile { -webkit-flex-basis: 100%; flex-basis: 100%; max-width: none; }
  .pick-all { float: none; display: block; margin-top: 8px; }
  .pick-all .mini:first-child { margin-left: 0; }
  .htable th:nth-child(4), .htable td:nth-child(4) { display: none; }
  .savebtn { padding: 13px 20px; font-size: 17px; }
  .savetxt { font-size: 15px; }
}

/* сводка */
.pt-gap { height: 6px; }
.lv-ok { color: #9af0bd; }
.lv-warn { color: #ffd27a; }
.lv-bad { color: #ff8a8f; }
.dsum { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 0 -6px 8px; }
.ds {
  -webkit-box-flex: 1; -webkit-flex: 1 1 160px; flex: 1 1 160px; margin: 0 6px 8px; padding: 12px 18px; border-radius: 18px;
  font-size: 15px; font-weight: 700; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
}
.ds b { display: block; font-size: 38px; line-height: 1.1; }
.ds.lv-never { color: #c3cddd; }
.dwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dtable { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: 15px; }
.dtable th { text-align: left; font-size: 13px; font-weight: 800; color: #c3cddd; padding: 4px 8px; vertical-align: bottom; }
.dtable th small { display: block; font-weight: 500; color: #7f8ca3; }
.dn { font-size: 22px; font-weight: 800; color: #fff; padding: 6px 8px; white-space: nowrap; }
.dn small { display: block; font-size: 12px; font-weight: 700; color: #7f8ca3; }
.dc { padding: 8px 10px; border-radius: 10px; vertical-align: top; min-width: 110px; }
.dc b { display: block; font-size: 16px; }
.dc small { display: block; font-size: 12px; color: #8d99ad; margin-top: 2px; }
.dc.lv-ok { background: rgba(47,191,82,.12); }
.dc.lv-warn { background: rgba(255,176,46,.13); }
.dc.lv-bad { background: rgba(255,77,87,.13); }
.dc.dr { background: rgba(255,255,255,.04); color: #dbe3ef; }
.dc.dr b { font-size: 14px; font-weight: 700; }
