* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Arial, "Microsoft YaHei", sans-serif; color: #263445; }
body { background: #f2f5f9; }
button, input, select { font: inherit; }
button { cursor: pointer; border: 1px solid #bcd6f7; border-radius: 4px; background: #edf5ff; color: #2583dd; }
button:hover, button:focus { background: #d9ebff; }
button:focus, input:focus, select:focus { outline: 3px solid #f5ab43; outline-offset: 1px; }
.hidden { display: none !important; }
.notice { padding: 20px; text-align: center; }

.login-view { min-height: 100vh; padding: 12vh 16px 30px; background: #213a55; }
.login-box { width: 390px; max-width: 100%; margin: 0 auto; padding: 34px; border-radius: 10px; background: #fff; box-shadow: 0 15px 36px rgba(0,0,0,.2); }
.login-box h1 { margin: 0; color: #217ddb; font-size: 28px; text-align: center; }
.login-box p { margin: 7px 0 28px; color: #8392a3; text-align: center; }
.login-box label { display: block; margin: 15px 0 7px; font-size: 15px; }
.login-box input { width: 100%; height: 42px; padding: 7px 10px; border: 1px solid #ccd6e1; border-radius: 5px; }
.login-box button { width: 100%; height: 44px; margin-top: 12px; border: 0; background: #409eff; color: #fff; font-size: 17px; }
.login-message { min-height: 19px; margin-top: 10px; color: #d94b4b; font-size: 14px; }

.tv-shell { width: 100%; }
.zoom-controls { height: 42px; padding: 5px 12px; border-bottom: 1px solid #dce4ee; background: #fff; color: #526477; text-align: center; white-space: nowrap; }
.zoom-controls span { margin-right: 8px; font-size: 13px; }
.zoom-controls button { min-width: 38px; height: 30px; margin: 0 3px; padding: 0 8px; font-size: 16px; }
.zoom-controls strong { display: inline-block; min-width: 55px; color: #263445; font-size: 15px; }
.zoom-controls #zoomReset { font-size: 13px; }
.zoom-controls button:disabled { opacity: .45; cursor: default; }
.tv-viewport { height: calc(100vh - 42px); overflow: auto; }
.tv-canvas { position: relative; min-width: 100%; min-height: 100%; }
.dashboard-view { position: absolute; padding: 8px 10px 12px; transform-origin: center center; -webkit-transform-origin: center center; }
.toolbar { min-height: 50px; padding: 7px 10px; margin-bottom: 8px; border: 1px solid #e0e8f0; border-radius: 6px; background: #fff; }
.toolbar:after, .dashboard-footer:after { display: block; clear: both; content: ""; }
.toolbar-heading { float: left; min-width: 140px; line-height: 34px; white-space: nowrap; }
.toolbar-heading strong { font-size: 18px; }
.toolbar-heading span { margin-left: 5px; color: #8896a5; font-size: 12px; }
.summary { float: left; line-height: 34px; font-size: 12px; }
.summary span { margin-right: 9px; font-weight: bold; white-space: nowrap; }
.summary .charging { color: #d98c22; }
.summary .connected { color: #3489dd; }
.summary .idle { color: #5a9d30; }
.summary .offline, .summary .fault { color: #e15050; }
.toolbar-actions { float: right; white-space: nowrap; }
.toolbar-actions input, .toolbar-actions select { height: 34px; padding: 0 8px; border: 1px solid #d4dce5; border-radius: 4px; background: #fff; }
.toolbar-actions input { width: 145px; }
.toolbar-actions select { width: 100px; }
.toolbar-actions button { height: 34px; padding: 0 11px; margin-left: 3px; }
.toolbar-actions #searchButton { border-color: #409eff; background: #409eff; color: #fff; }
.dashboard-message { padding: 10px 12px; margin-bottom: 8px; border-radius: 4px; background: #fff4e8; color: #a65c12; }

.cards { font-size: 0; }
.card { display: inline-block; width: 19.2%; min-height: 128px; margin: 0 .4% 8px; vertical-align: top; overflow: hidden; border: 1px solid #dce4ee; border-top: 2px solid #409eff; border-radius: 6px; background: #fff; box-shadow: 0 2px 6px rgba(31,45,61,.06); font-size: 13px; }
.card-title { height: 31px; padding: 6px 7px; border-bottom: 1px solid #edf1f6; background: #fbfdff; white-space: nowrap; overflow: hidden; }
.card-title strong { float: left; max-width: 42%; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.card-title small { float: right; max-width: 58%; overflow: hidden; text-overflow: ellipsis; color: #98a6b6; font-size: 10px; }
.guns { font-size: 0; }
.gun { display: inline-block; width: 50%; min-height: 94px; padding: 7px 6px 6px; vertical-align: top; font-size: 13px; }
.gun + .gun { border-left: 1px solid #edf1f6; }
.gun-head { height: 22px; white-space: nowrap; }
.gun-head strong { float: left; }
.gun-head span { float: right; padding: 2px 4px; border-radius: 7px; font-size: 11px; }
.gun.status-0 .gun-head span { color: #529b2e; background: #f0f9eb; }
.gun.status-1 .gun-head span { color: #337ecc; background: #ecf5ff; }
.gun.status-2 .gun-head span { color: #b88230; background: #fdf6ec; }
.gun.status--1 .gun-head span, .gun.status-3 .gun-head span { color: #d94b4b; background: #fef0f0; }
.gun.status--2 .gun-head span, .gun.missing .gun-head span { color: #909399; background: #f4f4f5; }
.electric { height: 27px; padding-top: 6px; font-weight: bold; white-space: nowrap; }
.electric span { float: right; }
.gun .action { width: 100%; height: 26px; padding: 0 4px; font-size: 12px; }
.gun .action.stop { border-color: #f56c6c; background: #f56c6c; color: #fff; }
.gun .action:disabled { opacity: .6; cursor: default; }
.empty-state { padding: 60px 20px; border-radius: 6px; background: #fff; color: #8392a3; text-align: center; font-size: 16px; }
.dashboard-footer { min-height: 36px; color: #8896a5; font-size: 12px; }
.dashboard-footer > span { float: left; line-height: 32px; }
.pages { float: right; }
.pages button { height: 30px; padding: 0 10px; }
.pages button:disabled { opacity: .45; cursor: default; }
.pages span { display: inline-block; min-width: 95px; text-align: center; }

.dialog-backdrop { position: fixed; z-index: 10; top: 0; right: 0; bottom: 0; left: 0; padding: 15vh 12px 0; background: rgba(0,0,0,.5); }
.dialog { width: 370px; max-width: 100%; margin: 0 auto; padding: 22px; border-radius: 8px; background: #fff; box-shadow: 0 14px 35px rgba(0,0,0,.25); }
.dialog h2 { margin: 0 0 8px; font-size: 20px; }
.dialog p { margin: 0 0 18px; color: #409eff; }
.voltage-options label { display: inline-block; margin-right: 26px; padding: 8px; }
.voltage-options input { width: 18px; height: 18px; vertical-align: middle; }
.dialog-actions { text-align: right; }
.dialog-actions button { min-width: 80px; height: 36px; margin-left: 8px; }
.dialog-actions .primary { border-color: #409eff; background: #409eff; color: #fff; }

@media (max-width: 1250px) { .summary { display: none; } .card { width: 24.2%; } }
@media (max-width: 850px) { .toolbar-actions { float: none; clear: both; padding-top: 6px; } .card { width: 32.5%; } }
@media (min-width: 1600px) { .card { min-height: 155px; } .gun { min-height: 120px; padding: 12px 10px; font-size: 16px; } .card-title { height: 36px; } .card-title strong { font-size: 18px; } .card-title small { font-size: 12px; } .gun-head { height: 30px; } .gun-head span { font-size: 13px; } .electric { height: 34px; } .gun .action { height: 34px; font-size: 14px; } }
