.flag input {
    background: transparent;
}
.flag [contenteditable="true"] {
    white-space: nowrap;
    overflow: visible;
}

    .flag [contenteditable="true"] br {
        display: none;
    }

    .flag [contenteditable="true"] * {
        display: inline;
        white-space: nowrap;
    }

.flag .dotted {
    border: dotted 1px transparent;
}

    .flag .dotted.active {
        border: dotted 1px red;
        background-color: rgba(214, 110, 93, 0.3);
    }

.flags {
    width: 870px;
    margin-right: 10%;
    font-family: sans-serif;
}

.flag.english {
    font-family: Arial;
}


.agency-image {
    position: absolute;
    width: auto;
    padding: 10px;
    display: none;
    height: auto;
    font-size: 10px;
    max-width: 100%;
    max-height: 100%;
}

.flag-agency-cell.selected .agency-image {
    display: block;
}

.flag-agency-cell.selected {
    border-top: 2px solid black;
    margin-top: -1px;
}

.flag div {
    white-space: nowrap;
}

.flag-destination-sub {
    font-size: 13px;
    line-height: 17px;
}

.flag-destination {
    line-height: 32px;
    direction: rtl;
    padding-top: 10px;
    overflow: visible;
    background: transparent;
}

.flag {
    border: 1px solid black;
}

.flag-agency,
.flag-row,
.flag-row-wrap,
.flag,
.flag-header,
.flag-header-details {
    padding: 0;
}

.flag-agency {
    background: yellow;
    font-size: 22px;
    font-weight: bold;
}

.flag-row {
    height: 65px;
    border: 1px solid black;
}

    .flag-row.double {
        height: 130px;
    }

.flag-header {
    background: white;
    border-bottom: 1px solid black;
    font-size: 35px;
    height: 130px;
}

    .flag-header img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
    }

.flag-header-name {
    padding: 30px;
    line-height: 5px;
    height: 90px;
}

    .flag-header-name div {
        margin-top: 30px;
        position: absolute;
    }

.flag-header-bus {
    height: 130px;
    background: #232979;
    text-align: center;
    font-size: 60px;
    color: white;
    padding: 0;
}

.flag-header-details {
    padding: 0;
}

.stop-code {
}

.stop-code-label {
    font-size: 14px;
    text-align: left;
    padding: 0;
    font-weight: bold;
}


.flag-agency-cell {
    padding: 0;
    height: 65px;
}

    .flag-agency-cell select {
        background-color: yellow;
        color: transparent;
        border: 0;
        width: 100%;
        font-size: 12px;
        height: 100%;
    }

        .flag-agency-cell select option {
            color: black;
            background-color: white;
        }

.flag-action {
    cursor: pointer;
    width: 20px;
    position: absolute;
    font-size: 12px;
    z-index: 999;
    text-align: center;
    background-color: white;
    padding: 3px;
    border-radius: 15px 15px 15px 15px;
    display: none;
}

.flag-download-row, .flag-download-header {
    color: green;
    border: 1px solid green;
    margin-top: 0;
}

.flag-swich-row {
    color: blue;
    border: 1px solid blue;
    margin-top: 20px;
}

.flag-clear-row {
    color: red;
    border: 1px solid red;
    margin-top: 40px;
}

.flag-destination-wrap {
    width: 58.333%;
    display: inline-block;
    float: right;
}


.flag-routes {
    text-align: left;
    direction: ltr;
    width: 41.666%;
    display: inline-block;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
    line-height: 32px;
    float: left;
}



.english .flag-destination,
.english .flag-destination-sub,
.english .flag-destination-wrap {
    float: left;
    text-align: left;
    direction: ltr;
    overflow: visible;
}

.english .flag-routes {
    float: right;
    text-align: right;
}

.english .flag-header-name,
.english .flag-agency-cell,
.english .flag-header-details,
.english .stop-code-label {
    float: left;
    text-align: left;
    direction: ltr;
}

.english .stop-code-label {
    text-align: right;
}

.english .flag-action {
    left: 0;
}

.english .double .flag-destination-wrap {
    text-align: center;
}

.double .flag-routes {
    width: 100%;
    text-align: center;
}

    .double .flag-routes div {
    }

.double .flag-destination-wrap {
    width: 100%;
    text-align: center;
}

.double .flag-destination {
    width: 100%;
    text-align: center;
}

.double .flag-destination-sub {
    width: 100%;
    text-align: center;
}
