/* Редактор схемы зала (pbshalls/schemaedit) */

#hs_editor {
    position: relative;
}

.hs_canvas_container {
    position: relative;
    width: auto;
    margin-right: 320px;
    height: 640px;
    overflow: auto;
    background-color: #000000;
    border: solid 1px #333333;
}

#hs_canvas {
    position: relative;
    width: 3000px;
    height: 3000px;
}

#hs_bg {
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    pointer-events: none;
    z-index: 1;
}

#hs_svg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    overflow: hidden;
}

/* --- вкладки секторов зала --- */

#hs_tabs {
    padding: 3px 0;
    min-height: 22px;
}

.hs_tab {
    display: inline-block;
    padding: 3px 10px;
    margin-right: 2px;
    background-color: #e8e8e8;
    border: solid 1px #c0c0c0;
    border-radius: 3px 3px 0 0;
    cursor: pointer;
    font-size: 12px;
}

.hs_tab.current {
    background-color: #ffffff;
    font-weight: bold;
}

/* --- элементы схемы --- */

.hs_seat {
    fill: #888888;
    stroke: #cccccc;
    stroke-width: 1;
    cursor: move;
}

.hs_seatnum {
    fill: #000000;
    cursor: move;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.hs_rownum {
    fill: #ffffff;
    font-size: 12px;
    cursor: move;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.hs_grip {
    fill: #4a90d9;
    stroke: #ffffff;
    stroke-width: 1;
    cursor: move;
}

.hs_text {
    fill: #ffffff;
    cursor: move;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.hs_poly {
    fill: #888888;
    stroke: #b9c4d0;
    stroke-width: 1;
    cursor: move;
}

.hs_hallsector .hs_poly {
    fill: #6f7f8f;
}

.hs_sectorlabel {
    fill: #000000;
    cursor: move;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.hs_vertex {
    fill: #ffffff;
    stroke: #4a90d9;
    stroke-width: 1;
    cursor: crosshair;
}

/* --- выделение --- */

.hs_selected .hs_seat {
    stroke: #ffe100;
    stroke-width: 2;
}

.hs_selected .hs_rownum,
.hs_selected .hs_text {
    fill: #ffe100;
}

.hs_selected .hs_poly {
    stroke: #ffe100;
    stroke-width: 2;
}

.hs_selectrect {
    fill: rgba(255, 255, 255, 0.2);
    stroke: #ffffff;
    stroke-width: 1;
}

/* --- панель управления --- */

.hs_controlpanel {
    position: absolute;
    top: 0;
    right: 0;
    width: 310px;
}

.hs_formtabs {
    margin-bottom: 4px;
}

.hs_formtab {
    display: inline-block;
    padding: 3px 7px;
    margin-right: 2px;
    background-color: #e8e8e8;
    border: solid 1px #c0c0c0;
    cursor: pointer;
    font-size: 11px;
}

.hs_formtab.current {
    background-color: #ffffff;
    font-weight: bold;
}

.hs_form {
    border: solid 1px #c0c0c0;
    padding: 6px;
    margin-bottom: 6px;
    background-color: #f7f7f7;
}

.hs_form table {
    width: 100%;
}

.hs_form td {
    padding: 1px 2px;
    font-size: 12px;
}

.hs_form td.hs_label {
    width: 110px;
    color: #555555;
}

.hs_form input[type=text],
.hs_form input[type=number],
.hs_form select {
    width: 100%;
    box-sizing: border-box;
}

.hs_buttons {
    margin-top: 6px;
}

.hs_buttons .btn {
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    margin: 0 0 -1px 0;
}

.hs_disabled {
    opacity: 0.4;
    pointer-events: none;
}

.hs_hint {
    font-size: 11px;
    color: #777777;
    line-height: 15px;
    margin-top: 6px;
}

.hs_warning {
    font-size: 11px;
    color: #a04000;
    background-color: #fff6e5;
    border: solid 1px #f0d8a8;
    padding: 5px;
    margin-bottom: 6px;
    line-height: 15px;
}

#hs_errors {
    display: none;
    margin: 6px 320px 6px 0;
    padding: 6px;
    border: solid 1px #c0c0c0;
    background-color: #f7f7f7;
    font-size: 12px;
}

#hs_errors ul {
    margin: 4px 0 0 0;
    padding-left: 18px;
}

.hs_error {
    color: #b00000;
}

.hs_ok {
    color: #007000;
}

.hs_scale {
    position: absolute;
    top: 26px;
    right: 320px;
    z-index: 1200;
}

.hs_scale .btn {
    width: 20px;
    text-align: center;
    margin: 0 0 -1px 0;
}