/* Tailormade x Forestead, werkplaats dashboard
   Bewust zonder CSS variabelen en grid, zodat oudere tablets het ook tonen. */
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: rgba(0,0,0,0); }
html, body { margin: 0; padding: 0; }
body {
  background: #0a0c0c;
  background-image: radial-gradient(1200px 600px at 10% -10%, rgba(64, 98, 78, .14), rgba(0,0,0,0)),
                    radial-gradient(900px 500px at 110% 10%, rgba(197, 161, 106, .06), rgba(0,0,0,0));
  background-attachment: fixed;
  color: #e8ece9;
  font-family: "Manrope", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
button { font-family: inherit; color: inherit; }
a { color: inherit; }

.app { padding: 16px 28px 28px; max-width: 1760px; margin: 0 auto; }

/* ---------- icons ---------- */
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6;
      stroke-linecap: round; stroke-linejoin: round; display: block; }
.ic.sm { width: 16px; height: 16px; }
.ic.lg { width: 30px; height: 30px; stroke-width: 1.5; }
.ic .fill { fill: currentColor; stroke: none; }

/* ---------- header ---------- */
.top { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
       height: 64px; margin-bottom: 14px; }
.brand { font-size: 21px; font-weight: 400; letter-spacing: .28em; white-space: nowrap; }
.brand-a { color: #f1f3f1; }
.brand-x { color: #c5a16a; margin: 0 .55em 0 .3em; letter-spacing: 0; font-weight: 300; }
.brand-b { color: #c5a16a; }
.top-sep { width: 1px; height: 26px; background: rgba(255,255,255,.14); margin: 0 30px 0 26px; }
.site { position: relative; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
        gap: 10px; font-size: 18px; color: #e3e7e4; cursor: pointer; padding: 8px 4px; }
.site .ic { margin-left: 10px; color: #a9b2ac; }
.top-right { margin-left: auto; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.date { color: #a3aca6; font-size: 16px; margin-right: 22px; }
.clock { font-size: 19px; font-weight: 600; margin-right: 34px; font-variant-numeric: tabular-nums; }

.estop { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
         height: 58px; padding: 0 30px 0 26px; border-radius: 29px; border: 1px solid rgba(255,140,130,.35);
         background: linear-gradient(180deg, #ea3a35 0%, #c2201d 100%);
         box-shadow: 0 0 0 4px rgba(225, 50, 45, .12), 0 10px 30px rgba(200, 30, 25, .35), inset 0 1px 0 rgba(255,255,255,.25);
         color: #fff; font-weight: 700; letter-spacing: .06em; font-size: 16px; cursor: pointer; }
.estop:active { -webkit-transform: scale(.97); transform: scale(.97); }
.estop-sq { width: 16px; height: 16px; background: #fff; border-radius: 3px; margin-right: 16px; }

.conn { display: none; background: rgba(224, 160, 60, .12); border: 1px solid rgba(224,160,60,.35); color: #f0c78a;
        padding: 10px 16px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.conn.show { display: block; }

/* ---------- layout ---------- */
.layout { display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start; }
.main { -webkit-flex: 1; flex: 1; min-width: 0; }
.side { width: 376px; margin-left: 18px; -webkit-flex-shrink: 0; flex-shrink: 0; }

.card, .kpi, .mc, .tile {
  background: linear-gradient(180deg, #171b1a 0%, #111413 100%);
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 12px 30px rgba(0,0,0,.28);
}

/* ---------- KPI ---------- */
.kpis { display: -webkit-flex; display: flex; margin: 0 -8px 16px; }
.kpi { -webkit-flex: 1; flex: 1; margin: 0 8px; height: 112px; padding: 18px 20px; position: relative;
       display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start; min-width: 0; }
.kpi-ic { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.035);
          border: 1px solid rgba(255,255,255,.06); display: -webkit-flex; display: flex;
          -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
          color: #cfd5d1; margin-right: 16px; -webkit-flex-shrink: 0; flex-shrink: 0; }
#kpi-fail .kpi-ic { color: #d9a94a; }
#kpi-yield .kpi-ic { color: #c5a16a; }
.kpi-txt { min-width: 0; }
.kpi-l { color: #c9cfcb; font-size: 14px; margin-top: 1px; white-space: nowrap; }
.kpi-v { margin-top: 8px; white-space: nowrap; }
.kpi-v .v { font-size: 34px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.kpi-v .u { font-size: 24px; font-weight: 500; margin-left: 7px; color: #e8ece9; }
.kpi-v .t { font-size: 13px; color: #5cc684; margin-left: 12px; font-weight: 600; }
.kpi-v .t.neg { color: #e0884f; }
.kpi-bars { position: absolute; right: 20px; bottom: 22px; height: 44px; display: -webkit-flex; display: flex;
            -webkit-align-items: flex-end; align-items: flex-end; }
.kpi-bars i { display: block; width: 4px; margin-left: 4px; border-radius: 2px; background: #4fae72; opacity: .35; min-height: 4px; }
.kpi-bars i.now { opacity: 1; }
.kpi-bars.dim i { background: #6f7872; }

/* ---------- machines ---------- */
.machines { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 0 -8px; }
.mc { margin: 0 8px 16px; width: calc(33.333% - 16px); height: 410px; position: relative; padding: 20px 22px 0;
      display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; cursor: pointer;
      -webkit-transition: border-color .2s, box-shadow .2s; transition: border-color .2s, box-shadow .2s; }
.mc.wide { width: calc(50% - 16px); height: 346px; cursor: default; }
.mc.sel { border-color: rgba(92,198,132,.5); box-shadow: 0 0 0 1px rgba(92,198,132,.18), 0 0 28px rgba(92,198,132,.07), 0 12px 30px rgba(0,0,0,.28); }
.mc-h { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.mc-name { font-size: 20px; font-weight: 600; letter-spacing: -.005em; }
.mc-more { margin-left: auto; margin-right: -8px; }
.iconbtn { background: none; border: 0; padding: 6px; border-radius: 8px; color: #c9cfcb; cursor: pointer; }
.iconbtn:hover { background: rgba(255,255,255,.06); }
.mc-s { margin-top: 8px; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; font-size: 16px; color: #e3e7e4; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #6f7872; margin-right: 12px; -webkit-flex-shrink: 0; flex-shrink: 0; }
.dot.green { background: #5cc684; box-shadow: 0 0 0 3px rgba(92,198,132,.14); }
.dot.amber { background: #e0a84a; box-shadow: 0 0 0 3px rgba(224,168,74,.14); }
.dot.red { background: #e5483f; box-shadow: 0 0 0 3px rgba(229,72,63,.16); }
.dot.blue { background: #6d9fd1; }
.dot.pulse { -webkit-animation: pulse 2s infinite; animation: pulse 2s infinite; }
@-webkit-keyframes pulse { 50% { opacity: .45; } }
@keyframes pulse { 50% { opacity: .45; } }

.mc-b { -webkit-flex: 1; flex: 1; display: -webkit-flex; display: flex; min-height: 0; margin-top: 4px; }
.mc-img { -webkit-flex: 1; flex: 1; position: relative; min-width: 0; }
.mc-art { position: absolute; left: -12px; bottom: 8px; width: calc(100% + 8px); }
.mc-art img.mach { display: block; width: 100%; height: auto; }
.part { position: absolute; width: 14%; height: 6%; left: 44%; bottom: 24%; display: none; }
.part .grow { position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden; height: 0; }
.part .shape { position: absolute; left: 0; right: 0; bottom: 0; height: 100%;
               background: linear-gradient(180deg, #4f8f63, #2c5a3c); border-radius: 50% / 22%;
               box-shadow: inset 0 3px 0 rgba(160, 230, 180, .35), 0 2px 6px rgba(0,0,0,.4); }
.part .hole { position: absolute; left: 22%; right: 22%; top: 8%; height: 34%; border-radius: 50%;
              background: rgba(10, 20, 14, .85); }
.mc.printing .part, .mc.paused .part { display: block; }

/* echte machinefoto's: vrijstaand, onderaan uitgelijnd, met zachte schaduw op de vloer */
.mc-art.photo { top: 0; bottom: 10px; left: -6px; right: 6px; width: auto; }
.mc-art.photo .pic { position: absolute; left: 0; top: 0; right: 0; bottom: 0;
                     background-repeat: no-repeat; background-position: center bottom;
                     -webkit-background-size: contain; background-size: contain;
                     -webkit-transition: opacity .3s; transition: opacity .3s; }
.mc-art.photo .shadow { position: absolute; left: 8%; right: 8%; bottom: -8px; height: 22px;
                        background: -webkit-radial-gradient(center, ellipse, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 70%);
                        background: radial-gradient(ellipse at center, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 70%); }
.mc.offline .mc-art.photo .pic, .mc.off .mc-art.photo .pic { opacity: .5; }
.mc.pending .mc-art.photo .pic { opacity: .72; }
.mc.wide .mc-art.photo { top: 4px; bottom: 18px; left: -4px; right: 4px; }
.mc-art.nophoto { top: 6px; bottom: 18px; left: 0; right: 10px; width: auto; border: 1px dashed rgba(255,255,255,.12);
                  border-radius: 12px; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
                  -webkit-justify-content: center; justify-content: center; }
.mc-art.nophoto .ph { text-align: center; color: #6f7872; font-size: 13px; }
.mc-art.nophoto .ph .ic { display: block; width: 30px; height: 30px; margin: 0 auto 8px; stroke-width: 1.5; }

.mc-r { position: relative; z-index: 1; width: 146px; -webkit-flex-shrink: 0; flex-shrink: 0; display: -webkit-flex; display: flex;
        -webkit-flex-direction: column; flex-direction: column; -webkit-align-items: flex-start; align-items: flex-start;
        padding-top: 10px; }
.ring { position: relative; width: 128px; height: 128px; margin: 0 auto 14px; }
.ring > svg { width: 128px; height: 128px; -webkit-transform: rotate(-90deg); transform: rotate(-90deg); }
.ring .trk { fill: none; stroke: #212725; stroke-width: 9; }
.ring .bar { fill: none; stroke: url(#ringGrad); stroke-width: 9; stroke-linecap: round;
             -webkit-transition: stroke-dashoffset .8s; transition: stroke-dashoffset .8s; }
.ring .ctr { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: -webkit-flex; display: flex;
             -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
             font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ring .ctr .ic { width: 40px; height: 40px; stroke-width: 2; }
.ring.ok .bar { stroke: #5cc684; }
.ring.idle .ctr { color: #8f9893; font-size: 15px; font-weight: 500; }
.ring.err .bar { stroke: #e5483f; }
.ring.err .ctr { color: #ff8a80; }
.ring.off .trk { stroke: #4a5350; stroke-width: 2.5; }
.ring.off .bar { display: none; }
.ring.off .ctr { color: #aeb6b1; }
.ring.off .ctr .ic { width: 30px; height: 30px; stroke-width: 1.7; }
.mc-big { font-size: 16px; font-weight: 600; margin: 0 0 3px; color: #eef1ef; }
.mc-sub { font-size: 13px; color: #8f9893; margin-bottom: 14px; }
.temps { font-size: 14px; color: #d9dedb; width: 100%; }
.temps div { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; margin-bottom: 9px; white-space: nowrap; }
.temps .ic { width: 17px; height: 17px; margin-right: 9px; color: #aab3ad; }
.temps .k { width: 48px; color: #c9cfcb; }
.temps .tv { font-variant-numeric: tabular-nums; }
.rem { margin-top: 8px; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
       font-size: 15px; color: #e3e7e4; white-space: nowrap; }
.rem .ic { width: 19px; height: 19px; margin-right: 9px; }

.mc-f { height: 58px; margin: 0 -22px; padding: 0 20px 0 22px; border-top: 1px solid rgba(255,255,255,.06);
        display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; color: #e3e7e4; font-size: 16px; }
.mc-f .ic { color: #c9cfcb; -webkit-flex-shrink: 0; flex-shrink: 0; }
.mc-f .fn { margin-left: 16px; -webkit-flex: 1; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-f .fn.muted { color: #6f7872; }
.mc-f .chev { margin-left: 10px; color: #c9cfcb; }
.mc.pending .mc-f .chev, .mc.offline .mc-f .chev { display: none; }
.mc.pending .mc-f, .mc.pending { cursor: default; }
.mc-err { margin: 10px 0 0; font-size: 13px; color: #ff9b92; line-height: 1.4; }

.mc.wide .mc-art { left: -8px; bottom: 16px; width: calc(100% + 10px); }
.mc.wide .mc-r { width: 220px; -webkit-align-items: center; align-items: center; padding-top: 22px; text-align: center; }
.mc.wide .ring { width: 84px; height: 84px; margin-bottom: 18px; }
.mc.wide .ring > svg { width: 84px; height: 84px; }
.mc.wide .mc-sub { margin-bottom: 0; }
.mc.wide .info { width: 100%; }
.mc.wide .rem { -webkit-justify-content: center; justify-content: center; margin-top: 6px; }
.mc.wide .mc-f .fn.muted { color: #6f7872; }

/* Gerber (Tailormade Studio): voortgang in blokken en de stap waar hij is */
.mc-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; margin: 0 0 8px; }
.mc-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #3f8f5c, #78d39a);
            -webkit-transition: width .8s; transition: width .8s; }
.mc.paused .mc-bar i { background: linear-gradient(90deg, #a87f48, #d9b47a); }
.mc-blk { font-size: 13px; color: #c9cfcb; font-variant-numeric: tabular-nums; }
.mc-step { margin-top: 8px; font-size: 13px; color: #8f9893; line-height: 1.35; }
.mc-step.wait { color: #e0a84a; font-weight: 600; }
.tile.stop .ic { color: #ff8a80; }
.gs-file { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.upbar { display: none; height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; margin: 0 0 12px; }
.upbar.on { display: block; }
.upbar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #3f8f5c, #78d39a); }

/* ---------- side ---------- */
.cam { padding: 18px 18px 18px; margin-bottom: 16px; }
.cam-h { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; font-size: 15px; color: #e3e7e4; margin-bottom: 12px; }
.cam-h .iconbtn { margin-left: auto; margin-right: -6px; }
.cam-v { position: relative; border-radius: 10px; overflow: hidden; background: #0c0f0e; height: 0; padding-bottom: 75%; }
.cam-v img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-empty { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: -webkit-flex; display: flex;
             -webkit-flex-direction: column; flex-direction: column; -webkit-align-items: center; align-items: center;
             -webkit-justify-content: center; justify-content: center; color: #6f7872; font-size: 14px; }
.cam-empty .ic { margin-bottom: 10px; }

.queue { padding: 18px 20px 6px; margin-bottom: 16px; }
.q-h { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; font-size: 19px; font-weight: 500; margin-bottom: 8px; }
.badge { margin-left: auto; min-width: 32px; height: 32px; border-radius: 16px; background: rgba(255,255,255,.07);
         display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
         font-size: 15px; font-weight: 600; padding: 0 8px; }
.q-item { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.06); }
.q-n { width: 22px; color: #a3aca6; font-size: 15px; }
.q-th { width: 52px; height: 52px; border-radius: 9px; background: #1d2220; border: 1px solid rgba(255,255,255,.06); margin-right: 14px;
        overflow: hidden; -webkit-flex-shrink: 0; flex-shrink: 0; display: -webkit-flex; display: flex;
        -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; color: #4f8f63; }
.q-th img { width: 100%; height: 100%; object-fit: cover; }
.q-t { min-width: 0; -webkit-flex: 1; flex: 1; }
.q-name { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-meta { font-size: 13px; color: #8f9893; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-empty { padding: 14px 0 16px; color: #6f7872; font-size: 14px; border-top: 1px solid rgba(255,255,255,.06); }

.ctl-label { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: #6f7872; margin: 4px 2px 10px; }
.ctl-label span { color: #c5a16a; margin-left: 6px; }
.tiles { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 0 -6px; }
.tile { width: calc(50% - 12px); margin: 0 6px 12px; height: 110px; cursor: pointer; display: -webkit-flex; display: flex;
        -webkit-flex-direction: column; flex-direction: column; -webkit-align-items: center; align-items: center;
        -webkit-justify-content: center; justify-content: center; font-size: 16px; color: #eef1ef; }
.tile .ic { margin-bottom: 12px; }
.tile:active { -webkit-transform: scale(.98); transform: scale(.98); }
#tHome { background: linear-gradient(180deg, #1d2b23 0%, #121a16 100%); border-color: rgba(92,198,132,.16); }
.tile.gold { background: linear-gradient(180deg, #b48b53 0%, #87683f 100%); border-color: rgba(230,200,150,.35);
             box-shadow: inset 0 1px 0 rgba(255,235,200,.25), 0 12px 30px rgba(0,0,0,.3); color: #fff8ec; }
.tile[disabled] { opacity: .38; cursor: default; }
.tile.busy { opacity: .7; }

/* ---------- menus, modals, toast ---------- */
.menu { display: none; position: absolute; z-index: 30; min-width: 220px; background: #1a1f1d; border: 1px solid rgba(255,255,255,.09);
        border-radius: 12px; padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.menu.show { display: block; }
.site .menu { top: 44px; left: 0; }
.menu a, .menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 8px;
                        font-size: 15px; color: #e3e7e4; text-decoration: none; cursor: pointer; }
.menu a:hover, .menu button:hover { background: rgba(255,255,255,.06); }
.menu button.danger { color: #ff8a80; }
.menu button[disabled] { opacity: .35; cursor: default; }
.menu .sep { height: 1px; background: rgba(255,255,255,.07); margin: 6px 4px; }
.menu.floating { position: fixed; }

.overlay { display: none; position: fixed; z-index: 40; left: 0; top: 0; right: 0; bottom: 0; background: rgba(4,6,6,.66);
           -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; padding: 20px; }
.overlay.show { display: -webkit-flex; display: flex; }
.modal { width: 100%; max-width: 580px; max-height: 86vh; overflow: auto; background: #151918; border: 1px solid rgba(255,255,255,.09);
         border-radius: 18px; padding: 24px 26px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal h2 { margin: 0 0 6px; font-size: 21px; font-weight: 600; }
.modal p { margin: 0 0 16px; color: #a9b2ac; }
.modal .row { display: -webkit-flex; display: flex; -webkit-justify-content: flex-end; justify-content: flex-end; margin-top: 20px; }
.modal .row .btn { margin-left: 10px; }
.btn { border: 1px solid rgba(92,198,132,.4); background: linear-gradient(180deg, #2f6b46, #234f35); color: #f0f6f2; padding: 12px 20px;
       border-radius: 11px; font-size: 15px; font-weight: 600; cursor: pointer; }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.14); color: #d9dedb; }
.btn.gold { background: linear-gradient(180deg, #b48b53, #87683f); border-color: rgba(230,200,150,.35); }
.btn.danger { background: linear-gradient(180deg, #c62f2b, #9d1f1c); border-color: rgba(255,140,130,.35); }
.btn[disabled] { opacity: .4; cursor: default; }
.flist { margin: 6px -8px 0; }
.fitem { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; padding: 10px 8px; border-radius: 10px; cursor: pointer; }
.fitem:hover, .fitem.on { background: rgba(255,255,255,.05); }
.fitem.on { box-shadow: inset 0 0 0 1px rgba(92,198,132,.45); }
.fitem .q-th { width: 46px; height: 46px; }
.results { margin: 8px 0 0; }
.res { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; padding: 12px 14px; border-radius: 10px;
       background: rgba(255,255,255,.035); margin-bottom: 8px; }
.res .rn { -webkit-flex: 1; flex: 1; font-weight: 600; }
.res .rv { color: #c5a16a; font-weight: 600; }
.res .rv.ok { color: #5cc684; }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: #5cc684;
        -webkit-animation: spin 1s linear infinite; animation: spin 1s linear infinite; margin: 18px auto; }
@-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.screw-now { text-align: center; padding: 18px 0 6px; }
.screw-now .big { font-size: 30px; font-weight: 600; color: #c5a16a; margin: 4px 0 6px; text-transform: capitalize; }

.toast { position: fixed; z-index: 60; left: 50%; bottom: 26px; -webkit-transform: translateX(-50%) translateY(20px); transform: translateX(-50%) translateY(20px);
         background: #1f2523; border: 1px solid rgba(255,255,255,.1); color: #eef1ef; padding: 12px 20px; border-radius: 12px; font-size: 15px;
         box-shadow: 0 14px 40px rgba(0,0,0,.5); opacity: 0; pointer-events: none; -webkit-transition: all .25s; transition: all .25s; max-width: 90%; }
.toast.show { opacity: 1; -webkit-transform: translateX(-50%) translateY(0); transform: translateX(-50%) translateY(0); }
.toast.err { border-color: rgba(229,72,63,.5); }

.estop-ov { display: none; position: fixed; z-index: 70; left: 0; top: 0; right: 0; bottom: 0; background: rgba(60, 6, 6, .92);
            -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; text-align: center; padding: 20px; }
.estop-ov.show { display: -webkit-flex; display: flex; }
.estop-big { font-size: 54px; font-weight: 800; letter-spacing: .08em; color: #fff; margin-bottom: 10px; }
.estop-box p { color: #ffd7d3; font-size: 18px; max-width: 520px; margin: 0 auto 26px; }
.estop-box .row .btn { margin: 0 6px; }

.camfull { display: none; position: fixed; z-index: 65; left: 0; top: 0; right: 0; bottom: 0; background: #000;
           -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; }
.camfull.show { display: -webkit-flex; display: flex; }
.camfull img { max-width: 100%; max-height: 100%; }
.camfull .btn { position: absolute; top: 18px; right: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1480px) {
  .side { width: 340px; }
  .mc-r { width: 138px; }
  .ring, .ring > svg { width: 116px; height: 116px; }
  .kpi { padding: 16px; }
  .kpi-ic { margin-right: 12px; }
  .kpi-v .v { font-size: 30px; }
  .kpi-bars { right: 14px; }
}
@media (max-width: 1300px) {
  .mc { width: calc(50% - 16px); }
  .kpis { -webkit-flex-wrap: wrap; flex-wrap: wrap; }
  .kpi { width: calc(50% - 16px); -webkit-flex: none; flex: none; margin-bottom: 16px; }
  .kpis { margin-bottom: 0; }
  .brand { font-size: 18px; }
  .top-sep { margin: 0 20px; }
}
@media (max-width: 1000px) {
  .layout { display: block; }
  .side { width: auto; margin: 4px 0 0; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; }
  .cam, .queue { width: calc(50% - 8px); }
  .cam { margin-right: 16px; }
  .ctl-label { width: 100%; }
  .tile { width: calc(25% - 12px); height: 96px; }
  .date { display: none; }
}
@media (max-width: 700px) {
  .app { padding: 10px 12px 20px; }
  .top { height: auto; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin-bottom: 10px; }
  .brand { font-size: 13px; letter-spacing: .2em; }
  .top-sep, .site { display: none; }
  .clock { font-size: 16px; margin-right: 14px; }
  .estop { height: 46px; padding: 0 18px 0 16px; font-size: 14px; }
  .estop-sq { width: 12px; height: 12px; margin-right: 10px; }
  .kpi { width: calc(50% - 12px); margin: 0 6px 12px; height: 96px; padding: 12px; }
  .kpis { margin: 0 -6px; }
  .kpi-ic { display: none; }
  .kpi-v .v { font-size: 26px; }
  .kpi-v .u { font-size: 18px; }
  .kpi-bars { display: none; }
  .mc, .mc.wide { width: calc(100% - 16px); }
  .mc { height: 380px; }
  .mc.wide { height: 308px; }
  .cam, .queue { width: 100%; margin-right: 0; }
  .tile { width: calc(50% - 12px); }
}

/* ---------- account ---------- */
.menu-user { padding: 8px 12px 10px; font-size: 13px; color: #8f9893; white-space: nowrap; }
.menu-user:empty { display: none; }
.modal .form { margin-top: 14px; }
.modal .form label { display: block; font-size: 13px; color: #a9b2ac; margin: 0 0 6px; }
.modal .form input { display: block; width: 100%; font-family: inherit; font-size: 16px; color: #eef1ef; background: #0d100f;
  border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 12px 13px; margin: 0 0 14px;
  -webkit-appearance: none; appearance: none; outline: none; }
.modal .form input:focus { border-color: rgba(197,161,106,.7); }
.form-err { min-height: 18px; color: #ff9b92; font-size: 14px; }
