.balustradeDrawing {
}

    .balustradeDrawing *:focus {
        outline: none;
    }

    .balustradeDrawing .sectionsTableRow md-input-container {
        margin: 0;
    }

    .balustradeDrawing .sectionsTableRow .sm-col {
        width: 90px;
        margin-left: 10px;
    }

#sectionsScrollWrapper {
    max-height: 155px;
    overflow-y: auto;
    flex-grow: 1;
    margin: 0 10px 0 0;
    overflow-x: hidden;
}

#addSectionsContainer {
    margin-right: 35px;
}

.balustradeDrawing .md-errors-spacer {
    display: none;
}

md-input-container {
    margin: 18px 10px 0 0;
}

/* prevent jumping when opening select menus */
body {
    /*overflow-y: scroll;*/
}

@media (hover: hover) {
    .balustradeDrawing .sectionsTableRow .removeSectionButton {
        visibility: hidden;
    }

    .balustradeDrawing .sectionsTableRow:hover .removeSectionButton {
        visibility: visible;
    }
}

.balustradeDrawing .header {
    height: 50px;
    box-shadow: 0px -13px 24px 15px rgba(138,138,138,0.84);
    line-height: 50px;
    vertical-align: middle;
}

.balustradeDrawing .wrap {
    min-height: calc(100vh - 50px);
    min-height: calc(var(--vh, 1vh) * 100 - 50px);
    display: flex;
    flex-flow: column;
}

    .balustradeDrawing .wrap .top {
        min-height: 281px;
    }

    .balustradeDrawing .wrap .bottom {
        min-height: 325px;
        flex: 1;
        background: #fff;
        position: relative;
    }

body .balustradeDrawing .btnHelp {
    margin: 0;
    padding: 0;
    min-height: 0;
    line-height: 24px;
    height: 24px;
    width: 24px;
}

body .balustradeDrawing .inputHelp {
    position: absolute;
    right: -37px;
    top: 1px;
}

.help-img {
    max-width: 100%;
}

.balustradeDrawing .h-padding {
    padding: 25px 25px 10px 25px;
}

.balustradeDrawing .ready-model {
    cursor: pointer;
    user-select: none;
    border: #adadad 1px solid;
    margin: 15px 0 15px 15px;
}

    .balustradeDrawing .ready-model:hover {
        box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.75);
    }

    .balustradeDrawing .ready-model svg {
        pointer-events: none;
        user-select: none;
    }

.balustradeDrawing .view-options {
    position: absolute;
    left: 10px;
    top: 10px;
}

    .balustradeDrawing .view-options .view-option {
        margin-right: 10px;
    }

#drawing-views-selector {
    min-width: 150px;
}

.balustradeDrawing .dimension-options {
    position: absolute;
    left: 10px;
    bottom: 10px;
}

.balustradeDrawing .legend {
    position: absolute;
    top: 10px;
    right: 0;
}

.balustradeDrawing .priceContainer {
    line-height: 40px;
    padding-top: 5px;
}

.balustradeDrawing .purchaseForm md-checkbox {
    margin-bottom: 0px;
}

.balustradeDrawing .purchaseForm md-input-container {
    margin: 0;
}

.balustradeDrawing .chbLink {
    color: rgb(83, 109, 254);
    cursor: pointer;
    text-decoration: underline;
}

    .balustradeDrawing .chbLink:visited {
        color: rgb(83, 109, 254);
    }

.balustradeDrawing .cartForm .md-checked {
    background-color: #f0e3fd;
}

.balustradeDrawing .cartForm .cartTypeOption > div {
    padding: 12px;
}

.balustradeDrawing .cartForm md-radio-button {
    margin-bottom: 0;
}

.panel-welcome {
    background: white;
    border-radius: 4px;
    width: 250px;
    padding: 10px;
    box-shadow: 0 7px 8px -4px rgba(0, 0, 0, 0.2), 0 13px 19px 2px rgba(0, 0, 0, 0.14), 0 5px 24px 4px rgba(0, 0, 0, 0.12);
}

.legendPanel {
    background: white;
    border-radius: 4px;
    max-width: 95vw;
    box-shadow: 0 7px 8px -4px rgba(0, 0, 0, 0.2), 0 13px 19px 2px rgba(0, 0, 0, 0.14), 0 5px 24px 4px rgba(0, 0, 0, 0.12);
}

    .legendPanel > div {
        padding: 10px;
    }

        .legendPanel > div > div {
            line-height: 25px;
        }

md-tooltip {
    font-size: 14px !important;
}

.home-button {
    display: none
}

.cartForm .cartTypeOption {
    color: #A0A0A0;
}

    .cartForm .cartTypeOption .md-checked {
        color: #000;
    }

.purchase-form-buttons {
    margin: 3px 0 0 30px;
}

md-dialog {
    max-width: calc(90% + 20px);
}

md-dialog-content.help {
    width: calc(90vw - 48px);
    max-width: 800px;
    height: 100vh;
}

@media only screen and (max-width: 450px) {
    md-dialog-content.help {
        padding: 12px;
    }
}

md-dialog-content.help iframe, md-dialog-content.delivery iframe {
    border: 0;
    width: 100%;
    height: 100%;
}

md-dialog-content.delivery {
    width: calc(90vw - 48px);
    max-width: 800px;
    height: 500px;
}

@media only screen and (max-width: 659px) {
    md-dialog-content.delivery {
        height: 100vh;
    }
}

@media only screen and (max-width: 400px) {
    .home-logo {
        display: none
    }

    .home-button {
        display: block;
    }
}

@media only screen and (max-width: 700px) {
    .balustradeDrawing .h-padding {
        padding: 10px 15px 10px 15px;
    }

    #drawing-views-selector {
        min-width: 110px;
    }

    .balustradeDrawing .sectionsTableRow .sm-col {
        width: 75px;
        margin-left: 10px;
    }

    .md-button.md-icon-button {
        margin: 0;
    }
}

@media only screen and (max-width: 959px) {

    #addSectionsContainer {
        margin-bottom: 20px;
    }

    #sectionsScrollWrapper {
        max-height: 115px;
        margin: 0 10px 20px 0;
    }

    .purchase-form-buttons {
        margin: 10px 0 0 42px;
    }
}

@media only screen and (max-width: 1024px) {
    md-select-menu, md-select-menu md-content {
        max-height: calc(100vh - 50px);
    }
}
